@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@600;700&family=Barlow:ital,wght@0,400;0,500;0,600;1,400&display=swap');

/* =====================================================================
   Jetons — palette reprise du site actuel
   ================================================================== */
:root {
    --ciel:        #0e7bc2;
    --ciel-fonce:  #0a5e97;
    --ciel-clair:  #d8ecf9;
    --nuit:        #0b2740;
    --papier:      #ffffff;
    --pale:        #f4f7f9;
    --blanc:       #ffffff;
    --voile:       #e8503a;
    --soleil:      #f2b441;
    --gris:        #5d6b78;
    --trait:       #dde2e6;

    /* Jetons qui changent avec le thème */
    --surface:     #ffffff;   /* cartes, en-tête, champs */
    --encre:       #0b2740;   /* texte courant */
    --lien:        #0e7bc2;
    --ok-fond:     #e4f3ea;
    --err-fond:    #fbe7e3;
    --icone-lune:  inline;
    --icone-soleil: none;
    color-scheme: light;

    --titre: 'Barlow Condensed', 'Arial Narrow', sans-serif;
    --texte: 'Barlow', system-ui, -apple-system, 'Segoe UI', sans-serif;

    --large: 1200px;
    --rayon: 4px;

    box-sizing: border-box;
}
/* Mode sombre : suit le réglage de l'appareil, sauf choix explicite du visiteur */
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
    --papier: #0e1822; --pale: #121f2b; --surface: #16232f;
    --encre: #e3ecf3; --gris: #9aabb9; --trait: #283847;
    --ciel-clair: #173a55; --lien: #5cb6ee; --nuit: #07121c;
    --ok-fond: #173a28; --err-fond: #3f1d18;
    --icone-lune: none; --icone-soleil: inline;
    color-scheme: dark;
    }
}
:root[data-theme="dark"] {
    --papier: #0e1822; --pale: #121f2b; --surface: #16232f;
    --encre: #e3ecf3; --gris: #9aabb9; --trait: #283847;
    --ciel-clair: #173a55; --lien: #5cb6ee; --nuit: #07121c;
    --ok-fond: #173a28; --err-fond: #3f1d18;
    --icone-lune: none; --icone-soleil: inline;
    color-scheme: dark;
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
    margin: 0;
    background: var(--papier);
    color: var(--encre);
    font-family: var(--texte);
    font-size: 1.0625rem;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--lien); text-underline-offset: 3px; }
a:hover { color: var(--voile); }
:focus-visible { outline: 3px solid var(--soleil); outline-offset: 2px; }

h1, h2, h3, h4 {
    font-family: var(--titre);
    font-weight: 700;
    line-height: 1.05;
    margin: 0 0 .5em;
}
h1 { font-size: clamp(2.4rem, 7vw, 4.2rem); }
h2 { font-size: clamp(1.9rem, 4.4vw, 3rem); }
h3 { font-size: clamp(1.3rem, 2.9vw, 1.65rem); }
p { margin: 0 0 1.1em; max-width: 68ch; }

