/* Pascaline IA — landing page.
 * Palette: the house brand's own values (v2: navy ink and brand blue), copied
 * from the product's `frontend/public/brand/theme.css`; neutrals from its
 * `src/styles/tokens.css`. Fonts are the brand's two faces, self-hosted — Geist
 * for text, Bricolage Grotesque for display sizes — so the page makes no
 * third-party request. Latin subset only: it covers the French copy. */

@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/geist/geist-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/geist/geist-latin-500-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/geist/geist-latin-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/bricolage-grotesque/bricolage-grotesque-latin-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("/assets/fonts/bricolage-grotesque/bricolage-grotesque-latin-800-normal.woff2") format("woff2");
}

:root {
  --ink: #12273c;
  --ink-hover: #1d3a55;
  --blue: #3189fb;
  --blue-hover: #2a7fef;
  --blue-soft: #a9cdfd;
  --blue-subtle: #e6f1fe;
  --blue-ink: #2260b0;
  --on-blue: #0a1a21;
  --success: #1daf5a;
  --warning: #ec9c13;
  --danger: #d04339;
  --thinking: #6e6c58; /* the olive-grey « thinking » accent */

  --text: #1e1e1d;
  --muted: #555554;
  --line: #ededec;
  --bg: #ffffff;
  --bg-soft: #fafaf9;

  --radius: 20px;     /* cards, figures */
  --radius-lg: 18px;  /* mocks */
  --radius-md: 9px;   /* chips, inputs */
  --radius-sm: 6px;   /* tags */
  --shadow-container: 0 30px 60px -30px rgba(18, 39, 60, .35), 0 2px 6px rgba(18, 39, 60, .06);

  /* Motion, from the product's motion/tokens.ts (site.js has the same numbers):
   * power2.out for entrances, power2.inOut for state changes. */
  --ease-out: cubic-bezier(.22, .61, .36, 1);
  --ease-in-out: cubic-bezier(.45, 0, .55, 1);
  --dur-1: .18s;
  --dur-2: .32s;
  --dur-3: .55s;
  --rise: 12px;
  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Bricolage Grotesque", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
/* A soft crossfade between the site's pages. */
@media (prefers-reduced-motion: no-preference) { @view-transition { navigation: auto; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: var(--ink); }
h1, h2, h3 { color: var(--ink); font-weight: 600; line-height: 1.2; margin: 0 0 .6em; }
h1, h2 { font-family: var(--font-display); }
h1 { font-size: clamp(2.2rem, 4.6vw, 3.4rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); letter-spacing: -.015em; max-width: 24ch; }
h3 { font-size: 1.12rem; }
p { margin: 0 0 1em; }

.wrap { width: min(1120px, 100% - 48px); margin-inline: auto; }

.skip {
  position: absolute; left: -9999px; top: 8px;
  background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100;
}
.skip:focus { left: 8px; }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow var(--dur-2) var(--ease-out);
}
.site-header.is-scrolled { box-shadow: 0 1px 0 var(--line), 0 6px 18px -12px rgba(18, 39, 60, .25); }
.header-row { display: flex; align-items: center; gap: 32px; height: 72px; }
.brand img { height: 32px; width: auto; }
.nav { display: flex; gap: 28px; list-style: none; margin: 0 0 0 auto; padding: 0; }
.nav a { text-decoration: none; color: var(--muted); font-weight: 500; font-size: .95rem; }
.nav a:hover { color: var(--ink); }
.ml-auto { margin-left: auto; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 22px; border-radius: 10px;
  font-weight: 600; font-size: .98rem; text-decoration: none;
  border: 1.5px solid transparent;
  white-space: nowrap;
  transition: background-color var(--dur-1), border-color var(--dur-1), color var(--dur-1);
}
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--ink-hover); }
/* Hover moves a sheen across the button, once. */
@property --x { syntax: "<percentage>"; inherits: false; initial-value: -60%; }
.btn-primary {
  background-image: linear-gradient(105deg, transparent calc(var(--x) - 20%), rgba(255, 255, 255, .16) var(--x), transparent calc(var(--x) + 20%));
}
@media (prefers-reduced-motion: no-preference) {
  .btn-primary:hover { --x: 160%; transition: background-color var(--dur-1), --x .9s var(--ease-in-out); }
}
.btn-ghost { border-color: var(--line); color: var(--ink); background: #fff; }
.btn-ghost:hover { border-color: var(--blue); }
.btn-sm { padding: 9px 16px; font-size: .9rem; }
.btn-lg { padding: 16px 28px; font-size: 1.08rem; }

.eyebrow {
  color: var(--blue-ink); font-weight: 600; font-size: .82rem;
  text-transform: uppercase; letter-spacing: .1em; margin-bottom: .9em;
}
.eyebrow-light { color: var(--blue-soft); }
.accent { color: var(--blue-ink); }
/* Only at h1/h2 size: --blue on white is about 3.4:1, enough for large text only. */
:is(h1, h2) .accent {
  background: linear-gradient(90deg, var(--blue-ink), var(--blue));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* Icons: Phosphor (regular weight), the product's own set, MIT — files in
 * /assets/icons/. Drawn as a mask so they take the text colour. */
.icon { display: inline-block; width: 1.1em; height: 1.1em; flex: none; background: currentColor; mask: center / contain no-repeat; }
.icon-envelope { mask-image: url("/assets/icons/envelope.svg"); }
.icon-shield-check { mask-image: url("/assets/icons/shield-check.svg"); }
.icon-check-circle { mask-image: url("/assets/icons/check-circle.svg"); }
.icon-prohibit { mask-image: url("/assets/icons/prohibit.svg"); }
.icon-lightning { mask-image: url("/assets/icons/lightning.svg"); }
.icon-calendar-blank { mask-image: url("/assets/icons/calendar-blank.svg"); }
.icon-magnifying-glass { mask-image: url("/assets/icons/magnifying-glass.svg"); }
.icon-file-text { mask-image: url("/assets/icons/file-text.svg"); }
.icon-leaf { mask-image: url("/assets/icons/leaf.svg"); }
.icon-plug { mask-image: url("/assets/icons/plug.svg"); }
.icon-clock-countdown { mask-image: url("/assets/icons/clock-countdown.svg"); }
.icon-arrow-right { mask-image: url("/assets/icons/arrow-right.svg"); }
.icon-arrow-counter-clockwise { mask-image: url("/assets/icons/arrow-counter-clockwise.svg"); }
.icon-brain { mask-image: url("/assets/icons/brain.svg"); }
.icon-caret-down { mask-image: url("/assets/icons/caret-down.svg"); }
.icon-pencil-simple { mask-image: url("/assets/icons/pencil-simple.svg"); }
.icon-globe { mask-image: url("/assets/icons/globe.svg"); }
.icon-users-three { mask-image: url("/assets/icons/users-three.svg"); }
.icon-clipboard-text { mask-image: url("/assets/icons/clipboard-text.svg"); }
.icon-receipt { mask-image: url("/assets/icons/receipt.svg"); }
.icon-chart-bar { mask-image: url("/assets/icons/chart-bar.svg"); }
.icon-download-simple { mask-image: url("/assets/icons/download-simple.svg"); }
.icon-flag { mask-image: url("/assets/icons/flag.svg"); }
.icon-database { mask-image: url("/assets/icons/database.svg"); }
.icon-file-arrow-up { mask-image: url("/assets/icons/file-arrow-up.svg"); }

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

/* Sunburst: the mark built in the page, so its two rings of rays can move.
 * The entrance is the product's welcome.json: the rings turn in from ±60° and
 * grow from 70 %, over 66 frames at 60 fps, on the file's own easing. It plays
 * once; under reduced motion the mark is simply there. */
.sunburst { display: block; margin-bottom: 22px; }
.sunburst g { transform-box: view-box; transform-origin: 16px 16px; }
@media (prefers-reduced-motion: no-preference) {
  .sunburst-inner { animation: sunburst-inner 1.1s cubic-bezier(.001, 0, .2, 1) both; }
  .sunburst-outer { animation: sunburst-outer 1.1s cubic-bezier(.001, 0, .2, 1) both; }
}
@keyframes sunburst-inner { from { transform: rotate(-60deg) scale(.7); } }
@keyframes sunburst-outer { from { transform: rotate(60deg) scale(.7); } }

/* Hero — « L’aube »: two soft glows, and a faint field of rays centred on the
 * sunburst. Here the rays are drawn still and slightly blurred; with motion
 * allowed, rays.js swaps them for a shader that sways and breathes
 * (.hero-rays), and .has-rays fades these out. */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  padding: 88px 0 96px;
  background:
    radial-gradient(900px 420px at 85% 10%, var(--blue-subtle), transparent 70%),
    radial-gradient(520px 320px at 92% 92%, rgb(169 205 253 / .35), transparent 70%),
    var(--bg);
}
.hero::before {
  content: ""; position: absolute; z-index: -1;
  width: 1400px; aspect-ratio: 1; left: max(calc(50% - 1232px), -648px); top: -584px;
  background: repeating-conic-gradient(from 0deg, var(--blue) 0 2deg, transparent 2deg 15deg);
  -webkit-mask-image: radial-gradient(closest-side, #000 30%, transparent);
  mask-image: radial-gradient(closest-side, #000 30%, transparent);
  opacity: .07; filter: blur(3px);
}
@media (prefers-reduced-motion: no-preference) {
  .hero::before { animation: rays-in calc(var(--dur-3) * 2) var(--ease-out) both; }
}
.hero-rays {
  position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%;
  pointer-events: none; animation: rays-in calc(var(--dur-3) * 3) var(--ease-out) both;
}
.hero.has-rays::before { animation: none; opacity: 0; transition: opacity calc(var(--dur-3) * 3) var(--ease-out); }
@keyframes rays-in { from { opacity: 0; transform: scale(.98); } }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 54ch; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 32px 0 28px; }
.proof { display: flex; flex-wrap: wrap; gap: 10px 22px; list-style: none; padding: 0; margin: 0; font-size: .92rem; color: var(--muted); }
.proof li { display: inline-flex; align-items: center; gap: 8px; }
.proof li::before { content: ""; width: 18px; height: 18px; background: var(--blue-ink); mask: url("/assets/icons/check-circle.svg") center / contain no-repeat; }

/* Product mock */
.mock {
  margin: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-container);
  overflow: hidden;
}
.mock-bar {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 18px; border-bottom: 1px solid var(--line);
  font-weight: 600; color: var(--ink); font-size: .95rem;
}
.mock-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); margin-left: auto; }
.mock-body { padding: 22px 18px; display: grid; gap: 14px; font-size: .92rem; }
.bubble { margin: 0; padding: 12px 16px; border-radius: 14px; max-width: 90%; }
.bubble p { margin: 0 0 .4em; }
.bubble ol { margin: 0 0 .6em; padding-left: 1.2em; }
.bubble-user { background: var(--blue-subtle); justify-self: end; border-bottom-right-radius: 4px; }
.bubble-agent { background: #f1f1f0; border-bottom-left-radius: 4px; }
.tool-chip {
  display: inline-flex; align-items: center; gap: 6px; font-size: .82rem; color: var(--blue-ink);
  background: #fff; border: 1px solid var(--blue-soft); border-radius: 8px; padding: 4px 10px;
  margin: 0 !important;
}
.mock-caption { padding: 12px 18px; font-size: .8rem; color: var(--muted); border-top: 1px solid var(--line); background: var(--bg-soft); }

/* Sections */
.section { padding: 104px 0; }
.section-lead { font-size: 1.08rem; color: var(--muted); max-width: 60ch; margin-top: -.2em; }
.section-soft { background: var(--bg-soft); border-block: 1px solid var(--line); }
.section-soft { border-image: linear-gradient(90deg, transparent, var(--line) 20% 80%, transparent) 1; }
/* Ink bands: navy, a deep blue glow that rises as the band comes into view
 * (site.js tweens --glow-y and --glow-o), and a grain so the gradient does
 * not band on ordinary screens. */
.section-ink { position: relative; isolation: isolate; background: var(--ink); color: #dfe5ec; }
.section-ink::before, .section-ink::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.section-ink::before {
  background: radial-gradient(60% 80% at 20% 0%, rgb(49 137 251 / .22), transparent);
  transform: translateY(var(--glow-y, 0)); opacity: var(--glow-o, 1);
}
.section-ink::after { background: url("/assets/brand/grain.svg") repeat; opacity: .06; mix-blend-mode: overlay; }
.section-ink h2 { color: #fff; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px; }
.card {
  position: relative;
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 26px; background: #fff;
  transition: border-color var(--dur-1) var(--ease-out), transform var(--dur-1) var(--ease-out), box-shadow var(--dur-1) var(--ease-out);
}
/* A soft glow along the top edge on hover. */
.card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(60% 50% at 50% 0%, rgb(169 205 253 / .35), transparent);
  opacity: 0; transition: opacity var(--dur-1) var(--ease-out);
}
.card:hover { border-color: var(--blue-soft); transform: translateY(-2px); box-shadow: 0 14px 30px -20px rgba(18, 39, 60, .35); }
.card:hover::after { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .card:hover { transform: none; } }
.card p { color: var(--muted); margin: 0; font-size: .96rem; }
.card h3::before {
  content: ""; display: block; width: 28px; height: 4px; border-radius: 2px;
  background: var(--blue); margin-bottom: 18px;
}

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.checks li {
  padding: 0 0 22px 36px; position: relative;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  font-size: .96rem;
}
.checks li:last-child { border-bottom: 0; padding-bottom: 0; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 1px;
  width: 22px; height: 22px;
  background: var(--blue-soft);
  mask: url("/assets/icons/shield-check.svg") center / contain no-repeat;
}
.checks strong { display: block; color: #fff; font-weight: 600; margin-bottom: 2px; }

.steps { list-style: none; padding: 0; margin: 48px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; counter-reset: none; }
.steps li { border-top: 2px solid var(--ink); padding-top: 22px; }
.steps p { color: var(--muted); margin: 0; font-size: .96rem; }
.step-n {
  display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  background: var(--blue-subtle); color: var(--blue-ink); font-weight: 600; margin-bottom: 14px;
}

.story { display: grid; grid-template-columns: auto 1fr; gap: 64px; align-items: start; }
.story p { max-width: 62ch; color: var(--muted); }
.story strong { color: var(--ink); }
.story .eyebrow { color: var(--blue-ink); }
.story .year {
  font-family: var(--font-display);
  font-size: clamp(4rem, 10vw, 7.5rem); font-weight: 800; line-height: 1;
  color: var(--blue); letter-spacing: -.04em; margin: 0;
}

.story-art { display: grid; gap: 28px; justify-items: start; }
.story-art img { width: min(320px, 100%); }

/* « Le trajet d’une question »: four stops joined by a line, Clerk off to the
 * side. Each prestataire outside the EU carries its tag. */
.route { margin: 72px auto 0; padding-top: 56px; border-top: 1px solid rgba(255, 255, 255, .1); }
.route figcaption h3 { color: #fff; font-family: var(--font-display); font-size: 1.35rem; }
.route figcaption p { color: #b8c2cd; max-width: 62ch; }
.route-path { list-style: none; margin: 36px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.route-stop {
  position: relative; display: grid; align-content: start; gap: 6px;
  padding: 18px 18px 20px; border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .03);
  font-size: .9rem; color: #b8c2cd;
}
.route-stop strong { color: #fff; font-weight: 600; font-size: 1rem; }
.route-stop--home { border-color: var(--blue); background: rgba(49, 137, 251, .1); }
.route-stop--outside { border-style: dashed; }
/* The line to the next stop. A span, so site.js can draw it (scaleX). */
.route-line {
  position: absolute; top: 34px; left: 100%; width: 20px; height: 2px;
  background: linear-gradient(90deg, var(--blue-soft), var(--blue));
  transform-origin: left center;
}
.route-tag {
  justify-self: start; font-size: .72rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  padding: 2px 8px; border-radius: 6px; color: #dfe5ec; background: rgba(255, 255, 255, .08);
}
.route-tag--eu { color: var(--on-blue); background: var(--blue-soft); }
.route-tag--outside { color: #ffd89a; background: rgba(236, 156, 19, .16); }
.route-back { margin: 14px 0 0; font-size: .88rem; color: #b8c2cd; }
.route-back::before { content: "← "; color: var(--blue-soft); }
.route-side {
  margin-top: 24px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px;
  padding: 14px 18px; border-radius: 14px; border: 1px dashed rgba(255, 255, 255, .14);
  font-size: .9rem; color: #b8c2cd;
}
.route-side p { margin: 0; }
.route-side strong { color: #fff; font-weight: 600; }

/* ── Figures ───────────────────────────────────────────────────────────────
 * .shot: a crop of a real product screen, framed like the app's own panel (no
 * fake browser chrome). .fig: the « Fig. n » caption under every mock. */
.shot { position: relative; margin: 0; }
/* Never wider than its own pixels (the global img rule only shrinks it): each
 * figure is rendered at the width a desktop lays it out at, and stretched it blurs. */
.shot img {
  border-radius: var(--radius); border: 1px solid var(--line);
  box-shadow: var(--shadow-container); background: #f5f5f4;
}
/* Where the crop cuts through content, it fades out instead. */
.shot--fade img {
  -webkit-mask-image: linear-gradient(to bottom, #000 80%, transparent);
  mask-image: linear-gradient(to bottom, #000 80%, transparent);
  box-shadow: none;
}
.fig { margin-top: 12px; font-size: .82rem; color: var(--muted); }
.fig::first-line { color: var(--text); }
.section-ink .fig { color: #b8c2cd; }

/* « Rejouer »: only shown once site.js has a scene to replay. */
.replay {
  display: inline-flex; align-items: center; gap: 6px;
  font: inherit; font-size: .82rem; font-weight: 500; color: var(--muted);
  background: none; border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; cursor: pointer;
  transition: border-color var(--dur-1), color var(--dur-1);
}
.replay:hover { color: var(--ink); border-color: var(--blue-soft); }
.replay[hidden], .replay-note[hidden] { display: none; }

/* ── Confirmation card (the product's thread/ConfirmationCard.tsx) ──────── */
.confirm-card {
  position: relative; background: #fff; color: var(--text);
  border: 1px solid #cfcfcd; border-radius: var(--radius);
  box-shadow: var(--shadow-container);
  padding: 18px 20px; font-size: .92rem;
  transition: border-color var(--dur-2) var(--ease-in-out), box-shadow var(--dur-2) var(--ease-in-out), color var(--dur-2) var(--ease-in-out);
}
.confirm-card .cc-title { display: flex; align-items: center; gap: 10px; margin: 0; font-weight: 600; color: var(--ink); }
.cc-rows { margin: 12px 0 0; display: grid; gap: 6px; }
.cc-rows div { display: grid; grid-template-columns: 6.5em 1fr; gap: 10px; }
.cc-rows dt { color: var(--muted); }
.cc-rows dd { margin: 0; }
.cc-rows s { color: var(--muted); }
.cc-rows .icon { width: .9em; height: .9em; vertical-align: -.1em; color: var(--muted); }
.cc-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; }
.cc-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: var(--radius-md); border: 1px solid var(--line);
  font-size: .85rem; font-weight: 500; color: var(--ink); background: #fff;
}
.cc-btn--primary { background: var(--ink); border-color: var(--ink); color: #fff; }
.confirm-card .cc-outcome { display: none; align-items: center; gap: 6px; margin: 14px 0 0; font-size: .85rem; color: var(--muted); }
/* Settled: quiet again — the buttons give way to the record of what happened. */
.confirm-card.is-settled { border-color: var(--line); box-shadow: 0 2px 6px rgba(18, 39, 60, .06); color: var(--muted); }
.confirm-card.is-settled .cc-title { color: var(--muted); }
.confirm-card dd { color: inherit; }
.confirm-card.is-settled .cc-actions { display: none; }
.confirm-card.is-settled .cc-outcome { display: flex; }
.confirm-card--compact { padding: 14px 16px; font-size: .84rem; }
.confirm-card--compact .cc-rows div { grid-template-columns: 3.5em 1fr; }

/* The five-minute wait, as a ring that drains around the card. site.js tweens
 * --t from 1 to 0: the ring's angle changes, the element never turns. */
@property --t { syntax: "<number>"; inherits: false; initial-value: 0; }
.confirm-ring {
  position: absolute; inset: -7px; border-radius: 27px; padding: 2px; pointer-events: none;
  background: conic-gradient(var(--blue) calc(var(--t) * 1turn), transparent 0);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
}

/* ── Hero scene ─────────────────────────────────────────────────────────── */
.hero-visual { position: relative; display: grid; gap: 14px; justify-items: end; }
.hero-scene { position: relative; margin: 0 0 0 auto; width: min(528px, 100%); }
.hero-overlay {
  position: absolute; right: -28px; bottom: 36px; width: min(320px, 72%);
  display: grid; gap: 8px; justify-items: end;
}
.hero-overlay .confirm-card { width: 100%; }
.thinking {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: var(--radius-md);
  background: #f3f3f1; border: 1px solid var(--line);
  font-size: .78rem; font-weight: 500; color: var(--muted);
  box-shadow: 0 2px 6px rgba(18, 39, 60, .06);
}
.thinking-mark { display: inline-grid; place-items: center; width: 18px; height: 18px; }
.thinking-time { font-variant-numeric: tabular-nums; margin-left: 6px; }
/* The brand's thinking.json plays in place of the static icon while Blaise
 * thinks (site.js); under reduced motion it shows still, on its last frame. */
.thinking-lottie { display: none; width: 18px; height: 18px; }
.thinking:is(.is-thinking, .is-still) .thinking-mark:has(.is-live) .icon-brain { display: none; }
.thinking.is-thinking .thinking-lottie.is-live, .thinking.is-still .thinking-lottie.is-live { display: block; }
.thinking .icon { width: 14px; height: 14px; }
.hero-stream {
  margin: 0; padding: 10px 14px; border-radius: 14px; border-bottom-right-radius: 4px;
  background: #fff; border: 1px solid var(--line); box-shadow: 0 2px 6px rgba(18, 39, 60, .06);
  font-size: .84rem; color: var(--text);
}
.hero-mock { display: none; width: 100%; }
.hero-scene .fig { max-width: 26ch; }

/* ── Bandeau de preuves ─────────────────────────────────────────────────── */
.facts-band { border-block: 1px solid var(--line); background: var(--bg-soft); }
.facts {
  list-style: none; margin: 0 auto; padding: 22px 0;
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px 28px;
  font-size: .88rem; color: var(--ink); font-weight: 500; line-height: 1.4;
}
.facts li { display: flex; gap: 10px; align-items: flex-start; }
.facts .icon { color: var(--blue-ink); width: 20px; height: 20px; margin-top: 1px; }

/* ── Tabs: radios, so they work without JS; arrow keys move within the group ─ */
.tabs { margin-top: 40px; }
.tab-list { display: flex; flex-wrap: wrap; gap: 6px; padding: 5px; border-radius: 14px; background: #f1f1f0; width: fit-content; max-width: 100%; }
.tab-list input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.tab-list label {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  padding: 8px 16px; border-radius: 10px; font-weight: 500; font-size: .95rem; color: var(--muted);
  transition: background-color var(--dur-1), color var(--dur-1), box-shadow var(--dur-1);
}
.tab-list label:hover { color: var(--ink); }
.tab-list input:checked + label { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(18, 39, 60, .12); }
.tab-list input:focus-visible + label { outline: 3px solid var(--blue); outline-offset: 2px; }
.tab-panels { display: grid; margin-top: 28px; }
.tab-panel { display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; align-items: start; }
.tab-panel--full { grid-template-columns: 1fr; }
.tab-copy h3 { font-family: var(--font-display); font-size: 1.5rem; }
.tab-copy p { color: var(--muted); }
.tab-fact { font-size: .94rem; padding-left: 14px; border-left: 2px solid var(--blue-soft); }
.tab-fact strong { color: var(--ink); }
.tab-visual { display: grid; gap: 16px; }
/* With :has(), one panel at a time, crossfading in the same cell. Without it,
 * every panel shows, one under the other, and the radios are hidden. */
@supports selector(:has(*)) {
  .tab-panel {
    grid-area: 1 / 1; opacity: 0; visibility: hidden;
    transition: opacity var(--dur-2) var(--ease-in-out), visibility 0s linear var(--dur-2);
  }
  .tabs:has(.tab-list input:nth-of-type(1):checked) .tab-panel:nth-child(1),
  .tabs:has(.tab-list input:nth-of-type(2):checked) .tab-panel:nth-child(2),
  .tabs:has(.tab-list input:nth-of-type(3):checked) .tab-panel:nth-child(3),
  .tabs:has(.tab-list input:nth-of-type(4):checked) .tab-panel:nth-child(4),
  .tabs:has(.tab-list input:nth-of-type(5):checked) .tab-panel:nth-child(5) {
    opacity: 1; visibility: visible; transition-delay: 0s;
  }
}
@supports not selector(:has(*)) {
  .tab-list { display: none; }
  .tab-panels { gap: 56px; }
}

/* Small HTML mocks inside the tabs. */
.mini {
  margin: 0; padding: 20px; display: grid; gap: 12px; font-size: .9rem;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-container);
}
.mini .bubble { max-width: 92%; }
.files { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.files li {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px;
  border: 1px solid var(--line); border-radius: var(--radius-md); background: #fff; font-size: .8rem; color: var(--ink);
}
.files em { font-style: normal; color: var(--muted); }
.files em::before { content: "· "; }
.sources { margin-top: .4em; font-size: .84rem; }
.sources summary { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; color: var(--blue-ink); font-weight: 500; }
.sources ol { margin: .4em 0 0; padding-left: 1.4em; color: var(--muted); }
.tag { display: inline-block; padding: 2px 8px; border-radius: var(--radius-sm); font-size: .74rem; font-weight: 500; background: #f1f1f0; color: var(--muted); }
.tag--ok { background: #e3f5ea; color: #136b3a; }
.tag--wait { background: #fdf0d8; color: #7a4d00; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: .6em 0 0 !important; }
.chip { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: var(--radius-md); background: #fff; border: 1px solid var(--line); font-size: .78rem; }
.mail-head { display: flex; align-items: center; gap: 8px; margin: 0; font-weight: 600; color: var(--ink); }
.mail-head .tag { margin-left: auto; }
.mail-meta { margin: 0; display: grid; gap: 4px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.mail-meta div { display: grid; grid-template-columns: 4em 1fr; }
.mail-meta dt { color: var(--muted); }
.mail-meta dd { margin: 0; }
.mail-body p { margin: 0 0 .6em; color: var(--text); }
.actions { list-style: none; }
.actions li {
  display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; align-items: start;
  padding: 12px 0; border-bottom: 1px solid var(--line);
}
.actions li:last-child { border-bottom: 0; }
.actions .icon { grid-row: span 3; margin-top: 4px; color: var(--muted); }
.actions strong { color: var(--ink); font-weight: 600; }
.actions span:not(.icon):not(.tag) { color: var(--muted); font-size: .85rem; }
.actions .tag { justify-self: start; margin-top: 4px; }

.integrations { margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 32px; }
.integrations p { margin: 0; }
.integrations-names { display: inline-flex; align-items: center; gap: 10px; font-weight: 500; color: var(--ink); }
.integrations-note { color: var(--muted); font-size: .92rem; }

.also { margin-top: 56px; display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.also h3 { font-family: var(--font-display); font-size: 1.3rem; }
.also-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; color: var(--muted); font-size: .96rem; }
.also-list strong { color: var(--ink); font-weight: 600; }

/* ── Il prépare, vous décidez ───────────────────────────────────────────── */
.control { margin-top: 48px; align-items: center; }
.control-visual { display: grid; gap: 16px; }
.confirm-stage { padding: 14px; max-width: 480px; }
.section-ink .confirm-card.is-settled { box-shadow: none; }
.replay-row { margin: 0; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: .82rem; color: #b8c2cd; }
.section-ink .replay { color: #dfe5ec; border-color: rgba(255, 255, 255, .2); }
.section-ink .replay:hover { color: #fff; border-color: var(--blue-soft); }

/* ── À votre nom: the brand switcher, CSS only ──────────────────────────── */
.brand-split { align-items: center; }
.ticks { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 16px; color: var(--muted); }
.ticks li { position: relative; padding-left: 30px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; background: var(--blue-ink); mask: url("/assets/icons/check-circle.svg") center / contain no-repeat; }
.ticks strong { color: var(--ink); font-weight: 600; }
.brand-pills { border: 0; margin: 0 0 16px; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.brand-pills legend { padding: 0; margin-bottom: 10px; font-size: .85rem; color: var(--muted); }
.brand-pills input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.brand-pills label {
  cursor: pointer; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line);
  font-size: .88rem; font-weight: 500; color: var(--muted); background: #fff;
  transition: border-color var(--dur-1), color var(--dur-1);
}
.brand-pills input:checked + label { border-color: var(--ink); color: var(--ink); }
.brand-pills input:focus-visible + label { outline: 3px solid var(--blue); outline-offset: 2px; }
@property --b { syntax: "<color>"; inherits: true; initial-value: #3189fb; }
@property --b-ink { syntax: "<color>"; inherits: true; initial-value: #12273c; }
.brand-mock { margin: 0; --b: #3189fb; --b-ink: #12273c; transition: --b var(--dur-2) var(--ease-in-out), --b-ink var(--dur-2) var(--ease-in-out); }
.brand-switch:has(#marque-b:checked) .brand-mock { --b: #1f8a70; --b-ink: #0f3d33; }
.brand-switch:has(#marque-c:checked) .brand-mock { --b: #b0413e; --b-ink: #3b1f2b; }
.bm-b, .bm-c { display: none; }
.brand-switch:has(#marque-b:checked) .bm-a, .brand-switch:has(#marque-c:checked) .bm-a { display: none; }
.brand-switch:has(#marque-b:checked) .bm-b, .brand-switch:has(#marque-c:checked) .bm-c { display: inline; }
.bm-app {
  display: grid; grid-template-columns: 190px 1fr; min-height: 300px; overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--radius); background: #f0f0ef; box-shadow: var(--shadow-container);
  font-size: .8rem;
}
.bm-side { padding: 16px 12px; display: grid; align-content: start; gap: 6px; }
.bm-side p { margin: 0; }
.bm-logo { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--b-ink); font-size: .9rem; margin-bottom: 8px !important; }
.bm-tile { width: 20px; height: 20px; border-radius: 50%; background: var(--b); flex: none; }
.bm-new { white-space: nowrap; font-size: .76rem; padding: 7px 8px; border-radius: 8px; background: var(--b-ink); color: #fff; font-weight: 500; text-align: center; margin-bottom: 10px !important; }
.bm-item { padding: 4px 6px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bm-main { margin: 8px 8px 8px 0; border-radius: 14px; background: #f7f7f6; border: 1px solid var(--line); display: grid; align-content: center; gap: 16px; padding: 24px; }
.bm-greet { margin: 0; font-weight: 600; font-size: 1.05rem; color: var(--text); line-height: 1.35; }
.bm-composer { margin: 0; display: grid; gap: 14px; padding: 12px; border-radius: 12px; background: #fff; border: 1px solid var(--line); color: var(--muted); }
.bm-chip { justify-self: start; display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px; border-radius: 8px; border: 1px solid var(--line); color: var(--text); }
.bm-chip-tile { display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 4px; background: var(--b); color: #fff; font-size: .7rem; font-weight: 600; }

/* ── Dans votre périmètre ───────────────────────────────────────────────── */
.section-ink p { color: #c9d2dc; }
.model-card {
  background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .14);
  border-radius: var(--radius); padding: 24px;
}
.model-card-intro { font-family: var(--font-display); font-size: 1.2rem; color: #fff !important; margin-bottom: 18px; }
.model-card-name { display: flex; align-items: center; gap: 8px; font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--blue-soft) !important; margin-bottom: 10px; }
.model-card dl { margin: 0; display: grid; }
.model-card dl div { display: grid; grid-template-columns: 8em 1fr; gap: 14px; padding: 12px 0; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .92rem; }
.model-card dt { color: #b8c2cd; }
.model-card dd { margin: 0; color: #fff; }
.perimeter { margin-top: 64px; display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
.perimeter h3 { color: #fff; font-family: var(--font-display); font-size: 1.25rem; margin-bottom: 20px; }
.nots { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; font-size: .96rem; }
.nots li { position: relative; padding-left: 34px; }
.nots li::before { content: ""; position: absolute; left: 0; top: 2px; width: 22px; height: 22px; background: #ffb1aa; mask: url("/assets/icons/prohibit.svg") center / contain no-repeat; }
.perimeter-link { margin-top: 24px; font-size: .94rem; }
.section-ink a { color: #fff; text-decoration-color: var(--blue-soft); text-underline-offset: 3px; }

/* ── La console ─────────────────────────────────────────────────────────── */
.console .tab-list { background: #ebebea; }
.console-mock { padding: 22px 24px; overflow-x: auto; }
.cm-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin: 0; color: var(--ink); }
.cm-head .cc-btn { margin-left: auto; }
.cm-sub { color: var(--muted); font-size: .88rem; }
.console-mock table { width: 100%; border-collapse: collapse; font-size: .86rem; }
.console-mock th { text-align: left; font-weight: 500; color: var(--muted); padding: 8px 12px 8px 0; border-bottom: 1px solid var(--line); white-space: nowrap; }
.console-mock td { padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.console-mock tr:last-child td { border-bottom: 0; }
.console-mock td:first-child { white-space: nowrap; color: var(--muted); font-variant-numeric: tabular-nums; }
.flag { display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px; border-radius: var(--radius-sm); background: #fdf0d8; color: #7a4d00; font-size: .78rem; font-weight: 500; white-space: nowrap; }
.cm-note { margin: 0; font-size: .76rem; color: var(--muted); }
.console-facts { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; font-size: .92rem; color: var(--muted); }
.console-facts li { display: grid; gap: 8px; }
.console-facts .icon { color: var(--blue-ink); width: 22px; height: 22px; }

/* ── Déploiement ────────────────────────────────────────────────────────── */
.ops { list-style: none; margin: 16px 0 0; padding: 14px 0 0; border-top: 1px solid var(--line); display: grid; gap: 8px; font-size: .88rem; color: var(--muted); }
.steps .ops li { position: relative; padding: 0 0 0 18px; border: 0; }
.ops li::before { content: ""; position: absolute; left: 0; top: .6em; width: 6px; height: 6px; border-radius: 50%; background: var(--blue); }
.adoption { margin: 40px 0 0; display: flex; gap: 10px; align-items: flex-start; color: var(--muted); max-width: 72ch; }
.adoption .icon { color: var(--blue-ink); width: 20px; height: 20px; margin-top: 3px; }

/* ── Questions fréquentes ───────────────────────────────────────────────── */
.faq-wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; align-items: start; }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; position: relative;
  padding: 20px 40px 20px 0; font-weight: 600; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
/* A « + » that turns 45° into a « × » (a state glyph, not an entrance). */
.faq summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 14px; height: 14px; margin-top: -7px;
  background: linear-gradient(var(--blue-ink) 0 0) center / 14px 2px no-repeat, linear-gradient(var(--blue-ink) 0 0) center / 2px 14px no-repeat;
  transition: transform var(--dur-2) var(--ease-in-out);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 22px; color: var(--muted); max-width: 64ch; }

/* ── Contact ────────────────────────────────────────────────────────────── */
.contact-ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.contact .contact-note { margin: 22px auto 0; font-size: .9rem; }

.contact { text-align: center; }
.contact h2 { margin-inline: auto; }
.contact p { color: var(--muted); margin-bottom: 28px; }

/* Footer */
.site-footer { background: var(--ink); color: #b8c2cd; padding: 40px 0; font-size: .9rem; }
.footer-row { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.footer-row p { margin: 0; }
.site-footer a { color: #fff; }
.footer-links { display: flex; gap: 22px; list-style: none; margin: 0 0 0 auto; padding: 0; }

/* Legal page */
.legal { padding: 72px 0 96px; }
.legal .wrap { max-width: 760px; }
.legal h2 { font-size: 1.3rem; margin-top: 2em; max-width: none; }
.legal p, .legal li { color: var(--muted); }
.legal--wide .wrap { max-width: 1040px; }
.legal--wide > .wrap > p { max-width: 72ch; }
.table-wrap { overflow-x: auto; margin: 0 0 1em; }
.register { width: 100%; border-collapse: collapse; font-size: .9rem; }
.register th, .register td { text-align: left; vertical-align: top; padding: 12px 14px 12px 0; border-bottom: 1px solid var(--line); }
.register thead th { font-weight: 500; color: var(--muted); white-space: nowrap; }
.register tbody th { color: var(--ink); font-weight: 600; min-width: 11em; }
.register tbody th .route-tag { display: inline-block; margin-top: 4px; }
.register td { color: var(--muted); }
.route-tag--outside:is(.register *) { color: #7a4d00; background: #fdf0d8; }
.legal-note { margin-top: 2.5em; }

/* Responsive */
@media (max-width: 960px) {
  .hero-grid, .split, .story { grid-template-columns: 1fr; gap: 48px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .nav { display: none; }
  .header-row .btn { margin-left: auto; }
  .route-path { grid-template-columns: 1fr; gap: 16px; }
  .tab-panel, .also, .perimeter, .faq-wrap { grid-template-columns: 1fr; gap: 32px; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .console-facts { grid-template-columns: repeat(2, 1fr); }
  .hero-visual { justify-items: center; }
  .hero-scene { margin: 0 auto; }
  .hero-overlay { right: -12px; }
  .route-line { top: 100%; left: 32px; width: 2px; height: 16px; background: linear-gradient(180deg, var(--blue-soft), var(--blue)); transform-origin: center top; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .hero { padding: 56px 0 64px; }
  .section { padding: 72px 0; }
  .cards, .steps { grid-template-columns: 1fr; }
  /* A crop of a 1440 px screen is illegible here: the HTML mock stands in. */
  .hero-scene, .hero-visual .replay { display: none; }
  .hero-mock { display: block; }
  .facts, .console-facts { grid-template-columns: 1fr; }
  .tab-list label { padding: 7px 12px; font-size: .9rem; }
  .tab-visual .shot--wide, .also .shot { display: none; }
  .bm-app { grid-template-columns: 1fr; }
  .bm-side { display: none; }
  .bm-main { margin: 8px; }
  .cc-rows div, .model-card dl div { grid-template-columns: 1fr; gap: 0; }
  .brand img { height: 26px; }
  .footer-links { margin-left: 0; }
}
