/* ==========================================================================
   Horkelis · maquette de landing « Constellation »
   Police système Apple (SF Pro). Thème clair unique, un chapitre nuit (confiance).
   Rayons : pilules 999px (contrôles), tuiles 28px, éléments internes 18px.
   Aucun style en ligne : compatible avec la CSP stricte du site.
   ========================================================================== */

:root {
  color-scheme: light;

  --bg: #fcfdfe;
  --bg-2: #f3f6fa;
  --surface: #ffffff;
  --ink: #0a1a2b;
  --ink-2: #44566b;
  --ink-3: #5b6b7e;
  --ink-faint: #a9b4c1;
  --line: rgba(10, 26, 43, 0.09);

  --accent: #1e6bd6;
  --accent-hover: #185fc2;
  --accent-ink: #114a9c;
  --accent-soft: #e7f0fc;
  --accent-on-dark: #86bcff;

  --night: #020812;
  --on-night: #eaf2fb;
  --on-night-2: rgba(234, 242, 251, 0.74);

  --r-pill: 999px;
  --r-xl: clamp(28px, 4vw, 48px);
  --r-lg: 28px;
  --r-md: 18px;
  --r-sm: 12px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io: cubic-bezier(0.66, 0, 0.1, 1);
  --ease-spring: cubic-bezier(0.34, 1.4, 0.64, 1);
  --t-1: 0.18s;
  --t-2: 0.42s;
  --t-3: 0.9s;

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --wrap: min(1120px, calc(100% - 48px));

  --z-nav: 50;
  --z-menu: 49;
  --z-sticky: 40;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: -0.022em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img, picture, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }
button { font: inherit; letter-spacing: inherit; color: inherit; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 600; }
ul, ol { margin: 0; padding: 0; list-style: none; }

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

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

.skip {
  position: fixed; z-index: 60; top: 12px; left: 12px;
  padding: 10px 16px; border-radius: var(--r-pill);
  background: var(--ink); color: #fff; text-decoration: none; font-size: 14px;
  transform: translateY(-200%);
}
.skip:focus { transform: none; }

.sentinel { position: absolute; top: 0; left: 0; width: 1px; height: 72px; pointer-events: none; }

.ic { width: 1em; height: 1em; flex: none; fill: currentColor; }

/* ---------- Typographie ---------- */

h2 {
  font-size: clamp(2rem, 3.4vw + 0.7rem, 3.5rem);
  line-height: 1.07;
  letter-spacing: -0.028em;
  text-wrap: balance;
}

.lead {
  margin-top: 16px;
  max-width: 34em;
  font-size: clamp(1.0625rem, 0.6vw + 0.95rem, 1.3125rem);
  line-height: 1.38;
  letter-spacing: -0.012em;
  color: var(--ink-2);
  text-wrap: pretty;
}

.section-head { width: var(--wrap); margin: 0 auto clamp(40px, 6vh, 72px); }
.section-head.center { text-align: center; }
.section-head.center .lead { margin-inline: auto; }

/* ---------- Boutons ---------- */

.btn {
  display: inline-flex; align-items: center; gap: 12px;
  height: 52px; padding: 0 8px 0 24px;
  border: 0; border-radius: var(--r-pill);
  font-size: 17px; font-weight: 500; letter-spacing: -0.012em;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: transform var(--t-1) var(--ease-out), background-color var(--t-1) ease, box-shadow var(--t-2) var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(0.98); }

.btn-primary {
  background: var(--accent); color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 1px 2px rgba(17, 74, 156, 0.35), 0 12px 26px -10px rgba(30, 107, 214, 0.6);
}
.btn-primary:hover { background: var(--accent-hover); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 1px 2px rgba(17, 74, 156, 0.35), 0 18px 34px -12px rgba(30, 107, 214, 0.7); }

.btn-icon {
  display: grid; place-items: center;
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.18); font-size: 15px;
  transition: transform var(--t-2) var(--ease-out), background-color var(--t-1) ease;
}
.btn:hover .btn-icon { transform: translate(2px, -2px) scale(1.05); background: rgba(255, 255, 255, 0.27); }

.btn-sm { height: 38px; padding: 0 16px; font-size: 14px; }
.btn-lg { height: 60px; padding: 0 10px 0 30px; font-size: 19px; }
.btn-lg .btn-icon { width: 40px; height: 40px; font-size: 17px; }
.btn-block { display: flex; justify-content: space-between; width: 100%; }
.btn-ghost { padding: 0 24px; background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px rgba(10, 26, 43, 0.18); }
.btn-ghost:hover { background: rgba(10, 26, 43, 0.04); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--accent); font-weight: 500; text-decoration: none;
}
.link-arrow .ic { font-size: 0.82em; transition: transform var(--t-2) var(--ease-out); }
.link-arrow:hover .ic { transform: translateX(4px); }
.link-arrow.on-dark { color: var(--accent-on-dark); }

/* ---------- Avatars et pastilles en verre ---------- */

/* Monogramme d'un contact : un aplat bleu très clair et les initiales, sans dégradé ni relief */
.avatar {
  flex: none; display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 50%;
  font-size: 14px; font-weight: 600; letter-spacing: 0; color: var(--accent-ink);
  background: var(--accent-soft);
  box-shadow: inset 0 0 0 1px rgba(30, 107, 214, 0.12);
}
.avatar-sm { width: 34px; height: 34px; font-size: 12px; }
.avatar-lg { width: 52px; height: 52px; font-size: 16px; }

.glyph {
  flex: none; display: grid; place-items: center;
  width: 36px; height: 36px; border-radius: 11px;
  color: #fff; font-size: 19px;
  background: linear-gradient(180deg, #4b95f2 0%, #1e6bd6 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.38), 0 6px 12px -6px rgba(30, 107, 214, 0.65);
}
.glyph-lg { width: 48px; height: 48px; border-radius: 14px; font-size: 25px; }

.glass {
  background: rgba(255, 255, 255, 0.68);
  -webkit-backdrop-filter: saturate(180%) blur(24px);
  backdrop-filter: saturate(180%) blur(24px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95), inset 0 0 0 1px rgba(255, 255, 255, 0.55), 0 0 0 1px rgba(10, 26, 43, 0.06), 0 24px 50px -24px rgba(16, 58, 112, 0.38), 0 2px 6px rgba(10, 26, 43, 0.04);
}

.fiche-name { font-size: 16px; font-weight: 600; letter-spacing: -0.015em; }
.fiche-role, .fiche-org { font-size: 13px; line-height: 1.35; color: var(--ink-2); letter-spacing: -0.005em; }
.fiche-src {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px 4px 8px; border-radius: var(--r-pill);
  background: var(--accent-soft); color: var(--accent-ink);
  font-size: 12.5px; font-weight: 500; letter-spacing: 0;
}
.fiche-src .ic { font-size: 14px; }

/* ==========================================================================
   Navigation
   ========================================================================== */

.nav {
  position: fixed; z-index: var(--z-nav);
  top: 12px; left: 50%; translate: -50% 0;
  width: min(1000px, calc(100% - 24px)); height: 56px;
  display: flex; align-items: center; gap: 8px;
  padding: 0 9px 0 20px; border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.7);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6), 0 0 0 1px rgba(10, 26, 43, 0.06), 0 8px 30px -14px rgba(10, 26, 43, 0.18);
  transition: box-shadow var(--t-2) ease, background-color var(--t-2) ease;
  animation: nav-in 0.9s var(--ease-out) 0.05s both;
}
.nav.is-scrolled {
  background: rgba(255, 255, 255, 0.84);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6), 0 0 0 1px rgba(10, 26, 43, 0.07), 0 16px 40px -16px rgba(10, 26, 43, 0.3);
}
@keyframes nav-in { from { opacity: 0; transform: translateY(-18px); } }

.brand {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 19px; font-weight: 600; letter-spacing: -0.035em;
  color: var(--ink); text-decoration: none;
}
.brand-mark { width: 21px; height: 21px; color: var(--accent); transition: transform 0.9s var(--ease-out); }
.brand:hover .brand-mark { transform: rotate(45deg); }

.nav-links { display: flex; gap: 2px; margin-inline: auto; }
.nav-links a {
  padding: 8px 14px; border-radius: var(--r-pill);
  font-size: 14px; letter-spacing: -0.01em; color: var(--ink-2); text-decoration: none;
  transition: color var(--t-1) ease, background-color var(--t-1) ease;
}
.nav-links a:hover { color: var(--ink); background: rgba(10, 26, 43, 0.05); }

/* « Se connecter » : même dessin que les liens de navigation, en encre pleine, posé juste avant le bouton d'essai */
.nav-login {
  padding: 8px 14px; border-radius: var(--r-pill);
  font-size: 14px; font-weight: 500; letter-spacing: -0.01em; color: var(--ink); text-decoration: none; white-space: nowrap;
  transition: background-color var(--t-1) ease;
}
.nav-login:hover, .nav-login[aria-current="page"] { background: rgba(10, 26, 43, 0.05); }

