/* =====================================================================
   De l'école au travail — feuille de style du site public
   Identité « Passage » : grotesque internationale (Archivo), bleu nuit
   porteur, cyan signature réservé aux aplats et aux graphismes, or du
   logo réservé au DEAT Passport. Flèche → : le passage école → travail.
   Écrit à la main. Aucune dépendance.

   Sommaire
     1. Polices et jetons (couleurs, typographie, espacements, rayons)
     2. Base, focus, utilitaires
     3. Gabarit : sections, en-têtes de page, mises en page partagées
     4. En-tête et navigation (mobile d'abord, bureau à partir de 64 rem)
     5. Boutons, liens d'action
     6. Accueil : intro, hero, bandeau, mise en avant
     7. Composants : parcours, volets, programmes, cartes, agenda,
        opportunités, formules, contact, formulaires, messages
     8. Pages : programmes, Passport, article, légal, espace lecteur, 404
     9. Pied de page
    10. Mouvement (révélations, mouvement réduit), impression
   ===================================================================== */

/* ---------- 1. Polices auto-hébergées (licence SIL OFL) ---------- */
@font-face {
    font-family: 'Archivo';
    src: url('/assets/fonts/archivo-variable.woff2') format('woff2');
    font-weight: 400 800;
    font-display: swap;
}
@font-face {
    font-family: 'Public Sans';
    src: url('/assets/fonts/public-sans-variable.woff2') format('woff2');
    font-weight: 400 700;
    font-display: swap;
}

/* ---------- Jetons ----------
   Règle de contraste : tout texte posé sur du blanc ou de la brume utilise
   --nuit, --texte, --gris, --ciel-appui ou --or-appui (≥ 4,5:1). Le cyan
   --ciel et l'or --or ne portent jamais de texte sur fond clair. */
:root {
    --nuit:         #0D2C4A;   /* couleur porteuse : titres, boutons, pied */
    --nuit-2:       #16436E;   /* survol */
    --nuit-3:       #08203A;   /* fond profond (Passport) */
    --ciel:         #1CABE2;   /* signature : aplats, filets, graphismes */
    --ciel-appui:   #0A6E96;   /* cyan lisible : surtitres, liens, numéros */
    --ciel-hover:   #0C87B8;
    --ciel-voile:   rgb(28 171 226 / 0.16);
    --or:           #C9A227;   /* accent du logo : Passport, badge */
    --or-appui:     #7A5C05;   /* or lisible sur fond clair */
    --or-voile:     #F7EFD3;
    --texte:        #22405E;
    --gris:         #4A6683;
    --papier:       #FFFFFF;
    --blanc:        #FFFFFF;
    --brume:        #EAF6FC;   /* sections teintées */
    --brume-2:      #F4F9FD;   /* en-têtes de page, fonds discrets */
    --lisiere:      #D8E7F2;   /* filets décoratifs */
    --lisiere-forte:#6B849E;   /* bordures de composants (≥ 3:1) */
    --alerte:       #B23A2F;
    --alerte-fond:  #FDF0EE;
    --succes:       #1E6B3A;
    --succes-fond:  #EAF6EE;
    --sur-nuit:     #D9E9F5;   /* texte courant sur bleu nuit */
    --sur-nuit-2:   #A8CBE4;   /* texte secondaire sur bleu nuit */

    --titres: 'Archivo', system-ui, sans-serif;
    --corps:  'Public Sans', system-ui, sans-serif;

    /* Échelle typographique fluide */
    --t-hero:  clamp(2.75rem, 1.7rem + 4.4vw, 4.9rem);
    --t-h1:    clamp(2.2rem, 1.5rem + 3vw, 3.5rem);
    --t-h2:    clamp(1.65rem, 1.25rem + 1.7vw, 2.4rem);
    --t-h3:    1.2rem;
    --t-chapo: clamp(1.08rem, 1rem + 0.45vw, 1.28rem);
    --t-petit: 0.92rem;
    --t-mini:  0.8rem;

    /* Espacements */
    --e-section: clamp(3.25rem, 6.5vw, 6rem);
    --e-bloc:    clamp(1.75rem, 3.5vw, 2.75rem);
    --e-grille:  clamp(1.1rem, 2.4vw, 1.75rem);
    --e-marge:   clamp(1.25rem, 4vw, 2.5rem);

    --largeur-page:  72rem;
    --largeur-large: 80rem;
    --hauteur-entete: 4.25rem;

    --r-s: 6px;
    --r-m: 12px;
    --r-l: 18px;

    --ombre-1: 0 1px 2px rgb(13 44 74 / 0.05), 0 8px 24px rgb(13 44 74 / 0.07);
    --ombre-2: 0 12px 34px rgb(13 44 74 / 0.16);

    --vite:    0.16s ease;
    --ressort: cubic-bezier(0.2, 0.6, 0.2, 1);

    color-scheme: light;   /* identité claire assumée, y compris en mode sombre système */
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--hauteur-entete) + 1rem);
}

body {
    margin: 0;
    background: var(--papier);
    color: var(--texte);
    font-family: var(--corps);
    font-size: 1rem;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    transition: opacity 0.2s ease;
}
html.sortie body { opacity: 0; }

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

h1, h2, h3 {
    font-family: var(--titres);
    color: var(--nuit);
    letter-spacing: -0.02em;
    line-height: 1.08;
    margin: 0 0 0.55em;
    text-wrap: balance;
}
h1 { font-size: var(--t-h1); font-weight: 800; line-height: 1.02; letter-spacing: -0.03em; }
h2 { font-size: var(--t-h2); font-weight: 700; }
h3 { font-size: var(--t-h3); font-weight: 700; letter-spacing: -0.01em; line-height: 1.25; }

p { margin: 0 0 1em; }

::selection { background: var(--ciel); color: var(--nuit); }

a {
    color: var(--nuit);
    text-decoration-thickness: 1.5px;
    text-underline-offset: 3px;
    text-decoration-color: var(--ciel);
    transition: text-decoration-color var(--vite), color var(--vite);
}
a:hover { color: var(--ciel-appui); }

/* Focus clavier visible, partout, sans exception */
:focus-visible {
    outline: 3px solid var(--ciel-appui);
    outline-offset: 3px;
    border-radius: 2px;
}

/* Fil du passage : fine ligne cyan qui avance avec le scroll */
.fil-progression {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--ciel);
    transform: scaleX(0);
    transform-origin: left;
    z-index: 60;
    pointer-events: none;
}
@keyframes progresser {
    from { transform: scaleX(0); }
    to   { transform: scaleX(1); }
}
@supports (animation-timeline: scroll()) {
    html.js .fil-progression {
        animation: progresser linear both;
        animation-timeline: scroll(root);
    }
}

/* Lien d'évitement */
.evitement {
    position: absolute;
    left: -200vw;
    top: 0.5rem;
    z-index: 100;
    background: var(--nuit);
    color: var(--papier);
    padding: 0.6em 1.2em;
    border-radius: var(--r-s);
    font-family: var(--titres);
    font-weight: 600;
}
.evitement:focus-visible { left: 0.5rem; }

