/* =========================
   Hangar 24 Events — frontend v2
   Fond géré par la page parente (transparent)
   ========================= */

.h24e-agenda,
.h24e-week,
.h24e-detail {
    --h24-orange: #E8490F;
    --h24-orange-cta: #F95E33;
    --h24-bg: #111;
    --h24-card-bg: #1a1a1a;
    --h24-border: #252525;
    --h24-text: #fff;
    --h24-text-muted: #aaa;
    --h24-text-dim: rgba(255, 255, 255, 0.4);

    font-family: 'Barlow Condensed', 'Barlow', system-ui, sans-serif;
    box-sizing: border-box;
}

.h24e-agenda *,
.h24e-week *,
.h24e-detail * {
    box-sizing: border-box;
}

/* ===========================================
   AGENDA — fond transparent, label noir
   =========================================== */
.h24e-agenda {
    background: transparent;
    padding: 40px 28px;
    color: var(--h24-text);
}

/* Filtres par mois */
.h24e-month-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 32px;
    justify-content: center;
}

.h24e-month-filter {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 900;
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 8px 16px;
    background: transparent;
    border: 1px solid #000;
    color: #000;
    cursor: pointer;
    border-radius: 0;
    transition: background 0.15s, color 0.15s;
}

.h24e-month-filter:hover {
    background: #000;
    color: #fff;
}

.h24e-month-filter.active {
    background: #000;
    color: #fff;
}

.h24e-month-section {
    display: block;
}

.h24e-month-section.hidden {
    display: none;
}

.h24e-month-label {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 900;
    font-size: 12px;
    letter-spacing: 3px;
    color: #000;
    text-transform: uppercase;
    border-bottom: 1px solid #000;
    padding-bottom: 8px;
    margin: 28px 0 16px;
}

.h24e-month-label:first-child {
    margin-top: 0;
}

.h24e-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

@media (max-width: 900px) {
    .h24e-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .h24e-grid {
        grid-template-columns: 1fr;
    }
}

/* ===========================================
   CARD — partagée entre agenda et cette semaine
   =========================================== */
.h24e-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: #000;
    border: 1px solid var(--h24-border);
    border-radius: 0;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s, transform 0.2s;
}

.h24e-card:hover {
    border-color: var(--h24-orange);
    transform: translateY(-2px);
}

.h24e-card.past {
    opacity: 0.4;
    filter: grayscale(1);
    transition: opacity 0.3s ease, filter 0.3s ease, transform 0.2s ease, border-color 0.2s ease;
}

.h24e-card.past:hover {
    opacity: 0.85;
    filter: grayscale(0);
    transform: translateY(-2px);
    border-color: var(--h24-orange);
}

.h24e-card-week {
    border-color: var(--h24-orange);
}

/* Badge "Cette semaine" / "Aujourd'hui" en absolute en haut à gauche */
.h24e-card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    background: var(--h24-orange);
    padding: 4px 10px;
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 900;
    font-size: 10px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #fff;
}

.h24e-card-img {
    width: 100%;
    aspect-ratio: 2500 / 1308;
    background: #1e1e1e;
    overflow: hidden;
    display: block;
}

.h24e-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.h24e-card-img-ph {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1e1e1e 0%, #252525 50%, #1e1e1e 100%);
}

.h24e-card-body {
    padding: 16px 18px 18px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Date + heure + tarif sur la même ligne */
.h24e-card-meta {
    font-family: 'sequel-sans-bold', 'Barlow', sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: capitalize;
    color: var(--h24-orange);
    margin-bottom: 8px;
}

.h24e-card-name {
    font-family: 'sequel-sans-bold', 'Barlow Condensed', sans-serif;
    font-weight: 900;
    font-size: 20px;
    line-height: 1.1;
    color: var(--h24-text);
    text-transform: uppercase;
    flex: 1;
    align-content: center;
    margin: 0;
}

/* ===========================================
   CETTE SEMAINE — fond transparent, titre noir
   =========================================== */
.h24e-week {
    background: transparent;
    padding: 40px 28px;
    color: var(--h24-text);
    text-align: center;
}

.h24e-week-heading {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 900;
    font-size: 44px;
    color: #000;
    text-transform: uppercase;
    line-height: 1;
    margin: 0 0 28px;
    text-align: center;
}

.h24e-carousel-wrap {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.h24e-carousel {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 4px 0;
}

.h24e-carousel::-webkit-scrollbar {
    display: none;
}

.h24e-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: #000;
    border: 1px solid #000;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
    color: #fff;
    transition: background 0.15s, color 0.15s;
}

.h24e-arrow:hover {
    background: var(--h24-orange);
    border-color: var(--h24-orange);
}

.h24e-arrow-l {
    left: -20px;
}

.h24e-arrow-r {
    right: -20px;
}

@media (max-width: 700px) {
    .h24e-arrow-l { left: 0; }
    .h24e-arrow-r { right: 0; }
}

/* La card de la semaine utilise exactement les mêmes styles que h24e-card */
.h24e-week .h24e-card {
    flex: 0 0 calc(33.333% - 11px);
    min-width: 240px;
    scroll-snap-align: center;
    text-align: center;
}

.h24e-week .h24e-card-body {
    text-align: center;
    align-items: center;
}

.h24e-week .h24e-card-name {
    text-align: center;
}

@media (max-width: 900px) {
    .h24e-week .h24e-card {
        flex: 0 0 calc(50% - 8px);
    }
}

@media (max-width: 600px) {
    .h24e-week .h24e-card {
        flex: 0 0 85%;
    }
}

/* Bouton CTA "Voir tout l'agenda" — fond noir, typo orange, flèche avant */
.h24e-week-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 28px;
    padding: 14px 26px;
    font-family: 'sequel-sans-bold', 'Barlow Condensed', sans-serif;
    font-weight: 900;
    font-size: 14px;
    letter-spacing: 2px;
    text-transform: uppercase;
    background: #000;
    border: none;
    color: var(--h24-orange-cta);
    border-radius: 0;
    cursor: pointer;
    text-decoration: none;
    transition: opacity 0.15s, transform 0.15s, background 0.15s, color 0.15s;
}

