/* =========================================================
   NoctiPulse : GENÈVE EN VOLUME, l'objet continu de l'accueil (city.js)
   1. Le canevas unique, fixe, derrière toute la page ; son image fixe de repli
   2. Le défilement lissé (Lenis) : règles de cohabitation
   3. Les temps (beats) : sections à texte collant, titres 120-160 px
   4. Le héros : la question à l'heure de Genève, bas-gauche, la ville en entier
   5. Les lieux : infobulle d'un pin, fiche d'un lieu
   Couleurs = charte : nuit #192134 (sol C « Heure bleue » de la carte, 2026-11-02), rose #FF2D7A (gens seulement), or #FFB800 (Premium seul).
   ========================================================= */

/* ---------- 1. Le canevas ---------- */
/* toutes les pages (E4) : la même ville en fond ; l'accueil (--city) sans voile, les autres pages gardent
   le voile de lecture de leur ambiance (site, read, stage), qui s'ouvre sous le pointeur */
.np-ambient--3d {
  bottom: auto;
  height: 100vh;
  height: 100lvh;
  background: #192134;
}
.np-ambient--city { --amb-veil: transparent; transition: none; }
.np-ambient--city::after { content: none; }
.np-ambient--3d canvas {
  background: #192134;
  transition: opacity 0.9s cubic-bezier(0.23, 1, 0.32, 1);
}
.np-ambient--3d canvas.is-hidden { opacity: 0; }
/* l'image fixe : appareils modestes, mouvement réduit, sans WebGL2, sans JS.
   ⚠️ `picture.np-city-still`, jamais `.np-city-still` seul (2026-10-19) : main.js pose la MÊME classe
   sur <html> pour dire « repli image fixe », et `.np-city-still { display: none }` s'appliquait alors à
   <html> entier : mouvement réduit, ≤ 2 cœurs / 2 Go, Économie de données, sans WebGL2 = page BLANCHE
   (toutes les pages, depuis la refonte du 2026-10-13). diag.mjs tourne en mouvement réduit et n'y voyait
   rien, par vacuité : il vérifie désormais qu'une page a un corps. */
