/* ==========================================================================
   Rempart — styles.css
   Poste de commandement humain. Fond bleu acier + preuves mono vert terminal.
   ========================================================================== */

:root {
  --steel-950: #0A0F14;
  --steel-900: #0E141B;
  --steel-850: #121A23;
  --steel-800: #18222D;
  --steel-700: #22303D;
  --steel-600: #33465A;

  --ink-100: #EAF1F5;
  --ink-300: #B4C4D0;
  --ink-500: #7C93A3;
  --ink-700: #4A5E6E;

  --term-500: #3DF5A0;
  --term-600: #22C77E;
  --term-glow: rgba(61, 245, 160, .14);

  --alert: #FF5C57;
  --warn: #F2B84B;
  --info: #4FA8FF;

  --radius: 4px;
  --gutter: 24px;
  --maxw: 1200px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--steel-950);
  color: var(--ink-300);
  font: 400 1rem/1.65 "Inter", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

h1, h2, h3 { font-family: "Space Grotesk", sans-serif; color: var(--ink-100); margin: 0; }
h1 { font-size: 2.6rem; line-height: 1.1; font-weight: 600; letter-spacing: -.02em; }
h2 { font-size: 1.95rem; line-height: 1.15; font-weight: 600; letter-spacing: -.015em; }
h3 { font-size: 1.35rem; line-height: 1.25; font-weight: 500; }
p { margin: 0 0 1rem; }

/* ---------- Layout ---------- */
.container {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 64px);
  /* Respect des encoches (notch / safe-area) sur mobile */
  padding-left: max(clamp(20px, 5vw, 64px), env(safe-area-inset-left));
  padding-right: max(clamp(20px, 5vw, 64px), env(safe-area-inset-right));
}
.section { padding: clamp(64px, 10vw, 96px) 0; }
/* Ancres (#tarifs, #preuves…) : évite que le titre passe sous le header sticky */
:target, [id] { scroll-margin-top: 84px; }
.section--tight { padding: clamp(48px, 7vw, 72px) 0; }
.section-head { max-width: 780px; margin-bottom: 48px; }
.section-head p { color: var(--ink-300); font-size: 1.125rem; margin: 0; }

/* Kicker signature mono vert */
.kicker {
  font: 500 .75rem/1 "JetBrains Mono", monospace;
  text-transform: uppercase;
  letter-spacing: .18em;
  color: var(--term-500);
  margin: 0 0 20px;
  display: inline-block;
}
.cursor { color: var(--term-500); animation: blink 1.1s step-end infinite; }

/* Merlons separator — frise de créneaux */
.merlons {
  height: 1px;
  background: var(--steel-700);
  position: relative;
  margin: 0;
  border: 0;
}
.merlons::before {
  content: "";
  position: absolute;
  top: -3px; left: 0; right: 0;
  height: 6px;
  background-image: repeating-linear-gradient(
    90deg,
    var(--steel-700) 0, var(--steel-700) 6px,
    transparent 6px, transparent 48px
  );
}

