/* =========================================================
   Miss Gabon Maroc — feuille de style principale
   Palette : vert émeraude, or brillant, ivoire, anthracite
   Mobile first
   ========================================================= */

:root {
    /* Couleurs officielles */
    --emeraude: #0B6B4F;
    --emeraude-fonce: #064534;
    --emeraude-nuit: #052A20;
    --or: #E8C547;
    --or-clair: #F7E9A0;
    --or-fonce: #B8912A;
    --ivoire: #FBF8F1;
    --creme: #F2EBDD;
    --anthracite: #1A1C1B;
    --gris: #6B6F6D;
    --blanc: #FFFFFF;

    /* L'ombre dit l'importance, elle n'est pas décorative */
    --ombre-portrait: 0 22px 48px -12px rgba(5, 42, 32, .28);
    --ombre-carte: 0 1px 2px rgba(5, 42, 32, .06);
    --ombre-flottante: 0 30px 60px -20px rgba(5, 42, 32, .35);
    --ombre: 0 18px 40px rgba(5, 42, 32, .12);

    --rayon: 0;
    --largeur: 1180px;
    --marge-laterale: 1.06rem;
    --transition: .35s cubic-bezier(.22, .61, .36, 1);

    /* Hauteur du logo dans la barre de navigation */
    --logo-hauteur: 46px;
    --logo-hauteur-desktop: 58px;
}

@media (min-width: 720px)  { :root { --marge-laterale: 2.6rem; } }
@media (min-width: 1060px) { :root { --marge-laterale: 3.5rem; } }
@media (min-width: 1400px) { :root { --marge-laterale: 4rem;   } }

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
    font-size: 17px;
    line-height: 1.7;
    color: var(--anthracite);
    background: var(--ivoire);
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--emeraude); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--or-fonce); }

/* ---------- Typographie ---------- */

h1, h2, h3, h4, .serif {
    font-family: 'EB Garamond', 'Georgia', serif;
    font-weight: 600;
    line-height: 1.15;
    margin: 0 0 .5em;
}

/* Titres en capitales, comme sur les visuels officiels.
   L'interlettrage compense la densité des majuscules. */
h1, h2 {
    text-transform: uppercase;
    letter-spacing: .06em;
    line-height: 1.12;
}

h3, h4 {
    text-transform: uppercase;
    letter-spacing: .04em;
}

h1 { font-size: clamp(2rem, 6.4vw, 3.9rem); }
h2 { font-size: clamp(1.6rem, 4.2vw, 2.6rem); }
h3 { font-size: clamp(1.05rem, 2.4vw, 1.3rem); }

/* EB Garamond a de vraies ligatures et des chiffres elzéviriens */
h1, h2, h3, .serif, .citation, .jalon-annee, .prix, .chiffre strong {
    font-feature-settings: 'liga' 1, 'dlig' 1, 'kern' 1;
    font-variant-numeric: oldstyle-nums;
}

p { margin: 0 0 1.1em; max-width: 72ch; hyphens: auto; -webkit-hyphens: auto; }

:focus-visible {
    outline: 3px solid var(--or);
    outline-offset: 3px;
}

/* ---------- Structure ---------- */

.conteneur {
    width: 100%;
    max-width: var(--largeur);
    margin-inline: auto;
    padding-inline: var(--marge-laterale);
}

.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }

/* Une section sur fond sombre est plus dense, elle a besoin de moins d'air */
.section-emeraude {
    background: var(--emeraude-nuit);
    color: var(--creme);
    padding-block: clamp(2.5rem, 5vw, 4rem);
}
.section-emeraude h2, .section-emeraude h3 { color: var(--blanc); }
.section-creme { background: var(--creme); }

/* Deux sections de même fond qui se suivent ne redoublent pas la marge */
.section-creme + .section-creme { padding-top: 0; }

/* Le premier bloc après le hero est plus long : il pose le récit */
.hero + .section { padding-top: clamp(4rem, 9vw, 7rem); }

/* Filet doré : séparateur signature du site, de longueur variable selon le contexte */
.filet {
    width: 64px;
    height: 2px;
    background: linear-gradient(90deg, var(--or-fonce), var(--or-clair), var(--or));
    box-shadow: 0 0 10px rgba(232, 197, 71, .5);
    border: 0;
    margin: 0 0 1.6rem;
}
.filet-centre { margin-inline: auto; }
.section-emeraude .filet { width: 96px; }
.entete-page .filet { width: 40px; }

.titre-section { margin-bottom: 2rem; }
.chapeau { font-size: 1.06rem; color: var(--gris); max-width: 62ch; hyphens: auto; }
.section-emeraude .chapeau { color: rgba(251, 248, 241, .8); }

/* ---------- Barre de navigation ---------- */

/* ---------- Barre de navigation ---------- */

.entete {
    position: sticky;
    top: 0;
    z-index: 200;
    background: rgba(5, 42, 32, .97);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(232, 197, 71, .22);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    min-height: 78px;
}

.logo { display: flex; align-items: center; color: var(--blanc);    --logo-hauteur: 50px;
    --logo-hauteur-desktop: 50px; }
.logo img {
    height: var(--logo-hauteur);
    width: auto;
    max-width: 200px;
    object-fit: contain;
    transition: opacity var(--transition);
}
.logo:hover img { opacity: .85; }

