/* =========================================
   MAIN.CSS - Éléments globaux du site
   ========================================= */
:root {
    --primary: #1d4ed8;
    --primary-hover: #1e40af;
    --accent: #3b82f6;
    --text-dark: #0f172a;
    --text-light: #64748b;
    --bg-white: #ffffff;
    --bg-offwhite: #f8fafc;
    --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-light);
    background-color: var(--bg-white);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: 'Outfit', sans-serif; color: var(--text-dark); line-height: 1.2; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container { max-width: 1280px; margin: 0 auto; padding: 0 40px; }
.section { padding: 100px 0; }
.bg-light { background-color: var(--bg-offwhite); }

/* --- BOUTONS --- */
.btn-primary {
    background: var(--primary);
    color: white;
    padding: 14px 28px;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: none;
    cursor: pointer;
}
.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(29, 78, 216, 0.2);
}

/* --- NAVIGATION --- */
header {
    position: fixed; top: 0; width: 100%; z-index: 1000;
    padding: 25px 0; transition: var(--transition); background: transparent;
}
header.scrolled {
    background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(10px);
    padding: 15px 0; box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
}
.nav-container { display: flex; justify-content: space-between; align-items: center; position: relative; }
.logo { font-family: 'Outfit', sans-serif; font-weight: 800; font-size: 28px; color: var(--text-dark); letter-spacing: -0.5px; }
.logo span { color: var(--primary); }
.nav-links { display: flex; gap: 40px; }
.nav-links li a { font-weight: 500; font-size: 15px; text-transform: uppercase; letter-spacing: 1px; transition: var(--transition); position: relative; }
.nav-links li a::after { content: ''; position: absolute; width: 0; height: 2px; bottom: -5px; left: 0; background-color: var(--primary); transition: var(--transition); }
.nav-links li a:hover::after { width: 100%; }
.nav-links li a:hover { color: var(--primary); }

/* --- FOOTER --- */
footer { background: var(--text-dark); color: white; padding: 80px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 60px; margin-bottom: 60px; }
.footer-logo { font-family: 'Outfit'; font-size: 32px; font-weight: 800; margin-bottom: 20px; display: block; }
.footer-logo span { color: var(--accent); }
.footer-grid h4 { color: white; margin-bottom: 25px; font-size: 20px; }
.footer-grid p, .footer-grid li { color: #94a3b8; margin-bottom: 12px; }
.footer-bottom { text-align: center; color: #64748b; padding-top: 30px; border-top: 1px solid rgba(255,255,255,0.1); font-size: 14px; }

/* --- ANIMATIONS GLOBALES --- */
.reveal { opacity: 0; transform: translateY(40px); transition: all 0.8s ease-out; }
.reveal.active { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* =========================================
   RESPONSIVE DESIGN (Mobiles & Tablettes)
   ========================================= */
.menu-toggle {
    display: none;
    font-size: 28px;
    color: var(--text-dark);
    cursor: pointer;
    transition: var(--transition);
}

@media screen and (max-width: 992px) {
    .menu-toggle { display: block; }
    .header-btn { display: none; }
    
    .nav-menu {
        position: absolute;
        top: 70px;
        left: -20px; /* Aligné avec le container padding sur mobile */
        width: 100vw;
        background: var(--bg-white);
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
        padding: 20px 0;
        transform: translateY(-150%);
        opacity: 0;
        transition: var(--transition);
        z-index: 999;
    }
    
    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
    }

    .nav-links {
        flex-direction: column;
        align-items: center;
        gap: 25px;
    }

    .grid-3, .footer-grid, .stats-grid { grid-template-columns: 1fr; gap: 30px; }
    .split-section { grid-template-columns: 1fr; gap: 40px; }
    .split-image { order: -1; } /* L'image passe au-dessus du texte */
    
    .section { padding: 60px 0; }
    .container { padding: 0 20px; }
}