/* Jetons de style : typographie, espacements, puis palettes de couleurs.
   Une palette s'active avec l'attribut data-palette posé sur <html> (réglage `palette` de src/_data/site.js). */

:root {
  --font-heading: "Space Grotesk Variable", "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter Variable", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: clamp(1.75rem, 1.35rem + 1.7vw, 2.5rem);
  --text-3xl: clamp(2.125rem, 1.5rem + 2.8vw, 3.25rem);
  --text-hero: clamp(2.5rem, 1.45rem + 4.7vw, 4.25rem);

  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --radius-pill: 999px;

  --container: 72rem;
  --container-narrow: 46rem;
  --header-height: 4.25rem;
}

/* ---------- Palettes sombres ---------- */

:root,
[data-palette="nuit-bleue"] {
  color-scheme: dark;
  --color-bg: #060a14;
  --color-bg-alt: #0b1220;
  --color-surface: #101a2d;
  --color-surface-2: #1a2640;
  --color-border: #1d2a45;
  --color-border-strong: #2e3f63;
  --color-heading: #f4f7fc;
  --color-text: #b8c2d6;
  --color-muted: #8b97ae;
  --color-accent: #2563eb;
  --color-accent-hover: #2e6cf2;
  --color-on-accent: #ffffff;
  --color-accent-text: #7ea6ff;
  --color-accent-soft: rgb(59 118 246 / 0.16);
  --color-accent-soft-text: #a8c3ff;
  --color-glow: rgb(37 99 235 / 0.6);
  --gradient-accent: linear-gradient(90deg, #6b9bff, #9fd4ff);
  --shadow-card: 0 24px 48px -28px rgb(0 0 0 / 0.85);
}

[data-palette="indigo"] {
  color-scheme: dark;
  --color-bg: #08070f;
  --color-bg-alt: #0e0d1b;
  --color-surface: #151429;
  --color-surface-2: #201e3c;
  --color-border: #25234a;
  --color-border-strong: #383569;
  --color-heading: #f6f5fe;
  --color-text: #bdbad8;
  --color-muted: #918daf;
  --color-accent: #6253e8;
  --color-accent-hover: #6d5ef0;
  --color-on-accent: #ffffff;
  --color-accent-text: #a79bff;
  --color-accent-soft: rgb(117 102 242 / 0.18);
  --color-accent-soft-text: #c5bdff;
  --color-glow: rgb(98 83 232 / 0.6);
  --gradient-accent: linear-gradient(90deg, #9486ff, #d2a8ff);
  --shadow-card: 0 24px 48px -28px rgb(0 0 0 / 0.85);
}

[data-palette="emeraude"] {
  color-scheme: dark;
  --color-bg: #050c0a;
  --color-bg-alt: #091512;
  --color-surface: #0e1f1a;
  --color-surface-2: #162e26;
  --color-border: #1a362d;
  --color-border-strong: #2a5245;
  --color-heading: #f1faf6;
  --color-text: #b3c8bf;
  --color-muted: #86a196;
  --color-accent: #10b981;
  --color-accent-hover: #34d399;
  --color-on-accent: #03140e;
  --color-accent-text: #3fd9a0;
  --color-accent-soft: rgb(16 185 129 / 0.15);
  --color-accent-soft-text: #7fe9c0;
  --color-glow: rgb(16 185 129 / 0.5);
  --gradient-accent: linear-gradient(90deg, #34d399, #7ee8d2);
  --shadow-card: 0 24px 48px -28px rgb(0 0 0 / 0.85);
}

[data-palette="ambre"] {
  color-scheme: dark;
  --color-bg: #0b0907;
  --color-bg-alt: #13100c;
  --color-surface: #1b1712;
  --color-surface-2: #29231a;
  --color-border: #30291f;
  --color-border-strong: #4a3f2f;
  --color-heading: #faf6ee;
  --color-text: #cdc4b5;
  --color-muted: #9d9382;
  --color-accent: #f59e0b;
  --color-accent-hover: #fbb32c;
  --color-on-accent: #1b1203;
  --color-accent-text: #fbbf24;
  --color-accent-soft: rgb(245 158 11 / 0.15);
  --color-accent-soft-text: #fcd581;
  --color-glow: rgb(245 158 11 / 0.45);
  --gradient-accent: linear-gradient(90deg, #fbbf24, #fb923c);
  --shadow-card: 0 24px 48px -28px rgb(0 0 0 / 0.85);
}

/* ---------- Palettes claires ---------- */

[data-palette="clair-bleu"] {
  color-scheme: light;
  --color-bg: #ffffff;
  --color-bg-alt: #f5f7fb;
  --color-surface: #ffffff;
  --color-surface-2: #edf1f7;
  --color-border: #e0e5ee;
  --color-border-strong: #c5cede;
  --color-heading: #0b1220;
  --color-text: #434d61;
  --color-muted: #657188;
  --color-accent: #1d4ed8;
  --color-accent-hover: #1a43bd;
  --color-on-accent: #ffffff;
  --color-accent-text: #1d4ed8;
  --color-accent-soft: #e5edff;
  --color-accent-soft-text: #1b44be;
  --color-glow: rgb(29 78 216 / 0.4);
  --gradient-accent: linear-gradient(90deg, #1d4ed8, #3b82f6);
  --shadow-card: 0 24px 48px -28px rgb(20 30 60 / 0.3);
}

[data-palette="sable"] {
  color-scheme: light;
  --color-bg: #faf7f1;
  --color-bg-alt: #f2ede3;
  --color-surface: #fffdf9;
  --color-surface-2: #ebe5d9;
  --color-border: #e3dbcc;
  --color-border-strong: #cbc0ac;
  --color-heading: #1b1915;
  --color-text: #4c473e;
  --color-muted: #6d665a;
  --color-accent: #1c6b52;
  --color-accent-hover: #175944;
  --color-on-accent: #ffffff;
  --color-accent-text: #1b664e;
  --color-accent-soft: #dbeae2;
  --color-accent-soft-text: #175944;
  --color-glow: rgb(28 107 82 / 0.35);
  --gradient-accent: linear-gradient(90deg, #1c6b52, #2f9a78);
  --shadow-card: 0 24px 48px -28px rgb(60 45 20 / 0.3);
}
