/* ============ Tokens (thème Vercel : clair, monochrome, géométrique) ============ */
:root {
  --bg: #ffffff;
  --bg-subtle: #fafafa;
  --bg-soft: #f5f5f5;
  --bg-panel: #ffffff;
  --line: #eaeaea;
  --line-strong: #d4d4d4;
  --text: #0a0a0a;
  --muted: #666666;
  --faint: #8f8f8f;
  --accent: #16a34a;
  --accent-deep: #15803d;
  --accent-bright: #4ade80;
  --accent-dim: #e6f9ef;

  /* Trio d'accents pour ponctuer les listes (vert marque, bleu ardoise, or sombre), lisibles sur blanc */
  --c-1: #16a34a;
  --c-2: #18639e;
  --c-3: #8a5a00;
  --warn: #95630a;
  --warn-dim: #fbf4e0;
  --danger: #b4382c;
  --danger-dim: #fcebea;
  --ink: #0a0a0a;
  --font-sans: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-mono: 'Geist Mono', 'SF Mono', ui-monospace, 'Menlo', monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --r-window: 12px;
  --r-panel: 10px;
  --r-btn: 8px;
  --r-chip: 6px;
  --container: 1120px;
  --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-lift: 0 2px 4px rgba(0, 0, 0, 0.04), 0 12px 28px rgba(0, 0, 0, 0.06);
  --shadow-float: 0 1px 1px rgba(0, 0, 0, 0.02), 0 8px 22px rgba(0, 0, 0, 0.05), 0 24px 60px rgba(0, 0, 0, 0.06);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

::selection {
  background: rgba(22, 163, 74, 0.16);
  color: var(--text);
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

h1,
h2,
h3 {
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.08;
  text-wrap: balance;
  color: var(--text);
}
h1 {
  font-size: clamp(2.6rem, 5.6vw, 4.05rem);
  font-weight: 600;
  letter-spacing: -0.045em;
}
h2 {
  font-size: clamp(1.95rem, 3.6vw, 2.7rem);
  letter-spacing: -0.04em;
}
h3 {
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.lede {
  color: var(--muted);
  font-size: clamp(1.05rem, 1.45vw, 1.18rem);
  line-height: 1.6;
  max-width: 38em;
  letter-spacing: -0.011em;
}

a {
  color: inherit;
}
button {
  font: inherit;
  color: inherit;
  cursor: pointer;
  background: none;
  border: none;
}
:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 2px;
  border-radius: 3px;
}

.mono {
  font-family: var(--font-mono);
}

/* ============ Boutons (style Vercel : noir net, coins doux) ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: var(--r-btn);
  padding: 11px 20px;
  font-weight: 600;
  font-size: 0.94rem;
  letter-spacing: -0.011em;
  white-space: nowrap;
  text-decoration: none;
  transition:
    transform 0.18s var(--ease),
    background 0.2s var(--ease),
    border-color 0.2s var(--ease),
    box-shadow 0.2s var(--ease);
}
.btn:active {
  transform: scale(0.985);
}
.btn .orb {
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  transition: transform 0.25s var(--ease);
}
.btn:hover .orb {
  transform: translateX(3px);
}
.btn-primary {
  background: var(--ink);
  color: #ffffff;
}
.btn-primary:hover {
  background: #383838;
}
.btn-ghost {
  border: 1px solid var(--line-strong);
  color: var(--text);
  padding: 11px 18px;
  background: #ffffff;
}
.btn-ghost:hover {
  border-color: var(--text);
  background: #ffffff;
}
.orb svg {
  width: 14px;
  height: 14px;
}

/* ============ Nav flottante ============ */
.nav-wrap {
  position: fixed;
  top: 18px;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: center;
  padding: 0 16px;
  pointer-events: none;
}
nav.bar {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 7px 7px 7px 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.03),
    0 8px 28px rgba(0, 0, 0, 0.06);
}
.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: -0.03em;
  text-decoration: none;
  margin-right: 12px;
}
.brand svg {
  width: 24px;
  height: 24px;
  flex: none;
}
.brand svg rect {
  fill: var(--ink);
}
.brand svg path {
  stroke: var(--accent-bright);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 1px;
}
.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  padding: 8px 12px;
  border-radius: 8px;
  transition:
    color 0.2s var(--ease),
    background 0.2s var(--ease);
}
.nav-links a:hover {
  color: var(--text);
  background: var(--bg-soft);
}
nav.bar .btn {
  padding: 8px 14px;
  font-size: 0.86rem;
  margin-left: 8px;
}
.nav-links .lang-switch {
  margin-left: 6px;
  padding: 6px 10px;
  border: 1px solid var(--line-strong);
  font-weight: 600;
  color: var(--text);
}
.nav-links .lang-switch:hover {
  border-color: var(--text);
  background: var(--bg-soft);
}

