/* Corrections menu mobile front-end - v2 */

/* Menu mobile : fond opaque pour cacher le contenu */
@media (max-width: 768px) {
    nav ul#menu {
        background-color: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
    }

    /* Dropdowns avec fond blanc opaque */
    .dropdown-content,
    .dropdown-sub-content {
        background-color: white !important;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15) !important;
    }

    /* Quand le menu est ouvert, ajouter un overlay */
    nav ul#menu.show::before {
        content: "";
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: -1;
    }

    /* Menu doit être au-dessus de tout */
    nav ul#menu.show {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: white;
        z-index: 9999;
        padding: 80px 20px 20px 20px;
        overflow-y: auto;
    }
}

/* Bottom navigation front-end (même style que admin) */
.bottom-nav-frontend {
    display: none;
}

@media (max-width: 768px) {
    .bottom-nav-frontend {
        display: block !important;
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        height: 60px !important;
        background: white !important;
        border-top: 1px solid #e5e7eb !important;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1) !important;
        z-index: 9999 !important;
    }

    .bottom-nav-frontend-container {
        display: flex !important;
        justify-content: space-around !important;
        align-items: center !important;
        height: 100% !important;
    }

    .bottom-nav-frontend-item {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        flex: 1 !important;
        height: 100% !important;
        color: #6b7280 !important;
        text-decoration: none !important;
        font-size: 0.7rem !important;
        transition: all 0.2s !important;
        min-width: 44px !important;
        border: none !important;
        background: none !important;
        cursor: pointer !important;
    }

    .bottom-nav-frontend-item:hover,
    .bottom-nav-frontend-item.active {
        color: #3b82f6 !important;
        background-color: #eff6ff !important;
    }

    .bottom-nav-frontend-item i {
        font-size: 1.25rem !important;
        margin-bottom: 0.25rem !important;
    }

    /* Padding bottom pour main content */
    main {
        padding-bottom: 80px !important;
    }

    /* Cacher UNIQUEMENT le bouton hamburger du HEADER (pas celui de bottom-nav) */
    header #menu-toggle {
        display: none !important;
    }
    
    /* Garder visible le bouton menu-toggle de la bottom-nav */
    .bottom-nav-frontend #menu-toggle-bottom {
        display: flex !important;
    }
}