.nav-toggle {
  display: none; position: relative; width: 40px; height: 40px; margin-left: auto;
  border: 0; border-radius: 50%; background: rgba(10, 26, 43, 0.05); cursor: pointer;
}
.nav-toggle span {
  position: absolute; left: 12px; right: 12px; height: 1.75px; border-radius: 2px; background: var(--ink);
  transition: transform var(--t-2) var(--ease-out), top var(--t-2) var(--ease-out);
}
.nav-toggle span:nth-child(1) { top: 16px; }
.nav-toggle span:nth-child(2) { top: 23px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { top: 19.5px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { top: 19.5px; transform: rotate(-45deg); }

.menu {
  position: fixed; z-index: var(--z-menu); top: 76px; left: 12px; right: 12px;
  display: flex; flex-direction: column; gap: 20px;
  padding: 22px 22px 22px; border-radius: var(--r-lg);
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: saturate(180%) blur(28px);
  backdrop-filter: saturate(180%) blur(28px);
  box-shadow: 0 0 0 1px rgba(10, 26, 43, 0.07), 0 30px 60px -24px rgba(10, 26, 43, 0.35);
  animation: menu-in 0.5s var(--ease-out) both;
}
.menu nav { display: flex; flex-direction: column; }
.menu nav a {
  padding: 11px 0; font-size: 24px; font-weight: 600; letter-spacing: -0.03em;
  text-decoration: none; border-top: 1px solid var(--line);
  animation: menu-link 0.6s var(--ease-out) both;
}
.menu nav a:first-child { border-top: 0; }
.menu nav a:nth-child(2) { animation-delay: 0.04s; }
.menu nav a:nth-child(3) { animation-delay: 0.08s; }
.menu nav a:nth-child(4) { animation-delay: 0.12s; }
.menu nav a:nth-child(5) { animation-delay: 0.16s; }
.menu .btn { justify-content: space-between; }
.menu .menu-login { justify-content: center; margin-top: -8px; }
@keyframes menu-in { from { opacity: 0; transform: translateY(-10px) scale(0.98); } }
@keyframes menu-link { from { opacity: 0; transform: translateY(14px); } }

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative; isolation: isolate;
  min-height: 100dvh;
  display: flex; flex-direction: column; align-items: center;
  padding: clamp(98px, 12vh, 124px) 24px 36px;
  overflow: clip;
}

.hero-bg {
  position: absolute; inset: 0; z-index: -3;
  -webkit-mask-image: linear-gradient(#000 62%, transparent 100%);
  mask-image: linear-gradient(#000 62%, transparent 100%);
}
/* Fond animé du hero : quatre halos bleus flous qui dérivent lentement dans les coins
   (esprit Grainient et Soft Aurora de React Bits), en CSS pur. Le bleu d'accent sur le blanc,
   comme le reste de la page ; le centre reste clair pour le titre. */
.hero-aurora { position: absolute; inset: 0; transform: translate3d(0, calc(var(--p, 0) * 70px), 0); }
.hero-aurora i { position: absolute; border-radius: 50%; will-change: transform; animation: halo-1 24s ease-in-out infinite alternate; }
.hero-aurora i:nth-child(1) {
  left: -20%; top: -30%; width: 64%; height: 84%;
  background: radial-gradient(closest-side, rgba(30, 107, 214, 0.9), rgba(30, 107, 214, 0.4) 55%, rgba(30, 107, 214, 0));
}
.hero-aurora i:nth-child(2) {
  right: -22%; top: -8%; width: 58%; height: 92%;
  background: radial-gradient(closest-side, rgba(45, 125, 235, 0.88), rgba(45, 125, 235, 0.38) 55%, rgba(45, 125, 235, 0));
  animation-name: halo-2; animation-duration: 29s;
}
.hero-aurora i:nth-child(3) {
  left: -14%; bottom: -46%; width: 60%; height: 88%;
  background: radial-gradient(closest-side, rgba(80, 150, 245, 0.84), rgba(80, 150, 245, 0.36) 55%, rgba(80, 150, 245, 0));
  animation-name: halo-3; animation-duration: 33s;
}
.hero-aurora i:nth-child(4) {
  right: -8%; bottom: -52%; width: 54%; height: 86%;
  background: radial-gradient(closest-side, rgba(30, 107, 214, 0.82), rgba(30, 107, 214, 0.34) 55%, rgba(30, 107, 214, 0));
  animation-name: halo-4; animation-duration: 26s;
}
@keyframes halo-1 { from { transform: translate3d(0, 0, 0) rotate(-28deg) scale(1); } to { transform: translate3d(8%, 10%, 0) rotate(-18deg) scale(1.16); } }
@keyframes halo-2 { from { transform: translate3d(0, 0, 0) rotate(24deg) scale(1.05); } to { transform: translate3d(-9%, 8%, 0) rotate(34deg) scale(0.92); } }
@keyframes halo-3 { from { transform: translate3d(0, 0, 0) rotate(18deg) scale(0.95); } to { transform: translate3d(10%, -8%, 0) rotate(8deg) scale(1.12); } }
@keyframes halo-4 { from { transform: translate3d(0, 0, 0) rotate(-22deg) scale(1.1); } to { transform: translate3d(-8%, -10%, 0) rotate(-34deg) scale(0.96); } }

/* voile clair derrière le texte, pour le contraste */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(58% 44% at 50% 30%, rgba(252, 253, 254, 0.94) 0%, rgba(252, 253, 254, 0.7) 45%, rgba(252, 253, 254, 0) 78%);
}

.hero-copy { display: flex; flex-direction: column; align-items: center; text-align: center; max-width: 1040px; }

.eyebrow { margin-bottom: 16px; font-size: 15px; font-weight: 600; letter-spacing: -0.01em; color: var(--accent); }

h1 {
  max-width: 12.2em;
  font-size: clamp(2.75rem, 5.6vw + 0.5rem, 5.25rem);
  line-height: 1.03; letter-spacing: -0.034em;
  text-wrap: balance;
}
html.js h1[data-blur-text]:not(.is-split) { opacity: 0; }
h1 .w {
  display: inline-block; opacity: 0; filter: blur(14px); transform: translateY(0.28em);
  animation: word-in 1s var(--ease-out) forwards;
  animation-delay: calc(0.18s + var(--i) * 0.075s);
}
@keyframes word-in { to { opacity: 1; filter: blur(0); transform: none; } }

.hero-sub {
  margin-top: 20px; max-width: 33em;
  font-size: clamp(1.0625rem, 0.55vw + 0.95rem, 1.3125rem);
  line-height: 1.38; letter-spacing: -0.012em; color: var(--ink-2);
  text-wrap: pretty;
}
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 26px; margin-top: 26px; }
.hero-note { margin-top: 14px; font-size: 14px; letter-spacing: -0.008em; color: var(--ink-3); }

[data-enter] { animation: enter 1s var(--ease-out) both; }
[data-enter="1"] { animation-delay: 0.1s; }
[data-enter="2"] { animation-delay: 0.62s; }
[data-enter="3"] { animation-delay: 0.74s; }
[data-enter="4"] { animation-delay: 0.84s; }
[data-enter="5"] { animation-delay: 0.98s; }
@keyframes enter { from { opacity: 0; transform: translateY(20px); } }

/* --- La scène : question, exemples, réponses --- */

.stage {
  width: min(1010px, 100%);
  margin-top: clamp(24px, 3.6vh, 36px);
  display: flex; flex-direction: column; align-items: center; gap: 14px;
}

.ask {
  display: flex; align-items: center; gap: 12px;
  width: min(760px, 100%); min-height: 64px;
  padding: 10px 10px 10px 22px; border-radius: 32px;
  transition: box-shadow var(--t-2) var(--ease-out);
}
.ask:focus-within {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95), inset 0 0 0 1px rgba(255, 255, 255, 0.55), 0 0 0 1px rgba(30, 107, 214, 0.5), 0 0 0 5px rgba(30, 107, 214, 0.16), 0 24px 50px -24px rgba(16, 58, 112, 0.38);
}
.ask-spark { font-size: 22px; color: var(--accent); transition: transform 0.6s var(--ease-spring); }
.ask.is-thinking .ask-spark { animation: spark 0.9s ease-in-out infinite; }
@keyframes spark { 50% { transform: scale(1.25) rotate(18deg); opacity: 0.6; } }

.ask-input {
  flex: 1; min-width: 0; height: 26px; padding: 0; margin: 0;
  border: 0; outline: 0; resize: none; overflow: hidden; background: none;
  font: inherit; font-size: 18px; line-height: 26px; letter-spacing: -0.016em; color: var(--ink);
}
.ask-go {
  flex: none; display: grid; place-items: center;
  width: 44px; height: 44px; border: 0; border-radius: 50%;
  background: var(--ink); color: #fff; font-size: 18px; cursor: pointer;
  transition: background-color var(--t-1) ease, transform var(--t-1) var(--ease-out);
}
.ask-go:hover { background: var(--accent); }
.ask-go:active { transform: scale(0.94); }

.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.chip {
  height: 36px; padding: 0 16px; border: 0; border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.78); box-shadow: inset 0 0 0 1px rgba(10, 26, 43, 0.11);
  font-size: 14px; font-weight: 500; letter-spacing: -0.01em; color: var(--ink-2); cursor: pointer;
  transition: background-color var(--t-1) ease, color var(--t-1) ease, box-shadow var(--t-1) ease, transform var(--t-1) var(--ease-out);
}
.chip:hover { color: var(--ink); box-shadow: inset 0 0 0 1px rgba(10, 26, 43, 0.22); }
.chip:active { transform: scale(0.97); }
.chip.is-active { background: var(--ink); color: #fff; box-shadow: none; }

.answers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; width: 100%; margin-top: 6px; }
.answer {
  display: flex; gap: 12px; padding: 16px 16px 15px; border-radius: 22px; text-align: left;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.8), 0 0 0 1px rgba(10, 26, 43, 0.05), 0 22px 44px -26px rgba(16, 58, 112, 0.42);
}
.answer-body { min-width: 0; }
.answer-name { font-size: 16px; font-weight: 600; letter-spacing: -0.015em; }
.answer-role { margin-top: 1px; font-size: 13px; line-height: 1.35; letter-spacing: -0.005em; color: var(--ink-2); }
.answer-why { margin-top: 10px; font-size: 14px; line-height: 1.38; letter-spacing: -0.01em; }
.answer-src {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 11px;
  padding: 4px 10px 4px 8px; border-radius: var(--r-pill);
  background: var(--accent-soft); color: var(--accent-ink);
  font-size: 12.5px; font-weight: 500; letter-spacing: 0;
}
.answer-src .ic { font-size: 14px; }

html.js .answer { opacity: 0; transform: translateY(14px) scale(0.985); }
html.js .answers.is-in .answer {
  opacity: 1; transform: none;
  transition: opacity 0.55s var(--ease-out) calc(var(--i, 0) * 0.09s), transform 0.75s var(--ease-out) calc(var(--i, 0) * 0.09s);
}
html.js .answers.fly .answer { transform: none; }
html.js .answers.fly .avatar { opacity: 0; transition: opacity 0.2s ease; }
html.js .answers.fly .avatar.landed { opacity: 1; }

.stage-note { font-size: 13px; letter-spacing: -0.005em; color: var(--ink-3); }

/* --- Pastilles de contacts, de part et d'autre --- */

