/* Pitwall — landing page.
   Couleurs : exactement celles de l'application (src/ui/Theme.cpp), thème clair et thème sombre.
   Mobile d'abord. Paliers : base (≤ 480) · 481 (grand téléphone) · 768 (tablette, portrait et paysage) · 1025 (ordinateur). */

:root {
  /* Thème clair (kLight) */
  --bg: #F5F5F7;
  --card: #FFFFFF;
  --surface: #F7F7F9;
  --surface-2: #EDEDF0;
  --control: #C7C7CC;
  --text: #1D1D1F;
  --secondary: #6E6E73;
  --tertiary: #A1A1A6;
  --separator: #E5E5EA;
  --alert-soft: #FDF0E8;
  --ok: #34A853;
  --ok-text: #2E7D32;

  /* Thème sombre (kDarkScheme) */
  --d-bg: #111113;
  --d-card: #1E1E21;
  --d-surface: #26262A;
  --d-text: #F2F2F7;
  --d-secondary: #A1A1A8;
  --d-tertiary: #6E6E76;
  --d-separator: #333338;
  --d-link: #4D9BFF;

  /* Accents, identiques dans les deux thèmes */
  --accent: #0066D6;
  --accent-hover: #0A72E0;
  --accent-pressed: #0058BA;
  --alert: #E8590C;

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", "Segoe UI", Roboto, Arial, sans-serif;

  /* Grille et rythme — mobile */
  --wrap: 1120px;
  --gutter: 22px;
  --section: 88px;
  --head-gap: 44px;
  --radius: 14px;
  --radius-s: 12px;
  --bar: 52px;

  /* Échelle typographique — mobile */
  --t-xl: 46px;  --t-xl-lh: 1.06;
  --t-l: 36px;   --t-l-lh: 1.08;
  --t-m: 26px;
  --t-sub: 19px;

  /* Mouvement — plus court et plus discret sur mobile */
  --ease: cubic-bezier(.28, .11, .32, 1);
  --fast: 250ms;
  --rise: 16px;
  --reveal: 700ms;
}
@media (min-width: 481px) {
  :root { --gutter: 32px; --section: 104px; --head-gap: 56px; --radius: 16px;
          --t-xl: 58px; --t-l: 44px; --t-m: 28px; --t-sub: 21px; }
}
@media (min-width: 768px) {
  :root { --gutter: 40px; --section: 120px; --head-gap: 64px; --radius: 18px;
          --t-xl: 72px; --t-xl-lh: 1.04; --t-l: 56px; --t-l-lh: 1.06; --t-m: 30px; --t-sub: 22px;
          --rise: 24px; --reveal: 850ms; }
}
@media (min-width: 1025px) {
  :root { --section: 160px; --head-gap: 72px;
          --t-xl: clamp(80px, 7vw, 96px); --t-xl-lh: 1.03; --t-l: clamp(58px, 5.2vw, 72px); --t-l-lh: 1.05; --t-m: 36px; --t-sub: 24px;
          --rise: 28px; --reveal: 900ms; }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--bar); }
html.menu-open { overflow: hidden; }
body {
  margin: 0; background: var(--card); color: var(--text);
  font-family: var(--font); font-size: 17px; line-height: 1.47; letter-spacing: -0.012em;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}
img { display: block; max-width: 100%; height: auto; }
picture { display: block; }
h1, h2, h3, p, figure { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--accent); color: var(--card); }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--accent); color: var(--card); padding: 12px 18px; border-radius: 980px; text-decoration: none; }
.skip:focus { top: 8px; }

/* ---------- Typographie ---------- */
.eyebrow { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; color: var(--accent); }
.title-xl { font-size: var(--t-xl); font-weight: 700; line-height: var(--t-xl-lh); letter-spacing: -0.04em; }
.title-l { font-size: var(--t-l); font-weight: 700; line-height: var(--t-l-lh); letter-spacing: -0.035em; text-wrap: balance; }
.title-m { font-size: var(--t-m); font-weight: 700; line-height: 1.14; letter-spacing: -0.028em; text-wrap: balance; }
.sub { font-size: var(--t-sub); font-weight: 400; line-height: 1.4; letter-spacing: -0.018em; color: var(--secondary); text-wrap: pretty; }
.br-m { display: inline; }
@media (min-width: 481px) { .br-m { display: none; } }

