/* =========================================================
   Biotropica Mega Menu - Frontend
   ========================================================= */

.bmm-root,
.bmm-root * {
    box-sizing: border-box;
    font-family: 'Baloo 2', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
}

body.bmm-menu-open {
    overflow: hidden;
}

.bmm-root {
    --bmm-dark: #051A0F;
    --bmm-dark-2: #0f3724;
    --bmm-green: #a6c657;
    --bmm-red: #c70039;
    --bmm-white: #ffffff;
    --bmm-black: #03140b;
    --bmm-radius: 12px;
    font-family: 'Baloo 2', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
}

/* Barre d'ouverture desktop */
.bmm-launcher {
    position: relative;
    z-index: 100002;
    display: flex;
    justify-content: flex-end;
    width: 100%;
    pointer-events: none;
}

.bmm-launcher-inner {
    display: flex;
    align-items: stretch;
    justify-content: flex-end;
    height: 56px;
    border-radius: 8px;
    overflow: hidden;
    pointer-events: auto;
}

.bmm-mobile-logo {
    display: none;
}

.bmm-top-link,
.bmm-menu-toggle {
    border: 0;
    appearance: none;
    cursor: pointer;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.bmm-top-link {
    min-width: 190px;
    padding: 0 26px;
    font-weight: 600;
    font-size: var(--bmm-topbar-font-size, 15px);
    letter-spacing: .02em;
    text-transform: uppercase;
    color: var(--bmm-white) !important;
    background: #103522;
}

.bmm-top-link:hover,
.bmm-top-link:focus {
    color: var(--bmm-white) !important;
    filter: brightness(1.07);
}

.bmm-top-link-ticketing {
    background: var(--bmm-red);
}

.bmm-top-link img {
    width: 26px;
    height: 26px;
    object-fit: contain;
    margin-right: 10px;
}

.bmm-menu-toggle {
    width: 80px;
    min-width: 80px;
    height: 56px;
    background: var(--bmm-green);
    position: relative;
}

.bmm-menu-toggle span {
    position: absolute;
    left: 25px;
    width: 30px;
    height: 3px;
    border-radius: 4px;
    background: var(--bmm-black);
    transition: transform .25s ease, opacity .2s ease, top .25s ease;
}

.bmm-menu-toggle span:nth-child(1) { top: 18px; }
.bmm-menu-toggle span:nth-child(2) { top: 27px; }
.bmm-menu-toggle span:nth-child(3) { top: 36px; }

.bmm-root.is-open .bmm-menu-toggle span:nth-child(1) {
    top: 27px;
    transform: rotate(45deg);
}

.bmm-root.is-open .bmm-menu-toggle span:nth-child(2) {
    opacity: 0;
}

.bmm-root.is-open .bmm-menu-toggle span:nth-child(3) {
    top: 27px;
    transform: rotate(-45deg);
}

body.bmm-menu-open .bmm-launcher {
    position: fixed;
    top: 30px;
    right: 60px;
    width: auto;
}

/* Overlay */
.bmm-overlay {
    position: fixed;
    inset: 0;
    z-index: 100000;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    background: var(--bmm-dark);
    transition: opacity .25s ease, visibility .25s ease;
}

.bmm-root.is-open .bmm-overlay {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.bmm-mega {
    width: 100%;
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(360px, 42vw) 1fr;
    background-color: #051A0F;
    color: var(--bmm-white);
    overflow-y: auto;
}

/* Colonne gauche */
.bmm-left {
    display: grid;
    grid-template-rows: minmax(340px, 50vh) 1fr;
    min-height: 100vh;
}

.bmm-hero {
    position: relative;
    display: flex;
    align-items: flex-end;
    padding: 0 52px 58px;
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.bmm-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0,0,0,.38), rgba(0,0,0,.04));
}

.bmm-hero-content {
    position: relative;
    z-index: 1;
}

.bmm-hero p {
    margin: 0 0 26px;
    max-width: 360px;
    color: var(--bmm-white);
    font-size: var(--bmm-hero-title-size, 48px);
    line-height: 1.1;
    font-weight: 600;
}

.bmm-red-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 54px;
    padding: 0 34px;
    border-radius: 999px;
    background: var(--bmm-red);
    color: var(--bmm-white) !important;
    text-decoration: none !important;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: .02em;
    font-size: var(--bmm-hero-button-size, 16px);
}

.bmm-red-button:hover,
.bmm-red-button:focus {
    color: var(--bmm-white) !important;
    filter: brightness(1.08);
}

.bmm-discover-panel {
    padding: 70px 52px 60px;
    background-color: #103522;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 26px;
}

.bmm-discover-link {
    position: relative;
    display: block;
    color: var(--bmm-white) !important;
    text-decoration: none !important;
    padding-right: 42px;
}

