/*
 * Design tokens, monochrome subset (colour, type, spacing, radius).
 * Origin: copied from the client portal design system, design/tokens.css, 2026-10-22.
 * Accent, success, danger, shadow and motion tokens are intentionally left out.
 * --color-faint (2.5:1) is for decorative glyphs and separators only, never text.
 */
@font-face {
  font-family: "Inter";
  src: url("fonts/InterVariable-fr-en.woff2") format("woff2");
  font-weight: 400 600;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("fonts/JetBrainsMono-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

:root {
  /* Colour */
  --color-bg: #fbfbfa;
  --color-surface: #ffffff;
  --color-subtle: #f4f4f5;
  --color-ink: #18181b;
  --color-ink-soft: #3f3f46;
  --color-muted: #71717a;
  --color-faint: #a1a1aa;
  --color-hairline: #ececea;
  --color-divider: #f1f1f0;
  --color-border: #e4e4e7;
  --color-border-strong: #d4d4d8;
  --color-on-ink: #ffffff;

  /* Typography */
  --font-sans: "Inter", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --text-2xs: 11px;
  --text-xs: 12px;
  --text-sm: 13px;
  --text-base: 14.5px;
  --text-lg: 18px;
  --text-xl: 24px;
  --text-2xl: 26px;
  --tracking-tight: -0.02em;
  --tracking-label: 0.08em;

  /* Spacing (4px grid) */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-14: 56px;
  --space-16: 64px;

  /* Radius */
  --radius-xs: 5px;
  --radius-sm: 8px;
  --radius-md: 10px;
  --radius-lg: 12px;
  --radius-full: 9999px;
}

/* Page styles. Values come from the approved mockup; colours and fonts from the tokens above. */

:root { color-scheme: light; }

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-ink);
  font: 16px/1.5 var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, p, ol, ul, dl, dd { margin: 0; padding: 0; }
ol, ul { list-style: none; }
a { color: inherit; text-decoration: none; }

:focus-visible { outline: 2px solid var(--color-ink); outline-offset: 3px; border-radius: 2px; }
/* #contenu is only a skip-link target, not a control: hide its ring when focus is not
   keyboard-driven (e.g. a click on the skip link). Keyboard focus keeps the visible
   :focus-visible outline above. */
main:focus:not(:focus-visible) { outline-color: transparent; }

/* Layout */
.wrap { max-width: 860px; margin: 0 auto; padding: 0 var(--space-8); }
.sec { padding: 72px 0; border-top: 1px solid var(--color-hairline); scroll-margin-top: 0; }

/* Type */
.lbl {
  font: var(--text-2xs)/1.4 var(--font-mono);
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--color-muted);
}
.h { margin-top: var(--space-3); font-size: 30px; font-weight: 600; letter-spacing: -0.025em; line-height: 1.15; text-wrap: balance; }
.h-xl { margin-top: var(--space-3); font-size: 40px; font-weight: 600; letter-spacing: -0.03em; line-height: 1.08; text-wrap: balance; }
.intro { margin-top: var(--space-4); max-width: 600px; color: var(--color-muted); line-height: 1.65; }

/* Links: underlined 1 px, never filled */
.lnk {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
  text-decoration-color: var(--color-ink);
  transition: text-decoration-color .15s, color .15s;
}
.lnk-soft { color: var(--color-muted); text-decoration-color: var(--color-border-strong); }
.lnk:hover { text-decoration-color: var(--color-muted); }
.lnk-soft:hover { color: var(--color-ink); text-decoration-color: var(--color-ink); }

.actions { display: flex; flex-wrap: wrap; gap: var(--space-3) 26px; margin-top: var(--space-8); font-size: 15px; }
.actions-lg { gap: var(--space-3) 28px; margin-top: 28px; font-size: 16px; }

/* Skip link: off-screen until focused */
.skip {
  position: absolute; left: var(--space-4); top: -100px; z-index: 10;
  padding: var(--space-2) var(--space-3);
  background: var(--color-bg); border: 1px solid var(--color-ink); border-radius: var(--radius-sm);
  font-size: var(--text-sm);
}
.skip:focus { top: var(--space-4); }

