/* GENERATED by tools/nouveau/build.py — edit tools/nouveau/css/*.css, not this file. */
/* ===== base.css ===== */
/* ==========================================================================
   AJM — home page (/ and /en/) — design system « Nord doré »
   Read tools/nouveau/DESIGN.md before touching this file.
   Section styles live in css/<id>.css and must be scoped to #<id> / .<id>__*.
   ========================================================================== */

/* ---------- 1. Tokens ---------------------------------------------------- */
:root {
  /* Brand palette (AJM identity: navy + gold + cream) */
  --navy: #14253F;
  --navy-2: #1D3355;
  --deep: #0C1729;
  --ink: #070F1C;
  --gold: #D29B38;        /* THE accent. On dark backgrounds, or as a full-bleed field. */
  --gold-hi: #E8B55A;     /* hover / highlight of gold on dark */
  --gold-ink: #946414;    /* gold for text on cream/paper (4.5:1 on cream) */
  --cream: #F5F0E6;
  --cream-2: #EAE1CF;
  --paper: #FBF8F2;
  --signal: #7FD4E0;      /* « glace » — data/tech glow, DARK themes only, never text-heavy */
  --signal-ink: #1F6F80;  /* signal on light backgrounds (dots only) */
  --ok-on-dark: #5BD6A0;
  --ok-on-light: #1F7A52;

  /* Fonts */
  --font-sans: "Montserrat", "Avenir Next", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-serif: "Instrument Serif", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --font-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

  /* Fluid type scale (360 px → 1440 px viewport) */
  --fs-mega: clamp(3.25rem, 0.9rem + 10.4vw, 10.5rem);    /* 52 → 168 px : one or two words */
  --fs-display: clamp(2.5rem, 1.25rem + 5.6vw, 6.75rem);  /* 40 → 101 px : section headlines */
  --fs-h2: clamp(2rem, 1.35rem + 2.9vw, 3.75rem);         /* 32 → 60 px */
  --fs-h3: clamp(1.3rem, 1.1rem + 0.9vw, 1.85rem);        /* 21 → 30 px */
  --fs-lead: clamp(1.1rem, 1rem + 0.45vw, 1.375rem);      /* 18 → 22 px */
  --fs-body: 1.0625rem;                                   /* 17 px */
  --fs-small: 0.9375rem;                                  /* 15 px */
  --fs-xs: 0.8125rem;                                     /* 13 px */
  --fs-2xs: 0.75rem;                                      /* 12 px : mono tech labels */

  /* Spacing scale */
  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 0.75rem;
  --s-4: 1rem;
  --s-5: 1.5rem;
  --s-6: 2rem;
  --s-7: 3rem;
  --s-8: 4rem;
  --s-9: 6rem;
  --s-10: 8rem;
  --gutter: clamp(16px, 4vw, 40px);
  --section-pad: clamp(5rem, 2.5rem + 9vw, 10rem);
  --wrap: 1280px;
  --wrap-narrow: 860px;
  --header-h: 64px;

  /* Radii */
  --r-xs: 6px;
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 36px;
  --r-pill: 999px;

  /* Shadows */
  --shadow-1: 0 1px 2px rgba(7, 15, 28, 0.08), 0 8px 24px -8px rgba(7, 15, 28, 0.18);
  --shadow-2: 0 2px 6px rgba(7, 15, 28, 0.12), 0 30px 70px -24px rgba(7, 15, 28, 0.55);
  --shadow-3: 0 50px 120px -40px rgba(0, 0, 0, 0.75);
  --glow-gold: 0 0 0 1px rgba(210, 155, 56, 0.35), 0 12px 48px -12px rgba(210, 155, 56, 0.5);
  --glow-signal: 0 0 0 1px rgba(127, 212, 224, 0.3), 0 0 32px -6px rgba(127, 212, 224, 0.55);

  /* Motion (CSS side; GSAP equivalents in DESIGN.md) */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);       /* ≈ expo.out */
  --ease-out-soft: cubic-bezier(0.22, 1, 0.36, 1); /* ≈ power3.out */
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);   /* ≈ power2.inOut */
  --dur-1: 0.2s;   /* micro: hover, focus */
  --dur-2: 0.45s;  /* UI: menus, tabs */
  --dur-3: 0.9s;   /* reveals */
  --dur-4: 1.4s;   /* hero intro, big wipes */

  /* Shared 3D angle: hero object → pile exploded view use the SAME one. */
  --iso: rotateX(55deg) rotateZ(-38deg);

  /* Default semantic tokens = dark theme (body background) */
  --bg: var(--deep);
  --fg: var(--cream);
  --fg-muted: #A9B6CA;
  --accent: var(--gold);
  --accent-strong: var(--gold);
  --on-accent: var(--ink);
  --accent-hover: var(--gold-hi);
  --line: rgba(245, 240, 230, 0.12);
  --line-strong: rgba(245, 240, 230, 0.28);
  --surface: rgba(245, 240, 230, 0.04);
  --surface-2: rgba(245, 240, 230, 0.08);
  --focus: var(--gold-hi);
  --ok: var(--ok-on-dark);
  --signal-dot: var(--signal);
}

/* ---------- 2. Section themes (set data-theme on each <section>) -------- */
[data-theme] {
  background-color: var(--bg);
  color: var(--fg);
}
[data-theme="dark"],
[data-theme="ink"],
[data-theme="navy"] {
  --fg: var(--cream);
  --fg-muted: #A9B6CA;
  --accent: var(--gold);
  --accent-strong: var(--gold);
  --on-accent: var(--ink);
  --accent-hover: var(--gold-hi);
  --line: rgba(245, 240, 230, 0.12);
  --line-strong: rgba(245, 240, 230, 0.28);
  --surface: rgba(245, 240, 230, 0.04);
  --surface-2: rgba(245, 240, 230, 0.08);
  --focus: var(--gold-hi);
  --ok: var(--ok-on-dark);
  --signal-dot: var(--signal);
  color-scheme: dark;
}
[data-theme="dark"] { --bg: var(--deep); }
[data-theme="ink"]  { --bg: var(--ink); }
[data-theme="navy"] { --bg: var(--navy); --fg-muted: #B4C0D2; --surface: rgba(255, 255, 255, 0.05); }

[data-theme="cream"] {
  --bg: var(--cream);
  --fg: var(--navy);
  --fg-muted: #4E5A70;
  --accent: var(--gold-ink);
  --accent-strong: var(--navy);
  --on-accent: var(--cream);
  --accent-hover: var(--navy-2);
  --line: rgba(20, 37, 63, 0.14);
  --line-strong: rgba(20, 37, 63, 0.32);
  --surface: var(--paper);
  --surface-2: #EFE8DA;
  --focus: var(--navy);
  --ok: var(--ok-on-light);
  --signal-dot: var(--signal-ink);
  color-scheme: light;
}

[data-theme="gold"] {
  --bg: var(--gold);
  --fg: var(--ink);
  --fg-muted: #342E22;
  --accent: var(--ink);
  --accent-strong: var(--ink);
  --on-accent: var(--cream);
  --accent-hover: var(--navy);
  --line: rgba(7, 15, 28, 0.2);
  --line-strong: rgba(7, 15, 28, 0.45);
  --surface: rgba(255, 255, 255, 0.14);
  --surface-2: rgba(255, 255, 255, 0.24);
  --focus: var(--ink);
  --ok: var(--ink);
  --signal-dot: var(--ink);
  color-scheme: light;
}

/* ---------- 3. Reset & base -------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  /* clip (not hidden): keeps position: sticky working. */
  overflow-x: clip;
  scroll-padding-top: calc(var(--header-h) + 16px);
  background: var(--deep);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  overflow-x: hidden;            /* fallback (Safari < 16); `clip` below where supported */
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-kerning: normal;
}

@supports (overflow: clip) {
  body { overflow-x: clip; }
}

h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd { margin: 0; }
h1, h2, h3, h4 { font-weight: 800; line-height: 1.1; text-wrap: balance; overflow-wrap: break-word; }
p { text-wrap: pretty; }
ul[class], ol[class] { margin: 0; padding: 0; list-style: none; }
img, picture, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
svg { flex-shrink: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
strong, b { font-weight: 700; }
main { display: block; }
main:focus { outline: none; }

::selection { background: var(--gold); color: var(--ink); }

/* Focus: always visible for keyboard users, themed per section. */
:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}
:focus:not(:focus-visible) { outline: none; }

/* ---------- 4. Accessibility helpers ----------------------------------- */
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%);
  white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; left: 12px; top: 10px; z-index: 300;
  padding: 12px 18px; border-radius: var(--r-sm);
  background: var(--gold); color: var(--ink);
  font-weight: 700; font-size: var(--fs-small); text-decoration: none;
  transform: translateY(-160%);
  transition: transform var(--dur-1) var(--ease-out);
}
.skip-link:focus, .skip-link:focus-visible { transform: none; outline: 2px solid var(--cream); outline-offset: 2px; }
.top-sentinel { position: absolute; top: 0; left: 0; width: 1px; height: 8px; pointer-events: none; }

/* ---------- 5. Layout --------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap--narrow { max-width: calc(var(--wrap-narrow) + 2 * var(--gutter)); }

.section {
  position: relative;
  isolation: isolate;           /* decorative layers use z-index: -1 */
  padding-block: var(--section-pad);
}
.section--flush { padding-block: 0; }
.section-head {
  display: grid;
  gap: var(--s-5);
  max-width: 62rem;
  margin-bottom: clamp(3rem, 2rem + 4vw, 6rem);
}
.section-head--center { margin-inline: auto; text-align: center; justify-items: center; }

.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--grid-gap, clamp(16px, 2vw, 32px));
}
.flow > * + * { margin-top: var(--flow, 1em); }

/* ---------- 6. Typography components ----------------------------------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75em;
  font-family: var(--font-sans);
  font-size: var(--fs-xs);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
  flex: 0 0 auto;
}
.eyebrow--plain::before { display: none; }

.display {
  font-family: var(--font-sans);
  font-size: var(--fs-display);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.04em;
  text-wrap: balance;
}
.display--mega { font-size: var(--fs-mega); line-height: 0.9; letter-spacing: -0.05em; }
.h2 { font-size: var(--fs-h2); font-weight: 800; line-height: 1.02; letter-spacing: -0.03em; }
.h3 { font-size: var(--fs-h3); font-weight: 700; line-height: 1.15; letter-spacing: -0.015em; }

/* Accent words: <em> inside a headline → italic serif in the accent colour. */
.display em, .h2 em, .h3 em, .serif-accent {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 1.08em;
  letter-spacing: -0.01em;
  line-height: 0.9;
  color: var(--accent);
  padding-right: 0.04em; /* italic overhang */
}

.lead {
  font-size: var(--fs-lead);
  font-weight: 500;
  line-height: 1.5;
  color: var(--fg-muted);
  max-width: 44rem;
}
.muted { color: var(--fg-muted); }
.small { font-size: var(--fs-small); }

/* Small technical label: « iOS · Android · Web » — always secondary. */
.tech {
  font-family: var(--font-mono);
  font-size: var(--fs-2xs);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

/* Outline display words. Meaningful text only at ≥ 48 px.
   Montserrat is a variable font whose glyph contours overlap: a plain text-stroke draws those
   overlaps as stray lines inside the letters. So the stroke is twice as wide and painted
   *under* a fill of the background colour: the fill hides the inner half of the stroke and the
   overlaps; the visible outline keeps the --stroke-w width. On a non-uniform background, set
   --outline-fill to the colour right behind the word. */
.outline-text {
  color: var(--outline-fill, var(--bg));
  -webkit-text-stroke: calc(var(--stroke-w, 1.5px) * 2) var(--stroke-color, var(--fg));
  paint-order: stroke fill;
}
@supports not (-webkit-text-stroke: 1px black) {
  .outline-text { color: var(--stroke-color, var(--fg)); }
}

/* Outline → filled wipe. Markup:
   <span class="wipe-text">
     <span class="wipe-text__base outline-text">Mot</span>
     <span class="wipe-text__fill" aria-hidden="true">Mot</span>
   </span>
   Default (no JS / reduced motion) = filled. JS animates the fill's clip-path. */
.wipe-text { position: relative; display: inline-block; }
.wipe-text__fill {
  position: absolute;
  inset: 0;
  color: var(--wipe-color, var(--fg));
  /* Same doubled stroke as the outline base, in the fill colour: the filled word covers the
     base exactly (no rim of the outline left around the letters). */
  -webkit-text-stroke: calc(var(--stroke-w, 1.5px) * 2) var(--wipe-color, var(--fg));
  paint-order: stroke fill;
  pointer-events: none;            /* no clip by default: descenders stay whole; JS clips while wiping */
}

/* Split text (built by AJM.utils.splitWords) */
.split-word { display: inline-block; }
.split-word__inner { display: inline-block; }
.split-word--mask { overflow: hidden; padding-bottom: 0.1em; margin-bottom: -0.1em; vertical-align: top; }

/* Rolling counter (built by AJM.utils.rollingCounter) */
.roll { display: inline-flex; line-height: 1; vertical-align: top; }
.roll__digit, .roll__char { display: inline-block; height: 1em; line-height: 1; overflow: hidden; }
.roll__strip { display: block; will-change: transform; }
.roll__strip > span { display: block; height: 1em; line-height: 1; text-align: center; }

/* ---------- 7. Buttons & links ----------------------------------------- */
.btn {
  --btn-bg: var(--accent-strong);
  --btn-fg: var(--on-accent);
  --btn-wipe: var(--accent-hover);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  min-height: 48px;
  padding: 0.85em 1.5em;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-sans);
  font-size: var(--fs-small);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform var(--dur-1) var(--ease-out), border-color var(--dur-1) ease, color var(--dur-1) ease;
}
.btn::before {             /* hover: clip-path colour wipe from the bottom */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--btn-wipe);
  clip-path: inset(100% 0 0 0);
  transition: clip-path var(--dur-2) var(--ease-out);
}
.btn:hover::before, .btn:focus-visible::before { clip-path: inset(0 0 0 0); }
.btn:active { transform: scale(0.98); }
.btn--primary { /* = default */ }
.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--fg);
  --btn-wipe: var(--surface-2);
  border-color: var(--line-strong);
}
.btn--sm { min-height: 40px; padding: 0.6em 1.1em; font-size: var(--fs-xs); }
.btn--lg { min-height: 56px; padding: 1em 1.9em; font-size: var(--fs-body); }
.btn__icon { width: 1.1em; height: 1.1em; transition: transform var(--dur-2) var(--ease-out); }
.btn:hover .btn__icon, .btn:focus-visible .btn__icon { transform: translateX(3px); }

.link-arrow {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
}
.link-arrow::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0.25);
  transform-origin: left;
  transition: transform var(--dur-2) var(--ease-out);
}
.link-arrow:hover::after, .link-arrow:focus-visible::after { transform: scaleX(1); }

/* ---------- 8. Chips & status badges ----------------------------------- */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.4em 0.85em;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-pill);
  background: var(--surface);
  color: var(--fg);
  font-size: var(--fs-2xs);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.status::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--dot, var(--fg-muted));
  flex: 0 0 auto;
}
.status--disponible { --dot: var(--ok); }
.status--bientot    { --dot: var(--accent); }
.status--beta       { --dot: var(--signal-dot); }
.status--conception::before { background: transparent; box-shadow: inset 0 0 0 1.5px var(--fg-muted); }

