/* Nuences Studio : les deux thèmes, les matières, les boutons et le canvas. Chargée après site.css, sur tous les écrans.
   La mise en page vient ensuite : grille.css sur ordinateur (plus de 900 px), telephone.css en dessous.

   Le module : un carré --u. 16 colonnes dans la largeur, 10 rangées dans la hauteur de l'écran ;
   --u est le plus grand carré entier qui tienne dans les deux (90 px sur 1440 × 900).
   --x0 est la marge qui centre les 16 colonnes quand l'écran est plus large que haut.

   Deux thèmes, la même mise en page : html.t-sombre (accueil en satin orange, le reste sur le noir)
   et html.t-clair (fond blanc, texte noir, l'orange en modules). Le bouton soleil et lune passe de l'un à l'autre.
   Règle des couleurs : texte blanc sur l'orange, texte noir sur le blanc. Aucun texte en orange.

   Les matières :
   - le satin : l'orange de la marque, du vermillon (#D63E08) à l'orange vif, traversé de reflets en biais ;
   - le verre : les boutons et ce qui flotte. Un fond translucide, le flou de ce qui passe derrière, une lumière douce
     venue du haut, une ombre. Pas de contour, pas de filet d'un pixel. L'action principale est teintée, les autres non.
     Références : le « Liquid Glass » d'Apple (Human Interface Guidelines, « Materials » et « Buttons », 2025) ;
     valeurs de flou et de saturation proches de celles d'apple.com (saturate(180%) blur(20px)).
     Les formes restent rectangulaires : c'est la règle du site, là où Apple arrondit.
   - l'ombre : chaque module plein est posé au-dessus de la grille. */

