/*
 * LUMIX ANIM V2 - Mobile Menu (Style V1 avec variables)
 * Menu mobile overlay avec variables CSS pour thèmes
 */

/* === HAMBURGER === */
.mobile-menu-toggle {
    position: absolute;
    right: 15px;
    display: none;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
    order: 2;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.mobile-menu-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--color-secondary);
    transform: scale(1.05);
}

@media (max-width: 1024px) {
    .mobile-menu-toggle {
        display: block;
        right: 10px;
    }
    
    /* Quand le menu est ouvert, hamburger reste visible */
    .mobile-menu-toggle.active {
        position: fixed;
        top: 21px;
        right: 10px;
        z-index: 1001;
        background: var(--color-secondary);
        border-color: var(--color-secondary);
        box-shadow: 0 4px 12px rgba(var(--color-secondary-rgb), 0.4);
    }
    
    /* Hamburger transformé en X avec couleur thématique */
    .mobile-menu-toggle.active .hamburger span {
        background: white;
    }
    
    .mobile-menu-toggle.active:hover {
        transform: scale(1.05) rotate(90deg);
    }
}

.hamburger {
    display: flex;
    flex-direction: column;
    width: 20px;
    height: 20px;
    justify-content: space-between;
}

.hamburger span {
    display: block;
    height: 3px;
    width: 100%;
    background: white;
    border-radius: 3px;
    transition: all 0.3s ease;
    transform-origin: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Animation hamburger vers X */
.mobile-menu-toggle.active .hamburger span:first-child {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active .hamburger span:nth-child(2) {
    opacity: 0;
    transform: translateX(-20px);
}

.mobile-menu-toggle.active .hamburger span:last-child {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* === MENU OVERLAY === */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(135deg, 
        var(--theme-primary-color, var(--color-primary)) 0%, 
        rgba(var(--color-primary-rgb), 0.95) 100%);
    backdrop-filter: blur(10px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    overflow-y: auto;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-content {
    text-align: center;
    transform: translateY(50px);
    transition: transform 0.4s ease 0.1s;
    padding: 2rem;
    width: 100%;
    max-width: 400px;
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 80vh;
    margin-top: 100px;
}

.mobile-menu-overlay.active .mobile-menu-content {
    transform: translateY(0);
}

.mobile-navigation {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    width: 100%;
}

.mobile-menu-overlay .mobile-navigation a {
    color: var(--color-secondary) !important;
    text-decoration: none;
    font-size: 1.3rem;
    font-weight: 600;
    transition: all 0.3s ease !important;
    display: block;
    text-align: center;
    padding: 1.2rem 1.5rem;
    position: relative;
    border-radius: 12px;
    background: rgba(var(--color-secondary-rgb), 0.15) !important;
    cursor: pointer;
}

/* Effet au survol - très spécifique */
body .mobile-menu-overlay .mobile-navigation a:hover,
.mobile-menu-overlay .mobile-navigation a:focus,
.mobile-menu-overlay .mobile-navigation a:active {
    background: var(--color-secondary) !important;
    color: white !important;
    transform: scale(1.05) translateY(-3px) !important;
    box-shadow: 0 8px 25px rgba(var(--color-secondary-rgb), 0.6) !important;
}

/* Style pour l'item actif */
.mobile-menu-overlay .mobile-navigation li.current-menu-item > a,
.mobile-menu-overlay .mobile-navigation li.current_page_item > a {
    background: rgba(var(--color-secondary-rgb), 0.35) !important;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(var(--color-secondary-rgb), 0.4) !important;
}

/* Logo et CTA dans le menu mobile */
.mobile-menu-logo {
    margin-bottom: 3rem;
    flex-shrink: 0;
}

.mobile-menu-logo .lumix-logo {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 0.5rem;
    color: white;
    font-weight: bold;
    line-height: 1;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
}

.mobile-menu-logo .lumix-anim {
    font-size: 1.2rem;
    color: var(--color-secondary);
    line-height: 1;
    letter-spacing: 3px;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.3);
}

.mobile-menu-cta {
    margin-top: 2.5rem;
    flex-shrink: 0;
}

.mobile-menu-cta .btn-lumix {
    font-size: 1.1rem;
    font-weight: 700;
    padding: 18px 45px;
    background: var(--color-secondary);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    display: inline-block;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(var(--color-secondary-rgb), 0.4);
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.mobile-menu-cta .btn-lumix:hover {
    background: rgba(var(--color-secondary-rgb), 0.9);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 30px rgba(var(--color-secondary-rgb), 0.6);
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
    .main-navigation {
        display: none !important;
    }
    
    .site-header .header-content {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .site-branding {
        flex: 1;
    }
}