.bmm-discover-link span {
    display: block;
    margin-bottom: 3px;
    color: var(--bmm-green);
    text-transform: uppercase;
    font-size: var(--bmm-discover-kicker-size, 20px);
    font-weight: 600;
}

.bmm-discover-link strong {
    display: block;
    font-size: var(--bmm-discover-cta-size, 32px);
    line-height: 1.05;
    color: var(--bmm-white);
}

.bmm-discover-link em {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-style: normal;
    font-size: 34px;
    line-height: 1;
}

/* Zone droite desktop */
.bmm-right {
    padding: 170px 74px 70px;
    min-width: 0;
    background: #051A0F !important;
}

.bmm-columns {
    display: grid;
    grid-template-columns: repeat(3, minmax(160px, 1fr));
    gap: clamp(38px, 5vw, 86px);
    margin-bottom: 80px;
}

.bmm-column h2 {
    margin: 0;
    color: var(--bmm-white);
    font-size: var(--bmm-column-title-size, 32px);
    line-height: 1.15;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: .02em;
}

.bmm-title-line {
    width: 72px;
    height: 4px;
    margin: 18px 0 36px;
    border-radius: 99px;
    background: var(--bmm-green);
}

.bmm-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.bmm-column li + li {
    margin-top: 17px;
}

.bmm-column a {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    color: var(--bmm-white) !important;
    text-decoration: none !important;
    font-size: var(--bmm-column-cta-size, 17px);
    line-height: 1.25;
    font-weight: 500;
}

.bmm-column a.has-icon {
    grid-template-columns: auto minmax(0, 1fr) auto;
}

.bmm-column a:hover span,
.bmm-column a:focus span {
    color: var(--bmm-green);
}

.bmm-link-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.bmm-arrow {
    font-size: 24px;
    line-height: 1;
}

.bmm-protect-cards {
    display: grid;
    grid-template-columns: repeat(4, minmax(140px, 1fr));
    gap: 28px;
}

.bmm-protect-card {
    min-height: 280px;
    border-radius: var(--bmm-radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 22px;
    background-color: #234330;
    background-size: cover;
    background-position: center;
    position: relative;
    color: var(--bmm-white) !important;
    text-decoration: none !important;
}

.bmm-protect-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,.08) 30%, rgba(0,0,0,.72) 100%);
}

.bmm-card-title,
.bmm-card-link {
    position: relative;
    z-index: 1;
}

.bmm-card-title {
    color: var(--bmm-white);
    display: block;
    font-size: var(--bmm-protect-card-title-size, 20px);
    line-height: 1.05;
    font-weight: 600;
    margin-bottom: 16px;
}

.bmm-card-link {
    display: block;
    color: var(--bmm-white);
    font-size: var(--bmm-protect-card-link-size, 14px);
    font-weight: 600;
}

.bmm-protect-buttons {
    display: grid;
    grid-template-columns: repeat(2, minmax(200px, 1fr));
    gap: 28px;
    margin-top: 34px;
}

.bmm-green-button {
    min-height: 66px;
    border-radius: var(--bmm-radius);
    background: var(--bmm-green);
    color: var(--bmm-black) !important;
    text-decoration: none !important;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    padding: 0 28px;
    font-size: var(--bmm-green-button-size, 16px);
    font-weight: 600;
}

.bmm-green-button.has-icon {
    grid-template-columns: auto minmax(0, 1fr) auto;
}

.bmm-green-button img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.bmm-green-button em {
    font-style: normal;
    font-size: 26px;
    line-height: 1;
}

.bmm-mobile-content {
    display: none;
}

/* Responsive intermédiaire */
@media (max-width: 1280px) {
    .bmm-right {
        padding-left: 46px;
        padding-right: 46px;
    }

    .bmm-protect-cards {
        gap: 18px;
    }

    .bmm-protect-card {
        min-height: 240px;
        padding: 18px;
    }
}

