/* ─────────────────────────────────────────────────────────────
   Design tokens — agence IA. Inspiré x.ai (dark canvas + pills
   outline + tracking négatif), adapté avec accent rouge signal.
   ───────────────────────────────────────────────────────────── */
:root {
  color-scheme: dark;

  /* Surfaces */
  --canvas: #0a0a0a;
  --canvas-soft: #131316;
  --canvas-card: #16161a;
  --canvas-mid: #1f2024;
  --hairline: rgba(255, 255, 255, 0.08);
  --hairline-strong: rgba(255, 255, 255, 0.18);
  --surface-glass: rgba(255, 255, 255, 0.02);
  --surface-glass-hover: rgba(255, 255, 255, 0.06);
  --nav-hover: rgba(255, 255, 255, 0.05);
  --nav-shadow: 0 4px 20px -8px rgba(0, 0, 0, 0.4);
  --nav-shadow-scrolled: 0 12px 40px -12px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  --card-shadow: none;
  --row-muted: rgba(255, 255, 255, 0.03);
  --grain-dot: rgba(255, 255, 255, 0.6);
  --hero-subtext-shadow: 0 1px 12px rgba(0, 0, 0, 0.7), 0 0 6px rgba(0, 0, 0, 0.5);
  --scroll-thumb: rgba(255, 255, 255, 0.08);
  --scroll-thumb-hover: rgba(255, 255, 255, 0.16);

  /* Ink */
  --ink: #ffffff;
  --body: #dadbdf;
  --body-mid: #7d8187;
  --body-dim: #4d5157;

  /* Accent */
  --accent: #ff3324;
  --accent-soft: #ff6b5e;
  --accent-deep: #c61d10;
  --accent-glow: rgba(255, 51, 36, 0.45);

  /* Typography — Editorial Luxury : serif a fort caractere + grotesque moderne */
  --font-display: "Fraunces", "Times New Roman", Georgia, serif;
  --font-body: "Geist", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* Shape — look "tres arrondi" facon agence premium */
  --radius-sm: 16px;
  --radius-md: 22px;
  --radius-lg: 28px;
  --radius-pill: 9999px;

  /* Spacing scale (4px base) */
  --s-1: 4px;   --s-2: 8px;   --s-3: 12px;
  --s-4: 16px;  --s-5: 24px;  --s-6: 32px;
  --s-7: 48px;  --s-8: 64px;  --s-9: 96px;
  --s-10: 128px;

  /* Motion */
  --ease-reveal: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-soft: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-ui: cubic-bezier(0.2, 0.7, 0.2, 1);
  --reveal-y: 14px;
  --reveal-duration: 720ms;
  --reveal-card-y: 20px;
  --reveal-card-duration: 860ms;
  --reveal-delay: 0ms;
}

/* Light-mode override applied via [data-theme="light"] on <html>
   DA "agence premium" inspiree Naiom : fond blanc, ink quasi-noir,
   rouge vif sur CTA + rouge doux (accent-wash) en fonds de cartes. */
