/* =======================================================================
   MAXDEAL — HEADER PREMIUM (2026-09, branche feat/header-megamenu)
   -----------------------------------------------------------------------
   Feuille du header, de la recherche et du méga menu, chargée sur toutes
   les pages APRÈS le bundle du thème (custom.css inclus) par head.tpl.
   Elle ne réécrit aucune règle de custom.css : les nouvelles sections CE
   portent des classes .mx-header-* que custom.css ne cible pas, et les
   quelques règles globales de custom.css qui restent actives
   (header#header en position relative, recherche AJAX) sont surchargées ici.
   Jetons : variables --md-* de custom.css, police Inter héritée.
   Breakpoints : ≥ 1200 desktop · 768–1199 tablette · < 768 mobile.
   ======================================================================= */

/* ===== 0. JETONS ET CONTENEUR ===== */

#header {
  --mxh-h-topbar: 34px;
  --mxh-h-main: 88px;
  --mxh-h-nav: 52px;
  --mxh-h-compact: 64px;
  --mxh-bleu-clair: #EEF2FB;
  --mxh-texte-2: #69738D;
  --mxh-bord-2: #E6EAF3;
  --mxh-ombre: 0 10px 30px rgba(23, 43, 102, .14);
  --mxh-transition: .18s ease;
  font-family: "Inter", sans-serif;
  color: var(--md-marine);
  background: #fff;
}

#header .mx-header-topbar.elementor-section,
#header .mx-header-main.elementor-section,
#header .mx-header-nav.elementor-section {
  position: relative;
  width: 100%;
}

#header .mx-header-topbar > .elementor-container,
#header .mx-header-main > .elementor-container,
#header .mx-header-nav > .elementor-container {
  max-width: 1180px !important;
  margin: 0 auto;
  padding: 0 20px;
}

#header .mx-header-main .elementor-row,
#header .mx-header-topbar .elementor-row,
#header .mx-header-nav .elementor-row {
  align-items: center;
}

#header .mx-header-main .elementor-column-wrap,
#header .mx-header-topbar .elementor-column-wrap,
#header .mx-header-nav .elementor-column-wrap {
  padding: 0 !important;
}

#header .elementor-widget:not(:last-child) {
  margin-bottom: 0;
}

/* Icônes SVG inline (header, tiroir et recherche plein écran, hors #header) */
.mx-ico {
  width: 1em;
  height: 1em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: 0 0 auto;
}

/* Focus clavier visible partout dans le header */
#header a:focus-visible,
#header button:focus-visible,
#header input:focus-visible {
  outline: 3px solid rgba(33, 64, 154, .35);
  outline-offset: 2px;
}

/* ===== 1. TOPBAR (.mx-header-topbar) ===== */

#header .mx-header-topbar.elementor-section {
  background: var(--md-marine) !important;
  color: #C9D4F2;
  min-height: var(--mxh-h-topbar);
}

#header .mx-header-topbar__list .elementor-icon-list-items {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 28px;
  margin: 0;
  padding: 0;
  min-height: var(--mxh-h-topbar);
  align-items: center;
}

#header .mx-header-topbar__list .elementor-icon-list-item {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  margin: 0 !important;
  padding: 0 !important;
  color: #C9D4F2;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.2;
}

#header .mx-header-topbar__list .elementor-icon-list-item::after {
  display: none !important;
}

#header .mx-header-topbar__list .elementor-icon-list-icon {
  width: auto !important;
  color: var(--md-vert) !important;
  font-size: 12px !important;
}

#header .mx-header-topbar__list .elementor-icon-list-icon i,
#header .mx-header-topbar__list .elementor-icon-list-icon svg {
  color: var(--md-vert) !important;
  fill: var(--md-vert) !important;
  width: 12px;
  height: 12px;
}

#header .mx-header-topbar__list .elementor-icon-list-text,
#header .mx-header-topbar__list a {
  padding: 0 !important;
  color: #C9D4F2 !important;
  text-decoration: none;
}

#header .mx-header-topbar__list a:hover .elementor-icon-list-text {
  color: #fff !important;
}

/* ===== 2. LIGNE PRINCIPALE (.mx-header-main) ===== */

#header .mx-header-main.elementor-section {
  background: #fff !important;
  border-bottom: 1px solid #EEF1F7;
  min-height: var(--mxh-h-main);
  z-index: 3;
}

#header .mx-header-main > .elementor-container > .elementor-row {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 18px;
  min-height: var(--mxh-h-main);
}

#header .mx-header-col {
  display: flex;
  align-items: center;
}

#header .mx-header-col > .elementor-column-wrap,
#header .mx-header-col .elementor-widget-wrap {
  width: 100%;
}

#header .mx-header-col--tools {
  display: none; /* burger et loupe : tablette et mobile seulement */
  width: auto !important;
  flex: 0 0 auto;
}

#header .mx-header-col--logo {
  width: auto !important;
  flex: 0 0 auto;
}

#header .mx-header-col--search {
  flex: 1 1 auto;
  width: auto !important;
  min-width: 0;
}

#header .mx-header-col--account,
#header .mx-header-col--cart {
  width: auto !important;
  flex: 0 0 auto;
}

/* Logo : boîte réservée (pas de CLS), ratio conservé */
#header .mx-header-logo .elementor-widget-container,
#header .mx-header-logo .elementor-image {
  display: block;
  line-height: 0;
}

#header .mx-header-logo a {
  display: inline-block;
}

#header .mx-header-logo img {
  display: block;
  width: 190px !important;
  max-width: 190px !important;
  height: 76px !important;
  object-fit: contain;
  object-position: left center;
}