/* Mobile */
@media (max-width: 980px) {
    .bmm-launcher {
        justify-content: stretch;
    }

    .bmm-launcher-inner {
        width: 100%;
        height: 92px;
        border-radius: 0;
        display: grid;
        grid-template-columns: 1fr 1.25fr 1.25fr 92px;
    }

    .bmm-mobile-logo {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 12px;
        background: #103522;
    }

    .bmm-mobile-logo img {
        display: block;
        max-width: 72px;
        max-height: 72px;
        width: auto;
        height: auto;
        object-fit: contain;
    }

    .bmm-top-link {
        min-width: 0;
        width: 100%;
        padding: 8px 6px 10px;
        flex-direction: column;
        gap: 6px;
        font-size: var(--bmm-topbar-font-size, 15px);
        line-height: 1;
        text-align: center;
    }

    .bmm-top-link img {
        margin: 0;
        width: 34px;
        height: 34px;
    }

    .bmm-menu-toggle {
        width: 92px;
        min-width: 92px;
        height: 92px;
    }

    .bmm-menu-toggle span {
        left: 25px;
        width: 42px;
        height: 4px;
    }

    .bmm-menu-toggle span:nth-child(1) { top: 31px; }
    .bmm-menu-toggle span:nth-child(2) { top: 44px; }
    .bmm-menu-toggle span:nth-child(3) { top: 57px; }

    .bmm-root.is-open .bmm-menu-toggle span:nth-child(1),
    .bmm-root.is-open .bmm-menu-toggle span:nth-child(3) {
        top: 44px;
    }

    body.bmm-menu-open .bmm-launcher {
        position: fixed;
        inset: 0 0 auto 0;
        width: 100%;
    }

    .bmm-mega {
        display: block;
        padding-top: 92px;
        min-height: 100vh;
        overflow-y: auto;
    }

    .bmm-left {
        display: block;
        min-height: 0;
    }

    .bmm-hero {
        min-height: 330px;
        padding: 42px 24px;
        align-items: flex-end;
    }

    .bmm-hero p {
        max-width: 280px;
        font-size: var(--bmm-hero-title-size, 34px);
    }

    .bmm-red-button {
        min-height: 48px;
        padding: 0 26px;
        font-size: var(--bmm-hero-button-size, 14px);
    }

    .bmm-discover-panel,
    .bmm-right {
        display: none;
    }

    .bmm-mobile-content {
        display: block;
        padding: 18px 20px 36px;
        background: #051A0F;
    }

    .bmm-accordion {
        border-bottom: 1px solid rgba(255,255,255,.12);
    }

    .bmm-accordion-button {
        width: 100%;
        min-height: 64px;
        padding: 0;
        border: 0;
        background: transparent;
        color: var(--bmm-white);
        font: inherit;
        font-size: var(--bmm-mobile-accordion-size, 20px);
        font-weight: 600;
        text-transform: uppercase;
        text-align: left;
        display: flex;
        align-items: center;
        justify-content: space-between;
        cursor: pointer;
    }

    .bmm-accordion-button span:last-child {
        color: var(--bmm-green);
        font-size: 30px;
        line-height: 1;
    }

    .bmm-accordion-button[aria-expanded="true"] span:last-child {
        transform: rotate(45deg);
    }

    .bmm-accordion-panel {
        padding: 0 0 18px;
    }

    .bmm-mobile-list {
        list-style: none;
        margin: 0;
        padding: 0;
    }

    .bmm-mobile-list li + li {
        margin-top: 8px;
    }

    .bmm-mobile-list a {
        min-height: 46px;
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        gap: 12px;
        color: var(--bmm-white) !important;
        text-decoration: none !important;
        font-weight: 500;
        font-size: var(--bmm-mobile-cta-size, 16px);
    }

    .bmm-mobile-list a.has-icon {
        grid-template-columns: auto minmax(0, 1fr) auto;
    }

    .bmm-mobile-list img {
        width: 24px;
        height: 24px;
        object-fit: contain;
    }

    .bmm-mobile-list a span:last-child {
        color: var(--bmm-green);
        font-size: 22px;
    }

    .bmm-mobile-protect-cards {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
        margin-bottom: 14px;
    }

    .bmm-mobile-protect-cards a {
        min-width: 0;
        display: block;
        color: var(--bmm-white) !important;
        text-decoration: none !important;
        font-weight: 600;
        line-height: 1.1;
    }

    .bmm-mobile-protect-cards img {
        display: block;
        width: 100%;
        aspect-ratio: 1 / 1;
        object-fit: cover;
        border-radius: 10px;
        margin-bottom: 8px;
    }

    .bmm-mobile-protect-buttons {
        display: grid;
        gap: 10px;
    }

    .bmm-green-button {
        min-height: 58px;
        padding: 0 18px;
        border-radius: 10px;
    }
}

@media (max-width: 520px) {
    .bmm-launcher-inner {
        height: 84px;
        grid-template-columns: 84px 1fr 1fr 84px;
    }

    .bmm-mobile-logo img {
        max-width: 62px;
        max-height: 62px;
    }

    .bmm-top-link {
        font-size: var(--bmm-topbar-font-size, 13px);
    }

    .bmm-top-link img {
        width: 30px;
        height: 30px;
    }

    .bmm-menu-toggle {
        width: 84px;
        min-width: 84px;
        height: 84px;
    }

    .bmm-menu-toggle span {
        left: 24px;
        width: 36px;
    }

    .bmm-menu-toggle span:nth-child(1) { top: 28px; }
    .bmm-menu-toggle span:nth-child(2) { top: 41px; }
    .bmm-menu-toggle span:nth-child(3) { top: 54px; }

    .bmm-root.is-open .bmm-menu-toggle span:nth-child(1),
    .bmm-root.is-open .bmm-menu-toggle span:nth-child(3) {
        top: 41px;
    }

    .bmm-mega {
        padding-top: 84px;
    }

    .bmm-hero {
        min-height: 280px;
    }

    .bmm-mobile-protect-cards {
        grid-template-columns: 1fr 1fr;
    }
}


