/* ══════════════════════════════════════════════════
   ANIMÉMA — tokens de design
   Une seule source de vérité : couleurs, rayons,
   ombres, durées, easings.
   ══════════════════════════════════════════════════ */

:root {
  /* ── Palette (sombre par défaut) ── */
  --bg: #2b0f16;
  --bg-deep: #1c090e;
  --surface: #39141d;
  --surface-2: #451a24;
  --glass: rgba(57, 20, 29, 0.72);
  --glass-2: rgba(69, 26, 36, 0.55);
  --glass-solid: rgba(45, 17, 24, 0.95);
  --text: #f4ebd9;
  --text-muted: #c9b69b;
  --accent: #e8b64c;
  --accent-soft: rgba(232, 182, 76, 0.16);
  --ink: #180b08;

  /* Couleurs « fun » réservées aux hovers / états */
  --fun-red: #d7263d;
  --fun-yellow: #ffd23f;
  --fun-violet: #8f6bd8;
  --fun-pink: #f0709a;

  /* Couleurs « lettre » du hero (thème-sensibles) */
  --letter-1: #ffd23f;
  --letter-2: #ff9f68;
  --letter-3: #d7263d;
  --letter-4: #8f6bd8;
  --letter-5: #f0709a;

  --border: rgba(244, 235, 217, 0.14);
  --border-strong: rgba(244, 235, 217, 0.26);
  --shadow-1: 0 2px 8px rgba(0, 0, 0, 0.28);
  --shadow-2: 0 14px 40px rgba(0, 0, 0, 0.42), 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-3: 0 40px 90px rgba(0, 0, 0, 0.55), 0 8px 24px rgba(0, 0, 0, 0.4);
  --glow: 0 0 40px rgba(232, 182, 76, 0.22);

  /* ── Rayons (coins « continuous ») ── */
  --r-xs: 8px;
  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 24px;
  --r-xl: 30px;
  --r-pill: 999px;

  /* ── Durées & easings ── */
  --d-xs: 0.14s;
  --d-fast: 0.24s;
  --d-mid: 0.42s;
  --d-slow: 0.9s;
  --d-scene: 1.4s;
  --e-out: cubic-bezier(0.16, 1, 0.3, 1);
  --e-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --e-back: cubic-bezier(0.34, 1.56, 0.64, 1);

  /* ── Typo ── */
  --font-ui: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Archivo Black", "Inter", sans-serif;
  --font-daydream: "Quicksand", "Baloo 2", "Pacifico", cursive;
  --font-mono: "Space Mono", ui-monospace, monospace;

  --hero-size: clamp(3.6rem, 13.5vw, 15rem);

  /* ── Layout ── */
  --bar-h: 46px;
  --dock-h: 74px;
  --gutter: clamp(1rem, 4vw, 3.5rem);
  --maxw: 1320px;
}

/* ── Thème clair ── */
[data-theme="light"] {
  --bg: #f7f1e5;
  --bg-deep: #ece2d0;
  --surface: #fffdf8;
  --surface-2: #f2e9d8;
  --glass: rgba(255, 253, 248, 0.78);
  --glass-2: rgba(255, 253, 248, 0.55);
  --glass-solid: rgba(255, 253, 248, 0.95);
  --text: #2b0f16;
  --text-muted: #6b5546;
  --accent: #b4821d;
  --accent-soft: rgba(180, 130, 29, 0.14);
  --ink: #fffdf8;
  --border: rgba(43, 15, 22, 0.12);
  --border-strong: rgba(43, 15, 22, 0.24);
  --shadow-1: 0 2px 8px rgba(43, 15, 22, 0.08);
  --shadow-2: 0 14px 40px rgba(43, 15, 22, 0.12), 0 2px 8px rgba(43, 15, 22, 0.06);
  --shadow-3: 0 40px 90px rgba(43, 15, 22, 0.18), 0 8px 24px rgba(43, 15, 22, 0.1);
  --glow: 0 0 40px rgba(180, 130, 29, 0.18);
  --fun-red: #c21f36;
  --fun-yellow: #e8b10c;
  --fun-violet: #6b4fc0;
  --fun-pink: #d94f7e;
  --letter-1: #a8790f;
  --letter-2: #c2410c;
  --letter-3: #c21f36;
  --letter-4: #6b4fc0;
  --letter-5: #d94f7e;
}
