/* ================================================================
   SINGLE ÉVÉNEMENT — Bio et Local
   Design Figma : Android - Evénement structure (node 2020:30)
   Rose FRAB #D2097A | Vert FRAB #009C50
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Boogaloo&display=swap');

/* ── Variables ───────────────────────────────────────────────── */
:root {
    --rose:  #D2097A;
    --vert:  #009C50;
    --jaune: #FFDB16;
    --pad:   11px;
    --r:     10px;
    --ft:    'Boogaloo', 'Arial Rounded MT Bold', sans-serif;
    --fb:    system-ui, -apple-system, 'Segoe UI', sans-serif;
}

/* ── Header du site : masqué en dessous de 992px sur cette page ──
   Le menu mobile reste géré par .ev-det-topnav/.ev-det-burger dans le
   héro (voir plus bas) ; à partir de 992px, get_header() (header.php)
   remplace .ev-det-desknav — c'était déjà l'intention indiquée par les
   commentaires plus bas dans ce fichier ("le header du site remplace
   la navbar"), il manquait juste le get_header() correspondant. */
@media (max-width: 991.98px) {
    body.single-evenements #site-header {
        display: none;
    }
}

/* ── Wrapper ─────────────────────────────────────────────────── */
.ev-det-page {
    background: #fff;
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
}

/* ══════════════════════════════════════════════════════════════
   1. HÉRO : image + badge date + barre navigation
   ══════════════════════════════════════════════════════════════ */
/* .container-fluid ajoute du padding Bootstrap : neutralisé pour garder
   .ev-det-hero plein bord (le .container enfant gère l'espace latéral).
   Fond coupé net en deux (visible autour de l'image, qui est en .container
   donc pas forcément plein bord) : blanc en haut, vert en bas. */
.ev-det-hero.container-fluid {
    position: relative;
    height: 400px;
    overflow: hidden;
    padding-left: 0;
    padding-right: 0;
    background: linear-gradient(to bottom, #fff 50%, var(--vert) 50%);
}

/* Image de fond — sélecteur à 2 classes pour battre .container{padding}
   de Bootstrap quelle que soit l'ordre de chargement des feuilles */
.ev-det-hero.container-fluid .ev-det-hero-img.container {
    position: absolute;
    inset: 0;
    padding: 0;
}

.ev-det-hero-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ev-det-hero-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0), rgba(10,9,9,0.62));
    pointer-events: none;
}

.ev-det-date-badge {
    position: absolute;
    left: 12px;
    top: 0;
    width: auto;
    background: var(--rose);
    border-radius: 14px;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    display: flex;
    flex-direction: row;
    z-index: 2;
    overflow: hidden;
}

/* Centrée à partir de 576px (medium/large déjà centrés avant) ;
   en dessous, reste calée à gauche comme à l'origine. */
@media (min-width: 576px) {
    .ev-det-date-badge {
        left: 50%;
        transform: translateX(-50%);
    }
}

.ev-det-date-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 64px;
    padding: 24px 8px;
}

.ev-det-date-item + .ev-det-date-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 18px;
    bottom: 18px;
    width: 2px;
    background: rgb(255, 255, 255);
}

.ev-det-date-day {
    font-family: var(--fb);
    font-weight: 800;
    font-size: 23px;
    color: #fff;
    text-align: center;
    line-height: 1;
}

.ev-det-date-month,
.ev-det-date-year {
    font-family: var(--fb);
    font-weight: 800;
    font-size: 14px;
    color: #fff;
    text-transform: uppercase;
    text-align: center;
    line-height: 1.25;
}

/* Barre navigation Retour | Précédent | Suivant */
.ev-det-navbar {
    position: absolute;
    bottom: 50px;
    left: 10px;
    right: 10px;
    height: 38px;
    background: #fff;
    display: flex;
    align-items: center;
    border-radius: 20px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.22);
    overflow: hidden;
    z-index: 3;
}

.ev-det-nav-item {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    text-decoration: none;
    color: var(--vert);
    font-family: var(--fb);
    font-size: 10px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    padding: 4px 6px;
    min-width: 0;
    white-space: nowrap;
}

