/* ============================================================
   NGP Mega Menu — container
   ============================================================ */
.ngp-mm {
    position: relative;
    box-sizing: border-box;
    width: 100%;
}
.ngp-mm *,
.ngp-mm *::before,
.ngp-mm *::after {
    box-sizing: inherit;
}

/* ============================================================
   L1 row (navbar)
   ============================================================ */
.ngp-mm__grid {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: center !important;
    column-gap: 40px !important;
    row-gap: 8px !important;
    width: 100% !important;
}

.ngp-mm__l1 {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    flex: 0 0 auto !important;
    position: relative !important;
}

.ngp-mm__l1-title {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    width: auto !important;
    text-align: left !important;
    font-family: "Montserrat", sans-serif !important;
    font-size: 15px !important;
    font-weight: 400 !important;
    line-height: 1.2 !important;
    text-transform: none !important;
    color: #ffffff !important;
    background: transparent !important;
    border: 0 !important;
    padding: 16px 0 !important;
    margin: 0 !important;
    cursor: pointer !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    transition: color 0.2s ease !important;
}

/* Chevron ▾ on L1 buttons (categories that have children) */
.ngp-mm__l1-title:not(.is-link)::after {
    content: "" !important;
    display: inline-block !important;
    width: 8px !important;
    height: 8px !important;
    margin-left: 4px !important;
    border-right: 2px solid currentColor !important;
    border-bottom: 2px solid currentColor !important;
    transform: rotate(45deg) translateY(-2px) !important;
    transition: transform 0.2s ease !important;
}

.ngp-mm__l1:hover .ngp-mm__l1-title,
.ngp-mm__l1-title:hover,
.ngp-mm__l1-title:focus {
    color: #C0162D !important;
}

/* ============================================================
   Dropdown panel — hidden by default, shown on hover or aria-expanded
   ============================================================ */
.ngp-mm__l1-panel {
    display: none !important;
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    z-index: 1000 !important;
    min-width: 260px !important;
    max-width: min(720px, 90vw) !important;
    width: max-content !important;
    background: #ffffff !important;
    color: #232C35 !important;
    padding: 24px 32px !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15) !important;
    border-radius: 0 0 8px 8px !important;
    font-family: "Montserrat", sans-serif !important;
}

.ngp-mm__l1:hover > .ngp-mm__l1-panel,
.ngp-mm__l1:focus-within > .ngp-mm__l1-panel,
.ngp-mm__l1-title[aria-expanded="true"] + .ngp-mm__l1-panel {
    display: block !important;
}

/* Rotate chevron when dropdown is shown */
.ngp-mm__l1:hover .ngp-mm__l1-title:not(.is-link)::after,
.ngp-mm__l1-title[aria-expanded="true"]:not(.is-link)::after {
    transform: rotate(225deg) translate(-2px, -2px) !important;
}

/* ============================================================
   L2 multi-column inside the panel
   ============================================================ */
.ngp-mm__l2-list {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    column-width: 220px !important;
    column-gap: 40px !important;
    column-fill: balance !important;
}

.ngp-mm__l2 {
    list-style: none !important;
    margin: 0 0 28px 0 !important;
    padding: 0 !important;
    break-inside: avoid !important;
    -webkit-column-break-inside: avoid !important;
    page-break-inside: avoid !important;
    display: block !important;
}

.ngp-mm__l2-title {
    display: block !important;
    font-family: "Montserrat", sans-serif !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #0C0914 !important;
    text-decoration: none !important;
    margin: 0 0 12px 0 !important;
    padding: 0 !important;
}
.ngp-mm__l2-title:hover {
    color: #C0162D !important;
}

/* L2 leaf (no L3 children) — looks like an L3 link */
.ngp-mm__l2-leaf {
    display: block !important;
    padding: 8px 0 !important;
    color: #232C35 !important;
    text-decoration: none !important;
    font-family: "Montserrat", sans-serif !important;
    font-size: 15px !important;
    font-weight: 400 !important;
    border-bottom: 1px solid rgba(35, 44, 53, 0.12) !important;
    transition: color 0.2s ease !important;
}
.ngp-mm__l2-leaf:hover {
    color: #C0162D !important;
}

/* ============================================================
   L3 list (under each L2 section)
   ============================================================ */
.ngp-mm__l3-list {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.ngp-mm__l3 {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.ngp-mm__l3 a {
    display: block !important;
    padding: 6px 0 !important;
    color: #232C35 !important;
    text-decoration: none !important;
    font-family: "Montserrat", sans-serif !important;
    font-size: 15px !important;
    font-weight: 400 !important;
    border-bottom: 0 !important;
    transition: color 0.2s ease !important;
}

.ngp-mm__l3 a:hover {
    color: #C0162D !important;
}

/* ============================================================
   Tablette / petit desktop (1025px – 1434px) — resserre le L1
   ============================================================ */
@media (min-width: 1025px) and (max-width: 1434px) {
    .ngp-mm__grid {
        column-gap: 30px !important;
    }
}

/* ============================================================
   Mobile (<=1024px) — liste déroulante (accordéon), Bungee 16px/400
   ============================================================ */
@media (max-width: 1024px) {
    .ngp-mm__grid {
        flex-direction: column !important;
        flex-wrap: nowrap !important;
        gap: 0 !important;
        padding: 0 !important;
    }
    .ngp-mm__l1 {
        flex: 1 1 auto !important;
        width: 100% !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    }
    .ngp-mm__l1-title {
        width: 100% !important;
        justify-content: flex-start !important;
        padding: 16px 16px !important;
        font-family: "Bungee", sans-serif !important;
        font-size: 16px !important;
        font-weight: 400 !important;
    }
    .ngp-mm__l1-title:not(.is-link)::after {
        margin-left: 8px !important;
    }

    /* Disable hover behavior on mobile — only explicit toggle works */
    .ngp-mm__l1:hover > .ngp-mm__l1-panel,
    .ngp-mm__l1:focus-within > .ngp-mm__l1-panel {
        display: none !important;
    }
    .ngp-mm__l1-title[aria-expanded="true"] + .ngp-mm__l1-panel {
        display: block !important;
    }

    .ngp-mm__l1-panel {
        position: static !important;
        box-shadow: none !important;
        border-radius: 0 !important;
        padding: 12px 16px !important;
        background: transparent !important;
        color: #ffffff !important;
        min-width: 0 !important;
        max-width: none !important;
        width: auto !important;
    }
    .ngp-mm__l2-list {
        column-count: 1 !important;
        column-width: auto !important;
    }
    /* Slightly smaller, white text for L2 / L3 inside the open dropdown */
    .ngp-mm__l2-title,
    .ngp-mm__l2-leaf,
    .ngp-mm__l3 a {
        color: #ffffff !important;
        font-size: 13px !important;
    }
    .ngp-mm__l2-leaf {
        border-bottom-color: rgba(255, 255, 255, 0.15) !important;
    }
    .ngp-mm__l2-title:hover,
    .ngp-mm__l2-leaf:hover,
    .ngp-mm__l3 a:hover {
        color: #C0162D !important;
    }
}