/* Réservé aux lecteurs d'écran */
.visuellement-cache {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

/* Largeurs de lecture (la CSP interdit les styles inline) */
.mesure { max-width: 62ch; }
.mesure-etroite { max-width: 55ch; }

/* ---------- 3. Gabarit ---------- */
.interieur {
    max-width: var(--largeur-page);
    margin-inline: auto;
    padding-inline: var(--e-marge);
}

.section { padding-block: var(--e-section); }
.section-teinte { background: var(--brume); }

/* Bloc cyan plein : soutenir, adhérer */
.section-pleine { background: var(--ciel); position: relative; overflow: hidden; }
.section-pleine h2, .section-pleine p { color: var(--nuit); }
.section-pleine .interieur { position: relative; z-index: 1; }
.section-pleine .surtitre { color: var(--nuit); }

/* Bloc bleu nuit : le DEAT Passport, souligné d'or */
.section-nuit { background: var(--nuit-3); color: var(--sur-nuit); position: relative; overflow: hidden; }
.section-nuit h2, .section-nuit h3 { color: var(--papier); }
.section-nuit p { color: var(--sur-nuit); }
.section-nuit .surtitre { color: var(--or); }
.section-nuit .interieur { position: relative; z-index: 1; }
.section-nuit a:not(.bouton) { color: var(--papier); text-decoration-color: var(--or); }
.section-nuit .liste-fleches li::before { color: var(--or); }
.section-nuit .bouton-plein { background: var(--or); border-color: var(--or); color: var(--nuit); }
.section-nuit .bouton-plein:hover { background: var(--papier); border-color: var(--papier); color: var(--nuit); box-shadow: none; }
.section-nuit .bouton-contour { color: var(--papier); border-color: rgb(255 255 255 / 0.6); }
.section-nuit .bouton-contour:hover { background: var(--papier); border-color: var(--papier); color: var(--nuit); }
.section-nuit :focus-visible { outline-color: var(--or); }

/* La flèche filigrane des blocs pleins */
.soutenir-fleche {
    position: absolute;
    right: clamp(-5rem, -3vw, -1rem);
    top: 50%;
    transform: translateY(-50%);
    width: clamp(16rem, 34vw, 30rem);
    color: rgb(13 44 74 / 0.09);
    pointer-events: none;
    animation: deriver-soutenir 16s ease-in-out infinite alternate;
}
.section-nuit .soutenir-fleche { color: rgb(255 255 255 / 0.05); }
@keyframes deriver-soutenir {
    from { transform: translateY(-50%) translateX(0); }
    to   { transform: translateY(-50%) translateX(-2.5rem); }
}

/* Le surtitre fléché : la signature du site */
.surtitre {
    font-family: var(--titres);
    font-weight: 700;
    font-size: var(--t-mini);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--ciel-appui);
    margin: 0 0 1.1em;
}
.surtitre::before {
    content: '\2192';   /* → */
    margin-right: 0.6em;
    font-weight: 800;
}

/* En-tête de page intérieure : plus bas que le hero, sur fond discret */
.page-titre {
    background: var(--brume-2);
    border-bottom: 1px solid var(--lisiere);
    padding-block: clamp(2.5rem, 5vw, 4rem) clamp(2rem, 4vw, 3rem);
}
.page-titre h1 { max-width: 18ch; }
.page-titre .hero-chapo { margin-bottom: 0.6em; }
.page-titre .hero-chapo + .sommaire,
.page-titre .promesse-page + .sommaire { margin-top: 1.6rem; }

/* Tête de section + corps côte à côte : casse la répétition verticale */
.section-split {
    display: grid;
    gap: var(--e-bloc);
    align-items: start;
}
.section-split .section-tete > :last-child { margin-bottom: 0; }
.section-split .section-corps > :last-child { margin-bottom: 0; }
@media (min-width: 48rem) {
    .section-split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 4.5rem); }
    .section-split .section-tete { position: sticky; top: calc(var(--hauteur-entete) + 1.5rem); }
    .section-split .section-tete h2 { max-width: 16ch; }
}

/* Sommaire de page (sous-navigation interne) */
.sommaire {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 0.55rem;
    margin-top: 1.5rem;
}
.sommaire a {
    font-family: var(--titres);
    font-weight: 600;
    font-size: 0.88rem;
    line-height: 1.2;
    text-decoration: none;
    padding: 0.55em 0.95em;
    border: 1px solid var(--lisiere);
    border-radius: 99px;
    background: var(--papier);
    color: var(--nuit);
    transition: border-color var(--vite), background var(--vite), color var(--vite);
}
.sommaire a:hover { border-color: var(--ciel-appui); background: var(--brume); color: var(--nuit); }

/* Signature sous le titre : la promesse d'un programme */
.hero-baseline {
    font-family: var(--titres);
    font-weight: 700;
    font-size: clamp(1.1rem, 1rem + 0.9vw, 1.5rem);
    color: var(--ciel-appui);
    letter-spacing: -0.01em;
    line-height: 1.3;
    margin-bottom: 0.8em;
    max-width: 34ch;
}
.promesse-page {
    margin: 0 0 1.4em;
    padding-left: 1.1rem;
    border-left: 4px solid var(--ciel);
    font-size: clamp(1.08rem, 1rem + 0.6vw, 1.3rem);
    font-weight: 600;
    color: var(--nuit);
    max-width: 46ch;
}
.precision-encadree {
    background: var(--papier);
    border: 1px solid var(--lisiere);
    border-left: 4px solid var(--or);
    border-radius: 0 var(--r-m) var(--r-m) 0;
    padding: 1rem 1.3rem;
    max-width: 52rem;
    margin-top: 1.5rem;
}

/* ---------- 4. En-tête et navigation ----------
   Mobile d'abord : marque + bouton Menu sur une ligne, panneau replié.
   À partir de 64 rem : navigation horizontale, sous-menus déroulants. */
.entete {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgb(255 255 255 / 0.88);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--lisiere);
    transition: box-shadow 0.25s ease;
}
.entete.reduite { box-shadow: 0 4px 24px rgb(13 44 74 / 0.08); }
.entete-interieur {
    max-width: var(--largeur-large);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1.25rem;
    flex-wrap: wrap;
    min-height: var(--hauteur-entete);
    padding-block: 0.6rem;
}
.marque {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--titres);
    font-weight: 800;
    font-size: 1.05rem;
    letter-spacing: -0.02em;
    text-decoration: none;
    color: var(--nuit);
    white-space: nowrap;
    min-width: 0;
}
.marque:hover { color: var(--nuit); }
.marque-logo {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    flex: none;
}
.marque-fleche {
    color: var(--ciel);
    padding-inline: 0.15em;
    display: inline-block;
    transition: padding 0.2s ease;
}
.marque:hover .marque-fleche { padding-inline: 0.3em 0; }

.menu-bouton {
    font-family: var(--titres);
    font-weight: 700;
    font-size: 0.95rem;
    background: none;
    border: 2px solid var(--nuit);
    border-radius: var(--r-s);
    color: var(--nuit);
    padding: 0.45em 0.9em;
    min-height: 44px;
    cursor: pointer;
    flex: none;
    transition: background var(--vite), color var(--vite);
}
.menu-bouton:hover { background: var(--nuit); color: var(--papier); }
.menu-bouton[aria-expanded="true"] { background: var(--nuit); color: var(--papier); }

/* Le panneau de navigation (mobile) */
.navigation {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.1rem;
    border: 1px solid var(--lisiere);
    border-radius: var(--r-m);
    background: var(--papier);
    padding: 0.5rem;
    margin-block: 0.25rem 0.5rem;
    box-shadow: var(--ombre-1);
}
html.js .navigation { display: none; }
html.js .navigation.ouverte { display: flex; animation: menu-deplier 0.28s var(--ressort); }
@keyframes menu-deplier {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: none; }
}
.navigation a:not(.bouton) {
    font-family: var(--titres);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    color: var(--nuit);
    white-space: nowrap;
}
.navigation > a:not(.bouton),
.nav-parent {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 0.6em 1em;
    border-radius: var(--r-s);
    transition: background var(--vite), color var(--vite);
}
.navigation a:not(.bouton):hover { background: var(--brume); color: var(--nuit); }
.navigation a[aria-current="page"] { color: var(--ciel-appui); }
.navigation > .bouton { margin-top: 0.5rem; text-align: center; }
.bouton-passport { font-size: 0.92rem; padding: 0.7em 1.1em; }

/* Groupes avec sous-menu : sur mobile, un bouton « déplier » (posé par JS) */
.nav-groupe { position: relative; width: 100%; }
.nav-groupe-tete { display: flex; align-items: center; gap: 0.25rem; }
.nav-groupe-tete .nav-parent { flex: 1; }
.nav-deplier {
    flex: none;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    background: none;
    border: 1px solid var(--lisiere);
    border-radius: var(--r-s);
    color: var(--nuit);
    cursor: pointer;
    transition: background var(--vite), transform 0.25s var(--ressort);
}
.nav-deplier:hover { background: var(--brume); }
.nav-deplier::before {
    content: '';
    width: 0.55rem;
    height: 0.55rem;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: translateY(-2px) rotate(45deg);
    transition: transform 0.25s var(--ressort);
}
.nav-deplier[aria-expanded="true"]::before { transform: translateY(2px) rotate(225deg); }
.nav-sous {
    list-style: none;
    margin: 0;
    padding: 0.1rem 0 0.4rem 0.9rem;
    min-width: 14rem;
}
html.js .nav-groupe:not(.ouvert) .nav-sous { display: none; }
.nav-sous a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 0.5em 1em;
    border-radius: var(--r-s);
    font-weight: 500;
}