html[data-theme="light"] {
  color-scheme: light;
  /* Editorial Luxury — fond creme chaud, gris teintes chauds, une seule famille */
  --canvas: #f8f5ef;          /* creme principal (warm) */
  --canvas-soft: #f2eee5;     /* creme legerement plus profond */
  --canvas-card: #fffdf8;     /* carte : creme tres clair, pas blanc pur */
  --canvas-mid: #ebe6da;
  --hairline: rgba(45, 38, 28, 0.10);
  --hairline-strong: rgba(45, 38, 28, 0.18);
  --surface-glass: rgba(45, 38, 28, 0.022);
  --surface-glass-hover: rgba(45, 38, 28, 0.05);
  --nav-hover: rgba(45, 38, 28, 0.045);
  /* ombres TEINTEES chaudes (pas du noir pur) */
  --nav-shadow: 0 10px 30px -20px rgba(60, 48, 30, 0.30), inset 0 1px 0 rgba(255, 255, 255, 0.7);
  --nav-shadow-scrolled: 0 20px 50px -28px rgba(60, 48, 30, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.75);
  --card-shadow: 0 30px 60px -42px rgba(60, 48, 30, 0.28), 0 2px 6px -4px rgba(60, 48, 30, 0.10);
  --row-muted: rgba(45, 38, 28, 0.035);
  --grain-dot: rgba(60, 48, 30, 0.5);
  --hero-subtext-shadow: none;
  --scroll-thumb: rgba(45, 38, 28, 0.14);
  --scroll-thumb-hover: rgba(45, 38, 28, 0.24);
  --accent: #d4000b;          /* rouge legerement desature (sat < 80%) */
  --accent-soft: #e8332c;
  --accent-deep: #a8000a;
  --accent-glow: rgba(212, 0, 11, 0.14);
  /* Rouge doux chaud — fonds de cartes a mettre en avant */
  --accent-wash: #f7e7e2;
  --accent-wash-strong: #f2d6cf;
  --accent-tint: rgba(212, 0, 11, 0.05);
  --ink: #211b14;             /* presque-noir chaud, pas #000 */
  --body: #564d40;            /* brun-gris chaud */
  --body-mid: #8a8175;
  --body-dim: #b5ac9e;
}

/* Dark mode garde un wash neutre (au cas ou un composant l'utilise) */
:root {
  --accent-wash: rgba(255, 51, 36, 0.08);
  --accent-wash-strong: rgba(255, 51, 36, 0.14);
  --accent-tint: rgba(255, 51, 36, 0.06);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: auto;
}

/* (Grain retiré — causait du tremblement/jank sur mobile) */

body {
  min-height: 100vh;
  overflow-x: hidden;
  transition: background 0.38s var(--ease-ui), color 0.38s var(--ease-ui);
}

a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: transparent; color: inherit; }

/* ── Type scale — titres en Fraunces (serif editorial, opsz haut) ── */
.t-display-xl { font-family: var(--font-display); font-size: clamp(44px, 6vw, 88px); line-height: 1.0;  letter-spacing: -0.02em; font-weight: 500; font-optical-sizing: auto; }
.t-display-lg { font-family: var(--font-display); font-size: clamp(34px, 4.6vw, 64px); line-height: 1.04; letter-spacing: -0.018em; font-weight: 500; font-optical-sizing: auto; }
.t-display-md { font-family: var(--font-display); font-size: clamp(28px, 3.4vw, 46px); line-height: 1.08; letter-spacing: -0.015em; font-weight: 500; font-optical-sizing: auto; }
.t-display-sm { font-family: var(--font-display); font-size: clamp(23px, 2.4vw, 32px); line-height: 1.12; letter-spacing: -0.01em;  font-weight: 500; }
.t-display-xs { font-family: var(--font-display); font-size: 20px; line-height: 1.35; letter-spacing: -0.005em; font-weight: 500; }
.t-body-lg    { font-family: var(--font-body); font-size: 17px;   line-height: 1.62; color: var(--body); font-weight: 400; }
.t-body       { font-family: var(--font-body); font-size: 15.5px; line-height: 1.62; color: var(--body); font-weight: 400; }
.t-body-sm    { font-family: var(--font-body); font-size: 14px;   line-height: 1.55; color: var(--body); font-weight: 400; }

.t-mono       { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; line-height: 1.4; color: var(--body-mid); font-weight: 500; }
.t-mono-sm    { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase; line-height: 1.4; color: var(--body-mid); font-weight: 500; }

