/* ==========================================================
   Ionyx Système — feuille de style
   Galerie sombre : serif léger pour l'émotion, sans pour l'UI,
   mono pour les étiquettes. Couleur réservée aux tuiles.
   ========================================================== */

:root {
  /* Couleurs de marque */
  --blue: #4a8bff;
  --blue-ink: #1f4fd8;
  --peri: #90b8f0;
  --pale: #cfdcff;
  --deep: #1d3a8f;
  --cyan: #00b3dd;

  /* Surfaces */
  --bg: #080b12;
  --bg-2: #05070c;
  --card: #111725;
  --card-2: #1a2234;
  --silver: #cfd5df;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .16);

  /* Texte */
  --white: #ffffff;
  --cloud: #f3f5f9;
  --ash: #9aa3b2;
  --fog: #848c9c;   /* 5,8:1 sur le fond, 5,3:1 sur les cartes */
  --dim: #7c8495;   /* texte atténué : 5,2:1 minimum */
  --ink: #05070c;

  /* Typo */
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --brand: "Manrope", var(--sans);

  /* Rythme */
  --max: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --section: clamp(88px, 12vw, 140px);
  --r-btn: 8px;
  --r-card: 16px;
  --r-tile: 30px;

  /* Mouvement */
  --fast: .2s ease;
  --slow: cubic-bezier(.455, .03, .515, .955);
  --out: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ash);
  font: 400 16px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--blue); color: var(--ink); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

main { overflow-x: clip; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section) 0; position: relative; }
.section--tight { padding-top: 0; }
.center { display: flex; justify-content: center; margin-top: 56px; }

/* ---------- Typographie ---------- */
.display {
  font-family: var(--serif);
  font-weight: 300;
  font-variation-settings: "opsz" 144;
  color: var(--cloud);
  font-size: clamp(46px, 8.4vw, 96px);
  line-height: .95;
  letter-spacing: -.025em;
  margin: 0;
}
.display em { font-style: italic; color: var(--white); }
.display--md { font-size: clamp(38px, 5.6vw, 68px); line-height: 1; }
.display--xl { font-size: clamp(48px, 9vw, 112px); line-height: .92; }

.lead, .sub {
  font-weight: 300;
  font-size: 18px;
  line-height: 1.55;
  color: var(--ash);
  max-width: 580px;
}
.label, .mono {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 500;
}
.label { color: var(--blue); margin: 0 0 24px; }
.label--dark { color: var(--deep); }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 18px;
  border-radius: var(--r-btn);
  border: 1px solid transparent;
  font-size: 15px; line-height: 1;
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--fast), color var(--fast), border-color var(--fast), transform var(--fast);
}
.btn--lg { padding: 16px 22px; font-size: 16px; }
.btn--primary { background: var(--white); color: var(--ink); }
.btn--primary:hover { background: var(--pale); }
.btn--ghost { border-color: var(--line-2); color: var(--white); }
.btn--ghost:hover { border-color: var(--white); background: rgba(255,255,255,.06); }
.btn--glass { padding: 9px 12px; font-size: 14px; color: var(--cloud); border-color: transparent; }
.btn--glass:hover { background: rgba(255,255,255,.08); border-color: var(--line-2); }
.arr { display: inline-block; transition: transform .3s var(--out); }
.btn:hover .arr, .tile__link:hover .arr { transform: translateX(4px); }

.chip {
  display: inline-block;
  margin: 0 0 32px;
  padding: 9px 22px;
  border-radius: 999px;
  background: rgba(255,255,255,.07);
  border: 1px solid var(--line-2);
  color: var(--cloud);
  font: 500 12px/1.4 var(--mono);
  letter-spacing: .14em;
  text-transform: uppercase;
  backdrop-filter: blur(12px);
}

/* ---------- Barre de progression ---------- */
.progress { position: fixed; inset: 0 0 auto; height: 2px; z-index: 60; pointer-events: none; }
.progress span { display: block; height: 100%; background: var(--blue); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }

/* ---------- Navigation ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  transition: transform .45s var(--out), background var(--fast), border-color var(--fast);
  border-bottom: 1px solid transparent;
}
.nav.is-solid {
  background: rgba(8, 11, 18, .62);
  backdrop-filter: blur(24px) saturate(140%);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
  border-color: var(--line);
}
.nav.is-hidden { transform: translateY(-100%); }
.nav__inner {
  max-width: var(--max); margin: 0 auto; padding: 14px var(--gutter);
  display: flex; align-items: center; gap: 24px;
}
.nav__links { display: flex; gap: 4px; margin: 0 auto; }
.nav__actions { display: flex; align-items: center; gap: 18px; }
.nav__text { font-size: 14px; color: var(--cloud); transition: color var(--fast); }
.nav__text:hover { color: var(--blue); }

.brand { display: inline-flex; align-items: center; gap: 10px; --hex: var(--blue); --core: var(--white); }
.brand__mark { width: 34px; height: 34px; transition: transform .6s var(--out); }
.brand:hover .brand__mark { transform: rotate(-60deg); }
.brand__word { display: flex; flex-direction: column; line-height: 1; }
.brand__word b { font: 800 22px/1 var(--brand); color: var(--white); letter-spacing: -.02em; }
.brand__word small { font: 400 8.5px/1 var(--mono); letter-spacing: .42em; color: var(--ash); margin-top: 3px; }

.burger { display: none; width: 40px; height: 40px; border: 1px solid var(--line-2); border-radius: var(--r-btn); background: transparent; cursor: pointer; position: relative; }
.burger span { position: absolute; left: 11px; right: 11px; height: 1.5px; background: var(--white); transition: transform .3s var(--out), top .3s var(--out); }
.burger span:first-child { top: 15px; }
.burger span:last-child { top: 23px; }
.nav.is-open .burger span:first-child { top: 19px; transform: rotate(45deg); }
.nav.is-open .burger span:last-child { top: 19px; transform: rotate(-45deg); }
.nav__panel { display: none; }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid; place-items: center;
  text-align: center;
  padding: 140px var(--gutter) 120px;
  overflow: hidden;
  isolation: isolate;
}
.hero__sky {
  position: absolute; inset: 0; z-index: -2;
  background: linear-gradient(180deg, #080b12 0%, #0b1322 34%, #11295a 62%, #2a63c4 88%, #4a8bff 108%);
  opacity: 0;
  animation: fadeIn 2.5s var(--slow) .1s forwards;
}
.hero__sky::after { /* grain très léger pour éviter le banding */
  content: ""; position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.05'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}
.hero__hex {
  position: absolute; z-index: -1;
  width: min(118vw, 1100px); aspect-ratio: 1;
  left: 50%; top: 52%;
  transform: translate(-50%, -50%) translate(var(--mx, 0px), var(--my, 0px));
  transition: transform 1.2s var(--out);
  overflow: visible;
}
.hero__hex .trace { stroke: rgba(207, 220, 255, .22); stroke-width: .28; }
.hero__dot { fill: rgba(207, 220, 255, .55); opacity: 0; animation: fadeIn 1s ease 2.4s forwards; }
.hero__core { fill: rgba(74, 139, 255, .5); animation: pulse 4s ease-in-out infinite; transform-origin: 50px 52px; }

.trace {
  fill: none;
  stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 1; stroke-dashoffset: 1;
  animation: borderTurn 2.6s var(--slow) .3s forwards;
}
@keyframes borderTurn { to { stroke-dashoffset: 0; } }
@keyframes fadeIn { to { opacity: 1; } }
@keyframes pulse { 0%, 100% { transform: scale(1); opacity: .5; } 50% { transform: scale(1.5); opacity: .9; } }