/* --- Rubriques principales --- */

.nav-principal {
    display: none;
    align-items: center;
    gap: .25rem;
    list-style: none;
    margin: 0 auto 0 0;
    padding: 0 0 0 2.5rem;
}

.nav-principal > li > a,
.nav-principal > li > button {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .6rem .95rem;
    font-family: 'Nunito', sans-serif;
    font-size: .9rem;
    font-weight: 600;
    letter-spacing: .02em;
    color: rgba(251, 248, 241, .86);
    background: none;
    border: 0;
    cursor: pointer;
    position: relative;
}

/* Le soulignement doré naît du centre : discret, il signale sans clignoter */
.nav-principal > li > a::after,
.nav-principal > li > button::after {
    content: '';
    position: absolute;
    left: .95rem; right: .95rem;
    bottom: .25rem;
    height: 1px;
    background: var(--or);
    transform: scaleX(0);
    transition: transform .3s cubic-bezier(.22, .61, .36, 1);
}
.nav-principal > li > a:hover::after,
.nav-principal > li > button:hover::after,
.nav-principal > li > a.actif::after,
.nav-principal > li > button.actif::after { transform: scaleX(1); }

.nav-principal > li > a:hover,
.nav-principal > li > button:hover,
.nav-principal .actif { color: var(--or-clair); }

.nav-principal svg { width: 10px; height: 7px; opacity: .7; transition: transform var(--transition); }
.nav-deroulant:hover svg, .nav-deroulant:focus-within svg { transform: rotate(180deg); }

/* --- Menu déroulant du concours --- */

.nav-deroulant { position: relative; }
.nav-deroulant > ul {
    position: absolute;
    top: calc(100% + .4rem); left: 0;
    min-width: 250px;
    background: #04231B;
    border: 1px solid rgba(232, 197, 71, .25);
    box-shadow: 0 24px 48px -16px rgba(0, 0, 0, .5);
    list-style: none;
    margin: 0; padding: .5rem;
    opacity: 0; visibility: hidden;
    transform: translateY(-6px);
    transition: opacity .25s ease, transform .25s ease, visibility .25s;
}
.nav-deroulant:hover > ul, .nav-deroulant:focus-within > ul {
    opacity: 1; visibility: visible; transform: translateY(0);
}
.nav-deroulant > ul a {
    display: block;
    padding: .6rem .8rem;
    font-size: .89rem;
    color: rgba(251, 248, 241, .82);
}
.nav-deroulant > ul a:hover { color: var(--or-clair); background: rgba(232, 197, 71, .08); }

/* --- Actions du moment --- */

.nav-actions { display: flex; align-items: center; gap: .6rem; }

.nav-action {
    display: none;
    align-items: center;
    gap: .45rem;
    padding: .6rem 1.25rem;
    font-size: .86rem;
    font-weight: 700;
    letter-spacing: .03em;
    white-space: nowrap;
    transition: var(--transition);
}

.nav-action-billet {
    background: linear-gradient(160deg, #F7E9A0 0%, #E8C547 45%, #C9A227 100%);
    color: var(--emeraude-nuit);
    border: 1px solid var(--or-fonce);
    box-shadow: 0 2px 12px rgba(232, 197, 71, .28);
}
.nav-action-billet:hover {
    background: linear-gradient(160deg, #FFF6C9 0%, #F7E9A0 45%, #E8C547 100%);
    color: var(--emeraude-nuit);
    box-shadow: 0 4px 18px rgba(247, 233, 160, .45);
}

.nav-action-vote {
    background: transparent;
    border: 1px solid rgba(232, 197, 71, .5);
    color: var(--or-clair);
}
.nav-action-vote:hover { border-color: var(--or); background: rgba(232, 197, 71, .1); color: var(--or-clair); }

/* La pastille signale un vote en cours, elle bat lentement */
.pastille {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--or);
    box-shadow: 0 0 0 0 rgba(232, 197, 71, .6);
    animation: battement 2.4s ease-out infinite;
}
@keyframes battement {
    0%   { box-shadow: 0 0 0 0 rgba(232, 197, 71, .55); }
    70%  { box-shadow: 0 0 0 7px rgba(232, 197, 71, 0); }
    100% { box-shadow: 0 0 0 0 rgba(232, 197, 71, 0); }
}

/* --- Bouton burger --- */

.burger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 46px; height: 44px;
    padding: 0 11px;
    background: none;
    border: 1px solid rgba(232, 197, 71, .38);
    cursor: pointer;
    transition: border-color var(--transition);
}
.burger:hover { border-color: var(--or); }
.burger span {
    display: block;
    height: 1.5px;
    background: var(--or-clair);
    transition: transform .35s cubic-bezier(.22, .61, .36, 1), opacity .2s ease;
}
.burger span:nth-child(2) { width: 70%; }

.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* --- Panneau déroulant --- */

.panneau {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: #04231B;
    border-bottom: 1px solid rgba(232, 197, 71, .25);
    box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .6);
    max-height: calc(100vh - 78px);
    overflow-y: auto;
    padding: 2.4rem 0 2.8rem;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity .3s ease, transform .35s cubic-bezier(.22, .61, .36, 1);
}
.panneau.ouvert { opacity: 1; transform: translateY(0); }

