/* =========================================================
   NoctiPulse — Site marketing
   Dark immersif nocturne · couleurs signature · CSS pur
   ========================================================= */

/* Polices AUTO-HÉBERGÉES (plus de requête à Google Fonts : une origine de
   moins à ouvrir, préchargées depuis la tête) : Bricolage Grotesque 800 et
   Hanken Grotesk variable, sous-ensemble latin. Le mono éditorial est le
   mono du système (aucun fichier, aucun décalage). */
@font-face { font-family: 'Bricolage Grotesque'; src: url('/assets/fonts/bricolage-grotesque-800-latin.woff2') format('woff2'); font-weight: 700 800; font-display: swap; }
@font-face { font-family: 'Hanken Grotesk'; src: url('/assets/fonts/hanken-grotesk-var-latin.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
/* Polices de repli aux MÊMES métriques que les vraies (mesurées sur Arial) :
   quand Bricolage / Hanken arrivent (display=swap), le texte ne change ni de
   largeur ni de hauteur de ligne, rien ne saute (CLS du héros des pages pro). */
@font-face { font-family: 'NP Display Fallback'; src: local('Arial Bold'), local('Arial-BoldMT'), local('Helvetica Neue Bold'), local('Roboto Bold'); font-weight: 600 900; size-adjust: 100.6%; ascent-override: 91%; descent-override: 26%; line-gap-override: 0%; } /* 100,6 % : le titre du héros mesure 1734 px en Bricolage 800, 1765 en Arial Bold à 102,4 % (2026-10-13) */
@font-face { font-family: 'NP Body Fallback'; src: local('Arial'), local('ArialMT'), local('Helvetica Neue'), local('Roboto'); font-weight: 300 500; size-adjust: 99.7%; ascent-override: 100%; descent-override: 30%; line-gap-override: 0%; }
@font-face { font-family: 'NP Body Fallback'; src: local('Arial Bold'), local('Arial-BoldMT'), local('Helvetica Neue Bold'), local('Roboto Bold'); font-weight: 600 900; size-adjust: 94.3%; ascent-override: 106%; descent-override: 32%; line-gap-override: 0%; }

:root {
  /* Site nocturne dark-only : on le déclare au navigateur pour que TOUS les
     contrôles natifs (menu <select>, autofill, barres de défilement, etc.)
     rendent en sombre — sinon ils surgissent en thème clair par défaut sur le
     fond nuit (« dark-mode partout »). */
  color-scheme: dark;

  /* Couleurs signature (identité de marque — ne changent jamais) */
  --rose: #FF2D7A;
  --violet: #7B61FF;
  --blue: #3A86FF;
  --teal: #FF2D7A;     /* présence : moi = ROSE signature (amendement founder 2026-06-11 ;
                          le teal #1FE5C0 du 06-05 est abandonne cote app comme ici) */
  --green: #00E87A;    /* présence : amis */
  --gold: #FFB800;     /* premium partenaire */
  --sport: #00E676;    /* compétition / sport (règle dure founder 2026-06-18) — jamais rose ni rouge */
  --safe: #00C08B;     /* Safe Home — vert de soin (doctrine visual-semantics, ordre founder
                          2026-08-29 ; était cyan #00D4FF, aligné sur l'app le 2026-10-11) */

  /* Fond nuit + surfaces glassmorphism */
  --night: #070710;
  --night-2: #0c0c1a;
  --surface: rgba(255, 255, 255, 0.05);
  --surface-2: rgba(255, 255, 255, 0.08);
  --border: rgba(255, 255, 255, 0.10);
  --border-strong: rgba(255, 255, 255, 0.16);

  /* Texte */
  --text: #FFFFFF;
  --text-2: #A0A0B8;
  --text-3: #7d7d96; /* contraste ≥ 4.5:1 sur --night (a11y) — était #6e6e85 (4.0:1) */

  /* Gradient signature rose → violet → bleu */
  --grad: linear-gradient(100deg, var(--rose) 0%, var(--violet) 52%, var(--blue) 100%);

  --radius: 18px;
  --radius-lg: 24px;
  --maxw: 1140px;

  /* Typo (refonte anti-« AI-slop » 2026-06-17) : display caractérielle
     (Bricolage Grotesque) qui PORTE le design, corps net (Hanken Grotesk),
     mono éditorial (Geist Mono) pour les labels/kickers. */
  --font-display: 'Bricolage Grotesque', 'NP Display Fallback', Georgia, serif;
  --font-body: 'Hanken Grotesk', 'NP Body Fallback', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: ui-monospace, 'SF Mono', 'Cascadia Mono', Menlo, Consolas, monospace;

  /* Glow quasi supprimé (dé-slop) : un seul accent discret, plus de néon partout. */
  --shadow-glow: 0 0 24px rgba(255, 45, 122, 0.12);
}

/* ---------- Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

/* fond explicite sur html AUSSI (pas seulement body) : sur iOS le rebond d'élan (overscroll) et le fond du
   document derrière le body se peignent avec le fond de html — sans token il tombe sur le blanc par défaut
   (un flash blanc en haut/bas de page au doigt). color-scheme:dark aide, mais le token est la garantie. */
html { background: var(--night); scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scrollbar-gutter: stable; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  /* Coupe net les animations restantes (audit a11y 2026-06-20) : pulses, halos,
     dégradé, traînées de révélation. Le bloc générique ci-dessus écrase déjà la
     durée ; on désactive en plus explicitement pour ne laisser AUCUN mouvement
     résiduel (boucle 0.001ms incluse) sur les éléments décoratifs porteurs. */
  .reveal,
.brand-logo,
.portal-phone-frame {
    animation: none !important;
  }
}

/* Transition de page : fondu à l'arrivée. PAS de transform (founder 2026-06-17) :
   un transform persistant sur <body> (fill both) en faisait le bloc conteneur des
   éléments position:fixed → le lightbox se centrait sur le document, pas le
   viewport (« photo pas centrée »). Fondu d'opacité seul = aucun bloc conteneur. */
@keyframes np-page-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  /* ⚠️ TRANSPARENT — la ville (canevas .np-ambient, position:fixed z-index:-1) doit transparaître DERRIÈRE
     le contenu. Régression 2026-10-13→14 (founder iPhone « je vois rien en arrière plan », scène pourtant à
     fps 30) : le commit « fonds blancs » a ajouté `html { background: var(--night) }`, ce qui a coupé la
     PROPAGATION du fond du body vers le viewport ; le body peignait alors son #070710 opaque PAR-DESSUS le
     canevas en z négatif → ville invisible (reproduit en Chrome headed GPU, confirmé corrigé). Le repli
     sombre vit désormais sur `html` (derrière le canevas), le body laisse voir la ville. */
  background: transparent;
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  animation: np-page-in 0.28s ease-out both;
}

/* ─── Système typographique (dé-slop 2026-06-17) ───────────────────────────
   La display PORTE le design : titres en Bricolage Grotesque, serrés. Les
   kickers/eyebrows passent en mono (Geist Mono) → signature éditoriale. */
h1,
h2,
h3,
.hero-title,
.brand-name,
.audience-card h3,
.legal-article h2,
.legal-article h1 {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
}
.nav-cta { white-space: nowrap; }

a { color: inherit; text-decoration: none; }

img, svg { display: block; max-width: 100%; }
/* Les <img> portent leurs width/height RÉELS (réserve l'espace, zéro saut de
   mise en page) : la hauteur suit la largeur CSS, jamais l'attribut brut. */
img { height: auto; }
/* <picture> (WebP + repli PNG) transparent pour la mise en page : les règles
   existantes ciblant `.x img` continuent de s'appliquer telles quelles. */
picture { display: contents; }

/* Fondu natif entre pages (remplace l'ancien fondu JS à 190 ms de délai). */
@view-transition { navigation: auto; }
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
}

h1, h2, h3, h4 { line-height: 1.1; margin: 0; letter-spacing: -0.02em; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 1000;
  /* texte nuit sur rose : 7,6:1 (le blanc sur rose ne faisait que 3,55:1) */
  background: var(--rose); color: var(--night); padding: 12px 18px;
  border-radius: 0 0 12px 0; font-weight: 700;
}
.skip-link:focus { left: 0; }

:focus-visible {
  outline: 2px solid var(--rose);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}
.narrow { max-width: 820px; }

section { position: relative; }

.section-title {
  font-size: clamp(1.9rem, 4.5vw, 3.1rem);
  font-weight: 800;
  margin-bottom: 22px;
}

.lead {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--text-2);
  max-width: 64ch;
}
.lead.center { margin-left: auto; margin-right: auto; text-align: center; }
@keyframes np-grad-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  font-size: 1rem;
  padding: 15px 28px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.25s ease, background 0.25s ease;
  font-family: inherit;
}
/* CTA principal = CONTOUR en dégradé signature, centre nuit, label blanc (2026-10-19). Le même
   canon que le bouton signal du héros et que l'app (règle founder 2026-06-20 / 06-24 : plus jamais de
   remplissage, dégradé compris ; le dégradé est la BORDURE). Avant : fond dégradé plein + lueur
   violette, un langage de bouton différent entre l'accueil et les pages pro, le 404, l'invitation.
   Blanc sur nuit : 19:1. La lueur n'apparaît qu'au survol, et seulement au pointeur fin. */
.btn-primary {
  color: var(--text);
  border: 1.5px solid transparent;
  background:
    linear-gradient(var(--night), var(--night)) padding-box,
    var(--grad) border-box;
  box-shadow: 0 0 0 0 rgba(255, 45, 122, 0);
}
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover {
    transform: translateY(-2px);
    background:
      linear-gradient(#120d22, #120d22) padding-box,
      var(--grad) border-box;
    box-shadow: 0 0 34px -6px rgba(255, 45, 122, 0.55), 0 0 64px -14px rgba(123, 97, 255, 0.5);
  }
}
.btn-primary:active { transform: scale(0.97); }
.btn-primary:disabled,
.btn-primary[aria-disabled="true"] {
  opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none;
}
.btn-ghost {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border-strong);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover { background: var(--surface-2); transform: translateY(-2px); }

/* CTA beta en CONTOUR (founder 2026-06-20 : le bouton plein gênait). Bordure rose
   signature, fond transparent ; le rose se remplit légèrement au survol. Sobre,
   pas de gradient plein. Utilisé par les boutons « Je veux la beta » / beta. */
.btn-beta-outline {
  background: transparent;
  color: var(--rose);
  border: 1.5px solid rgba(255, 45, 122, 0.55);
  box-shadow: none;
}
.btn-beta-outline:hover {
  background: rgba(255, 45, 122, 0.10);
  border-color: var(--rose);
  transform: translateY(-2px);
  box-shadow: none;
}
.btn-beta-outline:focus-visible {
  outline: 2px solid var(--rose);
  outline-offset: 2px;
}

/* =========================================================
   HEADER / NAV
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  background: rgba(7, 7, 16, 0.7);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; min-height: 44px; }
.brand-logo {
  width: 34px; height: 34px;
  border-radius: 50%;
  filter: drop-shadow(0 0 10px rgba(255, 45, 122, 0.45)) drop-shadow(0 0 18px rgba(123, 97, 255, 0.3));
  transition: transform 0.3s ease, filter 0.3s ease;
}
/* Logo DYNAMIQUE au survol (founder 2026-06-17) : pulse d'énergie animé tant
   que le curseur est dessus, au lieu d'un simple scale figé. S'applique au logo
   du header ET au grand logo du hero. */
@keyframes np-logo-pulse {
  0%, 100% {
    transform: scale(1);
    filter: drop-shadow(0 0 12px rgba(255, 45, 122, 0.55)) drop-shadow(0 0 22px rgba(123, 97, 255, 0.4));
  }
  50% {
    transform: scale(1.13);
    filter: drop-shadow(0 0 22px rgba(255, 45, 122, 0.95)) drop-shadow(0 0 42px rgba(123, 97, 255, 0.7));
  }
}
.brand:hover .brand-logo {
  animation: np-logo-pulse 1.1s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) {
  .brand:hover .brand-logo { animation: none; }
}
.brand-name {
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  font-weight: 800;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.site-footer .brand-logo { width: 30px; height: 30px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
  margin: 0; padding: 0;
}
.nav-links a { color: var(--text-2); font-weight: 500; font-size: 0.95rem; transition: color 0.2s; }
.nav-links a:hover { color: var(--text); }
/* Onglets de navigation principale (Noctambules / Établissements / Organisateurs) */
/* `.nav-links a.nav-tab` (et non `.nav-tab`) : sinon `.nav-links a` (plus
   spécifique) écrase la transition et seul `color` s'animait → le fond/bordure
   au survol surgissaient sec. Ici les 3 propriétés s'animent ensemble. */
.nav-links a.nav-tab {
  position: relative;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: color 0.2s, background 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.nav-tab:hover {
  color: var(--text);
  background: rgba(255,255,255,0.05);
}
.nav-tab[aria-current="page"] {
  color: var(--rose);
  font-weight: 700;
  background: rgba(255,45,122,0.10);
  border-color: rgba(255,45,122,0.22);
  box-shadow: 0 0 14px rgba(255,45,122,0.12);
}

/* =========================================================
   NAV — Menu déroulant « Professionnels »
   Regroupe Établissements + Organisateurs. Ouverture au survol
   (desktop) ET au clic/clavier (JS toggle `.is-open` + aria-expanded).
   Sobre, cohérent avec les onglets : surface nuit glassmorphism.
   ========================================================= */
.nav-dropdown { position: relative; }

/* Le toggle est un <button> : on neutralise le style natif et on réutilise
   l'apparence des onglets via `.nav-tab`. font/cursor explicites car bouton. */
.nav-links button.nav-tab {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  /* Sans color explicite, le <button> prenait la couleur UA par défaut
     (ButtonText sombre) → « Professionnels » ressortait gris/noir, différent
     des onglets <a> (var(--text-2)). On aligne (founder 2026-06-24). */
  color: var(--text-2);
  background: transparent;
  /* Même gabarit que les onglets <a> : sans ça, la bordure native du
     <button> dessinait un cadre blanc autour de « Professionnels ». */
  padding: 7px 14px;
  border: 1px solid transparent;
  border-radius: 999px;
  min-height: 44px;
  transition: color 0.2s, background 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.nav-caret {
  font-size: 0.7em;
  line-height: 1;
  transition: transform 0.22s ease;
  opacity: 0.85;
}
/* Chevron retourné quand le menu est ouvert (survol desktop OU clic). */
.nav-dropdown:hover .nav-caret,
.nav-dropdown.is-open .nav-dropdown-toggle .nav-caret { transform: rotate(180deg); }

/* Onglet « Professionnels » mis en avant quand une de ses pages est active
   (réutilise la sémantique visuelle de aria-current). */
.nav-links button.nav-dropdown-toggle.is-active {
  color: var(--rose);
  font-weight: 700;
  background: rgba(255,45,122,0.10);
  border-color: rgba(255,45,122,0.22);
  box-shadow: 0 0 14px rgba(255,45,122,0.12);
}

/* Panneau déroulant : petite surface nuit, 2 liens empilés. Masqué par défaut. */
.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 188px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 6px;
  background: rgba(12, 12, 24, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.45);
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  /* A11Y 2026-08-07 : retire les liens du parcours clavier tant que le menu
     est ferme (opacity seule les laissait focusables et invisibles). */
  visibility: hidden;
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  z-index: 60;
}
/* Petit tampon invisible pour que le survol ne se coupe pas entre l'onglet
   et le panneau (les 8px de gap). */
.nav-dropdown-menu::before {
  content: "";
  position: absolute;
  top: -10px; left: 0; right: 0;
  height: 10px;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.is-open .nav-dropdown-menu {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  visibility: visible;
  /* à l'ouverture, visible tout de suite (le fondu reste) : le premier lien reçoit le focus clavier
     dans le même geste (SIT-37) ; à la fermeture, la règle de base garde visibility 0.18s */
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0s;
}
.nav-dropdown-link {
  display: block;
  padding: 9px 14px;
  border-radius: 9px;
  color: var(--text-2);
  font-size: 0.92rem;
  font-weight: 500;
  white-space: nowrap;
  transition: color 0.2s, background 0.2s;
}
.nav-dropdown-link:hover { color: var(--text); background: rgba(255,255,255,0.06); }
.nav-dropdown-link[aria-current="page"] {
  color: var(--rose);
  font-weight: 700;
  background: rgba(255,45,122,0.10);
}
.nav-dropdown-link:focus-visible,
.nav-dropdown-toggle:focus-visible {
  outline: 2px solid var(--rose);
  outline-offset: 2px;
}

/* `.nav-links a.nav-cta` : même raison que `.nav-tab` — sans ce surcroît de
   spécificité, `.nav-links a` impose `transition: color` seul et le passage au
   dégradé au survol surgissait sec. */
/* CTA « Rejoindre la beta » en CONTOUR (founder 2026-06-20 : le bouton plein le
   gênait — « moche rempli »). Bordure rose signature, fond transparent, sobre.
   Le rose passe en plein seulement au survol (lien discret avec l'identité). */
.nav-links a.nav-cta {
  color: var(--rose) !important;
  background: transparent;
  border: 1.5px solid rgba(255, 45, 122, 0.55);
  padding: 8px 19px;
  border-radius: 999px;
  font-weight: 700;
  box-shadow: none;
  transition: border-color 0.25s ease, background 0.25s ease, color 0.2s ease, transform 0.2s ease;
}
.nav-links a.nav-cta:hover {
  border-color: var(--rose);
  background: rgba(255, 45, 122, 0.10);
  transform: translateY(-1px);
}
.nav-links a.nav-cta:focus-visible {
  outline: 2px solid var(--rose);
  outline-offset: 2px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none; border: none; cursor: pointer; padding: 8px;
  /* Cible tactile ≥ 44 px (a11y 2026-10-08). */
  min-width: 44px; min-height: 44px;
  align-items: center; justify-content: center;
}
.nav-toggle span {
  width: 24px; height: 2px; background: var(--text); border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 80px 0 60px;
}

.hero-inner { position: relative; z-index: 2; }
.hero-title {
  font-size: clamp(2.8rem, 9vw, 5.6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}
.hero-sub {
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  color: var(--text-2);
  max-width: 56ch;
  margin: 0 0 36px;
}
.hero-sub strong { color: var(--text); font-weight: 700; }

/* Nuages d'énergie (.neb/.n1-.n11 + @keyframes neb-pulse) SUPPRIMÉS
   (dé-slop 2026-06-17) : le SVG qui les portait a été retiré du HTML. */

/* ─── Carte décorative du hero noctambules (SVG Artères Vivantes) ───────────
   Le SVG s'appuyait uniquement sur ses attributs inline → les pins .me/.friend/
   .pin-none rendaient en NOIR (aucun fill défini) et les artères en trait 1px à
   peine visible. On câble ici la palette signature : artères lisibles, pins par
   catégorie, présence teal (moi) / vert (amis). Respire doucement (coupé en
   reduced-motion). Décoratif (aria-hidden) — voilé par .hero-veil. */

.pin { stroke: rgba(7, 7, 16, 0.6); stroke-width: 1.5px; }
.pin-ring {
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.5px;
  opacity: 0.8;
}
/* Présence : moi = teal froid, amis = vert (système couleurs énergie) */
.me     { fill: var(--teal);  stroke: rgba(255, 45, 122, 0.35); stroke-width: 5px; }
.friend { fill: var(--green); stroke: rgba(0, 232, 122, 0.35);  stroke-width: 4px; }

.halo { transform-origin: center; transform-box: fill-box; }
@keyframes np-halo-breathe {
  0%, 100% { opacity: 0.85; transform: scale(1); }
  50%      { opacity: 1;    transform: scale(1.08); }
}

/* =========================================================
   PROMESSE
   ========================================================= */
/* Grille « n'est pas / est » (.not-grid / .not-col) RETIRÉE le 2026-10-08d :
   remplacée par les paires typographiques .contrast-list (fin du fichier). */

/* Section PILIERS (.piliers, .pilier-…, .icon-…) SUPPRIMÉE (dé-slop 2026-06-17) :
   les 3 piliers sont désormais racontés en sections alternées (.feature-rows). */

/* =========================================================
   FEATURES
   ========================================================= */
.feature-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  background: var(--surface);
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}
.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  background: var(--surface-2);
}
.feature-card h3 {
  display: flex; align-items: center; gap: 10px;
  font-size: 1.2rem; margin-bottom: 12px;
}
.feature-card p { color: var(--text-2); margin: 0; font-size: 0.97rem; }  /* Safe Home = vert de soin */  /* Premium / récap annuel = or */

/* =========================================================
   PARTENAIRES
   ========================================================= */
.partenaires {
  padding: clamp(70px, 10vw, 130px) 0;
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, var(--night-2) 0%, var(--night) 100%);
}
.partenaires .section-title { text-align: center; }

.offer-wrap { margin: 48px 0 18px; overflow-x: auto; -webkit-overflow-scrolling: touch; }

.tier-name { display: block; font-weight: 800; font-size: 1.05rem; color: var(--text); margin-top: 6px; }
.tier-price { display: block; font-weight: 700; color: var(--text-2); margin-top: 4px; }
.tier-price small { font-size: 0.75rem; color: var(--text-3); font-weight: 500; }
.tier-badge {
  display: inline-block;
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 800;
  color: #1a1300;
  background: var(--gold);
  padding: 3px 9px;
  border-radius: 999px;
}

/* Cellules oui / non */
/* texte explicite dans une cellule no (ex "Repère seul") */

/* =========================================================
   PREMIUM USER
   ========================================================= */
.premium {
  padding: clamp(70px, 10vw, 130px) 0;
  text-align: center;
}

.premium-benefits {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 620px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  text-align: left;
}
.premium-benefits li {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  font-weight: 500;
}
.check {
  width: 20px; height: 20px; border-radius: 50%; flex: none;
  background: var(--grad);
  position: relative;
}
.check::after {
  content: "✓"; color: #fff; font-size: 0.72rem; font-weight: 800;
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
}

/* Capture du comparatif Premium, centrée façon écran de téléphone. */

/* =========================================================
   BETA / CTA FINAL
   ========================================================= */
.beta {
  padding: clamp(80px, 12vw, 150px) 0;
  border-top: 1px solid var(--border);
  background:
    radial-gradient(ellipse 60% 80% at 50% 0%, rgba(123, 97, 255, 0.18), transparent 60%),
    var(--night);
}
.beta .section-title { text-align: center; }

.beta-form {
  display: flex;
  gap: 12px;
  max-width: 480px;
  margin: 34px auto 0;
  flex-wrap: wrap;
}
.beta-form input {
  flex: 1 1 240px;
  padding: 15px 20px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  font-size: 1rem;
  font-family: inherit;
}
.beta-form input::placeholder { color: var(--text-3); }
.beta-form input:focus { outline: 2px solid var(--violet); outline-offset: 2px; }
/* État désactivé lisible (a11y, audit 2026-06-20) — symétrique du partner-form. */
.beta-form input:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  color: var(--text-3);
}
.beta-form .btn { flex: none; }
.beta-hint { color: var(--text-3); font-size: 0.88rem; margin: 16px 0 0; }
.beta-hint.ok { color: var(--green); }
.beta-hint.err { color: var(--rose); }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--night-2);
  padding: 56px 0 32px;
}
.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--border);
}
.footer-tag { color: var(--text-3); font-size: 0.9rem; margin: 12px 0 0; }
.footer-launch {
  font-size: 0.78rem;
  color: var(--text-3);
  margin: 4px 0 0;
  letter-spacing: 0.03em;
}
.footer-links { display: flex; gap: 56px; flex-wrap: wrap; }
/* Titres de colonnes du pied de page : simples libellés (.footer-heading),
   plus des <h4> qui sautaient des niveaux de titre (a11y 2026-10-08). */