.hero__content { max-width: 960px; display: flex; flex-direction: column; align-items: center; }
.hero .lead { margin: 28px auto 36px; color: #b6bfce; }
.hero__ctas { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 20px; }

.js .hero-in {
  opacity: 0; transform: translateY(24px);
  filter: blur(6px);
  animation: heroIn 1.6s var(--out) forwards;
  animation-delay: calc(.25s + var(--d, 0) * .14s);
}
@keyframes heroIn { to { opacity: 1; transform: none; filter: blur(0); } }

/* Champ de demande façon assistant */
.ask {
  width: min(520px, 100%);
  display: flex; align-items: center; gap: 8px;
  padding: 8px 8px 8px 22px;
  background: rgba(5, 7, 12, .78);
  border: 1px solid var(--line-2);
  border-radius: var(--r-btn);
  backdrop-filter: blur(14px);
  transition: border-color var(--fast), box-shadow var(--fast);
}
.ask:focus-within { border-color: rgba(207, 220, 255, .5); box-shadow: 0 0 0 4px rgba(74, 139, 255, .14); }
.ask input { flex: 1; min-width: 0; background: transparent; border: 0; outline: 0; color: var(--cloud); font-size: 16px; padding: 8px 0; }
.ask input::placeholder { color: var(--ash); }
.ask button {
  width: 40px; height: 40px; flex: none;
  border-radius: 50%; border: 1px solid var(--line-2);
  background: rgba(255,255,255,.16); color: var(--white);
  cursor: pointer; font-size: 17px;
  transition: background var(--fast), transform .3s var(--out);
}
.ask button:hover { background: var(--white); color: var(--ink); transform: rotate(-45deg); }

.scroll-hint {
  position: absolute; bottom: 28px; left: 50%; translate: -50% 0;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font: 500 12px/1 var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--cloud);
}
.scroll-hint span { padding: 6px 12px; border-radius: 999px; background: rgba(5, 7, 12, .55); }
.scroll-hint i { width: 1px; height: 42px; background: linear-gradient(var(--cloud), transparent); animation: drip 2.2s var(--slow) infinite; transform-origin: top; }
@keyframes drip { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* ---------- Révélations au scroll ---------- */
.js [data-reveal] {
  opacity: 0; transform: translateY(32px);
  transition: opacity 1.1s var(--out), transform 1.1s var(--out);
  transition-delay: calc(var(--d, 0) * .1s);
}
.js [data-reveal].in { opacity: 1; transform: none; }

/* ---------- Problème ---------- */
.problem { background: var(--bg); }
.statement {
  font-family: var(--serif); font-weight: 300; font-variation-settings: "opsz" 144;
  font-size: clamp(30px, 4.6vw, 58px); line-height: 1.12; letter-spacing: -.02em;
  color: var(--cloud); margin: 0 0 88px; max-width: 1050px;
}
.js .statement .w { opacity: .5; transition: opacity .5s ease; } /* 5:1 au plus bas */
.js .statement .w.on { opacity: 1; }

.pains { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.pains li {
  display: grid; grid-template-columns: 80px 1fr auto; align-items: center; gap: 24px;
  padding: 28px 20px; border-bottom: 1px solid var(--line);
  position: relative;
  transition: background var(--fast), padding var(--fast);
}
.pains li::before { /* trait qui se trace au survol */
  content: ""; position: absolute; left: 0; bottom: -1px; height: 1px; width: 100%;
  background: var(--blue); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--out);
}
.pains li:hover { background: var(--card); }
.pains li:hover::before { transform: scaleX(1); }
.pains p { margin: 0; color: var(--cloud); font-size: 18px; font-weight: 300; max-width: 640px; }
.pains__n { font: 500 12px var(--mono); color: var(--fog); transition: color var(--fast); }
.pains li:hover .pains__n { color: var(--blue); }
.pains__tag {
  font: 500 12px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ash);
  padding: 6px 12px; border: 1px solid var(--line-2); border-radius: 999px;
  transition: background var(--fast), color var(--fast), border-color var(--fast);
}
.pains li:hover .pains__tag { background: var(--white); color: var(--ink); border-color: var(--white); }

