/* ===================================
   CSS VARIABLES & DESIGN TOKENS
   =================================== */

:root {
    /* ===== COLORS ===== */
    /* Primary Colors - Rose palette */
    --color-primary-50: #ffe8f5;
    --color-primary-100: #ffcce6;
    --color-primary-200: #ff99cc;
    --color-primary-300: #ff66b3;
    --color-primary-400: #ff3399;
    --color-primary-500: #ff1a80;
    --color-primary-600: #e61a73;
    --color-primary-700: #cc1966;
    --color-primary-800: #b31959;
    --color-primary-900: #99184c;

    /* Neutral Colors */
    --color-neutral-0: #ffffff;
    --color-neutral-50: #f8f9fa;
    --color-neutral-100: #f1f3f5;
    --color-neutral-200: #e9ecef;
    --color-neutral-300: #dee2e6;
    --color-neutral-400: #ced4da;
    --color-neutral-500: #adb5bd;
    --color-neutral-600: #868e96;
    --color-neutral-700: #495057;
    --color-neutral-800: #343a40;
    --color-neutral-900: #212529;
    --color-neutral-1000: #000000;

    /* Semantic Colors */
    --color-success: #10b981;
    --color-error: #ef4444;
    --color-warning: #f59e0b;
    --color-info: #ff1a80;
    --footer-title-color: #ff1a80;
    /* Default Pink Title */

    /* Gradient */
    --gradient-primary: linear-gradient(135deg, #ff1a80 0%, #ff66b3 50%, #ffb3d9 100%);
    --gradient-hero: linear-gradient(135deg, #ff3399 0%, #ff99cc 100%);
    --gradient-overlay: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.7) 100%);
    --accent-gradient: var(--gradient-primary);

    /* Background Gradients (Light Pink Default) */
    --bg-gradient-top: rgba(255, 26, 128, 0.05);
    /* Light pink tint */
    --bg-gradient-bottom: #ffffff;

    --icon-fill: transparent;
    --logo-color: #ff1a80;

    /* Background Texture */
    --bg-texture-url: url('../img/organiclinge-rose.svg');
    --bg-texture-opacity: 0.04;
    /* Slightly more visible for rose light mode */
    --bg-texture-blend: multiply;
    /* Default Pink Logo */

    /* Footer Variables (Light Mode Default) */
    --footer-bg-image: url('../img/containerfooterblanc.svg');
    --footer-text: #000000;
    --footer-title-color: #ff1a80;
    /* Pink by default for titles */
    --footer-mobile-bg: #ffffff;
    --footer-logo-filter: brightness(0) invert(0);
    /* Black logos */

    /* ===== LIGHT MODE (Default) ===== */
    --bg-primary: var(--color-neutral-0);
    --bg-secondary: var(--color-neutral-50);
    --bg-tertiary: var(--color-neutral-100);
    --bg-elevated: var(--color-neutral-0);

    --text-primary: var(--color-neutral-900);
    --text-secondary: var(--color-neutral-700);
    --text-tertiary: var(--color-neutral-600);
    --text-inverse: var(--color-neutral-0);

    --border-color: var(--color-neutral-200);
    --border-color-hover: var(--color-neutral-300);

    --accent-color: var(--color-primary-500);
    --accent-hover: var(--color-primary-600);
    --accent-light: rgba(255, 26, 128, 0.05);
    /* Very subtle rose tint */
    --bg-body: #ffffff;
    --bg-elevated-rgb: 255, 255, 255;

    /* ===== TYPOGRAPHY ===== */
    /* Font Families */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-display: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'SF Mono', 'Monaco', 'Inconsolata', 'Fira Code', monospace;

    /* Font Sizes */
    --text-xs: 0.75rem;
    /* 12px */
    --text-sm: 0.875rem;
    /* 14px */
    --text-base: 1rem;
    /* 16px */
    --text-lg: 1.125rem;
    /* 18px */
    --text-xl: 1.25rem;
    /* 20px */
    --text-2xl: 1.5rem;
    /* 24px */
    --text-3xl: 1.875rem;
    /* 30px */
    --text-4xl: 2.25rem;
    /* 36px */
    --text-5xl: 3rem;
    /* 48px */
    --text-6xl: 3.75rem;
    /* 60px */
    --text-7xl: 4.5rem;
    /* 72px */
    --text-8xl: 6rem;
    /* 96px */

    /* Font Weights */
    --font-light: 300;
    --font-regular: 400;
    --font-medium: 500;
    --font-semibold: 600;
    --font-bold: 700;
    --font-extrabold: 800;
    --font-black: 900;

    /* Line Heights */
    --leading-none: 1;
    --leading-tight: 1.25;
    --leading-snug: 1.375;
    --leading-normal: 1.5;
    --leading-relaxed: 1.625;
    --leading-loose: 2;

    /* ===== SPACING ===== */
    --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-sm: 640px;
    --container-md: 768px;
    --container-lg: 1024px;
    --container-xl: 1280px;
    --container-2xl: 1536px;

    --container-padding: var(--space-4);
    --section-padding: var(--space-20);

    /* ===== BORDER RADIUS ===== */
    --radius-sm: 0.25rem;
    /* 4px */
    --radius-base: 0.5rem;
    /* 8px */
    --radius-md: 0.75rem;
    /* 12px */
    --radius-lg: 1rem;
    /* 16px */
    --radius-xl: 1.5rem;
    /* 24px */
    --radius-2xl: 2rem;
    /* 32px */
    --radius-full: 9999px;

    /* ===== SHADOWS ===== */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-base: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --shadow-inner: inset 0 2px 4px 0 rgba(0, 0, 0, 0.05);

    /* Colored Shadows - Using RGB for flexibility */
    --accent-rgb: 255, 26, 128;
    --shadow-primary: 0 10px 30px -5px rgba(var(--accent-rgb), 0.3);
    --shadow-primary-lg: 0 20px 40px -10px rgba(var(--accent-rgb), 0.4);

    /* ===== Z-INDEX ===== */
    --z-base: 1;
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-fixed: 300;
    --z-modal-backdrop: 400;
    --z-modal: 500;
    --z-popover: 600;
    --z-tooltip: 700;
    --z-cursor: 9999;

    /* ===== TRANSITIONS ===== */
    --transition-fast: 150ms;
    --transition-base: 250ms;
    --transition-slow: 350ms;
    --transition-slower: 500ms;

    --ease-linear: linear;
    --ease-in: cubic-bezier(0.4, 0, 1, 1);
    --ease-out: cubic-bezier(0, 0, 0.2, 1);
    --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
    --ease-smooth: cubic-bezier(0.25, 0.46, 0.45, 0.94);

    /* ===== ANIMATIONS ===== */
    --animation-duration-fast: 200ms;
    --animation-duration-base: 300ms;
    --animation-duration-slow: 500ms;
    --animation-duration-slower: 800ms;

    /* ===== BLUR ===== */
    --blur-sm: 4px;
    --blur-base: 8px;
    --blur-md: 12px;
    --blur-lg: 16px;
    --blur-xl: 24px;

    /* ===== HEADER ===== */
    --header-height: 80px;
    --header-height-mobile: 70px;

    /* ===== CURSOR ===== */
    --cursor-size: 40px;
    --cursor-dot-size: 8px;

    /* ===== F1 CAR COLORS (Inverted Logic) ===== */
    /* Default (Pink Site) -> Blue Car (Brightened) */
    --f1-body-main: #1a75ff;
    /* Slightly lighter/brighter blue */
    --f1-body-dark: #0066cc;
    --f1-body-accent: #3385ff;
    --f1-wing: #111111;
}