/* Blueprint grid background */
.blueprint {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--steel-700) 1px, transparent 1px),
    linear-gradient(90deg, var(--steel-700) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: .08;
  -webkit-mask-image: radial-gradient(120% 90% at 20% 0%, #000 30%, transparent 75%);
  mask-image: radial-gradient(120% 90% at 20% 0%, #000 30%, transparent 75%);
  pointer-events: none;
}

/* ---------- Buttons ---------- */
.btn {
  font: 500 .9375rem/1 "Space Grotesk", sans-serif;
  padding: 14px 22px;
  border-radius: var(--radius);
  cursor: pointer;
  border: 1px solid transparent;
  transition: all .18s var(--ease);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
}
.btn--primary { background: var(--term-500); color: #06110B; }
.btn--primary:hover { background: var(--term-600); box-shadow: 0 0 0 4px var(--term-glow); }
.btn--ghost { background: transparent; border-color: var(--steel-600); color: var(--ink-100); }
.btn--ghost:hover { border-color: var(--term-500); color: var(--term-500); }
.btn--lg { padding: 16px 28px; font-size: 1rem; }

/* ---------- Status badge ---------- */
.status {
  font: 500 .75rem/1 "JetBrains Mono", monospace;
  text-transform: uppercase;
  letter-spacing: .08em;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 3px;
  border: 1px solid var(--steel-700);
  background: var(--steel-850);
  color: var(--ink-300);
}
.status--ok { color: var(--term-500); background: var(--term-glow); border-color: rgba(61, 245, 160, .3); }
.status--todo { color: var(--alert); border-color: rgba(255, 92, 87, .35); }
.status--wip { color: var(--warn); border-color: rgba(242, 184, 75, .35); }
.status .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status--wip .dot { animation: pulse 1.8s ease-in-out infinite; }

/* ---------- Header / Nav ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(10, 15, 20, .85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--steel-700);
}
.nav {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 68px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink-100);
  font: 600 1.15rem/1 "Space Grotesk", sans-serif;
  letter-spacing: .02em;
  flex-shrink: 0;
}
.brand__mark { width: 26px; height: 26px; flex-shrink: 0; }
.brand__cursor { color: var(--term-500); font-family: "JetBrains Mono", monospace; }

.nav__links {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: 24px;
}
.nav__links a {
  font: 500 .9375rem/1 "Inter", sans-serif;
  color: var(--ink-300);
  padding: 6px 0;
  transition: color .18s var(--ease);
}
.nav__links a:hover { color: var(--ink-100); }
.nav__links a.active { color: var(--ink-100); border-bottom: 2px solid var(--term-500); }

.nav__cta { margin-left: auto; display: flex; align-items: center; gap: 12px; }

.nav__toggle {
  display: none;
  margin-left: auto;
  background: transparent;
  border: 1px solid var(--steel-600);
  border-radius: var(--radius);
  width: 44px; height: 44px;
  cursor: pointer;
  color: var(--ink-100);
  align-items: center;
  justify-content: center;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--steel-950);
  overflow: hidden;
  padding: clamp(72px, 12vh, 140px) 0 clamp(64px, 9vh, 96px);
}
.hero__inner { position: relative; max-width: 960px; }
.hero__title { font-size: clamp(2.6rem, 5.5vw, 4.5rem); line-height: 1.04; letter-spacing: -.02em; margin: 0 0 24px; }
.hero__title .accent { color: var(--term-500); }
.hero__lead { font-size: 1.1875rem; line-height: 1.6; color: var(--ink-300); max-width: 700px; margin: 0 0 32px; }
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 40px; }
.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  font: 400 .8125rem/1.5 "JetBrains Mono", monospace;
  color: var(--ink-500);
}
.hero__trust span { display: inline-flex; align-items: center; gap: 8px; }
.hero__trust .tick { color: var(--term-500); }

/* ---------- Terminal block ---------- */
.terminal {
  position: relative;
  overflow: hidden;
  max-width: 640px;
  background: #070C11;
  border: 1px solid var(--steel-700);
  border-radius: 6px;
  padding: 40px 20px 18px;
  margin-top: 40px;
}
.terminal::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 34px;
  border-bottom: 1px solid var(--steel-800);
}
.terminal::after {
  content: "● ● ●";
  position: absolute;
  top: 9px; left: 14px;
  font-size: .6rem;
  letter-spacing: 4px;
  color: var(--steel-600);
}
.terminal pre {
  font: 400 .8125rem/1.7 "JetBrains Mono", monospace;
  color: var(--ink-300);
  margin: 0;
  white-space: pre;
  overflow-x: auto;
}
.terminal__scan {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, var(--term-glow), transparent);
  height: 40%;
  animation: scan 2.5s linear infinite;
}
.c-ok { color: var(--term-500); }
.c-warn { color: var(--warn); }
.c-crit { color: var(--alert); }
.c-dim { color: var(--ink-700); }

/* ---------- Problem section ---------- */
.problem { background: var(--steel-900); }
.problem__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--gutter);
}
.pain {
  background: var(--steel-850);
  border: 1px solid var(--steel-700);
  border-left: 2px solid var(--alert);
  border-radius: var(--radius);
  padding: 24px;
}
.pain__label { font: 500 .75rem/1 "JetBrains Mono", monospace; text-transform: uppercase; letter-spacing: .1em; color: var(--alert); margin: 0 0 12px; }
.pain h3 { margin: 0 0 8px; font-size: 1.1rem; }
.pain p { margin: 0; font-size: .9375rem; color: var(--ink-300); }

