/* =========================================================================
   Agents IA sur mesure — feuille de styles unique
   Aucune dépendance, aucune requête externe.
   Sommaire
   01. Tokens & reset
   02. Typographie & utilitaires
   03. Boutons & badges
   04. En-tête / navigation
   05. Hero + schéma animé
   06. Problèmes
   07. Solutions
   08. Processus (timeline)
   09. Atouts
   10. Démonstrations interactives
   11. FAQ
   12. Contact
   13. Pied de page
   14. Pages secondaires (legal)
   15. Animations d'apparition
   16. Préférences de mouvement réduit
   ========================================================================= */

/* ---------- 01. Tokens & reset ---------------------------------------- */

:root {
  /* Couleurs */
  --bg: #ffffff;
  --surface: #fafbfc;
  --surface-2: #f4f6f8;
  --fg: #0a0a0b;
  --fg-soft: #2b2f36;
  --muted: #5a5f6b;
  --line: #e7e9ee;
  --line-strong: #d5d9e0;
  --accent: #0047ff;
  --accent-ink: #0038cc;
  --accent-soft: #eef2ff;
  --accent-glow: rgba(0, 71, 255, 0.14);
  --success: #0f7b4f;
  --success-soft: #e7f6ee;
  --warning: #8a5a00;

  /* Rayons */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 22px;
  --r-full: 999px;

  /* Ombres */
  --shadow-xs: 0 1px 2px rgba(10, 10, 11, 0.04);
  --shadow-sm: 0 2px 8px rgba(10, 10, 11, 0.05);
  --shadow-md: 0 10px 30px -12px rgba(10, 10, 11, 0.16);
  --shadow-lg: 0 26px 60px -22px rgba(10, 10, 11, 0.24);
  --shadow-accent: 0 12px 30px -12px rgba(0, 71, 255, 0.4);

  /* Échelle typographique fluide */
  --step--1: clamp(0.82rem, 0.79rem + 0.12vw, 0.88rem);
  --step-0: clamp(0.95rem, 0.92rem + 0.16vw, 1.03rem);
  --step-1: clamp(1.06rem, 1rem + 0.3vw, 1.2rem);
  --step-2: clamp(1.25rem, 1.14rem + 0.5vw, 1.5rem);
  --step-3: clamp(1.55rem, 1.35rem + 0.9vw, 2.05rem);
  --step-4: clamp(1.95rem, 1.6rem + 1.6vw, 2.9rem);
  --step-5: clamp(2.3rem, 1.75rem + 2.6vw, 3.7rem);

  /* Rythme */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 44px;
  --space-8: 60px;
  --space-9: 80px;
  --space-10: 110px;

  --maxw: 1180px;
  --header-h: 68px;

  --ease: cubic-bezier(0.22, 0.68, 0.32, 1);
  --dur: 220ms;

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto,
    "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
    "Liberation Mono", monospace;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.65;
  font-feature-settings: "kern" 1, "liga" 1, "cv11" 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

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

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

/* ---------- 02. Typographie & utilitaires ------------------------------ */

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.028em;
  line-height: 1.12;
  text-wrap: balance;
}

h1 {
  font-size: var(--step-5);
  letter-spacing: -0.038em;
}
h2 {
  font-size: var(--step-4);
  letter-spacing: -0.034em;
}
h3 {
  font-size: var(--step-1);
  letter-spacing: -0.02em;
  line-height: 1.3;
}

p {
  margin: 0;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 32px);
}

.section {
  padding-block: clamp(64px, 9vw, 128px);
  position: relative;
}

.section--surface {
  background: linear-gradient(180deg, var(--bg) 0%, var(--surface) 18%, var(--surface) 82%, var(--bg) 100%);
}

.section--tint {
  background: var(--surface);
  border-block: 1px solid var(--line);
}

.section-head {
  max-width: 720px;
  margin-bottom: clamp(40px, 5vw, 64px);
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
  padding: 5px 12px 5px 9px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-full);
  background: var(--bg);
  color: var(--fg-soft);
  font-size: var(--step--1);
  font-weight: 500;
  letter-spacing: 0.01em;
  box-shadow: var(--shadow-xs);
}

.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.lede {
  margin-top: var(--space-4);
  color: var(--muted);
  font-size: var(--step-1);
  line-height: 1.6;
  text-wrap: pretty;
}

.accent-text {
  color: var(--accent);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: var(--r-sm);
  background: var(--fg);
  color: #fff;
  font-size: var(--step--1);
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform var(--dur) var(--ease);
}

