/* 1. HACK MAGIQUE : On force l'Offcanvas parent à supprimer ses marges pour la pleine largeur ! */
.brx-offcanvas-inner:has(.beewine-drilldown) {
    padding: 0 !important;
}

/* 2. Conteneur principal */
.beewine-drilldown .bricks-nav-menu-wrapper {
    position: relative !important;
    overflow: hidden !important; 
    width: 100%;
    display: block !important;
    transition: height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 3. Blocage total des comportements parasites de Bricks */
.beewine-drilldown > .bricks-nav-menu-wrapper > ul.bricks-nav-menu {
    transform: none !important;
    left: 0 !important;
    position: static !important;
}

/* 4. Réinitialisation des listes */
.beewine-drilldown ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100%;
    position: static !important;
}

.beewine-drilldown li {
    position: static !important;
    display: block !important;
    padding: 0 !important;
    margin: 0 !important;
    border-bottom: 1px solid rgba(128, 128, 128, 0.2);
}

/* 5. Flèche SVG Bricks orientée */
.beewine-drilldown .brx-submenu-toggle > button svg {
    transform: rotate(-90deg);
    transition: transform 0.2s ease;
    width: 14px;
    height: 14px;
}
.beewine-drilldown .brx-submenu-toggle > button {
    pointer-events: none; 
    background: transparent;
    border: none;
    padding: 0;
}

/* 6. Les sous-menus */
.beewine-drilldown ul.sub-menu {
    position: absolute !important;
    top: 0;
    left: 0 !important;
    width: 100%;
    height: auto !important; /* Empêche le conteneur de s'étirer artificiellement */
    
    background-color: var(--beewine-drilldown-bg, #111417) !important; 
    
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
    display: flex !important; 
    flex-direction: column;
    visibility: hidden;
    opacity: 0;
}

.beewine-drilldown ul.sub-menu ul.sub-menu { z-index: 20; }
.beewine-drilldown ul.sub-menu ul.sub-menu ul.sub-menu { z-index: 30; }

.beewine-drilldown ul.beewine-active {
    transform: translateX(0) !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* 7. Liens */
.beewine-drilldown a, 
.beewine-drill-back button {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 14px 20px !important;
    margin: 0 !important;
    font-size: 1em;
    color: inherit;
    text-decoration: none;
    background: transparent;
    border: none;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.15s ease;
}

.beewine-drilldown a:hover, 
.beewine-drill-back button:hover {
    background: rgba(128, 128, 128, 0.1);
}

/* 8. Bouton retour */
.beewine-drill-back button {
    background: rgba(128, 128, 128, 0.15);
    font-weight: 600;
    justify-content: flex-start;
    gap: 12px;
}

.beewine-back-arrow {
    font-size: 1.8em; /* Plus gros et bien visible */
    line-height: 0.8;
    transform: translateY(-2px);
}