.wrap { width: min(100% - 2.5rem, var(--large)); margin-inline: auto; }
.section { padding: clamp(3rem, 7vw, 5rem) 0; }
.section--pale { background: var(--pale); }
.section--sombre { background: var(--nuit); color: #cfe2ef; }
.section--sombre h2, .section--sombre h3 { color: var(--blanc); }

.saut { position: absolute; left: -9999px; }
.saut:focus {
    position: fixed; left: 1rem; top: 1rem; z-index: 999;
    background: var(--soleil); color: var(--nuit); padding: .7rem 1.1rem; border-radius: var(--rayon);
}

.losange {
    display: inline-block; width: .55em; height: .55em;
    background: var(--voile); transform: rotate(45deg);
    margin-right: .5em; vertical-align: .05em;
}

/* Titres de section centrés, comme sur le site actuel */
.titre-section { text-align: center; margin-bottom: clamp(1.8rem, 4vw, 2.8rem); }
.titre-section h2 { margin-bottom: .35rem; }
.titre-section p { margin: 0 auto; max-width: 56ch; color: var(--gris); }
.section--sombre .titre-section p { color: #cfe2ef; }
.titre-section::after {
    content: ''; display: block; width: 58px; height: 3px;
    background: var(--voile); margin: .9rem auto 0;
}

/* =====================================================================
   Boutons
   ================================================================== */
.btn {
    display: inline-block; font-family: var(--titre); font-size: 1.18rem;
    padding: .6em 1.6em; border: 2px solid var(--ciel); border-radius: var(--rayon);
    background: var(--ciel); color: var(--blanc); text-decoration: none; cursor: pointer;
    transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.btn:hover { background: var(--ciel-fonce); border-color: var(--ciel-fonce); color: var(--blanc); }
.btn--vif { background: var(--voile); border-color: var(--voile); }
.btn--vif:hover { background: #c8402c; border-color: #c8402c; }
.btn--creux { background: transparent; color: var(--lien); }
.btn--creux:hover { background: var(--ciel); color: var(--blanc); }
.btn--clair { background: var(--blanc); border-color: var(--blanc); color: var(--nuit); }
.btn--clair:hover { background: var(--soleil); border-color: var(--soleil); color: var(--nuit); }

/* =====================================================================
   Bandeau supérieur + en-tête à gros logo
   ================================================================== */
.topbar {
    background: var(--nuit); color: #a9c9de;
    font-family: var(--titre); font-size: 1.02rem; letter-spacing: .02em;
}
.topbar__inner {
    display: flex; flex-wrap: wrap; gap: .4rem 1.2rem;
    align-items: center; justify-content: space-between;
    padding: .45rem 0; min-height: 38px;
}
.topbar a { color: #a9c9de; text-decoration: none; }
.topbar a:hover { color: var(--blanc); }
.reseaux { display: flex; gap: .85rem; align-items: center; }
.reseaux a { display: inline-flex; }
.reseaux svg { width: 17px; height: 17px; fill: currentColor; }

.entete { background: var(--surface); border-bottom: 1px solid var(--trait); }
.entete__haut {
    display: flex; align-items: center; justify-content: space-between;
    gap: 1rem; padding: .9rem 0;
}
.logo { display: flex; align-items: center; text-decoration: none; color: var(--encre); }
.logo img { max-height: 62px; width: auto; }
.logo__texte { font-family: var(--titre); font-size: 2.3rem; letter-spacing: .01em; line-height: 1; }
.logo__baseline {
    display: block; font-family: var(--texte); font-size: .74rem;
    letter-spacing: .13em; text-transform: uppercase; color: var(--gris); margin-top: .2rem;
}

.nav-bouton {
    display: flex; align-items: center; gap: .5rem;
    font-family: var(--titre); font-size: 1.12rem;
    background: none; border: 1px solid var(--trait); border-radius: var(--rayon);
    padding: .45rem .85rem; cursor: pointer; color: var(--encre);
}
.nav-bouton__barres { display: block; width: 20px; height: 2px; background: var(--encre); position: relative; }
.nav-bouton__barres::before, .nav-bouton__barres::after {
    content: ''; position: absolute; left: 0; width: 20px; height: 2px; background: var(--encre);
}
.nav-bouton__barres::before { top: -6px; }
.nav-bouton__barres::after { top: 6px; }

/* Barre de navigation bleue */
.nav { background: var(--ciel); }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.nav a {
    display: block; font-family: var(--titre); font-size: 1.22rem;
    color: var(--blanc); text-decoration: none; padding: .7rem 1rem;
    border-bottom: 1px solid rgba(255,255,255,.18);
}
.nav a:hover, .nav a[aria-current="page"] { background: var(--ciel-fonce); color: var(--blanc); }
.nav .nav__cta { background: var(--voile); }
.nav .nav__cta:hover { background: #c8402c; }

@media (max-width: 899px) {
    .nav { display: none; }
    .nav.est-ouvert { display: block; }
}
@media (min-width: 900px) {
    .nav-bouton { display: none; }
    .nav { display: block !important; position: sticky; top: 0; z-index: 50; }
    .nav ul { flex-direction: row; justify-content: center; width: min(100% - 2.5rem, var(--large)); margin-inline: auto; }
    .nav a { border: 0; padding: .85rem 1.3rem; font-size: 1.15rem; }
}

/* =====================================================================
   Hero photo pleine largeur
   ================================================================== */
.hero {
    position: relative; overflow: hidden;
    min-height: clamp(360px, 62vh, 620px);
    display: flex; align-items: center;
    background: linear-gradient(168deg, #1a8fd4 0%, var(--ciel) 48%, var(--ciel-fonce) 100%);
    color: var(--blanc);
    text-align: center;
}
.hero__fond { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__voile {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(6,32,54,.34) 0%, rgba(6,32,54,.62) 100%);
}
.hero--motif::before {
    content: ''; position: absolute; inset: 0; opacity: .6;
    background-image:
        linear-gradient(45deg, rgba(255,255,255,.09) 25%, transparent 25%),
        linear-gradient(-45deg, rgba(255,255,255,.09) 25%, transparent 25%);
    background-size: 48px 48px;
}
.hero .wrap { position: relative; padding: clamp(3rem, 8vw, 5rem) 0; }
.hero__sur {
    font-family: var(--titre); font-size: clamp(1.1rem, 2.4vw, 1.5rem);
    letter-spacing: .12em; text-transform: uppercase; margin-bottom: .6rem;
}
.hero__titre {
    color: var(--blanc); text-transform: uppercase;
    font-size: clamp(3rem, 12vw, 7.5rem); letter-spacing: -.015em; margin-bottom: .15em;
    text-shadow: 0 2px 24px rgba(4,26,45,.35);
}
.hero__baseline {
    font-size: clamp(1.1rem, 2.6vw, 1.55rem); max-width: 40ch; margin: 0 auto 2rem;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: .9rem; justify-content: center; }

.bandeau { background: var(--nuit); color: var(--blanc); }
.bandeau ul { list-style: none; margin: 0; padding: 1.2rem 0; display: grid; gap: .8rem; text-align: center; }
.bandeau strong { font-family: var(--titre); font-size: 1.5rem; display: block; line-height: 1.15; }
.bandeau span { color: #9fc3dd; font-size: .93rem; }
@media (min-width: 700px) { .bandeau ul { grid-template-columns: repeat(3, 1fr); gap: 2rem; } }

/* =====================================================================
   Trio de pictogrammes
   ================================================================== */
.picto-grille {
    display: grid; gap: 2rem; text-align: center;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}
.picto svg { width: 76px; height: 76px; margin: 0 auto .9rem; fill: none; stroke: var(--ciel); stroke-width: 1.6; }
.picto h3 { margin-bottom: .3rem; }
.picto p { font-size: .96rem; color: var(--gris); margin: 0 auto; max-width: 34ch; }

/* =====================================================================
   Grille d'images à titre
   ================================================================== */
.tuiles { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
.tuile {
    position: relative; display: block; overflow: hidden;
    border-radius: var(--rayon); aspect-ratio: 4 / 3;
    background: var(--ciel-clair); text-decoration: none; color: var(--blanc);
}
.tuile img, .tuile svg { width: 100%; height: 100%; object-fit: cover; }
.tuile__titre {
    position: absolute; inset: auto 0 0 0;
    background: linear-gradient(180deg, rgba(6,32,54,0) 0%, rgba(6,32,54,.86) 72%);
    padding: 2.6rem 1.1rem 1rem;
    font-family: var(--titre); font-size: 1.45rem; text-transform: uppercase;
    letter-spacing: .02em; line-height: 1.1;
}
a.tuile:hover .tuile__titre { background: linear-gradient(180deg, rgba(232,80,58,0) 0%, rgba(200,64,44,.9) 72%); }

/* =====================================================================
   Carrousel des éditions précédentes
   ================================================================== */
.carrousel { position: relative; }
.carrousel__piste {
    display: flex; gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory;
    scroll-behavior: smooth; padding-bottom: .6rem; scrollbar-width: thin;
}
.carrousel__piste::-webkit-scrollbar { height: 6px; }
.carrousel__piste::-webkit-scrollbar-thumb { background: var(--trait); border-radius: 3px; }
.carrousel__item {
    flex: 0 0 min(82%, 400px); scroll-snap-align: start;
    border-radius: var(--rayon); overflow: hidden; position: relative;
    text-decoration: none; color: var(--blanc); background: var(--ciel-clair);
}
.carrousel__item img, .carrousel__item svg { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.carrousel__legende {
    position: absolute; inset: auto 0 0 0;
    background: linear-gradient(180deg, rgba(6,32,54,0) 0%, rgba(6,32,54,.86) 70%);
    padding: 2.4rem 1rem .9rem;
}
.carrousel__legende strong { font-family: var(--titre); font-size: 1.5rem; display: block; line-height: 1.1; }
.carrousel__legende span { font-size: .88rem; color: #cfe2ef; }
.carrousel__cmd {
    position: absolute; top: 40%; transform: translateY(-50%);
    width: 44px; height: 44px; border-radius: 50%; border: 0;
    background: var(--nuit); color: var(--blanc); font-size: 1.5rem; line-height: 1;
    cursor: pointer; display: none; z-index: 2;
}
.carrousel__cmd:hover { background: var(--voile); }
.carrousel__prec { left: -14px; }
.carrousel__suiv { right: -14px; }
@media (min-width: 900px) {
    .carrousel__cmd { display: block; }
    .carrousel__item { flex: 0 0 calc((100% - 2rem) / 3); }
}

/* =====================================================================
   Actualités
   ================================================================== */
.actus { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.actu {
    display: flex; flex-direction: column;
    background: var(--surface); border: 1px solid var(--trait); border-radius: var(--rayon);
    overflow: hidden; text-decoration: none; color: inherit;
}
.actu__image { aspect-ratio: 16 / 9; width: 100%; object-fit: cover; background: var(--ciel-clair); }
.actu__corps { padding: 1.1rem 1.2rem 1.35rem; display: flex; flex-direction: column; flex: 1; }
.actu__date {
    font-family: var(--titre); font-size: 1rem; color: var(--voile);
    letter-spacing: .04em; margin-bottom: .3rem;
}
.actu h3 { margin-bottom: .4rem; }
.actu p { font-size: .96rem; color: var(--gris); margin: 0; }
.actu__lire { margin-top: auto; padding-top: .9rem; font-family: var(--titre); font-size: 1.1rem; color: var(--lien); }
a.actu:hover { border-color: var(--ciel); }
a.actu:hover h3 { color: var(--voile); }

.article { max-width: 70ch; margin-inline: auto; }
.article img { border-radius: var(--rayon); margin-bottom: 1.6rem; }

/* =====================================================================
   Cartes génériques
   ================================================================== */
.grille { display: grid; gap: 1.5rem; }
@media (min-width: 640px) { .grille--2, .grille--3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .grille--3 { grid-template-columns: repeat(3, 1fr); } }

.affiche {
    display: block; background: var(--surface); border: 1px solid var(--trait);
    border-radius: var(--rayon); overflow: hidden; text-decoration: none; color: inherit;
}
.affiche__image { aspect-ratio: 4 / 3; width: 100%; object-fit: cover; background: var(--ciel-clair); }
.affiche__corps { padding: 1.05rem 1.2rem 1.35rem; }
.affiche h3 { margin-bottom: .3rem; }
.affiche p { font-size: .95rem; color: var(--gris); margin: 0; }
a.affiche:hover { border-color: var(--ciel); }
a.affiche:hover h3 { color: var(--voile); }
.compteur-photos { margin-top: .5rem; color: var(--lien); font-family: var(--titre); font-size: 1.05rem; }

/* =====================================================================
   Galerie et visionneuse
   ================================================================== */
.galerie { display: grid; grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: .5rem; }
.galerie a { display: block; aspect-ratio: 3 / 2; background: var(--ciel-clair); overflow: hidden; border-radius: 2px; }
.galerie img { width: 100%; height: 100%; object-fit: cover; }
.galerie a:hover img { opacity: .88; }

.visionneuse {
    position: fixed; inset: 0; z-index: 100; background: rgba(8, 24, 38, .96);
    display: none; align-items: center; justify-content: center; padding: 1rem;
}
.visionneuse.est-ouverte { display: flex; }
.visionneuse img { max-width: 100%; max-height: 82vh; object-fit: contain; }
.visionneuse__legende {
    position: absolute; bottom: 1.2rem; left: 0; right: 0;
    text-align: center; color: #cfe2ef; font-size: .9rem; padding: 0 1rem;
}
.visionneuse button {
    position: absolute; background: rgba(255,255,255,.12); color: #fff; border: 0;
    border-radius: 50%; width: 46px; height: 46px; font-size: 1.5rem; cursor: pointer; line-height: 1;
}
.visionneuse__fermer { top: 1rem; right: 1rem; }
.visionneuse__prec { left: 1rem; top: 50%; transform: translateY(-50%); }
.visionneuse__suiv { right: 1rem; top: 50%; transform: translateY(-50%); }
.visionneuse button:hover { background: rgba(255,255,255,.28); }

/* =====================================================================
   Partenaires
   ================================================================== */
.logos {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 1px;
    background: var(--trait); border: 1px solid var(--trait); border-radius: var(--rayon); overflow: hidden;
}
.logos > * {
    background: var(--blanc); display: flex; align-items: center; justify-content: center;
    padding: 1.4rem 1rem; min-height: 118px; text-align: center; text-decoration: none;
}
.logos img { max-height: 66px; width: auto; object-fit: contain; }
.logos__nom { font-family: var(--titre); font-size: 1.14rem; color: #5d6b78; line-height: 1.2; }
a.logos__item:hover { background: #e8f3fb; }

/* =====================================================================
   Formulaires
   ================================================================== */
.form { max-width: 680px; }
.champ { margin-bottom: 1.3rem; }
.champ label { display: block; font-family: var(--titre); font-size: 1.2rem; margin-bottom: .3rem; }
.champ__aide { display: block; font-family: var(--texte); font-size: .88rem; color: var(--gris); font-weight: 400; }

input[type=text], input[type=email], input[type=tel], input[type=number],
input[type=password], input[type=url], input[type=date], select, textarea {
    width: 100%; font-family: var(--texte); font-size: 1rem;
    padding: .65rem .8rem; border: 1px solid var(--gris);
    border-radius: var(--rayon); background: var(--surface); color: var(--encre);
}
textarea { min-height: 140px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--ciel); }

.champ--case { display: flex; gap: .6rem; align-items: flex-start; }
.champ--case input { width: auto; margin-top: .35rem; }
.champ--case label { font-family: var(--texte); font-size: 1rem; }

.erreur-champ { color: var(--voile); font-size: .9rem; display: block; margin-top: .25rem; }
input[aria-invalid="true"], textarea[aria-invalid="true"], select[aria-invalid="true"] { border-color: var(--voile); }

.alerte {
    border-left: 4px solid var(--ciel); background: var(--ciel-clair);
    padding: .9rem 1.1rem; border-radius: var(--rayon); margin-bottom: 1.6rem;
}
.alerte--ok { border-color: #2e8b57; background: var(--ok-fond); }
.alerte--erreur { border-color: var(--voile); background: var(--err-fond); }
.alerte p:last-child { margin-bottom: 0; }

.pot-de-miel { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Trois vœux classés */
.voeux { display: grid; gap: 1rem; margin-bottom: 1.4rem; }
.voeu {
    display: grid; grid-template-columns: 46px 1fr; gap: .9rem; align-items: center;
    background: var(--pale); border: 1px solid var(--trait); border-radius: var(--rayon); padding: .8rem;
}
.voeu__rang {
    width: 46px; height: 46px; border-radius: 50%;
    background: var(--ciel); color: var(--blanc);
    display: flex; align-items: center; justify-content: center;
    font-family: var(--titre); font-size: 1.5rem;
}
.voeu--2 .voeu__rang { background: #4a9bd0; }
.voeu--3 .voeu__rang { background: #7fbadf; }
.voeu select { margin: 0; }
.voeu label { font-family: var(--titre); font-size: 1.05rem; margin-bottom: .2rem; display: block; }

/* Disponibilités par créneau */
.creneaux {
    display: grid; gap: 1px; background: var(--trait);
    border: 1px solid var(--trait); border-radius: var(--rayon); overflow: hidden; margin-bottom: 1.4rem;
}
@media (min-width: 620px) { .creneaux { grid-template-columns: repeat(3, 1fr); } }
.creneaux__jour { background: var(--surface); padding: .9rem 1rem; }
.creneaux__jour h4 {
    font-size: 1.25rem; margin-bottom: .5rem; padding-bottom: .4rem;
    border-bottom: 2px solid var(--voile); display: inline-block;
}
.creneaux__case { display: flex; gap: .55rem; align-items: center; margin-bottom: .4rem; }
.creneaux__case input { width: auto; }
.creneaux__case label { font-family: var(--texte); font-size: .98rem; margin: 0; }

/* Table des postes */
.table-scroll { overflow-x: auto; margin-bottom: 2rem; }
.postes { width: 100%; border-collapse: collapse; font-size: .96rem; }
.postes th, .postes td { padding: .65rem .7rem; border-bottom: 1px solid var(--trait); text-align: left; }
.postes thead th {
    font-family: var(--titre); font-size: 1.08rem; color: var(--blanc);
    background: var(--nuit); white-space: nowrap;
}
.postes tbody tr:nth-child(even) { background: var(--pale); }
.postes td.nombre { text-align: center; font-family: var(--titre); font-size: 1.15rem; }
.postes .poste-nom { font-family: var(--titre); font-size: 1.22rem; }
.postes .poste-desc { display: block; font-family: var(--texte); font-size: .9rem; color: var(--gris); }

/* =====================================================================
   Pied de page
   ================================================================== */
.pied { background: var(--nuit); color: #9fc3dd; padding: 3rem 0 2rem; font-size: .95rem; }
.pied a { color: var(--blanc); }
.pied a:hover { color: var(--soleil); }
.pied h4 { font-size: 1.25rem; color: var(--blanc); margin-bottom: .6rem; }
.pied ul { list-style: none; margin: 0; padding: 0; }
.pied li { margin-bottom: .35rem; }
.pied__grille { display: grid; gap: 2rem; }
@media (min-width: 760px) { .pied__grille { grid-template-columns: 1.5fr 1fr 1fr; } }
.pied__bas {
    margin-top: 2.5rem; padding-top: 1.2rem; border-top: 1px solid rgba(255,255,255,.15);
    display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; justify-content: space-between; font-size: .88rem;
}

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

.riche h3 { margin-top: 2rem; }
.riche ul, .riche ol { max-width: 68ch; }
.riche li { margin-bottom: .4rem; }

/* Liste des postes sur la page bénévoles */
.postes-liste { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.poste-carte {
    background: var(--surface); border: 1px solid var(--trait); border-top: 3px solid var(--ciel);
    border-radius: var(--rayon); padding: 1.1rem 1.2rem;
}
.poste-carte h3 { margin-bottom: .35rem; }
.poste-carte p { margin: 0; color: var(--gris); font-size: .96rem; }

/* Bouton billetterie dans le menu */
.nav .nav__billet { background: var(--soleil); color: var(--nuit); }
.nav .nav__billet:hover, .nav .nav__billet[aria-current="page"] { background: #e0a22e; color: var(--nuit); }

/* Page billetterie */
.tarifs { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin-bottom: 2.2rem; }
.tarif {
    background: var(--surface); border: 1px solid var(--trait); border-radius: var(--rayon);
    padding: 1.3rem 1.2rem; text-align: center;
}
.tarif__nom { font-family: var(--titre); font-size: 1.3rem; display: block; margin-bottom: .3rem; }
.tarif__prix { font-family: var(--titre); font-size: 2.6rem; color: var(--lien); line-height: 1.05; display: block; }
.tarif__precision { display: block; color: var(--gris); font-size: .9rem; margin-top: .45rem; }

/* Bouton de thème (bandeau supérieur) */
.theme-bouton {
    display: inline-flex; align-items: center; justify-content: center;
    width: 30px; height: 30px; padding: 0; border-radius: 50%;
    background: transparent; border: 1px solid #3c5468; color: #a9c9de; cursor: pointer;
}
.theme-bouton:hover { color: var(--blanc); border-color: var(--soleil); }
.theme-bouton svg { width: 16px; height: 16px; fill: currentColor; }
.theme-bouton .icone-lune { display: var(--icone-lune); }
.theme-bouton .icone-soleil { display: var(--icone-soleil); }

/* Les logos partenaires restent sur fond blanc : beaucoup ont du texte sombre */
.logos { --surface: #ffffff; }

/* =====================================================================
   Bandeau d'annonce
   ================================================================== */
.annonce { background: var(--soleil); color: var(--nuit); }
.annonce--urgente { background: var(--voile); color: #fff; }
.annonce__inner { display: flex; gap: .8rem; align-items: center; padding: .7rem 0; }
.annonce p { margin: 0; max-width: none; font-weight: 600; }
.annonce a { color: inherit; font-weight: 700; margin-left: .4rem; }
.annonce__icone {
    flex: none; width: 26px; height: 26px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: rgba(0,0,0,.14); font-family: var(--titre); font-size: 1.1rem;
}

/* =====================================================================
   Programme
   ================================================================== */
.programme-jour + .programme-jour { margin-top: 2.6rem; }
.programme { list-style: none; margin: 0 0 0 12px; padding: 0; border-left: 3px solid var(--ciel); }
.programme__item {
    position: relative; display: grid; grid-template-columns: 92px 1fr; gap: 1rem;
    padding: .9rem 0 .9rem 1.2rem;
}
.programme__item::before {
    content: ''; position: absolute; left: -8px; top: 1.25rem; width: 13px; height: 13px;
    background: var(--ciel); transform: rotate(45deg);
}
.programme__item--sol::before { background: #3aa76d; }
.programme__item--spectacle::before { background: var(--voile); }
.programme__heure { font-family: var(--titre); font-size: 1.5rem; line-height: 1.1; }
.programme__heure small { display: block; font-size: .95rem; color: var(--gris); }
.programme__cat { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--gris); }
.programme__item h3 { margin: .1rem 0 .25rem; }
.programme__item p { margin: 0; color: var(--gris); font-size: .96rem; }

/* =====================================================================
   Mon planning
   ================================================================== */
.choix-benevole select { max-width: 420px; font-size: 1.1rem; }
.mon-planning { display: grid; gap: .8rem; max-width: 760px; }
.mon-planning__ligne {
    display: grid; grid-template-columns: 150px 1fr; gap: 1.2rem; align-items: start;
    background: var(--surface); border: 1px solid var(--trait); border-left: 4px solid var(--ciel);
    border-radius: var(--rayon); padding: 1rem 1.2rem;
}
.mon-planning__ligne--montage, .mon-planning__ligne--demontage { border-left-color: #8a6d3b; }
.mon-planning__quand strong { font-family: var(--titre); font-size: 1.45rem; display: block; line-height: 1.1; }
.mon-planning__quand span { color: var(--gris); }
.mon-planning__phase { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; }
.mon-planning h3 { margin-bottom: .2rem; }
.mon-planning p { margin: 0; color: var(--gris); font-size: .95rem; }
@media (max-width: 520px) { .mon-planning__ligne, .programme__item { grid-template-columns: 1fr; gap: .3rem; } .programme {margin: 0 0 0 7px;} }

@media print {
    .topbar, .entete, .nav, .pied, .annonce, .choix-benevole, .fil, button { display: none !important; }
    .section { padding: 1rem 0; }
}

/* =====================================================================
   Logo image (remplace le nom en toutes lettres)
   ================================================================== */
.logo__image { display: block; height: clamp(56px, 9vw, 96px); width: auto; max-width: min(360px, 62vw); object-fit: contain; }
/* En mode sombre, un logo à texte foncé resterait illisible : petit fond clair */
[data-theme="dark"] .logo__image { background: #fff; border-radius: 6px; padding: 4px 8px; }
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .logo__image { background: #fff; border-radius: 6px; padding: 4px 8px; }
}

/* =====================================================================
   Page Stands
   ================================================================== */
.piege { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.duo-public { display: grid; gap: 0 1.2rem; }
@media (min-width: 620px) { .duo-public { grid-template-columns: 1fr 1fr; } }
fieldset.champ { border: 0; padding: 0; margin-left: 0; margin-right: 0; }
fieldset.champ legend { font-weight: 600; margin-bottom: .4rem; padding: 0; }
.cases-jours { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; }
.cases-jours label { display: flex; align-items: center; gap: .4rem; font-weight: 400; cursor: pointer; }

/* =====================================================================
   Contenu mis en forme par l'éditeur
   ================================================================== */
.riche h2 { margin-top: 2.2rem; }
.riche blockquote { margin: 1.4rem 0; padding: .5rem 1.2rem; border-left: 4px solid var(--ciel); color: var(--gris); font-style: italic; }
.riche hr { border: 0; border-top: 2px solid var(--trait); margin: 2rem 0; }
.riche > :first-child { margin-top: 0; }

/* =====================================================================
   Plan du terrain
   ================================================================== */
.plan__legende { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .8rem; }
.plan__filtre {
    display: inline-flex; align-items: center; gap: .45rem; font: inherit; font-size: .9rem; cursor: pointer;
    padding: .3rem .75rem .3rem .35rem; border-radius: 20px; border: 1px solid var(--trait); background: var(--surface); color: var(--encre);
}
.plan__filtre[aria-pressed="false"] { opacity: .45; text-decoration: line-through; }
.plan__pastille, .plan__repere > span {
    display: inline-flex; align-items: center; justify-content: center; min-width: 24px; height: 24px; padding: 0 4px;
    border-radius: 12px; background: var(--c); color: #fff; font-size: .72rem; font-weight: 700; line-height: 1;
}
.plan__cadre { position: relative; border-radius: var(--rayon); overflow: hidden; background: #fff; box-shadow: 0 2px 12px rgba(0,0,0,.1); }
.plan__image { display: block; width: 100%; height: auto; }
.plan__repere {
    position: absolute; transform: translate(-50%, -50%); padding: 0; border: 0; background: none; cursor: pointer;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,.45));
}
.plan__repere > span { border: 2px solid #fff; min-width: 28px; height: 28px; border-radius: 14px; font-size: .78rem; }
.plan__repere:hover > span, .plan__repere[aria-expanded="true"] > span { transform: scale(1.2); }
.plan__repere:focus-visible { outline: 3px solid var(--soleil); outline-offset: 2px; border-radius: 16px; }
.plan__repere[hidden] { display: none; }
.plan__bulle {
    position: absolute; z-index: 2; transform: translate(-50%, calc(-100% - 22px)); width: max-content; max-width: 260px;
    background: var(--nuit); color: #fff; padding: .6rem .8rem; border-radius: 6px; box-shadow: 0 4px 16px rgba(0,0,0,.3);
}
.plan__bulle.est-a-gauche { transform: translate(calc(-100% + 20px), calc(-100% - 22px)); }
.plan__bulle.est-en-dessous { transform: translate(-50%, 22px); }
.plan__bulle.est-a-gauche.est-en-dessous { transform: translate(calc(-100% + 20px), 22px); }
.plan__bulle strong { display: block; font-family: var(--titre); font-size: 1.15rem; }
.plan__bulle p { margin: .25rem 0 0; font-size: .9rem; color: #cfe2ef; }
.plan__bulle-type { font-size: .72rem; text-transform: uppercase; letter-spacing: .07em; color: var(--soleil); }
.plan__liste { margin-top: .8rem; }
.plan__liste summary { cursor: pointer; font-weight: 600; }
.plan__liste ul { columns: 2 260px; margin-top: .6rem; }
.plan--grand .plan__cadre { max-width: 1400px; }

/* =====================================================================
   Infos pratiques
   ================================================================== */
.itineraire { background: var(--surface); border: 1px solid var(--trait); border-radius: var(--rayon); padding: 1rem 1.2rem; max-width: 760px; margin: 1.2rem 0; }
.itineraire p { margin: 0 0 .7rem; }
.sommaire { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 1rem; }
.sommaire a { padding: .3rem .8rem; border-radius: 20px; background: var(--pale); text-decoration: none; font-size: .93rem; }
.infos-grille { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.info-carte { background: var(--surface); border: 1px solid var(--trait); border-top: 4px solid var(--ciel); border-radius: var(--rayon); padding: 1.2rem 1.4rem; scroll-margin-top: 1rem; }
.info-carte h2 { font-size: 1.5rem; margin-bottom: .6rem; }
.info-carte .riche p:last-child { margin-bottom: 0; }
.faq { display: grid; gap: .6rem; }
.faq__item { background: var(--surface); border: 1px solid var(--trait); border-radius: var(--rayon); }
.faq__item summary { cursor: pointer; padding: .9rem 1.1rem; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: '+'; font-family: var(--titre); font-size: 1.4rem; line-height: 1; color: var(--ciel); }
.faq__item[open] summary::after { content: '−'; }
.faq__item .riche { padding: 0 1.1rem 1rem; }

.festival-bloc { display: grid; gap: 1.6rem; align-items: center; }
.festival-bloc--image { grid-template-columns: 1fr; }
@media (min-width: 860px) { .festival-bloc--image { grid-template-columns: 1.1fr .9fr; } }
.festival-bloc--image.festival-bloc--inverse > div { order: 2; }
.festival-bloc img { width: 100%; height: auto; border-radius: var(--rayon); display: block; }
.festival-bloc h2 { font-size: clamp(1.7rem, 3.4vw, 2.3rem); }
.festival-bloc .riche { max-width: 66ch; }

.pied__legal { display: flex; gap: 1rem; flex-wrap: wrap; }
.a-completer { background: var(--soleil); color: var(--nuit); padding: 0 .3em; border-radius: 3px; font-weight: 600; }

/* Espace bénévole : état de la présence */
.etat-presence { border-radius: var(--rayon); padding: 1.2rem 1.4rem; max-width: 660px; border: 1px solid var(--trait); background: var(--surface); border-left: 5px solid var(--gris); }
.etat-presence h2 { margin: 0 0 .3rem; font-size: 1.5rem; }
.etat-presence p { margin: 0; color: var(--gris); }
.etat-presence--confirme { border-left-color: #2e8b57; }
.etat-presence--annule { border-left-color: var(--voile); }
.etat-presence--attente { border-left-color: var(--soleil); }
.reponse-presence { max-width: 660px; }