/* Paul Barreteau — genere depuis tokens.json du design system. Ne pas editer a la main. */

:root, [data-theme="dark"] {
  --bg: #0e0e0f;
  --surface: #17171a;
  --surface-raised: #1f1f23;
  --surface-sunken: #090909;
  --line: #2c2c31;
  --line-strong: #3e3e45;
  --line-control: #6e6e77;
  --ink: #f5f2ef;
  --ink-muted: #aaa6a1;
  --ink-faint: #8d8984;
  --brand: #ce171a;
  --brand-ink: #ff4a42;
  --brand-wash: #2a1113;
  --on-brand: #ffffff;
  --volt: #f0e500;
  --volt-ink: #f0e500;
  --on-volt: #141312;
  --ok: #56d364;
  --critical: #ff7a6e;
  --info: #6fb4d8;
  --shadow-overlay: 0 24px 64px rgba(0, 0, 0, 0.65);
  --shadow-focus: 0 0 0 2px #0e0e0f, 0 0 0 4px #f0e500;
}

[data-theme="light"] {
  --bg: #faf8f5;
  --surface: #ffffff;
  --surface-raised: #f1ece5;
  --surface-sunken: #e9e2d8;
  --line: #ddd6cc;
  --line-strong: #b9b1a5;
  --line-control: #8a8278;
  --ink: #141312;
  --ink-muted: #5a564f;
  --ink-faint: #67625a;
  --brand: #ce171a;
  --brand-ink: #b31215;
  --brand-wash: #fbeceb;
  --on-brand: #ffffff;
  --volt: #f0e500;
  --volt-ink: #6b5c00;
  --on-volt: #141312;
  --ok: #136026;
  --critical: #c2241a;
  --info: #1f6a93;
  --shadow-overlay: 0 24px 64px rgba(20, 19, 18, 0.16);
  --shadow-focus: 0 0 0 2px #faf8f5, 0 0 0 4px #6b5c00;
}

:root {
  /* spacing */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-6: 24px;
  --space-8: 32px;
  --space-12: 48px;
  --space-16: 64px;
  --space-24: 96px;
  --space-32: 128px;
  --space-48: 192px;
  /* biseau */
  --biseau-sm: 8px;
  --biseau-md: 14px;
  --biseau-lg: 22px;
  /* radius */
  --radius-xs: 2px;
  --radius-sm: 4px;
  --radius-full: 999px;
  /* border */
  --border-hair: 1px;
  --border-rule: 2px;
  /* opacity */
  --opacity-grid: 0.07;
  --opacity-disabled: 0.4;
  --opacity-scrim: 0.72;
  --font-display: "Bricolage Grotesque", "Segoe UI", Helvetica, Arial, sans-serif;
  --font-sans: "Instrument Sans", "Segoe UI", Helvetica, Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
}

/* Titres */
.display { font-family: var(--font-display); font-size: 88px; line-height: 80px; font-weight: 800; letter-spacing: -0.05em; font-variation-settings: 'opsz' 72; }
.h1 { font-family: var(--font-display); font-size: 56px; line-height: 54px; font-weight: 800; letter-spacing: -0.045em; font-variation-settings: 'opsz' 48; }
.h2 { font-family: var(--font-display); font-size: 32px; line-height: 34px; font-weight: 700; letter-spacing: -0.035em; font-variation-settings: 'opsz' 32; }
.h3 { font-family: var(--font-display); font-size: 21px; line-height: 26px; font-weight: 600; letter-spacing: -0.02em; font-variation-settings: 'opsz' 21; }
.stamp { font-family: var(--font-display); font-size: 28px; line-height: 28px; font-weight: 800; letter-spacing: 0.01em; font-variation-settings: 'opsz' 28; }

/* Texte */
.body-lg { font-family: var(--font-sans); font-size: 18px; line-height: 30px; font-weight: 400; }
.body { font-family: var(--font-sans); font-size: 16px; line-height: 26px; font-weight: 400; }
.body-strong { font-family: var(--font-sans); font-size: 16px; line-height: 26px; font-weight: 600; }
.body-sm { font-family: var(--font-sans); font-size: 14px; line-height: 22px; font-weight: 400; }

/* Signal */
.readout { font-family: var(--font-mono); font-size: 21px; line-height: 24px; font-weight: 500; letter-spacing: -0.01em; }
.numeral { font-family: var(--font-mono); font-size: 15px; line-height: 20px; font-weight: 500; }
.meta { font-family: var(--font-mono); font-size: 13px; line-height: 20px; font-weight: 400; letter-spacing: 0.01em; }
.label { font-family: var(--font-mono); font-size: 12px; line-height: 18px; font-weight: 500; letter-spacing: 0.12em; }
.micro { font-family: var(--font-mono); font-size: 11px; line-height: 16px; font-weight: 500; letter-spacing: 0.14em; }

/* utilitaires de biseau — paire diagonale haut-droite + bas-gauche */
.biseau-sm { clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px)); }
.biseau-md { clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px)); }
.biseau-lg { clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 22px 100%, 0 calc(100% - 22px)); }

/* grille de reperage — croix de space-1 au pas de space-6 */
.grille {
  background-color: var(--surface-sunken);
  background-image:
    linear-gradient(var(--line-control) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-control) 1px, transparent 1px);
  background-size: var(--space-6) var(--space-6);
  background-position: center;
  opacity: 1;
}
.grille::before { content: ''; position: absolute; inset: 0; opacity: var(--opacity-grid); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}