/**
 * Mega Menu PRO - Navigation mobile / tablette par etapes (drill-down)
 * @version 1.1.0
 *
 * Les couleurs (en-tete, accent) et polices sont injectees par dynamic.css
 * (color7 / color8 / color9 / font1 / font2) afin de suivre le skin choisi.
 */

/* ---------- Menu d'origine lorsque le mode etapes est actif ---------- */
/* les onglets du menu sont remplaces par le panneau ; le bouton « Menu » du module reste */
html.atmd-on #adtm_menu ul#menu > li.li-niveau1:not(.advtm_menu_toggle) {
    display: none !important;
}
html.atmd-on #adtm_menu .advtm_menu_toggle,
html.atmd-on #adtm_menu .adtm_toggle_menu_button {
    display: block !important;
    cursor: pointer;
}

/* ---------- Verrou de defilement de la page ---------- */
html.atmd-lock,
html.atmd-lock body {
    overflow: hidden !important;
}

/* ---------- Conteneur ---------- */
.atmd-root {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 2147483200; /* au-dessus des bandeaux / popups des themes */
    visibility: hidden;
    pointer-events: none;
    -webkit-tap-highlight-color: transparent;
    font-size: 15px;
    line-height: 1.35;
    text-align: left;
}
.atmd-root.atmd-rtl {
    direction: rtl;
    text-align: right;
}
.atmd-root.is-open {
    visibility: visible;
    pointer-events: auto;
}
.atmd-root *,
.atmd-root *:before,
.atmd-root *:after {
    box-sizing: border-box;
}
.atmd-root ul,
.atmd-root li {
    list-style: none;
    margin: 0;
    padding: 0;
    float: none;
    width: auto;
}
.atmd-root button {
    -webkit-appearance: none;
    appearance: none;
    font: inherit;
    letter-spacing: inherit;
    text-transform: none;
    margin: 0;
    border-radius: 0;
    box-shadow: none;
    cursor: pointer;
}

.atmd-overlay {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.45);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.atmd-root.is-open .atmd-overlay {
    opacity: 1;
}

/* ---------- Tiroir ---------- */
.atmd-drawer {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 88%;
    max-width: 380px;
    max-width: var(--atmd-width, 380px);
    background: #ffffff;
    color: #222222;
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-flex-direction: column;
    flex-direction: column;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.25);
    -webkit-transform: translateX(-102%);
    transform: translateX(-102%);
    transition: -webkit-transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    outline: none;
}
.atmd-pos-right .atmd-drawer,
.atmd-rtl.atmd-pos-left .atmd-drawer {
    left: auto;
    right: 0;
    -webkit-transform: translateX(102%);
    transform: translateX(102%);
}
.atmd-rtl.atmd-pos-right .atmd-drawer {
    right: auto;
    left: 0;
    -webkit-transform: translateX(-102%);
    transform: translateX(-102%);
}
.atmd-pos-full .atmd-drawer {
    width: 100%;
    max-width: none;
    -webkit-transform: translateY(24px);
    transform: translateY(24px);
    opacity: 0;
    transition: opacity 0.25s ease, -webkit-transform 0.3s ease;
    transition: opacity 0.25s ease, transform 0.3s ease;
}
.atmd-root.is-open .atmd-drawer {
    -webkit-transform: none;
    transform: none;
    opacity: 1;
}