.burger {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  position: relative;
  flex: none;
}
.burger span {
  position: absolute;
  left: 11px;
  right: 11px;
  height: 1.5px;
  background: var(--text);
  border-radius: 2px;
  transition:
    transform 0.45s var(--ease),
    top 0.45s var(--ease);
}
.burger span:nth-child(1) {
  top: 15px;
}
.burger span:nth-child(2) {
  top: 23px;
}
.burger[aria-expanded='true'] span:nth-child(1) {
  top: 19px;
  transform: rotate(45deg);
}
.burger[aria-expanded='true'] span:nth-child(2) {
  top: 19px;
  transform: rotate(-45deg);
}

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.4s var(--ease),
    visibility 0.4s;
}
.mobile-menu.open {
  opacity: 1;
  visibility: visible;
}
.mobile-menu a {
  text-decoration: none;
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--text);
  padding: 10px;
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.5s var(--ease),
    transform 0.5s var(--ease);
}
.mobile-menu.open a {
  opacity: 1;
  transform: none;
}
.mobile-menu.open a:nth-child(1) {
  transition-delay: 0.05s;
}
.mobile-menu.open a:nth-child(2) {
  transition-delay: 0.1s;
}
.mobile-menu.open a:nth-child(3) {
  transition-delay: 0.15s;
}
.mobile-menu.open a:nth-child(4) {
  transition-delay: 0.2s;
}
.mobile-menu.open a:nth-child(5) {
  transition-delay: 0.25s;
}
.mobile-menu.open a:nth-child(6) {
  transition-delay: 0.3s;
}
.mobile-menu.open a:nth-child(7) {
  transition-delay: 0.35s;
}
.mobile-menu .lang-switch {
  font-size: 1.1rem;
  color: var(--muted);
}

@media (max-width: 920px) {
  .nav-links,
  nav.bar > .btn {
    display: none;
  }
  .burger {
    display: block;
  }
  nav.bar {
    padding: 6px 6px 6px 16px;
  }
}

/* ============ Hero ============ */
.hero {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding: 128px 0 80px;
  position: relative;
  overflow: hidden;
  overflow: clip;
}
/* Grille de fond signature Vercel, fondue par un masque radial */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(10, 10, 10, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(10, 10, 10, 0.045) 1px, transparent 1px);
  background-size: 58px 58px;
  -webkit-mask-image: radial-gradient(ellipse 90% 62% at 60% 0%, #000 18%, transparent 72%);
  mask-image: radial-gradient(ellipse 90% 62% at 60% 0%, #000 18%, transparent 72%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  top: -26%;
  right: -8%;
  width: 680px;
  height: 680px;
  background: radial-gradient(circle, rgba(22, 163, 74, 0.07) 0%, transparent 62%);
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  width: 100%;
  position: relative;
  z-index: 1;
}
.hero h1 {
  background: linear-gradient(180deg, #0a0a0a 38%, #252525);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.hero h1 .em {
  /* -webkit-text-fill-color: var(--accent);
  color: var(--accent); */
  /* font-family: var(--font-mono); */
  text-decoration: underline;
  text-decoration-color: var(--accent);
}
.hero h1 .word-rotator {
  -webkit-text-fill-color: var(--text);
  color: var(--text);
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
}
.hero h1 .word-rotator .word {
  -webkit-text-fill-color: var(--accent);
  color: var(--accent);
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
}
.hero .lede {
  margin: 26px 0 36px;
}
.hero-ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

@media (max-width: 980px) {
  .hero {
    padding-top: 116px;
  }
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-grid h1 {
    font-size: 3rem;
  }
}

/* ============ Fenêtres démo ============ */
.shell {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-window);
  padding: 0;
  box-shadow: var(--shadow-float);
}
.window {
  background: var(--bg-panel);
  border: none;
  border-radius: var(--r-window);
  overflow: hidden;
}
.window-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 18px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--faint);
  background: var(--bg-subtle);
}
.window-bar .app {
  display: flex;
  align-items: center;
  gap: 15px;
  color: var(--text);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.84rem;
  letter-spacing: -0.01em;
}
/* Pastilles macOS façon "fenêtre", en gris Vercel */
.window-bar .app::before {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #dcdcdc;
  box-shadow:
    16px 0 0 #dcdcdc,
    32px 0 0 #dcdcdc;
  margin-right: 24px;
  flex: none;
}
.window-bar .app svg {
  display: none;
}
.window-body {
  padding: 20px 18px;
  min-height: 360px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
@media (max-width: 460px) {
  .window-bar > span:last-child {
    display: none;
  }
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chip {
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--muted);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-chip);
  padding: 7px 13px;
  background: var(--bg);
  transition:
    border-color 0.2s var(--ease),
    color 0.2s var(--ease),
    background 0.2s var(--ease);
  text-align: left;
}
.chip:hover {
  color: var(--text);
  border-color: var(--text);
}
.chip[aria-pressed='true'] {
  color: var(--accent-deep);
  border-color: rgba(22, 163, 74, 0.4);
  background: var(--accent-dim);
}

.ask-line {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 13px 16px;
  background: var(--bg-subtle);
  border: 1px solid var(--line);
  border-radius: var(--r-panel);
  font-size: 0.94rem;
  min-height: 50px;
}
.ask-line .prompt {
  color: var(--accent);
  font-family: var(--font-mono);
  font-weight: 500;
  flex: none;
}
.ask-line .q::after {
  content: '▌';
  color: var(--accent);
  animation: blink 1s steps(2) infinite;
  margin-left: 1px;
}
.ask-line .q.done::after {
  content: '';
}
@keyframes blink {
  50% {
    opacity: 0;
  }
}