.ev-det-nav-item svg { flex-shrink: 0; stroke: #fff; }

.ev-det-nav-item:hover { color: #00753C; }
.ev-det-nav-item:hover svg { stroke: #00753C; }

.ev-det-nav-item span {
    display: block;
    text-align: start;
}

.ev-det-nav-sep {
    width: 1px;
    height: 20px;
    background: var(--rose);
    flex-shrink: 0;
}

.ev-det-nav-disabled {
    opacity: 0.65;
    cursor: default;
}

@media (max-width: 449px) {
    .ev-det-nav-item { white-space: normal; }
}

/* ── Menu haut droite ────────────────────────────────────────── */
.ev-det-topnav {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 4;
}

/* Burger button */
.ev-det-burger {
    background: #fff;
    border: none;
    border-radius: 10px;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 8px;
    line-height: 0;
}

.ev-det-burger:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

/* Panneau menu mobile (overlay) — même style que le header standard :
   .nav-menu-deco / .nav-menu-close / .site-nav-list / .nav-menu-bottom-deco
   sont définis globalement dans header.css, réutilisés tels quels ici. */
.ev-det-menu-panel {
    position: fixed;
    inset: 0;
    background: var(--vert);
    z-index: 1100;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.ev-det-menu-panel.is-open {
    display: flex;
}

.ev-det-white-wrap {
    margin-bottom: 40px;
}

.ev-det-card-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    line-height: 0;
    transition: opacity 0.2s;
}

.ev-det-card-arrow:hover { opacity: 0.7; }

.ev-det-card-arrow--prev { left: 6px; }
.ev-det-card-arrow--next { right: 6px; }

/* ══════════════════════════════════════════════════════════════
   2. FOND VERT (contient info-card + tout le contenu)
   ══════════════════════════════════════════════════════════════ */
.ev-det-green-wrap {
    background: var(--vert);
}

/* ══════════════════════════════════════════════════════════════
   3. CARTE INFO (fond blanc, chevauche le héro)
   ══════════════════════════════════════════════════════════════ */
.ev-det-info-card {
    position: relative;
    z-index: 2;
    margin: -40px var(--pad) 0;
    background: #fff;
    border-radius: var(--r);
    box-shadow: 0 0 18px rgba(0,0,0,0.28);
    padding: 18px 52px 22px !important;
}

.ev-det-title {
    font-family: var(--ft);
    font-size: 28px;
    color: #000;
    text-align: center;
    margin: 0 0 14px;
    line-height: 1.05;
    font-weight: 400;
}

/* Tags catégories + post_tags */
.ev-det-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
    justify-content: center;
}

.ev-det-tag {
    font-family: var(--fb);
    font-size: 14px;
    font-weight: 600;
    padding: 2px 10px;
    border-radius: 3px;
    border: 1.5px solid;
    line-height: 1.5;
}

.ev-det-tag--filled {
    background: var(--vert);
    color: #fff;
    border-color: var(--vert);
}

.ev-det-tag--outline {
    background: #fff;
    color: var(--vert);
    border-color: var(--vert);
}

/* Ville */
.ev-det-location {
    font-family: var(--fb);
    font-size: 14px;
    color: var(--vert);
    text-align: center;
    margin: 0 0 6px;
    font-weight: 500;
}

/* PMR */
.ev-det-pmr {
    font-family: var(--fb);
    font-size: 13px;
    color: var(--rose);
    text-align: center;
    margin: 0 0 16px;
    font-weight: 500;
    line-height: 1.3;
}

/* Bouton + icône localiser */
.ev-det-localiser-row {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 6px;
}

.ev-det-localiser-icon {
    position: relative;
    left: 17px;
    width: 44px;
    object-fit: contain;
    flex-shrink: 0;
}

.ev-det-btn-localiser {
    display: inline-block;
    background: var(--rose);
    color: #fff;
    font-family: var(--fb);
    font-size: 15px;
    font-weight: 600;
    padding: 11px 20px;
    border-radius: var(--r);
    text-decoration: none;
    text-align: center;
    flex: 1;
    max-width: 220px;
}


/* ══════════════════════════════════════════════════════════════
   4. SECTION VERTE : pictos, tags, chiens, horaires, description
   ══════════════════════════════════════════════════════════════ */
.ev-det-green-content {
    padding: 24px var(--pad) 0;
    gap: 10px 20px;
    text-align: center;
}

/* Mobile/tablette : colonne alignée à gauche avec gap (pictos/tags
   restent sur une seule ligne chacun, voir plus bas) */
.ev-det-green-content-row {
    /* display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 12px; */
}

/* Desktop : ligne unique centrée */
@media (min-width: 992px) {
    /* .ev-det-green-content-row {
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 30px;
    } */
}

/* Description occupe toute la largeur */
.ev-det-description {
    flex: 0 0 100%;
}


/* Pictos produits — une seule ligne (pas de retour) sur petits écrans */
.ev-det-pictos {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-bottom: 15px;
}

.ev-det-picto {
    width: 60px;
    aspect-ratio: 1 / 1;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ev-det-picto img,
.ev-det-picto svg {
    display: block;
    max-width: 85%;
    max-height: 85%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.ev-det-picto svg * {
    stroke: #fff !important;
}

/* Formes avec un fill explicite dans le SVG source (ex. disque de masquage
   derrière un motif décoratif) : repeindre dans le vert de fond plutôt que de
   les laisser transparentes, sinon elles ne masquent plus ce qu'il y a derrière. */
.ev-det-picto svg [fill]:not([fill="none"]) {
    fill: var(--vert) !important;
}

/* Tags sur fond vert — une seule ligne (pas de retour) sur petits écrans */
.ev-det-green-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-bottom: 15px;
}

.ev-det-gtag--filled {
    color: var(--vert);
    border: 1.5px solid #fff;
    background: #fff;
    font-family: var(--fb);
    font-size: 14px;
    font-weight: 600;
    padding: 2px 12px;
    border-radius: 3px;
    line-height: 1.5;
}

.ev-det-gtag--outline {
    background: #fff;
    border: 1.5px solid #fff;
    color: var(--vert);
    font-family: var(--fb);
    font-size: 14px;
    font-weight: 600;
    padding: 2px 12px;
    border-radius: 3px;
    line-height: 1.5;
}

/* Chiens acceptés */
.ev-det-chiens {
    text-align: center;
    /* display: flex;
    align-items: center;
    gap: 10px; */
    margin-bottom: 0;
    font-family: var(--fb);
    font-size: 16px;
    color: #fff;
    font-weight: 500;
}

/* Horaires (couleur/alignement de base = fond vert, texte blanc ;
   la version "cadre blanc + texte rose" arrive à partir de 992px,
   voir @media plus bas) */
.ev-det-time {
    font-family: var(--fb);
    font-size: 24px;
    font-weight: 500;
    color: #fff;
    margin: 0;
    line-height: 1.2;
    white-space: nowrap;
}

.ev-det-modalites {
    max-width: 700px;
    margin: auto;
    color: var(--jaune);
    font-family: var(--fb);
    font-size: 15px;
    line-height: 1.55;
    margin-top: 16px;
}

.ev-det-modalites strong {
    font-weight: 700;
}

.ev-det-flyer {
    max-width: 700px;
    margin: auto;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 10px;
    margin-top: 14px;
    color: #fff;
    font-family: var(--fb);
    font-size: 15px;
    line-height: 1.55;
    text-align: left;
}

.ev-det-flyer-icon {
    flex-shrink: 0;
    margin-top: 2px;
}

.ev-det-flyer-text p { margin: 0; }

.ev-det-ouverte {
    max-width: 700px;
    margin: auto;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 10px;
    margin-top: 14px;
    color: #fff;
    font-family: var(--fb);
    font-size: 15px;
    line-height: 1.55;
}

/* Base (mobile-first, comme à l'origine) : dates à même le fond vert,
   séparées par un tiret, plus une barre blanche sous la liste. Le cadre
   blanc + traits verticaux + espacement responsive n'arrivent qu'à
   partir de 992px, voir @media plus bas. */
.ev-det-dates-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
}

.ev-det-time-item {
    display: flex;
    flex-direction: column;
}

.ev-det-time-item + .ev-det-time-item::before {
    content: '–';
    position: absolute;
    margin-left: -1.2rem;
    color: rgba(255, 255, 255, 0.6);
}

.ev-det-time-date {
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    text-transform: capitalize;
    opacity: 0.85;
    margin-bottom: 2px;
}

.ev-det-time-sep {
    width: 85px;
    height: 3px;
    background: rgb(255, 255, 255);
    border-radius: 2px;
    margin: 12px 0;
}

/* ── Desktop (≥992px) uniquement : cadre blanc, texte rose, un
   .ev-det-time-item par date existante (1, 2, 3...) séparés par un
   trait vertical — avec une seule date, pas de trait du tout, même
   principe que le badge date du héro plus haut. ── */
@media (min-width: 992px) {
    /* Colonnes de largeur égale (flex:1) plutôt qu'un espacement calculé
       (space-between/gap) : la répartition ne dépend plus de la longueur
       du texte de chaque date, et le trait (left:0) tombe alors pile à
       la frontière entre deux colonnes, quel que soit leur contenu. */
    .ev-det-dates-list {
        max-width: 1200px;
        margin: 20px auto;
        background: #fff;
        border-radius: var(--r);
        overflow: hidden;
    }

    .ev-det-time-item {
        position: relative;
        flex: 1;
        align-items: center;
        padding: 20px 12px;
    }

    .ev-det-time-item + .ev-det-time-item::before {
        content: '';
        margin-left: 0;
        left: 0;
        top: 14px;
        bottom: 14px;
        width: 2px;
        background: var(--rose);
    }

    .ev-det-time-date {
        font-size: 18px;
        color: var(--rose);
        opacity: 1;
        text-align: center;
    }

    .ev-det-time {
        font-size: 20px;
        color: var(--rose);
        text-align: center;
    }

    .ev-det-time-dash,
    .ev-det-time-sep {
        display: none;
    }
}

/* Assez de place à partir de 1200px : padding plus généreux */
@media (min-width: 1200px) {
    .ev-det-time-item {
        padding: 24px 20px;
    }

    .ev-det-time-date { font-size: 20px; }
}


/* Contenu / description */
.ev-det-description {
    font-family: var(--fb);
    font-size: 16px;
    color: #fff;
    line-height: 1.65;
    margin: 20px;
}

.ev-det-description p { margin: 0 0 1em; }
.ev-det-description p:last-child { margin-bottom: 0; }

.ev-det-description h2,
.ev-det-description h3,
.ev-det-description h4 {
    color: #fff;
    font-family: var(--fb);
    font-weight: 700;
    margin: 1.2em 0 0.6em;
    padding-bottom: 10px;
}

.ev-det-description h2::after,
.ev-det-description h3::after,
.ev-det-description h4::after,
.ev-det-struct-title::after {
    content: '';
    display: block;
    width: 85px;
    height: 3px;
    background: rgb(255, 255, 255);
    border-radius: 2px;
    margin-top: 12px;
}

/* ══════════════════════════════════════════════════════════════
   5. LABELS ET CERTIFICATIONS
   ══════════════════════════════════════════════════════════════ */
.ev-det-labels {
    position: relative;
    padding: 0 10px;
    bottom: -100px;
    z-index: 2;
    max-width: 700px !important;
    margin-left: auto;
    margin-right: auto;
}

.ev-det-labels-pill {
    display: flex;
    justify-content: center;
    margin-bottom: -12px;
    position: relative;
    z-index: 1;
}

.ev-det-labels-pill span {
    background: var(--rose);
    border-radius: 40px;
    padding: 4px 20px;
}

.ev-det-labels-pill span {
    font-family: var(--ft);
    font-size: 17px;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.ev-det-labels-card {
    background: #fff;
    border-radius: var(--r);
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
    min-height: 86px;
    position: relative;
    z-index: 0;
}

.ev-det-label-logo {
    max-width: 80px;
    max-height: 68px;
    object-fit: contain;
    display: block;
}

/* ══════════════════════════════════════════════════════════════
   6. GALERIE PHOTOS
   ══════════════════════════════════════════════════════════════ */
.ev-det-gallery {
    padding: 0px 6px 0 6px;
}

.ev-det-gallery-swiper {
    border-radius: var(--r);
    overflow: hidden;
    position: relative;
}

.ev-det-gallery-slide {
    height: 248px;
    position: relative;
}

.ev-det-gallery-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    cursor: zoom-in;
}

.ev-det-gallery-slide::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0), rgba(10,9,9,0.62));
    pointer-events: none;
}