.h24e-week-btn:hover {
    background: #fff;
    color: #000;
    transform: translateY(-1px);
}

/* ===========================================
   PAGE DETAIL
   =========================================== */
.h24e-detail {
    background: var(--h24-bg);
    color: var(--h24-text);
    min-height: 100vh;
}

.h24e-detail-banner {
    width: 100%;
    aspect-ratio: 2500 / 1308;
    background: #1e1e1e;
    overflow: hidden;
    border-bottom: 2px solid var(--h24-orange);
}

.h24e-detail-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.h24e-detail-banner-ph {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1e1e1e 0%, #252525 50%, #1e1e1e 100%);
}

.h24e-detail-infos {
    padding: 40px 28px;
    max-width: 900px;
    margin: 0 auto;
}

.h24e-title-center {
    display: flex;
    justify-content: center;
    margin-bottom: 32px;
}

.h24e-corner-wrap {
    position: relative;
    display: inline-block;
    padding: 14px 28px;
    text-align: center;
}

.h24e-corner {
    position: absolute;
    width: 14px;
    height: 14px;
    border-color: var(--h24-orange);
    border-style: solid;
}

.h24e-corner-tl { top: 0; left: 0; border-width: 1px 0 0 1px; }
.h24e-corner-tr { top: 0; right: 0; border-width: 1px 1px 0 0; }
.h24e-corner-bl { bottom: 0; left: 0; border-width: 0 0 1px 1px; }
.h24e-corner-br { bottom: 0; right: 0; border-width: 0 1px 1px 0; }

.h24e-detail-title {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 900;
    font-size: 40px;
    color: #fff;
    text-transform: uppercase;
    line-height: 1;
    margin: 0;
    padding: 0;
}

.h24e-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 28px;
}

@media (max-width: 600px) {
    .h24e-detail-grid {
        grid-template-columns: 1fr;
    }
}

.h24e-detail-info-item {
    background: var(--h24-card-bg);
    border-radius: 0;
    padding: 14px 16px;
    border: 1px solid var(--h24-border);
}

.h24e-detail-info-label {
    font-family: 'Barlow', sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--h24-orange);
    margin-bottom: 4px;
}

.h24e-detail-info-val {
    font-family: 'Barlow', sans-serif;
    font-size: 14px;
    color: #fff;
    font-weight: 500;
}

.h24e-detail-desc {
    font-family: 'Barlow', sans-serif;
    font-size: 15px;
    color: var(--h24-text-muted);
    line-height: 1.75;
    margin-bottom: 28px;
    border-top: 1px solid #1e1e1e;
    padding-top: 24px;
}

.h24e-detail-desc p {
    margin: 0 0 12px;
}

.h24e-detail-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.h24e-btn-primary,
.h24e-btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 900;
    font-size: 13px;
    letter-spacing: 2px;
    text-transform: uppercase;
    border-radius: 0;
    cursor: pointer;
    text-decoration: none;
    transition: opacity 0.15s, background 0.15s;
}

.h24e-btn-primary {
    background: var(--h24-orange);
    color: #fff;
    border: 1px solid var(--h24-orange);
}

.h24e-btn-primary:hover {
    opacity: 0.9;
}

.h24e-btn-outline {
    background: transparent;
    color: #fff;
    border: 1px solid #fff;
}

.h24e-btn-outline:hover {
    background: #fff;
    color: var(--h24-bg);
}

/* ===========================================
   EMPTY STATE
   =========================================== */
.h24e-empty {
    background: transparent;
    padding: 80px 28px;
    text-align: center;
    color: #000;
    font-family: 'Barlow Condensed', 'Barlow', sans-serif;
}

.h24e-empty-title {
    font-weight: 900;
    font-size: 28px;
    text-transform: uppercase;
    line-height: 1.1;
    margin-bottom: 8px;
}

.h24e-empty-subtitle {
    font-family: 'Barlow', sans-serif;
    font-size: 14px;
    opacity: 0.7;
}