.steps {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.step {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--faint);
  opacity: 0;
  transform: translateY(6px);
  transition:
    opacity 0.5s var(--ease),
    transform 0.5s var(--ease);
}
.step.on {
  opacity: 1;
  transform: none;
}
.step svg {
  width: 13px;
  height: 13px;
  color: var(--accent);
  flex: none;
}

.answer {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-panel);
  padding: 18px;
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 0.6s var(--ease),
    transform 0.6s var(--ease);
}
.answer.on {
  opacity: 1;
  transform: none;
}
.answer p {
  font-size: 0.94rem;
  line-height: 1.6;
  color: var(--text);
}
.answer table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  margin-top: 4px;
}
.answer table td {
  padding: 8px 10px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}
.answer table td:last-child {
  text-align: right;
  color: var(--text);
}
.answer table tr.hl td:last-child {
  color: var(--accent);
  font-weight: 600;
}
.chart {
  display: flex;
  gap: 10px;
  height: 132px;
  margin: 8px 0 14px;
}
.chart .bar {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 7px;
  text-align: center;
  font-family: var(--font-mono);
}
.chart .bar b {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text);
}
.chart .bar i {
  display: block;
  height: calc(var(--h, 50%) * 0.64);
  border-radius: 4px 4px 2px 2px;
  background: linear-gradient(180deg, rgba(22, 163, 74, 0.7), rgba(22, 163, 74, 0.14));
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.7s var(--ease);
  transition-delay: calc(var(--i, 0) * 70ms);
}
.answer.on .chart .bar i {
  transform: scaleY(1);
}
.chart .bar span {
  font-size: 0.66rem;
  color: var(--muted);
}
.chart .bar.hl b,
.chart .bar.hl span {
  color: var(--accent);
}
.answer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  align-items: center;
}
.cite {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: var(--r-chip);
  padding: 4px 9px;
  background: var(--bg-subtle);
}
.badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  border-radius: var(--r-chip);
  padding: 4px 9px;
  margin-left: auto;
}
.badge.ok {
  color: var(--accent-deep);
  background: var(--accent-dim);
  border: 1px solid rgba(22, 163, 74, 0.22);
}

.demo-note {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--faint);
  text-align: right;
  margin-top: auto;
  padding-top: 6px;
}

/* ============ Sections ============ */
section {
  padding: clamp(88px, 11vw, 148px) 0;
  position: relative;
}
section.tight {
  padding-top: clamp(60px, 7vw, 96px);
}
#plateforme,
#knowledge,
#souverainete,
#methode,
#faq {
  border-top: 1px solid var(--line);
}

/* ============ Friction ============ */
.marquee {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
  background: var(--bg-subtle);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex;
  gap: 48px;
  width: max-content;
  animation: slide 46s linear infinite;
}
.marquee:hover .marquee-track {
  animation-play-state: paused;
}
@keyframes slide {
  to {
    transform: translateX(-50%);
  }
}
.marquee-track span {
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--faint);
  white-space: nowrap;
}
.marquee-track span em {
  font-style: normal;
  color: var(--muted);
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track {
    animation: none;
  }
  .marquee {
    overflow-x: auto;
  }
}

.friction-head {
  max-width: 660px;
  margin-bottom: 56px;
}
.friction-head h2 {
  margin-bottom: 18px;
}
.word-rotator {
  display: inline-block;
  position: relative;
  vertical-align: bottom;
  color: var(--accent);
  font-weight: 600;
  text-align: left;
}
.word-rotator-sizer {
  display: block;
  visibility: hidden;
  height: 0;
  overflow: hidden;
  pointer-events: none;
  white-space: nowrap;
}
.word-rotator-viewport {
  display: block;
  overflow: hidden;
  height: 1.14em;
  line-height: 1.14;
}
.word-rotator-track {
  display: block;
  will-change: transform;
  transition: transform 0.62s var(--ease);
}
.word-rotator-track .word {
  display: block;
  height: 1.14em;
  line-height: 1.14;
  white-space: nowrap;
}
.word-rotator-track .word.is-entering {
  animation: word-in 0.62s var(--ease) both;
}
@keyframes word-in {
  from {
    opacity: 0.35;
    filter: blur(4px);
  }
  to {
    opacity: 1;
    filter: blur(0);
  }
}
.friction-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
}
.friction-grid article {
  padding: 32px 28px 8px 0;
  border-top: 2px solid var(--accent);
  margin-top: -1px;
}
.friction-grid article:nth-child(2) {
  --accent: var(--c-2);
}
.friction-grid article:nth-child(3) {
  --accent: var(--c-3);
}
.friction-grid article + article {
  border-left: 1px solid var(--line);
  padding-left: 28px;
}
.friction-grid .stat {
  font-family: var(--font-mono);
  font-size: 1.2rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 14px;
}
.friction-grid .stat::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: var(--accent);
  flex: none;
}
.friction-grid h3 {
  margin-bottom: 10px;
}
.friction-grid p {
  color: var(--muted);
  font-size: 0.95rem;
}
@media (max-width: 860px) {
  .friction-grid {
    grid-template-columns: 1fr;
  }
  .friction-grid article + article {
    border-left: none;
    padding-left: 0;
    border-top: 1px solid var(--line);
  }
}

