/* Solution finale pour les dropdowns dans le menu mobile */
@media (max-width: 768px) {
    /* SOLUTION: Cacher tous les autres éléments quand dropdown actif */
    .nav.nav-open.dropdown-active > * {
        display: none !important;
    }
    
    /* Garder visible seulement le dropdown actif */
    .nav.nav-open.dropdown-active > .game-dropdown.active {
        display: block !important;
    }
    
    /* Structure similaire au dropdown de langue */
    .nav.nav-open .game-dropdown {
        position: relative;
        width: 100%;
        margin: 0.5rem 0;
    }
    
    .nav.nav-open .game-dropdown-toggle {
        width: 100%;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 1rem;
        background: rgba(255, 215, 0, 0.1);
        border: 1px solid rgba(255, 215, 0, 0.2);
        border-radius: 10px;
        font-size: 1.1rem;
        transition: all 0.3s ease;
    }
    
    .nav.nav-open .game-dropdown-toggle:hover {
        background: rgba(255, 215, 0, 0.2);
        border-color: var(--primary-color);
    }
    
    /* Le dropdown content - exactement comme le language dropdown */
    .nav.nav-open .game-dropdown-content {
        position: absolute !important;
        top: 100% !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        margin-top: 0.5rem !important;
        background: #0a0a0a !important;
        border: 1px solid rgba(255, 215, 0, 0.3) !important;
        border-radius: 10px !important;
        overflow: hidden !important;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5) !important;
        z-index: 10000 !important;
        max-height: 0 !important;
        opacity: 0 !important;
        transition: all 0.3s ease !important;
        transform: none !important;
    }
    
    /* Fond noir derrière le dropdown content */
    .nav.nav-open .game-dropdown-content::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: #0a0a0a;
        z-index: -1;
    }
    
    .nav.nav-open .game-dropdown.active .game-dropdown-content {
        max-height: 400px !important;
        opacity: 1 !important;
    }
    
    /* Masquer le logo dans le menu mobile */
    .nav.nav-open .game-dropdown-logo {
        display: none !important;
    }
    
    /* Le menu directement visible */
    .nav.nav-open .game-dropdown-menu {
        padding: 0 !important;
        background: transparent !important;
    }
    
    /* Les items du dropdown */
    .nav.nav-open .game-dropdown-item {
        display: flex;
        align-items: center;
        gap: 1rem;
        padding: 1rem;
        width: 100%;
        text-decoration: none;
        color: #ffffff !important;
        background: #1a1a1a !important;
        transition: all 0.3s ease;
        font-size: 1.1rem;
    }
    
    .nav.nav-open .game-dropdown-item:hover {
        background: rgba(255, 215, 0, 0.1) !important;
    }
    
    .nav.nav-open .game-dropdown-item i {
        width: 20px;
        text-align: center;
    }
    
    /* Badge nouveau */
    .nav.nav-open .game-badge {
        margin-left: auto;
        font-size: 0.8rem;
    }
    
    /* Fix pour l'overlay */
    .nav.nav-open .game-dropdown-overlay {
        display: none !important;
    }
}