/* ---------- 9. Cards ---------------------------------------------------- */
.card {
  position: relative;
  padding: clamp(1.25rem, 1rem + 1vw, 2rem);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
}
[data-theme="dark"] .card, [data-theme="ink"] .card, [data-theme="navy"] .card {
  background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 45%);
}
.card--raised { box-shadow: var(--shadow-2); }
.card--interactive { transition: transform var(--dur-2) var(--ease-out), border-color var(--dur-2) ease; }
.card--interactive:hover { transform: translateY(-4px); border-color: var(--line-strong); }

/* ---------- 10. Backgrounds (CSS only) --------------------------------- */
/* Grain: sits between the section background and its content. */
.bg-grain::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: var(--grain-opacity, 0.07);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 220px 220px;
}
[data-theme="cream"].bg-grain::after, [data-theme="gold"].bg-grain::after { filter: invert(1); --grain-opacity: 0.05; }

.bg-glow {
  background-image: radial-gradient(60% 55% at var(--glow-x, 75%) var(--glow-y, 0%), rgba(210, 155, 56, var(--glow-a, 0.16)), transparent 70%);
}
.bg-signal {
  background-image: radial-gradient(55% 50% at var(--glow-x, 20%) var(--glow-y, 30%), rgba(127, 212, 224, var(--glow-a, 0.10)), transparent 70%);
}
/* Grid lines on a ::before layer (the mask must not touch the content). */
.bg-grid::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  background-position: center top;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at var(--grid-x, 50%) var(--grid-y, 40%), #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at var(--grid-x, 50%) var(--grid-y, 40%), #000 30%, transparent 75%);
}

/* ---------- 11. Device frames (neutral, drawn in CSS) ------------------ */
/* Size a frame ONLY through --phone-w / --laptop-w (min()/clamp() welcome, e.g.
   --phone-w: clamp(220px, 60vw, 320px)); bezel and radius are derived from it.
   In grids use minmax(0, 1fr) tracks so a frame never inflates a column.
   <div class="device-phone" style="--phone-w: 300px">
     <div class="device-phone__screen"><picture>…<img …></picture></div>
   </div>
   Screen ratio = 1290 / 2796 (all screenshots in assets/nouveau/img). */
.device-phone {
  --phone-w: 280px;
  --bezel: calc(var(--phone-w) * 0.034);
  --phone-r: calc(var(--phone-w) * 0.15);
  position: relative;
  width: min(var(--phone-w), 100%);
  min-width: 0;
  flex-shrink: 0;
  padding: var(--bezel);
  border-radius: var(--phone-r);
  background: linear-gradient(150deg, #2A3953 0%, #0E1729 42%, #1C2B45 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.16),
    inset 0 0 0 calc(var(--bezel) * 0.55) #05080F,
    0 0 0 1px rgba(0, 0, 0, 0.35),
    0 44px 90px -36px rgba(0, 0, 0, 0.7),
    0 18px 36px -20px rgba(0, 0, 0, 0.55);
}
.device-phone::before {          /* side button */
  content: "";
  position: absolute;
  right: -2px;
  top: 24%;
  width: 3px;
  height: 11%;
  border-radius: 0 3px 3px 0;
  background: linear-gradient(90deg, #121D31, #2A3953);
}
.device-phone__screen {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1290 / 2796;
  border-radius: calc(var(--phone-r) - var(--bezel));
  clip-path: inset(0 round calc(var(--phone-r) - var(--bezel)));
  background: var(--ink);
}
.device-phone__screen > img,
.device-phone__screen > picture,
.device-phone__screen > picture > img,
.device-phone__screen > svg,
.device-phone__screen > .device-screen-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}
.device-phone__screen::after {   /* neutral front camera */
  content: "";
  position: absolute;
  z-index: 3;
  top: 1.5%;
  left: 50%;
  width: 3.4%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #05080F;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06);
  transform: translateX(-50%);
}
.device-phone__screen::before {  /* soft glass sheen */
  content: "";
  position: absolute;
  z-index: 2;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0.10) 0%, rgba(255, 255, 255, 0) 32%);
}

/* <div class="device-laptop" style="--laptop-w: 640px">
     <div class="device-laptop__lid"><div class="device-laptop__screen">…</div></div>
     <div class="device-laptop__base" aria-hidden="true"></div>
   </div>  Screen ratio 16 / 10. */
.device-laptop {
  --laptop-w: 640px;
  position: relative;
  width: min(var(--laptop-w), 100%);
  min-width: 0;
  margin-inline: auto;
}
.device-laptop__lid {
  padding: 2.4% 2.4% 3%;
  border-radius: 16px 16px 6px 6px;
  background: linear-gradient(160deg, #263550, #0C1526 60%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14), 0 0 0 1px rgba(0, 0, 0, 0.35);
}
.device-laptop__screen {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border-radius: 6px;
  clip-path: inset(0 round 6px);
  background: var(--ink);
}
.device-laptop__screen > img,
.device-laptop__screen > picture > img,
.device-laptop__screen > svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}
.device-laptop__base {
  position: relative;
  width: 114%;
  margin-left: -7%;
  aspect-ratio: 100 / 3.4;
  border-radius: 2px 2px 14px 14px / 2px 2px 70% 70%;
  background: linear-gradient(180deg, #34445F 0%, #182439 55%, #0B1322 100%);
  box-shadow: 0 30px 50px -28px rgba(0, 0, 0, 0.8);
}
.device-laptop__base::before {   /* opening notch */
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 15%;
  height: 38%;
  border-radius: 0 0 8px 8px;
  background: #0B1322;
  transform: translateX(-50%);
}

/* Shared isometric stage (hero object → pile). */
.iso-stage { perspective: 1800px; perspective-origin: 50% 30%; }
.iso { transform: var(--iso); transform-style: preserve-3d; }

/* ---------- 12. Header (thin sticky glass) ----------------------------- */
.site-header {
  --hbg: rgba(12, 23, 41, 0.62);
  --hbg-solid: #0C1729;
  --hfg: var(--cream);
  --hmuted: #A9B6CA;
  --hline: rgba(245, 240, 230, 0.10);
  --haccent: var(--gold);
  --accent-strong: var(--gold);
  --on-accent: var(--ink);
  --accent-hover: var(--gold-hi);
  --focus: var(--gold-hi);
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  color: var(--hfg);
  background: var(--hbg);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  backdrop-filter: blur(16px) saturate(150%);
  border-bottom: 1px solid var(--hline);
  transition: background-color var(--dur-2) ease, color var(--dur-2) ease, border-color var(--dur-2) ease, box-shadow var(--dur-2) ease;
}
/* At the very top (set by core.js) the bar is transparent over the hero. */
.site-header[data-at-top] { --hbg: rgba(12, 23, 41, 0); --hline: transparent; }
.site-header:not([data-at-top]) { box-shadow: 0 12px 32px -22px rgba(0, 0, 0, 0.6); }
.site-header[data-on="light"] {
  --hbg: rgba(245, 240, 230, 0.74);
  --hbg-solid: var(--cream);
  --hfg: var(--navy);
  --hmuted: #4E5A70;
  --hline: rgba(20, 37, 63, 0.12);
  --haccent: var(--gold-ink);
  --accent-strong: var(--navy);
  --on-accent: var(--cream);
  --accent-hover: var(--navy-2);
  --focus: var(--navy);
}
.site-header[data-on="gold"] {
  --hbg: rgba(210, 155, 56, 0.78);
  --hbg-solid: var(--gold);
  --hfg: var(--ink);
  --hmuted: #342E22;
  --hline: rgba(7, 15, 28, 0.16);
  --haccent: var(--ink);
  --accent-strong: var(--ink);
  --on-accent: var(--cream);
  --accent-hover: var(--navy);
  --focus: var(--ink);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-header:not([data-at-top]) { background: var(--hbg-solid); }
}
.site-header__bar {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 28px);
  height: 100%;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  color: inherit;
  text-decoration: none;
  border-radius: var(--r-sm);
}
.brand__logo { width: 34px; height: 34px; border-radius: 9px; }
.brand__name { display: grid; line-height: 1.05; }
.brand__small {
  font-size: 0.5625rem;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--hmuted, var(--fg-muted));
}
.brand__big { font-size: 0.9375rem; font-weight: 800; letter-spacing: 0.02em; }
.brand__big em { font-style: normal; color: var(--haccent, var(--accent)); }

.site-menu { display: flex; align-items: center; gap: clamp(16px, 2vw, 32px); margin-left: auto; }
.site-nav__list { display: flex; align-items: center; gap: clamp(14px, 1.8vw, 28px); }
.site-nav__link {
  position: relative;
  display: inline-block;
  padding: 6px 0;
  color: var(--hmuted);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: color var(--dur-1) ease;
}
.site-nav__link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--haccent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-2) var(--ease-out);
}
.site-nav__link:hover, .site-nav__link[aria-current] { color: var(--hfg); }
.site-nav__link[aria-current]::after { transform: scaleX(1); }
.site-menu__utils { display: flex; align-items: center; gap: 14px; }
.site-menu__util {
  color: var(--hmuted);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-decoration: none;
  padding: 6px 0;
}
.site-menu__util:hover { color: var(--hfg); text-decoration: underline; }
.site-menu__cta { display: none; }
.site-header__actions { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.site-header__toggle {
  display: none;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--hline);
  border-radius: var(--r-pill);
  background: transparent;
  color: var(--hfg);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.site-header__toggle-icon { position: relative; width: 16px; height: 10px; }
.site-header__toggle-icon span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform var(--dur-2) var(--ease-out);
}
.site-header__toggle-icon span:first-child { top: 0; }
.site-header__toggle-icon span:last-child { bottom: 0; }
.site-header[data-menu-open] .site-header__toggle-icon span:first-child { transform: translateY(4px) rotate(45deg); }
.site-header[data-menu-open] .site-header__toggle-icon span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* < 1100 px: section links collapse into a dropdown panel. */
@media (max-width: 1099.98px) {
  .site-header__actions { margin-left: auto; }
  .site-header__toggle { display: inline-flex; }
  .site-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin: 0;
    display: grid;
    gap: var(--s-5);
    max-height: calc(100svh - var(--header-h));
    overflow-y: auto;
    padding: var(--s-5) var(--gutter) var(--s-6);
    background: var(--hbg-solid);
    border-bottom: 1px solid var(--hline);
    box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.6);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity var(--dur-2) var(--ease-out), transform var(--dur-2) var(--ease-out), visibility 0s linear var(--dur-2);
  }
  .site-header[data-menu-open] .site-menu {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity var(--dur-2) var(--ease-out), transform var(--dur-2) var(--ease-out), visibility 0s;
  }
  .site-nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav__link {
    display: block;
    padding: 14px 0;
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--hfg);
    border-bottom: 1px solid var(--hline);
  }
  .site-nav__link::after { display: none; }
  .site-nav__link[aria-current] { color: var(--haccent); }
}
@media (max-width: 559.98px) {
  .site-header__cta { display: none; }
  .site-menu__cta { display: inline-flex; justify-self: start; }
  /* The open sheet covers the whole screen under the bar: the hero's identical CTA no longer
     shows just below the menu's own button. (JS only: without JS the menu is static, see noscript.) */
  html.js .site-menu { min-height: calc(100svh - var(--header-h)); align-content: start; }
}

/* ---------- 13. Footer -------------------------------------------------- */
.site-footer {
  position: relative;
  overflow: hidden;
  padding-top: clamp(4rem, 3rem + 4vw, 7rem);
  border-top: 1px solid var(--line);
}
.site-footer__grid {
  display: grid;
  gap: var(--s-7);
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .site-footer__grid { grid-template-columns: 1.6fr 1fr 1fr; }
}
.site-footer__brand { display: grid; gap: var(--s-4); justify-items: start; }
.site-footer .brand__logo { width: 40px; height: 40px; border-radius: 10px; }
.site-footer .brand__big { font-size: 1.0625rem; }
.site-footer__tagline { max-width: 34rem; color: var(--fg-muted); font-size: var(--fs-small); }
.site-footer__mail {
  font-size: var(--fs-lead);
  font-weight: 700;
  color: var(--fg);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 0.25em;
}
.site-footer__mail:hover { color: var(--accent); }
.site-footer__title {
  margin-bottom: var(--s-4);
  font-size: var(--fs-2xs);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}
.site-footer__nav ul { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.site-footer__nav a { color: var(--fg-muted); font-size: var(--fs-small); text-decoration: none; }
.site-footer__nav a:hover { color: var(--fg); text-decoration: underline; }
.site-footer__mark {
  margin: clamp(3rem, 2rem + 4vw, 6rem) 0 0;
  padding-inline: var(--gutter);
  font-size: clamp(3rem, 12.6vw, 11.5rem);
  font-weight: 800;
  line-height: 0.82;
  letter-spacing: -0.045em;
  text-align: center;
  white-space: nowrap;
  --stroke-color: rgba(245, 240, 230, 0.22);
  --stroke-w: 1px;
  user-select: none;
}
.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--s-3) var(--s-6);
  position: relative;
  padding-block: var(--s-6) var(--s-7);
  margin-top: var(--s-6);
  color: var(--fg-muted);
  font-size: var(--fs-xs);
}
.site-footer__legal::before {   /* hairline aligned with the content, not with the gutters */
  content: "";
  position: absolute;
  top: 0;
  left: var(--gutter);
  right: var(--gutter);
  height: 1px;
  background: var(--line);
}
.site-footer__legal p { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3); }

/* ---------- 14. Old deep links ------------------------------------------ */
/* Zero-size targets injected by build.py at the top of a section, so the ids of the
   previous home page (/#produits, /#approche, /en/#apropos…) still land on the right
   section. Same position as the section's own id (scroll-padding-top handles the header). */
.anchor-alias {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

/* ---------- 15. Reduced motion: the calm version ----------------------- */
/* Same rules for the OS preference and for html[data-motion="reduced"]
   (set by core.js, also forced with ?motion=reduced for testing). */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 1ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
    transition-delay: 0ms !important;
  }
  .btn:active, .card--interactive:hover { transform: none; }
}
html[data-motion="reduced"] { scroll-behavior: auto; }
html[data-motion="reduced"] *,
html[data-motion="reduced"] *::before,
html[data-motion="reduced"] *::after {
  animation-duration: 1ms !important;
  animation-delay: 0ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 1ms !important;
  transition-delay: 0ms !important;
}
html[data-motion="reduced"] .btn:active,
html[data-motion="reduced"] .card--interactive:hover { transform: none; }

/* ===== hero.css ===== */
/* ==========================================================================
   #hero — « one object that transforms » (DESIGN.md § 9.1)
   Static by default (no JS / reduced motion = this). The intro is CSS keyframes
   gated on motion; js/hero.js adds the loops, the parallax and the scroll scrub.
   ========================================================================== */
#hero {
  z-index: 2;                    /* on scroll-out the object glides over the top of the next section */
  --glow-x: 74%;
  --glow-y: 46%;
  --glow-a: 0.13;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100svh;
  /* full-bleed under the sticky glass header */
  margin-top: calc(-1 * var(--header-h));
  padding-block: calc(var(--header-h) + clamp(1.75rem, 0.5rem + 2.6vw, 2.75rem)) clamp(3.5rem, 2rem + 4vw, 5.5rem);
}