/* En-tête de section : centré, même largeur et même écart partout */
.head { max-width: 780px; margin: 0 auto var(--head-gap); text-align: center; display: grid; gap: 12px; justify-items: center; }
.head .sub { margin-top: 4px; }
.head-left { margin-left: 0; text-align: left; justify-items: start; }
@media (min-width: 768px) { .head { gap: 16px; } }

/* ---------- Boutons et liens ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 26px; border: 0; border-radius: 980px; background: var(--accent); color: var(--card);
  font: 400 17px/1 var(--font); letter-spacing: -0.01em; text-decoration: none; cursor: pointer;
  transition: background-color var(--fast) var(--ease), transform var(--fast) var(--ease);
}
.btn:hover { background: var(--accent-hover); }
.btn:active { background: var(--accent-pressed); transform: scale(.98); }
.btn-sm { min-height: 36px; padding: 0 16px; font-size: 14px; }
.btn-sm::after { content: ""; position: absolute; inset: -4px 0; }   /* zone tactile portée à 44 px */
.link {
  display: inline-flex; align-items: center; gap: 4px; min-height: 44px;
  color: var(--accent); font: inherit; font-size: 17px; text-decoration: none; background: none; border: 0; padding: 0; cursor: pointer;
}
.link span { transition: transform var(--fast) var(--ease); }
.link:hover { text-decoration: underline; text-underline-offset: 3px; }
.link:hover span { transform: translateX(3px); }