/* Entre 64 et 76 rem, la barre est serrée : libellés un peu plus petits,
   marque plus compacte, pour que tout tienne sur une seule ligne. */
@media (min-width: 64rem) and (max-width: 76rem) {
    .marque { font-size: 1.05rem !important; gap: 0.5rem !important; }
    .navigation { gap: 0.15rem !important; }
    .navigation a:not(.bouton) { font-size: 0.88rem !important; }
    .navigation > a:not(.bouton), .nav-parent { padding: 0.5em 0.45em !important; }
    .bouton-passport { font-size: 0.85rem; padding: 0.65em 0.9em; }
}

/* Navigation de bureau */
@media (min-width: 64rem) {
    .marque { font-size: 1.2rem; gap: 0.7rem; }
    .marque-logo { width: 44px; height: 44px; transition: width 0.25s ease, height 0.25s ease; }
    .entete.reduite .marque-logo { width: 36px; height: 36px; }
    .entete-interieur { padding-block: 0.9rem; transition: padding 0.25s ease; flex-wrap: nowrap; }
    .entete.reduite .entete-interieur { padding-block: 0.5rem; }
    .menu-bouton { display: none; }

    .navigation {
        display: flex !important;
        width: auto;
        flex-direction: row;
        align-items: center;
        gap: clamp(0.4rem, 1.2vw, 1rem);
        border: 0;
        border-radius: 0;
        background: none;
        padding: 0;
        margin: 0;
        box-shadow: none;
    }
    .navigation a:not(.bouton) { font-size: 0.95rem; }
    .navigation > a:not(.bouton),
    .nav-parent { min-height: 0; padding: 0.5em 0.6em; border-radius: var(--r-s); }
    .navigation > .bouton { margin: 0 0 0 0.4rem; white-space: nowrap; }
    .marque { flex: none; }
    .navigation a:not(.bouton):hover { background: none; color: var(--ciel-appui); }

    /* Soulignés animés : le trait se tire de gauche à droite */
    .navigation > a:not(.bouton),
    .nav-parent { position: relative; }
    .navigation > a:not(.bouton)::after,
    .nav-parent::before {
        content: '';
        position: absolute;
        left: 0.6em;
        right: 0.6em;
        bottom: 0.15em;
        height: 2px;
        background: var(--ciel);
        transform: scaleX(0);
        transform-origin: left;
        transition: transform 0.25s var(--ressort);
    }
    .navigation > a:not(.bouton):hover::after,
    .navigation > a:not(.bouton):focus-visible::after,
    .navigation > a[aria-current="page"]::after,
    .nav-parent:hover::before,
    .nav-parent:focus-visible::before,
    .nav-parent[aria-current="page"]::before { transform: scaleX(1); }

    /* Flèche ▾ du parent ; le bouton « déplier » du mobile disparaît */
    .nav-parent::after {
        content: '\25BE';
        margin-left: 0.35em;
        font-size: 0.75em;
        color: var(--ciel-appui);
        vertical-align: 0.08em;
    }
    .nav-groupe { width: auto; }
    .nav-deplier { display: none; }

    /* Le menu déroulant : ouvert au survol ET au clavier (:focus-within) */
    .nav-sous {
        position: absolute;
        top: calc(100% + 0.7rem);
        left: 0;
        padding: 0.45rem;
        background: var(--papier);
        border: 1px solid var(--lisiere);
        border-radius: var(--r-m);
        box-shadow: var(--ombre-2);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-6px);
        transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
        z-index: 70;
    }
    html.js .nav-groupe:not(.ouvert) .nav-sous { display: block; }
    /* Passerelle invisible : le curseur descend sans fermer le menu */
    .nav-sous::before {
        content: '';
        position: absolute;
        top: -0.8rem;
        left: 0;
        right: 0;
        height: 0.8rem;
    }
    .nav-groupe:hover .nav-sous,
    .nav-groupe:focus-within .nav-sous { opacity: 1; visibility: visible; transform: none; }
    .nav-groupe.nav-ferme .nav-sous { opacity: 0; visibility: hidden; }
    .nav-sous a { display: block; min-height: 0; padding: 0.55em 0.9em; white-space: nowrap; font-weight: 500; }
    .nav-sous a:hover { background: var(--brume) !important; color: var(--nuit) !important; }
}

/* ---------- 5. Boutons ---------- */
.bouton {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45em;
    font-family: var(--titres);
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.2;
    padding: 0.8em 1.4em;
    min-height: 44px;
    border-radius: var(--r-s);
    text-decoration: none;
    border: 2px solid var(--nuit);
    cursor: pointer;
    transition: background var(--vite), color var(--vite), border-color var(--vite),
                transform 0.22s var(--ressort), box-shadow 0.22s ease;
    will-change: transform;
}
.bouton-plein { background: var(--nuit); color: var(--papier); }
.bouton-plein:hover { background: var(--nuit-2); border-color: var(--nuit-2); color: var(--papier); box-shadow: var(--ombre-1); }
.bouton-contour { background: transparent; color: var(--nuit); }
.bouton-contour:hover { background: var(--nuit); color: var(--papier); }
.bouton:active { transform: translateY(1px) !important; box-shadow: none; }
.bouton-inactif {
    background: transparent;
    color: var(--gris);
    border-color: var(--lisiere-forte);
    cursor: not-allowed;
}
.bouton-petit { font-size: 0.9rem; padding: 0.55em 1.05em; min-height: 40px; }

/* Flèche des boutons et des liens d'action : elle avance au survol */
.fleche-bouton {
    display: inline-block;
    margin-left: 0.15em;
    transition: transform 0.2s ease;
}
.bouton:hover .fleche-bouton,
.rangee-suite a:hover .fleche-bouton,
.programme-lien:hover .fleche-bouton { transform: translateX(0.3em); }

/* Groupe de boutons (hero, sections, encarts) */
.hero-actions { display: flex; gap: 0.75rem 1rem; flex-wrap: wrap; align-items: center; }
.hero-actions:not(:last-child) { margin-bottom: 1.5rem; }

.rangee-suite { margin-top: var(--e-bloc); font-family: var(--titres); font-weight: 700; }
.rangee-suite a { text-decoration: none; }
.rangee-suite a:hover { text-decoration: underline; }
.lien-discret { font-family: var(--titres); font-weight: 600; font-size: 0.9rem; }

/* ---------- 6. Accueil ---------- */

/* Séquence d'ouverture : rideau bleu nuit, une fois par session */
.intro { display: none; }
html.js .intro {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    inset: 0;
    z-index: 200;
    background: var(--nuit);
}
.intro-marque {
    display: flex;
    align-items: center;
    gap: 0.4em;
    margin: 0;
    padding-inline: 1rem;
    color: var(--papier);
    font-family: var(--titres);
    font-weight: 800;
    font-size: clamp(1.5rem, 6vw, 3.2rem);
    letter-spacing: -0.02em;
    opacity: 0;
    animation: apparaitre 0.5s 0.1s ease both;
}
.intro-fleche { width: 1.6em; color: var(--ciel); }
.intro-fleche path {
    stroke-dasharray: 90;
    stroke-dashoffset: 90;
    animation: tracer 0.6s 0.45s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
@keyframes tracer { to { stroke-dashoffset: 0; } }
.intro.terminee { animation: rideau 0.55s cubic-bezier(0.7, 0, 0.3, 1) forwards; }
@keyframes rideau { to { transform: translateY(-101%); } }

/* Hero : la promesse à gauche, le passage en quatre étapes à droite */
.hero {
    padding-block: clamp(3rem, 7vw, 6rem) clamp(2.5rem, 6vw, 5rem);
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(to bottom, var(--brume-2), var(--papier) 70%);
}
.hero h1 { font-size: var(--t-hero); max-width: 12ch; margin-bottom: 0.4em; }
.hero-copie > :last-child { margin-bottom: 0; }

/* Titre cinétique : chaque ligne monte sous son masque, puis le trait cyan se tire */
.ligne {
    display: inline-block;
    overflow: hidden;
    vertical-align: top;
    padding-bottom: 0.1em;
    margin-bottom: -0.1em;
}
.ligne-int { display: inline-block; }
@keyframes monter {
    from { transform: translateY(112%); }
    to   { transform: none; }
}
html.js.prete .ligne-int { animation: monter 0.85s cubic-bezier(0.65, 0, 0.35, 1) both; }
html.js.prete .ligne-2 { animation-delay: 0.12s; }
.hero h1 .souligne {
    background-image: linear-gradient(var(--ciel), var(--ciel));
    background-repeat: no-repeat;
    background-position: 0 96%;
    background-size: 100% 0.09em;
}
@keyframes souligner {
    from { background-size: 0 0.09em; }
    to   { background-size: 100% 0.09em; }
}
html.js.prete .souligne { animation: souligner 0.7s 1.05s cubic-bezier(0.65, 0, 0.35, 1) both; }

.hero-chapo {
    font-size: var(--t-chapo);
    max-width: 48ch;
    line-height: 1.55;
    margin-bottom: 1.6em;
}
.hero-precision { margin-top: 1.3em; color: var(--gris); font-size: var(--t-petit); }
.hero-precision a { font-weight: 600; }

/* Pour qui : trois entrées, en pastilles */
.hero-publics { margin-top: 1.6rem; align-items: center; gap: 0.5rem 0.55rem; }
.hero-publics-titre {
    font-family: var(--titres);
    font-weight: 700;
    font-size: var(--t-mini);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--gris);
    margin: 0 0.35rem 0 0;
}