/* ---------- En-tete ---------- */
.atmd-header {
    -webkit-flex: 0 0 auto;
    flex: 0 0 auto;
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-align-items: center;
    align-items: center;
    min-height: 56px;
    padding: 0 4px;
    padding-top: env(safe-area-inset-top, 0px);
    background: #0b2a4a;
    background: var(--atmd-head-bg, #0b2a4a);
    color: #ffffff;
    color: var(--atmd-head-color, #ffffff);
}
.atmd-back,
.atmd-close {
    -webkit-flex: 0 0 auto;
    flex: 0 0 auto;
    display: -webkit-inline-box;
    display: -webkit-inline-flex;
    display: inline-flex;
    -webkit-align-items: center;
    align-items: center;
    min-width: 48px;
    height: 48px;
    padding: 0 10px;
    background: transparent;
    border: 0;
    color: inherit;
}
.atmd-back {
    max-width: 38%;
    gap: 6px;
}
.atmd-back-label {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: 14px;
}
.atmd-title {
    -webkit-flex: 1 1 auto;
    flex: 1 1 auto;
    min-width: 0;
    padding: 0 6px;
    text-align: center;
    font-weight: 700;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.atmd-close {
    -webkit-justify-content: center;
    justify-content: center;
}
.atmd-x {
    position: relative;
    display: block;
    width: 20px;
    height: 20px;
}
.atmd-x:before,
.atmd-x:after {
    content: "";
    position: absolute;
    top: 9px;
    left: 0;
    width: 20px;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
    -webkit-transform: rotate(45deg);
    transform: rotate(45deg);
}
.atmd-x:after {
    -webkit-transform: rotate(-45deg);
    transform: rotate(-45deg);
}
.atmd-back:focus-visible,
.atmd-close:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: -4px;
}

/* ---------- Fenetre des niveaux ---------- */
.atmd-viewport {
    position: relative;
    -webkit-flex: 1 1 auto;
    flex: 1 1 auto;
    overflow: hidden;
    background: #ffffff;
}
.atmd-level {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    background: #ffffff;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    visibility: hidden;
    -webkit-transform: translateX(100%);
    transform: translateX(100%);
    transition: -webkit-transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), visibility 0s linear 0.3s;
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), visibility 0s linear 0.3s;
}
.atmd-level.is-current {
    visibility: visible;
    -webkit-transform: translateX(0);
    transform: translateX(0);
    transition: -webkit-transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), visibility 0s linear 0s;
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), visibility 0s linear 0s;
}
.atmd-level.is-prev {
    -webkit-transform: translateX(-30%);
    transform: translateX(-30%);
}
.atmd-level.is-leaving {
    -webkit-transform: translateX(100%);
    transform: translateX(100%);
}
.atmd-rtl .atmd-level,
.atmd-rtl .atmd-level.is-leaving {
    -webkit-transform: translateX(-100%);
    transform: translateX(-100%);
}
.atmd-rtl .atmd-level.is-current {
    -webkit-transform: translateX(0);
    transform: translateX(0);
}
.atmd-rtl .atmd-level.is-prev {
    -webkit-transform: translateX(30%);
    transform: translateX(30%);
}

/* ---------- Lignes ---------- */
.atmd-item {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-align-items: center;
    align-items: center;
    width: 100%;
    min-height: 50px;
    padding: 12px 16px;
    border: 0;
    border-bottom: 1px solid #ececec;
    background: transparent;
    color: #222222;
    text-align: inherit;
    text-decoration: none;
    font-size: 15px;
    line-height: 1.3;
    transition: background-color 0.15s ease;
}
.atmd-root a.atmd-item:hover,
.atmd-root a.atmd-item:focus {
    text-decoration: none;
}
.atmd-item:focus {
    outline: none;
}
.atmd-item:focus-visible {
    background: #f5f5f5;
}
@media (hover: hover) {
    .atmd-item:hover {
        background: #f5f5f5;
    }
}
.atmd-item:focus-visible,
.atmd-next:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: -3px;
}
.atmd-item:active {
    background: #ececec;
}
.atmd-label {
    -webkit-flex: 1 1 auto;
    flex: 1 1 auto;
    min-width: 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
}
.atmd-bubble {
    -webkit-flex: 0 0 auto;
    flex: 0 0 auto;
    display: inline-block;
    margin: 0 8px;
    padding: 1px 7px;
    border-radius: 10px;
    font-size: 11px;
    line-height: 16px;
    font-weight: 600;
}
.atmd-item.is-active,
.atmd-item.is-active-path {
    font-weight: 700;
}
.atmd-viewall {
    font-weight: 700;
}
.atmd-backrow {
    background: #f7f7f7;
    font-size: 14px;
    color: #555555;
}
.atmd-backrow .atmd-chev-back {
    margin: 0 10px 0 0;
}
.atmd-rtl .atmd-backrow .atmd-chev-back {
    margin: 0 0 0 10px;
}

/* Chevrons */
.atmd-chev {
    -webkit-flex: 0 0 auto;
    flex: 0 0 auto;
    display: inline-block;
    width: 9px;
    height: 9px;
    margin-left: 10px;
    border-top: 2px solid currentColor;
    border-right: 2px solid currentColor;
    -webkit-transform: rotate(45deg);
    transform: rotate(45deg);
    opacity: 0.7;
}
.atmd-chev-back {
    margin-left: 4px;
    -webkit-transform: rotate(-135deg);
    transform: rotate(-135deg);
    opacity: 1;
}
.atmd-rtl .atmd-chev {
    margin-left: 0;
    margin-right: 10px;
    -webkit-transform: rotate(-135deg);
    transform: rotate(-135deg);
}
.atmd-rtl .atmd-chev-back {
    margin-right: 4px;
    -webkit-transform: rotate(45deg);
    transform: rotate(45deg);
}

