/* Menu des rayons "Vente de pièces" : 4 univers dans une capsule, panneau de cartes photo au survol. */
.pieces-toolbar { position: relative; z-index: 30; }
.pieces-menu { position: relative; margin-top: 4px; width: 100%; align-self: stretch; }
.pm-bar { display: flex; justify-content: center; }
.pm-seg {
  position: relative; display: inline-flex; padding: 6px; border-radius: 999px;
  border: 1px solid transparent;
  background: linear-gradient(160deg, #141b3a, #0d1229) padding-box,
              linear-gradient(110deg, var(--orange), var(--blue-glow)) border-box;
  box-shadow: 0 0 22px rgba(255,122,48,0.18), 0 0 30px rgba(77,168,255,0.12);
}
.pm-ind {
  position: absolute; top: 6px; bottom: 6px; left: 6px; width: 0; border-radius: 999px;
  background: linear-gradient(100deg, var(--orange), #ff9a5c); box-shadow: 0 6px 18px rgba(255,122,48,0.35);
  transition: left .3s ease, width .3s ease, opacity .2s; opacity: 0;
}
.pm-ind.on { opacity: 1; }
.pm-tab {
  position: relative; z-index: 1; background: none; border: none; color: #fff; font-family: inherit;
  font-weight: 700; font-size: 0.94rem; padding: 11px 20px; border-radius: 999px; cursor: pointer;
  display: inline-flex; gap: 9px; align-items: center; transition: color .2s; text-decoration: none;
}
.pm-tab:not(.is-lit):hover { color: var(--orange); }
.pm-tab.is-lit, .pm-tab.is-lit .pm-bubble { color: #fff !important; }
.pm-bubble {
  width: 26px; height: 26px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.pm-bubble svg { width: 15px; height: 15px; }
.pm-t1 .pm-bubble { background: rgba(255,122,48,0.18); color: var(--orange); }
.pm-t2 .pm-bubble { background: rgba(77,168,255,0.18); color: var(--blue-glow); }
.pm-t3 .pm-bubble { background: rgba(255,255,255,0.12); color: #fff; }
.pm-deal { color: var(--gold); }
.pm-deal .pm-bubble { background: rgba(255,200,60,0.18); color: var(--gold); }

.pm-panel { position: absolute; left: 0; right: 0; top: calc(100% + 14px); z-index: 40; display: none; }
.pm-panel.open { display: block; animation: pmDrop .25s ease; }
@keyframes pmDrop { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
.pm-panel-in {
  border-radius: 20px; padding: 22px; background: rgba(8,11,26,0.97); border: 1px solid var(--line);
  box-shadow: 0 30px 70px rgba(0,0,0,0.6); text-align: left;
}
.pm-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.pm-card { position: relative; aspect-ratio: 16 / 10; border-radius: 14px; overflow: hidden; display: block; }
.pm-card .pm-bg { position: absolute; inset: 0; background-size: cover; background-position: center; transition: transform .5s ease; }
.pm-card::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(5,7,20,0.1) 20%, rgba(5,7,20,0.92) 100%);
}
.pm-card .pm-txt { position: absolute; left: 16px; right: 16px; bottom: 14px; z-index: 2; }
.pm-card strong { color: #fff; display: block; font-size: 1.02rem; }
.pm-card span.pm-d { color: var(--ink-soft); font-size: 0.82rem; }
.pm-card:hover .pm-bg { transform: scale(1.08); }
.pm-card:hover, .pm-card.is-current { outline: 2px solid var(--orange); }
.pm-card.is-current::after {
  content: "Vous êtes ici"; position: absolute; top: 12px; left: 12px; z-index: 2;
  background: var(--orange); color: #fff; font-size: 0.72rem; font-weight: 800; padding: 4px 10px; border-radius: 999px;
}

@media (max-width: 860px) {
  .pm-seg { flex-wrap: wrap; justify-content: center; border-radius: 22px; }
  .pm-tab { font-size: 0.88rem; padding: 10px 14px; }
}