/* ---------- Cards / solution ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--gutter);
}
.card {
  position: relative;
  background: var(--steel-850);
  border: 1px solid var(--steel-700);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: transform .18s var(--ease), border-color .18s var(--ease);
}
.card::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 32px; height: 2px;
  background: var(--term-500);
  opacity: 0;
  transition: opacity .18s var(--ease);
}
.card:hover { transform: translateY(-2px); border-color: var(--steel-600); }
.card:hover::before { opacity: 1; }
.card__icon { width: 28px; height: 28px; color: var(--term-500); margin-bottom: 16px; }
.card .kicker { margin-bottom: 12px; }
.card h3 { margin: 0 0 10px; font-size: 1.2rem; }
.card p { margin: 0 0 12px; font-size: .9375rem; color: var(--ink-300); }
.card__meta { font: 400 .8125rem/1.5 "JetBrains Mono", monospace; color: var(--ink-500); }
.card ul { margin: 12px 0 0; padding: 0; list-style: none; }
.card ul li { font-size: .9rem; color: var(--ink-300); padding-left: 20px; position: relative; margin-bottom: 6px; }
.card ul li::before { content: "▪"; position: absolute; left: 0; color: var(--term-500); }

/* ---------- Steps / how it works ---------- */
.steps { counter-reset: step; display: grid; gap: 4px; }
.step {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px;
  padding: 24px 0;
  border-top: 1px solid var(--steel-700);
}
.step:last-child { border-bottom: 1px solid var(--steel-700); }
.step__node {
  font: 500 .75rem/1 "JetBrains Mono", monospace;
  color: var(--term-500);
  letter-spacing: .12em;
  padding-top: 4px;
  white-space: nowrap;
}
.step h3 { margin: 0 0 6px; font-size: 1.15rem; }
.step p { margin: 0; font-size: .9375rem; color: var(--ink-300); }

/* ---------- Proof / stats ---------- */
.proof { background: var(--steel-900); }
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--gutter);
  margin-bottom: 48px;
}
.stat {
  background: var(--steel-850);
  border: 1px solid var(--steel-700);
  border-radius: var(--radius);
  padding: 24px;
}
.stat__num { font: 500 2.4rem/1 "JetBrains Mono", monospace; color: var(--term-500); letter-spacing: -.02em; }
.stat__label { font-size: .9rem; color: var(--ink-300); margin-top: 10px; }

.quote {
  background: var(--steel-850);
  border: 1px solid var(--steel-700);
  border-left: 2px solid var(--term-500);
  border-radius: var(--radius);
  padding: 28px;
  max-width: 760px;
}
.quote blockquote { margin: 0 0 14px; font-size: 1.125rem; line-height: 1.6; color: var(--ink-100); font-family: "Space Grotesk", sans-serif; }
.quote cite { font: 400 .8125rem/1.5 "JetBrains Mono", monospace; color: var(--ink-500); font-style: normal; }
.quote .illus { color: var(--ink-700); }

/* ---------- Reassurance band (sous le hero) ---------- */
.reassure-band {
  background: var(--steel-900);
  border-top: 1px solid var(--steel-700);
  border-bottom: 1px solid var(--steel-700);
}
.reassure-band__inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--steel-700);
  border-left: 1px solid var(--steel-700);
  border-right: 1px solid var(--steel-700);
}
.reassure-band__item {
  background: var(--steel-900);
  padding: 22px clamp(16px, 2.5vw, 28px);
  display: flex;
  align-items: center;
  gap: 14px;
}
.reassure-band__ic {
  width: 22px; height: 22px;
  color: var(--term-500);
  flex-shrink: 0;
}
.reassure-band__num {
  font: 500 1.35rem/1 "JetBrains Mono", monospace;
  color: var(--ink-100);
  letter-spacing: -.01em;
}
.reassure-band__lbl {
  font: 400 .8125rem/1.4 "Inter", sans-serif;
  color: var(--ink-500);
  margin-top: 4px;
}
.reassure-band__note {
  padding: 12px clamp(20px, 5vw, 64px);
  font: 400 .75rem/1.4 "JetBrains Mono", monospace;
  color: var(--ink-700);
  border-top: 1px solid var(--steel-700);
}

/* ---------- Testimonials ---------- */
.testimonials { background: var(--steel-900); }
.testi__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--gutter);
}
.testi {
  display: flex;
  flex-direction: column;
  background: var(--steel-850);
  border: 1px solid var(--steel-700);
  border-left: 2px solid var(--term-500);
  border-radius: var(--radius);
  padding: 26px 24px;
}
.testi blockquote {
  margin: 0 0 20px;
  font: 400 1.0625rem/1.55 "Space Grotesk", sans-serif;
  color: var(--ink-100);
  flex: 1;
}
.testi__author {
  display: flex;
  align-items: center;
  gap: 14px;
  border-top: 1px solid var(--steel-700);
  padding-top: 18px;
}
.testi__avatar {
  width: 42px; height: 42px;
  flex-shrink: 0;
  border-radius: 3px;
  border: 1px solid var(--steel-600);
  background: var(--steel-800);
  display: flex;
  align-items: center;
  justify-content: center;
  font: 500 .9375rem/1 "JetBrains Mono", monospace;
  color: var(--term-500);
  letter-spacing: .02em;
}
.testi__name {
  font: 500 .9375rem/1.3 "Space Grotesk", sans-serif;
  color: var(--ink-100);
}
.testi__role {
  font: 400 .75rem/1.4 "JetBrains Mono", monospace;
  color: var(--ink-500);
  margin-top: 3px;
}
.testi__illus {
  margin-top: 28px;
  font: 400 .75rem/1.5 "JetBrains Mono", monospace;
  color: var(--ink-700);
  display: flex; align-items: center; gap: 8px;
}
.testi__illus .tag { color: var(--term-500); }