/* ============ Plateforme ============ */
.platform {
  text-align: left;
}
.platform-head {
  max-width: 750px;
  margin-bottom: 56px;
}
.platform-head h2 {
  margin-bottom: 18px;
}
.duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.duo a {
  position: relative;
  text-decoration: none;
  display: block;
  background: radial-gradient(135% 100% at 100% 0%, var(--accent-dim) 0%, rgba(230, 249, 239, 0) 52%), var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-window);
  padding: 0;
  overflow: hidden;
  box-shadow: var(--shadow-lift);
  transition:
    transform 0.3s var(--ease),
    border-color 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
}
.duo a::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-deep), var(--accent-bright));
}
.duo a:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: var(--shadow-float);
}
.duo .inner {
  border: none;
  border-radius: var(--r-window);
  padding: 38px 34px;
  height: 100%;
  background: transparent;
  position: relative;
}
.duo .verb {
  display: flex;
  width: fit-content;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--accent-deep);
  background: var(--accent-dim);
  border: 1px solid rgba(22, 163, 74, 0.2);
  border-radius: 999px;
  padding: 4px 11px;
  margin-bottom: 18px;
}
.duo h3 {
  font-size: 1.5rem;
  margin-bottom: 12px;
  letter-spacing: -0.03em;
  font-weight: 600;
}
.duo-name {
  display: flex;
  align-items: center;
  gap: 11px;
}
.duo-logo {
  width: 30px;
  height: 30px;
  flex: none;
}
.duo-logo rect {
  fill: var(--ink);
}
.duo-logo path {
  stroke: var(--accent-bright);
}
.duo p {
  color: var(--muted);
  font-size: 0.97rem;
  margin-bottom: 22px;
}
.duo .go {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: -0.01em;
  color: var(--text);
}
.duo .go svg {
  width: 14px;
  height: 14px;
  color: var(--accent);
  transition: transform 0.25s var(--ease);
}
.duo a:hover .go svg {
  transform: translateX(4px);
}
.platform-foot {
  margin-top: 36px;
  color: var(--muted);
  font-size: 0.97rem;
  display: flex;
  align-items: center;
  gap: 10px;
}
.platform-foot svg {
  width: 17px;
  height: 17px;
  color: var(--accent);
  flex: none;
}
@media (max-width: 860px) {
  .duo {
    grid-template-columns: 1fr;
  }
}

/* ============ Pills / eyebrow ============ */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg-subtle);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 13px 5px 11px;
  margin-bottom: 22px;
}
.pill::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}

/* ============ Knowledge bento ============ */
.sec-head {
  max-width: 680px;
  margin-bottom: 56px;
}
.sec-head h2 {
  margin-bottom: 18px;
}

.bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
}
.cell {
  border: 1px solid var(--line);
  border-radius: var(--r-window);
  padding: 30px;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow: hidden;
  position: relative;
  transition:
    border-color 0.25s var(--ease),
    box-shadow 0.25s var(--ease);
}
.cell:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-card);
}
.cell h3 {
  font-size: 1.25rem;
}
.cell > p {
  color: var(--muted);
  font-size: 0.94rem;
  max-width: 46em;
}
.c1 {
  grid-column: span 7;
  background: linear-gradient(140deg, var(--accent-dim), var(--bg) 58%);
}
.c2 {
  grid-column: span 5;
}
.c3 {
  grid-column: span 5;
  background: var(--bg-subtle);
}
.c4 {
  grid-column: span 7;
}
@media (max-width: 860px) {
  .c1,
  .c2,
  .c3,
  .c4 {
    grid-column: span 12;
  }
}

.flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 10px;
  align-items: center;
  margin-top: auto;
  padding-top: 10px;
}
.flow .srcs {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.src {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: var(--r-chip);
  padding: 8px 11px;
  background: var(--bg);
}
.src svg {
  width: 13px;
  height: 13px;
  color: var(--accent);
  flex: none;
}
.flow .arrow {
  color: var(--faint);
  display: flex;
}
.flow .arrow svg {
  width: 18px;
  height: 18px;
}
.out {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--accent-deep);
  border: 1px solid rgba(22, 163, 74, 0.22);
  border-radius: var(--r-chip);
  padding: 12px;
  background: var(--accent-dim);
  text-align: center;
  line-height: 1.5;
}

.cite-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: auto;
  padding-top: 10px;
}
.cite-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: var(--r-chip);
  padding: 9px 11px;
  background: var(--bg);
}
.cite-row b {
  color: var(--accent);
  font-weight: 600;
  text-align: right;
}

.mini-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  margin-top: auto;
}
.mini-table td {
  padding: 9px 4px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}
.mini-table td:last-child {
  text-align: right;
  color: var(--text);
}
.mini-table tr.hl td {
  color: var(--accent);
}