.skip-link:focus-visible {
  transform: translateY(0);
}

/* Filet décoratif en fond */
.grid-backdrop {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 68px 68px;
  -webkit-mask-image: radial-gradient(ellipse 75% 60% at 50% 0%, #000 10%, transparent 72%);
  mask-image: radial-gradient(ellipse 75% 60% at 50% 0%, #000 10%, transparent 72%);
  opacity: 0.75;
}

/* ---------- 03. Boutons & badges --------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: var(--r-md);
  font-size: var(--step-0);
  font-weight: 550;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform var(--dur) var(--ease), background-color var(--dur) var(--ease),
    border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), color var(--dur) var(--ease);
}

.btn svg {
  flex: none;
  transition: transform var(--dur) var(--ease);
}

.btn--primary {
  background: var(--accent);
  color: #fff;
  box-shadow: var(--shadow-accent);
}

.btn--primary:hover {
  background: var(--accent-ink);
  transform: translateY(-1px);
}

.btn--primary:active {
  transform: translateY(0);
}

.btn--primary:hover svg {
  transform: translateX(3px);
}

.btn--ghost {
  background: var(--bg);
  border-color: var(--line-strong);
  color: var(--fg);
  box-shadow: var(--shadow-xs);
}

.btn--ghost:hover {
  border-color: var(--fg);
  transform: translateY(-1px);
}

.btn--lg {
  min-height: 52px;
  padding: 0 26px;
  font-size: var(--step-1);
}

.btn--sm {
  min-height: 38px;
  padding: 0 14px;
  font-size: var(--step--1);
}

.btn--block {
  width: 100%;
}

.btn[disabled],
.btn[aria-disabled="true"] {
  opacity: 0.62;
  cursor: not-allowed;
  transform: none;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 550;
  text-decoration: none;
}

.link-arrow:hover {
  text-decoration: underline;
}

.link-arrow svg {
  transition: transform var(--dur) var(--ease);
}

.link-arrow:hover svg {
  transform: translateX(3px);
}

/* Icône encadrée réutilisée dans les cartes */
.icon-tile {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: none;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--bg);
  color: var(--accent);
  box-shadow: var(--shadow-xs);
  transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease),
    color var(--dur) var(--ease);
}

/* ---------- 04. En-tête / navigation ----------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid transparent;
  background: rgba(255, 255, 255, 0.72);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease);
}

.site-header.is-stuck {
  border-bottom-color: var(--line);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 1px 20px -8px rgba(10, 10, 11, 0.18);
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--fg);
  font-weight: 600;
  letter-spacing: -0.025em;
  text-decoration: none;
}

.brand__mark {
  width: 30px;
  height: 30px;
  flex: none;
}

.brand__name {
  font-size: 1.02rem;
}

.brand__name span {
  color: var(--muted);
  font-weight: 450;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  margin: 0 auto 0 var(--space-4);
  padding: 0;
  list-style: none;
}

.nav__links a {
  display: inline-block;
  padding: 7px 12px;
  border-radius: var(--r-sm);
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 500;
  text-decoration: none;
  transition: color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}

.nav__links a:hover {
  color: var(--fg);
  background: var(--surface-2);
}

.nav__links a[aria-current="true"] {
  color: var(--accent);
}

.nav__actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-left: auto;
}

.nav__toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  background: var(--bg);
  cursor: pointer;
  transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}

.nav__toggle:hover,
.nav__toggle[aria-expanded="true"] {
  border-color: var(--fg);
  background: var(--surface-2);
}

.nav__toggle-bar {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--fg);
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}

.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(2) {
  opacity: 0;
}
.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.mobile-panel {
  display: none;
  position: fixed;
  inset: var(--header-h) 0 0;
  z-index: 99;
  padding: var(--space-6) clamp(20px, 5vw, 32px) var(--space-8);
  background: var(--bg);
  overflow-y: auto;
}

.mobile-panel[data-open="true"] {
  display: block;
  animation: panel-in 240ms var(--ease);
}

@keyframes panel-in {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
}

.mobile-panel ul {
  margin: 0 0 var(--space-6);
  padding: 0;
  list-style: none;
}

.mobile-panel li + li {
  border-top: 1px solid var(--line);
}

.mobile-panel ul a {
  display: block;
  padding: 15px 2px;
  color: var(--fg);
  font-size: var(--step-2);
  font-weight: 550;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.mobile-panel .btn--primary {
  color: #fff;
  font-size: var(--step-0);
  font-weight: 600;
  letter-spacing: -0.01em;
  box-shadow: 0 10px 24px -10px rgba(0, 71, 255, 0.65);
}

.mobile-panel .btn--primary svg {
  opacity: 0.9;
}

.mobile-panel .btn--primary:active {
  transform: scale(0.99);
}

/* ---------- 05. Hero ---------------------------------------------------- */