/* Recherche (widget CE existant, ré-habillé ; remplacé en phase 3) */
#header .mx-search-legacy .elementor-search__container,
#header .mx-search-legacy .elementor-search {
  width: 100%;
}

#header .mx-search-legacy .elementor-search__input,
#header .mx-search-legacy input[type="search"],
#header .mx-search-legacy input[type="text"] {
  height: 50px !important;
  min-width: 0 !important;
  padding: 0 18px !important;
  background: #fff !important;
  border: 1px solid #D8DFED !important;
  border-right: 0 !important;
  border-radius: 10px 0 0 10px !important;
  color: var(--md-marine);
  font-size: 15px;
  box-shadow: none !important;
  transition: border-color var(--mxh-transition), box-shadow var(--mxh-transition);
}

#header .mx-search-legacy .elementor-search__input:hover {
  border-color: #B8C6E8 !important;
}

#header .mx-search-legacy .elementor-search__input:focus {
  border-color: var(--md-bleu) !important;
  box-shadow: 0 0 0 3px rgba(33, 64, 154, .10) !important;
  outline: 0;
}

#header .mx-search-legacy .elementor-search__submit,
#header .mx-search-legacy button {
  height: 50px !important;
  padding: 0 22px !important;
  border-radius: 0 10px 10px 0 !important;
  font-weight: 700 !important;
}

/* Compte (widget CE sign-in, custom_css de référence conservé) */
#header .mx-account .elementor-nav > li > .elementor-item,
#header .mx-account #md-btn-compte {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 10px 14px !important;
  border: 1px solid var(--md-bord) !important;
  border-radius: 10px !important;
  color: var(--md-bleu) !important;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  transition: background var(--mxh-transition), border-color var(--mxh-transition), box-shadow var(--mxh-transition);
}

#header .mx-account .elementor-nav > li > .elementor-item:hover {
  background: var(--mxh-bleu-clair) !important;
  border-color: #B8C6E8 !important;
  box-shadow: 0 5px 16px rgba(23, 43, 102, .10);
}

/* Panier (widget CE shopping-cart) */
#header .mx-cart .elementor-cart__toggle .elementor-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 10px 14px !important;
  background: #fff !important;
  border: 1px solid var(--md-bord) !important;
  border-radius: 10px !important;
  color: var(--md-bleu) !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  white-space: nowrap;
  transition: background var(--mxh-transition), border-color var(--mxh-transition), box-shadow var(--mxh-transition);
}

#header .mx-cart .elementor-cart__toggle .elementor-button:hover {
  background: var(--mxh-bleu-clair) !important;
  border-color: #B8C6E8 !important;
  box-shadow: 0 5px 16px rgba(23, 43, 102, .10);
}

#header .mx-cart .elementor-button-icon {
  position: relative;
  width: 24px;
  margin-right: 6px;
  font-size: 18px;
  text-align: center;
}

/* ===== 3. BARRE DE NAVIGATION (.mx-header-nav) ===== */

#header .mx-header-nav.elementor-section {
  background: linear-gradient(180deg, #2B52BC 0%, #21409A 100%) !important;
  box-shadow: 0 5px 16px rgba(23, 43, 102, .12);
  min-height: var(--mxh-h-nav);
  z-index: 2;
}

#header .mx-header-nav .elementor-widget-container {
  overflow: visible !important;
}

.mx-megamenu {
  position: static;
}

.mx-megamenu__bar {
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  min-height: var(--mxh-h-nav);
  align-items: stretch;
}

.mx-megamenu__item {
  position: static;
  display: flex;
  margin: 0;
}

.mx-megamenu__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: var(--mxh-h-nav);
  padding: 0 6px;
  color: #fff !important;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: -.01em;
  line-height: 1.2;
  white-space: nowrap;
  text-decoration: none !important;
  border-bottom: 3px solid transparent;
  transition: background var(--mxh-transition), border-color var(--mxh-transition);
}

.mx-megamenu__link .mx-ico {
  display: none; /* 8 entrées longues : le chevron n'entre pas dans 1180 px ; il reste dans le tiroir */
}

.mx-megamenu__item:hover > .mx-megamenu__link,
.mx-megamenu__link:focus-visible,
.mx-megamenu__item.is-open > .mx-megamenu__link {
  background: rgba(255, 255, 255, .10);
  border-bottom-color: var(--md-vert);
}

.mx-megamenu__item.is-open > .mx-megamenu__link .mx-ico {
  transform: rotate(-90deg);
}

.mx-megamenu__item.is-current > .mx-megamenu__link {
  border-bottom-color: var(--md-vert);
}

.mx-megamenu__empty {
  padding: 12px;
  color: #fff;
}

/* ===== 4. PANNEAUX DU MÉGA MENU (desktop) ===== */

.mx-megamenu__panel {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  z-index: 50;
  max-height: min(70vh, 640px);
  overflow-y: auto;
  background: #fff;
  border-top: 1px solid #E3E8F4;
  box-shadow: 0 24px 48px rgba(23, 43, 102, .18);
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity var(--mxh-transition), transform var(--mxh-transition);
}

.mx-megamenu__panel[hidden] {
  display: block; /* animé en opacité, retiré des lecteurs via pointer-events + aria */
  visibility: hidden;
}

.mx-megamenu__item.is-open > .mx-megamenu__panel {
  opacity: 1;
  transform: none;
  pointer-events: auto;
  visibility: visible;
}

.mx-megamenu__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  align-items: start;
  gap: 32px;
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 26px 24px 28px;
}

.mx-megamenu__cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: 24px 28px;
}