/* ── Layout ──────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}

.section {
  position: relative;
  padding: clamp(56px, 6.5vw, 96px) 0;
  border-top: 1px solid var(--hairline);
  scroll-margin-top: 96px;
}
.section--noborder { border-top: 0; }
.section--tight   { padding: clamp(36px, 4vw, 56px) 0; }

.section-audit-cta {
  display: flex;
  justify-content: center;
  margin-top: clamp(40px, 5vw, 68px);
}

.section-audit-cta .cta-island {
  min-height: 54px;
}

/* ── Pill button (the universal interactive shape) ───────────── */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 18px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--hairline-strong);
  background: var(--surface-glass);
  color: var(--ink);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: -0.005em;
  white-space: nowrap;
  transition:
    background 0.18s var(--ease-ui),
    border-color 0.18s var(--ease-ui),
    transform 0.18s var(--ease-ui),
    box-shadow 0.18s var(--ease-ui);
}
.pill:hover {
  background: var(--surface-glass-hover);
  border-color: var(--hairline-strong);
}

.pill--sm  { height: 32px; padding: 0 14px; font-size: 13px; }
.pill--lg  { height: 48px; padding: 0 24px; font-size: 15px; }

.pill--primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 0 0 1px var(--accent), 0 0 32px -8px var(--accent-glow);
}
.pill--primary:hover {
  background: var(--accent-soft);
  border-color: var(--accent-soft);
  box-shadow: 0 0 0 1px var(--accent-soft), 0 0 48px -6px var(--accent-glow);
}

.pill--ghost { border-color: transparent; }
.pill--ghost:hover { background: var(--nav-hover); }

/* ── CTA Island — bouton premium avec icone nested (button-in-button) ── */
.cta-island {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  height: 54px;
  padding: 0 8px 0 26px;
  border-radius: 9999px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
  white-space: nowrap;
  box-shadow: 0 10px 30px -10px var(--accent-glow), inset 0 1px 0 rgba(255,255,255,0.22);
  transition: transform 0.4s cubic-bezier(0.32,0.72,0,1), box-shadow 0.4s cubic-bezier(0.32,0.72,0,1), background 0.3s var(--ease-ui);
}
.cta-island:hover { background: var(--accent-deep); box-shadow: 0 16px 40px -10px var(--accent-glow), inset 0 1px 0 rgba(255,255,255,0.25); }
.cta-island:active { transform: scale(0.97); }
.cta-island-icon {
  display: inline-grid; place-items: center;
  width: 38px; height: 38px; border-radius: 9999px;
  background: rgba(255,255,255,0.16);
  transition: transform 0.4s cubic-bezier(0.32,0.72,0,1), background 0.3s var(--ease-ui);
}
.cta-island:hover .cta-island-icon { transform: translate(2px,-2px) scale(1.06); background: rgba(255,255,255,0.24); }

/* CTA texte secondaire (lien souligne anime) */
.cta-text {
  display: inline-flex; align-items: center; gap: 7px;
  height: 54px; padding: 0 18px;
  font-family: var(--font-body); font-size: 15px; font-weight: 500;
  color: var(--ink);
  position: relative;
  transition: color 0.2s var(--ease-ui);
}
.cta-text::after {
  content: ""; position: absolute; left: 18px; right: 18px; bottom: 16px;
  height: 1px; background: var(--ink);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.32,0.72,0,1);
}
.cta-text:hover { color: var(--accent); }
.cta-text:hover::after { transform: scaleX(1); background: var(--accent); }

/* CTA secondaire "ghost" — meme poids que l'island, bordure fine + fond transparent */
.cta-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  height: 54px; padding: 0 28px;
  border-radius: 9999px;
  border: 1px solid var(--hairline-strong);
  background: transparent;
  font-family: var(--font-body); font-size: 15px; font-weight: 500;
  letter-spacing: -0.01em; white-space: nowrap;
  color: var(--ink);
  transition: border-color 0.25s var(--ease-ui), color 0.25s var(--ease-ui), background 0.25s var(--ease-ui), transform 0.3s cubic-bezier(0.32,0.72,0,1);
}
.cta-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-tint);
  transform: translateY(-1px);
}
.cta-ghost:active { transform: scale(0.98); }

