/* ==============================================
   CORRECTIONS MENU MOBILE
   ============================================== */

/* Bouton menu mobile - visible sur petits écrans */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 30px;
    height: 30px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.mobile-menu-toggle span {
    width: 100%;
    height: 3px;
    background: white;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Animation du bouton quand le menu est ouvert */
.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Menu navigation - responsive */
@media (max-width: 992px) {
    /* Afficher le bouton menu mobile */
    .mobile-menu-toggle {
        display: flex;
    }
    
    /* Cacher les actions du header sur tablette */
    .header-actions .btn-live,
    .header-actions .btn-admin {
        display: none;
    }
    
    /* Menu navigation en mode mobile */
    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background: rgba(0, 158, 96, 0.98);
        backdrop-filter: blur(10px);
        padding: 80px 30px 30px;
        transition: right 0.3s ease;
        z-index: 1000;
        overflow-y: auto;
    }
    
    .nav.active {
        right: 0;
    }
    
    .nav-list {
        flex-direction: column;
        gap: 0;
    }
    
    .nav-link {
        display: block;
        padding: 15px 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        font-size: 18px;
    }
    
    .nav-link:hover {
        background: rgba(255, 255, 255, 0.1);
        padding-left: 30px;
    }
    
    /* Overlay quand le menu est ouvert */
    body.menu-open::before {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
        animation: fadeIn 0.3s ease;
    }
    
    @keyframes fadeIn {
        from { opacity: 0; }
        to { opacity: 1; }
    }
}

@media (max-width: 768px) {
    /* Menu plus large sur mobile */
    .nav {
        width: 280px;
    }
    
    /* Réduire le logo sur mobile */
    .logo-icon {
        width: 40px;
        height: 40px;
    }
    
    .logo-text h1 {
        font-size: 20px;
    }
    
    .logo-text .tagline {
        font-size: 11px;
    }
    
    /* Cacher le bouton langue sur très petits écrans */
    .btn-language {
        display: none;
    }
}

@media (max-width: 480px) {
    .nav {
        width: 100%;
        right: -100%;
    }
    
    .nav.active {
        right: 0;
    }
}

/* Desktop - menu normal */
@media (min-width: 993px) {
    .mobile-menu-toggle {
        display: none !important;
    }
    
    .nav {
        position: static;
        width: auto;
        height: auto;
        background: none;
        padding: 0;
    }
    
    .nav-list {
        flex-direction: row;
    }
}
