/* =========================================================
   TOKENS — palette noir & argent, typographies, rythme, motion.
   Deux thèmes : sombre (défaut) et clair. Les zones posées sur
   la vidéo ou une photo (.is-dark) restent toujours sombres.
   ========================================================= */
:root,
.is-dark,
.header:not(.is-compact) {
  /* Noir profond, argent, chrome */
  --bg: #08090a;             /* noir piano */
  --bg-rgb: 8, 9, 10;
  --surface: #101113;        /* carbone */
  --raised: #17181b;         /* graphite */
  --raised-2: #212328;
  --fg-rgb: 255, 255, 255;
  --ink: #ffffff;            /* encre principale (blanc en sombre, noir en clair) */
  --text: #f4f5f7;           /* blanc diamant */
  --text-2: rgba(var(--fg-rgb), 0.8);
  --muted: rgba(var(--fg-rgb), 0.62);
  --faint: rgba(var(--fg-rgb), 0.5);
  --line: rgba(var(--fg-rgb), 0.12);
  --line-strong: rgba(var(--fg-rgb), 0.22);
  --glass: rgba(var(--fg-rgb), 0.08);
  --glass-strong: rgba(var(--fg-rgb), 0.14);

  /* Argent : l'accent du site */
  --accent: #d3d7dd;
  --accent-rgb: 211, 215, 221;
  --accent-ink: #08090a;
  /* Chrome façon carrosserie : reflet d'horizon au milieu */
  --chrome: linear-gradient(180deg, #ffffff 0%, #eceef1 34%, #9da2aa 49%, #6c7179 52%, #d9dce1 74%, #ffffff 100%);
  --accent-bg: linear-gradient(180deg, #f7f8fa 0%, #dfe2e6 45%, #b9bec5 52%, #e9ebee 100%);
  --metal: linear-gradient(180deg, #ffffff 45%, #a9aeb6 100%);
  --danger: #ef8a7a;
  --success: #a6d1b0;
  --grain-opacity: 0.07;
  color-scheme: dark;
}

/* Thème clair : argent poli, encre noire */
:root[data-theme="light"] {
  --bg: #eceef1;
  --bg-rgb: 236, 238, 241;
  --surface: #ffffff;
  --raised: #f5f6f8;
  --raised-2: #e4e6ea;
  --fg-rgb: 12, 13, 15;
  --ink: #0c0d0f;
  --text: #0c0d0f;
  --text-2: rgba(var(--fg-rgb), 0.78);
  --muted: rgba(var(--fg-rgb), 0.64);
  --faint: rgba(var(--fg-rgb), 0.58);
  --line: rgba(var(--fg-rgb), 0.12);
  --line-strong: rgba(var(--fg-rgb), 0.22);
  --glass: rgba(var(--fg-rgb), 0.05);
  --glass-strong: rgba(var(--fg-rgb), 0.1);
  --accent: #2b2e34;
  --accent-rgb: 43, 46, 52;
  --accent-ink: #ffffff;
  --chrome: linear-gradient(180deg, #4a4f57 0%, #16181c 46%, #000000 52%, #3b3f46 76%, #7d838c 100%);
  --accent-bg: linear-gradient(180deg, #3d4148 0%, #17191d 48%, #000000 54%, #2a2d33 100%);
  --metal: linear-gradient(180deg, #0c0d0f 45%, #5d626a 100%);
  --danger: #b4402e;
  --success: #2f7a45;
  --grain-opacity: 0.035;
  color-scheme: light;
}

:root {
  /* Typographies : trois rôles */
  --font-display: "Unbounded", "Archivo", system-ui, sans-serif;  /* titres, chiffres géants */
  --font-tech: "Michroma", "Archivo", system-ui, sans-serif;      /* étiquettes, boutons, compteurs */
  --font-body: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font: var(--font-body);

  --fs-xs: 10.5px;
  --fs-sm: 14px;
  --fs-base: 16px;
  --fs-lg: clamp(17px, 1.3vw, 19px);
  --fs-h3: clamp(20px, 1.9vw, 26px);
  --fs-h2: clamp(34px, 5.2vw, 82px);

  /* Rythme */
  --gutter: clamp(20px, 4vw, 56px);
  --section-y: clamp(96px, 12vw, 180px);
  --maxw: 1440px;
  --radius: 10px;
  --radius-lg: 18px;
  --header-h: 72px;

  /* Motion */
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --t-fast: 0.25s;
  --t-med: 0.6s;
  --t-slow: 1.1s;
}

/* Les zones sombres forcées recalculent la couleur du texte */
.is-dark, .header:not(.is-compact) { color: var(--text); }