/* ---------- Pricing ---------- */
.pricing__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--gutter);
}
.plan {
  background: var(--steel-850);
  border: 1px solid var(--steel-700);
  border-radius: var(--radius);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
}
.plan--featured { border-left: 2px solid var(--term-500); }
.plan h3 { margin: 0 0 8px; font-size: 1.25rem; }
.plan__price { font: 500 2rem/1 "JetBrains Mono", monospace; color: var(--ink-100); margin: 12px 0 4px; }
.plan__price small { font-size: .85rem; color: var(--ink-500); font-weight: 400; }
.plan__note { font-size: .875rem; color: var(--ink-500); margin-bottom: 20px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 24px; flex: 1; }
.plan ul li { font-size: .9rem; color: var(--ink-300); padding-left: 22px; position: relative; margin-bottom: 10px; }
.plan ul li::before { content: "✓"; position: absolute; left: 0; color: var(--term-500); font-weight: 700; }
.plan .btn { width: 100%; justify-content: center; }
.compare {
  margin-top: 32px;
  font: 400 .875rem/1.6 "JetBrains Mono", monospace;
  color: var(--ink-500);
}
.compare .strike { color: var(--ink-700); text-decoration: line-through; }
.compare .hl { color: var(--term-500); }

/* ---------- Objections / FAQ accordion ---------- */
.faq { max-width: 820px; }
.acc {
  border: 1px solid var(--steel-700);
  border-radius: var(--radius);
  margin-bottom: 12px;
  background: var(--steel-850);
  overflow: hidden;
}
.acc__q {
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  color: var(--ink-100);
  font: 500 1.05rem/1.4 "Space Grotesk", sans-serif;
  padding: 20px 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 44px;
}
.acc__q:hover { color: var(--term-500); }
.acc__icon { color: var(--term-500); font-family: "JetBrains Mono", monospace; transition: transform .18s var(--ease); flex-shrink: 0; }
.acc[open] .acc__icon, .acc.is-open .acc__icon { transform: rotate(45deg); }
.acc__a { padding: 0 24px; max-height: 0; overflow: hidden; transition: max-height .24s var(--ease); }
.acc.is-open .acc__a { max-height: 600px; }
.acc__a p { padding-bottom: 20px; margin: 0; color: var(--ink-300); font-size: .95rem; }

/* ---------- CTA final ---------- */
.cta-final {
  position: relative;
  background: var(--steel-900);
  overflow: hidden;
  text-align: center;
}
.cta-final .container { position: relative; max-width: 760px; }
.cta-final h2 { margin-bottom: 16px; }
.cta-final p { color: var(--ink-300); font-size: 1.125rem; margin-bottom: 28px; }
.cta-final .hero__cta { justify-content: center; margin-bottom: 20px; }
.cta-final .hero__trust { justify-content: center; }

/* ---------- Footer ---------- */
.footer {
  background: var(--steel-950);
  border-top: 1px solid var(--steel-700);
  padding: 56px 0 32px;
}
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px 24px;
  margin-bottom: 40px;
}
.footer__brand p { color: var(--ink-500); font-size: .9rem; max-width: 320px; margin-top: 16px; }
.footer h4 { font: 500 .75rem/1 "JetBrains Mono", monospace; text-transform: uppercase; letter-spacing: .14em; color: var(--ink-500); margin: 0 0 16px; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer ul li { margin-bottom: 10px; }
.footer ul a { font-size: .9rem; color: var(--ink-300); transition: color .18s var(--ease); }
.footer ul a:hover { color: var(--term-500); }
.footer__bottom {
  border-top: 1px solid var(--steel-700);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font: 400 .8125rem/1.5 "JetBrains Mono", monospace;
  color: var(--ink-700);
}

/* ---------- Contact page ---------- */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 56px;
  align-items: start;
}
.reassure .kicker { margin-bottom: 20px; }
.reassure h1 { font-size: clamp(1.9rem, 6vw, 2.2rem); margin-bottom: 16px; }
.reassure > p { color: var(--ink-300); font-size: 1.0625rem; margin-bottom: 32px; }
.reassure__list { list-style: none; padding: 0; margin: 0 0 32px; }
.reassure__list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  padding: 16px 0;
  border-top: 1px solid var(--steel-700);
}
.reassure__list li:last-child { border-bottom: 1px solid var(--steel-700); }
.reassure__list .ic { color: var(--term-500); width: 22px; height: 22px; margin-top: 2px; }
.reassure__list strong { color: var(--ink-100); display: block; font-family: "Space Grotesk", sans-serif; font-weight: 500; margin-bottom: 2px; }
.reassure__list span { font-size: .9rem; color: var(--ink-300); }

