/* Tang-IA Design System: tokens.css
   Variables CSS uniques source de vérité pour couleurs, typo, spacing, motion */

:root {
  /* === COULEURS ===
     Charte Tang-IA
     - Bleu nuit #0B1023 : fonds sombres, textes
     - Vert IA   #7CFF4E : CTA, IA, chiffres cles, etats actifs
     - Blanc     #FFFFFF : fonds clairs
     - Gris      #F2F2F2 : fonds secondaires, separateurs */

  /* Fonds */
  --bg-primary: #FFFFFF;
  --bg-elevated: #FFFFFF;
  --bg-subtle: #F2F2F2;
  --bg-deep: #0B1023;

  /* Textes */
  --text-primary: #0B1023;
  --text-secondary: #3D4658;
  --text-muted: #7A8295;
  --text-inverse: #FFFFFF;

  /* Bordures */
  --border-subtle: #E5E5E5;
  --border-medium: #CFCFCF;
  --border-strong: #0B1023;

  /* Accent vert signature (CTA / IA / chiffres) */
  --accent: #7CFF4E;
  --accent-deep: #1F8F2E;
  --accent-soft: #B5FFA0;
  --accent-glow: rgba(124, 255, 78, 0.15);
  --accent-deep-glow: rgba(31, 143, 46, 0.08);

  /* Bleu nuit en variantes */
  --ink-glow: rgba(11, 16, 35, 0.06);
  --ink-glow-strong: rgba(11, 16, 35, 0.12);

  /* === TYPOGRAPHIE === */
  /* Geist pour titres (moderne, géométrique, type Vercel/Linear)
     Inter pour le corps (lisibilité B2B) */
  --font-display: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  /* Alias pour compatibilité */
  --font-serif: var(--font-display);

  /* Échelle (clamp pour fluid typography) */
  --text-xs: 0.75rem;     /* 12px */
  --text-sm: 0.875rem;    /* 14px */
  --text-base: 1rem;      /* 16px */
  --text-lg: 1.125rem;    /* 18px */
  --text-xl: 1.375rem;    /* 22px */
  --text-2xl: 1.75rem;    /* 28px */
  --text-3xl: clamp(1.75rem, 3vw, 2.25rem);    /* 28-36px */
  --text-4xl: clamp(2.25rem, 4vw, 3rem);       /* 36-48px */
  --text-5xl: clamp(2.75rem, 5vw, 4rem);       /* 44-64px */
  --text-6xl: clamp(3.5rem, 7vw, 5rem);        /* 56-80px */

  --leading-tight: 1.1;
  --leading-snug: 1.25;
  --leading-normal: 1.5;
  --leading-relaxed: 1.65;

  --tracking-tight: -0.025em;
  --tracking-normal: 0;
  --tracking-wide: 0.05em;

  /* === SPACING (échelle 4px) === */
  --space-1: 0.25rem;   /* 4px */
  --space-2: 0.5rem;    /* 8px */
  --space-3: 0.75rem;   /* 12px */
  --space-4: 1rem;      /* 16px */
  --space-5: 1.25rem;   /* 20px */
  --space-6: 1.5rem;    /* 24px */
  --space-8: 2rem;      /* 32px */
  --space-10: 2.5rem;   /* 40px */
  --space-12: 3rem;     /* 48px */
  --space-16: 4rem;     /* 64px */
  --space-20: 5rem;     /* 80px */
  --space-24: 6rem;     /* 96px */
  --space-32: 8rem;     /* 128px */

  /* === LAYOUT === */
  --container-max: 1360px;
  --container-narrow: 880px;
  --container-padding: clamp(1.25rem, 4vw, 3rem);

  /* === RADIUS === */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 32px;
  --radius-full: 9999px;

  /* === SHADOWS === */
  --shadow-xs: 0 1px 2px rgba(10, 14, 26, 0.04);
  --shadow-sm: 0 1px 3px rgba(10, 14, 26, 0.06), 0 1px 2px rgba(10, 14, 26, 0.04);
  --shadow-md: 0 4px 12px rgba(10, 14, 26, 0.06), 0 2px 4px rgba(10, 14, 26, 0.04);
  --shadow-lg: 0 12px 32px rgba(10, 14, 26, 0.08), 0 4px 8px rgba(10, 14, 26, 0.04);
  --shadow-xl: 0 24px 48px rgba(10, 14, 26, 0.12), 0 8px 16px rgba(10, 14, 26, 0.06);
  --shadow-glow: 0 0 0 4px var(--accent-glow);
  --shadow-glow-strong: 0 8px 24px var(--accent-glow), 0 0 0 1px rgba(124, 255, 78, 0.4);

  /* === MOTION === */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  --duration-fast: 150ms;
  --duration-base: 250ms;
  --duration-slow: 400ms;
  --duration-slower: 600ms;

  /* === Z-INDEX === */
  --z-header: 100;
  --z-overlay: 200;
  --z-modal: 300;
}

/* Préférence reduced motion */
@media (prefers-reduced-motion: reduce) {
  :root {
    --duration-fast: 0.01ms;
    --duration-base: 0.01ms;
    --duration-slow: 0.01ms;
    --duration-slower: 0.01ms;
  }
}