/* Correctifs : pas de puces devant les liens + pas de scroll desktop */
.bmm-root ul,
.bmm-root ol,
.bmm-root li,
.bmm-root .bmm-column ul,
.bmm-root .bmm-mobile-list {
    list-style: none !important;
    list-style-type: none !important;
    margin-left: 0 !important;
    padding-left: 0 !important;
}

.bmm-root li::marker {
    content: "" !important;
    font-size: 0 !important;
}

.bmm-root .bmm-column li::before,
.bmm-root .bmm-mobile-list li::before {
    content: none !important;
    display: none !important;
}

@media (min-width: 981px) {
    .bmm-root.is-open .bmm-overlay {
        overflow: hidden !important;
    }

    .bmm-root.is-open .bmm-mega {
        height: 100vh;
        height: 100dvh;
        min-height: 0;
        max-height: 100vh;
        max-height: 100dvh;
        overflow: hidden !important;
    }

    .bmm-root.is-open .bmm-left {
        height: 100vh;
        height: 100dvh;
        min-height: 0;
    }

    .bmm-root.is-open .bmm-right {
        height: 100vh;
        height: 100dvh;
        overflow: hidden !important;
        padding-top: clamp(90px, 14vh, 170px);
        padding-bottom: clamp(34px, 5vh, 70px);
    }

    .bmm-root.is-open .bmm-columns {
        margin-bottom: clamp(32px, 5.5vh, 80px);
    }

    .bmm-root.is-open .bmm-protect-card {
        min-height: clamp(155px, 22vh, 244px);
    }

    .bmm-root.is-open .bmm-protect-buttons {
        margin-top: clamp(18px, 3vh, 34px);
    }
}

/* =========================================================
   Animations légères au survol
   ========================================================= */
.bmm-root a,
.bmm-root button,
.bmm-root img,
.bmm-root .bmm-arrow,
.bmm-root .bmm-green-button em,
.bmm-root .bmm-card-title,
.bmm-root .bmm-card-link {
    transition-property: transform, opacity, color, background-color, filter, box-shadow;
    transition-duration: .22s;
    transition-timing-function: ease;
}

.bmm-top-link {
    transition: transform .22s ease, filter .22s ease, background-color .22s ease;
}

.bmm-top-link:hover,
.bmm-top-link:focus-visible {
    transform: translateY(-2px);
    filter: brightness(1.08);
}

.bmm-top-link:hover img,
.bmm-top-link:focus-visible img {
    transform: translateY(-2px) scale(1.06);
}

.bmm-menu-toggle {
    transition: background-color .22s ease, filter .22s ease;
}

.bmm-menu-toggle:hover,
.bmm-menu-toggle:focus-visible {
    filter: brightness(1.06);
}

.bmm-menu-toggle:hover span:nth-child(1),
.bmm-menu-toggle:focus-visible span:nth-child(1) {
    transform: translateX(-2px);
}

.bmm-menu-toggle:hover span:nth-child(3),
.bmm-menu-toggle:focus-visible span:nth-child(3) {
    transform: translateX(2px);
}

.bmm-root.is-open .bmm-menu-toggle:hover span:nth-child(1),
.bmm-root.is-open .bmm-menu-toggle:focus-visible span:nth-child(1) {
    transform: rotate(45deg) scale(1.06);
}

.bmm-root.is-open .bmm-menu-toggle:hover span:nth-child(3),
.bmm-root.is-open .bmm-menu-toggle:focus-visible span:nth-child(3) {
    transform: rotate(-45deg) scale(1.06);
}

.bmm-red-button,
.bmm-green-button {
    transition: transform .22s ease, filter .22s ease, box-shadow .22s ease;
}

.bmm-red-button:hover,
.bmm-red-button:focus-visible,
.bmm-green-button:hover,
.bmm-green-button:focus-visible {
    transform: translateY(-3px);
    filter: brightness(1.07);
    box-shadow: 0 14px 26px rgba(0, 0, 0, .22);
}

.bmm-red-button:hover .bmm-arrow,
.bmm-red-button:focus-visible .bmm-arrow,
.bmm-green-button:hover em,
.bmm-green-button:focus-visible em {
    transform: translateX(5px);
}

.bmm-discover-link {
    transition: transform .22s ease, opacity .22s ease;
}

.bmm-discover-link:hover,
.bmm-discover-link:focus-visible {
    transform: translateX(8px);
}

.bmm-discover-link:hover strong,
.bmm-discover-link:focus-visible strong {
    color: var(--bmm-green);
}

.bmm-discover-link:hover em,
.bmm-discover-link:focus-visible em {
    transform: translateY(-50%) translateX(6px);
}