.form-panel {
  background: var(--steel-850);
  border: 1px solid var(--steel-700);
  border-radius: var(--radius);
  padding: 32px;
}
.form-panel .kicker { margin-bottom: 16px; }
.field { margin-bottom: 18px; }
.field label { display: block; font: 500 .8125rem/1 "JetBrains Mono", monospace; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-500); margin-bottom: 8px; }
.field input, .field select, .field textarea {
  width: 100%;
  background: var(--steel-950);
  border: 1px solid var(--steel-700);
  border-radius: var(--radius);
  color: var(--ink-100);
  font: 400 1rem/1.5 "Inter", sans-serif;
  padding: 12px 14px;
  transition: border-color .18s var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--term-500);
  box-shadow: 0 0 0 3px var(--term-glow);
}
.field textarea { resize: vertical; min-height: 120px; }
.form-panel .btn { width: 100%; justify-content: center; margin-top: 4px; }
.form-note { font-size: .8125rem; color: var(--ink-500); margin-top: 16px; text-align: center; }
.form-success {
  display: none;
  background: var(--term-glow);
  border: 1px solid rgba(61, 245, 160, .3);
  border-radius: var(--radius);
  padding: 20px;
  color: var(--term-500);
  font-family: "JetBrains Mono", monospace;
  font-size: .9rem;
  margin-top: 16px;
}
.form-success.show { display: block; }

/* ---------- Content page (methode) ---------- */
.lede { max-width: 760px; font-size: 1.125rem; color: var(--ink-300); }
.phase {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 32px;
  padding: 32px 0;
  border-top: 1px solid var(--steel-700);
}
.phase:last-of-type { border-bottom: 1px solid var(--steel-700); }
.phase__tag { font: 500 .75rem/1.4 "JetBrains Mono", monospace; color: var(--term-500); letter-spacing: .1em; }
.phase h3 { margin: 0 0 10px; }
.phase p { color: var(--ink-300); margin: 0 0 12px; }
.phase__deliver { font: 400 .8125rem/1.6 "JetBrains Mono", monospace; color: var(--ink-500); }
.phase__deliver .tag { color: var(--term-500); }

/* ---------- Legal pages ---------- */
.legal { max-width: 820px; }
.legal .lede { margin: 0 0 40px; }
.legal__block {
  border-top: 1px solid var(--steel-700);
  padding: 28px 0;
}
.legal__block:last-of-type { border-bottom: 1px solid var(--steel-700); }
.legal__block h2 {
  font-size: 1.3rem;
  margin: 0 0 16px;
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.legal__block h2 .num {
  font: 500 .8125rem/1 "JetBrains Mono", monospace;
  color: var(--term-500);
  letter-spacing: .1em;
  flex-shrink: 0;
}
.legal__block h3 { font-size: 1.05rem; margin: 24px 0 10px; }
.legal__block p { color: var(--ink-300); font-size: .95rem; margin: 0 0 14px; }
.legal__block p:last-child { margin-bottom: 0; }
.legal__block p, .legal__block li { overflow-wrap: anywhere; }
.legal__block a { color: var(--term-500); text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; word-break: break-word; }
.legal__block a:hover { color: var(--term-600); }
.legal__block ul { list-style: none; padding: 0; margin: 0 0 14px; }
.legal__block ul li {
  font-size: .95rem;
  color: var(--ink-300);
  padding-left: 22px;
  position: relative;
  margin-bottom: 10px;
}
.legal__block ul li::before { content: "▪"; position: absolute; left: 0; color: var(--term-500); }
.legal__block ul li strong { color: var(--ink-100); font-weight: 500; }
.legal__id {
  background: var(--steel-850);
  border: 1px solid var(--steel-700);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 0 0 14px;
}
.legal__id li { border: 0; padding-left: 22px; }
.legal__meta {
  margin-top: 32px;
  font: 400 .8125rem/1.6 "JetBrains Mono", monospace;
  color: var(--ink-700);
}

/* ==========================================================================
   Imagerie technique — artefacts (schémas SVG, maquette rapport, data-viz)
   Route "cyber graphique" du design system : pas de photo stock.
   ========================================================================== */

/* --- Bloc à deux colonnes : texte + artefact visuel --- */
.artefact-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  margin-top: 40px;
}
.artefact-split__body h3 { font-size: 1.4rem; margin: 0 0 12px; }
.artefact-split__body > p { color: var(--ink-300); font-size: 1rem; margin: 0 0 20px; max-width: 460px; }
.artefact-split__body ul { list-style: none; padding: 0; margin: 0; }
.artefact-split__body ul li {
  font-size: .9375rem; color: var(--ink-300);
  padding-left: 22px; position: relative; margin-bottom: 10px;
}
.artefact-split__body ul li::before {
  content: "▪"; position: absolute; left: 0; color: var(--term-500);
}