picture.np-city-still {
  position: absolute;
  inset: 0;
  display: none;
}
/* même garde : `.np-city-still img` étirait TOUTES les images de la page (logo 34 → 128 px) sous <html.np-city-still> */
picture.np-city-still img { display: block; width: 100%; height: 100%; object-fit: cover; }
html.lite .np-city-still, html.rm .np-city-still, html.np-city-still .np-city-still, html.no-js .np-city-still { display: block; }
html.lite .np-ambient--3d canvas, html.rm .np-ambient--3d canvas, html.np-city-still .np-ambient--3d canvas { display: none; }
/* pendant le film (lecteur unique), la ville se retire */
.film-on .np-ambient--3d canvas { opacity: 0.3; }
/* une scène des pages (la porte du Pickwick, la Rade) : le voile de lecture se lève, la ville en entier */
.np-ambient--3d::after { transition: opacity 0.6s cubic-bezier(0.23, 1, 0.32, 1); }
html.np-scene .np-ambient--3d::after { opacity: 0; }
.beat-title em.seq-gold { color: #FFB800; }

/* ---------- 2. Lenis ---------- */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

/* ---------- 3. Les temps ---------- */
.beat { position: relative; }
.beat--tall { height: 200vh; height: 200svh; }
/* Refonte de l'ouverture (2026-10-22) : « comment ça marche » porte TROIS écrans, un tiers de défilement
   chacun ; « pourquoi » est une seule idée, un seul écran tenu. */
.beat--phone.beat--tall { height: 250vh; height: 250svh; } /* deux écrans : chacun tient un vrai temps de lecture */
.beat--phone.beat--how { height: 300vh; height: 300svh; }
.beat--why { height: 150vh; height: 150svh; }
/* une respiration (Organisateurs, la Rade à 21 h 30) : la ville le temps d'une phrase, puis la valeur */
.beat--brief { height: 130vh; height: 130svh; }
.beat--why .beat-copy { max-width: min(46rem, 100%); }
.beat--why .beat-lead { max-width: 42ch; }
.beat-lead--answer { margin-top: 18px; font-size: clamp(1.18rem, 1.7vw, 1.5rem); line-height: 1.35; color: #fff; }
.beat-lead--answer strong { color: #FFC2D8; font-weight: 800; }
/* scènes à téléphone (« comment ça marche », « tu choisis ») : le téléphone est déjà à moitié entré quand la section arrive et l'est tout à fait à
   9 % (au lieu de 42 %) — sinon la carte des lueurs, le premier écran, défilait pendant que l'iPhone montait encore. */
.beat--phone .beat-device { --k: clamp(0, calc(0.45 + var(--p, 0) * 6), 1); }
.beat-pin {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  display: flex;
  align-items: flex-end;
  padding-bottom: clamp(40px, 9vh, 96px);
  overflow: clip;
}
.beat-copy { position: relative; max-width: 860px; }
/* « Les battements » tient sur une ligne jusqu'à 9rem (sinon « Les » reste seul en tête, WebKit) */
.nuit-copy { max-width: 1180px; }
.beat-title {
  font-family: var(--font-display);
  font-size: clamp(2.7rem, 7.6vw, 9rem);
  font-weight: 800;
  line-height: 0.94;
  letter-spacing: -0.04em;
  margin: 0 0 0.22em;
  text-wrap: balance;
  text-shadow: 0 2px 40px rgba(25, 33, 52, 0.7);
}
.beat-title em { font-style: normal; color: var(--rose); }
.beat-lead {
  font-size: clamp(1.08rem, 1.3vw, 1.34rem);
  line-height: 1.5;
  color: #D6D3E8;
  max-width: 44ch;
  margin: 0;
  text-wrap: pretty;
  text-shadow: 0 1px 18px rgba(25, 33, 52, 0.9);
}
.beat-lead strong { color: #fff; font-weight: 600; }
.beat-hint {
  margin: 18px 0 0;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #B4B1CC;
}
.beat-hint::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 10px; border-radius: 50%; background: var(--rose); box-shadow: 0 0 10px rgba(255, 45, 122, 0.8); vertical-align: 1px; }
@media (hover: none) { .beat-hint--fine { display: none; } }
/* un voile bas, local, pour la lecture : jamais la ville effacée */
.beat-pin::before {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 62%;
  pointer-events: none;
  /* le voile retombe à 0 sur le dernier 8 % : quand la section s'en va, son bord bas ne trace plus une
     ligne nette sur la ville (vu en production le 2026-10-22, une bande à arête vive entre deux sections) */
  background: linear-gradient(180deg, rgba(25, 33, 52, 0) 0%, rgba(25, 33, 52, 0.55) 56%, rgba(25, 33, 52, 0.78) 84%, rgba(25, 33, 52, 0.78) 92%, rgba(25, 33, 52, 0) 100%);
}
.home main > section.beat { background: none; }

/* ---------- 4. Le héros ---------- */
.hx-pin {
  align-items: flex-end;
  padding: calc(68px + clamp(28px, 6vh, 64px)) 0 clamp(40px, 9vh, 96px);
}
.hx-inner { display: block; min-height: 0; }
.hx-copy { max-width: 1100px; min-height: 0; }
@media (min-width: 981px) {
  .hx-title { min-height: 2.82em; }
  /* la question de jour et celle du petit matin tiennent sur DEUX lignes : réserver trois lignes (la
     nuit) laissait un trou d'une ligne entre le titre et le sous-titre toute la journée (2026-10-19) */
  html.np-t-day .hx-title, html.np-t-dawn .hx-title { min-height: 1.88em; }
}
@media (min-width: 1200px) { .hx-copy { min-height: 0; } }
.hx-veil {
  background:
    linear-gradient(180deg, rgba(25, 33, 52, 0) 42%, rgba(25, 33, 52, 0.5) 68%, rgba(25, 33, 52, 0.82) 84%, rgba(25, 33, 52, 0.82) 93%, rgba(25, 33, 52, 0) 100%),
    linear-gradient(90deg, rgba(25, 33, 52, 0.42) 0%, rgba(25, 33, 52, 0) 60%);
}
.hx-stage { background: none; }
.hx-field { display: none; }
.hx-title {
  font-size: clamp(3rem, 8.4vw, 10rem);
  line-height: 0.94;
  letter-spacing: -0.04em;
  max-width: none;
  margin: 0 0 0.26em;
  text-shadow: 0 2px 40px rgba(25, 33, 52, 0.75);
}
.hx-title em { text-shadow: 0 0 42px rgba(255, 45, 122, 0.3); }
/* la question change avec l'heure de Genève (classe posée dans la tête avant le premier rendu) :
   avant 19 h « se passera », la nuit « se passe vraiment », au petit matin « s'est passée » */
.hx-q { display: none; }
.hx-q--night { display: inline; }
html.np-t-day .hx-q--night, html.np-t-dawn .hx-q--night { display: none; }
html.np-t-day .hx-q--day { display: inline; }
html.np-t-dawn .hx-q--dawn { display: inline; }
.hx-sub { font-size: clamp(1.1rem, 1.4vw, 1.4rem); max-width: 40ch; margin-bottom: 28px; text-shadow: 0 1px 18px rgba(25, 33, 52, 0.9); color: #D6D3E8; }
.hx-cta { max-width: 560px; }
.hx-clock-top {
  position: absolute;
  top: calc(68px + clamp(16px, 3vh, 32px));
  right: clamp(16px, 4vw, 48px);
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #C9C6DE;
  font-variant-numeric: tabular-nums;
  pointer-events: none;
}
.hx-clock-top i { width: 7px; height: 7px; border-radius: 50%; background: var(--rose); box-shadow: 0 0 10px rgba(255, 45, 122, 0.8); animation: np-breath 2.8s ease-in-out infinite; }
@keyframes np-breath { 0%, 100% { opacity: 0.55; transform: scale(0.9); } 50% { opacity: 1; transform: scale(1.15); } }
.hx-clock-top[hidden] { display: none; }
.hx-scrollcue {
  position: absolute;
  left: 50%;
  bottom: clamp(14px, 3vh, 28px);
  width: 1px;
  height: 44px;
  margin: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.5) 100%);
  transform: translateX(-50%);
  pointer-events: none;
  animation: np-cue 2.4s cubic-bezier(0.23, 1, 0.32, 1) infinite;
}
@keyframes np-cue { 0% { transform: translateX(-50%) scaleY(0); transform-origin: top; opacity: 0; } 30% { opacity: 1; } 70% { transform: translateX(-50%) scaleY(1); transform-origin: top; } 100% { transform: translateX(-50%) scaleY(1); opacity: 0; } }
@media (max-width: 980px) {
  .hx-title br { display: none; }
  .hx-clock-top { display: none; }
}
/* au téléphone, le texte du héros est au milieu de la ville : un voile de lecture DERRIÈRE lui (dégradé,
   aucun flou — le flou d'arrière-plan sur du WebGL est ce qui fait ramer un iPhone), le champ et le bouton
   sur fond plein, les mentions relevées (contraste ≥ 7:1) ; la ville et le Jet d'eau restent libres dessous */
@media (max-width: 760px) {
  /* voile de lecture plein sur toute la bande texte + formulaire (il ne retombe qu'au tout dernier cran, où
     le Jet d'eau respire) ; aucun flou (le flou d'arrière-plan sur du WebGL fait ramer l'iPhone) */
  .hx-veil { background: linear-gradient(180deg, rgba(25, 33, 52, 0.34) 0%, rgba(25, 33, 52, 0.84) 28%, rgba(25, 33, 52, 0.84) 84%, rgba(25, 33, 52, 0) 100%); }
  .hx-cta .beta-form input { background: rgba(10, 8, 22, 0.95); border-color: rgba(201, 198, 222, 0.42); color: #fff; }
  .hx-cta .beta-form input::placeholder { color: #C7C4DE; opacity: 1; }
  .hx-cta .beta-hint, .hx-cta .hx-founders, .hx-cta .hx-cities { color: #E4E1F4; }
  .hx-sub { color: #EFEDF8; text-shadow: 0 1px 20px rgba(25, 33, 52, 0.95); }
}
@media (max-height: 560px) { .hx-scrollcue { display: none; } }

/* ---------- 3 bis. Les temps 3 à 5 ---------- */
.beat-actions { margin: 22px 0 0; }
.beat-btn { min-height: 48px; padding: 0 22px; border-radius: 999px; border: 1.5px solid rgba(255, 184, 0, 0.7); color: #fff; background: transparent; font-weight: 600; font-size: 0.98rem; cursor: pointer; transition: border-color 0.2s ease, transform 0.16s cubic-bezier(0.23, 1, 0.32, 1); }
.beat-btn:hover { border-color: #FFB800; }
.beat-btn:active { transform: scale(0.97); }
.beat-btn:focus-visible { outline: 2px solid #FFB800; outline-offset: 3px; }
/* le repère du pin désigné : un anneau or autour du pin RÉEL, le nom à côté, un bouton (44 px) */
.np-pin-focus {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 55;
  width: 44px;
  height: 44px;
  margin: -22px 0 0 -22px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0s linear 0.3s;
}
.np-pin-focus.is-on { opacity: 1; visibility: visible; transition-delay: 0s; }
.np-pin-focus i { position: absolute; inset: 8px; border-radius: 50%; border: 1.5px solid rgba(201, 206, 216, 0.9); animation: np-focus 2.2s cubic-bezier(0.23, 1, 0.32, 1) infinite; }
.np-pin-focus.is-gold i { border-color: #FFB800; box-shadow: 0 0 18px rgba(255, 184, 0, 0.45); }
@keyframes np-focus { 0% { transform: scale(0.7); opacity: 0.9; } 70% { opacity: 0; } 100% { transform: scale(2.1); opacity: 0; } }
.np-pin-focus span {
  position: absolute;
  left: 50%;
  top: -14px;
  /* --fdx : l'étiquette reste dans l'écran (main.js) ; .is-below : sous l'anneau quand un texte est au-dessus ;
     .is-bare : l'anneau seul quand il n'y a de place ni au-dessus ni dessous */
  translate: calc(-50% + var(--fdx, 0px)) -100%;
  padding: 7px 12px;
  border-radius: 10px;
  background: rgba(17, 23, 37, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-top-color: rgba(255, 255, 255, 0.24);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 600;
  white-space: nowrap;
}
.np-pin-focus.is-gold span { border-color: rgba(255, 184, 0, 0.45); border-top-color: rgba(255, 184, 0, 0.7); }
.np-pin-focus.is-below span { top: auto; bottom: -14px; translate: calc(-50% + var(--fdx, 0px)) 100%; }
.np-pin-focus.is-bare span { visibility: hidden; }
.np-pin-focus:focus-visible i { outline: 2px solid #fff; outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .np-pin-focus i { animation: none; transform: scale(1.3); opacity: 0.9; } }

/* Les amis du récit (temps 2 de l'accueil) : la pastille de l'app — trois initiales en vert ami (#00E87A, le
   FRIEND_GREEN de l'app), les noms, l'état de présence (« En route » / « Sur place · {lieu} »). Elle suit le
   trio à l'écran (main.js écrit son transform), posée au-dessus de lui, dessous si un texte est au-dessus.
   À l'arrivée devant un lieu : un battement (pop-a / pop-b relancent la même animation). */
.np-friends {
  position: fixed; left: 0; top: 0; z-index: 54; pointer-events: none;
  opacity: 0; visibility: hidden;
  transition: opacity 0.35s cubic-bezier(0.23, 1, 0.32, 1), visibility 0s linear 0.35s;
}
.np-friends.is-on { opacity: 1; visibility: visible; transition-delay: 0s; }
.np-friends > * { position: relative; }
.np-fr-av, .np-fr-tx { position: absolute; left: 0; top: 0; }
/* (2026-10-22) tout se place par TRANSLATE, jamais par top / centrage en % : un changement de top ou de
   largeur centrée comptait comme décalage de mise en page (CLS) ; --tx = le bord gauche du texte, en px,
   calculé par main.js sur sa largeur mesurée (une mesure par changement de texte) */
.np-friends { --dy-av: -10px; --dy-tx: -44px; }
.np-fr-av { display: flex; translate: -50% calc(-100% + var(--dy-av)); }
.np-fr-av i {
  display: grid; place-items: center; width: 27px; height: 27px; margin-left: -3px; border-radius: 50%;
  background: #0E2A1E; border: 2px solid #00E87A; color: #CFFFE6;
  font: 700 0.62rem/1 var(--font-display); font-style: normal; letter-spacing: 0.02em;
  box-shadow: 0 0 0 2px rgba(17, 23, 37, 0.9), 0 0 14px rgba(0, 232, 122, 0.45);
}
.np-fr-av i:first-child { margin-left: 0; }
.np-fr-tx {
  translate: var(--tx, -50%) calc(-100% + var(--dy-tx));
  display: grid; gap: 1px; padding: 6px 11px 7px; border-radius: 12px; white-space: nowrap; text-align: center;
  background: rgba(10, 22, 18, 0.9); border: 1px solid rgba(0, 232, 122, 0.4); border-top-color: rgba(0, 232, 122, 0.7);
  color: #fff; font-size: 0.82rem; line-height: 1.2;
  box-shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.8);
}
.np-fr-tx b { font-family: var(--font-display); font-weight: 700; font-size: 0.86rem; }
.np-fr-tx span { color: #9FF5C9; font-size: 0.74rem; font-weight: 600; letter-spacing: 0.01em; }
.np-friends.is-here .np-fr-tx { border-color: rgba(0, 232, 122, 0.7); box-shadow: 0 0 0 1px rgba(0, 232, 122, 0.25), 0 10px 30px -12px rgba(0, 0, 0, 0.8), 0 0 24px rgba(0, 232, 122, 0.25); }
.np-friends.is-here .np-fr-tx span { color: #00E87A; }
/* grand écran : la pastille à l'échelle de la page (elle restait à la taille d'un téléphone) */
@media (min-width: 981px) {
  .np-fr-av i { width: 32px; height: 32px; font-size: 0.7rem; }
  .np-friends { --dy-tx: -50px; }
  .np-fr-tx { padding: 8px 14px 9px; font-size: 0.95rem; }
  .np-fr-tx b { font-size: 1.02rem; }
  .np-fr-tx span { font-size: 0.86rem; }
  .np-friends.is-below { --dy-tx: 50px; }
}
/* la bulle d'un lieu Premium (Établissements) : l'OR de l'app (or = ce qui est payé), sans initiales */
.np-friends.is-gold .np-fr-tx { border-color: rgba(255, 184, 0, 0.55); border-top-color: rgba(255, 184, 0, 0.85); background: rgba(28, 22, 8, 0.92); }
.np-friends.is-gold .np-fr-tx span { color: #FFD27A; }
.np-friends.is-gold.is-pulse .np-fr-tx { border-color: rgba(255, 45, 122, 0.6); }
.np-friends.is-gold.is-pulse .np-fr-tx span { color: #FF8DB6; }
.np-friends .np-fr-av:empty { display: none; }
/* un groupe d'inconnus : anonyme, en rose (la couleur des gens dehors dans l'app), plus petit qu'un ami */
.np-friends.is-anon .np-fr-tx { border-color: rgba(255, 45, 122, 0.45); border-top-color: rgba(255, 45, 122, 0.7); background: rgba(26, 10, 22, 0.88); padding: 4px 9px 5px; font-size: 0.74rem; }
.np-friends.is-anon .np-fr-tx b { font-size: 0.78rem; }
.np-friends.is-anon .np-fr-tx span { color: #FF9CC0; font-size: 0.68rem; }
.np-friends.is-anon { --dy-tx: -18px; }
.beat--etanuit { height: 460vh; height: 460svh; }
/* un plan qui se remplit : le contour BLEU des plans de l'app (PLAN_BLUE #5B6DEF) */
.np-friends.is-plan .np-fr-tx { border-color: rgba(91, 109, 239, 0.6); border-top-color: rgba(91, 109, 239, 0.9); background: rgba(14, 14, 36, 0.92); }
.np-friends.is-plan .np-fr-tx span { color: #AEB8FF; }
.np-fr-av i.np-fr-more { background: #1A1830; border-color: rgba(0, 232, 122, 0.5); color: #CFFFE6; font-size: 0.56rem; }
/* Léa publie un Pulse : son initiale prend l'anneau ROSE de l'app (anneau = Pulse), la pastille le dit en rose */
.np-friends.is-pulse .np-fr-av i:first-child { border-color: #FF2D7A; background: #2A0E1C; color: #FFD1E2; box-shadow: 0 0 0 2px rgba(17, 23, 37, 0.9), 0 0 18px rgba(255, 45, 122, 0.75); }
.np-friends.is-pulse .np-fr-tx { border-color: rgba(255, 45, 122, 0.6); border-top-color: rgba(255, 45, 122, 0.85); background: rgba(30, 10, 22, 0.92); }
.np-friends.is-pulse .np-fr-tx span { color: #FF8DB6; }
.np-friends.is-below { --dy-av: 10px; --dy-tx: 44px; }
.np-friends.is-below .np-fr-av { translate: -50% var(--dy-av); }
.np-friends.is-below .np-fr-tx { translate: var(--tx, -50%) var(--dy-tx); }
.np-friends.pop-a .np-fr-tx, .np-friends.pop-a .np-fr-av { animation: np-fr-pop-a 0.5s cubic-bezier(0.23, 1, 0.32, 1); }
.np-friends.pop-b .np-fr-tx, .np-friends.pop-b .np-fr-av { animation: np-fr-pop-b 0.5s cubic-bezier(0.23, 1, 0.32, 1); }
@keyframes np-fr-pop-a { 0% { scale: 0.9; } 45% { scale: 1.08; } 100% { scale: 1; } }
@keyframes np-fr-pop-b { 0% { scale: 0.9; } 45% { scale: 1.08; } 100% { scale: 1; } }
@media (prefers-reduced-motion: reduce) { .np-friends.pop-a .np-fr-tx, .np-friends.pop-b .np-fr-tx, .np-friends.pop-a .np-fr-av, .np-friends.pop-b .np-fr-av { animation: none; } }
/* la note de démonstration de la nuit : toujours visible, discrète */
.nuit-note { margin: 14px 0 0; max-width: 36rem; font-size: 0.85rem; line-height: 1.45; color: #C9C6DE; text-shadow: 0 1px 12px rgba(25, 33, 52, 0.9); }
/* la même mention sous les écrans de démonstration du temps « Une carte qui vit » (2026-11-03 : foule et amis simulés, carte rendue par l'app) */
.beat-note { margin-top: 16px; max-width: 40ch; } @media (max-width: 899px) { .beat-note { margin-top: 8px; font-size: 0.85rem; line-height: 1.4; color: #C9C6DE; } }

/* Temps 5 : l'iPhone entre depuis le bas, découvert par un masque qui monte (--p écrit par voyage.js) */
.beat-phone-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: clamp(24px, 5vw, 80px); }
.beat-steps { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 10px; max-width: 40ch; }
.beat-step { color: #B4B1CC; font-size: clamp(1.02rem, 1.2vw, 1.22rem); line-height: 1.45; transition: color 0.4s ease; }
.beat-step b { color: inherit; font-weight: 700; }
.beat--phone[data-step="0"] .beat-step[data-i="0"], .beat--phone[data-step="1"] .beat-step[data-i="1"], .beat--phone[data-step="2"] .beat-step[data-i="2"] { color: #fff; }
.beat--phone[data-step="0"] .beat-step[data-i="0"] b, .beat--phone[data-step="1"] .beat-step[data-i="1"] b, .beat--phone[data-step="2"] .beat-step[data-i="2"] b { color: #FFC2D8; }
/* « Tes amis, en vert » se lit EN VERT (le vert des amis de l'app, FRIEND_GREEN), jamais en rose */
.beat--how[data-step="1"] .beat-step[data-i="1"] b { color: #00E87A; }
.beat-phone { position: relative; width: min(34vw, 330px, calc((100svh - 160px) * 0.46)); min-width: 200px; justify-self: end; }
.beat-device {
  --k: clamp(0, calc(var(--p, 0) * 2.4), 1);
  transform: translate3d(0, calc((1 - var(--k)) * 42vh), 0);
  clip-path: inset(calc((1 - var(--k)) * 100%) 0 0 0 round 13% / 6%);
  will-change: transform, clip-path;
}
.beat-device .device-screen { background: #192134; }
/* Un écran d'iPhone : fondu d'OPACITÉ seul (plus de flou : un filtre sur une capture 1170 px coûtait des
   images perdues sur iPhone et laissait des fantômes flous du mauvais écran), puis caché (visibility). */
.beat-screen { position: absolute; inset: 0; transition: opacity 0.4s cubic-bezier(0.23, 1, 0.32, 1), visibility 0s linear 0s; }
.beat-screen picture, .beat-screen img { display: block; width: 100%; height: 100%; object-fit: cover; }
.beat--phone[data-step="0"] .beat-screen:not([data-i="0"]), .beat--phone[data-step="1"] .beat-screen:not([data-i="1"]), .beat--phone[data-step="2"] .beat-screen:not([data-i="2"]) { opacity: 0; visibility: hidden; transition: opacity 0.4s cubic-bezier(0.23, 1, 0.32, 1), visibility 0s linear 0.4s; }
@media (max-width: 760px) {
  /* au téléphone : UNE colonne, le texte PUIS l'iPhone qui prend la hauteur qui reste (jamais l'un sur
     l'autre, quelle que soit la hauteur visible de Safari) */
  .beat--phone .beat-pin { align-items: stretch; padding: calc(68px + 3vh) 0 max(14px, 2.5vh); }
  /* le bouton d'inscription collant (accueil, Établissements) ne doit jamais couvrir le bas de l'iPhone :
     la place est réservée sous lui, l'iPhone prend la hauteur qui reste */
  body:has([data-sticky-cta]) .beat--phone .beat-pin, body:has([data-sticky-cta]) .beat--light .beat-pin { padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px)); }
  /* le texte est en haut, sur la rue qui s'allume la nuit : un voile de lecture derrière lui (dégradé, sans flou) */
  .beat--phone .beat-pin::before { content: ""; position: absolute; inset: 0 0 auto; height: 58%; z-index: 0; pointer-events: none; background: linear-gradient(180deg, rgba(25, 33, 52, 0) 0%, rgba(25, 33, 52, 0.86) 9%, rgba(25, 33, 52, 0.7) 55%, rgba(25, 33, 52, 0) 100%); }
  .beat--phone .beat-phone-grid { position: relative; z-index: 1; }
  .beat-phone-grid { display: flex; flex-direction: column; gap: 16px; height: 100%; min-height: 0; }
  .beat--phone .beat-copy { flex: none; }
  .beat-phone { position: relative; flex: 1 1 0; min-height: 0; width: auto; min-width: 0; max-width: 62vw; aspect-ratio: 1170 / 2439; align-self: center; margin: 0; }
  .beat-phone .beat-device { width: 100%; }
  .beat-steps { max-width: 32ch; }
  .beat--phone .beat-title { font-size: clamp(2.2rem, 11vw, 3.4rem); }
  .beat--phone .beat-step { font-size: 1rem; }
}
@media (prefers-reduced-motion: reduce) { .beat-device { transform: none; clip-path: none; } .beat-screen { transition: none; } }
html.lite .beat-device, html.rm .beat-device { transform: none; clip-path: none; }

/* ---------- 3 ter. Les temps 6 à 9 ---------- */
/* Temps 6 : LA VILLE EN JOUR. La même Genève en volume, rendue de jour par la scène (uDay), sous un voile
   clair de lecture ; --day (0 → 1, voyage.js) lève le voile et passe le texte du blanc à l'encre pendant
   que la section entre, et l'inverse quand elle sort : un fondu de lumière, jamais une feuille blanche.
   Trois colonnes : le texte | l'iPhone au centre | les trois états sur un rail qui se remplit (--p). */
.beat--light { --day: 0; height: 280vh; height: 280svh; color: color-mix(in srgb, #070710 calc(var(--day) * 100%), #fff); }
.home main > section.beat.beat--light { background: none; }
.beat--light .beat-pin { align-items: center; padding: calc(68px + 3vh) 0 4vh; }
/* ⚠️ LA VILLE EN JOUR RESTE VISIBLE (régression founder 2026-10-14 : le panneau OPAQUE #F6F7FB posé ici
   masquait la ville de jour animée → « zone blanche morte »). Plus de panneau sur toute la section : la
   Genève claire vivante transparaît partout, et SEUL un voile de lecture LOCALISÉ se pose derrière le texte.
   Le fond clair plein n'existe qu'en REPLI image fixe (sans WebGL2 / mouvement réduit), jamais en marche. */
.beat--light .beat-pin::before { content: none; }
.beat--light .beat-pin { isolation: isolate; }
/* le voile de lecture : doux, clair, arrondi, derrière le TEXTE et les trois états seulement, piloté par
   --day (apparaît avec le jour) ; AUCUN flou (un backdrop-filter sur du WebGL fait ramer l'iPhone) */
.beat--light .plan-copy, .beat--light .plan-states { position: relative; isolation: isolate; }
.beat--light .plan-copy::before, .beat--light .plan-states::before {
  content: ""; position: absolute; inset: -22px -30px; z-index: -1; pointer-events: none; border-radius: 28px;
  /* un voile clair qui couvre TOUT le bloc, y compris une liste d'états plutôt haute (le texte reste lisible
     sur la ville de jour animée) ; feutré par un dégradé bien vertical — jamais de flou (backdrop-filter =
     images perdues sur iPhone au-dessus du WebGL) */
  background: radial-gradient(135% 150% at 44% 46%, rgba(249, 250, 252, 0.95) 0%, rgba(249, 250, 252, 0.9) 56%, rgba(249, 250, 252, 0) 100%);
  opacity: var(--day);
}
/* REPLI image fixe (sans WebGL2 / lite / mouvement réduit) : la ville de jour ne peut pas être rendue → on
   force le texte sombre (--day: 1) et un fond clair cohérent sur la section (le still global est une nuit,
   illisible sous un texte sombre). JAMAIS en marche normale — uniquement quand le canevas est remplacé. */
html.np-city-still .beat--light, html.lite .beat--light, html.rm .beat--light { --day: 1; }
html.np-city-still .beat--light .beat-pin::before, html.lite .beat--light .beat-pin::before, html.rm .beat--light .beat-pin::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  /* un JOUR (ciel bleu clair en haut, sol clair en bas), jamais une feuille blanche plate */
  background: linear-gradient(180deg, #AFC6E6 0%, #CBD7EA 34%, #E2E7EF 72%, #EAEDF3 100%);
}
.home main h2.beat-title--ink { color: color-mix(in srgb, #070710 calc(var(--day) * 100%), #fff); text-shadow: none; }
/* le rose de la marque, un cran plus profond sur le clair (contraste 4,6:1 sur #F8F9FB) */
.beat-title--ink em { color: color-mix(in srgb, #E0115F calc(var(--day) * 100%), #FF2D7A); }
/* Desktop : DEUX colonnes côte à côte — le texte et les trois états à gauche, l'iPhone à droite (retour
   founder desktop 2026-10-14 : le téléphone au centre, pris en sandwich, chevauchait le titre à certaines
   largeurs). Le texte garde une largeur de lecture confortable, l'iPhone respire à droite. */
.plan-grid { display: grid; grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr); grid-template-areas: "copy phone" "states phone"; align-items: start; column-gap: clamp(40px, 6vw, 110px); row-gap: clamp(26px, 4.2vh, 56px); }
.plan-copy { grid-area: copy; }
.plan-phone { grid-area: phone; align-self: center; justify-self: center; }
.plan-states { grid-area: states; align-self: start; }
.plan-title { font-size: clamp(2.5rem, 4vw, 4.6rem); line-height: 0.98; margin-bottom: 0.34em; text-wrap: balance; }
.plan-lead { font-size: clamp(1.06rem, 1.25vw, 1.3rem); line-height: 1.55; color: color-mix(in srgb, #2E2E40 calc(var(--day) * 100%), #E6E3F2); max-width: 34ch; margin: 0; text-wrap: pretty; }
.plan-lead b { color: color-mix(in srgb, #070710 calc(var(--day) * 100%), #fff); font-weight: 700; }
.plan-phone { width: min(24vw, 330px, calc((100svh - 150px) * 0.46)); min-width: 190px; }
.plan-device { box-shadow: 0 0 0 1px rgba(7, 7, 16, 0.08), 0 50px 100px -36px rgba(25, 33, 52, 0.5), 0 24px 44px -18px rgba(25, 33, 52, 0.28); }
.plan-device .device-screen { background: #192134; }
.beat--light[data-step="0"] .beat-screen:not([data-i="0"]), .beat--light[data-step="1"] .beat-screen:not([data-i="1"]), .beat--light[data-step="2"] .beat-screen:not([data-i="2"]) { opacity: 0; visibility: hidden; transition: opacity 0.4s cubic-bezier(0.23, 1, 0.32, 1), visibility 0s linear 0.4s; }
/* le rail (::after SEUL — ::before est réservé au voile de lecture) : piste grise + remplissage rose jusqu'à
   l'état courant, dans un même dégradé dont la taille suit --rail ; un point par état, plein quand atteint */
.plan-states { --rail: min(1, calc(var(--p, 0) * 1.5)); position: relative; list-style: none; margin: 0; padding: 0 0 0 40px; display: grid; gap: clamp(20px, 3.4vh, 38px); max-width: 32ch; }
.plan-states::after { content: ""; position: absolute; left: 7px; top: 0.9em; bottom: 0.9em; width: 2px; border-radius: 2px; background: linear-gradient(#E0115F 0 0) top / 100% calc(var(--rail) * 100%) no-repeat, rgba(7, 7, 16, 0.12); }
.plan-state { position: relative; color: color-mix(in srgb, #55556A calc(var(--day) * 100%), #B4B1CC); transition: color 0.4s ease; }
.plan-state b { display: block; font-family: var(--font-display); font-weight: 800; font-size: clamp(1.6rem, 2.4vw, 2.7rem); line-height: 1; letter-spacing: -0.03em; color: color-mix(in srgb, #7E7D92 calc(var(--day) * 100%), #9895B4); margin-bottom: 8px; transition: color 0.4s ease; }
.plan-state span { display: block; font-size: 1rem; line-height: 1.5; }
.plan-dot { position: absolute; left: -40px; top: 0.36em; width: 16px; height: 16px; border-radius: 50%; background: #F8F9FB; border: 2px solid #C9C8D6; transition: background-color 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease; z-index: 1; }
.plan-state b + span { font-size: clamp(0.98rem, 1.05vw, 1.08rem); }
.beat--light[data-step="0"] .plan-state[data-i="0"], .beat--light[data-step="1"] .plan-state[data-i="1"], .beat--light[data-step="2"] .plan-state[data-i="2"] { color: color-mix(in srgb, #2A2A3A calc(var(--day) * 100%), #E6E3F2); }
.beat--light[data-step="0"] .plan-state[data-i="0"] b, .beat--light[data-step="1"] .plan-state[data-i="1"] b, .beat--light[data-step="2"] .plan-state[data-i="2"] b { color: color-mix(in srgb, #070710 calc(var(--day) * 100%), #fff); }
.beat--light .plan-state[data-i="0"] .plan-dot, .beat--light[data-step="1"] .plan-state[data-i="1"] .plan-dot, .beat--light[data-step="2"] .plan-state .plan-dot { background: #E0115F; border-color: #E0115F; }
.beat--light[data-step="0"] .plan-state[data-i="0"] .plan-dot, .beat--light[data-step="1"] .plan-state[data-i="1"] .plan-dot, .beat--light[data-step="2"] .plan-state[data-i="2"] .plan-dot { box-shadow: 0 0 0 6px rgba(224, 17, 95, 0.14); }
/* l'en-tête passe au clair tant que la section claire est sous lui (html.np-onlight, voyage.js ;
   jamais « np-light » : c'est déjà la braise sous le doigt, position fixe — la page s'effondrait) */
.site-header { transition: background-color 0.35s ease, border-color 0.35s ease; }
html.np-onlight .site-header { background: rgba(248, 249, 251, 0.82); border-bottom-color: rgba(7, 7, 16, 0.08); }
html.np-onlight .nav-links a { color: #3A3A4A; }
html.np-onlight .nav-links a:hover, html.np-onlight .nav-tab:hover { color: #070710; background: rgba(7, 7, 16, 0.05); }
html.np-onlight .nav-toggle span { background: #070710; }
html.np-onlight .nav-beta { color: #E0115F; }
@media (max-width: 760px) {
  /* au téléphone : le titre, les trois états en ligne sur un rail horizontal, l'iPhone dessous */
  .beat--light .beat-pin { align-items: stretch; padding: calc(68px + 2.5vh) 0 max(14px, 2vh); }
  /* une colonne : le titre, les trois états, puis l'iPhone qui prend la hauteur qui reste */
  .plan-grid { display: flex; flex-direction: column; gap: 16px; height: 100%; min-height: 0; }
  .plan-copy { flex: none; }
  .plan-title { font-size: clamp(2.2rem, 10.5vw, 3.2rem); margin-bottom: 0.2em; }
  .plan-lead { font-size: 0.98rem; max-width: none; }
  .plan-states { order: 2; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 26px 0 0; max-width: none; }
  /* au téléphone le rail est horizontal : même ::after, rempli de gauche à droite selon --rail */
  /* le voile clair des trois états reste SOUS le texte (la règle .plan-states::before seule perdait contre
     celle du bureau, plus spécifique : le voile remontait et coupait la dernière ligne « sur place. ») */
  .beat--light .plan-states::before { inset: 0 -30px -16px; }
  .plan-states::after { left: 8px; right: calc(33.33% - 8px); top: 7px; bottom: auto; width: auto; height: 2px; background: linear-gradient(90deg, #E0115F 0 0) left / calc(var(--rail) * 100%) 100% no-repeat, rgba(7, 7, 16, 0.12); }
  .plan-dot { left: 0; top: -26px; }
  .plan-state b { font-size: 1.12rem; letter-spacing: -0.02em; margin: 0; }
  .plan-state span { display: none; }
  .plan-states { flex: none; }
  .plan-phone { order: 3; flex: 1 1 0; min-height: 0; width: auto; min-width: 0; max-width: 58vw; aspect-ratio: 1170 / 2439; align-self: center; }
  .plan-phone .plan-device { width: 100%; }
}
@media (max-width: 760px) and (max-height: 640px) { .plan-lead { display: none; } }

/* Temps 7 : l'horloge de la nuit qui monte (liée au défilement), le jour, le compte RÉEL des lieux ouverts */
/* sept heures en six temps (2026-11-09) : un temps, un mouvement de caméra, ~1,2 écran de lecture chacun */
.beat--nuit { height: 820vh; height: 820svh; }
/* mouvement réduit, « lite », sans WebGL : la nuit ne se joue pas, elle se LIT. La section rend sa hauteur,
   les six temps s'affichent ensemble, dans l'ordre (jamais une bande vide de huit écrans). */
html.rm .beat--nuit, html.lite .beat--nuit, html.np-city-still .beat--nuit { height: auto; }
html.rm .beat--nuit .beat-pin, html.lite .beat--nuit .beat-pin, html.np-city-still .beat--nuit .beat-pin { position: relative; height: auto; min-height: 100svh; padding-top: calc(68px + 6vh); }
html.rm .nuit-lines, html.lite .nuit-lines, html.np-city-still .nuit-lines { gap: 22px; }
html.rm .nuit-line, html.lite .nuit-line, html.np-city-still .nuit-line { grid-area: auto; opacity: 1; transform: none; transition: none; }
/* 40ch se mesurait au corps 16 px du conteneur (358 px) : le sous-titre en 40 px cassait « Le quai. Le / Jet d'eau. » */
.nuit-lines { position: relative; display: grid; max-width: min(36rem, 100%); }
.nuit-line {
  grid-area: 1 / 1;
  margin: 0;
  font-size: clamp(1.08rem, 1.3vw, 1.34rem);
  line-height: 1.5;
  color: #D6D3E8;
  text-wrap: pretty;
  text-shadow: 0 1px 18px rgba(25, 33, 52, 0.9);
  opacity: 0;
  transform: translate3d(0, 10px, 0);
  transition: opacity 0.45s cubic-bezier(0.23, 1, 0.32, 1), transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}
.nuit-line strong { display: block; color: #fff; font-family: var(--font-display); font-weight: 800; font-size: clamp(1.5rem, 2.4vw, 2.5rem); line-height: 1.05; letter-spacing: -0.03em; margin-bottom: 8px; text-wrap: balance; }
/* le sous-titre courant est allumé par une CLASSE (.is-on) posée en JS sur LA ligne active (voyage.js), au
   lieu d'un sélecteur descendant keyé sur [data-step] de la section : changer data-step n'invalide plus
   l'arbre des 12 lignes (mesuré 2026-10-15 : la #nuit, 1200svh, 12 changements de step, recalc de ~334
   éléments chacun). data-step reste posé sur la section (behave le lit, l'horloge/compteurs s'y fient). */
.nuit-line.is-on { opacity: 1; transform: none; }
/* les sous-titres de la marche : courts, au présent */
.nuit-line strong:only-child { margin-bottom: 0; }
/* sans JS (ou image fixe) : la première phrase seulement */
html:not(.js) .nuit-line[data-i="0"] { opacity: 1; transform: none; }
.beat-clock-rail { position: relative; display: flex; justify-content: space-between; width: clamp(160px, 16vw, 260px); margin: 12px 0 0 auto; padding-top: 10px; font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.08em; color: #8E8BAA; }
.beat-clock-rail::before, .beat-clock-rail i { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; border-radius: 2px; background: rgba(255, 255, 255, 0.14); }
.beat-clock-rail i { background: linear-gradient(90deg, #7B61FF, #FF2D7A); transform-origin: 0 50%; transform: scaleX(var(--h, 0)); }
.beat-clock-rail span:nth-of-type(2) { position: absolute; left: 42.86%; translate: -50% 0; }
.beat-clock-people { color: #C9C6DE; margin-top: 4px; }
@media (max-width: 760px) {
  .nuit-line strong { font-size: 1.4rem; }
  .nuit-line { font-size: 1rem; }
  .beat-clock-rail { width: 150px; }
}
@media (prefers-reduced-motion: reduce) { .nuit-line { transition: none; transform: none; } }
/* l'horloge de la nuit n'apparaît que quand la nuit commence (la section juste sous le héros : avant, son
   « Samedi 21:00 » dépassait sous le formulaire, 2026-10-22) ; sans JS, elle reste visible */
html.js .beat--nuit .beat-clock { opacity: 0; transition: opacity 0.4s cubic-bezier(0.23, 1, 0.32, 1); }
html.js .beat--nuit.is-live .beat-clock { opacity: 1; }
.beat-clock {
  position: absolute;
  top: calc(68px + clamp(16px, 4vh, 44px));
  right: clamp(16px, 4vw, 56px);
  margin: 0;
  /* largeur fixe : les chiffres et les compteurs qui changent ne déplacent jamais le bloc (CLS 0) */
  width: clamp(190px, 34vw, 500px);
  contain: layout paint;
  text-align: right;
  pointer-events: none;
}
.beat-clock p { margin: 0; white-space: nowrap; }
.beat-clock-day { font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: #C9C6DE; margin-bottom: 4px; }
.beat-clock-time {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3rem, 8.6vw, 9rem);
  letter-spacing: -0.04em;
  line-height: 0.92;
  color: #fff;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 2px 40px rgba(25, 33, 52, 0.8);
}
.beat-clock-open { margin-top: 10px; font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: #FFC2D8; font-variant-numeric: tabular-nums; }
.beat-clock-open[hidden] { display: none; }
@media (max-width: 760px) { .beat-clock { top: calc(68px + 2vh); } }

/* Temps 8 : « Ce soir à Genève » sur la ville, le programme à gauche, les events posés sur leurs lieux */
.home main > section.beat.beat--soir { height: 220vh; height: 220svh; padding: 0; border-top: 0; background: none; }
.beat--soir[hidden] { display: none; }
.soir-pin { align-items: center; padding: calc(68px + 3vh) 0 4vh; }
.soir-pin::before { inset: 0; height: auto; background: linear-gradient(90deg, rgba(25, 33, 52, 0.9) 0%, rgba(25, 33, 52, 0.72) 30%, rgba(25, 33, 52, 0) 56%); }
.soir-head { position: relative; max-width: 470px; }
.soir-head .board-live { margin-bottom: 18px; }
.soir-head .tonight-date { display: inline; color: #C9C6DE; font: inherit; letter-spacing: inherit; text-transform: inherit; }
.soir-title { font-size: clamp(2.6rem, 5vw, 5.8rem); margin-bottom: 0.12em; }
.soir-count { margin: 0 0 24px; color: #D6D3E8; font-size: clamp(1.04rem, 1.2vw, 1.2rem); }
.soir-count strong { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.8rem, 2.6vw, 2.6rem); letter-spacing: -0.03em; color: var(--rose); margin-right: 6px; font-variant-numeric: tabular-nums; }
.soir-count[hidden] { display: none; }
.soir-live { margin-top: -12px; }
.soir-live strong { margin: 0 6px 0 2px; }
.home .board .soir-list { background: rgba(17, 23, 37, 0.78); border-color: rgba(255, 255, 255, 0.1); border-top-color: rgba(255, 255, 255, 0.2); border-radius: 18px; box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.6); }
.home .board .soir-list .tonight-item { grid-template-columns: 3.6rem minmax(0, 1fr) auto; padding: 14px 18px; min-height: 60px; gap: 12px; }
.home .board .soir-list .tonight-title { font-size: 1rem; }
.home .board .soir-list .tonight-place { font-size: 0.9rem; }
/* Affiche de la soirée en bout de ligne (2026-10-25) — remplace la flèche quand elle existe. */
.tonight-art { width: 44px; height: 44px; flex: none; border-radius: 9px; overflow: hidden; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.12); }
.tonight-art img { display: block; width: 100%; height: 100%; object-fit: cover; }
.soir-more { margin-top: 16px; }
/* Bureau large (2026-10-16) : le tableau « Ce soir » ne reste pas une carte
   de téléphone orpheline sur un 27 pouces. La colonne de contenu grandit avec
   la fenêtre (comme le héros), le voile suit la largeur, et les lignes d'events
   respirent — la ville reste la scène à droite. Zéro incidence sous 1200 px. */
@media (min-width: 1200px) {
  .soir-head { max-width: clamp(470px, 36vw, 620px); }
  .soir-pin::before { background: linear-gradient(90deg, rgba(25, 33, 52, 0.9) 0%, rgba(25, 33, 52, 0.74) 40%, rgba(25, 33, 52, 0) 66%); }
  /* La carte élargie laisse les lignes respirer en LARGEUR et en texte, mais la
     HAUTEUR de ligne reste celle du socle (min-height / padding inchangés) : la
     liste se peuple de façon asynchrone et toute hausse de hauteur décalerait le
     contenu épinglé dessous (CLS mesuré en profil CPU bridé). 2026-10-16. */
  .home .board .soir-list .tonight-item { grid-template-columns: 4rem minmax(0, 1fr) auto; padding-left: clamp(18px, 1.35vw, 26px); padding-right: clamp(18px, 1.35vw, 26px); gap: 16px; }
  .home .board .soir-list .tonight-title { font-size: clamp(1rem, 0.9rem + 0.28vw, 1.1rem); }
  .home .board .soir-list .tonight-place { font-size: clamp(0.9rem, 0.86rem + 0.12vw, 0.98rem); }
}
@media (max-width: 760px) {
  .soir-pin { align-items: flex-start; padding-top: calc(68px + 2.5vh); }
  .soir-pin::before { background: linear-gradient(180deg, rgba(25, 33, 52, 0.92) 0%, rgba(25, 33, 52, 0.7) 52%, rgba(25, 33, 52, 0) 74%); }
  .soir-title { font-size: clamp(2.2rem, 10.5vw, 3.2rem); }
  .soir-count { margin-bottom: 14px; }
  /* trois lignes au téléphone : le reste est dans la ville, et sur /ce-soir */
  .home .board .soir-list li:nth-child(n + 4) { display: none; }
  .home .board .soir-list .tonight-item { padding: 10px 14px; min-height: 48px; }
}
.np-evs { position: fixed; inset: 0; z-index: 54; pointer-events: none; opacity: 0; transition: opacity 0.5s ease; }
.np-evs.is-on { opacity: 1; }
/* une étiquette = un point posé sur le lieu, une tige, une carte au-dessus (--lift : la tige s'allonge
   quand deux étiquettes se rencontreraient) */
.np-ev { position: absolute; left: 0; top: 0; width: 0; height: 0; color: #fff; text-decoration: none; opacity: 0; visibility: hidden; transition: opacity 0.35s ease, visibility 0s linear 0.35s; }
.np-evs.is-on .np-ev.is-on { opacity: 1; visibility: visible; transition-delay: 0s; }
.np-ev::before { content: ""; position: absolute; left: -0.5px; bottom: 0; width: 1px; height: var(--lift, 18px); background: linear-gradient(180deg, rgba(255, 255, 255, 0.5), rgba(255, 45, 122, 0.9)); }
.np-ev::after { content: ""; position: absolute; left: -4px; top: -4px; width: 8px; height: 8px; border-radius: 50%; background: var(--rose); box-shadow: 0 0 0 3px rgba(255, 45, 122, 0.22), 0 0 14px rgba(255, 45, 122, 0.8); }
.np-ev-card {
  position: absolute;
  left: 0;
  bottom: var(--lift, 18px);
  translate: calc(-50% + var(--dx, 0px)) 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 10px;
  align-items: baseline;
  width: max-content;
  max-width: 280px;
  padding: 9px 14px 10px;
  border-radius: 12px;
  background: rgba(17, 23, 37, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-top-color: rgba(255, 255, 255, 0.28);
  box-shadow: 0 14px 40px -12px rgba(0, 0, 0, 0.6);
  pointer-events: auto;
  transition: border-color 0.2s ease, transform 0.2s cubic-bezier(0.23, 1, 0.32, 1);
}
.np-ev-card b { grid-row: 1 / span 2; color: var(--rose); font-family: var(--font-mono); font-weight: 700; font-size: 0.86rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.np-ev-t { font-weight: 700; font-size: 0.9rem; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.np-ev-t, .np-ev-p { grid-column: 2; }
.np-ev-card.is-untimed { grid-template-columns: minmax(0, 1fr); }
.np-ev-card.is-untimed .np-ev-t, .np-ev-card.is-untimed .np-ev-p { grid-column: 1; }
.np-ev-p { color: #C9C6DE; font-size: 0.8rem; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.np-ev:hover .np-ev-card { border-color: rgba(255, 45, 122, 0.6); transform: translateY(-2px); }
@media (max-width: 760px) { .np-ev-card { max-width: 200px; padding: 7px 11px 8px; } .np-ev-t { font-size: 0.84rem; } }
@media (prefers-reduced-motion: reduce) { .np-ev, .np-ev-card { transition: none; } }

/* Temps 9a : le film s'ouvre comme des paupières (--k, voyage.js) ; sans JS, ouvert */
/* ouvert (--k 1) le masque déborde de 160 px : l'ombre du cadre reste entière */
.film-frame { clip-path: inset(calc((1 - var(--k, 1)) * 50% - var(--k, 1) * 160px) -160px); }
@media (prefers-reduced-motion: reduce) { .film-frame { clip-path: none; } }
/* le plein écran refusé (téléphone) : plein cadre dans la page, fond noir, jamais un petit rectangle */
.film-close { display: none; }
.film-frame.is-fill { position: fixed; inset: 0; z-index: 90; width: 100vw; height: 100vh; height: 100dvh; max-width: none; aspect-ratio: auto; border-radius: 0; clip-path: none; background: #000; }
.film-frame.is-fill .film-close { display: inline-flex; align-items: center; position: absolute; top: max(12px, env(safe-area-inset-top)); right: 12px; z-index: 3; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1.5px solid rgba(255, 255, 255, 0.5); background: rgba(0, 0, 0, 0.5); color: #fff; font-weight: 600; font-size: 0.95rem; cursor: pointer; }
.film-frame.is-fill .film-close:focus-visible { outline: 2px solid var(--rose); outline-offset: 2px; }
html.film-fill, html.film-fill body { overflow: hidden; }

/* Temps 9b : la ville s'éteint sous le mot (uOff) ; l'iris d'avant n'existe plus, l'ombre de lecture reste */
.np-finale-bloom { opacity: calc(0.35 + var(--pi, 1) * 0.4); }

/* Temps 9b : la porte des pros au pied du final */
.np-finale-pros { margin: clamp(28px, 5vh, 56px) auto 0; max-width: 720px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; text-align: left; }
.np-finale-pros-q { grid-column: 1 / -1; margin: 0 0 4px; text-align: center; color: #C9C6DE; font-size: 0.95rem; }
.np-finale-pro { display: grid; gap: 4px; padding: 16px 18px; border-radius: 16px; border: 1px solid rgba(255, 255, 255, 0.14); border-top-color: rgba(255, 255, 255, 0.26); background: rgba(17, 23, 37, 0.6); color: #fff; text-decoration: none; min-height: 44px; transition: border-color 0.2s ease, transform 0.2s cubic-bezier(0.23, 1, 0.32, 1); }
.np-finale-pro:hover { border-color: rgba(255, 255, 255, 0.4); transform: translateY(-2px); }
.np-finale-pro:focus-visible { outline: 2px solid var(--rose); outline-offset: 2px; }
.np-finale-pro b { font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; letter-spacing: -0.02em; }
.np-finale-pro span { color: #C9C6DE; font-size: 0.92rem; line-height: 1.4; }
@media (max-width: 560px) { .np-finale-pros { grid-template-columns: 1fr; } }

/* ---------- 5. Les lieux ---------- */
.np-pin-tip {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 60;
  padding: 7px 11px;
  border-radius: 10px;
  background: rgba(17, 23, 37, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-top-color: rgba(255, 255, 255, 0.24);
  color: #fff;
  font-size: 0.86rem;
  font-weight: 500;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  translate: -50% -100%;
  transition: opacity 0.16s ease;
}
.np-pin-tip.is-on { opacity: 1; }
.np-fiche {
  position: fixed;
  right: clamp(16px, 3vw, 40px);
  bottom: clamp(16px, 4vh, 40px);
  z-index: 70;
  width: min(360px, calc(100vw - 32px));
  padding: 22px 24px 20px;
  border-radius: 20px;
  background: rgba(17, 23, 37, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-top-color: rgba(255, 255, 255, 0.26);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  color: #fff;
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px) scale(0.98);
  transition: opacity 0.22s cubic-bezier(0.23, 1, 0.32, 1), transform 0.26s cubic-bezier(0.23, 1, 0.32, 1), visibility 0s linear 0.26s;
}
.np-fiche.is-on { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.np-fiche.is-gold { border-color: rgba(255, 184, 0, 0.42); border-top-color: rgba(255, 184, 0, 0.6); }
.np-fiche-x { position: absolute; top: 10px; right: 10px; width: 44px; height: 44px; border: 0; background: transparent; color: #C9C6DE; font-size: 1.5rem; line-height: 1; border-radius: 12px; cursor: pointer; }
.np-fiche-x:hover { color: #fff; background: rgba(255, 255, 255, 0.06); }
.np-fiche-x:focus-visible { outline: 2px solid var(--rose); outline-offset: 2px; }
.np-fiche-tier { margin: 0 0 8px; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: #B4B1CC; }
.np-fiche.is-gold .np-fiche-tier { color: #FFD166; }
.np-fiche-name { margin: 0 44px 6px 0; font-family: var(--font-display); font-size: 1.5rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1.05; }
.np-fiche-meta, .np-fiche-hours { margin: 0 0 4px; color: #C9C6DE; font-size: 0.92rem; line-height: 1.45; }
.np-fiche-now { margin: 10px 0 14px; font-weight: 600; font-size: 0.92rem; }
.np-fiche-link { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 12px; border: 1.5px solid rgba(255, 255, 255, 0.28); color: #fff; text-decoration: none; font-weight: 600; font-size: 0.92rem; }
.np-fiche-link:hover { border-color: #fff; }
.np-fiche.is-gold .np-fiche-link { border-color: rgba(255, 184, 0, 0.6); }

@media (prefers-reduced-motion: reduce) {
  .hx-clock-top i, .hx-scrollcue { animation: none; }
  .np-fiche { transition: opacity 0.2s ease; transform: none; }
}

/* ?perf=1 : le tableau de mesure (jamais sans le paramètre) */
.np-perf { position: fixed; left: 8px; bottom: 8px; z-index: 200; margin: 0; padding: 8px 10px; border-radius: 8px; background: rgba(0, 0, 0, 0.78); color: #9DFFB0; font: 600 11px/1.45 ui-monospace, Menlo, Consolas, monospace; pointer-events: none; white-space: pre; }

/* ---------- Au doigt (iPhone, Android) : rien de coûteux par-dessus un canevas qui bouge ----------
   Un flou d'arrière-plan au-dessus d'une ville WebGL plein écran oblige à recomposer le flou à chaque
   image (la cause classique du « ça lague » sur iPhone) : supprimé, l'en-tête devient quasi opaque ; plus
   de fusion « soft-light » ni de masque de voile qui suit le doigt. */
@media (hover: none) and (pointer: coarse) {
  *, *::before, *::after { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
  .site-header { background: rgba(10, 9, 22, 0.94); }
  html.np-onlight .site-header { background: rgba(248, 249, 251, 0.97); }
  :where([data-tilt])::after { mix-blend-mode: normal; }
  .np-ambient--3d::after { -webkit-mask-image: none; mask-image: none; }
}
/* le point « En direct » respire en opacité (composée), jamais en ombre portée animée (repeinte à chaque image) */
.board-live-dot { animation: none; }
@media (prefers-reduced-motion: no-preference) { .board-live-dot { animation: np-breath 2.4s ease-in-out infinite; } }

/* capture de l'image fixe de repli (?still=1, QA) : la ville seule */
html.np-still-shot body > *:not(.np-ambient) { visibility: hidden; }

/* Le soleil ou la lune, au loin dans le ciel du héros (founder 2026-10-22) : seul l'astre réellement levé sur
   Genève, à sa hauteur réelle (plus il est haut, plus il monte), la lune dans sa vraie phase. main.js le pose
   et le règle ; discret, derrière le voile de lecture, jamais sur un texte. */
.np-sky { position: absolute; top: 0; right: 0; width: var(--sz, 26px); height: var(--sz, 26px); border-radius: 50%; pointer-events: none; opacity: 0; transition: opacity 1.6s ease; transform: translate3d(var(--sx, -16vw), var(--sy, 120px), 0); }
.np-sky.is-on { opacity: var(--so, 0.85); }
.np-sky { z-index: 1; mix-blend-mode: screen; }
.np-sky--sun { --sz: clamp(34px, 3.2vw, 54px); background: radial-gradient(circle, #FFFDF4 0 30%, rgba(255, 228, 170, 0.85) 40%, rgba(255, 205, 140, 0.32) 58%, rgba(255, 190, 120, 0) 74%); }
.np-sky--moon { --sz: clamp(18px, 1.9vw, 30px); background: #F2F0FA; box-shadow: 0 0 26px 4px rgba(225, 220, 255, 0.45); overflow: hidden; mix-blend-mode: normal; }
.np-sky--moon i { position: absolute; inset: -1px; border-radius: 50%; background: #192134; transform: translateX(var(--sh, 0%)); }
@media (prefers-reduced-motion: reduce) { .np-sky { transition: none; } }
/* (plus spécifique que l'en-tête transparent de l'accueil sur le héros, styles.css) */
html.np-sky-day .site-header, html.np-sky-day.motion-ready:not(.is-scrolled) .home .site-header { background: rgba(17, 23, 37, 0.62); border-bottom-color: rgba(255, 255, 255, 0.08); }
/* de jour, la ville est claire : le voile de lecture du héros se renforce côté texte (la ville reste lumineuse
   à droite, le Jet d'eau libre), l'heure de Genève et le petit titre gagnent un liseré d'ombre */
html.np-sky-day .hx-veil { background: linear-gradient(90deg, rgba(25, 33, 52, 0.78) 0%, rgba(25, 33, 52, 0.6) 42%, rgba(25, 33, 52, 0.12) 72%, rgba(25, 33, 52, 0) 100%), linear-gradient(180deg, rgba(25, 33, 52, 0) 40%, rgba(25, 33, 52, 0.5) 70%, rgba(25, 33, 52, 0.82) 86%, rgba(25, 33, 52, 0.82) 93%, rgba(25, 33, 52, 0) 100%); }
html.np-sky-day .hx-clock-top, html.np-sky-day .hx-kicker { color: #fff; text-shadow: 0 1px 12px rgba(25, 33, 52, 0.9); }
@media (max-width: 760px) { html.np-sky-day .hx-veil { background: linear-gradient(180deg, rgba(25, 33, 52, 0.5) 0%, rgba(25, 33, 52, 0.88) 28%, rgba(25, 33, 52, 0.88) 84%, rgba(25, 33, 52, 0) 100%); } }
/* la nuit (temps 2) sur grand écran : un titre plus compact en bas à gauche, le centre de l'écran reste à
   l'histoire (les pastilles des amis ne se posent jamais sur un texte) */
@media (min-width: 981px) {
  .beat--nuit .nuit-copy .beat-title { font-size: clamp(2.6rem, 4.4vw, 4.8rem); }
  .beat--nuit .nuit-line strong { font-size: clamp(1.4rem, 1.9vw, 2rem); }
}

/* L'AVERSE (founder 2026-10-22 : « une averse… il n'y a pas de pluie ») : un rideau de pluie sur la ville, sous le
   texte, piloté par main.js (opacité = intensité). Deux nappes de traits qui défilent en translate (compositeur,
   aucun repeint) ; rien n'anime quand il ne pleut pas ; mouvement réduit : absent. */
.np-rainfall { position: absolute; inset: 0; overflow: hidden; pointer-events: none; opacity: 0; visibility: hidden; transition: opacity 0.6s ease, visibility 0s 0.6s; }
.np-rainfall.is-on { visibility: visible; transition: opacity 0.6s ease, visibility 0s; }
.np-rainfall::before, .np-rainfall::after { content: ""; position: absolute; left: -90px; top: -420px; right: 0; bottom: 0; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='256' height='256' stroke='%23D2D6F5' stroke-width='1.3' stroke-linecap='round'%3E%3Cpath d='M84 41l-3.8 -21' stroke-opacity='0.38'/%3E%3Cpath d='M137 95l-2.3 -13' stroke-opacity='0.55'/%3E%3Cpath d='M13 112l-2.3 -13' stroke-opacity='0.39'/%3E%3Cpath d='M109 209l-2.5 -14' stroke-opacity='0.44'/%3E%3Cpath d='M160 239l-3.6 -20' stroke-opacity='0.51'/%3E%3Cpath d='M246 16l-4.3 -24' stroke-opacity='0.47'/%3E%3Cpath d='M40 33l-2.9 -16' stroke-opacity='0.68'/%3E%3Cpath d='M49 148l-3.8 -21' stroke-opacity='0.50'/%3E%3Cpath d='M140 20l-2.3 -13' stroke-opacity='0.43'/%3E%3Cpath d='M173 110l-3.0 -16' stroke-opacity='0.58'/%3E%3Cpath d='M116 78l-4.2 -23' stroke-opacity='0.63'/%3E%3Cpath d='M65 146l-3.5 -19' stroke-opacity='0.70'/%3E%3Cpath d='M185 75l-4.6 -26' stroke-opacity='0.40'/%3E%3Cpath d='M108 192l-2.5 -14' stroke-opacity='0.55'/%3E%3Cpath d='M14 170l-4.1 -23' stroke-opacity='0.58'/%3E%3Cpath d='M221 82l-3.9 -22' stroke-opacity='0.59'/%3E%3Cpath d='M148 117l-4.3 -24' stroke-opacity='0.73'/%3E%3Cpath d='M122 169l-2.3 -13' stroke-opacity='0.63'/%3E%3Cpath d='M164 250l-4.2 -24' stroke-opacity='0.46'/%3E%3Cpath d='M100 170l-2.2 -12' stroke-opacity='0.53'/%3E%3Cpath d='M46 33l-2.3 -13' stroke-opacity='0.66'/%3E%3Cpath d='M36 65l-3.1 -17' stroke-opacity='0.70'/%3E%3Cpath d='M24 115l-3.5 -20' stroke-opacity='0.70'/%3E%3Cpath d='M207 218l-2.9 -16' stroke-opacity='0.52'/%3E%3Cpath d='M93 223l-4.6 -25' stroke-opacity='0.41'/%3E%3Cpath d='M48 62l-2.7 -15' stroke-opacity='0.54'/%3E%3Cpath d='M150 69l-2.2 -12' stroke-opacity='0.52'/%3E%3Cpath d='M96 144l-4.6 -25' stroke-opacity='0.63'/%3E%3Cpath d='M132 157l-3.9 -21' stroke-opacity='0.37'/%3E%3Cpath d='M227 197l-4.4 -24' stroke-opacity='0.67'/%3E%3C/svg%3E"); will-change: transform; }
.np-rainfall::before { background-size: 256px 256px; }
.np-rainfall::after { background-size: 420px 420px; opacity: 0.55; }
.np-rainfall.is-on::before { animation: np-rain-a 0.38s linear infinite; }
.np-rainfall.is-on::after { animation: np-rain-b 0.62s linear infinite; }
@keyframes np-rain-a { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(46px, 256px, 0); } }
@keyframes np-rain-b { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(76px, 420px, 0); } }
@media (prefers-reduced-motion: reduce) { .np-rainfall { display: none; } }

/* LE CHAT DU PLAN (temps 2, founder 2026-10-22 « fais genre ça communique via le chat ») : la conversation du
   groupe, en haut à gauche (l'horloge est à droite), trois créneaux de hauteur FIXE (un message de plus = la liste
   monte d'un cran en translate, jamais un décalage de mise en page). Grammaire de l'app : initiales vertes des
   amis, contour bleu plan pour la proposition, anneau rose pour le Pulse. Aucun flou (WebGL dessous). */
.nuit-chat {
  --slot: 50px;
  position: absolute; z-index: 2; top: calc(68px + clamp(16px, 4vh, 44px)); left: clamp(16px, 4vw, 56px);
  width: min(320px, 30vw); padding: 10px 10px 6px; border-radius: 18px;
  background: rgba(17, 23, 37, 0.82); border: 1px solid rgba(255, 255, 255, 0.1); border-top-color: rgba(255, 255, 255, 0.22);
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.8);
  opacity: 0; visibility: hidden; transition: opacity 0.4s cubic-bezier(0.23, 1, 0.32, 1), visibility 0s 0.4s;
  contain: layout paint; pointer-events: none;
}
.beat--nuit.has-chat .nuit-chat { opacity: 1; visibility: visible; transition: opacity 0.4s cubic-bezier(0.23, 1, 0.32, 1), visibility 0s; }
.nuit-chat-head { display: flex; align-items: center; gap: 7px; margin: 0 0 8px 2px; font: 600 0.64rem/1 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: #A0A0B8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nuit-chat-head i { flex: none; width: 7px; height: 7px; border-radius: 50%; background: #5B6DEF; box-shadow: 0 0 8px rgba(91, 109, 239, 0.8); }
.nuit-chat-list { list-style: none; margin: 0; padding: 0; display: grid; grid-auto-rows: var(--slot); gap: 6px; overflow: hidden; }
.nuit-chat.is-step .nuit-chat-list { animation: np-chat-step 0.36s cubic-bezier(0.23, 1, 0.32, 1); }
@keyframes np-chat-step { from { transform: translateY(calc(var(--slot) + 6px)); } to { transform: none; } }
.nuit-chat.is-step .nuit-chat-msg:last-child { animation: np-chat-in 0.36s cubic-bezier(0.23, 1, 0.32, 1); }
@keyframes np-chat-in { from { opacity: 0; } to { opacity: 1; } }
.nuit-chat-msg { display: flex; align-items: flex-end; gap: 7px; min-width: 0; }
.nuit-chat-msg.is-empty { visibility: hidden; }
.nuit-chat-msg > b {
  flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%;
  background: #0E2A1E; border: 1.5px solid #00E87A; color: #CFFFE6; font: 700 0.56rem/1 var(--font-display);
}
.nuit-chat-msg > span {
  min-width: 0; flex: 1 1 auto; max-height: var(--slot); display: grid; align-content: center; gap: 1px;
  padding: 5px 10px 6px; border-radius: 14px 14px 14px 4px; background: #1D1A33; border: 1px solid rgba(255, 255, 255, 0.08);
}
.nuit-chat-msg em { font: 600 0.6rem/1.2 var(--font-body, inherit); font-style: normal; color: #00E87A; }
.nuit-chat-msg > span > span { font-size: 0.8rem; line-height: 1.25; color: #FFFFFF; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.nuit-chat-msg.is-plan > span { border-color: rgba(91, 109, 239, 0.75); background: #1B1D3F; }
.nuit-chat-msg.is-pulse > b { border-color: #FF2D7A; box-shadow: 0 0 10px rgba(255, 45, 122, 0.6); }
.nuit-chat-msg.is-pulse > span { border-color: rgba(255, 45, 122, 0.7); background: #2A1430; }
.nuit-chat-msg.is-pulse > span > span { color: #FF8DB6; }
.nuit-chat-typing { height: 16px; margin: 4px 0 0 33px; font: 500 0.62rem/16px var(--font-mono); color: #8E8BAA; opacity: 0; transition: opacity 0.2s ease; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nuit-chat-typing.is-on { opacity: 1; }
@media (max-width: 760px) {
  .nuit-chat { --slot: 48px; top: calc(68px + 2vh); left: 12px; width: calc(100vw - 24px - clamp(190px, 34vw, 500px) - 14px); padding: 8px 7px 4px; border-radius: 15px; }
  .nuit-chat-msg { gap: 5px; }
  .nuit-chat-msg > b { width: 20px; height: 20px; font-size: 0.5rem; }
  .nuit-chat-msg > span { padding: 4px 7px 5px; }
  .nuit-chat-msg > span > span { font-size: 0.7rem; line-height: 1.22; }
  .nuit-chat-typing { margin-left: 25px; }
}
@media (prefers-reduced-motion: reduce) { .nuit-chat.is-step .nuit-chat-list, .nuit-chat.is-step .nuit-chat-msg:last-child { animation: none; } }
@media (max-width: 760px) { .nuit-chat-kind { display: none; } }
.nuit-chat-head span { overflow: hidden; text-overflow: ellipsis; }

/* LE PULSE DE LÉA (temps 2, founder 2026-10-22 « génère un faux Pulse ») : la carte du lecteur de l'app, sous le
   chat, le temps de « Paf, un Pulse ». Ambiance = faisceaux et halos de lumière en couleurs de marque qui
   bougent (transform seulement, rien n'anime hors de l'écran), jamais une photo. */
.nuit-pulse {
  position: absolute; z-index: 2; right: clamp(16px, 4vw, 56px); top: calc(68px + clamp(16px, 4vh, 44px) + 236px);
  width: 176px; aspect-ratio: 9 / 16; border-radius: 18px; overflow: hidden; background: #120E24;
  border: 1.5px solid #FF2D7A; box-shadow: 0 0 0 3px rgba(255, 45, 122, 0.18), 0 0 34px rgba(255, 45, 122, 0.45), 0 20px 40px -16px rgba(0, 0, 0, 0.9);
  opacity: 0; visibility: hidden; transform: scale(0.92) translateY(10px); transform-origin: 80% 0;
  transition: opacity 0.35s cubic-bezier(0.23, 1, 0.32, 1), transform 0.45s cubic-bezier(0.23, 1, 0.32, 1), visibility 0s 0.45s;
  pointer-events: none; contain: layout paint;
}
.nuit-pulse.is-on { opacity: 1; visibility: visible; transform: none; transition: opacity 0.35s cubic-bezier(0.23, 1, 0.32, 1), transform 0.45s cubic-bezier(0.23, 1, 0.32, 1), visibility 0s; }
.nuit-pulse-light { position: absolute; inset: 0; background: radial-gradient(120% 60% at 50% 108%, rgba(255, 45, 122, 0.85), rgba(123, 97, 255, 0.45) 45%, rgba(18, 14, 36, 0) 78%), radial-gradient(70% 40% at 15% 20%, rgba(58, 134, 255, 0.35), rgba(18, 14, 36, 0) 70%), radial-gradient(60% 35% at 90% 40%, rgba(123, 97, 255, 0.4), rgba(18, 14, 36, 0) 70%), #1A1233; }
.nuit-pulse-light i { position: absolute; left: -30%; top: -30%; width: 160%; height: 130%; transform-origin: 50% 0; opacity: 0.85;
  background: conic-gradient(from 180deg at 50% 0%, rgba(58, 134, 255, 0) 0deg, rgba(58, 134, 255, 0.65) 8deg, rgba(58, 134, 255, 0) 16deg, rgba(255, 45, 122, 0) 40deg, rgba(255, 45, 122, 0.7) 47deg, rgba(255, 45, 122, 0) 54deg, rgba(123, 97, 255, 0) 300deg, rgba(123, 97, 255, 0.6) 308deg, rgba(123, 97, 255, 0) 316deg);
}
.nuit-pulse-light i:nth-child(2) { opacity: 0.7; }
.nuit-pulse-light i:nth-child(3) { left: 0; top: auto; bottom: -10%; width: 100%; height: 60%; opacity: 0.75; transform-origin: 50% 100%;
  background: radial-gradient(6px 6px at 18% 40%, #FFD3E4, transparent), radial-gradient(5px 5px at 42% 70%, #CFC6FF, transparent), radial-gradient(7px 7px at 66% 35%, #FF8DB6, transparent), radial-gradient(5px 5px at 84% 62%, #BFD6FF, transparent), radial-gradient(4px 4px at 30% 85%, #FFFFFF, transparent), radial-gradient(6px 6px at 74% 88%, #FF2D7A, transparent);
}
.nuit-pulse.is-on .nuit-pulse-light i:nth-child(1) { animation: np-beam 2.4s ease-in-out infinite alternate; }
.nuit-pulse.is-on .nuit-pulse-light i:nth-child(2) { animation: np-beam-b 1.8s ease-in-out infinite alternate; }
.nuit-pulse.is-on .nuit-pulse-light i:nth-child(3) { animation: np-bokeh 0.92s ease-in-out infinite alternate; }
@keyframes np-beam { from { transform: rotate(-16deg); } to { transform: rotate(16deg); } }
@keyframes np-beam-b { from { transform: scaleX(-1) rotate(14deg); } to { transform: scaleX(-1) rotate(-18deg); } }
@keyframes np-bokeh { from { transform: translateY(0) scale(1); opacity: 0.55; } to { transform: translateY(-6px) scale(1.06); opacity: 0.95; } }
.nuit-pulse-bar { position: absolute; left: 10px; right: 10px; top: 9px; height: 2.5px; border-radius: 2px; background: rgba(255, 255, 255, 0.25); overflow: hidden; }
.nuit-pulse-bar i { position: absolute; inset: 0; background: #FFFFFF; transform-origin: 0 50%; transform: scaleX(0); }
.nuit-pulse.is-on .nuit-pulse-bar i { animation: np-pulse-bar 10s linear forwards; }
@keyframes np-pulse-bar { to { transform: scaleX(1); } }
.nuit-pulse-who { position: absolute; left: 10px; right: 10px; top: 20px; margin: 0; display: flex; align-items: center; gap: 7px; }
.nuit-pulse-who b { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #0E2A1E; border: 2px solid #FF2D7A; color: #CFFFE6; font: 700 0.55rem/1 var(--font-display); }
.nuit-pulse-who > span { display: grid; min-width: 0; }
.nuit-pulse-who em { font: 700 0.72rem/1.15 var(--font-display); font-style: normal; color: #FFFFFF; }
.nuit-pulse-who span span { font-size: 0.62rem; line-height: 1.2; color: rgba(255, 255, 255, 0.78); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nuit-pulse-bpm { position: absolute; right: 10px; bottom: 44px; margin: 0; padding: 4px 8px; border-radius: 999px; border: 1px solid rgba(255, 45, 122, 0.7); background: rgba(18, 14, 36, 0.6); font: 600 0.6rem/1 var(--font-mono); letter-spacing: 0.06em; color: #FF8DB6; }
.nuit-pulse-bpm span { color: #FFFFFF; }
.nuit-pulse-cap { position: absolute; left: 10px; right: 10px; bottom: 12px; margin: 0; font-size: 0.74rem; font-weight: 600; line-height: 1.25; color: #FFFFFF; text-shadow: 0 1px 8px rgba(0, 0, 0, 0.7); }
@media (max-width: 760px) {
  .nuit-pulse { right: auto; left: 12px; top: calc(68px + 2vh + 222px); width: 112px; border-radius: 14px; transform-origin: 20% 0; }
  .nuit-pulse-who { top: 17px; gap: 5px; left: 7px; right: 7px; }
  .nuit-pulse-who b { width: 20px; height: 20px; font-size: 0.48rem; }
  .nuit-pulse-who em { font-size: 0.6rem; }
  .nuit-pulse-who span span { font-size: 0.52rem; }
  .nuit-pulse-bpm { right: 7px; bottom: 36px; font-size: 0.5rem; padding: 3px 6px; }
  .nuit-pulse-cap { left: 7px; right: 7px; bottom: 9px; font-size: 0.6rem; }
}
@media (prefers-reduced-motion: reduce) { .nuit-pulse.is-on .nuit-pulse-light i, .nuit-pulse.is-on .nuit-pulse-bar i { animation: none; } .nuit-pulse.is-on .nuit-pulse-bar i { transform: scaleX(0.6); } }

/* ⚠️ La section du plan reste de NUIT (founder 2026-10-23 « que du noir, pas de rue blanche ») : plus de voile
   clair, le même voile de lecture sombre que les autres temps (dégradé, sans flou) derrière le texte. */
.beat--light .beat-pin::before {
  content: ""; position: absolute; inset: 0; height: auto; z-index: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(25, 33, 52, 0.9) 0%, rgba(25, 33, 52, 0.74) 36%, rgba(25, 33, 52, 0) 62%);
}
.beat--light .plan-grid { position: relative; z-index: 1; }
@media (max-width: 760px) {
  .beat--light .beat-pin::before { inset: 0 0 auto; height: 62%; background: linear-gradient(180deg, rgba(25, 33, 52, 0) 0%, rgba(25, 33, 52, 0.88) 9%, rgba(25, 33, 52, 0.76) 62%, rgba(25, 33, 52, 0) 100%); }
}

/* SAFE HOME dans la nuit (founder 2026-10-23) : le vert de SOIN #00C08B (doctrine visual-semantics), distinct du
   vert des amis #00E87A — la pastille de celle qui rentre et les messages du système Safe Home dans le chat. */
.np-friends.is-safe .np-fr-av i { border-color: #00C08B; background: #0B2A24; color: #C8FFF0; box-shadow: 0 0 0 2px rgba(17, 23, 37, 0.9), 0 0 14px rgba(0, 192, 139, 0.55); }
.np-friends.is-safe .np-fr-tx { border-color: rgba(0, 192, 139, 0.6); border-top-color: rgba(0, 192, 139, 0.85); background: rgba(6, 26, 22, 0.92); }
.np-friends.is-safe .np-fr-tx span { color: #5FE3BE; }
.nuit-chat-msg.is-safe > b { border-color: #00C08B; background: #0B2A24; color: #C8FFF0; }
.nuit-chat-msg.is-safe > span { border-color: rgba(0, 192, 139, 0.6); background: #0E2420; }
.nuit-chat-msg.is-safe em { color: #00C08B; }

/* ---------- 6. LES SCÈNES EN VOLUME (2026-11-09, « un motion design de fou, le plus visible d'abord ») ----------
   Les trois téléphones des temps (« Une carte qui vit », « Tu choisis », « Tes amis ») et le tableau « Ce soir »
   ENTRENT EN SCÈNE : motion.js ([data-stage] / [data-stage-item]) écrit --e (entrée 0 → 1), --x (sortie 0 → 1),
   --mx / --my (pointeur lissé, −1 → 1) sur l'objet seul. L'iPhone arrive incliné et en retrait, se pose à plat
   pendant que son masque (--k, inchangé) le découvre, puis suit doucement le pointeur ; son ombre se resserre
   en se posant ; une aura à la couleur de ce que montre l'écran (rose = les gens, vert = les amis, violet = les
   events, bleu = en route) le porte au centre de la scène. Un écran en remplace un autre par un BALAYAGE de
   lumière sur le verre et un glissement (le précédent monte, le suivant arrive d'en bas), plus un fondu seul.
   Transform / opacity / clip-path seulement. Valeurs par défaut = posé à plat : sans JS, en mouvement réduit
   ou en « lite », rien ne bouge et tout est visible. */
.np-stage-phone, .np-stage-board { --e: 1; --x: 0; --mx: 0; --my: 0; }
.np-stage-phone {
  transform: perspective(1600px)
    translate3d(calc((1 - var(--e)) * 7vw), calc((1 - var(--e)) * 8vh - var(--x) * 5vh), calc(var(--x) * -180px))
    rotateY(calc((1 - var(--e)) * -32deg + var(--mx) * 8deg))
    rotateX(calc((1 - var(--e)) * 16deg - var(--my) * 6deg + var(--x) * 12deg))
    rotateZ(calc((1 - var(--e)) * 5deg))
    scale(calc(0.86 + var(--e) * 0.14));
  opacity: calc(1 - var(--x) * 0.5);
  will-change: transform, opacity;
}
/* l'ombre portée : large et décalée quand le téléphone est soulevé, serrée sous lui quand il se pose */
.np-stage-phone::after {
  content: ""; position: absolute; z-index: -1; left: 6%; right: 6%; top: 10%; bottom: -5%; border-radius: 24%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(3, 3, 10, 0.78), rgba(3, 3, 10, 0.32) 55%, rgba(3, 3, 10, 0));
  transform: translate3d(calc((1 - var(--e)) * 70px - var(--mx) * 22px), calc((1 - var(--e)) * 90px + 34px - var(--my) * 14px), 0) scale(calc(1.04 + (1 - var(--e)) * 0.34));
  opacity: calc(0.3 + var(--e) * 0.5);
}
/* TROIS GESTES, PAS UN (2026-11-09, « go tout » sur le plan motion) : les trois iPhone n'entrent plus de la même
   façon. Chacun a le sien, lu sur les mêmes --e / --x / --mx / --my :
     « Une carte qui vit » (#carte)  ENTRE DE CÔTÉ, presque de profil, comme un travelling qui le dépasse ; sort
                                     vers la gauche en tournant ;
     « Tu choisis » (#lieu)          DESCEND ET SE POSE : il arrive d'en haut, penché vers toi et plus proche, et
                                     atterrit à plat sur son bord bas ; repart en basculant en arrière ;
     « Tes amis » (#plan)            PIVOTE sur son axe vertical, de la tranche à la face, en se redressant ;
                                     continue de pivoter en sortant.
   Le masque montant (--k) des deux premières scènes est retiré : il cachait le geste. Mouvement réduit et
   « lite » : les règles !important plus bas posent tout à plat. */
#carte .beat-device, #lieu .beat-device { transform: none; clip-path: none; }
#carte .np-stage-phone {
  transform: perspective(1500px)
    translate3d(calc((1 - var(--e)) * 26vw - var(--x) * 9vw), calc(var(--x) * -3vh), calc((1 - var(--e)) * -140px - var(--x) * 160px))
    rotateY(calc((1 - var(--e)) * -62deg + var(--x) * 26deg + var(--mx) * 8deg))
    rotateX(calc(-1 * var(--my) * 6deg))
    scale(calc(0.9 + var(--e) * 0.1));
}
#lieu .np-stage-phone {
  transform-origin: 50% 100%;
  transform: perspective(1300px)
    translate3d(0, calc((1 - var(--e)) * -13vh - var(--x) * 4vh), calc((1 - var(--e)) * 110px - var(--x) * 120px))
    rotateX(calc((1 - var(--e)) * -38deg + var(--x) * 30deg - var(--my) * 6deg))
    rotateY(calc(var(--mx) * 8deg))
    rotateZ(calc((1 - var(--e)) * 6deg))
    scale(calc(1.08 - var(--e) * 0.08));
}
#plan .np-stage-phone {
  transform: perspective(1400px)
    translate3d(calc((1 - var(--e)) * -4vw), calc((1 - var(--e)) * 5vh - var(--x) * 3vh), calc(var(--x) * -140px))
    rotateY(calc((1 - var(--e)) * 84deg - var(--x) * 46deg + var(--mx) * 8deg))
    rotateZ(calc((1 - var(--e)) * -12deg))
    rotateX(calc(-1 * var(--my) * 6deg))
    scale(calc(0.88 + var(--e) * 0.12));
}
/* au téléphone, le texte est AU-DESSUS de l'iPhone : la descente reste courte et ne bascule presque pas (vu au
   banc 390 × 844 : à pleine amplitude, le haut du téléphone couvrait « Tu choisis. ») */
@media (max-width: 760px) {
  #lieu .np-stage-phone {
    transform: perspective(1300px)
      translate3d(0, calc((1 - var(--e)) * 6vh - var(--x) * 3vh), calc((1 - var(--e)) * -60px - var(--x) * 80px))
      rotateX(calc((1 - var(--e)) * 34deg + var(--x) * 18deg))
      rotateZ(calc((1 - var(--e)) * 4deg))
      scale(calc(0.9 + var(--e) * 0.1));
  }
  #lieu .np-stage-phone::after { transform: translate3d(0, 34px, 0) scale(1.04); }
}
/* l'ombre suit chaque geste : de côté elle part à droite, d'en haut elle est loin sous lui, de la tranche elle est étroite */
#lieu .np-stage-phone::after { transform: translate3d(calc(-1 * var(--mx) * 22px), calc((1 - var(--e)) * 22vh + 34px - var(--my) * 14px), 0) scale(calc(1.04 + (1 - var(--e)) * 0.5)); opacity: calc(0.15 + var(--e) * 0.65); }
#plan .np-stage-phone::after { transform: translate3d(calc(-1 * var(--mx) * 22px), calc(34px - var(--my) * 14px), 0) scale(calc(0.3 + var(--e) * 0.74), 1.04); }
/* l'aura : trois lumières, une par écran ; celle de l'écran affiché s'allume (fondu d'opacité), le tout respire */
.np-aura { position: absolute; left: -62%; right: -62%; top: -20%; bottom: -20%; pointer-events: none; opacity: calc(0.15 + var(--e) * 0.85); translate: calc(var(--mx) * -26px) calc(var(--my) * -18px); }
.np-aura i { --c: 255 45 122; position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(closest-side, rgb(var(--c) / 0.55), rgb(var(--c) / 0.26) 38%, rgb(var(--c) / 0.08) 66%, rgb(var(--c) / 0)); opacity: 0; transition: opacity 0.9s cubic-bezier(0.23, 1, 0.32, 1); }
.np-aura i:nth-child(2) { --c: 0 232 122; }
.np-aura i:nth-child(3) { --c: 123 97 255; }
#lieu .np-aura i:nth-child(1) { --c: 123 97 255; }
#lieu .np-aura i:nth-child(2) { --c: 255 45 122; }
#plan .np-aura i:nth-child(1) { --c: 123 97 255; }
#plan .np-aura i:nth-child(2) { --c: 58 134 255; }
#plan .np-aura i:nth-child(3) { --c: 0 232 122; }
[data-step="0"] .np-aura i:nth-child(1), [data-step="1"] .np-aura i:nth-child(2), [data-step="2"] .np-aura i:nth-child(3) { opacity: 1; }
@media (prefers-reduced-motion: no-preference) { .np-aura { animation: np-aura-breath 6s ease-in-out infinite; } }
@keyframes np-aura-breath { 0%, 100% { transform: scale(0.94); } 50% { transform: scale(1.05); } }
/* le verre : un reflet discret qui glisse avec le pointeur, et le BALAYAGE qui traverse l'écran à chaque
   changement (un nom d'animation par écran : le changer relance le balayage, dans les deux sens) */
.np-stage-phone .device-screen::before {
  content: ""; position: absolute; z-index: 4; inset: -30%; pointer-events: none;
  background: linear-gradient(128deg, rgba(255, 255, 255, 0.11) 0%, rgba(255, 255, 255, 0.035) 24%, rgba(255, 255, 255, 0) 40%);
  transform: translate3d(calc(var(--mx) * -12%), calc(var(--my) * -9%), 0);
}
.np-stage-phone .device-screen::after {
  content: ""; position: absolute; z-index: 4; top: -20%; bottom: -20%; left: -40%; width: 80%; pointer-events: none;
  background: linear-gradient(100deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.04) 28%, rgba(255, 214, 230, 0.36) 46%, rgba(255, 255, 255, 0.62) 50%, rgba(255, 214, 230, 0.3) 54%, rgba(255, 255, 255, 0) 74%);
  transform: translate3d(-60%, 0, 0) skewX(-14deg);
  opacity: 0;
}
[data-step="0"] .np-stage-phone .device-screen::after { animation: np-glass-0 1.15s cubic-bezier(0.45, 0, 0.2, 1) 0.05s both; }
[data-step="1"] .np-stage-phone .device-screen::after { animation: np-glass-1 1.15s cubic-bezier(0.45, 0, 0.2, 1) 0.05s both; }
[data-step="2"] .np-stage-phone .device-screen::after { animation: np-glass-2 1.15s cubic-bezier(0.45, 0, 0.2, 1) 0.05s both; }
@keyframes np-glass-0 { 0% { transform: translate3d(-60%, 0, 0) skewX(-14deg); opacity: 0; } 14%, 80% { opacity: 1; } 100% { transform: translate3d(270%, 0, 0) skewX(-14deg); opacity: 0; } }
@keyframes np-glass-1 { 0% { transform: translate3d(-60%, 0, 0) skewX(-14deg); opacity: 0; } 14%, 80% { opacity: 1; } 100% { transform: translate3d(270%, 0, 0) skewX(-14deg); opacity: 0; } }
@keyframes np-glass-2 { 0% { transform: translate3d(-60%, 0, 0) skewX(-14deg); opacity: 0; } 14%, 80% { opacity: 1; } 100% { transform: translate3d(270%, 0, 0) skewX(-14deg); opacity: 0; } }
/* les écrans glissent : celui qu'on quitte monte et recule, le suivant arrive d'en bas, un peu grand, et se pose */
.np-stage-phone .beat-screen { transition: opacity 0.5s cubic-bezier(0.23, 1, 0.32, 1) 0.08s, transform 0.85s cubic-bezier(0.23, 1, 0.32, 1), visibility 0s linear 0s; }
[data-step="1"] .np-stage-phone .beat-screen[data-i="0"], [data-step="2"] .np-stage-phone .beat-screen[data-i="0"], [data-step="2"] .np-stage-phone .beat-screen[data-i="1"] {
  transform: translate3d(0, -7%, 0) scale(0.94);
  transition: opacity 0.4s cubic-bezier(0.23, 1, 0.32, 1), transform 0.6s cubic-bezier(0.23, 1, 0.32, 1), visibility 0s linear 0.6s;
}
[data-step="0"] .np-stage-phone .beat-screen[data-i="1"], [data-step="0"] .np-stage-phone .beat-screen[data-i="2"], [data-step="1"] .np-stage-phone .beat-screen[data-i="2"] {
  transform: translate3d(0, 9%, 0) scale(1.06);
  transition: opacity 0.4s cubic-bezier(0.23, 1, 0.32, 1), transform 0.6s cubic-bezier(0.23, 1, 0.32, 1), visibility 0s linear 0.6s;
}
/* les étapes : un rail qui se remplit avec le défilement (--p de la section), l'étape courante avance d'un cran */
@media (min-width: 761px) {
  .beat--phone .beat-steps { position: relative; padding-left: 24px; }
  .beat--phone .beat-steps::before, .beat--phone .beat-steps::after { content: ""; position: absolute; left: 0; top: 0.4em; bottom: 0.4em; width: 2px; border-radius: 2px; pointer-events: none; }
  .beat--phone .beat-steps::before { background: rgba(255, 255, 255, 0.12); }
  .beat--phone .beat-steps::after { background: linear-gradient(180deg, #FF2D7A, #7B61FF 70%, #3A86FF); transform-origin: 50% 0; transform: scaleY(var(--p, 0)); box-shadow: 0 0 12px rgba(255, 45, 122, 0.55); }
  .beat--phone .beat-step { transition: color 0.4s ease, translate 0.6s cubic-bezier(0.23, 1, 0.32, 1); }
  .beat--phone[data-step="0"] .beat-step[data-i="0"], .beat--phone[data-step="1"] .beat-step[data-i="1"], .beat--phone[data-step="2"] .beat-step[data-i="2"] { translate: 8px 0; }
  /* plus grands sur ordinateur, à la hauteur de l'écran */
  .beat-phone { width: min(36vw, 440px, calc((100svh - 128px) * 0.468)); }
  .plan-phone { width: min(30vw, 430px, calc((100svh - 128px) * 0.468)); }
}
/* bureau : l'iPhone vient au centre de sa moitié (plus de vide entre le texte et lui) */
@media (min-width: 1100px) {
  .beat-phone-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 0.82fr); }
  .beat-phone { justify-self: center; }
}

/* « Ce soir » en scène : le tableau pivote vers toi à l'entrée et suit à peine le pointeur */
/* (--eb : l'entrée du tableau finit au moment où la section s'épingle, il n'a pas de masque qui le cache) */
.motion-ready .np-stage-board {
  --eb: clamp(0, calc(var(--e) * 2.3), 1);
  transform: perspective(1400px) translate3d(calc((1 - var(--eb)) * -6vw), calc((1 - var(--eb)) * 6vh), 0) rotateY(calc((1 - var(--eb)) * 24deg));
  transform-origin: 0 50%;
  opacity: calc(0.15 + var(--eb) * 0.85);
  translate: calc(var(--mx) * 7px) calc(var(--my) * 5px);
}
/* le tableau « se rafraîchit » : une ligne de lumière le parcourt de haut en bas, de temps en temps */
.home .board .soir-list { position: relative; isolation: isolate; --spot-c: rgba(255, 120, 170, 0.85); }
.home .board .soir-list.is-arrived::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 42%; z-index: 2; pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 45, 122, 0) 0%, rgba(255, 45, 122, 0.05) 72%, rgba(255, 150, 190, 0.28) 98%, rgba(255, 45, 122, 0) 100%);
  transform: translate3d(0, -110%, 0);
  opacity: 0;
}
@media (prefers-reduced-motion: no-preference) {
  .home .board .soir-list.is-arrived::after { animation: np-board-scan 7.5s cubic-bezier(0.5, 0, 0.3, 1) 1.8s infinite; }
}
@keyframes np-board-scan { 0% { transform: translate3d(0, -110%, 0); opacity: 0; } 6% { opacity: 1; } 34% { transform: translate3d(0, 250%, 0); opacity: 0; } 100% { transform: translate3d(0, 250%, 0); opacity: 0; } }
/* une ligne survolée avance vers toi, un trait rose → violet naît à sa gauche, l'affiche s'approche */
.home .board .soir-list .tonight-item { position: relative; transition: background-color 0.2s cubic-bezier(0.23, 1, 0.32, 1), translate 0.4s cubic-bezier(0.23, 1, 0.32, 1); }
.home .board .soir-list .tonight-item::before { content: ""; position: absolute; left: 0; top: 18%; bottom: 18%; width: 3px; border-radius: 0 3px 3px 0; background: linear-gradient(180deg, #FF2D7A, #7B61FF); transform: scaleY(0); transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1); pointer-events: none; }
.home .board .soir-list .tonight-art img { transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1); }
.home .board .soir-list .tonight-item:focus-visible::before { transform: scaleY(1); }
@media (hover: hover) and (pointer: fine) {
  .home .board .soir-list .tonight-item:hover { translate: 6px 0; background: rgba(255, 45, 122, 0.07); }
  .home .board .soir-list .tonight-item:hover::before { transform: scaleY(1); }
  .home .board .soir-list .tonight-item:hover .tonight-art img { transform: scale(1.12); }
}
/* bureau : la colonne du tableau un peu plus large (la hauteur des lignes reste celle du socle : jamais de CLS) */
@media (min-width: 1200px) { .soir-head { max-width: clamp(470px, 40vw, 660px); } .soir-title { font-size: clamp(5rem, 7vw, 8.4rem); } }

/* Le mot du fondateur, ordinateur : le guillemet de la colonne de droite se remplit avec la lecture (--g recopié
   par script.js), du bas vers le haut, en dégradé de la marque ; le contour reste visible. Sticky : il accompagne
   le texte. Sans JS / mouvement réduit : rempli (--g par défaut à 1). */
.vision-mark { display: none; }
@media (min-width: 1200px) {
  .vision-mark { display: block; grid-column: 2; grid-row: 2; align-self: stretch; position: relative; }
  .vision-mark-in { position: sticky; top: 16vh; display: block; width: max-content; margin-left: auto; margin-right: auto; }
  .vision-mark-q { display: block; padding: 0 0.04em; font-family: var(--font-display); font-weight: 800; font-size: clamp(18rem, 30vw, 34rem); line-height: 0.9; letter-spacing: 0; color: transparent; -webkit-text-stroke: 2px rgba(255, 255, 255, 0.1); user-select: none; }
  .vision-mark-fill {
    position: absolute; inset: 0; -webkit-text-stroke: 0;
    background: linear-gradient(165deg, #FF2D7A 12%, #7B61FF 56%, #3A86FF 96%);
    -webkit-background-clip: text; background-clip: text;
    clip-path: inset(calc((1 - var(--g, 1)) * 100%) 0 0 0);
  }
}

/* Mouvement réduit, « lite » : tout à plat, tout visible, rien ne tourne */
@media (prefers-reduced-motion: reduce) {
  .np-stage-phone, .motion-ready .np-stage-board { transform: none !important; translate: none !important; opacity: 1 !important; }
  .np-stage-phone::after { transform: translate3d(0, 34px, 0) scale(1.04); opacity: 0.8; }
  .np-aura { translate: none; opacity: 1; }
  .np-stage-phone .device-screen::before { transform: none; }
  .np-stage-phone .device-screen::after { animation: none !important; display: none; }
  .np-stage-phone .beat-screen { transform: none !important; transition: none !important; }
  .beat--phone .beat-steps::after { transform: none; }
  .beat--phone .beat-step { transition: none; translate: none !important; }
  .home .board .soir-list .tonight-item, .home .board .soir-list .tonight-item::before, .home .board .soir-list .tonight-art img { transition: none; }
}
html.lite .np-stage-phone, html.rm .np-stage-phone, html.lite .np-stage-board, html.rm .np-stage-board { transform: none !important; translate: none !important; opacity: 1 !important; }
html.lite .np-aura, html.rm .np-aura { animation: none; translate: none; opacity: 1; }
html.lite .np-stage-phone .device-screen::after, html.rm .np-stage-phone .device-screen::after { animation: none !important; display: none; }
html.lite .np-stage-phone .beat-screen, html.rm .np-stage-phone .beat-screen { transform: none !important; }
html.lite .home .board .soir-list.is-arrived::after, html.rm .home .board .soir-list.is-arrived::after { animation: none; display: none; }