.bmm-column a,
.bmm-mobile-list a {
    transition: transform .22s ease, color .22s ease, opacity .22s ease;
}

.bmm-column a:hover,
.bmm-column a:focus-visible,
.bmm-mobile-list a:hover,
.bmm-mobile-list a:focus-visible {
    transform: translateX(6px);
}

.bmm-column a:hover .bmm-link-icon,
.bmm-column a:focus-visible .bmm-link-icon,
.bmm-mobile-list a:hover img,
.bmm-mobile-list a:focus-visible img {
    transform: scale(1.08) rotate(-3deg);
}

.bmm-column a:hover .bmm-arrow,
.bmm-column a:focus-visible .bmm-arrow,
.bmm-mobile-list a:hover span:last-child,
.bmm-mobile-list a:focus-visible span:last-child {
    transform: translateX(5px);
}

.bmm-protect-card {
    transition: transform .24s ease, filter .24s ease, box-shadow .24s ease;
    will-change: transform;
}

.bmm-protect-card::before {
    transition: background .24s ease;
}

.bmm-protect-card:hover,
.bmm-protect-card:focus-visible {
    transform: translateY(-7px) scale(1.015);
    filter: brightness(1.05);
    box-shadow: 0 18px 34px rgba(0, 0, 0, .26);
}

.bmm-protect-card:hover::before,
.bmm-protect-card:focus-visible::before {
    background: linear-gradient(180deg, rgba(0,0,0,.02) 24%, rgba(0,0,0,.78) 100%);
}

.bmm-protect-card:hover .bmm-card-title,
.bmm-protect-card:focus-visible .bmm-card-title,
.bmm-mobile-protect-cards a:hover,
.bmm-mobile-protect-cards a:focus-visible {
    transform: translateY(-3px);
}

.bmm-protect-card:hover .bmm-card-link,
.bmm-protect-card:focus-visible .bmm-card-link {
    transform: translateX(4px);
}

.bmm-mobile-protect-cards a img {
    transition: transform .22s ease, filter .22s ease;
}

.bmm-mobile-protect-cards a:hover img,
.bmm-mobile-protect-cards a:focus-visible img {
    transform: scale(1.025);
    filter: brightness(1.06);
}

.bmm-accordion-button {
    transition: color .22s ease, opacity .22s ease;
}

.bmm-accordion-button:hover,
.bmm-accordion-button:focus-visible {
    color: var(--bmm-green);
}

@media (prefers-reduced-motion: reduce) {
    .bmm-root,
    .bmm-root *,
    .bmm-root *::before,
    .bmm-root *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
    }

    .bmm-top-link:hover,
    .bmm-top-link:focus-visible,
    .bmm-red-button:hover,
    .bmm-red-button:focus-visible,
    .bmm-green-button:hover,
    .bmm-green-button:focus-visible,
    .bmm-discover-link:hover,
    .bmm-discover-link:focus-visible,
    .bmm-column a:hover,
    .bmm-column a:focus-visible,
    .bmm-mobile-list a:hover,
    .bmm-mobile-list a:focus-visible,
    .bmm-protect-card:hover,
    .bmm-protect-card:focus-visible,
    .bmm-mobile-protect-cards a:hover,
    .bmm-mobile-protect-cards a:focus-visible {
        transform: none !important;
    }
}

/* =========================================================
   Ajustements responsive desktop + tablette horizontale
   - Desktop : dimensions de la version précédente
   - Tablette horizontale : réglages renforcés de la dernière version
   ========================================================= */

/* Desktop large : on conserve les proportions de la version précédente */
@media (min-width: 1601px) {
    .bmm-root.is-open .bmm-mega,
    .bmm-mega {
        grid-template-columns: minmax(500px, 38vw) minmax(0, 1fr);
    }
}

/* Desktop intermédiaire : dimensions de la version précédente */
@media (min-width: 1381px) and (max-width: 1600px) {
    .bmm-root.is-open .bmm-mega,
    .bmm-mega {
        grid-template-columns: minmax(410px, 32vw) minmax(0, 1fr);
    }

    .bmm-root.is-open .bmm-right,
    .bmm-right {
        padding-left: 54px;
        padding-right: 54px;
    }

    .bmm-columns {
        gap: clamp(30px, 3.4vw, 58px);
    }

    .bmm-hero {
        padding-left: 42px;
        padding-right: 42px;
    }

    .bmm-discover-panel {
        padding-left: 42px;
        padding-right: 42px;
    }

    .bmm-hero p {
        font-size: min(var(--bmm-hero-title-size, 48px), 44px);
    }

    .bmm-discover-link strong {
        font-size: min(var(--bmm-discover-cta-size, 32px), 29px);
    }

    .bmm-column h2 {
        font-size: min(var(--bmm-column-title-size, 32px), 30px);
    }

    .bmm-protect-cards,
    .bmm-protect-buttons {
        gap: 22px;
    }

    .bmm-protect-card {
        min-height: clamp(185px, 23vh, 250px);
        padding: 19px;
    }
}

