/* =========================================================
   En-tête : menu mobile en plein écran (599 px et moins)
   ========================================================= */

@media (max-width: 599px) {
    /* Overlay mobile uniquement */
    header.wp-block-template-part .wp-block-navigation__responsive-container {
        position: fixed !important;
        inset: 0;
        height: 100dvh;
        min-height: 100dvh !important;
        max-height: 100dvh;
        background: var(--bacchus-color-white) !important;
        z-index: var(--bacchus-z-overlay) !important;
        transform: none;
        overflow: hidden !important;
    }

    /* Structure interne mobile uniquement */
    header.wp-block-template-part .wp-block-navigation__responsive-dialog,
    header.wp-block-template-part .wp-block-navigation__responsive-container-content {
        min-height: 100dvh !important;
        height: 100%;
    }

    /* Évite le clip uniquement sur mobile */
    header.wp-block-template-part,
    header.wp-block-template-part>header.bacchus-site-header,
    header.wp-block-template-part>header.bacchus-site-header>.wp-block-group {
        overflow: visible !important;
    }

    /* Neutralise le transform du header uniquement quand le menu mobile est ouvert */
    header.wp-block-template-part:has(.wp-block-navigation__responsive-container.is-menu-open),
    header.wp-block-template-part:has(.wp-block-navigation__responsive-container.has-modal-open),
    header.wp-block-template-part:has(.wp-block-navigation__responsive-container.is-menu-open)>header.bacchus-site-header {
        transform: none !important;
    }
}