.hero {
  position: relative;
  padding-block: clamp(52px, 8vw, 104px) clamp(56px, 8vw, 112px);
  overflow: hidden;
}

.hero__glow {
  position: absolute;
  top: -220px;
  right: -180px;
  width: 720px;
  height: 720px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 71, 255, 0.1) 0%, rgba(0, 71, 255, 0) 68%);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  align-items: center;
  gap: clamp(40px, 5vw, 72px);
}

.hero h1 {
  margin-bottom: var(--space-5);
  /* Les lignes remplissent la colonne : `balance` produirait une mesure
     inutilement étroite sur un titre de cette longueur. */
  text-wrap: pretty;
}

.hero__sub {
  max-width: 56ch;
  color: var(--muted);
  font-size: var(--step-1);
  line-height: 1.6;
  text-wrap: pretty;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-7);
}

.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3) var(--space-6);
  margin: var(--space-7) 0 0;
  padding: var(--space-5) 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.hero__trust li {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: var(--step--1);
  font-weight: 500;
}

.hero__trust svg {
  color: var(--accent);
  flex: none;
}

/* --- Schéma animé du hero --- */

.flow {
  position: relative;
  padding: var(--space-5);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: linear-gradient(180deg, #fff 0%, var(--surface) 100%);
  box-shadow: var(--shadow-lg);
}

.flow::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(150deg, rgba(0, 71, 255, 0.35), rgba(0, 71, 255, 0) 42%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.flow__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--line);
}

.flow__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--line-strong);
}

.flow__label {
  margin-left: 8px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.02em;
}

.flow__svg {
  width: 100%;
  height: auto;
}

/* nœuds */
.fnode rect {
  fill: #fff;
  stroke: var(--line-strong);
  stroke-width: 1;
}

.fnode--agent rect {
  fill: var(--accent);
  stroke: var(--accent);
}

/* Les tailles sont exprimées en unités du viewBox : elles suivent donc
   l'échelle du schéma. Elles sont relevées sur petit écran pour rester
   lisibles une fois le SVG réduit. */
.fnode__title {
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  fill: var(--fg);
  letter-spacing: -0.01em;
}

.fnode__meta {
  font-family: var(--font);
  font-size: 11px;
  fill: var(--muted);
}

.fnode--agent .fnode__title,
.fnode--agent .fnode__meta {
  fill: #fff;
}

.fnode--agent .fnode__meta {
  opacity: 0.82;
}

.fnode__icon {
  stroke: var(--accent);
  stroke-width: 1.5;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.fnode--agent .fnode__icon {
  stroke: #fff;
}

.fwire {
  fill: none;
  stroke: var(--line-strong);
  stroke-width: 1.5;
  stroke-linecap: round;
}

.fpulse {
  fill: var(--accent);
}

.fhalo {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.2;
  opacity: 0;
}

/* Animations du schéma, déclenchées au chargement */
.flow__svg .fnode,
.flow__svg .fchip {
  opacity: 0;
  animation: node-in 620ms var(--ease) forwards;
}

.flow__svg .fnode:nth-of-type(1) {
  animation-delay: 120ms;
}

@keyframes node-in {
  from {
    opacity: 0;
    transform: translateY(9px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.flow__svg [data-delay="1"] {
  animation-delay: 0.15s;
}
.flow__svg [data-delay="2"] {
  animation-delay: 0.35s;
}
.flow__svg [data-delay="3"] {
  animation-delay: 0.55s;
}
.flow__svg [data-delay="4"] {
  animation-delay: 0.75s;
}
.flow__svg [data-delay="5"] {
  animation-delay: 0.95s;
}

.fwire {
  stroke-dasharray: 240;
  stroke-dashoffset: 240;
  animation: wire-draw 900ms var(--ease) forwards;
}

.fwire[data-delay="1"] {
  animation-delay: 0.35s;
}
.fwire[data-delay="2"] {
  animation-delay: 0.55s;
}
.fwire[data-delay="3"] {
  animation-delay: 0.75s;
}

@keyframes wire-draw {
  to {
    stroke-dashoffset: 0;
  }
}

.fpulse {
  opacity: 0;
  animation: pulse-travel 3.6s var(--ease) infinite;
}

.fpulse[data-delay="1"] {
  animation-delay: 1.1s;
}
.fpulse[data-delay="2"] {
  animation-delay: 1.5s;
}
.fpulse[data-delay="3"] {
  animation-delay: 1.9s;
}

@keyframes pulse-travel {
  0% {
    opacity: 0;
    transform: translateY(0);
  }
  12% {
    opacity: 1;
  }
  62% {
    opacity: 1;
    transform: translateY(30px);
  }
  72%,
  100% {
    opacity: 0;
    transform: translateY(30px);
  }
}

.fhalo {
  animation: halo 3.6s var(--ease) infinite;
  animation-delay: 1.3s;
  transform-box: fill-box;
  transform-origin: center;
}

@keyframes halo {
  0% {
    opacity: 0.5;
    transform: scale(1);
  }
  60%,
  100% {
    opacity: 0;
    transform: scale(1.14);
  }
}

.flow__legend {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-3);
  margin: var(--space-4) 0 0;
  padding-top: var(--space-4);
  border-top: 1px solid var(--line);
  list-style: none;
  color: var(--muted);
  font-size: 0.78rem;
}

.flow__legend strong {
  display: block;
  color: var(--fg);
  font-size: 0.88rem;
  font-weight: 600;
}

/* ---------- 06. Problèmes ---------------------------------------------- */

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-4);
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-5);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--bg);
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease);
}