@media (min-width: 64rem) {
    }

/* Entrée en scène du hero, orchestrée après l'intro (.prete posée par JS) */
@keyframes apparaitre {
    from { opacity: 0; transform: translateY(22px); }
    to   { opacity: 1; transform: none; }
}
html.js.prete .hero-copie > * { animation: apparaitre 0.65s var(--ressort) both; }
html.js.prete .hero-copie > *:nth-child(2) { animation-delay: 0.08s; }
html.js.prete .hero-copie > *:nth-child(3) { animation-delay: 0.16s; }
html.js.prete .hero-copie > *:nth-child(4) { animation-delay: 0.24s; }
html.js.prete .hero-copie > *:nth-child(5) { animation-delay: 0.32s; }
html.js.prete .hero-copie > *:nth-child(6) { animation-delay: 0.4s; }

/* Le visuel de l'accueil : pleine largeur de colonne, sous le hero */
.visuel-accueil { padding-bottom: clamp(2.5rem, 6vw, 5rem); }
.visuel-accueil img {
    width: 100%;
    border-radius: var(--r-l);
    box-shadow: var(--ombre-2);
}
html.js.prete .visuel-accueil { animation: apparaitre 0.75s 0.45s var(--ressort) both; }

/* Bandeau défilant signature */
.bandeau-defilant {
    background: #F2D37A;          /* jaune miel : la lumière chaude du visuel, affirmée */
    color: var(--nuit);
    overflow: hidden;
    padding-block: 0.75rem;
    white-space: nowrap;
    border-block: 1px solid #DDB94E;
}
.bandeau-defilant-piste {
    display: inline-block;
    font-family: var(--titres);
    font-weight: 800;
    font-size: clamp(1rem, 2vw, 1.35rem);
    letter-spacing: 0.02em;
    text-transform: uppercase;
    animation: defiler 36s linear infinite;
}
.bandeau-defilant-piste .ciel { color: var(--nuit-3); opacity: 0.55; padding-inline: 0.7em; }
@keyframes defiler {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* Mise en avant : le prochain rendez-vous ou l'opportunité la plus urgente */
.mise-en-avant {
    display: grid;
    gap: clamp(1.5rem, 4vw, 3rem);
    align-items: center;
    margin-top: var(--e-bloc);
    padding: clamp(1.5rem, 3vw, 2.4rem);
    background: var(--brume);
    border-left: 5px solid var(--ciel);
    border-radius: 0 var(--r-m) var(--r-m) 0;
}
@media (min-width: 48rem) {
    .mise-en-avant { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
}
.mise-en-avant:only-child { margin-top: 0; }
.mise-en-avant-corps > *:last-child { margin-bottom: 0; }
.mise-en-avant-date {
    font-family: var(--titres);
    font-weight: 800;
    font-size: 1rem;
    letter-spacing: 0.02em;
    color: var(--ciel-appui);
    margin-bottom: 0.4em;
}
.mise-en-avant h3 { font-size: clamp(1.4rem, 1.1rem + 1.4vw, 2rem); margin-bottom: 0.35em; }
.mise-en-avant-details { color: var(--gris); font-family: var(--titres); font-weight: 600; }
.mise-en-avant-image { border-radius: var(--r-m); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }

/* ---------- 7. Composants ---------- */

/* Parcours : la seule séquence numérotée du site */
.parcours {
    list-style: none;
    margin: var(--e-bloc) 0 0;
    padding: 0;
    counter-reset: etape;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(15rem, 100%), 1fr));
    gap: var(--e-grille);
}
.parcours > li {
    counter-increment: etape;
    background: var(--papier);
    border: 1px solid var(--lisiere);
    border-radius: var(--r-m);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
}
.parcours > li::before {
    content: counter(etape, decimal-leading-zero);
    display: block;
    font-family: var(--titres);
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1;
    color: var(--ciel-appui);
    margin-bottom: 0.7rem;
}
/* Les numéros s'encrent quand la section se révèle : contour, puis remplissage */
@supports (-webkit-text-stroke: 2px #000) {
    html.js .revele .parcours > li::before {
        color: transparent;
        -webkit-text-stroke: 2px var(--ciel);
        transition: color 0.6s ease 0.35s, -webkit-text-stroke-color 0.6s ease 0.35s;
    }
    html.js .revele.visible .parcours > li::before { color: var(--ciel-appui); -webkit-text-stroke-color: var(--ciel-appui); }
}
.parcours h3 { margin: 0 0 0.3em; }
.parcours p { margin: 0; }

/* Volets : blocs d'information, jamais cliquables */
.volets {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(15rem, 100%), 1fr));
    gap: var(--e-grille);
    margin-top: var(--e-bloc);
}
.volets:not(:last-child) { margin-bottom: var(--e-bloc); }
.volet {
    background: var(--papier);
    border: 1px solid var(--lisiere);
    border-top: 3px solid var(--ciel);
    border-radius: var(--r-m);
    padding: 1.4rem 1.4rem 1.3rem;
}
.volet h3 { margin-bottom: 0.4em; }
.volet p { margin: 0; }
.volet p + p { margin-top: 0.6em; }

/* Les programmes : cartes bleu nuit */
.programmes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(18rem, 100%), 1fr));
    gap: var(--e-grille);
    margin-top: var(--e-bloc);
}
.programme {
    background: var(--nuit);
    color: var(--papier);
    border-radius: var(--r-l);
    padding: clamp(1.5rem, 2.5vw, 2rem);
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    outline: 2px solid transparent;
    outline-offset: 0;
    transition: transform 0.25s var(--ressort), outline-color 0.25s ease, box-shadow 0.25s ease;
}
.programme:hover { transform: translateY(-4px); outline-color: var(--ciel); box-shadow: var(--ombre-2); }
.programme-numero {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-family: var(--titres);
    font-weight: 800;
    font-size: 1rem;
    letter-spacing: 0.08em;
    color: var(--ciel);
    margin: 0;
}
.programme-numero::after {
    content: '';
    height: 2px;
    width: 2.2rem;
    background: var(--ciel);
    opacity: 0.7;
    transition: width 0.3s var(--ressort);
}
.programme:hover .programme-numero::after { width: 4.2rem; }
.programme h3 { color: var(--papier); font-size: 1.45rem; margin: 0; }
.programme-mission { font-family: var(--titres); font-weight: 600; color: var(--sur-nuit-2); margin: 0; }
.programme-promesse {
    margin: 0.3rem 0;
    padding-left: 0.9rem;
    border-left: 3px solid var(--ciel);
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.45;
}
.programme > p { margin: 0; color: var(--sur-nuit); }
.programme-volets {
    list-style: none;
    margin: 0.4rem 0 0;
    padding: 0;
    color: var(--sur-nuit-2);
    font-size: 0.95rem;
}
.programme-volets li { padding-left: 1.4em; position: relative; margin-bottom: 0.35em; }
.programme-volets li::before {
    content: '\2192';
    position: absolute;
    left: 0;
    color: var(--ciel);
    font-weight: 700;
}
.programme-lien {
    margin-top: auto;
    padding-top: 1rem;
    font-family: var(--titres);
    font-weight: 700;
    color: var(--papier);
    text-decoration: none;
    border-top: 1px solid rgb(255 255 255 / 0.12);
}
.programme-lien:hover { color: var(--ciel); }

