/* =========================================
   1. CONFIGURATION ULTIME (VARIABLES)
   ========================================= */
:root {
    --primary: #0062ff;
    --primary-glow: rgba(0, 98, 255, 0.5);
    --dark-bg: #08090c;
    --card-bg: #131419;
    --glass: rgba(19, 20, 25, 0.8);
    --text-main: #ffffff;
    --text-muted: #9ca3af;
    --border-light: rgba(255,255,255,0.08);
    --gradient: linear-gradient(135deg, #0062ff 0%, #0038a8 100%);
}

/* RESET & BASE */
* { margin: 0; padding: 0; box-sizing: border-box; scroll-behavior: smooth; }

body {
    background-color: var(--dark-bg);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: 'Exo 2', sans-serif; }
a { text-decoration: none; transition: 0.3s; color: inherit; }
ul { list-style: none; }
img { display: block; max-width: 100%; }

/* SCROLLBAR CUSTOM */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--dark-bg); }
::-webkit-scrollbar-thumb { background: #333; border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

/* =========================================
   2. PRELOADER
   ========================================= */
#preloader {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: var(--dark-bg); z-index: 9999;
    display: flex; justify-content: center; align-items: center;
    transition: opacity 0.5s ease;
}
.loader-content { text-align: center; }
.spinner {
    width: 50px; height: 50px; border: 3px solid rgba(255,255,255,0.1);
    border-top: 3px solid var(--primary); border-radius: 50%;
    animation: spin 1s linear infinite; margin: 0 auto 15px;
}
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

/* =========================================
   3. HEADER INTELLIGENT
   ========================================= */
header {
    position: fixed; top: 0; width: 100%; z-index: 1000;
    padding: 20px 8%; transition: 0.4s;
    background: linear-gradient(to bottom, rgba(8,9,12,0.9), transparent);
}
header.scrolled {
    background: rgba(8, 9, 12, 0.85);
    backdrop-filter: blur(12px);
    padding: 15px 8%;
    border-bottom: 1px solid var(--border-light);
    box-shadow: 0 5px 20px rgba(0,0,0,0.5);
}
.nav-container { display: flex; justify-content: space-between; align-items: center; }

