/* REM Live · la « scène » du site d'un événement : ouverture plein écran, sections, en-tête, barre d'action du téléphone.
   Commune à tous les sites ; un habillage sur mesure (habillage-<nom>.css) ne change que les variables --s-*.

   Repères (étude des pages d'Apple du 18/11/2026, transposée) :
   - paliers nets de typographie à 1068 et 734 px plutôt qu'une taille qui ondule ;
   - apparitions en transform et opacité seulement, 30 px au plus, 0,7 à 0,9 s, décalées de 0,08 à 0,15 s ;
   - flou réservé à l'en-tête et aux commandes, aucune ombre lourde, une seule couleur d'action ;
   - rien n'est caché sans JavaScript (classe « avec-js » posée par amorce-scene.js) ni en mouvement réduit.
   Téléphone (Mandat Direct, GTA Clip, RCP Connect) : 100svh, marges de sécurité, champs en 17 px, cibles de 48 px et
   plus, survol réservé aux souris, barre d'action au pouce qui se cache quand elle gênerait. */

.site {
    --s-nuit: #101114;
    --s-nuit-2: #1c1d22;
    --s-creme: var(--fond);
    --s-papier: var(--surface);
    --s-encre: var(--texte);
    --s-texte: var(--texte-2);
    --s-filet: var(--bordure);
    --s-action: var(--couleur, var(--action));
    --s-action-texte: var(--couleur-texte, var(--action-texte));
    --s-action-survol: var(--couleur, var(--action-survol));
    --s-accent: var(--couleur, var(--action));
    --s-lueur: var(--couleur, #ff9a3c);
    --s-lueur-2: #ffd27a;
    --s-police-titre: var(--police);
    --s-entree: cubic-bezier(0.22, 1, 0.36, 1);
    --s-ui: cubic-bezier(0.4, 0, 0.6, 1);
    --s-entete-h: 64px;
    --s-gouttiere: max(20px, env(safe-area-inset-left));
    --s-largeur: 1200px;
    -webkit-tap-highlight-color: transparent;
}

/* ── En-tête : posé sur l'ouverture (transparent, logo clair), puis solide au défilement ── */
.site-entete {
    position: sticky;
    top: 0;
    z-index: 40;
    display: block;
    min-height: 0;
    padding: env(safe-area-inset-top) 0 0;
    border-bottom: 1px solid var(--s-filet);
    background: color-mix(in srgb, var(--s-creme) 86%, transparent);
    color: var(--s-encre);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    transition: background-color 0.32s var(--s-ui), border-color 0.32s var(--s-ui), color 0.32s var(--s-ui);
}

.site-entete__barre {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    max-width: var(--s-largeur);
    min-height: var(--s-entete-h);
    margin: 0 auto;
    padding: 0 var(--s-gouttiere);
}

.site-entete__marque {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-height: 44px;
    color: inherit;
}

.site-entete__marque .site-logo {
    display: block;
    width: auto;
    height: 30px;
    padding: 0;
    border-radius: 0;
    background: none;
    object-fit: contain;
    transition: opacity 0.32s var(--s-ui);
}

.site-logo--clair {
    position: absolute;
    top: 50%;
    left: 0;
    opacity: 0;
    transform: translateY(-50%);
}

.site-entete__action {
    min-height: 40px;
    padding: 0 18px;
    border-radius: 999px;
}

.site--ouverture .site-entete {
    position: fixed;
    right: 0;
    left: 0;
    border-bottom-color: transparent;
    background: transparent;
    color: #ffffff;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.site--ouverture .site-entete .site-logo--couleur {
    opacity: 0;
}

.site--ouverture .site-entete .site-logo--clair {
    opacity: 1;
}

.site--ouverture .site-entete .site-entete__action {
    visibility: hidden;
    opacity: 0;
    transform: translateY(-6px);
    transition: opacity 0.32s var(--s-ui), transform 0.32s var(--s-ui), visibility 0s linear 0.32s;
}

.site--ouverture .site-entete.est-solide {
    border-bottom-color: var(--s-filet);
    background: color-mix(in srgb, var(--s-creme) 82%, transparent);
    color: var(--s-encre);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
}

.site--ouverture .site-entete.est-solide .site-logo--couleur {
    opacity: 1;
}

.site--ouverture .site-entete.est-solide .site-logo--clair {
    opacity: 0;
}

.site--ouverture .site-entete.est-solide .site-entete__action {
    visibility: visible;
    opacity: 1;
    transform: none;
    transition: opacity 0.32s var(--s-ui), transform 0.32s var(--s-ui), visibility 0s;
}

.site--ouverture .site-contenu {
    max-width: none;
    padding: 0;
}

/* Le message d'après inscription flotte sous l'en-tête, au-dessus de l'ouverture */
.site--ouverture .site-contenu > .message {
    position: fixed;
    top: calc(var(--s-entete-h) + env(safe-area-inset-top) + 12px);
    left: 50%;
    z-index: 45;
    width: min(560px, calc(100% - 32px));
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.25);
    transform: translateX(-50%);
    animation: scene-toast 0.6s var(--s-entree) both;
}

@keyframes scene-toast {
    from { opacity: 0; transform: translate(-50%, -16px); }
}

/* ── Boutons de la scène ── */
.site .bouton--marque {
    border-color: var(--s-action);
    background: var(--s-action);
    color: var(--s-action-texte);
}

.site .bouton--marque:hover {
    border-color: var(--s-action-survol);
    background: var(--s-action-survol);
    color: var(--s-action-texte);
    filter: none;
}

.bouton--grand {
    min-height: 56px;
    padding: 0 28px;
    border-radius: 999px;
    font-size: 17px;
    letter-spacing: -0.01em;
    touch-action: manipulation;
}

.bouton--grand .icone {
    width: 18px;
    height: 18px;
    transition: transform 0.32s var(--s-entree);
}

.bouton--verre {
    border: 1px solid rgba(255, 255, 255, 0.34);
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

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

@media (hover: hover) {
    .bouton--grand:hover .icone-chevron-droite,
    .bouton--grand:hover svg:last-child {
        transform: translateX(4px);
    }
}

/* ── L'ouverture ── */
.ouverture {
    position: relative;
    display: grid;
    align-items: center;
    min-height: 100vh;
    min-height: 100svh;
    overflow: clip;
    background: var(--s-nuit);
    color: #ffffff;
    isolation: isolate;
}

.ouverture__fond,
.ouverture__ciel,
.ouverture__soleil,
.ouverture__voile,
.ouverture__visuel,
.ouverture__visuel img {
    position: absolute;
    inset: 0;
}

.ouverture__fond {
    z-index: -2;
    overflow: hidden;
}

/* Le ciel dessiné : la nuit en haut, la lumière dorée à l'horizon (sans image) */
.ouverture__ciel {
    background:
        radial-gradient(120% 70% at 78% 108%, color-mix(in srgb, var(--s-lueur) 70%, transparent) 0%, transparent 62%),
        linear-gradient(180deg, var(--s-nuit) 0%, var(--s-nuit-2) 52%, color-mix(in srgb, var(--s-nuit-2) 60%, var(--s-lueur)) 100%);
}

.ouverture__visuel img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 70% 60%;
    transform: scale(calc(1.06 + var(--p, 0) * 0.06));
    transform-origin: 70% 70%;
}