/* Header */
.top { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3) 22px; padding-top: 22px; padding-bottom: 22px; font-size: var(--text-sm); }
.brand { font-weight: 600; margin-right: auto; }
.nav { display: flex; gap: 22px; color: var(--color-muted); }
.nav a:hover, .foot-links a:hover { color: var(--color-ink); }
.tools { display: flex; align-items: center; gap: 22px; }
.lang { font-family: var(--font-mono); font-size: var(--text-xs); }
.lang a { color: var(--color-muted); }
.lang a:hover { color: var(--color-ink); }
.chip {
  font: var(--text-2xs)/1.4 var(--font-mono);
  border: 1px solid var(--color-border); border-radius: 6px; padding: 3px 7px;
  transition: border-color .15s;
}
.chip:hover { border-color: var(--color-ink); }

/* Hero */
.hero { padding-top: 96px; padding-bottom: 110px; }
.hero h1 { margin-top: 18px; font-size: 56px; line-height: 1.03; font-weight: 600; letter-spacing: -0.035em; }
.lead { margin-top: var(--space-6); max-width: 580px; font-size: 17px; line-height: 1.65; color: var(--color-muted); }

/* Single-column pages (legal notice, 404) */
.page { padding-top: 72px; padding-bottom: 96px; }

/* Three columns */
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 36px; }
.num { font: var(--text-xs)/1.4 var(--font-mono); color: var(--color-muted); }
.steps h3 { margin-top: var(--space-2); font-size: 16px; font-weight: 600; }
.steps p { margin-top: 6px; font-size: var(--text-base); line-height: 1.6; color: var(--color-muted); }

.figures { margin-top: 30px; }
.fig { font-size: 32px; font-weight: 600; letter-spacing: var(--tracking-tight); line-height: 1.2; white-space: nowrap; font-variant-numeric: tabular-nums; }
.figures p:not(.fig) { margin-top: var(--space-1); font-size: 13.5px; color: var(--color-muted); }

/* Rows (qualities, offers) */
.rows { margin-top: 28px; }
.row { display: grid; grid-template-columns: 180px 1fr; gap: var(--space-6); padding: var(--space-5) 0; border-top: 1px solid var(--color-hairline); }
.row:first-child { border-top: 0; }
.row dt, .row h3 { font-size: 16px; font-weight: 600; }
.row dd, .row > p { color: var(--color-muted); line-height: 1.6; }
.dur { margin-top: var(--space-1); font: var(--text-2xs)/1.4 var(--font-mono); color: var(--color-muted); }

#contact .wrap { padding-bottom: var(--space-5); }
#contact .intro { margin-top: 14px; }

/* Footer */
.foot { border-top: 1px solid var(--color-hairline); }
.foot-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-3) var(--space-6); padding-top: 22px; padding-bottom: 26px; font-size: 12.5px; color: var(--color-muted); }
.foot-links { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5); }

/* Cursor: only present when site.js activates it (fine pointer, no reduced motion) */
body.has-cursor, body.has-cursor :is(a, button, [role=button], summary) { cursor: none; }
.cursor {
  position: fixed; left: 0; top: 0; z-index: 9999;
  width: 14px; height: 14px; border-radius: 50%;
  background: #fff; mix-blend-mode: difference; pointer-events: none;
  opacity: 0; transition: width .2s, height .2s, opacity .18s;
}
.cursor.on { opacity: 1; }
.cursor.big { width: 52px; height: 52px; }

/* Phone */
@media (max-width: 640px) {
  .wrap { padding: 0 var(--space-5); }
  .nav { order: 3; width: 100%; }
  .hero { padding-top: 56px; padding-bottom: 72px; }
  .page { padding-top: 48px; padding-bottom: 64px; }
  .hero h1 { font-size: clamp(32px, 9vw, 44px); line-height: 1.06; }
  .hero h1 br { display: none; }
  .lead { font-size: 16px; }
  .sec { padding: 56px 0; }
  .h { font-size: 26px; }
  .h-xl { font-size: 32px; }
  .grid3 { grid-template-columns: 1fr; gap: var(--space-6); margin-top: 28px; }
  .row { grid-template-columns: 1fr; gap: 6px; }
}