.logo { font-size: 1.6rem; font-weight: 800; letter-spacing: 1px; line-height: 1; text-align: center; }
.logo span { color: var(--primary); }
.logo small { display: block; font-size: 0.6rem; font-weight: 400; color: #fff; opacity: 0.7; font-family: 'Inter'; letter-spacing: 2px;}

nav ul { display: flex; gap: 35px; }
nav a { font-size: 0.95rem; font-weight: 500; color: #ccc; position: relative; }
nav a:hover, nav a.active { color: white; }
nav a::after {
    content: ''; position: absolute; width: 0; height: 2px; bottom: -5px; left: 0;
    background: var(--primary); transition: 0.3s;
}
nav a:hover::after { width: 100%; }

.btn-glow {
    background: var(--gradient); color: white; padding: 10px 25px;
    border-radius: 50px; font-weight: 600; font-size: 0.9rem;
    box-shadow: 0 0 15px var(--primary-glow); border: 1px solid transparent;
    display: flex; align-items: center; gap: 10px;
} 
.btn-glow:hover { transform: scale(1.05); box-shadow: 0 0 25px var(--primary-glow); }

.burger {
    display: none; font-size: 1.5rem; cursor: pointer; z-index: 1200;
    position: relative; width: 30px; height: 24px;
}
.burger i { transition: opacity 0.2s ease 0.15s; }
.burger .fa-xmark { position: absolute; top: 0; left: 0; opacity: 0; }
.burger.open .fa-bars { opacity: 0; }
.burger.open .fa-xmark { opacity: 1; }

.mobile-nav-extra { display: none; }

/* =========================================
   4. HERO SECTION (PARALLAX)
   ========================================= */
.hero {
    height: 100vh; display: flex; align-items: center; position: relative;
    background: url('https://i.imgur.com/xXbVkuk.jpeg') center/cover no-repeat fixed;
    padding: 0 8%;
}
.hero::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(90deg, #08090c 0%, rgba(8,9,12,0.7) 60%, rgba(8,9,12,0.2) 100%);
}
.hero-content { position: relative; z-index: 2; max-width: 700px; opacity: 0; transform: translateY(30px); animation: fadeUp 1s ease forwards 0.5s; }

.badge {
    display: inline-block; background: rgba(0, 98, 255, 0.15); color: var(--primary);
    padding: 6px 12px; border-radius: 4px; font-size: 0.8rem; font-weight: 700;
    margin-bottom: 20px; border: 1px solid rgba(0, 98, 255, 0.3);
}

.hero h1 { font-size: 3.8rem; line-height: 1.1; margin-bottom: 25px; text-shadow: 0 0 20px rgba(0,0,0,0.8); }
.hero p { font-size: 1.15rem; color: #d1d5db; margin-bottom: 40px; font-weight: 300; max-width: 600px; }

.hero-btns { display: flex; gap: 20px; }
.btn-outline {
    padding: 12px 30px; 
    border: 2px solid rgba(255,255,255,0.8); 
    border-radius: 50px;
    color: white; 
    font-weight: 600; 
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    transition: all 0.3s;
}
.btn-outline:hover { 
    background: white; 
    color: black; 
    border-color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255,255,255,0.2);
}

/* =========================================
   5. STATS BAR (Flottante)
   ========================================= */
.stats-wrapper { padding: 0 8%; margin-top: -80px; position: relative; z-index: 10; }
.stats-bar {
    background: var(--card-bg); border: 1px solid var(--border-light);
    border-radius: 15px; padding: 40px; display: flex; justify-content: space-between;
    box-shadow: 0 20px 50px rgba(0,0,0,0.6); flex-wrap: wrap; gap: 30px;
}
.stat-item { display: flex; gap: 15px; align-items: start; }
.stat-icon { font-size: 2rem; color: var(--primary); filter: drop-shadow(0 0 5px var(--primary-glow)); }
.stat-info h4 { font-weight: 700; margin-bottom: 5px; }
.stat-info p { font-size: 0.85rem; color: var(--text-muted); }

/* =========================================
   6. SERVICES (Grid + Hover Effects)
   ========================================= */
.section { padding: 100px 8%; }
.section-header { text-align: center; margin-bottom: 60px; }
.section-header h2 { font-size: 2.5rem; margin-bottom: 15px; }
.section-header p { color: var(--text-muted); max-width: 600px; margin: 0 auto; }
.highlight { color: var(--primary); }

.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px; }

.service-card {
    background: var(--card-bg); padding: 40px 30px; border-radius: 15px;
    border: 1px solid transparent; transition: 0.4s; position: relative; overflow: hidden;
}
.service-card:hover {
    transform: translateY(-10px); border-color: var(--primary);
    box-shadow: 0 10px 40px rgba(0, 98, 255, 0.1);
}
.service-card i { font-size: 2.5rem; color: var(--primary); margin-bottom: 25px; display: block; }
.service-card h3 { font-size: 1.3rem; margin-bottom: 15px; }
.service-card p { font-size: 0.95rem; color: var(--text-muted); line-height: 1.6; }

/* =========================================
   7. PROCESS (Comment ça marche) - NOUVEAU
   ========================================= */
.process-steps { display: flex; justify-content: space-between; margin-top: 50px; flex-wrap: wrap; gap: 30px; }
.step { text-align: center; flex: 1; min-width: 200px; position: relative; }
.step-num {
    width: 50px; height: 50px; background: var(--card-bg); border: 2px solid var(--primary);
    color: var(--primary); border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-weight: 800; margin: 0 auto 20px; font-size: 1.2rem;
    box-shadow: 0 0 15px var(--primary-glow);
}
.step h4 { margin-bottom: 10px; }
.step p { font-size: 0.9rem; color: var(--text-muted); }

/* =========================================
   8. SHOWCASE & MARQUES
   ========================================= */
.showcase-container {
    display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 60px; align-items: center;
    background: #0f1014; padding: 80px 8%; border-radius: 20px; margin: 50px 8%;
}
.showcase-img-wrap { position: relative; border-radius: 15px; overflow: hidden; box-shadow: 0 20px 50px rgba(0,0,0,0.5); }
.showcase-img-wrap img { width: 100%; transition: 0.5s; }
.showcase-img-wrap:hover img { transform: scale(1.05); }
.showcase-video-wrap { 
    position: relative; 
    border-radius: 15px; 
    overflow: hidden; 
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
    min-height: 500px;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
}
.showcase-video-wrap iframe { 
    width: 267px;
    height: 476px;
    max-width: 100%;
    border: none; 
    display: block;
}

.video-description {
    position: absolute; 
    bottom: 20px; 
    left: 20px; 
    right: 20px; 
    color: white; 
    font-size: 0.8rem; 
    font-weight: 500; 
    pointer-events: none; 
    z-index: 1; 
    background: rgba(0,0,0,0.8); 
    padding: 10px 12px; 
    border-radius: 6px; 
    line-height: 1.3; 
    backdrop-filter: blur(5px); 
    font-family: 'Inter', sans-serif;
}

.brands-section { padding: 0; }

.brands-grid { 
    display: grid; 
    grid-template-columns: repeat(4, 1fr); 
    gap: 30px 20px; 
    margin-top: 30px; 
    align-items: center;
    justify-items: center;
}
.brand-logo { 
    height: 50px; 
    width: auto;
    max-width: 90px;
    object-fit: contain; 
    filter: grayscale(1) brightness(2) invert(0.1); 
    opacity: 0.8; 
    transition: 0.3s; 
}
.brand-logo:hover { 
    opacity: 1; 
    filter: grayscale(0) brightness(1.2) invert(0); 
    transform: scale(1.15); 
}

/* =========================================
   9. FAQ (ACCORDÉON) - NOUVEAU
   ========================================= */
.faq-item {
    background: var(--card-bg); border-radius: 10px; margin-bottom: 15px;
    border: 1px solid var(--border-light); overflow: hidden;
}
.faq-question {
    padding: 20px; cursor: pointer; display: flex; justify-content: space-between; align-items: center;
    font-weight: 600; transition: 0.3s;
}
.faq-question:hover { background: rgba(255,255,255,0.03); }
.faq-answer {
    max-height: 0; overflow: hidden; padding: 0 20px; color: var(--text-muted);
    transition: max-height 0.3s ease, padding 0.3s ease;
}
.faq-item.active .faq-answer { max-height: 150px; padding-bottom: 20px; }
.faq-item.active .faq-question { color: var(--primary); }
.faq-icon { transition: 0.3s; }
.faq-item.active .faq-icon { transform: rotate(180deg); }

/* =========================================
   10. CONTACT FORM - ULTIME
   ========================================= */
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; }
.contact-form { background: var(--card-bg); padding: 40px; border-radius: 20px; border: 1px solid var(--border-light); }