.mx-megamenu__cols--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.mx-megamenu__cols--5,
.mx-megamenu__cols--6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.mx-megamenu__col-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 10px;
  color: var(--md-marine) !important;
  font-size: 15px;
  font-weight: 750;
  line-height: 1.25;
  text-decoration: none !important;
}

.mx-megamenu__col-title img {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: cover;
  background: #F7F9FD;
}

.mx-megamenu__col-title small {
  flex: 0 0 auto;
  padding: 2px 7px;
  border-radius: 20px;
  background: #F1F4FA;
  color: var(--mxh-texte-2);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.mx-megamenu__col-title > span {
  min-width: 0;
}

a.mx-megamenu__col-title:hover span {
  color: var(--md-bleu);
}

.mx-megamenu__links {
  margin: 0;
  padding: 0;
  list-style: none;
}

.mx-megamenu__links li {
  margin: 0;
}

.mx-megamenu__links a {
  display: block;
  padding: 5px 0;
  color: #3F4961 !important;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
  text-decoration: none !important;
  transition: color var(--mxh-transition), padding-left var(--mxh-transition);
}

.mx-megamenu__links a:hover,
.mx-megamenu__links a:focus-visible {
  color: var(--md-bleu) !important;
  padding-left: 4px;
}

.mx-megamenu__links .mx-megamenu__extra {
  display: none;
}

.mx-megamenu__more {
  display: inline-flex !important;
  align-items: center;
  gap: 4px;
  margin-top: 4px;
  color: var(--md-bleu) !important;
  font-weight: 700 !important;
}

.mx-megamenu__more .mx-ico {
  width: 12px;
  height: 12px;
}

.mx-megamenu__col--rest .mx-megamenu__col-title {
  color: var(--mxh-texte-2) !important;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

/* Mise en avant à droite */
.mx-megamenu__promo {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--mxh-bleu-clair);
  border-radius: 12px;
}

.mx-megamenu__promo--plain {
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: #F7F9FD;
}

.mx-megamenu__promo-img {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.mx-megamenu__promo-img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s ease;
}

.mx-megamenu__promo:hover .mx-megamenu__promo-img img {
  transform: scale(1.04);
}

.mx-megamenu__promo-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 16px 18px 18px;
}

.mx-megamenu__promo-eyebrow {
  color: var(--md-marine); /* 12,6:1 ; le vert charte ne passe pas en 11 px */
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.mx-megamenu__promo-title {
  color: var(--md-marine);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.2;
}

.mx-megamenu__promo-count {
  color: var(--mxh-texte-2);
  font-size: 13px;
  font-weight: 500;
}

.mx-megamenu__promo-count b {
  color: var(--md-rouge-d);
  font-size: 16px;
  font-weight: 800;
}

.mx-megamenu__promo-body p {
  margin: 0;
  color: #4A5578;
  font-size: 13px;
  line-height: 1.5;
}

.mx-megamenu__promo .mx-btn {
  margin-top: 6px;
}

/* Boutons (mêmes variantes que la home) */
#header .mx-btn,
.mx-drawer .mx-btn,
.mx-megamenu .mx-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none !important;
  transition: background var(--mxh-transition), color var(--mxh-transition), box-shadow var(--mxh-transition);
}

.mx-btn--rouge {
  background: var(--md-rouge);
  color: #fff !important;
}

.mx-btn--rouge:hover {
  background: var(--md-rouge-d);
  box-shadow: 0 6px 16px rgba(238, 49, 36, .3);
}

.mx-btn--contour {
  background: #fff;
  color: var(--md-bleu) !important;
  border: 2px solid var(--md-bleu);
  border-radius: 7px;
}

.mx-btn--contour:hover {
  background: var(--md-bleu);
  color: #fff !important;
}

/* ===== 5. OUTILS (burger, loupe) ===== */

.mx-header-tools {
  display: flex;
  align-items: center;
  gap: 6px;
}

.mx-header-burger,
.mx-header-search-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 44px;
  min-height: 44px;
  padding: 0 8px;
  background: transparent;
  border: 0;
  border-radius: 10px;
  color: var(--md-marine);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--mxh-transition);
}

.mx-header-burger:hover,
.mx-header-search-toggle:hover {
  background: var(--mxh-bleu-clair);
}

.mx-header-burger__bars {
  display: inline-flex;
  flex-direction: column;
  gap: 5px;
  width: 22px;
}

.mx-header-burger__bars i {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform var(--mxh-transition), opacity var(--mxh-transition);
}

.mx-header-burger[aria-expanded="true"] .mx-header-burger__bars i:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mx-header-burger[aria-expanded="true"] .mx-header-burger__bars i:nth-child(2) { opacity: 0; }
.mx-header-burger[aria-expanded="true"] .mx-header-burger__bars i:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mx-header-burger__label {
  display: none;
}

.mx-header-search-toggle .mx-ico {
  width: 22px;
  height: 22px;
}

/* ===== 6. TIROIR DRILL-DOWN (.mx-drawer) ===== */

.mx-drawer {
  position: fixed;
  inset: 0;
  z-index: 100100;
}

.mx-drawer[hidden] {
  display: none;
}

.mx-drawer__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(16, 30, 74, .55);
  opacity: 0;
  transition: opacity .2s ease;
}

.mx-drawer.is-open .mx-drawer__backdrop {
  opacity: 1;
}

.mx-drawer__dialog {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: min(100%, 420px);
  overflow: hidden;
  background: #fff;
  box-shadow: 0 0 40px rgba(23, 43, 102, .3);
  transform: translateX(-100%);
  transition: transform .22s ease;
}