.ev-det-gallery-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
    color: #fff;
    line-height: 1;
}

.ev-det-gallery-btn--prev { left: 18px; }
.ev-det-gallery-btn--next { right: 18px; }

/* ══════════════════════════════════════════════════════════════
   7. COORDONNÉES + SITE WEB
   ══════════════════════════════════════════════════════════════ */
.ev-det-contact {
    position: relative;
    z-index: 2;
    bottom: -90px;
    max-width: 700px !important;
    margin: 0 auto;
    border-radius: var(--r);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
}

@media (min-width: 768px) {
    .ev-det-contact {
        bottom: -50px;
    }
}

.ev-det-contact-box {
    background: #fff;
    border-radius: var(--r);
    padding: 16px;
    text-align: center;
}
.ev-det-contact-box h3{
    color:var(--rose);
    font-family: var(--ft);
}

.ev-det-contact-box p,
.ev-det-contact-box a {
    font-family: var(--fb);
    font-size: 14px;
    color: var(--vert);
    margin: 0 0 3px;
    text-decoration: none;
    line-height: 1.6;
    display: block;
    font-weight: 500;
}

.ev-det-contact-box a:hover { text-decoration: underline; }

.ev-det-contact-box .ev-det-btn-website {
    display: block;
    width: fit-content;
    margin: 15px auto;
    background: var(--vert);
    color: #fff;
    font-family: var(--fb);
    font-size: 16px;
    font-weight: 600;
    padding: 12px 32px;
    border-radius: var(--r);
    text-decoration: none;
    /* border: 2px solid rgba(255,255,255,0.4); */
}