/* Entrées : les voies (jeune, membre, partenaire, soutien) */
.deux-voies {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(16rem, 100%), 1fr));
    gap: var(--e-grille);
    margin-top: var(--e-bloc);
}
.voie {
    background: var(--papier);
    border: 1px solid var(--lisiere);
    border-radius: var(--r-m);
    padding: 1.6rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    transition: border-color var(--vite), box-shadow 0.2s ease;
}
.voie:hover { border-color: var(--lisiere-forte); box-shadow: var(--ombre-1); }
.voie h3 { margin: 0; }
.voie p { flex: 1; margin: 0 0 1em; }
.voie .bouton { align-self: flex-start; }

/* Cartes de contenu (actualité, découverte) */
.cartes {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(16rem, 100%), 1fr));
    gap: var(--e-grille);
    margin-top: var(--e-bloc);
}
.carte {
    background: var(--papier);
    border: 1px solid var(--lisiere);
    border-radius: var(--r-m);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: border-color var(--vite), transform 0.2s var(--ressort), box-shadow 0.2s ease;
}
.carte:hover { border-color: var(--ciel); transform: translateY(-3px); box-shadow: var(--ombre-1); }
.carte-image { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.carte-sans-image {
    aspect-ratio: 16 / 9;
    background: var(--brume);
    display: grid;
    place-items: center;
}
.carte-sans-image span { font-family: var(--titres); font-weight: 800; font-size: 2.2rem; color: var(--ciel); }
.carte-corps { padding: 1.1rem 1.25rem 1.3rem; display: flex; flex-direction: column; gap: 0.4rem; flex: 1; }
.carte-date { color: var(--gris); font-size: 0.88rem; margin: 0; font-family: var(--titres); font-weight: 600; }
.carte h3 { margin: 0; }
.carte h3 a { text-decoration: none; }
.carte h3 a:hover { text-decoration: underline; text-decoration-color: var(--ciel); color: var(--nuit); }
.carte-extrait { font-size: 0.96rem; margin: 0; }

/* ---------- Galerie vidéos ----------
   Des miniatures qui renvoient vers YouTube : aucun lecteur intégré.
   3 colonnes sur grand écran, 2 sur tablette, 1 sur téléphone. */
.galerie-videos {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--e-grille);
}
@media (min-width: 40rem) { .galerie-videos { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 64rem) { .galerie-videos { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.galerie-videos > li { display: flex; }
.video-carte {
    display: flex;
    flex-direction: column;
    width: 100%;
    background: var(--papier);
    border: 1px solid var(--lisiere);
    border-radius: var(--r-m);
    overflow: hidden;
    text-decoration: none;
    color: var(--nuit);
    transition: border-color var(--vite), transform 0.2s var(--ressort), box-shadow 0.2s ease;
}
.video-carte:hover { border-color: var(--ciel); transform: translateY(-3px); box-shadow: var(--ombre-1); }
.video-carte:focus-visible { outline: 3px solid var(--ciel); outline-offset: 3px; }
/* La vignette garde le 16:9 ; le fond nuit sert de repli si l'image manque. */
.video-vignette {
    position: relative;
    aspect-ratio: 16 / 9;
    background: var(--nuit);
    overflow: hidden;
}
.video-vignette img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* rogne les bandes noires des miniatures 4:3 */
    display: block;
    transition: transform 0.4s var(--ressort);
}
.video-carte:hover .video-vignette img { transform: scale(1.03); }
.video-lecture {
    position: absolute;
    left: 1rem;
    bottom: 1rem;
    width: 3.1rem;
    height: 3.1rem;
    border-radius: 50%;
    background: var(--nuit);
    color: #fff;
    display: grid;
    place-items: center;
    box-shadow: 0 0 0 4px rgb(255 255 255 / 0.9);
    transition: background var(--vite), transform 0.2s var(--ressort);
}
.video-lecture svg { width: 1.35rem; height: 1.35rem; fill: currentColor; margin-left: 2px; }
.video-carte:hover .video-lecture,
.video-carte:focus-visible .video-lecture { background: var(--ciel); color: var(--nuit); transform: scale(1.08); }
.video-corps { padding: 1rem 1.2rem 1.2rem; display: flex; flex-direction: column; gap: 0.35rem; flex: 1; }
.video-titre { margin: 0; font-size: 1.12rem; line-height: 1.3; }
.video-date { color: var(--gris); font-size: 0.88rem; font-family: var(--titres); font-weight: 600; }
.video-voir {
    margin-top: auto;
    padding-top: 0.5rem;
    font-family: var(--titres);
    font-weight: 700;
    font-size: 0.92rem;
    text-decoration: underline;
    text-decoration-color: var(--ciel);
    text-underline-offset: 0.2em;
}
/* Accueil : la dernière vidéo, en grand, miniature à gauche sur grand écran */
.video-une {
    display: grid;
    grid-template-columns: 1fr;
    margin-top: var(--e-bloc);
    background: var(--papier);
    border: 1px solid var(--lisiere);
    border-radius: var(--r-m);
    overflow: hidden;
    text-decoration: none;
    color: var(--nuit);
    transition: border-color var(--vite), box-shadow 0.2s ease;
}
@media (min-width: 48rem) {
    .video-une { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); align-items: center; }
}
.video-une:hover { border-color: var(--ciel); box-shadow: var(--ombre-1); }
.video-une:focus-visible { outline: 3px solid var(--ciel); outline-offset: 3px; }
.video-une:hover .video-vignette img { transform: scale(1.03); }
.video-une:hover .video-lecture,
.video-une:focus-visible .video-lecture { background: var(--ciel); color: var(--nuit); transform: scale(1.08); }
.video-une .video-lecture { width: 3.8rem; height: 3.8rem; left: 1.25rem; bottom: 1.25rem; }
.video-une-corps { padding: clamp(1.2rem, 3vw, 2.2rem); display: flex; flex-direction: column; gap: 0.6rem; align-items: flex-start; }
.video-une .video-titre { font-size: clamp(1.2rem, 2.2vw, 1.55rem); }
.video-une .video-date { margin: 0; }
.video-une .bouton { margin-top: 0.6rem; }

@media (prefers-reduced-motion: reduce) {
    .video-carte, .video-une, .video-vignette img, .video-lecture { transition: none; }
    .video-carte:hover, .video-carte:hover .video-vignette img, .video-carte:hover .video-lecture,
    .video-une:hover .video-vignette img, .video-une:hover .video-lecture { transform: none; }
}

/* ---------- Formules d'adhésion ----------
   Contenu défini dans le back-office ; 3 / 2 / 1 colonnes, bouton en bas. */
.formules {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--e-grille);
}
@media (min-width: 40rem) { .formules { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 64rem) { .formules { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.formule {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    background: var(--papier);
    border: 1px solid var(--lisiere);
    border-top: 4px solid var(--ciel);
    border-radius: var(--r-m);
    padding: clamp(1.25rem, 3vw, 1.75rem);
}
.formule:nth-child(3n+2) { border-top-color: var(--nuit); }
.formule:nth-child(3n+3) { border-top-color: var(--or); }
.formule-nom { margin: 0; font-size: 1.3rem; }
.formule-prix { margin: 0.2rem 0 0; font-family: var(--titres); font-weight: 800; font-size: clamp(1.7rem, 3.5vw, 2.1rem); color: var(--nuit); line-height: 1.1; }
.formule-duree { margin: 0; color: var(--gris); font-size: 0.92rem; font-family: var(--titres); font-weight: 600; }
.formule-description p { margin: 0.4rem 0 0; }
.formule-avantages { margin: 0.4rem 0 0; }
.formule-bouton { margin-top: auto; align-self: flex-start; }
.formule .formule-avantages + .formule-bouton,
.formule .formule-description + .formule-bouton,
.formule .formule-duree + .formule-bouton { margin-top: 1.2rem; }

/* Étiquettes de type */
.carte-etiquette { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin: 0; }
.carte-etiquette span {
    font-family: var(--titres);
    font-weight: 700;
    font-size: 0.72rem;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    padding: 0.35em 0.75em;
    border-radius: 99px;
}
.etiquette-actualite   { background: var(--brume); color: var(--ciel-appui); }
.etiquette-evenement   { background: var(--nuit); color: var(--papier); }
.etiquette-decouverte  { background: var(--ciel); color: var(--nuit); }
.etiquette-opportunite { background: var(--papier); color: var(--nuit); box-shadow: inset 0 0 0 2px var(--nuit); }
.opportunite-organisation {
    font-family: var(--corps) !important;
    font-weight: 600 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    color: var(--gris);
    padding: 0 !important;
}

/* Agenda */
.agenda-liste { display: flex; flex-direction: column; gap: 0.9rem; margin-top: var(--e-bloc); }
.agenda-item {
    display: grid;
    grid-template-columns: 4.5rem minmax(0, 1fr);
    gap: 1rem;
    background: var(--papier);
    border: 1px solid var(--lisiere);
    border-radius: var(--r-m);
    padding: 1.2rem 1.25rem;
    transition: border-color var(--vite), transform 0.2s var(--ressort), box-shadow 0.2s ease;
}
.agenda-item:hover { border-color: var(--ciel); transform: translateY(-2px); box-shadow: var(--ombre-1); }
.agenda-date { margin: 0; }
.agenda-date time {
    display: block;
    text-align: center;
    background: var(--nuit);
    color: var(--papier);
    border-radius: var(--r-s);
    padding: 0.6rem 0.3rem;
    font-family: var(--titres);
    line-height: 1.1;
}
.agenda-jour { display: block; font-size: 1.6rem; font-weight: 800; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.agenda-mois { display: block; font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ciel); }
.agenda-annee { display: block; font-size: 0.72rem; font-weight: 600; color: var(--sur-nuit-2); }
.agenda-corps h3 { margin-bottom: 0.3em; }
.agenda-corps h3 a { text-decoration: none; }
.agenda-corps h3 a:hover { text-decoration: underline; text-decoration-color: var(--ciel); }
.agenda-details { font-family: var(--titres); font-weight: 600; font-size: 0.9rem; color: var(--ciel-appui); margin-bottom: 0.5em; }
.agenda-extrait { margin-bottom: 0.8em; }
.agenda-corps > *:last-child { margin-bottom: 0; }
.agenda-item-passe { opacity: 0.8; }
.agenda-item-passe .agenda-date time { background: var(--gris); }
.agenda-item-passe .agenda-mois { color: var(--brume); }
.agenda-liste-compacte { margin-top: var(--e-bloc); }
@media (min-width: 48rem) {
    .agenda-item { grid-template-columns: 5.5rem minmax(0, 1fr); gap: clamp(1rem, 3vw, 2rem); padding: 1.4rem 1.5rem; }
    .agenda-date time { padding: 0.7rem 0.4rem; }
    .agenda-jour { font-size: 2rem; }
}

/* Opportunités */
.opportunites { display: flex; flex-direction: column; gap: 0.9rem; margin-top: var(--e-bloc); }
.opportunite {
    display: grid;
    gap: 1rem;
    align-items: center;
    background: var(--papier);
    border: 1px solid var(--lisiere);
    border-left: 4px solid var(--ciel);
    border-radius: 0 var(--r-m) var(--r-m) 0;
    padding: 1.3rem 1.4rem;
    transition: box-shadow 0.2s ease, border-color var(--vite);
}
.opportunite:hover { box-shadow: var(--ombre-1); }
.opportunite h3 { margin: 0.5rem 0 0.35em; }
.opportunite h3 a { text-decoration: none; }
.opportunite h3 a:hover { text-decoration: underline; text-decoration-color: var(--ciel); }
.opportunite-corps > *:last-child { margin-bottom: 0; }
.opportunite-cote { text-align: left; }
.opportunite-echeance { font-family: var(--titres); font-size: 0.9rem; color: var(--gris); line-height: 1.35; margin-bottom: 0.8em; }
.opportunite-echeance strong { color: var(--nuit); font-size: 1rem; }
@media (min-width: 48rem) {
    .opportunite { grid-template-columns: minmax(0, 1fr) 12rem; gap: clamp(1rem, 3vw, 2rem); }
    .opportunite-cote { text-align: right; }
}

/* Filtres de l'agenda */
.filtres {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    margin-top: var(--e-bloc);
    padding: 1.2rem 1.4rem;
    background: var(--papier);
    border: 1px solid var(--lisiere);
    border-radius: var(--r-m);
}
.champ-filtre { margin: 0; min-width: 0; }
.filtres-actions { display: flex; align-items: center; gap: 1rem; margin: 0; }
.filtres label {
    display: block;
    font-family: var(--titres);
    font-weight: 700;
    font-size: var(--t-mini);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--ciel-appui);
    margin-bottom: 0.3rem;
}
@media (min-width: 48rem) {
    .filtres { flex-direction: row; flex-wrap: wrap; align-items: flex-end; }
    .champ-filtre { min-width: 11rem; }
}

/* Formules d'adhésion et de don */
.formules {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(15rem, 100%), 1fr));
    gap: var(--e-grille);
    margin-top: var(--e-bloc);
}
.formule {
    background: var(--papier);
    border: 1px solid var(--lisiere);
    border-radius: var(--r-m);
    padding: 1.7rem 1.6rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    position: relative;
}
.formule-appuyee { border: 2px solid var(--nuit); box-shadow: var(--ombre-1); }
.badge-formule {
    position: absolute;
    top: -0.85rem;
    right: 1.2rem;
    margin: 0;
    background: var(--or);
    color: var(--nuit);
    font-family: var(--titres);
    font-weight: 700;
    font-size: 0.72rem;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    padding: 0.4em 0.9em;
    border-radius: 99px;
}
.formule h3 { margin: 0; }
.formule-prix {
    font-family: var(--titres);
    font-weight: 800;
    font-size: 2rem;
    color: var(--nuit);
    letter-spacing: -0.02em;
    margin: 0;
    font-variant-numeric: tabular-nums;
}
.formule-prix small { font-size: 0.95rem; font-weight: 700; color: var(--gris); letter-spacing: 0; }
.formule p { margin: 0 0 0.9em; flex: 1; }
.formule .bouton { align-self: flex-start; }
.reassurance {
    margin-top: var(--e-bloc);
    padding: 1rem 1.3rem;
    background: var(--papier);
    border-radius: var(--r-m);
    font-size: 0.97rem;
    max-width: 52rem;
}
.reassurance strong { font-family: var(--titres); }

