/* ═══════════════════════════════════════════════════════
   MegaMenu Pro — Feuille de styles complète
   Pikali | v1.0.0
   ═══════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

/* ── VARIABLES ── */
:root {
  --mm-font:            'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mm-accent:          #e8500a;
  --mm-bg:              #ffffff;
  --mm-nav-bg:          var(--mm-bg);
  --mm-nav-height:      58px;
  --mm-nav-border:      rgba(0, 0, 0, .07);
  --mm-text:            #1a1a2e;
  --mm-text-muted:      #6b7280;
  --mm-text-light:      #9ca3af;
  --mm-mega-bg:         #ffffff;
  --mm-mega-shadow:     0 24px 64px rgba(0, 0, 0, .13), 0 4px 16px rgba(0, 0, 0, .06);
  --mm-mega-radius:     0 0 16px 16px;
  --mm-feature-radius:  12px;
  --mm-panel-max:       1280px;
  --mm-transition:      .26s cubic-bezier(.4, 0, .2, 1);
  --mm-fast:            .16s cubic-bezier(.4, 0, .2, 1);
  --mm-drawer-width:    340px;
  --mm-z-nav:           9980;
  --mm-z-mega:          9990;
  --mm-z-backdrop:      9970;
  --mm-z-drawer:        9995;
}

/* ── RESET SCOPE ── */
.mm-nav-wrap *,
.mm-nav-wrap *::before,
.mm-nav-wrap *::after,
.mm-drawer *,
.mm-drawer *::before,
.mm-drawer *::after,
.mm-backdrop {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ════════════════════════════════
   BACKDROP
════════════════════════════════ */
.mm-backdrop {
  position: fixed;
  inset: 0;
  z-index: var(--mm-z-backdrop);
  background: rgba(10, 10, 20, .45);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--mm-transition);
}
.mm-backdrop.mm-is-active {
  opacity: 1;
  pointer-events: all;
}

/* ════════════════════════════════
   NAV WRAPPER
════════════════════════════════ */
.mm-nav-wrap {
  position: relative;
  z-index: var(--mm-z-nav);
  width: 100%;
  background: var(--mm-nav-bg);
  border-bottom: 1px solid var(--mm-nav-border);
  transition: box-shadow var(--mm-transition);
}
.mm-nav-wrap.mm-sticky {
  position: sticky;
  top: 0;
}
.mm-nav-wrap.mm-is-scrolled {
  box-shadow: 0 4px 24px rgba(0, 0, 0, .10);
}

/* ════════════════════════════════
   BARRE DE NAVIGATION
════════════════════════════════ */
.mm-nav {
  width: 100%;
  font-family: var(--mm-font);
}
.mm-nav-inner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  max-width: var(--mm-panel-max);
  margin: 0 auto;
  padding: 0 24px;
  min-height: var(--mm-nav-height);
  gap: 2px;
}

/* ── LISTE DES CATÉGORIES TOP-LEVEL ── */
.mm-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  list-style: none;
  min-height: var(--mm-nav-height);
  gap: 0;
  flex: 1;
}
.mm-item {
  position: static;
  min-height: var(--mm-nav-height);
  display: flex;
  align-items: center;
}

/* ── LIEN NAV ── */
.mm-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 100%;
  padding: 0 14px;
  color: var(--mm-text);
  text-decoration: none;
  font-size: .875rem;
  font-weight: 500;
  letter-spacing: -.01em;
  white-space: nowrap;
  position: relative;
  transition: color var(--mm-fast);
  cursor: pointer;
  border: none;
  background: none;
  font-family: var(--mm-font);
}
/* Soulignement animé */
.mm-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 14px;
  right: 14px;
  height: 2px;
  background: var(--mm-accent);
  border-radius: 2px 2px 0 0;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--mm-transition);
}
.mm-item:hover .mm-link,
.mm-item.mm-is-open .mm-link {
  color: var(--mm-accent);
}
.mm-item:hover .mm-link::after,
.mm-item.mm-is-open .mm-link::after {
  transform: scaleX(1);
}

/* ── CHEVRON ── */
.mm-chevron {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  transition: transform var(--mm-transition);
  color: var(--mm-text-muted);
}
.mm-item:hover .mm-chevron,
.mm-item.mm-is-open .mm-chevron {
  transform: rotate(180deg);
  color: var(--mm-accent);
}