/* ---------- Barre de navigation ---------- */
.nav-bar {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  background: rgba(255, 255, 255, .8); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent; transition: background-color 400ms var(--ease), border-color var(--fast) var(--ease);
}
.nav-bar.is-scrolled { border-bottom-color: var(--separator); }
.nav-inner { height: var(--bar); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { position: relative; display: block; padding: 12px 0; }
.brand img { height: 20px; width: auto; transition: opacity var(--fast) var(--ease); }
.brand .logo-dark { position: absolute; top: 12px; left: 0; opacity: 0; }
.nav-bar.on-dark { background: rgba(17, 17, 19, .8); border-bottom-color: var(--d-separator); }
.nav-bar.on-dark .logo-light { opacity: 0; }
.nav-bar.on-dark .logo-dark { opacity: 1; }
.nav-bar.on-dark .menu-btn span { background: var(--d-text); }

/* Mobile : logo + bouton menu ; le menu s'ouvre en plein écran */
.nav-cta { display: none; }
.menu-btn { width: 44px; height: 44px; margin-right: -10px; display: inline-grid; place-content: center; gap: 7px; background: none; border: 0; cursor: pointer; border-radius: 10px; }
.menu-btn span { display: block; width: 18px; height: 1.5px; border-radius: 1px; background: var(--text); transition: transform 350ms var(--ease), background-color var(--fast); }
.menu-btn[aria-expanded="true"] span:first-child { transform: translateY(4.25px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-4.25px) rotate(-45deg); }
.nav { display: none; }
.nav.is-open {
  /* la barre a un backdrop-filter : elle sert de bloc conteneur, d'où absolute + hauteur explicite */
  display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; z-index: 99;
  height: calc(100vh - var(--bar)); height: calc(100dvh - var(--bar));
  padding: 16px var(--gutter) calc(32px + env(safe-area-inset-bottom)); background: var(--card); overflow-y: auto;
  animation: menuIn 400ms var(--ease);
}
.nav.is-open a:not(.btn) { display: flex; align-items: center; min-height: 56px; font-size: 28px; font-weight: 600; letter-spacing: -0.03em; text-decoration: none; color: var(--text); border-bottom: 1px solid var(--separator); }
.nav.is-open .nav-menu-cta { margin-top: 32px; align-self: stretch; }
.nav-bar.menu-open { background: var(--card); border-bottom-color: var(--separator); }
.nav-bar.menu-open .logo-light { opacity: 1; }
.nav-bar.menu-open .logo-dark { opacity: 0; }
.nav-bar.menu-open .menu-btn span { background: var(--text); }
@keyframes menuIn { from { opacity: 0; transform: translateY(-8px); } }

/* Tablette et plus : navigation en ligne, pas de menu */
@media (min-width: 768px) {
  .menu-btn, .nav-menu-cta { display: none; }
  .nav-cta { display: inline-flex; }
  .nav, .nav.is-open { display: flex; position: static; flex-direction: row; gap: 22px; padding: 0; background: none; animation: none; overflow: visible; }
  .nav a, .nav.is-open a:not(.btn) { display: flex; align-items: center; min-height: 44px; border: 0; font-size: 13px; font-weight: 400; letter-spacing: -0.01em; color: var(--text); opacity: .8; text-decoration: none; transition: opacity var(--fast) var(--ease); }
  .nav a:hover, .nav a.is-active { opacity: 1; }
  .nav-bar.on-dark .nav a { color: var(--d-text); }
  .nav .nav-menu-cta { display: none; }
  .nav a { white-space: nowrap; }
  .nav-cta { flex: none; white-space: nowrap; }
}
@media (min-width: 1025px) { .nav, .nav.is-open { gap: 32px; } }

/* ---------- Sections ---------- */
.section { padding: var(--section) 0; background: var(--card); }
.section.alt { background: var(--bg); }
.section.dark { background: var(--d-bg); color: var(--d-text); }
.dark .eyebrow { color: var(--d-link); }
.dark .sub { color: var(--d-secondary); }

/* ---------- 1. Hero ---------- */
.hero { padding-top: calc(var(--bar) + 56px); }
.hero .head { gap: 14px; }
.hero .eyebrow { font-size: 19px; color: var(--text); }
.actions { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-top: 20px; }
.actions .btn { min-width: 220px; }
.hero-media {
  margin: 0 auto; max-width: 560px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--separator);
  box-shadow: 0 2px 6px rgba(29, 29, 31, .04), 0 30px 60px -36px rgba(29, 29, 31, .3);
  scale: var(--s, 1); transform-origin: 50% 0; will-change: scale;
}
@media (min-width: 481px) {
  .hero { padding-top: calc(var(--bar) + 72px); }
  .hero .eyebrow { font-size: 21px; }
  .actions { flex-direction: row; justify-content: center; gap: 12px 28px; }
  .actions .btn { min-width: 0; }
}
@media (min-width: 768px) {
  .hero { padding-top: calc(var(--bar) + 88px); }
  .hero-media { max-width: none; }
}
@media (min-width: 1025px) {
  .hero { padding-top: calc(var(--bar) + 112px); }
  .hero .eyebrow { font-size: 24px; }
}

/* ---------- 2. Fonctionnalités ---------- */
/* Mobile : une colonne, cadrages verticaux */
.sticky { display: grid; }
.step { display: grid; gap: 10px; padding: 40px 0; border-top: 1px solid var(--d-separator); }
.step:first-child { border-top: 0; padding-top: 0; }
.step:last-child { padding-bottom: 0; }
.step-k { font-size: 17px; font-weight: 600; color: var(--d-link); }
.step-p { font-size: 17px; line-height: 1.47; color: var(--d-secondary); max-width: 36ch; }
.step-img { margin-top: 18px; border-radius: var(--radius-s); overflow: hidden; border: 1px solid var(--d-separator); max-width: 520px; }
.step-img img { width: 100%; }
.sticky-media { display: none; }

