/* Skynet Zero — feuille de style unique (aucun style en ligne, CSP stricte) */

:root {
  --bg: #f6f0e4;
  --bg-alt: #ede5d3;
  --surface: #fffdf8;
  --ink: #1d1b16;
  --ink-2: #44403a;
  --muted: #5c5749;
  --line: #d8cdb6;
  --accent: #c8321a;
  --accent-strong: #a82812;
  --accent-ink: #ffffff;
  --accent-soft: #f6dcd2;
  --good: #8a5a00;
  --shadow: 0 1px 0 rgba(29, 27, 22, .04), 0 18px 40px -22px rgba(29, 27, 22, .35);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(20px, 5vw, 48px);
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14120e;
    --bg-alt: #1b1812;
    --surface: #211e17;
    --ink: #f4eee1;
    --ink-2: #d3cbb8;
    --muted: #b4ac98;
    --line: #3b362a;
    --accent: #ff6b4a;
    --accent-strong: #ff8466;
    --accent-ink: #1a0b06;
    --accent-soft: #3a1c13;
    --good: #e2b04a;
    --shadow: 0 1px 0 rgba(255, 255, 255, .03), 0 18px 40px -22px rgba(0, 0, 0, .8);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  overflow-x: hidden;
}
img, svg { max-width: 100%; }
a { color: var(--accent-strong); text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 820px; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 8px; text-decoration: none;
}
.skip:focus { top: 12px; }

/* ---------- En-tête ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid var(--line);
}
.bar { display: flex; align-items: center; gap: 20px; min-height: 64px; flex-wrap: wrap; padding-block: 8px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; margin-right: auto; }
.brand-name { font-family: var(--serif); font-weight: 700; font-size: 1.25rem; letter-spacing: -.01em; }
.brand-mark .m-ring { stroke: var(--accent); }
.brand-mark .m-dot { fill: var(--ink); }
.nav { display: none; gap: 22px; }
.nav a { color: var(--ink-2); text-decoration: none; font-size: .95rem; padding: 6px 2px; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--ink); border-bottom-color: var(--accent); }
.status-pill {
  display: inline-flex; align-items: center; gap: 8px; margin: 0;
  font-size: .82rem; font-weight: 600; letter-spacing: .02em;
  padding: 6px 12px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent-strong); border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
}
.status-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .45; transform: scale(.8); } }
@media (min-width: 860px) { .nav { display: flex; } }

/* ---------- Typo ---------- */
h1, h2, h3 { font-family: var(--serif); line-height: 1.12; letter-spacing: -.015em; margin: 0; }
h1 { font-size: clamp(2.25rem, 1.2rem + 4.6vw, 4.5rem); font-weight: 700; letter-spacing: -.025em; line-height: 1.04; }
h1 .accent { color: var(--accent); }
h2 { font-size: clamp(1.9rem, 1.2rem + 2.6vw, 3rem); font-weight: 700; }
h3 { font-size: 1.3rem; font-weight: 700; }
.eyebrow {
  margin: 0 0 18px; font-family: var(--sans); font-size: .8rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--accent-strong);
  display: flex; align-items: center; gap: 12px;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--accent); }
.lead { font-size: clamp(1.1rem, 1rem + .5vw, 1.3rem); color: var(--ink-2); max-width: 36em; margin: 26px 0 0; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--accent); color: var(--accent-ink); font-weight: 700; font-size: 1.05rem;
  padding: 16px 26px; border-radius: 14px; text-decoration: none;
  box-shadow: 0 10px 24px -12px color-mix(in srgb, var(--accent) 80%, transparent), inset 0 -2px 0 rgba(0, 0, 0, .12);
  transition: transform .18s ease, background-color .18s ease;
}
.btn::after { content: "→"; transition: transform .18s ease; }
.btn:hover { background: var(--accent-strong); transform: translateY(-2px); text-decoration: none; }
.btn:hover::after { transform: translateX(4px); }
.btn:focus-visible { outline-color: var(--ink); }
.cta-note { margin: 0; font-size: .92rem; color: var(--muted); max-width: 30em; }
.cta-note strong { color: var(--ink); }