/* ── BADGE ── */
.mm-badge {
  display: inline-flex;
  align-items: center;
  padding: 1px 7px;
  border-radius: 20px;
  font-size: .65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  background: var(--mm-accent);
  color: #fff;
  line-height: 1.8;
}

/* ── HAMBURGER (caché desktop) ── */
.mm-hamburger {
  display: none;
}

/* ════════════════════════════════
   MEGA PANEL (position: fixed)
   Le top est calculé dynamiquement
   par megamenu.js via getBoundingClientRect
════════════════════════════════ */
.mm-mega {
  position: fixed;
  left: 0;
  right: 0;
  /* top : injecté par JS */
  z-index: var(--mm-z-mega);
  background: var(--mm-mega-bg);
  box-shadow: var(--mm-mega-shadow);
  border-radius: var(--mm-mega-radius);
  border-top: 2px solid var(--mm-accent);
  /* État caché */
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition:
    opacity var(--mm-transition),
    transform var(--mm-transition),
    visibility 0s linear var(--mm-transition);
  max-height: calc(100vh - var(--mm-nav-height) - 24px);
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(232, 80, 10, .3) transparent;
}
.mm-mega::-webkit-scrollbar        { width: 5px; }
.mm-mega::-webkit-scrollbar-track  { background: transparent; }
.mm-mega::-webkit-scrollbar-thumb  { background: rgba(232, 80, 10, .3); border-radius: 3px; }

/* État ouvert */
.mm-item.mm-is-open > .mm-mega {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition:
    opacity var(--mm-transition),
    transform var(--mm-transition),
    visibility 0s linear 0s;
}

/* ── LAYOUT INTERNE MEGA ── */
.mm-mega-inner {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 0;
  max-width: var(--mm-panel-max);
  margin: 0 auto;
  padding: 28px 24px;
  min-height: 280px;
}

/* ── CARTE FEATURE (colonne gauche) ── */
.mm-mega-feature {
  padding-right: 28px;
  border-right: 1px solid rgba(0, 0, 0, .07);
}
.mm-feature-card {
  display: block;
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  max-height: 360px;
  border-radius: var(--mm-feature-radius);
  overflow: hidden;
  text-decoration: none;
  color: #fff;
  background: #1a1a2e;
}
.mm-feature-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform .5s cubic-bezier(.4, 0, .2, 1);
}
.mm-feature-card:hover .mm-feature-img {
  transform: scale(1.04);
}
.mm-feature-placeholder {
  width: 100%;
  height: 100%;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg,
    rgba(232, 80, 10, .06) 0%,
    rgba(232, 80, 10, .14) 100%);
}
.mm-feature-placeholder svg {
  width: 80px;
  height: 80px;
}
/* Overlay dégradé sur l'image */
.mm-feature-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, .78) 0%,
    rgba(0, 0, 0, .28) 45%,
    transparent 100%
  );
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 22px 20px;
  gap: 6px;
}
.mm-feature-label {
  font-size: .72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: rgba(255, 255, 255, .65);
  font-family: var(--mm-font);
}
.mm-feature-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  font-family: var(--mm-font);
}
.mm-feature-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  font-size: .82rem;
  font-weight: 600;
  color: rgba(255, 255, 255, .9);
  padding: 7px 14px;
  border-radius: 30px;
  background: rgba(255, 255, 255, .16);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, .25);
  transition: background var(--mm-fast), color var(--mm-fast);
  align-self: flex-start;
  text-decoration: none;
  font-family: var(--mm-font);
}
.mm-feature-cta svg {
  width: 14px;
  height: 14px;
  transition: transform var(--mm-fast);
}
.mm-feature-card:hover .mm-feature-cta {
  background: var(--mm-accent);
  color: #fff;
}
.mm-feature-card:hover .mm-feature-cta svg {
  transform: translateX(3px);
}

