/* Frayor — design system. Voir /DESIGN.md pour le contrat de marque. */

:root {
  /* primitives */
  --paper: #f4f1e9;
  --paper-2: #ece7da;
  --surface: #fbf9f3;
  --ink: #14180f;
  --ink-2: #2a3326;
  --muted: #5c6354;
  --pine: #123a2e;
  --pine-2: #0c2a21;
  --pine-bright: #1c6b54;
  --ember: #c0531f;
  --ember-2: #d9663a;
  --ember-soft: #f6e7dc;
  --line: #ddd6c6;
  --line-2: #cdc4af;
  --ok: #1c6b54;
  --warn: #a16207;
  --alert: #b3402e;

  /* semantic */
  --bg: var(--paper);
  --text: var(--ink);
  --text-2: var(--muted);
  --accent: var(--ember);

  /* type */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-sans: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  /* radius — gradué */
  --r-xs: 6px;
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 22px;

  /* élévation */
  --sh-1: 0 1px 2px rgba(20, 24, 15, .05), 0 2px 6px rgba(20, 24, 15, .04);
  --sh-2: 0 12px 30px -14px rgba(20, 24, 15, .20), 0 4px 10px -6px rgba(20, 24, 15, .10);
  --sh-3: 0 38px 80px -28px rgba(12, 42, 33, .42), 0 12px 28px -16px rgba(20, 24, 15, .22);

  /* motion */
  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  --max: 1180px;
  --gutter: clamp(18px, 4vw, 48px);
  --header-h: 76px;
}

body.dark {
  --paper: #0d130f;
  --paper-2: #111a14;
  --surface: #14201a;
  --ink: #eef0e6;
  --ink-2: #d3dccf;
  --muted: #9aa698;
  --line: #25332b;
  --line-2: #2f4036;
  --ember: #e0773f;
  --ember-soft: #2a1d14;
  --pine: #0a221b;
  /* re-résoudre les tokens sémantiques dans le scope sombre (sinon ils restent figés sur les valeurs claires de :root) */
  --bg: var(--paper);
  --text: var(--ink);
  --text-2: var(--muted);
  --accent: var(--ember);
  --sh-1: 0 1px 2px rgba(0, 0, 0, .4);
  --sh-2: 0 14px 34px -16px rgba(0, 0, 0, .6);
  --sh-3: 0 40px 84px -28px rgba(0, 0, 0, .7);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 34px);
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  position: relative;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(1200px 600px at 78% -8%, rgba(18, 58, 46, .07), transparent 60%),
    radial-gradient(900px 500px at -5% 8%, rgba(192, 83, 31, .05), transparent 55%);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
main, .site-header, .site-footer, .chat-system { position: relative; z-index: 1; }

.motion-layer {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  opacity: .9;
}
.motion-layer::before {
  content: "";
  position: absolute;
  inset: -12% -8%;
  background:
    linear-gradient(115deg, transparent 0 31%, rgba(18, 58, 46, .08) 31.2% 31.5%, transparent 31.7% 100%),
    linear-gradient(115deg, transparent 0 58%, rgba(192, 83, 31, .055) 58.1% 58.35%, transparent 58.55% 100%),
    repeating-linear-gradient(90deg, transparent 0 91px, rgba(18, 58, 46, .045) 92px 93px);
  transform: translate3d(0, var(--ambient-y, 0px), 0);
  transition: transform .35s var(--ease-out);
}
.motion-layer span {
  position: absolute;
  left: var(--x, 12%);
  top: -20%;
  width: 1px;
  height: 46vh;
  background: linear-gradient(180deg, transparent, rgba(192, 83, 31, .24), transparent);
  transform: rotate(18deg) translate3d(0, 0, 0);
  animation: signalDrift 8s var(--ease) infinite;
}
.motion-layer span:nth-child(1) { --x: 18%; animation-delay: -1s; }
.motion-layer span:nth-child(2) { --x: 58%; height: 54vh; animation-duration: 11s; animation-delay: -4s; }
.motion-layer span:nth-child(3) { --x: 82%; height: 40vh; animation-duration: 9s; animation-delay: -6s; }
body.dark .motion-layer { opacity: .42; }

::selection { background: var(--ember); color: #fff; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }

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

/* ---------- typographie ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-variation-settings: "opsz" 40, "SOFT" 0, "WONK" 0;
  font-weight: 380;
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin: 0 0 .5em;
  color: var(--ink);
}
h1 { font-size: clamp(2.5rem, 1.6rem + 3vw, 4rem); }
h2 { font-size: clamp(2rem, 1.3rem + 2.6vw, 3.15rem); }
h3 { font-size: clamp(1.3rem, 1.1rem + .7vw, 1.6rem); font-weight: 460; letter-spacing: -0.015em; }
p { margin: 0 0 1rem; }
strong { font-weight: 600; }

.lead {
  font-size: clamp(1.1rem, 1rem + .4vw, 1.32rem);
  line-height: 1.55;
  color: var(--text-2);
  max-width: 46ch;
}

/* accent éditorial : lisible sur mobile, sans effet "faute soulignée" */
.mark {
  position: relative;
  font-weight: 560;
  font-variation-settings: "opsz" 40, "SOFT" 0, "WONK" 0;
  color: var(--ink);
  background-image: linear-gradient(90deg, rgba(192, 83, 31, .22), rgba(192, 83, 31, .08));
  background-repeat: no-repeat;
  background-position: 0 83%;
  background-size: 100% .48em;
  border-radius: .08em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  padding-inline: .03em;
}
body.dark .mark {
  background-image: linear-gradient(90deg, rgba(224, 119, 63, .32), rgba(224, 119, 63, .12));
}
/* sur section sombre (mode clair), le mot souligné doit rester clair */
.section--dark .mark { color: #f3f7f2; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  font-family: var(--font-mono);
  font-size: .76rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ember);
}
.eyebrow::before {
  content: "";
  width: 1.6em;
  height: 1px;
  background: currentColor;
  opacity: .55;
}
.eyebrow--center { justify-content: center; }

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

.section { padding-block: clamp(64px, 8vw, 116px); }
.section--alt { background: var(--paper-2); border-block: 1px solid var(--line); }
section[id], .wrap[id] { scroll-margin-top: calc(var(--header-h) + 34px); }
.section--dark {
  background: var(--pine-2);
  color: #e8efe9;
  position: relative;
  overflow: hidden;
}
.section--dark h1, .section--dark h2, .section--dark h3 { color: #f3f7f2; }
.section--dark p { color: rgba(232, 239, 233, .72); }
.section--dark .eyebrow { color: var(--ember-2); }

.section-head { max-width: 56ch; margin-bottom: clamp(32px, 4vw, 56px); }
.section-head .lead { margin-top: .8rem; max-width: 54ch; }
.section-head--center { max-width: 60ch; margin-inline: auto; text-align: center; }
.section-head--center .lead { margin-inline: auto; }

/* grille de flux — motif signature */
.flux { position: relative; }
.flux::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(90deg, rgba(18, 58, 46, .06) 0 1px, transparent 1px 92px);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 18%, #000 82%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 18%, #000 82%, transparent);
  pointer-events: none;
}
.section--dark.flux::before { background-image: repeating-linear-gradient(90deg, rgba(255, 255, 255, .05) 0 1px, transparent 1px 92px); }

/* séparateur ember asymétrique */
.rule { height: 2px; border: 0; margin: 0; background: linear-gradient(90deg, var(--ember) 0 18%, var(--line) 18%); }

/* ---------- boutons ---------- */
.btn {
  --btn-bg: var(--pine);
  --btn-fg: #f6f4ec;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55em;
  min-height: 50px;
  padding: 0 1.35rem;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: .98rem;
  letter-spacing: -.005em;
  color: var(--btn-fg);
  background: var(--btn-bg);
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: transform .18s var(--ease), box-shadow .22s var(--ease), background .22s var(--ease), border-color .22s var(--ease);
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--sh-2); }
.btn:active { transform: translateY(0); }
.btn .ico { width: 1.05em; height: 1.05em; }

.btn--primary { --btn-bg: var(--ember); --btn-fg: #fff; box-shadow: 0 14px 30px -14px rgba(192, 83, 31, .6); }
.btn--primary:hover { --btn-bg: var(--ember-2); box-shadow: 0 18px 40px -14px rgba(192, 83, 31, .55); }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  border-color: var(--line-2);
}
.btn--ghost:hover { border-color: var(--pine); background: rgba(18, 58, 46, .04); box-shadow: none; transform: translateY(-2px); }
.btn--ghost .arrow { transition: transform .2s var(--ease); }
.btn--ghost:hover .arrow { transform: translateX(3px); }