.mx-drawer.is-open .mx-drawer__dialog {
  transform: none;
}

.mx-drawer__track {
  position: relative;
  height: 100%;
}

.mx-drawer__screen {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: #fff;
  transform: translateX(100%);
  transition: transform .22s ease;
}

.mx-drawer__screen.is-active {
  transform: none;
}

.mx-drawer__screen.is-left {
  transform: translateX(-30%);
}

.mx-drawer__screen[hidden] {
  display: none;
}

.mx-drawer__head {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 60px;
  padding: 8px 8px 8px 16px;
  background: #fff;
  border-bottom: 1px solid #EEF1F7;
}

.mx-drawer__title {
  color: var(--md-marine);
  font-size: 17px;
  font-weight: 800;
}

.mx-drawer__back,
.mx-drawer__close {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 44px;
  min-height: 44px;
  padding: 0 10px;
  background: transparent;
  border: 0;
  border-radius: 10px;
  color: var(--md-bleu);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.mx-drawer__back:hover,
.mx-drawer__close:hover {
  background: var(--mxh-bleu-clair);
}

.mx-drawer__close .mx-ico,
.mx-drawer__back .mx-ico {
  width: 20px;
  height: 20px;
}

.mx-drawer__screen-title {
  margin: 14px 16px 4px;
  color: var(--md-marine);
  font-size: 20px;
  font-weight: 850;
  letter-spacing: -.02em;
}

.mx-drawer__list {
  margin: 4px 0 0;
  padding: 0 8px;
  list-style: none;
}

.mx-drawer__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 48px;
  padding: 12px 10px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid #F1F4FA;
  border-radius: 0;
  color: var(--md-marine) !important;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  text-align: left;
  text-decoration: none !important;
  cursor: pointer;
}

.mx-drawer__row:hover,
.mx-drawer__row:focus-visible {
  background: var(--mxh-bleu-clair);
  border-radius: 8px;
}

.mx-drawer__row .mx-ico {
  width: 16px;
  height: 16px;
  color: #A7B0C5;
}

.mx-drawer__row--all {
  color: var(--md-bleu) !important;
  font-weight: 750;
}

.mx-drawer__foot {
  margin-top: auto;
  padding: 14px 16px 20px;
  background: #F7F9FD;
  border-top: 1px solid #EEF1F7;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mx-drawer__foot-link {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 6px 4px;
  color: var(--md-marine) !important;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none !important;
}

.mx-drawer__foot-link--user::before,
.mx-drawer__foot-link--orders::before,
.mx-drawer__foot-link--logout::before,
.mx-drawer__foot-link--phone::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--md-vert);
  flex: 0 0 auto;
}

.mx-drawer__foot-link--phone {
  color: var(--md-bleu) !important;
  font-weight: 750;
}

body.mx-scroll-lock {
  overflow: hidden !important;
  padding-right: var(--mx-sbw, 0px) !important; /* compense la barre de défilement (pas de décalage) */
}

body.mx-scroll-lock #header.is-compact .mx-header-main.elementor-section {
  right: var(--mx-sbw, 0px);
}

/* ===== 7. HEADER COMPACT AU SCROLL (desktop) ===== */

#header.is-compact {
  /* la hauteur d'origine est fixée en inline par le JS pour éviter tout saut */
}

#header.is-compact .mx-header-main.elementor-section {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  min-height: var(--mxh-h-compact);
  border-bottom: 1px solid #E3E8F4;
  box-shadow: 0 8px 24px rgba(23, 43, 102, .12);
  animation: mx-header-drop .2s ease;
}

#header.is-compact .mx-header-main > .elementor-container > .elementor-row {
  min-height: var(--mxh-h-compact);
  gap: 14px;
}

#header.is-compact .mx-header-logo img {
  width: 140px !important;
  height: 52px !important;
}

#header.is-compact .mx-header-nav.elementor-section {
  margin-top: var(--mxh-h-main); /* la ligne principale sort du flux : la navigation garde sa place (aucun décalage) */
  visibility: hidden;
}

#header.is-compact .mx-header-col--tools {
  display: flex;
}

#header.is-compact .mx-header-topbar.elementor-section {
  visibility: hidden; /* garde la hauteur réservée, masque le bandeau sous la ligne fixe */
}

#header.is-compact .mx-header-burger__label {
  display: inline;
}

#header.is-compact .mx-header-search-toggle {
  display: none;
}

@keyframes mx-header-drop {
  from { transform: translateY(-100%); }
  to { transform: none; }
}

/* ===== 8. TABLETTE 768–1199 ===== */

@media (max-width: 1199px) {
  #header {
    --mxh-h-main: 68px;
  }

  #header .mx-header-nav.elementor-section {
    display: none; /* navigation dans le tiroir */
  }

  #header .mx-header-col--tools {
    display: flex;
  }

  #header .mx-header-main > .elementor-container > .elementor-row {
    gap: 10px;
  }

  #header .mx-header-logo img {
    width: 150px !important;
    height: 60px !important;
  }

  #header .mx-search-legacy .elementor-search__input {
    height: 44px !important;
    padding: 0 14px !important;
  }

  #header .mx-search-legacy .elementor-search__submit,
  #header .mx-search-legacy button {
    height: 44px !important;
    padding: 0 14px !important;
  }

  #header .mx-account .elementor-nav > li > .elementor-item,
  #header .mx-cart .elementor-cart__toggle .elementor-button {
    min-height: 42px;
    padding: 8px 12px !important;
  }

  #header .mx-header-topbar__list .elementor-icon-list-items {
    gap: 4px 20px;
  }

  #header .mx-header-topbar__list .elementor-icon-list-item {
    font-size: 12px;
  }
}

