/**
 * FIX CRITIQUE - Navigation mobile EN BAS
 * Ce fichier force la navigation mobile à être en bas de l'écran
 * Priorité maximale avec !important
 */

/* Sur mobile UNIQUEMENT (max-width: 768px) */
@media (max-width: 768px) {
    /* Forcer le nav-menu en bas de l'écran */
    .navbar .nav-menu,
    nav.navbar .nav-menu,
    nav.navbar ul.nav-menu,
    .navbar > .container > .nav-menu,
    #navMenu {
        position: fixed !important;
        bottom: 0 !important;
        top: auto !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-around !important;
        align-items: center !important;
        padding: 8px 8px calc(8px + env(safe-area-inset-bottom)) !important;
        gap: 4px !important;
        height: auto !important;
        background: rgba(255, 255, 255, 0.98) !important;
        box-shadow: 0 -2px 16px rgba(0, 0, 0, 0.08) !important;
        border-top: 0.5px solid rgba(0, 0, 0, 0.1) !important;
        z-index: 9999 !important;
        margin: 0 !important;
        transform: translateZ(0) !important;
        -webkit-transform: translateZ(0) !important;
    }
    
    /* S'assurer que le body a l'espace nécessaire */
    body {
        padding-bottom: 80px !important;
        padding-top: 60px !important;
    }
    
    /* Items du dock */
    .nav-menu > li {
        flex: 1 !important;
        max-width: 72px !important;
        display: flex !important;
    }
    
    /* Liens du dock */
    .nav-menu > li > a {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important;
        padding: 4px 2px !important;
        font-size: 10px !important;
        color: #8E8E93 !important;
        gap: 0px !important;
    }
    
    /* Icônes */
    .nav-menu > li > a i {
        display: block !important;
        font-size: 24px !important;
        color: #8E8E93 !important;
        margin-bottom: 0 !important;
    }
    
    /* Labels */
    .dock-label {
        display: block !important;
        font-size: 10px !important;
        color: #8E8E93 !important;
        margin-top: 0px !important;
    }
}

/* Sur desktop (min-width: 769px) - Navigation normale dans le header */
@media (min-width: 769px) {
    .navbar .nav-menu,
    nav.navbar .nav-menu {
        position: relative !important;
        bottom: auto !important;
        width: auto !important;
        flex-direction: row !important;
    }
}