.card:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-md);
}

.card:hover .icon-tile {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.card p {
  color: var(--muted);
  font-size: 0.95rem;
}

.card__cost {
  margin-top: auto;
  padding-top: var(--space-3);
  border-top: 1px dashed var(--line);
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* Carte finale « et bien d'autres » */
.card--cta {
  justify-content: center;
  border-style: dashed;
  background: var(--surface);
}

/* ---------- 07. Solutions ---------------------------------------------- */

.solutions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: var(--space-4);
}

.solution {
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--bg);
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease);
}

.solution:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-md);
}

.solution__visual {
  position: relative;
  height: 132px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, var(--surface) 0%, #fff 100%);
  overflow: hidden;
}

.solution__visual svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.solution__body {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-5);
}

.solution__body h3 {
  display: flex;
  align-items: center;
  gap: 10px;
}

.solution__body p {
  color: var(--muted);
  font-size: 0.95rem;
}

.solution__list {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin: var(--space-1) 0 0;
  padding: 0;
  list-style: none;
}

.solution__list li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: var(--fg-soft);
  font-size: 0.89rem;
  line-height: 1.45;
}

.solution__list svg {
  flex: none;
  margin-top: 3px;
  color: var(--accent);
}

/* pièces des micro-schémas */
.dg-box {
  fill: #fff;
  stroke: var(--line-strong);
  stroke-width: 1;
}
.dg-box--accent {
  fill: var(--accent-soft);
  stroke: var(--accent);
}
.dg-line {
  fill: none;
  stroke: var(--line-strong);
  stroke-width: 1.25;
  stroke-linecap: round;
}
.dg-line--accent {
  stroke: var(--accent);
}
.dg-dot {
  fill: var(--accent);
}
.dg-soft {
  fill: var(--surface-2);
}

/* ---------- 08. Processus (timeline) ------------------------------------ */

.process {
  position: relative;
  display: grid;
  gap: 0;
  max-width: 920px;
  padding-left: 0;
  margin: 0;
  list-style: none;
  counter-reset: step;
}

.process::before {
  content: "";
  position: absolute;
  top: 24px;
  bottom: 24px;
  left: 21px;
  width: 2px;
  border-radius: 2px;
  background: var(--line);
}

.process::after {
  content: "";
  position: absolute;
  top: 24px;
  left: 21px;
  width: 2px;
  height: calc((100% - 48px) * var(--progress, 0));
  border-radius: 2px;
  background: linear-gradient(180deg, var(--accent), var(--accent-ink));
  transition: height 420ms var(--ease);
}

.step {
  position: relative;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: var(--space-5);
  padding-block: var(--space-5);
}

.step + .step {
  border-top: 1px solid var(--line);
}

.step__num {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--bg);
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  transition: border-color 320ms var(--ease), background-color 320ms var(--ease),
    color 320ms var(--ease), box-shadow 320ms var(--ease);
}

.step.is-active .step__num {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
  box-shadow: 0 0 0 5px var(--accent-glow);
}

.step__content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: var(--space-2) var(--space-5);
}

.step__content h3 {
  grid-column: 1;
}