/* Tablette : chaque étape sur une ligne, texte à gauche, capture entière à droite */
@media (min-width: 768px) {
  .step { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-rows: 1fr auto auto auto 1fr; column-gap: 40px; row-gap: 12px; padding: 56px 0; }
  .step > .step-k { grid-column: 1; grid-row: 2; }
  .step > .title-m { grid-column: 1; grid-row: 3; }
  .step > .step-p { grid-column: 1; grid-row: 4; }
  .step-img { grid-column: 2; grid-row: 1 / -1; align-self: center; margin-top: 0; max-width: none; }
  .step-p { font-size: 18px; }
}

/* Ordinateur : section collante, le texte défile, la capture reste */
@media (min-width: 1025px) {
  .sticky { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 64px; }
  .step { display: grid; grid-template-columns: none; grid-template-rows: none; min-height: 72vh; align-content: center; gap: 14px; border-top: 0; padding: 0; opacity: .3; transition: opacity 500ms var(--ease); }
  .step > .step-k, .step > .title-m, .step > .step-p { grid-column: auto; grid-row: auto; }
  .step:first-child { min-height: 60vh; align-content: start; padding-top: 12vh; }
  .step.is-active { opacity: 1; }
  .step-p { font-size: 19px; line-height: 1.42; max-width: 34ch; }
  .step-img { display: none; }
  .sticky-media { display: block; position: sticky; top: calc(50vh - 202px); align-self: start; }
  .sticky-frame { position: relative; aspect-ratio: 2000 / 1190; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--d-separator); background: var(--d-card); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .8); }
  .frame-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.02); transition: opacity 600ms var(--ease), transform 900ms var(--ease); }
  .frame-img.is-active { opacity: 1; transform: none; }
  .sticky-dots { display: flex; justify-content: center; gap: 8px; margin-top: 24px; }
  .sticky-dots i { width: 8px; height: 8px; border-radius: 980px; background: var(--d-separator); transition: width 400ms var(--ease), background-color 400ms var(--ease); }
  .sticky-dots i.is-active { width: 24px; background: var(--d-text); }
}
.more { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: var(--head-gap); }
.more li { padding: 10px 16px; border: 1px solid var(--d-separator); border-radius: 980px; font-size: 15px; color: var(--d-secondary); transition: border-color var(--fast) var(--ease), color var(--fast) var(--ease); }
.more li:hover { border-color: var(--d-tertiary); color: var(--d-text); }

/* ---------- 3. Calculateurs ---------- */
.flow { display: grid; max-width: 520px; margin: 0 auto; }
.flow-col { display: grid; gap: 12px; }
.node { display: grid; gap: 6px; justify-items: start; padding: 22px; border-radius: var(--radius); background: var(--bg); border: 1px solid transparent; transition: transform var(--fast) var(--ease), box-shadow var(--fast) var(--ease); }
.node:hover { transform: translateY(-2px); box-shadow: 0 12px 30px -16px rgba(29, 29, 31, .25); }
.node-k { font-size: 13px; color: var(--secondary); }
.node b { font-size: 22px; font-weight: 700; letter-spacing: -0.03em; line-height: 1.15; }
.node-p { font-size: 15px; color: var(--secondary); line-height: 1.4; }
.node .pill { margin-top: 8px; }
.node-next { background: transparent; border: 1px dashed var(--control); }
.node-next b { color: var(--secondary); }
.node-core { background: var(--card); border: 2px solid var(--accent); }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 980px; background: var(--card); color: var(--secondary); font-size: 13px; font-weight: 600; }
.pill-ok { color: var(--ok-text); }
.pill-ok::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ok); }
.flow-line { position: relative; height: 36px; }
.flow-line i { position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; background: var(--control); }
.flow-line i::after { content: ""; position: absolute; left: -3px; top: 0; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); animation: dotY 2.4s var(--ease) infinite; }
@keyframes dotY { 0% { top: 0; opacity: 0; } 25%, 75% { opacity: 1; } 100% { top: calc(100% - 7px); opacity: 0; } }
@keyframes dotX { 0% { left: 0; opacity: 0; } 25%, 75% { opacity: 1; } 100% { left: calc(100% - 7px); opacity: 0; } }
@media (min-width: 768px) {
  .flow { max-width: 980px; grid-template-columns: minmax(0, 1fr) 32px minmax(0, 1fr) 32px minmax(0, 1fr); align-items: center; }
  .node { padding: 20px; }
  .node b { font-size: 20px; }
  .flow-line { height: 100%; }
  .flow-line i { left: 0; right: 0; top: 50%; bottom: auto; width: auto; height: 1px; }
  .flow-line i::after { top: -3px; left: 0; animation-name: dotX; }
}
@media (min-width: 1025px) {
  .flow { grid-template-columns: minmax(0, 1fr) 64px minmax(0, 1fr) 64px minmax(0, 1fr); }
  .node { padding: 24px; }
  .node b { font-size: 24px; }
}
.note { margin-top: calc(var(--head-gap) - 12px); text-align: center; color: var(--secondary); }