/* ---------- Stat (carte claire) ---------- */
.stat {
  background: var(--silver); color: var(--ink);
  border-radius: var(--r-tile);
  padding: clamp(32px, 5vw, 64px);
  display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: end;
}
.stat__num {
  font-family: var(--serif); font-weight: 300; font-variation-settings: "opsz" 144;
  font-size: clamp(64px, 11vw, 148px); line-height: .9; letter-spacing: -.04em;
  margin: 0 0 20px; color: var(--ink);
}
.stat__txt { margin: 0; font-size: 18px; font-weight: 300; max-width: 440px; color: #232a37; }
.bar { margin-bottom: 26px; }
.bar__head { display: flex; justify-content: space-between; font: 500 12px var(--mono); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 10px; color: #232a37; }
.bar__track { height: 14px; background: rgba(5,7,12,.1); border-radius: 999px; position: relative; overflow: hidden; }
.bar__track i { position: absolute; top: 0; bottom: 0; border-radius: 999px; transition: transform 1.8s var(--slow) .3s; transform-origin: left; }
.js .bar__track i { transform: scaleX(0); }
.bar__range { left: var(--from); width: calc(var(--to) - var(--from)); background: var(--deep); }
.bar__fill { left: 0; width: var(--w); background: rgba(5,7,12,.32); }
.js .stat.in .bar__track i { transform: scaleX(1); }
.bar__scale { display: flex; justify-content: space-between; font: 400 12px var(--mono); color: #4a5263; margin: -14px 0 24px; }
.stat__note { margin: 0; font-size: 14px; color: #3a4252; border-top: 1px solid rgba(5,7,12,.14); padding-top: 18px; }

/* ---------- Offres (tuiles colorées) ---------- */
.head { margin-bottom: 56px; }
.head--center { text-align: center; display: flex; flex-direction: column; align-items: center; }
.head--center .sub { margin: 24px auto 0; }

.tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; perspective: 1400px; }
.tile {
  --hex: currentColor; --core: currentColor;
  position: relative;
  min-height: 360px;
  border-radius: var(--r-tile);
  padding: 32px;
  display: flex; flex-direction: column;
  color: var(--ink);
  overflow: hidden;
  transform-style: preserve-3d;
  transition: transform .5s var(--out), opacity 1.1s var(--out) calc(var(--d, 0) * .1s);
  will-change: transform;
}
.js .tile.in { transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--lift, 0px)); }
.tile:hover { --lift: -6px; }
.tile--blue { background: var(--blue); }
.tile--peri { background: var(--peri); }
.tile--pale { background: var(--pale); }
.tile--deep { background: var(--deep); color: var(--white); }
.tile header { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.tile header .mono { font-size: 12px; opacity: .85; }
.tile__icon { width: 44px; height: 44px; flex: none; transition: transform .8s var(--out); }
.tile:hover .tile__icon { transform: rotate(-120deg) scale(1.1); }
.tile h3 {
  font-family: var(--serif); font-weight: 300; font-variation-settings: "opsz" 144;
  font-size: clamp(34px, 3.6vw, 46px); line-height: 1; letter-spacing: -.02em;
  margin: auto 0 14px; padding-top: 48px;
}
.tile p { margin: 0 0 24px; font-size: 16px; max-width: 400px; opacity: .85; }
.tile__link {
  align-self: flex-start;
  display: inline-flex; gap: 10px; align-items: center;
  font-size: 15px; padding: 11px 16px; border-radius: var(--r-btn);
  background: var(--ink); color: var(--white);
  transition: background var(--fast), color var(--fast);
}
.tile__link:hover { background: var(--white); color: var(--ink); }
.badge {
  align-self: flex-start;
  font: 500 12px var(--mono); letter-spacing: .12em; text-transform: uppercase;
  padding: 9px 14px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.35); background: rgba(255,255,255,.1);
}
/* grand hexagone en filigrane dans chaque tuile */
.tile::after {
  content: ""; position: absolute; right: -90px; bottom: -110px; width: 320px; height: 320px;
  background: currentColor; opacity: .06;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M84 46V70L50 89.6 16 70V30L43 14.4' fill='none' stroke='black' stroke-width='9' stroke-linecap='round' stroke-linejoin='round'/%3E%3Ccircle cx='50' cy='52' r='10'/%3E%3C/svg%3E") center / contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M84 46V70L50 89.6 16 70V30L43 14.4' fill='none' stroke='black' stroke-width='9' stroke-linecap='round' stroke-linejoin='round'/%3E%3Ccircle cx='50' cy='52' r='10'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform 1.2s var(--out), opacity .4s ease;
}
.tile:hover::after { transform: rotate(-30deg) scale(1.08); opacity: .12; }

/* Défilement des outils */
.marquee {
  margin-top: 56px;
  overflow: hidden;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee__track { display: flex; align-items: center; gap: 36px; width: max-content; padding: 26px 0; animation: marquee 32s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee span { font-family: var(--serif); font-weight: 300; font-size: 30px; color: var(--cloud); white-space: nowrap; transition: color var(--fast); }
.marquee span:hover { color: var(--blue); }
.marquee i { width: 7px; height: 7px; border-radius: 50%; background: var(--blue); flex: none; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Le noyau ouvert ---------- */
.core { background: var(--bg-2); padding: var(--section) 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.core__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); }
.core__stage { position: relative; }
.stage {
  position: sticky; top: calc(50vh - min(42vw, 500px) / 2);
  width: 100%; max-width: 500px; aspect-ratio: 1; margin: 0 auto;
}
.stage__hex { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.trace--stage { stroke: var(--blue); stroke-width: 2.2; animation: none; stroke-dashoffset: 0; transition: stroke-dashoffset 2.2s var(--slow); }
.js .trace--stage { stroke-dashoffset: 1; }
.js .stage.in .trace--stage { stroke-dashoffset: 0; }
.stage__dot { fill: var(--blue); }
.stage__core {
  position: absolute; left: 50%; top: 52%; translate: -50% -50%;
  width: 24%; aspect-ratio: 1; border-radius: 50%;
  background: var(--white); color: var(--ink);
  display: grid; place-items: center; text-align: center;
  font: 500 clamp(12px, 1.1vw, 13px)/1.2 var(--mono); letter-spacing: .1em; text-transform: uppercase;
  box-shadow: 0 0 0 calc(var(--glow, 0) * 18px) rgba(74,139,255,.18), 0 0 0 calc(var(--glow, 0) * 40px) rgba(74,139,255,.07);
  transition: box-shadow .4s ease;
}
.task {
  position: absolute; left: var(--x); top: var(--y);
  translate: -50% -50%;
  transform: translate(var(--tx, 0px), var(--ty, 0px)) scale(var(--ts, 1));
  opacity: var(--to, 1);
  padding: 8px 14px; border-radius: 999px;
  background: var(--card-2); border: 1px solid var(--line-2);
  color: var(--cloud); font: 500 12px var(--mono); letter-spacing: .08em; text-transform: uppercase;
  white-space: nowrap;
  will-change: transform, opacity;
}
.stage__caption { position: absolute; left: 0; right: 0; bottom: -44px; text-align: center; color: var(--ash); font-size: 12px; margin: 0; }

.core__list { padding-top: 6vh; }
.gains { list-style: none; padding: 0; margin: 64px 0 0; }
.gain {
  padding: 34px 0 34px 28px;
  border-left: 1px solid var(--line-2);
  position: relative;
  min-height: 34vh;
  transition: border-color .6s ease;
}
.gain h3, .gain p { transition: color .6s ease; }
.js .gain:not(.on) h3, .js .gain:not(.on) p { color: var(--dim); }
.gain::before {
  content: ""; position: absolute; left: -1px; top: 0; width: 1px; height: 100%;
  background: var(--blue); transform: scaleY(0); transform-origin: top; transition: transform .8s var(--out);
}
.gain.on::before { transform: scaleY(1); }
.gain .mono { color: var(--blue); font-size: 12px; }
.gain h3 { font-family: var(--serif); font-weight: 300; font-variation-settings: "opsz" 144; font-size: clamp(30px, 3vw, 40px); line-height: 1.05; color: var(--cloud); margin: 14px 0 12px; letter-spacing: -.015em; }
.gain p { margin: 0; font-size: 17px; font-weight: 300; max-width: 440px; }

/* ---------- Resto Pilote ---------- */
.device-band {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-tile);
  padding: clamp(36px, 7vw, 90px);
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center;
  overflow: hidden;
}
.device-band__text .sub { margin: 24px 0 28px; }
.ticks { list-style: none; padding: 0; margin: 0 0 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; }
.ticks li { color: var(--cloud); font-size: 15px; display: flex; align-items: center; gap: 10px; }
.ticks li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); flex: none; }
.fine { font-size: 13px; color: var(--fog); margin: 0; }

.phone-wrap { perspective: 1200px; display: grid; place-items: center; }
.phone {
  width: min(300px, 78vw); aspect-ratio: 9 / 18.5;
  border-radius: 44px; padding: 12px;
  background: linear-gradient(135deg, rgb(43,48,58), rgb(16,19,26));
  border: 1px solid rgba(255,255,255,.12);
  transform: rotateY(var(--py, -14deg)) rotateX(var(--px, 6deg)) rotateZ(-4deg);
  transition: transform 1s var(--out);
  position: relative;
  animation: float 7s ease-in-out infinite;
}
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }
.phone__notch { position: absolute; top: 20px; left: 50%; translate: -50% 0; width: 84px; height: 22px; border-radius: 999px; background: #000; z-index: 2; }
.screen { height: 100%; border-radius: 34px; background: #070a10; padding: 52px 20px 20px; display: flex; flex-direction: column; overflow: hidden; }
.screen__top { display: flex; justify-content: space-between; align-items: center; color: var(--cloud); font: 800 15px var(--brand); margin-bottom: 22px; }
.screen__top .mono { font-size: 12px; color: var(--ash); font-weight: 500; }
.screen__lbl { font-size: 12px; color: var(--ash); margin: 0 0 6px; }
.screen__big { font-family: var(--serif); font-weight: 300; font-size: 52px; line-height: 1; color: var(--white); margin: 0; letter-spacing: -.03em; }
.screen__big small { font-size: 24px; margin-left: 2px; color: var(--ash); }
.spark { width: 100%; height: 56px; margin: 10px 0 18px; overflow: visible; }
.spark__line { fill: none; stroke: var(--cyan); stroke-width: 2; stroke-linejoin: round; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 0; transition: stroke-dashoffset 2.4s var(--slow) .4s; }
.js .spark__line { stroke-dashoffset: 1; }
.js .device-band.in .spark__line { stroke-dashoffset: 0; }
.dlc { list-style: none; padding: 0; margin: 0 0 auto; }
.dlc li { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); color: var(--cloud); font-size: 13px; }
.dlc li span { margin-left: auto; font: 500 12px var(--mono); color: var(--ash); text-transform: uppercase; }
.dlc i { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.d-red { background: #ff6b6b; } .d-amb { background: #f5b84a; } .d-ok { background: #4cd9a0; }
.screen__loss { margin-top: 14px; padding: 14px; border-radius: 14px; background: var(--card-2); display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.screen__loss .mono { font-size: 12px; letter-spacing: .06em; line-height: 1.3; color: var(--ash); }
.screen__loss b { font: 500 16px var(--mono); color: var(--cyan); }

/* ---------- Audit : étapes ---------- */
.steps { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 72px; }
.steps__line { position: absolute; left: 16%; right: 16%; top: 36px; width: 68%; height: 2px; overflow: visible; }
.steps__line line { stroke: var(--blue); stroke-width: 1; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--line-p, 1)); }
.step {
  position: relative; text-align: center;
  padding: 0 24px 36px;
  display: flex; flex-direction: column; align-items: center;
}
.step__hex {
  width: 72px; height: 72px; border-radius: 20px;
  display: grid; place-items: center;
  background: var(--card); border: 1px solid var(--line-2);
  margin-bottom: 28px; position: relative; z-index: 1;
  --hex: var(--blue); --core: var(--white);
  transition: background var(--fast), transform .5s var(--out), border-color var(--fast);
}
.step__hex svg { width: 34px; height: 34px; transition: transform .8s var(--out); }
.step:hover .step__hex { background: var(--blue); border-color: var(--blue); --hex: var(--ink); --core: var(--ink); transform: translateY(-4px); }
.step:hover .step__hex svg { transform: rotate(-120deg); }
.step .mono { color: var(--blue); font-size: 12px; }
.step h3 { font-family: var(--serif); font-weight: 300; font-variation-settings: "opsz" 144; font-size: 32px; line-height: 1.05; color: var(--cloud); margin: 12px 0 12px; }
.step p { margin: 0; max-width: 300px; font-size: 16px; }

/* ---------- Ancrage ---------- */
.anchor { border-top: 1px solid var(--line); }
.anchor__row { display: flex; justify-content: space-between; align-items: center; gap: 32px; margin-top: 56px; flex-wrap: wrap; }
.anchor__coords { color: var(--ash); margin: 0; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pills span {
  padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line-2);
  color: var(--cloud); font-size: 14px;
  transition: background var(--fast), color var(--fast), border-color var(--fast);
}
.pills span:hover { background: var(--white); color: var(--ink); border-color: var(--white); }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.contact__text .sub { margin: 24px 0; }
.contact__meta { color: var(--ash); }
.form {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r-tile); padding: clamp(24px, 4vw, 40px);
}
.field { display: flex; flex-direction: column; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field label { font: 500 12px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ash); }
.field input, .field select, .field textarea {
  background: #000; border: 1px solid var(--line-2); border-radius: var(--r-btn);
  padding: 13px 16px; color: var(--cloud); font-size: 16px; outline: 0; resize: vertical;
  transition: border-color var(--fast), box-shadow var(--fast);
}
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ash) 50%), linear-gradient(135deg, var(--ash) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(74,139,255,.14); }
.field textarea::placeholder { color: var(--fog); }
.form .btn { justify-content: center; margin-top: 6px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--ash); line-height: 1.5; }
.consent input { width: 18px; height: 18px; margin: 2px 0 0; flex: none; accent-color: var(--blue); }
.consent a, .form__error a { color: var(--cloud); text-decoration: underline; text-underline-offset: 3px; }
.consent a:hover, .form__error a:hover { color: var(--blue); }
.form__error {
  margin: 0; padding: 14px 16px; border-radius: var(--r-btn);
  background: rgba(255, 107, 107, .1); border: 1px solid rgba(255, 107, 107, .45);
  color: #ffd2d2; font-size: 14px;
}
.form__error[hidden] { display: none; }
.form .btn:disabled { opacity: .7; cursor: progress; }
.form--done {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px;
  min-height: 320px; text-align: center; outline: none;
  --hex: var(--blue); --core: var(--white);
}
.form--done p { margin: 0; font-family: var(--serif); font-weight: 300; font-size: clamp(28px, 3vw, 38px); line-height: 1.1; color: var(--cloud); }
.form__hex { width: 56px; height: 56px; }
.field.flash textarea { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(74,139,255,.2); }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 48px 0; }
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer .mono { color: var(--ash); margin: 0; font-size: 12px; }
.footer__legal { margin: 0; font-size: 13px; color: var(--fog); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .nav__links, .nav__text { display: none; }
  .nav__actions { margin-left: auto; }
  .burger { display: block; }
  .nav__panel {
    display: grid; gap: 4px;
    max-height: 0; overflow: hidden;
    padding: 0 var(--gutter);
    background: rgba(8, 11, 18, .92); backdrop-filter: blur(24px);
    visibility: hidden;
    transition: max-height .5s var(--out), padding .5s var(--out), visibility 0s linear .5s;
  }
  .nav.is-open .nav__panel { visibility: visible; transition-delay: 0s; }
  .nav__panel a { font-family: var(--serif); font-weight: 300; font-size: 30px; color: var(--cloud); padding: 10px 0; border-bottom: 1px solid var(--line); }
  .nav.is-open .nav__panel { max-height: 420px; padding: 8px var(--gutter) 24px; }
  .nav.is-open { background: rgba(8, 11, 18, .92); }

  .stat, .device-band, .contact { grid-template-columns: 1fr; }
  .core__grid { grid-template-columns: 1fr; }
  .stage { position: sticky; top: 76px; max-width: 340px; z-index: 2; }
  .core__stage { position: sticky; top: 76px; z-index: 2; background: var(--bg-2); padding-bottom: 56px; }
  .core__list { padding-top: 0; }
  .gain { min-height: 0; }
  .steps { grid-template-columns: 1fr; gap: 40px; }
  .steps__line { display: none; }
}
@media (max-width: 720px) {
  .tiles { grid-template-columns: 1fr; }
  .tile { min-height: 320px; }
  .pains li { grid-template-columns: 40px 1fr; padding: 22px 8px; }
  .pains__tag { grid-column: 2; justify-self: start; }
  .nav .btn--primary { display: none; }
  .form { grid-template-columns: 1fr; }
  .ticks { grid-template-columns: 1fr; }
  .core__stage { top: 60px; padding-bottom: 52px; }
  .stage { position: relative; top: 0; max-width: 280px; }
  .task { padding: 5px 9px; letter-spacing: .02em; }
  .hero__ctas .btn { width: 100%; justify-content: center; }
}

