/* Voxsen : même identité que l'app et son écran de connexion (bleu nuit, dégradé indigo → violet, vagues, éclipse). */
@font-face { font-family: "Geist"; src: url("/assets/fonts/geist-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Geist"; src: url("/assets/fonts/geist-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Geist"; src: url("/assets/fonts/geist-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Geist"; src: url("/assets/fonts/geist-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --bg-0: #0a0f1c;
  --bg-1: #10172a;
  --bg-2: #111a2e;
  --bg-3: #18223b;
  --bg-4: #202c4b;
  --line: #1c2640;
  --fg: #e7eaf3;
  --muted: #9aa3bf;
  --faint: #66718f;
  --accent: #4a5cf0;
  --accent-hover: #5c6dff;
  --violet: #9b3ff0;
  --voxsen: #a855f7;
  --ok: #2fd38f;
  --grad: linear-gradient(180deg, #4a5cf0 0%, #6d48f2 55%, #9b3ff0 100%);
  --grad-h: linear-gradient(90deg, #4a5cf0 0%, #6d48f2 55%, #9b3ff0 100%);
  --radius: 18px;
  --wrap: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; overflow-x: clip; }
body {
  margin: 0;
  background:
    radial-gradient(1100px 600px at 10% -10%, rgb(74 92 240 / 0.12), transparent 70%),
    var(--bg-0);
  color: var(--fg);
  font-family: "Geist", "Segoe UI", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; letter-spacing: -0.02em; line-height: 1.1; }
p { margin: 0; }
::selection { background: rgb(74 92 240 / 0.45); }
:focus-visible { outline: 2px solid var(--accent-hover); outline-offset: 3px; border-radius: 8px; }

.grad-text {
  background: linear-gradient(90deg, #8ea0ff, #c084fc);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 52px;
  padding: 0 24px;
  border-radius: 14px;
  font: inherit;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  cursor: pointer;
  border: 0;
  transition: transform 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 14px 34px -14px var(--accent); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost { background: rgb(255 255 255 / 0.04); color: var(--fg); border: 1px solid var(--line); }
.btn-ghost:hover { background: rgb(255 255 255 / 0.08); border-color: #2c3858; }
.btn-white { background: #fff; color: #3b2bb8; box-shadow: 0 18px 40px -16px rgb(0 0 0 / 0.55); }
.btn-small { height: 42px; padding: 0 16px; font-size: 14.5px; border-radius: 12px; }
.btn-small svg { width: 17px; height: 17px; }
.btn[aria-disabled="true"] { opacity: 0.45; pointer-events: none; }

/* ---------- Barre du haut ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 24px;
  height: 76px;
  padding: 0 clamp(20px, 4vw, 48px);
  transition: background-color 0.25s ease, border-color 0.25s ease, backdrop-filter 0.25s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled { background: rgb(10 15 28 / 0.78); backdrop-filter: blur(14px); border-color: var(--line); }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { border-radius: 10px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: 21px; letter-spacing: -0.02em; }
.brand-text small { font-size: 11.5px; color: var(--muted); }
.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a { padding: 8px 14px; border-radius: 10px; color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 500; }
.nav-links a:hover { color: var(--fg); background: rgb(255 255 255 / 0.05); }

/* ---------- Héros ---------- */
.hero { position: relative; display: grid; grid-template-columns: 1fr 1fr; min-height: max(100vh, 760px); }
.hero-dark { position: relative; overflow: hidden; display: flex; align-items: center; padding: 130px clamp(120px, 9vw, 160px) 80px clamp(24px, 5vw, 80px); }
.eclipse {
  position: absolute;
  left: -260px;
  bottom: -300px;
  width: 720px;
  height: 720px;
  border-radius: 50%;
  border: 2px solid rgb(216 180 254 / 0.35);
  box-shadow: 0 0 140px 34px rgb(168 85 247 / 0.2), inset 0 0 90px 10px rgb(168 85 247 / 0.16);
  pointer-events: none;
}
.hero-copy { position: relative; max-width: 560px; margin-left: auto; }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px 7px 10px;
  border-radius: 999px;
  background: rgb(74 92 240 / 0.12);
  border: 1px solid rgb(74 92 240 / 0.35);
  color: #b9c3ff;
  font-size: 13.5px;
  font-weight: 500;
  text-decoration: none;
}
.pill-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 10px var(--ok); }
.hero h1 { margin-top: 24px; font-size: clamp(48px, 6.4vw, 88px); font-weight: 700; letter-spacing: -0.035em; line-height: 0.98; }
.lead { margin-top: 26px; font-size: 18.5px; color: var(--muted); max-width: 520px; }
.lead strong { color: var(--fg); font-weight: 600; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.meta { margin-top: 14px; font-size: 14px; color: var(--faint); }
.trust { display: flex; flex-wrap: wrap; gap: 18px; margin: 28px 0 0; padding: 0; list-style: none; font-size: 14px; color: var(--muted); }
.trust span { color: var(--ok); font-weight: 700; margin-right: 4px; }

.hero-grad { position: relative; background: var(--grad); display: flex; align-items: center; justify-content: center; padding: 120px 0 80px; }
.wave { position: absolute; pointer-events: none; overflow: visible; }
.wave-v { top: 0; bottom: 0; left: -110px; width: 120px; height: 100%; }
.wave-back { animation: wave 7s ease-in-out infinite; }
@keyframes wave { 0%, 100% { transform: translateY(0) } 50% { transform: translateY(-14px) } }

.stars {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(2px 2px at 12% 18%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 78% 9%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 64% 34%, #fff 50%, transparent 51%),
    radial-gradient(2px 2px at 88% 52%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 20% 70%, #fff 50%, transparent 51%),
    radial-gradient(2px 2px at 70% 86%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 40% 92%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 92% 24%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 33% 8%, #fff 50%, transparent 51%);
  opacity: 0.55;
}

/* Fenêtre d'app (capture) */
.window {
  position: relative;
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  background: var(--bg-0);
  border: 1px solid rgb(255 255 255 / 0.12);
  box-shadow: 0 50px 100px -30px rgb(12 6 40 / 0.75), 0 0 0 1px rgb(0 0 0 / 0.25);
}
.window-bar { display: flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px; background: #0d1426; border-bottom: 1px solid var(--line); }
.window-bar i { width: 11px; height: 11px; border-radius: 50%; background: #2a3554; }
.window-bar span { margin-left: 8px; font-size: 12.5px; color: var(--faint); font-weight: 500; }
.hero-grad .window {
  width: min(104%, 940px);
  margin-left: 2%;
  transform: perspective(1600px) rotateY(-9deg) rotateX(3deg);
  transform-origin: left center;
  transition: transform 0.4s ease;
}
.hero-grad .window:hover { transform: perspective(1600px) rotateY(-4deg) rotateX(1deg); }

/* Petites cartes flottantes */
.float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 16px;
  background: rgb(16 23 42 / 0.92);
  border: 1px solid rgb(255 255 255 / 0.1);
  box-shadow: 0 24px 50px -20px rgb(0 0 0 / 0.7);
  backdrop-filter: blur(10px);
  font-size: 14px;
  animation: float 6s ease-in-out infinite;
}
.float-card strong { display: block; font-size: 14px; }
.float-card small { color: var(--muted); font-size: 12.5px; }
.float-card { z-index: 3; }
.float-voice { left: -4%; bottom: 15%; }
.float-poke { right: 5%; top: 13%; animation-delay: -3s; }
.float-poke .emoji { font-size: 26px; }
@keyframes float { 0%, 100% { translate: 0 0 } 50% { translate: 0 -10px } }
.eq { display: inline-flex; align-items: center; gap: 3px; height: 22px; color: var(--ok); }
.eq i { display: block; width: 3.5px; height: 20px; border-radius: 3px; background: currentColor; animation: eq 1s ease-in-out infinite; transform-origin: center; }
.eq i:nth-child(2) { animation-delay: -0.3s } .eq i:nth-child(3) { animation-delay: -0.6s } .eq i:nth-child(4) { animation-delay: -0.15s }
@keyframes eq { 0%, 100% { transform: scaleY(0.35) } 50% { transform: scaleY(1) } }

/* ---------- Chiffres ---------- */
.stats-wrap { max-width: var(--wrap); margin: -56px auto 0; position: relative; z-index: 2; }
.stats-note { margin-top: 12px; padding: 0 8px; text-align: center; color: var(--faint); font-size: 13px; }
.star { color: var(--accent-hover); font-weight: 700; margin-left: 1px; }
.feature-note { margin: 14px 0 0; color: var(--faint); font-size: 13px; }
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  position: relative;
  z-index: 2;
  border-radius: 22px;
  background: rgb(16 23 42 / 0.9);
  border: 1px solid var(--line);
  box-shadow: 0 30px 60px -30px rgb(0 0 0 / 0.7);
  backdrop-filter: blur(12px);
}
.stats div { padding: 26px 28px; display: flex; flex-direction: column; gap: 4px; }
.stats div + div { border-left: 1px solid var(--line); }
.stats strong { white-space: nowrap; font-size: 34px; font-weight: 700; letter-spacing: -0.03em; background: linear-gradient(90deg, #8ea0ff, #c084fc); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stats span { color: var(--muted); font-size: 14.5px; }

/* ---------- Sections ---------- */
.section { max-width: var(--wrap); margin: 0 auto; padding: 120px clamp(20px, 4vw, 40px) 0; }
.section-head { max-width: 680px; margin: 0 auto 52px; text-align: center; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: #a5b1ff; }
.section h2 { margin-top: 12px; font-size: clamp(32px, 4vw, 48px); font-weight: 700; }
.sub { margin-top: 16px; font-size: 18px; color: var(--muted); }

/* ---------- Aperçu ---------- */
.tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-bottom: 28px; }
.tabs button {
  height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgb(255 255 255 / 0.03);
  color: var(--muted);
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.tabs button:hover { color: var(--fg); background: rgb(255 255 255 / 0.07); }
.tabs button[aria-selected="true"] { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 10px 26px -12px var(--accent); }
.window-wide { max-width: 1080px; margin: 0 auto; }
.window-wide img { transition: opacity 0.25s ease; }
.window-wide img.fading { opacity: 0; }
.window-wide figcaption { padding: 16px 20px; background: #0d1426; border-top: 1px solid var(--line); color: var(--muted); font-size: 15px; text-align: center; }
.showcase { position: relative; }
.showcase::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 260px;
  width: min(900px, 100%);
  height: 500px;
  translate: -50% 0;
  background: radial-gradient(closest-side, rgb(109 72 242 / 0.25), transparent);
  pointer-events: none;
  z-index: -1;
}

/* ---------- Étapes ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 0; padding: 0; list-style: none; counter-reset: none; }
.step { position: relative; padding: 30px 28px; border-radius: var(--radius); background: rgb(16 23 42 / 0.6); border: 1px solid var(--line); }
.step-n {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 2px solid rgb(216 180 254 / 0.45);
  box-shadow: 0 0 22px -4px rgb(168 85 247 / 0.6);
  color: #e9d5ff;
  font-weight: 700;
  margin-bottom: 18px;
}
.step h3 { font-size: 19px; font-weight: 600; }
.step p { margin-top: 8px; color: var(--muted); font-size: 15.5px; }
.step em { color: var(--fg); font-style: normal; font-weight: 500; }
.link { display: inline-block; margin-top: 14px; color: #a5b1ff; font-weight: 600; text-decoration: none; }
.link:hover { color: #fff; }
.address-examples { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.address-examples span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--bg-0);
  font-size: 14px;
  font-weight: 600;
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
}
.address-examples svg { width: 16px; height: 16px; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Héberger ---------- */
.server-grid { display: grid; grid-template-columns: 1fr 1fr 1.15fr; gap: 16px; }
.server-card, .server-points { padding: 30px 28px; border-radius: var(--radius); border: 1px solid var(--line); background: rgb(16 23 42 / 0.6); }
.server-card { display: flex; flex-direction: column; align-items: flex-start; }
.server-card p { margin: 8px 0 22px; color: var(--muted); font-size: 15.5px; flex: 1; }
.server-card em { color: var(--fg); font-style: normal; font-weight: 500; }
.server-card h3, .server-points h3 { font-size: 19px; font-weight: 600; }
.server-card .btn { height: 46px; font-size: 15px; }
.server-os { display: flex; width: 50px; height: 50px; align-items: center; justify-content: center; border-radius: 15px; background: var(--grad); margin-bottom: 18px; box-shadow: 0 12px 26px -12px var(--accent); }
.server-os svg { width: 24px; height: 24px; fill: #fff; stroke: none; }
code { font-family: ui-monospace, "Cascadia Code", Consolas, monospace; font-size: 0.9em; padding: 2px 6px; border-radius: 6px; background: var(--bg-0); border: 1px solid var(--line); color: var(--fg); }
.server-points { background: linear-gradient(160deg, rgb(74 92 240 / 0.14), rgb(155 63 240 / 0.08)); border-color: #26305a; }
.server-points ul { list-style: none; margin: 16px 0 18px; padding: 0; display: grid; gap: 12px; }
.server-points li { display: flex; align-items: flex-start; gap: 12px; color: var(--muted); font-size: 15px; }
.server-points li p { margin: 1px 0 0; }
.server-points li strong { color: var(--fg); font-weight: 600; }
.server-points li span {
  flex: none;
  display: inline-flex;
  width: 24px;
  height: 24px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1.5px solid rgb(216 180 254 / 0.5);
  color: #e9d5ff;
  font-size: 12px;
  font-weight: 700;
}

/* ---------- Appel final ---------- */
.final { position: relative; margin-top: 140px; }
.wave-h { position: relative; display: block; width: 100%; height: 120px; margin-bottom: -2px; }
.final-inner { position: relative; overflow: hidden; background: var(--grad-h); padding: 40px 24px 110px; text-align: center; color: #fff; }
.final-logo { margin: 0 auto 22px; border-radius: 22px; box-shadow: 0 20px 50px -18px rgb(10 0 40 / 0.8); }
.final h2 { font-size: clamp(34px, 4.6vw, 56px); font-weight: 700; }
.final p { margin: 14px auto 32px; max-width: 520px; color: rgb(255 255 255 / 0.8); font-size: 18px; }

/* ---------- Pied de page ---------- */
.footer { background: #070b16; border-top: 1px solid var(--line); color: var(--faint); font-size: 14px; }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; max-width: var(--wrap); margin: 0 auto; padding: 56px clamp(20px, 4vw, 40px) 40px; }
.footer-brand p { margin-top: 16px; max-width: 320px; color: var(--muted); font-size: 14.5px; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col h4 { margin: 0 0 6px; color: var(--fg); font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; }
.footer-col a { color: var(--muted); text-decoration: none; }
.footer-col a:hover { color: var(--fg); }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; max-width: var(--wrap); margin: 0 auto; padding: 20px clamp(20px, 4vw, 40px) 28px; border-top: 1px solid var(--line); }
.footer-made { flex: 1; }
.footer-made span { color: #f08aa8; }
.footer a[data-top] { color: var(--muted); text-decoration: none; }
.footer a[data-top]:hover { color: var(--fg); }

/* ---------- Pages de contenu (documentation, mentions légales…) ---------- */
.page-hero { position: relative; overflow: hidden; padding: 150px clamp(20px, 4vw, 40px) 70px; background: var(--grad-h); color: #fff; text-align: center; }
.page-hero h1 { font-size: clamp(36px, 5vw, 58px); font-weight: 700; }
.page-hero p { margin: 14px auto 0; max-width: 640px; color: rgb(255 255 255 / 0.82); font-size: 18px; }
.page-hero .wave-h { position: absolute; left: 0; right: 0; bottom: -2px; height: 70px; }
.page { display: grid; grid-template-columns: 240px 1fr; gap: 48px; max-width: var(--wrap); margin: 0 auto; padding: 56px clamp(20px, 4vw, 40px) 100px; }
.page-toc { position: sticky; top: 100px; align-self: start; display: flex; flex-direction: column; gap: 2px; font-size: 14.5px; }
.page-toc strong { margin-bottom: 8px; color: var(--faint); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; }
.page-toc a { padding: 7px 12px; border-radius: 10px; color: var(--muted); text-decoration: none; border-left: 2px solid transparent; }
.page-toc a:hover { color: var(--fg); background: rgb(255 255 255 / 0.04); }
.prose { max-width: 760px; color: var(--muted); font-size: 16.5px; }
.prose h2 { margin: 52px 0 16px; color: var(--fg); font-size: 28px; font-weight: 700; scroll-margin-top: 100px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin: 30px 0 10px; color: var(--fg); font-size: 19px; font-weight: 600; }
.prose p, .prose ul, .prose ol { margin: 0 0 14px; }
.prose li { margin-bottom: 6px; }
.prose strong { color: var(--fg); font-weight: 600; }
.prose a { color: #a5b1ff; }
.prose pre { margin: 0 0 16px; padding: 16px 18px; border-radius: 14px; background: #060a14; border: 1px solid var(--line); overflow-x: auto; color: #d6dcff; font-size: 14.5px; line-height: 1.7; }
.prose pre code { padding: 0; border: 0; background: none; }
.prose table { width: 100%; margin: 0 0 18px; border-collapse: collapse; font-size: 15px; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); }
.prose th, .prose td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--line); }
.prose th { background: rgb(24 34 59 / 0.7); color: var(--fg); font-weight: 600; }
.prose tr:last-child td { border-bottom: 0; }
.callout { margin: 0 0 18px; padding: 16px 18px; border-radius: 14px; border: 1px solid #2b3a66; background: rgb(74 92 240 / 0.1); color: var(--fg); font-size: 15.5px; }
.callout.warn { border-color: rgb(245 181 68 / 0.4); background: rgb(245 181 68 / 0.08); }
.fill { padding: 1px 6px; border-radius: 6px; background: rgb(245 181 68 / 0.15); color: #f5c76a; font-weight: 600; }
.steps-inline { counter-reset: s; list-style: none; padding: 0; }
.steps-inline > li { position: relative; padding-left: 46px; margin-bottom: 18px; }
.steps-inline > li::before {
  counter-increment: s;
  content: counter(s);
  position: absolute;
  left: 0;
  top: -2px;
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1.5px solid rgb(216 180 254 / 0.5);
  color: #e9d5ff;
  font-size: 13px;
  font-weight: 700;
}
.dl-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 6px 0 22px; }

/* ---------- Apparition au défilement ---------- */
.reveal { opacity: 0; translate: 0 24px; transition: opacity 0.7s ease, translate 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); }
.reveal.shown { opacity: 1; translate: 0 0; }
.steps .reveal:nth-child(2) { transition-delay: 0.08s; }
.steps .reveal:nth-child(3) { transition-delay: 0.16s; }

/* Héros : apparaît dès le chargement (sans attendre le JavaScript). */
.intro { animation: intro 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.intro-late { animation-delay: 0.15s; }
.intro-later { animation-delay: 0.45s; }
.float-card.intro { animation: intro 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both, float 6s ease-in-out 1.2s infinite; }
.float-poke.intro { animation-delay: 0.45s, -2s; }
@keyframes intro { from { opacity: 0; translate: 0 24px; } to { opacity: 1; translate: 0 0; } }

/* ---------- Écrans plus petits ---------- */
@media (max-width: 1080px) {
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-dark { padding: 120px 24px 72px; }
  .hero-copy { margin: 0 auto; text-align: center; }
  .cta, .trust { justify-content: center; }
  .lead { margin-left: auto; margin-right: auto; }
  .hero-grad { padding: 90px 24px 120px; }
  .wave-v { display: none; }
  .hero-grad::before {
    content: "";
    position: absolute;
    top: -1px;
    left: 0;
    right: 0;
    height: 70px;
    background: var(--bg-0);
    clip-path: path("M0 0 H2000 V20 C 1500 70, 1000 0, 600 40 S 100 50, 0 20 Z");
  }
  .hero-grad .window { width: 100%; margin: 0; transform: none; }
  .hero-grad .window:hover { transform: none; }
  .server-grid { grid-template-columns: 1fr 1fr; }
  .server-points { grid-column: 1 / -1; }
  .footer-top { grid-template-columns: 1fr 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .page { grid-template-columns: 1fr; }
  .page-toc { position: static; display: none; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats-wrap { margin: -60px 20px 0; }
  .stats div:nth-child(3) { border-left: 0; }
  .stats div:nth-child(n + 3) { border-top: 1px solid var(--line); }
}
@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav .btn-small { margin-left: auto; }
  .brand-text small { display: none; }
  .steps, .server-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .float-card { display: none; }
  .hero h1 { font-size: 52px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; translate: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Commencer : switch Client / Serveur ---------- */
.mode-switch { display: flex; justify-content: center; gap: 6px; width: fit-content; margin: 0 auto 30px; padding: 6px; border-radius: 20px; border: 1px solid var(--line); background: rgb(16 23 42 / 0.7); }
.mode-switch button {
  display: flex; align-items: center; gap: 12px; min-width: 210px; padding: 10px 18px 10px 14px; border: 0; border-radius: 15px;
  background: none; color: var(--muted); font: inherit; text-align: left; cursor: pointer; transition: background-color 0.15s ease, color 0.15s ease;
}
.mode-switch button:hover { color: var(--fg); background: rgb(255 255 255 / 0.05); }
.mode-switch button[aria-selected="true"] { background: var(--grad); color: #fff; box-shadow: 0 12px 30px -14px var(--accent); }
.mode-switch svg { width: 26px; height: 26px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.mode-switch span { display: grid; line-height: 1.25; }
.mode-switch strong { font-size: 16px; font-weight: 600; }
.mode-switch small { font-size: 13px; opacity: 0.8; }
.mode-panel { animation: mode-in 0.3s ease; }
.mode-sub { max-width: 680px; margin: 0 auto 28px; text-align: center; }
@keyframes mode-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (max-width: 560px) {
  .mode-switch { width: 100%; }
  .mode-switch button { min-width: 0; flex: 1; }
}

/* ---------- Fonctionnalités phares (zigzag texte / capture) ---------- */
.feature { display: grid; grid-template-columns: 0.9fr 1.1fr; align-items: center; gap: clamp(28px, 5vw, 64px); margin-bottom: 96px; }
.feature:last-child { margin-bottom: 0; }
.feature-flip .feature-copy { order: 2; }
.feature-tag { display: inline-block; padding: 6px 12px; border-radius: 999px; background: rgb(74 92 240 / 0.12); border: 1px solid rgb(74 92 240 / 0.3); color: #c7cffd; font-size: 13.5px; font-weight: 600; }
.feature h3 { margin-top: 16px; font-size: clamp(26px, 3vw, 36px); font-weight: 700; }
.feature-copy > p { margin-top: 14px; color: var(--muted); font-size: 17px; }
.checks { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 32px; color: var(--muted); font-size: 15.5px; }
.checks li strong { color: var(--fg); font-weight: 600; }
.checks li::before {
  content: "✓"; position: absolute; left: 0; top: 1px; width: 22px; height: 22px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%; background: rgb(47 211 143 / 0.14); color: var(--ok); font-size: 12px; font-weight: 700;
}
.feature-shot { position: relative; margin: 0; border-radius: 18px; overflow: hidden; border: 1px solid rgb(255 255 255 / 0.1); box-shadow: 0 40px 80px -36px rgb(12 6 40 / 0.9), 0 0 0 1px rgb(0 0 0 / 0.25); }
.feature-shot::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.04); pointer-events: none; }
.feature-shot img { display: block; width: 100%; height: auto; aspect-ratio: 1280 / 800; object-fit: contain; transition: transform 0.5s ease; }
.feature-shot::before {
  content: ""; position: absolute; inset: auto -20% -40% -20%; height: 60%; z-index: -1;
  background: radial-gradient(closest-side, rgb(109 72 242 / 0.35), transparent);
}

/* Pourquoi Voxsen : titre à gauche, trois points numérotés à droite. */
.pillars { display: grid; grid-template-columns: 5fr 7fr; gap: 72px; align-items: start; }
.pillars-head { position: sticky; top: 110px; }
.pillars-head h2 { margin-top: 10px; }
.pillars-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.pillars-list li { display: flex; gap: 28px; padding: 30px 0; border-bottom: 1px solid var(--line); }
.pillar-num { flex-shrink: 0; width: 44px; font-size: 15px; font-weight: 700; letter-spacing: 0.06em; background: var(--grad-h); -webkit-background-clip: text; background-clip: text; color: transparent; padding-top: 3px; }
.pillars-list h3 { font-size: 20px; font-weight: 700; }
.pillars-list p { margin-top: 8px; color: var(--muted); font-size: 15.5px; }

/* ---------- Questions fréquentes ---------- */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 10px; }
.faq details { border-radius: 16px; border: 1px solid var(--line); background: rgb(16 23 42 / 0.6); transition: border-color 0.2s ease, background-color 0.2s ease; }
.faq details[open] { border-color: #2f3b66; background: rgb(24 34 59 / 0.55); }
.faq summary { position: relative; padding: 18px 56px 18px 22px; cursor: pointer; list-style: none; font-weight: 600; font-size: 16.5px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 22px; top: 50%; translate: 0 -50%; color: #a5b1ff; font-size: 22px; font-weight: 400; transition: rotate 0.2s ease; }
.faq details[open] summary::after { rotate: 45deg; }
.faq details p { padding: 0 22px 20px; color: var(--muted); font-size: 15.5px; }

/* Carte flottante « LIVE » du héros */
.float-live { right: 2%; bottom: 7%; animation-delay: -1.5s; }
.float-live.intro { animation-delay: 0.6s, -1s; }
.live { padding: 3px 7px; border-radius: 6px; background: #f2555a; color: #fff; font-size: 11px; font-weight: 800; letter-spacing: 0.04em; }

@media (max-width: 1080px) {
  .feature, .feature-flip { grid-template-columns: 1fr; gap: 28px; }
  .feature-flip .feature-copy { order: 0; }
  .pillars { grid-template-columns: 1fr; gap: 36px; }
  .pillars-head { position: static; }
}

/* Fonctionnalités sur grand écran : section plus large, titre à gauche, captures plus grandes en alternance gauche / droite. */
@media (min-width: 1081px) {
  #fonctionnalites { max-width: 1400px; padding-inline: clamp(40px, 4vw, 64px); }
  #fonctionnalites .section-head { margin: 0 0 72px; max-width: 760px; text-align: left; }
  #fonctionnalites .feature { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(48px, 5vw, 80px); margin-bottom: 120px; }
  #fonctionnalites .feature-flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  #fonctionnalites .feature:last-child { margin-bottom: 0; }
  #fonctionnalites .feature-copy { max-width: 500px; }
  #fonctionnalites .feature-flip .feature-copy { justify-self: end; }
  #fonctionnalites .feature h3 { font-size: clamp(28px, 2.4vw, 38px); }
  #fonctionnalites .feature-copy > p { font-size: 17px; }
}

/* Barre du haut : six liens sur une ligne, plus serrés sur les écrans moyens. */
.nav-links a, .brand-text { white-space: nowrap; }
@media (max-width: 1280px) {
  .nav { gap: 16px; }
  .nav-links a { padding: 8px 9px; font-size: 14.5px; }
}
@media (max-width: 1180px) {
  .brand-text small { display: none; }
}
@media (max-width: 1040px) {
  .nav-anchor { display: none; }
}