.step__content p {
  grid-column: 1;
  color: var(--muted);
  max-width: 62ch;
  font-size: 0.96rem;
}

.step__meta {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  padding: 5px 11px;
  border: 1px solid var(--line);
  border-radius: var(--r-full);
  background: var(--surface);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 550;
  white-space: nowrap;
}

/* ---------- 09. Atouts -------------------------------------------------- */

/* Cinq cartes : une grille de 6 colonnes permet 3 + 2 sans case orpheline. */
.perks {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: var(--space-4);
}

.perk {
  grid-column: span 2;
}

.perk:nth-child(4),
.perk:nth-child(5) {
  grid-column: span 3;
}

.perk {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-5);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--bg);
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease);
}

.perk:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-md);
}

.perk:hover .icon-tile {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.perk strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
}

.perk p {
  color: var(--muted);
  font-size: 0.93rem;
}

.perk__claim {
  color: var(--fg);
  font-weight: 550;
}

/* ---------- 10. Démonstrations interactives ----------------------------- */

.demo {
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: var(--bg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.demo__tabs {
  display: flex;
  gap: var(--space-1);
  padding: var(--space-3);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  overflow-x: auto;
  scrollbar-width: thin;
}

.demo__tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 15px;
  border: 1px solid transparent;
  border-radius: var(--r-md);
  background: transparent;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 550;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease),
    border-color var(--dur) var(--ease);
}

.demo__tab:hover {
  color: var(--fg);
  background: var(--bg);
}

.demo__tab[aria-selected="true"] {
  border-color: var(--line);
  background: var(--bg);
  color: var(--accent);
  box-shadow: var(--shadow-xs);
}

.demo__tab svg {
  flex: none;
}

.demo__panel[hidden] {
  display: none;
}

.demo__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 0;
}

.demo__pipeline {
  display: flex;
  flex-direction: column;
  padding: var(--space-5);
  border-right: 1px solid var(--line);
  background: var(--surface);
}

.demo__pipeline-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.demo__pipeline-head p {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.demo__steps {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.demo__step {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  width: 100%;
  margin: 0;
  padding: 11px 12px;
  border: 1px solid transparent;
  border-radius: var(--r-md);
  background: transparent;
  color: var(--muted);
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: background-color 260ms var(--ease), color 260ms var(--ease),
    border-color 260ms var(--ease);
}

.demo__step:hover {
  color: var(--fg);
}

.demo__step::after {
  content: "";
  position: absolute;
  left: 24px;
  top: 100%;
  width: 1.5px;
  height: 8px;
  background: var(--line-strong);
}

.demo__steps li:last-child .demo__step::after {
  display: none;
}

.demo__step-dot {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  flex: none;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--bg);
  font-size: 0.72rem;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  transition: background-color 260ms var(--ease), border-color 260ms var(--ease),
    color 260ms var(--ease), box-shadow 260ms var(--ease);
}

.demo__step-dot svg {
  display: none;
}

.demo__step.is-active {
  border-color: var(--line);
  background: var(--bg);
  color: var(--fg);
  box-shadow: var(--shadow-xs);
}

.demo__step.is-active .demo__step-dot {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
  box-shadow: 0 0 0 4px var(--accent-glow);
}

.demo__step.is-done {
  color: var(--fg-soft);
}

.demo__step.is-done .demo__step-dot {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
}

.demo__step.is-done .demo__step-dot span {
  display: none;
}

.demo__step.is-done .demo__step-dot svg {
  display: block;
}

.demo__replay {
  margin-top: var(--space-5);
}

/* Fenêtre applicative factice */
.demo__window {
  display: flex;
  flex-direction: column;
  min-height: 430px;
  background: var(--bg);
}

.demo__titlebar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 13px var(--space-5);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #fff, var(--surface));
}

.demo__titlebar .flow__dot {
  width: 8px;
  height: 8px;
}

.demo__titlebar-name {
  margin-left: 10px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.73rem;
}

.demo__screen {
  flex: 1;
  padding: var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.demo__frame {
  animation: frame-in 320ms var(--ease);
}

@keyframes frame-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
}

.demo__caption {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  align-self: flex-start;
  padding: 4px 10px;
  margin-bottom: var(--space-2);
  border-radius: var(--r-full);
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.mail {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--bg);
  box-shadow: var(--shadow-xs);
  overflow: hidden;
}

.mail__head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.mail__avatar {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex: none;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-size: 0.76rem;
  font-weight: 700;
}

.mail__from {
  font-size: 0.86rem;
  font-weight: 600;
}