.footer-links h4,
.footer-links .footer-heading {
  font-family: var(--font-display);
  font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--text-2); margin: 0 0 6px;
}
/* Liens ≥ 44 px de haut (cible tactile), sans changer le rythme visuel. */
.footer-links a {
  display: flex; align-items: center; min-height: 44px;
  color: var(--text-2); font-size: 0.92rem;
  padding: 0; transition: color 0.2s;
}
/* Liens EN LIGNE dans une phrase du pied : la zone de toucher s'agrandit par
   un rembourrage vertical qui ne pousse pas la ligne (inline, pas
   inline-block : à 390 px, « contributeurs OpenStreetMap » passait à la ligne
   avec 24 px de vide au-dessus). */
.footer-bottom a { display: inline; padding: 12px 0; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.footer-links a:hover { color: var(--text); }
.footer-bottom { padding-top: 24px; }
.footer-bottom p { color: var(--text-3); font-size: 0.85rem; margin: 0; }

/* =========================================================
   AUDIENCE TEASER (accueil → pages B2B)
   ========================================================= */
.audience-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  background: var(--surface);
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.audience-card:hover { transform: translateY(-6px); border-color: var(--border-strong); }
.audience-card h3 { font-size: 1.6rem; }
.audience-card p { color: var(--text-2); margin: 0; }
.audience-card .btn { margin-top: 8px; }

/* =========================================================
   PAGES B2B — HERO COMPACT
   ========================================================= */

/* Bandeau de stats / preuve de valeur */
.proof-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  background: var(--surface);
  text-align: center;
}
/* Bandeau de preuve à 2 cartes (établissements) : 2 colonnes au lieu de laisser
   une 3e colonne vide dans la grille repeat(3,…). */

/* =========================================================
   PAGES B2B — BÉNÉFICES (cartes valeur)
   ========================================================= */
.value {
  padding: clamp(70px, 10vw, 120px) 0;
  border-top: 1px solid var(--border);
}
.value-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 26px;
  background: var(--surface);
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}
.value-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-strong);
  background: var(--surface-2);
}
.value-card h3 {
  display: flex; align-items: center; gap: 10px;
  font-size: 1.2rem; margin-bottom: 12px;
}
.value-card p { color: var(--text-2); margin: 0; font-size: 0.97rem; }

/* Vision/Roadmap accueil : 4 cartes (lancement / expansion / piliers / récap
   annuel) → grille 2×2 équilibrée à partir de la tablette (évite l'orpheline
   3+1 d'une grille à 3 colonnes). Sous 720px, le bloc partagé replie en 1fr
   (cette règle est gardée >720px pour ne pas écraser ce repli mobile, vu sa
   spécificité ID). */

/* =========================================================
   VISION — FRISE NARRATIVE CONTINUE (#vision .np-timeline)
   Une seule ligne du temps verticale. Le STATUT se lit par la POSITION + la
   LUMIÈRE du trait, jamais par des badges : la portion « parcours » (genèse →
   1er août) est VIVE (dégradé violet→rose plein) ; la portion « perspectives »
   (après le pivot) devient DISCRÈTE (pointillé estompé). Repère « Aujourd'hui »
   distinct (point pulsé), pivot « 1er août » mis en avant (halo rose).
   ========================================================= */
/* Trait dessiné PAR NŒUD (auto-aligné sur la hauteur réelle du contenu) : chaque
   item trace le segment qui descend vers le suivant. Par défaut = trait VIVANT
   (lumière = réalisé), dégradé violet→rose. Le dernier item ne descend pas.
   La portion future (.tl-future) bascule en pointillé estompé plus bas. */

/* ── PARCOURS (.tl-node) : lumière pleine. Pastille bien visible, pas de badge.
   Le statut « construit » est implicite (avant le repère Aujourd'hui). ── */

/* ── ● AUJOURD'HUI (.tl-now) : repère DISTINCT, point pulsé rose. ── */
@keyframes tlNowPulse {
  0%   { transform: scale(0.7); opacity: 0.85; }
  70%  { transform: scale(2.1); opacity: 0; }
  100% { transform: scale(2.1); opacity: 0; }
}
/* Libellé « Aujourd'hui » accentué + petit point pulsé inline. */
@keyframes tlNowDot {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.4; }
}

/* ── 1ER AOÛT (.tl-launch) : nœud PIVOT mis en avant — halo + carte rose. ── */

/* ── Bascule LUMIÈRE → ESTOMPÉ du trait : à partir du pivot « 1er août »,
   le segment qui descend vers les perspectives devient pointillé discret. ── */

/* ── PERSPECTIVES (.tl-future) : ESTOMPÉ/OUTLINE — pas encore là. ── */

/* Étapes « comment ça marche » */
.steps {
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 50px;
}
.step {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 22px;
  background: var(--surface);
  position: relative;
}
.step::before {
  counter-increment: step;
  content: counter(step);
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--grad);
  color: var(--night);
  font-weight: 800;
  font-size: 1rem;
  margin-bottom: 16px;
}
.step h3 { font-size: 1.05rem; margin-bottom: 8px; }
.step p { color: var(--text-2); margin: 0; font-size: 0.92rem; }

/* Encart différenciation Établissement vs Organisateur */
.distinction {
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 30px 32px;
  background: rgba(123, 97, 255, 0.06);
  margin-top: 50px;
}
.distinction h3 { font-size: 1.15rem; margin-bottom: 10px; }
.distinction p { color: var(--text-2); margin: 0; }
.distinction strong { color: var(--text); }

/* =========================================================
   MODE COMPÉTITION — sport = VERT (règle dure founder 2026-06-18),
   jamais rose ni rouge. Mini-note accueil + note B2B établissements.
   ========================================================= */

/* Mini-carte discrète (accueil) */
.compet-ball { width: 13px; height: 13px; flex: none; }

/* Variante avec capture réelle (« Je diffuse ce match » vert) à côté du texte. */

/* Note B2B (établissements) */
.compet-note-sec { padding: clamp(50px, 8vw, 90px) 0; }
.compet-note {
  border: 1px solid rgba(0, 230, 118, 0.30);
  border-radius: var(--radius-lg);
  padding: clamp(26px, 4vw, 38px);
  background: rgba(0, 230, 118, 0.06);
}
.compet-note-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--sport);
  margin-bottom: 8px;
}
.compet-note-title { font-size: clamp(1.4rem, 3.4vw, 1.9rem); margin: 0 0 12px; }
.compet-note-text { color: var(--text-2); margin: 0; font-size: 1rem; line-height: 1.6; max-width: 62ch; }
.compet-note-text strong { color: var(--text); }

.compet-note-shots {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 24px 0 0;
}
/* Une seule capture (2026-10-11) : centrée, à la largeur d'une colonne. */
.compet-note-shots:has(> :only-child) {
  grid-template-columns: minmax(0, 340px);
  justify-content: center;
}

/* Photo réelle (founder 2026-06-18) — cadre rempli 4/3.
   4/3, coins arrondis, fin liseré. Sobre : on évoque, on ne déballe pas tout. */
.photo-shot {
  position: relative;
  margin: 0;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0,0,0,0.45), 0 0 0 1px rgba(255,255,255,0.07);
}
.photo-shot img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Variante portrait : captures d'écran d'app (téléphone) dans le cadre compét.
   On bascule en ratio portrait + contain pour montrer toute l'UI sans rogner. */
.photo-shot--portrait {
  aspect-ratio: 9 / 16;
  background: #070710;
}
.photo-shot--portrait img {
  object-fit: contain;
}

@media (max-width: 560px) {
  .compet-note-shots { grid-template-columns: 1fr; }
}

/* CTA final B2B */

/* =========================================================
   REVEAL AU SCROLL (piloté par JS, fallback no-JS visible)
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s cubic-bezier(0.22, 0.61, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: opacity, transform;
}
.reveal.is-in { opacity: 1; transform: none; }
/* Sans JS : tout reste visible */
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* =========================================================
   PORTAIL — HERO SAS (accueil)
   ========================================================= */
/* Blobs dégradés SUPPRIMÉS (dé-slop 2026-06-17). À la place : grille électrique
   très discrète (clin d'œil aux Artères) + un unique halo léger en haut. */
/* Grain subtil pour la profondeur (SVG inline, léger) */

/* ===== Hero épuré (founder 2026-06-20) ======================================
   Titre « La nuit, en temps réel » sur UNE ligne + une seule question + bannière
   de lancement + CTA beta. */

/* Bannière de lancement 1er août (fête nationale suisse) — discrète, classe. */

/* Titre sur UNE seule ligne (le wooow). On empêche le retour à la ligne sur
   desktop ; mobile reprend la main (cf. media queries). Le clamp est calé pour
   que « La nuit, en temps réel. » tienne sur une ligne SANS déborder du bloc
   copy centré (max 720px) — au-delà de ~72px la phrase débordait (audit
   2026-06-20, visible en tablette 768-1024 ET desktop). */
/* Dans le hero centré, le titre n'est plus bridé par la largeur du bloc copy :
   il peut s'étaler sur sa propre largeur centrée, ce qui empêche tout débordement
   du nowrap (le sub/question reste, lui, contenu à 56ch). */

/* La question : courte, mise en avant, rien d'autre dessous.
   Desktop/tablette (> 560px) : tient sur UNE seule ligne (nowrap + taille
   légèrement réduite). Mobile (≤ 560px, plus bas) : wrap propre autorisé. */
/* Mobile : la question peut wrapper proprement (pas de débordement forcé). */

/* CTA beta dans le hero (réutilise .beta-form, version centrée compacte). */
.beta-form--hero { margin-top: 0; }

/* ===== Hero SPLIT « photos d'abord » (founder 2026-06-17) ===================== */

/* ===== Hero-merge (founder 2026-06-18 « j'arrive, je vois ça, je signe ») =====
   Le carousel devient le visuel d'entrée : copy centrée en haut, carousel des
   téléphones en grand juste dessous (pleine largeur), légende adaptative sous
   le carousel. On empile (pas de split) pour que le carousel soit LE héros. */

/* ---- 3 PORTES ---- */

/* =========================================================
   B2B HERO — orbe parallax décoratif
   ========================================================= */
/* Halo B2B calmé (dé-slop cohérence 2026-06-17) : plus de gros blob flou
   (filter:blur retiré, opacité ~0.22→0.10) — aligné sur le traitement sobre
   de la home. */

/* Lueur de respiration commune (titres gradient au survol des cartes) */
.proof-card { transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease; }
.proof-card:hover { transform: translateY(-4px); border-color: var(--border-strong); background: var(--surface-2); }

/* =========================================================
   RESPONSIVE
   ========================================================= */
/* Nav → hamburger dès 920px : la nav horizontale (brand + 4 onglets + CTA)
   réclame ~900px de contenu ; sous ~900px (ex. tablette portrait 880px) le
   dernier onglet / le CTA débordaient du conteneur (scroll horizontal de ~10px).
   On replie donc AVANT que ça déborde. Source unique du repli nav, partagée par
   toutes les pages. */
@media (max-width: 920px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute;
    top: 68px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 16px 24px 24px;
    background: rgba(7, 7, 16, 0.97);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    /* A11Y 2026-08-07 : idem menu burger — hors tabulation quand ferme. */
    visibility: hidden;
    transition: transform 0.25s ease, opacity 0.25s ease, visibility 0.25s;
  }
  .nav-links.open { transform: translateY(0); opacity: 1; pointer-events: auto; visibility: visible; }
  .nav-links a { padding: 12px 4px; font-size: 1.05rem; }
  .nav-cta { text-align: center; margin-top: 8px; }

  /* Dropdown « Professionnels » : sur mobile il coule DANS la colonne (pas de
     popover absolu). Le toggle occupe toute la largeur ; le panneau s'ouvre
     en accordéon au clic/tap (pas de hover sur mobile). */
  .nav-dropdown { width: 100%; }
  .nav-links button.nav-tab {
    width: 100%;
    justify-content: space-between;
    padding: 12px 4px;
    font-size: 1.05rem;
  }
  .nav-dropdown-menu {
    position: static;
    min-width: 0;
    margin: 2px 0 4px 12px;
    padding: 4px 0;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: none;
    border-left: 1px solid var(--border);
    border-radius: 0;
    box-shadow: none;
    /* Replié par défaut : seul le clic (.is-open) le déroule — le hover desktop
       ne s'applique pas ici (on neutralise la règle :hover plus bas). */
    transform: none;
  }
  /* Sur mobile, NE PAS ouvrir au survol : seul .is-open compte. */
  .nav-dropdown:hover .nav-dropdown-menu {
    opacity: 0;
    pointer-events: none;
  }
  .nav-dropdown.is-open .nav-dropdown-menu {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
  }
  .nav-dropdown-menu::before { display: none; }
  .nav-dropdown-link { padding: 11px 12px; font-size: 1rem; }

  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  /* Repli nav géré par le bloc partagé @media (max-width: 920px) ci-dessus. */
  .steps { grid-template-columns: 1fr; }

  .premium-benefits { grid-template-columns: 1fr; }

  .hero { min-height: 86vh; }
}