.panneau-grille {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.panneau-groupe h2 {
    font-family: 'Nunito', sans-serif;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .18em;
    color: var(--or);
    text-transform: uppercase;
    margin: 0 0 .9rem;
    padding-bottom: .6rem;
    border-bottom: 1px solid rgba(232, 197, 71, .2);
}

.panneau-groupe ul { list-style: none; margin: 0; padding: 0; }
.panneau-groupe li { margin-bottom: .1rem; }

.panneau-groupe a {
    display: block;
    padding: .55rem 0;
    font-size: .95rem;
    color: rgba(251, 248, 241, .84);
    border-left: 2px solid transparent;
    padding-left: 0;
    transition: color var(--transition), padding-left var(--transition), border-color var(--transition);
}
.panneau-groupe a:hover {
    color: var(--or-clair);
    border-left-color: var(--or);
    padding-left: .7rem;
}
.panneau-groupe a em {
    display: block;
    font-size: .78rem;
    font-style: italic;
    color: rgba(251, 248, 241, .5);
}
.panneau-tout { color: var(--or) !important; font-weight: 700; font-size: .86rem !important; }

.panneau-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .7rem;
    margin-top: 2.4rem;
    padding-top: 1.8rem;
    border-top: 1px solid rgba(232, 197, 71, .18);
}

.panneau-voile {
    position: fixed;
    inset: 0;
    top: 78px;
    background: rgba(2, 16, 12, .55);
    backdrop-filter: blur(2px);
    z-index: 190;
    opacity: 0;
    transition: opacity .3s ease;
}
.panneau-voile.ouvert { opacity: 1; }

/* --- Paliers --- */

@media (min-width: 620px) {
    .nav-action { display: inline-flex; }
    .panneau-grille { grid-template-columns: repeat(2, 1fr); gap: 2rem 2.5rem; }
}

@media (min-width: 1060px) {
    .nav-principal { display: flex; }
    .logo img { height: var(--logo-hauteur-desktop); }
    .panneau-mobile { display: none; }
    .panneau-grille { grid-template-columns: repeat(4, 1fr); gap: 2.5rem 3rem; }
    .panneau-actions { display: none; }
}

/* ---------- Boutons ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: .85rem 1.7rem;
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
    font-size: .95rem;
    border: 1px solid var(--or-fonce);
    background: linear-gradient(160deg, #F7E9A0 0%, #E8C547 45%, #C9A227 100%);
    color: var(--emeraude-nuit);
    box-shadow: 0 2px 12px rgba(232, 197, 71, .35);
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}
.btn:hover {
    background: linear-gradient(160deg, #FFF6C9 0%, #F7E9A0 45%, #E8C547 100%);
    border-color: var(--or-clair);
    box-shadow: 0 4px 18px rgba(247, 233, 160, .5);
    color: var(--emeraude-nuit);
}

.btn-contour {
    background: transparent;
    border-color: var(--or);
    color: var(--or-clair);
    box-shadow: none;
}
.btn-contour:hover {
    background: linear-gradient(160deg, #F7E9A0, #E8C547);
    color: var(--emeraude-nuit);
}

.btn-emeraude {
    background: var(--emeraude);
    border-color: var(--emeraude);
    color: var(--blanc);
    box-shadow: none;
}
.btn-emeraude:hover { background: var(--emeraude-fonce); border-color: var(--emeraude-fonce); color: var(--blanc); }

.btn-sombre {
    background: transparent;
    border-color: var(--emeraude);
    color: var(--emeraude);
    box-shadow: none;
}
.btn-sombre:hover { background: var(--emeraude); color: var(--blanc); }

.btn-petit { padding: .5rem 1rem; font-size: .84rem; }
.btn-large { width: 100%; }

/* ---------- Hero ---------- */

.hero {
    position: relative;
    min-height: 88vh;
    display: flex;
    align-items: flex-end;
    background: var(--emeraude-nuit);
    overflow: hidden;
    color: var(--blanc);
}

.hero-media { position: absolute; inset: 0; }
.hero-media iframe, .hero-media img, .hero-media video {
    width: 100%; height: 100%;
    object-fit: cover;
    border: 0;
}
.hero-media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(5, 42, 32, .5) 0%, rgba(5, 42, 32, .8) 55%, rgba(5, 42, 32, .97) 100%);
}

.hero-contenu {
    position: relative;
    z-index: 2;
    padding: 4rem 0 3.4rem;
}

.hero-annee {
    font-family: 'EB Garamond', serif;
    font-size: .95rem;
    letter-spacing: .3em;
    color: var(--or-clair);
    text-shadow: 0 0 18px rgba(232, 197, 71, .35);
    margin-bottom: .8rem;
}

.hero h1 { margin-bottom: .2rem; color: var(--blanc); }

/* Le thème de l'édition reste en italique bas-de-casse : c'est une signature, pas un titre */
.hero-theme {
    font-family: 'EB Garamond', serif;
    font-style: italic;
    font-size: clamp(1.4rem, 4vw, 2.3rem);
    color: var(--or-clair);
    text-transform: none;
    letter-spacing: 0;
    text-shadow: 0 0 18px rgba(232, 197, 71, .3);
    margin-bottom: 1rem;
}