.footer__links { display: flex; gap: 20px; }
.footer__links a { font-size: 14px; color: var(--ash); transition: color var(--fast); }
.footer__links a:hover { color: var(--white); }

/* ---------- Pages légales ---------- */
.nav--static { position: sticky; background: rgba(8, 11, 18, .94); border-color: var(--line); }
.legal { padding: 72px 0 var(--section); }
.legal .wrap { max-width: 820px; }
.legal .display { margin-bottom: 20px; }
.legal__updated { color: var(--ash); margin: 0 0 56px; }
.legal h2 {
  font-family: var(--serif); font-weight: 300; font-variation-settings: "opsz" 144;
  font-size: clamp(26px, 3vw, 34px); line-height: 1.1; color: var(--cloud);
  margin: 56px 0 16px; padding-top: 24px; border-top: 1px solid var(--line);
}
.legal p, .legal li { font-size: 17px; font-weight: 300; line-height: 1.65; color: var(--ash); }
.legal strong { color: var(--cloud); font-weight: 400; }
.legal a { color: var(--cloud); text-decoration: underline; text-underline-offset: 3px; }
.legal a:hover { color: var(--blue); }
.legal ul { padding-left: 20px; }
.legal dl { display: grid; grid-template-columns: minmax(140px, 220px) 1fr; gap: 10px 24px; margin: 0; }
.legal dt { font: 500 12px/1.9 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ash); }
.legal dd { margin: 0; color: var(--cloud); font-size: 17px; font-weight: 300; }
/* Champs à compléter : bien visibles */
.todo {
  background: #f5b84a; color: var(--ink);
  font: 500 13px/1.6 var(--mono); padding: 1px 7px; border-radius: 4px;
  white-space: nowrap;
}
@media (max-width: 600px) { .legal dl { grid-template-columns: 1fr; gap: 2px; } .legal dd { margin-bottom: 14px; } }

/* ---------- Allègement : petits écrans et écrans tactiles ---------- */
@media (max-width: 720px), (pointer: coarse) {
  .ask, .chip { backdrop-filter: none; -webkit-backdrop-filter: none; }
  .ask { background: rgba(5, 7, 12, .9); }
  .chip { background: rgba(8, 11, 18, .72); }
  .hero__sky::after { display: none; }              /* grain */
  .phone { animation: none; transform: rotateZ(-4deg); }
  .js .tile.in { transform: translateY(var(--lift, 0px)); }
  /* Flou du menu retiré : pas mesurable sur un vrai téléphone ici, fond presque opaque à la place */
  .nav.is-solid, .nav__panel { backdrop-filter: none; -webkit-backdrop-filter: none; }
  .nav.is-solid { background: rgba(8, 11, 18, .94); }
}
.marquee.is-off .marquee__track { animation-play-state: paused; }

/* ---------- Ancres : ne pas passer sous la barre fixe ---------- */
section[id] { scroll-margin-top: 80px; }

/* ---------- Mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js [data-reveal], .js .hero-in { opacity: 1; transform: none; filter: none; }
  .trace { stroke-dashoffset: 0; }
}