/* Mode "libelle = lien / fleche = sous-niveau" */
.atmd-split {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    border-bottom: 1px solid #ececec;
}
.atmd-split .atmd-item {
    border-bottom: 0;
}
.atmd-next {
    -webkit-flex: 0 0 56px;
    flex: 0 0 56px;
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-align-items: center;
    align-items: center;
    -webkit-justify-content: center;
    justify-content: center;
    background: transparent;
    border: 0;
    border-left: 1px solid #ececec;
    color: #222222;
}
.atmd-rtl .atmd-next {
    border-left: 0;
    border-right: 1px solid #ececec;
}
.atmd-next .atmd-chev {
    margin: 0;
}
.atmd-rtl .atmd-next .atmd-chev {
    margin: 0;
}
.atmd-next:focus-visible {
    background: #f5f5f5;
}
@media (hover: hover) {
    .atmd-next:hover {
        background: #f5f5f5;
    }
}

/* ---------- Sections (titres de blocs) ---------- */
.atmd-group + .atmd-group {
    margin-top: 6px;
}
.atmd-section {
    padding: 18px 16px 8px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #777777;
    border-bottom: 1px solid #ececec;
}
.atmd-section-link,
.atmd-root a.atmd-section-link {
    color: inherit;
    text-decoration: none;
}

/* ---------- Contenus riches (images, HTML, produits) ---------- */
.atmd-media,
.atmd-rich {
    padding: 12px 16px;
    border-bottom: 1px solid #ececec;
    overflow: hidden;
}
.atmd-media img,
.atmd-rich img,
.atmd-rich iframe,
.atmd-rich video {
    display: block;
    max-width: 100% !important;
    height: auto;
    margin: 0 auto;
}
.atmd-rich ul,
.atmd-rich li {
    float: none !important;
    position: static !important;
    width: auto !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
}
.atmd-rich-product .product_list,
.atmd-rich-product .products {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-flex-wrap: wrap;
    flex-wrap: wrap;
    margin: 0 -6px;
}
.atmd-rich-product .product_list > li,
.atmd-rich-product .product-miniature {
    -webkit-flex: 0 0 50%;
    flex: 0 0 50%;
    max-width: 50%;
    padding: 6px;
    margin: 0;
}
.atmd-rich-product .highlighted-informations,
.atmd-rich-product .quick-view,
.atmd-rich-product .product-description-short {
    display: none !important;
}
.atmd-rich-product .product-title,
.atmd-rich-product .product-name {
    font-size: 13px;
    margin: 6px 0 2px;
    text-align: inherit;
}

/* ---------- Ouverture directe sur la categorie courante (sans animation) ---------- */
.atmd-instant .atmd-level,
.atmd-instant .atmd-level.is-current {
    transition: none !important;
}

/* ---------- Recherche ---------- */
.atmd-search-wrap {
    padding: 12px 16px;
    border-bottom: 1px solid #ececec;
    background: #fafafa;
}
.atmd-search {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    margin: 0;
    border: 1px solid #d6d6d6;
    border-radius: 24px;
    background: #ffffff;
    overflow: hidden;
}
.atmd-search:focus-within {
    border-color: #888888;
}
.atmd-search .atmd-search-input {
    -webkit-flex: 1 1 auto;
    flex: 1 1 auto;
    min-width: 0;
    height: 44px;
    margin: 0;
    padding: 0 16px;
    border: 0;
    outline: none;
    background: transparent;
    box-shadow: none;
    font: inherit;
    font-size: 16px; /* 16px : evite le zoom automatique d'iOS */
    color: #222222;
    -webkit-appearance: none;
    appearance: none;
}
.atmd-search .atmd-search-btn {
    -webkit-flex: 0 0 48px;
    flex: 0 0 48px;
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-align-items: center;
    align-items: center;
    -webkit-justify-content: center;
    justify-content: center;
    height: 44px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #555555;
}
.atmd-search-results {
    margin: 0 -16px;
}
.atmd-search-results:not(:empty) {
    margin-top: 10px;
    border-top: 1px solid #ececec;
    background: #ffffff;
}
.atmd-search-results.is-loading {
    opacity: 0.55;
}
.atmd-sr-thumb {
    -webkit-flex: 0 0 44px;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    margin-right: 12px;
    border-radius: 4px;
    background: #f2f2f2;
    overflow: hidden;
}
.atmd-rtl .atmd-sr-thumb {
    margin-right: 0;
    margin-left: 12px;
}
.atmd-sr-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.atmd-sr .atmd-label {
    font-size: 14px;
}
.atmd-sr-price {
    -webkit-flex: 0 0 auto;
    flex: 0 0 auto;
    margin-left: 10px;
    font-weight: 700;
    font-size: 14px;
    white-space: nowrap;
}
.atmd-sr-none {
    padding: 14px 16px;
    font-size: 14px;
    color: #777777;
}