.hero-accroche {
    font-size: 1.05rem;
    color: rgba(251, 248, 241, .9);
    max-width: 48ch;
    margin-bottom: 2rem;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: .7rem; }

/* ---------- Grilles ---------- */

.grille { display: grid; gap: 1.6rem; }
.grille-2 { grid-template-columns: 1fr; }
.grille-3 { grid-template-columns: 1fr; }
.grille-4 { grid-template-columns: repeat(2, 1fr); }

/* Deux colonnes inégales : le texte porte, la citation accompagne */
.grille-recit { grid-template-columns: 1fr; }

@media (min-width: 720px) {
    .grille-2 { grid-template-columns: repeat(2, 1fr); }
    .grille-3 { grid-template-columns: repeat(2, 1fr); }
    .grille-4 { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 900px) {
    .grille-recit {
        grid-template-columns: 1.45fr 1fr;
        gap: 4rem;
        align-items: start;
    }
    .grille-recit > :last-child { padding-top: 3.2rem; }
}
@media (min-width: 1000px) {
    .grille-3 { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- Candidates ---------- */

.grille-candidates {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.4rem;
}

/* Les candidates sont le sujet du site : elles seules portent l'ombre */
.carte-candidate {
    position: relative;
    display: block;
    background: var(--blanc);
    box-shadow: var(--ombre-portrait);
    overflow: hidden;
    transition: box-shadow var(--transition);
}
.carte-candidate:hover { box-shadow: var(--ombre-flottante); }
.carte-candidate figure { margin: 0; position: relative; aspect-ratio: 3 / 4; background: var(--creme); }
.carte-candidate img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.carte-candidate:hover img { transform: scale(1.04); }

.carte-candidate .numero {
    position: absolute;
    top: 0; left: 0;
    background: linear-gradient(160deg, #F7E9A0, #E8C547);
    color: var(--emeraude-nuit);
    font-weight: 800;
    font-size: .82rem;
    padding: .35rem .75rem;
}

.carte-candidate .infos {
    padding: 1rem 1.1rem 1.2rem;
    border-top: 2px solid var(--or);
}
.carte-candidate .infos strong {
    display: block;
    font-family: 'EB Garamond', serif;
    font-size: 1.25rem;
    text-transform: uppercase;
    letter-spacing: .03em;
    color: var(--emeraude-fonce);
}
.carte-candidate .infos span { font-size: .86rem; color: var(--gris); }

.badge-titre {
    display: inline-block;
    background: var(--emeraude);
    color: var(--blanc);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .08em;
    padding: .2rem .6rem;
    margin-top: .4rem;
}
.badge-titre.or {
    background: linear-gradient(160deg, #F7E9A0, #E8C547);
    color: var(--emeraude-nuit);
}

/* ---------- Fiche candidate ---------- */

.fiche { display: grid; gap: 2.2rem; grid-template-columns: 1fr; }
@media (min-width: 900px) {
    .fiche { grid-template-columns: 380px 1fr; align-items: start; gap: 3.4rem; }
}
.fiche-portrait { position: relative; }
.fiche-portrait img { width: 100%; aspect-ratio: 3/4; object-fit: cover; box-shadow: var(--ombre-portrait); }
.fiche-portrait .numero {
    position: absolute; top: 0; left: 0;
    background: linear-gradient(160deg, #F7E9A0, #E8C547);
    color: var(--emeraude-nuit);
    font-weight: 800; padding: .5rem 1rem;
}

.fiche-donnees { list-style: none; padding: 0; margin: 1.6rem 0; }
.fiche-donnees li {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: .6rem 0;
    border-bottom: 1px solid rgba(11, 107, 79, .14);
    font-size: .94rem;
}
.fiche-donnees li span:first-child { color: var(--gris); }
.fiche-donnees li span:last-child { font-weight: 700; text-align: right; }

/* Le guillemet ouvrant déborde dans la marge */
.citation {
    position: relative;
    font-family: 'EB Garamond', serif;
    font-style: italic;
    font-size: 1.35rem;
    color: var(--emeraude-fonce);
    border-left: 3px solid var(--or);
    padding-left: 1.2rem;
    text-indent: -.45em;
    margin: 1.6rem 0;
}

.partage { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-top: 1.4rem; }
.partage a {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    border: 1px solid rgba(11, 107, 79, .3);
    padding: .45rem .9rem;
    font-size: .85rem;
}
.partage a:hover { border-color: var(--or); background: var(--or); color: var(--emeraude-nuit); }

/* ---------- Chiffres clés ---------- */

.chiffres {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    background: rgba(232, 197, 71, .45);
    border: 1px solid rgba(232, 197, 71, .45);
}
@media (min-width: 860px) { .chiffres { grid-template-columns: repeat(4, 1fr); } }

.chiffre {
    background: var(--emeraude-nuit);
    padding: 2rem 1.2rem;
    text-align: center;
}
.chiffre strong {
    display: block;
    font-family: 'EB Garamond', serif;
    font-size: clamp(2.2rem, 6vw, 3.4rem);
    color: var(--or-clair);
    text-shadow: 0 0 18px rgba(232, 197, 71, .35);
    line-height: 1;
}
.chiffre span { font-size: .9rem; color: rgba(251, 248, 241, .78); }

/* ---------- Cartes de contenu ---------- */
/* Elles ne sont que des contenants : un filet suffit, pas d'ombre */

.carte {
    background: var(--blanc);
    border: 1px solid rgba(11, 107, 79, .14);
    border-bottom-width: 3px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: border-color var(--transition);
}
.carte:hover { border-bottom-color: var(--or); }
.carte img { aspect-ratio: 16/10; object-fit: cover; width: 100%; }
.carte-corps { padding: 1.3rem; flex: 1; display: flex; flex-direction: column; }
.carte-corps h3 { margin-bottom: .4rem; }
.carte-meta {
    font-size: .8rem;
    color: var(--or-fonce);
    letter-spacing: .04em;
    margin-bottom: .5rem;
}
.carte-corps p { font-size: .93rem; color: var(--gris); }
.carte-corps .btn { margin-top: auto; align-self: flex-start; }

/* ---------- Vidéos ---------- */

.video-cadre {
    position: relative;
    aspect-ratio: 16/9;
    background: var(--emeraude-nuit);
    overflow: hidden;
}
.video-cadre iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.vignette-video { position: relative; display: block; }
.vignette-video img { aspect-ratio: 16/9; object-fit: cover; width: 100%; }
.vignette-video::after {
    content: '▶';
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    font-size: 2rem;
    color: var(--blanc);
    background: rgba(5, 42, 32, .35);
    transition: var(--transition);
}
.vignette-video:hover::after { background: rgba(5, 42, 32, .1); }

/* ---------- Timeline ---------- */

.timeline { position: relative; padding-left: 2.2rem; }
.timeline::before {
    content: '';
    position: absolute;
    left: 7px; top: .5rem; bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--or), rgba(232, 197, 71, .12));
}
.jalon { position: relative; padding-bottom: 3rem; }
.jalon::before {
    content: '';
    position: absolute;
    left: -2.2rem; top: .45rem;
    width: 16px; height: 16px;
    border-radius: 50%;
    background: var(--ivoire);
    border: 3px solid var(--or);
}
.jalon-annee {
    font-family: 'EB Garamond', serif;
    font-size: 2rem;
    color: var(--emeraude);
    line-height: 1;
}
.jalon-theme {
    font-style: italic;
    color: var(--or-fonce);
    text-transform: none;
    letter-spacing: 0;
    margin-bottom: .6rem;
}

/* ---------- Billetterie ---------- */

.billet {
    position: relative;
    background: var(--blanc);
    border: 1px solid rgba(11, 107, 79, .16);
    padding: 1.6rem;
    display: flex;
    flex-direction: column;
    gap: .6rem;
}
.billet::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 5px;
    background: var(--couleur-billet, var(--emeraude));
}
.billet h3 { margin-bottom: 0; }
.billet .prix {
    font-family: 'EB Garamond', serif;
    font-size: 2.1rem;
    color: var(--emeraude-fonce);
    line-height: 1;
}
.billet .prix small { font-size: .95rem; color: var(--gris); }
.billet .restant { font-size: .84rem; color: var(--gris); }
.billet .epuise { color: #A33; font-weight: 700; }

.qte { display: flex; align-items: center; gap: .5rem; margin-top: auto; }
.qte input {
    width: 80px;
    padding: .5rem;
    border: 1px solid rgba(11, 107, 79, .3);
    text-align: center;
    font: inherit;
}

.recap { background: var(--blanc); border: 1px solid rgba(11, 107, 79, .16); padding: 1.5rem; }
.recap-ligne {
    display: flex; justify-content: space-between; gap: 1rem;
    padding: .6rem 0;
    border-bottom: 1px dashed rgba(11, 107, 79, .18);
}
.recap-total {
    display: flex; justify-content: space-between;
    padding-top: 1rem;
    font-family: 'EB Garamond', serif;
    font-size: 1.6rem;
    color: var(--emeraude-fonce);
}

.moyen-paiement {
    display: block;
    border: 2px solid rgba(11, 107, 79, .18);
    padding: 1.1rem;
    cursor: pointer;
    margin-bottom: .8rem;
    transition: var(--transition);
    background: var(--blanc);
}
.moyen-paiement:hover { border-color: var(--or); }
.moyen-paiement input { margin-right: .5rem; }
.moyen-paiement input:checked ~ .details { display: block; }
.moyen-paiement .details {
    display: none;
    margin-top: .8rem;
    padding-top: .8rem;
    border-top: 1px dashed rgba(11, 107, 79, .2);
    font-size: .92rem;
}
.moyen-paiement:has(input:checked) { border-color: var(--or); background: #FFFDF6; }

.code-billet {
    font-family: 'Courier New', monospace;
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: .1em;
    color: var(--emeraude-fonce);
    background: var(--creme);
    border: 2px dashed var(--or);
    padding: .9rem 1.1rem;
    display: inline-block;
}

.etapes {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    list-style: none;
    padding: 0;
    margin: 0 0 2rem;
    font-size: .84rem;
    color: var(--gris);
}
.etapes li { display: flex; align-items: center; gap: .4rem; }
.etapes li::after { content: '›'; margin-left: .4rem; color: var(--or-fonce); }
.etapes li:last-child::after { content: ''; }
.etapes li.active { color: var(--emeraude); font-weight: 700; }

/* ---------- Vote ---------- */

.carte-vote {
    background: var(--blanc);
    box-shadow: var(--ombre-carte);
    cursor: pointer;
    display: block;
    overflow: hidden;
    border: 2px solid transparent;
    transition: var(--transition);
}
.carte-vote:has(input:checked) { border-color: var(--or); box-shadow: var(--ombre-portrait); }
.carte-vote input { position: absolute; opacity: 0; }
.carte-vote img { aspect-ratio: 3/4; object-fit: cover; width: 100%; }
.carte-vote .infos { padding: .9rem; text-align: center; }

.barre-resultat { margin-bottom: 1rem; }
.barre-resultat .ligne {
    display: flex; justify-content: space-between;
    font-size: .9rem; margin-bottom: .3rem;
}
.barre-resultat .piste {
    height: 10px;
    background: rgba(11, 107, 79, .12);
    overflow: hidden;
}
.barre-resultat .valeur {
    height: 100%;
    background: linear-gradient(90deg, var(--emeraude), #E8C547, #F7E9A0);
    transition: width .8s ease;
}

/* ---------- Partenaires ---------- */

.logos {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 1px;
    background: rgba(11, 107, 79, .12);
    border: 1px solid rgba(11, 107, 79, .12);
}
.logos a, .logos div {
    background: var(--blanc);
    display: grid;
    place-items: center;
    padding: 1.4rem 1rem;
    min-height: 110px;
    text-align: center;
    font-size: .9rem;
    color: var(--gris);
}
.logos img { max-height: 62px; object-fit: contain; transition: var(--transition); }
.logos a:hover img { opacity: .85; }
.collab {
    border: 1px solid var(--or);
    padding: 1.2rem 1.4rem;
    background: var(--blanc);
}
.collab strong {
    font-family: 'EB Garamond', serif;
    font-size: 1.25rem;
    color: var(--emeraude-fonce);
}

/* ---------- Galerie ---------- */
/* Les tirages sont posés à la main, pas alignés au pixel */

.galerie {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: .5rem;
}
.galerie a { display: block; overflow: hidden; }
.galerie img { aspect-ratio: 1; object-fit: cover; width: 100%; transition: transform .5s ease; }
.galerie a:nth-child(4n+1) img { transform: rotate(-.4deg) scale(1.02); }
.galerie a:nth-child(4n+3) img { transform: rotate(.5deg) scale(1.02); }
.galerie a:hover img { transform: rotate(0) scale(1.06); }

/* ---------- Formulaires ---------- */

.champ { margin-bottom: 1.1rem; }
.champ label { display: block; font-size: .88rem; font-weight: 700; margin-bottom: .35rem; color: var(--emeraude-fonce); }
.champ input, .champ select, .champ textarea {
    width: 100%;
    padding: .75rem .9rem;
    border: 1px solid rgba(11, 107, 79, .28);
    background: var(--blanc);
    font: inherit;
    color: var(--anthracite);
}
.champ input:focus, .champ select:focus, .champ textarea:focus {
    outline: none;
    border-color: var(--or);
    box-shadow: 0 0 0 3px rgba(232, 197, 71, .2);
}
.champ textarea { min-height: 150px; resize: vertical; }
.champ .aide { font-size: .82rem; color: var(--gris); margin-top: .3rem; }
.champ-inline { display: flex; align-items: flex-start; gap: .6rem; }
.champ-inline input { width: auto; margin-top: .35rem; }

.pot-de-miel { position: absolute; left: -9999px; opacity: 0; height: 0; }

.erreur-champ { color: #A6303A; font-size: .84rem; margin-top: .3rem; }

.alerte {
    padding: 1rem 1.2rem;
    margin-bottom: 1.4rem;
    border-left: 4px solid var(--emeraude);
    background: rgba(11, 107, 79, .08);
    font-size: .94rem;
}
.alerte-succes { border-color: var(--emeraude); background: rgba(11, 107, 79, .1); }
.alerte-erreur { border-color: #A6303A; background: rgba(166, 48, 58, .08); color: #7C2027; }
.alerte-info { border-color: var(--or); background: rgba(232, 197, 71, .14); }

/* ---------- Pied de page ---------- */

.pied {
    background: var(--emeraude-nuit);
    color: rgba(251, 248, 241, .72);
    padding: 3.4rem 0 1.6rem;
    font-size: .92rem;
}
.pied h4 { color: var(--or-clair); font-size: 1rem; margin-bottom: .8rem; }
.pied a { color: rgba(251, 248, 241, .72); }
.pied a:hover { color: var(--or-clair); }
.pied ul { list-style: none; padding: 0; margin: 0; }
.pied li { margin-bottom: .45rem; }

.reseaux { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: .6rem; }
.reseaux a {
    width: 42px; height: 42px;
    display: grid; place-items: center;
    border: 1px solid rgba(247, 233, 160, .55);
    color: var(--or-clair);
    border-radius: 50%;
}
.reseaux a:hover {
    background: linear-gradient(160deg, #F7E9A0, #E8C547);
    color: var(--emeraude-nuit);
    box-shadow: 0 0 14px rgba(247, 233, 160, .5);
}
.reseaux svg { width: 18px; height: 18px; fill: currentColor; }

.pied-bas {
    margin-top: 2.4rem;
    padding-top: 1.2rem;
    border-top: 1px solid rgba(251, 248, 241, .12);
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
    justify-content: space-between;
    font-size: .82rem;
}

/* ---------- Utilitaires ---------- */

.centre { text-align: center; }
.mt-1 { margin-top: .6rem; } .mt-2 { margin-top: 1.2rem; } .mt-3 { margin-top: 2rem; }
.mb-0 { margin-bottom: 0; } .mb-2 { margin-bottom: 1.2rem; } .mb-3 { margin-bottom: 2rem; }
.petit { font-size: .86rem; }
.or { color: var(--or-fonce); }
.section-emeraude .or, .hero .or { color: var(--or-clair); }
.emeraude { color: var(--emeraude); }
.gris { color: var(--gris); }
.flex { display: flex; gap: .8rem; flex-wrap: wrap; align-items: center; }
.entre { justify-content: space-between; }

.fil-ariane { font-size: .84rem; color: var(--gris); margin-bottom: 1rem; }
.fil-ariane a { color: var(--gris); }

.entete-page {
    background: var(--emeraude-nuit);
    color: var(--blanc);
    padding: clamp(3rem, 8vw, 5rem) 0 clamp(2.4rem, 6vw, 3.4rem);
}
.entete-page h1 { color: var(--blanc); margin-bottom: .4rem; }
.entete-page p { color: rgba(251, 248, 241, .82); }

.onglets { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 2rem; }
.onglets a {
    padding: .5rem 1rem;
    border: 1px solid rgba(11, 107, 79, .25);
    font-size: .88rem;
}
.onglets a.actif { background: var(--emeraude); color: var(--blanc); border-color: var(--emeraude); }

.pagination { display: flex; gap: .3rem; flex-wrap: wrap; justify-content: center; margin-top: 2.4rem; list-style: none; padding: 0; }
.pagination a, .pagination span {
    display: block; padding: .45rem .8rem;
    border: 1px solid rgba(11, 107, 79, .22);
    font-size: .9rem;
}
.pagination .active span { background: var(--emeraude); color: var(--blanc); border-color: var(--emeraude); }

table.tableau { width: 100%; border-collapse: collapse; font-size: .92rem; background: var(--blanc); }
table.tableau th, table.tableau td { padding: .7rem .8rem; text-align: left; border-bottom: 1px solid rgba(11, 107, 79, .12); }
table.tableau th { background: var(--creme); font-size: .82rem; color: var(--emeraude-fonce); }
.table-defilante { overflow-x: auto; }

/* ---------- Mouvement ---------- */
/* Un seul mouvement, réservé aux portraits. Partout ailleurs le contenu est là
   dès le chargement : une cascade d'apparitions identiques alourdit la lecture. */

.apparait { opacity: 1; transform: none; }

.grille-candidates .apparait {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity .55s ease, transform .55s cubic-bezier(.22, .61, .36, 1);
}
.grille-candidates .apparait.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    * { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
    .apparait, .grille-candidates .apparait { opacity: 1; transform: none; }
    .galerie a img { transform: none; }
}

@media print {
    .entete, .pied, .btn, .nav-mobile { display: none !important; }
    body { background: #fff; }
    .galerie a img { transform: none; }
}
.filet { display: none !important; }

/* La vidéo d'accueil n'apparaît qu'une fois réellement lancée */
.hero-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.2s ease;
}
.hero-media video.active { opacity: 1; }

/* ---------- Liens sociaux en icônes ---------- */

.reseaux-mini {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
    margin-top: .9rem;
}

.reseaux-mini a {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(11, 107, 79, .3);
    color: var(--emeraude);
    transition: var(--transition);
}
.reseaux-mini a:hover {
    background: var(--emeraude);
    border-color: var(--emeraude);
    color: var(--blanc);
}
.reseaux-mini svg { width: 16px; height: 16px; fill: currentColor; }

/* ---------- Texte replié ---------- */
/* Les présentations longues sont tronquées à cinq lignes : la grille reste
   régulière, et le visiteur déplie ce qui l'intéresse. */

.repliable {
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.repliable.ouvert {
    display: block;
    -webkit-line-clamp: unset;
}

.lire-plus {
    background: none;
    border: 0;
    padding: .2rem 0;
    font: inherit;
    font-size: .84rem;
    font-weight: 700;
    color: var(--or-fonce);
    cursor: pointer;
    text-decoration: underline;
}
.lire-plus:hover { color: var(--emeraude); }
/* ---------- Liens sociaux compacts ---------- */

.reseaux-mini {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    margin-top: .9rem;
}

.reseaux-mini a {
    display: inline-block;
    padding: .3rem .7rem;
    border: 1px solid rgba(11, 107, 79, .3);
    font-size: .8rem;
    color: var(--emeraude);
    transition: var(--transition);
}
.reseaux-mini a:hover {
    background: var(--emeraude);
    border-color: var(--emeraude);
    color: var(--blanc);
}

/* ---------- Texte replié ---------- */

.repliable {
    display: -webkit-box;
    -webkit-line-clamp: 5;
    line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.repliable.ouvert {
    display: block;
    -webkit-line-clamp: unset;
    line-clamp: unset;
}

.lire-plus {
    background: none;
    border: 0;
    padding: .25rem 0;
    font: inherit;
    font-size: .84rem;
    font-weight: 700;
    color: var(--or-fonce);
    cursor: pointer;
    text-decoration: underline;
}
.lire-plus:hover { color: var(--emeraude); }
.reseaux-mini a {
    white-space: nowrap;
    hyphens: none;
}/* ---------- Comité : liens sociaux et présentation repliée ---------- */

.reseaux-mini {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    margin-top: .9rem;
}

.reseaux-mini a {
    display: inline-block;
    width: auto;
    height: auto;
    padding: .3rem .7rem;
    border: 1px solid rgba(11, 107, 79, .3);
    font-size: .8rem;
    color: var(--emeraude);
    white-space: nowrap;
    hyphens: none;
    transition: var(--transition);
}
.reseaux-mini a:hover {
    background: var(--emeraude);
    border-color: var(--emeraude);
    color: var(--blanc);
}

.repliable {
    display: -webkit-box;
    -webkit-line-clamp: 5;
    line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
    hyphens: none;
}
.repliable.ouvert {
    display: block;
    -webkit-line-clamp: unset;
    line-clamp: unset;
}

.lire-plus {
    background: none;
    border: 0;
    padding: .25rem 0;
    font: inherit;
    font-size: .84rem;
    font-weight: 700;
    color: var(--or-fonce);
    cursor: pointer;
    text-decoration: underline;
}
.lire-plus:hover { color: var(--emeraude); }
/* ---------- Comité sur mobile ---------- */
/* Deux colonnes conservées, mais le contenu s'adapte à la largeur réduite :
   plus de césure, textes plus courts, liens sociaux en pastilles compactes. */

@media (max-width: 719px) {

    .grille-4 { gap: .8rem; }
    .grille-4 .carte-corps { padding: .9rem .8rem; }

    /* Les noms ne se coupent plus en plein milieu */
    .grille-4 .carte-corps h3 {
        font-size: .88rem;
        letter-spacing: .01em;
        line-height: 1.25;
        hyphens: none;
        overflow-wrap: break-word;
    }

    .grille-4 .carte-corps p {
        font-size: .8rem;
        line-height: 1.55;
        hyphens: none;
    }

    /* La fonction est repliée elle aussi : trois lignes suffisent en aperçu */
    .grille-4 .carte-corps > p:first-of-type {
        display: -webkit-box;
        -webkit-line-clamp: 3;
        line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .repliable { -webkit-line-clamp: 3; line-clamp: 3; }

    /* Liens sociaux : pastilles serrées, deux par ligne */
    .reseaux-mini { gap: .25rem; margin-top: .7rem; }
    .reseaux-mini a {
        padding: .22rem .5rem;
        font-size: .7rem;
        border-color: rgba(11, 107, 79, .25);
    }

    .carte-meta { font-size: .72rem; }
    .lire-plus { font-size: .78rem; }
}/* ---------- Formulaire de dossier de partenariat ---------- */

.formulaire-dossier { max-width: 900px; }

.bloc-form {
    border: 1px solid rgba(11, 107, 79, .16);
    border-left: 3px solid var(--or);
    padding: 1.6rem 1.4rem 1.2rem;
    margin: 0 0 1.6rem;
    min-width: 0;
}

.bloc-form legend {
    font-family: 'EB Garamond', serif;
    font-size: 1.15rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--emeraude-fonce);
    padding: 0 .6rem;
    margin-left: -.6rem;
}

.grille-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0 1.4rem;
}
@media (min-width: 700px) {
    .grille-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.grille-form > .champ { min-width: 0; }
.formulaire-dossier input,
.formulaire-dossier textarea { max-width: 100%; }

.requis { color: #A6303A; font-weight: 700; }
.facultatif { font-weight: 400; color: var(--gris); font-size: .8rem; }

.choix {
    display: flex;
    flex-direction: column;
    gap: .1rem;
    margin: .4rem 0 .2rem;
}

.case {
    display: flex;
    align-items: flex-start;
    gap: .6rem;
    padding: .45rem .6rem;
    cursor: pointer;
    font-size: .92rem;
    transition: background var(--transition);
}
.case:hover { background: rgba(232, 197, 71, .1); }
.case input { width: auto; margin-top: .3rem; flex-shrink: 0; }
.case span { line-height: 1.45; }
/* ---------- Pagination : les flèches de Laravel sont livrées sans dimension ---------- */

.pagination svg {
    width: 14px;
    height: 14px;
    display: inline-block;
}

.pagination a, .pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    line-height: 1;
}

/* ---------- Structure porteuse mise en avant à l'accueil ---------- */

.porteuse-etiquette {
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--or-fonce);
    margin: 0 auto 1.4rem;
}

.porteuse {
    max-width: 640px;
    margin: 0 auto;
    padding: 2.4rem 1.6rem;
    background: var(--blanc);
    border: 1px solid rgba(232, 197, 71, .5);
    border-top: 3px solid var(--or);
}

.porteuse img {
    max-height: 130px;
    width: auto;
    margin: 0 auto 1.2rem;
    object-fit: contain;
}

.porteuse h2 { font-size: clamp(1.3rem, 3.4vw, 1.9rem); }