/* Listes à flèches et colonnes */
.liste-fleches { list-style: none; margin: 1.5rem 0 2rem; padding: 0; max-width: 62rem; }
.liste-fleches li { position: relative; padding-left: 1.6em; margin-bottom: 0.6em; }
.liste-fleches li::before { content: '\2192'; position: absolute; left: 0; color: var(--ciel-appui); font-weight: 700; }
.colonnes-deux {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(19rem, 100%), 1fr));
    gap: 0 clamp(1.5rem, 4vw, 3rem);
}

/* Contact : coordonnées */
.contact-donnee { font-size: 1.05rem; }
.contact-donnee p { margin: 0.2em 0; }
.contact-etiquette {
    font-family: var(--titres);
    font-weight: 700;
    font-size: var(--t-mini);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--ciel-appui);
}
.contact-colonnes { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (min-width: 48rem) {
    .contact-colonnes { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); }
}
.contact-formulaire {
    background: var(--papier);
    border: 1px solid var(--lisiere);
    border-radius: var(--r-l);
    padding: clamp(1.4rem, 3vw, 2.4rem);
    box-shadow: var(--ombre-1);
}
.contact-lateral h2 { font-size: 1.3rem; }
.contact-lateral .contact-donnee { margin-bottom: 1.4rem; font-size: 1rem; }