/* Petit desktop : dimensions de la version précédente */
@media (min-width: 1181px) and (max-width: 1380px) {
    .bmm-root.is-open .bmm-mega,
    .bmm-mega {
        grid-template-columns: minmax(330px, 29vw) minmax(0, 1fr);
    }

    .bmm-root.is-open .bmm-right,
    .bmm-right {
        padding-left: 38px;
        padding-right: 38px;
        padding-top: clamp(92px, 13vh, 135px);
        padding-bottom: clamp(28px, 4vh, 52px);
    }

    .bmm-left {
        grid-template-rows: minmax(300px, 48vh) 1fr;
    }

    .bmm-hero {
        padding-left: 34px;
        padding-right: 34px;
        padding-bottom: 44px;
    }

    .bmm-discover-panel {
        padding: 46px 34px 42px;
        gap: 20px;
    }

    .bmm-hero p {
        font-size: min(var(--bmm-hero-title-size, 48px), 38px);
        max-width: 270px;
    }

    .bmm-red-button {
        min-height: 48px;
        padding: 0 28px;
        font-size: min(var(--bmm-hero-button-size, 16px), 15px);
    }

    .bmm-discover-link span {
        font-size: min(var(--bmm-discover-kicker-size, 20px), 17px);
    }

    .bmm-discover-link strong {
        font-size: min(var(--bmm-discover-cta-size, 32px), 25px);
    }

    .bmm-discover-link em {
        font-size: 28px;
    }

    .bmm-columns {
        gap: clamp(24px, 3vw, 42px);
        margin-bottom: clamp(28px, 4.5vh, 52px);
    }

    .bmm-column h2 {
        font-size: min(var(--bmm-column-title-size, 32px), 27px);
    }

    .bmm-title-line {
        margin-bottom: 28px;
    }

    .bmm-column li + li {
        margin-top: 13px;
    }

    .bmm-column a {
        font-size: min(var(--bmm-column-cta-size, 17px), 16px);
        gap: 11px;
    }

    .bmm-link-icon {
        width: 21px;
        height: 21px;
    }

    .bmm-protect-cards,
    .bmm-protect-buttons {
        gap: 16px;
    }

    .bmm-protect-card {
        min-height: clamp(168px, 22vh, 215px);
        padding: 16px;
    }

    .bmm-card-title {
        font-size: min(var(--bmm-protect-card-title-size, 20px), 17px);
        margin-bottom: 11px;
    }

    .bmm-card-link {
        font-size: min(var(--bmm-protect-card-link-size, 14px), 13px);
    }

    .bmm-green-button {
        min-height: 58px;
        padding: 0 22px;
        font-size: min(var(--bmm-green-button-size, 16px), 15px);
    }
}

/* Tablette horizontale : on garde les réglages renforcés de la dernière version */
@media (min-width: 981px) and (max-width: 1180px) {
    .bmm-mega {
        grid-template-columns: minmax(240px, 27vw) minmax(0, 1fr);
    }

    .bmm-left {
        grid-template-rows: minmax(260px, 46vh) minmax(0, 1fr);
    }

    .bmm-hero {
        padding: 0 28px 34px;
        background-position: center;
    }

    .bmm-hero p {
        max-width: 240px;
        font-size: min(var(--bmm-hero-title-size, 48px), 36px);
    }

    .bmm-red-button {
        min-height: 46px;
        padding: 0 24px;
        font-size: min(var(--bmm-hero-button-size, 16px), 14px);
    }

    .bmm-discover-panel {
        padding: 34px 28px;
        gap: 16px;
    }

    .bmm-discover-link {
        padding-right: 30px;
    }

    .bmm-discover-link span {
        font-size: min(var(--bmm-discover-kicker-size, 20px), 15px);
    }

    .bmm-discover-link strong {
        font-size: min(var(--bmm-discover-cta-size, 32px), 22px);
    }

    .bmm-discover-link em {
        font-size: 24px;
    }

    .bmm-right {
        padding: clamp(78px, 10vh, 104px) 28px 28px;
    }

    .bmm-columns {
        gap: 20px;
        margin-bottom: 22px;
    }

    .bmm-column h2 {
        font-size: min(var(--bmm-column-title-size, 32px), 24px);
    }

    .bmm-title-line {
        width: 50px;
        height: 3px;
        margin: 10px 0 18px;
    }

    .bmm-column li + li {
        margin-top: 9px;
    }

    .bmm-column a {
        gap: 8px;
        font-size: min(var(--bmm-column-cta-size, 17px), 14px);
    }

    .bmm-link-icon {
        width: 19px;
        height: 19px;
    }

    .bmm-arrow {
        font-size: 20px;
    }

    .bmm-protect-cards {
        gap: 12px;
    }

    .bmm-protect-card {
        min-height: clamp(140px, 20vh, 175px);
        padding: 12px;
    }

    .bmm-card-title {
        margin-bottom: 10px;
        font-size: min(var(--bmm-protect-card-title-size, 20px), 15px);
    }

    .bmm-card-link {
        font-size: min(var(--bmm-protect-card-link-size, 14px), 11px);
    }

    .bmm-protect-buttons {
        gap: 12px;
        margin-top: 14px;
    }

    .bmm-green-button {
        min-height: 48px;
        padding: 0 16px;
        gap: 10px;
        font-size: min(var(--bmm-green-button-size, 16px), 13px);
    }

    .bmm-green-button img {
        width: 20px;
        height: 20px;
    }

    .bmm-green-button em {
        font-size: 21px;
    }

    body.bmm-menu-open .bmm-launcher {
        top: 16px;
        right: 24px;
    }

    .bmm-launcher-inner {
        height: 46px;
    }

    .bmm-top-link {
        min-width: 132px;
        padding: 0 16px;
        font-size: min(var(--bmm-topbar-font-size, 15px), 13px);
    }

    .bmm-menu-toggle {
        width: 62px;
        min-width: 62px;
        height: 46px;
    }

    .bmm-menu-toggle span {
        left: 18px;
        width: 26px;
        height: 3px;
    }

    .bmm-menu-toggle span:nth-child(1) { top: 14px; }
    .bmm-menu-toggle span:nth-child(2) { top: 22px; }
    .bmm-menu-toggle span:nth-child(3) { top: 30px; }

    .bmm-root.is-open .bmm-menu-toggle span:nth-child(1),
    .bmm-root.is-open .bmm-menu-toggle span:nth-child(3) {
        top: 22px;
    }
}