/* ===================================
   DARK MODE
   =================================== */

[data-theme="dark"] {
    /* Background Colors - Deep Dark */
    --bg-primary: #050505;
    /* Back to very dark grey instead of pure black */
    --bg-secondary: #0a0a0a;
    --bg-tertiary: #101010;
    --bg-elevated: #151515;
    --bg-elevated-rgb: 21, 21, 21;
    --bg-body: #050505;

    /* Text Colors */
    --text-primary: #ffffff;
    --text-secondary: #d0d0d0;
    --text-tertiary: #a0a0a0;
    --text-inverse: #000000;

    /* Border Colors */
    --border-color: rgba(255, 255, 255, 0.15);
    --border-color-hover: rgba(255, 255, 255, 0.3);

    /* Accent Colors - Make pink pop more */
    --accent-color: #ff3399;
    /* Brighter pink for dark mode */
    --accent-hover: #ff66b3;
    --accent-light: rgba(255, 51, 153, 0.08);
    /* Subtle rose tint for dark mode */
    --bg-body: #050505;

    /* Background Gradients (Dark Pink Default) - Deep Midnight Pink */
    --bg-gradient-top: #1a0812;
    --bg-gradient-bottom: #050505;

    --bg-texture-url: url('../img/organiclinge-rose.svg');
    --bg-texture-opacity: 0.08;
    /* Subtle pink lines */
    --bg-texture-blend: normal;

    /* Shadows (darker for dark mode) */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.5);
    --shadow-base: 0 1px 3px 0 rgba(0, 0, 0, 0.6), 0 1px 2px -1px rgba(0, 0, 0, 0.6);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.6), 0 2px 4px -2px rgba(0, 0, 0, 0.6);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.7), 0 4px 6px -4px rgba(0, 0, 0, 0.7);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.8), 0 8px 10px -6px rgba(0, 0, 0, 0.8);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.9);

    /* Colored Shadows */
    --accent-rgb: 255, 51, 153;
    --shadow-primary: 0 10px 30px -5px rgba(var(--accent-rgb), 0.4);
    --shadow-primary-lg: 0 20px 40px -10px rgba(var(--accent-rgb), 0.5);

    --icon-fill: transparent;

    /* Footer Variables (Dark Mode) */
    /* Dark Mode: Match Contact section background */
    --footer-bg: var(--bg-secondary);
    --footer-bg-color: var(--bg-secondary);

    --footer-text: #ffffff;
    --footer-mobile-bg: var(--bg-secondary);
    --footer-logo-filter: brightness(0) invert(1);
    /* White logos */
}