/* ── COLONNES DE SOUS-CATÉGORIES ── */
.mm-mega-cols {
  display: flex;
  gap: 0;
  padding-left: 28px;
  overflow: hidden;
  align-items: flex-start;
}
.mm-mega-cols--full {
  padding-left: 0;
}
.mm-col {
  flex: 1;
  border-right: 1px solid rgba(0, 0, 0, .06);
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.mm-col:first-child { padding-left: 0; }
.mm-col:last-child  { border-right: none; padding-right: 0; }

.mm-col-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Header de sous-catégorie avec vignette optionnelle */
.mm-col-title {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--mm-text);
  font-size: .875rem;
  font-weight: 700;
  letter-spacing: -.01em;
  transition: color var(--mm-fast);
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(0, 0, 0, .06);
  font-family: var(--mm-font);
}
.mm-col-title:hover {
  color: var(--mm-accent);
}
.mm-col-thumb {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  background: rgba(232, 80, 10, .07);
}
.mm-col-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Liens petits-enfants */
.mm-col-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.mm-col-links li a {
  display: block;
  font-size: .8rem;
  font-weight: 400;
  color: var(--mm-text-muted);
  text-decoration: none;
  padding: 3px 0 3px 12px;
  border-left: 2px solid transparent;
  transition: color var(--mm-fast), border-color var(--mm-fast), padding-left var(--mm-fast);
  line-height: 1.4;
  font-family: var(--mm-font);
}
.mm-col-links li a:hover {
  color: var(--mm-accent);
  border-color: var(--mm-accent);
  padding-left: 14px;
}

/* ════════════════════════════════
   DRAWER MOBILE / TABLETTE
════════════════════════════════ */
.mm-drawer {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: var(--mm-z-drawer);
  width: var(--mm-drawer-width);
  max-width: 100vw;
  background: #fff;
  font-family: var(--mm-font);
  display: flex;
  flex-direction: column;
  box-shadow: 4px 0 40px rgba(0, 0, 0, .16);
  transform: translateX(-100%);
  visibility: hidden;
  transition:
    transform var(--mm-transition),
    visibility 0s linear var(--mm-transition);
  will-change: transform;
}
.mm-drawer.mm-is-open {
  transform: translateX(0);
  visibility: visible;
  transition:
    transform var(--mm-transition),
    visibility 0s linear 0s;
}

/* En-tête drawer */
.mm-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(0, 0, 0, .08);
  flex-shrink: 0;
}
.mm-drawer-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--mm-text);
  letter-spacing: -.02em;
}
.mm-drawer-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, .06);
  color: var(--mm-text);
  cursor: pointer;
  transition: background var(--mm-fast), color var(--mm-fast);
  flex-shrink: 0;
}
.mm-drawer-close svg { width: 16px; height: 16px; }
.mm-drawer-close:hover {
  background: rgba(232, 80, 10, .12);
  color: var(--mm-accent);
}

/* Corps drawer */
.mm-drawer-body {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 0, 0, .15) transparent;
}
.mm-drawer-body::-webkit-scrollbar { width: 4px; }
.mm-drawer-body::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, .15);
  border-radius: 2px;
}

.mm-drawer-list {
  list-style: none;
  padding: 6px 0 24px;
}
.mm-drawer-item {
  border-bottom: 1px solid rgba(0, 0, 0, .05);
}

/* Lien simple (sans enfants) */
.mm-drawer-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 20px;
  color: var(--mm-text);
  text-decoration: none;
  font-size: .9rem;
  font-weight: 500;
  transition: color var(--mm-fast), background var(--mm-fast);
}
.mm-drawer-link:hover {
  color: var(--mm-accent);
  background: rgba(232, 80, 10, .04);
}
.mm-drawer-arrow {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--mm-text-light);
  transition: transform var(--mm-fast), color var(--mm-fast);
}
.mm-drawer-link:hover .mm-drawer-arrow {
  transform: translateX(3px);
  color: var(--mm-accent);
}

/* Bouton accordéon */
.mm-drawer-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 20px;
  font-size: .9rem;
  font-weight: 500;
  color: var(--mm-text);
  cursor: pointer;
  background: none;
  border: none;
  text-align: left;
  font-family: var(--mm-font);
  transition: background var(--mm-fast), color var(--mm-fast);
}
.mm-drawer-toggle:hover {
  background: rgba(232, 80, 10, .04);
}
.mm-drawer-toggle[aria-expanded="true"] {
  color: var(--mm-accent);
}
.mm-drawer-chevron {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--mm-text-muted);
  transition: transform var(--mm-transition), color var(--mm-fast);
}
.mm-drawer-toggle[aria-expanded="true"] .mm-drawer-chevron {
  transform: rotate(180deg);
  color: var(--mm-accent);
}

