/* ===== Base CSS - Shared across all pages ===== */
/* This file contains: variables, reset, body styles, animations */

/* ===== CSS Variables ===== */
:root {
    /* Brand colors */
    --primary-color: #BE1E2D;
    --primary-dark: #9a1824;
    --primary-light: #e94057;
    --accent-color: #BE1E2D;
    --accent-light: #fce7e9;

    /* EDHEC Blue */
    --edhec-blue: #14384c;
    --edhec-blue-light: #1e4d66;
    --edhec-blue-lighter: #e6f0f5;

    /* Backgrounds */
    --bg-color: #f8f9fc;
    --bg-secondary: rgba(255, 255, 255, 0.6);
    --bg-tertiary: rgba(245, 247, 250, 0.8);

    /* Text */
    --text-color: #2c2c2c;
    --text-secondary: #4a5568;
    --text-tertiary: #718096;

    /* Borders */
    --border-color: rgba(226, 232, 240, 0.4);

    /* Shadows */
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08), 0 2px 6px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12), 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-glass: 0 8px 32px rgba(31, 38, 135, 0.15), 0 2px 8px rgba(31, 38, 135, 0.1);

    /* Transitions */
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);

    /* 7 Gammes colors */
    --sharp-color: #BE1E2D;
    --glam-color: #667eea;
    --ethics-color: #f093fb;
    --biz-color: #4facfe;
    --impact-color: #43e97b;
    --compliance-color: #FFD700;
    --sovereignty-color: #4B0082;
}

[data-theme="dark"] {
    --bg-color: #0f1419;
    --bg-secondary: rgba(26, 31, 46, 0.6);
    --bg-tertiary: rgba(36, 43, 61, 0.8);
    --text-color: #e6e6e6;
    --text-secondary: #c4cad4;
    --text-tertiary: #8b92a0;
    --border-color: rgba(45, 55, 72, 0.4);
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.6);
    --shadow-glass: 0 8px 32px rgba(0, 0, 0, 0.4), 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* ===== Reset ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ===== Body ===== */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #f8f9fc 0%, #e8edf5 100%);
    color: var(--text-color);
    line-height: 1.6;
    transition: background 0.3s ease, color 0.3s ease;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 80%, rgba(20, 56, 76, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(79, 123, 247, 0.08) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
    animation: gradientShift 15s ease-in-out infinite alternate;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 50% 50%, rgba(212, 175, 55, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 10% 30%, rgba(20, 56, 76, 0.06) 0%, transparent 45%),
        radial-gradient(circle at 90% 70%, rgba(79, 123, 247, 0.06) 0%, transparent 45%);
    background-size: 200% 200%;
    background-position: 0% 0%;
    pointer-events: none;
    z-index: 0;
    animation: meshMove 20s ease-in-out infinite;
}

body > * {
    position: relative;
    z-index: 1;
}

[data-theme="dark"] body {
    background: linear-gradient(135deg, #0f1419 0%, #1a1f2e 100%);
}

[data-theme="dark"] body::before {
    background:
        radial-gradient(circle at 20% 80%, rgba(20, 56, 76, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(79, 123, 247, 0.12) 0%, transparent 50%);
}

/* ===== Animations ===== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

@keyframes gradientShift {
    0% {
        opacity: 0.8;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.1);
    }
    100% {
        opacity: 0.8;
        transform: scale(1);
    }
}

@keyframes meshMove {
    0% { background-position: 0% 0%; }
    25% { background-position: 100% 0%; }
    50% { background-position: 100% 100%; }
    75% { background-position: 0% 100%; }
    100% { background-position: 0% 0%; }
}

/* Animation utility classes */
.fade-in {
    animation: fadeIn 0.8s ease-out;
}

.slide-up {
    animation: slideUp 0.8s ease-out;
}