.ev-det-contact-box .ev-det-btn-website:hover {
    opacity: 0.9;
    text-decoration: none;
}

/* Réseaux sociaux événement */
.ev-det-reseaux {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 50px;
    padding: 12px 0 4px;
}

.ev-det-reseau-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    position: relative;
    border-radius: 12px;
    transition:
        transform .3s ease,
        background .25s ease,
        box-shadow .3s ease,
        color .25s ease;
}

.ev-det-contact-box .ev-det-reseau-link {
    display: flex;
    color: var(--vert);
    font-size: 28px;
}

.ev-det-contact-box .ev-det-reseau-link:hover{
    text-decoration: none;
}

/* Anneau qui pulse au survol */
.ev-det-reseau-link::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 12px;
    border: 2px solid currentColor;
    opacity: 0;
    pointer-events: none;
}

.ev-det-reseau-link:hover::before {
    animation: ev-social-ring .7s ease-out;
}

@keyframes ev-social-ring {
    0%   { opacity: .55; transform: scale(1);   }
    100% { opacity: 0;   transform: scale(1.8); }
}

.ev-det-reseau-link:hover {
    transform: translateY(-5px) scale(1.15) rotate(-6deg);
    background: var(--vert);
    color: #fff;
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.25);
}

/* Les voisins se rétrécissent légèrement */
.ev-det-reseaux:has(.ev-det-reseau-link:hover) .ev-det-reseau-link:not(:hover) {
    transform: scale(.9);
}