/* The grain fades out before the bottom edge: no visible seam where the hero meets « pile ». */
#hero.bg-grain::after {
  -webkit-mask-image: linear-gradient(#000 55%, transparent 96%);
  mask-image: linear-gradient(#000 55%, transparent 96%);
}

#hero .hero__grid { display: grid; grid-template-columns: minmax(0, 1fr); align-items: center; gap: clamp(3rem, 2rem + 5vw, 4.5rem); }
@media (min-width: 900px) {
  #hero .hero__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1.5rem, 3.5vw, 4rem); }
}

/* ---------- Text ---------- */
#hero .hero__text { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: flex-start; }
#hero .hero__eyebrow { margin-bottom: clamp(1.1rem, 0.7rem + 1vw, 1.6rem); }
#hero .hero__title { font-size: 1rem; line-height: 1; letter-spacing: 0; }
#hero .hero__pre {
  display: block;
  max-width: 30em;
  margin-bottom: clamp(0.75rem, 0.45rem + 0.8vw, 1.2rem);
  font-size: clamp(1.0625rem, 0.95rem + 0.45vw, 1.375rem);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--fg);
}
#hero .hero__mega { display: block; font-size: clamp(3.75rem, 2.78rem + 4.13vw, 6.75rem); }
#hero .hero__line {
  display: block;
  overflow: hidden;              /* mask for the word rise */
  padding: 0.04em 0.16em 0.12em 0;
  margin-bottom: -0.12em;
}
#hero .hero__w { display: inline-block; }
/* short laptop screens: keep the CTAs above the fold */
@media (min-width: 900px) and (max-height: 820px) {
  #hero .hero__mega { font-size: clamp(3.75rem, 11.6vh, 6.75rem); }
  #hero .hero__eyebrow { margin-bottom: 0.9rem; }
}
#hero .hero__mega em { font-size: 1.14em; line-height: 0.86; }

#hero .hero__lead { margin-top: clamp(1.25rem, 0.9rem + 1.1vw, 1.9rem); max-width: 36rem; }
#hero .hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(1.5rem, 1.1rem + 1.1vw, 2.1rem); }
@media (max-width: 559.98px) {
  #hero .hero__ctas { align-self: stretch; }
  #hero .hero__ctas .btn { flex: 1 1 100%; }
}
#hero .hero__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: clamp(1.25rem, 0.9rem + 1vw, 1.75rem);
  color: var(--fg-muted);
  font-size: var(--fs-xs);
  font-weight: 600;
  line-height: 1.35;
}
#hero .hero__facts li { display: inline-flex; align-items: center; gap: 8px; }
@media (min-width: 900px) {
  /* two even rows instead of a 3 + 1 wrap */
  #hero .hero__facts { display: grid; grid-template-columns: repeat(2, auto); justify-content: start; gap: 10px 28px; }
}
#hero .hero__facts svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- The object ---------- */
#hero .hero__visual {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 34rem;
  margin-inline: auto;
  aspect-ratio: 100 / 92;
  container-type: inline-size;   /* glyph sizes + burst vectors in cqw */
  perspective: 1700px;
  perspective-origin: 50% 38%;
}
@media (min-width: 900px) {
  /* bleeds a little into the right gutter: the object is the protagonist */
  #hero .hero__visual { width: calc(100% + clamp(0px, (100vw - 1380px) / 2, 40px)); max-width: none; margin-inline: 0; }
}

#hero .hero__halo {
  position: absolute;
  inset: 4% -8% -6% 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(46% 42% at 66% 50%, rgba(210, 155, 56, 0.26), rgba(210, 155, 56, 0) 72%),
    radial-gradient(42% 10% at 52% 93%, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0) 72%);
}
#hero .hero__rings {
  position: absolute;
  left: -7%;
  top: -3%;
  z-index: -1;
  width: 114%;
  height: 106%;
  overflow: visible;
  pointer-events: none;
}
#hero .hero__ring { fill: none; stroke: rgba(245, 240, 230, 0.1); stroke-width: 1; vector-effect: non-scaling-stroke; }
#hero .hero__ring--dash { stroke: rgba(127, 212, 224, 0.3); stroke-dasharray: 2 9; stroke-linecap: round; }

#hero .hero__tilt,
#hero .hero__rig { position: absolute; inset: 0; transform-style: preserve-3d; }
/* Rest pose. The scroll scrub tweens these variables up to the shared iso angle
   (rotateX(55deg) rotateZ(-38deg), same order as --iso in base.css). */
#hero .hero__rig {
  --rx: 6;
  --ry: -14;
  --rz: 0;
  --s: 1;
  --tx: 0;
  --ty: 0;
  --pz: 64;
  transform:
    translate3d(calc(var(--tx) * 1%), calc(var(--ty) * 1%), 0) scale(var(--s))
    rotateX(calc(var(--rx) * 1deg)) rotateZ(calc(var(--rz) * 1deg)) rotateY(calc(var(--ry) * 1deg));
}
#hero .hero__laptop-pos { position: absolute; left: 0; top: 9%; width: 86%; transform-style: preserve-3d; }
#hero .hero__laptop { --laptop-w: 100%; }
#hero .hero__phone-pos { position: absolute; right: 3.5%; bottom: 2%; width: 31%; transform: translateZ(calc(var(--pz) * 1px)); transform-style: preserve-3d; }
#hero .hero__phone {
  --phone-w: 180px;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.16),
    inset 0 0 0 calc(var(--bezel) * 0.55) #05080F,
    0 0 0 1px rgba(0, 0, 0, 0.35),
    var(--shadow-3),
    0 24px 60px -30px rgba(210, 155, 56, 0.35);
}
@supports (width: 1cqw) {
  #hero .hero__phone { --phone-w: 31cqw; }
}
/* Only the first screenshot shows without JS; the others are decorative copies for the cycle. */
#hero .hero__screen + .hero__screen { clip-path: inset(100% 0 0 0); }

/* ---------- Floating glyphs ---------- */
#hero .hero__field,
#hero .hero__depth,
#hero .hero__par { position: absolute; inset: 0; pointer-events: none; }
#hero .hero__glyph { position: absolute; left: var(--x); top: var(--y); translate: -50% -50%; }
#hero .hero__glyph-in { display: block; }
#hero .hero__glyph svg { display: block; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

#hero .hero__tile .hero__glyph-in {
  display: grid;
  place-items: center;
  width: 52px;                    /* fallback without container units (iOS < 16) */
  width: clamp(38px, 10.5cqw, 64px);
  aspect-ratio: 1;
  border-radius: 30%;
  color: var(--gold);
  background: linear-gradient(155deg, #26406A 0%, #13233D 52%, #0C1729 100%);
  box-shadow:
    inset 0 0 0 1px rgba(245, 240, 230, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 0 0 1px rgba(0, 0, 0, 0.3),
    0 24px 44px -20px rgba(0, 0, 0, 0.9);
}
#hero .hero__tile--signal .hero__glyph-in { color: var(--signal); }
#hero .hero__tile svg { width: 48%; height: 48%; }
#hero .hero__depth--far { opacity: 0.9; }
@media (max-width: 559.98px) {
  #hero .hero__field { inset: 0 4%; }   /* keep edge glyphs on screen */
}
#hero .hero__dot .hero__glyph-in { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 12px 2px rgba(210, 155, 56, 0.45); }
#hero .hero__dot--signal .hero__glyph-in { background: var(--signal); box-shadow: var(--glow-signal); }

/* ---------- Controls: pause + current app ---------- */
#hero .hero__controls {
  position: absolute;
  left: 1%;
  bottom: 4%;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
}
#hero .hero__pause {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: rgba(12, 23, 41, 0.78);
  color: var(--fg);
  transition: border-color var(--dur-1) ease, color var(--dur-1) ease;
}
#hero .hero__pause[hidden] { display: none; }
#hero .hero__pause:hover { border-color: var(--accent); color: var(--accent); }
#hero .hero__pause svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
#hero .hero__pause-play { display: none; fill: currentColor; }
#hero .hero__pause[aria-pressed="true"] .hero__pause-bars { display: none; }
#hero .hero__pause[aria-pressed="true"] .hero__pause-play { display: inline; }

#hero .hero__chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  height: 36px;
  padding: 0 14px 0 12px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-pill);
  background: rgba(12, 23, 41, 0.78);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 18px 36px -20px rgba(0, 0, 0, 0.8);
  color: var(--fg);
  font-size: var(--fs-2xs);
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
@media (max-width: 559.98px) {
  #hero .hero__controls { left: 0; gap: 8px; }
  #hero .hero__chip { height: 34px; gap: 7px; padding: 0 12px 0 10px; font-size: 0.6875rem; }
}
#hero .hero__chip-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px rgba(210, 155, 56, 0.2); }
#hero .hero__chip-mask { display: block; height: 1.25em; line-height: 1.25; overflow: hidden; }
#hero .hero__chip-names { display: flex; flex-direction: column; }
#hero .hero__chip-names > span { display: block; height: 1.25em; }
#hero .hero__chip-bar {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 5px;
  height: 1px;
  background: var(--accent);
  opacity: 0.85;
  transform: scaleX(0);
  transform-origin: left;
}

/* ---------- Scroll cue (decorative) ---------- */
#hero .hero__cue {
  position: absolute;
  left: 50%;
  bottom: 18px;
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  translate: -50% 0;
  color: var(--fg-muted);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}
@media (min-width: 900px) and (min-height: 821px) {
  #hero .hero__cue { display: flex; }
}
#hero .hero__cue-line { width: 1px; height: 44px; background: linear-gradient(var(--accent), rgba(210, 155, 56, 0)); transform-origin: top; }

/* ---------- Intro (CSS only, ends visible; never under reduced motion) ---------- */
@keyframes hero-rise { from { transform: translate3d(0, 135%, 0); } to { transform: none; } }
@keyframes hero-in { from { opacity: 0; transform: translate3d(0, 22px, 0); } to { opacity: 1; transform: none; } }
@keyframes hero-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes hero-laptop {
  from { opacity: 0; transform: translate3d(0, 60px, -160px) rotateX(18deg); }
  to { opacity: 1; transform: none; }
}
@keyframes hero-phone {
  from { opacity: 0; transform: translate3d(18%, 80px, 0) rotate(6deg); }
  to { opacity: 1; transform: none; }
}
@keyframes hero-ui { from { opacity: 0; transform: translate3d(0, 28px, 0); } to { opacity: 1; transform: none; } }
/* glyphs leave the screens (vector --ox/--oy in cqw, hand-measured) and settle in orbit */
@keyframes hero-burst {
  0% { opacity: 0; transform: translate3d(calc(var(--ox) * 1cqw), calc(var(--oy) * 1cqw), 0) scale(0.2) rotate(-24deg); }
  28% { opacity: 1; }
  100% { opacity: 1; transform: none; }
}
@keyframes hero-blink { 50% { opacity: 0; } }
@keyframes hero-cue {
  0% { transform: none; }
  35% { transform: translate3d(0, 100%, 0) scaleY(0); }
  36% { transform: scaleY(0); }
  75%, 100% { transform: none; }
}

@media (prefers-reduced-motion: no-preference) {
  html:not([data-motion="reduced"]) #hero .hero__in { animation: hero-in 0.9s var(--ease-out) both; animation-delay: calc(0.1s + var(--i, 0) * 0.08s); }
  html:not([data-motion="reduced"]) #hero .hero__w { animation: hero-rise 1.1s var(--ease-out) both; animation-delay: calc(0.3s + var(--i, 0) * 0.08s); }
  html:not([data-motion="reduced"]) #hero .hero__laptop { animation: hero-laptop 1.5s var(--ease-out) 0.35s both; }
  html:not([data-motion="reduced"]) #hero .hero__phone { animation: hero-phone 1.4s var(--ease-out) 0.6s both; }
  html:not([data-motion="reduced"]) #hero .hero__ui-part {
    transform-box: fill-box;
    animation: hero-ui 1s var(--ease-out) both;
    animation-delay: calc(0.85s + var(--i, 0) * 0.09s);
  }
  html:not([data-motion="reduced"]) #hero .hero__glyph { animation: hero-burst 1.7s var(--ease-out) both; animation-delay: calc(1.4s + var(--i, 0) * 0.06s); }
  html:not([data-motion="reduced"]) #hero .hero__halo,
  html:not([data-motion="reduced"]) #hero .hero__rings { animation: hero-fade 1.8s ease 0.6s both; }
  html:not([data-motion="reduced"]) #hero .hero__controls { animation: hero-fade 0.9s ease 1.9s both; }
  html:not([data-motion="reduced"]) #hero .hero__ui-caret { animation: hero-blink 1.1s steps(1) 2.6s 4; }
  html:not([data-motion="reduced"]) #hero .hero__cue-text { animation: hero-fade 1s ease 2.4s both; }
  html:not([data-motion="reduced"]) #hero .hero__cue-line { animation: hero-fade 1s ease 2.4s both, hero-cue 2.4s var(--ease-in-out) 2.8s 2 both; }
}
/* js/hero.js: object still below the fold at load (phones) → its intro waits until it is seen */
#hero.hero--defer .hero__visual,
#hero.hero--defer .hero__visual * { animation-play-state: paused; }
/* the pause button also freezes the CSS loops */
#hero.hero--paused .hero__ui-caret,
#hero.hero--paused .hero__cue-line { animation-play-state: paused; }

/* ===== pile.css ===== */
/* ==========================================================================
   pile — « Ce qu’il y a sous l’écran » (DESIGN.md § 9.2)
   Default = static (no JS, reduced motion, < 900 px): exploded diagram, chapters stacked.
   #pile.pile--live (set by pile.js at ≥ 900 px with motion): full-bleed sticky visual,
   chapters alternate left / right over it, the story is scrubbed by ScrollTrigger.
   Geometry: the stack box is 640 × 900 units (--u, container query units). Each plate is
   a flat 300 × 600 rounded rectangle projected by matrix() = the shared --iso angle
   (rotateX 55° · rotateZ −38°), orthographic. Thickness = box-shadows offset in plate
   space (--ex, --ey) so that each step lands 1 unit straight below on screen.
   ========================================================================== */
#pile { padding-bottom: 0; }
#pile .pile__fade {
  position: absolute; inset: 0 0 auto; z-index: -1; height: 20vh; pointer-events: none;
  background: linear-gradient(var(--deep), rgba(12, 23, 41, 0));
}
#pile .pile__head { position: relative; margin-bottom: clamp(1rem, 3vw, 3rem); }

/* ---------- Visual ---------- */
#pile .pile__visual {
  position: relative; z-index: 0; display: grid; place-items: center;
  padding: var(--s-6) var(--gutter) var(--s-7); overflow: clip;
}
#pile .pile__stack {
  --u: calc(min(100vw - 6.5rem, 30rem) / 640);   /* fallback for browsers without container units (iOS < 16) */
  position: relative; z-index: 1; container-type: inline-size; pointer-events: none;
  width: min(100% - 6.5rem, 30rem); aspect-ratio: 640 / 900;
  margin-left: auto;             /* phones: room for the labels on the left */
}
@supports (width: 1cqw) {
  #pile .pile__stack { --u: calc(100cqw / 640); }
}
@media (min-width: 640px) {
  #pile .pile__stack { width: min(54%, 30rem); margin-left: 0; translate: 14% 0; }
}

/* Layers: exploded by default (static diagram). pile.js only moves .pile__layer-in. */
#pile .pile__layer, #pile .pile__layer-in { position: absolute; inset: 0; }
#pile .pile__layer[data-k="0"] { z-index: 6; transform: translateY(-26.6667%); }
#pile .pile__layer[data-k="1"] { z-index: 5; transform: translateY(-13.3333%); }
#pile .pile__layer[data-k="2"] { z-index: 4; }
#pile .pile__layer[data-k="3"] { z-index: 3; transform: translateY(13.3333%); }
#pile .pile__layer[data-k="4"] { z-index: 2; transform: translateY(26.6667%); }