/* Formulaires du site */
.formulaire-site .champ { display: flex; flex-direction: column; gap: 0.35rem; margin-bottom: 1.15rem; }
.formulaire-site label { font-family: var(--titres); font-weight: 700; font-size: 0.95rem; color: var(--nuit); }
.formulaire-site input,
.formulaire-site select,
.formulaire-site textarea,
.filtres select {
    font-family: var(--corps);
    font-size: 1rem;
    color: var(--texte);
    background: var(--papier);
    border: 1.5px solid var(--lisiere-forte);
    border-radius: var(--r-s);
    padding: 0.7em 0.85em;
    min-height: 44px;
    width: 100%;
    transition: border-color var(--vite), box-shadow var(--vite);
}
.formulaire-site input:hover,
.formulaire-site select:hover,
.formulaire-site textarea:hover,
.filtres select:hover { border-color: var(--nuit); }
.formulaire-site input:focus,
.formulaire-site select:focus,
.formulaire-site textarea:focus,
.filtres select:focus {
    border-color: var(--ciel-appui);
    box-shadow: 0 0 0 3px var(--ciel-voile);
    outline-offset: 1px;
}
.formulaire-site textarea { resize: vertical; min-height: 9rem; }
.formulaire-site input[aria-invalid="true"],
.formulaire-site textarea[aria-invalid="true"],
.formulaire-site select[aria-invalid="true"] { border-color: var(--alerte); }
.formulaire-site .aide-champ,
.filtres .aide-champ { font-family: var(--corps); font-weight: 400; font-size: 0.88rem; color: var(--gris); }
.erreur-champ {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--alerte);
}
.erreur-champ::before { content: '\2192\00a0'; }
.obligatoire { color: var(--ciel-appui); }
.mention-rgpd { font-size: 0.9rem; color: var(--gris); max-width: 60ch; }

/* Le champ-piège anti-robot : hors de l'écran, jamais en display:none */
.champ-piege { position: absolute; left: -200vw; width: 1px; height: 1px; overflow: hidden; }

/* Messages de retour */
.message-succes,
.message-alerte { border-radius: var(--r-m); padding: 1.1rem 1.3rem; margin-bottom: 1.5rem; }
.message-succes { background: var(--succes-fond); border-left: 4px solid var(--succes); }
.message-alerte { background: var(--alerte-fond); border-left: 4px solid var(--alerte); }
.message-alerte strong { color: var(--alerte); }
.message-succes p:last-child,
.message-alerte p:last-child,
.message-alerte ul:last-child { margin-bottom: 0; }
.message-alerte ul { margin: 0.3rem 0 0; padding-left: 1.2em; }
.message-alerte code { background: rgb(13 44 74 / 0.07); padding: 0.1em 0.35em; border-radius: 4px; font-size: 0.92em; }

/* Bandeau d'archive (événement passé, candidature close) */
.bandeau-archive {
    background: var(--brume);
    border-left: 4px solid var(--gris);
    border-radius: 0 var(--r-m) var(--r-m) 0;
    padding: 0.9rem 1.2rem;
    margin-bottom: 1.8rem;
    max-width: 60ch;
}

/* Page vide / invitation */
.vide {
    background: var(--brume);
    border-radius: var(--r-m);
    padding: 2rem 1.75rem;
    max-width: 42rem;
    margin-top: var(--e-bloc);
}
.vide p:first-child { font-family: var(--titres); font-weight: 700; font-size: 1.2rem; color: var(--nuit); margin-bottom: 0.3em; }
.vide p:last-child { margin-bottom: 0; }

/* Relance : l'encart d'appel en fin de section */
.relance {
    margin-top: var(--e-bloc);
    padding: clamp(1.5rem, 3vw, 2rem);
    background: var(--papier);
    border: 1px solid var(--lisiere);
    border-left: 4px solid var(--ciel);
    border-radius: 0 var(--r-m) var(--r-m) 0;
    max-width: 52rem;
}
.section-teinte .relance { background: var(--papier); }
.section:not(.section-teinte) .relance { background: var(--brume); border-color: var(--brume); border-left-color: var(--ciel); }
.relance h2 { font-size: 1.4rem; margin-bottom: 0.4em; }
.relance p { max-width: 52ch; }
.relance > :last-child { margin-bottom: 0; }

/* Pagination */
.pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    margin-top: var(--e-bloc);
    font-family: var(--titres);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}
.pagination a,
.pagination .page-actuelle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    padding: 0.4em 0.9em;
    border-radius: var(--r-s);
    text-decoration: none;
    border: 1px solid var(--lisiere-forte);
    background: var(--papier);
    transition: border-color var(--vite), background var(--vite);
}
.pagination a:hover { border-color: var(--nuit); background: var(--brume); color: var(--nuit); }
.pagination .page-actuelle { background: var(--nuit); color: var(--papier); border-color: var(--nuit); }
.pagination-suivante { margin-left: auto; }

/* ---------- 8. Pages ---------- */

/* Nos programmes : trois rangées */
.programme-rangee {
    display: grid;
    gap: 0.6rem;
    padding-block: clamp(2rem, 4vw, 3rem);
    border-top: 1px solid var(--lisiere);
}
.programme-rangee:first-child { border-top: 0; padding-top: 0; }
.programme-rangee:last-child { padding-bottom: 0; }
.programme-rangee-numero {
    font-family: var(--titres);
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1;
    color: var(--ciel-appui);
    margin: 0;
}
@supports (-webkit-text-stroke: 2px #000) {
    .programme-rangee-numero { color: transparent; -webkit-text-stroke: 2px var(--ciel-appui); }
}
.programme-rangee h2 { margin-bottom: 0.25em; }
.programme-rangee-mission { font-family: var(--titres); font-weight: 600; font-size: 1.1rem; color: var(--ciel-appui); }
.programme-rangee .surtitre { margin-top: 1.5em; }
.programme-rangee .bouton { margin-top: 0.8rem; }
@media (min-width: 48rem) {
    .programme-rangee { grid-template-columns: 6rem minmax(0, 1fr); gap: clamp(1rem, 3vw, 2.5rem); }
}

/* Encart Passport (page programmes) */
.encart-passport {
    background: var(--nuit-3);
    color: var(--papier);
    border-radius: var(--r-l);
    padding: clamp(1.8rem, 4vw, 3rem);
    position: relative;
    overflow: hidden;
}
.encart-passport::after {
    content: '\2192';
    position: absolute;
    right: -0.1em;
    bottom: -0.4em;
    font-family: var(--titres);
    font-weight: 800;
    font-size: 12rem;
    line-height: 1;
    color: rgb(255 255 255 / 0.05);
    pointer-events: none;
}
.encart-passport > * { position: relative; z-index: 1; }
.encart-passport h2 { color: var(--papier); }
.encart-passport p { color: var(--sur-nuit); }
.encart-passport .surtitre { color: var(--or); }
.encart-passport .bouton-plein { background: var(--or); border-color: var(--or); color: var(--nuit); }
.encart-passport .bouton-plein:hover { background: var(--papier); border-color: var(--papier); color: var(--nuit); box-shadow: none; }
.encart-passport :focus-visible { outline-color: var(--or); }

/* Le parcours du Passport : neuf étapes reliées */
.etapes-passport {
    list-style: none;
    counter-reset: none;
    margin: var(--e-bloc) 0 2.5rem;
    padding: 0;
    display: grid;
    gap: 0.6rem;
    max-width: 44rem;
}
.etapes-passport li {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--papier);
    border: 1px solid var(--lisiere);
    border-radius: var(--r-m);
    padding: 0.9rem 1.2rem;
    position: relative;
}
.etapes-passport li + li::before {
    content: '\2193';
    position: absolute;
    top: -0.95rem;
    left: 1.55rem;
    color: var(--or-appui);
    font-weight: 700;
    line-height: 1;
}
.etape-numero {
    flex: none;
    display: grid;
    place-items: center;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: var(--or);
    color: var(--nuit);
    font-family: var(--titres);
    font-weight: 800;
    font-size: 0.95rem;
}
.etape-texte { font-family: var(--titres); font-weight: 600; }