.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 8px; font-size: 0.9rem; color: #ccc; }
.form-control {
    width: 100%; padding: 12px 15px; background: #08090c; border: 1px solid #333;
    border-radius: 8px; color: white; outline: none; transition: 0.3s;
}
.form-control:focus { border-color: var(--primary); box-shadow: 0 0 10px rgba(0, 98, 255, 0.2); }

.contact-info-box {
    display: flex; flex-direction: column; gap: 30px; justify-content: center;
}
.info-card {
    display: flex; gap: 20px; align-items: center; background: rgba(255,255,255,0.03);
    padding: 20px; border-radius: 12px; transition: 0.3s;
}
.info-card:hover { background: rgba(0, 98, 255, 0.1); }
.info-icon {
    width: 50px; height: 50px; background: var(--primary); border-radius: 50%;
    display: flex; align-items: center; justify-content: center; font-size: 1.2rem; color: white;
}

/* =========================================
   11. FOOTER
   ========================================= */
footer {
    background: #000; padding: 60px 8% 20px; border-top: 1px solid #222;
    margin-top: 50px;
}
.footer-content { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px; margin-bottom: 40px; }
.footer-col h3 { color: white; margin-bottom: 20px; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col a { color: var(--text-muted); }
.footer-col a:hover { color: var(--primary); padding-left: 5px; }

.social-links { display: flex; gap: 15px; margin-top: 20px; }
.social-btn {
    width: 40px; height: 40px; background: #222; display: flex; align-items: center; justify-content: center;
    border-radius: 50%; transition: 0.3s;
}
.social-btn:hover { background: var(--primary); transform: translateY(-3px); }

.copyright { text-align: center; padding-top: 20px; border-top: 1px solid #222; color: #666; font-size: 0.85rem; }

/* Scroll Top Button */
#scrollTop {
    position: fixed; bottom: 30px; right: 30px; background: var(--primary); color: white;
    width: 50px; height: 50px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    cursor: pointer; opacity: 0; pointer-events: none; transition: 0.3s; box-shadow: 0 0 20px var(--primary-glow);
}
#scrollTop.visible { opacity: 1; pointer-events: all; }

/* Animation Classes */
@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }
.reveal { opacity: 0; transform: translateY(30px); transition: 0.8s ease-out; }
.reveal.active { opacity: 1; transform: translateY(0); }