/* Sous-menu accordéon */
.mm-drawer-sub {
  overflow: hidden;
  max-height: 0;
  transition: max-height .3s cubic-bezier(.4, 0, .2, 1);
  background: rgba(0, 0, 0, .02);
}
/* L'état ouvert est géré par JS via max-height = scrollHeight */

.mm-drawer-see-all {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  font-size: .82rem;
  font-weight: 600;
  color: var(--mm-accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 0, 0, .05);
}
.mm-drawer-see-all svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.mm-drawer-sub-list {
  list-style: none;
  padding: 4px 0 8px;
}
.mm-drawer-sub-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  text-decoration: none;
  color: var(--mm-text-muted);
  font-size: .85rem;
  font-weight: 400;
  transition: color var(--mm-fast), background var(--mm-fast);
}
.mm-drawer-sub-link:hover {
  color: var(--mm-accent);
  background: rgba(232, 80, 10, .04);
}
.mm-drawer-thumb {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  background: rgba(0, 0, 0, .05);
}
.mm-drawer-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.mm-drawer-sub-name {
  flex: 1;
  line-height: 1.3;
}

/* ════════════════════════════════
   HAMBURGER — DESKTOP caché
════════════════════════════════ */
.mm-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  border: none;
  background: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: background var(--mm-fast);
  flex-shrink: 0;
}
.mm-hamburger:hover {
  background: rgba(0, 0, 0, .06);
}
.mm-hamburger-bar {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--mm-text);
  border-radius: 2px;
  transition:
    transform .28s cubic-bezier(.4, 0, .2, 1),
    opacity .2s ease,
    width .2s ease;
  transform-origin: center;
}
/* Hamburger → croix */
.mm-hamburger.mm-is-open .mm-hamburger-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.mm-hamburger.mm-is-open .mm-hamburger-bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.mm-hamburger.mm-is-open .mm-hamburger-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ════════════════════════════════
   RESPONSIVE — TABLETTE (≤ 1024px)
════════════════════════════════ */
@media (max-width: 1024px) {
  /* Masquer le menu desktop */
  .mm-list {
    display: none;
  }
  /* Afficher le hamburger */
  .mm-hamburger {
    display: flex;
  }
  /* Le mega panel ne s'affiche jamais sur tablette/mobile */
  .mm-mega {
    display: none !important;
  }
}

/* ════════════════════════════════
   RESPONSIVE — MOBILE (≤ 768px)
════════════════════════════════ */
@media (max-width: 768px) {
  /* Masquer les images dans le drawer sur mobile */
  .mm-drawer-thumb {
    display: none;
  }
  .mm-drawer-sub-link {
    padding-left: 24px;
  }
  /* Réduire la largeur du drawer */
  .mm-drawer {
    width: 100%;
    max-width: 100vw;
  }
}

/* ════════════════════════════════
   ACCESSIBILITÉ
════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  .mm-mega,
  .mm-backdrop,
  .mm-drawer,
  .mm-hamburger-bar,
  .mm-chevron,
  .mm-drawer-chevron,
  .mm-feature-img,
  .mm-feature-cta svg,
  .mm-col-links li a,
  .mm-drawer-link,
  .mm-drawer-toggle,
  .mm-drawer-sub {
    transition: none !important;
    animation: none !important;
  }
}

/* Focus visible pour la navigation clavier */
.mm-link:focus-visible,
.mm-drawer-toggle:focus-visible,
.mm-drawer-link:focus-visible,
.mm-drawer-close:focus-visible,
.mm-hamburger:focus-visible {
  outline: 2px solid var(--mm-accent);
  outline-offset: 2px;
}

/* ════════════════════════════════
   NIVEAUX RÉCURSIFS — v1.2.3
   Dans le panel mega (desktop) :
   • .mm-col-title (niveau 2) : toujours visible (entête de colonne)
   • .mm-sub-list.mm-level-2 (enfants directs du titre) : masquée par
     défaut, se déploie verticalement au survol du .mm-col-group
   • .mm-sub-list.mm-level-3+ : masquée par défaut, apparaît en
     FLYOUT LATÉRAL (à droite de l'item parent) au survol de
     .mm-sub-item.mm-has-kids
   • Images thumbnails affichées à chaque niveau via .mm-sub-thumb
════════════════════════════════ */