/* ---------- 4. Ingénieur ---------- */
.split { display: grid; gap: var(--head-gap); }
.split-text .head { margin-bottom: 32px; }
.chat { background: var(--card); border-radius: var(--radius); padding: 20px; display: grid; gap: 16px; box-shadow: 0 2px 6px rgba(29, 29, 31, .04); }
.chat-q { justify-self: end; max-width: 88%; padding: 12px 16px; border-radius: 18px 18px 4px 18px; background: var(--surface-2); font-size: 16px; }
.chat-a { border-left: 2px solid var(--accent); padding-left: 14px; font-size: 16px; line-height: 1.5; color: var(--text); }
.facts { margin-top: 24px; display: grid; }
.facts li { padding: 14px 0; border-top: 1px solid var(--separator); color: var(--secondary); }
.facts li:last-child { border-bottom: 1px solid var(--separator); }
.facts b { color: var(--text); font-weight: 600; }
.split-media { width: 100%; max-width: 360px; margin: 0 auto; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--separator); box-shadow: 0 2px 6px rgba(29, 29, 31, .04), 0 30px 60px -36px rgba(29, 29, 31, .3); }
.split-media img { width: 100%; max-height: 560px; object-fit: cover; object-position: top; }
@media (min-width: 481px) { .chat { padding: 24px; } }
@media (min-width: 768px) {
  .split { grid-template-columns: minmax(0, 1fr) minmax(0, 280px); gap: 48px; align-items: center; }
  .split-media { max-width: none; }
  .split-media img { max-height: 600px; }
}
@media (min-width: 1025px) {
  .split { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 96px; }
  .split-text .head { margin-bottom: 40px; }
  .chat { padding: 28px; gap: 18px; }
  .facts { margin-top: 32px; }
  .facts li { padding: 16px 0; }
  .split-media img { max-height: 640px; }
}

