/* Panneau "Vente de pièces" du header (desktop) : univers / rayons / photo. Sur mobile, la liste simple d'origine reste. */
.nav-dropdown.nav-mega .nm-panel { display: none; }

@media (min-width: 721px) {
  .nav-dropdown.nav-mega {
    display: block; padding: 0; min-width: 0; width: 900px; left: 0;
    transform: translateY(6px);
    border: 1px solid transparent; border-radius: 22px; overflow: hidden;
    background: linear-gradient(160deg, #111834, #0a0f22) padding-box,
                linear-gradient(110deg, var(--orange), var(--blue-glow)) border-box;
    box-shadow: 0 0 34px rgba(255,122,48,0.18), 0 0 50px rgba(77,168,255,0.1), 0 30px 60px rgba(0,0,0,0.5);
    backdrop-filter: none; -webkit-backdrop-filter: none;
  }
  .nav-item:hover .nav-dropdown.nav-mega,
  .nav-item:focus-within .nav-dropdown.nav-mega { transform: translateY(0); }
  .nav-dropdown.nav-mega > a { display: none; }
  .nav-dropdown.nav-mega .nm-panel { display: grid; grid-template-columns: 250px 270px 1fr; min-height: 320px; }

  .nm-univ { padding: 16px 0; border-right: 1px solid var(--line); }
  .nm-univ button, .nm-univ a.nm-deal {
    display: flex; align-items: center; gap: 12px; width: calc(100% - 24px); margin: 3px 12px;
    padding: 11px 18px !important; border-radius: 999px; background: none; border: none; cursor: pointer;
    text-align: left; font-family: inherit; font-weight: 700; font-size: 0.92rem !important;
    color: var(--ink-soft); transition: background .2s, color .2s, box-shadow .2s; white-space: normal;
  }
  .nm-univ a.nm-deal { color: var(--gold); }
  .nm-bb { width: 30px; height: 30px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
  .nm-bb svg { width: 16px; height: 16px; }
  .nm-u1 .nm-bb { background: rgba(255,122,48,0.18); color: var(--orange); }
  .nm-u2 .nm-bb { background: rgba(77,168,255,0.18); color: var(--blue-glow); }
  .nm-u3 .nm-bb { background: rgba(255,255,255,0.12); color: #fff; }
  .nm-deal .nm-bb { background: rgba(255,200,60,0.18); color: var(--gold); }
  .nm-univ button.on { color: #fff; background: linear-gradient(100deg, var(--orange), #ff9a5c); box-shadow: 0 6px 18px rgba(255,122,48,0.35); }
  .nm-univ button.on .nm-bb { background: rgba(255,255,255,0.25); color: #fff; }
  .nm-univ a.nm-deal:hover { background: rgba(255,200,60,0.1) !important; color: var(--gold); }
  .nm-univ a.nm-deal.on, .nm-univ a.nm-deal.on:hover {
    color: #05070f; background: linear-gradient(100deg, var(--gold), #ffe08a) !important;
    box-shadow: 0 6px 18px rgba(255,200,60,0.35);
  }
  .nm-univ a.nm-deal.on .nm-bb { background: rgba(5,7,20,0.15); color: #05070f; }
  .nm-panel.is-deal .nm-subs a { opacity: 0.45; }
  .nm-panel.is-deal .nm-cta { background: var(--gold); color: #05070f; }

  .nm-subs { padding: 16px 0; border-right: 1px solid var(--line); }
  .nm-subs a {
    position: relative; display: block; padding: 12px 22px !important; border-radius: 0;
    color: var(--ink-soft); font-weight: 600; font-size: 0.92rem !important; white-space: normal;
  }
  .nm-subs a small { display: block; color: var(--ink-mute); font-weight: 400; font-size: 0.76rem; margin-top: 2px; }
  .nm-subs a::before {
    content: ""; position: absolute; left: 0; top: 18%; bottom: 18%; width: 3px; border-radius: 3px;
    background: var(--orange); box-shadow: 0 0 12px var(--orange); opacity: 0; transition: opacity .2s;
  }
  .nm-subs a.on, .nm-subs a:hover { color: #fff; background: rgba(255,122,48,0.07) !important; }
  .nm-subs a.on::before { opacity: 1; }
  .nm-subs a.is-current small::after { content: " · vous êtes ici"; color: var(--orange); }

  .nm-pv { position: relative; overflow: hidden; display: block; padding: 0 !important; border-radius: 0; }
  .nm-pv:hover { background: none !important; }
  .nm-layer { position: absolute; inset: 0; background-size: cover; background-position: center; transition: opacity .45s ease; }
  .nm-layer.hide { opacity: 0; }
  .nm-pv::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(10,15,34,0.05) 30%, rgba(10,15,34,0.92)); }
  .nm-gear { position: absolute; top: -40px; right: -40px; width: 150px; height: 150px; color: #fff; opacity: 0.18; z-index: 2; animation: nmSpin 30s linear infinite; }
  @keyframes nmSpin { to { transform: rotate(360deg); } }
  .nm-cap { position: absolute; left: 22px; right: 22px; bottom: 22px; z-index: 2; }
  .nm-cap strong { display: block; color: #fff; font-family: 'Teko', sans-serif; font-size: 1.8rem; line-height: 1; }
  .nm-cap span.nm-d { color: var(--ink-soft); font-size: 0.84rem; }
  .nm-cta { display: inline-flex; gap: 6px; align-items: center; margin-top: 10px; background: var(--orange); color: #fff; font-weight: 800; font-size: 0.82rem; padding: 8px 16px; border-radius: 999px; }
  .nm-cta svg { width: 14px; height: 14px; }
}