@media (prefers-reduced-motion: reduce) {
    .ev-det-reseau-link,
    .ev-det-reseau-link::before { transition: none; animation: none; }
    .ev-det-reseau-link:hover   { transform: none; }
}

.ev-det-reseau-link img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════════ */
@media (min-width: 540px) {
    .ev-det-page  { max-width: 600px; }
    .ev-det-gallery-slide { height: 320px; }
    .ev-det-date-month,
    .ev-det-date-year  { font-size: 20px; }
    
}

@media (min-width: 576px) {
    .ev-det-navbar {
        margin-left: calc(50% - 280px);
        margin-right: calc(50% - 280px);
    }
    
}

/* ── Pictos : grid sur mobile/tablette ───────────────────── */
@media (max-width: 991px) {
    /* .ev-det-pictos {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
        gap: 12px;
    }

    .ev-det-picto {
        width: 100%;
    } */
}

/* ── Tablette (768px) ─────────────────────────────────────── */
@media (min-width: 768px) {
    .ev-det-page { max-width: 720px; }

    .ev-det-navbar {
        left: 16px;
        right: 16px;
        height: 44px;
        margin-left: calc(50% - 375px);
        margin-right: calc(50% - 375px);
    }

    .ev-det-nav-item { font-size: 16px; gap: 7px; }
}