@media (max-width: 899px) and (min-width: 768px) {
  #header .mx-header-col--search {
    display: none; /* recherche via la loupe (plein écran) */
  }
}

@media (min-width: 900px) and (max-width: 1199px) {
  #header .mx-header-search-toggle {
    display: none;
  }
}

/* ===== 9. MOBILE < 768 ===== */

@media (max-width: 767px) {
  #header {
    --mxh-h-topbar: 30px;
    --mxh-h-main: 60px;
  }

  #header .mx-header-topbar > .elementor-container {
    padding: 0 12px;
  }

  #header .mx-header-topbar__list .elementor-icon-list-items {
    display: block;
    position: relative;
    height: var(--mxh-h-topbar);
    overflow: hidden;
  }

  #header .mx-header-topbar__list .elementor-icon-list-item {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    width: 100%;
    justify-content: center;
    height: var(--mxh-h-topbar);
    font-size: 12px;
    opacity: 0;
    transition: opacity .4s ease;
  }

  #header .mx-header-topbar__list .elementor-icon-list-item:first-child,
  #header .mx-header-topbar__list .elementor-icon-list-item.is-shown {
    opacity: 1;
  }

  #header .mx-header-topbar__list .elementor-icon-list-item.is-hidden {
    opacity: 0;
  }

  #header .mx-header-main > .elementor-container {
    padding: 0 8px;
  }

  #header .mx-header-main > .elementor-container > .elementor-row {
    position: relative;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 0;
    min-height: var(--mxh-h-main);
  }

  #header .mx-header-col--tools {
    grid-column: 1;
    justify-self: start;
  }

  #header .mx-header-col--logo {
    grid-column: 2;
    justify-self: center; /* logo centré dans l'écran, colonnes latérales symétriques */
  }

  #header .mx-header-col--search {
    display: none;
  }

  #header .mx-header-col--account {
    display: none; /* compte en bas du tiroir */
  }

  #header .mx-header-col--cart {
    grid-column: 3;
    justify-self: end;
  }

  #header .mx-header-tools {
    gap: 0;
  }

  #header .mx-header-logo img {
    width: 128px !important;
    height: 52px !important;
    object-position: center;
  }

  #header .mx-cart .elementor-cart__toggle .elementor-button {
    min-width: 44px;
    min-height: 44px;
    padding: 0 10px !important;
    border: 0 !important;
    background: transparent !important;
  }

  #header .mx-cart .elementor-cart__toggle .elementor-button .elementor-button-text {
    display: none;
  }

  #header .mx-cart .elementor-button-icon {
    font-size: 22px;
  }

  .mx-drawer__dialog {
    width: 100%;
  }

  #header {
    --mxh-h-compact: 60px;
  }

  #header.is-compact .mx-header-logo img {
    width: 120px !important;
    height: 48px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  #header *,
  .mx-drawer *,
  .mx-megamenu * {
    transition: none !important;
    animation: none !important;
  }
}

/* ===== 10. RECHERCHE PLEIN ÉCRAN (tablette / mobile) ===== */

.mx-search-overlay {
  position: fixed;
  inset: 0;
  z-index: 100200;
  overflow-y: auto;
  background: #fff;
}

.mx-search-overlay[hidden] {
  display: none;
}

.mx-search-overlay__bar {
  position: sticky;
  top: 0;
  display: flex;
  align-items: flex-start;
  gap: 6px;
  padding: 8px 10px 8px 4px;
  background: #fff;
  border-bottom: 1px solid #EEF1F7;
}

.mx-search-overlay__back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 44px;
  height: 46px;
  background: transparent;
  border: 0;
  border-radius: 10px;
  color: var(--md-marine);
  cursor: pointer;
}

.mx-search-overlay__back .mx-ico {
  width: 22px;
  height: 22px;
}

.mx-search-overlay__slot {
  flex: 1 1 auto;
  min-width: 0;
}

.mx-search-overlay .elementor-widget-ajax-search .elementor-search__input,
.mx-search-overlay .elementor-widget-ajax-search input[type="search"] {
  height: 46px !important;
  border: 1px solid #D8DFED !important;
  border-radius: 10px 0 0 10px !important;
}

.mx-search-overlay .elementor-widget-ajax-search .elementor-search__submit,
.mx-search-overlay .elementor-widget-ajax-search button {
  height: 46px !important;
  padding: 0 16px !important;
  border-radius: 0 10px 10px 0 !important;
}

.mx-search-overlay .elementor-search__products {
  position: static !important;
  width: 100% !important;
  max-width: none !important;
  max-height: none !important;
  box-shadow: none !important;
}

/* ===== 11. TIROIR : bannière éditoriale de fin de niveau ===== */

.mx-drawer__promo-li {
  padding: 14px 0 6px;
}

.mx-drawer__promo {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  background: #EEF2FB;
  border-radius: 12px;
  color: var(--md-marine) !important;
  text-decoration: none !important;
}

.mx-drawer__promo img {
  flex: 0 0 96px;
  width: 96px;
  height: 60px;
  border-radius: 8px;
  object-fit: cover;
}

.mx-drawer__promo-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.mx-drawer__promo-body strong {
  font-size: 14px;
  font-weight: 750;
  line-height: 1.25;
}

.mx-drawer__promo-body small {
  color: var(--mxh-texte-2);
  font-size: 12px;
}

.mx-drawer__promo-body em {
  color: var(--md-bleu);
  font-size: 13px;
  font-style: normal;
  font-weight: 700;
}

