/* SmartArgo · feuille de style du site vitrine.
   Charte tirée du logo : violet #a693f1, bleu nuit #2b4170 / #3b5a92, soleil #ffc63a.
   Les bandeaux « nuit » (en-tête, accroche, légende, pied de page) gardent la même couleur
   dans les deux thèmes ; le reste suit prefers-color-scheme.
   Le nom du fichier porte sa version : le changer à chaque modification (cache long). */
/* site.2 : focus lisible sur fond clair, menu du téléphone, carte du voyage sur téléphone,
   contraste de l'encart « Tester », mentions légales. */
/* site.3 : section « Plugins » de l'accueil (modules qui s'emboîtent sur la coque, feuille de route). */

@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url('../fonts/bricolage-grotesque-latin-wght-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Source Sans 3';
  font-style: normal;
  font-display: swap;
  font-weight: 200 900;
  src: url('../fonts/source-sans-3-latin-wght-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url('../fonts/jetbrains-mono-latin-400-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #f7f5fd;
  --bg-alt: #eeeafb;
  --surface: #ffffff;
  --ink: #1b2440;
  --muted: #4c5677;
  --line: #dcd6f3;
  --accent: #5640c2;
  --accent-soft: #e9e4fd;
  --focus: #5640c2;
  --violet: #a693f1;
  --navy: #2b4170;
  --navy-2: #3b5a92;
  --sun: #ffc63a;
  --sun-ink: #1b2440;
  --warn-bg: #fff6dd;
  --warn-line: #e9bd45;
  --night: #131a36;
  --night-2: #1c2550;
  --night-deep: #0c1027;
  --on-night: #f1f2fb;
  --on-night-muted: #bfc5e2;
  --night-line: rgba(193, 183, 247, 0.22);
  --shadow: 0 1px 2px rgba(27, 36, 64, 0.06), 0 12px 32px -12px rgba(43, 65, 112, 0.28);
  --shadow-lg: 0 2px 6px rgba(12, 16, 39, 0.12), 0 40px 80px -30px rgba(12, 16, 39, 0.55);
  --radius: 16px;
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1180px;
  --header-h: 64px;
  --font-display: 'Bricolage Grotesque', 'Avenir Next', 'Segoe UI', sans-serif;
  --font-body: 'Source Sans 3', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1329;
    --bg-alt: #151a36;
    --surface: #1b2142;
    --ink: #eef0fb;
    --muted: #aab2d3;
    --line: #2f3663;
    --accent: #c0b3fa;
    --accent-soft: #262c56;
    --focus: #ffc63a;
    --warn-bg: #2d2817;
    --warn-line: #8f7426;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 16px 40px -16px rgba(0, 0, 0, 0.7);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-x: clip;
  text-rendering: optimizeLegibility;
}
img, svg, picture { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.1; margin: 0; text-wrap: balance; letter-spacing: -0.015em; }
h2 { font-size: clamp(2rem, 4.4vw, 3.25rem); font-weight: 800; }
h3 { font-size: 1.3rem; font-weight: 700; }
p { margin: 0; text-wrap: pretty; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
.night :focus-visible, .site-header :focus-visible, .site-footer :focus-visible, .cta-card :focus-visible, .skip:focus-visible { outline-color: var(--sun); }
code { font-family: var(--font-mono); font-size: 0.86em; overflow-wrap: anywhere; }
strong { font-weight: 700; }

.skip {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--sun); color: var(--sun-ink); padding: 10px 16px; border-radius: 10px; font-weight: 700;
}
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.eyebrow {
  font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent); display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ''; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }
.lede { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--muted); max-width: 62ch; }
.section { padding-block: clamp(64px, 9vw, 120px); position: relative; }
.section-head { display: grid; gap: 18px; margin-bottom: clamp(40px, 6vw, 72px); max-width: 820px; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px; border-radius: 999px;
  font-family: var(--font-body); font-weight: 700; font-size: 1.02rem; text-decoration: none;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background-color 0.25s;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-sun { background: var(--sun); color: var(--sun-ink); box-shadow: 0 8px 24px -10px rgba(255, 198, 58, 0.8); }
.btn-sun:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -10px rgba(255, 198, 58, 0.9); text-decoration: none; }
.btn-ghost { color: var(--on-night); border: 1.5px solid rgba(241, 242, 251, 0.45); }
.btn-ghost:hover { border-color: var(--on-night); background: rgba(241, 242, 251, 0.08); text-decoration: none; }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-2); text-decoration: none; }
@media (prefers-color-scheme: dark) {
  .btn-navy { background: var(--accent); color: var(--night-deep); }
  .btn-navy:hover { background: #d6ccff; }
}

/* ---------- En-tête ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: rgba(19, 26, 54, 0.82);
  -webkit-backdrop-filter: saturate(140%) blur(14px); backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color 0.3s, background-color 0.3s;
  color: var(--on-night);
}
.site-header.is-scrolled { border-bottom-color: var(--night-line); background: rgba(15, 20, 44, 0.92); }
.site-header .wrap { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--on-night); text-decoration: none; font-family: var(--font-display); font-weight: 800; font-size: 1.2rem; letter-spacing: -0.01em; }
.brand img { width: 36px; height: 36px; }
.nav { display: flex; gap: 4px; margin-left: auto; list-style: none; padding: 0; margin-block: 0; }
.nav a { white-space: nowrap; color: var(--on-night-muted); text-decoration: none; padding: 8px 12px; border-radius: 999px; font-weight: 600; font-size: 0.98rem; }
.nav a:hover { color: var(--on-night); background: rgba(241, 242, 251, 0.08); }
.site-header .btn { min-height: 40px; padding: 8px 16px; font-size: 0.95rem; }
/* Menu du téléphone : un <details>, qui marche aussi sans JavaScript. */
.site-header nav { margin-left: auto; }
.menu { display: none; }
.menu summary {
  list-style: none; cursor: pointer; width: 44px; height: 44px; display: grid; place-items: center;
  border-radius: 12px; border: 1px solid var(--night-line); color: var(--on-night);
}
.menu summary::-webkit-details-marker { display: none; }
.menu summary svg { width: 22px; height: 22px; }
.menu summary .close, .menu[open] summary .open { display: none; }
.menu[open] summary .close { display: block; }
.menu[open] summary { background: rgba(241, 242, 251, 0.1); }
.menu ul {
  position: absolute; left: 0; right: 0; top: var(--header-h); margin: 0; list-style: none;
  padding: 8px var(--gutter) 18px; display: grid; gap: 2px;
  background: var(--night-deep); border-bottom: 1px solid var(--night-line);
  box-shadow: 0 24px 40px -20px rgba(0, 0, 0, 0.6);
}
.menu a { display: block; padding: 12px 10px; border-radius: 10px; color: var(--on-night); text-decoration: none; font-weight: 600; font-size: 1.08rem; }
.menu a:hover { background: rgba(241, 242, 251, 0.08); }
/* Quatre entrées depuis site.3 : le menu du téléphone prend le relais sous 960 px. */
@media (max-width: 960px) { .nav { display: none; } .menu { display: block; } .site-header .wrap { gap: 12px; } }
@media (max-width: 420px) { .brand span { display: none; } .site-header .btn { font-size: 0.9rem; padding: 8px 14px; } }

/* ---------- Bandeaux nuit ---------- */
.night {
  background: var(--night); color: var(--on-night); position: relative; isolation: isolate;
}
.night a:not(.btn) { color: #d4cbff; }
.night .eyebrow { color: var(--sun); }
.night .lede { color: var(--on-night-muted); }
.stars::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0.55;
  background-image:
    radial-gradient(1.5px 1.5px at 12% 18%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 27% 42%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 41% 12%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 58% 33%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 73% 9%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 86% 27%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 93% 52%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 6% 61%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 35% 70%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 66% 64%, #fff 50%, transparent 51%);
  background-size: 640px 420px;
}

/* ---------- Accroche ---------- */
.hero {
  margin-top: calc(-1 * var(--header-h)); padding-top: calc(var(--header-h) + clamp(48px, 8vw, 96px));
  background:
    radial-gradient(60% 50% at 78% 8%, rgba(255, 198, 58, 0.22), transparent 70%),
    radial-gradient(70% 60% at 15% 30%, rgba(166, 147, 241, 0.28), transparent 70%),
    linear-gradient(180deg, var(--night-deep) 0%, var(--night) 55%, var(--night-2) 100%);
  overflow: hidden;
}
.hero-inner { display: grid; justify-items: center; text-align: center; gap: 24px; }
.hero-logo { width: 104px; height: 104px; filter: drop-shadow(0 18px 40px rgba(166, 147, 241, 0.45)); }
.badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px;
  border: 1px solid var(--night-line); background: rgba(241, 242, 251, 0.06);
  font-family: var(--font-mono); font-size: 0.8rem; color: var(--on-night-muted);
}
.badge::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--sun); box-shadow: 0 0 0 4px rgba(255, 198, 58, 0.2); }
.hero h1 { font-size: clamp(2.4rem, 6.6vw, 5rem); font-weight: 800; letter-spacing: -0.03em; max-width: 15ch; line-height: 1.02; }
.hero h1 em { font-style: normal; color: var(--sun); }
.hero .lede { max-width: 60ch; margin-inline: auto; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.hero-stage { margin-top: clamp(40px, 7vw, 80px); perspective: 1600px; padding-bottom: clamp(56px, 8vw, 110px); }
.hero-stage .frame { transform-origin: 50% 0%; transform: rotateX(calc(var(--tilt, 0) * 14deg)) scale(calc(1 - var(--tilt, 0) * 0.06)); will-change: transform; }
.hero-wave { position: absolute; left: 0; right: 0; bottom: -1px; height: clamp(40px, 7vw, 90px); width: 100%; color: var(--bg); z-index: 1; pointer-events: none; }
.hero-stage { position: relative; z-index: 2; }

@media (prefers-reduced-motion: no-preference) {
  .hero-inner > * { animation: rise 0.9s var(--ease) both; }
  .hero-inner > :nth-child(2) { animation-delay: 0.08s; }
  .hero-inner > :nth-child(3) { animation-delay: 0.16s; }
  .hero-inner > :nth-child(4) { animation-delay: 0.24s; }
  .hero-inner > :nth-child(5) { animation-delay: 0.32s; }
  .hero-stage { animation: rise 1.1s 0.35s var(--ease) both; }
  .hero-logo { animation: rise 0.9s var(--ease) both, bob 6s 1s ease-in-out infinite; }
}
@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -6px; } }