@media (max-width: 420px) {
  .container { padding: 0 18px; }
  .btn { width: 100%; }
}

/* =========================================================
   PAGES LÉGALES (privacy.html, cgu.html)
   ========================================================= */
.legal-article {
  max-width: 760px;
  padding-top: 100px;
  padding-bottom: 80px;
}

.legal-header {
  margin-bottom: 48px;
}

.legal-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rose);
  background: rgba(255, 45, 122, 0.12);
  border: 1px solid rgba(255, 45, 122, 0.25);
  border-radius: 100px;
  padding: 4px 12px;
  margin-bottom: 16px;
}

.legal-header h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 0 0 12px;
}

.legal-updated {
  font-size: 0.85rem;
  color: var(--text-3);
  margin: 0 0 20px;
}

.legal-intro {
  font-size: 1rem;
  color: var(--text-2);
  line-height: 1.7;
  margin: 0;
  padding: 20px 22px;
  /* un encadré plein, teinté violet, à la place de la barre latérale (2026-10-19 : la barre de côté
     colorée est le tic de carte le plus reconnaissable, et le seul du site) */
  background: rgba(123, 97, 255, 0.07);
  border: 1px solid rgba(123, 97, 255, 0.28);
  border-radius: var(--radius);
}

.legal-body {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.legal-section {
  border-top: 1px solid var(--border);
  padding-top: 32px;
}

.legal-section:first-child {
  border-top: none;
  padding-top: 0;
}

.legal-section h2 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 16px;
}

.legal-section h3 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  margin: 20px 0 10px;
}

.legal-section p {
  font-size: 0.94rem;
  color: var(--text-2);
  line-height: 1.75;
  margin: 0 0 12px;
}

.legal-section p:last-child { margin-bottom: 0; }

.legal-section ul {
  padding-left: 20px;
  margin: 0 0 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.legal-section li {
  font-size: 0.94rem;
  color: var(--text-2);
  line-height: 1.65;
}

.legal-section a {
  color: var(--rose);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-section a:hover { opacity: 0.8; }

.legal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  margin-top: 8px;
}

.legal-table th {
  text-align: left;
  font-weight: 600;
  color: var(--text);
  padding: 10px 14px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border-strong);
}

.legal-table td {
  padding: 10px 14px;
  color: var(--text-2);
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.legal-table tr:last-child td { border-bottom: none; }

.legal-back {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}

.btn-ghost-sm {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: 100px;
  border: 1px solid var(--border-strong);
  background: transparent;
  color: var(--text-2);
  font-size: 0.88rem;
  font-weight: 500;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
}

.btn-ghost-sm:hover {
  border-color: var(--text-2);
  color: var(--text);
}

.legal-cross-link {
  display: inline-block;
  padding: 10px 0;
  font-size: 0.95rem;
  color: var(--rose);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-cross-link:hover { opacity: 0.8; }

/* Footer OSM attribution */
.footer-osm {
  font-size: 0.72rem;
  color: var(--text-3);
  margin-top: 4px;
}

.footer-osm a {
  color: var(--text-3);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-osm a:hover { color: var(--text-2); }
/* La note « captures et fond de démonstration » (toutes les pages, pied) :
   ≤ 64 caractères par ligne, ici et non dans journey.css (les pages de lecture
   ne la chargent pas). */
.footer-demo { margin: 0 0 6px; font-size: 0.78rem; line-height: 1.5; color: var(--text-3, #8E8CA8); max-width: 64ch; }
.footer-bottom .footer-demo { color: #A9A7C2; }

@media (max-width: 600px) {
  .legal-article { padding-top: 80px; }
  .legal-table { display: block; overflow-x: auto; }
  .legal-back { flex-direction: column; align-items: flex-start; gap: 12px; }
}

/* =========================================================
   PORTAL — logo grand format (index.html)
   ========================================================= */
/* Hero épuré (audit 2026-06-20) : le bloc marque du portail est dégonflé pour
   laisser le carousel dominer (~60% du regard). Logo + wordmark plus discrets,
   rythme resserré. */

/* Wordmark dé-emphasé (audit hero 2026-06-20) : le logo + le nom vivent déjà
   dans le header ; ici ils ne sont qu'une signature au-dessus du titre. On les
   rend plus discrets pour que le TITRE mène le copy, et que le carousel domine
   le hero. */

/* =========================================================
   HERO SPLIT — téléphone + texte (noctambules.html)
   ========================================================= */

/* =========================================================
   PHONE MOCKUP CSS
   ========================================================= */

.phone {
  width: 232px;
  border-radius: 36px;
  background: #08080f;
  border: 2px solid rgba(255,255,255,0.11);
  box-shadow:
    0 0 0 5px rgba(255,255,255,0.035),
    0 48px 96px rgba(0,0,0,0.85),
    0 0 56px rgba(123,97,255,0.24),
    0 0 96px rgba(255,45,122,0.12);
  overflow: hidden;
  position: relative;
}

/* =========================================================
   TESTIMONIAL (établissements)
   ========================================================= */

/* =========================================================
   ROI SECTION (établissements)
   ========================================================= */
.roi { padding: 88px 0; }

/* =========================================================
   PARTNER FORM (établissements CTA)
   ========================================================= */
.partner-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 500px;
  margin: 32px auto 0;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
/* Une rangée à un seul champ (téléphone facultatif, 2026-11-01) occupe toute
   la largeur : sinon le champ reste à demi-largeur à côté d'une case vide. */
.form-row > .pg-field:only-child { grid-column: 1 / -1; }

.partner-form input,
.partner-form select {
  width: 100%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 0.92rem;
  color: var(--text);
  font-family: inherit;
  outline: none;
  transition: border-color 0.18s, box-shadow 0.18s;
  -webkit-appearance: none;
  appearance: none;
}

.partner-form input::placeholder { color: var(--text-3); }

.partner-form input:focus,
.partner-form select:focus {
  border-color: var(--violet);
  box-shadow: 0 0 0 3px rgba(123,97,255,0.15);
}
/* Focus clavier explicite (a11y, audit 2026-06-20) : anneau net en plus du
   liseré, pour les inputs qui ont outline:none. */
.partner-form input:focus-visible,
.partner-form select:focus-visible {
  outline: 2px solid var(--violet);
  outline-offset: 2px;
}
/* État désactivé lisible (a11y, audit 2026-06-20) : pendant l'envoi du
   formulaire les champs passent disabled — on le signale sans les rendre
   illisibles (opacité douce + curseur). */
.partner-form input:disabled,
.partner-form select:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  background: var(--surface);
  color: var(--text-3);
}

.partner-form select { color: var(--text-2); cursor: pointer; }
.partner-form select option { background: #0e0e1f; color: var(--text); }

.partner-form .btn { width: 100%; }

.form-note {
  font-size: 0.8rem;
  color: var(--text-3);
  text-align: center;
  margin: 0;
  line-height: 1.6;
}

.form-link {
  color: var(--rose);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: opacity 0.2s ease;
}
.form-link:hover { opacity: 0.8; }

.form-note.ok { color: #00E87A; }
.form-note.err { color: var(--rose); }

/* proof label gold (établissements) */

/* =========================================================
   HERO CAROUSEL — 8 captures de l'app (index.html)
   ========================================================= */
/* Refonte 2026-06-20 (founder « 8 photos, 1 explication par photo, wooow ») :
   le strip statique de 4 téléphones inclinés devient un VRAI carousel de 8
   captures — piste scroll-snap (swipe natif mobile + desktop), boutons
   prev/next, points, légende live par slide. Accessible (aria, clavier).
   Les anciennes règles .portal-phone-frame--compet / .phone-photo-slot
   (placeholder vert) sont conservées plus bas au cas où on réintroduit un
   slot « capture à venir ». */
.hero-carousel {
  position: relative;
  /* Le carousel domine le hero (founder 2026-06-20) : on lui donne un peu plus
     d'air au-dessus que la copy compacte qui le précède, pour qu'il s'impose
     comme le visuel d'entrée. */
  margin: clamp(34px, 6vh, 64px) auto 0;
  max-width: 1000px;
}
/* Projecteur produit derrière le carousel (clippé par overflow:hidden du hero). */

/* Piste défilable (scroll-snap). Une diapo centrée nette, les voisines en
   aperçu sur les côtés (padding = (100% - largeur slide) / 2). */
.phones-strip {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 26px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  scroll-behavior: smooth;
  padding: 14px calc(50% - 132px);
}
.phones-strip::-webkit-scrollbar { display: none; }
.phones-strip:focus-visible {
  outline: 2px solid var(--violet);
  outline-offset: 4px;
  border-radius: 28px;
}

/* Cadres UNIFORMES : même largeur/hauteur, l'aspect-ratio 9/19.5 fixe la hauteur.
   Le slide centré (.is-active, posé par le JS) est mis en avant ; les autres
   reculent légèrement (échelle + opacité) pour focaliser l'œil sur la capture
   active. */
.portal-phone-frame {
  flex: 0 0 auto;
  width: 264px;
  border-radius: 42px;
  overflow: hidden;
  scroll-snap-align: center;
  box-shadow: 0 18px 64px rgba(0,0,0,0.62), 0 0 0 1px rgba(255,255,255,0.08);
  /* Coverflow accentué (founder 2026-06-20) : les voisines reculent nettement
     (échelle 0.74 + opacité), la centrale domine — image à gauche et à droite,
     centre toujours plus grand. */
  transform: scale(0.74);
  opacity: 0.46;
  filter: saturate(0.85);
  transition: transform 0.45s cubic-bezier(0.22,1,0.36,1),
              opacity 0.45s ease, box-shadow 0.45s ease, filter 0.45s ease;
}
.portal-phone-frame.is-active {
  transform: scale(1.08);
  opacity: 1;
  filter: saturate(1.05);
  /* Discipline couleur (audit 2026-06-20) : le halo de la capture centrée suit
     l'accent de SA diapo (--frame-accent posé par le JS : rose / violet / bleu /
     or premium) au lieu d'un rose systématique → cohérence légende ↔ cadre,
     l'or reste réservé aux slides premium. Fallback rose si --frame-accent absent. */
  box-shadow:
    0 32px 100px color-mix(in srgb, var(--frame-accent, var(--rose)) 34%, transparent),
    0 0 0 1.5px color-mix(in srgb, var(--frame-accent, var(--rose)) 46%, transparent);
  z-index: 2;
}
/* Survol desktop : on remonte légèrement la capture pointée. */
@media (hover: hover) and (pointer: fine) {
  .portal-phone-frame:hover {
    opacity: 0.85;
    transform: scale(0.82) translateY(-6px);
  }
  .portal-phone-frame.is-active:hover {
    transform: scale(1.08) translateY(-6px);
  }
}

.portal-phone-frame img {
  display: block;
  width: 100%;
  aspect-ratio: 9 / 19.5;
  object-fit: cover;
  object-position: top center;
}

/* ---- Navigation sobre : ‹ 3 / 18 › sous la légende (tour de boucle
   2026-10-08d). Remplace les 18 points et les flèches posées sur les
   captures : un compteur se lit d'un coup d'œil, 18 points se comptent. ---- */
.hero-carousel-count {
  min-width: 5.5ch;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-2);
  font-variant-numeric: tabular-nums;
}

/* Légende UNIQUE adaptative sous le carousel : le texte change selon la
   capture centrée (scroll/swipe/flèches/survol). Une phrase courte, titre en
   accent + une ligne ; le texte long reste dans la lightbox. Fallback no-JS =
   1re légende inline. Hauteur réservée = 2 lignes (zéro saut au changement). */
.phones-caption {
  --pc-accent: var(--rose);
  position: relative;
  z-index: 2;
  display: block;
  margin: 22px auto 0;
  max-width: 46ch;
  min-height: 3.1em;
  text-align: center;
  padding: 0 12px;
  font-size: 0.98rem;
  line-height: 1.55;
  text-wrap: balance;
}
.phones-caption .pc-kicker {
  font-weight: 700;
  color: var(--pc-accent);
  /* L'accent change pendant le fondu `is-swapping` (opacité) ; on ne
     transitionne PAS `color` directement : animer une couleur qui dépend d'une
     custom property laisse Chromium dans un état de transition jamais résolu. */
  transition: opacity 0.2s ease;
}
.phones-caption .pc-text {
  color: var(--text-2);
  transition: opacity 0.2s ease;
}
.phones-caption.is-swapping .pc-kicker,
.phones-caption.is-swapping .pc-text { opacity: 0; }
/* Au survol d'un cadre, fine bordure d'accent (lien légende ↔ encadré). */
.portal-phone-frame.is-hovered {
  box-shadow: 0 24px 72px rgba(0,0,0,0.5), 0 0 0 2px var(--frame-accent, var(--rose)) !important;
}

/* ---- Responsive : largeur de slide + padding de centrage (= (100% - w)/2) ---- */
@media (max-width: 1180px) {
  .phones-strip { gap: 22px; padding: 14px calc(50% - 120px); }
  .portal-phone-frame { width: 240px; }
}
@media (max-width: 980px) {
  .phones-strip { gap: 18px; padding: 14px calc(50% - 108px); }
  .portal-phone-frame { width: 216px; }
}
@media (max-width: 720px) {
  .phones-strip { gap: 16px; padding: 12px calc(50% - 92px); }
  .portal-phone-frame { width: 184px; border-radius: 32px; }
}
@media (max-width: 480px) {
  .phones-strip { gap: 14px; padding: 10px calc(50% - 78px); }
  .portal-phone-frame { width: 156px; border-radius: 26px; }
  .phones-caption { font-size: 0.93rem; }
}
@media (max-width: 400px) {
  .phones-strip { gap: 12px; padding: 10px calc(50% - 68px); }
  .portal-phone-frame { width: 136px; border-radius: 24px; }
}

/* =========================================================
   FONDATEUR
   ========================================================= */
.founder {
  padding: 72px 0;
  background: var(--night);
  border-top: 1px solid var(--border);
}

/* Mot du fondateur dégonflé (founder 2026-06-17 : « un peu plus petit »). */

.founder-sig {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 12px;
}

.founder-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--grad);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
  letter-spacing: 0.02em;
}

.founder-name {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
}

.founder-role {
  display: block;
  font-size: 0.8rem;
  color: var(--text-3);
  margin-top: 2px;
}

/* portal-note city badge */

/* =========================================================
   RESPONSIVE — tous composants, breakpoints systématiques
   ========================================================= */

/* ── 960px : hero split téléphone ───────────────────────── */

/* ── 900px : grids 3→2 colonnes ─────────────────────────── */
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr 1fr; }
}

/* ── 750px : réduction des gaps ─────────────────────────── */

/* ── 720px : grids 2→1 colonne (repli nav géré au bloc 920px) ─────────────── */
@media (max-width: 720px) {
  .steps { grid-template-columns: 1fr; }

  .premium-benefits { grid-template-columns: 1fr; }

  .hero { min-height: 86vh; }

  /* Tableau offre établissements : scroll horizontal */
  .offer-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

  /* Témoignage */
}

/* ── 600px : form 1 colonne, roi, not-col ───────────────── */
@media (max-width: 600px) {
  .form-row { grid-template-columns: 1fr; }
  .partner-form input,
  .partner-form select { padding: 12px 14px; font-size: 0.88rem; }

  .phone { width: 196px; }

  .legal-article { padding-top: 80px; }
  .legal-table { display: block; overflow-x: auto; }
  .legal-back { flex-direction: column; align-items: flex-start; gap: 12px; }
}

/* ── 480px : mobile ultra ───────────────────────────────── */
@media (max-width: 480px) {
  .phone { width: 168px; }

  .feature-card p,
  .value-card p { font-size: 0.88rem; line-height: 1.5; }

  .premium-benefits { gap: 8px; }
  .premium-benefits li { padding: 10px 12px; font-size: 0.9rem; }

  .audience-card { padding: 24px 18px; }
  .audience-card h3 { font-size: 1.3rem; }

  .nav-links { padding: 12px 16px 18px; gap: 2px; }
  .nav-links a { padding: 10px 2px; }

  .hero-title { font-size: clamp(2rem, 8vw, 5rem); }
}

/* ── 420px : container serré ────────────────────────────── */
@media (max-width: 420px) {
  .container { padding: 0 14px; }
  .btn { width: 100%; text-align: center; }
}

/* =========================================================
   SCREENSHOTS — galerie "L'app en vrai"
   ========================================================= */
.screenshots {
  padding: 88px 0;
  background: var(--night-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

/* Ancienne galerie grille (.screens-grid/.screen-card/.screen-phone/.screen-label/
   .screen-desc) SUPPRIMÉE (dé-slop 2026-06-17) : remplacée par les sections
   alternées .feature-rows ci-dessous. */

/* ===================== Sections alternées image + texte (option A, 2026-06-17)
   Remplace la galerie carousel : chaque capture porte un message, alternance
   gauche/droite (style Linear/Vercel). Empile en mobile. ===================== */  /* Safe Home = vert de soin */  /* Compétition = vert sport */
/* Safe Home = vert de soin partout où le terme apparaît dans le corps de texte */
.safe-home { color: var(--safe); }

/* Zoom hint (.screen-zoom-hint) + ancien lightbox (.lightbox*) + responsive
   carousel .screens-grid SUPPRIMÉS (dé-slop 2026-06-17) : galerie remplacée par
   .feature-rows (responsive géré dans son propre @media 768px), lightbox unifié
   en .np-lightbox ci-dessous. */

/* ===================== Lightbox screenshots (clic = agrandir) ===================== */
.np-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(7, 7, 16, 0.9);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  cursor: zoom-out;
}
.np-lightbox.open { display: flex; }
.np-lightbox-figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  max-width: 92vw;
}
.np-lightbox-figure img {
  max-width: 92vw;
  max-height: 78vh;
  border-radius: 18px;
  box-shadow: 0 24px 90px rgba(0, 0, 0, 0.6);
}
.np-lightbox-cap {
  max-width: 52ch;
  text-align: center;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--text-2);
}
/* Bouton fermer (croix CSS pure, pas d'icône/emoji) */
.np-lightbox-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.06);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  cursor: pointer;
  z-index: 1;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.np-lightbox-close::before,
.np-lightbox-close::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}
.np-lightbox-close::before { transform: translate(-50%, -50%) rotate(45deg); }
.np-lightbox-close::after  { transform: translate(-50%, -50%) rotate(-45deg); }
.np-lightbox-close:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--text-2);
  transform: scale(1.06);
}