/* ===== 12. RECHERCHE MAXDEAL (.mx-search) ===== */

.mx-search {
  position: relative;
  width: 100%;
}

.mx-search__form {
  display: flex;
  align-items: stretch;
  width: 100%;
  margin: 0;
}

.mx-search__label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.mx-search__field {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  min-width: 0;
  background: #fff;
  border: 1px solid #D8DFED;
  border-right: 0;
  border-radius: 10px 0 0 10px;
  transition: border-color var(--mxh-transition), box-shadow var(--mxh-transition);
}

.mx-search__field:hover {
  border-color: #B8C6E8;
}

.mx-search:focus-within .mx-search__field {
  border-color: var(--md-bleu);
  box-shadow: 0 0 0 3px rgba(33, 64, 154, .10);
}

.mx-search__icon {
  position: absolute;
  left: 16px;
  width: 20px;
  height: 20px;
  color: #8A92A8;
  pointer-events: none;
}

.mx-search__input {
  width: 100%;
  height: 50px;
  margin: 0;
  padding: 0 44px 0 46px !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 10px 0 0 10px;
  color: var(--md-marine);
  font-family: inherit;
  font-size: 15px;
  box-shadow: none !important;
  outline: 0 !important;
  -webkit-appearance: none;
  appearance: none;
}

.mx-search__input::-webkit-search-cancel-button,
.mx-search__input::-webkit-search-decoration {
  -webkit-appearance: none;
}

.mx-search__input::placeholder {
  color: #8A92A8;
  opacity: 1;
}

.mx-search__clear {
  position: absolute;
  right: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: transparent;
  border: 0;
  border-radius: 50%;
  color: #8A92A8;
  cursor: pointer;
}

.mx-search__clear:hover {
  background: #EEF2FB;
  color: var(--md-marine);
}

.mx-search__clear .mx-ico {
  width: 16px;
  height: 16px;
}

.mx-search__loader {
  position: absolute;
  right: 44px;
  width: 16px;
  height: 16px;
  border: 2px solid #E3E8F4;
  border-top-color: var(--md-bleu);
  border-radius: 50%;
  opacity: 0;
  animation: mx-spin .8s linear infinite;
}

.mx-search.is-loading .mx-search__loader {
  opacity: 1;
}

@keyframes mx-spin {
  to { transform: rotate(360deg); }
}

.mx-search__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  height: 50px;
  padding: 0 22px;
  background: var(--md-vert);
  border: 0;
  border-radius: 0 10px 10px 0;
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--mxh-transition);
}

.mx-search__submit:hover {
  background: var(--md-vert-d);
}

.mx-search__submit--icon {
  padding: 0 16px;
}

.mx-search__submit .mx-ico {
  width: 20px;
  height: 20px;
}

/* Panneau de suggestions */
.mx-search__panel {
  position: absolute;
  left: 0;
  right: auto;
  width: min(880px, calc(100vw - 40px));
  top: calc(100% + 8px);
  z-index: 100060;
  max-height: min(72vh, 620px);
  overflow-y: auto;
  background: #fff;
  border: 1px solid #E3E8F4;
  border-radius: 12px;
  box-shadow: 0 18px 42px rgba(23, 43, 102, .20);
}

.mx-search__panel[hidden] {
  display: none;
}

.mx-search__grid {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
}

.mx-search__grid--single {
  grid-template-columns: minmax(0, 1fr);
}

.mx-search__side {
  padding: 16px 14px;
  background: #F7F9FD;
  border-right: 1px solid #EEF1F7;
}

.mx-search__main {
  padding: 14px 16px 6px;
}

.mx-search__panel h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
  color: var(--mxh-texte-2);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.mx-search__panel h3 span {
  padding: 1px 7px;
  border-radius: 20px;
  background: #EEF2FB;
  color: var(--md-bleu);
  font-size: 11px;
}

.mx-search__group + .mx-search__group {
  margin-top: 14px;
}

.mx-search__panel ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.mx-search__opt {
  display: block;
  border-radius: 8px;
  color: var(--md-marine) !important;
  text-decoration: none !important;
}

.mx-search__cat,
.mx-search__brand {
  padding: 8px 10px;
  font-size: 14px;
  font-weight: 600;
}

.mx-search__cat small,
.mx-search__brand small {
  color: var(--mxh-texte-2);
  font-size: 12px;
  font-weight: 500;
}

.mx-search__opt:hover,
.mx-search__opt.is-active {
  background: #EEF2FB;
}

.mx-search__products {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px 12px;
}

.mx-search__product {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 8px;
}

.mx-search__thumb {
  flex: 0 0 64px;
  width: 64px;
  height: 64px;
  overflow: hidden;
  background: #F7F9FD;
  border: 1px solid #EEF1F7;
  border-radius: 8px;
}

.mx-search__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.mx-search__body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.mx-search__name {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.3;
}

.mx-search__meta {
  overflow: hidden;
  color: var(--mxh-texte-2);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mx-search__price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px;
  font-size: 13px;
}

.mx-search__price b {
  color: var(--md-rouge-d);
  font-size: 14px;
  font-weight: 800;
}

.mx-search__price s {
  color: #8A92A8;
  font-size: 12px;
}

.mx-search__price em {
  padding: 1px 6px;
  border-radius: 4px;
  background: #FFE08A;
  color: #7A5322;
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
}

.mx-search__price i {
  color: var(--md-vert-d);
  font-size: 12px;
  font-style: normal;
  font-weight: 600;
}

.mx-search__empty {
  margin: 8px 0 12px;
  color: var(--mxh-texte-2);
  font-size: 14px;
}