.gains {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 64px;
  border-top: 1px solid var(--line);
  padding-top: 40px;
}
.gains > div {
  border-left: 2px solid var(--accent);
  padding-left: 22px;
}
.gains > div:nth-child(2) {
  --accent: var(--c-2);
}
.gains > div:nth-child(3) {
  --accent: var(--c-3);
}
.gains h3 {
  font-size: 1.35rem;
  letter-spacing: -0.025em;
  margin-bottom: 10px;
}
.gains h3 .em {
  color: var(--accent);
}
.gains p {
  color: var(--muted);
  font-size: 0.94rem;
}
@media (max-width: 860px) {
  .gains {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* ============ Operate ============ */
.operate-bg {
  background: var(--bg-subtle);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.operate-grid {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
#operate h2 {
  margin-bottom: 18px;
}

@media (max-width: 980px) {
  .operate-grid {
    grid-template-columns: 1fr;
  }
  .operate-grid .copy {
    order: -1;
  }
}
.feature-list {
  display: flex;
  flex-direction: column;
  margin-top: 34px;
  border-top: 1px solid var(--line);
}
.feature-list li {
  list-style: none;
  display: flex;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.feature-list svg {
  width: 20px;
  height: 20px;
  color: var(--accent);
  flex: none;
  margin-top: 3px;
}
.feature-list strong {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin-bottom: 3px;
}
.feature-list span {
  color: var(--muted);
  font-size: 0.92rem;
}

.plan {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.plan-item {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.88rem;
  color: var(--muted);
  opacity: 0;
  transform: translateY(6px);
  transition:
    opacity 0.5s var(--ease),
    transform 0.5s var(--ease);
}
.plan-item.on {
  opacity: 1;
  transform: none;
}
.plan-item svg {
  width: 14px;
  height: 14px;
  color: var(--accent);
  flex: none;
}
.plan-item.done {
  color: var(--text);
}

.guard {
  border-radius: var(--r-panel);
  padding: 16px;
  font-size: 0.9rem;
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 0.6s var(--ease),
    transform 0.6s var(--ease);
}
.guard.on {
  opacity: 1;
  transform: none;
}
.guard.warn {
  background: var(--warn-dim);
  border: 1px solid rgba(149, 99, 10, 0.22);
}
.guard.deny {
  background: var(--danger-dim);
  border: 1px solid rgba(180, 56, 44, 0.22);
}
.guard .g-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}
.guard.warn .g-title {
  color: var(--warn);
}
.guard.deny .g-title {
  color: var(--danger);
}
.guard .g-title svg {
  width: 16px;
  height: 16px;
  flex: none;
}
.guard p {
  color: var(--muted);
  font-size: 0.88rem;
}
.guard .g-actions {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}
.guard .g-actions .confirm {
  background: var(--ink);
  color: #ffffff;
  border-radius: var(--r-btn);
  padding: 8px 16px;
  font-weight: 600;
  font-size: 0.84rem;
  letter-spacing: -0.01em;
  transition:
    transform 0.2s var(--ease),
    background 0.2s var(--ease);
}
.guard .g-actions .confirm:hover {
  background: #383838;
}
.guard .g-actions .confirm:active {
  transform: scale(0.97);
}

.done-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: var(--r-panel);
  border: 1px solid rgba(22, 163, 74, 0.22);
  background: var(--accent-dim);
  padding: 14px 16px;
  color: var(--accent-deep);
  font-weight: 600;
  font-size: 0.92rem;
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 0.6s var(--ease),
    transform 0.6s var(--ease);
}
.done-banner.on {
  opacity: 1;
  transform: none;
}
.done-banner svg {
  width: 18px;
  height: 18px;
  flex: none;
}
.done-banner small {
  display: block;
  font-weight: 400;
  color: var(--muted);
  font-size: 0.8rem;
}

/* ============ Souveraineté ============ */
.sov h2 {
  max-width: 620px;
}
.sov .sec-head p {
  margin-top: 18px;
}
.pillars {
  border-top: 1px solid var(--line);
}
.pillar {
  display: grid;
  grid-template-columns: 56px minmax(0, 320px) 1fr;
  gap: 24px;
  align-items: start;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
}
.pillar svg {
  width: 26px;
  height: 26px;
  color: var(--accent);
  margin-top: 2px;
}
.pillar h3 {
  font-size: 1.2rem;
}
.pillar p {
  color: var(--muted);
  font-size: 0.96rem;
  max-width: 44em;
}
@media (max-width: 860px) {
  .pillar {
    grid-template-columns: 40px 1fr;
  }
  .pillar p {
    grid-column: 2;
  }
}

/* ============ Méthode ============ */
.steps3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.steps3 article {
  border-top: 1px solid var(--line-strong);
  padding-top: 26px;
  position: relative;
}
.steps3 article:nth-child(2) {
  --accent: var(--c-2);
}
.steps3 article:nth-child(3) {
  --accent: var(--c-3);
}
.steps3 article::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  width: 56px;
  height: 1px;
  background: var(--accent);
}
.steps3 .verb {
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  display: block;
  margin-bottom: 12px;
}
.steps3 p {
  color: var(--muted);
  font-size: 0.94rem;
}
.method-foot {
  margin-top: 48px;
  color: var(--muted);
  font-size: 0.97rem;
}
.method-foot b {
  color: var(--text);
  font-weight: 600;
}
@media (max-width: 860px) {
  .steps3 {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

/* ============ Figures techniques (illustrations filaires) ============ */
.fig-wrap {
  margin-bottom: 24px;
}
.fig-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.fig {
  display: block;
  width: 100%;
  height: 196px;
}
.fig path,
.fig ellipse {
  fill: none;
  stroke-width: 1.8;
  vector-effect: non-scaling-stroke;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.fig .w {
  stroke: rgba(10, 10, 10, 0.18);
}
.fig .w2 {
  stroke: rgba(10, 10, 10, 0.1);
}
.fig .ac {
  stroke: var(--accent);
  stroke-opacity: 0.75;
}
.fig .dsh {
  stroke-dasharray: 3 5;
}
.fig .dsh2 {
  stroke-dasharray: 4 4;
}
.fig .dt {
  fill: rgba(10, 10, 10, 0.35);
}
.fig .dta {
  fill: var(--accent);
}
.fig .w,
.fig .ac {
  transition:
    stroke 0.5s var(--ease),
    stroke-opacity 0.5s var(--ease);
}
.steps3 article:hover .fig .w {
  stroke: rgba(10, 10, 10, 0.32);
}
.steps3 article:hover .fig .ac,
.duo a:hover .fig .ac {
  stroke-opacity: 1;
}

/* Tracé progressif des éléments accent au reveal */
html.js .reveal .fig .dr {
  stroke-dasharray: 100 100;
  stroke-dashoffset: 100;
}
html.js .reveal.in .fig .dr {
  animation: figdraw 1.5s var(--ease) calc(var(--d, 0s) + 0.45s) forwards;
}
@keyframes figdraw {
  to {
    stroke-dashoffset: 0;
  }
}
html.js .reveal .fig circle {
  opacity: 0;
  transition: opacity 0.7s var(--ease) calc(var(--d, 0s) + 1.3s);
}
html.js .reveal.in .fig circle {
  opacity: 1;
}

/* Vie discrète : lévitation du viseur et du nœud, flux traversant la porte */
.fig .float {
  animation: figfloat 7s ease-in-out infinite;
}
@keyframes figfloat {
  50% {
    transform: translateY(5px);
  }
}
.fig .flow {
  stroke-dasharray: 5 7;
  animation: figflow 1.6s linear infinite;
}
@keyframes figflow {
  to {
    stroke-dashoffset: -24;
  }
}
@media (prefers-reduced-motion: reduce) {
  .fig .float,
  .fig .flow {
    animation: none;
  }
  .fig .flow {
    stroke-dasharray: none;
  }
  html.js .reveal .fig .dr {
    stroke-dasharray: none;
    stroke-dashoffset: 0;
    animation: none;
  }
  html.js .reveal .fig circle {
    opacity: 1;
    transition: none;
  }
}

/* Mini-figures des cartes plateforme */
.fig-mini {
  position: absolute;
  top: 26px;
  right: 26px;
  width: 100px;
  height: auto;
  pointer-events: none;
}
/* le verbe et le titre s'arrêtent avant la mini-figure */
.duo .verb,
.duo h3 {
  max-width: calc(100% - 112px);
}
@media (max-width: 560px) {
  .fig-mini {
    display: none;
  }
}

/* ============ FAQ ============ */
.faq {
  max-width: 780px;
  margin: 0 auto;
}
.faq .sec-head {
  margin-bottom: 36px;
}
details {
  border-bottom: 1px solid var(--line);
}
details summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 4px;
  font-weight: 600;
  font-size: 1.02rem;
  letter-spacing: -0.02em;
}
details summary::-webkit-details-marker {
  display: none;
}
details summary .plus {
  width: 26px;
  height: 26px;
  flex: none;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition:
    transform 0.4s var(--ease),
    border-color 0.4s var(--ease),
    color 0.4s var(--ease);
}
details summary .plus svg {
  width: 12px;
  height: 12px;
}
details[open] summary .plus {
  transform: rotate(45deg);
  border-color: rgba(22, 163, 74, 0.5);
  color: var(--accent);
}
details .a {
  padding: 0 44px 24px 4px;
  color: var(--muted);
  font-size: 0.96rem;
}

/* ============ Feuille contact / démo ============ */
.demo-sheet-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(10, 10, 10, 0.36);
  -webkit-backdrop-filter: blur(6px) saturate(120%);
  backdrop-filter: blur(6px) saturate(120%);
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.4s var(--ease),
    visibility 0.4s;
}
.demo-sheet-backdrop.open {
  opacity: 1;
  visibility: visible;
}
.demo-sheet {
  position: fixed;
  z-index: 201;
  left: 50%;
  top: 50%;
  width: min(484px, calc(100vw - 32px));
  max-height: min(94vh, 740px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: var(--bg-panel);
  box-shadow:
    0 2px 6px rgba(0, 0, 0, 0.04),
    0 24px 50px -16px rgba(0, 0, 0, 0.22),
    0 48px 100px -36px rgba(0, 0, 0, 0.34);
  transform: translate(-50%, calc(-50% + 16px)) scale(0.965);
  opacity: 0;
  pointer-events: none;
  will-change: transform, opacity;
  transition:
    transform 0.5s var(--ease),
    opacity 0.4s var(--ease);
}
/* Masquée pour de bon : sans cette règle, `display: flex` écrase
   l'attribut [hidden] et la feuille capte les clics au centre de la page. */
.demo-sheet[hidden] {
  display: none;
}
.demo-sheet.open {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
  pointer-events: auto;
}
.demo-sheet-handle {
  display: none;
}

/* En-tête sombre : écho du CTA final (grille + halo vert) */
.demo-sheet-head {
  position: relative;
  flex: none;
  padding: 22px 28px 19px;
  background: var(--ink);
  color: #fff;
  overflow: hidden;
}
.demo-sheet-head::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 38px 38px;
  -webkit-mask-image: radial-gradient(ellipse 90% 100% at 22% -10%, #000 8%, transparent 72%);
  mask-image: radial-gradient(ellipse 90% 100% at 22% -10%, #000 8%, transparent 72%);
  pointer-events: none;
}
.demo-sheet-head::after {
  content: '';
  position: absolute;
  top: -55%;
  right: -12%;
  width: 320px;
  height: 260px;
  background: radial-gradient(ellipse, rgba(59, 212, 156, 0.24) 0%, transparent 66%);
  pointer-events: none;
}
.demo-eyebrow {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-bright);
}
.demo-eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-bright);
  box-shadow: 0 0 0 3px rgba(59, 212, 156, 0.22);
}
.demo-sheet-head h2 {
  position: relative;
  margin: 0;
  font-size: 1.5rem;
  line-height: 1.12;
  letter-spacing: -0.028em;
  color: #fff;
}
.demo-sheet-head p {
  position: relative;
  margin: 7px 0 0;
  max-width: 52ch;
  font-size: 0.9rem;
  line-height: 1.45;
  color: #a3a3a3;
}
.demo-sheet-close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 2;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  color: #c4c4c4;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition:
    background 0.2s var(--ease),
    border-color 0.2s var(--ease),
    color 0.2s var(--ease),
    transform 0.2s var(--ease);
}
.demo-sheet-close:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.26);
  color: #fff;
}
.demo-sheet-close:active {
  transform: scale(0.92);
}