.section--dark .btn--ghost, .btn--on-dark { --btn-fg: #f3f7f2; border-color: rgba(243, 247, 242, .26); }
.section--dark .btn--ghost:hover { background: rgba(255, 255, 255, .07); border-color: rgba(243, 247, 242, .5); }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 18px;
  padding-inline: var(--gutter);
  background: color-mix(in srgb, var(--paper) 78%, transparent);
  backdrop-filter: saturate(140%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s var(--ease), background .25s var(--ease);
}
.site-header.scrolled { border-bottom-color: var(--line); background: color-mix(in srgb, var(--paper) 92%, transparent); }

.brand { display: inline-flex; align-items: center; gap: .65rem; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  font-family: var(--font-display);
  font-weight: 540;
  font-size: 1.25rem;
  color: #f6f4ec;
  background: var(--pine);
  border-radius: 11px 11px 11px 3px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08), var(--sh-1);
}
.brand b { display: block; font-family: var(--font-display); font-weight: 500; font-size: 1.12rem; letter-spacing: -.02em; line-height: 1.05; }
.brand b + span { display: block; font-size: .72rem; color: var(--muted); margin-top: 3px; font-family: var(--font-sans); }

.nav { display: flex; gap: 2px; margin-left: 8px; }
.nav-mobile-cta { display: none; }
.nav a {
  padding: .5rem .7rem;
  font-size: .92rem;
  font-weight: 500;
  color: var(--muted);
  border-radius: var(--r-xs);
  transition: color .18s, background .18s;
}
.nav a:hover { color: var(--ink); background: rgba(18, 58, 46, .06); }

.header-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.theme-toggle {
  display: grid; place-items: center;
  width: 42px; height: 42px;
  background: transparent;
  border: 1px solid var(--line-2);
  border-radius: var(--r-xs);
  cursor: pointer;
  transition: border-color .2s, background .2s;
}
.theme-toggle:hover { border-color: var(--pine); }
.theme-toggle .ico { width: 18px; height: 18px; }
.theme-toggle .ico-sun { display: none; }
body.dark .theme-toggle .ico-sun { display: block; }
body.dark .theme-toggle .ico-moon { display: none; }

.nav-toggle { display: none; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  padding: 10px 16px; color: #fff; background: var(--pine); border-radius: var(--r-sm);
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 14px; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding-block: clamp(40px, 5vw, 76px) clamp(48px, 6vw, 92px); }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}
.hero-copy { max-width: 37rem; }
.hero h1 { margin-top: .4rem; }
.hero .lead { margin-top: 1.2rem; max-width: 40ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.8rem; }

.assurances {
  display: flex; flex-wrap: wrap; gap: .5rem 1.4rem;
  margin-top: 1.8rem;
  font-family: var(--font-mono);
  font-size: .78rem;
  color: var(--muted);
}
.assurances span { display: grid; grid-template-columns: auto 1fr; align-items: start; gap: .5em; min-width: 0; }
.assurances .dot { width: 6px; height: 6px; margin-top: .5em; border-radius: 50%; background: var(--ok); }

/* garde-fou anti-débordement horizontal (le texte s'élargit après chargement des polices) */
html, body { overflow-x: clip; }
.hero-copy, .hero-demo, .hero-visual, .hero-showcase, .visual-frame, .visual-card, .visual-gallery, .demo, .demo-thread, .demo-bar, .demo-bar > div, .hero-grid > *, .page-copy, .contact-copy, .site-mock, .mock-vp, .airead-card, .tier, .module, .sector, .ba, .gallery3 { min-width: 0; }
.demo-q, .answer, .source-card, .prompt-chip, .email-card .ebody { overflow-wrap: anywhere; }
.prompt-chip { white-space: normal; }

/* ---------- preuve visuelle hero ---------- */
.hero-showcase {
  position: relative;
  isolation: isolate;
  transform:
    perspective(1000px)
    rotateX(var(--tilt-x, 0deg))
    rotateY(var(--tilt-y, 0deg))
    translate3d(0, calc(var(--scroll-shift, 0px) * -.18), 0);
  transform-style: preserve-3d;
  transition: transform .18s var(--ease-out);
  will-change: transform;
}
.hero-showcase::before {
  content: "";
  position: absolute;
  inset: 10% -4% -8% 10%;
  z-index: -1;
  background: radial-gradient(closest-side, rgba(192, 83, 31, .22), transparent 70%);
  filter: blur(18px);
  pointer-events: none;
}
.visual-frame {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: color-mix(in srgb, var(--surface) 86%, var(--paper));
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-3);
}
.visual-frame img,
.visual-card img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}
.hero-frame img { aspect-ratio: 3 / 2; }
.hero-frame {
  transform: translateZ(0);
}
.visual-frame figcaption {
  position: absolute;
  left: clamp(12px, 2vw, 18px);
  right: clamp(12px, 2vw, 18px);
  bottom: clamp(12px, 2vw, 18px);
  display: grid;
  gap: 5px;
  max-width: 24rem;
  padding: 12px 14px;
  color: #f6f4ec;
  background: color-mix(in srgb, var(--pine-2) 86%, transparent);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: var(--r-md);
  backdrop-filter: blur(14px);
}
.visual-frame figcaption span {
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #ffd9c2;
}
.visual-frame figcaption b {
  font-size: .95rem;
  line-height: 1.25;
}
.hero-proof-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  justify-content: flex-end;
}
.hero-proof-strip span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 11px;
  font-family: var(--font-mono);
  font-size: .72rem;
  color: var(--ink-2);
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: var(--sh-1);
}