#pile .pile__plate {
  --ex: calc(-1.0734 * var(--u));
  --ey: calc(1.3739 * var(--u));
  position: absolute; left: calc(17.1 * var(--u)); top: calc(362.37 * var(--u));
  width: calc(300 * var(--u)); height: calc(600 * var(--u)); border-radius: calc(44 * var(--u));
  background: linear-gradient(155deg, #243C63 0%, #16284A 48%, #0F1D35 100%);
  transform-origin: 0 0;
  transform: matrix(0.78801, -0.35313, 0.61566, 0.45198, 0, 0);
  outline: calc(3 * var(--u)) solid transparent; outline-offset: calc(-3 * var(--u));
  box-shadow:
    inset 0 0 0 calc(1.6 * var(--u)) rgba(245, 240, 230, 0.17),
    calc(var(--ex) * 2) calc(var(--ey) * 2) 0 #2A4065,
    calc(var(--ex) * 4) calc(var(--ey) * 4) 0 #213452,
    calc(var(--ex) * 6) calc(var(--ey) * 6) 0 #182840,
    calc(var(--ex) * 8) calc(var(--ey) * 8) 0 #111D30,
    calc(var(--ex) * 10) calc(var(--ey) * 10) 0 #0A1323;
  transition: outline-color var(--dur-2) var(--ease-out);
}
#pile .pile__layer[data-k="4"] .pile__plate { background: linear-gradient(155deg, #1D3253 0%, #12223D 50%, #0C182C 100%); }
#pile .pile__plate--screen { background: #070D18; }
#pile .pile__plate::before, #pile .pile__plate::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; opacity: 0; pointer-events: none;
  transition: opacity var(--dur-2) var(--ease-out);
}
#pile .pile__plate::before {     /* gold edge of the active layer (over the dark edge, under the art) */
  z-index: -1;
  box-shadow:
    calc(var(--ex) * 2) calc(var(--ey) * 2) 0 #E8B55A,
    calc(var(--ex) * 4) calc(var(--ey) * 4) 0 #C8984A,
    calc(var(--ex) * 6) calc(var(--ey) * 6) 0 #A97C34,
    calc(var(--ex) * 8) calc(var(--ey) * 8) 0 #8A6022,
    calc(var(--ex) * 10) calc(var(--ey) * 10) 0 #6E4A12;
}
#pile .pile__plate::after {      /* veil over face + edge of the layers out of focus */
  --veil: rgba(7, 15, 28, 0.6);
  z-index: 3; background: var(--veil);
  box-shadow: calc(var(--ex) * 3) calc(var(--ey) * 3) 0 var(--veil), calc(var(--ex) * 6) calc(var(--ey) * 6) 0 var(--veil), calc(var(--ex) * 10) calc(var(--ey) * 10) 0 var(--veil);
}
#pile .pile__layer.is-active .pile__plate { outline-color: var(--gold); }
#pile .pile__layer.is-active .pile__plate::before,
#pile.pile--focus .pile__layer:not(.is-active) .pile__plate::after { opacity: 1; }

#pile .pile__art { position: absolute; inset: 0; width: 100%; height: 100%; }
#pile .pile__screen {
  position: absolute; inset: calc(9 * var(--u));
  width: calc(100% - 18 * var(--u)); height: calc(100% - 18 * var(--u)); border-radius: calc(35 * var(--u));
  object-fit: cover; object-position: top center;
}
#pile .pile__shadow {
  position: absolute; left: 50%; top: calc(482 * var(--u)); width: calc(700 * var(--u)); height: calc(300 * var(--u));
  translate: -50% -50%;
  background: radial-gradient(closest-side, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0));
}

/* Labels: anchored on the left tip of each plate, leader line + dot. */
#pile .pile__label {
  position: absolute; z-index: 8; right: calc(605.14 * var(--u)); top: calc(366.72 * var(--u));
  display: flex; align-items: center; gap: 0.6em;
  margin-top: -0.7rem; padding-right: calc(70 * var(--u));
  font-size: var(--fs-small); font-weight: 700; line-height: 1.4rem; white-space: nowrap; color: var(--fg);
}
#pile .pile__label::before {
  content: ""; position: absolute; right: 0; top: 50%; width: calc(62 * var(--u)); height: 1px;
  background: linear-gradient(90deg, rgba(210, 155, 56, 0.25), var(--accent));
}
#pile .pile__label::after {
  content: ""; position: absolute; right: -3px; top: calc(50% - 3px); width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 0 4px rgba(210, 155, 56, 0.18);
}
#pile .pile__label-num { font-family: var(--font-mono); font-size: var(--fs-2xs); font-weight: 500; letter-spacing: 0.08em; color: var(--accent); }
@media (max-width: 639.98px) {
  #pile .pile__label { flex-direction: column; align-items: flex-end; gap: 0; margin-top: -1.1rem; font-size: var(--fs-2xs); line-height: 1.1rem; padding-right: calc(46 * var(--u)); }
  #pile .pile__label::before { top: 0.55rem; width: calc(40 * var(--u)); }
  #pile .pile__label::after { top: calc(0.55rem - 3px); }
}

/* Decor used only by the live story */
#pile .pile__glow, #pile .pile__rings, #pile .pile__beams, #pile .pile__badges, #pile .pile__sheen { display: none; }

/* ---------- Chapters ---------- */
#pile .pile__flow { position: relative; z-index: 1; }
#pile .pile__chapters {          /* an <ol class="wrap">: restore what the ol reset removes */
  display: grid; gap: var(--s-7); margin-inline: auto; padding: var(--s-6) var(--gutter) var(--section-pad);
}
@media (min-width: 900px) {
  #pile .pile__chapters { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-8); }
}
#pile .pile__chapter-in {
  display: grid; align-content: start; gap: var(--s-4); max-width: 36rem;
  padding-top: var(--s-5); border-top: 1px solid var(--line);
}
#pile .pile__num { font-family: var(--font-mono); font-size: var(--fs-2xs); letter-spacing: 0.14em; color: var(--fg-muted); }
#pile .pile__num span { color: var(--accent); }
#pile .pile__title { font-size: clamp(2.1rem, 1.2rem + 2.4vw, 3.5rem); font-weight: 800; line-height: 0.98; letter-spacing: -0.04em; }
#pile .pile__title em {
  padding-right: 0.04em; font-family: var(--font-serif); font-style: italic; font-weight: 400;
  font-size: 1.1em; letter-spacing: -0.01em; color: var(--accent);
}
#pile .pile__text { color: var(--fg-muted); max-width: 34rem; }
#pile .pile__chips { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); font-size: var(--fs-small); font-weight: 700; }
#pile .pile__chips li { display: inline-flex; align-items: center; gap: 0.6em; }
#pile .pile__chips li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }
#pile .pile__care { display: grid; gap: var(--s-2); }
#pile .pile__care li { display: flex; align-items: center; gap: 0.75em; font-weight: 600; }
#pile .pile__care li::before {
  content: ""; flex: 0 0 auto; width: 7px; height: 7px; border-radius: 50%;
  background: var(--signal-dot); box-shadow: 0 0 0 4px rgba(127, 212, 224, 0.12);
}

/* The five layers, in words (chapter 2) */
#pile .pile__rows { display: grid; margin-top: var(--s-2); }
#pile .pile__row {
  position: relative; display: grid; grid-template-columns: 2.25rem minmax(0, 1fr); gap: var(--s-2);
  padding-block: 0.65rem; border-top: 1px solid var(--line);
}
#pile .pile__row::before {
  content: ""; position: absolute; left: 0; top: -1px; width: 100%; height: 1px; background: var(--accent);
  transform: scaleX(0); transform-origin: left; transition: transform var(--dur-3) var(--ease-out);
}
#pile .pile__row-num { padding-top: 0.25rem; font-family: var(--font-mono); font-size: var(--fs-2xs); color: var(--accent); transition: color var(--dur-1) ease; }
#pile .pile__row-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.2rem 0.75rem; }
#pile .pile__row-name { font-weight: 700; transition: color var(--dur-1) ease; }
#pile .pile__row-text { margin-top: 0.1rem; font-size: var(--fs-small); line-height: 1.45; color: var(--fg-muted); }

/* ---------- Outro: the cream dome (static: a rounded cream block) ---------- */
#pile .pile__outro { position: relative; isolation: isolate; padding-block: var(--section-pad); background-color: transparent; text-align: center; }
#pile .pile__outro-bg { position: absolute; inset: 0; z-index: -1; isolation: isolate; border-radius: var(--r-xl) var(--r-xl) 0 0; }
#pile .pile__outro-in { display: grid; justify-items: center; gap: var(--s-6); }
#pile .pile__statement { max-width: 15em; font-size: clamp(2.25rem, 1rem + 4.4vw, 5.25rem); }
#pile .pile__outro-link { font-size: var(--fs-lead); }

/* ==========================================================================
   Live story (≥ 900 px, motion allowed) — class set by pile.js
   ========================================================================== */
#pile.pile--live {
  --stack-w: min(36vw, 31rem, calc((100svh - var(--header-h) - 6rem) * 0.7111));
  --chap-w: min(25rem, calc((min(100vw, 1360px) - var(--stack-w) * 1.1) / 2 - var(--gutter) - 2rem));
  /* chapter 2 is wider: pile.js slides the exploded stack left (its labels need ≈ 11rem) */
  --ch2-w: min(30rem, calc(min(100vw, 1360px) - 2 * var(--gutter) - 13rem - var(--stack-w) * 0.92));
}
#pile.pile--live .pile__stage { display: grid; }
#pile.pile--live .pile__visual, #pile.pile--live .pile__flow { grid-area: 1 / 1; min-width: 0; }
#pile.pile--live .pile__visual { position: sticky; top: var(--header-h); align-self: start; height: calc(100svh - var(--header-h)); padding: 0; }
#pile.pile--live .pile__stack { width: var(--stack-w); margin: 0; translate: none; }
#pile.pile--live .pile__stack, #pile.pile--live .pile__layer-in { will-change: transform; }

#pile.pile--live .pile__label {
  opacity: 0; transform: translateX(-14px); color: var(--fg-muted);
  transition: opacity var(--dur-2) var(--ease-out), transform var(--dur-2) var(--ease-out), color var(--dur-1) ease;
}
#pile.pile--live .pile__chips { display: none; }   /* the diagram shows the store badges itself */
#pile.pile--live .pile__label::before { background: var(--line-strong); }
#pile.pile--live .pile__label::after { background: var(--fg-muted); box-shadow: none; }
#pile.pile--live .pile__layer.is-shown .pile__label { opacity: 1; transform: none; }
#pile.pile--live .pile__layer.is-active .pile__label { color: var(--fg); }
#pile.pile--live .pile__layer.is-active .pile__label::before { background: linear-gradient(90deg, rgba(210, 155, 56, 0.25), var(--accent)); }
#pile.pile--live .pile__layer.is-active .pile__label::after { background: var(--accent); box-shadow: 0 0 0 4px rgba(210, 155, 56, 0.2), 0 0 16px rgba(210, 155, 56, 0.7); }

#pile.pile--live .pile__sheen { display: block; position: absolute; z-index: 2; inset: calc(9 * var(--u)); overflow: hidden; border-radius: calc(35 * var(--u)); }
#pile .pile__sheen span {
  position: absolute; inset: -20% 0;
  background: linear-gradient(100deg, rgba(232, 181, 90, 0) 30%, rgba(232, 181, 90, 0.45) 50%, rgba(232, 181, 90, 0) 70%);
}
#pile.pile--live .pile__glow {
  display: block; position: absolute; z-index: 0; left: 50%; top: 48%;
  width: calc(900 * var(--u)); height: calc(640 * var(--u)); translate: -50% -50%; opacity: 0;
  background: radial-gradient(closest-side, rgba(210, 155, 56, 0.3), rgba(210, 155, 56, 0.08) 55%, rgba(210, 155, 56, 0));
}
#pile.pile--live .pile__rings { display: block; position: absolute; inset: 0; z-index: 1; }
#pile .pile__ring {              /* centred with margins, not `translate`: GSAP scales it */
  position: absolute; left: 50%; top: 52.8%; width: calc(640 * var(--u)); height: calc(367 * var(--u));
  margin: calc(-183.5 * var(--u)) 0 0 calc(-320 * var(--u));
  border: 1.5px solid rgba(127, 212, 224, 0.75); border-radius: 50%; opacity: 0;
  box-shadow: 0 0 24px -4px rgba(127, 212, 224, 0.45), inset 0 0 24px -4px rgba(127, 212, 224, 0.3);
}
#pile.pile--live .pile__beams { display: block; position: absolute; inset: 0; z-index: 7; width: 100%; height: 100%; overflow: visible; clip-path: inset(48% 0 52% 0); }
#pile.pile--live .pile__badges { display: block; position: absolute; inset: 0; z-index: 8; }
#pile .pile__badge {             /* a 0 × 0 anchor; the pill is centred on it (GSAP moves the anchor) */
  position: absolute; left: var(--x); top: var(--y); width: 0; height: 0;
  display: flex; justify-content: center; align-items: center; opacity: 0;
}
#pile .pile__badge-off, #pile .pile__badge-on {
  display: inline-flex; align-items: center; gap: 0.55em; padding: 0.5em 1em;
  border: 1px solid var(--line-strong); border-radius: var(--r-pill); background: rgba(7, 15, 28, 0.85);
  color: var(--fg-muted); font-size: var(--fs-xs); font-weight: 700; white-space: nowrap;
}
#pile .pile__badge-off { position: relative; }
#pile .pile__badge-on { position: absolute; inset: -1px; border-color: var(--gold); background: #13233D; color: var(--cream); box-shadow: var(--glow-gold); opacity: 0; }
#pile .pile__badge-off::before, #pile .pile__badge-on::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--line-strong); }
#pile .pile__badge-on::before { background: var(--ok); box-shadow: 0 0 10px rgba(91, 214, 160, 0.8); }

#pile.pile--live .pile__chapters { display: block; padding-block: 0; }
#pile.pile--live .pile__chapter { display: flex; align-items: center; min-height: 90svh; }
#pile.pile--live .pile__chapter--1 { min-height: 80svh; }
#pile.pile--live .pile__chapter--2 { min-height: 150svh; align-items: flex-start; }
#pile.pile--live .pile__chapter:nth-child(even) { justify-content: flex-end; }
#pile.pile--live .pile__chapter-in { width: var(--chap-w); padding-top: 0; border-top: 0; }
#pile.pile--live .pile__chapter--2 .pile__chapter-in { position: sticky; top: calc(var(--header-h) + 4svh); width: var(--ch2-w); }
/* chapter 4 sits next to the pulsing rings: a local ink veil keeps its text clean */
#pile.pile--live .pile__chapter--4 .pile__chapter-in {
  position: relative; z-index: 9; width: calc(var(--chap-w) + 4rem); padding: 2rem; margin: -2rem;
  background: radial-gradient(closest-side, rgba(7, 15, 28, 0.88) 65%, rgba(7, 15, 28, 0));
}
@media (max-height: 800px) {
  #pile.pile--live .pile__title { font-size: clamp(2rem, 1.2rem + 1.6vw, 2.75rem); }
  #pile.pile--live .pile__row-text { font-size: 0.875rem; }
}
#pile.pile--live .pile__row-name, #pile.pile--live .pile__row-num { color: var(--fg-muted); }
#pile.pile--live .pile__row.is-active .pile__row-name { color: var(--fg); }
#pile.pile--live .pile__row.is-active .pile__row-num { color: var(--accent); }
#pile.pile--live .pile__row.is-active::before { transform: scaleX(1); }