/* Mobile Responsive */
@media (max-width: 992px) {
    .hero h1 { font-size: 3rem; }
    .showcase-container { grid-template-columns: 1fr; }
    .contact-layout { grid-template-columns: 1fr; }
    .stats-bar { justify-content: flex-start; }
    .burger { display: block; color: white; }

    /* Menu mobile "descendant" : tout le <nav> devient un panneau plein
       écran qui se déploie sous le header, plutôt qu'un tiroir latéral. */
    nav#main-nav {
        position: fixed; top: 0; left: 0; width: 100%;
        max-height: 100vh; overflow-y: auto;
        background: #0f1014;
        border-bottom: 1px solid var(--border-light);
        box-shadow: 0 20px 40px rgba(0,0,0,0.6);
        padding-top: 90px;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease, visibility 0s linear 0.45s;
        z-index: 1100;
    }
    nav#main-nav.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
        transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease, visibility 0s;
    }
    body.menu-open { overflow: hidden; }

    nav#main-nav ul {
        flex-direction: column; gap: 0; padding: 0 8% 20px; width: 100%;
    }
    nav#main-nav ul li { border-bottom: 1px solid var(--border-light); }
    nav#main-nav ul li a {
        display: block; padding: 16px 4px; font-size: 1.1rem;
    }

    .mobile-nav-extra {
        display: flex; flex-direction: column; gap: 16px;
        padding: 24px 8% 40px; border-top: 1px solid var(--border-light);
    }
    .mobile-call-btn, .mobile-rdv-btn {
        justify-content: center; width: 100%;
    }
    .mobile-nav-info {
        color: var(--text-muted); font-size: 0.9rem;
        display: flex; align-items: center; gap: 10px;
    }
    .mobile-nav-info i { color: var(--primary); }
    .mobile-nav-social {
        display: flex; align-items: center; justify-content: space-between;
        flex-wrap: wrap; gap: 15px;
    }
    .mobile-nav-social span {
        color: var(--text-muted); font-size: 0.85rem; text-transform: uppercase;
        letter-spacing: 1px; font-weight: 600;
    }
    .mobile-nav-social .social-links { margin-top: 0; }
    .brands-grid {
        gap: 25px 15px;
    }
    .brand-logo {
        height: 50px;
        max-width: 85px;
    }
    
    .showcase-video-wrap {
        min-height: 400px;
    }
    .showcase-video-wrap iframe {
        width: 200px;
        height: 356px;
    }
    .video-description {
        font-size: 0.75rem;
        padding: 8px 10px;
        bottom: 15px;
        left: 15px;
        right: 15px;
    }
    .video-description strong {
        font-size: 0.8rem;
    }
}

@media (max-width: 576px) {
    .showcase-video-wrap iframe {
        width: 180px;
        height: 320px;
    }
    .video-description {
        font-size: 0.7rem;
        padding: 6px 8px;
        bottom: 10px;
        left: 10px;
        right: 10px;
    }
    .video-description strong {
        font-size: 0.75rem;
        margin-bottom: 3px;
    }
    .brands-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px 15px;
    }
    .brand-logo {
        height: 45px;
        max-width: 80px;
    }
}

