/* ============================================================
   STUDIO ORBE — Design Tokens (fork biffusion étude #1 — DARK-ONLY)
   Tendances Web Design 2026 : tokens fluides, typographie clamp(),
   système d'espacement 4px. Palette pâle retirée (dark uniquement).
   ============================================================ */

:root {
  /* ----- Type scale fluide (clamp) — respecte les préférences utilisateur via rem ----- */
  --text-xs:   clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);   /* 12 → 14 */
  --text-sm:   clamp(0.875rem, 0.8rem + 0.35vw, 1rem);      /* 14 → 16 */
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);     /* 16 → 18 */
  --text-lg:   clamp(1.125rem, 1rem + 0.75vw, 1.5rem);      /* 18 → 24 */
  --text-xl:   clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);     /* 24 → 36 */
  --text-2xl:  clamp(2rem, 1.2rem + 2.5vw, 3.5rem);         /* 32 → 56 */
  --text-3xl:  clamp(2.5rem, 1rem + 4vw, 5rem);             /* 40 → 80 */
  --text-hero: clamp(3rem, 0.5rem + 7vw, 8rem);             /* 48 → 128 — kinetic typography */

  /* ----- Système d'espacement 4px ----- */
  --space-1: 0.25rem;  --space-2: 0.5rem;   --space-3: 0.75rem;
  --space-4: 1rem;     --space-5: 1.25rem;  --space-6: 1.5rem;
  --space-8: 2rem;     --space-10: 2.5rem;  --space-12: 3rem;
  --space-16: 4rem;    --space-20: 5rem;    --space-24: 6rem;
  --space-32: 8rem;

  /* ----- Rayons ----- */
  --radius-sm: 0.5rem;  --radius-md: 0.875rem; --radius-lg: 1.25rem;
  --radius-xl: 1.75rem; --radius-full: 9999px;

  /* ----- Transitions (micro-interactions < 300ms) ----- */
  --transition-interactive: 200ms cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 450ms cubic-bezier(0.16, 1, 0.3, 1);

  /* ----- Largeurs de contenu ----- */
  --content-narrow: 680px;
  --content-default: 1040px;
  --content-wide: 1280px;
  --gutter: clamp(1.25rem, 5vw, 4rem);

  /* ----- Polices (variable fonts) ----- */
  --font-display: 'Clash Display', 'Satoshi', system-ui, sans-serif;
  --font-body: 'General Sans', 'Inter', system-ui, sans-serif;

  /* ----- Couleur d'accent partagée ----- */
  --accent-cyan: #18d3e0;
  --accent-coral: #ff7a66;
  --accent-violet: #8b6cf0;

  color-scheme: dark;
}

/* ============================================================
   PALETTE FONCÉE — dark-only (palette pâle et bascule retirées)
   Pas de noir pur : navy du logo + gris foncés désaturés.
   ============================================================ */
:root,
[data-theme='dark'] {
  --color-bg:             #0B101F;
  --color-surface:        #111827;
  --color-surface-2:      #18202f;
  --color-surface-offset: #0e1320;
  --color-surface-glass:  rgba(20, 28, 42, 0.55);
  --color-divider:        #1e2638;
  --color-border:         #283247;

  --color-text:        #e9eff5;
  --color-text-muted:  #a3a0b8;
  --color-text-faint:  #6b687e;
  --color-text-inverse:#111827;

  --color-primary:        #15C4B3;
  --color-primary-hover:  #2BD4C4;
  --color-primary-active: #0FA092;
  --color-primary-contrast:#06222a;
  --color-primary-soft:   rgba(21, 196, 179, 0.12);

  --color-accent:         #ff8270;
  --color-accent-hover:   #ff9b8c;

  --color-support:        #a78bff;

  --glow-1: rgba(139, 108, 240, 0.30);
  --glow-2: rgba(21, 196, 179, 0.22);
  --glow-3: rgba(255, 122, 102, 0.18);

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.55);
  --shadow-glow: 0 0 30px rgba(21, 196, 179, 0.15);

  --hero-gradient: radial-gradient(120% 120% at 15% 10%, #122036 0%, #0B101F 48%, #0b1426 100%);
}
