.menu-toggle .menu-icon {
    display: inline-block;
    width: 32px;
    height: 20px;
    position: relative;
}

.menu-toggle .menu-icon span {
    display: block;
    height: 2px;
    width: 100%;
    background: #c3b1a2;
    border-radius: 2px;
    position: absolute;
    left: 0;
    transition: all 0.2s;
}

.menu-toggle .menu-icon span:nth-child(1) { top: 2px; }
.menu-toggle .menu-icon span:nth-child(2) { top: 9px; }
.menu-toggle .menu-icon span:nth-child(3) { bottom: 2px; }

.menu-popup-overlay {
    display: none;
    position: fixed!important;
    z-index: 2147483647!important; /* plus haut que la plupart des plugins */
    top: 0; left: 0;
    background: rgba(195,177,162, 0.8);
    color: black;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: opacity 0.2s;
    overflow: auto;
}
.menu-popup-overlay.active {
    display: flex;
    z-index: 2147483647!important;
    opacity: 1;
    pointer-events: auto;
}
body.menu-popup-open *:not(.menu-popup-overlay):not(.menu-popup-overlay *) {
    pointer-events: none !important;
}
.menu-popup-overlay ul {
    list-style: none;
    padding-left: 0;
    margin: 0 auto;
    font-size: 14px;
}
.menu-popup-overlay li {
    margin: 5px 0;
}

.menu-popup-overlay ul li a {
    color: #1d1d1b !important;
    text-decoration: none !important;
}

/* Bouton de fermeture du menu popup */
.menu-popup-close {
    position: absolute;
    top: 68px;
    right: 24px;
    background: transparent;
    border: none;
    font-size: 2.2em;
    color: #1d1d1b;
    cursor: pointer;
    z-index: 10001;
}

    .menu-desktop,
    .menu-popup-overlay ul {
        list-style: none;
        padding-left: 0;
        margin: 0;
    }

    body, html {
    position: static !important;
    z-index: auto !important;
}

.menu-popup-overlay,
.menu-popup-overlay.active {
    position: fixed !important;
    z-index: 2147483647 !important;
    top: 0; left: 0;
    width: 100vw;
    height: auto;
}
/* Affichage mobile : bouton menu */
@media (max-width: 1200px) {
    .menu-pages-shortcode ul {
        display: none !important;
    }
    .menu-popup-overlay.active ul {
        display: flex !important;
        flex-direction: column;
        background: transparent;
    }
    .menu-pages-shortcode .menu-toggle {
        display: block;
        width: 100%;
        background: transparent;
        justify-self: center;
        align-items: center;
    }
}

/* Affichage desktop : menu toujours visible, bouton caché */
@media (min-width: 1201px) {
    .menu-desktop {
        display: flex !important;
        gap: 16px;
        background: none;
        box-shadow: none;
        border-radius: 0;
    }
    .menu-popup-overlay {
        display: none !important;
    }
    .menu-pages-shortcode .menu-toggle {
        display: none;
    }
}