/* Laisse déborder le flyout hors de la colonne sans clipping */
.mm-mega-cols { overflow: visible; }
.mm-col       { overflow: visible; }

/* Reset liste */
.mm-sub-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* ── Niveau 2 (enfants directs sous .mm-col-title) ── */
.mm-col-group {
  position: relative;
}
.mm-sub-list.mm-level-2 {
  display: flex;
  flex-direction: column;
  gap: 2px;
  /* caché par défaut */
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  margin-top: 0;
  /* delay à la fermeture (.25s) : laisse le temps de glisser la souris vers la liste */
  transition:
    max-height .3s cubic-bezier(.4, 0, .2, 1) .25s,
    opacity .22s ease .25s,
    margin-top .22s ease .25s;
}
/* Déploiement vertical sous le titre au survol du groupe.
   Delay d'ouverture court (.12s) pour éviter les déploiements accidentels. */
.mm-col-group:hover > .mm-sub-list.mm-level-2,
.mm-col-group:focus-within > .mm-sub-list.mm-level-2 {
  max-height: 1600px;
  opacity: 1;
  margin-top: 8px;
  transition-delay: .12s;
}

/* Chevron sur le titre de colonne (signale qu'il y a un contenu
   déployable). Affiché seulement quand la colonne a des enfants. */
.mm-col-title {
  position: relative;
}
.mm-col-group.mm-has-sub > .mm-col-title {
  padding-right: 20px;
}
.mm-col-group.mm-has-sub > .mm-col-title::after {
  content: '';
  position: absolute;
  right: 6px;
  top: 50%;
  width: 7px;
  height: 7px;
  border-right: 1.6px solid currentColor;
  border-bottom: 1.6px solid currentColor;
  transform: translateY(-70%) rotate(45deg);
  opacity: .55;
  transition: transform var(--mm-fast), opacity var(--mm-fast), color var(--mm-fast);
}
.mm-col-group.mm-has-sub:hover > .mm-col-title::after,
.mm-col-group.mm-has-sub:focus-within > .mm-col-title::after {
  transform: translateY(-30%) rotate(225deg);
  opacity: 1;
  color: var(--mm-accent);
}

/* ── Sous-items (tous niveaux) ── */
.mm-sub-item {
  position: relative;
  display: block;
}
.mm-sub-link {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .82rem;
  font-weight: 400;
  color: var(--mm-text-muted);
  text-decoration: none;
  padding: 5px 10px 5px 10px;
  border-left: 2px solid transparent;
  border-radius: 0 6px 6px 0;
  transition:
    color var(--mm-fast),
    border-color var(--mm-fast),
    background var(--mm-fast),
    padding-left var(--mm-fast);
  line-height: 1.3;
  font-family: var(--mm-font);
}
.mm-sub-link:hover {
  color: var(--mm-accent);
  border-color: var(--mm-accent);
  background: rgba(232, 80, 10, .05);
}
.mm-sub-item.mm-has-kids > .mm-sub-link {
  font-weight: 500;
  color: var(--mm-text);
  padding-right: 22px;
}

