/* =========================================================
   AlterIA — site vitrine
   Fond noir, accents électriques vert / bleu / rouge
   ========================================================= */

:root {
  --bg: #05070a;
  --bg-2: #0a0e14;
  --bg-3: #10161f;
  --line: rgba(255, 255, 255, 0.08);
  --text: #e8eef5;
  --muted: #8b97a7;
  --green: #00ff9c;
  --blue: #00c2ff;
  --red: #ff2e4d;
  --grad: linear-gradient(90deg, var(--green), var(--blue));
  --radius: 16px;
  --font: "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --header-h: 72px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Grille fine en fond, façon écran */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 255, 156, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 194, 255, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  z-index: -1;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { line-height: 1.15; margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }

.container { width: min(1180px, 100% - 40px); margin-inline: auto; }
.mono { font-family: var(--mono); }
.grad {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.accent { color: var(--green); }

:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 16px;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s, border-color 0.2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: var(--green);
  color: #001a10;
  box-shadow: 0 0 0 rgba(0, 255, 156, 0);
}
.btn-primary:hover { box-shadow: 0 0 32px rgba(0, 255, 156, 0.45); }
.btn-ghost {
  border-color: rgba(0, 194, 255, 0.5);
  color: var(--blue);
  background: rgba(0, 194, 255, 0.06);
}
.btn-ghost:hover { border-color: var(--blue); box-shadow: 0 0 28px rgba(0, 194, 255, 0.3); }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  height: var(--header-h);
  z-index: 50;
  transition: background 0.3s, border-color 0.3s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(5, 7, 10, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--line);
}
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 22px; letter-spacing: -0.02em; }
.main-nav { display: flex; align-items: center; gap: 28px; font-size: 15px; }
.main-nav a { color: var(--muted); transition: color 0.2s; }
.main-nav a:hover { color: var(--text); }
.main-nav .nav-phone {
  color: var(--green);
  font-family: var(--mono);
  border: 1px solid rgba(0, 255, 156, 0.4);
  padding: 8px 14px;
  border-radius: 999px;
}
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--text); margin: 5px 0; transition: transform 0.3s, opacity 0.3s; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 40px) 0 80px;
  overflow: hidden;
}
#matrix { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.7; }
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 25% 50%, rgba(5, 7, 10, 0.9) 0%, rgba(5, 7, 10, 0.45) 50%, rgba(5, 7, 10, 0.05) 100%),
    linear-gradient(to bottom, transparent 70%, var(--bg));
  pointer-events: none;
}
.hero-glow {
  position: absolute;
  width: 640px; height: 640px;
  right: -120px; top: 10%;
  background: radial-gradient(circle, rgba(0, 194, 255, 0.18), transparent 60%);
  filter: blur(20px);
  animation: glow 8s ease-in-out infinite alternate;
  z-index: 1;
}
@keyframes glow { to { transform: translate(-60px, 40px) scale(1.1); background: radial-gradient(circle, rgba(0, 255, 156, 0.16), transparent 60%); } }

.hero-inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 13px; color: var(--muted);
  border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px;
  background: rgba(255, 255, 255, 0.02);
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); animation: blink 1.6s infinite; }
@keyframes blink { 50% { opacity: 0.25; } }

