/**
 * ═══════════════════════════════════════════════════════════════
 * STYLES : tokens.css
 * RÔLE   : Variables CSS centralisées — palette Caro, grille 8pt, typo
 * SCOPE  : global (source unique de vérité du design)
 * @project Caroteck
 * @signature TECHNOTECK ♥ POWER — Pour Caro Annie
 * ═══════════════════════════════════════════════════════════════
 */
:root {
  /* === BACKGROUNDS === */
  --bg-primary: #000000;
  --bg-secondary: #0d0303;
  --bg-card: #1a0808;
  --bg-card-hover: #221010;
  --bg-overlay: rgba(0, 0, 0, 0.85);

  /* === BRAND === */
  --primary: #FF3A30;
  --primary-soft: #FF6B5C;
  --primary-dim: #CC2E26;
  --secondary: #831100;
  --secondary-soft: #A82010;
  --accent: #FF8866;

  /* === TEXT === */
  --text-primary: #F5E6E0;
  --text-secondary: #C4A8A0;
  --text-muted: #88706A;
  --text-on-primary: #000000;

  /* === BORDERS === */
  --border: #2a1010;
  --border-bright: #4a1818;
  --border-focus: #FF3A30;

  /* === STATES (système smiley binaire) === */
  --success: #FF6B5C;   /* smiley :) — été / fait / réussi */
  --warning: #FF8866;
  --danger: #831100;    /* smiley :( — pas été / annulé / pas fait */
  --info: #C4A8A0;

  /* === SPACING (grille 8pt) === */
  --space-2xs: 2px;
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;

  /* === BORDER RADIUS (formes arrondies — préférence Caro) === */
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* === TYPOGRAPHY === */
  --font-family-base: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-family-mono: 'SF Mono', Monaco, 'Courier New', monospace;
  --font-size-2xs: 10px;
  --font-size-xs: 12px;
  --font-size-sm: 13px;
  --font-size-base: 14px;
  --font-size-md: 16px;
  --font-size-lg: 18px;
  --font-size-xl: 22px;
  --font-size-2xl: 28px;
  --font-size-3xl: 36px;
  --font-weight-regular: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --font-weight-black: 800;
  --line-height-tight: 1.2;
  --line-height-base: 1.5;
  --line-height-relaxed: 1.7;

  /* === SHADOWS === */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.6);
  --shadow-glow-primary: 0 0 20px rgba(255, 58, 48, 0.3);
  --shadow-glow-soft: 0 0 16px rgba(255, 107, 92, 0.2);

  /* === ANIMATIONS (modérées) === */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-spring: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);

  /* === Z-INDEX SCALE === */
  --z-base: 1;
  --z-elevated: 10;
  --z-sticky: 100;
  --z-modal: 1000;
  --z-toast: 2000;
  --z-crash: 9999;

  /* === LAYOUT === */
  --max-width-mobile: 600px;
  --max-width-content: 1200px;
  --header-height: 60px;
  --tabbar-height: 64px;
  --safe-area-bottom: env(safe-area-inset-bottom);
}