/* ── Mockups visuels services (fenetres "vrais exemples") ───────── */
.mock { display: flex; align-items: center; justify-content: center; }
.mock-win {
  width: 100%; max-width: 380px;
  background: var(--canvas-card);
  border: 1px solid var(--hairline);
  border-radius: 18px;
  box-shadow: 0 24px 50px -36px rgba(60,48,30,0.34);
  overflow: hidden;
}
.mock-bar {
  display: flex; align-items: center; gap: 7px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--hairline);
  background: var(--canvas-soft);
}
.mock-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); }
.mock-bar-title { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.04em; color: var(--body-mid); margin-left: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mock-live { margin-left: auto; display: inline-flex; align-items: center; gap: 5px; font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.1em; color: var(--accent); white-space: nowrap; }
.mock-live-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent-glow); animation: livePulse 1.4s ease-in-out infinite; }
.mock-avatar { width: 22px; height: 22px; border-radius: 8px; background: var(--accent-wash); color: var(--accent); display: grid; place-items: center; font-family: var(--font-display); font-size: 12px; font-weight: 600; }
.mock-body { padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.mock-row { display: flex; align-items: center; gap: 9px; padding: 9px 11px; border-radius: 10px; background: var(--surface-glass); animation: taskIn 0.6s var(--ease-reveal) both; }
.mock-time { font-family: var(--font-mono); font-size: 10px; color: var(--body-mid); }
.mock-txt { font-size: 13px; color: var(--ink); line-height: 1.35; }
.mock-check { margin-left: auto; color: var(--accent); font-size: 13px; }
/* chat */
.mock-chat { padding: 16px; display: flex; flex-direction: column; gap: 9px; }
.mock-bubble { max-width: 82%; padding: 9px 13px; border-radius: 15px; font-size: 13px; line-height: 1.4; animation: taskIn 0.5s var(--ease-reveal) both; }
.mock-bubble-in { align-self: flex-start; background: var(--surface-glass); color: var(--ink); border-bottom-left-radius: 5px; }
.mock-bubble-out { align-self: flex-end; background: var(--accent); color: #fff; border-bottom-right-radius: 5px; }
.mock-typing { align-self: flex-start; display: inline-flex; gap: 4px; padding: 10px 13px; border-radius: 15px; background: var(--surface-glass); }
.mock-typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--body-mid); animation: livePulse 1.2s ease-in-out infinite; }
.mock-typing span:nth-child(2) { animation-delay: 0.2s; }
.mock-typing span:nth-child(3) { animation-delay: 0.4s; }
/* progress */
.mock-pct { font-family: var(--font-mono); font-size: 11px; color: var(--accent); }
.mock-track { height: 7px; border-radius: 9999px; background: var(--surface-glass); overflow: hidden; }
.mock-fill { height: 100%; border-radius: 9999px; background: var(--accent); }
/* score */
.mock-score { text-align: center; padding: 8px 0 14px; border-bottom: 1px solid var(--hairline); margin-bottom: 6px; }
.mock-score-num { font-family: var(--font-display); font-size: 38px; font-weight: 500; color: var(--accent); line-height: 1; }
.mock-score-num span { font-size: 14px; color: var(--body-mid); margin-left: 4px; }
.mock-score-lbl { font-size: 12px; color: var(--body-mid); margin-top: 4px; }
.mock-bars { display: inline-flex; gap: 3px; margin-right: 10px; }
.mock-bars i { width: 5px; height: 14px; border-radius: 2px; background: var(--accent); display: inline-block; }
.mock-val { font-family: var(--font-mono); font-size: 11px; color: var(--ink); white-space: nowrap; }