#pile.pile--live .pile__outro { display: grid; align-items: center; padding-block: 16svh 9svh; }
#pile.pile--live .pile__outro-bg { border-radius: 0; }

/* ===== services.css ===== */
/* services — theme cream + bg-grain.
   Signature: a giant headline with an outline « ghost » copy offset behind it (scrubbed on desktop),
   then the 8 services as ARIA tabs; the selected service's name wipes from outline to filled.
   No JS / reduced motion: tablist stays hidden → the 8 services are shown as stacked cards. */

.services__defs { position: absolute; width: 0; height: 0; overflow: hidden; }

/* « pile » ends on a cream page that flows straight into this section: a shorter top padding
   keeps the two cream blocks reading as one continuous page. */
#services { padding-top: clamp(2.5rem, 1.5rem + 3vw, 4.5rem); }

/* ---------- Head: title + outline ghost ---------------------------------- */
#services .services__head { max-width: none; }
#services .services__head .lead { max-width: 40rem; }
.services__titlebox { position: relative; isolation: isolate; }
#services .services__title {
  font-size: clamp(3rem, 1.2rem + 7.6vw, 8.5rem);
  line-height: 0.92;
  text-wrap: wrap;
}
#services .services__ghost {
  position: absolute;
  inset: 0;
  z-index: -1;
  margin: 0;
  pointer-events: none;
  user-select: none;
  --stroke-w: 1px;
  --stroke-color: rgba(20, 37, 63, 0.28);
  transform: translate(0.03em, 0.045em);
}
#services .services__ghost em {
  color: var(--bg);
  -webkit-text-stroke: 2px rgba(148, 100, 20, 0.35);   /* 2 × 1 px, see .outline-text */
}
@media (max-width: 639.98px) {
  #services .services__ghost { display: none; }
}

/* ---------- Layout ------------------------------------------------------- */
#services .services__ui { display: grid; gap: clamp(20px, 3vw, 56px); }
#services .services__tablist[hidden] { display: none; }

/* ---------- Tabs (mobile first: 2-column tiles) -------------------------- */
#services .services__tablist {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.services__tab {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  min-height: 60px;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: transparent;
  color: var(--fg);
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.005em;
  text-align: left;
  -webkit-tap-highlight-color: transparent;
  transition: border-color var(--dur-1) ease;
}
.services__tab::before {          /* selected surface (paper card) */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: var(--surface);
  box-shadow: var(--shadow-1);
  opacity: 0;
  transition: opacity var(--dur-2) var(--ease-out);
}
@media (hover: hover) {
  .services__tab:not([aria-selected="true"]):hover { border-color: var(--line-strong); }
}
.services__tab[aria-selected="true"] { border-color: var(--accent); box-shadow: inset 0 0 0 0.5px var(--accent); }
.services__tab[aria-selected="true"]::before { opacity: 1; }
.services__tab-num { display: none; }
.services__tab-ico {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  color: var(--accent);
}
.services__tab-name { min-width: 0; overflow-wrap: break-word; }   /* safety net: a long word never spills out of its tile */
.services__tab-arrow { display: none; }
/* Phones: the longest words (« Automatisation », « Transformation », “transformation”,
   “Maintenance”) must fit their tile whole. < 420 px: tighter padding and gap; < 375 px: no
   pictogram either, and every tile keeps to two lines (360 px is a common Android width). */
@media (max-width: 419.98px) {
  .services__tab { gap: 8px; padding-inline: 10px; }
}
@media (max-width: 374.98px) {
  .services__tab { gap: 6px; }
  .services__tab-ico { display: none; }
}

/* ---------- Panels ------------------------------------------------------- */
/* No-JS / before init: a grid of cards. */
#services .services__panels {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 30rem), 1fr));
  gap: 16px;
}
#services .services__panel {
  position: relative;
  isolation: isolate;
  overflow: clip;
  min-width: 0;
  padding: clamp(1.5rem, 1rem + 2vw, 2.5rem);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
}
/* Tabs mode (JS): one card; every panel is stacked in the same grid cell so the card keeps
   the height of the tallest service → switching never shifts the page below. */
#services .services__ui--tabs .services__panels {
  position: relative;
  isolation: isolate;
  overflow: clip;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  padding: clamp(1.5rem, 0.75rem + 3.4vw, 3.5rem);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: var(--surface);
  box-shadow: var(--shadow-1);
}
#services .services__ui--tabs .services__panel {
  position: static;
  grid-area: 1 / 1;
  overflow: visible;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
}
#services .services__panel--inactive { visibility: hidden; }
#services .services__ui--tabs .services__panel-title { font-size: clamp(2rem, 1.1rem + 2.8vw, 3.75rem); }
#services .services__ui:not(.services__ui--tabs) .services__panel-art { display: none; }
#services .services__panel:focus-visible { outline-offset: 12px; border-radius: var(--r-md); }

.services__panel-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: clamp(1.25rem, 0.75rem + 2vw, 2.25rem);
}
.services__panel-ico {
  display: grid;
  place-items: center;
  width: clamp(52px, 44px + 1.5vw, 64px);
  aspect-ratio: 1;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--bg);
  color: var(--accent);
}
.services__panel-ico svg {
  width: 46%;
  height: 46%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.services__panel-title {
  margin-bottom: clamp(0.85rem, 0.6rem + 1vw, 1.25rem);
  font-size: clamp(1.75rem, 1.2rem + 1.6vw, 2.75rem);   /* cards (no JS) */
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.035em;
  --stroke-w: 1px;
}
.services__panel-desc {
  max-width: 36rem;
  font-size: var(--fs-lead);
  font-weight: 500;
  line-height: 1.5;
  color: var(--fg);
}
.services__panel-label {
  margin-top: clamp(1.5rem, 1rem + 1.5vw, 2.25rem);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}
#services .services__panel-list {
  margin-top: 0.75rem;
  max-width: 38rem;
}
#services .services__panel-list li {
  position: relative;
  padding: 0.8rem 0 0.8rem 1.75rem;
  border-top: 1px solid var(--line);
  line-height: 1.45;
}
#services .services__panel-list li:last-child { border-bottom: 1px solid var(--line); }
#services .services__panel-list li::before {      /* small ring marker, decorative */
  content: "";
  position: absolute;
  left: 2px;
  top: calc(0.8rem + 0.45em);
  width: 9px;
  height: 9px;
  border: 1.5px solid var(--accent);
  border-radius: 50%;
}
.services__panel-tech { margin-top: 1.25rem; }
.services__panel-art {
  position: absolute;
  z-index: -1;
  right: -14%;
  bottom: -22%;
  width: clamp(160px, 22vw, 300px);
  height: auto;
  aspect-ratio: 1;
  fill: none;
  stroke: currentColor;
  stroke-width: 0.1;
  stroke-linecap: round;
  stroke-linejoin: round;
  color: var(--accent);
  opacity: 0.12;
  pointer-events: none;
}

/* ---------- Closing line ------------------------------------------------- */
.services__more {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  margin-top: clamp(0.5rem, 0.25rem + 1vw, 1rem);
}
.services__more-text {
  max-width: 40rem;
  font-size: var(--fs-lead);
  font-weight: 700;
  line-height: 1.35;
}
.services__more-soft { display: block; font-weight: 500; color: var(--fg-muted); }

/* ---------- Desktop ------------------------------------------------------ */
@media (min-width: 640px) {
  .services__tab { font-size: 0.9375rem; padding-inline: 14px; }
}
@media (min-width: 1180px) {      /* lead moves to the right of the giant title */
  #services .services__head {
    grid-template-columns: minmax(0, 1fr) minmax(0, 22rem);
    column-gap: 3rem;
    align-items: end;
  }
  #services .services__head .eyebrow { grid-column: 1 / -1; }
  #services .services__head .lead { padding-bottom: 0.5rem; font-size: 1.1875rem; }
}
@media (min-width: 900px) {
  #services .services__ui--tabs {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    grid-template-rows: auto 1fr;
    grid-template-areas: "tabs panel" "more panel";
    row-gap: 0;
    align-items: start;
  }
  #services .services__ui--tabs .services__tablist { grid-area: tabs; }
  #services .services__ui--tabs .services__panels { grid-area: panel; }
  #services .services__ui--tabs .services__more {
    grid-area: more;
    align-self: end;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    margin-top: 2.5rem;
  }
  #services .services__tablist {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    border-top: 1px solid var(--line);
  }
  .services__tab {
    display: grid;
    grid-template-columns: 1.75rem 1.5rem minmax(0, 1fr) 1.25rem;
    gap: 14px;
    min-height: 68px;
    padding: 12px 16px 12px 12px;
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    font-size: clamp(1rem, 0.6rem + 0.6vw, 1.1875rem);
  }
  .services__tab::before {
    inset: 5px -6px;
    border-radius: var(--r-md);
    opacity: 1;
    clip-path: inset(0 100% 0 0 round 16px);
    transition: clip-path var(--dur-2) var(--ease-out);
  }
  .services__tab[aria-selected="true"]::before { clip-path: inset(0 0 0 0 round 16px); }
  .services__tab::after {         /* gold-ink bar on the left of the selected tab */
    content: "";
    position: absolute;
    left: -6px;
    top: 18px;
    bottom: 18px;
    width: 3px;
    border-radius: 3px;
    background: var(--accent);
    transform: scaleY(0);
    transition: transform var(--dur-2) var(--ease-out);
  }
  .services__tab[aria-selected="true"]::after { transform: scaleY(1); }
  .services__tab-num {
    display: block;
    font-family: var(--font-mono);
    font-size: var(--fs-2xs);
    font-weight: 500;
    letter-spacing: 0.06em;
    color: var(--fg-muted);
  }
  .services__tab-name { transition: transform var(--dur-2) var(--ease-out); }
  .services__tab-arrow {
    display: block;
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    color: var(--accent);
    opacity: 0;
    transform: translateX(-8px);
    transition: opacity var(--dur-1) ease, transform var(--dur-2) var(--ease-out);
  }
  .services__tab:hover .services__tab-name { transform: translateX(4px); }
  .services__tab:hover .services__tab-arrow { opacity: 0.5; transform: translateX(-3px); }
  .services__tab[aria-selected="true"] .services__tab-num { color: var(--accent); }
  .services__tab[aria-selected="true"] .services__tab-name { transform: translateX(4px); }
  .services__tab[aria-selected="true"] .services__tab-arrow { opacity: 1; transform: none; }
  .services__tab[aria-selected="true"],
  .services__tab:not([aria-selected="true"]):hover { border-color: var(--line); box-shadow: none; }
  .services__tab:focus-visible { outline-offset: -2px; border-radius: var(--r-md); }
}

/* ===== apps.css ===== */
/* ==========================================================================
   apps — « Nos applications » (theme navy)
   Default (no JS, reduced motion) = a calm grid of 7 cards.
   .apps--rail is added by apps.js only when motion is allowed:
     < 900 px (or < 680 px tall) → native swipe row with scroll-snap;
     ≥ 900 px and ≥ 680 px tall  → sticky stage, vertical scroll moves the track sideways.
   ========================================================================== */
#apps {
  --apps-gap: clamp(1.5rem, 1rem + 2.4vw, 3.5rem);
  --apps-phone: clamp(150px, 42vw, 220px);
}

/* ---------- Stage, glow, track ------------------------------------------ */
#apps .apps__stage { position: relative; }
#apps .apps__glow {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(46% 42% at 70% 46%, rgba(210, 155, 56, 0.12), transparent 70%);
}
#apps .apps__track {             /* behaves like .wrap in the calm grid */
  position: relative;
  width: 100%;
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Intro (section head) ---------------------------------------- */
#apps .apps__intro {
  display: grid;
  align-content: center;
  justify-items: start;
  gap: var(--s-5);
  max-width: 62rem;
  margin-bottom: clamp(3rem, 2rem + 4vw, 6rem);
}
#apps .apps__hint {
  display: none;
  align-items: center;
  gap: 0.75em;
  margin-top: var(--s-2);
  color: var(--fg-muted);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
#apps .apps__hint svg { width: 1.25rem; height: 1.25rem; color: var(--accent); }

/* ---------- Calm grid ---------------------------------------------------- */
#apps .apps__list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 17.5rem), 1fr));
  gap: var(--s-8) var(--apps-gap);
}
#apps .apps__item { min-width: 0; }

/* ---------- Card --------------------------------------------------------- */
#apps .apps__card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "top" "name" "kind" "fig" "pitch" "for" "links";
  align-content: start;
  height: 100%;
  padding-top: var(--s-4);
  border-top: 1px solid var(--line-strong);
}
#apps .apps__index {
  grid-area: top;
  align-self: center;
  font-family: var(--font-mono);
  font-size: var(--fs-2xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--accent);
}
#apps .apps__status { grid-area: top; justify-self: end; align-self: center; }
#apps .apps__name { grid-area: name; margin-top: var(--s-5); font-size: clamp(1.3rem, 1.1rem + 0.5vw, 1.55rem); }
#apps .apps__kind { grid-area: kind; margin-top: var(--s-2); }

#apps .apps__figure {
  grid-area: fig;
  position: relative;
  display: grid;
  justify-items: start;
  gap: var(--s-4);
  margin-block: var(--s-6) var(--s-5);
  perspective: 1100px;
}
#apps .apps__num {               /* giant outline index behind the phone (decorative) */
  position: absolute;
  z-index: 0;
  top: -0.04em;
  right: -0.02em;
  font-size: clamp(6rem, 3.5rem + 7vw, 10.5rem);
  font-weight: 800;
  line-height: 0.8;
  letter-spacing: -0.06em;
  --stroke-w: 1px;
  --stroke-color: rgba(245, 240, 230, 0.2);
  pointer-events: none;
  user-select: none;
}
#apps .apps__tilt {
  position: relative;
  z-index: 1;
  width: min(var(--apps-phone), 100%);
  transform-style: preserve-3d;
}
#apps .apps__tilt::after {        /* soft gold floor light under the phone */
  content: "";
  position: absolute;
  z-index: -1;
  left: 4%;
  right: 4%;
  bottom: -28px;
  height: 56px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(210, 155, 56, 0.3), transparent);
  pointer-events: none;
}
#apps .apps__phone { --phone-w: var(--apps-phone); }
#apps .apps__alt { clip-path: inset(100% 0 0 0); }   /* second screen, revealed on hover/focus */
#apps .apps__caption {
  position: relative;
  z-index: 1;
  max-width: calc(var(--apps-phone) + 3rem);
  font-family: var(--font-mono);
  font-size: var(--fs-2xs);
  line-height: 1.45;
  letter-spacing: 0.02em;
  color: var(--fg-muted);
}

#apps .apps__pitch { grid-area: pitch; max-width: 30rem; font-size: var(--fs-small); line-height: 1.55; }
#apps .apps__for { grid-area: for; margin-top: var(--s-2); color: var(--fg-muted); font-size: var(--fs-xs); line-height: 1.45; }
#apps .apps__for-label { font-weight: 700; color: var(--fg); }
#apps .apps__links { grid-area: links; display: flex; flex-wrap: wrap; gap: 0 var(--s-5); margin-top: var(--s-2); }
#apps .apps__link {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  min-height: 44px;
  color: var(--accent);
  font-size: var(--fs-small);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: rgba(210, 155, 56, 0.4);
  text-underline-offset: 0.32em;
  transition: color var(--dur-1) ease, text-decoration-color var(--dur-1) ease;
}
#apps .apps__link svg { width: 0.95em; height: 0.95em; transition: transform var(--dur-1) var(--ease-out-soft); }
#apps .apps__link:hover { color: var(--accent-hover); text-decoration-color: currentColor; }
#apps .apps__link:hover svg,
#apps .apps__link:focus-visible svg { transform: translateX(3px); }