/* ---------- Raccourcis ---------- */
.atmd-shortcuts {
    margin-top: 14px !important;
    background: #fafafa;
}
.atmd-ico {
    -webkit-flex: 0 0 auto;
    flex: 0 0 auto;
    display: inline-block;
    width: 20px;
    height: 20px;
    margin-right: 12px;
    opacity: 0.8;
}
.atmd-rtl .atmd-ico {
    margin-right: 0;
    margin-left: 12px;
}
.atmd-ico svg {
    display: block;
}

/* ---------- Accessibilite / mouvements reduits ---------- */
@media (prefers-reduced-motion: reduce) {
    .atmd-overlay,
    .atmd-drawer,
    .atmd-level,
    .atmd-level.is-current {
        transition: none !important;
    }
}

/* =====================================================================
   v1.2.0 : en-tete mobile / tablette
   Masque par defaut ; rendu visible par le CSS inline du module sous le
   seuil mobile/tablette (meme requete media que la navigation par etapes).
   ===================================================================== */
.atmd-hbar,
.atmd-hbar-spacer {
    display: none;
}
.atmd-hbar {
    --atmd-hb-h: 56px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 2147483000;
    background: #ffffff;
    background: var(--atmd-hb-bg, #ffffff);
    color: #0b2a4a;
    color: var(--atmd-hb-color, #0b2a4a);
    padding-top: env(safe-area-inset-top, 0px);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08), 0 2px 10px rgba(0, 0, 0, 0.06);
    -webkit-transform: translateY(0);
    transform: translateY(0);
    transition: -webkit-transform 0.25s ease;
    transition: transform 0.25s ease;
    font-size: 15px;
    line-height: 1.2;
    -webkit-tap-highlight-color: transparent;
}
.atmd-hbar *,
.atmd-hbar *:before,
.atmd-hbar *:after {
    box-sizing: border-box;
}
.atmd-hbar.atmd-sticky-none {
    position: relative;
}
.atmd-hbar.is-hidden {
    -webkit-transform: translateY(-110%);
    transform: translateY(-110%);
}
.atmd-hbar-spacer {
    height: 56px;
    height: calc(56px + env(safe-area-inset-top, 0px));
}
.atmd-hbar-spacer.atmd-hbar-has-search {
    height: 108px;
    height: calc(108px + env(safe-area-inset-top, 0px));
}
.atmd-hbar-row {
    position: relative;
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-align-items: center;
    align-items: center;
    -webkit-justify-content: space-between;
    justify-content: space-between;
    height: 56px;
    padding: 0 4px;
}
.atmd-hbar-side {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-align-items: center;
    align-items: center;
    -webkit-flex: 0 0 auto;
    flex: 0 0 auto;
}
.atmd-hbar-end {
    -webkit-justify-content: flex-end;
    justify-content: flex-end;
}

/* Boutons */
.atmd-hbar .atmd-hbtn {
    position: relative;
    display: -webkit-inline-box;
    display: -webkit-inline-flex;
    display: inline-flex;
    -webkit-flex-direction: column;
    flex-direction: column;
    -webkit-align-items: center;
    align-items: center;
    -webkit-justify-content: center;
    justify-content: center;
    -webkit-flex: 0 0 auto;
    flex: 0 0 auto;
    width: 46px;
    height: 48px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: inherit;
    font: inherit;
    text-decoration: none;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}
.atmd-hbar .atmd-hbtn:hover,
.atmd-hbar .atmd-hbtn:focus {
    color: inherit;
    text-decoration: none;
}
.atmd-hbar .atmd-hbtn:active {
    background: rgba(0, 0, 0, 0.06);
}
.atmd-hbar .atmd-hbtn:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: -2px;
}
.atmd-hico {
    position: relative;
    display: block;
    width: 26px;
    height: 26px;
}
.atmd-hico svg,
.atmd-hico img {
    display: block;
    width: 26px;
    height: 26px;
    object-fit: contain;
}
.atmd-hlabel {
    display: none;
    margin-top: 2px;
    max-width: 52px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: 10px;
    font-weight: 600;
    line-height: 12px;
}
.atmd-hbar-labels .atmd-hbtn {
    width: 52px;
}
.atmd-hbar-labels .atmd-hlabel {
    display: block;
}
.atmd-hbar-labels .atmd-hico,
.atmd-hbar-labels .atmd-hico svg,
.atmd-hbar-labels .atmd-hico img {
    width: 24px;
    height: 24px;
}
.atmd-hbadge {
    position: absolute;
    top: -6px;
    right: -9px;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 9px;
    background: #e4572e;
    background: var(--atmd-hb-badge, #e4572e);
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
    box-shadow: 0 0 0 2px var(--atmd-hb-bg, #ffffff);
}
.atmd-hbadge[hidden] {
    display: none;
}
.atmd-hdot {
    position: absolute;
    right: -2px;
    bottom: 0;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #2bb673;
    box-shadow: 0 0 0 2px var(--atmd-hb-bg, #ffffff);
}

/* Logo */
.atmd-hbar .atmd-hbar-logo {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-align-items: center;
    align-items: center;
    -webkit-justify-content: center;
    justify-content: center;
    -webkit-flex: 1 1 auto;
    flex: 1 1 auto;
    min-width: 0;
    height: 56px;
    padding: 0 6px;
    overflow: hidden;
    color: inherit;
    text-decoration: none;
}
.atmd-hbar-left .atmd-hbar-start {
    -webkit-flex: 1 1 auto;
    flex: 1 1 auto;
    min-width: 0;
}
.atmd-hbar-left .atmd-hbar-logo {
    -webkit-justify-content: flex-start;
    justify-content: flex-start;
}
.atmd-hbar-logo img {
    display: block;
    width: auto;
    min-width: 0;
    max-width: 100%;
    object-fit: contain;
    height: auto;
    max-height: 34px;
    max-height: var(--atmd-hb-logo-h, 34px);
}
.atmd-hbar-logo .atmd-favicon {
    -webkit-flex: 0 0 24px;
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
    margin-right: 8px;
    border-radius: 5px;
}
.atmd-shopname {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: 17px;
    font-weight: 800;
    letter-spacing: 0.01em;
}

/* Champ de recherche toujours visible */
.atmd-hbar-searchrow {
    position: relative;
    padding: 0 12px 8px;
    height: 52px;
}
.atmd-hbar-searchrow .atmd-search-wrap {
    padding: 0;
    border: 0;
    background: transparent;
}
.atmd-hbar-searchrow .atmd-search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin: 0;
    max-height: 70vh;
    overflow-y: auto;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.15);
}
.atmd-hbar-searchrow .atmd-search-results:not(:empty) {
    margin-top: 0;
}

/* Panneau de recherche (loupe) */
.atmd-sheet {
    position: fixed;
    top: 56px;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2147483100;
    visibility: hidden;
    pointer-events: none;
}
.atmd-sheet.is-open {
    visibility: visible;
    pointer-events: auto;
}
.atmd-sheet *,
.atmd-sheet *:before,
.atmd-sheet *:after {
    box-sizing: border-box;
}
.atmd-sheet ul,
.atmd-sheet li {
    list-style: none;
    margin: 0;
    padding: 0;
}
.atmd-sheet-overlay {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    transition: opacity 0.2s ease;
}
.atmd-sheet.is-open .atmd-sheet-overlay {
    opacity: 1;
}
.atmd-sheet-panel {
    position: relative;
    max-height: 100%;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    background: #ffffff;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    -webkit-transform: translateY(-12px);
    transform: translateY(-12px);
    opacity: 0;
    transition: opacity 0.2s ease, -webkit-transform 0.2s ease;
    transition: opacity 0.2s ease, transform 0.2s ease;
}
.atmd-sheet.is-open .atmd-sheet-panel {
    -webkit-transform: none;
    transform: none;
    opacity: 1;
}
.atmd-sheet-head {
    position: relative;
}
.atmd-sheet-head .atmd-search-wrap {
    padding-right: 60px;
}
.atmd-sheet .atmd-sheet-close {
    position: absolute;
    top: 12px;
    right: 8px;
    width: 44px;
    height: 44px;
    padding: 12px;
    border: 0;
    background: transparent;
    color: #222222;
    cursor: pointer;
}
.atmd-sheet .atmd-item {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-align-items: center;
    align-items: center;
    min-height: 50px;
    padding: 10px 16px;
    border-bottom: 1px solid #ececec;
    color: #222222;
    text-decoration: none;
}
.atmd-sheet .atmd-label {
    -webkit-flex: 1 1 auto;
    flex: 1 1 auto;
    min-width: 0;
}

@media (prefers-reduced-motion: reduce) {
    .atmd-hbar,
    .atmd-sheet-overlay,
    .atmd-sheet-panel {
        transition: none !important;
    }
}
.atmd-hbar ul,
.atmd-hbar li {
    list-style: none;
    margin: 0;
    padding: 0;
}
.atmd-hbar .atmd-item {
    color: #222222;
    background: #ffffff;
}

/* =====================================================================
   v1.3.0 : mini-panier interactif
   ===================================================================== */
.atmd-cart {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 2147483300;
    visibility: hidden;
    pointer-events: none;
    font-size: 14px;
    line-height: 1.35;
    color: #222222;
    -webkit-tap-highlight-color: transparent;
}
.atmd-cart.is-open {
    visibility: visible;
    pointer-events: auto;
}
.atmd-cart *,
.atmd-cart *:before,
.atmd-cart *:after {
    box-sizing: border-box;
}
.atmd-cart ul,
.atmd-cart li {
    list-style: none;
    margin: 0;
    padding: 0;
}
.atmd-cart button {
    -webkit-appearance: none;
    appearance: none;
    font: inherit;
    margin: 0;
    cursor: pointer;
}
.atmd-cart-overlay {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.45);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.atmd-cart.is-open .atmd-cart-overlay {
    opacity: 1;
}
.atmd-cart-panel {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 92%;
    max-width: 420px;
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-flex-direction: column;
    flex-direction: column;
    background: #ffffff;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.25);
    -webkit-transform: translateX(102%);
    transform: translateX(102%);
    transition: -webkit-transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.atmd-cart.atmd-rtl .atmd-cart-panel {
    right: auto;
    left: 0;
    -webkit-transform: translateX(-102%);
    transform: translateX(-102%);
}
.atmd-cart.is-open .atmd-cart-panel {
    -webkit-transform: none;
    transform: none;
}
.atmd-cart-head {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-align-items: center;
    align-items: center;
    -webkit-justify-content: space-between;
    justify-content: space-between;
    -webkit-flex: 0 0 auto;
    flex: 0 0 auto;
    min-height: 56px;
    padding: 0 4px 0 16px;
    padding-top: env(safe-area-inset-top, 0px);
    border-bottom: 1px solid #ececec;
}
.atmd-cart-title {
    font-size: 17px;
    font-weight: 700;
}
.atmd-cart-count {
    font-weight: 400;
    color: #777777;
}
.atmd-cart .atmd-cart-close {
    width: 48px;
    height: 48px;
    padding: 14px;
    border: 0;
    background: transparent;
    color: #222222;
}
.atmd-cart-free {
    display: none;
    -webkit-flex: 0 0 auto;
    flex: 0 0 auto;
    padding: 10px 16px 12px;
    background: #f4f8fb;
    border-bottom: 1px solid #ececec;
}
.atmd-cart-free.is-visible {
    display: block;
}
.atmd-cart-free-txt {
    margin-bottom: 7px;
    font-size: 13px;
    font-weight: 600;
}
.atmd-cart-free-txt.is-reached {
    color: #1e8a4c;
}
.atmd-cart-gauge {
    height: 6px;
    border-radius: 3px;
    background: #dde5ec;
    overflow: hidden;
}
.atmd-cart-gauge-fill {
    display: block;
    height: 100%;
    border-radius: 3px;
    background: #0a5ea8;
    transition: width 0.4s ease;
}
.atmd-cart-free-txt.is-reached + .atmd-cart-gauge .atmd-cart-gauge-fill {
    background: #1e8a4c;
}
.atmd-cart-msg {
    display: none;
    -webkit-flex: 0 0 auto;
    flex: 0 0 auto;
    margin: 10px 16px 0;
    padding: 10px 12px;
    border-radius: 6px;
    background: #fdecea;
    color: #a12b1f;
    font-size: 13px;
}
.atmd-cart-msg.is-visible {
    display: block;
}
.atmd-cart-body {
    position: relative;
    -webkit-flex: 1 1 auto;
    flex: 1 1 auto;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}
.atmd-cart-loading {
    width: 32px;
    height: 32px;
    margin: 48px auto;
    border: 3px solid #e3e3e3;
    border-top-color: #0a5ea8;
    border-radius: 50%;
    -webkit-animation: atmd-spin 0.8s linear infinite;
    animation: atmd-spin 0.8s linear infinite;
}
@-webkit-keyframes atmd-spin { to { -webkit-transform: rotate(360deg); } }
@keyframes atmd-spin { to { transform: rotate(360deg); } }
.atmd-cart .atmd-cart-item {
    position: relative;
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    padding: 14px 44px 14px 16px;
    border-bottom: 1px solid #f0f0f0;
    transition: opacity 0.2s ease;
}
.atmd-cart.atmd-rtl .atmd-cart-item {
    padding: 14px 16px 14px 44px;
}
.atmd-cart-item.is-busy {
    opacity: 0.45;
    pointer-events: none;
}
.atmd-cart-thumb {
    -webkit-flex: 0 0 72px;
    flex: 0 0 72px;
    width: 72px;
    height: 72px;
    margin-right: 12px;
    border-radius: 6px;
    background: #f5f5f5;
    overflow: hidden;
}
.atmd-rtl .atmd-cart-thumb {
    margin-right: 0;
    margin-left: 12px;
}
.atmd-cart-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.atmd-cart-info {
    -webkit-flex: 1 1 auto;
    flex: 1 1 auto;
    min-width: 0;
}
.atmd-cart .atmd-cart-name {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: #222222;
    font-weight: 600;
    text-decoration: none;
}
.atmd-cart-attr,
.atmd-cart-unit {
    margin-top: 2px;
    font-size: 12px;
    color: #777777;
}
.atmd-cart-row {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-align-items: center;
    align-items: center;
    -webkit-justify-content: space-between;
    justify-content: space-between;
    margin-top: 8px;
}
.atmd-cart-stepper {
    display: -webkit-inline-box;
    display: -webkit-inline-flex;
    display: inline-flex;
    -webkit-align-items: center;
    align-items: center;
    border: 1px solid #d6d6d6;
    border-radius: 20px;
    overflow: hidden;
}
.atmd-cart .atmd-cart-step {
    width: 36px;
    height: 34px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #222222;
    font-size: 18px;
    line-height: 34px;
}
.atmd-cart .atmd-cart-step:disabled {
    opacity: 0.35;
    cursor: default;
}
.atmd-cart .atmd-cart-step-del {
    color: #a12b1f;
}
.atmd-cart-qty {
    min-width: 28px;
    text-align: center;
    font-weight: 700;
}
.atmd-cart-total {
    font-weight: 700;
    white-space: nowrap;
}
.atmd-cart .atmd-cart-del {
    position: absolute;
    top: 10px;
    right: 6px;
    width: 36px;
    height: 36px;
    padding: 9px;
    border: 0;
    background: transparent;
    color: #999999;
}
.atmd-rtl .atmd-cart-del {
    right: auto;
    left: 6px;
}
.atmd-cart-empty {
    padding: 48px 24px;
    text-align: center;
}
.atmd-cart-empty-txt {
    margin: 0 0 18px;
    font-size: 15px;
    color: #555555;
}
.atmd-cart-foot {
    -webkit-flex: 0 0 auto;
    flex: 0 0 auto;
    padding: 12px 16px;
    padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid #ececec;
    background: #ffffff;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.04);
}
.atmd-cart-foot:empty {
    display: none;
}
.atmd-cart-line {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-justify-content: space-between;
    justify-content: space-between;
    padding: 2px 0;
    font-size: 13px;
    color: #555555;
}
.atmd-cart-line-total {
    margin-top: 4px;
    padding-top: 6px;
    border-top: 1px dashed #e0e0e0;
    font-size: 16px;
    font-weight: 700;
    color: #222222;
}
.atmd-cart-actions {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    margin-top: 12px;
}
.atmd-cart .atmd-cart-btn {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-align-items: center;
    align-items: center;
    -webkit-justify-content: center;
    justify-content: center;
    -webkit-flex: 1 1 0;
    flex: 1 1 0;
    min-height: 46px;
    padding: 0 12px;
    border: 0;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
}
.atmd-cart-actions .atmd-cart-btn + .atmd-cart-btn {
    margin-left: 10px;
}
.atmd-rtl .atmd-cart-actions .atmd-cart-btn + .atmd-cart-btn {
    margin-left: 0;
    margin-right: 10px;
}
.atmd-cart .atmd-cart-btn-primary {
    background: #e4572e;
    background: var(--atmd-hb-badge, #e4572e);
    color: #ffffff;
}
.atmd-cart .atmd-cart-btn-secondary {
    background: #eef2f6;
    color: #0b2a4a;
    color: var(--atmd-hb-color, #0b2a4a);
}
.atmd-cart-empty .atmd-cart-btn {
    display: inline-flex;
    width: auto;
    padding: 0 24px;
}
@media (prefers-reduced-motion: reduce) {
    .atmd-cart-overlay,
    .atmd-cart-panel,
    .atmd-cart-gauge-fill {
        transition: none !important;
    }
}

/* ---------- couleurs (remplacent le CSS dynamique du Mega Menu) ---------- */
.atmd-root .atmd-item.is-active,
.atmd-root .atmd-item.is-active-path,
.atmd-root .atmd-viewall,
.atmd-root .atmd-section-link,
.atmd-root .atmd-shortcut .atmd-ico,
.atmd-root .atmd-sr-price,
.atmd-sheet .atmd-viewall,
.atmd-hbar .atmd-viewall,
.atmd-sheet .atmd-sr-price,
.atmd-hbar .atmd-sr-price {
    color: #0a5ea8;
    color: var(--atmd-accent, #0a5ea8);
}
.atmd-cart .atmd-cart-gauge-fill { background-color: var(--atmd-hb-badge, #e4572e); }

/* =====================================================================
   v5.3.0 : mode ordinateur (liste dynamique par etapes sous le menu)
   ===================================================================== */
html.atmd-desk-on #adtm_menu ul#menu > li.li-niveau1 div.adtm_sub { display: none !important; }
html.atmd-desk-on #adtm_menu ul#menu > li.li-niveau1.sub > a .advtm_menu_span:after,
html.atmd-desk-on #adtm_menu ul#menu > li.li-niveau1.sub > .a-niveau1 .advtm_menu_span:after {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    margin: 0 0 3px 8px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    opacity: .7;
}
.atmd-desk-btn-li { display: none; }
html.atmd-desk-on #adtm_menu ul#menu > li.atmd-desk-btn-li { display: block; }
.atmd-desk-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    height: 100%;
    min-height: 44px;
    padding: 0 18px;
    border: 0;
    background: var(--atmd-head-bg, #0b2a4a);
    color: var(--atmd-head-color, #ffffff);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}
.atmd-desk-btn-ico, .atmd-desk-btn-ico:before, .atmd-desk-btn-ico:after {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
}
.atmd-desk-btn-ico { position: relative; }
.atmd-desk-btn-ico:before, .atmd-desk-btn-ico:after { content: ""; position: absolute; left: 0; }
.atmd-desk-btn-ico:before { top: -6px; }
.atmd-desk-btn-ico:after { top: 6px; }

.atmd-root.atmd-desk .atmd-overlay { background: rgba(0, 0, 0, .18); }
.atmd-root.atmd-desk .atmd-drawer {
    position: absolute;
    right: auto;
    bottom: auto;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 14px 32px rgba(0, 0, 0, .22);
    transform: translateY(-8px);
    opacity: 0;
    transition: opacity .18s ease, transform .18s ease;
}
.atmd-root.atmd-desk.is-open .atmd-drawer { transform: none; opacity: 1; }
.atmd-root.atmd-desk .atmd-header { padding-top: 0; min-height: 50px; }
.atmd-root.atmd-desk .atmd-search-wrap,
.atmd-root.atmd-desk .atmd-shortcuts { display: none; }
.atmd-root.atmd-desk .atmd-list:not(.atmd-tiles) {
    column-width: 260px;
    column-gap: 0;
}
.atmd-root.atmd-desk .atmd-list:not(.atmd-tiles) > li { break-inside: avoid; }
.atmd-root.atmd-desk .atmd-list:not(.atmd-tiles) > li.atmd-li-back,
.atmd-root.atmd-desk .atmd-list:not(.atmd-tiles) > li:first-child .atmd-viewall { column-span: all; }
@media (hover: hover) {
    .atmd-root.atmd-desk .atmd-item:hover { background: #f2f6fa; }
}

/* ---------- vignettes (entrees avec images) ---------- */
.atmd-thumb {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    margin-right: 12px;
    border-radius: 6px;
    background: #f4f6f8;
    overflow: hidden;
}
.atmd-rtl .atmd-thumb { margin-right: 0; margin-left: 12px; }
.atmd-thumb img { display: block; width: 100%; height: 100%; object-fit: contain; }
.atmd-list.atmd-tiles {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
    padding: 12px;
}
.atmd-list.atmd-tiles > li { min-width: 0; }
.atmd-list.atmd-tiles > li.atmd-li-back,
.atmd-list.atmd-tiles > li:has(> .atmd-viewall) { grid-column: 1 / -1; }
.atmd-list.atmd-tiles .atmd-item {
    flex-direction: column;
    align-items: stretch;
    height: 100%;
    min-height: 0;
    padding: 8px;
    border: 1px solid #e6e9ed;
    border-radius: 8px;
    text-align: center;
}
.atmd-list.atmd-tiles .atmd-item.atmd-viewall,
.atmd-list.atmd-tiles .atmd-backrow { flex-direction: row; text-align: left; border-radius: 6px; }
.atmd-list.atmd-tiles .atmd-thumb {
    flex: none;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    margin: 0 0 8px;
    background: #fff;
}
.atmd-list.atmd-tiles .atmd-label { font-size: 14px; font-weight: 600; }
.atmd-list.atmd-tiles .atmd-chev { display: none; }
.atmd-list.atmd-tiles .atmd-item-visual .atmd-thumb { margin: 0; aspect-ratio: auto; height: 100%; min-height: 100px; }
.atmd-list.atmd-tiles .atmd-item-visual .atmd-label { display: none; }
@media (max-width: 480px) {
    .atmd-list.atmd-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