/* ── Desktop (992px+) — header du site remplace la navbar ─── */
@media (min-width: 992px) {
    .ev-det-page  { max-width: 100%; }
    .ev-det-title { font-size: 34px; }

    .ev-det-info-card {
        max-width: 700px !important;
        margin-left: auto;
        margin-right: auto;
    }

    /* La navbar du héro est remplacée par le header du site */
    .ev-det-navbar {
        margin-left: calc(50% - 365px);
        margin-right: calc(50% - 365px);
    }

    .ev-det-hero.container-fluid .ev-det-hero-img.container {
        position: relative;
        inset: auto;
        height: 100%;
        border-radius: 20px;
        overflow: hidden;
    }

    .ev-det-date-item  { min-width: 120px; }
    .ev-det-date-month,
    .ev-det-date-year  { font-size: 23px; }

    .ev-det-gallery-slide { height: 420px; }

    .ev-det-green-content {
        gap: 12px 24px;
    }

    /* ── Polices desktop ── */
    .ev-det-title          { font-size: 38px; }
    .ev-det-location       { font-size: 18px; }
    .ev-det-pmr            { font-size: 18px; }
    .ev-det-btn-localiser  { font-size: 17px; padding: 13px 28px; }

    .ev-det-gtag--filled,
    .ev-det-gtag--outline  { font-size: 15px; padding: 3px 14px; }
    .ev-det-chiens         { font-size: 18px; }
    .ev-det-description    { font-size: 17px; }

    .ev-det-description h2 { font-size: 22px; }
    .ev-det-description h3 { font-size: 20px; }
    .ev-det-description h4 { font-size: 18px; }

    .ev-det-labels-pill span { font-size: 19px; }

    .ev-det-contact-box a,
    .ev-det-contact-box p  { 
        font-size: 18px; 
        color: #000;
        line-height: 1.2;
    }
    .ev-det-btn-website    { font-size: 17px; }

    .ev-det-tel-ev,
    .ev-det-email-ev       { font-size: 15px; }
}

/* ── Large (1200px+) ──────────────────────────────────────── */
@media (min-width: 1200px) {


    .ev-det-info-card,
    .ev-det-labels {
        max-width: 820px;
        margin-left: auto;
        margin-right: auto;
    }

    /* ── Polices xl ── */
    .ev-det-title          { font-size: 44px; }
    .ev-det-description { 
        max-width: 700px;
        margin: auto;
        font-size: 16px; 
        text-align: justify;
    }

    .ev-det-description h2 { font-size: 24px; }
    .ev-det-description h3 { font-size: 22px; }
    .ev-det-description h4 { font-size: 20px; }
}

.ev-det-sm {
    padding: 200px var(--pad) 50px;
}


