/* ========================================
   CORRECTIF UNIVERSEL MENU MOBILE
   À linker dans CHAQUE fichier HTML
   ======================================== */

/* ---- EMPÊCHER LE SCROLL HORIZONTAL ---- */
html, body {
    max-width: 100vw !important;
    overflow-x: hidden !important;
}

/* ---- HEADER TOUJOURS VISIBLE ---- */
.modern-header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    max-width: 100vw !important;
    z-index: 9999 !important;
    background: rgba(255, 255, 255, 0.98) !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1) !important;
    overflow: visible !important;
}

.modern-header .container {
    max-width: 100% !important;
    padding: 0 1rem !important;
    overflow: visible !important;
}

.modern-header .header-wrapper {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-wrap: nowrap !important;
    width: 100% !important;
    overflow: visible !important;
}

/* ---- SLOGAN TOUJOURS VISIBLE SUR DESKTOP ---- */
#slogan-header {
    display: block !important;
    flex: 1 !important;
    text-align: center !important;
    font-size: 1.1rem !important;
    color: #2c5aa0 !important;
    font-weight: 600 !important;
    line-height: 1.3 !important;
    white-space: normal !important;
    margin: 0 1rem !important;
}

/* ==============================================================
   DESKTOP : au-dessus de 992px
   ============================================================== */
@media (min-width: 993px) {
    .modern-header .mobile-menu-toggle {
        display: none !important;
    }

    .modern-header .main-menu {
        position: static !important;
        transform: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        flex-direction: row !important;
        height: auto !important;
        width: auto !important;
        background: transparent !important;
        padding: 0 !important;
        overflow: visible !important;
        display: flex !important;
    }

    .modern-header .main-menu > li {
        border: none !important;
    }

    .modern-header .submenu {
        position: absolute !important;
        max-height: none !important;
        overflow: visible !important;
        display: block !important;
    }
}