.ouverture__soleil {
    inset: auto;
    right: 14%;
    bottom: -14vmin;
    width: 46vmin;
    height: 46vmin;
    border-radius: 50%;
    background: radial-gradient(circle, var(--s-lueur-2) 0%, color-mix(in srgb, var(--s-lueur) 85%, transparent) 30%, transparent 68%);
    filter: blur(6px);
    opacity: 0.9;
    translate: 0 calc(var(--p, 0) * 22vh);
}

.ouverture__visuel ~ .ouverture__soleil {
    opacity: 0.45;
    mix-blend-mode: screen;
}

/* Le voile garde le texte lisible sur n'importe quel visuel */
.ouverture__voile {
    background:
        linear-gradient(90deg, color-mix(in srgb, var(--s-nuit) 88%, transparent) 0%, color-mix(in srgb, var(--s-nuit) 55%, transparent) 46%, transparent 78%),
        linear-gradient(180deg, color-mix(in srgb, var(--s-nuit) 55%, transparent) 0%, transparent 28%);
}

.ouverture__corps {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: var(--s-largeur);
    margin: 0 auto;
    padding: calc(var(--s-entete-h) + env(safe-area-inset-top) + 56px) var(--s-gouttiere) 120px;
    opacity: calc(1 - var(--p, 0) * 1.4);
    transform: translateY(calc(var(--p, 0) * -40px)) scale(calc(1 - var(--p, 0) * 0.04));
    transform-origin: 30% 50%;
}