/* ---------- 5. Pour qui ---------- */
.audience { display: grid; gap: 48px; text-align: center; max-width: 980px; margin: 0 auto; }
.audience li { display: grid; gap: 10px; justify-items: center; }
.audience svg { width: 40px; height: 40px; fill: none; stroke: var(--accent); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 6px; }
.audience h3 { font-size: 22px; font-weight: 700; letter-spacing: -0.03em; }
.audience p { color: var(--secondary); max-width: 30ch; }
@media (min-width: 768px) {
  .audience { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
  .audience h3 { font-size: 24px; }
}

/* ---------- 6. Contact (Contact Form 21st.dev, adapté) ---------- */
.mail { display: inline-flex; align-items: center; gap: 8px; margin-top: 4px; }
.mail svg { width: 20px; height: 20px; flex: none; fill: none; stroke: var(--accent); stroke-width: 1.5; stroke-linejoin: round; }
.mail a { display: inline-flex; align-items: center; min-height: 44px; color: var(--accent); text-decoration: none; word-break: break-all; }
.mail a:hover { text-decoration: underline; text-underline-offset: 3px; }
.form-card { max-width: 780px; margin: 0 auto; background: var(--card); border-radius: 20px; padding: 22px; box-shadow: 0 2px 6px rgba(29, 29, 31, .04), 0 30px 60px -40px rgba(29, 29, 31, .25); }
.contact-form { display: grid; gap: 20px; transition: opacity 350ms var(--ease), transform 350ms var(--ease); }
.contact-form.is-leaving { opacity: 0; transform: translateY(-6px); }
.contact-form[hidden] { display: none; }
.field-row { display: grid; gap: 20px; }
.field { display: grid; gap: 8px; }
.field label { font-size: 15px; font-weight: 600; }
.field input, .field textarea {
  width: 100%; font: 400 17px/1.4 var(--font); color: var(--text); background: var(--card);
  border: 1px solid var(--control); border-radius: var(--radius-s); padding: 14px 16px; min-height: 52px;
  transition: border-color var(--fast) var(--ease), box-shadow var(--fast) var(--ease); -webkit-appearance: none; appearance: none;
}
.field textarea { resize: vertical; min-height: 160px; }
.field input::placeholder, .field textarea::placeholder { color: var(--secondary); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(0, 102, 214, .15); }
.field.is-invalid input, .field.is-invalid textarea { border-color: var(--alert); box-shadow: 0 0 0 4px rgba(232, 89, 12, .12); }
.field-err { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text); }
.field-err::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--alert); flex: none; }
.field-err:empty { display: none; }
.field-foot { display: flex; gap: 12px; }
.field-help { margin-left: auto; font-size: 13px; color: var(--secondary); font-variant-numeric: tabular-nums; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-foot { display: grid; gap: 14px; margin-top: 4px; }
.btn-submit { width: 100%; min-height: 52px; }
.form-legal { font-size: 13px; color: var(--secondary); text-align: center; }
.btn-submit .spinner { display: none; width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .4); border-top-color: var(--card); animation: spin .8s linear infinite; }
.btn-submit[aria-busy="true"] { pointer-events: none; background: var(--accent-pressed); }
.btn-submit[aria-busy="true"] .spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.form-status:empty { display: none; }
.form-status.is-error { padding: 14px 16px; border-radius: var(--radius-s); background: var(--alert-soft); color: var(--text); font-size: 15px; }
.form-success { display: grid; justify-items: center; text-align: center; gap: 12px; padding: 28px 0 12px; }
.form-success[hidden] { display: none; }
.form-success:focus { outline: none; }
.form-success h3 { font-size: 28px; font-weight: 700; letter-spacing: -0.03em; }
.form-success p { color: var(--secondary); margin-bottom: 4px; }
.check { width: 56px; height: 56px; fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.check circle { stroke: var(--separator); stroke-dasharray: 151; stroke-dashoffset: 151; animation: draw .7s var(--ease) forwards; }
.check path { stroke: var(--accent); stroke-dasharray: 36; stroke-dashoffset: 36; animation: draw .45s var(--ease) .45s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@media (min-width: 481px) { .form-card { padding: 32px; } }
@media (min-width: 768px) {
  .form-card { padding: 40px; border-radius: 22px; }
  .field-row { grid-template-columns: 1fr 1fr; }
  .form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
  .btn-submit { width: auto; min-width: 160px; min-height: 48px; }
  .form-legal { text-align: left; }
  .form-success h3 { font-size: 32px; }
}

/* Case de consentement */
.field .check-row { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; font-size: 15px; font-weight: 400; line-height: 1.45; color: var(--secondary); padding: 10px 0; }
.check-row input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check-box { flex: none; position: relative; width: 22px; height: 22px; margin-top: -1px; border: 1.5px solid var(--control); border-radius: 6px; background: var(--card); transition: background-color var(--fast) var(--ease), border-color var(--fast) var(--ease), box-shadow var(--fast) var(--ease); }
.check-box::after { content: ""; position: absolute; left: 7px; top: 3px; width: 5px; height: 10px; border: solid var(--card); border-width: 0 2px 2px 0; transform: rotate(45deg) scale(.6); opacity: 0; transition: opacity var(--fast) var(--ease), transform var(--fast) var(--ease); }
.check-row:hover .check-box { border-color: var(--secondary); }
.check-row input:checked + .check-box { background: var(--accent); border-color: var(--accent); }
.check-row input:checked + .check-box::after { opacity: 1; transform: rotate(45deg) scale(1); }
.check-row input:focus-visible + .check-box { box-shadow: 0 0 0 4px rgba(0, 102, 214, .15); border-color: var(--accent); }
.field-check.is-invalid .check-box { border-color: var(--alert); box-shadow: 0 0 0 4px rgba(232, 89, 12, .12); }
.check-text a { color: var(--accent); text-decoration: none; }
.check-text a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Pied de page ---------- */
.footer { background: var(--bg); border-top: 1px solid var(--separator); padding: 36px 0 calc(40px + env(safe-area-inset-bottom)); }
.footer-inner { display: grid; gap: 8px; justify-items: center; text-align: center; }
.footer img { height: 18px; width: auto; margin-bottom: 6px; }
.footer p { font-size: 13px; color: var(--secondary); }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 24px; margin-top: 8px; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; font-size: 13px; color: var(--secondary); text-decoration: none; transition: color var(--fast) var(--ease); }
.footer-links a:hover, .footer-links a[aria-current="page"] { color: var(--text); }
.footer-copy { margin-top: 4px; padding-top: 16px; border-top: 1px solid var(--separator); width: 100%; }

/* ---------- Pages légales ---------- */
.legal { padding-top: calc(var(--bar) + 56px); }
.legal .head { max-width: 760px; margin-bottom: 40px; }
.legal-body { max-width: 760px; display: grid; gap: 40px; }
.legal-body section { display: grid; gap: 12px; padding-top: 32px; border-top: 1px solid var(--separator); }
.legal-body h2 { font-size: 22px; font-weight: 700; letter-spacing: -0.025em; line-height: 1.2; }
.legal-body p, .legal-body li { color: var(--secondary); line-height: 1.6; }
.legal-body b { color: var(--text); font-weight: 600; }
.legal-body a { color: var(--accent); text-decoration: none; overflow-wrap: anywhere; }
.legal-body a:hover { text-decoration: underline; text-underline-offset: 3px; }
.legal-list { margin: 0; display: grid; }
.legal-list div { display: grid; gap: 2px; padding: 12px 0; border-bottom: 1px solid var(--separator); }
.legal-list div:last-child { border-bottom: 0; }
.legal-list dt { font-size: 13px; color: var(--secondary); }
.legal-list dd { margin: 0; color: var(--text); }
.legal-bullets { display: grid; gap: 6px; padding-left: 20px; list-style: disc; }
.ph { color: var(--text); background: var(--alert-soft); border-radius: 4px; padding: 1px 6px; }
.page-legal .nav-inner .link { font-size: 15px; }
@media (min-width: 768px) {
  .legal { padding-top: calc(var(--bar) + 88px); }
  .legal .head { margin-bottom: 56px; }
  .legal-list div { grid-template-columns: 220px 1fr; gap: 24px; align-items: baseline; }
  .legal-list dt { font-size: 15px; }
}

/* ---------- Mouvement ---------- */
.js .load { opacity: 0; transform: translateY(var(--rise)); animation: up 1s var(--ease) forwards; animation-delay: calc(var(--i, 0) * 100ms + 80ms); }
.js .hero-media.load { transform: translateY(calc(var(--rise) * 1.5)); animation-duration: 1.2s; }
@keyframes up { to { opacity: 1; transform: none; } }
.js [data-reveal] { opacity: 0; transform: translateY(var(--rise)); transition: opacity var(--reveal) var(--ease), transform var(--reveal) var(--ease); transition-delay: calc(var(--d, 0) * 90ms); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js .load, .js [data-reveal] { opacity: 1; transform: none; animation: none; }
  .hero-media { scale: 1 !important; }
  .flow-line i::after { animation: none; opacity: 0; }
}