/* =========================================================
   PASSE TASTE 2026-10-04 (skills design-taste-frontend + image-to-code)
   Redesign PRESERVE : marque (rose / violet / bleu, Bricolage + Hanken +
   Geist Mono) et architecture intactes. Dials 7 / 6 / 3.
   1) HERO ÉDITORIAL en split : copie à gauche, carousel à droite.
   2) PORTES ASYMÉTRIQUES : Noctambules domine, les deux pro s'empilent.
   Références : images générées (hero-ref, doors-ref) puis implémentées.
   ========================================================= */

/* ---- 1) Hero split ---- */

/* Titre blanc sur deux lignes, un seul accent : « réel. » en italique de la
   MÊME famille (pas de dégradé, pas de deuxième police). Interligne 1.05 et
   réserve basse pour le descendant de l'italique. */

/* Le projecteur derrière le carousel se recentre sur la colonne visuelle. */

/* ---- 2) Portes asymétriques ---- */
/* La carte vivante comme MATIÈRE de la porte : la vraie capture, recadrée,
   sous un voile nuit qui laisse les artères affleurer. */

/* Trait d'accent court en haut à gauche (référence), à la place de la barre
   dégradée pleine largeur au survol : la couleur dit la porte, tout le temps. */

/* ---- 3) Un seul accent, tenu sur toute la page ----
   Plus aucun texte dégradé sur les titres (tell d'IA) : le mot mis en avant
   passe en ROSE signature plein, comme « réel. » dans le hero. Les chiffres
   et prix (proof-num, roi-amount, premium-price) passent en blanc : l'accent
   est réservé aux MOTS. Le wordmark du header garde son dégradé (la marque,
   pas un titre : classes .brand-name / .portal-wordmark). */

/* Touch (web-interface-guidelines) : pas de zoom au double tap sur les
   contrôles, et une surbrillance de tap voulue plutôt que celle du navigateur. */
a, button, summary, [role="button"], input, select, textarea, label {
  touch-action: manipulation;
}
a, button { -webkit-tap-highlight-color: rgba(255, 45, 122, 0.18); }
h1, h2, h3 { text-wrap: balance; }
/* Plus de mot orphelin en fin de paragraphe (« s’ouvre. » seul sur sa ligne
   à 390 px) : la règle vaut pour tout le texte courant, pas au cas par cas. */
p, li, dd, figcaption, summary { text-wrap: pretty; }

/* ---- 4) Pages pro : trois cartes égales -> composition asymétrique ----
   Quand une grille de valeur a EXACTEMENT trois cartes, la première domine
   (deux rangées) et les deux autres s'empilent à côté. Mobile : une colonne. */

/* =========================================================
   LE SITE VIT (2026-10-08)
   1) « Ce soir à Genève » : programme réel lu en anon (script.js).
      Caché tant que la lecture n'a pas réussi ; jamais de liste inventée.
   2) Membre fondateur : places restantes (RPC get_founding_window),
      caché si la lecture échoue.
   ========================================================= */
.tonight {
  padding: clamp(56px, 8vw, 96px) 0;
  border-top: 1px solid var(--border);
}
.tonight[hidden] { display: none; }
.tonight-date {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-2);
  margin: 0;
}
.tonight-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--border);
}
.tonight-list li { border-bottom: 1px solid var(--border); }
.tonight-item {
  display: grid;
  grid-template-columns: 4.2rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  min-height: 64px;
  padding: 14px 6px;
  transition: background 0.2s ease;
}
.tonight-item:hover { background: rgba(255, 255, 255, 0.03); }
.tonight-item:focus-visible { outline-offset: -2px; }
.tonight-time {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--rose);
  font-variant-numeric: tabular-nums;
}
.tonight-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.tonight-title {
  font-weight: 700;
  color: var(--text);
  overflow-wrap: anywhere;
}
.tonight-place { color: var(--text-2); font-size: 0.92rem; }
.tonight-arrow {
  color: var(--text-3);
  transition: transform 0.2s ease, color 0.2s ease;
}
.tonight-item:hover .tonight-arrow { color: var(--rose); transform: translateX(3px); }
/* L'heure qui roule (script.js, 2026-11-09) : chaque chiffre dans une bande 0-9 0-9 ; AU REPOS la bande montre
   le bon chiffre (second tour), donc sans transition l'heure est juste et lisible. À l'arrivée du tableau
   (.is-arrived), la bande part de 0 et fait un tour complet avant de se poser, ligne après ligne, chiffre
   après chiffre. Le texte lu est dans un .sr-only à côté. */
.tonight-roll { display: inline-flex; align-items: flex-start; line-height: 1.2; white-space: nowrap; }
.roll-c, .roll-d { display: block; height: 1.2em; }
.roll-d { overflow: hidden; -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 12%, #000 88%, transparent 100%); mask-image: linear-gradient(180deg, transparent 0, #000 12%, #000 88%, transparent 100%); }
.roll-s { display: block; transform: translate3d(0, calc((var(--d, 0) + 10) * -5%), 0); }
.roll-s i { display: block; height: 1.2em; font-style: normal; text-align: center; }
.tonight-list.is-board .roll-s { transition: transform 1.3s cubic-bezier(0.16, 1, 0.3, 1) calc(var(--row, 0) * 70ms + 380ms + var(--ci, 0) * 90ms); }
.motion-ready .tonight-list.is-board:not(.is-arrived) .roll-s { transform: translate3d(0, 0, 0); }
@media (prefers-reduced-motion: reduce) {
  .roll-s, .motion-ready .tonight-list.is-board:not(.is-arrived) .roll-s { transition: none !important; transform: translate3d(0, calc((var(--d, 0) + 10) * -5%), 0) !important; }
}
.tonight-empty {
  color: var(--text-2);
  margin: 18px 0 0;
}
.tonight-more {
  color: var(--text-3);
  font-size: 0.92rem;
  margin: 22px 0 0;
}
.tonight-more a {
  color: var(--rose);
  font-weight: 700;
  display: inline-block;
  padding: 10px 0;
}
@media (max-width: 560px) {
  .tonight-item { grid-template-columns: 3.4rem minmax(0, 1fr) auto; gap: 12px; }
}

.founders-count {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--text-2);
  margin: 18px 0 0;
  font-variant-numeric: tabular-nums;
}
.founders-count strong { color: var(--rose); font-weight: 700; }
.founders-count[hidden] { display: none; }

/* =========================================================
   CHANTIER SEO (2026-10-08b)
   Pages rendues serveur (api/_shared.js) : nav courte de la coquille, fil
   d'Ariane, hubs « Ce soir » / quartiers, sections des fiches lieux.
   FAQ de la page Noctambules (<details> natif).
   ========================================================= */
.shell-nav { display: flex; align-items: center; gap: 4px; }
.shell-nav a {
  color: var(--text-2);
  font-size: 0.92rem;
  font-weight: 600;
  padding: 10px 10px;
  border-radius: 999px;
  transition: color 0.2s ease, background 0.2s ease;
}
.shell-nav a:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.shell-nav a[aria-current="page"] { color: var(--rose); }
/* la bêta à un geste (SIT-33) : même pastille contour que .nav-beta des pages statiques */
.shell-nav a.shell-beta {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-left: 6px;
  padding: 0 14px;
  border: 1.5px solid rgba(255, 45, 122, 0.6);
  color: var(--rose);
  font-weight: 700;
}
.shell-nav a.shell-beta:hover { color: var(--rose); background: rgba(255, 45, 122, 0.08); }
@media (max-width: 420px) {
  .shell-nav a { padding: 10px 7px; font-size: 0.86rem; }
  .shell-nav a.shell-beta { margin-left: 2px; padding: 0 11px; }
  .artifact-header .brand-name { display: none; }
}
.shell-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2px 18px;
  margin-bottom: 10px;
}
.shell-footer-links a { color: var(--text-2); display: inline-block; padding: 8px 0; }
.shell-footer-links a:hover { color: var(--text); }

.crumbs { margin: 0 0 18px; text-align: left; }
.crumbs ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 0;
  font-size: 0.85rem;
  color: var(--text-3);
}
.crumbs li { display: inline-flex; align-items: center; min-width: 0; }
.crumbs li + li::before { content: "›"; margin: 0 8px; color: var(--text-3); }
.crumbs a { color: var(--text-2); padding: 6px 0; }
.crumbs a:hover { color: var(--text); }
.crumbs [aria-current="page"] { color: var(--text); overflow-wrap: anywhere; }

.artifact-desc {
  color: var(--text-2);
  font-size: 0.98rem;
  line-height: 1.6;
  margin: 18px 0 0;
  text-align: left;
}

.tonight-more--all { margin-top: 14px; color: var(--text-3); }

/* ---------- Hubs ---------- */
.hub-main { padding: clamp(28px, 6vw, 64px) 0 clamp(56px, 8vw, 96px); }
.hub-head { margin-bottom: clamp(26px, 5vw, 40px); }
.hub-kicker {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--rose);
  margin: 0 0 12px;
}
.hub-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 3.2rem);
  line-height: 1.08;
  margin: 0 0 14px;
  overflow-wrap: break-word;
}
.hub-intro { color: var(--text-2); font-size: clamp(1rem, 2vw, 1.15rem); max-width: 64ch; margin: 0; }
.hub-empty { color: var(--text-2); margin: 8px 0 0; }
.hub-more { margin: 14px 0 0; text-align: left; }
.hub-more a { color: var(--rose); font-weight: 700; display: inline-block; padding: 10px 0; }

.hub-section { margin-top: clamp(34px, 6vw, 52px); text-align: left; }
.hub-section--card { margin-top: 28px; }
/* EN CE MOMENT (2026-11-08) : la preuve publique, gens dehors comptés comme sur la carte. */
.hub-live-lead { display: flex; align-items: baseline; gap: 10px; margin: 0; font-size: clamp(1.05rem, 2.2vw, 1.2rem); color: var(--text); max-width: 64ch; }
.hub-live-lead strong { color: var(--rose); font-variant-numeric: tabular-nums; }
.hub-live-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--rose); transform: translateY(-2px); animation: hubLiveDot 2.4s ease-in-out infinite; }
.hub-live-dot.is-quiet { background: var(--text-2); animation: none; }
@keyframes hubLiveDot { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
@media (prefers-reduced-motion: reduce) { .hub-live-dot { animation: none; } }
.hub-live-list { list-style: none; margin: 14px 0 0; padding: 0; border-top: 1px solid var(--border); max-width: 30rem; }
.hub-live-list li { display: flex; justify-content: space-between; gap: 16px; padding: 10px 6px; border-bottom: 1px solid var(--border); }
.hub-live-list a { color: var(--text); font-weight: 700; }
.hub-live-list a:hover { color: var(--rose); }
.hub-live-n { font-family: var(--font-mono); font-weight: 700; color: var(--rose); font-variant-numeric: tabular-nums; }
.hub-live-note { color: var(--text-2); font-size: 0.9rem; margin: 10px 0 0; max-width: 64ch; }
.hub-section-title {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 3vw, 1.6rem);
  margin: 0 0 12px;
}
.hub-hour { margin-top: 26px; }
.hub-hour-title {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-2);
  margin: 0 0 8px;
}

.hub-events {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--border);
}
.hub-event {
  display: grid;
  grid-template-columns: 4.2rem minmax(0, 1fr) auto;
  gap: 16px;
  align-items: baseline;
  padding: 14px 6px;
  border-bottom: 1px solid var(--border);
}
.hub-event-time {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--rose);
  font-variant-numeric: tabular-nums;
}
.hub-event-body { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-width: 0; }
.hub-event-title { color: var(--text); font-weight: 700; overflow-wrap: anywhere; padding: 2px 0; }
.hub-event-title:hover { color: var(--rose); }
.hub-event-place { color: var(--text-2); font-size: 0.92rem; padding: 2px 0; }
a.hub-event-place:hover { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
/* Vignette : l'affiche de l'event, sinon la marque du lieu (2026-10-25). */
.hub-event-art { align-self: center; display: flex; }
.hub-event-art--flyer {
  width: 64px; height: 64px; border-radius: 10px; overflow: hidden;
  background: var(--surface-2); border: 1px solid var(--border);
}
.hub-event-art--flyer img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}
/* Ligne entière cliquable (passe beauté 2026-10-25) : le titre s'étire sur la ligne (lien étiré),
   le lien du lieu reste au-dessus et garde sa cible. Survol = voile léger + affiche qui avance. */
.hub-event { position: relative; transition: background 0.2s ease; }
.hub-event-title::after { content: ''; position: absolute; inset: 0; border-radius: 10px; }
a.hub-event-place { position: relative; z-index: 1; }
/* La vignette (transformée au survol, donc peinte au-dessus) laisse passer le clic vers la ligne. */
.hub-event-art { pointer-events: none; }
.hub-event:has(.hub-event-title:focus-visible) { outline: 2px solid var(--rose); outline-offset: -2px; border-radius: 10px; }
.hub-event-title:focus-visible { outline: none; }
@media (hover: hover) {
  .hub-event:hover { background: rgba(255, 255, 255, 0.035); }
  .hub-event:hover .hub-event-title { color: var(--rose); }
  .hub-event:hover .hub-event-art--flyer img { transform: scale(1.06); }
}
@media (max-width: 560px) {
  .hub-event { grid-template-columns: 3.4rem minmax(0, 1fr) auto; gap: 12px; }
  .hub-event-art--flyer { width: 52px; height: 52px; }
}
@media (prefers-reduced-motion: reduce) {
  .hub-event-art--flyer img { transition: none; }
  .hub-event:hover .hub-event-art--flyer img { transform: none; }
}