.orbit { position: absolute; inset: 0; z-index: -2; pointer-events: none; }
.node {
  position: absolute; left: var(--x); top: var(--y);
  width: var(--s); height: var(--s); margin: calc(var(--s) / -2) 0 0 calc(var(--s) / -2);
  translate: calc(var(--px, 0) * var(--k) * 16px) calc(var(--py, 0) * var(--k) * 12px);
  transition: translate 0.9s var(--ease-out), opacity 0.4s ease;
  animation: drift var(--d) ease-in-out infinite alternate;
  animation-delay: calc(var(--i) * -1.7s);
}
/* Pastille simple : un disque blanc, un filet, une ombre légère. Ni dégradé, ni reflet, ni flou. */
.node-i {
  display: grid; place-items: center; width: 100%; height: 100%; border-radius: 50%;
  font-size: calc(var(--s) * 0.31); font-weight: 600; letter-spacing: 0; color: var(--accent-ink);
  background: #fff;
  box-shadow: 0 0 0 1px rgba(16, 58, 112, 0.08), 0 8px 20px -10px rgba(16, 58, 112, 0.4);
  opacity: 0; transform: scale(0.6);
  animation: node-in 1.1s var(--ease-spring) forwards;
  animation-delay: calc(0.9s + var(--i) * 0.08s);
  transition: box-shadow 0.5s var(--ease-out);
}
.node.org .node-i { border-radius: 30%; }
.node.is-hit .node-i { box-shadow: 0 0 0 2px var(--accent), 0 8px 20px -10px rgba(16, 58, 112, 0.4); }
.node.is-away { opacity: 0.22; }
@keyframes node-in { to { opacity: var(--o, 1); transform: none; } }
@keyframes drift {
  from { transform: translate3d(0, -7px, 0); }
  to { transform: translate3d(5px, 9px, 0); }
}
.node-ghost {
  position: absolute; z-index: 5; display: grid; place-items: center; border-radius: 50%; pointer-events: none;
  font-weight: 600; letter-spacing: 0; color: var(--accent-ink);
  background: #fff;
  box-shadow: 0 0 0 1px rgba(16, 58, 112, 0.08), 0 10px 22px -10px rgba(16, 58, 112, 0.45);
  will-change: transform;
}

/* Portraits des contacts fictifs : une tête de Memoji posée sur le disque, à la place des initiales.
   Les initiales restent dans le HTML (lecteurs d'écran, image absente) mais ne s'affichent plus.
   Ce bloc doit rester après .avatar, .node-i et .node-ghost, dont il complète le fond. */
[data-av] {
  background-repeat: no-repeat; background-position: 54% 58%; background-size: 96%;
  color: transparent; overflow: hidden; -webkit-user-select: none; user-select: none;
}
[data-av="hr"] { background-image: url("../assets/avatars/hr.webp"); }
[data-av="cm"] { background-image: url("../assets/avatars/cm.webp"); }
[data-av="sv"] { background-image: url("../assets/avatars/sv.webp"); }
[data-av="ll"] { background-image: url("../assets/avatars/ll.webp"); }
[data-av="nm"] { background-image: url("../assets/avatars/nm.webp"); }
[data-av="jf"] { background-image: url("../assets/avatars/jf.webp"); }
[data-av="bk"] { background-image: url("../assets/avatars/bk.webp"); }
[data-av="ad"] { background-image: url("../assets/avatars/ad.webp"); }
[data-av="tg"] { background-image: url("../assets/avatars/tg.webp"); }

/* ==========================================================================
   L'essentiel
   ========================================================================== */

.facts { padding: 8px 0 0; }
.facts-list {
  width: var(--wrap); margin: 0 auto; padding-top: 30px;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px;
  border-top: 1px solid var(--line);
}
.facts-list li { display: flex; align-items: flex-start; gap: 12px; }
.facts-list p { font-size: 15px; line-height: 1.4; letter-spacing: -0.012em; color: var(--ink-2); }
.facts-list strong { font-weight: 600; color: var(--ink); }

/* ==========================================================================
   Le constat
   ========================================================================== */

.manifesto { padding: clamp(104px, 18vh, 220px) 24px clamp(96px, 16vh, 200px); }
.manifesto-text, .manifesto-end {
  width: min(1040px, 100%); margin-inline: auto;
  font-size: clamp(1.75rem, 3.3vw + 0.6rem, 3.5rem);
  line-height: 1.12; letter-spacing: -0.03em; font-weight: 600;
  text-wrap: pretty;
}
html.js .manifesto-text .w { color: var(--ink-faint); transition: color 0.35s ease; }
html.js .manifesto-text .w.on { color: var(--ink); }
.manifesto-end { margin-top: 0.55em; color: var(--accent); }

/* ==========================================================================
   Fonctionnement
   ========================================================================== */

.how {
  padding: clamp(80px, 13vh, 150px) 0 clamp(40px, 7vh, 80px); background: var(--bg-2); border-radius: var(--r-xl) var(--r-xl) 0 0;
  /* Fond de la scène animée : une surface bleutée calme et un halo flou en bas à droite (la lumière
     de l'astérisque, sans les stries), pour que les cartes blanches qui bougent restent le sujet. */
  --stage-bg:
    radial-gradient(85% 70% at 94% 110%, rgba(30, 107, 214, 0.24) 0%, rgba(30, 107, 214, 0) 62%),
    radial-gradient(75% 60% at 4% -10%, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0) 64%),
    linear-gradient(165deg, #eef4fb 0%, #e2ebf7 100%);
  --stage-ring: 0 0 0 1px rgba(16, 58, 112, 0.07), 0 40px 80px -50px rgba(16, 58, 112, 0.45);
}

.how-grid {
  width: var(--wrap); margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 96px); align-items: start;
}
.how-stage { grid-column: 2; grid-row: 1; position: sticky; top: max(92px, calc(50vh - 290px)); }
.how-steps { grid-column: 1; grid-row: 1; }

.how-stage-inner {
  position: relative; height: min(560px, 68vh); overflow: hidden;
  border-radius: var(--r-lg);
  background: var(--stage-bg);
  box-shadow: var(--stage-ring);
}
.how-caption { margin-top: 12px; font-size: 13px; color: var(--ink-3); text-align: center; }

.how-step {
  min-height: 74vh; display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
  opacity: 0.3; transition: opacity 0.6s var(--ease-out);
}
.how-step.is-active { opacity: 1; }
.how-step:first-child { min-height: 60vh; justify-content: flex-start; padding-top: 6vh; }
.how-step h3 { margin-top: 22px; font-size: clamp(1.75rem, 2.2vw + 0.8rem, 2.5rem); line-height: 1.1; letter-spacing: -0.028em; }
.how-step p { margin-top: 14px; max-width: 27em; font-size: clamp(1.0625rem, 0.45vw + 0.98rem, 1.25rem); line-height: 1.42; letter-spacing: -0.012em; color: var(--ink-2); }
.how-step .link-arrow { margin-top: 22px; font-size: 17px; }

/* Logos officiels des sources : marques de leurs propriétaires, affichées pour indiquer la compatibilité */
.sources { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; width: min(100%, 472px); margin-top: 26px; }
.sources li {
  display: grid; grid-template-rows: 40px auto; justify-items: center; align-items: center; gap: 10px;
  padding: 18px 6px 13px; border-radius: var(--r-md);
  background: #fff; box-shadow: 0 0 0 1px var(--line), 0 16px 28px -24px rgba(16, 58, 112, 0.55);
  font-size: 13px; font-weight: 500; letter-spacing: -0.005em; color: var(--ink-2);
  transition: transform var(--t-2) var(--ease-out), box-shadow var(--t-2) var(--ease-out);
}
.sources img { object-fit: contain; }
@media (hover: hover) {
  .sources li:hover { transform: translateY(-3px); box-shadow: 0 0 0 1px rgba(30, 107, 214, 0.28), 0 22px 34px -24px rgba(16, 58, 112, 0.7); }
}
.how-step .sources-note { margin-top: 14px; font-size: 13.5px; letter-spacing: -0.005em; color: var(--ink-3); }

html.js .sources:not(.in) li { opacity: 0; }
html.js .sources.in li { animation: tile-in 0.7s var(--ease-out) backwards; }
html.js .sources.in li:nth-child(2) { animation-delay: 0.06s; }
html.js .sources.in li:nth-child(3) { animation-delay: 0.12s; }
html.js .sources.in li:nth-child(4) { animation-delay: 0.18s; }
html.js .sources.in li:nth-child(5) { animation-delay: 0.24s; }
html.js .sources.in li:nth-child(6) { animation-delay: 0.3s; }
html.js .sources.in li:nth-child(7) { animation-delay: 0.36s; }
html.js .sources.in li:nth-child(8) { animation-delay: 0.42s; }
@keyframes tile-in { from { opacity: 0; transform: translateY(14px) scale(0.94); } }

/* --- Scènes --- */

.scene {
  position: absolute; inset: 0; display: grid; place-items: center; padding: 28px;
  opacity: 0; transform: translateY(18px) scale(0.98); pointer-events: none;
  transition: opacity 0.5s var(--ease-out), transform 0.7s var(--ease-out);
}
.scene.is-active { opacity: 1; transform: none; }