/* Article et contenus */
.article-meta { color: var(--gris); margin-bottom: 1.8rem; font-family: var(--titres); font-weight: 600; }
.article-image { border-radius: var(--r-m); border: 1px solid var(--lisiere); margin-bottom: 2rem; }
.prose { max-width: 64ch; }
.prose h2 { font-size: 1.5rem; margin-top: 1.8em; }
.prose h3 { margin-top: 1.5em; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: 0.35em; }
.prose a { font-weight: 600; }

.fiche-pratique {
    margin: 0 0 2rem;
    padding: 1.1rem 1.4rem;
    background: var(--brume);
    border-radius: var(--r-m);
    max-width: 44rem;
}
.fiche-ligne { display: grid; gap: 0.1rem; padding-block: 0.45rem; }
.fiche-ligne + .fiche-ligne { border-top: 1px solid var(--lisiere); }
.fiche-pratique dt {
    font-family: var(--titres);
    font-weight: 700;
    font-size: var(--t-mini);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--ciel-appui);
    padding-top: 0.15em;
}
.fiche-pratique dd { margin: 0; }
@media (min-width: 48rem) {
    .fiche-ligne { grid-template-columns: 9rem minmax(0, 1fr); gap: 1rem; padding-block: 0.4rem; }
}
.action-contenu { margin-top: 2rem; }

/* Sous-sections et archives */
.titre-sous-section {
    font-size: 1.3rem;
    margin-top: 2.5rem;
    margin-bottom: 0.6em;
    padding-bottom: 0.4rem;
    border-bottom: 2px solid var(--lisiere);
}
.liste-archives { list-style: none; margin: 1.2rem 0 0; padding: 0; }
.liste-archives li {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.3rem 0.8rem;
    padding-block: 0.6rem;
    border-bottom: 1px solid var(--lisiere);
}
.liste-archives-date { color: var(--gris); font-size: 0.9rem; }

/* Espace lecteur */
.espace-boite {
    max-width: 36rem;
    background: var(--papier);
    border: 1px solid var(--lisiere);
    border-radius: var(--r-l);
    padding: clamp(1.4rem, 3vw, 2.2rem);
    box-shadow: var(--ombre-1);
}
.espace-boite + .espace-boite { margin-top: 1.5rem; }
.espace-liens { margin: 1.5rem 0 0; font-size: 0.95rem; color: var(--gris); }
.espace-grille {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(20rem, 100%), 1fr));
    gap: var(--e-grille);
    margin-top: 1.5rem;
    align-items: start;
}
.espace-carte {
    background: var(--papier);
    border: 1px solid var(--lisiere);
    border-radius: var(--r-m);
    padding: clamp(1.25rem, 3vw, 1.75rem);
}
.espace-carte h3 { font-size: 1.2rem; margin: 0 0 1rem; }
.espace-carte-danger { border-color: #E4B8B4; border-top: 3px solid var(--alerte); }
.choix-alertes {
    border: 1px solid var(--lisiere-forte);
    border-radius: var(--r-s);
    padding: 1rem 1.1rem 0.6rem;
    margin: 0 0 1.2rem;
}
.choix-alertes legend { font-family: var(--titres); font-weight: 700; font-size: 0.95rem; padding: 0 0.4em; }
.case {
    display: flex;
    gap: 0.6rem;
    align-items: flex-start;
    margin: 0 0 0.7rem;
    font-size: 0.97rem;
    cursor: pointer;
}
.case input[type="checkbox"] {
    width: 1.15rem;
    height: 1.15rem;
    min-height: 0;
    margin: 0.15rem 0 0;
    flex: none;
    accent-color: var(--ciel-appui);
}
.choix-alertes .aide-champ { margin: 0.4rem 0 0.4rem; }
.formulaire-en-ligne { display: inline; margin: 1rem 0 0; }
.page-titre .formulaire-en-ligne { display: block; }

/* 404 */
.page-404 main { background: var(--brume); }
.page-404 .section { padding-block: clamp(4rem, 12vw, 8rem); }
.griffonnage {
    font-family: var(--titres);
    font-weight: 800;
    font-size: clamp(5rem, 16vw, 9rem);
    letter-spacing: -0.04em;
    color: var(--ciel);
    line-height: 1;
    margin: 0 0 0.15em;
}
@supports (-webkit-text-stroke: 3px #000) {
    .griffonnage { color: transparent; -webkit-text-stroke: 3px var(--ciel); }
}

/* ---------- 9. Pied de page ---------- */
.pied {
    background: var(--nuit);
    color: var(--sur-nuit);
    padding: clamp(2rem, 4vw, 3rem) 0;
}
.pied a { color: var(--papier); text-decoration-color: rgb(255 255 255 / 0.35); }
.pied a:hover { color: var(--papier); text-decoration-color: var(--ciel); }
.pied-interieur {
    max-width: var(--largeur-page);
    margin-inline: auto;
    padding-inline: var(--e-marge);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1.5rem 3rem;
}
.pied-nom { font-family: var(--titres); font-weight: 700; color: var(--papier); margin-bottom: 0.25em; }
.pied-logo { width: 56px; height: 56px; border-radius: 50%; margin-bottom: 0.8rem; }
.pied p { margin: 0 0 0.4em; line-height: 1.7; }
.pied-liens { list-style: none; margin: 0; padding: 0; line-height: 1.9; }
.pied-bloc:last-child p, .pied-bloc:last-child .pied-liens { text-align: left; }
@media (min-width: 48rem) { .pied-bloc:last-child .pied-liens { text-align: right; } }
.pied-liens a { text-decoration: none; }
.pied-liens a:hover { text-decoration: underline; }
.pied-reseaux { display: flex; flex-wrap: wrap; gap: 0.25rem 1.25rem; margin-top: 0.75rem; }

/* ---------- 10. Mouvement ---------- */

/* Révélation au scroll (posée par JS, jamais sans lui) */
html.js .revele {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.6s ease, transform 0.6s var(--ressort);
}
html.js .revele.visible { opacity: 1; transform: none; }
html.js .revele .volet,
html.js .revele .carte,
html.js .revele .voie,
html.js .revele .formule,
html.js .revele .programme,
html.js .revele .parcours > li {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.5s ease, transform 0.5s var(--ressort);
}
html.js .revele.visible .volet,
html.js .revele.visible .carte,
html.js .revele.visible .voie,
html.js .revele.visible .formule,
html.js .revele.visible .programme,
html.js .revele.visible .parcours > li { opacity: 1; transform: none; }
html.js .revele.visible :is(.volet, .carte, .voie, .formule, .programme, .parcours > li):nth-child(2) { transition-delay: 0.08s; }
html.js .revele.visible :is(.volet, .carte, .voie, .formule, .programme, .parcours > li):nth-child(3) { transition-delay: 0.16s; }
html.js .revele.visible :is(.volet, .carte, .voie, .formule, .programme, .parcours > li):nth-child(4) { transition-delay: 0.24s; }

/* Mouvement réduit : tout tombe, tout est visible d'emblée */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        transition: none !important;
        animation: none !important;
    }
    .carte:hover, .programme:hover, .agenda-item:hover, .bouton:hover { transform: none; }
    .nav-sous { transform: none; }
    html.js .revele,
    html.js .revele :is(.volet, .carte, .voie, .formule, .programme, .parcours > li) { opacity: 1; transform: none; }
    .bandeau-defilant-piste { animation: none; }
    html.js .intro { display: none; }
    .fil-progression { display: none; }
    html.js .revele .parcours > li::before { color: var(--ciel-appui) !important; -webkit-text-stroke: 0 !important; }
    html.js.prete .hero-copie > *, html.js.prete .visuel-accueil { animation: none; opacity: 1; }
}

/* Impression */
@media print {
    .menu-bouton, .navigation, .evitement, .sommaire, .filtres, .fil-progression,
    .bandeau-defilant, .soutenir-fleche { display: none; }
    .entete { position: static; }
    .pied { background: none; color: var(--texte); }
    .pied a, .pied-nom { color: var(--texte); }
    .section-pleine, .section-teinte, .section-nuit, .hero { background: none; }
    .programme, .encart-passport { background: none; color: var(--texte); border: 1px solid var(--lisiere); box-shadow: none; }
}

/* Espace lecteur : l'adhésion */
.adhesion-carte { max-width: 40rem; }
.adhesion-carte p { margin: 0 0 0.75rem; }
.adhesion-fiche { max-width: 40rem; margin-bottom: 1.2rem; }