.hub-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--border);
}
.hub-list li { border-bottom: 1px solid var(--border); }
.hub-list a {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-height: 52px;
  justify-content: center;
  padding: 12px 6px;
  transition: background 0.2s ease;
}
.hub-list a:hover { background: rgba(255, 255, 255, 0.03); }
.hub-list a:hover .hub-list-name { color: var(--rose); }
.hub-list-name { color: var(--text); font-weight: 700; overflow-wrap: anywhere; }
.hub-list-meta { color: var(--text-2); font-size: 0.9rem; overflow-wrap: anywhere; }
.hub-list-meta::first-letter { text-transform: uppercase; }
/* Ce soir (2026-10-26) : ouvert en blanc, fermé en retrait — pas de vert (réservé aux gens). */
.hub-list-tonight { display: block; margin-top: 2px; font-size: 0.82rem; color: var(--text-3); }
.hub-list-tonight.is-open { color: var(--text); font-weight: 600; }
/* Lieux d'une ville / d'un quartier : logo du lieu à gauche (2026-10-25). */
.hub-list--venues a { display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: 14px; align-items: center; }
/* Soirées à venir d'un lieu : texte à gauche, affiche à droite (passe beauté 2026-10-25). */
.hub-list--events a { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 16px; align-items: center; }
.hub-list--events .hub-event-art--flyer { width: 52px; height: 52px; }
@media (hover: hover) { .hub-list--events a:hover .hub-event-art--flyer img { transform: scale(1.06); } }
.hub-list-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.hub-logo {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  overflow: hidden;
}
.hub-logo i { position: absolute; inset: 16%; background: center / contain no-repeat; }
.hub-logo--initial { display: grid; place-items: center; color: var(--text-2); font-weight: 800; font-size: 0.95rem; }
.hub-logo--lg { width: 64px; height: 64px; }
/* Logo sombre sur fond transparent : disque clair (venues.logo_on_light, 2026-10-25). */
.hub-logo.hub-logo--light { background: #EDEEF2; }
/* Logo opaque et carré : il remplit le rond comme un avatar (venues.logo_fill, 2026-10-26). */
.hub-logo--fill i { inset: 0; background-size: cover; }
.hub-logo--lg.hub-logo--initial { font-size: 1.4rem; }
.artifact-mark { display: flex; justify-content: center; margin-bottom: 14px; }

.hub-chips {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.hub-chips a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 16px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 600;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.hub-chips a:hover { border-color: rgba(255, 45, 122, 0.55); color: var(--rose); }

.hub-quartiers {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}
.hub-quartiers a {
  display: flex;
  flex-direction: column;
  gap: 4px;
  height: 100%;
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.hub-quartiers a:hover { border-color: rgba(255, 45, 122, 0.45); transform: translateY(-2px); }
.hub-quartier-name { font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; color: var(--text); }
.hub-quartier-meta { color: var(--text-2); font-size: 0.9rem; font-variant-numeric: tabular-nums; }
/* « Ce soir » dans une carte de quartier : un signal, pas une queue grise (passe beauté 2026-10-25). */
.hub-quartier-live {
  display: inline-flex; align-items: center; gap: 7px; margin-top: 6px;
  color: var(--rose); font-size: 0.85rem; font-weight: 700; font-variant-numeric: tabular-nums;
}
.hub-quartiers a:has(.hub-quartier-live) { border-color: rgba(255, 45, 122, 0.28); }
.hub-live-dot {
  width: 7px; height: 7px; border-radius: 50%; flex: none; background: var(--rose);
  box-shadow: 0 0 0 0 rgba(255, 45, 122, 0.55); animation: hub-live-breath 2.4s ease-out infinite;
}
@keyframes hub-live-breath {
  0% { box-shadow: 0 0 0 0 rgba(255, 45, 122, 0.55); }
  70%, 100% { box-shadow: 0 0 0 8px rgba(255, 45, 122, 0); }
}
@media (prefers-reduced-motion: reduce) { .hub-live-dot { animation: none; } }
/* Mobile : deux colonnes compactes au lieu d'une pile de cartes pleine largeur (14 quartiers =
   2 600 px de défilement pour un nom et un nombre). */
@media (max-width: 560px) {
  .hub-quartiers { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .hub-quartiers a { padding: 14px 14px 15px; gap: 2px; }
  .hub-quartier-name { font-size: 1.02rem; line-height: 1.25; overflow-wrap: anywhere; }
  .hub-quartier-meta { font-size: 0.85rem; }
  .hub-quartier-live { font-size: 0.78rem; gap: 6px; }
}

.hub-cta {
  margin-top: clamp(40px, 7vw, 64px);
  padding-top: 28px;
  border-top: 1px solid var(--border);
  text-align: center;
}
.hub-cta p { color: var(--text-2); margin: 0 0 16px; }
/* Inscription bêta en ligne des pages serveur (W-SI-03, audit 2026-11-10) : le même formulaire que le héros,
   centré sous la carte ou le hub. Sans JS (html sans .js), le lien d'avant (noscript) remplace le formulaire. */
.beta-inline { max-width: 480px; margin: 0 auto; }
.beta-inline .beta-form { margin: 0 auto; justify-content: center; }
.beta-inline .beta-hint { margin: 12px 0 0; color: var(--text-3); font-size: 0.85rem; text-align: center; }
.beta-inline .beta-hint.ok { color: var(--green); }
.beta-inline .beta-hint.err { color: var(--rose); }
html:not(.js) .beta-inline .beta-form, html:not(.js) .beta-inline .beta-hint { display: none; }

/* ---------- FAQ (noctambules.html) ---------- */
.faq { padding: clamp(56px, 8vw, 96px) 0; border-top: 1px solid var(--border); }
.faq-list { border-top: 1px solid var(--border); margin-top: 8px; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
  padding: 16px 4px;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  flex: none;
  font-family: var(--font-mono);
  font-size: 1.2rem;
  color: var(--rose);
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item summary:hover { color: var(--rose); }
.faq-answer { color: var(--text-2); padding: 0 4px 20px; max-width: 68ch; }
.faq-answer p { margin: 0 0 10px; }
.faq-answer p:last-child { margin-bottom: 0; }
.faq-answer a { color: var(--rose); font-weight: 600; }

/* =========================================================
   TOUR DE BOUCLE 2026-10-08c (accueil, vs Linear / Arc / Partiful)
   Trois écarts, par ordre de visibilité :
   1) Hero : la preuve produit était un téléphone de 150 px sur mobile et,
      sur desktop, deux voisins tranchés net en lamelles de 7 px aux bords de
      la colonne (lu comme un widget cassé). Colonne visuelle élargie,
      téléphone plus grand sur mobile, voisins rapprochés qui se FONDENT
      dans la nuit (masque), légende en retrait, indication sous le CTA en
      police de texte (le mono restait un costume sur une phrase).
   2) Porte Noctambules : les étiquettes de la carte (Saint-Jean,
      Plainpalais) passaient SOUS le titre et le texte. Voile plus dense là
      où le texte vit, la carte reste lisible en haut.
   3) Frise Vision : dix cartes identiques empilées (~2 500 px), dix
      sur-titres en capitales. Le parcours et les perspectives deviennent un
      fil de texte sans boîte ; seuls « Aujourd'hui » et le lancement gardent
      une carte : la frise a enfin un point focal.
   ========================================================= */

/* ---- 1) Hero ---- */

/* Les voisins se fondent au lieu d'être coupés au bord de la piste. */
/* Voisins rapprochés : ils apparaissent comme des captures en retrait, pas
   comme des lamelles. Marge négative (le gap flex ne peut pas l'être) ;
   scroll-snap et le centrage JS (offsetLeft) restent justes. */

/* Bug de spécificité (préexistant, révélé par les voisins rapprochés) :
   `.reveal.is-in { transform: none; opacity: 1 }` (0,2,0) écrasait le recul
   0.74 / 0.46 des captures RÉELLES déjà révélées ; seuls les clones
   reculaient. Après une flèche, les voisins réels restaient pleine taille et
   se chevauchaient. On rétablit le recul pour tout cadre non actif, y compris
   en mouvement réduit (une échelle n'est pas une animation). */
/* (2026-10-08d : les cadres ne portent plus `.reveal` ; la règle reste pour
   garder le recul prioritaire sur toute règle générique.) */
.phones-strip .portal-phone-frame:not(.is-active) {
  transform: scale(0.74);
  opacity: 0.46;
}
@media (hover: hover) and (pointer: fine) {
  .phones-strip .portal-phone-frame:not(.is-active):hover {
    opacity: 0.85;
    transform: scale(0.82) translateY(-6px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .phones-strip .portal-phone-frame:not(.is-active) {
    transform: scale(0.74) !important;
    opacity: 0.46 !important;
  }
}

/* Mobile : un vrai téléphone (≈ 210 px actif au lieu de 147), voisins visibles
   en fondu de part et d'autre. */

/* ---- 2) Porte Noctambules : texte au-dessus de la carte, pas dedans ---- */

/* ---- 3) Frise Vision : un fil, deux moments ---- */
/* Les deux moments gardent leur carte, avec un peu d'air autour. */

/* =========================================================
   TOUR DE BOUCLE 2026-10-08d (accueil + Noctambules + Établissements)
   1) Hero : entrée orchestrée UNIQUE, en CSS pur (titre, promesse, CTA,
      puis la preuve), transform + opacity, sans observer : le contenu est
      visible par défaut et reduced-motion ne bouge rien.
   2) « N'est pas / est » : quatre paires typographiques au lieu de deux
      encadrés.
   3) Membre fondateur : CTA aligné sur le texte, compteur à côté.
   4) Chiffres (compteur, date, heures du soir) en police de texte, chiffres
      tabulaires : le mono était un costume.
   5) Un seul système de sur-titres : casse normale, police de texte, couleur
      d'accent. Fin des petites capitales espacées en mono au-dessus de
      chaque bloc.
   6) Grilles de cartes identiques (valeur Établissements, fonctions
      Noctambules, bénéfices fondateur) : plus de boîtes, un filet et le
      texte.
   ========================================================= */

/* ---- 1) Entrée du hero ---- */
@keyframes np-hero-rise {
  from { opacity: 0; transform: translateY(16px); }
}
@keyframes np-hero-proof {
  from { opacity: 0; transform: translateY(24px) scale(0.97); }
}

/* ---- 2) Paires « n'est pas / est » ---- */

/* ---- 3) Membre fondateur (accueil) ---- */

/* ---- 4) Chiffres en police de texte ---- */
.founders-count {
  font-family: var(--font-body);
  font-size: 0.95rem;
  letter-spacing: 0;
}
.tonight-date {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  font-variant-numeric: tabular-nums;
}
.tonight-time {
  font-family: var(--font-body);
  font-size: 1rem;
}

/* ---- 5) Un seul système de sur-titres ---- */
.compet-note-kicker {
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}

/* ---- 6) Grilles sans boîtes ---- */
.value-card,
.feature-card {
  border: 0;
  border-top: 1px solid var(--border);
  border-radius: 0;
  background: none;
  padding: 22px 0 0;
}
.value-card:hover,
.feature-card:hover {
  transform: none;
  background: none;
  border-color: var(--border-strong);
}
.value-card h3,
.feature-card h3 { font-size: 1.15rem; margin-bottom: 10px; }

@media (max-width: 720px) {
  .value-card,
  .feature-card { padding-top: 18px; }
}
.founders-count { text-wrap: pretty; }

.premium-benefits { gap: 2px 32px; max-width: 560px; }
.premium-benefits li {
  border: 0;
  border-radius: 0;
  background: none;
  padding: 9px 0;
}

/* =========================================================
   ACCUEIL 2026-10-11 : REPRISE TOTALE, MOUVEMENT PARTOUT
   (ordre founder : « motion design partout, futuriste en tout genre »)
   Tout est scopé sous body.home : les autres pages ne bougent pas.
   Grammaire de lumière de la carte appliquée au site : la nuit est
   indigo et calme, seul ce qui est HUMAIN (toi, tes amis, une action)
   prend le rose. Chaque section a SA mise en mouvement :
     1 héros       : titre qui monte mot à mot, pins qui respirent
     2 l'échelle   : téléphone épinglé, plongée ville → quartier → rue
     3 trois temps : piste horizontale, curseur de temps sur un rail
     4 ce soir     : lignes qui arrivent comme un tableau des départs
     5 l'app       : bandeau infini de vraies captures, inclinables
     6 n'est pas   : le trait barre, puis la bonne idée monte
     7 fondateur   : carte de membre holographique + compteur réel
     8 portes      : lumière qui suit le pointeur sur le bord
     9 vision      : la lumière suit la lecture, mot après mot
    10 pied        : le mot-marque se remplit en arrivant au bout
   ========================================================= */
.home {
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --lilac: #B4A9FF;          /* accent lilas de l'interface (les pins de la carte sont argent / or depuis le 2026-10-11) */
  --amethyst: #A99BD6;       /* lentille Passé */
  --cyan: #67E8F9;           /* lentille À venir (NP_LENS_CYAN de l'app ; #00D4FF
                                était le cyan Safe Home historique, pas la lentille) */
  --indigo: #192134;         /* fond de la carte de nuit (sol C « Heure bleue », 2026-11-02) */
  --ink-2: #B4B2CC;          /* texte secondaire (≥ 7:1 sur la nuit) */
  --sec-pad: clamp(80px, 10vw, 136px);
  background: var(--night);
  /* Le fondu d'arrivée générique de body est remplacé par les View
     Transitions (motion.css) : pas de double fondu sur l'accueil. */
  animation: none;
}
.home h1, .home h2, .home h3 { text-wrap: balance; }

/* ---------- Header : transparent sur le héros, verre une fois défilé.
   Sans JS (pas de .motion-ready) il garde son fond : jamais illisible. ---- */
.home .site-header {
  transition: background-color 0.3s var(--ease-out), border-color 0.3s var(--ease-out),
              backdrop-filter 0.3s var(--ease-out);
}
.motion-ready:not(.is-scrolled) .home .site-header {
  background: transparent;
  border-bottom-color: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

/* ---------- Bouton signal : contour en dégradé signature (pas de fond
   plein), lueur au survol, pression physique. ---------- */
.btn-signal {
  color: var(--text);
  border: 1.5px solid transparent;
  background:
    linear-gradient(var(--night), var(--night)) padding-box,
    var(--grad) border-box;
  box-shadow: 0 0 0 0 rgba(255, 45, 122, 0);
  transition: box-shadow 0.26s var(--ease-out), transform 0.16s var(--ease-out),
              background 0.26s var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .btn-signal:hover {
    background:
      linear-gradient(#120d22, #120d22) padding-box,
      var(--grad) border-box;
    box-shadow: 0 0 34px -6px rgba(255, 45, 122, 0.6), 0 0 64px -14px rgba(123, 97, 255, 0.55);
  }
}
.btn-signal:active,
.home .btn-primary:active { transform: scale(0.97); }
.btn-signal:disabled { opacity: 0.55; cursor: progress; }

/* ---------- Téléphone (cadre CSS autour des vraies captures) ---------- */
.device {
  position: relative;
  /* la capture 1170 × 2532 remplit l'écran du cadre avec son liseré de 3,4 %
     (rapport recalculé ; ici, dans la feuille BLOQUANTE : le cadre du héros a
     sa hauteur dès le premier rendu, aucun décalage à l'arrivée de journey.css) */
  aspect-ratio: 1170 / 2439;
  border-radius: 13% / 6%;
  padding: 3.4%;
  margin: 0;
  background: linear-gradient(155deg, #34304d 0%, #12101f 34%, #0b0a16 70%, #221e38 100%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    inset 0 -1px 0 rgba(0, 0, 0, 0.6),
    0 50px 120px -30px rgba(101, 72, 255, 0.55),
    0 30px 60px -10px rgba(0, 0, 0, 0.7);
}
.device-screen {
  position: relative;
  height: 100%;
  border-radius: 10.5% / 4.9%;
  overflow: hidden;
  background: var(--indigo);
  isolation: isolate;
}
.device-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.device-island {
  position: absolute;
  top: 4.6%;
  left: 50%;
  width: 24%;
  height: 2.7%;
  translate: -50% 0;
  border-radius: 999px;
  background: #04030a;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  pointer-events: none;
}

/* =========================================================
   1) HÉROS
   ========================================================= */
.hx {
  position: relative;
  /* Le héros passe SOUS le header transparent. */
  margin-top: -68px;
}
/* L'épingle du héros (intro.js l'épingle pendant le film au défilement). */
.hx-pin {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: calc(68px + clamp(28px, 6vh, 64px)) 0 clamp(48px, 9vh, 104px);
  overflow: clip;
}
.hx-stage { position: absolute; inset: 0; z-index: -1; }
/* Repli statique du canvas (nightfield.js absent ou en échec) : une nuit
   indigo, une lueur lilas là où vit la carte, une braise rose en bas. */
.hx-veil {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(48% 62% at 24% 54%, rgba(7, 7, 16, 0.78), rgba(7, 7, 16, 0) 100%),
    linear-gradient(90deg, rgba(7, 7, 16, 0.7) 0%, rgba(7, 7, 16, 0.32) 46%, rgba(7, 7, 16, 0) 70%),
    linear-gradient(180deg, rgba(7, 7, 16, 0) 62%, var(--night) 100%);
}

.hx-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.82fr);
  align-items: center;
  gap: clamp(32px, 5vw, 80px);
}
.hx-copy { min-width: 0; }

.hx-kicker {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 12px;
  margin: 0 0 26px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.hx-kicker-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--rose);
  box-shadow: 0 0 10px rgba(255, 45, 122, 0.8);
}
.hx-clock { color: var(--text); font-variant-numeric: tabular-nums; }
.hx-clock::before { content: "·"; margin-right: 12px; color: var(--text-3); }
.hx-clock[hidden] { display: none; }

.hx-title {
  font-size: clamp(2.9rem, 7vw, 6rem);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.04em;
  margin: 0 0 26px;
  /* en em, pas en ch : le « 0 » de la police de repli n'a pas la largeur de
     celui de Bricolage, et 11,5ch donnait 4 lignes avant la bascule de police,
     3 après (décalage 0,30 mesuré, 2026-10-13). 7,7em = 11,5ch en Bricolage. */
  max-width: 7.7em;
}
.hx-title em {
  font-style: normal;
  color: var(--rose);
  text-shadow: 0 0 42px rgba(255, 45, 122, 0.35);
}
.hx-sub {
  font-size: clamp(1.08rem, 1.45vw, 1.3rem);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 22.4em; /* = 40ch en Hanken ; en em pour la même raison que le titre */
  margin: 0 0 34px;
  text-wrap: pretty;
}
.hx-sub strong { color: var(--text); font-weight: 600; }

.hx-cta { max-width: 520px; }
.hx-cta .beta-form { margin: 0; justify-content: flex-start; max-width: none; }
.hx-cta .beta-form input {
  background: rgba(10, 9, 22, 0.66);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: border-color 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
}
.hx-cta .beta-form input:focus {
  outline: none;
  border-color: rgba(180, 169, 255, 0.7);
  box-shadow: 0 0 0 4px rgba(123, 97, 255, 0.22);
}
.hx-cta .beta-hint {
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--ink-2);
  margin-top: 14px;
}
/* Villes couvertes, sous le formulaire du héros (2026-10-24) : une ligne de fait, pas un second appel. */
.hx-cta .hx-cities {
  font-family: var(--font-body);
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--ink-2);
  margin: 8px 0 0;
  max-width: 60ch;
  text-wrap: pretty;
}
.hx-cities a { color: inherit; text-decoration: underline; text-decoration-color: rgba(228, 225, 244, 0.38); text-underline-offset: 3px; transition: text-decoration-color 160ms ease-out; }
.hx-cities a:hover, .hx-cities a:focus-visible { text-decoration-color: currentColor; }
.hx-cta .beta-hint.ok { color: var(--green); }
.hx-cta .beta-hint.err { color: #ff6b9c; }

.hx-visual {
  min-width: 0;
  display: flex;
  justify-content: center;
}
.device--hero {
  width: min(100%, 340px, calc((100svh - 190px) * 0.462));
  min-width: 220px;
}

/* Respiration des pins : comme dans l'app, chaque lieu ouvert respire sur
   son pin, déphasé (une ville ne respire pas à l'unisson). */
.pin-breath {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 3.6%;
  aspect-ratio: 1;
  translate: -50% -50%;
  border-radius: 50%;
  pointer-events: none;
}
@media (prefers-reduced-motion: no-preference) {
  .pin-breath::before,
  .pin-breath::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
  }
  /* argent, comme le pin et son halo dans l'app (pins en métal, 2026-10-11) */
  .pin-breath::before {
    border: 1.5px solid rgba(201, 206, 216, 0.9);
    animation: hx-pin-ring 3.4s var(--ease-out) var(--d) infinite backwards;
  }
  .pin-breath::after {
    background: radial-gradient(circle, rgba(196, 200, 218, 0.5), transparent 70%);
    animation: hx-pin-glow 3.4s ease-in-out var(--d) infinite backwards;
  }
}
@keyframes hx-pin-ring {
  0%   { transform: scale(0.9); opacity: 0.95; }
  70%  { opacity: 0; }
  100% { transform: scale(3.6); opacity: 0; }
}
@keyframes hx-pin-glow {
  0%, 100% { transform: scale(1.4); opacity: 0.35; }
  50%      { transform: scale(2.6); opacity: 0.9; }
}

/* Entrée du héros : CSS pur, joue au premier rendu, aucun JS requis.
   Mots qui montent hors d'un masque, puis promesse, CTA, téléphone. */
@media (prefers-reduced-motion: no-preference) {
  .hx-kicker { animation: hx-fade 0.8s var(--ease-out) 0.05s backwards; }
  .hx-title .split-i {
    animation: hx-word 1s var(--ease-out) backwards;
    animation-delay: calc(0.12s + var(--w-i, 0) * 0.055s);
  }
  .hx-sub { animation: hx-rise 0.9s var(--ease-out) 0.62s backwards; }
  .hx-cta { animation: hx-rise 0.9s var(--ease-out) 0.72s backwards; }
  .hx-visual > .device {
    animation: hx-device 1.4s var(--ease-out) 0.2s backwards;
  }
}
@keyframes hx-word {
  from { opacity: 0; transform: translate3d(0, 108%, 0) rotate(4deg); }
}
@keyframes hx-rise {
  from { opacity: 0; transform: translate3d(0, 18px, 0); }
}
@keyframes hx-fade {
  from { opacity: 0; }
}
/* Pas d'opacité 0 au départ : l'écran (image LCP) est peint dès la
   première image, la mise au point (flou + bascule) fait l'entrée. */
@keyframes hx-device {
  from {
    transform: perspective(1100px) translate3d(0, 70px, 0) rotateX(22deg) scale(0.9);
    filter: blur(12px);
  }
}

/* =========================================================
   Titres de section (même famille, rythme varié)
   ========================================================= */
.scale-title,
.claim-title,
.board-title {
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.02;
}

/* =========================================================
   2) L'ÉCHELLE
   Par défaut (sans JS / mouvement réduit) : texte + trois écrans côte à
   côte. En scène : 320vh de scroll, téléphone épinglé.
   ========================================================= */
.scale { padding: var(--sec-pad) 0; }
.scale-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(36px, 6vw, 96px);
  align-items: center;
}
.scale-title {
  font-size: clamp(2.1rem, 4.4vw, 3.7rem);
  max-width: 13ch;
  margin: 0 0 clamp(28px, 4vw, 48px);
}
.scale-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: clamp(20px, 3vw, 30px);
}
.scale-step { position: relative; padding-left: 26px; }
.scale-step::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: 1.5px solid var(--lilac);
  transition: background-color 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}
.scale-q {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.4vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin: 0 0 8px;
  transition: color 0.35s var(--ease-out);
}
.scale-a {
  color: var(--ink-2);
  margin: 0;
  max-width: 44ch;
  font-size: 1.02rem;
}
.scale-shots {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(10px, 1.6vw, 18px);
  align-items: end;
}
.scale-shot .device-screen img { cursor: zoom-in; }
.scale-meter { display: none; }

/* --- Mode scène (JS prêt, mouvement autorisé) --- */
.motion-ready .scale:not([data-reduced]) {
  height: 330vh;
  padding: 0;
}
.motion-ready .scale:not([data-reduced]) .scale-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  display: flex;
  align-items: center;
  overflow: clip;
}
.motion-ready .scale:not([data-reduced]) .scale-grid { width: 100%; }
.motion-ready .scale:not([data-reduced]) .scale-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}
.motion-ready .scale:not([data-reduced]) .scale-shots {
  position: relative;
  display: block;
  width: min(330px, calc((100svh - 240px) * 0.462));
  aspect-ratio: 780 / 1688;
}
.motion-ready .scale:not([data-reduced]) .scale-shot {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(0.94);
  filter: blur(10px);
  transition:
    opacity 0.42s var(--ease-out),
    transform 0.42s var(--ease-out),
    filter 0.42s var(--ease-out);
}
.motion-ready .scale:not([data-reduced])[data-step="0"] .scale-shot:nth-child(1),
.motion-ready .scale:not([data-reduced])[data-step="1"] .scale-shot:nth-child(2),
.motion-ready .scale:not([data-reduced])[data-step="2"] .scale-shot:nth-child(3),
.motion-ready .scale:not([data-reduced]) .scale-shot:focus-within {
  opacity: 1;
  transform: none;
  filter: none;
  z-index: 2;
  transition-duration: 0.7s;
}
/* La plongée : dans son étape, l'écran zoome doucement avec le scroll. */
.motion-ready .scale:not([data-reduced]) .scale-shot .device-screen img {
  --lp: clamp(0, calc(var(--p) * 3 - var(--i)), 1);
  transform: scale(calc(1.02 + 0.12 * var(--lp)));
  transform-origin: 50% 55%;
}
.motion-ready .scale:not([data-reduced]) .scale-step {
  opacity: 0.32;
  transition: opacity 0.4s var(--ease-out);
}
.motion-ready .scale:not([data-reduced])[data-step="0"] .scale-step:nth-child(1),
.motion-ready .scale:not([data-reduced])[data-step="1"] .scale-step:nth-child(2),
.motion-ready .scale:not([data-reduced])[data-step="2"] .scale-step:nth-child(3) {
  opacity: 1;
}
.motion-ready .scale:not([data-reduced])[data-step="0"] .scale-step:nth-child(1) .scale-q,
.motion-ready .scale:not([data-reduced])[data-step="1"] .scale-step:nth-child(2) .scale-q,
.motion-ready .scale:not([data-reduced])[data-step="2"] .scale-step:nth-child(3) .scale-q {
  color: var(--text);
}
.motion-ready .scale:not([data-reduced])[data-step="0"] .scale-step:nth-child(1)::before,
.motion-ready .scale:not([data-reduced])[data-step="1"] .scale-step:nth-child(2)::before,
.motion-ready .scale:not([data-reduced])[data-step="2"] .scale-step:nth-child(3)::before {
  background: var(--rose);
  border-color: var(--rose);
  box-shadow: 0 0 14px rgba(255, 45, 122, 0.8);
}
/* Jauge de zoom sous le téléphone. */
.motion-ready .scale:not([data-reduced]) .scale-meter {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: min(330px, 90%);
  padding-top: 14px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
}
.scale-meter::before,
.scale-meter-fill {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  border-radius: 2px;
}
.scale-meter::before { background: rgba(180, 169, 255, 0.16); }
.scale-meter-fill {
  background: linear-gradient(90deg, var(--lilac), var(--rose));
  transform-origin: 0 50%;
  transform: scaleX(var(--p));
}
.scale-meter-tick { text-align: center; transition: color 0.3s var(--ease-out); }
/* Enfants de la jauge : 1 = remplissage, 2 à 4 = graduations. */
.scale-meter-tick:nth-child(2) { text-align: left; }
.scale-meter-tick:nth-child(4) { text-align: right; }
.scale[data-step="0"] .scale-meter-tick:nth-child(2),
.scale[data-step="1"] .scale-meter-tick:nth-child(3),
.scale[data-step="2"] .scale-meter-tick:nth-child(4) { color: var(--text); }