/* Tablette horizontale étroite : réglage encore plus compact de la dernière version */
@media (min-width: 981px) and (max-width: 1080px) and (orientation: landscape) {
    .bmm-mega {
        grid-template-columns: 232px minmax(0, 1fr);
    }

    .bmm-right {
        padding-left: 24px;
        padding-right: 24px;
    }

    .bmm-columns {
        gap: 16px;
    }

    .bmm-column h2 {
        font-size: min(var(--bmm-column-title-size, 32px), 22px);
    }

    .bmm-column a {
        font-size: min(var(--bmm-column-cta-size, 17px), 13px);
    }

    .bmm-protect-card {
        min-height: 138px;
    }
}

/* Le site reste bloqué, mais le menu peut scroller si un écran desktop est vraiment trop bas. */
@media (min-width: 981px) {
    body.bmm-menu-open {
        overflow: hidden !important;
    }

    .bmm-root.is-open .bmm-overlay {
        overflow: hidden !important;
    }

    .bmm-root.is-open .bmm-mega {
        height: 100vh;
        height: 100dvh;
        max-height: 100vh;
        max-height: 100dvh;
        overflow-y: auto !important;
        overflow-x: hidden !important;
    }

    .bmm-root.is-open .bmm-right {
        height: auto;
        min-height: 100vh;
        min-height: 100dvh;
        overflow: visible !important;
    }
}

/* =========================================================
   Blocage du scroll du site quand le mega menu est ouvert
   Le scroll reste autorisé uniquement dans le contenu du menu.
   ========================================================= */
html.bmm-menu-open,
body.bmm-menu-open {
    overflow: hidden !important;
    overscroll-behavior: none !important;
}

body.bmm-menu-open {
    position: fixed !important;
    width: 100% !important;
}

body.bmm-menu-open .bmm-overlay {
    overflow: hidden !important;
    overscroll-behavior: contain !important;
}

body.bmm-menu-open .bmm-mega {
    overflow-y: auto !important;
    overflow-x: hidden !important;
    overscroll-behavior: contain !important;
    -webkit-overflow-scrolling: touch;
}

/* =========================================================
   Intégration Divi : la section du header ne conserve jamais
   une hauteur plein écran lorsque le menu est fermé.
   L'overlay reste indépendant grâce à sa position fixed.
   ========================================================= */
.bmm-root {
    height: auto !important;
    min-height: 56px;
    max-height: none !important;
    overflow: visible !important;
}

/* Classes ajoutées automatiquement par frontend.js aux parents Divi. */
.bmm-divi-container {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
}

/* Application immédiate avant même l'exécution du JavaScript,
   pour éviter qu'une hauteur définie dans Divi bloque la page. */
.et_pb_section:has(.bmm-root),
.et_pb_row:has(.bmm-root),
.et_pb_column:has(.bmm-root),
.et_pb_module:has(.bmm-root),
.et_pb_code:has(.bmm-root),
.et_pb_code_inner:has(.bmm-root) {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
}

@media (max-width: 980px) {
    .bmm-root {
        min-height: 92px;
    }
}