/* ---------- Hero ---------- */
.hero { position: relative; padding-block: clamp(48px, 8vw, 112px) clamp(56px, 8vw, 104px); overflow: hidden; }
.hero::before {
  content: "0"; position: absolute; right: -2vw; top: -6vw; z-index: 0;
  font-family: var(--serif); font-weight: 700; line-height: 1;
  font-size: clamp(22rem, 52vw, 52rem);
  color: transparent; -webkit-text-stroke: 2px color-mix(in srgb, var(--accent) 22%, transparent);
  pointer-events: none; user-select: none;
}
@media (max-width: 699px) { .hero::before { opacity: .35; top: auto; bottom: -12vw; right: -18vw; } }
.hero-grid { position: relative; z-index: 1; display: grid; gap: 56px; align-items: center; }
@media (min-width: 980px) { .hero-grid { grid-template-columns: 1.25fr .75fr; gap: 72px; } }
.cta-row { margin-top: 36px; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }

/* Panneau de contrôle (illustration) */
.panel {
  margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 22px;
  box-shadow: var(--shadow); padding: 20px 24px 26px; max-width: 420px; justify-self: center; width: 100%;
}
.panel-top { display: flex; justify-content: space-between; align-items: center; padding-bottom: 14px; border-bottom: 1px dashed var(--line); }
.panel-label { font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
.panel-tag { font-size: .72rem; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px; }
.dial { display: grid; justify-items: center; padding: 22px 0 10px; }
.dial svg { width: min(220px, 62vw); height: auto; }
.d-ticks { stroke: var(--line); stroke-dasharray: 2 8.02; }
.d-track { stroke: var(--bg-alt); }
.d-fill { stroke: var(--accent); stroke-dasharray: 100 100; animation: draw 1.6s cubic-bezier(.3, .7, .2, 1) both; }
.d-zero { font-family: var(--serif); font-weight: 700; font-size: 104px; fill: var(--ink); }
@keyframes draw { from { stroke-dasharray: 0 100; } to { stroke-dasharray: 100 100; } }
.dial-caption { margin: 6px 0 0; text-align: center; font-weight: 600; line-height: 1.35; }
.dial-caption span { font-weight: 400; font-size: .88rem; color: var(--muted); }
.ticks { list-style: none; margin: 18px 0 0; padding: 18px 0 0; border-top: 1px dashed var(--line); display: grid; gap: 12px; }
.ticks li { display: flex; align-items: center; gap: 14px; font-weight: 600; }
.box {
  position: relative; flex: none; width: 24px; height: 24px; border-radius: 7px;
  border: 2px solid var(--accent); background: var(--accent);
  animation: fillbox .5s ease both;
}
.box::after {
  content: ""; position: absolute; left: 7px; top: 2px; width: 6px; height: 12px;
  border: solid var(--accent-ink); border-width: 0 3px 3px 0; transform: rotate(45deg);
  animation: tick .4s ease both;
}
.ticks li:nth-child(1) .box, .ticks li:nth-child(1) .box::after { animation-delay: 1.0s; }
.ticks li:nth-child(2) .box, .ticks li:nth-child(2) .box::after { animation-delay: 1.5s; }
.ticks li:nth-child(3) .box, .ticks li:nth-child(3) .box::after { animation-delay: 2.0s; }
.ticks li:nth-child(4) .box, .ticks li:nth-child(4) .box::after { animation-delay: 2.5s; }
@keyframes fillbox { from { background: transparent; } to { background: var(--accent); } }
@keyframes tick { from { opacity: 0; transform: rotate(45deg) scale(.3); } to { opacity: 1; transform: rotate(45deg) scale(1); } }

/* ---------- Sections ---------- */
.section { padding-block: clamp(64px, 9vw, 120px); }
.section.alt { background: var(--bg-alt); border-block: 1px solid var(--line); }
.section-head { max-width: 760px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-intro { color: var(--muted); font-size: 1.05rem; margin: 18px 0 0; }

.prose-cols { display: grid; gap: 20px 56px; max-width: 1040px; }
.prose-cols p { margin: 0; color: var(--ink-2); }
.prose-cols strong { color: var(--ink); }
@media (min-width: 860px) { .prose-cols { grid-template-columns: 1fr 1fr; } }

/* Trois colonnes */
.triptych { display: grid; gap: 18px; margin-top: 48px; }
@media (min-width: 860px) { .triptych { grid-template-columns: repeat(3, 1fr); } }
.col { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 26px 26px 28px; border-top-width: 6px; }
.col h3 { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.col ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.col li { position: relative; padding-left: 22px; color: var(--ink-2); font-size: 1rem; line-height: 1.5; }
.col li::before { content: ""; position: absolute; left: 0; top: .55em; width: 9px; height: 9px; border-radius: 50%; background: currentColor; opacity: .55; }
.col-mark { width: 16px; height: 16px; border-radius: 50%; flex: none; }
.col-must { border-top-color: var(--accent); }
.col-must .col-mark { background: var(--accent); }
.col-must li::before { color: var(--accent); opacity: 1; }
.col-good { border-top-color: var(--good); }
.col-good .col-mark { border: 3px solid var(--good); }
.col-good li::before { color: var(--good); opacity: 1; background: transparent; border: 2px solid currentColor; }
.col-no { border-top-color: var(--muted); }
.col-no .col-mark { border: 3px dashed var(--muted); }
.col-no li::before { color: var(--muted); background: transparent; border: 2px dashed currentColor; opacity: 1; }

.aside {
  margin: 32px 0 0; padding: 20px 24px; border-left: 4px solid var(--accent); background: var(--surface);
  border-radius: 0 14px 14px 0; color: var(--ink-2); max-width: 900px; font-size: 1rem;
}
.aside strong { color: var(--ink); }
.sources { margin-top: 24px; max-width: 900px; font-size: .95rem; color: var(--muted); }
.sources summary { cursor: pointer; font-weight: 600; color: var(--ink-2); padding: 6px 0; }
.sources ul { margin: 8px 0 0; padding-left: 20px; display: grid; gap: 6px; }

/* Kit */
.kit-grid { display: grid; gap: 18px; }
@media (min-width: 900px) { .kit-grid { grid-template-columns: repeat(3, 1fr); } .kit-grid .kit-card:first-child { grid-column: 1 / -1; } .kit-card:first-child > p:not(.kit-num) { max-width: 44em; } }
.kit-card {
  position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 22px;
  padding: 30px 30px 32px; box-shadow: var(--shadow); overflow: hidden;
}
.kit-card h3 { font-size: 1.5rem; margin-bottom: 12px; }
.kit-card p { margin: 0 0 14px; color: var(--ink-2); }
.kit-num {
  margin: 0 0 6px !important; font-family: var(--serif); font-weight: 700; font-size: 3.6rem; line-height: 1;
  color: transparent !important; -webkit-text-stroke: 1.5px var(--accent);
}
.modules { margin: 18px 0 0; padding: 0; list-style: none; counter-reset: m; display: grid; gap: 10px 32px; }
@media (min-width: 700px) { .modules { grid-template-columns: 1fr 1fr; } }
.modules li { counter-increment: m; display: flex; gap: 14px; align-items: baseline; padding-top: 10px; border-top: 1px solid var(--line); font-size: .98rem; }
.modules li::before { content: counter(m); font-family: var(--serif); font-weight: 700; font-size: 1.2rem; color: var(--accent-strong); min-width: 1.1em; }

/* Étapes */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; counter-reset: s; }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 40px; } }
.steps li { position: relative; padding-top: 24px; border-top: 2px solid var(--ink); }
.step-num { margin: 0 0 6px; font-family: var(--serif); font-weight: 700; font-size: clamp(4.5rem, 8vw, 6.5rem); line-height: .95; color: var(--accent); }
.steps h3 { margin-bottom: 10px; font-size: 1.5rem; }
.steps p:not(.step-num) { margin: 0; color: var(--ink-2); }

