/* Styles pour le menu popup */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(11, 32, 38, 0.8);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

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

.menu-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: #0b2026;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

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



.menu-header {
    width: 100%;
    background-color: #0b2026;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.menu-popup .menu-popup-close {
    display: flex;
    align-items: center;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    transform-origin: center;
}

.menu-popup .menu-popup-close .menu-circle {
    width: 30px;
    height: 30px;
    border: 1px solid #ffffff;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-right: 10px;
    position: relative;
}

.menu-popup .menu-popup-close .menu-circle span {
    width: 12px;
    height: 1px;
    background-color: #ffffff;
    display: block;
    position: absolute;
}

.menu-popup .menu-popup-close .menu-circle span:first-child {
    transform: rotate(45deg);
}

.menu-popup .menu-popup-close .menu-circle span:last-child {
    transform: rotate(-45deg);
}

.menu-popup .menu-popup-close .menu-text {
    font-family: 'Inter Tight', sans-serif;
    font-size: 12px;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.menu-popup-container {
    display: flex;
    width: 100%;
    height: calc(100% - 80px);
    position: relative;
}

.menu-popup-left {
    width: 50%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding-left: 10%;
    position: relative;
    overflow: hidden;
}

/* Arrière-plan du menu - Remplacement du C typographique par une image */
.menu-background-letter {
    display: none; /* On masque le C typographique */
}

/* Nouvel arrière-plan avec l'image bg_illu_menu.svg */
.menu-popup-left::before {
    content: '';
    position: absolute;
    top: 0;
    left: -10%;
    width: 100%;
    height: 100vh; /* Utiliser la hauteur de la fenêtre */
    background-image: url('../images/menu (open)/bg_illu_menu.svg');
    background-size: auto 100%; /* Hauteur à 100%, largeur auto */
    background-repeat: no-repeat;
    background-position: left center;
    opacity: 1;
    z-index: 0;
}

.menu-popup-right {
    width: 50%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-popup-links {
    display: flex;
    flex-direction: column;
    margin-bottom: 30px;
    position: relative;
    z-index: 2;
    padding: 0;
}

.menu-link {
    font-family: 'Inter Tight', sans-serif;
    font-size: 32px;
    line-height: 1.2;
    color: #ffffff;
    text-decoration: none;
    margin-bottom: 30px;
    font-weight: 300;
    letter-spacing: -0.5px;
    transition: color 0.3s ease;
}

.menu-link:last-child {
    margin-bottom: 0;
}

.menu-link:hover {
    color: #d6a05e;
}

.menu-link.active {
    color: #d6a05e;
}

.menu-popup-address {
    margin-top: 0;
    margin-bottom: 0;
    position: relative;
    z-index: 2;
}

.menu-popup-address p {
    font-family: 'Inter Tight', sans-serif;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    line-height: 1.5;
    font-weight: 300;
}

.menu-popup-image-container {
    position: relative;
    width: 80%;
    height: 70%;
}

.menu-popup-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.menu-popup-image.active {
    opacity: 1;
}



/* Responsive */
@media (max-width: 1200px) {
    .menu-link {
        font-size: 28px;
    }
}

@media (max-width: 992px) {
    .menu-popup-container {
        flex-direction: column;
    }
    
    .menu-popup-left, .menu-popup-right {
        width: 100%;
    }
    
    .menu-popup-left {
        height: 100%;
        padding: 0 10%;
        justify-content: center;
        align-items: center;
    }
    
    /* Masquer le visuel en arrière-plan sur mobile */
    .menu-popup-left::before {
        display: none;
    }
    
    /* Masquer complètement la partie droite qui contient les visuels */
    .menu-popup-right {
        display: none;
    }
    
    .menu-popup-links {
        margin-bottom: 30px;
        padding: 30px 0;
        align-items: center;
        text-align: center;
    }
    
    .menu-link {
        font-size: 24px;
        margin-bottom: 20px;
    }
    
    .menu-popup-address {
        margin-bottom: 30px;
    }
}

@media (max-width: 576px) {
    .menu-popup-left {
        padding: 0 8%;
        height: 100%;
        justify-content: center;
    }
    
    .menu-link {
        font-size: 20px;
        margin-bottom: 16px;
        text-align: center;
    }
    
    .menu-popup-address {
        text-align: center;
        width: 100%;
        margin-top: 30px;
    }
}