/* =========================================================
   4) CE SOIR À GENÈVE : le tableau des départs
   ========================================================= */
.board {
  padding: var(--sec-pad) 0;
  border-top: 0;
  background:
    radial-gradient(50% 70% at 0% 10%, rgba(255, 45, 122, 0.07), transparent 70%),
    radial-gradient(40% 60% at 100% 90%, rgba(123, 97, 255, 0.08), transparent 70%);
}
.board-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}
.board-head { position: sticky; top: 108px; }
.board-live {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--rose);
}
.board-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--rose);
}
@media (prefers-reduced-motion: no-preference) {
  .board-live-dot { animation: board-live 2s var(--ease-out) infinite; }
}
@keyframes board-live {
  0%   { box-shadow: 0 0 0 0 rgba(255, 45, 122, 0.6); }
  100% { box-shadow: 0 0 0 12px rgba(255, 45, 122, 0); }
}
.board-title {
  font-size: clamp(2.3rem, 5vw, 4.2rem);
  margin: 0 0 14px;
}
.home .board .tonight-date { color: var(--ink-2); margin: 0 0 6px; }
.board-count {
  font-size: 1.02rem;
  color: var(--ink-2);
  margin: 4px 0 8px;
}
.board-count strong {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  margin-right: 4px;
}
.board-count[hidden] { display: none; }
.home .board .tonight-more { color: var(--ink-2); }

.home .board .tonight-list {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012));
  overflow: hidden;
}
.home .board .tonight-list li { border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
.home .board .tonight-list li:last-child { border-bottom: 0; }
.home .board .tonight-item {
  grid-template-columns: 4.4rem minmax(0, 1fr) auto;
  padding: 18px 22px;
  min-height: 72px;
  transition: background-color 0.2s var(--ease-out);
}
.home .board .tonight-item:hover { background: rgba(255, 45, 122, 0.05); }
.home .board .tonight-time {
  font-family: var(--font-mono);
  font-size: 0.98rem;
  color: var(--rose);
}
.home .board .tonight-title { font-size: 1.04rem; }
.home .board .tonight-place { color: var(--ink-2); }

/* Arrivée des lignes : volet qui tombe, comme une palette de tableau. */
.home .board .tonight-list.is-board li {
  transform-origin: 50% 0;
  transition:
    transform 0.7s var(--ease-out) calc(var(--row, 0) * 70ms),
    opacity 0.5s var(--ease-out) calc(var(--row, 0) * 70ms);
}
.motion-ready .home .board .tonight-list.is-board:not(.is-arrived) li {
  opacity: 0;
  transform: perspective(700px) rotateX(-82deg);
}

/* =========================================================
   5) L'APP EN VRAI : bandeau
   ========================================================= */

/* =========================================================
   8) LES TROIS PORTES
   ========================================================= */
.gate {
  --gate-c: var(--rose);
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
  min-height: 240px;
  padding: clamp(24px, 3vw, 34px);
  border-radius: 26px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015));
  transition: translate 0.35s var(--ease-out), background-color 0.3s var(--ease-out);
}
/* Bord : un filet discret, et une lumière de la couleur de la porte qui
   suit le pointeur (--mx / --my, script.js). */
.gate::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background:
    radial-gradient(260px circle at var(--mx, 50%) var(--my, 0%), var(--gate-c), transparent 65%),
    rgba(255, 255, 255, 0.1);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  pointer-events: none;
}
.gate::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), color-mix(in srgb, var(--gate-c) 16%, transparent), transparent 65%);
  opacity: 0;
  transition: opacity 0.35s var(--ease-out);
  pointer-events: none;
}
@media (hover: hover) and (pointer: fine) {
  .gate:hover { translate: 0 -4px; }
  .gate:hover::after { opacity: 1; }
}
.gate:focus-visible { outline: 2px solid var(--gate-c); outline-offset: 4px; }
.gate:focus-visible::after { opacity: 1; }

/* =========================================================
   9) VISION : la lumière suit la lecture
   ========================================================= */
.vision { padding: var(--sec-pad) 0 clamp(80px, 10vw, 140px); }
.vision-title {
  font-family: var(--font-body);
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: 0;
  color: var(--rose);
  margin: 0 0 22px;
}
.vision-quote { margin: 0; }
.vision-quote p {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2vw, 1.7rem);
  font-weight: 700;
  line-height: 1.38;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 0 0 0.9em;
  text-wrap: pretty;
}
.home .glow-w {
  opacity: clamp(0.5, calc((var(--g, 1) * (var(--wn, 1) + 14) - var(--wi, 0)) / 14), 1);
  /* pas de transition : le front de lumière suit déjà le défilement, image par
     image ; une transition par mot = 1 000 invalidations de style par parcours */
}
.home .vision .founder-sig { margin-top: 30px; }
.home .vision .founder-avatar {
  background: linear-gradient(135deg, #2a2250, #192134);
  border: 1px solid rgba(255, 45, 122, 0.55);
  color: var(--text);
}
.home .vision .founder-role { color: var(--ink-2); }

.path {
  position: relative;
  list-style: none;
  margin: clamp(64px, 9vw, 112px) 0 0;
  padding: 0 0 0 34px;
  display: grid;
  gap: 40px;
}
.path::before,
.path::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  border-radius: 2px;
}
.path::before { background: rgba(180, 169, 255, 0.14); }
.path::after {
  background: linear-gradient(180deg, var(--violet), var(--rose) 62%, rgba(255, 45, 122, 0.15));
  transform-origin: 50% 0;
  transform: scaleY(clamp(0, calc((var(--p) - 0.18) * 2.4), 1));
}
.motion-ready .path[data-reduced]::after,
html:not(.motion-ready) .path::after { transform: none; }
.path-node { position: relative; }
.path-node::before {
  content: "";
  position: absolute;
  left: -34px;
  top: 0.35em;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--night);
  border: 2px solid var(--lilac);
}
.path-node--now::before { background: var(--rose); border-color: var(--rose); box-shadow: 0 0 16px rgba(255, 45, 122, 0.8); }
.path-node--next::before { border-style: dashed; border-color: rgba(180, 169, 255, 0.5); }
.path-when {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 6px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.path-node--now .path-when { color: var(--rose); }
.path-now-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--rose); }
.path-title { font-size: clamp(1.3rem, 2.2vw, 1.7rem); margin: 0 0 8px; }
.path-text { color: var(--ink-2); margin: 0; max-width: 58ch; }
.path-node--next .path-title,
.path-node--next .path-text { opacity: 0.78; }

/* =========================================================
   Responsive de l'accueil
   ========================================================= */
@media (max-width: 980px) {
  .hx-inner { grid-template-columns: 1fr; gap: 40px; }
  .hx-title { max-width: 8.04em; } /* = 12ch en Bricolage */
  .device--hero { width: min(72vw, 300px); }
  .hx-veil {
    background:
      linear-gradient(180deg, rgba(7, 7, 16, 0.55) 0%, rgba(7, 7, 16, 0.2) 50%, var(--night) 100%);
  }
  .board-grid { grid-template-columns: 1fr; }
  .board-head { position: static; }
}

@media (max-width: 900px) {

  /* L'échelle en scène sur mobile : titre, téléphone, puis la seule
     réponse du moment (les autres s'effacent au même endroit). */
  .motion-ready .scale:not([data-reduced]) .scale-sticky { align-items: stretch; padding: 84px 0 22px; }
  .motion-ready .scale:not([data-reduced]) .scale-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr auto;
    gap: 14px;
    height: 100%;
  }
  .motion-ready .scale:not([data-reduced]) .scale-copy { display: contents; }
  .motion-ready .scale:not([data-reduced]) .scale-title {
    order: 0;
    font-size: clamp(1.6rem, 6.6vw, 2.2rem);
    max-width: 16ch;
    margin: 0;
  }
  .motion-ready .scale:not([data-reduced]) .scale-visual { order: 1; min-height: 0; justify-content: center; gap: 12px; }
  .motion-ready .scale:not([data-reduced]) .scale-shots { width: min(64vw, calc((100svh - 400px) * 0.462)); min-width: 150px; }
  .motion-ready .scale:not([data-reduced]) .scale-steps {
    order: 2;
    display: grid;
    gap: 0;
  }
  .motion-ready .scale:not([data-reduced]) .scale-step {
    grid-area: 1 / 1;
    opacity: 0;
    transform: translate3d(0, 8px, 0);
    transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out);
  }
  .motion-ready .scale:not([data-reduced])[data-step="0"] .scale-step:nth-child(1),
  .motion-ready .scale:not([data-reduced])[data-step="1"] .scale-step:nth-child(2),
  .motion-ready .scale:not([data-reduced])[data-step="2"] .scale-step:nth-child(3) {
    opacity: 1;
    transform: none;
  }
  .motion-ready .scale:not([data-reduced]) .scale-q { font-size: 1.35rem; }
  .motion-ready .scale:not([data-reduced]) .scale-a { font-size: 0.96rem; }
}

@media (max-width: 720px) {
  .scale-grid { grid-template-columns: 1fr; }
  .hx-cta .beta-form .btn { width: 100%; }
}

@media (max-width: 560px) {
  .hx-pin { min-height: auto; }
  .hx-title { font-size: clamp(2.5rem, 12.4vw, 3.4rem); }
  .hx-kicker { font-size: 0.72rem; margin-bottom: 20px; }
  .home .board .tonight-item { grid-template-columns: 3.6rem minmax(0, 1fr) auto; padding: 16px; gap: 12px; }
}

/* Mouvement réduit : tout est posé, rien ne glisse. */
@media (prefers-reduced-motion: reduce) {
  .home .glow-w { opacity: 1 !important; }
  .gate { transition: none; }
  .motion-ready .home .board .tonight-list.is-board li { opacity: 1 !important; transform: none !important; }
}

/* =========================================================
   COMPOSANT PARTAGÉ (2026-10-11b) : LE TÉLÉPHONE DES TROIS TEMPS
   .lens-stack > .lens-phone--live / --past / --next (schéma SVG .lz)
   Noctambules : piloté au toucher ([data-lens-demo], motion.js).
   Par défaut (sans JS, mouvement réduit) : trois écrans côte à côte.
   Grammaire de la carte : pins lilas qui respirent, rues roses = des
   gens, cœur blanc = la foule, ami vert ; Passé améthyste (voile, trace,
   nuit rejouée), À venir cyan #67E8F9 (seuls les lieux qui basculent
   s'allument, toast vivant). Valeurs de voiles et de balayage reprises
   de l'app (featurePalette.ts : NP_VEIL_*, NP_SWEEP_*).
   ========================================================= */
@property --lens-k { syntax: "<number>"; inherits: true; initial-value: 0; }
@property --lens-trail { syntax: "<number>"; inherits: true; initial-value: 1; }
@property --lens-replay { syntax: "<number>"; inherits: true; initial-value: 1; }
@property --lens-ign { syntax: "<number>"; inherits: true; initial-value: 1; }

.lens-stack {
  --lz-past: #A99BD6;
  --lz-next: #67E8F9;
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(10px, 1.6vw, 18px);
  align-items: start;
  padding-bottom: 36px;
}
.lens-phone { margin: 0; }
/* Dans le triptyque, l'ordre suit le temps : Passé, Live, À venir. */
.lens-phone--past { order: -1; }
.lens-phone .device-screen { background: #192134; }
.lz { display: block; width: 100%; height: 100%; }
.lens-cap {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 12px);
  text-align: center;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--rose);
}
.lens-phone--past .lens-cap { color: var(--lz-past); }
.lens-phone--next .lens-cap { color: var(--lz-next); }

/* --- Matière de la carte : le sol C « Heure bleue » de l'app, valeurs de NUIT (2026-11-02) : fond #192134,
       eau #163F73 et son liseré clair des rives #7FB0F0, végétation #173032, rues gris-bleu par classe --- */