/* Hover / focus: the phone tilts slightly and its second screen wipes up. */
@media (prefers-reduced-motion: no-preference) {
  html:not([data-motion="reduced"]) #apps .apps__phone { transition: transform var(--dur-3) var(--ease-out); }
  html:not([data-motion="reduced"]) #apps .apps__alt { transition: clip-path var(--dur-3) var(--ease-out); }
  html:not([data-motion="reduced"]) #apps .apps__card:focus-within .apps__phone { transform: translateY(-8px) rotateX(5deg) rotateY(-9deg); }
  html:not([data-motion="reduced"]) #apps .apps__card:focus-within .apps__alt { clip-path: inset(0 0 0 0); }
}
@media (prefers-reduced-motion: no-preference) and (hover: hover) {
  html:not([data-motion="reduced"]) #apps .apps__card:hover .apps__phone { transform: translateY(-8px) rotateX(5deg) rotateY(-9deg); }
  html:not([data-motion="reduced"]) #apps .apps__card:hover .apps__alt { clip-path: inset(0 0 0 0); }
}

/* ---------- Outro card ---------------------------------------------------- */
#apps .apps__outro {
  display: grid;
  align-content: center;
  justify-items: start;
  gap: var(--s-4);
  max-width: 36rem;
  margin-top: clamp(4rem, 3rem + 4vw, 7rem);
}
#apps .apps__outro-text { color: var(--fg-muted); margin-bottom: var(--s-3); }

#apps .apps__progress { display: none; }

/* Calm grid on phones: compact card (phone beside the name) so the 7 stacked cards stay short. */
@media (max-width: 639.98px) {
  #apps:not(.apps--rail) { --apps-phone: 128px; }
  #apps:not(.apps--rail) .apps__card {
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-rows: auto auto auto 1fr auto auto auto;
    grid-template-areas: "top top" "fig name" "fig kind" "fig ." "pitch pitch" "for for" "links links";
    column-gap: var(--s-5);
  }
  #apps:not(.apps--rail) .apps__figure { position: static; align-self: start; width: var(--apps-phone); margin-block: var(--s-5); perspective: none; }
  #apps:not(.apps--rail) .apps__num { z-index: -1; top: 8.5rem; right: 0; font-size: 6rem; }
  #apps:not(.apps--rail) .apps__caption { max-width: var(--apps-phone); }
}
/* < 380 px the column beside the phone is too narrow for « TELEPromptCam » (it broke mid-word):
   the name takes its own full-width row above the phone, the kind stays beside it. */
@media (max-width: 379.98px) {
  #apps:not(.apps--rail) .apps__card {
    grid-template-areas: "top top" "name name" "fig kind" "fig ." "pitch pitch" "for for" "links links";
  }
  #apps:not(.apps--rail) .apps__kind { margin-top: var(--s-5); }
}

/* ---------- Rail, small screens (or short windows): native swipe row ----- */
@media (max-width: 899.98px), (max-height: 679.98px) {
  #apps.apps--rail .apps__hint { display: inline-flex; }
  #apps.apps--rail .apps__hint-desk { display: none; }
  #apps.apps--rail .apps__intro { margin-bottom: var(--s-7); }
  #apps.apps--rail .apps__list {
    display: flex;
    gap: var(--apps-gap);
    margin-inline: calc(-1 * var(--gutter));
    padding: var(--s-2) var(--gutter) var(--s-6);
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    scrollbar-width: thin;
    scrollbar-color: var(--line-strong) transparent;
  }
  #apps.apps--rail .apps__item {
    flex: 0 0 min(80vw, 19rem);
    scroll-snap-align: start;
  }
  #apps.apps--rail .apps__outro { margin-top: var(--s-7); }
}

/* ---------- Rail, desktop: sticky stage + horizontal track --------------- */
@media (min-width: 900px) and (min-height: 680px) {
  #apps.apps--rail {
    --apps-phone: clamp(120px, calc((100svh - var(--header-h) - 400px) / 2.17), 270px);
    padding-block: 0;
  }
  #apps.apps--rail .apps__stage {
    position: sticky;
    top: var(--header-h);
    height: calc(100svh - var(--header-h));
    overflow: clip;
    display: flex;
    align-items: center;
    padding-block: clamp(12px, 2vh, 24px) clamp(44px, 7vh, 72px);
  }
  #apps.apps--rail .apps__track {
    display: flex;
    align-items: center;
    gap: var(--apps-gap);
    width: max-content;
    max-width: none;
    margin: 0;
    padding-inline: max(var(--gutter), calc((100% - var(--wrap)) / 2)) clamp(3rem, 9vw, 10rem);
    will-change: transform;
  }
  #apps.apps--rail .apps__intro {
    flex: 0 0 clamp(25rem, 40vw, 38rem);
    margin: 0;
    padding-right: clamp(1rem, 3vw, 4rem);
  }
  #apps.apps--rail .apps__hint { display: inline-flex; }
  #apps.apps--rail .apps__hint-touch { display: none; }
  #apps.apps--rail .apps__list { display: flex; gap: var(--apps-gap); }
  #apps.apps--rail .apps__item { flex: 0 0 clamp(19rem, calc(var(--apps-phone) + 9.5rem), 24rem); }
  #apps.apps--rail .apps__name { margin-top: var(--s-3); }
  #apps.apps--rail .apps__figure { margin-block: var(--s-5) var(--s-4); }
  #apps.apps--rail .apps__links { gap: 0 var(--s-4); }
  #apps.apps--rail .apps__link { font-size: 0.875rem; }
  /* « Illustration » caption sits beside the phone, under the outline number. */
  #apps.apps--rail .apps__caption {
    position: absolute;
    right: 0;
    bottom: 0;
    width: calc(100% - var(--apps-phone) - var(--s-5));
    max-width: 10rem;
  }
  #apps.apps--rail .apps__outro {
    flex: 0 0 clamp(20rem, 30vw, 28rem);
    margin: 0;
    padding-left: var(--apps-gap);
  }
  #apps.apps--rail .apps__progress {
    position: absolute;
    left: max(var(--gutter), calc((100% - var(--wrap)) / 2));
    right: max(var(--gutter), calc((100% - var(--wrap)) / 2));
    bottom: clamp(16px, 3vh, 30px);
    display: flex;
    align-items: center;
    gap: var(--s-4);
    color: var(--fg-muted);
    font-family: var(--font-mono);
    font-size: var(--fs-2xs);
    letter-spacing: 0.14em;
  }
  #apps .apps__bar {
    position: relative;
    flex: 1;
    height: 1px;
    overflow: hidden;
    background: var(--line-strong);
  }
  #apps .apps__bar-fill {
    position: absolute;
    inset: 0;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left center;
  }
}

/* Short desktop windows (680–820 px tall): tighter card so the whole card fits the stage. */
@media (min-width: 900px) and (min-height: 680px) and (max-height: 820px) {
  #apps.apps--rail { --apps-phone: clamp(120px, calc((100svh - var(--header-h) - 368px) / 2.17), 270px); }
  #apps.apps--rail .apps__stage { padding-block: 12px 44px; }
  #apps.apps--rail .apps__card { padding-top: var(--s-3); }
  #apps.apps--rail .apps__name { margin-top: var(--s-2); }
  #apps.apps--rail .apps__kind { display: none; }
  #apps.apps--rail .apps__figure { margin-block: var(--s-4) var(--s-3); }
  #apps.apps--rail .apps__link { min-height: 40px; }
}

/* ===== donnees.css ===== */
/* donnees — « Le chemin de vos données » (theme ink + bg-grid + bg-signal).
   Mobile first: vertical flow with one straight wire. ≥ 900 px: HTML nodes placed over
   a 1200 × 480 SVG (same coordinates, see --x/--y on each node). */

#donnees {
  --glow-x: 82%;
  --glow-y: 30%;
  --glow-a: 0.09;
  --grid-y: 42%;
}

/* ---------- Diagram (mobile: vertical) --------------------------------- */
#donnees .donnees__flow { margin: 0; }
#donnees .donnees__diagram {
  --icon: 48px;
  --zone-pad: 20px;
  position: relative;
  isolation: isolate;
  max-width: 34rem;
}
#donnees .donnees__svg { display: none; }

/* One continuous wire: from the first icon centre to the last one. */
#donnees .donnees__wire {
  position: absolute;
  z-index: 0;
  left: calc(var(--zone-pad) + var(--icon) / 2);
  top: calc(var(--icon) / 2);
  bottom: calc(var(--icon) / 2);
  width: 1px;
  margin-left: -0.5px;
  background: linear-gradient(180deg, rgba(245, 240, 230, 0.3), rgba(127, 212, 224, 0.6) 22%, rgba(127, 212, 224, 0.35));
  transform-origin: 50% 0;
  pointer-events: none;
}

#donnees .donnees__nodes,
#donnees .donnees__zone-nodes { display: grid; }
#donnees .donnees__zone-nodes { gap: var(--s-5); }

#donnees .donnees__node {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: var(--s-4);
  min-height: var(--icon);
}
#donnees .donnees__node--user { padding-left: var(--zone-pad); }
/* The backup sits outside the server frame: the diagram does not say where copies are kept. */
#donnees .donnees__node--safe { margin-top: 36px; padding-left: var(--zone-pad); }

#donnees .donnees__icon {
  position: relative;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: var(--icon);
  height: var(--icon);
  border-radius: 50%;
  background: var(--ink);
  box-shadow: inset 0 0 0 1px rgba(127, 212, 224, 0.5), 0 0 0 5px var(--ink);
}
#donnees .donnees__icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: var(--cream);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
#donnees .donnees__node--user .donnees__icon { box-shadow: inset 0 0 0 1px var(--line-strong), 0 0 0 5px var(--ink); }
#donnees .donnees__node--safe .donnees__icon { box-shadow: inset 0 0 0 1px rgba(210, 155, 56, 0.7), 0 0 0 5px var(--ink), 0 0 28px -6px rgba(210, 155, 56, 0.45); }
#donnees .donnees__node--safe .donnees__icon svg { stroke: var(--gold); }

/* Arrival ring, animated by JS only (transform + opacity). */
#donnees .donnees__ping {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  box-shadow: 0 0 0 1px var(--signal), 0 0 18px rgba(127, 212, 224, 0.5);
  opacity: 0;
  pointer-events: none;
}
#donnees .donnees__node--safe .donnees__ping { box-shadow: 0 0 0 1px var(--gold), 0 0 18px rgba(210, 155, 56, 0.5); }

#donnees .donnees__node-text { display: grid; gap: 2px; min-width: 0; }
#donnees .donnees__node-title { font-size: 1rem; font-weight: 700; line-height: 1.25; letter-spacing: -0.005em; }

/* The server zone */
#donnees .donnees__zone {
  position: relative;
  margin-top: 44px;
  padding: var(--zone-pad);
}
#donnees .donnees__zone-frame {
  position: absolute;
  inset: 0;
  z-index: -1;
  border: 1px dashed rgba(127, 212, 224, 0.42);
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, rgba(127, 212, 224, 0.06), rgba(127, 212, 224, 0.015) 70%);
  pointer-events: none;
}
#donnees .donnees__zone-label {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px 10px;
  margin-bottom: var(--s-5);
  padding-left: calc(var(--icon) + var(--s-4));
}
#donnees .donnees__zone-label .tech { flex-basis: 100%; }
#donnees .donnees__zone-title { font-size: var(--fs-small); font-weight: 700; color: var(--cream); }
#donnees .donnees__leds { display: inline-flex; gap: 5px; }
#donnees .donnees__leds span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 8px rgba(127, 212, 224, 0.8);
}
#donnees .donnees__leds span + span { opacity: 0.55; }

#donnees .donnees__https {
  position: absolute;
  z-index: 2;
  top: -22px;
  left: calc(var(--zone-pad) + var(--icon) + var(--s-4));
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px 4px 8px;
  border: 1px solid rgba(127, 212, 224, 0.5);
  border-radius: var(--r-pill);
  background: var(--ink);
  color: var(--signal);
  font-family: var(--font-mono);
  font-size: var(--fs-2xs);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.08em;
  white-space: nowrap;
}
#donnees .donnees__https svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Packets: created by JS (motion only), moved with transform. */
#donnees .donnees__packet {
  position: absolute;
  z-index: 1;
  left: 0;
  top: 0;
  width: 8px;
  height: 8px;
  margin: -4px 0 0 -4px;
  border-radius: 50%;
  background: #DDF6FA;
  box-shadow: 0 0 0 3px rgba(127, 212, 224, 0.22), 0 0 16px 5px rgba(127, 212, 224, 0.5);
  opacity: 0;
  pointer-events: none;
  will-change: transform;
}

#donnees .donnees__caption {
  margin-top: var(--s-6);
  max-width: 44rem;
  color: var(--fg-muted);
  font-size: var(--fs-small);
}

/* ---------- Diagram ≥ 900 px: horizontal, over the SVG ------------------ */
@media (min-width: 900px) {
  #donnees .donnees__diagram {
    --icon: 56px;
    max-width: none;
    aspect-ratio: 1200 / 480;
  }
  #donnees .donnees__svg {
    display: block;
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
  }
  #donnees .donnees__wire { display: none; }
  #donnees .donnees__nodes,
  #donnees .donnees__zone-nodes { display: block; }

  #donnees .donnees__node {
    position: absolute;
    left: calc(var(--x) * 1%);
    top: calc(var(--y) * 1%);
    width: 11rem;
    margin: calc(var(--icon) / -2) 0 0 -5.5rem;
    flex-direction: column;
    gap: var(--s-3);
    min-height: 0;
    text-align: center;
  }
  #donnees .donnees__node--up {
    top: auto;
    bottom: calc(100% - var(--y) * 1%);
    margin: 0 0 calc(var(--icon) / -2) -5.5rem;
    flex-direction: column-reverse;
  }
  #donnees .donnees__node--user,
  #donnees .donnees__node--safe { width: 12.5rem; margin-left: -6.25rem; padding-left: 0; }
  #donnees .donnees__node-text { justify-items: center; }

  /* Zone = x 220→890, y 24→456 in SVG units (the backup node, x 1060, stays outside). */
  #donnees .donnees__zone {
    position: absolute;
    left: 18.3333%;
    top: 5%;
    width: 55.8333%;
    height: 90%;
    margin: 0;
    padding: 0;
  }
  #donnees .donnees__zone-frame { border-radius: var(--r-xl); }
  #donnees .donnees__zone-label {
    position: absolute;
    top: 0;
    left: 36px;
    transform: translateY(-50%);
    flex-wrap: nowrap;
    gap: 12px;
    margin: 0;
    padding: 8px 18px 8px 14px;
    border: 1px solid rgba(127, 212, 224, 0.42);
    border-radius: var(--r-pill);
    background: var(--ink);
    white-space: nowrap;
  }
  #donnees .donnees__zone-label .tech { flex-basis: auto; }
  /* Where the first curve crosses the zone border (x 220, y ≈ 238). */
  #donnees .donnees__https { top: 49.47%; left: 0; transform: translate(-50%, -50%); }
  #donnees .donnees__caption { margin-top: var(--s-5); }
}
@media (min-width: 1100px) {
  #donnees .donnees__diagram { --icon: 64px; }
  #donnees .donnees__icon svg { width: 24px; height: 24px; }
  #donnees .donnees__node-title { font-size: 1.0625rem; }
}