@media (max-width: 520px) {
    .bmm-root {
        min-height: 84px;
    }
}


/* =========================================================
   Correctif Divi 1.1.9 : overlay monté directement dans <body>
   pour échapper aux hauteurs, overflow, transform et contain
   appliqués par les sections du Theme Builder.
   ========================================================= */
.bmm-overlay-portal,
.bmm-overlay-portal * {
    box-sizing: border-box;
    font-family: 'Baloo 2', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
}

.bmm-overlay-portal {
    --bmm-dark: #051A0F;
    --bmm-dark-2: #0f3724;
    --bmm-green: #a6c657;
    --bmm-red: #c70039;
    --bmm-white: #ffffff;
    --bmm-black: #03140b;
    --bmm-radius: 12px;
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    max-width: none !important;
    max-height: none !important;
    margin: 0 !important;
    transform: none !important;
    clip-path: none !important;
    contain: none !important;
    isolation: isolate;
    z-index: 2147483000 !important;
}

.bmm-overlay-portal.is-open {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}

.bmm-overlay-portal .bmm-mega {
    width: 100% !important;
    min-height: 100vh;
    min-height: 100dvh;
}

@media (min-width: 981px) {
    .bmm-overlay-portal.is-open {
        overflow: hidden !important;
    }

    .bmm-overlay-portal.is-open .bmm-mega {
        height: 100vh;
        height: 100dvh;
        min-height: 0;
        max-height: 100vh;
        max-height: 100dvh;
        overflow-y: auto !important;
        overflow-x: hidden !important;
    }

    .bmm-overlay-portal.is-open .bmm-left {
        height: 100vh;
        height: 100dvh;
        min-height: 0;
    }

    .bmm-overlay-portal.is-open .bmm-right {
        height: auto;
        min-height: 100vh;
        min-height: 100dvh;
        overflow: visible !important;
        padding-top: clamp(90px, 14vh, 170px);
        padding-bottom: clamp(34px, 5vh, 70px);
    }

    .bmm-overlay-portal.is-open .bmm-columns {
        margin-bottom: clamp(32px, 5.5vh, 80px);
    }

    .bmm-overlay-portal.is-open .bmm-protect-card {
        min-height: clamp(155px, 22vh, 244px);
    }

    .bmm-overlay-portal.is-open .bmm-protect-buttons {
        margin-top: clamp(18px, 3vh, 34px);
    }
}

@media (max-width: 980px) {
    .bmm-overlay-portal .bmm-mega {
        height: 100vh;
        height: 100dvh;
        max-height: 100vh;
        max-height: 100dvh;
        overflow-y: auto !important;
        overflow-x: hidden !important;
    }
}

/* Le lanceur est lui aussi déplacé temporairement dans <body> pendant
   l'ouverture, afin que la croix reste toujours au-dessus de l'overlay. */
.bmm-launcher-portal,
.bmm-launcher-portal * {
    box-sizing: border-box;
    font-family: 'Baloo 2', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
}

body.bmm-menu-open .bmm-launcher-portal {
    z-index: 2147483001 !important;
}

.bmm-launcher-portal.is-open .bmm-menu-toggle span:nth-child(1) {
    top: 27px;
    transform: rotate(45deg);
}

.bmm-launcher-portal.is-open .bmm-menu-toggle span:nth-child(2) {
    opacity: 0;
}

.bmm-launcher-portal.is-open .bmm-menu-toggle span:nth-child(3) {
    top: 27px;
    transform: rotate(-45deg);
}

.bmm-launcher-portal.is-open .bmm-menu-toggle:hover span:nth-child(1),
.bmm-launcher-portal.is-open .bmm-menu-toggle:focus-visible span:nth-child(1) {
    transform: rotate(45deg) scale(1.06);
}

.bmm-launcher-portal.is-open .bmm-menu-toggle:hover span:nth-child(3),
.bmm-launcher-portal.is-open .bmm-menu-toggle:focus-visible span:nth-child(3) {
    transform: rotate(-45deg) scale(1.06);
}

@media (max-width: 980px) {
    .bmm-launcher-portal.is-open .bmm-menu-toggle span:nth-child(1),
    .bmm-launcher-portal.is-open .bmm-menu-toggle span:nth-child(3) {
        top: 44px;
    }
}

@media (max-width: 520px) {
    .bmm-launcher-portal.is-open .bmm-menu-toggle span:nth-child(1),
    .bmm-launcher-portal.is-open .bmm-menu-toggle span:nth-child(3) {
        top: 41px;
    }
}

@media (min-width: 981px) and (max-width: 1180px) {
    .bmm-launcher-portal.is-open .bmm-menu-toggle span:nth-child(1),
    .bmm-launcher-portal.is-open .bmm-menu-toggle span:nth-child(3) {
        top: 22px;
    }
}
