/* APS – Méga menu (aperçu) : généré par /root/aps_menu/generate.php */
.aps-mm-wrapper {
  --mm-navy: #2E3192; --mm-navy-dk: #1f2270; --mm-red: #ED1C24; --mm-ink: #1a1c4a; --mm-muted: #585a78;
  --mm-line: #d9dbea; --mm-soft: #f3f4fa; --mm-field: #8a8db0;
  background: var(--mm-navy); position: relative; z-index: 40;
}
.aps-mm-wrapper .container-iqitmegamenu { padding-left: 0; padding-right: 0; }
.aps-mm { position: relative; font-family: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif; }
.aps-mm *, .aps-mm *::before, .aps-mm *::after { box-sizing: border-box; }
.aps-mm ul { list-style: none; margin: 0; padding: 0; }
.aps-mm p { margin: 0; }
.aps-mm a { text-decoration: none; }
.aps-mm-ico { flex: 0 0 auto; display: inline-block; vertical-align: middle; }

/* Barre */
.aps-mm-bar { display: flex; align-items: stretch; min-height: 54px; }
.aps-mm-tab { display: flex; position: static; }
.aps-mm-spacer { flex: 1 1 auto; }
.aps-mm-top {
  display: flex; align-items: center; gap: 8px; padding: 0 18px; color: #fff !important;
  font-size: 15px; font-weight: 500; white-space: nowrap; transition: background-color .15s, color .15s;
}
.aps-mm-top:hover, .aps-mm-top:focus-visible { background: rgba(255,255,255,.1); color: #fff !important; }
.aps-mm-top--home { padding: 0 18px; }
.aps-mm-tab--drop > .aps-mm-top { margin-top: 7px; border-radius: 10px 10px 0 0; font-weight: 600; }
.aps-mm-tab--drop > .aps-mm-top .aps-mm-ico { transition: transform .15s; opacity: .85; }

.aps-mm-top--cart, .aps-mm-tab--b2b .aps-mm-top, .aps-mm-tab--my-account .aps-mm-top, .aps-mm-tab--contact .aps-mm-top {
  background: var(--mm-red); border-radius: 8px; margin: 8px 0 8px 8px; padding: 0 16px; font-weight: 700; font-size: 14px;
}
.aps-mm-top--cart:hover, .aps-mm-top--cart:focus-visible,
.aps-mm-tab--b2b .aps-mm-top:hover, .aps-mm-tab--my-account .aps-mm-top:hover, .aps-mm-tab--contact .aps-mm-top:hover,
.aps-mm-tab--b2b .aps-mm-top:focus-visible, .aps-mm-tab--my-account .aps-mm-top:focus-visible, .aps-mm-tab--contact .aps-mm-top:focus-visible { background: #cf141b; }
.aps-mm-top:focus-visible { outline: 2px solid #fff; outline-offset: -4px; }

/* Ouverture du sous-menu */
.aps-mm-drop {
  display: none; position: absolute; left: 0; right: 0; top: 100%; z-index: 50;
  background: #fff; border: 1px solid var(--mm-line); border-top: 0; border-radius: 0 0 14px 14px;
  box-shadow: 0 18px 40px rgba(26,28,74,.18); color: var(--mm-ink);
}
.aps-mm-tab--drop.is-open > .aps-mm-top, .aps-mm-tab--drop:focus-within > .aps-mm-top { background: #fff; color: var(--mm-navy) !important; }
.aps-mm-tab--drop.is-open > .aps-mm-top .aps-mm-ico { transform: rotate(180deg); }
.aps-mm-tab--drop.is-open > .aps-mm-drop, .aps-mm-tab--drop:focus-within > .aps-mm-drop { display: block; }
.no-js .aps-mm-tab--drop:hover > .aps-mm-drop { display: block; }

.aps-mm-drop__inner { position: relative; display: grid; grid-template-columns: 300px minmax(0, 1fr) 300px; min-height: 500px; }
.aps-mm-side {
  grid-column: 1; background: var(--mm-soft); border-right: 1px solid var(--mm-line); border-radius: 0 0 0 14px;
  padding: 22px 12px 18px; display: flex; flex-direction: column; gap: 10px;
}
.aps-mm-aside { grid-column: 3; padding: 22px 22px 22px 0; display: flex; flex-direction: column; gap: 16px; }
.aps-mm-over { font-size: 12px !important; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--mm-muted); padding: 0 10px; line-height: 1.3; }

/* Marques */
.aps-mm-brands { display: flex; flex-direction: column; gap: 2px; }
.aps-mm-brands.is-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px 6px; }
.aps-mm-brand { position: static; }
.aps-mm-brand__link {
  display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; border-radius: 8px;
  color: var(--mm-ink) !important; font-size: 15px; font-weight: 500; line-height: 1.25;
}
.aps-mm-brands.is-two .aps-mm-brand__link { font-size: 14px; padding: 8px 10px; }
.aps-mm-brand__link:hover { background: #fff; }
.aps-mm-brand.is-active > .aps-mm-brand__link { background: var(--mm-navy); color: #fff !important; font-weight: 600; }
.aps-mm-all { margin-top: auto; padding: 8px 10px 0; display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--mm-navy) !important; }
.aps-mm-all:hover { text-decoration: underline !important; }

/* Panneau de la marque */
.aps-mm-panel {
  display: none; position: absolute; top: 0; bottom: 0; left: 300px; right: 300px;
  padding: 24px 30px; overflow-y: auto; flex-direction: column; gap: 20px;
}
.aps-mm-brand.is-active > .aps-mm-panel { display: flex; }
.aps-mm-panel__head { display: flex; align-items: center; gap: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--mm-line); }
.aps-mm-panel__head .aps-mm-more { margin-left: auto; }
.aps-mm-logo { flex: 0 0 auto; height: 40px; width: auto; max-width: 150px; object-fit: contain; object-position: left center; }
.aps-mm-panel__title { font-family: "Archivo", "IBM Plex Sans", sans-serif; font-size: 22px !important; font-weight: 700; color: var(--mm-ink); line-height: 1.2; }
.aps-mm-more { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--mm-navy) !important; white-space: nowrap; }
.aps-mm-more:hover { text-decoration: underline !important; }
.aps-mm-groups { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
.aps-mm-groups.is-multi { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.aps-mm-group .aps-mm-over { padding: 0 12px; margin-bottom: 6px; }
.aps-mm-ranges { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1px; }
.aps-mm-groups:not(.is-multi) .aps-mm-ranges { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 14px; }
.aps-mm-ranges a { display: block; padding: 8px 12px; border-radius: 8px; color: var(--mm-ink) !important; font-size: 15px; line-height: 1.3; }
.aps-mm-ranges a:hover, .aps-mm-ranges a:focus-visible { background: var(--mm-soft); color: var(--mm-navy) !important; }
.aps-mm-acc { border-top: 1px solid var(--mm-line); padding-top: 18px; }
.aps-mm-acc .aps-mm-over { padding: 0; margin-bottom: 10px; }
.aps-mm-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.aps-mm-pills a { display: inline-block; padding: 7px 14px; border: 1px solid var(--mm-line); border-radius: 999px; color: var(--mm-navy) !important; font-size: 14px; font-weight: 500; }
.aps-mm-pills a:hover { border-color: var(--mm-navy); background: var(--mm-soft); }
.aps-mm-featured {
  display: flex; align-items: center; gap: 14px; padding: 13px 16px; border: 1px solid var(--mm-line); border-radius: 10px;
  background: var(--mm-soft); color: var(--mm-ink) !important;
}
.aps-mm-featured:hover { border-color: var(--mm-navy); }
.aps-mm-featured b { display: block; font-size: 15px; }
.aps-mm-featured small { display: block; font-size: 13px; color: var(--mm-muted); }
.aps-mm-badge { flex: 0 0 auto; background: var(--mm-red); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 4px 8px; border-radius: 4px; }
.aps-mm-empty a { color: var(--mm-navy) !important; font-weight: 600; }

/* Recherche */
.aps-mm-search { margin: 0 4px; }
.aps-mm-search label { display: flex; align-items: center; gap: 8px; height: 42px; padding: 0 12px; margin: 0; background: #fff; border: 1px solid var(--mm-field); border-radius: 8px; color: var(--mm-muted); cursor: text; }
.aps-mm-search label:focus-within { border-color: var(--mm-navy); box-shadow: 0 0 0 2px rgba(46,49,146,.2); }
.aps-mm-search input { border: 0; outline: 0; background: transparent; font: inherit; font-size: 14px; color: var(--mm-ink); width: 100%; min-width: 0; padding: 0; height: auto; box-shadow: none; }

/* Encadré de droite */
.aps-mm-card { border-radius: 12px; padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.aps-mm-card--navy { background: var(--mm-navy); color: #fff; }
.aps-mm-card--red { background: #fff; border: 2px solid var(--mm-red); color: var(--mm-ink); }
.aps-mm-card__ico { width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.aps-mm-card--navy .aps-mm-card__ico { background: rgba(255,255,255,.14); color: #fff; }
.aps-mm-card--red .aps-mm-card__ico { background: var(--mm-red); color: #fff; }
.aps-mm-card__title { font-family: "Archivo", "IBM Plex Sans", sans-serif; font-size: 19px !important; font-weight: 700; line-height: 1.25; }
.aps-mm-card__text { font-size: 14px !important; line-height: 1.55; }
.aps-mm-card--navy .aps-mm-card__text { color: rgba(255,255,255,.88); }
.aps-mm-card--red .aps-mm-card__text { color: var(--mm-muted); }
.aps-mm-btn { align-self: flex-start; margin-top: 4px; padding: 10px 16px; border-radius: 8px; font-size: 14px; font-weight: 700; }
.aps-mm-card--navy .aps-mm-btn { background: #fff; color: var(--mm-navy) !important; }
.aps-mm-card--navy .aps-mm-btn:hover { background: #eef0fb; }
.aps-mm-card--red .aps-mm-btn { background: var(--mm-navy); color: #fff !important; }
.aps-mm-card--red .aps-mm-btn:hover { background: var(--mm-navy-dk); }
.aps-mm-reassure { display: flex; flex-direction: column; gap: 11px; padding: 2px 4px 0 !important; }
.aps-mm-reassure li { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--mm-ink); }
.aps-mm-reassure .aps-mm-ico { color: var(--mm-navy); }

/* Écrans moyens */
@media (max-width: 1299px) {
  .aps-mm-drop__inner { grid-template-columns: 270px minmax(0, 1fr) 260px; }
  .aps-mm-panel { left: 270px; right: 260px; padding: 22px 22px; }
  .aps-mm-groups:not(.is-multi) .aps-mm-ranges { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1099px) {
  .aps-mm-tab--b2b .aps-mm-top span, .aps-mm-tab--my-account .aps-mm-top span, .aps-mm-tab--contact .aps-mm-top span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .aps-mm-drop__inner { grid-template-columns: 260px minmax(0, 1fr); }
  .aps-mm-aside { display: none; }
  .aps-mm-panel { right: 0; }
}

/* Bandeau « confiance » en bas des sous-menus (badges de la boutique) */
.aps-mm-trust {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px;
  margin: 0 !important; padding: 14px 24px !important; border-top: 1px solid var(--mm-line);
  background: var(--mm-soft); border-radius: 0 0 14px 14px;
}
.aps-mm-trust__item { display: flex; align-items: center; justify-content: center; gap: 12px; font-size: 14px; font-weight: 600; color: var(--mm-ink); }
.aps-mm-trust__item img { height: 52px; width: auto; max-width: 96px; object-fit: contain; flex: 0 0 auto; }
.aps-mm-trust__ico { width: 52px; height: 52px; border-radius: 50%; background: var(--mm-navy); color: #fff; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.aps-mm-drop__inner .aps-mm-side { border-radius: 0; }
@media (max-width: 1099px) { .aps-mm-trust { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Vignettes des gammes (photo de la catégorie) */
.aps-mm-ranges a { display: flex !important; align-items: center; gap: 10px; padding: 5px 8px !important; }
.aps-mm-thumb { flex: 0 0 56px; width: 56px; height: 42px; border-radius: 6px; background: #fff; border: 1px solid var(--mm-line); display: flex; align-items: center; justify-content: center; overflow: hidden; color: #b7bad1; }
.aps-mm-thumb img { width: 100%; height: 100%; object-fit: contain; display: block; }
.aps-mm-ranges a:hover .aps-mm-thumb { border-color: var(--mm-navy); }
.aps-mm-rname { min-width: 0; line-height: 1.25; }
.aps-mm-groups.is-multi { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.aps-mm-ranges { gap: 2px; }

/* ===== Menu téléphone (généré : mobile-<langue>.tpl) ===== */
.aps-mob {
  --mm-navy: #2E3192; --mm-red: #ED1C24; --mm-ink: #1a1c4a; --mm-muted: #585a78; --mm-line: #d9dbea; --mm-soft: #f3f4fa;
  font-family: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif; color: var(--mm-ink); background: #fff;
  display: flex; flex-direction: column; min-height: 100%; text-align: left;
}
.aps-mob *, .aps-mob *::before, .aps-mob *::after { box-sizing: border-box; }
.aps-mob ul { list-style: none; margin: 0; padding: 0; }
.aps-mob p { margin: 0; }
.aps-mob a { text-decoration: none; }
.aps-mob .aps-mm-ico { flex: 0 0 auto; }
.aps-mob__head { display: flex; align-items: center; justify-content: space-between; background: var(--mm-navy); color: #fff; padding: 0 6px 0 16px; min-height: 52px; position: sticky; top: 0; z-index: 2; }
.aps-mob__home { display: inline-flex; align-items: center; gap: 8px; color: #fff !important; font-weight: 600; font-size: 15px; }
.aps-mob__close { background: none; border: 0; color: #fff; width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.aps-mob__body { padding: 8px 0 20px; }
.aps-mob summary { list-style: none; cursor: pointer; }
.aps-mob summary::-webkit-details-marker { display: none; }
.aps-mob details > summary .aps-mm-ico:last-child { margin-left: auto; transition: transform .15s; color: var(--mm-muted); }
.aps-mob details[open] > summary .aps-mm-ico:last-child { transform: rotate(180deg); }
.aps-mob-sec { border-bottom: 1px solid var(--mm-line); }
.aps-mob-sec > summary { display: flex; align-items: center; gap: 10px; padding: 0 16px; min-height: 56px; font-family: "Archivo", "IBM Plex Sans", sans-serif; font-size: 18px; font-weight: 700; color: var(--mm-ink); }
.aps-mob-sec[open] > summary { color: var(--mm-navy); }
.aps-mob-sec__body { padding: 0 12px 16px; display: flex; flex-direction: column; gap: 6px; }
.aps-mob-search { margin: 0 0 8px; }
.aps-mob-brand { border: 1px solid var(--mm-line); border-radius: 10px; background: #fff; overflow: hidden; }
.aps-mob-brand > summary { display: flex; align-items: center; gap: 12px; padding: 0 12px; min-height: 52px; font-size: 16px; font-weight: 600; }
.aps-mob-brand[open] { border-color: var(--mm-navy); }
.aps-mob-brand[open] > summary { background: var(--mm-soft); }
.aps-mob-logo { height: 26px; width: auto; max-width: 84px; object-fit: contain; flex: 0 0 auto; }
.aps-mob-brand__body { padding: 8px 10px 12px; display: flex; flex-direction: column; gap: 6px; }
.aps-mob-over { font-size: 12px !important; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--mm-muted); padding: 8px 4px 2px; }
.aps-mob-ranges { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; }
.aps-mob-ranges a { display: flex; align-items: center; gap: 10px; padding: 5px 8px; border-radius: 8px; border: 1px solid var(--mm-line); color: var(--mm-ink) !important; font-size: 15px; line-height: 1.25; min-height: 48px; }
.aps-mob-ranges a:active { background: var(--mm-soft); }
.aps-mob-ranges .aps-mm-thumb { flex: 0 0 48px; width: 48px; height: 36px; }
.aps-mob .aps-mm-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.aps-mob .aps-mm-pills a { display: inline-block; padding: 8px 12px; border: 1px solid var(--mm-line); border-radius: 999px; color: var(--mm-navy) !important; font-size: 14px; }
.aps-mob-all { display: inline-flex; align-items: center; gap: 6px; padding: 10px 4px 2px; font-size: 14px; font-weight: 600; color: var(--mm-navy) !important; }
.aps-mob-all--root { padding: 10px 4px; }
.aps-mob-card { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 10px; margin-top: 4px; }
.aps-mob-card b { display: block; font-size: 15px; line-height: 1.25; }
.aps-mob-card small { display: block; font-size: 13px; margin-top: 2px; font-weight: 600; }
.aps-mob-card--navy { background: var(--mm-navy); color: #fff !important; }
.aps-mob-card--navy .aps-mm-card__ico { background: rgba(255,255,255,.14); color: #fff; }
.aps-mob-card--red { background: #fff; border: 2px solid var(--mm-red); color: var(--mm-ink) !important; }
.aps-mob-card--red .aps-mm-card__ico { background: var(--mm-red); color: #fff; }
.aps-mob-card--red small { color: var(--mm-navy); }
.aps-mob-card .aps-mm-card__ico { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.aps-mob-btns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 16px 12px 0 !important; }
.aps-mob-btn__a { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 10px; border-radius: 8px; background: var(--mm-red); color: #fff !important; font-weight: 700; font-size: 14px; text-align: center; line-height: 1.2; }
.aps-mob-btn__a:active { background: #cf141b; }
.aps-mob-btn--cart { grid-column: 1 / -1; }
.aps-mob .aps-mm-search label { display: flex; align-items: center; gap: 8px; height: 46px; padding: 0 12px; margin: 0; background: #fff; border: 1px solid #8a8db0; border-radius: 8px; color: var(--mm-muted); }
.aps-mob .aps-mm-search input { border: 0; outline: 0; background: transparent; font: inherit; font-size: 16px; color: var(--mm-ink); width: 100%; min-width: 0; padding: 0; box-shadow: none; }
/* panneau du thème qui accueille le menu téléphone */
#_mobile_iqitmegamenu-mobile .aps-mob { width: 100%; }