/* ---------- Commitments + terminal ------------------------------------- */
#donnees .donnees__bottom {
  display: grid;
  gap: var(--s-8);
  margin-top: clamp(4rem, 2.5rem + 5vw, 8rem);
}
@media (min-width: 1100px) {
  #donnees .donnees__bottom {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    align-items: start;
    gap: clamp(3rem, 5vw, 6rem);
  }
  /* centred next to the four commitments: no empty column under it */
  #donnees .donnees__terminal { align-self: center; margin-top: 0; }
}

#donnees .donnees__promises {
  display: grid;
  gap: var(--s-6);
  margin-top: var(--s-5);
}
@media (min-width: 640px) {
  #donnees .donnees__promises { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-7) var(--s-6); }
}
#donnees .donnees__promise {
  display: grid;
  align-content: start;
  justify-items: start;
  gap: var(--s-3);
  padding-top: var(--s-5);
  border-top: 1px solid var(--line);
}
#donnees .donnees__promise-icon {
  width: 28px;
  height: 28px;
  margin-bottom: var(--s-1);
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
#donnees .donnees__promise-name {
  font-size: clamp(1.15rem, 1.05rem + 0.4vw, 1.375rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.015em;
}
#donnees .donnees__promise p:not(.tech) { color: var(--fg-muted); font-size: var(--fs-small); line-height: 1.55; }
#donnees .donnees__policy { margin-top: var(--s-1); font-size: var(--fs-small); }
#donnees .donnees__note {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  margin-top: var(--s-7);
  color: var(--fg-muted);
  font-size: var(--fs-small);
}
#donnees .donnees__note::before {
  content: "";
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ok);
}

/* Decorative terminal (aria-hidden). Full text is in the HTML: static without JS. */
#donnees .donnees__terminal {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(127, 212, 224, 0.22);
  border-radius: var(--r-md);
  background: linear-gradient(180deg, rgba(20, 37, 63, 0.55), rgba(7, 15, 28, 0.9));
  box-shadow: var(--shadow-2), 0 0 80px -40px rgba(127, 212, 224, 0.45);
}
#donnees .donnees__term-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}
#donnees .donnees__term-dots { display: inline-flex; gap: 6px; }
#donnees .donnees__term-dots span { width: 9px; height: 9px; border-radius: 50%; background: rgba(245, 240, 230, 0.2); }
#donnees .donnees__term-title {
  font-family: var(--font-mono);
  font-size: var(--fs-2xs);
  letter-spacing: 0.04em;
  color: var(--fg-muted);
}
#donnees .donnees__term-body {
  margin: 0;
  padding: 18px 18px 22px;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  line-height: 1.8;
  color: var(--cream);
  white-space: pre-wrap;
  overflow-wrap: break-word;
}
#donnees .donnees__prompt { color: var(--signal); }
#donnees .donnees__term-line--out { color: var(--fg-muted); }
#donnees .donnees__term-line--hi { color: var(--signal); }
#donnees .donnees__ghost { visibility: hidden; }
#donnees .donnees__caret { position: relative; display: inline-block; width: 0; height: 1em; vertical-align: text-bottom; }
#donnees .donnees__caret::after {
  content: "";
  position: absolute;
  left: 1px;
  bottom: -0.15em;
  width: 0.55em;
  height: 1.2em;
  background: var(--signal);
  opacity: 0.85;
}
#donnees .donnees__caret--blink::after { animation: donnees-blink 1.1s steps(1) 4 forwards; }   /* < 5 s (WCAG 2.2.2) */
@keyframes donnees-blink { 50% { opacity: 0; } }

/* ===== chiffres.css ===== */
/* ==========================================================================
   chiffres — « AJM en chiffres » (theme gold)
   Default (no JS, reduced motion) = solid gold field, final numbers.
   .chiffres--wipe (added by chiffres.js with motion) = the section turns ink and the gold
   .chiffres__bg layer grows from an inset rounded card to full bleed (clip-path, scrubbed).
   ========================================================================== */
#chiffres { --chiffres-num: clamp(4rem, 2rem + 8vw, 9rem); }
#chiffres.chiffres--wipe { background-color: var(--ink); }

/* ---------- Gold field + pale ring (decorative) ------------------------- */
#chiffres .chiffres__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: clip;
  background: var(--gold);
  pointer-events: none;
}
#chiffres .chiffres__ring-wrap {
  position: absolute;
  top: 38%;
  left: 84%;
  width: min(150vw, 820px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
}
#chiffres .chiffres__ring { display: block; width: 100%; height: 100%; }

/* ---------- Head ---------------------------------------------------------- */
#chiffres .chiffres__head { position: relative; }

/* ---------- Figures grid ------------------------------------------------- */
#chiffres .chiffres__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line-strong);
}
#chiffres .chiffres__item {
  min-width: 0;
  padding: clamp(1.5rem, 1rem + 2vw, 2.75rem) clamp(0.75rem, 0.25rem + 2vw, 2.25rem) clamp(1.75rem, 1.25rem + 2vw, 3rem) 0;
  border-bottom: 1px solid var(--line);
}
#chiffres .chiffres__item:nth-child(2),
#chiffres .chiffres__item:nth-child(4) {
  padding-left: clamp(0.75rem, 0.25rem + 2vw, 2.25rem);
  border-left: 1px solid var(--line);
}
#chiffres .chiffres__item--wide { grid-column: 1 / -1; }

#chiffres .chiffres__num {
  display: flex;
  align-items: flex-start;
  font-size: var(--chiffres-num);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums lining-nums;
  color: var(--fg);
}
#chiffres .chiffres__value { display: inline-block; }
#chiffres .chiffres__plus {
  margin-left: 0.04em;
  font-family: var(--font-serif);
  font-size: 0.62em;
  font-style: italic;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0;
}
/* Odometer digits (built by AJM.utils.rollingCounter): no negative tracking inside the clipped
   cells, the cells overlap a little instead, so glyph edges are never cut. */
#chiffres .chiffres__value .roll__strip > span { letter-spacing: 0; }
#chiffres .chiffres__value .roll__digit + .roll__digit { margin-left: -0.04em; }

#chiffres .chiffres__label {
  max-width: 20rem;
  margin-top: var(--s-4);
  color: var(--fg-muted);
  font-size: clamp(0.9375rem, 0.85rem + 0.3vw, 1.125rem);
  font-weight: 600;
  line-height: 1.45;
}

#chiffres .chiffres__note {
  max-width: 46rem;
  margin-top: var(--s-6);
  color: var(--fg-muted);
  font-size: var(--fs-xs);
  line-height: 1.55;
}
#chiffres .chiffres__note-label {
  margin-right: 0.6em;
  font-family: var(--font-mono);
  font-size: var(--fs-2xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fg);
}

/* ---------- ≥ 640 px: 3 columns ---------------------------------------- */
@media (min-width: 640px) {
  #chiffres .chiffres__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  #chiffres .chiffres__item--wide { grid-column: auto; }
  #chiffres .chiffres__item:nth-child(n) { padding-left: 0; border-left: 0; }
  #chiffres .chiffres__item:not(:nth-child(3n + 1)) {
    padding-left: clamp(0.75rem, 0.25rem + 2vw, 2.25rem);
    border-left: 1px solid var(--line);
  }
  #chiffres .chiffres__ring-wrap { top: 46%; left: 74%; width: min(92vw, 1100px); }
}
@media (min-width: 640px) and (max-width: 899.98px) {
  #chiffres { --chiffres-num: clamp(3.5rem, 1rem + 8vw, 5rem); }
}

/* ===== methode.css ===== */
/* methode — theme cream. 4 steps along a path that draws itself with the scroll
   (clip-path reveal + a « pen » dot moved by transform — no stroke-dashoffset), big step
   numbers « 01 » that wipe from outline to filled, a chapter bar that highlights the
   current step, a « first meeting is free » arrival card, then the FAQ.
   Default (no JS / reduced motion) = everything drawn, filled and static; .methode--live
   (added by methode.js only when motion is allowed) switches to the « not yet reached » states. */

.methode__defs { position: absolute; width: 0; height: 0; overflow: hidden; }

#methode {
  --lane: clamp(150px, 14vw, 220px);
  --node: 48px;
}

/* ---------- Chapter bar --------------------------------------------------- */
.methode__journey { position: relative; }
.methode__bar {
  position: relative;
  z-index: 5;
  max-width: 46rem;
  margin: 0 auto clamp(1rem, 0.5rem + 2vw, 2.5rem);
}
@media (prefers-reduced-motion: no-preference) {
  html.js[data-motion="full"] .methode__bar {
    position: sticky;
    top: calc(var(--header-h) + 10px);
    transition: opacity 0.3s ease, visibility 0s;
  }
}
/* Once the path reaches « La première rencontre est gratuite », the bar steps aside so it never
   covers the card or its button (class set by methode.js). */
.methode__journey--arrived .methode__bar { opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0s 0.3s; }
#methode .methode__bar-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow-1);
}
.methode__bar-link {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 0;
  min-height: 52px;
  padding: 6px 2px 9px;
  border-radius: 13px;
  color: var(--fg-muted);
  font-size: clamp(0.6875rem, 0.55rem + 0.6vw, 0.75rem);
  letter-spacing: -0.005em;
  font-weight: 600;
  line-height: 1.15;
  text-align: center;
  text-decoration: none;
  transition: color var(--dur-1) ease;
}
.methode__bar-link::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: var(--surface-2);
  opacity: 0;
  transition: opacity var(--dur-2) var(--ease-out);
}
.methode__bar-link:hover { color: var(--fg); }
.methode__bar-link[aria-current] { color: var(--fg); }
.methode__bar-link[aria-current]::before { opacity: 1; }
.methode__bar-ico {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.methode__bar-link[aria-current] .methode__bar-ico { color: var(--accent); }
.methode__bar-label { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.methode__bar-fill {             /* progress through that step, scaled by methode.js */
  position: absolute;
  left: 22%;
  right: 22%;
  bottom: 4px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left center;
}

/* ---------- Track: path, pen, steps -------------------------------------- */
.methode__track { position: relative; isolation: isolate; }
.methode__path {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  fill: none;
  pointer-events: none;
}
.methode__path--base path {
  stroke: var(--line-strong);
  stroke-width: 1.5;
  stroke-dasharray: 1.5 7;
  stroke-linecap: round;
}
.methode__path--ink path {
  stroke: var(--accent);
  stroke-width: 2.5;
  stroke-linecap: round;
}
.methode__pen {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  width: 14px;
  height: 14px;
  margin: -7px 0 0 -7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 6px rgba(148, 100, 20, 0.16), 0 0 26px 4px rgba(210, 155, 56, 0.45);
  opacity: 0;
  pointer-events: none;
}
.methode--live .methode__pen { opacity: 1; will-change: transform; }
/* Without JS the path is not drawn: a plain dashed line stands in for it. */
html:not(.js) #methode .methode__track::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(var(--node) / 2 + 4px);
  border-left: 1.5px dashed var(--line-strong);
}

#methode .methode__steps { position: relative; z-index: 2; }
.methode__step {
  display: grid;
  grid-template-columns: calc(var(--node) + 8px) minmax(0, 1fr);
  grid-template-areas: "node num" ". body";
  column-gap: 16px;
  row-gap: 8px;
  align-items: center;
  padding-block: clamp(1.75rem, 1rem + 3vw, 2.5rem);
  scroll-margin-top: 72px;        /* anchors from the chapter bar land below the sticky bar */
}
#methode .methode__num {
  grid-area: num;
  display: flex;
  align-items: baseline;
  min-width: 0;
  margin: 0;
  font-family: var(--font-sans);
  font-size: clamp(2.75rem, 1.25rem + 7vw, 8.5rem);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.05em;
  white-space: nowrap;
  color: var(--fg);
  --stroke-w: 1.5px;
}
.methode__node {
  grid-area: node;
  position: relative;
  justify-self: center;
  display: grid;
  place-items: center;
  width: var(--node);
  height: var(--node);
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--bg);
  color: var(--fg-muted);
}
.methode__node-ico {
  width: 46%;
  height: 46%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.methode__node-on {               /* « reached » state, revealed with a circular clip-path */
  position: absolute;
  inset: -1px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--fg);
  color: var(--cream);
  box-shadow: 0 0 0 6px rgba(148, 100, 20, 0.16);
  clip-path: circle(64% at 50% 50%);
}
.methode__node-on .methode__node-ico { width: 46%; height: 46%; }
.methode__body { grid-area: body; min-width: 0; max-width: 32rem; }
.methode__title { margin-bottom: 0.5rem; }
.methode__text { color: var(--fg-muted); }

/* Live (motion) states */
.methode--live .methode__node-on {
  clip-path: circle(0% at 50% 50%);
  transition: clip-path 0.7s var(--ease-out);
}
.methode--live .is-reached .methode__node-on { clip-path: circle(64% at 50% 50%); }