.ouverture__etiquette {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    margin: 0 0 24px;
    padding: 0 16px;
    border-radius: 10px;
    background: var(--s-action);
    color: var(--s-action-texte);
    font-family: var(--s-police-titre);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.ouverture__titre {
    max-width: 13ch;
    margin: 0;
    color: #ffffff;
    font-family: var(--s-police-titre);
    font-size: 88px;
    font-weight: 700;
    line-height: 0.98;
    letter-spacing: -0.02em;
    text-wrap: balance;
}

.mot {
    display: inline-block;
    padding-bottom: 0.08em;
    margin-bottom: -0.08em;
    overflow: hidden;
    vertical-align: top;
}

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

.ouverture__sous-titre {
    max-width: 34em;
    margin: 28px 0 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: 21px;
    line-height: 1.45;
    letter-spacing: -0.01em;
    text-wrap: balance;
}

.ouverture__infos {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 28px;
    margin: 32px 0 0;
    padding: 0;
    list-style: none;
    color: rgba(255, 255, 255, 0.92);
    font-size: 17px;
    font-weight: 500;
}

.ouverture__infos li {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.ouverture__infos .icone {
    width: 20px;
    height: 20px;
    color: var(--s-action);
}

.ouverture__decompte {
    margin-top: 40px;
}

.ouverture__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 40px;
}

.ouverture__suite {
    position: absolute;
    bottom: max(24px, env(safe-area-inset-bottom));
    left: 50%;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    margin-left: -24px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: #ffffff;
    opacity: calc(1 - var(--p, 0) * 3);
    transition: background-color 0.24s var(--s-ui), border-color 0.24s var(--s-ui);
}

.ouverture__suite:hover {
    border-color: rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

/* ── Le compte à rebours : quatre anneaux de lumière ─────────────────────────────────────────────────────────
   Chaque unité dans son disque de verre, entourée d'un anneau à sa couleur (soleil, braise, ciel, brume) qui se vide
   à mesure que le temps passe ; celui des secondes glisse en continu. Les chiffres roulent (scene.js). Sans
   JavaScript, le texte réel (strong) s'affiche au centre et les anneaux restent pleins. */
.decompte--ouverture {
    --chrono-t: 46px;
    --chrono-d: calc(var(--chrono-t) * 2.55);
    display: inline-flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: calc(var(--chrono-t) * 0.32);
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
}

.decompte--ouverture span,
.decompte--ouverture .decompte__unite {
    min-width: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: none;
    color: inherit;
    font-size: inherit;
}

.decompte--ouverture .decompte__unite {
    --anneau: var(--s-action);
    position: relative;
    display: grid;
    flex: none;
    place-content: center;
    justify-items: center;
    gap: 2px;
    width: var(--chrono-d);
    height: var(--chrono-d);
    border-radius: 50%;
    background:
        radial-gradient(circle at 50% 120%, color-mix(in srgb, var(--anneau) 30%, transparent) 0%, transparent 62%),
        radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.03) 60%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 28px 50px -30px rgba(4, 8, 28, 0.95);
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    color: #ffffff;
    transition: transform 0.5s cubic-bezier(0.25, 1.35, 0.45, 1);
}

.decompte--ouverture .decompte__unite--heures { --anneau: #f29100; }
.decompte--ouverture .decompte__unite--minutes { --anneau: #8a9bf0; }
.decompte--ouverture .decompte__unite--secondes { --anneau: #c3c6ee; }

@media (hover: hover) {
    .decompte--ouverture .decompte__unite:hover {
        transform: translateY(-4px) scale(1.04);
    }
}

.decompte__anneau {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
    rotate: -90deg;
}

.decompte__piste,
.decompte__arc {
    fill: none;
    stroke-width: 4.5;
}

.decompte__piste {
    stroke: rgba(255, 255, 255, 0.12);
}

.decompte__arc {
    stroke: var(--anneau);
    stroke-linecap: round;
    stroke-dasharray: calc(var(--part, 1) * 100) 100;
    filter: drop-shadow(0 0 5px color-mix(in srgb, var(--anneau) 80%, transparent));
    transition: stroke-dasharray 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Les secondes : l'anneau glisse en continu, d'une seconde à l'autre */
.decompte__unite--secondes .decompte__arc {
    transition: stroke-dasharray 1s linear;
}

.decompte--ouverture .decompte__unite.sans-transition .decompte__arc {
    transition: none;
}

/* Le point lumineux au bout de l'anneau des secondes */
.decompte--ouverture .decompte__unite--secondes::after {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 8px;
    height: 8px;
    margin: -4px 0 0 -4px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 0 10px 2px var(--anneau);
    content: "";
    transform: rotate(calc(var(--part, 1) * 360deg)) translateY(calc(var(--chrono-d) * -0.45));
    transition: transform 1s linear;
}

.decompte--ouverture .decompte__unite--secondes.sans-transition::after {
    transition: none;
}

.decompte--ouverture strong,
.decompte--ouverture .roule {
    position: relative;
    z-index: 1;
    display: inline-block;
    min-width: 2ch;
    color: #ffffff;
    font-family: var(--s-police-titre);
    font-size: var(--chrono-t);
    font-weight: 600;
    line-height: 1;
    letter-spacing: -0.03em;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

.decompte em {
    position: relative;
    z-index: 1;
    color: rgba(255, 255, 255, 0.62);
    font-size: 12px;
    font-style: normal;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.decompte--ouverture em {
    color: color-mix(in srgb, var(--anneau) 70%, #ffffff);
    font-size: max(9px, calc(var(--chrono-t) * 0.2));
    font-weight: 600;
    letter-spacing: 0.14em;
}

/* Les rouleaux : une bande 0 à 9 par chiffre, qui glisse jusqu'à sa valeur */
.decompte.a-roule strong {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.decompte--ouverture .roule {
    display: inline-flex;
    justify-content: center;
    height: 1em;
    overflow: hidden;
}

.decompte--ouverture .roule__col {
    display: block;
    width: 0.62em;
    height: 1em;
    overflow: hidden;
}

.decompte--ouverture .roule__bande {
    display: flex;
    flex-direction: column;
    transform: translateY(calc(var(--n, 0) * -1em));
    transition: transform 0.75s cubic-bezier(0.25, 1.35, 0.45, 1);
}

.decompte--ouverture .roule__bande span {
    display: block;
    height: 1em;
    line-height: 1;
    text-align: center;
}

.decompte--fini strong,
.decompte--fini .roule {
    color: var(--s-action);
}

@media (prefers-reduced-motion: reduce) {
    .decompte__arc,
    .decompte--ouverture .decompte__unite,
    .decompte--ouverture .decompte__unite--secondes::after,
    .decompte--ouverture .roule__bande {
        transition: none;
    }
}

/* ── Le motif de l'habillage, en calques ── */
.scene-motif {
    position: absolute;
    z-index: 1;
    pointer-events: none;
}

.scene-motif .motif {
    display: block;
    width: 100%;
    height: auto;
    overflow: visible;
}

.ouverture__motif {
    right: -7vw;
    bottom: -12vh;
    width: min(74vh, 52vw);
    translate: calc(var(--mx, 0) * -14px) calc(var(--p, 0) * 12vh + var(--my, 0) * -10px);
}

/* Le motif est la signature d'Unigrains : ses pièces ne s'écartent jamais les unes des autres. Seul le motif entier
   suit la souris et le défilement ; une pièce ne pivote que pendant l'assemblage, et finit exactement à sa place. */
.motif > g {
    transform-box: fill-box;
}

.motif__hachures-haut { --prof: -1.2; }
.motif__gris { --prof: 0.6; transform-origin: 100% 0%; }
.motif__pervenche { --prof: 1.3; transform-origin: 0% 100%; }
.motif__bleu { --prof: 0.4; transform-origin: 100% 100%; }
.motif__marine { --prof: 0.9; transform-origin: 0% 100%; }
.motif__jaune { --prof: 1.6; transform-origin: 100% 0%; }
.motif__pastille { --prof: 2.6; transform-origin: 50% 50%; }
.motif__points { --prof: -0.8; }

/* ── Sections ── */
.scene-section {
    position: relative;
    padding: 140px 0;
    background: var(--s-creme);
    color: var(--s-texte);
}

.scene-largeur {
    width: 100%;
    max-width: var(--s-largeur);
    margin: 0 auto;
    padding: 0 var(--s-gouttiere);
}

.scene-surtitre {
    margin: 0 0 16px;
    color: var(--s-accent);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.scene-section h2 {
    max-width: 18ch;
    margin: 0;
    color: var(--s-encre);
    font-family: var(--s-police-titre);
    font-size: 56px;
    font-weight: 600;
    line-height: 1.07;
    letter-spacing: -0.02em;
    text-wrap: balance;
}

/* L'accroche : chaque mot s'éclaire au défilement */
.accroche {
    position: relative;
    height: 220vh;
    background: var(--s-creme);
}

.accroche__collant {
    position: sticky;
    top: 0;
    display: grid;
    place-items: center;
    height: 100vh;
    height: 100svh;
    padding: 0 var(--s-gouttiere);
}

.accroche__texte {
    max-width: 20ch;
    margin: 0;
    color: var(--s-encre);
    font-family: var(--s-police-titre);
    font-size: 72px;
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.025em;
    text-align: center;
    text-wrap: balance;
}

.accroche__mot > span {
    transition: opacity 0.35s var(--s-ui), color 0.35s var(--s-ui);
}

@media (prefers-reduced-motion: no-preference) {
    .avec-js .accroche__mot > span {
        opacity: 0.14;
    }

    .avec-js .accroche__mot.est-allume > span {
        opacity: 1;
    }
}



















/* L'accès : la nuit revient, la carte du formulaire en pleine lumière */
.acces {
    overflow: clip;
    background:
        radial-gradient(70% 90% at 0% 100%, color-mix(in srgb, var(--s-lueur) 38%, transparent) 0%, transparent 60%),
        var(--s-nuit);
    color: rgba(255, 255, 255, 0.86);
}

.acces .scene-surtitre {
    color: var(--s-action);
}

.acces h2 {
    color: #ffffff;
}

.acces__grille {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 64px;
    align-items: start;
}

.acces__points {
    display: grid;
    gap: 16px;
    margin: 40px 0 0;
    padding: 0;
    list-style: none;
    font-size: 18px;
}

.acces__points li {
    display: flex;
    align-items: center;
    gap: 14px;
}

.acces__points .icone {
    flex: none;
    width: 28px;
    height: 28px;
    padding: 6px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--s-action) 22%, transparent);
    color: var(--s-action);
}

.acces__carte {
    padding: 40px;
    border-radius: 28px;
    background: var(--s-papier);
    color: var(--s-texte);
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.35);
}

.acces__consigne {
    margin: 0 0 20px;
    font-size: 17px;
    line-height: 1.55;
}

.acces__carte form {
    display: grid;
    gap: 18px;
}

.acces__carte form .champ,
.acces__carte form .formulaire__grille {
    margin: 0;
}

.acces__carte .champ label {
    margin-bottom: 8px;
}

.acces__carte .champ label,
.acces__carte .champ legend {
    color: var(--s-encre);
    font-size: 15px;
    font-weight: 600;
}

.acces__carte input:not([type="checkbox"]):not([type="radio"]) {
    min-height: 52px;
    border-radius: 14px;
    font-size: 17px;
}

.acces__carte .bouton--grand {
    margin-top: 6px;
}

.acces__carte .site-deja {
    margin-top: 22px;
    padding-top: 20px;
    border-top: 1px solid var(--s-filet);
}

/* Un choix parmi quelques réponses : des pastilles plutôt qu'une liste déroulante */
.champ--choix {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.champ--choix legend {
    margin-bottom: 8px;
    padding: 0;
}

.segments {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.segment {
    position: relative;
    flex: 1 1 0;
    min-width: 0;
}

.segment input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.segment span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 10px;
    border: 1px solid var(--s-filet);
    border-radius: 999px;
    white-space: nowrap;
    background: var(--s-creme);
    color: var(--s-encre);
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.24s var(--s-ui), border-color 0.24s var(--s-ui), color 0.24s var(--s-ui), transform 0.24s var(--s-ui);
}

.segment input:checked + span {
    border-color: var(--s-encre);
    background: var(--s-encre);
    color: #ffffff;
}

.segment input:focus-visible + span {
    box-shadow: var(--anneau);
}

.segment:active span {
    transform: scale(0.98);
}

/* ── Pied de page ── */
.site-pied {
    display: block;
    padding: 56px 0 max(40px, env(safe-area-inset-bottom));
    border-top: 0;
    background: color-mix(in srgb, var(--s-nuit) 92%, #000000);
    color: rgba(255, 255, 255, 0.6);
}

.site-pied__corps {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px 40px;
    max-width: var(--s-largeur);
    margin: 0 auto;
    padding: 0 var(--s-gouttiere);
}

.site-pied__logo {
    width: auto;
    height: 28px;
}

.site-pied__signature {
    margin: 0;
}

.site-pied__signature strong {
    color: #ffffff;
}

.site-pied nav {
    margin-left: auto;
}

.site-pied a {
    color: rgba(255, 255, 255, 0.72);
}

.site-pied a:hover {
    color: #ffffff;
}

/* ── La barre d'action au pouce (téléphone) ── */
.barre-pouce {
    display: none;
}

/* ── Apparitions (seulement avec JavaScript, jamais en mouvement réduit) ── */
@media (prefers-reduced-motion: no-preference) {
    .avec-js [data-scene-apparition] {
        opacity: 0;
        transform: translateY(30px);
        transition: opacity 0.9s var(--s-entree), transform 0.8s var(--s-entree);
        transition-delay: calc(var(--rang, 0) * 0.09s);
    }

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


    /* L'ouverture : le titre mot à mot, puis le reste en cascade */
    .avec-js .ouverture .mot > span {
        transform: translateY(108%);
        transition: transform 1.1s var(--s-entree);
        transition-delay: calc(0.25s + var(--i, 0) * 0.07s);
    }

    .avec-js [data-scene-pas] {
        opacity: 0;
        transform: translateY(22px);
        transition: opacity 0.9s var(--s-entree), transform 0.9s var(--s-entree);
        transition-delay: calc(0.45s + var(--pas, 0) * 0.11s);
    }

    .avec-js .ouverture.est-ouverte .mot > span,
    .avec-js .ouverture.est-ouverte [data-scene-pas] {
        opacity: 1;
        transform: none;
    }

    /* Le soleil se lève et le visuel se pose */
    .avec-js .ouverture__soleil {
        transform: translateY(18vmin) scale(0.8);
        transition: transform 2.6s var(--s-entree), opacity 2.6s var(--s-entree);
    }

    .avec-js .ouverture__visuel {
        opacity: 0;
        transform: scale(1.06);
        transition: opacity 1.6s var(--s-ui), transform 3s var(--s-entree);
    }

    .avec-js .ouverture.est-ouverte .ouverture__soleil,
    .avec-js .ouverture.est-ouverte .ouverture__visuel {
        transform: none;
        opacity: 1;
    }

    .avec-js .ouverture.est-ouverte .ouverture__visuel ~ .ouverture__soleil {
        opacity: 0.45;
    }

    /* Le motif s'assemble : chaque quart pivote jusqu'à sa place autour de son centre */
    .avec-js .motif > g {
        opacity: 0;
        transition: opacity 0.9s var(--s-entree), transform 1.4s var(--s-entree);
        transition-delay: calc(0.5s + var(--ordre, 0) * 0.09s);
    }

    .avec-js .motif__gris { --ordre: 1; transform: rotate(-90deg); }
    .avec-js .motif__pervenche { --ordre: 2; transform: rotate(90deg); }
    .avec-js .motif__bleu { --ordre: 3; transform: rotate(-90deg); }
    .avec-js .motif__marine { --ordre: 4; transform: rotate(90deg); }
    .avec-js .motif__jaune { --ordre: 5; transform: rotate(90deg); }
    .avec-js .motif__pastille { --ordre: 8; transform: scale(0); transition-timing-function: var(--s-entree), cubic-bezier(0.3, 1.5, 0.5, 1); }
    .avec-js .motif__hachures-haut { --ordre: 6; transform: translate(-40px, 40px); }
    .avec-js .motif__hachures-bas { --ordre: 7; }
    .avec-js .motif__points { --ordre: 9; transform: translateY(-30px); }

    .avec-js .ouverture.est-ouverte .motif > g {
        opacity: 1;
        transform: none;
    }



    /* La barre au pouce entre et sort par le bas */
    .barre-pouce {
        transition: transform 0.45s cubic-bezier(0.3, 1.3, 0.5, 1), opacity 0.3s var(--s-ui);
    }
}

/* ── Tablette ── */
@media (max-width: 1068px) {
    .ouverture__titre {
        font-size: 68px;
    }

    .ouverture__sous-titre {
        font-size: 19px;
    }

    .scene-section {
        padding: 112px 0;
    }

    .scene-section h2 {
        font-size: 44px;
    }

    .accroche__texte {
        font-size: 56px;
    }


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

    .acces__carte {
        max-width: 640px;
    }

    .decompte--ouverture {
        --chrono-t: 40px;
    }
}

/* ── Téléphone ── */
@media (max-width: 734px) {
    .site {
        --s-entete-h: 56px;
        --s-gouttiere: max(20px, env(safe-area-inset-left));
    }

    .site-entete__marque .site-logo {
        height: 24px;
    }

    .site-entete__action {
        display: none;
    }

    .ouverture {
        align-items: start;
    }

    .ouverture__corps {
        padding-top: calc(var(--s-entete-h) + env(safe-area-inset-top) + 40px);
        padding-bottom: 112px;
    }

    .ouverture__etiquette {
        min-height: 30px;
        margin-bottom: 18px;
        font-size: 13px;
    }

    .ouverture__titre {
        max-width: none;
        font-size: 44px;
        line-height: 1;
    }

    .ouverture__sous-titre {
        margin-top: 20px;
        font-size: 17px;
    }

    .ouverture__infos {
        display: grid;
        gap: 10px;
        margin-top: 24px;
        font-size: 16px;
    }

    .ouverture__decompte {
        margin-top: 28px;
    }

    .decompte--ouverture {
        --chrono-t: 26px;
        --chrono-d: calc((100vw - 2 * var(--s-gouttiere) - 3 * 8px) / 4);
        gap: 8px;
        width: 100%;
    }

    .decompte em,
    .decompte--ouverture em {
        font-size: 10px;
        letter-spacing: 0.08em;
    }

    .ouverture__actions {
        display: grid;
        margin-top: 28px;
    }

    .ouverture__actions .bouton {
        width: 100%;
    }

    /* En haut à droite, petit, à côté du titre et jamais dessous */
    .ouverture__motif {
        top: calc(var(--s-entete-h) + env(safe-area-inset-top) - 2px);
        right: -9vw;
        bottom: auto;
        width: 30vw;
    }

    .ouverture__voile {
        background: linear-gradient(180deg, color-mix(in srgb, var(--s-nuit) 70%, transparent) 0%, color-mix(in srgb, var(--s-nuit) 82%, transparent) 55%, color-mix(in srgb, var(--s-nuit) 92%, transparent) 100%);
    }

    .ouverture__soleil {
        right: -10%;
        width: 90vmin;
        height: 90vmin;
        bottom: -30vmin;
    }

    .ouverture__suite {
        display: none;
    }

    .scene-section {
        padding: 88px 0;
    }

    .scene-section h2 {
        font-size: 34px;
        line-height: 1.12;
    }

    .scene-surtitre {
        font-size: 13px;
    }

    .accroche {
        height: 170vh;
    }

    .accroche__texte {
        font-size: 36px;
        line-height: 1.15;
    }










    .acces__points {
        margin-top: 28px;
        font-size: 17px;
    }

    .acces__carte {
        margin: 0 calc(var(--s-gouttiere) * -0.4);
        padding: 28px 20px;
        border-radius: 24px;
    }

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

    .site-pied__corps {
        display: grid;
        gap: 16px;
    }

    .site-pied nav {
        margin-left: 0;
    }

    /* La barre d'action au pouce : visible quand le bouton principal est sorti de l'écran et que le formulaire n'y est
       pas encore ; cachée dès qu'un champ a le clavier (scene.js). */
    .barre-pouce {
        position: fixed;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 35;
        display: block;
        padding: 12px var(--s-gouttiere) max(12px, env(safe-area-inset-bottom));
        background: linear-gradient(180deg, transparent 0%, color-mix(in srgb, var(--s-creme) 94%, transparent) 46%);
        opacity: 0;
        pointer-events: none;
        transform: translateY(120%);
    }

    .barre-pouce.est-visible {
        opacity: 1;
        pointer-events: auto;
        transform: none;
    }

    /* Rémi laisse la place au bouton : il monte au-dessus de la barre */
    .remi {
        transition: bottom 0.45s var(--s-entree);
    }

    .avec-pouce .remi {
        bottom: calc(84px + env(safe-area-inset-bottom));
    }

    .acces__carte .formulaire__grille {
        gap: 18px;
    }
}

@media (max-width: 374px) {
    .ouverture__titre {
        font-size: 38px;
    }

    .decompte--ouverture {
        --chrono-t: 22px;
    }
}

/* Écran bas (téléphone couché, petit portable) : l'ouverture se resserre */
@media (max-height: 700px) and (min-width: 735px) {
    .ouverture__corps {
        padding-top: calc(var(--s-entete-h) + 32px);
        padding-bottom: 72px;
    }

    .ouverture__titre {
        font-size: 64px;
    }

    .ouverture__decompte,
    .ouverture__actions {
        margin-top: 28px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .accroche {
        height: auto;
    }

    .accroche__collant {
        position: static;
        height: auto;
        padding-top: 120px;
        padding-bottom: 120px;
    }

    .ouverture__corps,
    .ouverture__motif,
    .ouverture__soleil,
    .motif > g,
    .ouverture__visuel img {
        opacity: 1;
        transform: none;
        translate: none;
    }

    .barre-pouce.est-visible {
        transform: none;
    }
}

/* Les ancres arrivent sous l'en-tête, en douceur si le mouvement est permis */
.site [id] {
    scroll-margin-top: calc(var(--s-entete-h) + env(safe-area-inset-top) + 16px);
}

.site .acces[id],
.site .accroche[id] {
    scroll-margin-top: 0;
}

@media (prefers-reduced-motion: no-preference) {
    html:has(.site) {
        scroll-behavior: smooth;
    }
}


/* ══ La salle du participant : même nuit dorée que l'ouverture, avant, pendant et après le direct ══ */
.salle--scene {
    background: var(--s-nuit);
}

.salle--scene .salle-attente {
    display: grid;
    gap: 0;
    max-width: none;
    margin: 0;
    text-align: left;
}

.salle-attente__corps--questions {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 56px;
    align-items: center;
}

.salle-attente .ouverture__titre {
    font-size: 72px;
}

.salle-attente__test {
    margin-top: 32px;
}

.salle-attente__questions {
    display: grid;
    gap: 6px;
    margin: 0;
    padding: 32px;
    border: 0;
}

.salle-attente__questions h2 {
    margin: 0;
    color: var(--s-encre);
    font-family: var(--s-police-titre);
    font-size: 26px;
    font-weight: 600;
    letter-spacing: -0.015em;
}

.salle-attente__aide {
    margin: 0 0 12px;
    font-size: 16px;
}

.salle--scene .participer textarea {
    min-height: 120px;
    border-radius: 14px;
    font-size: 17px;
}

/* Pendant : la salle sombre, le lecteur en majesté, le panneau en pleine lumière */
.salle--scene .salle-direct {
    min-height: 100vh;
    min-height: 100svh;
    padding: calc(var(--s-entete-h) + env(safe-area-inset-top) + 28px) max(var(--s-gouttiere), calc((100% - 1440px) / 2)) 64px;
    background:
        radial-gradient(60% 50% at 20% 0%, color-mix(in srgb, var(--s-nuit-2) 80%, transparent) 0%, transparent 70%),
        var(--s-nuit);
    color: rgba(255, 255, 255, 0.86);
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 28px;
}

.salle--scene .lecteur {
    border-radius: 20px;
    box-shadow: 0 40px 120px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.salle--scene .salle-direct__titre h1 {
    color: #ffffff;
    font-family: var(--s-police-titre);
    font-size: 26px;
    font-weight: 600;
    letter-spacing: -0.015em;
}

.salle--scene .salle-direct__principal > p,
.salle--scene .lecteur__bloque {
    color: rgba(255, 255, 255, 0.6);
}

.salle--scene .lien-bouton {
    color: rgba(255, 255, 255, 0.72);
}

.salle--scene .salle-direct__panneau {
    border: 0;
    border-radius: 24px;
    background: var(--s-papier);
    color: var(--s-texte);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}

.salle--scene .antenne {
    border-left-color: var(--s-action);
    background: color-mix(in srgb, var(--s-action) 14%, var(--s-papier));
}

.salle--scene .badge--direct {
    min-height: 28px;
    padding: 0 12px;
    border-radius: 999px;
    font-weight: 700;
    letter-spacing: 0.04em;
}

/* Après : le merci, puis le replay dès qu'il est posé */
.salle--scene .salle-apres {
    max-width: none;
    min-height: 80vh;
    margin: 0;
    padding: calc(var(--s-entete-h) + env(safe-area-inset-top) + 80px) var(--s-gouttiere) 96px;
    background:
        radial-gradient(80% 60% at 75% 100%, color-mix(in srgb, var(--s-lueur) 40%, transparent) 0%, transparent 65%),
        var(--s-nuit);
    color: rgba(255, 255, 255, 0.82);
}

.salle--scene .salle-apres h1 {
    max-width: 22ch;
    margin: 0;
    color: #ffffff;
    font-family: var(--s-police-titre);
    font-size: 56px;
    font-weight: 600;
    line-height: 1.08;
    letter-spacing: -0.02em;
    text-wrap: balance;
}

.salle--scene .lecteur--replay {
    max-width: 1100px;
}

.salle--scene .salle__sortir {
    margin: 0;
    padding: 40px var(--s-gouttiere);
    background: var(--s-nuit);
}

.salle--scene .salle__sortir .bouton {
    color: rgba(255, 255, 255, 0.7);
}

/* L'en-tête reste sombre dans la salle : la nuit ne s'arrête pas au défilement */
.site--ouverture:has(.salle--scene) .site-entete.est-solide {
    border-bottom-color: rgba(255, 255, 255, 0.08);
    background: color-mix(in srgb, var(--s-nuit) 84%, transparent);
    color: #ffffff;
}

.site--ouverture:has(.salle--scene) .site-entete.est-solide .site-logo--couleur {
    opacity: 0;
}

.site--ouverture:has(.salle--scene) .site-entete.est-solide .site-logo--clair {
    opacity: 1;
}

@media (max-width: 1068px) {
    .salle-attente__corps--questions {
        grid-template-columns: minmax(0, 1fr);
        gap: 40px;
    }

    .salle-attente .ouverture__titre {
        font-size: 56px;
    }

    .salle--scene .salle-direct {
        grid-template-columns: minmax(0, 1fr);
    }

    .salle--scene .salle-apres h1 {
        font-size: 44px;
    }
}

@media (max-width: 734px) {
    .salle-attente .ouverture__titre {
        font-size: 40px;
    }

    .salle-attente__questions {
        padding: 24px 20px;
    }

    .salle--scene .salle-direct {
        padding: calc(var(--s-entete-h) + env(safe-area-inset-top)) 0 32px;
        gap: 16px;
    }

    .salle--scene .salle-direct .lecteur {
        border-radius: 0;
        box-shadow: none;
    }

    .salle--scene .salle-direct__titre h1 {
        font-size: 20px;
    }

    .salle--scene .salle-direct__panneau {
        margin: 0 12px;
        border-radius: 20px;
    }

    .salle--scene .salle-apres h1 {
        font-size: 34px;
    }
}

/* ══ Mouvement piloté par le défilement (refonte du 18/11 après audit) ══════════════════════════════════════════
   Une seule boucle (scene.js) pose --s, de 0 à 1 :
   - data-scene-collant : la course d'une section haute dont l'intérieur reste collé (le défilé des marchés) ;
   - data-scene-traverse : l'entrée d'une section à l'écran (le fil du déroulé, l'ouverture de l'inscription). */

/* Les titres de section surgissent mot à mot d'un masque, avec un léger basculement */
@media (prefers-reduced-motion: no-preference) {
    .avec-js .scene-section h2 .mot > span,
    .avec-js .defile 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 h2 .mot > span {
        transform: none;
    }

    .avec-js .scene-section header[data-scene-apparition],
    .avec-js .defile header[data-scene-apparition],
    .avec-js .acces__texte[data-scene-apparition] {
        opacity: 1;
        transform: none;
    }
}

/* ── Le défilé des marchés : la piste glisse de droite à gauche pendant qu'on descend ── */
.defile {
    position: relative;
    background: var(--s-creme);
}

.defile__collant {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 48px;
    padding: 120px 0;
}

.defile__tete h2 {
    max-width: 18ch;
    margin: 0;
    color: var(--s-encre);
    font-family: var(--s-police-titre);
    font-size: 56px;
    font-weight: 600;
    line-height: 1.07;
    letter-spacing: -0.02em;
}

.defile__piste {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 40px;
    margin: 0;
    padding: 0 var(--s-gouttiere);
    list-style: none;
}

.defile__sujet {
    color: var(--s-encre);
    font-family: var(--s-police-titre);
    font-size: 64px;
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.03em;
    white-space: nowrap;
}

.defile__nom {
    position: relative;
    display: inline-block;
}

/* Avec sa photo : le sujet devient une affiche, la photo s'allume quand il passe au centre */
.defile__sujet--image {
    display: flex;
    align-items: center;
    gap: 2.4vw;
}

.defile__image {
    flex: none;
    width: min(26vw, 360px);
    aspect-ratio: 4 / 5;
    overflow: hidden;
    border-radius: 28px;
    background: var(--s-filet);
}

.defile__image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.defile__progression {
    display: none;
}

@media (prefers-reduced-motion: no-preference) {
    .avec-js .defile {
        height: calc(100vh + var(--defile-course, 2400px));
    }

    .avec-js .defile__collant {
        position: sticky;
        top: 0;
        align-content: center;
        height: 100vh;
        height: 100svh;
        padding: calc(var(--s-entete-h) + 24px) 0 48px;
        overflow: hidden;
    }

    .avec-js .defile__piste {
        flex-wrap: nowrap;
        align-items: center;
        gap: 6vw;
        padding-left: max(var(--s-gouttiere), calc((100vw - var(--s-largeur)) / 2 + 20px));
        transform: translate3d(calc(var(--s, 0) * var(--defile-decalage, 0px) * -1), 0, 0);
        will-change: transform;
    }

    .avec-js .defile__sujet {
        font-size: 168px;
        color: color-mix(in srgb, var(--s-encre) 16%, transparent);
        transition: color 0.5s var(--s-ui);
    }

    .avec-js .defile__image {
        transform: scale(0.86);
        filter: grayscale(0.85) brightness(0.92);
        transition: transform 0.9s var(--s-entree), filter 0.9s var(--s-ui);
    }

    .avec-js .defile__image img {
        transform: scale(1.12);
        transition: transform 1.4s var(--s-entree);
    }

    .avec-js .defile__sujet.est-actif .defile__image {
        transform: none;
        filter: none;
    }

    .avec-js .defile__sujet.est-actif .defile__image img {
        transform: none;
    }

    .avec-js .defile__nom::after {
        position: absolute;
        right: 0;
        bottom: -0.02em;
        left: 0;
        height: 0.07em;
        border-radius: 999px;
        background: var(--s-action);
        content: "";
        transform: scaleX(0);
        transform-origin: 0 50%;
        transition: transform 0.7s var(--s-entree);
    }

    .avec-js .defile__sujet.est-actif {
        color: var(--s-encre);
    }

    .avec-js .defile__sujet.est-actif .defile__nom::after {
        transform: scaleX(1);
    }

    .avec-js .defile__progression {
        display: block;
        height: 3px;
        border-radius: 999px;
        background: color-mix(in srgb, var(--s-encre) 12%, transparent);
        overflow: hidden;
    }

    .avec-js .defile__progression span {
        display: block;
        height: 100%;
        background: var(--s-encre);
        transform: scaleX(var(--s, 0));
        transform-origin: 0 50%;
    }
}




/* ── L'inscription s'ouvre : la nuit part d'une carte arrondie et prend toute la largeur ── */
@media (prefers-reduced-motion: no-preference) {
    .avec-js .acces {
        clip-path: inset(0 calc((1 - var(--s, 1)) * 6vw) round calc((1 - var(--s, 1)) * 48px));
    }

    .avec-js .acces__carte[data-scene-apparition] {
        transform: perspective(1200px) translateY(60px) rotateX(10deg);
        transform-origin: 50% 100%;
        transition: opacity 1s var(--s-entree), transform 1.2s var(--s-entree);
    }

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

    .avec-js .acces__points li {
        opacity: 0;
        transform: translateX(-16px);
        transition: opacity 0.7s var(--s-entree), transform 0.7s var(--s-entree);
    }

    .avec-js .acces__points li:nth-child(2) { transition-delay: 0.08s; }
    .avec-js .acces__points li:nth-child(3) { transition-delay: 0.16s; }
    .avec-js .acces__points li:nth-child(4) { transition-delay: 0.24s; }

    .avec-js .est-visible .acces__points li {
        opacity: 1;
        transform: none;
    }
}

/* L'accroche : chaque mot qui s'allume monte d'un cran */
@media (prefers-reduced-motion: no-preference) {
    .avec-js .accroche__mot > span {
        display: inline-block;
        transform: translateY(0.12em);
        transition: opacity 0.4s var(--s-ui), transform 0.6s var(--s-entree);
    }

    .avec-js .accroche__mot.est-allume > span {
        transform: none;
    }
}

@media (max-width: 1068px) {
    .defile__tete h2 {
        font-size: 44px;
    }

    .avec-js .defile__sujet {
        font-size: 120px;
    }
}

@media (max-width: 734px) {
    .defile__collant {
        gap: 32px;
        padding: 88px 0;
    }

    .defile__tete h2 {
        font-size: 34px;
    }

    .defile__sujet {
        font-size: 40px;
    }

    .avec-js .defile__sujet {
        font-size: 76px;
    }


    .avec-js .acces {
        clip-path: inset(0 calc((1 - var(--s, 1)) * 4vw) round calc((1 - var(--s, 1)) * 32px));
    }
}

@media (prefers-reduced-motion: reduce) {
    .defile__sujet {
        white-space: normal;
    }
}

/* ── Le déroulé, en scène : la section se fige, le motif tourne avec le défilement et, à chaque étape, une de ses
   pièces s'allume pendant que la phrase change (« Avant. », « Le jour J. », « Après. »). Sans JavaScript ou en
   mouvement réduit : les trois étapes l'une sous l'autre, le motif immobile. ── */
.etapes {
    position: relative;
    background: var(--s-papier);
    color: var(--s-texte);
}

.etapes__collant {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 72px;
    align-items: center;
    max-width: var(--s-largeur);
    margin: 0 auto;
    padding: 120px var(--s-gouttiere);
}

.etapes__visuel {
    display: grid;
    place-items: center;
}

.etapes__visuel .scene-motif {
    position: relative;
    width: min(68vh, 100%);
}

.etapes__titre {
    max-width: 24ch;
    margin: 0 0 48px;
    color: var(--s-texte);
    font-family: var(--s-police-titre);
    font-size: 21px;
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: -0.01em;
}

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

.etapes__mot {
    margin: 0 0 18px;
    color: var(--s-encre);
    font-family: var(--s-police-titre);
    font-size: 104px;
    font-weight: 700;
    line-height: 0.95;
    letter-spacing: -0.04em;
}

.etapes__plan h3 {
    margin: 0 0 14px;
    color: var(--s-encre);
    font-family: var(--s-police-titre);
    font-size: 30px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.etapes__plan p:last-child {
    max-width: 30em;
    margin: 0;
    font-size: 19px;
    line-height: 1.5;
}

.etapes__reperes {
    display: none;
}

/* L'anneau des sites sans motif : aux couleurs du client */
.motif--anneau .motif__bleu path { fill: color-mix(in srgb, var(--s-encre) 45%, #ffffff); }
.motif--anneau .motif__marine path { fill: var(--s-encre); }
.motif--anneau .motif__jaune path { fill: var(--s-action); }
.motif--anneau .motif__pastille circle { fill: var(--s-lueur); }

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

    .avec-js .etapes__collant {
        position: sticky;
        top: 0;
        height: 100vh;
        height: 100svh;
        padding-top: calc(var(--s-entete-h) + 24px);
        padding-bottom: 32px;
    }

    .avec-js .etapes__liste {
        gap: 0;
    }

    .avec-js .etapes__plan {
        grid-area: 1 / 1;
        opacity: 0;
        pointer-events: none;
        transform: translateY(56px);
        transition: opacity 0.55s var(--s-ui), transform 0.9s var(--s-entree);
    }

    .avec-js .etapes__plan.est-passe {
        transform: translateY(-56px);
    }

    .avec-js .etapes__plan.est-actif {
        opacity: 1;
        pointer-events: auto;
        transform: none;
    }

    /* Le mot de l'étape arrive le premier, le reste suit */
    .avec-js .etapes__plan .etapes__mot {
        transform: translateY(40px);
        transition: transform 0.9s var(--s-entree);
    }

    .avec-js .etapes__plan h3,
    .avec-js .etapes__plan p:last-child {
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.7s var(--s-entree) 0.12s, transform 0.9s var(--s-entree) 0.12s;
    }

    .avec-js .etapes__plan p:last-child {
        transition-delay: 0.2s;
    }

    .avec-js .etapes__plan.est-actif .etapes__mot,
    .avec-js .etapes__plan.est-actif h3,
    .avec-js .etapes__plan.est-actif p:last-child {
        opacity: 1;
        transform: none;
    }

    .avec-js .etapes__reperes {
        display: flex;
        gap: 8px;
        margin-top: 48px;
    }

    .avec-js .etapes__reperes span {
        position: relative;
        width: 44px;
        height: 4px;
        overflow: hidden;
        border-radius: 999px;
        background: var(--s-filet);
    }

    .avec-js .etapes__reperes span::after {
        position: absolute;
        inset: 0;
        background: var(--s-encre);
        content: "";
        transform: scaleX(0);
        transform-origin: 0 50%;
        transition: transform 0.6s var(--s-entree);
    }

    .avec-js .etapes__reperes span.est-fait::after {
        transform: scaleX(1);
    }

    /* Le motif tourne avec le défilement ; la pièce de l'étape s'allume et grandit, les autres s'effacent */
    /* À chaque étape, le motif fait un tour complet sur lui-même : au repos, il est toujours droit et exact. */
    .avec-js .etapes .motif {
        rotate: calc(var(--tour, 0) * 360deg);
        scale: calc(0.94 + var(--s, 0) * 0.08);
        transition: rotate 1.5s cubic-bezier(0.65, 0, 0.25, 1);
    }

    .avec-js .etapes .motif > g {
        opacity: 1;
        transform: none;
        translate: none;
        transition: opacity 0.6s var(--s-ui);
        transition-delay: 0s;
    }

    .etapes[data-etape="0"] .motif > g:not(.motif__jaune),
    .etapes[data-etape="1"] .motif > g:not(.motif__marine):not(.motif__pastille),
    .etapes[data-etape="2"] .motif > g:not(.motif__bleu):not(.motif__pervenche) {
        opacity: 0.22;
    }
}

@media (max-width: 1068px) {
    .etapes__mot {
        font-size: 80px;
    }

    .etapes__collant {
        gap: 40px;
    }
}

@media (max-width: 734px) {
    .etapes__collant {
        grid-template-columns: minmax(0, 1fr);
        gap: 28px;
        padding: 88px var(--s-gouttiere);
    }

    .etapes__visuel .scene-motif {
        width: 52vw;
    }

    .etapes__titre {
        margin-bottom: 24px;
        font-size: 17px;
    }

    .etapes__mot {
        margin-bottom: 12px;
        font-size: 60px;
    }

    .etapes__plan h3 {
        font-size: 24px;
    }

    .etapes__plan p:last-child {
        font-size: 17px;
    }

    .avec-js .etapes {
        height: 320vh;
    }

    .avec-js .etapes__collant {
        align-content: center;
    }

    .avec-js .etapes__visuel .scene-motif {
        width: 40vw;
    }

    .avec-js .etapes__reperes {
        margin-top: 28px;
    }
}

@media (max-width: 734px) {
    .defile__image {
        width: 52vw;
        border-radius: 22px;
    }

    .defile__sujet--image {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
}


/* ── Transitions de page (navigateurs qui les connaissent ; ailleurs, chargement normal) ──
   De l'accueil à la page d'entrée : la photo de l'ouverture devient le visuel, le titre glisse à sa place, le bouton
   cliqué devient le bouton du formulaire. */
@view-transition {
    navigation: auto;
}

::view-transition-group(*) {
    animation-duration: 0.65s;
    animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
}

::view-transition-old(root),
::view-transition-new(root) {
    animation-duration: 0.4s;
}

@media (prefers-reduced-motion: reduce) {
    @view-transition {
        navigation: none;
    }
}

/* Le pied : « Réalisé par » et le logo de REM */
.site-pied__rem {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    text-decoration: none;
    transition: color 0.25s ease;
}

.site-pied__rem img {
    width: auto;
    height: 26px;
    opacity: 0.85;
    transition: opacity 0.25s ease, transform 0.4s cubic-bezier(0.25, 1.35, 0.45, 1);
}

.site-pied__rem:hover {
    color: #ffffff;
}

.site-pied__rem:hover img {
    opacity: 1;
    transform: translateY(-2px);
}

@media (max-width: 734px) {
    .site-pied__corps {
        flex-direction: column;
        align-items: flex-start;
        gap: 18px;
    }

    .site-pied nav {
        display: flex;
        flex-wrap: wrap;
        gap: 10px 18px;
        margin-left: 0;
    }
}

/* ══ Téléphone : corrections de l'audit du 19/11 ══════════════════════════════════════════════════════════════ */
.site {
    --s-gouttiere: max(20px, env(safe-area-inset-left), env(safe-area-inset-right));
}

@media (max-width: 734px) {
    /* Champs en 16 px au moins : iOS ne zoome plus à la saisie */
    .site textarea,
    .site input:not([type="checkbox"]):not([type="radio"]),
    .site select {
        font-size: 16px;
    }

    /* Le pied ne passe plus sous le bouton de Rémi IA ; ses liens deviennent de vraies cibles */
    .site-pied {
        padding-bottom: calc(96px + env(safe-area-inset-bottom));
    }

    .site-pied nav a {
        display: inline-flex;
        align-items: center;
        min-height: 44px;
    }

    .decompte em,
    .decompte--ouverture em {
        font-size: 11px;
    }
}

/* Au doigt : pas de survol qui reste collé après un toucher ; un retour au toucher à la place */
@media (hover: none) {
    .site a:hover,
    .site button:hover {
        transform: none;
    }

    .site .bouton:active,
    .site .bouton-soleil:active,
    .site .bouton-trait:active,
    .site .bouton-verre:active,
    .site .puce:active,
    .site .rp-geste:active,
    .site .rp-jeton:active {
        transform: scale(0.97);
        transition: transform 0.12s ease;
    }
}

/* Téléphone couché : le titre se resserre pour laisser voir les actions */
@media (max-height: 500px) and (pointer: coarse) {
    .ouverture__titre {
        font-size: 36px;
    }

    .ouverture__sous-titre {
        display: none;
    }

    .ouverture__corps {
        padding-top: calc(var(--s-entete-h) + 20px);
        padding-bottom: 40px;
    }
}

/* Boucle n° 1 : le pied ne passe jamais sous le bouton de Rémi IA (ordinateur aussi) ; liens en vraies cibles */
.site-pied {
    padding-bottom: max(96px, env(safe-area-inset-bottom));
}

@media (max-width: 734px) {
    .site-pied__rem,
    .acces__lien {
        min-height: 44px;
    }
}
