/* Tournai-City V6.0.25.28 - agenda 5 colonnes + mobile corrige */

.agenda-featured-grid,
.agenda-standard-grid {
    display: grid !important;
    width: 100% !important;
    align-items: stretch !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    gap: 16px !important;
}

.agenda-event-section {
    width: 100%;
}

.agenda-event-section + .agenda-event-section {
    margin-top: 24px;
}

/* Le moteur de recherche reste totalement absent à 25 événements ou moins. */
.filter-panel.is-hidden-small-agenda {
    display: none !important;
}

.agenda-layout.agenda-no-filters {
    display: block !important;
}

.agenda-layout.agenda-no-filters .agenda-results {
    width: 100% !important;
    max-width: none !important;
}

/* Aucun titre redondant au-dessus de la grille générale. */
.agenda-section-title-simple {
    display: none !important;
}

.event-card.agenda-poster-card,
.event-card.agenda-poster-card.is-featured {
    display: flex !important;
    min-width: 0;
    height: 100%;
    overflow: hidden;
    border: 0 !important;
    border-radius: 12px;
    background: #090909;
    box-shadow: 0 8px 24px rgba(0,0,0,.12);
    transition: transform .18s ease, box-shadow .18s ease;
}

.event-card.agenda-poster-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 13px 30px rgba(0,0,0,.18);
}

.agenda-poster-link {
    display: flex !important;
    width: 100%;
    min-width: 0;
    height: 100%;
    flex-direction: column;
    color: inherit;
    text-decoration: none;
}

.agenda-poster-date {
    display: flex;
    box-sizing: border-box;
    width: 100%;
    min-height: 72px;
    padding: 9px 6px 8px;
    flex: 0 0 auto;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--orange, #f5a000);
    color: #090909;
    text-align: center;
}

.agenda-poster-date strong {
    display: block;
    max-width: 100%;
    margin: 0;
    white-space: nowrap;
    font-size: clamp(25px, 2vw, 37px);
    font-weight: 950;
    line-height: .94;
    letter-spacing: -.045em;
}

.agenda-poster-date.is-range-same-month strong {
    font-size: clamp(22px, 1.75vw, 32px);
}

.agenda-poster-date.is-range-two-months strong {
    font-size: clamp(17px, 1.35vw, 24px);
    letter-spacing: -.055em;
}

.agenda-poster-date span {
    display: block;
    margin-top: 6px;
    font-size: 10px;
    font-weight: 900;
    line-height: 1;
    letter-spacing: .12em;
}

.agenda-poster-image {
    position: relative;
    display: flex;
    width: 100%;
    min-width: 0;
    aspect-ratio: 3 / 4;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #202020;
}

.agenda-poster-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #202020;
    transition: transform .2s ease;
}

.agenda-poster-card:hover .agenda-poster-image img {
    transform: scale(1.012);
}