/* ---------- Arrival: the first meeting is free --------------------------- */
.methode__arrive {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: calc(var(--node) + 8px) minmax(0, 1fr);
  column-gap: 16px;
  align-items: start;
  padding-top: clamp(0.5rem, 0.25rem + 1vw, 1rem);
}
.methode__end {
  position: relative;
  justify-self: center;
  width: 22px;
  height: 22px;
  border: 1.5px solid var(--accent);
  border-radius: 50%;
  background: var(--bg);
}
.methode__end::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: var(--accent);
}
.methode--live .methode__end::after { transform: scale(0); transition: transform 0.6s var(--ease-out); }
.methode--live .methode__arrive.is-reached .methode__end::after { transform: scale(1); }
.methode__arrive-body {
  display: grid;
  justify-items: start;
  gap: 1.25rem;
  min-width: 0;
  margin-top: 28px;
  padding: clamp(1.5rem, 1rem + 2.4vw, 2.75rem);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow-1);
}
.methode__callout {
  max-width: 34rem;
  text-wrap: balance;
  font-size: var(--fs-h3);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.methode__callout strong { font-weight: 800; }
#methode .methode__arrive-body .btn { white-space: nowrap; }
@media (max-width: 639.98px) {
  /* the card takes the full width under the end of the path (which stays in the node lane) */
  #methode .methode__arrive { grid-template-columns: minmax(0, 1fr); }
  #methode .methode__end { justify-self: start; margin-left: calc((var(--node) + 8px) / 2 - 11px); }
  /* ~46 px digits: a thinner doubled stroke and looser tracking, so the strokes of « 0 » and the
     next digit no longer overlap (they looked doubled / notched on phones). */
  #methode .methode__num { --stroke-w: 0.75px; letter-spacing: -0.03em; }
}

/* ---------- FAQ ----------------------------------------------------------- */
.methode__faq-wrap {
  display: grid;
  gap: clamp(1.5rem, 1rem + 2vw, 2.5rem);
  margin-top: clamp(4.5rem, 2.5rem + 6vw, 9rem);
  padding-top: clamp(2.5rem, 1.5rem + 3vw, 4.5rem);
  border-top: 1px solid var(--line);
}
.methode__faq-title {
  font-size: clamp(1.75rem, 1.2rem + 2vw, 2.75rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
}
.methode__faq-intro { margin-top: 0.75rem; max-width: 26rem; color: var(--fg-muted); }
.methode__faq-head .link-arrow { margin-top: 1.25rem; }
.methode__faq { border-bottom: 1px solid var(--line); }
.methode__faq:first-child { border-top: 1px solid var(--line); }
.methode__faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  padding: 14px 2px;
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.35;
  list-style: none;
  cursor: pointer;
}
.methode__faq-q::-webkit-details-marker { display: none; }
.methode__faq-q::marker { content: ""; }
.methode__faq-chev {
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  padding: 8px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  color: var(--accent);
  transition: transform var(--dur-2) var(--ease-out);
}
.methode__faq[open] .methode__faq-chev { transform: rotate(180deg); }
@media (hover: hover) {
  .methode__faq-q:hover span { text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 0.25em; }
}
.methode__faq-a { max-width: 46rem; padding: 0 2px 1.4rem; color: var(--fg-muted); }

/* ---------- Desktop ------------------------------------------------------- */
@media (min-width: 640px) {
  .methode__bar-link { font-size: 0.8125rem; }
}
@media (min-width: 900px) {
  #methode { --node: 60px; }
  #methode .methode__bar-list { border-radius: var(--r-pill); }
  .methode__bar-link {
    flex-direction: row;
    gap: 9px;
    min-height: 46px;
    padding: 0 12px;
    border-radius: var(--r-pill);
    font-size: 0.875rem;
  }
  .methode__bar-ico { width: 20px; height: 20px; }
  .methode__bar-fill { left: 18%; right: 18%; bottom: 5px; }

  .methode__step {
    grid-template-columns: minmax(0, 1fr) var(--lane) minmax(0, 1fr);
    grid-template-areas: "body node num";
    column-gap: clamp(24px, 3vw, 56px);
    padding-block: clamp(3rem, 1.5rem + 4vw, 6rem);
  }
  .methode__step:nth-child(even) { grid-template-areas: "num node body"; }
  .methode__step:nth-child(odd) .methode__body { justify-self: end; }
  #methode .methode__step:nth-child(odd) .methode__num { justify-self: start; }
  #methode .methode__step:nth-child(even) .methode__num { justify-self: end; }
  /* The path swings toward the text of each step (only when JS draws it). */
  html.js .methode__step:nth-child(odd) .methode__node { justify-self: start; }
  html.js .methode__step:nth-child(even) .methode__node { justify-self: end; }
  .methode__title { font-size: clamp(1.5rem, 1rem + 0.9vw, 2rem); }
  .methode__text { font-size: 1.0625rem; }

  .methode__arrive {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    text-align: center;
  }
  .methode__arrive-body { justify-items: center; max-width: 44rem; }
  html:not(.js) #methode .methode__track::before { left: 50%; }

  .methode__faq-wrap {
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
    gap: clamp(2rem, 1rem + 4vw, 5rem);
    align-items: start;
  }
}

/* ===== ponts.css ===== */
/* ponts — « Du Québec à la RDC » (theme dark + bg-grain).
   Map: decorative SVG layers + HTML place names positioned in % of the same box.
   Band: a wrapped static list by default; JS adds .ponts__band--moving (motion only)
   to turn it into one long scroll-scrubbed row. */

#ponts { --grain-opacity: 0.06; }

/* ---------- Intro -------------------------------------------------------- */
#ponts .ponts__intro {
  display: grid;
  gap: var(--s-6);
  margin-bottom: clamp(3rem, 2rem + 4vw, 6rem);
}
@media (min-width: 900px) {
  #ponts .ponts__intro {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: var(--grid-gap, clamp(16px, 2vw, 32px));
    align-items: start;
  }
  #ponts .ponts__lead { grid-column: 1 / span 6; }
  #ponts .ponts__question { grid-column: 8 / span 5; }
}
#ponts .ponts__lead { color: var(--fg); }
#ponts .ponts__question { color: var(--fg-muted); font-size: var(--fs-body); }
#ponts .ponts__ask {
  display: block;
  margin-top: var(--s-4);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.75rem, 1.25rem + 1.6vw, 2.6rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--accent);
  text-wrap: balance;
}

/* ---------- Bridge map --------------------------------------------------- */
#ponts .ponts__bridge { margin: 0; }
#ponts .ponts__map {
  position: relative;
  aspect-ratio: 360 / 440;
  max-width: 30rem;
  margin-inline: auto;
}
#ponts .ponts__svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
#ponts .ponts__svg--wide { display: none; }
#ponts .ponts__base {
  -webkit-mask-image: radial-gradient(ellipse 75% 70% at 50% 50%, #000 40%, transparent 100%);
  mask-image: radial-gradient(ellipse 75% 70% at 50% 50%, #000 40%, transparent 100%);
}
#ponts .ponts__grid {
  fill: none;
  stroke: rgba(245, 240, 230, 0.09);
  stroke-width: 1;
  stroke-dasharray: 2 6;
  vector-effect: non-scaling-stroke;
}
#ponts .ponts__equator {
  fill: none;
  stroke: rgba(245, 240, 230, 0.24);
  stroke-width: 1;
  stroke-dasharray: 6 6;
  vector-effect: non-scaling-stroke;
}
#ponts .ponts__svg-tech {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  fill: rgba(169, 182, 202, 0.75);
}
#ponts .ponts__ocean {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 30px;
  fill: rgba(245, 240, 230, 0.2);
}
#ponts .ponts__arc {
  fill: none;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}
#ponts .ponts__arc--main { stroke: var(--gold); stroke-width: 1.5; }
#ponts .ponts__arc--faint { stroke: rgba(210, 155, 56, 0.4); stroke-width: 1.25; stroke-dasharray: 1 7; }
#ponts .ponts__dot { fill: var(--gold-hi); }
#ponts .ponts__halo { fill: rgba(210, 155, 56, 0.12); stroke: rgba(210, 155, 56, 0.5); stroke-width: 1; vector-effect: non-scaling-stroke; }
#ponts .ponts__ping { fill: none; stroke: var(--gold-hi); stroke-width: 1.25; vector-effect: non-scaling-stroke; opacity: 0; }
#ponts .ponts__packet { opacity: 0; }
#ponts .ponts__packet-core { fill: #FCEBC8; }

/* Place names (HTML) */
#ponts .ponts__place {
  position: absolute;
  z-index: 1;
  display: grid;
  gap: 2px;
  line-height: 1.2;
}
#ponts .ponts__place-name {
  font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--fg);
}
/* Tall variant (phones): QC dot (70, 70), RDC dot (290, 360) in a 360 × 440 box. */
#ponts .ponts__place--qc { left: calc(19.444% - 6px); top: calc(15.909% + 20px); }
#ponts .ponts__place--cd { right: calc(19.444% + 22px); top: 81.818%; transform: translateY(-50%); text-align: right; justify-items: end; }

@media (min-width: 640px) {
  #ponts .ponts__map { aspect-ratio: 1200 / 460; max-width: none; }
  #ponts .ponts__svg--wide { display: block; }
  #ponts .ponts__svg--tall { display: none; }
  /* Wide variant: QC dot (104, 84), RDC dot (993, 410) in a 1200 × 460 box. */
  #ponts .ponts__place--qc { left: calc(8.667% - 6px); top: calc(18.261% + 24px); }
  #ponts .ponts__place--cd { right: calc(17.25% + 28px); top: 89.13%; }
}

#ponts .ponts__caption {
  max-width: 46rem;
  margin-top: var(--s-6);
  color: var(--fg-muted);
  font-size: var(--fs-small);
}

/* ---------- « Pour qui » band ------------------------------------------- */
#ponts .ponts__band { margin-top: clamp(4rem, 3rem + 5vw, 8rem); }
#ponts .ponts__band-title { margin-bottom: var(--s-5); }
#ponts .ponts__band-view { padding-inline: var(--gutter); max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; }
#ponts .ponts__band-track {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--s-3) var(--s-6);
}
#ponts .ponts__aud {
  font-size: clamp(1.75rem, 1.1rem + 2.8vw, 3.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.04em;
  color: var(--fg);
}
#ponts .ponts__aud em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 0.6em;
  letter-spacing: 0;
  color: var(--accent);
}

/* Motion version (class set by JS): one row, huge outline/filled words, moved by scroll. */
#ponts .ponts__band--moving .ponts__band-view {
  max-width: none;
  padding-inline: 0;
  overflow: clip;
}
#ponts .ponts__band--moving .ponts__band-track {
  flex-wrap: nowrap;
  width: max-content;
  gap: clamp(2rem, 1rem + 3vw, 4.5rem);
  padding-inline: var(--gutter);
  padding-block: 0.08em 0.12em;
  will-change: transform;
}
#ponts .ponts__band--moving .ponts__aud {
  display: flex;
  align-items: flex-start;
  gap: 0.18em;
  font-size: clamp(3rem, 1.6rem + 5.2vw, 6.5rem);
  line-height: 1;
  white-space: nowrap;
}
#ponts .ponts__band--moving .ponts__aud:nth-child(odd) {
  /* same technique as .outline-text (base.css): double stroke under a background-coloured fill,
     which hides the overlapping contours of the variable font */
  color: var(--bg);
  -webkit-text-stroke: 3px var(--cream);
  paint-order: stroke fill;
}
#ponts .ponts__band--moving .ponts__aud em {
  max-width: 7.5em;
  margin-top: 0.4em;
  font-size: max(0.24em, 0.9375rem);
  line-height: 1.15;
  white-space: normal;
  -webkit-text-stroke: 0;
}
#ponts .ponts__band--moving .ponts__aud + .ponts__aud::before {
  content: "";
  align-self: center;
  flex: 0 0 auto;
  width: 0.14em;
  height: 0.14em;
  margin-right: 0.45em;
  border-radius: 50%;
  background: var(--gold);
}
@supports not (-webkit-text-stroke: 1px black) {
  #ponts .ponts__band--moving .ponts__aud:nth-child(odd) { color: var(--fg); }
}

/* ---------- Values ------------------------------------------------------- */
#ponts .ponts__values-title { margin-top: clamp(4rem, 3rem + 4vw, 7rem); margin-bottom: var(--s-6); }
#ponts .ponts__values {
  display: grid;
  gap: var(--s-6);
}
@media (min-width: 640px) {
  #ponts .ponts__values { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1100px) {
  #ponts .ponts__values { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-6) clamp(1.5rem, 2.5vw, 3rem); }
}
#ponts .ponts__value {
  display: grid;
  align-content: start;
  gap: var(--s-3);
  padding-top: var(--s-5);
  border-top: 1px solid var(--line-strong);
}
#ponts .ponts__value-name {
  font-size: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem);
  font-weight: 700;
  letter-spacing: -0.015em;
}
#ponts .ponts__value p { color: var(--fg-muted); font-size: var(--fs-small); }

/* ===== contact.css ===== */
/* contact — final call to action (theme cream + grain). Left: the lead and the contact form
   (the live site's Web3Forms form, see contact.html); right: the e-mail and the facts.
   (The FAQ lives in « methode »: one FAQ per page.) */

#contact { --grain-opacity: 0.045; }

#contact .contact__head {
  display: grid;
  gap: var(--s-5);
  margin-bottom: clamp(3rem, 2rem + 4vw, 6rem);
}
#contact .contact__title { max-width: 14ch; }
#contact .contact__title em { padding-right: 0.06em; }

#contact .contact__grid { display: grid; gap: clamp(3rem, 2rem + 4vw, 5rem); }
@media (min-width: 900px) {
  #contact .contact__grid {
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
    gap: clamp(3rem, 6vw, 7rem);
    align-items: start;
  }
  #contact .contact__side {
    padding-left: clamp(2rem, 4vw, 4rem);
    border-left: 1px solid var(--line);
  }
}

/* ---------- Main column -------------------------------------------------- */
#contact .contact__main,
#contact .contact__side {
  display: grid;
  justify-items: start;
  align-content: start;
  gap: var(--s-5);
  min-width: 0;
}
#contact .contact__lead { color: var(--fg); }
#contact .contact__reassure {
  display: flex;
  align-items: flex-start;
  gap: var(--s-3);
  font-weight: 600;
  color: var(--fg);
}
#contact .contact__reassure svg {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin-top: 0.2em;
  fill: none;
  stroke: var(--ok);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Form ----------------------------------------------------------- */
#contact .contact__form,
#contact .contact__success { display: grid; gap: var(--s-5); width: 100%; margin-top: var(--s-3); }
#contact .contact__form[hidden],
#contact .contact__success[hidden] { display: none; }
#contact .contact__row { display: grid; gap: var(--s-5); }
@media (min-width: 640px) {
  #contact .contact__row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
#contact .contact__field { display: grid; gap: var(--s-2); min-width: 0; }
#contact .contact__label { font-size: var(--fs-small); font-weight: 700; color: var(--fg); }
#contact .contact__input {
  width: 100%;
  min-height: 52px;
  padding: 0.8rem 1rem;
  border: 1px solid rgba(20, 37, 63, 0.55);   /* ≥ 3:1 on cream and paper (WCAG 1.4.11) */
  border-radius: var(--r-sm);
  background: var(--paper);
  color: var(--fg);
  font-size: 1rem;                              /* ≥ 16 px: no zoom on iOS */
  line-height: 1.45;
  transition: border-color var(--dur-1) ease, box-shadow var(--dur-1) ease;
}
#contact .contact__input::placeholder { color: var(--fg-muted); opacity: 1; }
#contact .contact__input:hover { border-color: var(--fg-muted); }
#contact .contact__input:focus { border-color: var(--fg); box-shadow: 0 0 0 3px rgba(148, 100, 20, 0.22); }
#contact .contact__select {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 2.75rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2314253F' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 18px 18px;
}
#contact .contact__textarea { min-height: 10rem; resize: vertical; }
#contact .contact__hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
#contact .contact__send { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3) var(--s-5); }
#contact .contact__submit { white-space: nowrap; }
#contact .contact__submit[aria-busy="true"] { cursor: progress; opacity: 0.85; }
#contact .contact__status { font-size: var(--fs-small); font-weight: 600; color: var(--fg); }
#contact .contact__status:empty { display: none; }
#contact .contact__status.is-error { color: #A12A1E; }   /* 6.4:1 on cream */
#contact .contact__note { font-size: var(--fs-xs); line-height: 1.5; color: var(--fg-muted); }
#contact .contact__note a { color: var(--fg); text-underline-offset: 0.2em; }

#contact .contact__success {
  justify-items: start;
  padding: clamp(1.5rem, 1rem + 2vw, 2.5rem);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--paper);
}
#contact .contact__success-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--fg);
  color: var(--cream);
}
#contact .contact__success-icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
#contact .contact__success-title:focus { outline: none; }
#contact .contact__success-title:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; }
#contact .contact__or {
  margin: 0;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-muted);
}
#contact .contact__mail {
  position: relative;
  display: inline-block;
  max-width: 100%;
  margin-top: calc(-1 * var(--s-3));
  padding-bottom: 0.14em;
  font-size: clamp(1.5rem, 0.6rem + 1.9vw, 2.4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.035em;
  color: var(--fg);
  text-decoration: none;
  overflow-wrap: break-word;
  transition: color var(--dur-1) ease;
}
#contact .contact__mail:hover { color: var(--accent); }
#contact .contact__mail-text { display: inline-block; }
#contact .contact__mail-line {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
  transform-origin: 0 50%;
}

#contact .contact__facts {
  display: grid;
  gap: var(--s-4);
  width: 100%;
  margin-top: var(--s-5);
  padding-top: var(--s-5);
  border-top: 1px solid var(--line);
}
#contact .contact__fact { display: grid; gap: 2px; }
@media (min-width: 480px) {
  #contact .contact__fact { grid-template-columns: 8.5rem minmax(0, 1fr); gap: var(--s-4); align-items: baseline; }
}
#contact .contact__fact dt {
  font-family: var(--font-mono);
  font-size: var(--fs-2xs);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg-muted);
}
#contact .contact__fact dd { margin: 0; font-size: var(--fs-small); font-weight: 600; }
