/* Burger Menu Button */
.burger-menu {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 1.5rem;
    margin-left: auto;
    -webkit-tap-highlight-color: transparent; /* Pour iOS */
}

.burger-menu:focus {
    outline: none;
    background: transparent !important;
}

.burger-menu:hover {
    background: transparent !important;
}

.burger-menu:active {
    background: transparent !important;
}

.burger-line {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--primary-color);
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* Mobile Menu */
.mobile-menu {
    visibility: hidden;
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 400px;
    height: 100vh;
    background: white;
    padding: 1rem;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
    transform: translateX(100%);
    transition: transform 0.3s ease, visibility 0s linear 0.3s;
    z-index: 1000;
}

.mobile-menu.active {
    visibility: visible;
    transform: translateX(0);
    transition: transform 0.3s ease, visibility 0s linear 0s;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.close-menu {
    background: transparent;
    border: none;
    font-size: 1.5rem;
    color: var(--primary-color);
    cursor: pointer;
    padding: 0.5rem;
    -webkit-tap-highlight-color: transparent; /* Pour iOS */
}

.close-menu:focus {
    outline: none;
    background: transparent !important;
}

.close-menu:hover {
    background: transparent !important;
}

.close-menu:active {
    background: transparent !important;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mobile-nav-links a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 1.2rem;
    padding: 1rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.mobile-nav-links a:hover {
    background: rgba(11, 36, 109, 0.05);
    color: var(--secondary-color);
}

/* Overlay */
.menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 999;
}

.menu-overlay.active {
    opacity: 1;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .burger-menu {
        display: block;
    }

    .nav-links {
        display: none;
    }

    .mobile-menu {
        display: block;
    }

    .menu-overlay.active {
        display: block;
    }

    body.menu-open {
        /* overflow: hidden; */
    }
}

/* Animation des lignes du burger en croix */
.burger-menu.active .burger-line:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.burger-menu.active .burger-line:nth-child(2) {
    opacity: 0;
}

.burger-menu.active .burger-line:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}