:root {
  --u: round(down, min(100vw / 16, 100svh / 10), 1px);
  --x0: calc((100vw - 16 * var(--u)) / 2);
  --pad: calc(var(--u) * .22);
  --etiquette: 11px;
  --bandeau: 116px;          /* le bandeau du canvas : 52 px pour la barre du haut, le reste pour les noms des marques */
  --large: "Northura Large", var(--police);

  /* repères de la grille : le bord gauche d'une colonne (--c) et le haut d'une rangée (--l), décalés d'un pixel pour garder le trait */
  --c2: calc(var(--x0) + var(--u) + 1px);
  --c3: calc(var(--x0) + 2 * var(--u) + 1px);
  --c5: calc(var(--x0) + 4 * var(--u) + 1px);
  --c8: calc(var(--x0) + 7 * var(--u) + 1px);
  --l1: 1px;
  --l2: calc(var(--u) + 1px);
  --l3: calc(2 * var(--u) + 1px);
  --l4: calc(3 * var(--u) + 1px);
  --l5: calc(4 * var(--u) + 1px);
  --l6: calc(5 * var(--u) + 1px);
  --l8: calc(7 * var(--u) + 1px);
  --l9: calc(8 * var(--u) + 1px);
  --h1: calc(var(--u) - 1px);
  --plein: linear-gradient(#000, #000);
  /* les cases fusionnées de l'accueil : des trous dans la grille, là où un texte ou une image prend place */
  --trous:
    var(--plein) var(--c2) var(--l1) / calc(2 * var(--u) - 1px) var(--h1) no-repeat,                 /* le logo */
    var(--plein) var(--c2) var(--l2) / calc(6 * var(--u) - 1px) var(--h1) no-repeat,                 /* l'étiquette : six colonnes, comme le titre */
    var(--plein) var(--c2) var(--l3) / calc(6 * var(--u) - 1px) calc(3 * var(--u) - 1px) no-repeat,  /* le titre */
    var(--plein) var(--c8) var(--l3) / calc(9 * var(--u) - 1px) var(--h1) no-repeat,                 /* la roue : une longue case par mot */
    var(--plein) var(--c8) var(--l4) / calc(9 * var(--u) - 1px) var(--h1) no-repeat,
    var(--plein) var(--c8) var(--l5) / calc(9 * var(--u) - 1px) var(--h1) no-repeat,
    var(--plein) var(--c2) var(--l8) / calc(3 * var(--u) - 1px) var(--h1) no-repeat,                 /* « Ils nous ont fait confiance » */
    var(--plein) var(--c5) var(--l8) / 100vw var(--h1) no-repeat,                                    /* la bande des logos */
    var(--plein) var(--c3) var(--l9) / calc(2 * var(--u) - 1px) var(--h1) no-repeat,                 /* « Voir le canvas » */
    var(--plein) var(--c5) var(--l9) / 100vw calc(2 * var(--u) - 1px) no-repeat;                     /* la nappe d'images */

  /* le satin : la base va du vermillon (haut et bas, derrière les petits textes) à l'orange vif (milieu) ; les reflets passent en biais */
  --satin:
    linear-gradient(116deg, transparent 1%, rgb(255 138 26 / .44) 13%, transparent 26%),
    linear-gradient(104deg, transparent 34%, rgb(255 128 18 / .36) 46%, transparent 58%),
    linear-gradient(126deg, transparent 50%, rgb(184 36 4 / .42) 66%, transparent 82%),
    linear-gradient(110deg, transparent 78%, rgb(255 136 24 / .46) 91%, transparent 104%),
    linear-gradient(180deg, #D94106 0%, #EE5606 20%, #F56000 50%, #E85007 78%, #D63E08 100%);
  --satin-module:
    linear-gradient(112deg, transparent 4%, rgb(255 138 28 / .42) 20%, transparent 38%),
    linear-gradient(124deg, transparent 46%, rgb(190 40 4 / .30) 64%, transparent 82%),
    linear-gradient(108deg, transparent 76%, rgb(255 134 24 / .40) 92%, transparent 108%),
    linear-gradient(180deg, #F25C04 0%, #E95107 55%, #DC4307 100%);
  --blanc-satin:
    linear-gradient(116deg, transparent 2%, rgb(226 222 216 / .5) 14%, transparent 28%),
    linear-gradient(104deg, transparent 36%, rgb(228 224 218 / .42) 48%, transparent 60%),
    linear-gradient(124deg, transparent 62%, rgb(224 220 214 / .5) 77%, transparent 92%),
    linear-gradient(180deg, #ffffff 0%, #fbfaf8 60%, #f3f1ed 100%);
  /* les cartes de « Concrètement » : la même matière, avec deux reflets en biais seulement */
  --carte-blanche:
    linear-gradient(112deg, transparent 8%, rgb(226 222 216 / .52) 24%, transparent 40%),
    linear-gradient(118deg, transparent 58%, rgb(224 220 214 / .5) 74%, transparent 90%),
    linear-gradient(180deg, #ffffff 0%, #fbfaf8 60%, #f3f1ed 100%);
  --carte-orange:
    linear-gradient(112deg, transparent 8%, rgb(255 138 28 / .42) 24%, transparent 40%),
    linear-gradient(118deg, transparent 58%, rgb(255 134 24 / .36) 74%, transparent 90%),
    linear-gradient(180deg, #F25C04 0%, #E95107 55%, #DC4307 100%);
  --ombre-orange: 58 16 0;

  /* le verre */
  --flou: blur(18px) saturate(180%);
  --lumiere: inset 0 16px 18px -16px rgb(255 255 255 / .5);                 /* la lumière qui tombe du haut, sans trait */
  --verre-orange: linear-gradient(180deg, rgb(244 96 6 / .95) 0%, rgb(216 63 7 / .95) 100%);
  --orange-plein: linear-gradient(180deg, #F46006 0%, #D83F07 100%);      /* le même orange, opaque : pour ce qui passe au-dessus d'un texte qui défile */
  --verre-blanc: linear-gradient(180deg, rgb(255 255 255 / .94) 0%, rgb(255 255 255 / .8) 100%);
  --verre-fume: rgb(17 16 14 / .86);
  /* l'orange sombre : ce qui flotte sur le canvas (commandes, invitation). Texte blanc lisible dessus. */
  --orange-sombre: linear-gradient(180deg, #C8480A 0%, #A93606 100%);
  --ombre-flottant: inset 0 16px 18px -16px rgb(255 255 255 / .42), 0 18px 40px -16px rgb(0 0 0 / .85), 0 12px 30px -14px rgb(200 72 10 / .7);
}

/* ---------- Thème sombre ---------- */
html.t-sombre { color-scheme: dark;
  /* l'accueil : satin orange, texte et traits blancs */
  --a-fond: var(--satin); --a-texte: #fff; --ligne: rgb(255 255 255 / .4);
  --a-ombre-titre: var(--ombre-texte); --a-ombre-petit: var(--ombre-petit); --a-filtre-logo: var(--ombre-image); --a-filtre-logos: var(--ombre-image);
  --roue-fond: none; --roue-texte: #fff; --roue-ombre: none; --roue-ombre-texte: var(--ombre-texte);
  --descente-fond: var(--verre-fume); --descente-texte: #fff;
  --noeud-fond: rgb(var(--ombre-orange) / .3); --ombre-image-m: 0 16px 26px -14px rgb(var(--ombre-orange) / .75);
  /* les pages et l'écran « Concrètement » : sur le noir */
  --p-fond: radial-gradient(54% 30% at 8% 0%, rgb(255 111 0 / .2), transparent 72%), radial-gradient(40% 22% at 100% 46%, rgb(255 111 0 / .1), transparent 72%), #11100E;
  --p-uni: #11100E; --p-texte: #fff; --p-doux: rgb(255 255 255 / .78); --p-discret: rgb(255 255 255 / .56); --p-ligne: rgb(255 255 255 / .16);
  --p-filtre-logo: none; --a-inverse: var(--encre); --p-inverse: var(--encre);
  /* les quatre cartes de « Concrètement » : blanches sur le noir */
  --carte-fond: var(--carte-blanche); --carte-texte: var(--encre); --carte-doux: rgb(17 16 14 / .78); --carte-filet: rgb(17 16 14 / .16); --carte-carre: var(--orange); --carte-ombre-texte: none;
  --tuile: linear-gradient(180deg, rgb(255 255 255 / .085) 0%, rgb(255 255 255 / .02) 100%); --ombre-tuiles: 0 30px 60px -34px rgb(0 0 0 / .9);
  --champ: rgb(255 255 255 / .08); --champ-actif: rgb(255 255 255 / .14);
  --ombre-photo: 0 30px 60px -30px rgb(0 0 0 / .9);
  --ombre-preuve: 0 34px 70px -34px rgb(255 96 0 / .5), 0 30px 60px -30px rgb(0 0 0 / .9);
  /* le bandeau du canvas : du verre sombre */
  --b-fond: rgb(16 14 13 / .58); --b-flou: blur(26px) saturate(1.6); --b-ombre: 0 18px 40px -22px rgb(0 0 0 / .9);
  --b-texte: #fff; --b-doux: rgb(255 255 255 / .78); --b-discret: rgb(255 255 255 / .56); --b-ligne: rgb(255 255 255 / .14); --b-filtre-logo: none; --b-groupe: rgb(255 255 255 / .07); --b-survol: rgb(255 255 255 / .14); --b-reflet: rgb(255 255 255 / .24); --b-plein: #1b1917;
  /* les boutons sur le noir : l'action principale est teintée d'orange, les autres sont en verre clair */
  --v1-fond: var(--verre-orange); --v1-texte: #fff; --v1-ombre: var(--lumiere), 0 12px 30px -10px rgb(230 80 0 / .6);
  --v2-fond: rgb(255 255 255 / .1); --v2-texte: #fff; --v2-ombre: inset 0 16px 18px -16px rgb(255 255 255 / .3), 0 8px 32px rgb(0 0 0 / .2);
}
/* sur le satin orange : l'action principale est en verre blanc, la seconde en verre assombri (texte blanc lisible) */
html.t-sombre .hero-cadre, html.t-sombre .page-accueil .entete {
  --v1-fond: var(--verre-blanc); --v1-texte: var(--encre); --v1-ombre: inset 0 0 14px rgb(255 255 255 / .7), 0 12px 32px -8px rgb(var(--ombre-orange) / .5);
  --v2-fond: rgb(48 14 0 / .36); --v2-texte: #fff; --v2-ombre: inset 0 16px 18px -16px rgb(255 255 255 / .36), 0 12px 32px -8px rgb(var(--ombre-orange) / .42);
}

/* ---------- Thème clair ---------- */
html.t-clair { color-scheme: light;
  /* l'accueil : fond blanc, texte et traits noirs ; la roue de mots dans un module de satin orange */
  --a-fond: var(--blanc-satin); --a-texte: var(--encre); --ligne: rgb(17 16 14 / .13);
  --a-ombre-titre: none; --a-ombre-petit: none; --a-filtre-logo: brightness(0); --a-filtre-logos: brightness(0);
  --roue-fond: var(--satin-module); --roue-texte: #fff;
  --roue-ombre: inset 0 18px 20px -18px rgb(255 255 255 / .5), 0 36px 60px -34px rgb(230 80 0 / .75), 0 14px 24px -14px rgb(120 40 0 / .4);
  --roue-ombre-texte: 0 .03em .05em rgb(var(--ombre-orange) / .36), 0 .09em .4em rgb(var(--ombre-orange) / .3);
  --descente-fond: var(--verre-orange); --descente-texte: #fff;
  --noeud-fond: rgb(17 16 14 / .12); --ombre-image-m: 0 18px 28px -16px rgb(40 30 20 / .55);
  /* les pages et l'écran « Concrètement » : sur le blanc */
  --p-fond: radial-gradient(60% 24% at 100% 0%, #f1efeb, transparent 70%), #fff;
  --p-uni: #fff; --p-texte: var(--encre); --p-doux: rgb(17 16 14 / .78); --p-discret: rgb(17 16 14 / .6); --p-ligne: rgb(17 16 14 / .16);
  --p-filtre-logo: brightness(0); --a-inverse: #fff; --p-inverse: #fff;
  /* les quatre cartes de « Concrètement » : orange sur le blanc, texte blanc */
  --carte-fond: var(--carte-orange); --carte-texte: #fff; --carte-doux: rgb(255 255 255 / .95); --carte-filet: rgb(255 255 255 / .36); --carte-carre: #fff; --carte-ombre-texte: 0 1px 2px rgb(var(--ombre-orange) / .38);
  --tuile: linear-gradient(180deg, #ffffff 0%, #f6f4f1 100%); --ombre-tuiles: 0 34px 60px -36px rgb(40 30 20 / .45);
  --champ: rgb(17 16 14 / .06); --champ-actif: rgb(17 16 14 / .1);
  --ombre-photo: 0 30px 60px -34px rgb(40 30 20 / .55);
  --ombre-preuve: 0 36px 70px -36px rgb(230 80 0 / .55), 0 30px 60px -34px rgb(40 30 20 / .5);
  /* le bandeau du canvas : blanc. Le canvas lui-même reste sombre. */
  --b-fond: linear-gradient(180deg, rgb(255 255 255 / .96) 0%, rgb(244 242 238 / .96) 100%); --b-flou: blur(20px) saturate(1.8); --b-ombre: 0 18px 40px -20px rgb(0 0 0 / .8);
  --b-texte: var(--encre); --b-doux: rgb(17 16 14 / .76); --b-discret: rgb(17 16 14 / .58); --b-ligne: rgb(17 16 14 / .14); --b-filtre-logo: brightness(0); --b-groupe: rgb(17 16 14 / .06); --b-survol: rgb(17 16 14 / .1); --b-reflet: rgb(255 111 0 / .26); --b-plein: #f4f2ee;
  /* les boutons sur le blanc : l'action principale est teintée d'orange, les autres sont en verre blanc, détaché par son ombre */
  --v1-fond: var(--verre-orange); --v1-texte: #fff; --v1-ombre: var(--lumiere), 0 14px 30px -10px rgb(230 80 0 / .55);
  --v2-fond: rgb(250 250 252 / .8); --v2-texte: var(--encre); --v2-ombre: 0 8px 30px rgb(40 30 20 / .16), 0 1px 3px rgb(40 30 20 / .1);
}

/* Le contour de la navigation au clavier : toujours visible. Blanc sur l'orange et sur le verre sombre, noir sur le blanc, orange sur le noir. */
html.t-sombre { --focus: var(--orange); }
html.t-clair { --focus: var(--encre); }
html.t-sombre .hero-cadre, html.t-sombre .page-accueil .entete, .hero-roue, .coordonnees, .concret-preuve figcaption, .commandes, .invite, .astuce { --focus: #fff; }
.aide { --focus: var(--orange); }
.contact-formulaire.avec-tally { --focus: var(--encre); }
/* une fenêtre moins large que 16:10, avec une barre de défilement toujours visible (Windows, souris) : 100vw compte la barre,
   la page dépasserait de sa largeur. Pas de défilement horizontal pour autant. */
html { overflow-x: clip; }
:focus-visible { outline-color: var(--focus, var(--orange)); }

/* Plus rien d'arrondi : boutons, pastilles, images, champs, commandes. */
*, *::before, *::after { border-radius: 0 !important; }
html, body { background: var(--p-uni); color: var(--p-texte); }

/* ---------- Étiquettes : Northura large, en capitales, précédées d'un carré orange. Le texte garde la couleur de la page. ---------- */
.repere { font-family: var(--large); font-size: var(--etiquette); font-weight: 700; line-height: 1.35; letter-spacing: .07em; text-transform: uppercase; color: inherit; }
.repere::before { content: ""; display: inline-block; width: .7em; height: .7em; margin-right: .9em; background: var(--orange); }

/* ---------- Boutons : du verre, rectangulaire. Aucune rotation. ----------
   Au survol, le verre s'éclaire. À l'appui, il se tasse à peine et la lumière part de l'endroit touché (--px, --py, posés par site.js). */
.bouton, .bouton:hover { position: relative; overflow: hidden; isolation: isolate; padding: 10px 20px; border: 0;
  background: var(--v2-fond); color: var(--v2-texte); box-shadow: var(--v2-ombre);
  -webkit-backdrop-filter: var(--flou); backdrop-filter: var(--flou);
  transition: filter .25s ease, transform .16s ease; }
.bouton-noir, .bouton-noir:hover, .bouton-plein, .bouton-plein:hover,
.hero-actions .bouton-noir, .hero-actions .bouton-noir:hover,
.page-accueil .entete .bouton-noir, .page-accueil .entete .bouton-noir:hover,
.page-texte .entete .bouton-noir, .page-texte .entete .bouton-noir:hover { background: var(--v1-fond); color: var(--v1-texte); box-shadow: var(--v1-ombre); font-weight: 700; }
.bouton-clair, .bouton-clair:hover, .hero-actions .bouton-clair, .hero-actions .bouton-clair:hover { background: var(--v2-fond); color: var(--v2-texte); box-shadow: var(--v2-ombre); }
.bouton:active { transform: scale(.985); filter: brightness(1.12); }
/* Au survol : le verre s'éclaire franchement et un reflet le traverse ; la case de la flèche s'allume et la flèche avance. */
.bouton::before, .retour-page::before, .concret-preuve .lien-fleche::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(105deg, transparent 30%, var(--reflet, rgb(255 255 255 / .46)) 50%, transparent 70%); transform: translateX(-102%); }
.concret-preuve .lien-fleche { position: relative; isolation: isolate; overflow: hidden; }
/* sur un bouton blanc, le reflet est orange */
html.t-sombre .hero-cadre .bouton-noir, html.t-sombre .page-accueil .entete .bouton-noir, html.t-clair .bouton-clair, html.t-clair .retour-page { --reflet: rgb(255 111 0 / .3); }
html .coordonnees .bouton { --reflet: rgb(255 255 255 / .46); }
@media (hover: hover) {
  .bouton:hover { filter: brightness(1.15) saturate(1.08); }
  .bouton:hover::before, .retour-page:hover::before, .concret-preuve .lien-fleche:hover::before { transform: translateX(102%); transition: transform .75s cubic-bezier(.3, .8, .25, 1); }
  .bouton.avec-rond:hover .rond { background: color-mix(in srgb, currentColor 16%, transparent) !important; }
  a:hover > .rond svg, .bouton:hover > .rond svg { transform: translate(5px, -5px) scale(1.18); }
  .bouton:hover > svg { transform: translateY(7px); }
}
.bouton::after, .retour-page::after, .descente::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(circle 9em at var(--px, 50%) var(--py, 50%), rgb(255 255 255 / .6), transparent 70%); opacity: 0; transition: opacity .6s ease; }
.bouton:active::after, .retour-page:active::after, .apercu-tete:active .descente::after { opacity: 1; transition-duration: .06s; }
/* la flèche au bout du bouton : sans case ni trait ; au survol, elle avance dans son sens */
.bouton.avec-rond { align-items: stretch; gap: 0; justify-content: space-between; padding: 0 0 0 20px; line-height: 44px; text-align: left; }
.bouton.avec-rond .rond { width: 44px; height: auto; margin-left: 8px; background: transparent !important; color: inherit !important; transform: none !important; }
.bouton-grand.avec-rond { line-height: 56px; }
.bouton-grand.avec-rond .rond { width: 56px; height: auto; }
.bouton.avec-rond .rond { transition: background .3s ease; }
.rond svg { transition: transform .35s cubic-bezier(.3, .8, .25, 1); }
.bouton > svg { transition: transform .35s cubic-bezier(.3, .8, .25, 1); }
.lien-fleche { border: 0; padding: 0; }

/* l'interrupteur des thèmes : le soleil et la lune côte à côte ; celui du thème affiché est plein, l'autre estompé */
.theme { flex: none; display: inline-flex; align-items: center; justify-content: center; gap: 4px; padding: 0; border: 0; background: none; color: inherit; cursor: pointer; }
.theme svg { box-sizing: content-box; padding: 6px; opacity: .45; transition: opacity .25s ease, background .25s ease, transform .3s cubic-bezier(.3, .8, .25, 1); }
html.t-sombre .theme .theme-lune, html.t-clair .theme .theme-soleil { opacity: 1; background: color-mix(in srgb, currentColor 16%, transparent); }
/* au survol, c'est le thème où l'on irait qui s'allume et grossit */
@media (hover: hover) {
  html.t-sombre .theme:hover .theme-soleil, html.t-clair .theme:hover .theme-lune { opacity: 1; background: color-mix(in srgb, currentColor 30%, transparent); transform: scale(1.14); }
}

/* ---------- Le logo : tracé dans la page, pour pouvoir bouger. ----------
   Au survol, la barre se replie en un carré (le carré des étiquettes), « Studio » la suit, puis elle se retrace.
   site.js pose la classe « joue » et la retire à la fin : l'animation va toujours jusqu'au bout. */
.logo { display: block; width: auto; aspect-ratio: 703 / 241; overflow: visible; }
.logo-barre { transform-box: fill-box; transform-origin: 0 50%; }
.logo.joue .logo-barre { animation: logo-barre 1.15s cubic-bezier(.6, 0, .2, 1); }
.logo.joue .logo-studio { animation: logo-studio 1.15s cubic-bezier(.6, 0, .2, 1); }
@keyframes logo-barre { 0%, 100% { transform: scaleX(1); } 36%, 54% { transform: scaleX(.087); } }
@keyframes logo-studio { 0%, 100% { transform: translateX(0); } 36%, 54% { transform: translateX(-157px); } }

/* ---------- Le bandeau des logos : vingt et un logos, la boucle dure plus longtemps pour garder la même vitesse.
   Au survol il ne s'arrête plus : il accélère, puis reprend son allure quand la souris le quitte (site.js) ---------- */
.defile-piste { animation-duration: 100s; }
.defile:hover .defile-piste { animation-play-state: running; }

/* ---------- Les trois liens de l'en-tête : au survol, la case se remplit par le bas et le texte s'inverse ---------- */
.entete { --nav-plein: var(--p-texte); --nav-inverse: var(--p-inverse); }
.page-accueil .entete { --nav-plein: var(--a-texte); --nav-inverse: var(--a-inverse); }
.entete-nav a { position: relative; isolation: isolate; transition: color .25s ease; }
.entete-nav a::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--nav-plein); transform: scaleY(0); transform-origin: 50% 100%; transition: transform .35s cubic-bezier(.3, .8, .25, 1); }
@media (hover: hover) {
  .entete .entete-nav a:hover { opacity: 1; background: none; color: var(--nav-inverse); text-shadow: none; }
  .entete-nav a:hover::before { transform: scaleY(1); }
}
/* sur l'accueil, toute la case survolée prend la matière du bouton « Travailler avec nous » :
   le même blanc dans le thème sombre, le même orange dans le thème clair */
.page-accueil .entete-nav a::before { background: var(--v1-fond); box-shadow: var(--v1-ombre); -webkit-backdrop-filter: var(--flou); backdrop-filter: var(--flou); }
@media (hover: hover) { .page-accueil .entete .entete-nav a:hover { color: var(--v1-texte); } }

/* ---------- Les images de la nappe, sur l'accueil : au survol, un cadre se pose et l'image s'approche ---------- */
.noeud::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; box-shadow: inset 0 0 0 0 var(--a-texte); transition: box-shadow .25s ease; }
.noeud img { transition: transform .5s cubic-bezier(.3, .8, .25, 1); }
@media (hover: hover) {
  .noeud:hover::before { box-shadow: inset 0 0 0 4px var(--a-texte); }
  .noeud:hover img { transform: scale(1.12); }
}

/* ---------- « Concrètement » : ce qui s'anime, sur tous les écrans ----------
   site.js pose « anime » sur <html> quand il surveille l'entrée des blocs, puis « vu » sur chaque bloc arrivé à l'écran.
   Sans script, rien n'est caché. */
html.anime .promesses li { transition: opacity .6s ease, transform .7s cubic-bezier(.3, .8, .25, 1); transition-delay: calc(var(--n, 0) * 110ms); }
html.anime .promesses:not(.vu) li { opacity: 0; transform: translateY(28px); }
.promesses li:nth-child(2) { --n: 1; }
.promesses li:nth-child(3) { --n: 2; }
.promesses li:nth-child(4) { --n: 3; }
/* « millions d'euros » : une bande de satin orange passe sur les mots, et le texte y devient blanc */
.surligne { position: relative; display: inline-block; white-space: nowrap; }
.surligne::after { content: attr(data-texte); content: attr(data-texte) / ""; position: absolute; top: -.05em; bottom: -.07em; left: -.14em; right: -.14em; padding: .05em .14em 0;
  background: var(--satin-module); color: #fff; text-shadow: 0 1px 2px rgb(var(--ombre-orange) / .38); box-shadow: var(--lumiere); clip-path: inset(0); }
html.anime .surligne::after { clip-path: inset(0 100% 0 0); }
html.anime .concret-resultats.vu .surligne::after { clip-path: inset(0); transition: clip-path .9s cubic-bezier(.6, 0, .2, 1) .35s; }
/* la campagne en vidéo : elle remplit sa case, sans effet au survol */
.concret-preuve > a { display: block; overflow: hidden; }
.preuve-video { display: block; width: 100%; height: 100%; object-fit: cover; background: #000; }

/* ---------- Écran 3 : le canvas. Un fond uni, sombre dans les deux thèmes. ---------- */
.canvas { background: #11100E; color: #fff; }
.canvas #monde { --v1-fond: var(--verre-orange); }
/* les images du canvas : une ombre profonde, un reflet de vitre */
.carte { box-shadow: 0 40px 90px -30px rgb(0 0 0 / .85), 0 12px 28px -12px rgb(0 0 0 / .6); }
.carte:not(.video):not(.lance)::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(128deg, rgb(255 255 255 / .16) 0%, rgb(255 255 255 / 0) 30%); }
/* au survol, un cadre orange se pose sur l'image : elle se laisse ouvrir */
.carte::before { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; box-shadow: inset 0 0 0 0 var(--orange); transition: box-shadow .25s ease; }
@media (hover: hover) {
  #vue:not(.glisse) .carte:not(.manquant):hover::before { box-shadow: inset 0 0 0 14px var(--orange); }
  .zone-titre:hover { text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: .05em; text-underline-offset: .1em; }
  .cta-monde:hover { filter: brightness(1.15); }
}
.repere-gp { border-width: 3px; }
.loupe, .son { -webkit-backdrop-filter: blur(14px) saturate(160%); backdrop-filter: blur(14px) saturate(160%); background: rgb(17 16 14 / .6); }
/* de loin, ces pastilles font quelques pixels : leur flou ne se voit pas, mais chacune coûte une passe de rendu par image */
#monde.loin .loupe, #monde.loin .son, #monde.loin .lecture { -webkit-backdrop-filter: none; backdrop-filter: none; }
.carte.sonore .son { background: var(--verre-blanc); }
.cta-monde { background: var(--verre-orange); color: #fff; font-weight: 700; box-shadow: inset 0 46px 50px -46px rgb(255 255 255 / .5), 0 40px 70px -30px rgb(230 80 0 / .7); }
.lecture { width: 210px; height: 210px; margin: -105px 0 0 -105px; background: var(--verre-blanc); color: var(--encre); box-shadow: 0 40px 70px -24px rgb(0 0 0 / .7); -webkit-backdrop-filter: var(--flou); backdrop-filter: var(--flou); }
.carte.youtube:hover .lecture { background: var(--verre-orange); color: #fff; transform: none; }
.zone-resultat small { color: #fff; }
.zone-resultat small::before { content: ""; display: inline-block; width: .62em; height: .62em; margin-right: .5em; background: var(--orange); }

/* le bandeau : une barre de verre, à cases. En haut, les commandes de la page ; dessous, plus haute, la rangée des marques. */
.bandeau { gap: 0; padding: 0; overflow: hidden; border-bottom: 1px solid var(--b-ligne); background: var(--b-fond); color: var(--b-texte); -webkit-backdrop-filter: var(--b-flou); backdrop-filter: var(--b-flou); box-shadow: var(--b-ombre); }
.bandeau-haut { flex: none; gap: 0; height: 52px; align-items: stretch; padding-left: 22px; border-bottom: 1px solid var(--b-ligne); }
.bandeau-haut > * { align-self: center; }
@media (hover: none) {          /* au doigt : des cibles de 50 px de haut au moins, sans rien déplacer */
  .bandeau-haut .bouton-texte { align-self: stretch; }
  .bandeau-haut .bandeau-logo { padding: 10px 0; }
}
.bandeau-haut .bouton-texte { position: relative; color: var(--b-doux); margin-right: 18px; }
.bandeau-haut .bouton-texte svg { transition: transform .3s cubic-bezier(.3, .8, .25, 1); }
.bandeau-haut .bouton-texte::after { content: ""; position: absolute; left: 4px; right: 4px; bottom: 4px; height: 2px; background: currentColor; transform: scaleX(0); transform-origin: 0 50%; transition: transform .3s cubic-bezier(.3, .8, .25, 1); }
.bandeau-haut .bouton-texte:hover, #b-global.actif { color: var(--b-texte); }
@media (hover: hover) {
  .bandeau-haut .bouton-texte:hover::after { transform: scaleX(1); }
  .bandeau-haut .bouton-texte:hover svg { transform: translateX(-5px); }
}
#b-global.actif { font-weight: 700; }
.bandeau-haut .theme { align-self: stretch; margin-right: 18px; color: var(--b-texte); }
.bandeau-haut .bouton-plein { align-self: stretch; min-height: 0; padding: 0 22px; font-size: 14.5px; }
.bandeau-logo { margin-left: 4px; }
.bandeau-logo .logo { height: 30px; filter: var(--b-filtre-logo); }
/* la rangée des marques. Elle commence par une étiquette orange, « Choisissez un projet », qui reste en place quand la rangée défile :
   son fond est opaque, les noms qui passent dessous ne se voient pas au travers.
   Un client qui a plusieurs projets les déploie sur le côté, au clic sur son nom. */
.bandeau-nav { flex: 1; align-items: stretch; gap: 0; margin: 0; padding: 0; }
.nav-titre { position: sticky; left: 0; z-index: 2; flex: none; display: flex; align-items: center; gap: 10px; margin-right: 8px; padding: 0 18px 0 22px; white-space: nowrap;
  font-family: var(--large); font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: #fff; background: var(--orange-plein); box-shadow: var(--lumiere), 12px 0 22px -14px rgb(0 0 0 / .6); }
.nav-titre .court { display: none; }
.nav-titre svg { flex: none; }
.groupe, .groupe + .groupe { display: flex; align-items: stretch; gap: 0; flex: none; margin: 0; padding: 0; border: 0; transition: background .3s ease; }
.groupe.ouvert { background: var(--b-groupe); }
.puce { position: relative; isolation: isolate; overflow: hidden; display: inline-flex; align-items: center; gap: 7px; padding: 0 12px; font-size: 16px; font-weight: 500; color: var(--b-texte); transition: color .2s ease, background .25s ease; }
.puce::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--orange); transform: scaleX(0); transform-origin: 0 50%; transition: transform .3s cubic-bezier(.3, .8, .25, 1); }
@media (hover: hover) {
  .puce:hover { color: var(--b-texte); background: var(--b-survol); }
  .puce:hover::before { transform: scaleX(1); }
}
.puce.client svg { opacity: .7; }
.puce.client.actif { color: var(--b-texte); font-weight: 700; }
.sous { display: flex; align-items: stretch; max-width: 0; overflow: hidden; opacity: 0; visibility: hidden; transition: max-width .45s cubic-bezier(.3, .8, .25, 1), opacity .3s ease, visibility 0s .45s; }      /* replié : hors de la tabulation */
.groupe.ouvert .sous { max-width: 620px; opacity: 1; visibility: visible; transition-delay: 0s; }
.sous .puce { font-size: 14.5px; color: var(--b-doux); }
.puce.actif:not(.client) { background: var(--verre-orange); color: #fff; font-weight: 700; box-shadow: var(--lumiere); }
.puce.actif:not(.client)::before { content: none; }
/* quand la rangée dépasse l'écran : une case à flèche, à droite, fait défiler la suite (canvas.js la montre et la cache) */
.nav-suite { position: absolute; right: 0; top: 53px; bottom: 0; z-index: 3; display: none; align-items: center; justify-content: center; width: 46px; padding: 0; border: 0; border-left: 1px solid var(--b-ligne);
  background: var(--b-plein); color: var(--b-texte); cursor: pointer; box-shadow: -16px 0 22px -12px rgb(0 0 0 / .45); transition: background .25s ease, color .25s ease; }
.nav-suite svg { transition: transform .3s cubic-bezier(.3, .8, .25, 1); }
.bandeau.suite-d .nav-suite { display: flex; }
@media (hover: hover) {
  .nav-suite:hover { background: var(--verre-orange); color: #fff; }
  .nav-suite:hover svg { transform: translateX(4px); }
}
/* l'entrée dans le canvas : les noms arrivent l'un après l'autre (.entree), une fois ; l'étiquette orange, elle, ne bouge pas.
   Puis le bandeau appelle (.appel) : un reflet parcourt la rangée et la flèche de l'étiquette bat, en boucle,
   jusqu'au premier clic ou zoom du visiteur. canvas.js retire alors .appel à la fin du passage en cours, sans coupure. */
.bandeau::after { content: ""; position: absolute; left: 0; top: 52px; bottom: 0; width: 34%; pointer-events: none; background: linear-gradient(100deg, transparent, var(--b-reflet) 50%, transparent); transform: translateX(-110%); }
.bandeau.entree .bandeau-nav > :not(.nav-titre) { animation: puce-entree .55s cubic-bezier(.3, .8, .25, 1) both; animation-delay: calc(var(--i, 0) * 45ms + .1s); }
.bandeau.appel::after { animation: bandeau-reflet 2.4s cubic-bezier(.4, 0, .2, 1) .45s infinite both; }
.bandeau.appel .nav-titre svg { animation: nav-fleche 1.2s cubic-bezier(.4, 0, .2, 1) .45s infinite; }
@keyframes bandeau-reflet { 0% { transform: translateX(-110%); } 60%, 100% { transform: translateX(310%); } }
@keyframes puce-entree { from { opacity: 0; transform: translateY(18px); } }
@keyframes nav-fleche { 0%, 100% { transform: none; } 50% { transform: translateX(7px); } }

/* ce qui flotte au-dessus du canvas : les commandes et les deux messages, en orange sombre, texte blanc ; la légende, sur une plaque sombre.
   Chacun a sa propre couche de rendu (will-change) et le monde est isolé dans la sienne : sans cela, sur iPhone, les images du canvas
   passaient par-dessus les commandes et le message pendant qu'on glissait. */
#vue { z-index: 0; isolation: isolate; }
.commandes, .invite, .astuce, .aide { will-change: transform; -webkit-backface-visibility: hidden; backface-visibility: hidden; }
.commandes, .invite, .astuce { background: var(--orange-sombre); border: 0; -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: var(--ombre-flottant); color: #fff; }
.commandes { gap: 0; padding: 0; }
.commandes button { width: 48px; height: 48px; font-size: 24px; color: #fff; transition: background .2s ease; }
.commandes button:hover { background: none; }          /* au doigt, le survol reste collé au bouton touché : il ne s'allume qu'à l'appui */
.commandes button:active { background: rgb(255 255 255 / .26); }
@media (hover: hover) { .commandes button:hover { background: rgb(255 255 255 / .26); } }
.commandes .pct { min-width: 62px; color: #fff; font-size: 13.5px; font-weight: 700; }
.separateur { height: 48px; margin: 0; background: rgb(255 255 255 / .34); }
/* « Promenez-vous » : comment se déplacer. Une croix le ferme.
   Il arrive tout de suite, au milieu du canvas (.centre : canvas.js calcule le décalage --dx, --dy depuis sa place de repos),
   y reste quelques secondes, puis glisse à sa place, au-dessus des commandes. */
.invite { flex-wrap: nowrap; align-items: stretch; gap: 0; padding: 0; font-size: 15.5px; transition: opacity .45s ease, transform .9s cubic-bezier(.3, .8, .25, 1); }
.invite.centre, .invite.centre.cache { transform: translate(var(--dx, 0px), var(--dy, 0px)); }
.invite.sans-transition { transition: none; }
.invite p { margin: 0; padding: 14px 8px 14px 22px; max-width: none; }
.invite strong { margin-right: .35em; color: #fff; font-weight: 700; }
.invite span { color: rgb(255 255 255 / .94); }
/* la croix des deux messages : une case carrée, au bout */
.fermer { flex: none; display: flex; align-items: center; justify-content: center; width: 46px; min-height: 46px; padding: 0; border: 0; background: none; color: #fff; cursor: pointer; pointer-events: auto; transition: background .2s ease; }
.fermer:hover { background: rgb(255 255 255 / .26); }
.fermer svg { transition: transform .3s cubic-bezier(.3, .8, .25, 1); }
@media (hover: hover) { .fermer:hover svg { transform: scale(1.2); } }
.invite.cache .fermer, .astuce.cache .fermer, html:not(.mode-canvas) .fermer { pointer-events: none; }
/* « Cliquez sur un nom » : une petite étiquette accrochée sous le bandeau, à gauche, sous « Choisissez un projet ». Ordinateur seulement.
   Elle se déroule vers le bas à chaque ouverture du canvas ; elle ne glisse pas derrière le bandeau, dont le verre la laisserait voir. */
.astuce { position: absolute; left: 0; top: var(--bandeau); z-index: 19; display: flex; align-items: stretch; pointer-events: none; font-size: 14.5px; font-weight: 500; clip-path: inset(0 -60px -60px 0);
  transition: clip-path .45s cubic-bezier(.3, .8, .25, 1), opacity .2s ease; }
.astuce p { margin: 0; padding: 12px 6px 12px 0; max-width: none; white-space: nowrap; }
.astuce-fleche { flex: none; align-self: center; margin: 0 12px 0 22px; animation: astuce-fleche 1.1s cubic-bezier(.4, 0, .2, 1) infinite; }
.astuce.cache { opacity: 0; clip-path: inset(0 -60px 100% 0); transition: clip-path .3s ease, opacity .25s ease .1s; }
.astuce.cache .astuce-fleche { animation: none; }
html:not(.mode-canvas) .astuce { opacity: 0; }
@keyframes astuce-fleche { 0%, 100% { transform: none; } 50% { transform: translateY(-5px); } }
/* la légende : lisible, sur une plaque sombre de la hauteur des commandes ; les touches en blanc, texte noir */
.aide { left: 18px; bottom: calc(18px + env(safe-area-inset-bottom)); display: flex; align-items: center; height: 48px; margin: 0; padding: 0 6px; max-width: none; white-space: nowrap; font-size: 14.5px; font-weight: 500; color: #fff;
  background: rgb(17 16 14 / .92); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .16), 0 18px 40px -16px rgb(0 0 0 / .85); }
.aide > * { display: flex; align-items: center; gap: 7px; height: 22px; padding: 0 14px; }
.aide > * + * { border-left: 1px solid rgb(255 255 255 / .22); }
.aide kbd { padding: 3px 8px; font-size: 13px; font-weight: 700; line-height: 1.25; background: #fff; color: var(--encre); }
.aide a { color: rgb(255 255 255 / .82); text-decoration: underline; text-underline-offset: 3px; }
.aide a:hover { color: #fff; }
/* sur un écran d'ordinateur étroit, la légende laisse la place aux commandes : le lien des mentions légales reste dans le pied de l'accueil */
@media (max-width: 1100px) { .aide a { display: none; } }
/* à l'ouverture du canvas (.arrivee, posé par canvas.js), la légende puis les commandes montent en place, un peu après le bandeau : elles se remarquent */
.canvas.arrivee .aide { animation: flottant-arrive .9s cubic-bezier(.3, .8, .25, 1) 1.2s backwards; }
.canvas.arrivee .commandes { animation: flottant-arrive .9s cubic-bezier(.3, .8, .25, 1) 1.5s backwards; }
@keyframes flottant-arrive { from { opacity: 0; translate: 0 22px; } }
/* au doigt ou sur petit écran : ni légende de clavier, ni message du bandeau (l'invitation dit déjà « touchez un projet ») */
@media (hover: none), (max-width: 900px) { .aide, .astuce { display: none; } }

/* ---------- Le formulaire Tally de la page Contact ----------
   Ses champs sont ceux de Tally, à texte noir : il est posé sur une page blanche, dans les deux thèmes. */
.contact-formulaire.avec-tally { background: #fff; color: var(--encre); }
.contact-formulaire.avec-tally > .repere { color: var(--encre); }
.contact-formulaire.avec-tally .contact-note { margin-top: 6px; color: rgb(17 16 14 / .6); }
.contact-formulaire.avec-tally .contact-note a { color: rgb(17 16 14 / .78); }
.contact-tally { display: block; width: 100%; min-height: 420px; border: 0; }

@media (prefers-reduced-transparency: reduce) {
  .bouton, .bandeau, .lecture { -webkit-backdrop-filter: none; backdrop-filter: none; }
  html.t-sombre { --b-fond: var(--b-plein); }          /* sans flou, un fond translucide laisse passer le canvas derrière les noms : fond plein */
  html.t-sombre .hero-cadre, html.t-sombre .page-accueil .entete { --v2-fond: rgb(48 14 0 / .82); }
}

/* ---------- Ce qui n'est pas à l'écran ne se parcourt pas ----------
   Dans le canvas, l'accueil est dessous : il sort de la tabulation et de la lecture d'écran, et ses défilements s'arrêtent.
   Hors du canvas, ce sont les commandes et la légende du canvas qui en sortent. */
html.mode-canvas .hero, html.mode-canvas .concret { visibility: hidden; }
html.mode-canvas .defile-piste, html.mode-canvas .apercu-piste { animation-play-state: paused; }
html:not(.mode-canvas) .commandes, html:not(.mode-canvas) .aide { visibility: hidden; }

/* ===== Sans JavaScript =====
   Le gabarit pose la classe « js » sur <html>, et la retire si les scripts du site ne sont pas arrivés (pare-feu, coupure de réseau).
   Sans elle, que JavaScript soit coupé ou que les scripts manquent, la page reste entière : thème sombre, roue posée sur son premier mot,
   logos et nappe d'images qui défilent par la feuille de style seule. Seul le canvas ne peut pas tourner : il laisse la place
   à la liste des projets écrite dans la page (.sans-script, build.py : repli), et l'adresse d'un projet montre ce projet, pas l'accueil.
   L'interrupteur des thèmes, qui ne répondrait pas, n'est pas montré. */
html:not(.js) .canvas, html:not(.js) .theme { display: none; }
html:not(.js) body:not([data-cible=""]) .hero, html:not(.js) body:not([data-cible=""]) .concret { display: none; }
.sans-script { padding: var(--u) calc(var(--x0) + var(--u) + var(--pad)) var(--u); background: var(--p-fond); color: var(--p-texte); }      /* aligné sur la deuxième colonne, comme le logo */
body:not([data-cible=""]) .sans-script { min-height: 100svh; padding-top: calc(2 * var(--u)); }      /* sous l'en-tête */
.sans-script h2 { margin: 0 0 .45em; font-size: clamp(28px, 3.4vw, 46px); font-weight: 700; line-height: 1.1; text-wrap: balance; }
.sans-script h3 { margin: 1.8em 0 .2em; font-size: 21px; font-weight: 700; line-height: 1.25; }
.sans-script p { max-width: 64ch; margin: 0 0 .7em; color: var(--p-doux); }
.sans-script p strong { color: var(--p-texte); font-weight: 700; }
.sans-script .repere { margin-bottom: 1em; color: var(--p-texte); }
.sans-script a { color: inherit; }
.sans-script .ss-note { font-size: 14.5px; color: var(--p-discret); }
.ss-medias { columns: 3 260px; column-gap: 14px; margin: 1.4em 0 2.6em; }
.ss-medias figure { break-inside: avoid; margin: 0 0 14px; }
.ss-medias a { display: block; position: relative; }
.ss-medias img, .ss-medias video { display: block; width: 100%; height: auto; background: var(--champ); }
.ss-medias figcaption { margin-top: 6px; font-size: 13.5px; line-height: 1.35; color: var(--p-discret); }
.ss-yt::after { content: "Vidéo sur YouTube"; position: absolute; left: 0; bottom: 0; padding: 9px 14px; background: #11100E; color: #fff; font-size: 13px; font-weight: 700; line-height: 1.2; }
.ss-projets { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 22px 14px; margin: 1.4em 0 2.4em; padding: 0; list-style: none; }
.ss-projets a { display: block; text-decoration: none; }
.ss-projets img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; background: var(--champ); }
.ss-projets strong { display: block; margin-top: 9px; font-size: 16px; font-weight: 700; line-height: 1.3; }
.ss-projets a:hover strong, .ss-liens a:hover { text-decoration: underline; }
.ss-liens { font-size: 14.5px; }
@media (max-width: 900px) {
  .sans-script { padding-left: calc(var(--x0) + var(--pad)); padding-right: calc(var(--x0) + var(--pad)); }
  body:not([data-cible=""]) .sans-script { padding-top: calc(2.6 * var(--u)); }      /* l'en-tête du téléphone tient sur deux rangées */
  .ss-projets { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Le seuil : la fin de l'accueil, une bande courte avec une jauge (22/11/2026) ----------
   Sur le fond du canvas dans les deux thèmes. Texte blanc ; l'orange en fond seulement (la jauge, le bouton).
   --p (0 à 1) : le remplissage, posé par site.js à chaque image. */
.seuil { --p: 0; position: relative; background: #11100E; color: #fff; box-shadow: inset 0 1px 0 rgb(255 255 255 / .08); }      /* un filet marque la fin de la page sur le thème sombre */
.seuil .repere { color: rgb(255 255 255 / .74); }
.seuil .repere::before { background: var(--orange); }
.seuil h2 { font-weight: 700; line-height: 1.08; letter-spacing: -.012em; text-wrap: balance; transition: opacity .3s ease; }
/* Le bouton est la jauge, de bord à bord. Au repos : un orange assourdi, une lueur qui passe, la flèche qui respire.
   En descendant : l'orange vif le remplit de gauche à droite, la flèche descend et grossit avec lui. */
.seuil-entrer { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  text-decoration: none; font-weight: 700; color: var(--blanc); background: var(--satin-module);
  box-shadow: inset 0 18px 20px -16px rgb(255 255 255 / .4), 0 -18px 40px -24px rgb(255 111 0 / .45); transition: transform .16s ease; }
.seuil-entrer::before { content: ""; position: absolute; inset: 0; z-index: 0; background: rgb(17 16 14 / .58); transition: background .3s ease; }      /* le voile : le remplissage passe par-dessus */
.seuil-rempli { position: absolute; inset: 0; z-index: 1; transform-origin: 0 50%; transform: scaleX(var(--p)); background: var(--satin-module);
  box-shadow: 14px 0 26px rgb(255 160 60 / .55); }
.seuil-mots, .seuil-fleche { position: relative; z-index: 2; text-shadow: 0 1px 10px rgb(80 20 0 / .45); }
.seuil-fleche { display: grid; place-items: center; }
.seuil-fleche svg { display: block; transform: translateY(calc(var(--p) * 9px)) scale(calc(1 + var(--p) * .35)); }
html.anime .seuil:not(.en-cours) .seuil-fleche { animation: seuil-souffle 1.6s cubic-bezier(.45, 0, .3, 1) infinite; }
@keyframes seuil-souffle { 0%, 100% { transform: translateY(-3px); } 50% { transform: translateY(5px); } }
html.anime .seuil:not(.en-cours) .seuil-entrer::after { content: ""; position: absolute; inset: 0; z-index: 1; width: 22%; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgb(255 255 255 / .22), transparent); animation: seuil-lueur 2.8s cubic-bezier(.45, 0, .3, 1) infinite; }
@keyframes seuil-lueur { from { transform: translateX(-110%); } to { transform: translateX(560%); } }
.seuil-entrer:hover::before { background: rgb(17 16 14 / .38); }
.seuil-entrer:active { transform: scale(.995); }
.seuil-entrer:focus-visible { outline: 2px solid #fff; outline-offset: -4px; }
@media (prefers-reduced-motion: reduce) { html.anime .seuil:not(.en-cours) .seuil-fleche, html.anime .seuil:not(.en-cours) .seuil-entrer::after { animation: none; } }

/* Le canvas sort du fil de la page tant qu'il est fermé : la page finit sur le seuil. Il garde la taille de l'écran
   (fixe, caché, derrière la page), pour que ses mesures et son préchargement restent justes. */
html.js:not(.mode-canvas) .canvas { position: fixed; inset: 0; height: auto; z-index: -1; visibility: hidden; pointer-events: none; }
/* entrée par la jauge : le canvas monte doucement, au lieu d'apparaître d'un coup */
html.entree-douce.mode-canvas .canvas { animation: canvas-entree .5s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes canvas-entree { from { opacity: 0; transform: translateY(5vh); } }
@media (prefers-reduced-motion: reduce) { html.entree-douce.mode-canvas .canvas { animation: none; } }
html.mode-canvas .seuil { visibility: hidden; }
html:not(.js) .seuil { display: none; }