/* ── Mockups Process "Notre méthode" ────────────────────────────── */
.pmock {
  width: 100%; max-width: 320px; margin: 0 auto;
  background: var(--canvas-card); border: 1px solid var(--hairline);
  border-radius: 16px; padding: 16px;
  display: flex; flex-direction: column; gap: 9px;
  box-shadow: 0 18px 40px -32px rgba(60,48,30,0.3);
}
.pmock-head { display: flex; align-items: center; gap: 7px; font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.14em; color: var(--body-mid); }
.pmock-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent-glow); animation: livePulse 1.4s ease-in-out infinite; }
.pmock-score { padding: 6px 0 10px; border-bottom: 1px solid var(--hairline); }
.pmock-score b { font-family: var(--font-display); font-size: 30px; font-weight: 500; color: var(--accent); }
.pmock-score span { font-size: 12px; color: var(--body-mid); margin-left: 6px; }
.pmock-line { display: flex; align-items: center; justify-content: space-between; font-size: 13px; color: var(--ink); padding: 6px 0; border-bottom: 1px solid var(--hairline); }
.pmock-line:last-child { border-bottom: 0; }
.pmock-v { font-family: var(--font-mono); font-size: 11.5px; color: var(--accent); }
.pmock-tool { gap: 10px; justify-content: flex-start; animation: taskIn 0.6s var(--ease-reveal) both; }
.pmock-tool-ic { width: 24px; height: 24px; border-radius: 8px; background: var(--accent-wash); color: var(--accent); display: grid; place-items: center; font-family: var(--font-display); font-size: 12px; font-weight: 600; }
.pmock-ok { margin-left: auto; font-family: var(--font-mono); font-size: 10px; color: var(--accent); }
.pmock-chart { display: flex; align-items: flex-end; gap: 6px; height: 80px; padding: 6px 0; }
.pmock-bar { flex: 1; border-radius: 5px 5px 0 0; min-height: 8px; }
.pmock-step { display: flex; align-items: center; gap: 10px; font-size: 13px; padding: 6px 0; border-bottom: 1px solid var(--hairline); }
.pmock-step:last-of-type { border-bottom: 0; }
.pmock-step-ic { flex: 0 0 20px; height: 20px; border-radius: 7px; display: grid; place-items: center; font-family: var(--font-mono); font-size: 11px; background: var(--surface-glass); color: var(--body-mid); border: 1px solid var(--hairline); }
.pmock-step-ic.done { background: var(--accent-wash); color: var(--accent); border-color: color-mix(in oklab, var(--accent) 26%, transparent); }

/* ── Card ────────────────────────────────────────────────────── */
.card {
  background: var(--canvas-card);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-sm);
  padding: 24px;
  box-shadow: var(--card-shadow);
}

/* ── Eyebrow with the red dot ────────────────────────────────── */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--body);
  white-space: nowrap;
}
.eyebrow::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent-glow);
  animation: pulse-dot 2.4s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.55; transform: scale(0.75); }
}

/* ── Hairline divider ────────────────────────────────────────── */
.hr { border: 0; border-top: 1px solid var(--hairline); margin: 0; }

/* ── Mono ticker ─────────────────────────────────────────────── */
.ticker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--body-mid);
}
.ticker .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent-glow);
}

/* ── Focus ring ──────────────────────────────────────────────── */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* ── Scrollbar (subtle dark) ─────────────────────────────────── */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--scroll-thumb); border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: var(--scroll-thumb-hover); }

/* ── Reveal on scroll — fluid, calm, GPU-only ─────────────────── */
.reveal {
  opacity: 0.01;
  transform: translate3d(0, var(--reveal-y), 0);
  transition:
    opacity var(--reveal-duration) var(--ease-reveal) var(--reveal-delay),
    transform var(--reveal-duration) var(--ease-reveal) var(--reveal-delay);
  will-change: opacity, transform;
}
.reveal.in {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  will-change: auto;
}