.mail__meta {
  color: var(--muted);
  font-size: 0.76rem;
}

.mail__time {
  margin-left: auto;
  color: var(--muted);
  font-size: 0.74rem;
  white-space: nowrap;
}

.mail__body {
  padding: 14px;
  color: var(--fg-soft);
  font-size: 0.88rem;
  line-height: 1.6;
}

.mail__body p + p {
  margin-top: 9px;
}

.panel {
  padding: var(--space-4);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--bg);
  box-shadow: var(--shadow-xs);
}

.panel--accent {
  border-color: rgba(0, 71, 255, 0.28);
  background: linear-gradient(180deg, var(--accent-soft) 0%, #fff 62%);
}

.panel--muted {
  background: var(--surface);
  margin-top: var(--space-4);
}

.panel__title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  color: var(--fg);
  font-size: 0.84rem;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.panel__title svg {
  color: var(--accent);
  flex: none;
}

.bullets {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--fg-soft);
  font-size: 0.87rem;
  line-height: 1.5;
}

.bullets li {
  display: flex;
  gap: 9px;
}

.bullets li::before {
  content: "";
  flex: none;
  width: 5px;
  height: 5px;
  margin-top: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.kv {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px var(--space-4);
  margin: 0;
  font-size: 0.86rem;
}

.kv dt {
  color: var(--muted);
}

.kv dd {
  margin: 0;
  color: var(--fg);
  font-weight: 550;
  text-align: right;
}

.typed {
  color: var(--fg-soft);
  font-size: 0.88rem;
  line-height: 1.62;
  white-space: pre-wrap;
}

.typed::after {
  content: "";
  display: inline-block;
  width: 2px;
  height: 1em;
  margin-left: 1px;
  background: var(--accent);
  vertical-align: -0.16em;
  animation: caret 1s steps(1) infinite;
}

.typed.is-done::after {
  display: none;
}

@keyframes caret {
  50% {
    opacity: 0;
  }
}

.tagline-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: var(--r-full);
  background: var(--bg);
  color: var(--fg-soft);
  font-size: 0.76rem;
  font-weight: 550;
}

.tag--score {
  border-color: rgba(15, 123, 79, 0.3);
  background: var(--success-soft);
  color: var(--success);
}

.tag--accent {
  border-color: rgba(0, 71, 255, 0.3);
  background: var(--accent-soft);
  color: var(--accent-ink);
}

.approve {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin-top: var(--space-4);
  gap: var(--space-3);
  padding: var(--space-4);
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-md);
  background: var(--surface);
}

.approve p {
  color: var(--muted);
  font-size: 0.84rem;
}

.approve__btns {
  display: flex;
  gap: 8px;
  margin-left: auto;
}

.fake-btn {
  padding: 7px 13px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  background: var(--bg);
  font-size: 0.8rem;
  font-weight: 600;
}

.fake-btn--primary {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.result {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4);
  border: 1px solid rgba(15, 123, 79, 0.28);
  border-radius: var(--r-md);
  background: var(--success-soft);
  color: var(--success);
}

.result svg {
  flex: none;
}

.result strong {
  display: block;
  font-size: 0.9rem;
}

.result span {
  color: var(--fg-soft);
  font-size: 0.82rem;
}

.slack {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--bg);
  box-shadow: var(--shadow-xs);
  overflow: hidden;
}

.slack__head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
}

.slack__msg {
  display: flex;
  gap: 10px;
  padding: 13px 14px;
}

.slack__avatar {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex: none;
  border-radius: var(--r-sm);
  background: var(--accent);
  color: #fff;
}

.slack__body {
  font-size: 0.86rem;
  line-height: 1.55;
}

.slack__author {
  display: flex;
  align-items: baseline;
  gap: 7px;
  margin-bottom: 2px;
  font-weight: 650;
}

.slack__author span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 500;
}

.doc-preview {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: var(--space-4);
  align-items: center;
}

.doc-thumb {
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: #fff;
  box-shadow: var(--shadow-xs);
}

.demo__note {
  margin-top: var(--space-4);
  color: var(--muted);
  font-size: 0.8rem;
  text-align: center;
}

/* ---------- 11. FAQ ----------------------------------------------------- */

.faq {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}

.faq__list {
  border-top: 1px solid var(--line);
}

.faq__item {
  border-bottom: 1px solid var(--line);
}

.faq__item > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-5) 2px;
  color: var(--fg);
  font-size: var(--step-1);
  font-weight: 550;
  letter-spacing: -0.018em;
  list-style: none;
  cursor: pointer;
  transition: color var(--dur) var(--ease);
}