/* Scène 1 : le mail est lu, le texte s'efface, la signature devient une fiche */
.scene-read { align-content: center; gap: 0; }
.mail {
  position: relative; width: min(360px, 100%); padding: 18px 20px 18px; border-radius: 20px;
  background: #fff; box-shadow: 0 0 0 1px var(--line), 0 24px 44px -28px rgba(16, 58, 112, 0.4);
}
.mail-head { display: flex; align-items: center; gap: 10px; }
.mail-from { font-size: 15px; font-weight: 600; letter-spacing: -0.012em; }
.mail-meta { font-size: 12.5px; color: var(--ink-3); letter-spacing: 0; }
.mail-body { display: grid; gap: 9px; margin-top: 16px; }
.mail-body i { display: block; height: 9px; border-radius: 5px; background: #dfe6ee; }
.mail-body i:nth-child(1) { width: 92%; }
.mail-body i:nth-child(2) { width: 100%; }
.mail-body i:nth-child(3) { width: 84%; }
.mail-body i:nth-child(4) { width: 96%; }
.mail-body i:nth-child(5) { width: 58%; }
.mail-sig { position: relative; display: grid; gap: 2px; margin-top: 16px; padding: 10px 12px; border-radius: 12px; font-size: 13.5px; line-height: 1.4; letter-spacing: -0.005em; color: var(--ink-2); }
.mail-sig span:first-child { font-weight: 600; color: var(--ink); }
.mail-flag {
  position: absolute; top: 78px; left: 50%; translate: -50% 0;
  padding: 5px 12px; border-radius: var(--r-pill); background: var(--ink); color: #fff;
  font-size: 12.5px; font-weight: 500; letter-spacing: 0; white-space: nowrap; opacity: 0;
}
.fiche {
  display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; align-items: center;
  width: min(360px, 100%); margin-top: 14px; padding: 14px 16px; border-radius: 20px;
  background: #fff; box-shadow: 0 0 0 1px rgba(30, 107, 214, 0.35), 0 0 0 5px rgba(30, 107, 214, 0.1), 0 24px 44px -26px rgba(16, 58, 112, 0.5);
}
.fiche .fiche-src { grid-column: 1 / -1; justify-self: start; margin-top: 8px; }

.scene-read.is-active .mail-body i { animation: discard 9s var(--ease-out) infinite; }
.scene-read.is-active .mail-body i:nth-child(2) { animation-delay: 0.08s; }
.scene-read.is-active .mail-body i:nth-child(3) { animation-delay: 0.16s; }
.scene-read.is-active .mail-body i:nth-child(4) { animation-delay: 0.24s; }
.scene-read.is-active .mail-body i:nth-child(5) { animation-delay: 0.32s; }
.scene-read.is-active .mail-flag { animation: flag 9s var(--ease-out) infinite; }
.scene-read.is-active .mail-sig { animation: sig 9s var(--ease-out) infinite; }
.scene-read.is-active .fiche { animation: fiche 9s var(--ease-out) infinite; }
@keyframes discard {
  0%, 14% { opacity: 1; filter: blur(0); transform: none; }
  28%, 92% { opacity: 0.12; filter: blur(5px); transform: translateY(-2px); }
  100% { opacity: 1; filter: blur(0); transform: none; }
}
@keyframes flag {
  0%, 22% { opacity: 0; transform: translateY(6px) scale(0.94); }
  30%, 90% { opacity: 1; transform: none; }
  96%, 100% { opacity: 0; transform: none; }
}
@keyframes sig {
  0%, 34% { background: transparent; box-shadow: none; }
  44%, 90% { background: var(--accent-soft); box-shadow: inset 0 0 0 1px rgba(30, 107, 214, 0.3); }
  100% { background: transparent; box-shadow: none; }
}
@keyframes fiche {
  0%, 46% { opacity: 0; transform: translateY(-26px) scale(0.94); }
  58%, 92% { opacity: 1; transform: none; }
  100% { opacity: 0; transform: translateY(8px); }
}

/* Scène 2 : valider d'un geste */
.scene-verify { align-content: center; gap: 26px; }
.deck { position: relative; width: min(320px, 100%); height: 200px; }
.card {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; gap: 6px;
  padding: 24px 26px; border-radius: 24px; background: #fff;
  box-shadow: 0 0 0 1px var(--line), 0 26px 46px -28px rgba(16, 58, 112, 0.45);
  transform-origin: 50% 120%;
}
.card-q { font-size: 13.5px; font-weight: 600; letter-spacing: 0; color: var(--accent); }
.card-a { font-size: 22px; font-weight: 600; line-height: 1.15; letter-spacing: -0.025em; }
.card-hint { font-size: 14px; color: var(--ink-2); }
.card-2 { transform: translateY(14px) scale(0.94); }
.card-3 { transform: translateY(28px) scale(0.88); }
.deck-actions { display: flex; align-items: center; gap: 22px; }
.deck-count { font-size: 13.5px; font-weight: 500; letter-spacing: 0; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.deck-btn { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; font-size: 22px; background: #fff; box-shadow: 0 0 0 1px var(--line), 0 10px 20px -12px rgba(16, 58, 112, 0.4); color: var(--ink-3); }
.deck-btn.yes { background: var(--accent); color: #fff; box-shadow: 0 12px 22px -10px rgba(30, 107, 214, 0.7); }

.scene-verify.is-active .card-1 { animation: swipe-1 8s var(--ease-out) infinite; }
.scene-verify.is-active .card-2 { animation: swipe-2 8s var(--ease-out) infinite; }
.scene-verify.is-active .card-3 { animation: swipe-3 8s var(--ease-out) infinite; }
.scene-verify.is-active .deck-btn.yes { animation: press 8s var(--ease-out) infinite; }
@keyframes swipe-1 {
  0%, 18% { transform: none; opacity: 1; }
  30%, 94% { transform: translateX(130%) rotate(16deg); opacity: 0; }
  100% { transform: none; opacity: 1; }
}
@keyframes swipe-2 {
  0%, 20% { transform: translateY(14px) scale(0.94); opacity: 1; }
  32%, 50% { transform: none; opacity: 1; }
  62%, 94% { transform: translateX(130%) rotate(16deg); opacity: 0; }
  100% { transform: translateY(14px) scale(0.94); opacity: 1; }
}
@keyframes swipe-3 {
  0%, 20% { transform: translateY(28px) scale(0.88); }
  32%, 52% { transform: translateY(14px) scale(0.94); }
  64%, 94% { transform: none; }
  100% { transform: translateY(28px) scale(0.88); }
}
@keyframes press {
  0%, 14%, 24%, 46%, 56%, 100% { transform: none; }
  18%, 50% { transform: scale(0.86); }
}

/* Scène 3 : poser sa question */
.scene-ask { align-content: center; justify-items: stretch; gap: 14px; }
.scene-ask > * { width: min(380px, 100%); justify-self: center; }
.bubble {
  justify-self: end; padding: 12px 18px; border-radius: 22px 22px 6px 22px;
  background: var(--ink); color: #fff; font-size: 16px; line-height: 1.35; letter-spacing: -0.012em;
}
.scene-ask .bubble { width: auto; max-width: min(320px, 90%); margin-left: auto; margin-right: max(0px, calc((100% - 380px) / 2)); }
.reply { padding: 16px 18px; border-radius: 22px 22px 22px 6px; background: #fff; box-shadow: 0 0 0 1px var(--line), 0 26px 46px -28px rgba(16, 58, 112, 0.45); }
.reply-row { display: flex; align-items: center; gap: 12px; }
.reply-why { margin-top: 12px; font-size: 15px; line-height: 1.4; letter-spacing: -0.012em; }
.reply-src { margin-top: 12px; }
.reply-src blockquote {
  margin: 10px 0 0; padding: 10px 14px; border-left: 2px solid var(--accent); border-radius: 0 12px 12px 0;
  background: var(--accent-soft); font-size: 13.5px; line-height: 1.45; letter-spacing: -0.005em; color: var(--ink-2);
}
.scene-ask.is-active .bubble { animation: pop-in 8s var(--ease-out) infinite; }
.scene-ask.is-active .reply { animation: reply-in 8s var(--ease-out) infinite; }
.scene-ask.is-active .reply-src blockquote { animation: quote-in 8s var(--ease-out) infinite; }
@keyframes pop-in {
  0% { opacity: 0; transform: translateY(12px) scale(0.96); }
  8%, 94% { opacity: 1; transform: none; }
  100% { opacity: 0; transform: none; }
}
@keyframes reply-in {
  0%, 16% { opacity: 0; transform: translateY(14px) scale(0.97); }
  28%, 94% { opacity: 1; transform: none; }
  100% { opacity: 0; transform: none; }
}
@keyframes quote-in {
  0%, 40% { opacity: 0; transform: translateY(-6px); }
  52%, 94% { opacity: 1; transform: none; }
  100% { opacity: 0; }
}

/* ==========================================================================
   Le produit
   ========================================================================== */

.product { padding: clamp(72px, 12vh, 140px) 0 clamp(88px, 14vh, 160px); background: var(--bg-2); }

.bento { width: var(--wrap); margin: 0 auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }

.tile { position: relative; isolation: isolate; overflow: hidden; border-radius: var(--r-lg); padding: clamp(26px, 3vw, 40px); background: var(--surface); box-shadow: 0 0 0 1px var(--line); }
.tile[data-spot]::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0;
  background: radial-gradient(460px circle at var(--mx, 50%) var(--my, 50%), rgba(30, 107, 214, 0.1), transparent 62%);
  transition: opacity 0.5s ease;
}
@media (hover: hover) { .tile[data-spot]:hover::after { opacity: 1; } }

.tile h3 { font-size: clamp(1.75rem, 1.8vw + 1rem, 2.5rem); line-height: 1.08; letter-spacing: -0.03em; }
.tile-copy p { margin-top: 14px; max-width: 22em; font-size: 17px; line-height: 1.42; color: var(--ink-2); }
.tile-lead { max-width: 24em; font-size: clamp(1.125rem, 0.5vw + 1rem, 1.3125rem); line-height: 1.34; letter-spacing: -0.016em; color: var(--ink-2); }
.tile-lead strong { font-weight: 600; color: var(--accent); }
.tile-note { position: absolute; left: clamp(26px, 3vw, 40px); bottom: 22px; font-size: 12.5px; letter-spacing: 0; color: var(--ink-3); }

/* Tuile large : la cartographie */
.tile-graph { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.6fr); gap: 20px; min-height: 540px; padding-bottom: 56px; }
.tile-graph .tile-copy { display: flex; flex-direction: column; justify-content: space-between; padding-bottom: 14px; }
.graph { position: relative; min-height: 420px; }
.graph-svg { width: 100%; height: 100%; overflow: visible; }

.g-edge { stroke: #c9d6e4; stroke-width: 1.25; transition: stroke 0.5s ease, stroke-width 0.5s ease, opacity 0.5s ease; }
.g-edge.on { stroke: var(--accent); stroke-width: 1.75; stroke-dasharray: 3 7; animation: flow 1.6s linear infinite; }
.g-edge.dim { opacity: 0.35; }
@keyframes flow { to { stroke-dashoffset: -20; } }

.g-node { cursor: pointer; outline: none; transition: opacity 0.5s ease; }
.g-node .g-shape { fill: var(--accent-soft); stroke: rgba(30, 107, 214, 0.16); stroke-width: 1; transition: stroke 0.4s ease, stroke-width 0.4s ease; }
.g-node .g-ring { fill: none; stroke: var(--accent); stroke-width: 0; opacity: 0.16; transition: stroke-width 0.5s var(--ease-out); }
.g-node .g-face { pointer-events: none; }
.g-node .g-init { font-size: 13px; font-weight: 600; letter-spacing: 0; fill: var(--accent-ink); text-anchor: middle; dominant-baseline: central; pointer-events: none; }
.g-node .g-label { font-size: 12px; letter-spacing: -0.005em; fill: var(--ink-2); text-anchor: middle; pointer-events: none; transition: fill 0.4s ease; paint-order: stroke; stroke: #fff; stroke-width: 5px; stroke-linejoin: round; }
.g-node.is-anchor { cursor: default; }
.g-node.is-anchor .g-shape { fill: var(--ink); stroke: none; }
.g-node.is-anchor .g-init { fill: #fff; }
.g-node.sel .g-shape { stroke: var(--accent); stroke-width: 2; }
.g-node.sel .g-ring { stroke-width: 14; }
.g-node.sel .g-label { fill: var(--ink); font-weight: 600; }
.g-node.dim { opacity: 0.4; }
.g-node:focus-visible .g-shape { stroke: var(--accent); stroke-width: 2.5; }
@media (hover: hover) { .g-node:not(.is-anchor):hover .g-shape { stroke: var(--accent); } }

.graph-detail {
  position: absolute; right: 0; bottom: 0; width: min(292px, 62%);
  padding: 16px 18px 18px; border-radius: 22px;
  background: rgba(255, 255, 255, 0.86);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  backdrop-filter: saturate(180%) blur(18px);
  box-shadow: 0 0 0 1px rgba(10, 26, 43, 0.07), 0 26px 50px -28px rgba(16, 58, 112, 0.5);
}
.graph-detail.swap { animation: swap 0.55s var(--ease-out); }
@keyframes swap { from { opacity: 0.2; transform: translateY(8px); } }
.graph-detail-head { display: flex; align-items: center; gap: 12px; }
.graph-facts { margin: 14px 0 14px; display: grid; gap: 0; }
.graph-facts div { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-top: 1px solid var(--line); font-size: 13.5px; letter-spacing: -0.005em; }
.graph-facts dt { color: var(--ink-2); }
.graph-facts dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }

/* Tuile : la source */
.tile-source { min-height: 440px; display: flex; flex-direction: column; justify-content: space-between; gap: 32px; }
.tile-source::before {
  /* la vitre couvre toute la hauteur de la carte, sans bord visible : elle est décalée vers la droite
     pour que le cœur de l'astérisque touche le bord, et se fond vers le blanc à gauche */
  content: ""; position: absolute; inset: 0 -20% 0 20%; z-index: -1;
  background: url("../assets/img/vitre-star.webp") 100% 14% / cover no-repeat;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, transparent 20%, #000 72%);
  mask-image: linear-gradient(to right, transparent 0%, transparent 20%, #000 72%);
}
.source-demo { width: min(340px, 100%); }
.fiche-src.big { padding: 7px 14px 7px 11px; font-size: 14px; }
.fiche-src.big .ic { font-size: 16px; }
.sig {
  display: grid; gap: 2px; margin: 12px 0 0; padding: 16px 18px; border-radius: 6px 20px 20px 20px;
  background: rgba(255, 255, 255, 0.9); box-shadow: 0 0 0 1px var(--line), 0 24px 44px -28px rgba(16, 58, 112, 0.45);
  font-size: 15px; line-height: 1.42; letter-spacing: -0.01em; color: var(--ink-2);
}
.sig span:first-child { font-weight: 600; color: var(--ink); }
.sig-note { margin-top: 12px; font-size: 13.5px; letter-spacing: -0.005em; color: var(--ink-3); }
html.js .source-demo .sig { opacity: 0; transform: translateY(-10px) scale(0.97); transform-origin: 0 0; }
html.js .source-demo.in .sig { opacity: 1; transform: none; transition: opacity 0.7s var(--ease-out) 0.45s, transform 0.9s var(--ease-spring) 0.45s; }

/* Tuile : des faits */
.tile-facts {
  min-height: 440px; display: flex; flex-direction: column; justify-content: space-between; gap: 32px;
  background: linear-gradient(155deg, #2b7be6 0%, #1e6bd6 38%, #114a9c 100%); color: #fff; box-shadow: none;
}
.tile-facts::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(60% 50% at 85% 0%, rgba(255, 255, 255, 0.28), transparent 70%);
}
.tile-facts .tile-lead { color: rgba(255, 255, 255, 0.8); }
.tile-facts .tile-lead strong { color: #fff; }
.tile-facts[data-spot]::after { background: radial-gradient(460px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, 0.16), transparent 62%); z-index: 0; }
.bigfacts { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, auto); justify-content: space-between; gap: 18px; margin: 0; }
.bigfacts div { display: flex; flex-direction: column; gap: 6px; }
.bigfacts dd { margin: 0; font-size: clamp(2.5rem, 3.6vw + 0.8rem, 4.25rem); font-weight: 600; line-height: 1; letter-spacing: -0.045em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.bigfacts dt { order: 2; max-width: 9em; font-size: 14px; line-height: 1.3; letter-spacing: -0.005em; color: rgba(255, 255, 255, 0.78); }

/* Et aussi */
.extras { width: var(--wrap); margin: 20px auto 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.extras li { display: flex; flex-direction: column; gap: 16px; padding: 24px; border-radius: 22px; background: rgba(10, 26, 43, 0.035); }
.extras p { font-size: 15px; line-height: 1.42; letter-spacing: -0.012em; color: var(--ink-2); }
.extras strong { font-weight: 600; color: var(--ink); }

/* ==========================================================================
   Confidentialité : le chapitre nuit
   ========================================================================== */

.trust { padding: 0 12px; background: linear-gradient(var(--bg-2) 0 38%, var(--bg) 38%); }
.trust-panel {
  position: relative; isolation: isolate; overflow: hidden;
  max-width: 1720px; margin: 0 auto;
  border-radius: var(--r-xl); background: #020306; color: var(--on-night);
  transform: scale(calc(0.93 + var(--p, 1) * 0.07)); transform-origin: 50% 30%;
  will-change: transform;
  --glass: 40%;      /* part du panneau réservée au verre, à droite */
  --trust-gap: 16px; /* même gouttière pour les cartes et pour les engagements */
}
/* Verre fumé aux lignes argentées. Deux colonnes garanties :
   - le verre occupe exactement --glass à droite (son bord est à 63 % de l'image, d'où la division par 0,37) ;
   - le contenu s'arrête 32 px avant, quelle que soit la largeur d'écran.
   Le fond du panneau reprend le noir de l'image (#020306), il n'y a donc aucune jointure. */
.trust-bg img { position: absolute; right: 0; bottom: 0; z-index: -2; width: calc(var(--glass) / 0.37); max-width: none; height: auto; }
.trust-inner {
  padding: clamp(80px, 14vh, 160px) calc(var(--glass) + 32px) clamp(72px, 12vh, 136px) max(24px, calc((100% - 1120px) / 2));
}
.trust h2 { font-size: clamp(2.75rem, 6vw + 0.5rem, 6rem); line-height: 1; letter-spacing: -0.036em; }
.trust .lead { max-width: 30em; margin-top: 22px; color: var(--on-night-2); }

.ledger { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--trust-gap); margin-top: clamp(40px, 6vh, 64px); }
.ledger-col {
  padding: 24px 26px 20px; border-radius: 24px;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.14);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
}
.ledger h3 { margin-bottom: 12px; font-size: 14px; letter-spacing: -0.005em; color: rgba(234, 242, 251, 0.62); }
.ledger li { display: flex; align-items: center; gap: 10px; padding: 7px 0; font-size: 17px; letter-spacing: -0.016em; }
.ledger .ic { font-size: 15px; }
.keep .ic { color: var(--accent-on-dark); }
.drop .ic { color: rgba(234, 242, 251, 0.42); }
.drop span { color: rgba(234, 242, 251, 0.62); background: linear-gradient(rgba(234, 242, 251, 0.7), rgba(234, 242, 251, 0.7)) no-repeat 0 56% / 0% 1.5px; }
html.js .ledger li { opacity: 0; transform: translateY(10px); }
html.js .ledger.in li { opacity: 1; transform: none; transition: opacity 0.6s var(--ease-out), transform 0.7s var(--ease-out); }
html.js .ledger.in li:nth-child(2) { transition-delay: 0.08s; }
html.js .ledger.in li:nth-child(3) { transition-delay: 0.16s; }
html.js .ledger.in li:nth-child(4) { transition-delay: 0.24s; }
.ledger.in .drop span { background-size: 100% 1.5px; transition: background-size 0.8s var(--ease-io) 0.7s; }
.ledger.in .drop li:nth-child(2) span { transition-delay: 0.85s; }
.ledger.in .drop li:nth-child(3) span { transition-delay: 1s; }

/* Même grille que les cartes : chaque engagement démarre au bord gauche de la carte qui le surmonte */
.pledges { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--trust-gap); margin: clamp(44px, 7vh, 72px) 0 30px; }
.pledges li { padding-right: 18px; }
.pledges h3 { font-size: 21px; letter-spacing: -0.02em; }
.pledges p { margin-top: 8px; font-size: 16px; line-height: 1.48; letter-spacing: -0.012em; color: var(--on-night-2); }

/* ==========================================================================
   Ce que Horkelis n'est pas
   ========================================================================== */

.nots { padding: clamp(104px, 17vh, 210px) 24px clamp(80px, 12vh, 150px); }
.nots-list { width: min(1120px, 100%); margin: 0 auto; }
.nots-list li {
  display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: clamp(16px, 4vw, 64px); align-items: center;
  padding: clamp(22px, 3.6vh, 38px) 0; border-top: 1px solid var(--line);
}
.not-big { font-size: clamp(2rem, 4.1vw + 0.4rem, 4.125rem); font-weight: 600; line-height: 1.06; letter-spacing: -0.034em; color: var(--ink); transition: color 0.8s ease 0.5s; }
.strike { background: linear-gradient(var(--accent), var(--accent)) no-repeat 0 55% / 0% 0.075em; -webkit-box-decoration-break: clone; box-decoration-break: clone; transition: background-size 0.9s var(--ease-io) 0.2s; }
.nots-list li.in .not-big, html:not(.js) .not-big { color: var(--ink-faint); }
.nots-list li.in .strike, html:not(.js) .strike { background-size: 100% 0.075em; }
.not-small { max-width: 25em; font-size: clamp(1.0625rem, 0.45vw + 0.98rem, 1.25rem); line-height: 1.42; letter-spacing: -0.012em; color: var(--ink-2); }
html.js .not-small { opacity: 0; transform: translateY(12px); }
html.js li.in .not-small { opacity: 1; transform: none; transition: opacity 0.8s var(--ease-out) 0.55s, transform 0.8s var(--ease-out) 0.55s; }
.nots-end {
  width: min(1120px, 100%); margin: clamp(44px, 8vh, 96px) auto 0;
  font-size: clamp(1.75rem, 3.3vw + 0.6rem, 3.5rem); font-weight: 600; line-height: 1.1; letter-spacing: -0.03em;
  text-wrap: balance;
}

/* ==========================================================================
   Pourquoi Horkelis existe
   ========================================================================== */

.letter { padding: clamp(80px, 13vh, 150px) 0; background: var(--bg-2); border-radius: var(--r-xl); margin-inline: 12px; }
.letter-grid { width: var(--wrap); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 390px) minmax(0, 580px); justify-content: center; gap: clamp(30px, 6vw, 100px); align-items: center; }

/* Illustration animée fournie par Doriann (horkelis-reseau-anime.html) : trois e-mails arrivent,
   un trait relie leur signature à une personne, puis à son réseau. Elle est posée directement sur
   le panneau, sans carte, et se joue quand elle entre dans l'écran. Classes préfixées « ra- »
   pour ne pas croiser celles de la page ; aucun style en ligne (CSP). */
.letter-visual { margin: 0; }
.letter-visual svg { width: 100%; height: auto; overflow: visible; }
.ra-line { stroke-dasharray: 1; }
html.js .letter-visual:not(.in) .ra-mail,
html.js .letter-visual:not(.in) .ra-person,
html.js .letter-visual:not(.in) .ra-branch { opacity: 0; }
html.js .letter-visual:not(.in) .ra-line { stroke-dashoffset: 1; }
.letter-visual.in .ra-mail, .letter-visual.in .ra-person { animation: ra-appear 0.52s cubic-bezier(0.22, 0.7, 0.25, 1) 1.85s both; }
.letter-visual.in .ra-mail-1 { animation-delay: 0s; }
.letter-visual.in .ra-mail-2 { animation-delay: 0.13s; }
.letter-visual.in .ra-mail-3 { animation-delay: 0.27s; }
.letter-visual.in .ra-line { animation: ra-draw 1.2s ease-in-out 0.64s both; }
.letter-visual.in .ra-branch { animation: ra-appear 0.55s ease 2.08s both; }
@keyframes ra-appear { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
@keyframes ra-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
.letter-body p { margin-top: 20px; max-width: 29em; font-size: clamp(1.125rem, 0.7vw + 1rem, 1.5rem); line-height: 1.42; letter-spacing: -0.018em; }
.sign { display: flex; align-items: center; gap: 14px; margin-top: 34px; }
.sign p { margin: 0; display: grid; font-size: 16px; line-height: 1.35; letter-spacing: -0.012em; }
.sign strong { font-weight: 600; }
.sign span { color: var(--ink-2); font-size: 14px; }


/* ==========================================================================
   Tarifs
   ========================================================================== */

.pricing { padding: clamp(96px, 15vh, 180px) 0 clamp(72px, 11vh, 130px); }

.switch { position: relative; display: inline-grid; grid-template-columns: 1fr 1fr; margin-top: 30px; padding: 4px; border-radius: var(--r-pill); background: rgba(10, 26, 43, 0.06); }
.switch button {
  position: relative; z-index: 1; height: 40px; padding: 0 24px; border: 0; border-radius: var(--r-pill); background: none;
  font-size: 15px; font-weight: 500; letter-spacing: -0.01em; color: var(--ink-2); cursor: pointer; transition: color var(--t-2) ease;
}
.switch button[aria-pressed="true"] { color: var(--ink); }
.switch-thumb {
  position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: var(--r-pill);
  background: #fff; box-shadow: 0 1px 2px rgba(10, 26, 43, 0.12), 0 6px 14px -6px rgba(10, 26, 43, 0.22);
  transition: transform 0.5s var(--ease-spring);
}
/* « Annuel » est le premier bouton et le choix par défaut : la pastille glisse à droite pour « Mensuel ». */
.switch[data-period="month"] .switch-thumb { transform: translateX(100%); }

.plans { width: var(--wrap); margin: 0 auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.plan {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column;
  padding: clamp(28px, 3vw, 40px); border-radius: var(--r-lg);
  background: var(--surface); box-shadow: 0 0 0 1px var(--line), 0 40px 70px -50px rgba(16, 58, 112, 0.4);
}
.plan[data-spot]::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0;
  background: radial-gradient(460px circle at var(--mx, 50%) var(--my, 50%), rgba(30, 107, 214, 0.09), transparent 62%);
  transition: opacity 0.5s ease;
}
@media (hover: hover) { .plan[data-spot]:hover::after { opacity: 1; } }
.plan h3 { font-size: 24px; letter-spacing: -0.025em; }
.plan-for { margin-top: 6px; font-size: 16px; line-height: 1.4; letter-spacing: -0.012em; color: var(--ink-2); }
.price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 8px; margin-top: 28px; }
.cur { font-size: 19px; font-weight: 600; letter-spacing: -0.01em; }
.amount { font-size: clamp(3.5rem, 4.6vw + 1rem, 5rem); font-weight: 600; line-height: 1; letter-spacing: -0.05em; font-variant-numeric: tabular-nums; }
.per { font-size: 15px; letter-spacing: -0.008em; color: var(--ink-2); }
.price-note { margin: 8px 0 26px; font-size: 14px; letter-spacing: -0.005em; color: var(--ink-3); }
.plan-list { display: grid; gap: 12px; margin-top: 28px; padding-top: 26px; border-top: 1px solid var(--line); }
.plan-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 16px; line-height: 1.4; letter-spacing: -0.012em; }
.plan-list .ic { margin-top: 0.22em; font-size: 15px; color: var(--accent); }

.plan-custom { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: space-between; gap: 24px 40px; flex-wrap: wrap; background: var(--bg-2); box-shadow: none; }
.plan-custom > div { flex: 1 1 320px; }
.plan-custom .plan-for { max-width: 30em; }
.price-sm { margin: 0; flex: none; }
.price-sm .amount { font-size: 2.25rem; letter-spacing: -0.04em; }
.pricing-foot { width: var(--wrap); margin: 26px auto 0; text-align: center; font-size: 14px; letter-spacing: -0.005em; color: var(--ink-3); }

/* ==========================================================================
   Questions
   ========================================================================== */

/* même blanc que la section Tarifs : plus de panneau gris, la section se fond dans la page */
.faq { padding: clamp(40px, 6vh, 72px) 0 clamp(80px, 13vh, 150px); background: var(--bg); }
.faq-grid { width: var(--wrap); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq-head { position: sticky; top: 112px; }
.faq-head a { color: var(--accent); text-decoration: none; }
.faq-head a:hover { text-decoration: underline; text-underline-offset: 3px; }

.faq-list details { border-top: 1px solid var(--line); }
.faq-list summary {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 22px 0; list-style: none; cursor: pointer;
  font-size: clamp(1.0625rem, 0.5vw + 1rem, 1.3125rem); font-weight: 600; letter-spacing: -0.02em;
  transition: color var(--t-1) ease;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary:hover { color: var(--accent); }
.faq-list summary::after {
  content: ""; flex: none; width: 28px; height: 28px; border-radius: 50%;
  background:
    linear-gradient(currentColor, currentColor) center / 12px 1.75px no-repeat,
    linear-gradient(currentColor, currentColor) center / 1.75px 12px no-repeat,
    rgba(10, 26, 43, 0.06);
  transition: transform 0.5s var(--ease-out);
}
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { max-width: 36em; padding-bottom: 26px; font-size: 17px; line-height: 1.5; letter-spacing: -0.014em; color: var(--ink-2); }

@supports (interpolate-size: allow-keywords) {
  :root { interpolate-size: allow-keywords; }
  .faq-list details::details-content { block-size: 0; overflow: clip; transition: block-size 0.5s var(--ease-out), content-visibility 0.5s allow-discrete; }
  .faq-list details[open]::details-content { block-size: auto; }
}

/* ==========================================================================
   Dernier pas
   ========================================================================== */

.closing { position: relative; isolation: isolate; overflow: clip; padding: clamp(130px, 22vh, 260px) 24px clamp(150px, 26vh, 300px); text-align: center; }
/* Même vitre striée que le hero, en miroir : l'astérisque passe à gauche et referme la page */
.closing-bg { position: absolute; inset: 0; pointer-events: none; }
.closing-bg {
  -webkit-mask-image: linear-gradient(transparent 0%, #000 22%, #000 80%, transparent 100%);
  mask-image: linear-gradient(transparent 0%, #000 22%, #000 80%, transparent 100%);
}
.closing-bg picture { width: 100%; height: 100%; }
.closing-bg img {
  width: 100%; height: 100%; object-fit: cover; object-position: 100% 50%;
  transform: translate3d(0, calc((1 - var(--p, 1)) * 60px), 0) scale(-1.06, 1.06); transform-origin: 50% 50%;
}
.closing::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(52% 40% at 50% 44%, rgba(252, 253, 254, 0.92) 0%, rgba(252, 253, 254, 0.6) 50%, rgba(252, 253, 254, 0) 80%);
}
.closing-bg { z-index: -2; }
.closing-inner { display: flex; flex-direction: column; align-items: center; }
.closing h2 { max-width: 13.5em; font-size: clamp(2.25rem, 5vw + 0.5rem, 5.25rem); line-height: 1.04; letter-spacing: -0.034em; }
.closing .btn { margin-top: 36px; }

/* ==========================================================================
   Pied de page, barre mobile, notes
   ========================================================================== */

/* Pied de page : panneau nuit aux coins hauts arrondis, halo bleu en tête, colonnes de liens,
   puis le mot « horkelis » en très grand qui se fond vers le bas (structure inspirée de remakeit.io). */
@property --spot { syntax: "<number>"; inherits: false; initial-value: 0; }

.footer-panel {
  position: relative; isolation: isolate; overflow: hidden;
  padding: clamp(60px, 10vh, 104px) 0 clamp(26px, 4vh, 40px);
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  background: #020306; color: var(--on-night);
}
.footer-panel::before {
  content: ""; position: absolute; inset: 0 0 auto 0; z-index: -1; height: 68%; pointer-events: none;
  background: radial-gradient(62% 100% at 50% 0%, rgba(30, 107, 214, 0.46) 0%, rgba(30, 107, 214, 0.16) 44%, rgba(30, 107, 214, 0) 76%);
}

.footer-top {
  width: var(--wrap); margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 2fr); gap: clamp(32px, 6vw, 104px); align-items: start;
}
.footer-brand .brand { font-size: 23px; color: var(--on-night); }
.footer-brand .brand-mark { width: 24px; height: 24px; color: var(--accent-on-dark); }
.footer-brand p { margin-top: 18px; max-width: 25em; font-size: 16px; line-height: 1.5; letter-spacing: -0.012em; color: var(--on-night-2); }
.footer-mail {
  display: inline-flex; align-items: center; gap: 9px; margin-top: 22px;
  font-size: 16px; font-weight: 500; letter-spacing: -0.012em; color: var(--on-night); text-decoration: none;
  transition: color var(--t-1) ease;
}
.footer-mail .ic { font-size: 19px; color: var(--accent-on-dark); }
.footer-mail:hover { color: var(--accent-on-dark); }

.footer-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px clamp(20px, 3vw, 48px); }
.footer-title { font-size: 19px; font-weight: 500; line-height: 1.25; letter-spacing: -0.02em; color: var(--accent-on-dark); }
.footer-cols ul { display: grid; gap: 11px; margin-top: 16px; }
.footer-cols a {
  font-size: 16px; letter-spacing: -0.012em; color: var(--on-night-2);
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; text-decoration-color: rgba(234, 242, 251, 0.26);
  transition: color var(--t-1) ease, text-decoration-color var(--t-1) ease;
}
.footer-cols a:hover { color: var(--on-night); text-decoration-color: currentColor; }

.footer-word {
  display: flex; justify-content: center;
  margin-top: clamp(52px, 10vh, 120px);
  font-size: min(27.6vw, 32rem); font-weight: 600; line-height: 0.92; letter-spacing: -0.055em; white-space: nowrap;
  color: transparent; cursor: default; -webkit-user-select: none; user-select: none;
  background:
    radial-gradient(30vw circle at var(--mx, 50%) var(--my, 50%), rgba(134, 188, 255, calc(var(--spot) * 0.9)), rgba(134, 188, 255, 0) 72%),
    linear-gradient(180deg, rgba(226, 238, 252, 0.5) 0%, rgba(226, 238, 252, 0.22) 46%, rgba(226, 238, 252, 0.03) 92%);
  -webkit-background-clip: text; background-clip: text;
  transition: --spot 0.7s var(--ease-out);
}
@media (hover: hover) { .footer-word:hover { --spot: 1; } }
html.js .footer-word { opacity: 0; transform: translateY(16%); }
html.js .footer-word.in { opacity: 1; transform: none; transition: opacity 1.4s var(--ease-out), transform 1.4s var(--ease-out), --spot 0.7s var(--ease-out); }

.footer-bottom {
  width: var(--wrap); margin: clamp(18px, 3vh, 34px) auto 0;
  display: grid; justify-items: center; gap: 5px; text-align: center;
  font-size: 13.5px; letter-spacing: -0.005em; color: rgba(234, 242, 251, 0.52);
}

.sticky-cta {
  display: none; position: fixed; z-index: var(--z-sticky); left: 0; right: 0; bottom: 0;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  background: rgba(252, 253, 254, 0.82);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  box-shadow: 0 -1px 0 var(--line);
  transform: translateY(110%); transition: transform 0.55s var(--ease-out);
}
.sticky-cta.is-on { transform: none; }

/* ==========================================================================
   Pages légales (conditions, confidentialité, mentions) : une colonne de lecture
   ========================================================================== */

.legal { width: min(760px, calc(100% - 48px)); margin: 0 auto; padding: clamp(120px, 18vh, 170px) 0 clamp(72px, 12vh, 120px); }
.legal h1 { font-size: clamp(2.25rem, 3.4vw + 1rem, 3.5rem); line-height: 1.07; letter-spacing: -0.028em; font-weight: 600; }
.legal h2 { margin: 48px 0 14px; padding-top: 28px; border-top: 1px solid rgba(10, 26, 43, 0.1); font-size: 1.375rem; line-height: 1.25; letter-spacing: -0.02em; font-weight: 600; }
.legal h3 { margin: 24px 0 8px; font-size: 1.0625rem; letter-spacing: -0.012em; font-weight: 600; }
.legal p, .legal li { max-width: none; font-size: 16px; line-height: 1.65; letter-spacing: -0.008em; color: var(--ink-2); }
.legal p + p { margin-top: 12px; }
.legal ul { margin: 10px 0 0; padding-left: 20px; list-style: disc; }
.legal li + li { margin-top: 8px; }
.legal strong { color: var(--ink); font-weight: 600; }
.legal a { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 3px; }
.legal .legal-meta { margin-top: 22px; font-size: 14px; color: var(--ink-3); }
.legal .legal-panel { margin-top: 34px; padding: 22px 25px; border-radius: 18px; background: var(--bg-2); }

/* ==========================================================================
   Se connecter (connexion.html) : deux tuiles. À gauche, le client saisit son email et son mot de passe ;
   à droite, celui qui n'a pas de compte part vers l'essai. js/connexion.js envoie la saisie à l'aiguillage
   de connexion (/connexion/entrer), qui renvoie l'adresse d'entrée de l'espace.
   ========================================================================== */

.signin { width: min(980px, calc(100% - 48px)); margin: 0 auto; padding: clamp(120px, 18vh, 170px) 0 clamp(72px, 12vh, 120px); }
.signin-head { text-align: center; }
.signin-head h1 { max-width: none; font-size: clamp(2.25rem, 3.4vw + 1rem, 3.5rem); line-height: 1.07; letter-spacing: -0.028em; }
.signin-head .lead { margin-inline: auto; text-wrap: balance; }

.signin-grid { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); gap: 20px; margin-top: clamp(36px, 6vh, 56px); }
.signin-card {
  display: flex; flex-direction: column;
  padding: clamp(26px, 3vw, 40px); border-radius: var(--r-lg);
  background: var(--surface); box-shadow: 0 0 0 1px var(--line), 0 40px 70px -50px rgba(16, 58, 112, 0.4);
}
.signin-card.is-soft { background: var(--bg-2); box-shadow: none; }
.signin-card h2 { font-size: 24px; line-height: 1.2; letter-spacing: -0.025em; }
.signin-card p { margin-top: 8px; font-size: 16px; line-height: 1.45; letter-spacing: -0.012em; color: var(--ink-2); text-wrap: pretty; }
.signin-card .btn { margin-top: 18px; }
.signin-card .btn-ghost { justify-content: center; background: var(--surface); box-shadow: inset 0 0 0 1px rgba(10, 26, 43, 0.14); }
.signin-card .btn-ghost:hover { background: #fff; box-shadow: inset 0 0 0 1px rgba(10, 26, 43, 0.28); }

.signin-form { display: flex; flex-direction: column; margin-top: 26px; }
.field-label { font-size: 14px; font-weight: 500; letter-spacing: -0.008em; }
.field {
  display: flex; align-items: center; height: 52px; margin-top: 8px; padding: 0 22px;
  border-radius: var(--r-pill); background: var(--surface); cursor: text;
  box-shadow: inset 0 0 0 1px rgba(10, 26, 43, 0.18);
  transition: box-shadow var(--t-1) ease;
}
.field:focus-within { box-shadow: inset 0 0 0 2px var(--accent); }
.field input {
  flex: 1 1 auto; min-width: 0; height: 100%; padding: 0; border: 0; outline: 0; background: none;
  font: inherit; letter-spacing: -0.012em; color: var(--ink);
}
.field input::placeholder { color: var(--ink-faint); opacity: 1; }
/* Le libellé du mot de passe et le lien « oublié » partagent une ligne */
.field-row { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; margin-top: 18px; }
.field-row .field-label { white-space: nowrap; }
.field-link {
  padding: 0; border: 0; background: none; cursor: pointer;
  font: inherit; font-size: 14px; letter-spacing: -0.005em; color: var(--accent-ink);
  text-decoration: underline; text-underline-offset: 3px;
}
.field-link.is-center { align-self: center; margin-top: 16px; }
/* « display: flex » l'emporterait sur l'attribut hidden : les vues masquées le restent */
.signin-form[hidden], .signin-sent[hidden] { display: none; }
.signin-form > p:first-child { margin: 0 0 18px; }
.signin-form .btn[aria-busy="true"] { opacity: 0.6; cursor: progress; }
/* Seconde étape, annoncée sous le bouton : la passkey se confirme sur l'écran suivant, dans l'espace du client */
.signin-card .signin-next {
  display: flex; align-items: center; gap: 14px; margin-top: 12px; padding: 10px 16px 10px 10px;
  border-radius: 30px; background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line);
  font-size: 14px; line-height: 1.35; letter-spacing: -0.005em; color: var(--ink-3);
}
.signin-next-icon {
  display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent-ink); font-size: 18px;
}
.signin-next-text { flex: 1 1 auto; min-width: 0; }
.signin-next-text strong { display: block; font-size: 15px; font-weight: 600; letter-spacing: -0.012em; color: var(--ink); }
.signin-next-step {
  flex: none; padding: 4px 10px; border-radius: var(--r-pill); background: var(--surface);
  box-shadow: inset 0 0 0 1px rgba(10, 26, 43, 0.12); font-size: 12px; font-weight: 500; white-space: nowrap;
}
@media (max-width: 480px) { .signin-next-step { display: none; } }
.signin-sent { margin-top: 26px; }
.signin-sent h3 { font-size: 20px; line-height: 1.25; letter-spacing: -0.02em; }
.signin-sent strong { color: var(--ink); font-weight: 600; overflow-wrap: anywhere; }
.signin-sent .field-link { margin-top: 18px; }
.signin-card .field-error { margin-top: 10px; font-size: 14px; line-height: 1.4; color: #b3261e; }
.signin-card .field-hint { margin-top: 12px; font-size: 14px; line-height: 1.4; letter-spacing: -0.005em; color: var(--ink-3); }
.signin-card .signin-note { margin-top: auto; padding-top: 22px; font-size: 14px; line-height: 1.45; letter-spacing: -0.005em; color: var(--ink-3); }
.signin-card .signin-note strong { color: var(--ink); font-weight: 600; }
.signin-rule { height: 1px; margin-top: 26px; background: var(--line); }

.signin-help { margin-top: 28px; text-align: center; font-size: 14px; letter-spacing: -0.005em; color: var(--ink-3); }
.signin-help a { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 760px) {
  .signin { width: min(980px, calc(100% - 40px)); }
  .signin-grid { grid-template-columns: minmax(0, 1fr); }
}

/* ==========================================================================
   Révélations au défilement (inspirées des pages produit Apple :
   30 px de translation, 0,9 s d'opacité, 0,12 s de décalage)
   ========================================================================== */

html.js [data-reveal], html.js [data-stagger] > * { opacity: 0; transform: translateY(30px); }
html.js [data-reveal].in, html.js [data-stagger].in > * {
  opacity: 1; transform: none;
  transition: opacity 0.9s var(--ease-out), transform 0.8s var(--ease-out);
}
html.js [data-stagger].in > * { transition-delay: calc(var(--i, 0) * 0.12s); }

/* ==========================================================================
   Adaptations
   ========================================================================== */

@media (max-width: 1100px) {
  /* écrans moyens : le verre prend un peu moins de place, les cartes se resserrent */
  .trust-panel { --glass: 34%; }
  .ledger-col { padding: 22px 20px 18px; }
  .ledger li { font-size: 16px; }
}

@media (max-width: 1180px) {
  .orbit { display: none; }
}

@media (max-width: 1000px) {
  /* barre étroite : les liens se resserrent pour laisser la place à « Se connecter » */
  .nav-links a, .nav-login { padding: 8px 10px; }
  /* image verticale : l'astérisque reste un accent, en haut à droite */
  .hero-aurora i:nth-child(1) { left: -46%; top: -16%; width: 110%; height: 46%; }
  .hero-aurora i:nth-child(2) { right: -52%; top: 2%; width: 104%; height: 50%; }
  .hero-aurora i:nth-child(3) { left: -50%; bottom: -16%; width: 112%; height: 48%; }
  .hero-aurora i:nth-child(4) { right: -44%; bottom: -22%; width: 104%; height: 46%; }
  .facts-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 28px; }
  .extras { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile-graph { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .tile-graph .tile-copy { gap: 8px; padding-bottom: 0; }
  .graph { min-height: 0; aspect-ratio: 640 / 420; margin-bottom: 150px; }
  .graph-detail { top: 100%; bottom: auto; right: auto; left: 0; width: min(340px, 100%); margin-top: 6px; }
}

@media (max-width: 900px) {
  :root { --wrap: min(1120px, calc(100% - 40px)); }

  .nav-links, .nav-cta, .nav-login { display: none; }
  .nav-toggle { display: block; }
  .nav { padding: 0 8px 0 18px; }
  .sticky-cta { display: block; }

  /* Mobile et tablette : plus de carte collante. Chaque étape montre sa scène puis son texte, dans
     le fil normal de la page. Les conteneurs s'effacent (display: contents) et les six éléments
     sont réordonnés : scène 1, texte 1, scène 2, texte 2, scène 3, texte 3. */
  .how-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .how-stage, .how-stage-inner, .how-steps { display: contents; }
  .how-caption { display: none; }
  .scene {
    position: relative; inset: auto; height: min(380px, 104vw); padding: 18px;
    border-radius: var(--r-lg); overflow: hidden; background: var(--stage-bg); box-shadow: var(--stage-ring);
    opacity: 1; transform: none;
  }
  .scene[data-scene="0"] { order: 1; }
  .how-step[data-step="0"] { order: 2; }
  .scene[data-scene="1"] { order: 3; }
  .how-step[data-step="1"] { order: 4; }
  .scene[data-scene="2"] { order: 5; }
  .how-step[data-step="2"] { order: 6; }
  .scene-read .mail, .scene-read .fiche { width: min(300px, 100%); }
  .mail { padding: 14px 16px; }
  .mail-body { gap: 7px; margin-top: 12px; }
  .mail-body i { height: 7px; }
  .mail-sig { margin-top: 10px; padding: 8px 10px; font-size: 12.5px; }
  .mail-flag { top: 62px; }
  .fiche { margin-top: 10px; padding: 12px 14px; }
  .deck { height: 170px; width: min(280px, 100%); }
  .scene-verify { gap: 18px; }
  .deck-btn { width: 46px; height: 46px; }
  .how-step, .how-step:first-child { min-height: 0; justify-content: flex-start; padding: 26px 0 64px; opacity: 1; }
  .how-step[data-step="2"] { padding-bottom: 8px; }

  .bento { grid-template-columns: minmax(0, 1fr); }
  .tile-source, .tile-facts { min-height: 380px; }

  .trust { padding: 0 8px; }
  /* le panneau de verre passe sous le texte, en bas à droite, au lieu de rester derrière lui */
  .trust-bg img { width: 140%; }
  .trust-inner { padding-left: 20px; padding-right: 20px; padding-bottom: 80vw; }

  .nots-list li { grid-template-columns: minmax(0, 1fr); gap: 12px; align-items: start; }

  .letter { margin-inline: 8px; }
  .letter-grid, .faq-grid { grid-template-columns: minmax(0, 1fr); }
  .letter-grid { gap: 12px; }
  .letter-visual { width: min(260px, 72%); margin: 0 auto; }
  .faq-head { position: static; }

  .plans { grid-template-columns: minmax(0, 1fr); }
  .plan-custom { flex-direction: column; align-items: flex-start; }
  .plan-custom > div { flex: none; }
  .footer-top { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .footer-panel { padding-bottom: 104px; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .hero { padding: 96px 20px 28px; }
  .hero-bg { -webkit-mask-image: linear-gradient(#000 78%, transparent 100%); mask-image: linear-gradient(#000 78%, transparent 100%); }
  .sources { gap: 8px; }
  .sources li { padding: 14px 4px 11px; gap: 8px; font-size: 12px; }
  .hero::before { background: radial-gradient(90% 40% at 50% 26%, rgba(252, 253, 254, 0.94) 0%, rgba(252, 253, 254, 0.6) 55%, rgba(252, 253, 254, 0) 85%); }
  .eyebrow { font-size: 14px; margin-bottom: 12px; }
  .hero-sub { margin-top: 16px; }
  .hero-actions { margin-top: 22px; flex-direction: column; gap: 14px; }
  .hero-note { margin-top: 12px; }

  .stage { margin-top: 26px; gap: 12px; }
  .ask { min-height: 58px; padding: 9px 9px 9px 16px; gap: 10px; border-radius: 29px; }
  .ask-input { font-size: 16px; line-height: 22px; height: 22px; }
  .ask-go { width: 40px; height: 40px; }
  .ask-spark { font-size: 20px; }
  .chips { flex-wrap: nowrap; justify-content: flex-start; width: calc(100% + 40px); margin-inline: -20px; padding: 2px 20px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .chips::-webkit-scrollbar { display: none; }
  .chip { flex: none; }
  .answers {
    display: flex; gap: 12px; width: calc(100% + 40px); margin: 4px -20px 0; padding: 4px 20px 18px;
    overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .answers::-webkit-scrollbar { display: none; }
  .answer { flex: 0 0 min(84%, 330px); scroll-snap-align: center; }

  .facts-list { padding-top: 24px; }
  .glyph { width: 32px; height: 32px; border-radius: 10px; font-size: 17px; }
  .glyph-lg { width: 44px; height: 44px; border-radius: 13px; font-size: 23px; }

  .tile-note { position: static; margin-top: 16px; }
  .tile-graph { padding-bottom: clamp(26px, 3vw, 40px); }
  .graph { margin-bottom: 170px; }
  .graph { aspect-ratio: 380 / 440; }
  .g-node .g-label { font-size: 13.5px; }
  .bigfacts { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .bigfacts dd { font-size: clamp(2.1rem, 9vw, 2.75rem); }

  .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 20px; }
  .footer-word { margin-top: 44px; }
  /* une seule colonne : cartes et engagements partagent le même bord gauche et la même largeur */
  .ledger, .pledges { grid-template-columns: minmax(0, 1fr); }
  .pledges { gap: 26px; }
  .pledges li { padding-right: 0; }
  .trust-bg img { width: 190%; }
  .trust-inner { padding-bottom: 102vw; }
  .ledger li { font-size: 16px; }
}

@media (max-width: 520px) {
  .facts-list { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .extras { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .extras li { flex-direction: row; align-items: flex-start; gap: 14px; padding: 18px; }
  .btn-lg { height: 56px; font-size: 17px; padding: 0 9px 0 24px; }
}

@media (max-height: 760px) and (min-width: 901px) {
  .hero { padding-top: 92px; }
  h1 { font-size: clamp(2.75rem, 5.2vw + 0.4rem, 4.75rem); }
  .hero-sub { margin-top: 16px; }
  .hero-actions { margin-top: 20px; }
  .stage { margin-top: 22px; }
}

/* ==========================================================================
   Mouvement réduit, transparence réduite
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; transition-delay: 0s !important; }
  h1 .w { opacity: 1; filter: none; transform: none; }
  .node-i { opacity: var(--o, 1); transform: none; }
  html.js [data-reveal], html.js [data-stagger] > *, html.js .answer, html.js .ledger li, html.js .not-small, html.js .source-demo .sig, html.js .footer-word { opacity: 1; transform: none; }
  html.js .manifesto-text .w { color: var(--ink); }
  .trust-panel { transform: none; }
  .hero-aurora, .closing-bg img { transform: none; }
  .mail-flag { opacity: 1; }
  .mail-body i { opacity: 0.14; filter: blur(4px); }
  .mail-sig { background: var(--accent-soft); }
}

@media (prefers-reduced-transparency: reduce) {
  .nav, .menu, .glass, .graph-detail, .sticky-cta { background: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .ledger-col { background: #0d1a2b; -webkit-backdrop-filter: none; backdrop-filter: none; }
}

/* Animations en pause hors écran */
.hero.is-idle .node, .hero.is-idle .hero-aurora i { animation-play-state: paused; }
.how-stage.is-paused * { animation-play-state: paused !important; }
