:root {
    --primary: #00B4FF;
    --primary-dark: #0082ba;
    --dark: #060d17;
    --dark-card: #0e1a2b;
    --text: #ffffff;
    --gradient: linear-gradient(135deg, #00B4FF 0%, #0047FF 100%);
}
html, body {
    max-width: 100%;
    overflow-x: hidden; /* Empêche le balayage gauche-droite */
    margin: 0;
    padding: 0;
}

* {
    box-sizing: border-box; /* Assure que les paddings ne font pas déborder les éléments */
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Inter', sans-serif; background: var(--dark); color: var(--text); line-height: 1.6; overflow-x: hidden; }

.container { width: 90%; max-width: 1200px; margin: 0 auto; }

/* HEADER GLASSMORPHISM */
.main-header {
    background: rgba(6, 13, 23, 0.8);
    backdrop-filter: blur(15px);
    padding: 20px 0;
    position: fixed;
    width: 100%; top: 0; z-index: 2000;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.logo { font-size: 1.5rem; font-weight: 900; font-family: 'Montserrat'; }
.logo span { color: var(--primary); font-size: 0.8rem; font-weight: 400; display: block; margin-top: -5px; }

.nav-list { list-style: none; display: flex; align-items: center; }
.nav-list li { margin-left: 30px; }
.nav-list a { color: white; text-decoration: none; font-weight: 600; font-size: 0.9rem; transition: 0.3s; }
.nav-list a:hover { color: var(--primary); }

.btn-devis-nav { background: var(--gradient); padding: 12px 25px; border-radius: 50px; }

/* HERO SECTION */
.hero-section { height: 100vh; display: flex; align-items: center; position: relative; overflow: hidden; }
#heroVideo { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.video-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: radial-gradient(circle, rgba(6,13,23,0.5) 0%, rgba(6,13,23,0.95) 100%); z-index: -1; }

.hero-content { max-width: 700px; }
.badge-new { display: inline-block; padding: 5px 15px; border: 1px solid var(--primary); color: var(--primary); border-radius: 50px; font-size: 0.75rem; font-weight: 700; margin-bottom: 20px; text-transform: uppercase; }
h1 { font-size: 4.5rem; line-height: 1; margin-bottom: 20px; font-family: 'Montserrat'; }
.text-gradient {
    background: var(--gradient);   /* Ou ton dégradé direct */
    -webkit-background-clip: text;
    background-clip: text;         /* Ajoute cette ligne ici aussi */
    -webkit-text-fill-color: transparent;
}
.hero-btns { margin-top: 40px; display: flex; gap: 20px; }

.primary-cta-btn { background: var(--gradient); color: white; padding: 18px 35px; border-radius: 10px; text-decoration: none; font-weight: 700; transition: 0.3s; box-shadow: 0 10px 20px rgba(0, 180, 255, 0.3); }
.secondary-cta-btn { border: 1px solid rgba(255,255,255,0.3); color: white; padding: 18px 35px; border-radius: 10px; text-decoration: none; font-weight: 700; transition: 0.3s; }
.secondary-cta-btn:hover { background: rgba(255,255,255,0.1); }

/* EDUPAY SECTION */
.edupay-section { padding: 120px 0; background: #0a1424; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.img-main { width: 100%; border-radius: 30px; border: 1px solid rgba(0, 180, 255, 0.2); box-shadow: 0 0 50px rgba(0,0,0,0.5); }
.edupay-visual { position: relative; }
.floating-badge { position: absolute; bottom: 30px; right: -20px; background: white; color: black; padding: 15px 25px; border-radius: 15px; font-weight: 800; animation: float 3s infinite ease-in-out; }

@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-15px); } }

.section-tag { color: var(--primary); font-size: 0.9rem; letter-spacing: 3px; }
h3 { font-size: 3rem; margin-bottom: 20px; font-family: 'Montserrat'; }
.feat-row { display: flex; gap: 20px; margin: 30px 0; }
.feat-card { background: var(--dark-card); padding: 15px 20px; border-radius: 10px; border: 1px solid rgba(255,255,255,0.05); flex: 1; }
.feat-card i { color: var(--primary); margin-right: 10px; }

/* WHY US CARDS */
.why-us { padding: 100px 0; }
.section-title { text-align: center; font-size: 2.5rem; margin-bottom: 60px; font-family: 'Montserrat'; }
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.why-card { background: var(--dark-card); padding: 50px 30px; border-radius: 20px; border: 1px solid rgba(255,255,255,0.05); transition: 0.4s; }
.why-card:hover { transform: translateY(-10px); border-color: var(--primary); box-shadow: 0 20px 40px rgba(0,0,0,0.3); }
.why-card i { font-size: 3rem; margin-bottom: 25px; color: var(--primary); }

/* STATS */
/* --- SECTION STATS RÉPARÉE --- */
.stats-section {
    padding: 60px 0;
    background: var(--gradient); /* Ton dégradé bleu */
    width: 100%;
}

.stats-grid {
    display: flex;
    flex-direction: row; /* Côte à côte sur PC */
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap; /* MAGIQUE : permet de passer à la ligne sur mobile */
    gap: 30px; /* Espace entre les blocs */
}

.stat-item {
    text-align: center;
    flex: 1;
    min-width: 200px; /* Force le passage à la ligne si l'écran est trop petit */
    color: white;
}

.stat-number {
    font-size: 3.5rem; /* Un peu plus petit pour le mobile */
    font-weight: 900;
    display: block;
    line-height: 1;
}

.stat-label {
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    opacity: 0.9;
}

/* --- AJUSTEMENT MOBILE --- */
@media (max-width: 768px) {
    .stat-number {
        font-size: 2.5rem; /* Réduit la taille des chiffres sur téléphone */
    }
    
    .stats-grid {
        flex-direction: column; /* Aligne tout verticalement pour un rendu propre */
        gap: 40px;
    }
}

/* FOOTER */
footer { 
    padding: 80px 0 0; 
    background: #02050a; /* Plus sombre pour faire ressortir le néon */
    border-top: 1px solid rgba(0, 210, 255, 0.1); /* Ligne néon discrète */
}

/* Nouvelle grille : 3 colonnes sur PC */
.footer-grid { 
    display: grid; 
    grid-template-columns: 2fr 1fr 1.5fr; 
    gap: 60px; 
    padding-bottom: 60px; 
}

.f-logo { font-family: 'Orbitron', sans-serif; font-size: 1.8rem; font-weight: 900; color: white; margin-bottom: 25px; }
.f-logo span { color: var(--neon); }

.f-about p { 
    line-height: 1.8; 
    color: rgba(255, 255, 255, 0.6); 
    font-size: 0.95rem; 
    margin-bottom: 30px; 
}

/* Titres des colonnes */
.f-col h4 { 
    color: white; 
    font-family: 'Orbitron'; 
    font-size: 1rem; 
    margin-bottom: 25px; 
    text-transform: uppercase; 
    letter-spacing: 2px;
}

/* Style des liens */
.f-links { list-style: none; padding: 0; }
.f-links li { margin-bottom: 15px; }
.f-links a { 
    color: rgba(255, 255, 255, 0.5); 
    text-decoration: none; 
    transition: 0.3s; 
    font-size: 0.9rem;
}
.f-links a:hover { color: var(--neon); padding-left: 8px; }

/* Items de contact */
.f-contact-item { 
    display: flex; 
    align-items: center; 
    gap: 15px; 
    margin-bottom: 20px; 
    color: rgba(255, 255, 255, 0.7); 
    font-size: 0.9rem;
}
.f-contact-item i { color: var(--neon); font-size: 1.1rem; }

/* Réseaux Sociaux */
.social-links { display: flex; gap: 15px; }
.social-links a { 
    width: 40px; height: 40px; 
    background: rgba(255, 255, 255, 0.05); 
    display: flex; align-items: center; justify-content: center; 
    border-radius: 50%; color: white; transition: 0.4s; 
}
.social-links a:hover { 
    background: var(--neon); 
    color: #000; 
    transform: translateY(-5px); 
}

/* Barre de bas de page */
.footer-bottom { 
    border-top: 1px solid rgba(255,255,255,0.05); 
    padding: 25px 0; 
    background: rgba(0,0,0,0.3);
}
.bottom-flex { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    font-size: 0.8rem; 
    opacity: 0.4; 
}

/* Responsivité Mobile */
@media (max-width: 992px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
    .footer-grid { grid-template-columns: 1fr; gap: 40px; }
    .bottom-flex { flex-direction: column; gap: 10px; text-align: center; }
}
/* RESPONSIVE */
@media (max-width: 768px) {
    h1 { font-size: 2.8rem; }
    .grid-2 { grid-template-columns: 1fr; gap: 40px; }
    .hero-btns { flex-direction: column; }
    .nav-list { display: none; }
    .nav-list.active { display: flex; flex-direction: column; position: fixed; top: 0; left: 0; width: 100%; height: 100vh; background: var(--dark); justify-content: center; z-index: 1000; }
    .nav-list li { margin: 20px 0; }
}
/* --- SECTION MÉTHODOLOGIE --- */
.work-process {
    padding: 100px 0;
    background: #ffffff;
    position: relative;
    overflow: hidden;
}

.work-process .section-title {
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    font-size: 2.5rem;
    color: #001a33;
    margin-bottom: 60px;
    position: relative;
}

/* Ligne décorative sous le titre */
.work-process .section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #0056b3, #00b4ff);
    margin: 15px auto 0;
    border-radius: 2px;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    position: relative;
}