/* ---------- comparateur Avant / Après (hero signature) ---------- */
.ba {
  --pos: 52%;
  position: relative;
  container-type: inline-size;
  aspect-ratio: 3 / 2;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--sh-3);
  isolation: isolate;
}
.hero-visual {
  transform: translateZ(0);
}
.js:not(.reduce-motion) .hero-visual {
  animation: visualFloat 7s var(--ease) infinite alternate;
}
.ba-after, .ba-before { position: absolute; inset: 0; }
.ba-after img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ba-before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); z-index: 2; }
.ba-divider { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: #fff; box-shadow: 0 0 0 1px rgba(20, 24, 15, .08), 0 0 16px rgba(20, 24, 15, .2); pointer-events: none; z-index: 3; }
.ba-handle { position: absolute; top: 50%; left: var(--pos); width: 46px; height: 46px; transform: translate(-50%, -50%); display: grid; place-items: center; color: var(--pine); background: #fff; border-radius: 50%; box-shadow: var(--sh-2); pointer-events: none; z-index: 4; }
.ba-handle .ico { width: 22px; height: 22px; }
.ba-range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; padding: 0; background: transparent; border: 0; opacity: 0; cursor: ew-resize; z-index: 5; -webkit-appearance: none; appearance: none; }
.ba-range::-webkit-slider-thumb { -webkit-appearance: none; width: 52px; height: 320px; cursor: ew-resize; }
.ba-range::-moz-range-thumb { width: 52px; height: 320px; border: 0; background: transparent; cursor: ew-resize; }
.ba-range:focus-visible ~ .ba-handle { outline: 2px solid var(--pine-bright); outline-offset: 3px; }
.ba-tag { position: absolute; top: 14px; z-index: 3; font-family: var(--font-mono); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; padding: 6px 11px; border-radius: 999px; color: #fff; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.ba-tag--before { left: 14px; background: rgba(20, 24, 15, .55); }
.ba-tag--after { right: 14px; background: color-mix(in srgb, var(--ember) 82%, #000); }
.ba-caption { margin-top: 12px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.ba-caption .hint { display: inline-flex; align-items: center; gap: .45em; font-family: var(--font-mono); font-size: .72rem; color: var(--muted); }
.ba-caption .hint .ico { width: 15px; height: 15px; color: var(--ember); }
.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}
.hero-metrics span {
  min-width: 0;
  padding: 10px 11px;
  color: var(--ink-2);
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  box-shadow: var(--sh-1);
  font-family: var(--font-mono);
  font-size: .68rem;
  line-height: 1.35;
}
.hero-metrics b {
  display: block;
  margin-bottom: 2px;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 560;
  line-height: 1;
  color: var(--ink);
}
.hero-system-map {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: stretch;
  gap: 8px;
  margin-top: 10px;
  padding: 9px;
  color: var(--ink-2);
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--sh-1);
}
.hero-system-map span {
  min-width: 0;
  display: grid;
  gap: 2px;
  align-content: center;
  min-height: 46px;
  padding: 7px 8px;
  border-radius: var(--r-xs);
  background: color-mix(in srgb, var(--paper) 76%, transparent);
  font-family: var(--font-mono);
  font-size: .61rem;
  line-height: 1.18;
}
.hero-system-map b {
  display: block;
  font-family: var(--font-sans);
  font-size: .78rem;
  line-height: 1.1;
  color: var(--ink);
}
.hero-system-map i {
  align-self: center;
  width: 16px;
  height: 1px;
  background: linear-gradient(90deg, var(--line-2), var(--ember));
  position: relative;
}
.hero-system-map i::after {
  content: "";
  position: absolute;
  right: -1px;
  top: 50%;
  width: 5px;
  height: 5px;
  border-top: 1px solid var(--ember);
  border-right: 1px solid var(--ember);
  transform: translateY(-50%) rotate(45deg);
}

/* ---------- audit express interactif ---------- */
.section--system {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1000px 560px at 90% 8%, rgba(28, 107, 84, .16), transparent 58%),
    linear-gradient(180deg, var(--paper), var(--paper-2));
  border-block: 1px solid var(--line);
}
.audit-grid {
  display: grid;
  grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
}
.audit-copy .lead { margin-top: 1rem; }
.audit-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}
.audit-pill {
  min-height: 42px;
  padding: 9px 13px;
  color: var(--ink-2);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: var(--sh-1);
  cursor: pointer;
  transition: transform .2s var(--ease), border-color .2s var(--ease), background .2s var(--ease), color .2s var(--ease);
}
.audit-pill:hover { transform: translateY(-1px); border-color: var(--pine-bright); }
.audit-pill.is-active {
  color: #fff;
  background: var(--pine);
  border-color: var(--pine);
}
.audit-needs {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}
.need-card {
  display: grid;
  gap: 2px;
  min-height: 66px;
  padding: 13px 15px;
  text-align: left;
  color: var(--ink);
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  box-shadow: var(--sh-1);
  cursor: pointer;
  transition: transform .2s var(--ease), border-color .2s var(--ease), background .2s var(--ease);
}
.need-card:hover { transform: translateY(-1px); border-color: var(--line-2); }
.need-card.is-active {
  background: #fff;
  border-color: color-mix(in srgb, var(--ember) 36%, var(--line));
  box-shadow: 0 18px 42px -26px rgba(192, 83, 31, .42), var(--sh-1);
}
body.dark .need-card.is-active { background: #18251e; }
.need-card span { font-weight: 700; }
.need-card b { font-size: .86rem; font-weight: 500; color: var(--muted); }
.audit-console {
  overflow: hidden;
  color: #e8efe9;
  background:
    radial-gradient(120% 80% at 90% 0%, rgba(28, 107, 84, .36), transparent 60%),
    linear-gradient(180deg, #143c30, #0b241d);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-3);
}
.console-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 17px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.console-head .brand-mark {
  width: 38px;
  height: 38px;
  background: var(--ember);
}
.console-head b { display: block; line-height: 1.2; }
.console-head span:not(.brand-mark):not(.scan-live) {
  display: block;
  margin-top: 2px;
  font-family: var(--font-mono);
  font-size: .68rem;
  color: rgba(232, 239, 233, .6);
}
.scan-live {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: .45em;
  min-height: 32px;
  padding: 5px 10px;
  font-family: var(--font-mono);
  font-size: .66rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #9be6c6;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 999px;
}
.blueprint {
  position: relative;
  min-height: 320px;
  margin: 18px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(9, 28, 23, .12), rgba(9, 28, 23, .88)),
    var(--blueprint-img) center / cover;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: var(--r-md);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .04);
}
.blueprint::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 34px 34px;
  pointer-events: none;
  opacity: .75;
}
.bp-browser {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 6px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, .08);
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.bp-browser span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .32);
}
.bp-screen {
  position: absolute;
  inset: auto 18px 18px;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(140px, .45fr);
  gap: 14px;
  align-items: end;
}
.bp-copy,
.bp-card {
  padding: 15px;
  color: #f6f4ec;
  background: rgba(10, 34, 27, .72);
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: var(--r-md);
  backdrop-filter: blur(14px);
}
.bp-copy span,
.bp-card span {
  display: block;
  margin-bottom: 6px;
  font-family: var(--font-mono);
  font-size: .65rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #ffd9c2;
}
.bp-copy b {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.6vw, 1.8rem);
  font-weight: 440;
  line-height: 1.08;
}
.bp-card b { display: block; line-height: 1.15; }
.audit-result {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 0 18px 18px;
}
.audit-result > div {
  min-width: 0;
  padding: 15px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: var(--r-md);
}
.result-label {
  display: block;
  margin-bottom: 10px;
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #9be6c6;
}
.audit-result ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: .9rem;
}
.audit-result li {
  display: grid;
  grid-template-columns: 10px 1fr;
  gap: 9px;
  align-items: start;
}
.audit-result li::before {
  content: "";
  width: 6px;
  height: 6px;
  margin-top: .62em;
  border-radius: 50%;
  background: #46d39e;
}
.audit-reco {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 5px 14px;
  align-items: center;
  padding: 16px 18px 18px;
  background: rgba(0, 0, 0, .15);
  border-top: 1px solid rgba(255, 255, 255, .1);
}
.audit-reco span {
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(232, 239, 233, .58);
}
.audit-reco b {
  grid-column: 1;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 520;
  line-height: 1;
}
.audit-reco .btn {
  grid-column: 2;
  grid-row: 1 / span 2;
}