/* Cadre commun des artefacts (fallback couleur si un asset ne charge pas) */
.artefact {
  position: relative;
  background: var(--steel-850);
  border: 1px solid var(--steel-700);
  border-radius: var(--radius);
  padding: 20px;
  overflow: hidden;
}
.artefact__caption {
  font: 400 .75rem/1.5 "JetBrains Mono", monospace;
  color: var(--ink-500);
  margin: 14px 0 0;
  display: flex; align-items: center; gap: 8px;
}
.artefact__caption .tag { color: var(--term-500); }
.artefact svg { width: 100%; height: auto; }

/* --- Maquette rapport d'audit (données caviardées) --- */
.report {
  background: var(--steel-950);
  border: 1px solid var(--steel-700);
  border-radius: var(--radius);
  padding: 24px 26px;
  overflow: hidden;
}
.report__head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 16px; padding-bottom: 16px; margin-bottom: 18px;
  border-bottom: 1px solid var(--steel-700);
}
.report__title { font: 500 1.05rem/1.2 "Space Grotesk", sans-serif; color: var(--ink-100); }
.report__meta { font: 400 .75rem/1.4 "JetBrains Mono", monospace; color: var(--ink-500); white-space: nowrap; }
.report__row {
  display: grid; grid-template-columns: auto 1fr auto;
  gap: 14px; align-items: center; padding: 11px 0;
  border-bottom: 1px solid var(--steel-800);
}
.report__row:last-child { border-bottom: 0; }
.report__id { font: 400 .75rem/1 "JetBrains Mono", monospace; color: var(--ink-700); }
/* barres caviardées */
.redact { height: 9px; border-radius: 2px; background: var(--steel-700); display: block; }
.redact--sm { width: 45%; }
.redact--md { width: 70%; }
.redact--lg { width: 90%; }
.report__pill {
  font: 500 .6875rem/1 "JetBrains Mono", monospace; text-transform: uppercase;
  letter-spacing: .06em; padding: 4px 8px; border-radius: 3px; white-space: nowrap;
  border: 1px solid var(--steel-700); color: var(--ink-300);
}
.report__pill--ok { color: var(--term-500); background: var(--term-glow); border-color: rgba(61,245,160,.3); }
.report__pill--warn { color: var(--warn); border-color: rgba(242,184,75,.35); }
.report__pill--crit { color: var(--alert); border-color: rgba(255,92,87,.35); }

/* --- Anneau de conformité (data-viz) --- */
.gauge { display: flex; align-items: center; gap: 22px; }
.gauge__ring { flex-shrink: 0; width: 116px; height: 116px; }
.gauge__track { stroke: var(--steel-700); }
.gauge__value { stroke: var(--term-500); stroke-linecap: round; transition: stroke-dashoffset 1s var(--ease); }
.gauge__pct {
  font: 500 1.5rem/1 "JetBrains Mono", monospace;
  fill: var(--ink-100); text-anchor: middle;
}
.gauge__pct-lbl { font: 400 .5rem/1 "JetBrains Mono", monospace; fill: var(--ink-500); text-anchor: middle; letter-spacing: .12em; }
.gauge__legend { font: 400 .8125rem/1.7 "JetBrains Mono", monospace; color: var(--ink-500); }
.gauge__legend strong { color: var(--ink-100); font-weight: 500; }

/* --- Schéma de protection (réseau nodal) --- */
.schema { background: var(--steel-950); }
.schema svg { display: block; }
.schema-node { fill: var(--steel-850); stroke: var(--steel-600); stroke-width: 1; }
.schema-node--core { fill: var(--term-glow); stroke: var(--term-500); }
.schema-link { stroke: var(--steel-600); stroke-width: 1; }
.schema-link--live { stroke: var(--term-500); stroke-width: 1.4; stroke-dasharray: 4 4; }
.schema-ico { stroke: var(--ink-300); stroke-width: 1.4; fill: none; }
.schema-ico--core { stroke: var(--term-500); }
.schema-lbl { font: 400 .625rem/1 "JetBrains Mono", monospace; fill: var(--ink-500); }