.demo-sheet-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px 28px 22px;
}
.demo-form {
  display: grid;
  gap: 13px;
}
.demo-form > * {
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 0.55s var(--ease),
    transform 0.55s var(--ease);
}
.demo-sheet.open .demo-form > * {
  opacity: 1;
  transform: translateY(0);
}
.demo-sheet.open .demo-form > *:nth-child(1) {
  transition-delay: 0.1s;
}
.demo-sheet.open .demo-form > *:nth-child(2) {
  transition-delay: 0.16s;
}
.demo-sheet.open .demo-form > *:nth-child(3) {
  transition-delay: 0.22s;
}
.demo-sheet.open .demo-form > *:nth-child(4) {
  transition-delay: 0.28s;
}
.demo-field {
  display: grid;
  gap: 7px;
}
.demo-field > .lbl {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.79rem;
  font-weight: 600;
  letter-spacing: -0.003em;
  color: var(--text);
}
.demo-field .hint {
  font-weight: 400;
  color: var(--faint);
}
.demo-field input,
.demo-field textarea {
  width: 100%;
  font: inherit;
  font-size: 0.94rem;
  color: var(--text);
  background: var(--bg-subtle);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  transition:
    background 0.2s var(--ease),
    border-color 0.2s var(--ease),
    box-shadow 0.2s var(--ease);
}
.demo-field input::placeholder,
.demo-field textarea::placeholder {
  color: var(--faint);
}
.demo-field input:focus,
.demo-field textarea:focus {
  outline: none;
  background: #fff;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}
.demo-field textarea {
  min-height: 72px;
  line-height: 1.5;
  resize: vertical;
}
.demo-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.demo-form-foot {
  display: grid;
  gap: 12px;
  padding-top: 2px;
}
.demo-turnstile {
  min-height: 65px;
}
.demo-form-status {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.4;
  color: var(--danger);
  display: flex;
  align-items: center;
  gap: 7px;
}
.demo-form-status:empty {
  display: none;
}
.demo-form-status.ok {
  color: var(--accent-deep);
}
.demo-form-status::before {
  content: '';
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}
.demo-submit {
  position: relative;
  width: 100%;
  justify-content: center;
  padding: 13px 22px;
  font-size: 0.98rem;
  border-radius: 12px;
}
.demo-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.demo-submit.is-loading {
  color: transparent;
}
.demo-submit.is-loading .orb {
  opacity: 0;
}
.demo-submit.is-loading::after {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: demo-spin 0.7s linear infinite;
}
@keyframes demo-spin {
  to {
    transform: rotate(360deg);
  }
}
.demo-trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 2px 0 0;
  font-size: 0.78rem;
  color: var(--faint);
}
.demo-trust svg {
  flex: none;
  width: 13px;
  height: 13px;
  color: var(--accent);
}