/* « Avant » : un vieux site daté, entièrement en CSS */
.oldsite { position: absolute; inset: 0; width: 100%; height: 100%; overflow: hidden; background: #e9eaec; font-family: "Times New Roman", Times, serif; color: #1f2937; }
.oldsite .os-top { background: #2f5a8f; color: #fff; font-weight: 700; font-size: clamp(.62rem, 2.6cqw, 1.05rem); padding: 8px 12px; }
.oldsite .os-body { display: grid; grid-template-columns: 1fr 2.3fr; gap: 3cqw; padding: 3cqw 3cqw 0; }
.oldsite .os-side { display: grid; align-content: start; gap: 2cqw; }
.oldsite .os-side a { color: #1b4ea0; text-decoration: underline; font-size: clamp(.55rem, 2.1cqw, .9rem); }
.oldsite .os-main h3 { margin: 0 0 2cqw; color: #b3402e; font-size: clamp(.8rem, 3.4cqw, 1.5rem); font-weight: 700; }
.oldsite .os-img { height: 16cqw; width: 62%; background: repeating-linear-gradient(45deg, #c7ccd2 0 8px, #b9bfc6 8px 16px); border: 1px solid #9aa0a6; margin-bottom: 2cqw; }
.oldsite .os-main p { margin: 0 0 1.6cqw; font-size: clamp(.52rem, 2.2cqw, .9rem); line-height: 1.35; color: #3a4250; }
.oldsite .os-promo { display: inline-block; margin-top: 1cqw; color: #c81e1e; font-weight: 700; font-size: clamp(.55rem, 2.4cqw, .95rem); }
.oldsite .os-foot { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.6cqw 3cqw; background: #d4d7db; border-top: 1px solid #b3b8bd; font-size: clamp(.5rem, 1.9cqw, .78rem); color: #5b6470; }

/* ---------- galerie d'exemples cohérente (même langage que le hero) ---------- */
.gallery3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 2vw, 22px); }
.g-ex { display: grid; gap: 12px; margin: 0; }
.g-ex .site-mock { box-shadow: var(--sh-2); transition: transform .28s var(--ease), box-shadow .28s var(--ease); }
.g-ex:hover .site-mock { transform: translateY(-4px); box-shadow: var(--sh-3); }
.g-ex figcaption { display: flex; align-items: baseline; justify-content: space-between; gap: .8rem; padding-inline: 2px; }
.g-ex figcaption b { font-family: var(--font-display); font-weight: 520; font-size: 1.05rem; }
.g-ex figcaption span { font-family: var(--font-mono); font-size: .7rem; color: var(--muted); text-align: right; }
.showcase-shot {
  position: relative;
  overflow: hidden;
  min-height: 360px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--sh-3);
  isolation: isolate;
  transition: transform .34s var(--ease), box-shadow .34s var(--ease), border-color .34s var(--ease);
}
.showcase-shot::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(180deg, transparent 38%, rgba(12, 42, 33, .2) 68%, rgba(12, 42, 33, .72) 100%),
    radial-gradient(80% 55% at 78% 0%, color-mix(in srgb, var(--mock) 25%, transparent), transparent 70%);
  pointer-events: none;
}
.showcase-shot img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
  transform: scale(1.01);
  transition: transform .7s var(--ease-out);
}
.g-ex:hover .showcase-shot {
  transform: translateY(-5px);
  border-color: color-mix(in srgb, var(--mock) 35%, var(--line));
  box-shadow: 0 46px 92px -36px rgba(12, 42, 33, .48), 0 14px 34px -20px rgba(20, 24, 15, .24);
}
.g-ex:hover .showcase-shot img { transform: scale(1.045); }
.shot-panel {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 3;
  display: grid;
  gap: 6px;
  padding: 14px 15px;
  color: #f6f4ec;
  background: color-mix(in srgb, var(--pine-2) 82%, transparent);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: var(--r-md);
  box-shadow: 0 18px 38px -22px rgba(0, 0, 0, .55);
  backdrop-filter: blur(16px);
}
.shot-panel span {
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #ffd9c2;
}
.shot-panel b {
  font-family: var(--font-sans);
  font-size: .95rem;
  line-height: 1.25;
}

/* ---------- démo agent (signature) ---------- */
.demo {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 460px;
  padding: 18px;
  color: #e8efe9;
  background:
    radial-gradient(120% 80% at 90% 0%, rgba(28, 107, 84, .35), transparent 60%),
    linear-gradient(180deg, #143c30, #0c2a21);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-3);
}
.demo::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
  background-size: 30px 30px;
  border-radius: inherit;
  -webkit-mask-image: radial-gradient(120% 100% at 80% 0%, #000, transparent 75%);
  mask-image: radial-gradient(120% 100% at 80% 0%, #000, transparent 75%);
  pointer-events: none;
}
.demo > * { position: relative; z-index: 1; }
.demo-bar { display: flex; align-items: center; gap: .6rem; padding-bottom: 14px; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.demo-bar .av { width: 30px; height: 30px; border-radius: 9px; background: var(--ember); display: grid; place-items: center; color: #fff; font-family: var(--font-display); font-weight: 500; }
.demo-bar b { font-size: .92rem; font-weight: 600; }
.demo-bar span { font-family: var(--font-mono); font-size: .68rem; color: rgba(232, 239, 233, .55); }
.demo-live { margin-left: auto; display: inline-flex; align-items: center; gap: .45em; font-family: var(--font-mono); font-size: .66rem; letter-spacing: .08em; text-transform: uppercase; color: #9be6c6; }
.demo-live .pulse { width: 7px; height: 7px; border-radius: 50%; background: #46d39e; box-shadow: 0 0 0 0 rgba(70, 211, 158, .6); animation: livePulse 2s var(--ease) infinite; }

.demo-prompts { display: flex; flex-wrap: wrap; gap: 7px; padding-block: 14px; }
.prompt-chip {
  padding: .5rem .75rem;
  font-family: var(--font-mono);
  font-size: .76rem;
  text-align: left;
  color: #d7e6df;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 999px;
  cursor: pointer;
  transition: background .18s, border-color .18s, transform .18s var(--ease);
}
.prompt-chip:hover { background: rgba(255, 255, 255, .13); transform: translateY(-1px); }
.prompt-chip[aria-pressed="true"] { background: var(--ember); border-color: var(--ember); color: #fff; }

.demo-thread { flex: 1; display: flex; flex-direction: column; gap: 12px; padding-top: 6px; }
.demo-q { align-self: flex-end; max-width: 86%; padding: .6rem .9rem; font-size: .9rem; background: rgba(255, 255, 255, .1); border-radius: 14px 14px 4px 14px; }
.demo-a { max-width: 94%; }
.demo-a .answer {
  padding: .85rem 1rem;
  font-size: .92rem;
  line-height: 1.55;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 4px 14px 14px 14px;
  white-space: pre-wrap;
}
.demo-a .answer ul { margin: .4rem 0 0; padding-left: 1.1rem; }
.demo-a .answer li { margin-bottom: .15rem; }
.cursor { display: inline-block; width: .5em; height: 1.05em; vertical-align: -.18em; margin-left: 1px; background: var(--ember-2); animation: blink 1s steps(1) infinite; }

.sources { display: grid; gap: 7px; margin-top: 10px; }
.sources-label { font-family: var(--font-mono); font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: rgba(232, 239, 233, .5); }
.source-card {
  display: flex; align-items: center; gap: .6rem;
  padding: .55rem .7rem;
  font-family: var(--font-mono);
  font-size: .76rem;
  color: #dbe8e1;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .1);
  border-left: 2px solid var(--ok);
  border-radius: var(--r-xs);
}
.source-card .ico { width: 15px; height: 15px; flex: none; color: #9be6c6; }
.source-card .pg { margin-left: auto; color: rgba(232, 239, 233, .5); }

.demo-foot { display: flex; align-items: center; gap: .6rem; margin-top: 12px; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, .1); }
.demo-foot small { font-size: .68rem; color: rgba(232, 239, 233, .45); }
.demo-foot .btn { min-height: 40px; margin-left: auto; padding-inline: 1rem; font-size: .85rem; }

/* ---------- bandeau confiance honnête ---------- */
.pilot {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px;
  padding: 18px 22px;
  background: var(--ember-soft);
  border: 1px solid color-mix(in srgb, var(--ember) 28%, var(--line));
  border-radius: var(--r-md);
}
.pilot .tag { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ember); font-weight: 600; }
.pilot p { margin: 0; font-size: .96rem; color: var(--ink-2); }
.pilot a { color: var(--ember); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
body.dark .pilot { background: #1e1610; }

/* ---------- timeline journée (casse la grille) ---------- */
.timeline { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0; margin-top: 8px; border-top: 2px solid var(--line-2); }
.t-item { position: relative; padding: 22px 14px 0; border-right: 1px solid var(--line); }
.t-item:last-child { border-right: 0; }
.t-item::before { content: ""; position: absolute; top: -7px; left: 14px; width: 12px; height: 12px; border-radius: 50%; background: var(--paper); border: 2px solid var(--pine); }
.t-item:nth-child(3)::before, .t-item:nth-child(4)::before { border-color: var(--ember); }
.t-item .time { font-family: var(--font-mono); font-size: .78rem; color: var(--ember); }
.t-item .dur { display: block; font-family: var(--font-display); font-size: 1.5rem; color: var(--ink); margin: 4px 0 6px; }
.t-item .lab { font-size: .85rem; color: var(--muted); line-height: 1.35; }

.cost-callout {
  margin-top: 28px;
  padding: 26px 28px;
  background: var(--pine-2);
  color: #e8efe9;
  border-radius: var(--r-lg);
  box-shadow: var(--sh-2);
}
.cost-callout p { color: rgba(232, 239, 233, .82); max-width: 62ch; margin: 0; font-size: 1.05rem; }
.cost-callout .big { color: var(--ember-2); font-family: var(--font-display); font-weight: 500; }
.cost-callout small { display: block; margin-top: 12px; font-family: var(--font-mono); font-size: .72rem; color: rgba(232, 239, 233, .45); }

/* ---------- modules 2x2 ---------- */
.modules { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.module {
  display: grid;
  gap: 12px;
  padding: 26px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--sh-1);
  transition: transform .24s var(--ease), box-shadow .24s var(--ease), border-color .24s var(--ease);
}
.module:hover { transform: translateY(-3px); box-shadow: var(--sh-2); border-color: var(--line-2); }
.module-ico { display: grid; place-items: center; width: 44px; height: 44px; color: var(--pine); background: #e7ede4; border-radius: 12px 12px 12px 4px; }
body.dark .module-ico { background: #15241c; color: #9be6c6; }
.module-ico .ico { width: 22px; height: 22px; }
.module h3 { margin: 0; }
.module p { margin: 0; color: var(--muted); }
.module .preview { margin-top: 6px; padding: 12px; background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--r-sm); font-family: var(--font-mono); font-size: .76rem; color: var(--ink-2); }
.module .preview .row { display: flex; align-items: center; gap: .5rem; padding: 3px 0; }
.module .preview .bar { height: 7px; border-radius: 4px; background: var(--line-2); }
.module .preview .ok { color: var(--ok); }
.module .link { display: inline-flex; align-items: center; gap: .4em; font-weight: 600; font-size: .9rem; color: var(--ember); }
.module .link .arrow { transition: transform .2s var(--ease); }
.module:hover .link .arrow { transform: translateX(3px); }

/* ---------- méthode ---------- */
.method-line { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; counter-reset: step; }
.step { padding: 22px 18px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .1); border-radius: var(--r-md); }
.step .n { font-family: var(--font-mono); font-size: .8rem; color: var(--ember-2); }
.step .dur { display: block; font-family: var(--font-mono); font-size: .72rem; color: #9be6c6; margin-top: 2px; }
.step h3 { margin: 14px 0 6px; font-size: 1.18rem; }
.step p { font-size: .9rem; margin: 0; }

/* ---------- sécurité ---------- */
.sec-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
.commitments { display: grid; gap: 10px; }
.commit { display: grid; grid-template-columns: 28px 1fr; gap: 14px; align-items: start; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); box-shadow: var(--sh-1); }
.commit .ico { width: 22px; height: 22px; color: var(--ok); margin-top: 1px; }
.commit b { font-weight: 600; }
.commit p { margin: 2px 0 0; font-size: .9rem; color: var(--muted); }
.sec-note { margin-top: 18px; font-size: .9rem; color: var(--muted); border-left: 2px solid var(--line-2); padding-left: 14px; }
.sec-note a { color: var(--ember); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- compteur de gain ---------- */
.gain { text-align: center; }
.gain-num { font-family: var(--font-display); font-weight: 360; font-size: clamp(4rem, 10vw, 8.5rem); line-height: .9; letter-spacing: -.03em; color: var(--ink); }
.gain-num .u { color: var(--ember); }
.section--dark .gain-num { color: #f3f7f2; }

/* ---------- fondateur ---------- */
.founder-grid { display: grid; grid-template-columns: 0.7fr 1fr; gap: clamp(24px, 4vw, 52px); align-items: center; }
.founder-portrait {
  aspect-ratio: 4/5;
  border-radius: var(--r-lg);
  background:
    radial-gradient(80% 60% at 50% 25%, rgba(28, 107, 84, .25), transparent),
    linear-gradient(160deg, #164637, #0c2a21);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, .35);
  font-family: var(--font-mono);
  font-size: .72rem;
  text-align: center;
  padding: 20px;
}
.founder-text p { color: var(--ink-2); max-width: 56ch; }
.signature { font-family: var(--font-display); font-style: italic; font-weight: 400; font-size: 1.6rem; color: var(--pine); margin-top: 6px; }
body.dark .signature { color: #9be6c6; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 8px; max-width: 800px; }
.faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden; }
.faq-item summary { display: flex; align-items: center; gap: 1rem; padding: 18px 20px; font-weight: 600; cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .pm { margin-left: auto; flex: none; width: 22px; height: 22px; position: relative; transition: transform .25s var(--ease); }
.faq-item summary .pm::before, .faq-item summary .pm::after { content: ""; position: absolute; inset: 50% 2px auto; height: 2px; background: var(--ember); transform: translateY(-50%); }
.faq-item summary .pm::after { transform: translateY(-50%) rotate(90deg); transition: transform .25s var(--ease); }
.faq-item[open] summary .pm::after { transform: translateY(-50%) rotate(0); }
.faq-item .ans { padding: 0 20px 18px; color: var(--muted); max-width: 70ch; }

/* ---------- CTA final ---------- */
.cta-final { display: grid; grid-template-columns: 1.2fr .8fr; gap: 32px; align-items: center; }
.cta-final .lead { color: rgba(232, 239, 233, .75); max-width: 50ch; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 0.8fr 1.1fr; gap: clamp(24px, 4vw, 52px); align-items: start; }
.contact-points { display: grid; gap: 10px; margin-top: 20px; }
.contact-points li { display: flex; align-items: center; gap: .7rem; list-style: none; font-weight: 500; }
.contact-points .ico { width: 20px; height: 20px; color: var(--ok); }
.form { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding: 26px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-1); }
.form-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.field { display: grid; gap: 7px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: .85rem; font-weight: 600; }
.choice-field {
  margin: 0;
  padding: 0;
  border: 0;
}
.choice-field legend {
  margin-bottom: 7px;
  font-size: .85rem;
  font-weight: 600;
}
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  background: var(--paper);
  border: 1.5px solid var(--line-2);
  border-radius: var(--r-sm);
  transition: border-color .18s, box-shadow .18s;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--pine); box-shadow: 0 0 0 3px rgba(18, 58, 46, .12); }
.choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.choice-grid--needs {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.choice-card {
  position: relative;
  min-width: 0;
}
.choice-card input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.choice-card span {
  display: grid;
  min-height: 46px;
  align-items: center;
  padding: 10px 12px;
  color: var(--ink);
  background: var(--paper);
  border: 1.5px solid var(--line-2);
  border-radius: var(--r-sm);
  font-size: .94rem;
  font-weight: 600;
  line-height: 1.16;
  transition: border-color .18s, box-shadow .18s, background .18s, color .18s;
}
.choice-card input:checked + span {
  color: #fff;
  background: var(--pine);
  border-color: var(--pine);
  box-shadow: 0 10px 24px -18px rgba(18, 58, 46, .55);
}
.choice-card input:focus-visible + span {
  outline: 2px solid var(--pine-bright);
  outline-offset: 3px;
}
.field--check { grid-column: 1 / -1; grid-template-columns: auto 1fr; align-items: center; gap: 12px; }
.field--check input { width: 20px; height: 20px; min-height: 0; accent-color: var(--pine); }
.field--check label { font-weight: 400; font-size: .9rem; color: var(--muted); }
.form-status { grid-column: 1 / -1; margin: 0; font-size: .9rem; font-weight: 500; min-height: 1.2em; }
.form-status.ok { color: var(--ok); }

/* ---------- footer ---------- */
.site-footer { background: var(--pine-2); color: rgba(232, 239, 233, .72); }
.footer-top { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; padding-block: clamp(48px, 6vw, 72px); }
.site-footer .brand b, .site-footer .brand-mark { color: #f6f4ec; }
.site-footer .brand b + span { color: rgba(232, 239, 233, .5); }
.footer-tagline { margin-top: 16px; max-width: 34ch; font-size: .92rem; }
.footer-col h4 { font-family: var(--font-sans); font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: rgba(232, 239, 233, .55); margin-bottom: 14px; }
.footer-col a { display: block; padding: 5px 0; font-size: .92rem; color: rgba(232, 239, 233, .75); transition: color .18s; }
.footer-col a:hover { color: #fff; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 10px 20px; justify-content: space-between; padding-block: 22px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .82rem; color: rgba(232, 239, 233, .5); }

/* ---------- bande de stats (contexte cabinet) ---------- */
.stat-band { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 3vw, 40px); }
.stat { padding-right: 18px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat .n { font-family: var(--font-display); font-weight: 360; font-size: clamp(2.6rem, 5vw, 4rem); line-height: 1; letter-spacing: -.03em; color: var(--ink); }
.stat .n em { font-style: normal; color: var(--ember); }
.stat p { margin: 10px 0 0; color: var(--muted); }
.section--dark .stat { border-color: rgba(255, 255, 255, .12); }
.section--dark .stat .n { color: #f3f7f2; }
.section--dark .stat .n em { color: var(--ember-2); }

/* ---------- email avant / après ---------- */
.email-ba { display: grid; grid-template-columns: 1fr 44px 1fr; gap: 12px; align-items: center; }
.email-card { padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--sh-1); }
.email-card .etag { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.email-card.gen { border-color: color-mix(in srgb, var(--ember) 32%, var(--line)); box-shadow: 0 14px 34px -18px rgba(192, 83, 31, .4); }
.email-card.gen .etag { color: var(--ember); }
.email-card .efrom { margin: 8px 0 4px; font-weight: 600; font-size: .92rem; }
.email-card .esub { font-weight: 600; }
.email-card .ebody { margin: 6px 0 0; font-size: .9rem; color: var(--muted); }
.email-card .echeck { display: inline-flex; align-items: center; gap: .4em; margin-top: 12px; font-family: var(--font-mono); font-size: .72rem; color: var(--ok); }
.email-card .echeck .ico { width: 14px; height: 14px; }
.email-ba-arrow { display: grid; place-items: center; color: var(--ember); }
.email-ba-arrow .ico { width: 24px; height: 24px; }

/* ---------- offre fondateur ---------- */
.offer-founder {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: clamp(20px, 3vw, 40px);
  align-items: center;
  padding: clamp(26px, 4vw, 44px);
  color: #e8efe9;
  background: radial-gradient(110% 130% at 100% 0%, rgba(192, 83, 31, .22), transparent 55%), var(--pine-2);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-3);
}
.offer-founder h3 { color: #f3f7f2; font-size: clamp(1.5rem, 2.4vw, 2rem); }
.offer-founder p { color: rgba(232, 239, 233, .76); margin: 0; }
.offer-founder .price { display: flex; align-items: baseline; gap: 12px; margin: 4px 0 14px; }
.offer-founder .price .now { font-family: var(--font-display); font-weight: 420; font-size: clamp(2.4rem, 5vw, 3.4rem); color: #fff; line-height: 1; }
.offer-founder .price .was { font-family: var(--font-mono); color: rgba(232, 239, 233, .5); text-decoration: line-through; }
.offer-founder .seats { display: inline-flex; align-items: center; gap: .5em; margin-bottom: 12px; font-family: var(--font-mono); font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; color: #ffd9c2; }
.offer-founder .seats .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ember); box-shadow: 0 0 0 0 rgba(192, 83, 31, .6); animation: livePulse 2s var(--ease) infinite; }

/* ---------- maquette de site (preview premium, HTML/CSS) ---------- */
.site-mock { --mock: var(--pine); border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--sh-3); }
.site-mock .bar { display: flex; align-items: center; gap: 6px; padding: 10px 12px; background: var(--paper-2); border-bottom: 1px solid var(--line); }
.site-mock .bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-2); }
.site-mock .bar .url { margin-left: 10px; flex: 1; height: 18px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); }
.mock-vp { padding: 18px; display: grid; gap: 12px; }
.mock-nav { display: flex; align-items: center; gap: 9px; }
.mock-nav .logo { width: 22px; height: 22px; border-radius: 6px; background: var(--mock); }
.mock-nav b { font-size: .82rem; font-family: var(--font-display); font-weight: 500; }
.mock-nav .links { margin-left: auto; display: flex; gap: 9px; }
.mock-nav .links span { width: 26px; height: 6px; border-radius: 3px; background: var(--line-2); }
.mock-hero { display: grid; gap: 8px; padding: 8px 0 4px; }
.mock-hero h4 { font-family: var(--font-display); font-weight: 460; font-size: clamp(1.1rem, 2.4vw, 1.5rem); line-height: 1.1; margin: 0; color: var(--ink); }
.mock-hero p { margin: 0; font-size: .82rem; color: var(--muted); }
.mock-hero .cta { width: fit-content; margin-top: 4px; padding: 8px 15px; border-radius: var(--r-sm); background: var(--mock); color: #fff; font-size: .76rem; font-weight: 600; }
.mock-img { height: 92px; border-radius: var(--r-sm); background: radial-gradient(120% 120% at 80% 0%, color-mix(in srgb, var(--mock) 32%, var(--surface)), color-mix(in srgb, var(--mock) 10%, var(--surface))); border: 1px solid var(--line); }
.mock-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mock-cards div { height: 46px; border-radius: var(--r-xs); background: var(--paper-2); border: 1px solid var(--line); }
.mock-badge { position: absolute; }

/* exemples visuels (vitrine de résultats) */
.visual-gallery {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
  grid-auto-flow: dense;
  gap: clamp(14px, 2vw, 20px);
  align-items: stretch;
}
.visual-card {
  display: grid;
  gap: 12px;
  margin: 0;
}
.visual-card--large { grid-row: span 2; }
.visual-card img {
  aspect-ratio: 1.48 / 1;
  padding: clamp(8px, 1vw, 12px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-2);
  transition: transform .28s var(--ease), box-shadow .28s var(--ease);
}
.visual-card--large img { aspect-ratio: 1.5 / 1; }
.visual-card:hover img { transform: translateY(-4px); box-shadow: var(--sh-3); }
.visual-card figcaption {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: .8rem;
  padding-inline: 4px;
}
.visual-card figcaption b {
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 520;
}
.visual-card figcaption span {
  max-width: 25ch;
  text-align: right;
  font-family: var(--font-mono);
  font-size: .72rem;
  line-height: 1.35;
  color: var(--muted);
}

/* ---------- panneau "lisible par les IA" ---------- */
.airead { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3vw, 40px); align-items: center; }
.airead-card { padding: clamp(18px, 2.5vw, 26px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-2); }
.airead-row { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px dashed var(--line); }
.airead-row:last-of-type { border-bottom: 0; }
.airead-row .k { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); width: 8.5rem; flex: none; }
.airead-row .v { font-weight: 500; font-size: .92rem; min-width: 0; }
.airead-row .ok { margin-left: auto; color: var(--ok); flex: none; }
.airead-row .ok .ico { width: 17px; height: 17px; }
.airead-engines { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.engine { display: inline-flex; align-items: center; gap: .45em; font-family: var(--font-mono); font-size: .74rem; padding: 6px 11px; border-radius: 999px; background: var(--paper-2); border: 1px solid var(--line); }
.engine .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); }

/* ---------- offres / tarifs ---------- */
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: start; }
.tier { position: relative; display: grid; gap: 14px; align-content: start; padding: 28px 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-1); }
.tier.featured { border-color: color-mix(in srgb, var(--ember) 40%, var(--line)); box-shadow: var(--sh-2); }
.tier .badge { position: absolute; top: -11px; left: 24px; font-family: var(--font-mono); font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; color: #fff; background: var(--ember); padding: 4px 11px; border-radius: 999px; }
.tier h3 { margin: 0; font-size: 1.3rem; }
.tier .price { font-family: var(--font-display); font-weight: 440; font-size: 2.2rem; line-height: 1; color: var(--ink); }
.tier .price small { font-family: var(--font-sans); font-size: .82rem; font-weight: 500; color: var(--muted); }
.tier .sub { margin: -6px 0 0; font-size: .86rem; color: var(--muted); }
.tier ul { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 9px; }
.tier li { display: grid; grid-template-columns: 18px 1fr; gap: 9px; align-items: start; font-size: .9rem; }
.tier li .ico { width: 16px; height: 16px; color: var(--ok); margin-top: 3px; }
.tier .btn { margin-top: 6px; }
.tier-foot { margin-top: 8px; text-align: center; font-size: .9rem; color: var(--muted); }

/* ---------- chatbot de démonstration ---------- */
.chat-system {
  position: fixed;
  right: clamp(14px, 2.2vw, 28px);
  bottom: clamp(14px, 2.2vw, 28px);
  z-index: 90;
  pointer-events: none;
}
.chat-launcher {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  min-height: 52px;
  padding: 0 1rem;
  color: #fff;
  background: var(--pine);
  border: 1px solid color-mix(in srgb, #fff 12%, var(--pine));
  border-radius: 999px;
  box-shadow: var(--sh-3);
  cursor: pointer;
  transition: transform .2s var(--ease), background .2s var(--ease), box-shadow .2s var(--ease);
}
.chat-launcher:hover { transform: translateY(-2px); background: var(--ember); }
.chat-launcher .ico { width: 19px; height: 19px; }
.chat-launcher span { font-weight: 700; font-size: .95rem; }
.chat-panel {
  pointer-events: auto;
  position: absolute;
  right: 0;
  bottom: calc(100% + 12px);
  display: flex;
  flex-direction: column;
  width: min(392px, calc(100vw - 28px));
  max-height: min(560px, calc(100dvh - 112px));
  overflow: hidden;
  color: var(--ink);
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-3);
  backdrop-filter: blur(18px);
  opacity: 0;
  transform: translateY(16px) scale(.98);
  transform-origin: 85% 100%;
  visibility: hidden;
  transition: opacity .24s var(--ease-out), transform .24s var(--ease-out), visibility .24s;
}
.chat-system.open .chat-panel {
  opacity: 1;
  transform: none;
  visibility: visible;
}
.chat-head {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 16px 13px;
  color: #f6f4ec;
  background: linear-gradient(135deg, var(--pine-2), var(--pine));
}
.chat-head b { display: block; font-size: .98rem; }
.chat-head span { display: block; margin-top: 2px; font-family: var(--font-mono); font-size: .68rem; color: rgba(246, 244, 236, .62); }
.chat-close {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: #f6f4ec;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: var(--r-xs);
  cursor: pointer;
}
.chat-close .ico { width: 17px; height: 17px; }
.chat-log {
  flex: 1 1 auto;
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 0;
  max-height: none;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 16px;
  scrollbar-width: thin;
}
.chat-msg {
  max-width: 86%;
  margin: 0;
  padding: 11px 13px;
  font-size: .92rem;
  line-height: 1.42;
  overflow-wrap: anywhere;
  border-radius: 15px;
}
.chat-msg.bot {
  justify-self: start;
  color: var(--ink-2);
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-bottom-left-radius: 5px;
}
.chat-msg.user {
  justify-self: end;
  color: #fff;
  background: var(--ember);
  border-bottom-right-radius: 5px;
}
.chat-choices {
  flex: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 16px 14px;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  border-top: 1px solid var(--line);
}
.chat-choices button {
  flex: 1 1 auto;
  min-height: 40px;
  padding: 8px 12px;
  text-align: center;
  line-height: 1.25;
  white-space: normal;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: background .18s var(--ease), border-color .18s var(--ease), transform .18s var(--ease);
}
.chat-choices button:hover { background: var(--ember-soft); border-color: color-mix(in srgb, var(--ember) 38%, var(--line-2)); transform: translateY(-1px); }
.chat-choices button.is-picked { display: none; }
.chat-cta {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  margin: 0 16px 16px;
  color: #fff;
  background: var(--ember);
  border-radius: var(--r-sm);
  font-weight: 700;
}

/* ---------- showcase secteurs (vitrine large) ---------- */
.sectors { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.sector { display: grid; gap: 10px; align-content: start; padding: 20px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--sh-1); transition: transform .22s var(--ease), box-shadow .22s var(--ease), border-color .22s var(--ease); }
.sector:hover { transform: translateY(-3px); box-shadow: var(--sh-2); border-color: var(--line-2); }
.sector .si { display: grid; place-items: center; width: 42px; height: 42px; color: var(--pine); background: #e7ede4; border-radius: 12px 12px 12px 4px; }
body.dark .sector .si { background: #15241c; color: #9be6c6; }
.sector .si .ico { width: 21px; height: 21px; }
.sector h3 { margin: 0; font-size: 1.04rem; }
.sector p { margin: 0; font-size: .86rem; color: var(--muted); }
.sector .slink { margin-top: 4px; font-family: var(--font-mono); font-size: .72rem; color: var(--ember); font-weight: 600; display: inline-flex; align-items: center; gap: .35em; }
.sector .slink .ico { width: 13px; height: 13px; transition: transform .2s var(--ease); }
.sector:hover .slink .ico { transform: translateX(3px); }
.sector.featured { border-color: color-mix(in srgb, var(--ember) 32%, var(--line)); background: var(--ember-soft); }
body.dark .sector.featured { background: #1e1610; }

/* ---------- triade (problème en 3 cartes) ---------- */
.triad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

/* ---------- console produit (aperçu visuel, HTML/CSS) ---------- */
.console {
  position: relative; overflow: hidden;
  max-width: var(--max); margin-inline: auto;
  padding: clamp(16px, 3vw, 26px);
  color: #e8efe9;
  background: radial-gradient(120% 90% at 85% -10%, rgba(28, 107, 84, .3), transparent 55%), linear-gradient(180deg, #143c30, #0c2a21);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-3);
}
.console::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
  background-size: 32px 32px;
  -webkit-mask-image: radial-gradient(120% 100% at 80% 0%, #000, transparent 75%);
  mask-image: radial-gradient(120% 100% at 80% 0%, #000, transparent 75%);
  pointer-events: none;
}
.console > * { position: relative; z-index: 1; }
.console-top { display: flex; align-items: center; gap: .6rem; padding-bottom: 14px; margin-bottom: 16px; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.console-top .av { width: 30px; height: 30px; border-radius: 9px; background: var(--ember); display: grid; place-items: center; color: #fff; font-family: var(--font-display); font-weight: 500; }
.console-top b { font-size: .92rem; }
.console-top .live-tag { margin-left: auto; display: inline-flex; align-items: center; gap: .45em; font-family: var(--font-mono); font-size: .66rem; letter-spacing: .08em; text-transform: uppercase; color: #9be6c6; }
.console-top .live-tag .pulse { width: 7px; height: 7px; border-radius: 50%; background: #46d39e; animation: livePulse 2s var(--ease) infinite; }
.console-flow { display: flex; align-items: stretch; gap: 8px; margin-bottom: 14px; }
.fnode { flex: 1; min-width: 0; display: grid; gap: 8px; justify-items: center; text-align: center; padding: 14px 8px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); border-radius: var(--r-md); }
.fnode .fi { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px 11px 11px 4px; background: rgba(255, 255, 255, .08); color: #9be6c6; }
.fnode .fi .ico { width: 20px; height: 20px; }
.fnode b { font-size: .82rem; font-weight: 600; }
.fnode span { font-size: .7rem; color: rgba(232, 239, 233, .55); line-height: 1.25; }
.fnode.key { background: rgba(192, 83, 31, .16); border-color: rgba(224, 119, 63, .45); }
.fnode.key .fi { background: var(--ember); color: #fff; }
.farrow { align-self: center; flex: none; color: rgba(232, 239, 233, .35); }
.farrow .ico { width: 18px; height: 18px; }
.console-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.ktile { padding: 13px 14px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); border-radius: var(--r-md); }
.ktile .kn { font-family: var(--font-display); font-weight: 420; font-size: clamp(1.5rem, 3vw, 2rem); line-height: 1; }
.ktile .kn em { font-style: normal; color: var(--ember-2); }
.ktile .kl { display: block; margin-top: 5px; font-size: .74rem; color: rgba(232, 239, 233, .6); }
.req { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 12px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .08); border-radius: var(--r-sm); }
.req + .req { margin-top: 7px; }
.req .rt { font-size: .86rem; min-width: 0; overflow-wrap: anywhere; }
.req .pill { flex: none; font-family: var(--font-mono); font-size: .68rem; padding: 4px 10px; border-radius: 999px; }
.req .pill.q { color: #9be6c6; background: rgba(28, 107, 84, .28); }
.req .pill.d { color: #ffd9c2; background: rgba(192, 83, 31, .24); }
.req .pill.v { color: #e8efe9; background: rgba(255, 255, 255, .1); }
.console-foot { margin: 12px 0 0; font-family: var(--font-mono); font-size: .66rem; color: rgba(232, 239, 233, .4); }
@media (max-width: 620px) {
  .console-flow { flex-direction: column; gap: 6px; }
  .farrow { transform: rotate(90deg); }
  .console-kpis { grid-template-columns: 1fr; }
  .examples { grid-template-columns: 1fr; }
}

/* ---------- reveal (gated derrière .js : visible si JS absent) ---------- */
.reveal { transition: opacity .6s var(--ease-out), transform .6s var(--ease-out); }
.js .reveal { opacity: 0; transform: translateY(18px); }
.reveal.in { opacity: 1; transform: none; }

/* chorégraphie d'entrée du hero — transform seul : jamais invisible, même si le timeline est figé */
@keyframes heroRise { from { transform: translateY(18px); } to { transform: none; } }
@keyframes visualFloat {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(0, -8px, 0); }
}
@keyframes signalDrift {
  0% { transform: rotate(18deg) translate3d(0, -30vh, 0); opacity: 0; }
  16% { opacity: 1; }
  72% { opacity: .78; }
  100% { transform: rotate(18deg) translate3d(0, 126vh, 0); opacity: 0; }
}
.js .hero-copy > * { animation: heroRise .7s var(--ease-out) both; }
.js .hero-copy > *:nth-child(2) { animation-delay: .07s; }
.js .hero-copy > *:nth-child(3) { animation-delay: .14s; }
.js .hero-copy > *:nth-child(4) { animation-delay: .21s; }
.js .hero-copy > *:nth-child(5) { animation-delay: .28s; }
.js .hero-demo { animation: heroRise .9s var(--ease-out) .16s both; }

/* fade d'apparition pour éléments injectés (sources, validation, puces) */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.fade-in { animation: fadeIn .42s var(--ease-out) both; }

/* scroll-spy nav */
.nav a.active { color: var(--ink); background: rgba(18, 58, 46, .08); }

/* démo : indicateur de frappe */
.typing-dots { display: inline-flex; gap: 5px; padding: 6px 2px; }
.typing-dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(232, 239, 233, .55); animation: dotPulse 1.2s var(--ease) infinite; }
.typing-dots i:nth-child(2) { animation-delay: .16s; }
.typing-dots i:nth-child(3) { animation-delay: .32s; }

/* démo : la main reste humaine (l'IA prépare, vous validez) */
.demo-validate { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; margin-top: 11px; font-family: var(--font-mono); font-size: .72rem; color: rgba(232, 239, 233, .55); }
.demo-validate b { color: #9be6c6; font-weight: 500; margin-right: 2px; }
.demo-validate .chipv { display: inline-flex; align-items: center; gap: .35em; padding: 5px 11px; color: #e8efe9; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .16); border-radius: 999px; }
.demo-validate .chipv.primary { color: #06140f; background: #46d39e; border-color: #46d39e; font-weight: 600; }
.demo-validate .ico { width: 13px; height: 13px; }

/* ---------- animations ---------- */
@keyframes blink { 50% { opacity: 0; } }
@keyframes livePulse { 0% { box-shadow: 0 0 0 0 rgba(70, 211, 158, .6); } 70% { box-shadow: 0 0 0 8px rgba(70, 211, 158, 0); } 100% { box-shadow: 0 0 0 0 rgba(70, 211, 158, 0); } }
@keyframes dotPulse { 0%, 100% { opacity: .3; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-3px); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .js .reveal, .js .hero-copy > *, .js .hero-demo { opacity: 1 !important; transform: none !important; }
  .cursor, .typing-dots i { animation: none; }
  .motion-layer { display: none; }
  .hero-showcase { transform: none !important; }
}

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .hero-grid, .audit-grid, .sec-grid, .founder-grid, .contact-grid, .cta-final, .airead { grid-template-columns: minmax(0, 1fr); }
  .hero-demo, .hero-visual { order: 2; }
  .pricing { grid-template-columns: 1fr; }
  .modules { grid-template-columns: 1fr; }
  .visual-gallery { grid-template-columns: 1fr; }
  .visual-card--large { grid-row: auto; }
  .method-line { grid-template-columns: repeat(2, 1fr); }
  .timeline { grid-template-columns: repeat(3, 1fr); }
  .t-item:nth-child(3) { border-right: 0; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .cta-actions { justify-content: flex-start; }
  .offer-founder { grid-template-columns: 1fr; }
  .email-ba { grid-template-columns: 1fr; }
  .email-ba-arrow { transform: rotate(90deg); justify-self: start; }
  .sectors { grid-template-columns: repeat(3, 1fr); }
  .triad { grid-template-columns: 1fr; }
}
@media (max-width: 1080px) {
  .nav, .header-actions .btn { display: none; }
  .nav-toggle { display: grid; place-items: center; width: 46px; height: 46px; background: transparent; border: 1px solid var(--line-2); border-radius: var(--r-xs); cursor: pointer; }
  body.nav-open .nav {
    display: flex; flex-direction: column; gap: 4px;
    position: fixed; inset: var(--header-h) 0 auto; z-index: 55;
    padding: 16px var(--gutter) 24px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--sh-2);
  }
  body.nav-open .nav a { padding: 12px; font-size: 1rem; }
  body.nav-open .nav .nav-mobile-cta {
    display: inline-flex;
    justify-content: center;
    margin-top: 8px;
    min-height: 46px;
    color: #fff;
    background: var(--ember);
    border-radius: var(--r-sm);
    box-shadow: 0 14px 30px -16px rgba(192, 83, 31, .62);
  }
  .demo { min-height: 0; }
  .demo-thread { max-height: 320px; overflow-y: auto; -webkit-overflow-scrolling: touch; }
  .sectors { grid-template-columns: repeat(2, 1fr); }
  .gallery3 { grid-template-columns: repeat(2, 1fr); }
  .audit-console { max-width: 720px; }
}
@media (max-width: 560px) {
  :root { --header-h: 70px; }
  html { scroll-padding-top: calc(var(--header-h) + 24px); }
  h1 { font-size: clamp(1.9rem, 9.2vw, 2.46rem); line-height: 1.02; }
  h2 { font-size: clamp(1.85rem, 9vw, 2.45rem); }
  section[id], .wrap[id] { scroll-margin-top: calc(var(--header-h) + 24px); }
  #offres { scroll-margin-top: calc(var(--header-h) + 182px); }
  .site-header { padding-inline: 16px; }
  .hero { padding-block: 22px 42px; }
  .hero-grid { gap: 14px; }
  .hero-copy { display: contents; }
  .hero-copy .eyebrow { order: 1; }
  .hero-copy h1 { order: 2; }
  .hero-visual { order: 3; margin-top: 6px; }
  .hero-actions { order: 4; }
  .hero-copy .lead { order: 5; }
  .assurances { order: 6; }
  .hero h1 { margin-top: .32rem; }
  .hero .lead { font-size: .95rem; line-height: 1.42; margin-top: .7rem; max-width: 34ch; }
  .hero-actions { margin-top: .72rem; }
  .hero-actions .btn { width: 100%; }
  .assurances { margin-top: .9rem; gap: .3rem .78rem; font-size: .66rem; }
  .assurances span:nth-child(4) { display: none; }
  .ba { aspect-ratio: 16 / 9.7; border-radius: 18px; }
  .ba-tag { top: 10px; padding: 5px 9px; font-size: .58rem; letter-spacing: .07em; }
  .ba-tag--before { left: 10px; }
  .ba-tag--after { right: 10px; }
  .ba-handle { width: 42px; height: 42px; }
  .ba-caption { margin-top: 7px; gap: 6px 10px; }
  .ba-caption .hint { font-size: .66rem; }
  .ba-caption .hint:nth-child(2) { display: none; }
  .hero-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    margin-top: 7px;
  }
  .hero-metrics span {
    padding: 8px 8px;
    font-size: .58rem;
  }
  .hero-metrics b { font-size: .88rem; }
  .hero-system-map {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 6px;
    margin-top: 7px;
    padding: 7px;
  }
  .hero-system-map span {
    min-height: 40px;
    padding: 6px 7px;
    font-size: .56rem;
  }
  .hero-system-map b { font-size: .72rem; }
  .hero-system-map span:nth-of-type(4),
  .hero-system-map i:nth-of-type(3) { display: none; }
  .hero-system-map i { width: 10px; }
  @media (max-width: 360px) {
    .hero-system-map { display: none; }
  }
  .visual-frame figcaption {
    position: static;
    max-width: none;
    border-radius: 0;
    border-inline: 0;
    border-bottom: 0;
  }
  .hero-proof-strip { justify-content: flex-start; }
  .visual-card figcaption {
    display: grid;
    gap: 2px;
  }
  .visual-card figcaption span {
    max-width: none;
    text-align: left;
  }
  .form, .timeline { grid-template-columns: 1fr; }
  .timeline { border-top: 0; }
  .t-item { border-right: 0; border-left: 2px solid var(--line-2); padding: 6px 0 18px 18px; }
  .t-item::before { left: -7px; top: 6px; }
  .method-line { grid-template-columns: 1fr; }
  .sectors { grid-template-columns: 1fr; }
  .gallery3 { grid-template-columns: 1fr; }
  .audit-grid { gap: 14px; }
  .audit-copy { display: contents; }
  .audit-copy .eyebrow { order: 1; }
  .audit-copy h2 { order: 2; margin-bottom: .25em; }
  .audit-copy .lead { order: 3; margin-top: 0; font-size: .96rem; line-height: 1.42; }
  .audit-console { order: 4; }
  .audit-picker { order: 5; gap: 7px; margin-top: 6px; }
  .audit-pill { min-height: 40px; padding: 8px 11px; font-size: .9rem; }
  .audit-needs { order: 6; margin-top: 0; }
  .need-card { min-height: 58px; padding: 11px 13px; }
  .need-card b { font-size: .8rem; }
  .console-head {
    align-items: flex-start;
    padding: 14px;
  }
  .console-head .brand-mark {
    width: 34px;
    height: 34px;
  }
  .scan-live {
    margin-left: 0;
    align-self: center;
    font-size: .58rem;
    padding-inline: 8px;
  }
  .blueprint {
    min-height: 230px;
    margin: 12px;
  }
  .bp-screen {
    inset: auto 12px 12px;
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .bp-copy,
  .bp-card {
    padding: 12px;
  }
  .audit-result {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 0 12px 12px;
  }
  .audit-result > div { padding: 13px; }
  .audit-reco {
    grid-template-columns: 1fr;
    padding: 14px 12px;
  }
  .audit-reco b,
  .audit-reco .btn {
    grid-column: auto;
    grid-row: auto;
  }
  .audit-reco .btn { width: 100%; }
  .showcase-shot { min-height: 380px; border-radius: 18px; }
  .showcase-shot img { min-height: 380px; }
  .shot-panel {
    left: 12px;
    right: 12px;
    bottom: 12px;
    padding: 12px 13px;
  }
  .shot-panel b { font-size: .9rem; }
  .stat-band { grid-template-columns: 1fr; gap: 0; }
  .stat { border-right: 0; border-bottom: 1px solid var(--line); padding: 16px 0; }
  .stat:last-child { border-bottom: 0; }
  .section--dark .stat { border-color: rgba(255, 255, 255, .12); }
  .footer-top { grid-template-columns: 1fr; gap: 24px; }
  .brand b + span { display: none; }
  .chat-system {
    inset: auto 0 0 0;
  }
  .chat-launcher {
    position: absolute;
    right: 12px;
    bottom: 12px;
    min-height: 48px;
    width: 48px;
    padding: 0;
  }
  .chat-launcher span { display: none; }
  body:not(.chat-visible) .chat-launcher {
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px) scale(.92);
  }
  body.contact-active .chat-launcher {
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px) scale(.92);
  }
  .chat-system.open .chat-launcher {
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px) scale(.9);
  }
  .chat-panel {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: max(12px, env(safe-area-inset-bottom));
    width: auto;
    height: auto;
    max-height: min(430px, calc(100vh - var(--header-h) - 34px));
    max-height: min(430px, calc(100dvh - var(--header-h) - 34px));
    border-radius: 18px;
    transform-origin: 90% 100%;
  }
  .chat-head { padding: 13px 14px 11px; }
  .chat-head b { font-size: .95rem; }
  .chat-head span { font-size: .64rem; }
  .chat-close { width: 44px; height: 44px; }
  .chat-log {
    min-height: 0;
    padding: 12px 14px;
  }
  .chat-msg {
    max-width: 94%;
    font-size: .9rem;
  }
  .chat-choices {
    display: grid;
    grid-template-columns: 1fr;
    padding: 10px 14px 12px;
  }
  .chat-choices button {
    min-height: 44px;
    text-align: left;
    font-size: .95rem;
  }
  .chat-cta {
    min-height: 48px;
    margin: 0 14px 14px;
    font-size: .98rem;
  }
}