.ev-det-sm-header {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.ev-det-sm-title {
    font-family: var(--ft);
    font-size: 43px;
    font-weight: 400;
    text-transform: uppercase;
    color: var(--rose);
    margin: 0;
    line-height: 1.1;
}

.ev-det-sm-badge {
    background: var(--vert);
    color: #fff;
    font-family: var(--fb);
    font-size: 13px;
    font-weight: 700;
    padding: 4px 14px;
    border-radius: 4px;
}

.ev-det-sm-box {
    padding: 14px 0;
    margin-bottom: 16px;
}

.ev-det-sm-box p {
    font-family: var(--fb);
    font-size: 17px;
    font-weight: 500;
    color: #000;
    margin: 0 0 4px;
    line-height: 1.5;
}

.ev-det-sm-box p:last-child { margin-bottom: 0; }

.ev-det-sm-box a {
    color: inherit;
    text-decoration: none;
}

.ev-det-sm-desc {
    border-top: 2px solid var(--vert);
    font-size: 17px;
    color: #000;
    line-height: 1.6;
}

.ev-det-sm-labels h3 {
    font-family: var(--ft);
    font-size: 25px;
    font-weight: 400;
    color: var(--vert);
    text-transform: uppercase;
    margin: 0 0 10px;
}

.ev-det-sm-labels-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.ev-det-sm-labels-row img {
    max-width: 70px;
    max-height: 70px;
    object-fit: contain;
    display: block;
}

/* Carte Leaflet : hauteur explicite obligatoire pour que la lib s'affiche.
   .row Bootstrap est flex avec align-items:stretch par défaut, donc sa
   colonne (.col-md-6) prend déjà la hauteur de la ligne la plus haute ;
   height:100% ici étire la carte jusqu'à cette hauteur plutôt qu'une
   valeur fixe, avec un plancher au cas où la colonne serait très courte. */
.ev-det-sm-map {
    width: 100%;
    height: 100%;
    min-height: 220px;
    border-radius: var(--r);
    margin-bottom: 16px;
}

.ev-det-sm-gallery {
    border-radius: var(--r);
    overflow: hidden;
}

.ev-det-sm-gallery-slide {
    height: 320px;
}

.ev-det-sm-gallery-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    cursor: zoom-in;
}

/* ── Lightbox : agrandissement des photos de galerie ─────────── */
.ev-det-lightbox {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, .85);
}

.ev-det-lightbox[hidden] {
    display: none;
}

.ev-det-lightbox-img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
}

.ev-det-lightbox-close {
    position: absolute;
    top: 16px;
    right: 24px;
    border: 0;
    background: none;
    color: #fff;
    font-size: 40px;
    line-height: 1;
    cursor: pointer;
}

.ev-det-sm { display: none; }

@media (min-width: 768px) {
    .ev-det-sm { display: block; }
}

.ev-det-struct-wrap,
.ev-det-struct-gallery-wrap {
    display: block;
}

@media (min-width: 768px) {
    .ev-det-struct-wrap,
    .ev-det-struct-gallery-wrap {
        display: none;
    }
}

.ev-det-struct-wrap {
    background: var(--rose);
    padding-bottom: 28px;
    padding-top: 120px;
}

.ev-det-struct-header {
    max-width: 700px !important;
    padding: 0;
}

.ev-det-struct-title {
    font-family: var(--fb);
    font-weight: 700;
    font-size: 28px;
    color: #fff;
    margin: 0;
}

.ev-det-struct-info {
    max-width: 700px !important;
    padding: 12px var(--pad) 20px;
    font-size: 18px;
    display: flex;
    flex-direction: column;
}

.ev-det-struct-desc {
    font-family: var(--fb);
    color: #fff;
    line-height: 1.55;
    margin-bottom: 14px;
}

.ev-det-btn-more {
    display: inline-flex;
    align-self: flex-end;
    align-items: center;
    gap: 6px;
    font-family: var(--fb);
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Labels sur fond rose : carte blanche */
.ev-det-struct-wrap .ev-det-labels {
    border-radius: var(--r);
    overflow: hidden;
}

.ev-det-struct-wrap .ev-det-labels-pill {
    color: #fff;
}

.ev-det-struct-wrap .ev-det-labels-card {
    background: #fff;
}

/* Galerie structure : pleine largeur écran */
.ev-det-struct-wrap .ev-det-gallery {
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    max-width: none !important;
    padding: 0;
    margin: 0;
}

/* ══════════════════════════════════════════════════════════════
   SECTION STRUCTURE — fond blanc
   ══════════════════════════════════════════════════════════════ */
.ev-det-struct-gallery-wrap {
    max-width: 700px !important;
    background: var(--blanc);
    padding: 28px;
}

