/* REM Live · l'accueil public du site d'un événement (espaces/evenement/accueil.php), animé par accueil.js.
   Esprit de la refonte Weluma, aux couleurs de l'habillage : grands titres en deux tons, mots qui grandissent au
   défilement, panneau qui s'ouvre jusqu'au plein écran, valeurs lissées (jamais de saut), démonstrations qui se
   jouent quand on les atteint et se rejouent au survol ou au toucher. Aucune boucle infinie.
   Sans JavaScript ou en mouvement réduit : tout est visible, à sa place, immobile. */

.site {
    --t-soleil: var(--s-action);
    --t-braise: var(--s-lueur);
    --t-ciel: color-mix(in srgb, var(--s-encre) 62%, #ffffff);
    --t-brume: color-mix(in srgb, var(--s-encre) 36%, #ffffff);
    --t-encre: var(--s-encre);
    --a-ressort: cubic-bezier(0.25, 1.35, 0.45, 1);
}

.hab-unigrains {
    --t-ciel: #6274c0;
    --t-brume: #999dd0;
}

/* ══ En-tête : le menu en haut à droite ═════════════════════════════════════════════════════════════════════════ */
.site-entete--nav .site-entete__barre {
    gap: 24px;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.site-nav__liste {
    display: flex;
    align-items: center;
    gap: 2px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-nav__lien {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 999px;
    color: inherit;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 0.25s var(--s-ui), color 0.25s var(--s-ui);
}

.site-nav__lien::after {
    position: absolute;
    right: 14px;
    bottom: 6px;
    left: 14px;
    height: 2px;
    border-radius: 2px;
    background: var(--s-action);
    content: "";
    transform: scaleX(0);
    transform-origin: 0 50%;
    transition: transform 0.45s var(--s-entree);
}

.site-nav__lien:hover::after,
.site-nav__lien.est-actif::after {
    transform: scaleX(1);
}

.site-nav__lien:focus-visible {
    outline: 2px solid var(--s-action);
    outline-offset: 2px;
}

.site-nav__action,
.site-nav__bouton {
    display: none;
}

/* Sur l'ouverture : liens blancs ; le bouton de l'en-tête n'arrive qu'une fois l'ouverture passée */
.site--ouverture .site-entete--nav .site-entete__action {
    margin-left: 4px;
}

/* ══ Briques communes ═══════════════════════════════════════════════════════════════════════════════════════════ */
.accueil-surtitre {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 20px;
    color: var(--s-encre);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.accueil-surtitre__trait {
    flex: none;
    width: 28px;
    height: 4px;
    border-radius: 4px;
    background: var(--s-action);
}

.accueil-surtitre--clair,
.accueil-tete--clair .accueil-surtitre {
    color: rgba(255, 255, 255, 0.9);
}

.accueil-titre {
    max-width: 16ch;
    margin: 0;
    color: var(--s-encre);
    font-family: var(--s-police-titre);
    font-size: clamp(40px, 5.4vw, 80px);
    font-weight: 700;
    line-height: 1.02;
    letter-spacing: -0.04em;
    text-wrap: balance;
}

.accueil-titre__accent {
    color: var(--t-ciel);
}

.accueil-tete--clair .accueil-titre {
    color: #ffffff;
}

.accueil-tete--clair .accueil-titre__accent {
    color: var(--s-action);
}

/* Les titres grandissent en entrant à l'écran (--g de 0 à 1, lissé par accueil.js) */
[data-grandir] {
    transform-origin: 0 100%;
}

.bouton--fleche {
    gap: 10px;
}

.bouton--fleche .icone {
    width: 20px;
    height: 20px;
    transition: transform 0.4s var(--a-ressort);
}

.bouton--fleche:hover .icone {
    transform: translateX(5px);
}

/* ══ L'ouverture : la phrase au-dessus du compte à rebours ══════════════════════════════════════════════════════ */
.ouverture__avant {
    margin: 0 0 12px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

/* ══ La barre de Rémi ═══════════════════════════════════════════════════════════════════════════════════════════ */
.remi-barre {
    position: relative;
    z-index: 2;
    padding: 72px 0 80px;
    background: var(--s-papier);
}

.remi-barre__grille {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 20px 56px;
    align-items: end;
}

.remi-barre__tete h2 {
    margin: 0;
    color: var(--s-encre);
    font-family: var(--s-police-titre);
    font-size: clamp(28px, 3vw, 40px);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.03em;
}

.remi-barre__tete h2 em {
    color: var(--t-ciel);
    font-style: normal;
}

.remi-barre__tete .accueil-surtitre {
    margin-bottom: 14px;
}

.remi-barre__champ {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 72px;
    padding: 8px 8px 8px 20px;
    border: 2px solid var(--s-encre);
    border-radius: 999px;
    background: var(--s-papier);
    box-shadow: 0 24px 50px -30px color-mix(in srgb, var(--s-encre) 60%, transparent);
    transition: box-shadow 0.3s var(--s-ui), transform 0.4s var(--a-ressort);
}

.remi-barre__champ:focus-within {
    box-shadow: 0 0 0 6px color-mix(in srgb, var(--s-action) 45%, transparent), 0 24px 50px -30px color-mix(in srgb, var(--s-encre) 60%, transparent);
    transform: translateY(-2px);
}

.remi-barre__champ input {
    flex: 1;
    min-width: 0;
    min-height: 52px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--s-encre);
    font: inherit;
    font-size: 18px;
    outline: none;
}

.remi-barre__champ input::placeholder {
    color: color-mix(in srgb, var(--s-texte) 70%, transparent);
}

.remi-barre__champ .bouton {
    flex: none;
    gap: 8px;
    min-height: 54px;
    padding: 0 24px;
    border-radius: 999px;
    font-size: 16px;
    font-weight: 600;
}

/* Le signe de Rémi : une onde de quatre barres, qui se lève quand on écrit */
.remi-barre__signe {
    display: inline-flex;
    flex: none;
    align-items: center;
    gap: 3px;
    width: 40px;
    height: 40px;
    justify-content: center;
    border-radius: 12px;
    background: var(--s-encre);
}

.remi-barre__signe span {
    width: 3px;
    height: 10px;
    border-radius: 3px;
    background: #ffffff;
    transition: height 0.4s var(--a-ressort);
}

.remi-barre__signe span:nth-child(2),
.remi-barre__signe span:nth-child(3) {
    height: 18px;
}

.remi-barre__champ.est-saisie .remi-barre__signe span:nth-child(1) { height: 16px; }
.remi-barre__champ.est-saisie .remi-barre__signe span:nth-child(2) { height: 8px; }
.remi-barre__champ.est-saisie .remi-barre__signe span:nth-child(3) { height: 22px; background: var(--s-action); }
.remi-barre__champ.est-saisie .remi-barre__signe span:nth-child(4) { height: 12px; }

.remi-barre__idees {
    display: flex;
    flex-wrap: wrap;
    grid-column: 2;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.puce {
    min-height: 40px;
    padding: 0 16px;
    border: 1px solid var(--s-filet);
    border-radius: 999px;
    background: var(--s-creme);
    color: var(--s-encre);
    font: inherit;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.25s var(--s-ui), border-color 0.25s var(--s-ui), transform 0.35s var(--a-ressort);
}

.puce:hover {
    border-color: var(--s-encre);
    background: var(--s-papier);
    transform: translateY(-2px);
}

.puce:focus-visible {
    outline: 2px solid var(--s-encre);
    outline-offset: 2px;
}

/* ══ Le live : le panneau qui grandit jusqu'au plein écran ═══════════════════════════════════════════════════ */
.grandit {
    position: relative;
    background: var(--s-papier);
}

.grandit__collant {
    display: grid;
    place-items: center;
    padding: 80px var(--s-gouttiere);
}

.grandit__panneau {
    position: relative;
    display: grid;
    align-content: center;
    justify-items: center;
    width: 100%;
    max-width: var(--s-largeur);
    min-height: 70vh;
    padding: 64px clamp(24px, 6vw, 96px);
    overflow: hidden;
    border-radius: 32px;
    background:
        radial-gradient(70% 80% at 85% 110%, color-mix(in srgb, var(--s-lueur) 55%, transparent) 0%, transparent 62%),
        radial-gradient(50% 60% at 0% 0%, color-mix(in srgb, var(--t-ciel) 45%, transparent) 0%, transparent 70%),
        var(--s-nuit);
    color: #ffffff;
}

.grandit__motif {
    right: -6%;
    bottom: -22%;
    width: min(56vh, 40%);
    opacity: 0.9;
}

.grandit__contenu {
    position: relative;
    z-index: 2;
    width: min(100%, 17ch);
    font-size: clamp(40px, 6.4vw, 104px);
}

.grandit__surtitre {
    position: relative;
    z-index: 2;
    margin: 0 0 28px;
    color: var(--s-action);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.grandit__texte {
    position: relative;
    z-index: 2;
    max-width: none;
    margin: 0;
    font-family: var(--s-police-titre);
    font-size: clamp(40px, 6.4vw, 104px);
    font-weight: 700;
    line-height: 1.02;
    letter-spacing: -0.04em;
}

.grandit__mot {
    display: inline-block;
}

.grandit__mot > span {
    display: inline-block;
}

@media (prefers-reduced-motion: no-preference) {
    .avec-js .grandit {
        height: 260vh;
    }

    .avec-js .grandit__collant {
        position: sticky;
        top: 0;
        height: 100vh;
        height: 100svh;
        padding: 0;
    }

    /* Le panneau part d'une carte arrondie au centre et prend tout l'écran (--g de 0 à 1) */
    .avec-js .grandit__panneau {
        max-width: none;
        height: 100%;
        min-height: 0;
        border-radius: 0;
        clip-path: inset(calc((1 - var(--g, 0)) * 22vh) calc((1 - var(--g, 0)) * 18vw) round calc((1 - var(--g, 0)) * 40px));
        will-change: clip-path;
    }

    .avec-js .grandit__contenu {
        transform: scale(calc(0.62 + var(--g, 0) * 0.38));
        transform-origin: 50% 50%;
    }

    .avec-js .grandit__motif {
        rotate: calc((1 - var(--g, 0)) * -90deg);
        scale: calc(0.5 + var(--g, 0) * 0.5);
        opacity: var(--g, 0);
        transform-origin: 50% 50%;
    }

    /* Chaque mot s'allume et grandit à son tour (--m de 0 à 1 par mot) */
    .avec-js .grandit__mot > span {
        opacity: calc(0.16 + var(--m, 0) * 0.84);
        transform: translateY(calc((1 - var(--m, 0)) * 0.18em)) scale(calc(0.86 + var(--m, 0) * 0.14));
        transform-origin: 50% 100%;
    }

    .avec-js .grandit__mot.est-derniers > span {
        color: var(--s-action);
    }
}

/* ══ Le live en bref : une grille de cases, les chiffres comptent à l'entrée ══════════════════════════════════ */
.bref {
    padding: 140px 0 120px;
    background: var(--s-papier);
}

.accueil-tete {
    margin-bottom: 56px;
}

.bref__grille {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 0;
    padding: 0;
    border-top: 1px solid var(--s-filet);
    border-left: 1px solid var(--s-filet);
    list-style: none;
}

.bref__case {
    position: relative;
    display: grid;
    align-content: space-between;
    gap: 28px;
    min-height: 220px;
    padding: 28px;
    overflow: hidden;
    border-right: 1px solid var(--s-filet);
    border-bottom: 1px solid var(--s-filet);
    background: var(--s-papier);
    color: var(--s-encre);
    transition: background-color 0.45s var(--s-ui), color 0.45s var(--s-ui);
}

.bref__case::before {
    position: absolute;
    inset: 0;
    background: var(--s-encre);
    content: "";
    transform: translateY(101%);
    transition: transform 0.6s var(--s-entree);
}

.bref__case > * {
    position: relative;
}

@media (hover: hover) {
    .bref__case:hover {
        color: #ffffff;
    }

    .bref__case:hover::before {
        transform: none;
    }

    .bref__case:hover .bref__num {
        color: var(--s-action);
    }
}

.bref__num {
    color: var(--s-encre);
    font-family: var(--s-police-titre);
    font-size: clamp(64px, 7vw, 112px);
    font-weight: 700;
    line-height: 0.9;
    letter-spacing: -0.05em;
    font-variant-numeric: tabular-nums;
    transition: color 0.45s var(--s-ui);
}

.bref__num small {
    font-size: 0.42em;
    letter-spacing: -0.02em;
}

.bref__libelle {
    max-width: 18ch;
    font-size: 17px;
    font-weight: 500;
    line-height: 1.35;
}

.bref__case--large {
    grid-column: span 2;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    align-content: center;
    gap: 24px;
}

.bref__case--large .bref__libelle {
    max-width: 22ch;
    font-family: var(--s-police-titre);
    font-size: clamp(22px, 2.1vw, 30px);
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.bref__case--soleil {
    background: var(--t-soleil);
}

.bref__case--soleil .bref__libelle,
.bref__case--soleil .bref__num {
    color: var(--s-action-texte);
}

.bref__case--nuit {
    background: var(--s-nuit);
    color: #ffffff;
}

.bref__case--nuit::before,
.bref__case--ciel::before {
    background: var(--s-action);
}

.bref__case--nuit strong {
    color: var(--s-action);
}

.bref__case--ciel {
    background: var(--t-ciel);
    color: #ffffff;
}

@media (hover: hover) {
    .bref__case--nuit:hover,
    .bref__case--ciel:hover {
        color: var(--s-action-texte);
    }

    .bref__case--nuit:hover strong {
        color: inherit;
    }
}

/* Les trois écrans : un ordinateur, une tablette, un téléphone, dessinés en CSS */
.bref__appareils {
    display: inline-flex;
    align-items: flex-end;
    gap: 8px;
    color: currentColor;
}

.bref__appareils .icone {
    width: 64px;
    height: 64px;
}

.bref__tablette,
.bref__telephone {
    display: block;
    border: 3px solid currentColor;
    border-radius: 8px;
}

.bref__tablette {
    width: 36px;
    height: 46px;
}

.bref__telephone {
    width: 22px;
    height: 38px;
    border-radius: 6px;
}

.bref__bulle {
    display: grid;
    place-items: center;
    width: 76px;
    height: 76px;
    border-radius: 24px 24px 24px 6px;
    background: #ffffff;
    color: var(--t-ciel);
    font-family: var(--s-police-titre);
    font-size: 40px;
    font-weight: 700;
}

/* ══ Le programme : le sujet du centre grandit et prend sa couleur (--proche, lissé, par sujet) ═════════════════ */
.defile__tete {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
}

.defile .defile__tete h2 {
    max-width: 14ch;
    font-size: clamp(40px, 5.4vw, 80px);
    font-weight: 700;
    letter-spacing: -0.04em;
}

.defile__compteur {
    display: flex;
    flex: none;
    white-space: nowrap;
    align-items: baseline;
    gap: 8px;
    margin: 0;
    color: var(--s-encre);
    font-family: var(--s-police-titre);
    font-variant-numeric: tabular-nums;
}

.defile__compteur [data-defile-rang] {
    font-size: clamp(48px, 5vw, 72px);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.04em;
}

.defile__sur {
    color: color-mix(in srgb, var(--s-encre) 45%, transparent);
    font-size: 20px;
    font-weight: 600;
}

.defile__sujet {
    --teinte: var(--t-encre);
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.22em;
}

.defile__sujet--soleil { --teinte: var(--t-soleil); }
.defile__sujet--brume { --teinte: var(--t-brume); }
.defile__sujet--braise { --teinte: var(--t-braise); }
.defile__sujet--ciel { --teinte: var(--t-ciel); }
.defile__sujet--encre { --teinte: var(--t-encre); }

.defile__num {
    align-self: flex-start;
    color: var(--teinte);
    font-size: 0.2em;
    font-weight: 700;
    letter-spacing: 0;
}

.defile__glyphe {
    display: grid;
    flex: none;
    place-items: center;
    width: 0.78em;
    height: 0.78em;
    border-radius: 50%;
    background: var(--teinte);
    color: #ffffff;
}

.defile__sujet--soleil .defile__glyphe {
    color: var(--s-action-texte);
}

.defile__glyphe .glyphe {
    width: 52%;
    height: 52%;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

@media (prefers-reduced-motion: no-preference) {
    .avec-js .defile {
        background: color-mix(in srgb, var(--defile-teinte, var(--s-creme)) 9%, var(--s-creme));
        transition: background-color 0.8s var(--s-ui);
    }

    .avec-js .defile__sujet {
        color: color-mix(in srgb, var(--s-encre) calc(22% + var(--proche, 0) * 78%), transparent);
        transform: scale(calc(0.7 + var(--proche, 0) * 0.3));
        transform-origin: 50% 60%;
        transition: none;
    }

    .avec-js .defile__glyphe {
        rotate: calc((1 - var(--proche, 0)) * -120deg);
        scale: calc(0.4 + var(--proche, 0) * 0.6);
        opacity: calc(0.2 + var(--proche, 0) * 0.8);
    }

    .avec-js .defile__num {
        opacity: var(--proche, 0);
    }
}

/* ══ Pendant le direct : quatre démonstrations ══════════════════════════════════════════════════════════════ */
.pendant {
    position: relative;
    padding: 140px 0;
    overflow: hidden;
    background:
        radial-gradient(60% 50% at 100% 0%, color-mix(in srgb, var(--t-ciel) 50%, transparent) 0%, transparent 70%),
        radial-gradient(50% 50% at 0% 100%, color-mix(in srgb, var(--s-lueur) 30%, transparent) 0%, transparent 70%),
        var(--s-nuit);
    color: rgba(255, 255, 255, 0.86);
}

.pendant__grille {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.demo {
    --teinte: var(--t-ciel);
    position: relative;
    display: grid;
    grid-template-rows: auto auto 1fr auto;
    align-content: start;
    padding: 28px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 28px;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.03) 70%);
    transition: transform 0.5s var(--a-ressort), border-color 0.4s var(--s-ui);
}

@media (hover: hover) {
    .demo:hover {
        border-color: color-mix(in srgb, var(--teinte) 70%, transparent);
        transform: translateY(-6px);
    }
}

.demo--questions { --teinte: var(--t-soleil); }
.demo--sondage { --teinte: var(--t-ciel); }
.demo--nuage { --teinte: var(--t-brume); }
.demo--remi { --teinte: var(--t-braise); }

.demo h3 {
    margin: 28px 0 10px;
    color: #ffffff;
    font-family: var(--s-police-titre);
    font-size: 26px;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.demo p {
    max-width: 34em;
    margin: 0;
    font-size: 16px;
    line-height: 1.55;
}

.demo .bouton {
    justify-self: start;
    margin-top: 20px;
}

.bouton--verre-sombre {
    min-height: 48px;
    padding: 0 22px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    font-weight: 600;
}

.bouton--verre-sombre:hover {
    border-color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
}

.demo__scene {
    position: relative;
    display: grid;
    align-content: center;
    min-height: 210px;
    padding: 20px;
    border-radius: 20px;
    background: rgba(5, 10, 32, 0.42);
}

/* Questions : la bulle s'écrit, part, et l'accusé arrive */
.demo__fil {
    display: grid;
    justify-items: end;
    gap: 10px;
    min-height: 96px;
    align-content: end;
}

.demo__bulle {
    max-width: 90%;
    margin: 0;
    padding: 12px 16px;
    border-radius: 18px 18px 4px 18px;
    background: var(--t-soleil);
    color: var(--s-action-texte);
    font-size: 15px;
    font-weight: 600;
}

.demo__curseur {
    display: inline-block;
    width: 2px;
    height: 1em;
    margin-left: 2px;
    background: currentColor;
    vertical-align: -0.15em;
}

.demo__etat {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
    font-weight: 600;
}

.demo__etat .icone {
    width: 16px;
    height: 16px;
    padding: 2px;
    border-radius: 50%;
    background: #3fbf7f;
    color: #ffffff;
}

.demo__saisie {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 14px;
    padding: 8px 8px 8px 16px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
}

.demo__envoi {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--t-soleil);
    color: var(--s-action-texte);
}

.demo__envoi .icone {
    width: 16px;
    height: 16px;
}

/* Sondage : les barres se remplissent, le choix s'illumine */
.demo__question {
    margin: 0 0 14px;
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
}

.demo__barres {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.demo__barres li {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 40px;
    padding: 0 14px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 12px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
}

.demo__barres li span {
    position: relative;
    z-index: 1;
}

.demo__barres i {
    position: absolute;
    inset: 0;
    background: color-mix(in srgb, var(--t-ciel) 55%, transparent);
    transform: scaleX(var(--remplir, 0));
    transform-origin: 0 50%;
    transition: transform 1.2s var(--s-entree);
}

.demo__barres li:nth-child(1) { --vers: 0.42; }
.demo__barres li:nth-child(2) { --vers: 0.78; }
.demo__barres li:nth-child(3) { --vers: 0.3; }

.demo__barres li:nth-child(2) i { transition-delay: 0.12s; }
.demo__barres li:nth-child(3) i { transition-delay: 0.24s; }

.demo__barres li.est-choisie {
    border-color: var(--s-action);
}

.demo__barres li.est-choisie i {
    background: color-mix(in srgb, var(--s-action) 70%, transparent);
}

.demo__barres li.est-choisie span {
    color: var(--s-action-texte);
    font-weight: 700;
}

/* Nuage : les mots arrivent de partout et se posent, les plus fréquents en grand */
.demo__nuage {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.demo__mot {
    color: #ffffff;
    font-family: var(--s-police-titre);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.demo__mot--1 { color: var(--t-brume); font-size: 16px; }
.demo__mot--2 { color: #ffffff; font-size: 24px; }
.demo__mot--3 { color: var(--s-action); font-size: 34px; font-weight: 700; }

/* Rémi : l'onde qui parle */
.demo__onde {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 100px;
}

.demo__onde span {
    width: 10px;
    height: 24px;
    border-radius: 10px;
    background: var(--t-braise);
}

.demo__onde span:nth-child(2) { height: 56px; background: var(--s-action); }
.demo__onde span:nth-child(3) { height: 84px; background: #ffffff; }
.demo__onde span:nth-child(4) { height: 48px; background: var(--s-action); }
.demo__onde span:nth-child(5) { height: 28px; }

@media (prefers-reduced-motion: no-preference) {
    /* L'état de départ, avant que la démonstration ne se joue (accueil.js pose est-jouee) */
    .avec-js .demo--questions .demo__bulle {
        opacity: 0;
        transform: translateY(14px) scale(0.92);
        transform-origin: 100% 100%;
        transition: opacity 0.5s var(--s-ui), transform 0.6s var(--a-ressort);
    }

    .avec-js .demo--questions .demo__etat {
        opacity: 0;
        transform: translateY(8px);
        transition: opacity 0.4s var(--s-ui) 0s, transform 0.5s var(--a-ressort) 0s;
    }

    .avec-js .demo--questions.est-jouee .demo__bulle {
        opacity: 1;
        transform: none;
    }

    .avec-js .demo--questions.est-envoyee .demo__etat {
        opacity: 1;
        transform: none;
    }

    .avec-js .demo--questions.est-envoyee .demo__curseur {
        visibility: hidden;
    }

    .avec-js .demo--sondage.est-jouee .demo__barres i {
        --remplir: var(--vers);
    }

    .avec-js .demo--nuage .demo__mot {
        opacity: 0;
        transform: translate(var(--dx, 0), var(--dy, 0)) scale(0.4) rotate(var(--dr, 0deg));
        transition: opacity 0.6s var(--s-ui), transform 0.9s var(--a-ressort);
        transition-delay: calc(var(--i, 0) * 0.07s);
    }

    .avec-js .demo--nuage.est-jouee .demo__mot {
        opacity: 1;
        transform: none;
    }

    .avec-js .demo--remi .demo__onde span {
        transform: scaleY(0.2);
        transition: transform 0.7s var(--a-ressort);
        transition-delay: calc(var(--i, 0) * 0.06s);
    }

    .avec-js .demo--remi.est-jouee .demo__onde span {
        transform: none;
    }
}

/* ══ Le test de connexion, sur place ═════════════════════════════════════════════════════════════════════════ */
.testeur {
    padding: 140px 0;
    background: var(--s-creme);
}

.testeur__grille {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
    gap: 64px;
    align-items: center;
}

.testeur__chapo {
    max-width: 30em;
    margin: 28px 0 0;
    color: var(--s-texte);
    font-size: 19px;
    line-height: 1.55;
}

.testeur__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px 24px;
    margin-top: 36px;
}

.testeur__actions .bouton {
    gap: 10px;
}

.testeur__complet {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--s-encre);
    font-size: 16px;
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: color-mix(in srgb, var(--s-encre) 30%, transparent);
    text-underline-offset: 4px;
}

.testeur__complet .icone {
    width: 16px;
    height: 16px;
}

.testeur__cadran {
    padding: 36px;
    border-radius: 32px;
    background: var(--s-papier);
    box-shadow: 0 40px 80px -40px color-mix(in srgb, var(--s-encre) 45%, transparent);
}

.jauge {
    position: relative;
    max-width: 360px;
    margin: 0 auto;
}

.jauge__svg {
    display: block;
    width: 100%;
    height: auto;
    overflow: visible;
}

.jauge__piste,
.jauge__valeur {
    fill: none;
    stroke-linecap: round;
    stroke-width: 18;
}

.jauge__piste {
    stroke: color-mix(in srgb, var(--s-encre) 10%, transparent);
}

.jauge__valeur {
    stroke: var(--jauge-couleur, var(--s-action));
    stroke-dasharray: calc(var(--jauge, 0) * 100) 200;
    opacity: calc(var(--jauge, 0) * 40);
    transition: stroke 0.5s var(--s-ui);
}

.jauge__mesure {
    position: absolute;
    right: 0;
    bottom: 4px;
    left: 0;
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 6px;
    margin: 0;
    color: var(--s-encre);
}

.jauge__mesure strong {
    font-family: var(--s-police-titre);
    font-size: 56px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.04em;
    font-variant-numeric: tabular-nums;
}

.jauge__mesure span {
    color: var(--s-texte);
    font-size: 16px;
    font-weight: 600;
}

.testeur__lignes {
    display: grid;
    gap: 10px;
    margin: 28px 0 0;
    padding: 0;
    list-style: none;
}

.testeur__lignes li {
    display: grid;
    grid-template-columns: auto auto minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    min-height: 56px;
    padding: 0 18px;
    border-radius: 16px;
    background: var(--s-creme);
    color: var(--s-texte);
    font-size: 15px;
    transition: background-color 0.4s var(--s-ui);
}

.testeur__lignes strong {
    color: var(--s-encre);
}

.testeur__voyant {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--s-encre) 20%, transparent);
    transition: background-color 0.3s var(--s-ui), transform 0.5s var(--a-ressort);
}

.testeur__lignes [data-etat="cours"] .testeur__voyant {
    background: var(--s-action);
    transform: scale(1.3);
}

.testeur__lignes [data-etat="ok"] {
    background: color-mix(in srgb, #2f9e68 12%, var(--s-papier));
}

.testeur__lignes [data-etat="ok"] .testeur__voyant {
    background: #2f9e68;
}

.testeur__lignes [data-etat="att"] {
    background: color-mix(in srgb, var(--s-lueur) 14%, var(--s-papier));
}

.testeur__lignes [data-etat="att"] .testeur__voyant {
    background: var(--s-lueur);
}

.testeur__lignes [data-etat="ko"] {
    background: color-mix(in srgb, var(--danger, #c62828) 12%, var(--s-papier));
}

.testeur__lignes [data-etat="ko"] .testeur__voyant {
    background: var(--danger, #c62828);
}

/* ══ Les questions fréquentes ══════════════════════════════════════════════════════════════════════════════ */
.faq {
    padding: 140px 0;
    background: var(--s-papier);
}

.faq__grille {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: 64px;
    align-items: start;
}

.faq .accueil-tete {
    position: sticky;
    top: calc(var(--s-entete-h) + 40px);
    margin: 0;
}

.faq__aide {
    margin: 28px 0 0;
    color: var(--s-texte);
    font-size: 17px;
}

.faq__aide .lien-bouton {
    padding: 0;
    border: 0;
    background: none;
    color: var(--s-encre);
    font: inherit;
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: var(--s-action);
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
    cursor: pointer;
}

.faq__liste {
    display: grid;
    gap: 12px;
}

.faq__item {
    border: 1px solid var(--s-filet);
    border-radius: 20px;
    background: var(--s-papier);
    transition: border-color 0.3s var(--s-ui), background-color 0.3s var(--s-ui), box-shadow 0.4s var(--s-ui);
}

.faq__item[open] {
    border-color: transparent;
    background: var(--s-creme);
}

.faq__item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 72px;
    padding: 0 24px;
    color: var(--s-encre);
    font-family: var(--s-police-titre);
    font-size: 19px;
    font-weight: 600;
    letter-spacing: -0.01em;
    list-style: none;
    cursor: pointer;
}

.faq__item summary::-webkit-details-marker {
    display: none;
}

.faq__item summary:focus-visible {
    border-radius: 20px;
    outline: 2px solid var(--s-encre);
    outline-offset: 2px;
}

.faq__signe {
    position: relative;
    flex: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--s-creme);
    transition: background-color 0.3s var(--s-ui), transform 0.5s var(--a-ressort);
}

.faq__signe::before,
.faq__signe::after {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 14px;
    height: 2px;
    border-radius: 2px;
    background: var(--s-encre);
    content: "";
    transform: translate(-50%, -50%);
}

.faq__signe::after {
    transform: translate(-50%, -50%) rotate(90deg);
    transition: transform 0.4s var(--s-entree);
}

.faq__item[open] .faq__signe {
    background: var(--s-action);
    transform: rotate(180deg);
}

.faq__item[open] .faq__signe::after {
    transform: translate(-50%, -50%) rotate(0deg);
}

.faq__reponse {
    padding: 0 24px 24px;
}

.faq__reponse p {
    max-width: 38em;
    margin: 0;
    color: var(--s-texte);
    font-size: 17px;
    line-height: 1.6;
}

.faq__reponse a {
    color: var(--s-encre);
    font-weight: 600;
}

/* ══ L'accès : la nuit dorée, le motif exact en bas à gauche, le formulaire en pleine lumière ═══════════════════ */
.acces {
    position: relative;
    padding: 140px 0;
}

.acces__grille {
    position: relative;
    z-index: 2;
    align-items: center;
}

.acces__grille--formulaire {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
}

.acces h2 {
    margin: 0;
    color: #ffffff;
    font-family: var(--s-police-titre);
    font-size: clamp(48px, 6vw, 92px);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.045em;
}

.acces__motif {
    bottom: -18%;
    left: -10%;
    width: min(60vh, 38vw);
    opacity: 0.95;
}

.acces__texte {
    align-self: start;
    padding-bottom: 32vh;
}

.acces__grille--formulaire .acces__texte {
    padding-bottom: 28vh;
}

.acces__decompte {
    margin-top: 36px;
}

.acces__decompte .decompte--ouverture {
    --chrono-t: 34px;
}

.acces__carte {
    position: relative;
}

.acces__carte .porte__formulaire {
    gap: 18px;
}

.acces__lien {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: var(--s-action);
    text-decoration-thickness: 2px;
    text-underline-offset: 5px;
}

.acces__lien .icone {
    width: 18px;
    height: 18px;
}

.acces__lien--carte {
    margin-top: 22px;
    color: var(--s-encre);
}

.acces__appel {
    align-self: center;
}

/* Les titres de ces sections surgissent mot à mot d'un masque (comme ceux de la scène) */
@media (prefers-reduced-motion: no-preference) {
    .avec-js .accueil-titre .mot > span,
    .avec-js .acces h2 .mot > span {
        transform: translateY(112%) rotate(4deg);
        transform-origin: 0 100%;
        transition: transform 1s var(--s-entree);
        transition-delay: calc(0.05s + var(--i, 0) * 0.06s);
    }

    .avec-js .est-visible .accueil-titre .mot > span,
    .avec-js .est-visible h2 .mot > span {
        transform: none;
    }

    .avec-js [data-grandir] {
        scale: calc(0.84 + var(--g, 1) * 0.16);
    }

    .avec-js .bref__case[data-scene-apparition] {
        transform: translateY(40px) scale(0.96);
    }

    .avec-js .bref__case[data-scene-apparition].est-visible {
        transform: none;
    }

    .avec-js .faq__reponse {
        animation: accueil-faq 0.5s var(--s-entree);
    }
}

@keyframes accueil-faq {
    from { opacity: 0; transform: translateY(-8px); }
}

/* ══ Tablette ══════════════════════════════════════════════════════════════════════════════════════════════════ */
@media (max-width: 1180px) {
    .site-nav__lien {
        padding: 0 10px;
        font-size: 14px;
    }

    .site-nav__lien::after {
        right: 10px;
        left: 10px;
    }
}

@media (max-width: 1068px) {
    /* Le menu se replie : un bouton « Menu » déplie une feuille sous l'en-tête */
    .site-nav {
        position: fixed;
        top: calc(var(--s-entete-h) + env(safe-area-inset-top));
        right: 0;
        left: 0;
        display: grid;
        gap: 24px;
        align-content: start;
        max-height: calc(100svh - var(--s-entete-h));
        padding: 12px var(--s-gouttiere) 32px;
        overflow: auto;
        border-bottom: 1px solid var(--s-filet);
        background: var(--s-papier);
        color: var(--s-encre);
        box-shadow: 0 40px 60px -30px rgba(10, 16, 40, 0.4);
        visibility: hidden;
        opacity: 0;
        transform: translateY(-12px);
        transition: opacity 0.3s var(--s-ui), transform 0.45s var(--s-entree), visibility 0s linear 0.45s;
    }

    .site-entete.est-menu .site-nav {
        visibility: visible;
        opacity: 1;
        transform: none;
        transition: opacity 0.3s var(--s-ui), transform 0.45s var(--s-entree), visibility 0s;
    }

    .site-nav__liste {
        display: grid;
        gap: 0;
    }

    .site-nav__liste li + li {
        border-top: 1px solid var(--s-filet);
    }

    .site-nav__lien {
        width: 100%;
        min-height: 64px;
        padding: 0;
        border-radius: 0;
        font-family: var(--s-police-titre);
        font-size: 26px;
        font-weight: 600;
        letter-spacing: -0.02em;
    }

    .site-nav__lien::after {
        right: auto;
        bottom: 14px;
        left: 0;
        width: 40px;
    }

    .site-nav__action {
        display: inline-flex;
        justify-content: center;
    }

    .site-nav__bouton {
        display: inline-flex;
        align-items: center;
        gap: 10px;
        min-height: 44px;
        margin-left: auto;
        padding: 0 16px;
        border: 1px solid currentColor;
        border-radius: 999px;
        background: none;
        color: inherit;
        font: inherit;
        font-size: 15px;
        font-weight: 600;
        cursor: pointer;
    }

    .site-entete--nav .site-entete__action {
        display: none;
    }

    .site-nav__traits {
        position: relative;
        display: block;
        width: 18px;
        height: 12px;
    }

    .site-nav__traits span {
        position: absolute;
        left: 0;
        width: 18px;
        height: 2px;
        border-radius: 2px;
        background: currentColor;
        transition: transform 0.4s var(--s-entree), top 0.3s var(--s-entree);
    }

    .site-nav__traits span:first-child { top: 2px; }
    .site-nav__traits span:last-child { top: 8px; }

    .site-entete.est-menu .site-nav__traits span:first-child { top: 5px; transform: rotate(45deg); }
    .site-entete.est-menu .site-nav__traits span:last-child { top: 5px; transform: rotate(-45deg); }

    /* Menu ouvert sur l'ouverture : l'en-tête devient solide pour rester lisible */
    .site--ouverture .site-entete.est-menu {
        border-bottom-color: var(--s-filet);
        background: var(--s-papier);
        color: var(--s-encre);
    }

    .site--ouverture .site-entete.est-menu .site-logo--couleur { opacity: 1; }
    .site--ouverture .site-entete.est-menu .site-logo--clair { opacity: 0; }

    @media (prefers-reduced-motion: no-preference) {
        .avec-js .site-nav__liste li {
            opacity: 0;
            transform: translateY(14px);
            transition: opacity 0.4s var(--s-ui), transform 0.5s var(--s-entree);
        }

        .avec-js .est-menu .site-nav__liste li {
            opacity: 1;
            transform: none;
        }

        .avec-js .est-menu .site-nav__liste li:nth-child(2) { transition-delay: 0.04s; }
        .avec-js .est-menu .site-nav__liste li:nth-child(3) { transition-delay: 0.08s; }
        .avec-js .est-menu .site-nav__liste li:nth-child(4) { transition-delay: 0.12s; }
        .avec-js .est-menu .site-nav__liste li:nth-child(5) { transition-delay: 0.16s; }
    }

    .remi-barre__grille,
    .testeur__grille,
    .faq__grille,
    .acces__grille--formulaire {
        grid-template-columns: minmax(0, 1fr);
    }

    .remi-barre__idees {
        grid-column: auto;
    }

    .faq .accueil-tete {
        position: static;
    }

    .bref__grille {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .acces__texte,
    .acces__grille--formulaire .acces__texte {
        padding-bottom: 0;
    }

    .acces__motif {
        display: none;
    }
}

/* ══ Téléphone ═════════════════════════════════════════════════════════════════════════════════════════════════ */
@media (max-width: 734px) {
    .site-nav__bouton .site-nav__mot {
        display: none;
    }

    .site-nav__bouton {
        width: 44px;
        justify-content: center;
        padding: 0;
    }

    .ouverture__avant {
        margin-bottom: 10px;
        font-size: 11px;
    }

    .remi-barre {
        padding: 48px 0 56px;
    }

    .remi-barre__champ {
        min-height: 60px;
        padding: 6px 6px 6px 12px;
        gap: 8px;
    }

    .remi-barre__signe {
        width: 34px;
        height: 34px;
    }

    .remi-barre__champ input {
        font-size: 17px;
    }

    .remi-barre__champ .bouton {
        width: 48px;
        min-height: 48px;
        padding: 0;
        justify-content: center;
    }

    .remi-barre__champ .bouton span {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip-path: inset(50%);
    }

    .remi-barre__idees {
        flex-wrap: nowrap;
        margin: 0 calc(var(--s-gouttiere) * -1);
        padding: 0 var(--s-gouttiere);
        overflow-x: auto;
        scrollbar-width: none;
    }

    .remi-barre__idees li {
        flex: none;
    }

    .grandit__collant {
        padding: 48px var(--s-gouttiere);
    }

    .grandit__panneau {
        min-height: 60vh;
        padding: 40px 24px;
        border-radius: 24px;
    }

    .grandit__motif {
        width: 70%;
        right: -24%;
        bottom: -14%;
    }

    @media (prefers-reduced-motion: no-preference) {
        .avec-js .grandit {
            height: 220vh;
        }

        .avec-js .grandit__panneau {
            padding: 0 24px;
            clip-path: inset(calc((1 - var(--g, 0)) * 16vh) calc((1 - var(--g, 0)) * 6vw) round calc((1 - var(--g, 0)) * 28px));
        }

        .avec-js .grandit__contenu {
            transform: scale(calc(0.8 + var(--g, 0) * 0.2));
        }
    }

    .grandit__texte {
        font-size: 40px;
    }

    .bref,
    .pendant,
    .testeur,
    .faq,
    .acces {
        padding: 88px 0;
    }

    .accueil-tete {
        margin-bottom: 36px;
    }

    .accueil-titre {
        font-size: 40px;
    }

    .bref__case {
        min-height: 160px;
        padding: 20px;
        gap: 16px;
    }

    .bref__num {
        font-size: 64px;
    }

    .bref__libelle {
        font-size: 15px;
    }

    .bref__case--large {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
    }

    .bref__case--large .bref__libelle {
        font-size: 21px;
    }

    .defile__compteur [data-defile-rang] {
        font-size: 40px;
    }

    /* Sur téléphone, les marchés se suivent en colonne : chacun grandit et prend sa couleur au centre de l'écran,
       rien n'est coupé par les bords (accueil.js mesure alors la distance verticale). */
    .defile__compteur,
    .defile .defile__num {
        display: none;
    }

    @media (prefers-reduced-motion: no-preference) {
        .avec-js .defile {
            height: auto;
        }

        .avec-js .defile__collant {
            position: static;
            height: auto;
            padding: 88px 0;
            overflow: visible;
        }

        .avec-js .defile .defile__piste {
            flex-direction: column;
            flex-wrap: nowrap;
            align-items: flex-start;
            gap: 22px;
            padding-left: var(--s-gouttiere);
            transform: none;
        }

        .avec-js .defile .defile__sujet {
            font-size: 46px;
            white-space: normal;
            transform-origin: 0 50%;
        }

        .avec-js .defile__progression {
            display: none;
        }
    }

    .defile__sur {
        font-size: 15px;
    }

    .defile .defile__tete h2 {
        font-size: 36px;
    }

    .pendant__grille {
        grid-template-columns: minmax(0, 1fr);
        gap: 14px;
    }

    .demo {
        padding: 20px;
        border-radius: 24px;
    }

    .demo__scene {
        min-height: 180px;
    }

    .demo h3 {
        margin-top: 20px;
        font-size: 22px;
    }

    .testeur__grille {
        gap: 36px;
    }

    .testeur__chapo {
        font-size: 17px;
    }

    .testeur__actions .bouton {
        width: 100%;
        justify-content: center;
    }

    .testeur__cadran {
        padding: 24px 20px;
        border-radius: 24px;
    }

    .jauge__mesure strong {
        font-size: 44px;
    }

    .faq__grille {
        gap: 32px;
    }

    .faq__item summary {
        min-height: 64px;
        padding: 0 18px;
        font-size: 17px;
    }

    .faq__reponse {
        padding: 0 18px 20px;
    }

    .faq__reponse p {
        font-size: 16px;
    }

    .acces h2 {
        font-size: 48px;
    }

    .acces__carte {
        padding: 24px 20px;
        border-radius: 24px;
    }

    .acces__decompte .decompte--ouverture {
        --chrono-t: 26px;
    }
}

/* Mouvement réduit : tout en place, rien ne bouge */
@media (prefers-reduced-motion: reduce) {
    .bref__case,
    .bref__case::before,
    .demo,
    .puce,
    .remi-barre__champ,
    .faq__signe,
    .faq__signe::after,
    .site-nav,
    .site-nav__lien::after,
    .bouton--fleche .icone {
        transition: none;
    }
}

/* ══ L'accès dans l'en-tête : « Se connecter » toujours visible, à côté de l'action principale ═══════════════════
   Les deux mènent à la page d'entrée plein écran (/acces, entree.css). */
.site-entete__acces {
    display: flex;
    align-items: center;
    gap: 8px;
}

.site-entete__connexion {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 0 16px;
    border: 1px solid color-mix(in srgb, currentColor 38%, transparent);
    border-radius: 999px;
    color: inherit;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 0.25s var(--s-ui), border-color 0.25s var(--s-ui);
}

.site-entete__connexion .icone {
    width: 16px;
    height: 16px;
}

.site-entete__connexion:hover {
    border-color: currentColor;
    background: color-mix(in srgb, currentColor 10%, transparent);
}

.site-entete__connexion:focus-visible {
    outline: 2px solid var(--s-action);
    outline-offset: 2px;
}

.site--ouverture .site-entete .site-entete__action--toujours {
    visibility: visible;
    opacity: 1;
    transform: none;
}

.ouverture__deja {
    margin: 20px 0 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 16px;
}

.ouverture__deja a {
    color: #ffffff;
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: var(--s-action);
    text-decoration-thickness: 2px;
    text-underline-offset: 5px;
}

.acces__appel--deux {
    display: grid;
    gap: 14px;
    width: 100%;
    max-width: 420px;
    justify-self: end;
}

.acces__appel--deux .bouton--verre {
    gap: 10px;
}



































































@keyframes module-champ {
    from { opacity: 0; transform: translateY(12px); }
}

@media (max-width: 1068px) {
    .site-entete--nav .site-entete__action--toujours {
        display: none;
    }

    .site-entete__acces {
        margin-left: auto;
    }

    .site-entete--nav .site-nav__bouton {
        margin-left: 0;
    }

    .acces__appel--deux {
        justify-self: start;
    }
}

@media (max-width: 734px) {
    .site-entete__connexion {
        min-height: 44px;
        padding: 0 14px;
        font-size: 14px;
    }
}

@media (max-width: 374px) {
    .site-entete__connexion span {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip-path: inset(50%);
    }
}

/* ══ L'ouverture : les marchés du visuel, les visages des intervenants près du compte à rebours ═════════════════ */
.ouverture__marches {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 22px 0 0;
    padding: 0;
    list-style: none;
}

.ouverture__marche {
    --teinte: var(--t-encre);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 36px;
    padding: 0 14px 0 4px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    transition: transform 0.4s var(--a-ressort), background-color 0.3s var(--s-ui);
}

.ouverture__marche--soleil { --teinte: var(--t-soleil); }
.ouverture__marche--brume { --teinte: var(--t-brume); }
.ouverture__marche--braise { --teinte: var(--t-braise); }
.ouverture__marche--ciel { --teinte: var(--t-ciel); }
.ouverture__marche--encre { --teinte: #3d4f9a; }

.ouverture__marche > span {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--teinte);
    color: #ffffff;
}

.ouverture__marche--soleil > span {
    color: var(--s-action-texte);
}

.ouverture__marche .glyphe {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

@media (hover: hover) {
    .ouverture__marche:hover {
        background: rgba(255, 255, 255, 0.16);
        transform: translateY(-2px);
    }
}

.ouverture__avec {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    margin-top: 22px;
    color: rgba(255, 255, 255, 0.86);
    font-size: 15px;
    text-decoration: none;
}

.ouverture__avec strong {
    color: #ffffff;
}

.ouverture__visages {
    display: inline-flex;
    padding-left: 10px;
}

/* Les visages se chevauchent ; au survol, l'éventail s'ouvre et chacun dit son nom */
.ouverture__visage {
    position: relative;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    margin-left: -12px;
    border: 2px solid var(--s-nuit);
    border-radius: 50%;
    background: var(--t-ciel);
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    transition: margin 0.5s var(--a-ressort), transform 0.45s var(--a-ressort);
}

.ouverture__visage img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.ouverture__visage::after {
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    padding: 6px 10px;
    border-radius: 8px;
    background: #ffffff;
    color: var(--s-encre);
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    content: attr(data-nom);
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, 6px);
    transition: opacity 0.2s var(--s-ui), transform 0.3s var(--s-entree);
}

@media (hover: hover) {
    .ouverture__avec:hover .ouverture__visage {
        margin-left: 4px;
    }

    .ouverture__visage:hover {
        z-index: 2;
        transform: translateY(-6px) scale(1.18);
    }

    .ouverture__visage:hover::after {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

/* ══ Les intervenants : des vignettes vivantes ═══════════════════════════════════════════════════════════════
   Ordinateur : la carte s'incline sous la souris (--rx, --ry), un reflet suit le pointeur (--gx, --gy), la photo
   passe du ton de la marque à la pleine couleur, le quart de cercle pivote. Clic ou toucher : la carte passe en
   vedette (date du live, agenda, accès), les autres s'effacent un peu. Téléphone : un ruban qu'on fait glisser,
   la carte au centre grandit. */
.voix {
    position: relative;
    padding: 140px 0;
    overflow: hidden;
    background: var(--s-creme);
}

.voix__grille {
    display: grid;
    gap: 20px;
}

.voix__grille--tete {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 2fr);
    align-items: start;
}

.voix__liste {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
    gap: 20px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.voix__carte {
    --teinte: var(--t-ciel);
    --rx: 0deg;
    --ry: 0deg;
    --gx: 50%;
    --gy: 0%;
    position: relative;
    display: grid;
    align-content: start;
    gap: 14px;
    padding: 12px 12px 18px;
    border-radius: 28px;
    background: var(--s-papier);
    box-shadow: 0 30px 60px -40px color-mix(in srgb, var(--s-encre) 60%, transparent);
    transform: perspective(900px) rotateX(var(--ry)) rotateY(var(--rx));
    transform-style: preserve-3d;
    transition: transform 0.6s var(--a-ressort), box-shadow 0.4s var(--s-ui), opacity 0.4s var(--s-ui), filter 0.4s var(--s-ui);
}

.voix__carte--soleil { --teinte: var(--t-soleil); }
.voix__carte--ciel { --teinte: var(--t-ciel); }
.voix__carte--braise { --teinte: var(--t-braise); }
.voix__carte--brume { --teinte: var(--t-brume); }
.voix__carte--encre { --teinte: var(--t-encre); }

/* Le reflet qui suit le pointeur */
.voix__carte::after {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(circle at var(--gx) var(--gy), rgba(255, 255, 255, 0.55), transparent 45%);
    content: "";
    opacity: 0;
    pointer-events: none;
    mix-blend-mode: soft-light;
    transition: opacity 0.4s var(--s-ui);
}

.voix__carte.est-survol::after {
    opacity: 1;
}

.voix__carte.est-survol {
    box-shadow: 0 50px 80px -40px color-mix(in srgb, var(--s-encre) 70%, transparent);
    transition: transform 0.12s linear, box-shadow 0.4s var(--s-ui);
}

.voix__photo {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 20px 20px 20px 50%;
    background: var(--teinte);
    transform: translateZ(30px);
}

.voix__liste .voix__carte:nth-child(3n + 2) .voix__photo { border-radius: 20px 50% 20px 20px; }
.voix__liste .voix__carte:nth-child(3n) .voix__photo { border-radius: 50% 20px 20px 20px; }

.voix__photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(1) contrast(1.05);
    mix-blend-mode: luminosity;
    transform: scale(1.04);
    transition: filter 0.6s var(--s-ui), transform 0.9s var(--s-entree), mix-blend-mode 0s 0.3s;
}

/* Survol, focus ou vedette : la pleine couleur */
.voix__carte.est-survol .voix__photo img,
.voix__carte.est-vedette .voix__photo img,
.voix__carte:focus-within .voix__photo img {
    filter: none;
    mix-blend-mode: normal;
    transform: scale(1.1);
    transition: filter 0.6s var(--s-ui), transform 0.9s var(--s-entree), mix-blend-mode 0s;
}

.voix__initiales {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    color: #ffffff;
    font-family: var(--s-police-titre);
    font-size: 64px;
    font-weight: 700;
}

/* Le quart de cercle du motif, posé dans un coin de la photo, qui pivote */
.voix__forme {
    position: absolute;
    right: -18%;
    bottom: -18%;
    width: 46%;
    aspect-ratio: 1;
    border: 14px solid var(--teinte);
    border-radius: 50%;
    clip-path: polygon(0 0, 50% 0, 50% 50%, 0 50%);
    transform: rotate(0deg);
    transition: transform 0.8s var(--a-ressort);
}

.voix__carte.est-survol .voix__forme,
.voix__carte.est-vedette .voix__forme {
    transform: scale(1.4) rotate(-14deg);
}

.voix__texte {
    padding: 0 8px;
    transform: translateZ(20px);
}

.voix__role {
    display: inline-block;
    margin: 0 0 6px;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--teinte);
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.voix__carte--soleil .voix__role {
    color: var(--s-action-texte);
}

.voix__nom {
    position: relative;
    display: inline;
    margin: 0;
    color: var(--s-encre);
    font-family: var(--s-police-titre);
    font-size: 20px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.02em;
    background: linear-gradient(var(--teinte), var(--teinte)) 0 100% / 0 3px no-repeat;
    transition: background-size 0.5s var(--s-entree);
}

.voix__carte.est-survol .voix__nom,
.voix__carte.est-vedette .voix__nom {
    background-size: 100% 3px;
}

.voix__carte--tete .voix__nom {
    font-size: clamp(26px, 2.6vw, 36px);
    letter-spacing: -0.03em;
}

.voix__carte--tete .voix__photo {
    border-radius: 24px 24px 24px 50%;
}

/* Le bouton invisible qui couvre la carte : clic, toucher, Entrée */
.voix__ouvrir {
    position: absolute;
    inset: 0;
    z-index: 3;
    border: 0;
    border-radius: inherit;
    background: none;
    cursor: pointer;
}

.voix__ouvrir:focus-visible {
    outline: 3px solid var(--s-encre);
    outline-offset: 4px;
}

/* La vedette */
.voix__vedette {
    position: relative;
    z-index: 4;
    display: grid;
    gap: 12px;
    padding: 4px 8px 0;
    transform: translateZ(20px);
}

.voix__vedette[hidden] {
    display: none;
}

.voix__quand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    color: var(--s-encre);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.voix__quand .icone {
    width: 16px;
    height: 16px;
    color: #d11f34;
}

.voix__invite {
    margin: 0;
    color: var(--s-texte);
    font-size: 15px;
    line-height: 1.5;
}

.voix__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 16px;
}

.voix__actions .bouton {
    min-height: 44px;
    padding: 0 18px;
    border-radius: 999px;
}

.voix__agenda {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--s-encre);
    font-size: 14px;
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: var(--teinte);
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
}

.voix__agenda .icone {
    width: 16px;
    height: 16px;
}

.voix__carte.est-vedette {
    z-index: 5;
    box-shadow: 0 0 0 3px var(--teinte), 0 50px 90px -40px color-mix(in srgb, var(--s-encre) 75%, transparent);
}

.voix__carte.est-vedette .voix__ouvrir {
    bottom: auto;
    height: calc(100% - var(--hauteur-vedette, 0px));
}

.voix.a-vedette .voix__carte:not(.est-vedette) {
    opacity: 0.55;
    filter: saturate(0.6);
}

@media (prefers-reduced-motion: no-preference) {
    /* À l'entrée : la photo se dévoile de bas en haut, en cascade */
    .avec-js .voix__carte[data-scene-apparition] .voix__photo {
        clip-path: inset(100% 0 0 0 round 20px);
        transition: clip-path 1.1s var(--s-entree);
        transition-delay: calc(0.1s + var(--rang, 0) * 0.08s);
    }

    .avec-js .voix__carte[data-scene-apparition].est-visible .voix__photo {
        clip-path: inset(0 0 0 0 round 0);
    }

    .avec-js .voix__carte[data-scene-apparition].est-visible {
        transform: perspective(900px) rotateX(var(--ry)) rotateY(var(--rx));
    }

    .avec-js .voix__vedette:not([hidden]) {
        animation: module-champ 0.5s var(--s-entree);
    }
}

@media (max-width: 1068px) {
    .voix__grille--tete {
        grid-template-columns: minmax(0, 1fr);
    }

    .voix__carte--tete {
        grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
        align-items: center;
    }

    .voix__carte--tete .voix__vedette {
        grid-column: 1 / -1;
    }
}

/* Téléphone : un ruban à faire glisser ; la carte la plus au centre grandit (--proche, accueil.js) */
@media (max-width: 734px) {
    .voix {
        padding: 88px 0;
    }

    .voix__carte--tete {
        grid-template-columns: minmax(0, 1fr);
    }

    .voix__liste {
        display: flex;
        gap: 14px;
        margin: 0 calc(var(--s-gouttiere) * -1);
        padding: 8px var(--s-gouttiere) 24px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-padding: 0 var(--s-gouttiere);
        scrollbar-width: none;
    }

    .voix__liste::-webkit-scrollbar {
        display: none;
    }

    .voix__liste .voix__carte {
        flex: none;
        width: 66vw;
        scroll-snap-align: center;
        scale: calc(0.9 + var(--proche, 1) * 0.1);
        transition: scale 0.2s linear, opacity 0.4s var(--s-ui), filter 0.4s var(--s-ui);
    }

    .voix__liste .voix__carte .voix__photo img {
        filter: grayscale(calc(1 - var(--proche, 1)));
        mix-blend-mode: normal;
    }

    .ouverture__marches {
        gap: 6px;
        margin-top: 18px;
    }

    .ouverture__marche {
        min-height: 32px;
        padding-right: 12px;
        font-size: 13px;
    }

    .ouverture__marche > span {
        width: 24px;
        height: 24px;
    }

    .ouverture__avec {
        font-size: 14px;
    }

    .ouverture__visage {
        width: 36px;
        height: 36px;
        margin-left: -10px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .voix__carte,
    .voix__photo img,
    .voix__forme,
    .voix__nom,
    .ouverture__visage,
    .ouverture__marche {
        transition: none;
    }
}

/* ══ L'ouverture en deux colonnes : le texte à gauche, la carte du direct à droite ═══════════════════════════════
   La carte réunit le compte à rebours et les vignettes des intervenants (demande d'Unigrains, comme RCP). Le motif
   descend dans l'angle pour ne jamais passer sous un texte. Le logo de l'en-tête ne rétrécit jamais. */
.site-entete__marque {
    flex: none;
}

.ouverture__carte {
    position: relative;
    z-index: 3;
    width: fit-content;
    max-width: 100%;
    margin-top: 28px;
    padding: 22px 24px 20px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 32px;
    background: linear-gradient(160deg, rgba(17, 26, 61, 0.62), rgba(17, 26, 61, 0.28));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 40px 80px -40px rgba(4, 8, 28, 0.9);
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
}

.ouverture__carte .ouverture__decompte {
    margin: 0;
}

.ouverture__carte .decompte--ouverture {
    --chrono-t: 34px;
}

.ouverture__avant {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ouverture__point {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ff4d5e;
    box-shadow: 0 0 0 4px rgba(255, 77, 94, 0.22);
}

.ouverture__carte .ouverture__avec {
    display: flex;
    width: 100%;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.ouverture__carte .ouverture__visage {
    width: 46px;
    height: 46px;
    border-color: #1a2452;
}

.ouverture__avec-texte {
    line-height: 1.35;
}

@media (min-width: 1069px) {
    .ouverture__corps:has(.ouverture__carte) {
        display: grid;
        grid-template-columns: minmax(0, 1fr) 452px;
        column-gap: 48px;
        align-items: start;
        justify-items: start;
    }

    .ouverture__corps:has(.ouverture__carte) > .ouverture__sous-titre {
        max-width: 30em;
    }

    .ouverture__corps:has(.ouverture__carte) > * {
        grid-column: 1;
    }

    .ouverture__corps:has(.ouverture__carte) > .ouverture__carte {
        grid-column: 2;
        grid-row: 1 / span 8;
        align-self: center;
        justify-self: stretch;
        width: 100%;
        margin-top: 0;
    }

    .ouverture:has(.ouverture__carte) .ouverture__titre {
        font-size: clamp(56px, 5.4vw, 80px);
    }

    .ouverture:has(.ouverture__carte) .ouverture__motif {
        width: min(40vh, 26vw);
        bottom: -14vh;
        right: -3vw;
    }

    .ouverture:has(.ouverture__carte) .ouverture__actions {
        margin-top: 32px;
    }
}

@media (max-width: 734px) {
    .ouverture__carte {
        width: 100%;
        margin-top: 24px;
        padding: 16px 14px 14px;
        border-radius: 24px;
    }

    .ouverture__carte .decompte--ouverture {
        --chrono-t: 22px;
        --chrono-d: calc((100vw - 2 * var(--s-gouttiere) - 28px - 3 * 8px) / 4);
    }

    .ouverture__carte .ouverture__visage {
        width: 34px;
        height: 34px;
    }
}

/* La carte de la présentatrice : le rôle au-dessus du nom */
.voix__texte .voix__role {
    display: block;
    width: fit-content;
}

/* Entre la tablette et le grand écran : l'en-tête se resserre, le bouton d'accès reste dans l'ouverture */
@media (min-width: 1069px) and (max-width: 1320px) {
    .site-entete--nav .site-entete__action--toujours {
        display: none;
    }

    .site-entete--nav .site-entete__barre {
        gap: 16px;
    }

    .site-nav__lien {
        padding: 0 9px;
        font-size: 14px;
    }
}

.ouverture__carte .ouverture__avec {
    flex-wrap: wrap;
    gap: 10px 14px;
}

.ouverture__carte .ouverture__avec-texte {
    flex: 1 1 220px;
}

/* Au départ, les mots du titre descendent assez bas pour que les accents (È) restent cachés sous le masque */
@media (prefers-reduced-motion: no-preference) {
    .avec-js .ouverture__titre .mot > span {
        transform: translateY(140%);
    }

    .avec-js .ouverture.est-ouverte .ouverture__titre .mot > span {
        transform: none;
    }
}

/* Les éléments qui glissent vers la page d'entrée (voir scene.css, transitions de page) */
.ouverture > .ouverture__fond {
    view-transition-name: entree-visuel;
}

.ouverture__titre {
    view-transition-name: entree-titre;
}

/* ══ Téléphone : une ouverture minimale ═══════════════════════════════════════════════════════════════════════════
   Audit du 18/11 (« trop chargé ») : dix blocs empilés dans le premier écran. Il en reste quatre : une ligne de
   résumé (étiquette, date, heure), le titre, le compte à rebours en anneaux, le bouton (et « Se connecter » dessous).
   Les marchés, les intervenants et le test ont chacun leur section plus bas ; « Se connecter » est aussi dans le
   menu. La photo revient sous un voile plus léger, le motif descend dans l'angle. */
.ouverture__resume {
    display: none;
}

.site-nav__connexion {
    display: none;
}

@media (max-width: 734px) {
    .ouverture__resume {
        display: block;
        margin: 0 0 14px;
        color: var(--s-action);
        font-size: 13px;
        font-weight: 600;
        letter-spacing: 0.12em;
        text-transform: uppercase;
    }

    .ouverture__etiquette,
    .ouverture__marches,
    .ouverture__infos,
    .ouverture__carte .ouverture__avec,
    .ouverture__actions .bouton--verre,
    .ouverture__suite,
    .site-entete__acces {
        display: none;
    }

    .ouverture .ouverture__titre {
        font-size: 42px;
    }

    .ouverture .ouverture__sous-titre {
        margin-top: 16px;
        color: rgba(255, 255, 255, 0.78);
        font-size: 16px;
        line-height: 1.5;
    }

    .ouverture__carte {
        width: 100%;
        margin-top: 30px;
        padding: 0;
        border: 0;
        border-radius: 0;
        background: none;
        box-shadow: none;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .ouverture__carte .decompte--ouverture {
        --chrono-d: calc((100vw - 2 * var(--s-gouttiere) - 3 * 10px) / 4);
        gap: 10px;
    }

    .ouverture__actions {
        margin-top: 28px;
    }

    .ouverture__deja {
        margin-top: 16px;
        text-align: center;
    }

    .ouverture .ouverture__voile {
        background: linear-gradient(180deg, rgba(13, 19, 49, 0.78) 0%, rgba(13, 19, 49, 0.55) 45%, rgba(13, 19, 49, 0.82) 100%);
    }

    .ouverture .ouverture__motif {
        top: auto;
        right: -16vw;
        bottom: -8vh;
        width: 44vw;
        opacity: 0.9;
    }

    /* Le menu porte aussi « Se connecter » */
    .site-nav__connexion {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        min-height: 52px;
        border: 1px solid var(--s-filet);
        border-radius: 999px;
        color: var(--s-encre);
        font-weight: 600;
        text-decoration: none;
    }

    .site-nav__connexion .icone {
        width: 16px;
        height: 16px;
    }

    /* Le live en bref : quatre cases seulement */
    .bref__case--large {
        display: none;
    }

    /* Pendant le direct : un ruban à faire glisser plutôt que quatre grandes cartes empilées */
    .pendant__grille {
        display: flex;
        gap: 12px;
        margin: 0 calc(var(--s-gouttiere) * -1);
        padding: 4px var(--s-gouttiere) 8px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
    }

    .pendant__grille::-webkit-scrollbar {
        display: none;
    }

    .pendant__grille .demo {
        flex: none;
        width: 80vw;
        scroll-snap-align: center;
    }
}

/* Au survol, le lien des intervenants reste clair (la règle générale des liens le passait en bleu nuit) */
.ouverture .ouverture__avec:hover,
.ouverture .ouverture__avec:focus-visible {
    color: #ffffff;
}

/* ══ La barre des sections : une pilule flottante et vivante (comme GTA Clip) ══════════════════════════════════════
   Construction relevée sur gtaclip.fr (core/vues/haut.php, assets/css/site.css, assets/js/site.js) :
   - l'en-tête est une couche fixe et transparente (pointer-events: none) ; seule la pilule centrée reçoit les clics ;
   - la pilule : bord fin clair, fond nuit translucide flouté, coins en 999px ;
   - elle arrive en rebondissant depuis le haut ; dès 30 px de défilement (classe est-defile, accueil.js), elle se
     resserre (largeur et marges), devient plus opaque avec une ombre, et fait un petit rebond à chaque changement ;
   - le lien de la section à l'écran prend une pastille claire ; sur téléphone, le menu tombe en carte arrondie
     sous la pilule. Aux couleurs d'Unigrains : nuit bleue, texte blanc, jaune pour l'action. */
.site-entete--nav,
.site--ouverture .site-entete--nav,
.site--ouverture .site-entete--nav.est-solide,
.hab-unigrains .site-entete--nav.est-solide {
    position: fixed;
    top: calc(14px + env(safe-area-inset-top));
    right: 0;
    left: 0;
    padding: 0 16px;
    border: 0;
    background: none;
    color: #ffffff;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    pointer-events: none;
}

.site-entete--nav .site-entete__barre {
    max-width: 1240px;
    min-height: 0;
    padding: 8px 10px 8px 22px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    background: rgba(16, 22, 56, 0.4);
    backdrop-filter: blur(16px) saturate(1.4);
    -webkit-backdrop-filter: blur(16px) saturate(1.4);
    pointer-events: auto;
    transition: background-color 0.3s ease, box-shadow 0.3s ease, max-width 0.45s cubic-bezier(0.3, 1.3, 0.5, 1), padding 0.3s ease;
}

.site-entete--nav.est-defile .site-entete__barre {
    max-width: 1200px;
    padding-top: 6px;
    padding-bottom: 6px;
    background: rgba(16, 22, 56, 0.88);
    box-shadow: 0 20px 50px -20px rgba(5, 10, 30, 0.75);
}

/* Le logo reste en version claire sur la pilule, quel que soit le défilement */
.site-entete--nav .site-logo--couleur,
.site--ouverture .site-entete--nav.est-solide .site-logo--couleur {
    opacity: 0;
}

.site-entete--nav .site-logo--clair,
.site--ouverture .site-entete--nav.est-solide .site-logo--clair {
    opacity: 1;
}

.site-entete--nav .site-entete__marque .site-logo--empile {
    height: 48px;
    transition: height 0.35s ease;
}

.site-entete--nav.est-defile .site-entete__marque .site-logo--empile {
    height: 40px;
}

.site-entete--nav .site-entete__marque .site-logo:not(.site-logo--empile) {
    height: 28px;
}

/* Les liens : une pastille claire au survol et sur la section à l'écran */
.site-entete--nav .site-nav__liste {
    gap: 4px;
}

.site-entete--nav .site-nav__lien {
    min-height: 40px;
    padding: 0 14px;
    color: rgba(255, 255, 255, 0.78);
    font-weight: 600;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.site-entete--nav .site-nav__lien::after {
    display: none;
}

.site-entete--nav .site-nav__lien:hover,
.site-entete--nav .site-nav__lien.est-actif {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.site-entete--nav .site-nav__lien.est-actif::before {
    width: 6px;
    height: 6px;
    margin-right: 8px;
    border-radius: 50%;
    background: var(--s-action);
    content: "";
}

.site-entete--nav.est-defile .site-nav__lien {
    padding: 0 10px;
}

.site-entete--nav .site-entete__barre > * {
    flex-shrink: 0;
}

.site-entete--nav .site-nav {
    flex-shrink: 1;
    min-width: 0;
}

.site-entete--nav .site-entete__connexion {
    border-color: rgba(255, 255, 255, 0.3);
    color: #ffffff;
}

.site-entete--nav .site-entete__connexion:hover {
    border-color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.site-entete--nav .site-entete__action {
    min-height: 42px;
    padding: 0 20px;
}

/* Arrivée en rebond, petit rebond à chaque changement d'état */
@media (prefers-reduced-motion: no-preference) {
    .site-entete--nav {
        animation: barre-entree 0.9s cubic-bezier(0.2, 1.5, 0.4, 1) both;
    }

    .site-entete--nav.rebond .site-entete__barre {
        animation: barre-rebond 0.5s cubic-bezier(0.3, 1.6, 0.5, 1);
    }
}

@keyframes barre-entree {
    from { transform: translateY(-130%); }
    60% { transform: translateY(6px); }
    to { transform: none; }
}

@keyframes barre-rebond {
    40% { transform: translateY(5px) scale(1.012); }
}

@media (min-width: 1069px) and (max-width: 1320px) {
    .site-entete--nav .site-nav__lien {
        padding: 0 10px;
        font-size: 14px;
    }
}

/* Tablette et téléphone : la pilule garde le logo et le bouton du menu ; le menu tombe en carte sous elle */
@media (max-width: 1068px) {
    .site-entete--nav .site-entete__barre {
        padding: 6px 6px 6px 18px;
    }

    .site-entete--nav .site-nav__bouton {
        width: 44px;
        justify-content: center;
        padding: 0;
        border: 0;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.1);
        color: #ffffff;
    }

    .site-entete--nav .site-nav__mot {
        display: none;
    }

    .site-entete--nav .site-nav {
        top: calc(14px + env(safe-area-inset-top) + 74px);
        right: 16px;
        left: 16px;
        max-height: calc(100svh - 120px);
        padding: 12px 18px 18px;
        border: 1px solid rgba(255, 255, 255, 0.14);
        border-radius: 26px;
        background: rgba(16, 22, 56, 0.97);
        color: #ffffff;
        box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.8);
        backdrop-filter: blur(18px);
        -webkit-backdrop-filter: blur(18px);
        pointer-events: auto;
        transform: translateY(-10px) scale(0.98);
        transform-origin: top center;
    }

    .site-entete--nav.est-menu .site-nav {
        transform: none;
    }

    .site-entete--nav .site-nav__liste li + li {
        border-top-color: rgba(255, 255, 255, 0.1);
    }

    .site-entete--nav .site-nav__lien {
        min-height: 58px;
        padding: 0 8px;
        border-radius: 14px;
        color: #ffffff;
        font-size: 22px;
    }

    .site-entete--nav .site-nav__lien.est-actif::before {
        margin-right: 12px;
    }

    .site-entete--nav .site-nav__connexion {
        border-color: rgba(255, 255, 255, 0.24);
        color: #ffffff;
    }

    /* Menu ouvert : la pilule reste nuit (pas de bascule en clair) */
    .site--ouverture .site-entete--nav.est-menu {
        border: 0;
        background: none;
        color: #ffffff;
    }

    .site--ouverture .site-entete--nav.est-menu .site-logo--couleur { opacity: 0; }
    .site--ouverture .site-entete--nav.est-menu .site-logo--clair { opacity: 1; }
}

@media (max-width: 734px) {
    .site-entete--nav,
    .site--ouverture .site-entete--nav,
    .site--ouverture .site-entete--nav.est-solide,
    .hab-unigrains .site-entete--nav.est-solide {
        top: calc(10px + env(safe-area-inset-top));
        padding: 0 10px;
    }

    .site-entete--nav .site-entete__barre {
        padding: 5px 5px 5px 14px;
    }

    .site-entete--nav .site-entete__marque .site-logo--empile {
        height: 42px;
    }

    .site-entete--nav.est-defile .site-entete__marque .site-logo--empile {
        height: 36px;
    }

    .site-entete--nav .site-nav {
        top: calc(10px + env(safe-area-inset-top) + 64px);
        right: 10px;
        left: 10px;
    }
}

/* ══ Le programme illustré : quand les photos des marchés sont là (marches/<sujet>.jpg), chaque sujet devient une
   affiche, la photo en grand, le nom posé dessus, le glyphe et le numéro dans les coins. L'affiche du centre grandit
   et passe en couleur (--proche) ; les autres restent en retrait, en noir et blanc. ════════════════════════════════ */
.defile .defile__sujet--image {
    position: relative;
    display: block;
    flex: none;
    width: min(34vw, 440px);
    color: #ffffff;
    font-size: 16px;
    white-space: normal;
}

.defile .defile__sujet--image .defile__image {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    border-radius: 32px;
    background: var(--s-nuit);
    box-shadow: 0 40px 80px -40px rgba(10, 16, 40, 0.6);
    transform: none;
    filter: none;
}

.defile .defile__sujet--image .defile__image::after {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(13, 19, 49, 0.85) 0%, rgba(13, 19, 49, 0.2) 45%, rgba(13, 19, 49, 0) 70%);
    content: "";
}

.defile .defile__sujet--image .defile__image img {
    transform: none;
}

.defile .defile__sujet--image .defile__nom {
    position: absolute;
    right: 26px;
    bottom: 26px;
    left: 26px;
    z-index: 2;
    color: #ffffff;
    font-size: clamp(30px, 3vw, 46px);
    font-weight: 700;
    line-height: 1.02;
    letter-spacing: -0.03em;
}

.defile .defile__sujet--image .defile__glyphe {
    position: absolute;
    top: 22px;
    left: 22px;
    z-index: 2;
    width: 52px;
    height: 52px;
}

.defile .defile__sujet--image .defile__num {
    position: absolute;
    top: 30px;
    right: 26px;
    z-index: 2;
    color: #ffffff;
    font-size: 15px;
    letter-spacing: 0.08em;
}

@media (prefers-reduced-motion: no-preference) {
    .avec-js .defile .defile__sujet--image {
        color: #ffffff;
        transform: scale(calc(0.84 + var(--proche, 0) * 0.16));
        transform-origin: 50% 60%;
    }

    .avec-js .defile .defile__sujet--image .defile__image img {
        filter: grayscale(calc(1 - var(--proche, 0))) brightness(calc(0.75 + var(--proche, 0) * 0.25));
        transform: scale(calc(1.12 - var(--proche, 0) * 0.12));
    }

    .avec-js .defile .defile__sujet--image .defile__glyphe {
        rotate: calc((1 - var(--proche, 0)) * -90deg);
        scale: calc(0.6 + var(--proche, 0) * 0.4);
        opacity: 1;
    }

    .avec-js .defile .defile__sujet--image .defile__num {
        opacity: 1;
    }

    .avec-js .defile .defile__piste:has(.defile__sujet--image) {
        gap: 3vw;
    }
}

@media (max-width: 734px) {
    .defile .defile__sujet--image {
        width: 100%;
    }

    .defile .defile__sujet--image .defile__image {
        aspect-ratio: 4 / 3;
        border-radius: 24px;
    }

    .defile .defile__sujet--image .defile__nom {
        right: 20px;
        bottom: 18px;
        left: 20px;
        font-size: 30px;
    }

    .defile .defile__sujet--image .defile__glyphe {
        top: 16px;
        left: 16px;
        width: 44px;
        height: 44px;
    }

    .avec-js .defile .defile__piste:has(.defile__sujet--image) {
        gap: 16px;
        padding-right: var(--s-gouttiere);
    }

    .avec-js .defile .defile__sujet--image {
        font-size: 16px;
    }
}

/* ══ Le programme illustré, en scène de cinéma ══════════════════════════════════════════════════════════════════
   Quand les cinq photos sont là : la section passe en nuit ; son fond prend, floutée, la photo du marché au centre
   (fondu enchaîné, accueil.js) ; les affiches pivotent en 3D vers le centre (--cote), la photo glisse à l'intérieur
   (profondeur), l'affiche du centre grandit, passe en couleur, rayonne de sa teinte et se reflète au sol.
   Téléphone : la colonne, avec la photo qui glisse plus lentement que l'affiche. Mouvement réduit : tout immobile. */
.defile--illustre,
.avec-js .defile.defile--illustre {
    background: #0d1331;
    color: #ffffff;
}

.defile__fond {
    position: sticky;
    top: 0;
    z-index: 0;
    height: 100vh;
    height: 100svh;
    margin-bottom: -100vh;
    margin-bottom: -100svh;
    overflow: hidden;
    pointer-events: none;
}

.defile__fond img {
    position: absolute;
    inset: -10%;
    width: 120%;
    height: 120%;
    object-fit: cover;
    filter: blur(50px) saturate(1.35);
    opacity: 0;
    transform: scale(1.12);
    transition: opacity 1.2s ease, transform 2.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.defile__fond img.est-actif {
    opacity: 0.55;
    transform: none;
}

.defile__fond::after {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(13, 19, 49, 0.85) 0%, rgba(13, 19, 49, 0.35) 30%, rgba(13, 19, 49, 0.35) 70%, rgba(13, 19, 49, 0.9) 100%);
    content: "";
}

.defile--illustre .defile__collant {
    position: relative;
    z-index: 1;
}

.avec-js .defile--illustre .defile__collant {
    position: sticky;
}

.defile--illustre .accueil-surtitre,
.defile--illustre .defile__tete h2,
.defile--illustre .defile__compteur {
    color: #ffffff;
}

.defile--illustre .defile__sur {
    color: rgba(255, 255, 255, 0.5);
}

.defile--illustre .defile__progression {
    background: rgba(255, 255, 255, 0.14);
}

.defile--illustre .defile__progression span {
    background: var(--s-action);
}

@media (prefers-reduced-motion: no-preference) {
    .avec-js .defile--illustre .defile__nom {
        opacity: calc(0.35 + var(--proche, 0) * 0.65);
        transform: translateY(calc((1 - var(--proche, 0)) * 18px));
    }

    .avec-js .defile--illustre .defile__image {
        box-shadow:
            0 50px 110px -40px color-mix(in srgb, var(--teinte) calc(var(--proche, 0) * 80%), transparent),
            0 30px 60px -30px rgba(0, 0, 0, 0.7);
        -webkit-box-reflect: below 14px linear-gradient(transparent 72%, rgba(255, 255, 255, 0.16));
    }
}

/* Ordinateur : le coverflow */
@media (prefers-reduced-motion: no-preference) and (min-width: 735px) {
    .avec-js .defile--illustre .defile__piste {
        perspective: 1600px;
    }

    .avec-js .defile--illustre .defile__sujet--image {
        transform: rotateY(calc(var(--cote, 0) * -34deg)) scale(calc(0.76 + var(--proche, 0) * 0.24));
        transform-origin: 50% 50%;
    }

    .avec-js .defile--illustre .defile__sujet--image .defile__image img {
        transform: translateX(calc(var(--cote, 0) * -9%)) scale(1.22);
        transition: none;
    }
}

/* Téléphone : la photo glisse plus lentement que l'affiche */
@media (prefers-reduced-motion: no-preference) and (max-width: 734px) {
    .avec-js .defile--illustre .defile__sujet--image {
        transform: scale(calc(0.9 + var(--proche, 0) * 0.1));
    }

    .avec-js .defile--illustre .defile__sujet--image .defile__image img {
        transform: translateY(calc(var(--cote, 0) * -9%)) scale(1.22);
        transition: none;
    }

    .avec-js .defile--illustre .defile__image {
        -webkit-box-reflect: none;
    }
}

/* Les affiches tiennent toujours dans l'écran, sous la pilule et le titre */
@media (min-width: 735px) {
    .defile .defile__sujet--image {
        width: min(30vw, 380px, calc((100vh - 360px) * 0.8));
        width: min(30vw, 380px, calc((100svh - 360px) * 0.8));
    }

    .avec-js .defile--illustre .defile__collant {
        gap: 28px;
        padding-top: calc(var(--s-entete-h) + 40px);
    }
}

/* ══ Le programme illustré, fluide et interactif (19/11) ══════════════════════════════════════════════════════════
   Fluidité : plus aucun filtre, ombre colorée ni reflet recalculés à chaque image. Le retrait des affiches de côté
   est un voile (opacité), la lueur de l'affiche centrale un calque dont seule l'opacité change : la carte graphique
   s'en charge. Les affiches ont leur propre calque (will-change). La piste a des marges d'une demi-largeur d'écran :
   la première affiche part du centre, la dernière y arrive. */
.defile--illustre {
    --carte: min(30vw, 380px, calc((100vh - 380px) * 0.8));
    --carte: min(30vw, 380px, calc((100svh - 380px) * 0.8));
}

.defile--illustre .defile__piste {
    position: relative;
}

.defile--illustre .defile__sujet--image {
    cursor: pointer;
}

.defile--illustre .defile__sujet--image .defile__image img,
.avec-js .defile--illustre .defile__sujet--image .defile__image img {
    filter: none;
}

.avec-js .defile--illustre .defile__image {
    box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.7);
    -webkit-box-reflect: none;
}

/* Le voile des affiches de côté */
.defile--illustre .defile__image::before {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: #0d1331;
    content: "";
    opacity: 0;
    pointer-events: none;
}

/* La lueur de l'affiche centrale, à sa teinte */
.defile--illustre .defile__sujet--image::before {
    position: absolute;
    inset: 8% -6% -6%;
    z-index: -1;
    border-radius: 40px;
    background: radial-gradient(closest-side, color-mix(in srgb, var(--teinte) 70%, transparent), transparent);
    content: "";
    filter: blur(24px);
    opacity: 0;
    pointer-events: none;
}

@media (prefers-reduced-motion: no-preference) and (min-width: 735px) {
    .avec-js .defile--illustre .defile__piste {
        gap: 3vw;
        padding-right: calc(50vw - var(--carte) / 2);
        padding-left: calc(50vw - var(--carte) / 2);
        will-change: transform;
    }

    .avec-js .defile--illustre .defile__sujet--image {
        width: var(--carte);
        will-change: transform;
    }

    .avec-js .defile--illustre .defile__sujet--image .defile__image img {
        will-change: transform;
    }

    .avec-js .defile--illustre .defile__image::before {
        opacity: calc((1 - var(--proche, 0)) * 0.6);
        transition: opacity 0.25s ease;
    }

    .avec-js .defile--illustre .defile__sujet--image::before {
        opacity: var(--proche, 0);
    }

    /* Au survol, une affiche de côté se dévoile un peu : elle invite au clic */
    .avec-js .defile--illustre .defile__sujet--image:hover .defile__image::before {
        opacity: calc((1 - var(--proche, 0)) * 0.25);
    }
}

@media (prefers-reduced-motion: no-preference) and (max-width: 734px) {
    .avec-js .defile--illustre .defile__image::before {
        opacity: calc((1 - var(--proche, 0)) * 0.55);
    }

    .avec-js .defile--illustre .defile__sujet--image::before {
        opacity: var(--proche, 0);
    }
}

/* Les flèches et les pastilles : aller d'un marché à l'autre au clic */
.defile__nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
}

.defile__fleche {
    display: grid;
    flex: none;
    place-items: center;
    width: 48px;
    height: 48px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
    cursor: pointer;
    transition: background-color 0.25s ease, border-color 0.25s ease, transform 0.4s cubic-bezier(0.25, 1.35, 0.45, 1);
}

.defile__fleche:hover {
    border-color: #ffffff;
    background: rgba(255, 255, 255, 0.14);
    transform: scale(1.08);
}

.defile__fleche:active {
    transform: scale(0.94);
}

.defile__fleche .icone {
    width: 20px;
    height: 20px;
}

.defile__fleche:not(.defile__fleche--suivante) .icone {
    rotate: 180deg;
}

.defile__points {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.defile__point {
    --teinte: var(--t-encre);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 0 14px 0 10px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.7);
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.4s cubic-bezier(0.25, 1.35, 0.45, 1);
}

.defile__point--soleil { --teinte: var(--t-soleil); }
.defile__point--brume { --teinte: var(--t-brume); }
.defile__point--braise { --teinte: var(--t-braise); }
.defile__point--ciel { --teinte: var(--t-ciel); }
.defile__point--encre { --teinte: #6f82d6; }

.defile__point-rond {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--teinte);
    transition: transform 0.4s cubic-bezier(0.25, 1.35, 0.45, 1);
}

.defile__point:hover {
    border-color: rgba(255, 255, 255, 0.4);
    color: #ffffff;
}

.defile__point.est-actif {
    border-color: var(--teinte);
    background: color-mix(in srgb, var(--teinte) 22%, transparent);
    color: #ffffff;
}

.defile__point.est-actif .defile__point-rond {
    transform: scale(1.3);
}

.defile__fleche:focus-visible,
.defile__point:focus-visible {
    outline: 2px solid var(--s-action);
    outline-offset: 3px;
}

/* Téléphone : la colonne d’affiches suffit ; flèches et pastilles sont pour l’ordinateur */
@media (max-width: 734px) {
    .defile__nav {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .defile__fleche,
    .defile__point,
    .defile__point-rond {
        transition: none;
    }
}

/* ══ Corrections des audits du 19/11 (téléphone et ordinateur) ══════════════════════════════════════════════════ */

/* Menu ouvert sur téléphone : la page ne défile plus, un voile sombre derrière, la barre au pouce s'efface */
@media (max-width: 1068px) {
    html.menu-ouvert,
    html.menu-ouvert body {
        overflow: hidden;
        touch-action: none;
    }

    html.menu-ouvert body::after {
        position: fixed;
        inset: 0;
        z-index: 30;
        background: rgba(8, 12, 30, 0.55);
        content: "";
    }

    html.menu-ouvert .barre-pouce {
        visibility: hidden;
    }

    .site-entete--nav .site-nav {
        overscroll-behavior: contain;
    }
}

/* Entre 1069 et 1320 px : le bouton doré reste dans la pilule ; « Se connecter » devient une icône */
@media (min-width: 1069px) and (max-width: 1320px) {
    .site-entete--nav .site-entete__action--toujours {
        display: inline-flex;
    }

    .site-entete--nav .site-entete__connexion span {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip-path: inset(50%);
    }

    .site-entete--nav .site-entete__connexion {
        width: 42px;
        justify-content: center;
        padding: 0;
    }
}

/* Le bloc d'accès : moins de vide sous le texte */
.acces__texte,
.acces__grille--formulaire .acces__texte {
    padding-bottom: 12vh;
}

/* Le déroulé : moins long à faire défiler sur ordinateur */
@media (prefers-reduced-motion: no-preference) {
    .avec-js .etapes {
        height: 230vh;
    }
}

/* Téléphone : les séquences collantes deviennent des sections normales (moins de vide à faire défiler) */
@media (max-width: 734px) {
    .avec-js .grandit,
    .avec-js .etapes {
        height: auto;
    }

    .avec-js .grandit__collant,
    .avec-js .etapes__collant {
        position: static;
        height: auto;
    }

    .avec-js .grandit__collant {
        padding: 48px var(--s-gouttiere);
    }

    .avec-js .grandit__panneau {
        min-height: 0;
        padding: 40px 24px;
        border-radius: 24px;
        clip-path: none;
    }

    .avec-js .grandit__contenu {
        transform: none;
    }

    .avec-js .grandit__mot > span {
        opacity: 1;
        transform: none;
    }

    .avec-js .etapes__liste {
        gap: 36px;
    }

    .avec-js .etapes__plan,
    .avec-js .etapes__plan .etapes__mot,
    .avec-js .etapes__plan h3,
    .avec-js .etapes__plan p:last-child {
        grid-area: auto;
        opacity: 1;
        pointer-events: auto;
        transform: none;
    }

    .avec-js .etapes__reperes {
        display: none;
    }

    .acces__texte,
    .acces__grille--formulaire .acces__texte {
        padding-bottom: 0;
    }

    .ouverture__deja a,
    .faq__aide .lien-bouton {
        display: inline-flex;
        align-items: center;
        min-height: 44px;
    }

    .puce {
        min-height: 44px;
    }

    .site-entete--nav.est-defile .site-entete__barre {
        background: rgba(16, 22, 56, 0.96);
    }
}

/* Focus clavier visible sur fond sombre */
.site-pied a:focus-visible,
.acces a:focus-visible,
.pendant a:focus-visible,
.pendant button:focus-visible {
    outline: 2px solid #ffffff;
    outline-offset: 3px;
}

/* ══ Les thèmes illustrés, fluides (18/11) ═════════════════════════════════════════════════════════════════════════
   Plus rien ne se recalcule en peinture pendant le défilement : la lueur de l'affiche centrale est un simple dégradé
   (sans flou), le voile des affiches de côté suit le défilement sans transition qui traîne, le fond flou ne fait plus
   qu'un fondu (plus de zoom animé sous un flou de 50 px). Chaque calque animé a le sien (will-change). */
.defile--illustre .defile__sujet--image::before {
    background: radial-gradient(closest-side, color-mix(in srgb, var(--teinte) 55%, transparent), transparent 100%);
    filter: none;
    will-change: opacity;
}

.defile--illustre .defile__image::before {
    will-change: opacity;
}

.defile__fond img {
    filter: blur(40px) saturate(1.35);
    transform: none;
    transition: opacity 0.9s ease;
    will-change: opacity;
}

@media (prefers-reduced-motion: no-preference) and (min-width: 735px) {
    .avec-js .defile--illustre .defile__image::before {
        transition: none;
    }

    .avec-js .defile--illustre .defile__sujet--image:hover .defile__image::before {
        transition: opacity 0.25s ease;
    }
}

/* ══ Le live en bref : les blocs tombent (19/11) ═══════════════════════════════════════════════════════════════════
   Comme sur Weluma : quand la grille est bien à l'écran, chaque bloc tombe de haut, accélère comme sous son poids,
   s'écrase un peu en touchant, rebondit deux fois et se pose. L'un après l'autre (bam, bam, bam), 170 ms d'écart,
   0,9 s de chute chacun. Une seule fois. Mouvement réduit : les blocs sont simplement là. */
@media (prefers-reduced-motion: no-preference) {
    .bref__grille.va-tomber .bref__case {
        opacity: 0;
        transform: translateY(-340px) rotate(var(--rot, -6deg));
    }

    .bref__grille.va-tomber .bref__case:nth-child(even) {
        --rot: 5deg;
    }

    .bref__grille.va-tomber.est-tombee .bref__case {
        transform-origin: 50% 100%;
        animation: bref-chute 0.95s linear both;
        animation-delay: calc(var(--i, 0) * 170ms);
    }

    @keyframes bref-chute {
        0% {
            opacity: 0;
            transform: translateY(-340px) rotate(var(--rot, -6deg));
            animation-timing-function: cubic-bezier(0.55, 0, 1, 0.45);
        }

        8% {
            opacity: 1;
        }

        52% {
            opacity: 1;
            transform: translateY(0) rotate(0deg) scale(1.04, 0.93);
            animation-timing-function: cubic-bezier(0, 0.55, 0.45, 1);
        }

        68% {
            transform: translateY(-34px) rotate(calc(var(--rot, -6deg) * -0.25)) scale(0.99, 1.02);
            animation-timing-function: cubic-bezier(0.55, 0, 1, 0.45);
        }

        80% {
            transform: translateY(0) scale(1.02, 0.97);
            animation-timing-function: cubic-bezier(0, 0.55, 0.45, 1);
        }

        90% {
            transform: translateY(-9px) scale(1, 1.01);
            animation-timing-function: cubic-bezier(0.55, 0, 1, 0.45);
        }

        100% {
            opacity: 1;
            transform: none;
        }
    }
}