.reveal.interactive-card {
  opacity: 0.08;
  transform: translate3d(0, var(--reveal-card-y), 0);
  transition:
    opacity calc(var(--reveal-card-duration) * 0.78) ease-out var(--reveal-delay),
    transform var(--reveal-card-duration) var(--ease-reveal) var(--reveal-delay),
    border-color 0.28s var(--ease-ui),
    box-shadow 0.36s var(--ease-ui);
}
.reveal.interactive-card.in {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

[data-stagger] > .reveal:nth-child(1) { transition-delay: 0ms; }
[data-stagger] > .reveal:nth-child(2) { transition-delay: 55ms; }
[data-stagger] > .reveal:nth-child(3) { transition-delay: 110ms; }
[data-stagger] > .reveal:nth-child(4) { transition-delay: 165ms; }
[data-stagger] > .reveal:nth-child(5) { transition-delay: 220ms; }
[data-stagger] > .reveal:nth-child(6) { transition-delay: 275ms; }

/* ── Hero fade-in (CSS-only, GPU-only) ───────────────────────── */
@keyframes heroFade {
  from { opacity: 0; transform: translate3d(0, 18px, 0); }
  to   { opacity: 1; transform: translate3d(0, 0, 0); }
}
.hero-fade   { animation: heroFade 620ms var(--ease-out-soft) both; will-change: opacity, transform; }
.hero-fade-1 { animation-delay: 90ms; }
.hero-fade-2 { animation-delay: 220ms; }
.hero-fade-3 { animation-delay: 350ms; }

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    transition-delay: 0ms !important;
  }

  .reveal,
  .hero-fade {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
    animation: none;
  }
}

/* ── Mobile-specific polish ──────────────────────────────────── */
@media (max-width: 880px) {
  /* MOBILE : scroll natif, animations courtes. */
  html { scroll-behavior: auto; }

  .container { padding: 0 20px; }
  .section {
    padding: clamp(48px, 9vw, 72px) 0;
    scroll-margin-top: 92px;
  }

  /* Bigger tap targets */
  .pill { height: 46px; padding: 0 18px; font-size: 14px; }
  .pill--sm { height: 36px; padding: 0 14px; font-size: 13px; }
  .pill--lg { height: 52px; padding: 0 24px; font-size: 15px; }

  /* Headlines tighter on mobile */
  .t-display-xl { font-size: clamp(34px, 9vw, 52px); line-height: 1.08; letter-spacing: -0.03em; }
  .t-display-lg { font-size: clamp(28px, 7vw, 40px); letter-spacing: -0.028em; line-height: 1.1; }
  .t-display-md { font-size: clamp(24px, 6vw, 32px); letter-spacing: -0.025em; line-height: 1.15; }
  .t-display-sm { font-size: clamp(20px, 5vw, 26px); letter-spacing: -0.02em; }
  .t-body-lg    { font-size: 15.5px; line-height: 1.55; }
  .t-body       { font-size: 14.5px; }

  /* Cards: more breathable padding on mobile */
  .card,
  .interactive-card { padding: 20px 18px; }

  /* Bento featured chat preview — smaller, doesn't dominate */
  .bento-featured > div:last-child { min-height: 220px !important; }

  /* Booking left column needs less side padding */
  #booking .container { padding: 0 16px; }

  /* Reveal: less travel and less waiting on touch screens */
  .reveal {
    --reveal-y: 10px;
    --reveal-duration: 620ms;
    --reveal-card-y: 14px;
    --reveal-card-duration: 720ms;
  }
  .reveal.in { transform: translate3d(0, 0, 0); }

  [data-stagger] > .reveal:nth-child(1) { transition-delay: 0ms; }
  [data-stagger] > .reveal:nth-child(2) { transition-delay: 0ms; }
  [data-stagger] > .reveal:nth-child(3) { transition-delay: 0ms; }
  [data-stagger] > .reveal:nth-child(4) { transition-delay: 0ms; }
  [data-stagger] > .reveal:nth-child(5) { transition-delay: 0ms; }
  [data-stagger] > .reveal:nth-child(6) { transition-delay: 0ms; }

  /* Tap feedback on interactive cards */
  .interactive-card:not(.reveal) { transition: transform 0.18s var(--ease-ui), border-color 0.3s var(--ease-ui); }
  .interactive-card:active { transform: scale(0.985); }

  /* Disable spotlight effect on touch */
  .interactive-card::before { display: none; }
}