/* ---------- Cadre de capture ---------- */
.frame {
  border-radius: 14px; overflow: hidden; background: var(--surface);
  border: 1px solid var(--line); box-shadow: var(--shadow-lg); margin: 0;
}
.night .frame { border-color: rgba(193, 183, 247, 0.28); }
.frame-bar {
  display: flex; align-items: center; gap: 7px; height: 34px; padding-inline: 14px;
  background: var(--bg-alt); border-bottom: 1px solid var(--line);
  font-family: var(--font-mono); font-size: 0.74rem; color: var(--muted);
}
.frame-bar i { width: 11px; height: 11px; border-radius: 50%; background: #ef7d70; flex: none; }
.frame-bar i:nth-child(2) { background: #f3c14e; }
.frame-bar i:nth-child(3) { background: #69c37a; margin-right: 10px; }
.frame-bar span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.frame img { width: 100%; height: auto; aspect-ratio: 16 / 10; background: var(--bg-alt); }

/* ---------- Problème et promesse ---------- */
.promise { display: grid; gap: clamp(28px, 5vw, 72px); grid-template-columns: 1fr; }
@media (min-width: 900px) { .promise { grid-template-columns: 5fr 6fr; align-items: start; } }
.promise-text { display: grid; gap: 20px; color: var(--muted); font-size: 1.12rem; }
.promise-text p:last-child { color: var(--ink); }
.pillars { display: grid; gap: 18px; margin-top: clamp(48px, 7vw, 88px); grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); list-style: none; padding: 0; }
.pillar {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
  display: grid; gap: 12px; align-content: start; box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.pillar::after {
  content: ''; position: absolute; inset: auto 0 0 0; height: 4px;
  background: linear-gradient(90deg, var(--violet), var(--navy-2)); transform-origin: left; transform: scaleX(var(--bar, 1));
  transition: transform 1s 0.25s var(--ease);
}
.pillar:nth-child(3)::after { background: linear-gradient(90deg, var(--sun), #ff9f43); }
.pillar-icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.pillar-icon svg { width: 26px; height: 26px; }
.pillar p { color: var(--muted); }

/* ---------- Comment ça marche ---------- */
#fonctionnement { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 18%, var(--bg-alt) 82%, var(--bg) 100%); }
.journey { position: relative; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(72px, 10vw, 128px); }
.route { position: absolute; left: 19px; top: 24px; bottom: 24px; width: 2px; background: var(--line); border-radius: 2px; }
.route::after {
  content: ''; position: absolute; inset: 0; border-radius: 2px;
  background: linear-gradient(180deg, var(--violet), var(--navy-2) 60%, var(--sun));
  transform-origin: top; transform: scaleY(var(--route, 1));
}
.step { display: grid; gap: 24px; padding-left: 60px; position: relative; }
.step-num {
  position: absolute; left: 0; top: 0; width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: 1.15rem;
  background: var(--surface); color: var(--accent); border: 2px solid var(--violet); box-shadow: 0 0 0 6px var(--bg-alt);
  transition: background-color 0.4s, color 0.4s;
}
.step.is-in .step-num { background: var(--accent); color: var(--surface); }
.step-text { display: grid; gap: 14px; align-content: start; }
.step-text p { color: var(--muted); }
.step-kicker { font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.step h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.callout {
  margin-top: 8px; padding: 18px 20px; border-radius: 14px; border: 1px dashed var(--violet);
  background: var(--accent-soft); color: var(--ink); display: grid; gap: 6px;
}
.callout strong { font-family: var(--font-display); }
@media (min-width: 1000px) {
  .step { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 56px; padding-left: 88px; align-items: center; }
  .step-num { top: 50%; translate: 0 -50%; width: 48px; height: 48px; }
  .route { left: 23px; }
}

/* ---------- Plugins ---------- */
.plug-now { display: grid; gap: clamp(32px, 5vw, 64px); align-items: center; }
@media (min-width: 1000px) { .plug-now { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); } }
.dock {
  position: relative; isolation: isolate; overflow: hidden; color: var(--on-night);
  border-radius: 24px; border: 1px solid var(--night-line); box-shadow: var(--shadow-lg);
  padding: clamp(18px, 4vw, 36px) clamp(14px, 4vw, 36px) clamp(18px, 3vw, 28px);
  background:
    radial-gradient(70% 55% at 18% 0%, rgba(166, 147, 241, 0.3), transparent 70%),
    radial-gradient(50% 40% at 100% 100%, rgba(255, 198, 58, 0.14), transparent 70%),
    linear-gradient(180deg, var(--night-2), var(--night-deep));
}
.dock-mods { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px clamp(8px, 2vw, 14px); padding-bottom: 18px; }
.mod {
  position: relative; display: grid; justify-items: center; align-content: center; gap: 8px;
  min-height: 96px; padding: 14px 6px; border-radius: 14px; text-align: center;
  font-weight: 600; font-size: 0.84rem; line-height: 1.2; overflow-wrap: anywhere;
  color: var(--on-night-muted); border: 1.5px dashed rgba(193, 183, 247, 0.55); background: rgba(12, 16, 39, 0.5);
}
.mod svg { width: 24px; height: 24px; }
.mod.is-on {
  color: var(--on-night); border: 1.5px solid rgba(255, 198, 58, 0.75);
  background: linear-gradient(160deg, rgba(166, 147, 241, 0.32), rgba(166, 147, 241, 0.08));
}
.mod.is-on svg { color: var(--sun); }
/* Le connecteur : des broches sous chaque module, qui rejoignent le module ou la coque du dessous. */
.mod::after {
  content: ''; position: absolute; left: 50%; bottom: -19.5px; width: 28px; height: 18px; translate: -50% 0;
  border-radius: 0 0 5px 5px; color: rgba(193, 183, 247, 0.55);
  background: repeating-linear-gradient(90deg, currentColor 0 3px, transparent 3px 6.25px);
  transition: color 0.6s 0.9s;
}
.mod.is-on::after { color: var(--sun); }
.dock-hull {
  display: grid; place-items: center; height: 54px; margin-inline: -2%;
  clip-path: polygon(0 0, 100% 0, 94% 100%, 6% 100%);
  background:
    radial-gradient(circle at 15% 46%, var(--sun) 0 5px, rgba(255, 198, 58, 0.3) 6px 8px, transparent 9px),
    radial-gradient(circle at 27% 46%, var(--sun) 0 5px, rgba(255, 198, 58, 0.3) 6px 8px, transparent 9px),
    radial-gradient(circle at 73% 46%, var(--sun) 0 5px, rgba(255, 198, 58, 0.3) 6px 8px, transparent 9px),
    radial-gradient(circle at 85% 46%, var(--sun) 0 5px, rgba(255, 198, 58, 0.3) 6px 8px, transparent 9px),
    linear-gradient(90deg, var(--navy-2) 50%, var(--navy) 50%);
  font-family: var(--font-display); font-weight: 800; font-size: 1.05rem; letter-spacing: 0.01em; color: #fff;
}
.dock-key { margin-top: 18px; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; font-family: var(--font-mono); font-size: 0.78rem; color: var(--on-night-muted); }
.dock-key span { display: inline-flex; align-items: center; gap: 8px; }
.dock-key span::before { content: ''; width: 16px; height: 11px; border-radius: 3px; }
.key-on::before { border: 1.5px solid rgba(255, 198, 58, 0.8); background: rgba(166, 147, 241, 0.32); }
.key-soon::before { border: 1.5px dashed rgba(193, 183, 247, 0.7); }

.tag {
  display: inline-block; font-family: var(--font-mono); font-size: 0.74rem; font-weight: 400; letter-spacing: 0.1em;
  text-transform: uppercase; padding: 4px 10px; border-radius: 999px; line-height: 1.3; vertical-align: middle;
}
.tag-now { background: var(--sun); color: var(--sun-ink); font-weight: 700; }
.tag-soon { border: 1.5px dashed var(--accent); color: var(--accent); }
.now { display: grid; gap: 18px; align-content: start; }
.now h3, .soon-head h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.now-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.now-list li {
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px;
  color: var(--muted); box-shadow: var(--shadow); display: grid; gap: 4px; position: relative; overflow: hidden;
}
.now-list li::before { content: ''; position: absolute; inset: 0 auto 0 0; width: 4px; background: linear-gradient(180deg, var(--sun), #ff9f43); }
.now-list strong { color: var(--ink); font-family: var(--font-display); font-size: 1.12rem; }
.soon-head { display: grid; gap: 10px; margin-top: clamp(56px, 8vw, 96px); margin-bottom: 28px; max-width: 760px; }
.soon-head p { color: var(--muted); }
.soon { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
.soon-card {
  background: var(--surface); border: 1.5px dashed var(--violet); border-radius: var(--radius); padding: 26px 24px;
  display: grid; gap: 12px; align-content: start; transition: translate 0.35s var(--ease), border-color 0.35s;
}
/* Au survol, la bordure reste en pointillés : le trait plein veut dire « branché aujourd'hui ». */
.soon-card:hover { border-color: var(--accent); }
.soon-card h4 { margin: 0; font-family: var(--font-display); font-size: 1.22rem; line-height: 1.15; letter-spacing: -0.01em; }
.soon-card p { color: var(--muted); }

/* ---------- Philosophie ---------- */
.beliefs { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); counter-reset: belief; }
.belief {
  counter-increment: belief; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 28px; display: grid; gap: 12px; align-content: start; box-shadow: var(--shadow);
  transition: translate 0.35s var(--ease), border-color 0.35s;
}
.belief:hover { border-color: var(--violet); }
.belief::before { content: counter(belief, decimal-leading-zero); font-family: var(--font-mono); color: var(--accent); font-size: 0.85rem; letter-spacing: 0.08em; }
.belief p { color: var(--muted); }

/* ---------- Légende ---------- */
.legend { background: linear-gradient(180deg, var(--night-deep), var(--night) 40%, var(--night-deep)); }
.legend-grid { display: grid; gap: 40px; }
.voyage { position: relative; }
.voyage svg { width: 100%; height: auto; }
.legend-story, .crew { position: relative; z-index: 1; }
.voyage-caption { margin-top: 12px; color: var(--on-night-muted); font-size: 0.95rem; }
.motion-only { display: none; }
.motion .motion-only { display: inline; }
@media (max-width: 999px) { .voyage .place text { font-size: 22px; } }
@media (min-width: 1000px) {
  .legend-grid { grid-template-columns: 6fr 5fr; gap: 72px; align-items: start; }
  .voyage { position: sticky; top: calc(var(--header-h) + 32px); z-index: 3; grid-column: 1; grid-row: 1 / span 2; }
  .voyage-caption { margin-top: 14px; }
  .legend-story, .crew { grid-column: 2; }
}
.voyage .sea { fill: #18214a; }
.voyage .wave { fill: none; stroke: rgba(193, 183, 247, 0.16); stroke-width: 1.5; stroke-linecap: round; }
.voyage .route-bg { fill: none; stroke: rgba(193, 183, 247, 0.38); stroke-width: 2; stroke-dasharray: 2 9; stroke-linecap: round; }
.voyage .route-trail { fill: none; stroke: var(--sun); stroke-width: 3; stroke-linecap: round; }
.voyage .place circle { fill: var(--night-deep); stroke: var(--violet); stroke-width: 2; transition: fill 0.5s, stroke 0.5s; }
.voyage .place text { fill: var(--on-night-muted); font-family: var(--font-mono); font-size: 15px; transition: fill 0.5s; }
.voyage .place.is-reached circle { fill: var(--sun); stroke: var(--sun); }
.voyage .place.is-reached text { fill: var(--on-night); }
.voyage .rock { fill: #2b3a6e; stroke: rgba(193, 183, 247, 0.35); stroke-width: 1.2; }
.voyage .fleece { fill: var(--sun); }
.voyage .ship-hull-a { fill: #3b5a92; }
.voyage .ship-hull-b { fill: #2b4170; }
.voyage .ship-sail { fill: #fff; }
.voyage .ship-sun { fill: var(--sun); }
.voyage .ship-wake { fill: none; stroke: rgba(255, 255, 255, 0.4); stroke-width: 1.5; stroke-linecap: round; }

.legend-story { display: grid; gap: 22px; font-size: 1.12rem; color: var(--on-night-muted); }
.legend-story p:first-of-type::first-letter {
  font-family: var(--font-display); font-weight: 800; float: left; font-size: 3.6em; line-height: 0.8;
  padding: 6px 10px 0 0; color: var(--sun);
}
.legend-story .parallel { color: var(--on-night); font-size: 1.25rem; border-left: 3px solid var(--sun); padding-left: 18px; }
.crew { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 14px; }
.crew-card {
  border: 1px solid var(--night-line); border-radius: var(--radius); padding: 20px 22px;
  background: linear-gradient(135deg, rgba(166, 147, 241, 0.1), rgba(166, 147, 241, 0.02));
  display: grid; gap: 10px;
}
.crew-pair { display: grid; grid-template-columns: minmax(0, 1fr) 44px minmax(0, 1fr); align-items: center; gap: 10px; }
.crew-pair h3 { font-size: 1.2rem; color: var(--on-night); }
.crew-hero small, .crew-agent small { display: block; font-family: var(--font-body); font-weight: 400; font-size: 0.85rem; color: var(--on-night-muted); letter-spacing: 0; margin-top: 2px; }
.crew-agent { text-align: right; font-family: var(--font-display); font-weight: 700; color: #d4cbff; font-size: 1.05rem; line-height: 1.2; }
.crew-link { height: 2px; background: linear-gradient(90deg, var(--violet), var(--sun)); border-radius: 2px; position: relative; transform-origin: left; transform: scaleX(var(--link, 1)); transition: transform 0.9s 0.2s var(--ease); }
.crew-link::after { content: ''; position: absolute; right: -3px; top: -3px; width: 8px; height: 8px; border-radius: 50%; background: var(--sun); }
.crew-card p { color: var(--on-night-muted); font-size: 0.98rem; }
.crew-card.is-captain { border-color: rgba(255, 198, 58, 0.55); background: linear-gradient(135deg, rgba(255, 198, 58, 0.14), rgba(255, 198, 58, 0.02)); }
.crew-card.is-captain .crew-agent { color: var(--sun); }
@media (max-width: 480px) {
  .crew-pair { grid-template-columns: 1fr; gap: 6px; }
  .crew-link { width: 44px; }
  .crew-agent { text-align: left; }
}
.legend-close { margin-top: clamp(56px, 8vw, 96px); text-align: center; font-family: var(--font-display); font-weight: 800; font-size: clamp(1.6rem, 3.6vw, 2.6rem); color: var(--on-night); }
.legend-close span { color: var(--sun); }

/* ---------- Appel à tester ---------- */
.cta-card {
  border-radius: 28px; padding: clamp(32px, 6vw, 72px); position: relative; overflow: hidden;
  background:
    radial-gradient(60% 80% at 100% 0%, rgba(255, 198, 58, 0.2), transparent 60%),
    linear-gradient(135deg, #3b2f8f 0%, var(--navy) 55%, var(--night) 100%);
  color: var(--on-night); display: grid; gap: 28px;
}
.cta-card h2 { max-width: 16ch; }
.cta-card .lede { color: #dde1f2; }
.cta-card .eyebrow { color: var(--sun); }
.facts { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); }
.facts li { background: rgba(12, 16, 39, 0.32); border: 1px solid rgba(241, 242, 251, 0.16); border-radius: 14px; padding: 18px; color: #dde1f2; display: grid; gap: 4px; align-content: start; }
@media (max-width: 600px) {
  .cta-card { background: radial-gradient(70% 30% at 100% 0%, rgba(255, 198, 58, 0.18), transparent 70%), linear-gradient(135deg, #3b2f8f 0%, var(--navy) 55%, var(--night) 100%); }
}
.facts strong { color: var(--on-night); font-family: var(--font-display); font-size: 1.05rem; }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--night-deep); color: var(--on-night-muted); padding-block: 56px 40px; font-size: 0.98rem; }
.footer-grid { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); align-items: start; }
.site-footer .brand { margin-bottom: 10px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { color: var(--on-night); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-legal { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--night-line); display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 0.9rem; }

/* ---------- Page « Tester » ---------- */
.page-hero { margin-top: calc(-1 * var(--header-h)); padding-top: calc(var(--header-h) + clamp(40px, 6vw, 72px)); padding-bottom: clamp(56px, 8vw, 96px);
  background: radial-gradient(50% 70% at 85% 0%, rgba(255, 198, 58, 0.2), transparent 70%), linear-gradient(180deg, var(--night-deep), var(--night)); }
.page-hero-inner { display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center; }
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; letter-spacing: -0.03em; }
.page-hero .lede { margin-top: 14px; }
.page-hero-inner > img { width: 112px; height: 112px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.pill { font-family: var(--font-mono); font-size: 0.8rem; padding: 4px 12px; border-radius: 999px; background: rgba(241, 242, 251, 0.08); border: 1px solid var(--night-line); color: var(--on-night); }
.pill.sun { background: var(--sun); color: var(--sun-ink); border-color: transparent; font-weight: 700; }
@media (max-width: 600px) { .page-hero-inner { grid-template-columns: 1fr; } .page-hero-inner > img { width: 80px; height: 80px; } }
.tester-main { display: grid; gap: clamp(56px, 8vw, 88px); padding-block: clamp(48px, 7vw, 80px) clamp(72px, 10vw, 120px); }
.downloads { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); margin-top: calc(-1 * clamp(88px, 12vw, 140px)); position: relative; z-index: 2; }
.dl { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 28px; display: grid; gap: 16px; box-shadow: var(--shadow); min-width: 0; }
.dl-head { display: flex; align-items: center; gap: 14px; }
.dl-head svg { width: 38px; height: 38px; color: var(--accent); flex: none; }
.dl h2 { font-size: 1.6rem; }
.dl .req { color: var(--muted); font-size: 0.98rem; }
.url { display: flex; gap: 8px; align-items: center; min-width: 0; }
.url code { color: var(--muted); font-size: 0.76rem; min-width: 0; }
.copy { flex: none; font: inherit; font-size: 0.85rem; padding: 6px 12px; min-height: 36px; border-radius: 10px; border: 1px solid var(--line); background: transparent; color: var(--ink); cursor: pointer; }
.copy:hover { border-color: var(--violet); }
.note { background: var(--warn-bg); border: 1px solid var(--warn-line); border-radius: 16px; padding: 20px 22px; display: grid; gap: 8px; }
.note h2 { font-size: 1.25rem; }
.cols { display: grid; gap: clamp(36px, 5vw, 56px); grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.cols > section { display: grid; gap: 16px; align-content: start; min-width: 0; }
.cols h2, .tester-main h2.sub { font-size: clamp(1.6rem, 3vw, 2.1rem); }
.howto { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; counter-reset: howto; }
.howto li { counter-increment: howto; display: grid; grid-template-columns: 36px 1fr; gap: 14px; align-items: start; }
.howto li::before { content: counter(howto); width: 36px; height: 36px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); border: 1px solid var(--line); display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; }
.howto li > span { padding-top: 5px; min-width: 0; }
.ui { font-weight: 700; }
.small { color: var(--muted); font-size: 0.96rem; }
.deflist { display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; margin: 0; }
.deflist dt { color: var(--muted); font-weight: 600; }
.deflist dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 520px) { .deflist { grid-template-columns: 1fr; } .deflist dd { margin-bottom: 8px; } }
.updates { display: grid; gap: 32px; align-items: center; }
@media (min-width: 1000px) { .updates { grid-template-columns: 5fr 6fr; gap: 56px; } }
.updates > div { display: grid; gap: 16px; }
hr.rule { border: 0; border-top: 1px solid var(--line); margin: 0; }

/* ---------- Mentions légales ---------- */
.legal { display: grid; gap: clamp(32px, 5vw, 48px); max-width: 760px; padding-block: clamp(48px, 7vw, 80px) clamp(72px, 10vw, 120px); }
.legal-head { display: grid; gap: 14px; }
.legal section { display: grid; gap: 12px; }
.legal h2 { font-size: clamp(1.4rem, 2.6vw, 1.8rem); }
.legal p, .legal li { color: var(--muted); }
.legal ul { margin: 0; padding-left: 1.2em; display: grid; gap: 6px; }
.legal strong { color: var(--ink); }
.todo { background: var(--warn-bg); border: 1px dashed var(--warn-line); border-radius: 6px; padding: 0 4px; color: var(--ink); }

/* ---------- 404 ---------- */
main.night { margin-top: calc(-1 * var(--header-h)); padding-top: var(--header-h); }
.lost { min-height: calc(100vh - var(--header-h)); display: grid; place-items: center; text-align: center; padding-block: 80px; }
.lost-inner { display: grid; gap: 20px; justify-items: center; }
.lost h1 { font-size: clamp(2.4rem, 7vw, 4.4rem); font-weight: 800; }
.lost .code { font-family: var(--font-mono); color: var(--sun); letter-spacing: 0.2em; }
.lost img { width: 120px; height: 120px; }
@media (prefers-reduced-motion: no-preference) { .lost img { animation: drift 7s ease-in-out infinite; } }
@keyframes drift { 0%, 100% { transform: rotate(-6deg) translateY(0); } 50% { transform: rotate(6deg) translateY(-8px); } }

/* ---------- Apparitions au défilement ----------
   Rien n'est caché sans JavaScript (classe « js » posée par le script) ni quand
   l'utilisateur demande moins d'animations. */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] { opacity: 0; transform: translateY(32px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
  .js [data-reveal='left'] { transform: translateX(-56px); }
  .js [data-reveal='right'] { transform: translateX(56px); }
  .js [data-reveal='zoom'] { transform: scale(0.94); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
  /* Le soulèvement au survol passe par « translate », que l'apparition (transform) ne remet pas à zéro. */
  .soon-card:hover, .belief:hover { translate: 0 -4px; }
  .js .soon-card[data-reveal], .js .belief[data-reveal] { transition: opacity 0.9s var(--ease), transform 0.9s var(--ease), translate 0.35s var(--ease), border-color 0.35s; }
  .js [data-stagger] > :nth-child(2) { transition-delay: 0.08s, 0.08s, 0s, 0s; }
  .js [data-stagger] > :nth-child(3) { transition-delay: 0.16s, 0.16s, 0s, 0s; }
  .js [data-stagger] > :nth-child(4) { transition-delay: 0.24s, 0.24s, 0s, 0s; }
  .js [data-stagger] > :nth-child(5) { transition-delay: 0.32s, 0.32s, 0s, 0s; }
  .js [data-stagger] > :nth-child(6) { transition-delay: 0.4s, 0.4s, 0s, 0s; }
  .js .step-figure[data-reveal] .frame { transition: transform 1.1s var(--ease); transform: rotate(var(--lean, 0deg)); }
  .js .step-figure[data-reveal]:not(.is-in) .frame { --lean: 2.5deg; }
  .js .pillar:not(.is-in) { --bar: 0; }
  .js .crew-card:not(.is-in) { --link: 0; }
  /* Plugins : les modules descendent sur la coque, ceux du bas d'abord, puis les broches branchées s'allument. */
  .js .dock .mod { transition: opacity 0.6s var(--ease), transform 0.7s var(--ease); }
  .js .dock:not(.is-in) .mod { opacity: 0; transform: translateY(-22px); }
  .js .dock:not(.is-in) .mod.is-on::after { color: rgba(193, 183, 247, 0.55); }
  .js .dock .mod:nth-child(4) { transition-delay: 0.2s; }
  .js .dock .mod:nth-child(5) { transition-delay: 0.3s; }
  .js .dock .mod:nth-child(6) { transition-delay: 0.4s; }
  .js .dock .mod:nth-child(1) { transition-delay: 0.6s; }
  .js .dock .mod:nth-child(2) { transition-delay: 0.7s; }
  .js .dock .mod:nth-child(3) { transition-delay: 0.8s; }
  .motion .dock.is-in .mod.is-on { animation: hum 4s 1.8s ease-in-out infinite; }
}
@keyframes hum { 0%, 100% { box-shadow: 0 0 0 0 rgba(255, 198, 58, 0); } 50% { box-shadow: 0 0 22px -4px rgba(255, 198, 58, 0.55); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
@media print {
  .site-header, .voyage, .hero-wave, .copy-status { display: none; }
  [data-reveal], .dock .mod { opacity: 1 !important; transform: none !important; }
}

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