/* Thumbnail image pour chaque sub-item */
.mm-sub-thumb {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
  background: rgba(232, 80, 10, .06);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.mm-sub-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.mm-sub-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Chevron droit sur les items qui ont des enfants (niveau 3+) */
.mm-sub-item.mm-has-kids > .mm-sub-link::after {
  content: '';
  position: absolute;
  right: 8px;
  top: 50%;
  width: 6px;
  height: 6px;
  border-right: 1.6px solid currentColor;
  border-bottom: 1.6px solid currentColor;
  transform: translateY(-70%) rotate(-45deg);
  opacity: .5;
  transition: transform var(--mm-fast), opacity var(--mm-fast), right var(--mm-fast);
}
.mm-sub-item.mm-has-kids:hover > .mm-sub-link::after,
.mm-sub-item.mm-has-kids:focus-within > .mm-sub-link::after {
  opacity: 1;
  right: 6px;
}

/* ── Niveaux 3+ : déploiement vertical indenté au survol du parent ── */
.mm-sub-list.mm-level-3,
.mm-sub-list.mm-level-4,
.mm-sub-list.mm-level-5,
.mm-sub-list.mm-level-6,
.mm-sub-list.mm-level-7,
.mm-sub-list.mm-level-8 {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-left: 34px;
  padding-left: 10px;
  border-left: 2px solid rgba(232, 80, 10, .15);
  /* caché par défaut */
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  margin-top: 0;
  /* delay à la fermeture (.25s) : laisse le temps de glisser vers les sous-items */
  transition:
    max-height .28s cubic-bezier(.4, 0, .2, 1) .25s,
    opacity .2s ease .25s,
    margin-top .2s ease .25s;
}
/* Delay d'ouverture court (.15s) : évite le déploiement dès le moindre effleurement. */
.mm-sub-item.mm-has-kids:hover > .mm-sub-list,
.mm-sub-item.mm-has-kids:focus-within > .mm-sub-list {
  max-height: 1200px;
  opacity: 1;
  margin-top: 4px;
  transition-delay: .15s;
}

/* Réduit légèrement la taille des items dans les niveaux profonds */
.mm-sub-list.mm-level-3 .mm-sub-link,
.mm-sub-list.mm-level-4 .mm-sub-link,
.mm-sub-list.mm-level-5 .mm-sub-link,
.mm-sub-list.mm-level-6 .mm-sub-link,
.mm-sub-list.mm-level-7 .mm-sub-link,
.mm-sub-list.mm-level-8 .mm-sub-link {
  font-size: .78rem;
  color: var(--mm-text-light);
}
.mm-sub-list.mm-level-3 .mm-sub-thumb,
.mm-sub-list.mm-level-4 .mm-sub-thumb,
.mm-sub-list.mm-level-5 .mm-sub-thumb,
.mm-sub-list.mm-level-6 .mm-sub-thumb,
.mm-sub-list.mm-level-7 .mm-sub-thumb,
.mm-sub-list.mm-level-8 .mm-sub-thumb {
  width: 22px;
  height: 22px;
}

/* Mobile drawer — sous-accordéons récursifs */
.mm-drawer-sub-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.mm-drawer-sub-list.mm-drawer-level-2,
.mm-drawer-sub-list.mm-drawer-level-3,
.mm-drawer-sub-list.mm-drawer-level-4,
.mm-drawer-sub-list.mm-drawer-level-5,
.mm-drawer-sub-list.mm-drawer-level-6 {
  background: rgba(0, 0, 0, .015);
  border-left: 3px solid rgba(232, 80, 10, .2);
}
.mm-drawer-sub-item {
  border-bottom: 1px solid rgba(0, 0, 0, .04);
}
.mm-drawer-sub-item:last-child { border-bottom: none; }

.mm-drawer-sub-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px 12px 28px;
  color: var(--mm-text);
  text-decoration: none;
  font-size: .875rem;
  font-weight: 400;
  transition: background var(--mm-fast), color var(--mm-fast);
}
.mm-drawer-sub-link:hover {
  color: var(--mm-accent);
  background: rgba(232, 80, 10, .04);
}
.mm-drawer-sub-name {
  flex: 1;
  min-width: 0;
}
.mm-drawer-thumb {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
  background: rgba(232, 80, 10, .06);
}
.mm-drawer-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Bouton toggle imbriqué dans le drawer */
.mm-drawer-toggle-sub {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px 12px 28px;
  font-size: .875rem;
  font-weight: 500;
  color: var(--mm-text);
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  font-family: var(--mm-font);
  transition: background var(--mm-fast), color var(--mm-fast);
}
.mm-drawer-toggle-sub:hover {
  background: rgba(232, 80, 10, .04);
  color: var(--mm-accent);
}
.mm-drawer-toggle-sub[aria-expanded="true"] {
  color: var(--mm-accent);
}
.mm-drawer-toggle-sub .mm-drawer-chevron {
  transition: transform var(--mm-transition), color var(--mm-fast);
}
.mm-drawer-toggle-sub[aria-expanded="true"] .mm-drawer-chevron {
  transform: rotate(180deg);
}

.mm-drawer-sub-wrap {
  overflow: hidden;
  max-height: 0;
  transition: max-height .3s cubic-bezier(.4, 0, .2, 1);
}
.mm-drawer-sub-wrap.mm-is-open {
  max-height: 5000px;
}

/* ════════════════════════════════
   IMPRESSION
════════════════════════════════ */
@media print {
  .mm-nav-wrap,
  .mm-drawer,
  .mm-backdrop {
    display: none !important;
  }
}