@media (max-width: 600px) {
  .demo-sheet {
    left: 0;
    right: 0;
    top: auto;
    bottom: 0;
    width: 100%;
    max-height: 94vh;
    border-radius: 22px 22px 0 0;
    border-bottom: none;
    transform: translateY(100%);
  }
  .demo-sheet.open {
    transform: translateY(0);
  }
  .demo-sheet-handle {
    display: block;
    position: absolute;
    top: 9px;
    left: 50%;
    z-index: 3;
    width: 38px;
    height: 4px;
    margin: 0;
    transform: translateX(-50%);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.32);
  }
  .demo-sheet-head {
    padding: 32px 20px 22px;
  }
  .demo-sheet-body {
    padding: 20px 18px 22px;
  }
  .demo-form-row {
    grid-template-columns: 1fr;
  }
}
@media (prefers-reduced-motion: reduce) {
  .demo-sheet-backdrop,
  .demo-sheet,
  .demo-form > * {
    transition: none;
  }
  .demo-submit.is-loading::after {
    animation: none;
  }
}

/* ============ CTA final (section inversée, signature Vercel) ============ */
.final {
  text-align: center;
  position: relative;
  background: var(--ink);
  color: #ededed;
  border-top: 1px solid var(--ink);
  overflow: hidden;
  overflow: clip;
}
.final::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 58px 58px;
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 50% 40%, #000 12%, transparent 68%);
  mask-image: radial-gradient(ellipse 70% 70% at 50% 40%, #000 12%, transparent 68%);
  pointer-events: none;
}
.final::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 48%;
  transform: translate(-50%, -50%);
  width: 760px;
  height: 440px;
  background: radial-gradient(ellipse, rgba(59, 212, 156, 0.16) 0%, transparent 66%);
  pointer-events: none;
}
.final .container {
  position: relative;
  z-index: 1;
}
.final h2 {
  font-size: clamp(2.1rem, 4.4vw, 3.3rem);
  max-width: 17em;
  margin: 0 auto 20px;
  color: #ffffff;
}
.final .lede {
  margin: 0 auto 40px;
  color: #a1a1a1;
}
.final .btn-primary {
  background: #ffffff;
  color: var(--ink);
}
.final .btn-primary:hover {
  background: #e6e6e6;
}