/* Pour qui */
.two-cols { display: grid; gap: 20px; }
@media (min-width: 860px) { .two-cols { grid-template-columns: 1fr 1fr; } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 28px 30px; }
.card h3 { margin-bottom: 16px; }
.card ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 14px; }
.card li { position: relative; padding-left: 30px; color: var(--ink-2); }
.card li::before { position: absolute; left: 0; top: 0; font-weight: 800; }
.card.yes { border-top: 6px solid var(--accent); }
.card.yes li::before { content: "✓"; color: var(--accent-strong); }
.card.no { border-top: 6px solid var(--muted); }
.card.no li::before { content: "✕"; color: var(--muted); }

/* Ce que ce n'est pas */
.not-grid { display: grid; gap: 28px; }
@media (min-width: 860px) { .not-grid { grid-template-columns: repeat(3, 1fr); gap: 40px; } }
.not { padding-top: 22px; border-top: 1px solid var(--line); }
.not-x {
  margin: 0 0 14px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  border: 2px solid var(--accent); color: var(--accent-strong); font-weight: 800;
}
.not h3 { margin-bottom: 8px; }
.not p:not(.not-x) { margin: 0; color: var(--ink-2); }

/* FAQ */
.faq { display: grid; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; transition: border-color .2s ease; }
.faq details[open] { border-color: var(--accent); }
.faq summary {
  cursor: pointer; list-style: none; padding: 20px 56px 20px 24px; font-weight: 700; font-size: 1.08rem;
  line-height: 1.4; position: relative; border-radius: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%);
  font-size: 1.6rem; font-weight: 400; color: var(--accent-strong); transition: transform .2s ease;
}
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0; padding: 0 24px 22px; color: var(--ink-2); max-width: 46em; }