@media (prefers-reduced-motion: no-preference) {
  .schema-link--live { animation: dash 1.4s linear infinite; }
}
@keyframes dash { to { stroke-dashoffset: -16; } }

/* --- Matrice de risque (heatmap) --- */
.matrix { max-width: 460px; }
.matrix__grid {
  display: grid;
  grid-template-columns: auto repeat(4, 1fr);
  gap: 4px;
}
.matrix__cell {
  aspect-ratio: 1 / .62;
  border-radius: 2px;
  display: flex; align-items: center; justify-content: center;
  font: 500 .8125rem/1 "JetBrains Mono", monospace;
  color: var(--steel-950);
}
.matrix__axis { display: flex; align-items: center; justify-content: center;
  font: 400 .625rem/1.1 "JetBrains Mono", monospace; color: var(--ink-500);
  text-transform: uppercase; letter-spacing: .06em; text-align: center; }
.m-low  { background: #1c3a2e; color: var(--ink-500); }
.m-mod  { background: var(--warn); }
.m-high { background: #c9622f; color: var(--ink-100); }
.m-crit { background: var(--alert); color: #2a0808; }

/* Responsive artefacts */
@media (max-width: 900px) {
  .artefact-split { grid-template-columns: 1fr; gap: 32px; }
  .schema { overflow-x: auto; }
}
@media (max-width: 560px) {
  .report { padding: 18px; }
  .report__head { flex-wrap: wrap; gap: 4px 12px; }
  .report__row { grid-template-columns: auto 1fr; }
  .report__pill { grid-column: 2; justify-self: start; }
  .gauge { flex-direction: column; align-items: flex-start; }
}

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(12px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Keyframes ---------- */
@keyframes scan { 0% { transform: translateY(-100%); } 100% { transform: translateY(100%); } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }

/* ==========================================================================
   RESPONSIVE — passe mobile complète
   Cible : 360 / 390 / 414 px, puis 768 px (tablette). Desktop intact.
   ========================================================================== */

/* Backdrop off-canvas (injecté par JS) */
.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(6, 10, 14, .62);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .24s var(--ease), visibility .24s var(--ease);
  z-index: 70;
}
.nav-backdrop.is-visible { opacity: 1; visibility: visible; }
/* Bloque le scroll du body quand le menu est ouvert */
body.nav-open { overflow: hidden; }

/* ---------- Tablette & mobile (≤ 900px) ---------- */
@media (max-width: 900px) {

  /* --- Header épuré : logo à gauche, bouton menu à droite --- */
  /* Pas de backdrop-filter ici : il créerait un bloc conteneur qui
     empêcherait le panneau position:fixed de couvrir tout l'écran. */
  .header {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(10, 15, 20, .96);
    /* .header (sticky + z-index) crée un contexte d'empilement : le z-index 80
       du panneau y est enfermé et resterait SOUS le .nav-backdrop (z-index 70,
       injecté sur <body>), qui masquait et interceptait les clics du menu.
       On remonte donc le contexte du header au-dessus du backdrop. */
    z-index: 80;
  }
  .nav { min-height: 60px; gap: 12px; }
  .nav__links,
  .nav__cta { display: none; }
  .nav__toggle { display: inline-flex; margin-left: auto; z-index: 90; }

  /* --- Panneau off-canvas latéral (la .nav devient le panneau) --- */
  .nav.is-open {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: auto;
    width: min(84vw, 340px);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    min-height: 100vh;
    background: var(--steel-900);
    border-left: 1px solid var(--steel-700);
    box-shadow: -18px 0 48px rgba(0, 0, 0, .5);
    padding: 20px max(24px, env(safe-area-inset-right)) calc(24px + env(safe-area-inset-bottom)) 24px;
    overflow-y: auto;
    z-index: 80;
    animation: navSlideIn .26s var(--ease);
  }
  .nav.is-open .brand {
    display: inline-flex;
    margin-bottom: 24px;
  }
  .nav.is-open .nav__toggle {
    position: absolute;
    top: 18px;
    right: 18px;
    margin: 0;
  }
  .nav.is-open .nav__links {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    margin: 0;
    gap: 0;
  }
  .nav.is-open .nav__links a {
    font-size: 1.0625rem;
    padding: 15px 4px;
    min-height: 48px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--steel-800);
    color: var(--ink-100);
  }
  .nav.is-open .nav__links a.active {
    color: var(--term-500);
    border-bottom: 1px solid var(--steel-800);
  }
  .nav.is-open .nav__cta {
    display: flex;
    margin: 24px 0 0;
  }
  .nav.is-open .nav__cta .btn {
    width: 100%;
    justify-content: center;
    min-height: 52px;
    font-size: 1rem;
  }

  /* Le header reste sticky ; le panneau est en position fixed */
  .contact-layout { grid-template-columns: 1fr; gap: 40px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .phase { grid-template-columns: 1fr; gap: 12px; }
  .reassure-band__inner { grid-template-columns: repeat(2, 1fr); }
  .artefact-split { gap: 32px; }
}

@keyframes navSlideIn {
  from { transform: translateX(100%); }
  to   { transform: translateX(0); }
}

/* ---------- Mobile (≤ 640px) ---------- */
@media (max-width: 640px) {
  :root { --gutter: 16px; }

  /* Anti-débordement : le mono long peut casser proprement */
  .kicker, .reassure-band__note, .compare, .testi__illus,
  .artefact__caption, .phase__deliver { overflow-wrap: anywhere; }
  .kicker { white-space: normal; line-height: 1.4; }

  h1, .hero__title { font-size: clamp(2rem, 8.5vw, 2.6rem); }
  h2 { font-size: 1.55rem; }
  h3 { font-size: 1.2rem; }

  .section { padding: 56px 0; }
  .section-head { margin-bottom: 32px; }
  .section-head p { font-size: 1.0625rem; }

  /* Hero mobile : titre net, sous-titre lisible, CTA pleine largeur */
  .hero { padding: 56px 0 48px; }
  .hero__lead { font-size: 1.0625rem; }
  .hero__cta { flex-direction: column; gap: 12px; margin-bottom: 32px; }
  .hero__cta .btn,
  .cta-final .btn { width: 100%; justify-content: center; }
  .hero__trust { gap: 8px 16px; }

  /* Grilles : une colonne, empilement propre */
  .step { grid-template-columns: 1fr; gap: 8px; }
  .reassure-band__inner { grid-template-columns: 1fr; }
  .reassure-band__item { padding: 18px 20px; }

  /* CTA final : titres qui ne débordent pas */
  .cta-final p { font-size: 1.0625rem; }

  /* Formulaire contact : plus d'air, champs tactiles confortables */
  .form-panel { padding: 22px 18px; }
  .field input, .field select, .field textarea { padding: 13px 14px; min-height: 48px; }
  .field textarea { min-height: 120px; }
  .form-panel .btn { min-height: 52px; }

  /* Cartes / plans : padding resserré mais aéré */
  .card, .pain, .plan, .stat, .testi { padding: 22px 18px; }

  /* Compare : moins serré, autorise le retour à la ligne */
  .compare { font-size: .8125rem; }
  .compare .nbsp-sep { display: block; height: 6px; }

  /* Terminal : on GARDE la signature SOC sur mobile, en plus compact.
     Type réduit + wrap intelligent pour que chaque ligne tienne sans
     scroll horizontal interne. */
  .terminal {
    max-width: 100%;
    margin-top: 32px;
    padding: 36px 16px 16px;
  }
  .terminal pre {
    font-size: .7rem;
    line-height: 1.75;
    white-space: pre-wrap;
    overflow-x: visible;
    word-break: break-word;
  }

  /* Matrice de risque : cases lisibles, labels d'axe qui tiennent à 360px */
  .matrix__grid { gap: 3px; }
  .matrix__cell { font-size: .75rem; }
  .matrix__axis { font-size: .5625rem; }

  /* Footer mobile : ce n'est plus la grille desktop rétrécie.
     Bloc marque en pleine largeur, listes courtes sur 2 colonnes,
     liens en cibles tactiles de 44px, bas de page empilé. */
  .footer { padding: 40px 0 28px; }
  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px 16px;
    margin-bottom: 28px;
  }
  .footer__brand { grid-column: 1 / -1; }
  .footer__brand p { max-width: none; margin-top: 12px; }
  .footer h4 { margin-bottom: 4px; }
  .footer ul li { margin-bottom: 0; }
  .footer ul a {
    display: flex;
    align-items: center;
    min-height: 44px;
    overflow-wrap: anywhere;
  }
  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding-top: 20px;
  }
}

/* ---------- Petits mobiles (≤ 400px) ---------- */
@media (max-width: 400px) {
  .plan__price { font-size: 1.7rem; }
  .stat__num { font-size: 2rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .nav.is-open { animation: none; }
}