.mx-search__all {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 0;
  padding: 13px;
  border-top: 1px solid #EEF1F7;
  border-radius: 0 0 12px 12px;
  color: var(--md-bleu) !important;
  font-size: 14px;
  font-weight: 700;
}

.mx-search__all span {
  color: var(--mxh-texte-2);
  font-weight: 500;
}

/* Recherche plein écran : panneau en flux, une colonne */
.mx-search-overlay .mx-search__panel {
  position: static;
  width: auto;
  max-height: none;
  margin-top: 10px;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.mx-search-overlay .mx-search__grid {
  grid-template-columns: minmax(0, 1fr);
}

.mx-search-overlay .mx-search__side {
  border-right: 0;
  border-bottom: 1px solid #EEF1F7;
}

.mx-search-overlay .mx-search__products {
  grid-template-columns: minmax(0, 1fr);
}

.mx-search-overlay .mx-search__input {
  height: 46px;
}

.mx-search-overlay .mx-search__submit {
  height: 46px;
  padding: 0 16px;
}

@media (max-width: 1199px) {
  .mx-search__input,
  .mx-search__submit {
    height: 44px;
  }

  .mx-search__submit {
    padding: 0 14px;
  }

  .mx-search__products {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 767px) {
  .mx-search__panel {
    max-height: none;
  }
}

/* ===== 13. COMPTE (menu déroulant) ET MINI-PANIER ===== */

#header .mx-account .elementor-nav > li > .elementor-item .elementor-item-icon,
#header .mx-account .elementor-nav > li > .elementor-item i {
  font-size: 17px;
}

#header .mx-account .elementor-nav--dropdown {
  min-width: 260px !important;
  margin-top: 8px !important;
  padding: 8px !important;
  background: #fff !important;
  border: 1px solid var(--md-bord) !important;
  border-radius: 12px !important;
  box-shadow: 0 14px 35px rgba(23, 43, 102, .20) !important;
}

#header .mx-account .elementor-nav--dropdown a {
  display: flex !important;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px 12px !important;
  border-radius: 8px;
  color: var(--md-marine) !important;
  font-size: 14px;
  font-weight: 600;
}

#header .mx-account .elementor-nav--dropdown a:hover,
#header .mx-account .elementor-nav--dropdown a:focus-visible {
  background: var(--mxh-bleu-clair) !important;
  color: var(--md-bleu) !important;
}

#header .mx-account .elementor-nav--dropdown .menu-item-logout a,
#header .mx-account .elementor-nav--dropdown li:last-child a {
  margin-top: 6px;
  border-top: 1px solid #EEF1F7;
  border-radius: 0 0 8px 8px;
}

/* Mini-panier CE (dialog) : mêmes rayons et boutons que la charte */
.elementor-cart__container.elementor-lightbox .elementor-cart__main {
  border-radius: 14px 0 0 14px;
  box-shadow: 0 18px 42px rgba(23, 43, 102, .25);
}

.elementor-cart__container .elementor-cart__title {
  color: var(--md-marine) !important;
  font-size: 18px !important;
  font-weight: 800 !important;
}

.elementor-cart__container .elementor-cart__footer-buttons .elementor-button {
  border-radius: 6px !important;
  font-weight: 700 !important;
}

.elementor-cart__container .elementor-cart__summary-value,
.elementor-cart__container .elementor-cart__summary-label {
  font-size: 14px;
}

.elementor-cart__container .elementor-cart__close-button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

/* Menu compte : ouverture au survol et au focus clavier (en plus du JS Creative Elements) */
#header .mx-account .menu-item-has-children:hover > .elementor-nav--dropdown,
#header .mx-account .menu-item-has-children:focus-within > .elementor-nav--dropdown {
  display: block !important;
}

#header .mx-account .menu-item-has-children > .elementor-nav--dropdown {
  position: absolute;
  right: 0;
  left: auto;
  top: 100%;
  z-index: 100045;
}

#header .mx-account .elementor-nav > li {
  position: relative;
}

/* Compteur du panier (CE le rend en ::before depuis data-counter) */
#header .mx-cart .elementor-button-icon[data-counter]::before {
  position: absolute;
  top: -9px;
  right: -9px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: var(--md-rouge) !important;
  color: #fff !important;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
  line-height: 18px;
  text-align: center;
  box-shadow: 0 0 0 2px #fff;
}

/* ===== tiroir : lien « Mes favoris » avec la même puce verte (2026-09-11) ===== */
.mx-drawer__foot-link--heart::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--md-vert);
  flex: 0 0 auto;
}