/* Style de chaque étape */
.step {
    background: #ffffff;
    padding: 50px 35px;
    border-radius: 20px;
    border: 1px solid #eee;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
    position: relative;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 1;
}

.step:hover {
    transform: translateY(-15px);
    box-shadow: 0 30px 60px rgba(0, 86, 179, 0.1);
    border-color: #0056b3;
}

/* Gros numéros en arrière-plan */
.step-number {
    font-size: 5rem;
    font-weight: 900;
    color: rgba(0, 86, 179, 0.05); /* Très discret */
    position: absolute;
    top: 10px;
    right: 25px;
    font-family: 'Montserrat', sans-serif;
    transition: 0.4s;
}

.step:hover .step-number {
    color: rgba(0, 180, 255, 0.15);
    transform: scale(1.2);
}

.step h3 {
    font-family: 'Montserrat', sans-serif;
    color: #0056b3;
    font-size: 1.5rem;
    margin-bottom: 20px;
    position: relative;
}

.step p {
    color: #555;
    line-height: 1.7;
    font-size: 1.05rem;
}

/* Petit indicateur visuel au survol */
.step::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50px;
    width: 40px;
    height: 4px;
    background: #0056b3;
    border-radius: 0 0 10px 10px;
    transition: 0.3s;
}

.step:hover::before {
    width: 80px;
    background: #00b4ff;
}