/* CTA final */
.final { background: var(--ink); color: var(--bg); padding-block: clamp(64px, 9vw, 112px); position: relative; overflow: hidden; }
.final-inner { display: grid; gap: 24px; align-items: center; position: relative; }
@media (min-width: 860px) { .final-inner { grid-template-columns: auto 1fr; gap: 64px; } }
.final-zero {
  margin: 0; font-family: var(--serif); font-weight: 700; line-height: .8;
  font-size: clamp(9rem, 22vw, 17rem); color: transparent; -webkit-text-stroke: 3px var(--accent);
}
.final h2 { color: var(--bg); margin-bottom: 16px; max-width: 16em; }
.final p { color: color-mix(in srgb, var(--bg) 82%, transparent); max-width: 36em; margin: 0 0 22px; }
.final .cta-note { color: color-mix(in srgb, var(--bg) 70%, transparent); margin-top: 16px; }
.final .btn { background: var(--accent); }
.final .btn:focus-visible { outline-color: var(--bg); }
@media (prefers-color-scheme: dark) {
  .final { background: #0c0b08; border-top: 1px solid var(--line); }
  .final h2 { color: #f4eee1; }
  .final p { color: #cfc7b4; }
  .final .cta-note { color: #b4ac98; }
}

/* Pied de page */
.site-footer { padding-block: 40px 56px; border-top: 1px solid var(--line); font-size: .95rem; color: var(--muted); }
.foot { display: grid; gap: 8px; }
.foot p { margin: 0; }
.foot-brand { font-family: var(--serif); font-weight: 700; font-size: 1.1rem; color: var(--ink); }
.foot a { color: var(--ink-2); }

/* Mentions légales */
.legal { padding-block: clamp(48px, 8vw, 96px); }
.h1-small { font-size: clamp(2.2rem, 1.4rem + 3vw, 3.6rem); margin-bottom: 32px; }
.legal h2 { font-size: 1.6rem; margin: 44px 0 14px; }
.legal p { color: var(--ink-2); margin: 0 0 14px; max-width: 42em; }
.facts { margin: 0; border-top: 1px solid var(--line); }
.facts div { display: grid; gap: 2px 24px; padding: 14px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 640px) { .facts div { grid-template-columns: 190px 1fr; } }
.facts dt { font-weight: 700; color: var(--ink); }
.facts dd { margin: 0; color: var(--ink-2); overflow-wrap: anywhere; }
.back { margin-top: 40px !important; }

/* Mouvement réduit : état final, sans animation */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .btn:hover { transform: none; }
}
