/* ================================================================
   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;
    --pad:   11px;
    --r:     10px;
    --ft:    'Boogaloo', 'Arial Rounded MT Bold', sans-serif;
    --fb:    system-ui, -apple-system, 'Segoe UI', sans-serif;
}

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

/* ══════════════════════════════════════════════════════════════
   1. HÉRO : image + badge date + barre navigation
   ══════════════════════════════════════════════════════════════ */
.ev-det-hero {
    position: relative;
    height: 300px;
    overflow: hidden;
}

/* Image de fond */
.ev-det-hero-img {
    position: absolute;
    inset: 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;
}

/* Badge date rose — carré arrondi en haut à gauche */
.ev-det-date-badge {
    position: absolute;
    left: 12px;
    top: -12px;
    width: 88px;
    background: var(--rose);
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
    z-index: 2;
    padding: 14px 8px;
}

.ev-det-date-day {
    font-family: var(--fb);
    font-weight: 800;
    font-size: 44px;
    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: 18px;
    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: rgba(255,255,255,0.92);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    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: var(--rose); }

.ev-det-nav-item:hover { color: var(--vert); }
.ev-det-nav-item:hover svg { stroke: var(--vert); }

.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;
}

/* ── 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) */
.ev-det-menu-panel {
    position: fixed;
    inset: 0;
    background: var(--vert);
    z-index: 1100;
    display: none;
    flex-direction: column;
    padding: 24px 24px 40px;
    overflow-y: auto;
}

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

.ev-det-menu-close {
    align-self: flex-end;
    background: none;
    border: 2px solid rgba(255,255,255,0.5);
    border-radius: 8px;
    color: #fff;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin-bottom: 32px;
    flex-shrink: 0;
}

.ev-det-panel-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ev-det-panel-list .menu-item a {
    display: block;
    color: #fff;
    font-size: 22px;
    font-weight: 600;
    padding: 14px 0;
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    line-height: 1.2;
}

.ev-det-panel-list .menu-item:first-child a { border-top: 1px solid rgba(255,255,255,0.2); }
.ev-det-panel-list .menu-item a:hover { color: rgba(255,255,255,0.75); }

/* Nav liens desktop (dans le héro) */
.ev-det-desknav-list {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.ev-det-desknav-list .menu-item a {
    display: block;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    padding: 8px 14px;
    border-radius: 6px;
    text-decoration: none;
    background: rgba(255,255,255,0.18);
    white-space: nowrap;
    transition: background 0.15s;
}

.ev-det-desknav-list .menu-item a:hover,
.ev-det-desknav-list .menu-item.current-menu-item a {
    background: rgba(255,255,255,0.32);
}

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

/* ══════════════════════════════════════════════════════════════
   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 20px 22px;
}

.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: 12px;
    width: 34px;
    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) 20px;
    gap: 10px 20px;
}

/* Mobile/tablette : colonne avec gap */
.ev-det-green-content-row {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 12px;
}

/* Desktop : ligne unique avec espace entre */
@media (min-width: 992px) {
    .ev-det-green-content-row {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 50px;
    }
}

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


/* Pictos produits */
.ev-det-pictos {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 0;
}

.ev-det-picto {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ev-det-picto img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

/* Tags sur fond vert */
.ev-det-green-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 0;
}

.ev-det-gtag--filled {
    background: var(--vert);
    border: 1.5px solid #fff;
    color: #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 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 0;
    font-family: var(--fb);
    font-size: 16px;
    color: #fff;
    font-weight: 500;
}

/* Horaires */
.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-time-sep {
    width: 85px;
    height: 3px;
    background: rgb(255, 255, 255);
    border-radius: 2px;
    margin: 12px 0;
}


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

.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 {
    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: -50px;
    z-index: 2;
}

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

.ev-det-labels-pill span {
    background: var(--vert);
    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;
    position: relative;
    bottom: -30px;
}

.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;
}

.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 {
    padding: 50px 0;
}

.ev-det-contact-box {
    background: #fff;
    border-radius: var(--r);
    padding: 16px;
    text-align: center;
    margin-bottom: 16px;
}

.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-btn-website {
    display: block;
    width: fit-content;
    margin: 0 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-btn-website:hover { opacity: 0.9; }

/* 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;
    transition: opacity 0.2s;
}

.ev-det-reseau-link:hover { opacity: 0.75; }

.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-badge { width: 100px; }
    .ev-det-date-day   { font-size: 52px; }
    .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);
    }
    
}

/* ── 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: 12px; 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,
    .ev-det-labels,
    .ev-det-gallery {
        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-date-badge {
        left: calc(50% - 480px + 16px);
        width: 110px;
    }

    .ev-det-date-day   { font-size: 60px; }
    .ev-det-date-month,
    .ev-det-date-year  { font-size: 22px; }

    .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: 16px; }
    .ev-det-pmr            { font-size: 15px; }
    .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-time           { font-size: 28px; }
    .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 p,
    .ev-det-contact-box a  { font-size: 15px; }
    .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-date-badge {
        left: calc(50% - 570px + 16px);
    }

    .ev-det-info-card,
    .ev-det-labels,
    .ev-det-gallery {
        max-width: 820px;
    }

    /* ── Polices xl ── */
    .ev-det-title          { font-size: 44px; }
    .ev-det-time           { font-size: 32px; }
    .ev-det-description    { font-size: 18px; }

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