/*
╔════════════════════════════════════════════════════════════════════════╗
║                                                                        ║
║  UPPERFORMA - HEADER FINAL CLEAN                                       ║
║  SOLUTION DÉFINITIVE - ÉCRASE ABSOLUMENT TOUT                         ║
║  Date: 27 Nov 2025 - 16h00                                            ║
║  Spécificité CSS: MAXIMALE (html body .class)                         ║
║                                                                        ║
╚════════════════════════════════════════════════════════════════════════╝
*/

/* ========================================
   RESET COMPLET - PRIORITÉ ABSOLUE
   ======================================== */

html[lang="fr"] body * {
    box-sizing: border-box !important;
}

html[lang="fr"] body {
    overflow-x: hidden !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* ========================================
   HEADER - TOUTES RÉSOLUTIONS
   ======================================== */

html[lang="fr"] body .header,
html[lang="fr"] body header,
html[lang="fr"] body header.header {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: sticky !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    z-index: 1000 !important;
    background: #f8f9fa !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
}

/* ========================================
   HEADER TOP (Email + Téléphone + CTA)
   ======================================== */

html[lang="fr"] body .header-top {
    display: block !important;
    background: #f8f9fa !important;
    border-bottom: 1px solid #dee2e6 !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
}

html[lang="fr"] body .header-top .container {
    padding-top: 10px !important;
    padding-bottom: 10px !important;
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
}

html[lang="fr"] body .header-top-content {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 1rem !important;
    flex-wrap: nowrap !important;
}

html[lang="fr"] body .contact-info {
    display: flex !important;
    align-items: center !important;
    gap: 2rem !important;
    flex-wrap: nowrap !important;
}

html[lang="fr"] body .contact-info a {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    color: #495057 !important;
    font-size: 0.9rem !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    transition: color 0.3s ease !important;
}

html[lang="fr"] body .contact-info a:hover {
    color: #E65C18 !important;
}

html[lang="fr"] body .contact-info a i {
    font-size: 0.9rem !important;
    color: #E65C18 !important;
}

html[lang="fr"] body .header-cta,
html[lang="fr"] body .btn-header-cta {
    display: inline-block !important;
    background: #E65C18 !important;
    color: white !important;
    padding: 8px 18px !important;
    border-radius: 6px !important;
    font-weight: 600 !important;
    font-size: 0.9rem !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    border: none !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
}

html[lang="fr"] body .btn-header-cta:hover {
    background: #C74D13 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 4px 8px rgba(230, 92, 24, 0.3) !important;
}

/* ========================================
   NAVBAR (Logo + Menu)
   ======================================== */

html[lang="fr"] body .navbar,
html[lang="fr"] body nav,
html[lang="fr"] body nav.navbar {
    display: block !important;
    background: #f8f9fa !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    border: none !important;
}

html[lang="fr"] body .navbar .container {
    padding-top: 12px !important;
    padding-bottom: 12px !important;
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
}

html[lang="fr"] body .nav-content {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 2rem !important;
}

/* ========================================
   LOGO
   ======================================== */

html[lang="fr"] body .logo {
    display: flex !important;
    align-items: center !important;
    flex-shrink: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    border: none !important;
    text-decoration: none !important;
}

html[lang="fr"] body .logo img {
    height: 45px !important;
    width: auto !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* ========================================
   MENU DESKTOP (> 768px)
   ======================================== */

@media (min-width: 769px) {
    /* Menu horizontal */
    html[lang="fr"] body .nav-menu,
    html[lang="fr"] body #nav-menu,
    html[lang="fr"] body ul.nav-menu {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 0.5rem !important;
        list-style: none !important;
        margin: 0 !important;
        padding: 0 !important;
        position: static !important;
        width: auto !important;
        height: auto !important;
        background: transparent !important;
        transform: none !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
    
    html[lang="fr"] body .nav-menu > li {
        position: relative !important;
        list-style: none !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    html[lang="fr"] body .nav-link {
        display: inline-block !important;
        color: #060606 !important;
        font-weight: 500 !important;
        font-size: 1rem !important;
        padding: 8px 16px !important;
        margin: 0 !important;
        text-decoration: none !important;
        border-radius: 6px !important;
        transition: all 0.3s ease !important;
        white-space: nowrap !important;
    }
    
    html[lang="fr"] body .nav-link:hover,
    html[lang="fr"] body .nav-link.active {
        background: rgba(230, 92, 24, 0.1) !important;
        color: #E65C18 !important;
    }
    
    /* Dropdowns Desktop - DÉSACTIVÉ (géré par HEADER-DESKTOP-NUCLEAR-FIX.css) */
    /* IMPORTANT: Ne pas activer ces règles, sinon double dropdown ! */
    /*
    html[lang="fr"] body .dropdown {
        position: relative !important;
    }
    
    html[lang="fr"] body .dropdown-menu {
        display: none !important;
        position: absolute !important;
        top: 100% !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        min-width: 800px !important;
        background: white !important;
        border-radius: 12px !important;
        box-shadow: 0 10px 40px rgba(0,0,0,0.15) !important;
        padding: 2rem !important;
        margin-top: 0.5rem !important;
        z-index: 10000 !important;
    }
    
    html[lang="fr"] body .dropdown:hover .dropdown-menu,
    html[lang="fr"] body .dropdown.active .dropdown-menu {
        display: block !important;
    }
    
    html[lang="fr"] body .dropdown-grid {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 2rem !important;
    }
    
    html[lang="fr"] body .dropdown-section {
        display: block !important;
    }
    
    html[lang="fr"] body .dropdown-section h4 {
        color: #E65C18 !important;
        font-size: 0.85rem !important;
        font-weight: 700 !important;
        text-transform: uppercase !important;
        margin: 0 0 1rem 0 !important;
        padding: 0 !important;
        display: flex !important;
        align-items: center !important;
        gap: 0.5rem !important;
    }
    
    html[lang="fr"] body .dropdown-section a {
        display: block !important;
        color: #333 !important;
        font-size: 0.95rem !important;
        padding: 0.5rem 0 !important;
        text-decoration: none !important;
        transition: all 0.2s ease !important;
    }
    
    html[lang="fr"] body .dropdown-section a:hover {
        color: #E65C18 !important;
        padding-left: 0.5rem !important;
    }
    
    html[lang="fr"] body .dropdown-footer {
        grid-column: 1 / -1 !important;
        margin-top: 1rem !important;
        padding-top: 1rem !important;
        border-top: 1px solid #eee !important;
        text-align: center !important;
    }
    */
    
    html[lang="fr"] body .dropdown-footer .btn-primary {
        display: inline-block !important;
        background: #E65C18 !important;
        color: white !important;
        padding: 10px 24px !important;
        border-radius: 6px !important;
        text-decoration: none !important;
        font-weight: 600 !important;
        transition: all 0.3s ease !important;
    }
    
    html[lang="fr"] body .dropdown-footer .btn-primary:hover {
        background: #C74D13 !important;
        transform: translateY(-2px) !important;
    }
    
    /* Cacher burger desktop */
    html[lang="fr"] body .mobile-menu-toggle,
    html[lang="fr"] body #mobile-menu-toggle,
    html[lang="fr"] body button.mobile-menu-toggle {
        display: none !important;
    }
}

/* ========================================
   MENU MOBILE (<= 768px)
   ======================================== */

@media (max-width: 768px) {
    /* Header Top Mobile - Plus compact */
    html[lang="fr"] body .header-top .container {
        padding-top: 8px !important;
        padding-bottom: 8px !important;
    }
    
    html[lang="fr"] body .header-top-content {
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
    }
    
    html[lang="fr"] body .contact-info {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 0.4rem !important;
    }
    
    html[lang="fr"] body .contact-info a {
        font-size: 0.8rem !important;
    }
    
    html[lang="fr"] body .btn-header-cta {
        padding: 6px 12px !important;
        font-size: 0.8rem !important;
    }
    
    /* Navbar Mobile */
    html[lang="fr"] body .navbar .container {
        padding-top: 10px !important;
        padding-bottom: 10px !important;
    }
    
    html[lang="fr"] body .logo img {
        height: 38px !important;
    }
    
    /* Burger Button */
    html[lang="fr"] body .mobile-menu-toggle,
    html[lang="fr"] body #mobile-menu-toggle,
    html[lang="fr"] body button.mobile-menu-toggle {
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 5px !important;
        width: 45px !important;
        height: 45px !important;
        background: #E65C18 !important;
        border: none !important;
        border-radius: 8px !important;
        cursor: pointer !important;
        padding: 10px !important;
        z-index: 10002 !important;
        flex-shrink: 0 !important;
        transition: all 0.3s ease !important;
    }
    
    html[lang="fr"] body .mobile-menu-toggle:hover {
        background: #C74D13 !important;
    }
    
    html[lang="fr"] body .mobile-menu-toggle span {
        display: block !important;
        width: 25px !important;
        height: 3px !important;
        background: white !important;
        border-radius: 2px !important;
        transition: all 0.3s ease !important;
    }
    
    /* Burger Animation (X) */
    html[lang="fr"] body .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(7px, 7px) !important;
    }
    
    html[lang="fr"] body .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0 !important;
    }
    
    html[lang="fr"] body .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px) !important;
    }
    
    /* Menu Mobile - Slide from left */
    html[lang="fr"] body .nav-menu,
    html[lang="fr"] body #nav-menu,
    html[lang="fr"] body ul.nav-menu {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100vh !important;
        background: white !important;
        z-index: 10001 !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        padding: 80px 0 20px 0 !important;
        margin: 0 !important;
        list-style: none !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        /* Hidden by default */
        transform: translateX(-100%) !important;
        opacity: 0 !important;
        visibility: hidden !important;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    }
    
    /* Menu Open */
    html[lang="fr"] body .nav-menu.active,
    html[lang="fr"] body #nav-menu.active {
        transform: translateX(0) !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
    
    /* Menu Items */
    html[lang="fr"] body .nav-menu > li {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        list-style: none !important;
        border-bottom: 1px solid #eee !important;
        box-sizing: border-box !important;
    }
    
    /* FIX DROPDOWN - Zero margin/padding hérité */
    html[lang="fr"] body .nav-menu > li.dropdown {
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    
    html[lang="fr"] body .nav-link {
        display: block !important;
        width: 100% !important;
        text-align: center !important;
        padding: 18px 20px !important;
        margin: 0 !important;
        color: #333 !important;
        font-size: 1.1rem !important;
        font-weight: 500 !important;
        text-decoration: none !important;
        transition: all 0.3s ease !important;
    }
    
    html[lang="fr"] body .nav-link:hover,
    html[lang="fr"] body .nav-link.active {
        background: #f8f9fa !important;
        color: #E65C18 !important;
    }
    
    /* Dropdowns Mobile - Accordion */
    html[lang="fr"] body .dropdown-menu {
        position: static !important;
        width: 100% !important;
        left: 0 !important;
        right: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        background: #f8f9fa !important;
        border: none !important;
        box-shadow: none !important;
        margin: 0 !important;
        padding: 0 !important;
        max-height: 0 !important;
        overflow: hidden !important;
        transition: max-height 0.4s ease !important;
        transform: none !important;
    }
    
    html[lang="fr"] body .dropdown.active .dropdown-menu {
        max-height: 3000px !important;
        padding: 20px 15px !important;
    }
    
    html[lang="fr"] body .dropdown-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 20px !important;
        width: 100% !important;
        margin: 0 auto !important;
    }
    
    html[lang="fr"] body .dropdown-section {
        text-align: center !important;
        background: white !important;
        padding: 15px !important;
        border-radius: 8px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    
    html[lang="fr"] body .dropdown-section h4 {
        color: #E65C18 !important;
        font-size: 0.9rem !important;
        font-weight: 700 !important;
        text-transform: uppercase !important;
        margin: 0 0 12px 0 !important;
        text-align: center !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 0.5rem !important;
    }
    
    html[lang="fr"] body .dropdown-section a {
        display: block !important;
        text-align: center !important;
        padding: 10px 15px !important;
        margin: 8px auto !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        color: #555 !important;
        font-size: 0.95rem !important;
        text-decoration: none !important;
        background: #f8f9fa !important;
        border-radius: 6px !important;
        transition: all 0.3s ease !important;
    }
    
    html[lang="fr"] body .dropdown-section a:hover {
        background: #E65C18 !important;
        color: white !important;
        transform: scale(1.02) !important;
    }
    
    html[lang="fr"] body .dropdown-footer {
        margin-top: 15px !important;
        padding-top: 15px !important;
        border-top: 1px solid #dee2e6 !important;
        text-align: center !important;
    }
    
    html[lang="fr"] body .dropdown-footer .btn-primary {
        display: inline-block !important;
        background: #E65C18 !important;
        color: white !important;
        padding: 12px 24px !important;
        border-radius: 6px !important;
        text-decoration: none !important;
        font-weight: 600 !important;
        transition: all 0.3s ease !important;
    }
    
    /* Block body scroll when menu open */
    html[lang="fr"] body.menu-open {
        overflow: hidden !important;
        position: fixed !important;
        width: 100% !important;
        height: 100% !important;
    }
}

/* ========================================
   HERO SECTION (espacement sous header)
   ======================================== */

html[lang="fr"] body .hero,
html[lang="fr"] body section.hero {
    padding-top: 60px !important;
    margin-top: 0 !important;
}

html[lang="fr"] body .hero-badge {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    background: #E65C18 !important;
    color: white !important;
    padding: 10px 20px !important;
    border-radius: 50px !important;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    margin-bottom: 1.5rem !important;
    box-shadow: 0 4px 12px rgba(230, 92, 24, 0.3) !important;
}

@media (max-width: 768px) {
    html[lang="fr"] body .hero {
        padding-top: 40px !important;
    }
    
    html[lang="fr"] body .hero-badge {
        font-size: 0.8rem !important;
        padding: 8px 16px !important;
    }
}

/* ========================================
   CONTAINER
   ======================================== */

html[lang="fr"] body .container {
    max-width: 1200px !important;
    margin: 0 auto !important;
}