/* ===== BANNIÈRE COOKIES (module cookiesplus) à la charte — 2026-09-11 ===== */
#cookiesplus-modal { border-radius: 16px !important; box-shadow: 0 24px 64px rgba(23, 43, 102, 0.28) !important; padding: 22px 24px 18px !important; border: 0 !important; background: #fff !important; font-family: Inter, system-ui, sans-serif; }
#cookiesplus-modal .cookiesplus-close, #cookiesplus-modal .cookiesplus-close-and-reject { width: 32px; height: 32px; border-radius: 999px; background: #F0F3FA; border: 0; color: var(--md-marine); font-size: 18px; line-height: 32px; text-align: center; top: 12px; right: 12px; opacity: 1; }
#cookiesplus-modal .cookiesplus-close:hover, #cookiesplus-modal .cookiesplus-close-and-reject:hover { background: #E3E8F4; }
#cookiesplus-modal .cookiesplus-text { font-size: 14px; line-height: 1.55; color: #3A4467; }
#cookiesplus-modal .cookiesplus-text::before { content: "Vos cookies"; display: block; font-size: 17px; font-weight: 800; color: var(--md-marine); margin-bottom: 6px; }
#cookiesplus-modal .cookiesplus-btn { min-height: 46px; border-radius: 8px !important; font-weight: 700 !important; font-size: 14px; display: inline-flex; align-items: center; justify-content: center; width: 100%; box-shadow: none !important; text-transform: none !important; transition: background 0.15s, color 0.15s; }
#cookiesplus-modal .cookiesplus-btn.cookiesplus-accept { background: var(--md-vert) !important; color: #fff !important; border: 0 !important; }
#cookiesplus-modal .cookiesplus-btn.cookiesplus-accept:hover { background: var(--md-vert-d) !important; }
#cookiesplus-modal .cookiesplus-btn.cookiesplus-reject, #cookiesplus-modal .cookiesplus-btn.cookiesplus-accept-selected { background: #fff !important; color: var(--md-marine) !important; border: 1.5px solid #C9D2E6 !important; }
#cookiesplus-modal .cookiesplus-btn.cookiesplus-reject:hover, #cookiesplus-modal .cookiesplus-btn.cookiesplus-accept-selected:hover { border-color: var(--md-bleu) !important; color: var(--md-bleu) !important; }
#cookiesplus-modal .cookiesplus-btn.cookiesplus-more-information { background: transparent !important; color: var(--md-bleu) !important; border: 0 !important; text-decoration: underline; }
#cookiesplus-modal .cookiesplus-footer-actions a { color: #6B769A !important; font-size: 13px; font-weight: 600; }
#cookiesplus-modal .cookiesplus-finalities label, #cookiesplus-modal .cookiesplus-finalities .cookiesplus-finality-title { font-weight: 700; color: var(--md-marine); }
#cookiesplus-tab { left: 16px !important; right: auto !important; bottom: 16px !important; background: #fff !important; color: var(--md-marine) !important; border: 1px solid var(--md-bord) !important; border-radius: 999px !important; box-shadow: 0 6px 18px rgba(23, 43, 102, 0.16) !important; padding: 0 !important; font-family: Inter, system-ui, sans-serif; z-index: 1025 !important; }
#cookiesplus-tab > span { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px 9px 10px; cursor: pointer; font-size: 13px; font-weight: 700; }
#cookiesplus-tab > span::before { content: ""; width: 20px; height: 20px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235FA32E' stroke-width='2'%3E%3Cpath d='M12 2a10 10 0 1 0 10 10 4 4 0 0 1-4-4 4 4 0 0 1-4-4 3 3 0 0 1-2-2z'/%3E%3Ccircle cx='8' cy='10' r='1'/%3E%3Ccircle cx='12' cy='15' r='1'/%3E%3Ccircle cx='16' cy='13' r='1'/%3E%3C/svg%3E") center / 20px no-repeat; }
@media (max-width: 767px) {
  #cookiesplus-modal { left: 8px !important; right: 8px !important; bottom: 8px !important; width: auto !important; max-width: none !important; padding: 18px 16px 14px !important; }
  #cookiesplus-modal .cookiesplus-btn { min-height: 44px; margin-bottom: 8px; }
  #cookiesplus-tab { bottom: 12px !important; }
  #cookiesplus-tab .cookiesplus-tab-text { display: none; }
  #cookiesplus-tab > span { padding: 9px 10px; }
  body.mx-has-sticky-atc #cookiesplus-tab { bottom: 88px !important; }
}
@media (max-width: 767px) {
  /* le conteneur Bootstrap du module décale la bannière : on la recale sur toute la largeur */
  #cookiesplus-modal-container { left: 0 !important; right: 0 !important; width: 100% !important; max-width: none !important; margin: 0 !important; padding: 0 !important; transform: none !important; }
  #cookiesplus-modal { position: fixed !important; margin: 0 !important; }
}
@media (max-width: 767px) {
  #cookiesplus-modal { transform: none !important; top: auto !important; } /* le module centre avec translateX(-50 %) */
}

/* ===== 2026-09-14 — recherche instantanée : groupe « Pièces pour votre appareil » (module mhcompat) ===== */
.mx-search__group--compat h3 { color: var(--md-vert-d, #5FA32E); }
.mx-search__compat { display: flex !important; flex-direction: column; align-items: flex-start !important; gap: 1px; }
.mx-search__compat strong { font-weight: 700; color: var(--md-marine, #172B66); }
.mx-search__compat span { font-size: 12px; color: #6B769A; }
.mx-search__compat-all { color: var(--md-bleu, #21409A) !important; font-weight: 700; }

/* ===== 10. TOPBAR MOBILE : libellé sur une ligne (2026-09-14, chantier livraison) ===== */
@media (max-width: 767px) {
  #header .mx-header-topbar__list .elementor-icon-list-item .elementor-icon-list-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 11px;
  }
}

/* ===== 11. MENU COMPTE : pont invisible entre « Bonjour … » et sa liste (2026-09-24) =====
   Le sous-menu est décalé de 16 px sous le lien (top calc(100% + 8px) + margin-top 8px de Creative Elements).
   En traversant cet espace la souris quittait le <li>, le survol se terminait et la liste se refermait avant
   qu'on puisse cliquer. Le ::before prolonge la zone survolable jusqu'au lien, sans changer l'aspect. */
#header .mx-account .menu-item-has-children > .elementor-nav--dropdown::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 100%;
  height: 18px;
}
#header .mx-account .menu-item-has-children > .elementor-nav--dropdown:hover {
  display: block !important;
}
