/* CSS Variables for ZAIRIDES Theme */
:root {
    /* Brand Colors */
    --red-darkest: #7f1d1d;
    --red-dark: #991b1b;
    --red-mid: #dc2626;
    --red-light: #ef4444;
    --red-lighter: #f87171;

    /* Pearl Colors */
    --pearl-dark: #d4d4d8;
    --pearl-mid: #e4e4e7;
    --pearl-light: #f4f4f5;
    --pearl-white: #fafafa;

    /* Light Theme Colors */
    --text-primary: #18181b;
    --text-secondary: #71717a;
    --text-light: #a1a1aa;
    --bg-primary: #fafafa;
    --bg-secondary: #f4f4f5;
    --bg-card: white;

    /* Animations */
    --transition-fast: 0.3s ease;
    --transition-medium: 0.4s ease;
    --transition-slow: 0.6s ease;

    /* Spacing - Mobile First Ultra Minimalisé */
    --section-padding: 40px 5%; /* Mobile base - ultra réduit */
    --section-padding-large: 50px 5%; /* Large mobile - progression douce */
    --section-padding-tablet: 60px 5%; /* Tablet - modéré */
    --section-padding-desktop: 80px 5%; /* Desktop - contrôlé */
    --section-padding-xl: 100px 5%; /* XL Desktop - maximum */

    --container-max-width: 1400px;
    --container-medium-width: 1200px;

    /* Mobile-First Breakpoints */
    --breakpoint-mobile-large: 480px;
    --breakpoint-tablet: 768px;
    --breakpoint-desktop: 1024px;
    --breakpoint-desktop-large: 1200px;

    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-weight-light: 300;
    --font-weight-regular: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    --font-weight-extrabold: 800;
    --font-weight-black: 900;
}

/* Global Styles for ZAIRIDES Website */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    background: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
    transition: background-color var(--transition-medium), color var(--transition-medium);
}

/* Grid Background Pattern */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.08) 1.5px, transparent 1.5px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.08) 1.5px, transparent 1.5px);
    background-size: 30px 30px;
    opacity: 1;
    z-index: -1;
    transition: background-image var(--transition-medium);
}

body.dark-mode::before {
    background-image:
        linear-gradient(rgba(239, 68, 68, 0.05) 1.5px, transparent 1.5px),
        linear-gradient(90deg, rgba(239, 68, 68, 0.05) 1.5px, transparent 1.5px);
    background-size: 30px 30px;
}

/* Common container styles */
.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 5%;
}

.container-medium {
    max-width: var(--container-medium-width);
    margin: 0 auto;
    padding: 0 5%;
}

/* Section headers */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 28px; /* Mobile-First base */
    font-weight: var(--font-weight-light);
    margin-bottom: 16px; /* Mobile spacing */
    color: var(--text-primary);
    letter-spacing: -0.5px;
    transition: color var(--transition-medium);
}

.section-title span {
    font-weight: var(--font-weight-bold);
    color: var(--red-dark);
}

.section-subtitle {
    font-size: 16px; /* Mobile-First base */
    color: var(--text-secondary);
    max-width: 100%; /* Mobile full width */
    margin: 0 auto;
    transition: color var(--transition-medium);
}

/* Light Theme Styles */
body {
    --text-primary: #18181b;
    --text-secondary: #71717a;
    --text-light: #a1a1aa;
    --bg-primary: #fafafa;
    --bg-secondary: #f4f4f5;
    --bg-card: white;
}

/* Light theme specific adjustments */
nav {
    background: white;
    border-bottom: 1px solid var(--pearl-mid);
}

.hero::after {
    background: linear-gradient(135deg, var(--pearl-white) 0%, rgba(255,255,255,0.8) 100%);
}

.analytics-showcase {
    background: linear-gradient(180deg, var(--pearl-white) 0%, white 100%);
}

.contact-form {
    background: white;
    border: 1px solid var(--pearl-mid);
}

/* Chart colors for light theme */
.chart-light-colors {
    --chart-primary: #dc2626;
    --chart-secondary: #991b1b;
    --chart-tertiary: #ef4444;
    --chart-background: rgba(220, 38, 38, 0.05);
    --chart-grid: rgba(113, 113, 122, 0.2);
    --chart-text: #71717a;
}

/* Dark Theme Styles */
body.dark-mode {
    --text-primary: #f4f4f5;
    --text-secondary: #a1a1aa;
    --text-light: #71717a;
    --bg-primary: #0a0a0a;
    --bg-secondary: #18181b;
    --bg-card: #27272a;
    --pearl-mid: rgba(220, 38, 38, 0.2);
}

/* Dark theme grid pattern */
body.dark-mode::before {
    background-image:
        linear-gradient(rgba(239, 68, 68, 0.05) 1.5px, transparent 1.5px),
        linear-gradient(90deg, rgba(239, 68, 68, 0.05) 1.5px, transparent 1.5px);
}

/* Dark theme specific components */
body.dark-mode nav {
    background: var(--bg-card);
    border-bottom: 1px solid rgba(220, 38, 38, 0.1);
}

body.dark-mode .hero::after {
    background: linear-gradient(135deg, var(--bg-primary) 0%, rgba(39, 39, 42, 0.8) 100%);
}

body.dark-mode .analytics-showcase {
    background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

body.dark-mode .analytics-showcase .section-title span {
    color: var(--red-light);
}

body.dark-mode .contact-form {
    background: var(--bg-card);
    border: 1px solid rgba(220, 38, 38, 0.1);
}

/* Dark theme hover effects */
body.dark-mode .service-card:hover,
body.dark-mode .tool-card:hover,
body.dark-mode .tilt-calculator:hover {
    border-color: var(--red-light);
    box-shadow: 0 20px 40px rgba(220, 38, 38, 0.15);
    transform: translateY(-5px);
}

/* Chart colors for dark theme */
body.dark-mode {
    --chart-primary: #ef4444;
    --chart-secondary: #dc2626;
    --chart-tertiary: #f87171;
    --chart-background: rgba(239, 68, 68, 0.1);
    --chart-grid: rgba(161, 161, 170, 0.2);
    --chart-text: #a1a1aa;
}

/* Mobile-First Responsive utilities */

/* Large Mobile (480px+) */
@media (min-width: 480px) {
    .section-title {
        font-size: 32px; /* Progressivement plus grand */
        margin-bottom: 18px;
    }

    .section-subtitle {
        font-size: 17px;
        max-width: 500px; /* Commencer à limiter la largeur */
    }
}

/* Tablet (768px+) */
@media (min-width: 768px) {
    .container, .container-medium {
        padding: 0 4%;
    }

    .section-header {
        margin-bottom: 50px; /* Plus d'espace sur tablet */
    }

    .section-title {
        font-size: 38px;
        margin-bottom: 20px;
    }

    .section-subtitle {
        font-size: 18px;
        max-width: 600px;
    }
}

/* Desktop (1024px+) */
@media (min-width: 1024px) {
    .section-header {
        margin-bottom: 60px; /* Espace desktop complet */
    }

    .section-title {
        font-size: 42px;
        letter-spacing: -0.8px; /* Plus prononcé sur desktop */
    }

    .section-subtitle {
        font-size: 19px;
    }
}

/* Large Desktop (1200px+) */
@media (min-width: 1200px) {
    .section-title {
        font-size: 48px; /* Taille maximale */
    }

    .section-subtitle {
        font-size: 20px;
    }
}