@media (max-width: 520px) {
  .container { padding: 0 16px; }
  .section { padding: 44px 0; }

  .pill--lg { height: 50px; padding: 0 22px; font-size: 15px; }

  .t-display-xl { font-size: clamp(30px, 10vw, 42px); line-height: 1.1; }

  .card,
  .interactive-card { padding: 18px 16px; }

  .section-audit-cta {
    justify-content: stretch;
    margin-top: 34px;
  }

  .section-audit-cta .cta-island {
    width: 100%;
    justify-content: space-between;
    padding-left: 22px;
  }

  /* Hero on phones — hauteur AUTO (pas de svh/vh : evite le saut quand la
     barre d'URL iOS apparait/disparait au scroll). */
  section[data-screen-label="01 Hero"] {
    min-height: 0 !important;
    padding-top: 130px !important;
    padding-bottom: 56px !important;
    display: block !important;
  }

  /* Process timeline on phones — generous spacing marker → content */
  .process-timeline { padding-left: 60px !important; gap: 22px !important; }
  .process-line { left: 19px !important; }
  .process-marker { left: -60px !important; width: 38px !important; height: 38px !important; font-size: 11px !important; top: 2px !important; }
  .process-visual { aspect-ratio: 1.5 / 1 !important; padding: 12px !important; }
}

/* Touch devices specifically */
@media (hover: none) {
  .pill:active { transform: scale(0.97); }
}

/* ── Marquee (logos) ─────────────────────────────────────────── */
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.marquee {
  display: flex;
  width: max-content;
  animation: marquee 38s linear infinite;
}
.marquee:hover { animation-play-state: paused; }

/* ── Premium card spotlight (driven by --mx/--my from JS) ────── */
.interactive-card {
  position: relative;
  isolation: isolate;
  box-shadow: var(--card-shadow);
}
.process-visual,
.cal-embed-card {
  box-shadow: var(--card-shadow);
}
.interactive-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    320px circle at var(--mx, 50%) var(--my, 50%),
    var(--accent-glow),
    transparent 55%
  );
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 0;
}
.interactive-card:hover::before { opacity: 0.5; }
.interactive-card > * { position: relative; z-index: 1; }

/* ── Subtle grain overlay on hero ────────────────────────────── */
.grain {
  position: absolute; inset: 0;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image:
    radial-gradient(var(--grain-dot) 1px, transparent 1px);
  background-size: 3px 3px;
}

/* ── Theme toggle ────────────────────────────────────────────── */
.theme-toggle {
  position: relative;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  display: inline-grid;
  place-items: center;
  border-radius: var(--radius-pill);
  border: 1px solid var(--hairline);
  background: var(--surface-glass);
  color: var(--body);
  overflow: hidden;
  transition:
    color 0.18s var(--ease-ui),
    background 0.18s var(--ease-ui),
    border-color 0.18s var(--ease-ui),
    transform 0.18s var(--ease-ui);
}
.theme-toggle:hover {
  color: var(--ink);
  background: var(--nav-hover);
  border-color: var(--hairline-strong);
}
.theme-toggle:active { transform: scale(0.96); }
.theme-toggle svg {
  position: absolute;
  width: 16px;
  height: 16px;
  transition: opacity 0.22s var(--ease-ui), transform 0.22s var(--ease-ui);
}
.theme-toggle .theme-toggle-sun {
  opacity: 0;
  transform: translateY(8px) rotate(-28deg) scale(0.78);
}
.theme-toggle .theme-toggle-moon {
  opacity: 1;
  transform: translateY(0) rotate(0) scale(1);
}
html[data-theme="light"] .theme-toggle {
  color: var(--body);
  background: rgba(255, 255, 255, 0.72);
  border-color: var(--hairline);
}
html[data-theme="light"] .theme-toggle:hover {
  color: var(--accent-deep);
  border-color: color-mix(in oklab, var(--accent) 18%, var(--hairline));
}
html[data-theme="light"] .theme-toggle .theme-toggle-sun {
  opacity: 1;
  transform: translateY(0) rotate(0) scale(1);
}
html[data-theme="light"] .theme-toggle .theme-toggle-moon {
  opacity: 0;
  transform: translateY(-8px) rotate(28deg) scale(0.78);
}