/* ===================================
   BREAKPOINTS (for reference in media queries)
   =================================== */

/* 
Mobile: 320px - 767px
Tablet: 768px - 1023px
Desktop: 1024px - 1439px
Large Desktop: 1440px+

Usage:
@media (min-width: 768px) { ... }
@media (min-width: 1024px) { ... }
@media (min-width: 1440px) { ... }
*/

/* ===================================
   ACCESSIBILITY
   =================================== */

/* Respect user's motion preferences */
@media (prefers-reduced-motion: reduce) {
    :root {
        --transition-fast: 0ms;
        --transition-base: 0ms;
        --transition-slow: 0ms;
        --transition-slower: 0ms;
        --animation-duration-fast: 0ms;
        --animation-duration-base: 0ms;
        --animation-duration-slow: 0ms;
        --animation-duration-slower: 0ms;
    }
}

/* ===== SECRET BLUE THEME ===== */
/* Secret Blue Theme - Shared */
.theme-secret-blue {
    /* Override Primary Palette with Blue shades */
    --color-primary-50: #eef5ff;
    --color-primary-100: #d9e8ff;
    --color-primary-200: #b9d5ff;
    --color-primary-300: #89b9ff;
    --color-primary-400: #5294ff;
    --color-primary-500: #2b64ab;
    --color-primary-600: #1e4d8a;
    --color-primary-700: #183d6e;
    --color-primary-800: #14325c;
    --color-primary-900: #10274a;

    --accent-rgb: 43, 100, 171;
    --accent-color: #2b64ab;
    --accent-hover: #3b74bb;
    --gradient-primary: linear-gradient(135deg, #2b64ab 0%, #4f8acf 50%, #76aae6 100%);
    --gradient-hero: linear-gradient(135deg, #2b64ab 0%, #4364ab 100%);
    --accent-gradient: var(--gradient-primary);
    --footer-title-color: #2b64ab;
    /* Blue titles in Blue Theme */
    --logo-color: #2b64ab;
    /* Blue Logo in Blue Theme */

    /* Blue Site -> Pink Car (Brighter) */
    --f1-body-main: #ff3399;
    --f1-body-dark: #e61a73;
    --f1-body-accent: #ff66b3;
}

/* Light Theme + Blue Accent */
[data-theme="light"].theme-secret-blue {
    --bg-gradient-top: rgba(43, 100, 171, 0.12);
    --bg-gradient-bottom: #ffffff;
    --accent-light: rgba(43, 100, 171, 0.05);
    --bg-texture-url: url('../img/organiclinge-bleu.svg');
}

/* Dark Theme + Blue Accent */
[data-theme="dark"].theme-secret-blue {
    --bg-gradient-top: #060a12;
    /* Midnight Blue Glow */
    --bg-gradient-bottom: #050505;
    --accent-light: rgba(43, 100, 171, 0.1);
    --bg-texture-url: url('../img/organiclinge-bleu.svg');
    --bg-texture-opacity: 0.1;
}