/* Responsivité */
@media (max-width: 768px) {
    .work-process {
        padding: 60px 0;
    }
    .process-grid {
        grid-template-columns: 1fr;
    }
}
/* Valeurs */
.core-values { padding: 60px 0; background: #001a33; color: white; text-align: center; }
.values-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 40px; }
.value-item i { font-size: 2.5rem; color: #00b4ff; margin-bottom: 20px; }
.value-item h4 { font-family: 'Montserrat'; margin-bottom: 10px; }
.value-item p { opacity: 0.8; font-size: 0.9rem; }

/* Portfolio Express */
.home-portfolio { padding: 80px 0; }
.portfolio-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 40px; }
.view-all { color: #0056b3; font-weight: bold; text-decoration: none; border-bottom: 2px solid #0056b3; }
.portfolio-mini-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.project-img-box { position: relative; border-radius: 15px; overflow: hidden; height: 250px; }
.project-img-box img { width: 100%; height: 100%; object-fit: cover; }
.project-overlay { 
    position: absolute; bottom: 0; left: 0; width: 100%; padding: 20px;
    background: linear-gradient(transparent, rgba(0,0,0,0.8)); color: white;
    font-weight: bold; font-family: 'Montserrat';
}

/* ============================================================
   SYSTÈME DE NAVIGATION MOBILE (CORRIGÉ)
   ============================================================ */

/* 1. Force l'alignement du Header */
.nav-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

/* 2. Style du bouton Hamburger */
/* --- MENU MOBILE (BURGER) RÉPARÉ --- */
.menu-toggle {
    display: none; /* Reste masqué sur PC */
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 25px;
    cursor: pointer;
    
    /* SOLUTIONS AU BLOCAGE */
    position: relative; 
    z-index: 10000 !important; /* Passe devant l'IA agent */
    pointer-events: auto !important; /* Force la réception du clic */
    background: transparent;
}

@media (max-width: 992px) {
    .menu-toggle {
        display: flex; /* Apparaît sur mobile */
    }
}

.menu-toggle .bar {
    width: 100%;
    height: 3px;
    background: var(--primary);
    border-radius: 10px;
    transition: all 0.3s ease-in-out;
}

@media (max-width: 992px) {
    .menu-toggle {
        display: flex; /* Apparaît enfin sur mobile */
    }

    .nav-list {
        position: fixed;
        right: -100%;
        top: 0;
        width: 100%;
        height: 100vh;
        background: var(--dark);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 9000;
    }

    /* Activation du menu */
    .nav-list.active {
        right: 0;
    }

    /* ANIMATION DU X (Pour fermer) */
    .menu-toggle.active .bar:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    .menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    .menu-toggle.active .bar:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }

    .nav-list li { margin: 20px 0; margin-left: 0; }
    .nav-list a { font-size: 1.6rem; }
}
/* 3. Sécurité Anti-Débordement (Le fix pour le téléphone) */
html, body {
    max-width: 100vw;
    overflow-x: hidden !important;
    position: relative;
}

* {
    box-sizing: border-box;
}