.hero h1 { font-size: clamp(40px, 6.2vw, 76px); font-weight: 700; margin: 22px 0 26px; }
.hero-tags { list-style: none; padding: 0; margin: 0 0 36px; display: grid; gap: 12px; }
.hero-tags li { display: flex; align-items: center; gap: 12px; font-size: clamp(17px, 1.6vw, 20px); color: #cfd8e3; }
.tag-ico { color: var(--green); font-size: 18px; }
.hero-tags li:nth-child(2) .tag-ico { color: var(--blue); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-visual { position: relative; aspect-ratio: 1; max-width: 480px; justify-self: end; width: 100%; }
.orbit { position: absolute; inset: 0; width: 100%; height: 100%; }
.orbit-ring { fill: none; stroke: rgba(0, 194, 255, 0.18); stroke-dasharray: 4 8; }
.orbit-ring.r2 { stroke: rgba(0, 255, 156, 0.14); }
.orbit-spin { transform-origin: 200px 200px; animation: spin 14s linear infinite; }
.orbit-spin.slow { animation-duration: 22s; }
.orbit-spin.rev { animation-direction: reverse; animation-duration: 18s; }
@keyframes spin { to { transform: rotate(360deg); } }

.terminal {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 86%;
  background: rgba(10, 14, 20, 0.88);
  border: 1px solid rgba(0, 255, 156, 0.25);
  border-radius: 12px;
  box-shadow: 0 0 60px rgba(0, 255, 156, 0.12), inset 0 0 40px rgba(0, 194, 255, 0.05);
  z-index: 2;
  overflow: hidden;
}
.terminal-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: 11px; color: var(--muted); }
.terminal-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--red); }
.terminal-bar i:nth-child(2) { background: #ffbd2e; }
.terminal-bar i:nth-child(3) { background: var(--green); }
.terminal-bar span { margin-left: 8px; }
.terminal-body { margin: 0; padding: 16px 18px 20px; font-family: var(--mono); font-size: 13px; line-height: 1.75; min-height: 230px; white-space: pre-wrap; color: #b9c6d4; }
.terminal-body .t-g { color: var(--green); }
.terminal-body .t-b { color: var(--blue); }
.terminal-body .t-r { color: var(--red); }
.caret { color: var(--green); animation: blink 1s steps(1) infinite; }

.scroll-hint { position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 3; width: 26px; height: 42px; border: 2px solid rgba(255, 255, 255, 0.25); border-radius: 14px; }
.scroll-hint span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; background: var(--green); border-radius: 2px; animation: scroll 1.8s infinite; }
@keyframes scroll { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- Sections ---------- */
.section { padding: 120px 0; position: relative; }
.section-kicker { font-family: var(--mono); font-size: 14px; color: var(--green); margin-bottom: 14px; }
.section-title { font-size: clamp(32px, 4.4vw, 52px); font-weight: 700; margin-bottom: 56px; max-width: 820px; }

/* Apparition au défilement */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- Offre ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.card {
  --c: var(--green);
  position: relative;
  background: linear-gradient(180deg, var(--bg-3), var(--bg-2));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 30px;
  display: flex; flex-direction: column; gap: 14px;
  overflow: hidden;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.card::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 2px;
  background: var(--c); box-shadow: 0 0 18px var(--c);
}
.card:hover { transform: translateY(-6px); border-color: color-mix(in srgb, var(--c) 45%, transparent); box-shadow: 0 20px 60px -20px color-mix(in srgb, var(--c) 40%, transparent); }
.card-blue { --c: var(--blue); }
.card-red { --c: var(--red); }
.card-featured { background: linear-gradient(180deg, rgba(0, 194, 255, 0.08), var(--bg-2) 60%); }
.card.reveal.visible:hover { transform: translateY(-6px); }
.badge { position: absolute; top: 18px; right: 18px; font-family: var(--mono); font-size: 12px; color: var(--blue); border: 1px solid rgba(0, 194, 255, 0.4); padding: 4px 10px; border-radius: 999px; }
.card-ico { width: 56px; height: 56px; }
.card-ico svg { width: 100%; height: 100%; fill: none; stroke: var(--c); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 6px color-mix(in srgb, var(--c) 60%, transparent)); }
.price { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.price .amount { font-size: 44px; font-weight: 700; color: var(--c); letter-spacing: -0.03em; }
.price .unit { font-family: var(--mono); font-size: 13px; color: var(--muted); }
.card h3 { font-size: 21px; }
.card p { color: var(--muted); }

.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.checklist li { position: relative; padding-left: 28px; color: #cfd8e3; }
.checklist li::before { content: ""; position: absolute; left: 0; top: 0.45em; width: 14px; height: 8px; border-left: 2px solid var(--green); border-bottom: 2px solid var(--green); transform: rotate(-45deg); }

.logos { list-style: none; padding: 0; margin: 8px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.logo-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 10px;
  background: #fff; color: #111; font-weight: 700; font-size: 15px;
  letter-spacing: -0.01em;
}
.logo-chip img { width: 22px; height: 22px; object-fit: contain; }
.logo-chip.lc-more { background: transparent; color: var(--muted); border: 1px dashed var(--line); font-weight: 500; }

/* ---------- Roadmap ---------- */
.methode { background: linear-gradient(180deg, transparent, rgba(0, 194, 255, 0.03) 30%, rgba(0, 255, 156, 0.03) 70%, transparent); }
.roadmap {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px;
  position: relative;
}
/* ligne de route animée */
.roadmap::before {
  content: "";
  position: absolute; left: 4%; right: 4%; top: 27px; height: 2px;
  background: repeating-linear-gradient(90deg, var(--green) 0 12px, transparent 12px 22px);
  background-size: 22px 2px;
  opacity: 0.55;
  animation: road 1.2s linear infinite;
}
@keyframes road { to { background-position: 22px 0; } }
.step { position: relative; text-align: left; transition-delay: calc(var(--i, 0) * 120ms); }
.step-num {
  position: relative; z-index: 1;
  width: 56px; height: 56px; display: grid; place-items: center;
  border-radius: 50%; background: var(--bg);
  border: 2px solid var(--green);
  font-family: var(--mono); font-weight: 600; color: var(--green);
  box-shadow: 0 0 20px rgba(0, 255, 156, 0.35);
  margin-bottom: 22px;
}
.step:nth-child(2) .step-num, .step:nth-child(4) .step-num { border-color: var(--blue); color: var(--blue); box-shadow: 0 0 20px rgba(0, 194, 255, 0.35); }
.step:nth-child(5) .step-num { border-color: var(--red); color: var(--red); box-shadow: 0 0 20px rgba(255, 46, 77, 0.35); }
.step-illu {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 14px;
  padding: 12px; margin-bottom: 18px; aspect-ratio: 16 / 11;
}
.step-illu svg { width: 100%; height: 100%; }
.step h3 { font-size: 18px; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 15px; }

/* styles SVG partagés */
.s-g, .s-b, .s-r { fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.s-g { stroke: var(--green); }
.s-b { stroke: var(--blue); }
.s-r { stroke: var(--red); }
.thin { stroke-width: 1.6; opacity: 0.6; }
.f-g { fill: var(--green); }
.f-b { fill: var(--blue); }
.f-r { fill: var(--red); }
.fill-soft { fill: rgba(0, 255, 156, 0.12); }

.anim-blink { animation: blink 1.4s infinite; }
.anim-type { stroke-dasharray: 140; stroke-dashoffset: 140; animation: typeLine 3.2s ease-in-out infinite; }
.anim-type.d1 { animation-delay: 0.35s; }
.anim-type.d2 { animation-delay: 0.7s; }
.anim-type.d3 { animation-delay: 1.05s; }
@keyframes typeLine { 0% { stroke-dashoffset: 140; } 40%, 80% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: -140; } }
.anim-check { stroke-dasharray: 30; stroke-dashoffset: 30; animation: check 2.4s ease infinite; }
@keyframes check { 30%, 80% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 0; opacity: 0; } }
.anim-wave { animation: wave 1.6s ease-in-out infinite; }
.anim-wave.d1 { animation-delay: 0.3s; }
@keyframes wave { 0%, 100% { opacity: 0.15; } 50% { opacity: 1; } }

/* ---------- Références (carrousel) ---------- */
.references { overflow-x: clip; }
.carousel { position: relative; }
.carousel-track { display: grid; }
.slide {
  grid-area: 1 / 1;
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center;
  background: linear-gradient(135deg, var(--bg-3), var(--bg-2));
  border: 1px solid var(--line); border-radius: 22px;
  padding: 44px;
  opacity: 0; visibility: hidden; transform: translateX(30px);
  transition: opacity 0.6s ease, transform 0.6s ease, visibility 0.6s;
}
.slide.is-active { opacity: 1; visibility: visible; transform: none; }
.slide-visual { border-radius: 14px; background: #070a0f; border: 1px solid rgba(0, 194, 255, 0.18); padding: 10px; box-shadow: 0 0 60px -20px rgba(0, 194, 255, 0.35); }
.slide-visual svg { width: 100%; height: auto; }
.ui-frame { fill: #0b1017; stroke: rgba(255, 255, 255, 0.08); }
.ui-side { fill: #0e151e; }
.ui-panel { fill: #111a24; stroke: rgba(255, 255, 255, 0.06); }
.ui-label { font-family: var(--mono); font-size: 11px; fill: var(--muted); letter-spacing: 0.06em; }
.ui-label.g { fill: var(--green); font-weight: 600; }
.ui-label.r { fill: var(--red); }
.ui-big { font-family: var(--font); font-weight: 700; font-size: 22px; fill: var(--text); }
.ui-big.g { fill: var(--green); }
.route { stroke-dasharray: 260; stroke-dashoffset: 260; }
.slide.is-active .route { animation: draw 2.2s ease forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.bars rect { transform-box: fill-box; transform-origin: bottom; transform: scaleY(0); }
.slide.is-active .bars rect { animation: grow 0.9s ease forwards; }
.bars rect:nth-child(2) { animation-delay: 0.1s !important; }
.bars rect:nth-child(3) { animation-delay: 0.2s !important; }
.bars rect:nth-child(4) { animation-delay: 0.3s !important; }
.bars rect:nth-child(5) { animation-delay: 0.4s !important; }
.bars rect:nth-child(6) { animation-delay: 0.5s !important; }
@keyframes grow { to { transform: scaleY(1); } }
.pulse { animation: blink 1.2s infinite; }
.float { animation: float 4s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-6px); } }

.slide-type { font-family: var(--mono); font-size: 13px; color: var(--blue); margin-bottom: 10px; }
.slide-text h3 { font-size: clamp(24px, 2.6vw, 32px); margin-bottom: 14px; }
.slide-client { color: #cfd8e3; margin-bottom: 14px; }
.slide-text > p:not(.slide-type):not(.slide-client) { color: var(--muted); margin-bottom: 10px; }
.slide-text .checklist { margin-bottom: 22px; }
.link-arrow { font-family: var(--mono); color: var(--green); border-bottom: 1px solid rgba(0, 255, 156, 0.35); padding-bottom: 2px; }
.link-arrow::after { content: " ↗"; }
.link-arrow:hover { border-bottom-color: var(--green); }

.carousel-controls { display: flex; align-items: center; justify-content: center; gap: 20px; margin-top: 28px; }
.car-btn { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); background: var(--bg-2); color: var(--text); font-size: 20px; cursor: pointer; transition: border-color 0.2s, color 0.2s; }
.car-btn:hover { border-color: var(--green); color: var(--green); }
.car-dots { display: flex; gap: 10px; }
.car-dots button { width: 10px; height: 10px; border-radius: 999px; border: 0; padding: 0; background: rgba(255, 255, 255, 0.2); cursor: pointer; transition: width 0.3s, background 0.3s; }
.car-dots button.is-active { width: 32px; background: var(--green); box-shadow: 0 0 10px var(--green); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.contact .section-title { margin-bottom: 20px; }
.lead { color: var(--muted); font-size: 18px; margin-bottom: 32px; max-width: 460px; }
.phone-big { display: inline-flex; align-items: center; gap: 14px; font-size: clamp(28px, 3.4vw, 40px); font-weight: 700; color: var(--green); font-family: var(--mono); letter-spacing: -0.02em; margin-bottom: 40px; text-shadow: 0 0 24px rgba(0, 255, 156, 0.35); }
.phone-ico { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: rgba(0, 255, 156, 0.1); border: 1px solid rgba(0, 255, 156, 0.4); }
.phone-ico svg { width: 24px; height: 24px; fill: var(--green); }
.agencies { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.agency { font-style: normal; padding: 22px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg-2); border-left: 3px solid var(--blue); }
.agency:nth-child(2) { border-left-color: var(--red); }
.agency h3 { font-size: 17px; margin-bottom: 8px; }
.agency p { color: var(--muted); font-size: 15px; }

.form-wrap { background: linear-gradient(180deg, var(--bg-3), var(--bg-2)); border: 1px solid var(--line); border-radius: 20px; padding: 32px; position: relative; }
.form-callout { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; padding: 14px 18px; margin-bottom: 26px; border-radius: 12px; background: rgba(255, 46, 77, 0.08); border: 1px solid rgba(255, 46, 77, 0.35); }
.form-callout span { color: #f3c2ca; font-size: 15px; }
.form-callout a { font-family: var(--mono); font-weight: 600; color: var(--red); font-size: 18px; }
.contact-form { display: grid; gap: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 14px; color: var(--muted); font-family: var(--mono); }
.field input, .field textarea {
  width: 100%; font: inherit; color: var(--text);
  background: #070a0f; border: 1px solid var(--line); border-radius: 10px;
  padding: 13px 14px; transition: border-color 0.2s, box-shadow 0.2s; resize: vertical;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(0, 255, 156, 0.15); }
.field.invalid input, .field.invalid textarea { border-color: var(--red); }
.hp { position: absolute; left: -9999px; }
.form-status { min-height: 1.4em; font-size: 15px; }
.form-status.ok { color: var(--green); }
.form-status.err { color: var(--red); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 64px 0 28px; background: #030406; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr 1fr; gap: 40px; }
.footer-grid h4 { font-size: 14px; font-family: var(--mono); color: var(--green); margin-bottom: 14px; font-weight: 600; }
.footer-grid nav, .footer-grid > div { display: flex; flex-direction: column; gap: 8px; }
.footer-grid a, .footer-grid p { color: var(--muted); font-size: 15px; }
.footer-grid a:hover { color: var(--text); }
.footer-tag { max-width: 260px; margin-top: 10px; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; border-top: 1px solid var(--line); margin-top: 48px; padding-top: 22px; color: var(--muted); font-size: 14px; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .roadmap { grid-template-columns: repeat(3, 1fr); row-gap: 40px; }
  .roadmap::before { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { justify-self: center; max-width: 420px; }
  .cards { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
  .slide { grid-template-columns: 1fr; gap: 28px; padding: 26px; }
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .section { padding: 90px 0; }

  .nav-toggle { display: block; z-index: 2; }
  .main-nav {
    position: fixed; inset: 0; flex-direction: column; justify-content: center; gap: 30px;
    background: rgba(5, 7, 10, 0.97); font-size: 22px;
    opacity: 0; visibility: hidden; transition: opacity 0.3s, visibility 0.3s;
  }
  .main-nav.open { opacity: 1; visibility: visible; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .roadmap { grid-template-columns: 1fr; }
  /* roadmap verticale sur mobile */
  .roadmap { padding-left: 0; }
  .step { display: grid; grid-template-columns: 56px 1fr; column-gap: 18px; }
  .step-num { grid-row: 1 / span 3; margin-bottom: 0; }
  .step::before { content: ""; position: absolute; left: 27px; top: 56px; bottom: -40px; width: 2px; background: repeating-linear-gradient(180deg, var(--green) 0 10px, transparent 10px 18px); opacity: 0.4; }
  .step:last-child::before { display: none; }
  .hero-cta .btn { width: 100%; }
  .agencies, .field-row { grid-template-columns: 1fr; }
  .form-wrap { padding: 22px; }
  .footer-grid { grid-template-columns: 1fr; }
  .terminal-body { font-size: 11.5px; min-height: 200px; }
  .hero-visual { max-width: 340px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
  .route { stroke-dashoffset: 0; }
  .bars rect { transform: none; }
  .anim-type, .anim-check { stroke-dashoffset: 0; }
}
.footer-grid .logo { font-size: 22px; color: var(--text); }

/* CTA après l'offre */
.offre-cta { margin-top: 44px; display: flex; align-items: center; justify-content: center; gap: 24px; flex-wrap: wrap; text-align: center; }
.offre-cta p { color: var(--muted); font-size: 18px; }

/* Menu mobile : fond noir opaque (le header ne doit pas confiner le menu) */
@media (max-width: 900px) {
  .site-header.menu-open { background: #05070a; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .main-nav { background: #05070a; }
}