/* ============ Footer ============ */
footer {
  position: relative;
  overflow: hidden;
  overflow: clip;
  isolation: isolate;
  border-top: 1px solid var(--line);
  padding: 56px 0 40px;
}
/* Liquid gradient : deux nappes de couleur floutées qui ondulent lentement en pied de page */
footer::before,
footer::after {
  content: '';
  position: absolute;
  z-index: -1;
  bottom: -170px;
  height: 360px;
  border-radius: 50%;
  filter: blur(66px);
  pointer-events: none;
}
footer::before {
  left: -6%;
  width: 62%;
  background:
    radial-gradient(circle at 32% 50%, rgba(59, 212, 156, 0.26), transparent 60%),
    radial-gradient(circle at 72% 64%, rgba(22, 162, 173, 0.18), transparent 62%);
  animation: liquidA 26s ease-in-out infinite alternate;
}
footer::after {
  right: -8%;
  width: 56%;
  background:
    radial-gradient(circle at 64% 42%, rgba(232, 172, 58, 0.16), transparent 60%),
    radial-gradient(circle at 38% 70%, rgba(59, 212, 156, 0.18), transparent 62%);
  animation: liquidB 32s ease-in-out infinite alternate;
}
@keyframes liquidA {
  0% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(7%, -12px) scale(1.14);
  }
  100% {
    transform: translate(-5%, 10px) scale(1.04);
  }
}
@keyframes liquidB {
  0% {
    transform: translate(0, 0) scale(1.06);
  }
  50% {
    transform: translate(-6%, -10px) scale(0.94);
  }
  100% {
    transform: translate(5%, 12px) scale(1.12);
  }
}
@media (prefers-reduced-motion: reduce) {
  footer::before,
  footer::after {
    animation: none;
  }
}
footer .container {
  position: relative;
  z-index: 1;
}
.foot-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
.foot-grid .brand {
  margin-bottom: 14px;
}
.foot-grid p {
  color: var(--faint);
  font-size: 0.9rem;
  max-width: 30em;
}
.foot-grid h4 {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 16px;
  font-weight: 500;
}
.foot-grid ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.foot-grid a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
  transition: color 0.2s;
}
.foot-grid a:hover {
  color: var(--text);
}
.foot-base {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--faint);
  font-size: 0.84rem;
}
@media (max-width: 860px) {
  .foot-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* ============ Reveals (actifs uniquement si JS présent : html.js) ============ */
html.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.8s var(--ease),
    transform 0.8s var(--ease);
  transition-delay: var(--d, 0s);
}
html.js .reveal.in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  html.js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .step,
  .plan-item,
  .answer,
  .guard,
  .done-banner {
    transition: none;
  }
  .chart .bar i {
    transform: scaleY(1);
    transition: none;
  }
  .ask-line .q::after {
    animation: none;
  }
  .word-rotator-track {
    transition: none;
  }
  .word-rotator-track .word.is-entering {
    animation: none;
  }
}