.faq__item > summary::-webkit-details-marker {
  display: none;
}

.faq__item > summary:hover {
  color: var(--accent);
}

.faq__chevron {
  flex: none;
  color: var(--muted);
  transition: transform var(--dur) var(--ease), color var(--dur) var(--ease);
}

.faq__item[open] > summary {
  color: var(--accent);
}

.faq__item[open] .faq__chevron {
  color: var(--accent);
  transform: rotate(45deg);
}

.faq__answer {
  padding: 0 2px var(--space-5);
  max-width: 68ch;
  color: var(--muted);
  font-size: 0.97rem;
}

.faq__answer p + p {
  margin-top: 10px;
}

.faq__aside {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  padding: var(--space-6);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, var(--surface) 0%, #fff 100%);
}

.faq__aside h2 {
  font-size: var(--step-3);
}

.faq__aside p {
  margin: var(--space-4) 0 var(--space-6);
  color: var(--muted);
}

/* ---------- 12. Contact ------------------------------------------------- */

.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}

.contact__aside h2 {
  margin-bottom: var(--space-4);
}

.contact__aside > p {
  color: var(--muted);
  font-size: var(--step-1);
}

.contact__steps {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin: var(--space-7) 0;
  padding: 0;
  list-style: none;
}

.contact__steps li {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  color: var(--fg-soft);
  font-size: 0.94rem;
}

.contact__steps svg {
  flex: none;
  margin-top: 2px;
  color: var(--accent);
}

.contact__direct {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-5);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
}

.contact__direct a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--fg);
  font-size: 0.93rem;
  font-weight: 550;
  text-decoration: none;
  word-break: break-word;
}

.contact__direct a svg {
  flex: none;
  color: var(--accent);
}

.contact__direct a:hover {
  color: var(--accent);
}

.form {
  padding: clamp(24px, 3vw, 36px);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: var(--bg);
  box-shadow: var(--shadow-lg);
}

.form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.field--full {
  grid-column: 1 / -1;
}

.field label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.87rem;
  font-weight: 550;
  letter-spacing: -0.01em;
}

.field label .opt {
  color: var(--muted);
  font-weight: 450;
}

.field input,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  background: var(--bg);
  font-size: 0.95rem;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
    background-color var(--dur) var(--ease);
}

.field textarea {
  min-height: 132px;
  resize: vertical;
  line-height: 1.55;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #9aa0ab;
}

.field input:hover,
.field textarea:hover {
  border-color: #b9bfc9;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  border-color: #c0392b;
  box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.12);
}

.field__error {
  display: none;
  align-items: center;
  gap: 6px;
  color: #a5271b;
  font-size: 0.81rem;
  font-weight: 500;
}

.field__error.is-visible {
  display: flex;
}

.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-4);
  margin-top: var(--space-5);
}

.form__consent {
  flex: 1 1 240px;
  color: var(--muted);
  font-size: 0.79rem;
  line-height: 1.5;
}

.form__status {
  margin-top: var(--space-4);
  padding: var(--space-4);
  border-radius: var(--r-md);
  font-size: 0.89rem;
  font-weight: 500;
}

.form__status:empty {
  display: none;
}

.form__status[data-state="success"] {
  border: 1px solid rgba(15, 123, 79, 0.28);
  background: var(--success-soft);
  color: var(--success);
}

.form__status[data-state="error"] {
  border: 1px solid rgba(192, 57, 43, 0.28);
  background: #fdeeec;
  color: #a5271b;
}

.spinner {
  width: 15px;
  height: 15px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 700ms linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ---------- 13. Pied de page -------------------------------------------- */

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
  padding-block: clamp(48px, 6vw, 72px) var(--space-6);
}

.footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 56px);
  padding-bottom: var(--space-7);
}

.footer__about p {
  max-width: 34ch;
  margin-top: var(--space-4);
  color: var(--muted);
  font-size: 0.9rem;
}

.footer__socials {
  display: flex;
  gap: 10px;
  margin-top: var(--space-5);
}

.footer__socials a {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  background: var(--bg);
  color: var(--fg);
  transition: border-color var(--dur) var(--ease), color var(--dur) var(--ease),
    transform var(--dur) var(--ease);
}

.footer__socials a:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