.agenda-featured-label {
    position: absolute;
    top: 8px;
    right: 8px;
    padding: 5px 8px;
    border-radius: 999px;
    background: #111;
    color: var(--orange, #f5a000);
    font-size: 8px;
    font-weight: 900;
    letter-spacing: .08em;
}

.agenda-poster-info {
    display: flex;
    box-sizing: border-box;
    width: 100%;
    min-height: 92px;
    padding: 12px 11px 13px;
    flex: 1 1 auto;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #090909;
    text-align: center;
}

.agenda-poster-info h3 {
    display: block !important;
    width: 100%;
    margin: 0 !important;
    overflow: visible !important;
    color: #fff;
    font-size: clamp(14px, 1.05vw, 18px) !important;
    font-weight: 850;
    line-height: 1.18;
    text-align: center;
    text-transform: none;
    white-space: normal !important;
    text-overflow: clip !important;
    -webkit-line-clamp: unset !important;
    -webkit-box-orient: initial !important;
}

.agenda-poster-card.is-featured .agenda-poster-info h3 {
    color: var(--orange, #f5a000);
}

.agenda-poster-location {
    display: block;
    width: 100%;
    margin-top: 6px;
    color: #cfcfcf;
    font-size: 11px;
    font-weight: 650;
    line-height: 1.25;
    text-align: center;
    white-space: normal;
}

/* Neutralise les anciens éléments des cartes. */
.agenda-poster-card .event-image,
.agenda-poster-card .event-body,
.agenda-poster-card .event-date,
.agenda-poster-card .event-topline,
.agenda-poster-card .event-meta,
.agenda-poster-card .event-price,
.agenda-poster-card .event-city,
.agenda-poster-card .event-participants-mini {
    display: none !important;
}

@media (max-width: 1250px) {
    .agenda-featured-grid,
    .agenda-standard-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 980px) {
    .agenda-featured-grid,
    .agenda-standard-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 14px !important;
    }
}

@media (max-width: 700px) {
    .agenda-featured-grid,
    .agenda-standard-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px !important;
    }

    .agenda-event-section + .agenda-event-section {
        margin-top: 18px;
    }

    .agenda-poster-date {
        min-height: 58px;
        padding: 7px 4px 6px;
    }

    .agenda-poster-date strong {
        font-size: 25px;
    }

    .agenda-poster-date.is-range-same-month strong {
        font-size: 22px;
    }

    .agenda-poster-date.is-range-two-months strong {
        font-size: 17px;
    }

    .agenda-poster-date span {
        margin-top: 4px;
        font-size: 9px;
    }

    .agenda-poster-info {
        min-height: 84px;
        padding: 10px 8px 11px;
    }

    .agenda-poster-info h3 {
        font-size: 14px !important;
        line-height: 1.18;
    }

    .agenda-poster-location {
        margin-top: 5px;
        font-size: 10px;
        line-height: 1.2;
    }
}

@media (max-width: 390px) {
    .agenda-featured-grid,
    .agenda-standard-grid {
        gap: 8px !important;
    }

    .event-card.agenda-poster-card {
        border-radius: 9px;
    }

    .agenda-poster-date {
        min-height: 52px;
    }

    .agenda-poster-date strong {
        font-size: 21px;
    }

    .agenda-poster-date.is-range-same-month strong {
        font-size: 18px;
    }

    .agenda-poster-date.is-range-two-months strong {
        font-size: 14px;
    }

    .agenda-poster-info {
        min-height: 78px;
        padding: 9px 6px 10px;
    }

    .agenda-poster-info h3 {
        font-size: 12px !important;
    }

    .agenda-poster-location {
        font-size: 9px;
    }
}


/* Tournai-City V6.0.25.29 - entête agenda compact */
.page-hero.agenda-hero-compact {
    min-height: 0 !important;
    padding: 92px 0 30px !important;
}

.page-hero.agenda-hero-compact .shell {
    display: flex;
    min-height: 0 !important;
    align-items: center;
}

.page-hero.agenda-hero-compact h1 {
    margin: 0 !important;
    color: #fff;
    font-size: clamp(30px, 3.2vw, 48px) !important;
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -.035em;
}

.page-hero.agenda-hero-compact h1 span {
    color: var(--orange, #f5a000);
    font-size: .52em;
    font-weight: 800;
    letter-spacing: 0;
}

.agenda-shell {
    padding-top: 28px !important;
}

.agenda-results > .results-head {
    display: none !important;
}

@media (max-width: 700px) {
    .page-hero.agenda-hero-compact {
        padding: 78px 0 22px !important;
    }

    .page-hero.agenda-hero-compact h1 {
        font-size: 30px !important;
        line-height: 1.08;
    }

    .page-hero.agenda-hero-compact h1 span {
        display: block;
        margin-top: 5px;
        font-size: 14px;
        line-height: 1.2;
    }

    .agenda-shell {
        padding-top: 18px !important;
    }
}
