/* ============================================
   SAM & SONS V5 — "BLANC + NOIR + ROUGE"
   Light Theme Design System
   ============================================ */

:root {
  /* ─── Backgrounds : White Palette ─── */
  --color-bg: #FFFFFF;              /* Pure white */
  --color-bg-alt: #F5F5F7;         /* Soft gray */
  --color-bg-elevated: #F8F8FA;     /* Off-white — cards, tiles */
  --color-bg-glass: rgba(255, 255, 255, 0.75);
  --color-surface: #F0F0F2;        /* Light gray — interactive surfaces */

  /* ─── Brand Red (conservé) ─── */
  --color-primary: #E20512;
  --color-primary-dark: #B8040F;
  --color-primary-light: #FF2D3A;
  --color-primary-glow: rgba(226, 5, 18, 0.25);

  /* ─── Red Accent (REMPLACE le cyan) ─── */
  --color-cyan: #E20512;
  --color-cyan-dark: #B8040F;
  --color-cyan-light: #FF2D3A;
  --color-cyan-glow: rgba(226, 5, 18, 0.20);
  --color-cyan-glass: rgba(226, 5, 18, 0.06);

  /* ─── Phosphor Green (accent batterie/énergie) ─── */
  --color-green: #00E676;
  --color-green-dark: #00C853;
  --color-green-glow: rgba(0, 230, 118, 0.15);

  /* ─── Legacy aliases (compatibilité transition) ─── */
  --color-gold: var(--color-cyan);
  --color-gold-light: var(--color-cyan-light);
  --color-gold-dark: var(--color-cyan-dark);
  --color-gold-glow: var(--color-cyan-glow);

  /* ─── Gradients ─── */
  --gradient-primary: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  --gradient-dark: linear-gradient(180deg, var(--color-bg) 0%, var(--color-bg-alt) 100%);
  --gradient-hero: linear-gradient(135deg, rgba(10,10,15,0.95) 0%, rgba(10,10,15,0.3) 60%, rgba(10,10,15,0.8) 100%);
  --gradient-glass: linear-gradient(135deg, rgba(0,0,0,0.04) 0%, rgba(0,0,0,0.01) 100%);
  --gradient-cyan-shimmer: linear-gradient(110deg, transparent 33%, rgba(226,5,18,0.10) 50%, transparent 67%);
  --gradient-section: linear-gradient(180deg, var(--color-bg-alt) 0%, var(--color-bg) 100%);
  --gradient-tile: linear-gradient(135deg, var(--color-bg-elevated) 0%, var(--color-surface) 100%);

  /* ─── Text ─── */
  --color-text: #1A1A2E;            /* Dark ink — high contrast on white */
  --color-text-secondary: #4B5563;  /* Medium gray */
  --color-text-muted: #9CA3AF;
  --color-white: #FFFFFF;

  /* ─── Borders ─── */
  --color-border: rgba(0, 0, 0, 0.08);
  --color-border-light: rgba(0, 0, 0, 0.04);
  --color-border-cyan: rgba(226, 5, 18, 0.25);
  --color-border-hover: rgba(0, 0, 0, 0.12);
  --color-border-gold: var(--color-border-cyan);

  /* ─── Semantic ─── */
  --color-success: var(--color-green);
  --color-error: #FF4444;
  --color-warning: #FFB300;

  /* ─── Typography ─── */
  --font-heading: 'Rajdhani', 'Arial Black', Helvetica, sans-serif;
  --font-body: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;

  --fs-mega: clamp(3rem, 8vw, 6rem);       /* GÉANT — titres watermark/bord-à-bord */
  --fs-display: clamp(2.8rem, 5vw, 4.5rem); /* Hero */
  --fs-h1: clamp(2.5rem, 5vw, 4rem);
  --fs-h2: clamp(2rem, 4vw, 3rem);
  --fs-h3: clamp(1.5rem, 3vw, 2.25rem);
  --fs-h4: clamp(1.25rem, 2vw, 1.75rem);
  --fs-xl: 1.25rem;
  --fs-lg: 1.125rem;
  --fs-base: 1rem;
  --fs-md: 0.9375rem;
  --fs-sm: 0.875rem;
  --fs-xs: 0.75rem;
  --fs-xxs: 0.625rem;

  --fw-light: 300;
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;
  --fw-black: 900;

  --lh-tight: 0.85;                 /* Resserré pour mega headings */
  --lh-heading: 1.1;
  --lh-normal: 1.6;
  --lh-relaxed: 1.8;

  --ls-tight: -0.04em;
  --ls-normal: 0;
  --ls-wide: 0.02em;
  --ls-wider: 0.06em;
  --ls-widest: 0.1em;
  --ls-mega: 0.08em;                /* Pour les grands titres uppercase */

  /* ─── Layout ─── */
  --container-max: 1400px;
  --container-narrow: 900px;
  --container-padding: 2rem;

  /* ─── Bento Grid ─── */
  --bento-gap: clamp(0.75rem, 1.2vw, 1.25rem);
  --bento-radius: 16px;
  --bento-cols: 12;

  /* ─── Side Navigation ─── */
  --sidenav-width: 70px;
  --sidenav-width-expanded: 260px;

  /* ─── Spacing ─── */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4.5rem;
  --space-4xl: 6rem;
  --space-5xl: 8rem;
  --space-6xl: 10rem;

  --section-padding: 7rem 0;
  --section-padding-sm: 4rem 0;

  /* ─── Shadows ─── */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.10);
  --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.14);
  --shadow-glow-red: 0 0 30px var(--color-primary-glow);
  --shadow-glow-cyan: 0 0 30px var(--color-cyan-glow);
  --shadow-glow-green: 0 0 20px var(--color-green-glow);
  --shadow-tile-hover: 0 8px 32px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(226, 5, 18, 0.15);

  /* ─── Transitions ─── */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  --transition-fast: 0.2s var(--ease-in-out);
  --transition-normal: 0.4s var(--ease-out-quart);
  --transition-slow: 0.6s var(--ease-out-expo);
  --transition-slower: 1s var(--ease-out-expo);

  /* ─── Border Radius ─── */
  --radius-none: 0;                 /* Brutalist default */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 24px;
  --radius-full: 50%;

  /* ─── Z-Index ─── */
  --z-behind: -1;
  --z-base: 1;
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-sidenav: 250;
  --z-fixed: 300;
  --z-overlay: 400;
  --z-bottomsheet: 450;
  --z-modal: 500;
  --z-grain: 8000;
  --z-loader: 9000;
  --z-cursor: 9999;

  /* ─── Glass Effect ─── */
  --glass-bg: rgba(255, 255, 255, 0.80);
  --glass-border: rgba(0, 0, 0, 0.06);
  --glass-blur: 20px;

  /* ─── Grain Texture ─── */
  --grain-opacity: 0;

  /* ─── Tire Motif ─── */
  --tire-size: 80px;
  --tire-opacity: 0.03;
}