.footer__col h2 {
  margin-bottom: var(--space-4);
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 650;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.footer__col ul {
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer__col a {
  color: var(--fg-soft);
  font-size: 0.9rem;
  text-decoration: none;
}

.footer__col a:hover {
  color: var(--accent);
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding-top: var(--space-5);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.82rem;
}

/* ---------- 14. Pages secondaires --------------------------------------- */

.legal {
  max-width: 760px;
  margin-inline: auto;
  padding-block: clamp(48px, 7vw, 88px);
}

.legal h1 {
  font-size: var(--step-4);
}

.legal__updated {
  margin-top: var(--space-4);
  color: var(--muted);
  font-size: 0.88rem;
}

.legal h2 {
  margin-top: var(--space-8);
  margin-bottom: var(--space-4);
  font-size: var(--step-2);
}

.legal h3 {
  margin-top: var(--space-5);
  margin-bottom: var(--space-2);
}

.legal p,
.legal li {
  color: var(--fg-soft);
  font-size: 0.97rem;
}

.legal p + p {
  margin-top: var(--space-3);
}

.legal ul {
  margin: var(--space-3) 0 0;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.legal .todo {
  padding: 2px 7px;
  border-radius: var(--r-sm);
  background: #fff6e0;
  color: var(--warning);
  font-family: var(--mono);
  font-size: 0.85em;
  font-weight: 600;
}

.legal__back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: var(--space-6);
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 550;
  text-decoration: none;
}

.legal__back:hover {
  color: var(--accent);
}

/* ---------- 15. Animations d'apparition --------------------------------- */

[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 620ms var(--ease), transform 620ms var(--ease);
  transition-delay: calc(var(--i, 0) * 70ms);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* Perf : rendu différé du contenu hors écran */
.section[data-defer] {
  content-visibility: auto;
  contain-intrinsic-size: auto 900px;
}

/* ---------- Responsive -------------------------------------------------- */

@media (max-width: 1024px) {
  :root {
    --header-h: 62px;
  }

  .hero__inner {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-8);
  }

  .hero__sub {
    max-width: 60ch;
  }

  /* Le schéma ne doit pas s'étirer sur toute la largeur une fois empilé :
     son texte SVG grandirait avec lui. */
  .flow {
    max-width: 520px;
    margin-inline: auto;
  }

  .faq,
  .contact {
    grid-template-columns: minmax(0, 1fr);
  }

  .faq__aside {
    position: static;
    order: -1;
  }

  .demo__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .demo__pipeline {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .footer__top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer__about {
    grid-column: 1 / -1;
  }

  .perks {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .perk,
  .perk:nth-child(4) {
    grid-column: span 1;
  }

  .perk:nth-child(5) {
    grid-column: span 2;
  }
}

@media (max-width: 860px) {
  .nav__links,
  .nav__actions .btn {
    display: none;
  }

  .nav__toggle {
    display: flex;
  }

  .nav__links {
    margin: 0;
  }
}

@media (max-width: 640px) {
  .form__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .step {
    grid-template-columns: 36px minmax(0, 1fr);
    gap: var(--space-4);
  }

  .step__num {
    width: 36px;
    height: 36px;
    font-size: 0.82rem;
  }

  .process::before,
  .process::after {
    left: 17px;
  }

  .step__content {
    grid-template-columns: minmax(0, 1fr);
  }

  .step__meta {
    grid-column: 1;
    grid-row: auto;
    justify-self: start;
    order: 3;
  }

  .demo__window {
    min-height: 0;
  }

  .approve__btns {
    margin-left: 0;
    width: 100%;
  }

  .doc-preview {
    grid-template-columns: 68px minmax(0, 1fr);
  }

  .footer__top {
    grid-template-columns: minmax(0, 1fr);
  }

  .perks {
    grid-template-columns: minmax(0, 1fr);
  }

  .perk,
  .perk:nth-child(4),
  .perk:nth-child(5) {
    grid-column: span 1;
  }

  .hero__cta .btn {
    flex: 1 1 100%;
  }

  .flow {
    padding: var(--space-4);
  }

  .fnode__title {
    font-size: 18px;
  }

  .fnode__meta {
    font-size: 15px;
  }

  .flow__legend {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    font-size: 0.72rem;
  }
}

/* ---------- 16. Mouvement réduit ---------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .flow__svg .fnode,
  .flow__svg .fchip {
    opacity: 1;
  }

  .fwire {
    stroke-dashoffset: 0;
  }

  .fpulse,
  .fhalo {
    display: none;
  }

  .typed::after {
    display: none;
  }
}

/* ---------- Impression --------------------------------------------------- */

@media print {
  .site-header,
  .demo__tabs,
  .demo__replay,
  .hero__cta,
  .form {
    display: none;
  }

  body {
    color: #000;
  }
}