.lz-bg { fill: #192134; }
.lz-water { fill: #163F73; }
.lz-shore { fill: none; stroke: #7FB0F0; stroke-width: 1.6; stroke-linecap: round; opacity: 0.85; }
.lz-river-shore { fill: none; stroke: #7FB0F0; stroke-width: 25; stroke-linecap: round; opacity: 0.85; }
.lz-river { fill: none; stroke: #163F73; stroke-width: 22; stroke-linecap: round; }
.lz-park { fill: #173032; }
.lz-minor { fill: none; stroke: #343F56; stroke-width: 3.5; stroke-linecap: round; }
.lz-casing { fill: none; stroke: #111725; stroke-width: 12; stroke-linecap: round; stroke-linejoin: round; }
.lz-st { fill: none; stroke: #3F4A63; stroke-width: 6.5; stroke-linecap: round; stroke-linejoin: round; }
.lz-st--main { stroke: #586681; stroke-width: 8; }
.lz-veil { pointer-events: none; }

/* --- Les gens : seule source de lumière sur le bitume --- */
/* chaque tronçon a sa fréquentation (couleur et opacité posées tronçon par
   tronçon, grammaire de l'app) ; le halo respire, déphasé d'un tronçon à l'autre */
@keyframes lz-seg-breath { 0%, 100% { stroke-opacity: 0.6; } 50% { stroke-opacity: 1; } }
.lz-friend-halo { fill: #00E87A; opacity: 0.2; transform-box: fill-box; transform-origin: center; }
.lz-friend-dot { fill: #00E87A; stroke: #111725; stroke-width: 2.5; }

/* --- Les lieux : un pin en métal qui respire (jamais sur le bitume) ; son
       halo suit le métal (argent à peine lilas, or champagne pour le
       Premium : doctrine du 2026-10-12) --- */
/* pins PLATS (2026-10-12) : un disque mat d'une seule teinte, aucun liseré clair, aucun reflet */
.lz-pin { fill: #C9CED8; fill-opacity: 0.84; }
.lz-v--gold .lz-pin { fill: #E6C26A; fill-opacity: 0.92; }
.lz-aura { fill: #C4C8DA; opacity: 0.3; transform-box: fill-box; transform-origin: center; }
.lz-v--gold .lz-aura { fill: #E6C26A; }
.lz-gold { fill: none; stroke: #FFB800; stroke-width: 1.5; }

/* --- Passé : voile, lieux vécus, trace qui se dessine, nuit rejouée --- */
.lens-phone--past .lz-aura { display: none; }
.lz-replay { opacity: calc(var(--lens-replay) * 0.85); }
.lz-trail,
.lz-trail-haze {
  fill: none;
  stroke: #A99BD6;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1 1;
  stroke-dashoffset: calc(1 - var(--lens-trail));
}
.lz-trail { stroke-width: 3; }
.lz-trail-haze { stroke-width: 15; opacity: 0.16; }
.lz-chip rect { fill: rgba(25, 33, 52, 0.9); stroke-width: 1.5; } /* verre des pastilles sur la carte (NIGHT_GLASS.panel de l'app) */
.lz-chip text { fill: #fff; font-family: var(--font-body); font-size: 15px; font-weight: 700; }
.lz-chip--past rect { stroke: rgba(169, 155, 214, 0.7); }
.lz-chip--past circle { fill: #A99BD6; }
.lz-chip--next rect { stroke: rgba(103, 232, 249, 0.7); }
.lz-chip--next circle { fill: #67E8F9; }
.lz-scrub-bg { fill: rgba(14, 12, 30, 0.86); stroke: rgba(169, 155, 214, 0.35); stroke-width: 1.5; }
.lz-scrub-line { fill: none; stroke: rgba(169, 155, 214, 0.25); stroke-width: 3; stroke-linecap: round; }
.lz-scrub-fill { fill: none; stroke: #A99BD6; stroke-width: 3; stroke-linecap: round; stroke-dasharray: 1 1; stroke-dashoffset: calc(1 - var(--lens-trail)); }
.lz-scrub-knob { fill: #fff; transform: translateX(calc(var(--lens-trail) * 232px)); }

/* --- À venir : halos éteints, lieux en sourdine, seuls ceux qui
       basculent s'allument (plein + souffle cyan), toast vivant --- */
.lz-pins--dim .lz-pin { opacity: 0.3; }
.lz-v--open { opacity: clamp(0, calc((var(--lens-ign) - var(--t, 0)) * 7), 1); }
.lz-ring { fill: rgba(103, 232, 249, 0.14); stroke: #67E8F9; stroke-width: 2; transform-box: fill-box; transform-origin: center; }
.lz-toast {
  --toast: clamp(0, calc((var(--lens-ign) - 0.16) * 6), 1);
  opacity: var(--toast);
  transform: translateY(calc((1 - var(--toast)) * 10px));
}
.lz-toast-bg { fill: rgba(10, 14, 26, 0.94); stroke: rgba(103, 232, 249, 0.6); stroke-width: 1.5; }
.lz-toast-t { fill: #fff; font-family: var(--font-body); font-size: 15px; font-weight: 700; }
.lz-toast-s { fill: #00E87A; font-family: var(--font-body); font-size: 13px; font-weight: 600; }

/* --- La vie de la carte (respirations déphasées, jamais à l'unisson) --- */
@media (prefers-reduced-motion: no-preference) {
  .lens-phone--live .lz-aura,
  .lens-phone--next .lz-ring { animation: lz-breathe 3.4s ease-in-out var(--d, 0s) infinite; }
  .lens-phone--live .lz-people,
  .lens-phone--next .lz-people { animation: lz-glow 4.2s ease-in-out infinite; }
  .lz-friend-halo { animation: lz-friend 2.6s ease-in-out infinite; }
}
@keyframes lz-breathe {
  0%, 100% { transform: scale(0.7); opacity: 0.18; }
  50% { transform: scale(1.25); opacity: 0.55; }
}
@keyframes lz-glow { 0%, 100% { opacity: 0.82; } 50% { opacity: 1; } }
@keyframes lz-friend {
  0%, 100% { transform: scale(0.8); opacity: 0.12; }
  50% { transform: scale(1.3); opacity: 0.3; }
}

/* --- Empilés (scène de l'accueil OU démo au toucher) : les écrans se
       superposent, la lentille balaie depuis son bord. Le cadre reste
       celui du téléphone Live ; Passé et À venir ne sont que des écrans. */
.is-lens-ready .lens-phone--past,
.is-lens-ready .lens-phone--next {
  background: none;
  box-shadow: none;
}
.is-lens-ready .lens-phone--past .device-island,
.is-lens-ready .lens-phone--next .device-island { display: none; }
.is-lens-ready .lens-phone--past .device-screen {
  clip-path: inset(0 calc((1 - var(--lens-k)) * 100%) 0 0);
}
.is-lens-ready .lens-phone--next .device-screen {
  clip-path: inset(0 0 0 calc((1 - var(--lens-k)) * 100%));
}
/* La bande du balayage (NP_SWEEP_* de l'app) : le bord de la lentille. */
.lens-edge {
  position: absolute;
  inset: 0;
  pointer-events: none;
  display: none;
  opacity: clamp(0, calc(min(var(--lens-k), 1 - var(--lens-k)) * 14), 1);
}
.is-lens-ready .lens-edge { display: block; }
.lens-edge::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 30px;
}
.lens-phone--past .lens-edge { transform: translateX(calc((var(--lens-k) - 1) * 100%)); }
.lens-phone--past .lens-edge::after {
  right: 0;
  background: linear-gradient(90deg, rgba(169, 155, 214, 0), rgba(169, 155, 214, 0.42) 80%, rgba(255, 255, 255, 0.24) 100%);
}
.lens-phone--next .lens-edge { transform: translateX(calc((1 - var(--lens-k)) * 100%)); }
.lens-phone--next .lens-edge::after {
  left: 0;
  background: linear-gradient(270deg, rgba(103, 232, 249, 0), rgba(103, 232, 249, 0.36) 80%, rgba(255, 255, 255, 0.22) 100%);
}

/* --- Démo au toucher (Noctambules) : la lentille glisse, puis raconte. --- */
.is-lens-ready .lens-stack {
  display: block;
  width: min(300px, 70vw);
  aspect-ratio: 780 / 1688;
  margin-inline: auto;
  padding: 0;
}
.is-lens-ready .lens-phone { position: absolute; inset: 0; }
.is-lens-ready .lens-cap { display: none; }
.is-lens-ready .lens-phone--past,
.is-lens-ready .lens-phone--next {
  --lens-k: 0;
  transition: --lens-k 0.72s var(--ease-in-out, cubic-bezier(0.77, 0, 0.175, 1));
}
.is-lens-ready[data-lens="past"] .lens-phone--past,
.is-lens-ready[data-lens="next"] .lens-phone--next { --lens-k: 1; }
@media (prefers-reduced-motion: no-preference) {
  .is-lens-ready[data-lens="past"] .lens-phone--past { animation: lens-tell-past 2.8s cubic-bezier(0.23, 1, 0.32, 1) 0.35s both; }
  .is-lens-ready[data-lens="next"] .lens-phone--next { animation: lens-tell-next 3.6s linear 0.5s both; }
}
@keyframes lens-tell-past { from { --lens-trail: 0; --lens-replay: 0; } }
@keyframes lens-tell-next { from { --lens-ign: 0; } }
@media (prefers-reduced-motion: reduce) {
  .is-lens-ready .lens-phone--past,
  .is-lens-ready .lens-phone--next { transition: none; }
}

/* =========================================================
   ACCUEIL 2026-10-11b : héros qui passe la main, plongée de l'échelle
   ========================================================= */
/* Le héros se retire quand on descend : le texte monte et s'efface, le
   téléphone recule d'un cran. Il passe la main à la plongée qui suit
   (motion.js : data-scene="exit" → --p de 0 à 1 pendant la sortie). */
.motion-ready .hx:not([data-reduced]) .hx-copy {
  transform: translate3d(0, calc(var(--p, 0) * -70px), 0);
  opacity: calc(1 - var(--p, 0) * 1.5);
}
.motion-ready .hx:not([data-reduced]) .hx-visual {
  scale: calc(1 - var(--p, 0) * 0.08);
  opacity: calc(1 - var(--p, 0) * 0.9);
}
.motion-ready .hx:not([data-reduced]) .hx-veil { opacity: calc(1 + var(--p, 0) * 0.6); }

/* L'échelle : on ZOOME à travers les écrans. Celui qu'on quitte grossit et
   se dissout (on plonge dedans), le suivant arrive de plus loin. */
.motion-ready .scale:not([data-reduced])[data-step="1"] .scale-shot:nth-child(1),
.motion-ready .scale:not([data-reduced])[data-step="2"] .scale-shot:nth-child(-n+2) {
  transform: scale(1.18);
  filter: blur(12px);
}
.motion-ready .scale:not([data-reduced])[data-step="0"] .scale-shot:nth-child(n+2),
.motion-ready .scale:not([data-reduced])[data-step="1"] .scale-shot:nth-child(3) {
  transform: scale(0.86);
}


/* =========================================================
   SITE 2026-10-12 : DISTILLATION + SIGNATURE PARTOUT
   Ordres founder : « le fond vivant de l'accueil est une marque de
   fabrique, je le veux PARTOUT » ; « du motion design, du réactif, et
   une lecture simple » (algorithme Musk : supprimer, puis simplifier ce
   qui reste). Chaque page lit en moins d'une minute, une idée par écran.
   ========================================================= */

/* Jetons de l'accueil, partagés : la plongée et le bandeau vivent aussi
   sur les pages .pg (Noctambules). */
.pg {
  --lilac: #B4A9FF;
  --amethyst: #A99BD6;
  --cyan: #67E8F9;
  --indigo: #192134;
  --ink-2: #B4B2CC;
  --sec-pad: clamp(80px, 10vw, 136px);
}

/* ---------- Le fond vivant en ambiance (.np-ambient) ----------
   Pages de lecture, 404, cartons d'invitation, pages serveur : le même
   champ nocturne (nightfield.js, data-nightfield="ambient") en fond fixe,
   derrière la page. Un voile garde le texte lisible ; il s'OUVRE sous le
   pointeur ou le doigt (--cx/--cy, motion.js), là où la nuit s'intensifie.
   Repli : un dégradé de nuit si le canevas ne peint rien. */
@property --amb-r {
  syntax: "<length>";
  inherits: true;
  initial-value: 0px;
}
.np-ambient {
  --amb-veil: rgba(7, 7, 16, 0.8);
  --amb-hole: 0.5;
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
  background:
    radial-gradient(55% 50% at 78% 16%, rgba(123, 97, 255, 0.2), transparent 70%),
    radial-gradient(45% 40% at 12% 92%, rgba(255, 45, 122, 0.12), transparent 72%),
    linear-gradient(180deg, #0d0b1f 0%, #0a0918 60%, var(--night) 100%);
  transition: --amb-r 0.7s cubic-bezier(0.23, 1, 0.32, 1);
}
.np-ambient.is-lit { --amb-r: 320px; }
.np-ambient canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  opacity: 0;
  transition: opacity 1.6s cubic-bezier(0.23, 1, 0.32, 1);
}
.np-ambient canvas.is-ready { opacity: 1; }
/* sans WebGL (ou sans JS) : le dégradé de nuit du conteneur suffit */
.np-ambient canvas.is-dead { display: none; }
.np-ambient::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--amb-veil);
  -webkit-mask-image: radial-gradient(var(--amb-r) circle at var(--cx, 50%) var(--cy, 50%), rgba(0, 0, 0, var(--amb-hole)) 0%, #000 100%);
  mask-image: radial-gradient(var(--amb-r) circle at var(--cx, 50%) var(--cy, 50%), rgba(0, 0, 0, var(--amb-hole)) 0%, #000 100%);
}
/* Lecture (légal) : la ville vit sur les bords, le centre reste dense. */
.np-ambient--read {
  --amb-veil:
    radial-gradient(64% 120% at 46% 55%, rgba(7, 7, 16, 0.86) 0%, rgba(7, 7, 16, 0.8) 55%, rgba(7, 7, 16, 0.5) 100%);
  --amb-hole: 0.62;
}
/* Scène (404, invitations, pages serveur) : la carte au centre, la nuit
   tout autour. */
.np-ambient--stage {
  --amb-veil:
    radial-gradient(58% 62% at 50% 50%, rgba(7, 7, 16, 0.76) 0%, rgba(7, 7, 16, 0.5) 62%, rgba(7, 7, 16, 0.3) 100%);
  --amb-hole: 0.45;
}
/* Le carton des pages serveur prend de la matière sur la nuit vivante. */
.artifact-page .artifact-card { background: rgba(14, 12, 28, 0.84); }
@media (prefers-reduced-transparency: reduce) {
  .np-ambient::after { background: rgba(7, 7, 16, 0.9); -webkit-mask-image: none; mask-image: none; }
}
@media (prefers-reduced-motion: reduce) {
  .np-ambient { transition: none; }
  .np-ambient::after { -webkit-mask-image: none; mask-image: none; }
}

/* ---------- Accueil : le compteur fondateur sous le formulaire ---------- */
.hx-founders {
  margin: 10px 0 0;
  font-size: 0.92rem;
  color: var(--ink-2);
}
.hx-founders strong {
  font-family: var(--font-mono);
  font-size: 1.06em;
  font-variant-numeric: tabular-nums;
  margin-right: 2px;
  /* Largeur fixe (3 chiffres, chasse fixe) : le compteur qui défile ne
     fait pas danser la ligne ni le téléphone dessous. */
  display: inline-block;
  min-width: 3ch;
}
/* Place réservée avant la réponse du serveur : rien ne saute à l'arrivée
   du nombre (et si la lecture échoue, on garde juste un blanc d'une ligne). */
.hx-founders { min-height: 1.5em; line-height: 1.5; }
.hx-founders[hidden] { display: block; visibility: hidden; }
@media (max-width: 560px) {
  .hx-founders { min-height: 3em; }
}
@media (prefers-reduced-motion: no-preference) {
  .hx-founders:not([hidden]) { animation: hx-rise 0.7s var(--ease-out) both; }
}
/* La preuve réelle sous le compteur (W-SI-01, audit 2026-11-10) : même place réservée, le point rose bat
   seulement quand la ligne dit des GENS dehors (.is-people) ; mouvement réduit = point fixe. */
.hx-live { margin: 4px 0 0; min-height: 1.5em; line-height: 1.5; font-size: 0.92rem; color: var(--ink-2); }
.hx-live[hidden] { display: block; visibility: hidden; }
.hx-live strong { font-family: var(--font-mono); font-variant-numeric: tabular-nums; color: var(--rose); font-weight: 700; }
.hx-live-dot { display: inline-block; width: 7px; height: 7px; margin: 0 8px 1px 0; border-radius: 50%; background: #C9CED8; vertical-align: middle; }
.hx-live.is-people .hx-live-dot { background: var(--rose); box-shadow: 0 0 10px rgba(255, 45, 122, 0.55); }
@media (prefers-reduced-motion: no-preference) {
  .hx-live:not([hidden]) { animation: hx-rise 0.7s var(--ease-out) both; }
  .hx-live.is-people .hx-live-dot { animation: hx-live-beat 2.4s ease-in-out infinite; }
}
@keyframes hx-live-beat { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.55; transform: scale(0.8); } }
@media (max-width: 760px) { .hx-cta .hx-live { color: #E4E1F4; } }

/* ---------- Accueil : LA PROMESSE (une idée, un écran) ----------
   Sans JS : rature native, rue allumée, mot rose. En scène (--p, motion.js) :
   la rature traverse l'algorithme, puis la rue s'allume de gauche à droite
   et « sont » prend le rose avec elle. Seul le DÉCOR dépend de --p :
   aucun texte n'est caché si la scène ne se lance pas. */
.claim {
  padding: clamp(110px, 15vw, 196px) 0 clamp(96px, 12vw, 160px);
  overflow: clip;
}
.claim-title {
  font-size: clamp(3.2rem, 10vw, 6rem);
  line-height: 0.96;
  letter-spacing: -0.04em;
  margin: 0;
}
.claim-title em { font-style: normal; color: var(--rose); }
.claim-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px 40px;
}
.claim-sub {
  margin: 0;
  max-width: 44ch;
  color: var(--ink-2);
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  line-height: 1.55;
  text-wrap: pretty;
}
.claim-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
}
.claim-arrow {
  position: relative;
  width: 22px;
  height: 1.5px;
  border-radius: 2px;
  background: var(--rose);
  transition: translate 0.3s var(--ease-out);
}
.claim-arrow::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  width: 7px;
  height: 7px;
  border-top: 1.5px solid var(--rose);
  border-right: 1.5px solid var(--rose);
  transform: translate(1px, -50%) rotate(45deg);
}
.claim-link:hover .claim-arrow,
.claim-link:focus-visible .claim-arrow { translate: 6px 0; }

.motion-ready .claim:not([data-reduced]) {
  --k1: clamp(0, calc((var(--p) - 0.16) * 5), 1);
  --k2: clamp(0, calc((var(--p) - 0.3) * 3), 1);
}
.motion-ready .claim:not([data-reduced]) .claim-title em {
  color: color-mix(in srgb, var(--rose) calc(var(--k2) * 100%), #6f6c8c);
}
@media (prefers-reduced-motion: reduce) {
  .claim-arrow { transition: none; }
}

/* ---------- Le bandeau (désormais sur Noctambules) ---------- */
@media (max-width: 560px) {
  .claim-foot { flex-direction: column; align-items: flex-start; }
}

/* =========================================================
   HÉROS 2026-10-12d : le téléphone à GAUCHE, la question à droite, la rade
   et le Jet d'eau du fond vivant libres dans la partie droite de l'écran.
   Le voile de lecture suit le texte (à droite), plus léger : la ville vit.
   ========================================================= */
@media (min-width: 981px) {
  .hx-inner { grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); }
  .hx-visual { order: -1; justify-content: flex-start; }
  .hx-copy { justify-self: end; max-width: 640px; }
  .device--hero { width: min(100%, 300px, calc((100svh - 190px) * 0.462)); }
  .hx-veil {
    background:
      radial-gradient(42% 60% at 70% 52%, rgba(7, 7, 16, 0.62), rgba(7, 7, 16, 0) 100%),
      linear-gradient(180deg, rgba(7, 7, 16, 0) 70%, var(--night) 100%);
  }
}
@media (max-width: 980px) {
  /* la question d'abord ; le téléphone plus petit, à gauche, sans cacher la rade */
  .hx-visual { justify-content: flex-start; }
  .device--hero { width: min(56vw, 236px); min-width: 0; }
}

/* Les lentilles : l'énergie des gens en molécules (2026-10-12d), qui respirent */
@media (prefers-reduced-motion: no-preference) {
  .lz-mol { animation: lz-mol 3s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
}
@keyframes lz-mol { 0%, 100% { transform: scale(0.94); } 50% { transform: scale(1.06); } }

/* Grands écrans (2026-10-12d) : l'accueil prend la largeur au lieu d'étirer
   la mise en page du téléphone. */
@media (min-width: 1500px) {
  .home { --maxw: 1320px; }
  .home .device--hero { width: min(100%, 360px, calc((100svh - 190px) * 0.462)); }
}
@media (min-width: 1800px) {
  .home { --maxw: 1480px; }
}

/* Le film n'est rendu que lorsqu'il est prêt (index.html : data-film-ready). Ici,
   dans la feuille bloquante : jamais affiché puis retiré. */
.film[data-film-ready="false"] { display: none; }

/* =========================================================
   SÉQUENCES SCROLLÉES (2026-10-12e) : assets/js/seq.js ([data-seq])
   Une scène plein écran épinglée, un <canvas> peint l'image choisie par le
   défilement. html.np-seq (posé dans <head> si le mouvement est permis) :
   la section devient longue (--len écrans) et la scène colle à l'écran.
   Sans JS / mouvement réduit : l'image finale, fixe, et tout le texte.
   ========================================================= */
.seq { position: relative; background: var(--night); }
.seq-pin {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 520px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.np-seq .seq { height: calc(var(--len, 3) * 100vh); height: calc(var(--len, 3) * 100svh); }
.np-seq .seq-pin { position: sticky; top: 0; }
.seq-stage { position: absolute; inset: 0; background: #192134; }
.seq-still, .seq-still img, .seq-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.seq-still img { object-fit: cover; }
.seq-canvas { display: none; opacity: 0; transition: opacity 0.5s cubic-bezier(0.23, 1, 0.32, 1); }
/* séquence vivante : le canevas remplace l'image fixe (jamais chargée) */
.np-seq .seq-still { display: none; }
.np-seq .seq-canvas { display: block; }
.seq.is-drawn .seq-canvas { opacity: 1; }
/* la scène se fond dans la nuit du site, en haut et en bas ; un voile doux
   là où l'on lit */
.seq-shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, var(--night) 0%, rgba(7, 7, 16, 0.55) 11%, rgba(7, 7, 16, 0) 26%, rgba(7, 7, 16, 0) 58%, rgba(7, 7, 16, 0.78) 88%, var(--night) 100%);
}
.seq-copy { position: relative; z-index: 2; width: 100%; padding-bottom: clamp(64px, 11vh, 120px); }
.seq-copy--top { position: absolute; top: 0; left: 0; right: 0; padding-top: calc(var(--header-h, 72px) + clamp(18px, 4vh, 44px)); padding-bottom: 0; }
.seq-line {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.3rem, 7.4vw, 6.2rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
  color: #fff;
  text-shadow: 0 2px 30px rgba(7, 7, 16, 0.85);
  max-width: 14ch;
}
.seq-line em { display: block; font-style: normal; font-size: 0.42em; letter-spacing: -0.02em; line-height: 1.15; margin-top: 0.35em; color: #FFC2D8; }
/* séquence vivante : une phrase à la fois, au même endroit (seq.js règle l'opacité) */
.np-seq .seq.is-on .seq-copy:not(.seq-copy--top) { display: grid; }
.np-seq .seq.is-on .seq-line { grid-area: 1 / 1; opacity: 0; will-change: opacity, transform; }
/* sans JS : les trois phrases, l'une sous l'autre, plus petites */
html:not(.np-seq) .seq-line { font-size: clamp(1.8rem, 5vw, 3.6rem); }
html:not(.np-seq) .seq-line + .seq-line { margin-top: 0.18em; }
.seq-kicker {
  margin: 0 0 10px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #C9C6DE;
}
.seq-kicker--gold { color: #FFD36B; }
.seq-title {
  margin: 0;
  font-size: clamp(2.1rem, 5.6vw, 4.6rem);
  line-height: 1;
  letter-spacing: -0.035em;
  max-width: 14ch;
  text-shadow: 0 2px 30px rgba(7, 7, 16, 0.85);
}
.seq-gold { font-style: normal; color: var(--gold); text-shadow: 0 0 28px rgba(255, 184, 0, 0.45); }
.seq-sub { margin: 14px 0 0; max-width: 34ch; font-size: clamp(1rem, 1.5vw, 1.2rem); line-height: 1.45; color: #E4E2F2; text-shadow: 0 1px 18px rgba(7, 7, 16, 0.9); }
.seq-clock {
  position: absolute;
  z-index: 2;
  right: max(16px, calc((100vw - var(--maxw, 1200px)) / 2 + 24px));
  bottom: clamp(56px, 10vh, 110px);
  margin: 0;
  font-family: var(--font-mono);
  font-size: clamp(2.6rem, 8vw, 6rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: #fff;
  text-shadow: 0 0 34px rgba(255, 45, 122, 0.5), 0 2px 18px rgba(7, 7, 16, 0.9);
}
.seq-cap {
  position: absolute;
  z-index: 2;
  left: 0;
  right: 0;
  bottom: 14px;
  margin: 0;
  padding: 0 16px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.03em;
  line-height: 1.5;
  color: #B9B7CF;
}
.seq-cap a { color: inherit; text-decoration: underline; text-decoration-color: rgba(185, 183, 207, 0.45); text-underline-offset: 2px; }
.seq-cap a:hover, .seq-cap a:focus-visible { color: #fff; }
.seq-attr { white-space: nowrap; }
/* crédits : cibles de 44 px au doigt, sans grossir le texte */
.seq-attr a { display: inline-block; padding: 15px 4px; margin: -15px -4px; }
@media (min-width: 1024px) {
  .seq-cap { text-align: right; right: max(16px, calc((100vw - var(--maxw, 1200px)) / 2 + 24px)); left: auto; max-width: 60ch; }
  .seq--nuit .seq-clock { bottom: auto; top: calc(var(--header-h, 72px) + clamp(18px, 4vh, 44px)); }
}
@media (max-width: 640px) {
  .seq-clock { left: 16px; right: auto; bottom: 72px; }
  .seq-cap { font-size: 0.64rem; }
}

/* 16.12 Téléphone : la bêta toujours à un geste (pastille dans l'en-tête) */
.nav-beta { display: none; }
@media (max-width: 920px) {
  .nav-beta {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    margin: 0 10px 0 auto;
    padding: 0 16px;
    border-radius: 999px;
    border: 1.5px solid rgba(255, 45, 122, 0.6);
    color: var(--rose);
    font-weight: 700;
    font-size: 0.9rem;
    text-decoration: none;
    background: rgba(7, 7, 16, 0.5);
  }
  .nav-beta:focus-visible { outline: 2px solid var(--rose); outline-offset: 2px; }
}

/* 16.13 Le son de la nuit (sound.js) : un contour, une onde, « Son ». Coupé = une ligne d'onde plate ;
   actif = l'onde bat en rose. Aucun son sans geste : le bouton est le seul moyen de le forcer. */
.np-sound {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  min-width: 44px;
  padding: 0 15px;
  border-radius: 999px;
  border: 1.5px solid rgba(201, 198, 222, 0.36);
  background: rgba(12, 10, 26, 0.55);
  color: #E6E3F2;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, transform 0.16s cubic-bezier(0.23, 1, 0.32, 1);
}
.np-sound:hover { border-color: rgba(201, 198, 222, 0.72); color: #fff; }
.np-sound:active { transform: scale(0.97); }
.np-sound:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.np-sound.is-on { border-color: rgba(255, 45, 122, 0.62); color: #fff; }
.np-sound-wave { display: inline-flex; align-items: center; gap: 2.5px; height: 16px; }
.np-sound-wave i { display: block; width: 2px; height: 4px; border-radius: 1px; background: currentColor; opacity: 0.8; transform-origin: 50% 50%; }
.np-sound.is-on .np-sound-wave i { background: var(--rose); opacity: 1; animation: np-wave 1.15s ease-in-out infinite; }
.np-sound.is-on .np-sound-wave i:nth-child(2) { animation-delay: -0.35s; }
.np-sound.is-on .np-sound-wave i:nth-child(3) { animation-delay: -0.7s; }
.np-sound.is-on .np-sound-wave i:nth-child(4) { animation-delay: -0.2s; }
@keyframes np-wave { 0%, 100% { transform: scaleY(0.75); } 50% { transform: scaleY(3.2); } }
@media (prefers-reduced-motion: reduce) {
  .np-sound.is-on .np-sound-wave i { animation: none; }
  .np-sound.is-on .np-sound-wave i:nth-child(1) { transform: scaleY(1.5); }
  .np-sound.is-on .np-sound-wave i:nth-child(2) { transform: scaleY(3); }
  .np-sound.is-on .np-sound-wave i:nth-child(3) { transform: scaleY(2); }
  .np-sound.is-on .np-sound-wave i:nth-child(4) { transform: scaleY(2.6); }
}
/* dans l'en-tête : juste avant les liens (ordinateur), avant « Bêta » (téléphone) */
.nav-sound { margin: 0 22px 0 auto; }
.nav-sound ~ .nav-links { margin-left: 0; }
@media (max-width: 920px) {
  .nav-sound { margin: 0 8px 0 auto; }
  .nav-sound ~ .nav-beta { margin-left: 0; }
}
@media (max-width: 480px) {
  .nav-sound { padding: 0; width: 44px; }
  .nav-sound .np-sound-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}
html.np-onlight .nav-sound { color: #3A3A4A; border-color: rgba(7, 7, 16, 0.22); background: rgba(248, 249, 251, 0.6); }
html.np-onlight .nav-sound.is-on { color: #070710; border-color: rgba(224, 17, 95, 0.55); }
html.np-onlight .nav-sound.is-on .np-sound-wave i { background: #E0115F; }
/* dans le héros : sa place est réservée (aucun décalage quand sound.js l'allume) */
.hx-sound { margin-top: 14px; }
.hx-sound[hidden] { display: inline-flex; visibility: hidden; }

/* =========================================================
   HÉROS DE L'ACCUEIL : règles de mise en page qui vivaient dans journey.css
   (feuille NON bloquante). Quand elle arrivait après le premier rendu (CPU
   ou réseau lents), le héros se recomposait : CLS 0,14 mesuré le 2026-10-12.
   Tout ce qui dimensionne le héros vit ICI, dans la feuille bloquante.
   ========================================================= */
@media (min-width: 981px) {
  /* Le héros arrive par morceaux quand l'analyseur HTML rend la main avant
     la fin de la section (CPU lent : premier rendu avec la seule accroche,
     puis le titre, puis le téléphone ; mesuré 2026-10-13, CLS 0,19). La
     rangée réserve d'emblée la hauteur du téléphone (même largeur, même
     rapport 1170 / 2439) : ce qui arrive ensuite se pose dans un cadre qui ne
     bouge plus. */
  .hx { --hx-dev-w: min(calc(70svh * 0.4796), 470px); }
  .device--hero { width: min(100%, var(--hx-dev-w)); }
  .hx-inner { min-height: calc(var(--hx-dev-w) * 2439 / 1170); }
  /* Et la colonne de texte réserve la place de ce qui n'est pas encore
     analysé : trois lignes de titre, deux de promesse, le bloc d'inscription
     (champ + indication + places de Membre fondateur). Ces minima sont les
     hauteurs réelles à l'arrivée : rien ne bouge, rien n'est inventé. */
  .hx-title { min-height: 2.94em; }
  .hx-sub { min-height: 3em; }
  /* + le bouton « Son de la nuit » (44 px + 14 px), dernier analysé (2026-10-13 : sans lui, CLS 0,017 sous CPU ×4) */
  .hx-cta { min-height: calc(7.9em + 58px); }
  /* Les trois lignes du titre sont celles du HTML (br), quelle que soit la
     police qui le rend en premier. */
  .hx-title { white-space: nowrap; max-width: none; }
  /* Placement EXPLICITE : tant que le téléphone (order: -1) n'est pas analysé,
     le texte, premier enfant, prenait la colonne 1 et sautait de 623 px vers
     la droite à l'arrivée du téléphone (décalage 0,33 mesuré). */
  .hx-visual { grid-column: 1; grid-row: 1; }
  .hx-copy { grid-column: 2; grid-row: 1; }
}
@media (max-width: 980px) {
  .hx-title br { display: none; }
}
@media (min-width: 1200px) {
  .hx-copy { min-height: 36.3rem; } /* = la colonne entière à l'arrivée (581 px à 1920 × 1080) */
}
@media (min-width: 1200px) {
  /* La colonne du téléphone a une largeur FIXE (celle que `auto` lui donnait une
     fois le téléphone analysé : 470 px, ou le téléphone s'il est plus large) :
     avec `auto`, la colonne valait 0 tant que le téléphone n'était pas là, et
     tout le texte glissait de 235 px vers la droite à son arrivée (CLS 0,125). */
  .hx-inner { grid-template-columns: max(var(--hx-dev-w, 470px), 470px) minmax(0, 720px); justify-content: center; gap: clamp(56px, 8vw, 160px); }
  .hx-copy { justify-self: start; }
}
.hx-sub { font-size: clamp(1rem, 0.55rem + 0.6vw, 1.32rem); line-height: 1.5; }
.hx-kicker { font-size: clamp(0.76rem, 0.5rem + 0.32vw, 0.92rem); }
.beta-hint, .founders-count, .hx-founders { font-size: clamp(0.95rem, 0.7rem + 0.3vw, 1.05rem); }
.hx { overflow-anchor: none; }

/* CTA collant du téléphone (pages pro : « L'offre · dès 49 CHF » ; accueil : « Rejoindre la bêta »,
   2026-10-22), au pouce, après le héros ; effacé sur sa cible et sur la zone de fin [data-sticky-end]
   (script.js). Jamais sur grand écran, jamais sans JS. */
.pg-sticky-cta {
  display: none;
  position: fixed;
  left: 50%;
  bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  z-index: 40;
  min-height: 44px;
  padding: 12px 20px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(8, 8, 20, 0.92);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 14px 40px -14px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(123, 97, 255, 0.25);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  opacity: 0;
  transform: translate(-50%, 24px);
  pointer-events: none;
  transition: opacity 0.28s ease, transform 0.36s var(--ease-out);
}
@media (max-width: 760px) {
  .pg-sticky-cta { display: inline-flex; align-items: center; }
  .pg-sticky-cta.is-on { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
}
@media (prefers-reduced-motion: reduce) { .pg-sticky-cta { transition: none; } }

/* Les pages légales et le contact dans le menu du téléphone (banc des 50 visiteurs, 2026-10-23 : depuis l'accueil,
   une minute de défilement pour atteindre le pied de page). Grand écran : le pied de page suffit. */
.nav-legal { display: none; }
@media (max-width: 920px) {
  .nav-legal { display: flex; flex-wrap: wrap; gap: 18px; padding-top: 14px; margin-top: 6px; border-top: 1px solid rgba(255, 255, 255, 0.1); }
  .nav-legal a { font-size: 0.92rem; color: #A0A0B8; text-decoration: none; padding: 8px 0; }
  .nav-legal a:hover, .nav-legal a:focus-visible { color: #FFFFFF; }
}

/* Le point du kicker suit la vraie nuit (W-SI-02, audit 2026-11-10) : posé par script.js à la lecture de
   /api/tonight. Gens dehors (amas réels ≥ 3) = rose qui bat lentement ; sinon argent immobile, le métal des
   pins. Avant la lecture ou en panne : le rose fixe d'avant, sans rien affirmer. Mouvement réduit = fixe. */
.hx-kicker-dot { transition: background-color 0.6s var(--ease-out), box-shadow 0.6s var(--ease-out); }
.hx-kicker-dot.is-quiet { background: #C9CED8; box-shadow: 0 0 8px rgba(201, 206, 216, 0.35); }
@media (prefers-reduced-motion: no-preference) {
  .hx-kicker-dot.is-live { animation: hx-live-beat 3.2s ease-in-out infinite; }
}

/* Suggestion de domaine dans le statut du formulaire (W-SI-05) : un lien-bouton, jamais un remplissage. */
.beta-fix {
  font: inherit; font-weight: 700; color: var(--rose); background: none; border: 0; padding: 0;
  text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}
.beta-fix:focus-visible { outline: 2px solid var(--rose); outline-offset: 2px; border-radius: 2px; }

/* La carte d'un quartier sans WebGL (W-SI-18, api/quartier.js) : les lieux à leurs vraies coordonnées,
   la grammaire des pins de l'app (argent ouvert, graphite fermé, creux = horaires non lus, anneau or
   premium). Fond uni : aucune rue dessinée. */
.hub-map { margin: 0 0 clamp(26px, 5vw, 40px); }
.hub-map-svg {
  display: block; width: 100%; height: auto; border-radius: var(--radius-lg, 22px);
  background: rgba(25, 33, 52, 0.72); border: 1px solid var(--border);
}
.hub-map-svg a circle { transition: opacity 0.2s ease; }
.hub-map-svg a:hover circle { opacity: 0.75; }
.hub-map-key { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: 10px 0 0; font-size: 0.8rem; color: var(--text-3); }
.hub-map-key .k { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-left: 8px; }
.hub-map-key .k:first-child { margin-left: 0; }
.hub-map-key .k-open { background: #C9CED8; }
.hub-map-key .k-closed { background: rgba(102, 108, 122, 0.62); }
.hub-map-key .k-unknown { border: 1.5px solid #666C7A; }
.hub-map-key .k-gold { border: 1.5px solid #FFB800; }
