/* ============================================
   MOBILE MENU & HAMBURGER - Lorenzo Polito
   ============================================ */

/* Hamburger button - Simple */
.nav-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: transparent;
    border: none;
    padding: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-hamburger span {
    display: block;
    width: 28px;
    height: 3px;
    background: white;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.nav-hamburger:hover {
    opacity: 0.8;
}

.nav-hamburger:focus-visible {
    outline: 3px solid rgba(255, 213, 128, 0.95);
    outline-offset: 4px;
    border-radius: 0.75rem;
}

.nav-hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.nav-hamburger.active span:nth-child(2) {
    opacity: 0;
}

.nav-hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Navigation desktop */
.main-nav {
    display: flex;
    align-items: center;
}

/* Hide mobile elements by default */
.mobile-nav-header,
.mobile-nav-cta {
    display: none;
}

.mobile-nav-close {
    display: none;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: #FFFFFF;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.mobile-nav-close:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 213, 128, 0.45);
    transform: scale(1.04);
}

.mobile-nav-close:focus-visible {
    outline: 3px solid rgba(255, 213, 128, 0.95);
    outline-offset: 3px;
}

.nav-list {
    display: flex;
    gap: 2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-link {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    padding: 0.5rem 0.75rem;
    transition: all 0.25s;
    border-radius: 0.5rem;
}

.nav-link:hover {
    color: #FFD580;
    background: rgba(255, 111, 0, 0.1);
}

/* Mobile styles */
@media (max-width: 968px) {
    .header-actions {
        position: relative;
        z-index: 10001;
    }

    .nav-hamburger {
        display: flex !important;
    }

    /* Menu fullscreen avec animation */
    .main-nav {
        position: fixed;
        display: none;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(6, 6, 18, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 2rem;
        z-index: 10000;
        overflow-y: auto;
        opacity: 0;
        transform: scale(0.95);
        transition: opacity 0.3s ease, transform 0.3s ease;
    }

    .main-nav.active {
        display: flex !important;
        animation: menuSlideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    }

    @keyframes menuSlideIn {
        from {
            opacity: 0;
            transform: scale(0.95);
        }
        to {
            opacity: 1;
            transform: scale(1);
        }
    }

    .nav-list {
        flex-direction: column;
        gap: 0;
        width: 100%;
        max-width: 400px;
        text-align: center;
        margin: 0;
        padding: 0;
    }

    .nav-link {
        display: block;
        padding: 0.9rem;
        font-size: 1rem;
        width: 100%;
    }

    /* Header du menu mobile - COMPACT */
    .mobile-nav-header {
        display: flex !important;
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
        position: relative;
        padding-bottom: 1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.15);
        margin-bottom: 1rem;
        width: 100%;
        text-align: center;
    }

    .mobile-nav-close {
        display: inline-flex;
        position: absolute;
        top: 0;
        right: 0;
    }

    .mobile-nav-logo svg {
        width: 85px;
        height: 85px;
    }

    .mobile-nav-info {
        display: flex;
        flex-direction: column;
        gap: 0.15rem;
    }

    .mobile-nav-title {
        color: #FFFFFF;
        font-weight: 700;
        font-size: 1.3rem;
        margin: 0;
        font-family: 'Fraunces', serif;
        cursor: pointer;
        transition: color 0.2s;
    }

    .mobile-nav-title:hover {
        color: rgba(255, 180, 0, 0.9);
    }

    .mobile-nav-subtitle {
        color: rgba(255, 255, 255, 0.8);
        font-size: 0.8rem;
        margin: 0;
        font-weight: 500;
    }

    .mobile-nav-company {
        color: rgba(255, 180, 0, 0.9);
        font-size: 0.75rem;
        margin: 0;
        font-weight: 600;
        letter-spacing: 0.5px;
    }

    /* CTAs circulaires en bas du menu */
    .mobile-nav-cta {
        display: flex !important;
        flex-direction: row;
        justify-content: center;
        gap: 2rem;
        width: 100%;
        padding: 1.5rem 0;
        margin-top: 2rem;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .cta-circle {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
        text-decoration: none;
        transition: transform 0.3s ease;
    }

    .cta-circle:hover {
        transform: translateY(-4px);
    }

    .cta-icon {
        width: 70px;
        height: 70px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.3s ease;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    }

    .cta-phone .cta-icon {
        background: linear-gradient(135deg, #FF6F00 0%, #FF8A00 100%);
        color: white;
    }

    .cta-whatsapp .cta-icon {
        background: #25D366;
        color: white;
    }

    .cta-phone:hover .cta-icon {
        box-shadow: 0 6px 28px rgba(255, 111, 0, 0.5);
        transform: scale(1.05);
    }

    .cta-whatsapp:hover .cta-icon {
        box-shadow: 0 6px 28px rgba(37, 211, 102, 0.5);
        transform: scale(1.05);
    }

    .cta-label {
        color: rgba(255, 255, 255, 0.9);
        font-size: 0.9rem;
        font-weight: 600;
        text-align: center;
    }

    .cta-phone .cta-label {
        color: #FF8A00;
    }

    .cta-whatsapp .cta-label {
        color: #25D366;
    }

    /* Cacher lang-switcher desktop du header en mobile */
    .header-actions .lang-switcher {
        display: none !important;
    }

    /* Language switcher in mobile menu */
    .main-nav .lang-switcher {
        display: flex;
        justify-content: center;
        margin: 1rem 0;
        padding: 0.5rem 0;
        border-top: 1px solid rgba(255,255,255,0.08);
    }
    .main-nav .lang-btn {
        padding: 0.4rem 0.75rem;
        font-size: 0.9rem;
    }
}
