/* ==========================================================================
   LE PIÉDESTAL — GRIMOIRE DU COLLECTIONNEUR
   Registre de marchand de figurines. Vélin & chandelle (nuit, par défaut),
   vélin & jour pour le thème clair.
   ========================================================================== */

@property --spot-x {
  syntax: "<percentage>";
  inherits: true;
  initial-value: 50%;
}
@property --spot-y {
  syntax: "<percentage>";
  inherits: true;
  initial-value: 35%;
}

:root {
  /* Nuit — vélin lu à la chandelle (identité par défaut) */
  --void: #17110a;
  --void-2: #221a10;
  --void-3: #2c2013;
  --hairline: #3c2d1a;
  --hairline-soft: #2c2213;
  --pearl: #ecd9b6;
  --mut: #b8a37e;
  --mut-dim: #7d6c4d;
  --gold: #cf9f4e;
  --gold-bright: #e0b667;
  --garnet: #8f3b34;
  --garnet-bright: #c1554b;
  --spotlight-glow: rgba(207, 159, 78, 0.22);
  --spotlight-glow-strong: rgba(207, 159, 78, 0.3);
  --spotlight-glow-soft: rgba(236, 217, 182, 0.1);
  --ghost-color: rgba(236, 217, 182, 0.035);
  --header-scrim: rgba(23, 17, 10, 0.88);

  --r-commun: #9a9080;
  --r-peu-commun: #7fab90;
  --r-rare: #6f9fd6;
  --r-epique: #b08fd6;
  --r-legendaire: #d4a94a;
  --vignette: rgba(0, 0, 0, 0.4);
  --glint: rgba(236, 217, 182, 0.14);

  --font-display: "Cormorant Garamond", Georgia, "Iowan Old Style", serif;
  --font-body: "EB Garamond", Georgia, "Iowan Old Style", serif;
  --font-ui: "EB Garamond", Georgia, serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

@media (prefers-color-scheme: light) {
  :root {
    --void: #e8dbbd;
    --void-2: #f1e8cd;
    --void-3: #f8f2e0;
    --hairline: #cdbb8f;
    --hairline-soft: #ded0ab;
    --pearl: #2b1c12;
    --mut: #5b4630;
    --mut-dim: #8d7a5c;
    --gold: #8a6a2a;
    --gold-bright: #6f5420;
    --garnet: #6d2320;
    --garnet-bright: #8a3530;
    --spotlight-glow: rgba(138, 106, 42, 0.16);
    --spotlight-glow-strong: rgba(138, 106, 42, 0.24);
    --spotlight-glow-soft: rgba(0, 0, 0, 0.05);
    --ghost-color: rgba(0, 0, 0, 0.05);
    --header-scrim: rgba(233, 220, 192, 0.88);
    --r-commun: #6b6455;
    --r-peu-commun: #3f6b46;
    --r-rare: #2f5a8a;
    --r-epique: #6a3f8a;
    --r-legendaire: #9c711f;
    --vignette: rgba(60, 40, 10, 0.1);
    --glint: rgba(255, 244, 214, 0.35);
  }
}

:root[data-theme="light"] {
  --void: #e8dbbd;
  --void-2: #f1e8cd;
  --void-3: #f8f2e0;
  --hairline: #cdbb8f;
  --hairline-soft: #ded0ab;
  --pearl: #2b1c12;
  --mut: #5b4630;
  --mut-dim: #8d7a5c;
  --gold: #8a6a2a;
  --gold-bright: #6f5420;
  --garnet: #6d2320;
  --garnet-bright: #8a3530;
  --spotlight-glow: rgba(138, 106, 42, 0.16);
  --spotlight-glow-strong: rgba(138, 106, 42, 0.24);
  --spotlight-glow-soft: rgba(0, 0, 0, 0.05);
  --ghost-color: rgba(0, 0, 0, 0.05);
  --header-scrim: rgba(233, 220, 192, 0.88);
  --r-commun: #6b6455;
  --r-peu-commun: #3f6b46;
  --r-rare: #2f5a8a;
  --r-epique: #6a3f8a;
  --r-legendaire: #9c711f;
  --vignette: rgba(60, 40, 10, 0.1);
  --glint: rgba(255, 244, 214, 0.35);
}

:root[data-theme="dark"] {
  --void: #17110a;
  --void-2: #221a10;
  --void-3: #2c2013;
  --hairline: #3c2d1a;
  --hairline-soft: #2c2213;
  --pearl: #ecd9b6;
  --mut: #b8a37e;
  --mut-dim: #7d6c4d;
  --gold: #cf9f4e;
  --gold-bright: #e0b667;
  --garnet: #8f3b34;
  --garnet-bright: #c1554b;
  --spotlight-glow: rgba(207, 159, 78, 0.22);
  --spotlight-glow-strong: rgba(207, 159, 78, 0.3);
  --spotlight-glow-soft: rgba(236, 217, 182, 0.1);
  --ghost-color: rgba(236, 217, 182, 0.035);
  --header-scrim: rgba(23, 17, 10, 0.88);
  --r-commun: #9a9080;
  --r-peu-commun: #7fab90;
  --r-rare: #6f9fd6;
  --r-epique: #b08fd6;
  --r-legendaire: #d4a94a;
  --vignette: rgba(0, 0, 0, 0.4);
  --glint: rgba(236, 217, 182, 0.14);
}

body,
.site-header,
.pedestal,
.info-card,
.cart-line,
.certificate,
.value-strip div,
.marquee,
.filter-btn,
.btn,
.theme-toggle {
  transition: background-color 0.35s ease, color 0.35s ease, border-color 0.35s ease;
}

* {
  box-sizing: border-box;
}

html {
  scrollbar-color: var(--gold) var(--void-2);
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  background: var(--void);
  color: var(--pearl);
  font-family: var(--font-body);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow-x: hidden;
}

main {
  flex: 1;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
svg {
  max-width: 100%;
  display: block;
}

h1,
h2,
h3,
p,
dl,
dd,
table {
  margin: 0;
}

button {
  font: inherit;
  cursor: pointer;
  color: inherit;
  background: none;
  border: none;
}

::selection {
  background: var(--gold);
  color: var(--void);
}

::-webkit-scrollbar {
  width: 11px;
}
::-webkit-scrollbar-track {
  background: var(--void-2);
}
::-webkit-scrollbar-thumb {
  background: var(--mut-dim);
  border: 2px solid var(--void-2);
  border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--gold);
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* Vignettage ambiant : assombrit doucement les bords, comme un écran de jeu */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 30;
  pointer-events: none;
  background: radial-gradient(ellipse 120% 90% at 50% 35%, transparent 55%, var(--vignette) 100%);
}

/* Barre de progression de lecture, façon barre d'XP */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 60;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--gold), var(--gold-bright));
  box-shadow: 0 0 8px var(--gold);
  pointer-events: none;
}

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.75rem;
}

.eyebrow {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
}

.tabular {
  font-variant-numeric: tabular-nums;
}

/* ---------------------------------- Reveal on scroll --------------------- */
/* JS arms elements with .reveal-armed right before observing them, so content
   stays visible by default if JS fails to load or run (progressive enhancement). */
[data-reveal].reveal-armed {
  opacity: 0;
  transform: translateY(22px);
}
[data-reveal].is-visible {
  animation: reveal-up 0.85s var(--ease) both;
  animation-delay: var(--delay, 0ms);
}
@keyframes reveal-up {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.pedestal[data-reveal].reveal-armed {
  transform: translateY(18px) scale(0.88) rotate(-1.5deg);
}
.pedestal[data-reveal].is-visible {
  animation: item-materialize 0.6s var(--ease) both;
  animation-delay: var(--delay, 0ms);
}
@keyframes item-materialize {
  0% {
    opacity: 0;
    transform: translateY(18px) scale(0.88) rotate(-1.5deg);
  }
  70% {
    opacity: 1;
    transform: translateY(0) scale(1.02) rotate(0.4deg);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1) rotate(0deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  [data-reveal] {
    opacity: 1;
    transform: none;
    animation: none !important;
  }
}

/* ---------------------------------- Header -------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  padding: 1.5rem 0;
  border-bottom: 1px solid transparent;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease), padding 0.3s var(--ease);
}
.site-header.is-scrolled {
  background: var(--header-scrim);
  backdrop-filter: blur(10px);
  border-bottom-color: var(--hairline);
  padding: 1.05rem 0;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.brand {
  font-family: var(--font-display);
  font-size: 1.28rem;
  letter-spacing: 0.02em;
}
.nav-links {
  display: none;
  align-items: center;
  gap: 2.1rem;
}
.nav-links a {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mut);
  position: relative;
  padding-bottom: 0.2rem;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 1px;
  background: var(--gold);
  transition: right 0.3s var(--ease);
}
.nav-links a:hover {
  color: var(--pearl);
}
.nav-links a:hover::after {
  right: 0;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.cart-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pearl);
  border: 1px solid var(--hairline);
  padding: 0.55rem 1.05rem;
  transition: border-color 0.2s;
}
.cart-link:hover {
  border-color: var(--gold);
}
.cart-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.15rem;
  height: 1.15rem;
  padding: 0 0.3rem;
  border-radius: 999px;
  background: var(--gold);
  color: var(--void);
  font-size: 0.68rem;
  font-weight: 700;
}
.cart-badge.is-popping {
  animation: badge-pop 0.4s var(--ease);
}
@keyframes badge-pop {
  0% {
    transform: scale(1);
  }
  40% {
    transform: scale(1.6);
    box-shadow: 0 0 10px var(--gold);
  }
  100% {
    transform: scale(1);
  }
}
.cart-badge[hidden] {
  display: none;
}
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.3rem;
  height: 2.3rem;
  flex-shrink: 0;
  border: 1px solid var(--hairline);
  color: var(--mut);
  transition: border-color 0.2s, color 0.2s, background-color 0.35s ease;
}
.theme-toggle:hover {
  border-color: var(--gold);
  color: var(--gold);
}
.theme-toggle svg {
  width: 15px;
  height: 15px;
}
.theme-toggle .icon-moon {
  display: none;
}
@media (prefers-color-scheme: light) {
  .theme-toggle .icon-sun {
    display: none;
  }
  .theme-toggle .icon-moon {
    display: block;
  }
}
:root[data-theme="light"] .theme-toggle .icon-sun {
  display: none;
}
:root[data-theme="light"] .theme-toggle .icon-moon {
  display: block;
}
:root[data-theme="dark"] .theme-toggle .icon-sun {
  display: block;
}
:root[data-theme="dark"] .theme-toggle .icon-moon {
  display: none;
}
.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.3rem;
  height: 2.3rem;
  border: 1px solid var(--hairline);
  font-size: 1.1rem;
  line-height: 1;
}
.nav-menu {
  display: none;
  flex-direction: column;
  gap: 0.2rem;
  padding: 1rem 1.75rem 0.5rem;
}
.nav-menu.is-open {
  display: flex;
}
.nav-menu a {
  padding: 0.6rem 0;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mut);
  border-bottom: 1px solid var(--hairline-soft);
}
.nav-menu a:hover {
  color: var(--gold);
}
@media (min-width: 720px) {
  .nav-links {
    display: flex;
  }
  .nav-toggle {
    display: none;
  }
  .nav-menu {
    display: none !important;
  }
}

/* ---------------------------------- Buttons -------------------------------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-family: var(--font-ui);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.95rem 1.9rem;
  border: 1px solid var(--gold);
  overflow: hidden;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s;
}
.btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: -60%;
  width: 40%;
  height: 100%;
  background: linear-gradient(115deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transform: skewX(-20deg);
  transition: left 0.55s ease;
  pointer-events: none;
}
.btn:hover::after {
  left: 130%;
}
@media (prefers-reduced-motion: reduce) {
  .btn::after {
    display: none;
  }
}
.btn-gold {
  background: var(--gold);
  color: var(--void);
  border-radius: 3px;
}
.btn-gold:hover {
  background: var(--gold-bright);
  border-color: var(--gold-bright);
}
/* Le chanfrein clippe l'outline standard : on bascule sur un anneau intérieur */
.btn-gold:focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 2px var(--void);
}
.btn-line {
  background: transparent;
  color: var(--gold);
}
.btn-line:hover {
  background: var(--gold);
  color: var(--void);
}
.btn-ghost {
  border-color: var(--hairline);
  color: var(--pearl);
}
.btn-ghost:hover {
  border-color: var(--pearl);
}
.btn-small {
  padding: 0.55rem 1.1rem;
  font-size: 0.68rem;
}

/* ---------------------------------- Marquee -------------------------------- */
.marquee {
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  overflow: hidden;
  padding: 0.85rem 0;
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 32s linear infinite;
}
.marquee:hover .marquee-track {
  animation-play-state: paused;
}
.marquee-track span {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mut);
  white-space: nowrap;
  padding-right: 2.2rem;
}
.marquee-track span::after {
  content: "◆";
  color: var(--gold);
  font-size: 0.55rem;
}
@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}
@media (prefers-reduced-motion: reduce) {
  .marquee-track {
    animation: none;
  }
}

/* ---------------------------------- Hero ----------------------------------- */
.hero {
  position: relative;
  padding: 4.5rem 0 5.5rem;
  overflow: hidden;
}
.hero .motes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.8;
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 3rem;
}
.ghost-num {
  position: absolute;
  left: -2rem;
  top: -1rem;
  font-family: var(--font-display);
  font-size: 15rem;
  line-height: 1;
  color: var(--ghost-color);
  z-index: 0;
  user-select: none;
  transition: transform 0.3s ease-out;
}
@media (prefers-reduced-motion: reduce) {
  .ghost-num {
    transition: none;
  }
}
.hero-copy > * {
  opacity: 0;
  animation: hero-line-in 0.8s var(--ease) both;
}
.hero-copy > *:nth-child(1) {
  animation-delay: 0.1s;
}
.hero-copy > *:nth-child(2) {
  animation-delay: 0.27s;
}
.hero-copy > *:nth-child(3) {
  animation-delay: 0.47s;
}
.hero-copy > *:nth-child(4) {
  animation-delay: 0.65s;
}
@keyframes hero-line-in {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero-copy > * {
    opacity: 1;
    animation: none;
  }
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 3.1rem;
  line-height: 1.14;
  text-wrap: balance;
  margin-top: 1rem;
}
.hero h1 em {
  font-style: italic;
  color: var(--gold);
}
.hero h1::first-letter {
  color: var(--gold);
  font-size: 1.18em;
}
.hero p.lead {
  margin-top: 1.25rem;
  color: var(--mut);
  max-width: 27rem;
  line-height: 1.65;
  font-size: 1.02rem;
}
.hero-actions {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.spot-frame {
  position: relative;
  aspect-ratio: 4/5;
  display: flex;
  align-items: center;
  justify-content: center;
  --spot-x: 50%;
  --spot-y: 32%;
  box-shadow: 0 0 var(--card-glow, 0px) var(--card-rarity, transparent);
  border: 1px solid var(--hairline);
  border-radius: 46% 46% 10px 10px / 20% 20% 4px 4px;
  opacity: 0;
  animation: hero-item-drop 0.9s var(--ease) 0.1s both;
  transition: --spot-x 0.6s var(--ease), --spot-y 0.6s var(--ease), box-shadow 0.3s ease;
}
.spot-frame::before {
  content: "";
  position: absolute;
  inset: -6%;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 38%, rgba(255, 246, 222, 0.95), transparent 60%);
  opacity: 0;
  animation: hero-flash 0.7s ease-out 0.9s;
  pointer-events: none;
  z-index: 3;
}
@keyframes hero-item-drop {
  0% {
    opacity: 0;
    transform: translateY(-34px) scale(0.86);
  }
  62% {
    opacity: 1;
    transform: translateY(5px) scale(1.03);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
@keyframes hero-flash {
  0% {
    opacity: 0;
  }
  18% {
    opacity: 0.85;
  }
  100% {
    opacity: 0;
  }
}
.spot-frame .glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--spot-x) var(--spot-y), var(--spotlight-glow-strong), transparent 58%);
}
/* Cercle d'invocation : sceau au sol sous la pièce légendaire, en rotation lente */
.arcane-wrap {
  position: absolute;
  left: 50%;
  top: 63%;
  width: 74%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%) rotateX(64deg);
  color: var(--r-legendaire);
  opacity: 0;
  animation: arcane-in 1.4s ease 2.15s forwards;
  pointer-events: none;
  z-index: 0;
}
@keyframes arcane-in {
  to {
    opacity: 0.55;
  }
}
.spot-frame .arcane-wrap svg {
  width: 100%;
  height: 100%;
}
.arcane-wrap .spin-slow {
  animation: arcane-spin 46s linear infinite;
  transform-origin: 50% 50%;
  transform-box: fill-box;
}
.arcane-wrap .spin-fast {
  animation: arcane-spin 28s linear infinite reverse;
  transform-origin: 50% 50%;
  transform-box: fill-box;
}
@keyframes arcane-spin {
  to {
    transform: rotate(360deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  .arcane-wrap {
    opacity: 0.55;
    animation: none;
  }
  .arcane-wrap .spin-slow,
  .arcane-wrap .spin-fast {
    animation: none;
  }
}
.spot-frame .mini-slot {
  position: relative;
  z-index: 1;
  width: 46%;
}
.spot-frame .mini-slot svg {
  width: 100%;
  filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.55));
}
.spot-frame .mini-slot.has-photo {
  width: 68%;
  height: 78%;
  overflow: hidden;
  border-radius: 42% 42% 8px 8px / 18% 18% 3px 3px;
}
.spot-frame .mini-slot.has-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.55));
}
.hud-corner.lg {
  width: 16px;
  height: 16px;
  border-width: 1.5px;
}
.rarity-badge.hero-rarity-badge {
  position: absolute;
  top: 1.1rem;
  right: 1.2rem;
}
/* Spécificité volontairement plus haute que [data-rarity="legendaire"] seul :
   le hero doit chaîner sa chute d'entrée PUIS la pulsation légendaire, pas l'une ou l'autre. */
.spot-frame[data-rarity="legendaire"] {
  animation: hero-item-drop 0.9s var(--ease) 0.1s both,
    legendary-pulse 2.6s ease-in-out 1.0s infinite;
}
@media (prefers-reduced-motion: reduce) {
  .spot-frame[data-rarity="legendaire"] {
    animation: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .spot-frame {
    opacity: 1;
    animation: none;
    transition: none;
  }
  .spot-frame::before {
    display: none;
  }
}
.price-float {
  position: absolute;
  bottom: 7%;
  right: 6%;
  text-align: right;
  z-index: 2;
}
.price-float .old {
  display: block;
  font-size: 0.85rem;
  color: var(--mut);
  text-decoration: line-through;
}
.price-float .now {
  font-family: var(--font-display);
  font-size: 2.1rem;
}
.price-float .lot {
  display: block;
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.35rem;
}

/* ---------------------------------- Section headers ------------------------ */
.section-head {
  text-align: center;
  padding: 1rem 0 2.75rem;
}
.section-head h2 {
  font-family: var(--font-display);
  font-size: 1.95rem;
  margin-top: 0.55rem;
  text-wrap: balance;
}
.section-head.left {
  text-align: left;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.section-head.left a {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}
.section-head.left a:hover {
  color: var(--gold-bright);
}

/* ---------------------------------- Value strip ----------------------------- */
.value-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  margin-bottom: 4rem;
}
.value-strip div {
  padding: 2.1rem 1.5rem;
  border-right: 1px solid var(--hairline);
}
.value-strip div:last-child {
  border-right: none;
}
.value-strip h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--gold);
}
.value-strip h3::before {
  content: "◆";
  margin-right: 0.45rem;
  font-size: 0.6em;
  vertical-align: 0.22em;
}
.value-strip p {
  margin-top: 0.5rem;
  font-size: 0.88rem;
  color: var(--mut);
  line-height: 1.55;
}
@media (max-width: 980px) and (min-width: 861px) {
  .value-strip {
    grid-template-columns: repeat(2, 1fr);
  }
  .value-strip div:nth-child(2n) {
    border-right: none;
  }
  .value-strip div:nth-child(n + 3) {
    border-top: 1px solid var(--hairline);
  }
}

/* ---------------------------------- Filters --------------------------------- */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 2.5rem;
}
.filter-btn {
  border: 1px solid var(--hairline);
  border-radius: 3px;
  color: var(--mut);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.55rem 1.1rem;
}
.filter-btn:hover {
  border-color: var(--gold);
  color: var(--pearl);
}
.filter-btn.is-active {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--void);
  border-radius: 3px;
}
.filter-btn.is-active:focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 2px var(--void);
}

/* ---------------------------------- Pedestal grid --------------------------- */
.pedestal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
  margin-bottom: 4.5rem;
}
.pedestal {
  position: relative;
  background: var(--void-2);
  border: 1px solid var(--card-rarity, var(--hairline));
  border-radius: 6px;
  padding: 2.1rem 1.6rem 1.85rem;
  text-align: center;
  --spot-x: 50%;
  --spot-y: 30%;
  box-shadow: 0 0 var(--card-glow, 0px) var(--card-rarity, transparent),
    0 16px 30px -20px rgba(0, 0, 0, 0.6);
  transition: --spot-x 0.5s var(--ease), --spot-y 0.5s var(--ease), background 0.3s,
    border-color 0.35s ease, box-shadow 0.3s ease, transform 0.2s ease-out;
}
.pedestal:hover {
  background: var(--void-3);
  box-shadow: 0 0 calc(var(--card-glow, 0px) + 6px) var(--card-rarity, transparent),
    0 22px 40px -18px rgba(0, 0, 0, 0.65);
}
/* Reflet qui balaie la carte au survol, comme un objet qu'on inspecte en jeu */
.pedestal {
  overflow: hidden;
}
.pedestal::after {
  content: "";
  position: absolute;
  top: 0;
  left: -75%;
  width: 50%;
  height: 100%;
  background: linear-gradient(105deg, transparent, var(--glint), transparent);
  transform: skewX(-18deg);
  transition: left 0.6s ease;
  pointer-events: none;
  z-index: 2;
}
.pedestal:hover::after {
  left: 125%;
}
@media (prefers-reduced-motion: reduce) {
  .pedestal::after {
    display: none;
  }
}
[data-rarity="legendaire"] {
  animation: legendary-pulse 2.6s ease-in-out infinite;
}
@keyframes legendary-pulse {
  0%,
  100% {
    box-shadow: 0 0 var(--card-glow, 14px) var(--card-rarity, transparent),
      0 16px 30px -20px rgba(0, 0, 0, 0.6);
  }
  50% {
    box-shadow: 0 0 calc(var(--card-glow, 14px) + 10px) var(--card-rarity, transparent),
      0 16px 30px -20px rgba(0, 0, 0, 0.6);
  }
}
@media (prefers-reduced-motion: reduce) {
  .pedestal {
    transition: background 0.3s, box-shadow 0.3s ease;
  }
  [data-rarity="legendaire"] {
    animation: none;
  }
}
.hud-corner {
  position: absolute;
  width: 10px;
  height: 10px;
  pointer-events: none;
  border: 1px solid var(--gold);
  opacity: 0.55;
}
.hud-corner.tl {
  top: 7px;
  left: 7px;
  border-right: none;
  border-bottom: none;
}
.hud-corner.tr {
  top: 7px;
  right: 7px;
  border-left: none;
  border-bottom: none;
}
.hud-corner.bl {
  bottom: 7px;
  left: 7px;
  border-right: none;
  border-top: none;
}
.hud-corner.br {
  bottom: 7px;
  right: 7px;
  border-left: none;
  border-top: none;
}
/* Sceau de cire : seule l'initiale de la rareté reste visible (le texte
   complet demeure dans le DOM pour les lecteurs d'écran). */
.rarity-badge {
  position: absolute;
  top: 0.85rem;
  right: 0.9rem;
  display: inline-block;
  width: 2rem;
  height: 2rem;
  line-height: 2rem;
  text-align: center;
  border-radius: 50%;
  background: var(--card-rarity, var(--mut));
  box-shadow: 0 0 0 2px var(--void-2), 0 0 7px var(--card-rarity, transparent);
  font-size: 0;
}
.rarity-badge::first-letter {
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--void);
}
.rarity-badge.is-inline {
  position: static;
  box-shadow: 0 0 0 2px var(--void), 0 0 7px var(--card-rarity, transparent);
}
.pedestal .stage {
  position: relative;
  height: 8.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pedestal .stage .glow {
  position: absolute;
  inset: -25% -10%;
  background: radial-gradient(circle at var(--spot-x) var(--spot-y), var(--spotlight-glow-soft), transparent 62%);
  opacity: 0;
  transition: opacity 0.3s;
}
.pedestal:hover .stage .glow {
  opacity: 1;
}
.pedestal .stage svg {
  position: relative;
  z-index: 1;
  width: 58%;
  transition: transform 0.4s var(--ease);
}
.pedestal:hover .stage svg {
  transform: translateY(-4px) scale(1.03);
}
.pedestal .stage.has-photo {
  overflow: hidden;
  border: 1px solid var(--hairline);
  border-radius: 50% 50% 6px 6px / 24% 24% 5px 5px;
}
.pedestal .stage.has-photo img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  transition: transform 0.4s var(--ease);
}
.pedestal:hover .stage.has-photo img {
  transform: scale(1.05);
}
.pedestal .lot {
  position: absolute;
  top: 0.9rem;
  left: 0.9rem;
  font-family: var(--font-ui);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--mut-dim);
}
.pedestal .cat {
  margin-top: 1.2rem;
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}
.role-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mut);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  padding: 0.15rem 0.55rem 0.15rem 0.4rem;
}
.role-tag svg {
  width: 11px;
  height: 11px;
  flex-shrink: 0;
}
.pedestal .role-tag {
  margin-top: 0.5rem;
}
.gm-hook {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin: 1.5rem 0;
  padding-left: 1rem;
  border-left: 2px solid var(--gold);
}
.gm-hook svg {
  width: 16px;
  height: 16px;
  margin-top: 0.35rem;
  color: var(--gold);
  flex-shrink: 0;
}
.gm-hook p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.08rem;
  line-height: 1.5;
  color: var(--pearl);
}
.pedestal .name {
  margin-top: 0.4rem;
  font-size: 1.02rem;
}
.pedestal .price-row {
  margin-top: 0.65rem;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.5rem;
}
.pedestal .price {
  font-family: var(--font-display);
  font-size: 1.35rem;
}
.pedestal .old {
  font-size: 0.78rem;
  color: var(--mut-dim);
  text-decoration: line-through;
}
.pedestal .add-btn {
  margin-top: 0.9rem;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mut);
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
}
.pedestal .add-btn:hover {
  color: var(--gold);
  border-color: var(--gold);
}
@media (max-width: 860px) {
  .pedestal-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ---------------------------------- Product detail --------------------------- */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mut);
  margin: 2rem 0 0;
}
.back-link:hover {
  color: var(--gold);
}
.product-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  padding: 2rem 0 3.5rem;
  align-items: start;
}
.product-stage {
  position: relative;
  aspect-ratio: 4/5;
  border: 1px solid var(--card-rarity, var(--hairline));
  box-shadow: 0 0 var(--card-glow, 0px) var(--card-rarity, transparent);
  display: flex;
  align-items: center;
  justify-content: center;
  --spot-x: 50%;
  --spot-y: 32%;
  transition: --spot-x 0.5s var(--ease), --spot-y 0.5s var(--ease), box-shadow 0.3s ease;
}
.product-stage .glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--spot-x) var(--spot-y), var(--spotlight-glow), transparent 58%);
}
.product-stage svg {
  position: relative;
  z-index: 1;
  width: 44%;
  filter: drop-shadow(0 26px 34px rgba(0, 0, 0, 0.5));
}
.product-stage.has-photo {
  overflow: hidden;
  border-radius: 46% 46% 8px 8px / 20% 20% 4px 4px;
}
.product-stage.has-photo img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
}
.product-lot {
  font-family: var(--font-ui);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--mut-dim);
}
.product-detail h1 {
  font-family: var(--font-display);
  font-size: 2.1rem;
  margin-top: 0.5rem;
  text-wrap: balance;
}
.product-detail h1::first-letter {
  color: var(--gold);
  font-size: 1.18em;
}
.product-price-row {
  display: flex;
  align-items: baseline;
  gap: 0.85rem;
  margin: 1.1rem 0 1.4rem;
}
.product-price-row .price {
  font-family: var(--font-display);
  font-size: 1.75rem;
}
.product-price-row .old {
  font-size: 1rem;
  color: var(--mut-dim);
  text-decoration: line-through;
}
.product-desc {
  color: var(--mut);
  line-height: 1.7;
  font-size: 0.98rem;
  max-width: 30rem;
}
.spec-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.2rem;
  margin: 1.8rem 0;
  font-size: 0.86rem;
}
.spec-grid dt {
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mut-dim);
}
.spec-grid dd {
  margin-top: 0.15rem;
  font-weight: 600;
}
.pip-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.pip-meter {
  display: flex;
  gap: 0.25rem;
}
.pip {
  width: 13px;
  height: 6px;
  border-radius: 2px;
  background: var(--hairline);
}
.pip.is-filled {
  background: var(--card-rarity, var(--gold));
  box-shadow: 0 0 5px var(--card-rarity, transparent);
}
.certificate {
  margin-top: 1.6rem;
  border: 1px dashed var(--hairline);
  padding: 1.2rem 1.3rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.certificate .seal {
  flex-shrink: 0;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--gold-bright), var(--gold) 55%, #8a6b2e 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--void);
}
.certificate .cert-label {
  font-size: 0.64rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}
.certificate p {
  margin-top: 0.35rem;
  font-size: 0.85rem;
  color: var(--mut);
  line-height: 1.55;
}
@media (max-width: 860px) {
  .product-detail {
    grid-template-columns: 1fr;
  }
}

/* ---------------------------------- Boutique --------------------------------- */
.page-head {
  padding: 3.25rem 0 0.5rem;
}
.page-head .eyebrow {
  display: block;
  margin-bottom: 0.6rem;
}
.page-head h1 {
  font-family: var(--font-display);
  font-size: 2.3rem;
  text-wrap: balance;
}
.page-head h1::first-letter {
  color: var(--gold);
  font-size: 1.18em;
}
/* Ornement de titre : trait doré, losange, trait fuyant — façon bannière de quête */
.section-head.left h2,
.page-head h1 {
  position: relative;
  padding-bottom: 1.05rem;
}
.section-head.left h2::after,
.page-head h1::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 132px;
  height: 7px;
  background-repeat: no-repeat;
  background-image:
    radial-gradient(circle at 58px 3.5px, var(--gold) 2.4px, transparent 3px),
    linear-gradient(90deg, var(--gold), var(--gold)),
    linear-gradient(90deg, var(--gold), transparent);
  background-size: 100% 100%, 48px 1px, 62px 1px;
  background-position: 0 0, 0 3px, 68px 3px;
}
.page-head p.lead {
  margin-top: 0.85rem;
  max-width: 36rem;
  color: var(--mut);
  line-height: 1.6;
}
.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--hairline);
  margin-top: 2.5rem;
}
.info-card {
  padding: 2rem;
  border-right: 1px solid var(--hairline);
}
.info-card:last-child {
  border-right: none;
}
.info-card h2 {
  font-family: var(--font-display);
  color: var(--gold);
  font-size: 1.15rem;
}
.info-card p {
  margin-top: 0.4rem;
  font-size: 0.92rem;
  color: var(--mut);
}
table.hours {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0.9rem;
  font-size: 0.88rem;
}
table.hours td {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--hairline-soft);
}
table.hours tr:last-child td {
  border-bottom: none;
}
table.hours td:last-child {
  text-align: right;
  color: var(--mut);
  font-variant-numeric: tabular-nums;
}
.map-placeholder {
  margin-top: 1.75rem;
  height: 15rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px dashed var(--hairline);
  color: var(--mut-dim);
  font-size: 0.85rem;
  text-align: center;
  padding: 1rem;
  position: relative;
  overflow: hidden;
}
@media (max-width: 720px) {
  .info-grid {
    grid-template-columns: 1fr;
  }
  .info-card {
    border-right: none;
    border-bottom: 1px solid var(--hairline);
  }
  .info-card:last-child {
    border-bottom: none;
  }
}

/* ---------------------------------- À propos --------------------------------- */
.prose {
  max-width: 40rem;
  margin: 2.5rem auto 5rem;
  padding: 0 1.75rem;
}
.prose p {
  line-height: 1.75;
  color: var(--mut);
  margin-bottom: 1.2rem;
  font-size: 1rem;
}
.prose p:first-of-type::first-letter {
  font-family: var(--font-display);
  font-size: 3.2rem;
  float: left;
  line-height: 0.8;
  padding: 0.1rem 0.4rem 0 0;
  color: var(--gold);
}

/* ---------------------------------- Panier ------------------------------------ */
.cart-line {
  display: grid;
  grid-template-columns: 4.5rem 1fr auto auto auto;
  align-items: center;
  gap: 1.25rem;
  border-bottom: 1px solid var(--hairline);
  padding: 1.25rem 0;
  transition: opacity 0.25s ease, transform 0.25s ease, max-height 0.25s ease,
    border-color 0.35s ease;
}
.cart-line.is-leaving {
  opacity: 0;
  transform: translateX(12px);
}
.cart-line-thumb {
  width: 4.5rem;
  height: 4.5rem;
  border: 1px solid var(--hairline);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.cart-line-thumb .glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 30%, var(--spotlight-glow), transparent 65%);
}
.cart-line-thumb svg {
  width: 62%;
  position: relative;
  z-index: 1;
}
.cart-line-thumb.has-photo {
  overflow: hidden;
  border-radius: 4px;
}
.cart-line-thumb.has-photo img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
}
.cart-line-info a {
  font-weight: 600;
}
.cart-line-info a:hover {
  color: var(--gold);
}
.cart-line-info p {
  margin-top: 0.2rem;
  font-size: 0.82rem;
  color: var(--mut);
}
.qty-control {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.qty-btn {
  width: 1.9rem;
  height: 1.9rem;
  border: 1px solid var(--hairline);
  font-size: 1rem;
  line-height: 1;
}
.qty-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
}
.qty-value {
  width: 1.4rem;
  text-align: center;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.cart-line-total {
  min-width: 4.5rem;
  text-align: right;
  font-family: var(--font-display);
  font-size: 1.05rem;
}
.remove-btn {
  color: var(--mut-dim);
  font-size: 0.95rem;
}
.remove-btn:hover {
  color: var(--garnet-bright);
}
.cart-footer {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.9rem;
  padding-top: 1.75rem;
  margin-top: 0.5rem;
}
.cart-total {
  font-family: var(--font-display);
  font-size: 1.4rem;
  transition: color 0.2s;
}
.cart-total.is-pulsing {
  animation: pulse-gold 0.5s ease;
}
@keyframes pulse-gold {
  0% {
    color: var(--gold-bright);
    transform: scale(1.05);
  }
  100% {
    color: var(--pearl);
    transform: scale(1);
  }
}
.cart-actions {
  display: flex;
  gap: 0.9rem;
}
.empty-state {
  max-width: 30rem;
  margin: 0 auto;
  padding: 6rem 1rem;
  text-align: center;
}
.empty-state h1 {
  font-family: var(--font-display);
  font-size: 2rem;
  text-wrap: balance;
}
.empty-state p {
  margin-top: 1rem;
  color: var(--mut);
}
.empty-state .btn {
  margin-top: 2rem;
}
.loader-ring {
  width: 2.75rem;
  height: 2.75rem;
  margin: 0 auto 1.75rem;
  border-radius: 50%;
  border: 2px solid var(--hairline);
  border-top-color: var(--gold);
  animation: loader-spin 0.85s linear infinite;
}
@keyframes loader-spin {
  to {
    transform: rotate(360deg);
  }
}
@media (prefers-reduced-motion: reduce) {
  .loader-ring {
    animation: loader-pulse 1.6s ease-in-out infinite;
  }
}
@keyframes loader-pulse {
  0%,
  100% {
    opacity: 0.35;
  }
  50% {
    opacity: 1;
  }
}
@media (max-width: 640px) {
  .cart-line {
    grid-template-columns: 3.5rem 1fr;
    grid-template-areas: "thumb info" "thumb qty" "thumb total-remove";
    row-gap: 0.5rem;
  }
  .cart-line-thumb {
    grid-area: thumb;
  }
  .cart-line-info {
    grid-area: info;
  }
  .qty-control {
    grid-area: qty;
  }
  .cart-line-total {
    text-align: left;
  }
}

/* ---------------------------------- Footer ------------------------------------ */
.site-footer {
  border-top: 1px solid var(--hairline);
  margin-top: auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  padding: 3rem 0 2.25rem;
}
.footer-grid h3 {
  font-family: var(--font-display);
  color: var(--gold);
  font-size: 1.05rem;
}
.footer-grid p {
  margin-top: 0.4rem;
  font-size: 0.88rem;
  color: var(--mut);
  line-height: 1.55;
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.5rem;
  font-size: 0.85rem;
}
.footer-links a {
  color: var(--mut);
}
.footer-links a:hover {
  color: var(--gold);
}
@media (max-width: 720px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
}

/* ---------------------------------- Responsive hero/misc ---------------------- */
@media (max-width: 860px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero h1 {
    font-size: 2.35rem;
  }
  .ghost-num {
    display: none;
  }
  .value-strip {
    grid-template-columns: 1fr;
  }
  .value-strip div {
    border-right: none;
    border-bottom: 1px solid var(--hairline);
  }
  .value-strip div:last-child {
    border-bottom: none;
  }
}

/* ==========================================================================
   Ajouts version PHP : liens marketplace, galerie produit, état vendu
   ========================================================================== */

/* Onglet de navigation actif */
.nav-links a.is-active {
  color: var(--pearl);
}
.nav-links a.is-active::after {
  right: 0;
}

/* Les filtres du catalogue sont désormais des liens (filtrage côté serveur) */
a.filter-btn {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

/* Boutons "Acheter sur ..." de la carte produit.
   Reprennent le gabarit de l'ancien bouton panier. */
.pedestal .add-btn {
  display: inline-block;
  text-decoration: none;
  background: none;
  cursor: pointer;
}
.pedestal .add-btn + .add-btn {
  margin-top: 0.35rem;
}
.pedestal .add-btn.is-etsy:hover {
  color: var(--etsy);
  border-color: var(--etsy);
}
.pedestal .add-btn.is-ebay:hover {
  color: var(--ebay);
  border-color: var(--ebay);
}
.add-btn.is-disabled,
.pedestal .add-btn.is-disabled {
  color: var(--mut-dim);
  cursor: default;
  border-color: transparent;
}
.add-btn.is-disabled:hover,
.pedestal .add-btn.is-disabled:hover {
  color: var(--mut-dim);
  border-color: transparent;
}

:root {
  --etsy: #f1641e;
  --ebay: #4a7dff;
}

/* Fiche produit : rangée de boutons d'achat */
.buy-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 0.4rem;
}
.buy-row .btn.is-disabled {
  border-color: var(--hairline);
  color: var(--mut-dim);
  cursor: default;
  pointer-events: none;
}

/* Fiche produit : vignettes de la galerie */
.gallery-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.9rem;
}
.gallery-thumb {
  width: 60px;
  height: 60px;
  padding: 0;
  border: 1px solid var(--hairline);
  border-radius: 3px;
  overflow: hidden;
  cursor: pointer;
  background: none;
  opacity: 0.6;
  transition: opacity 0.25s var(--ease), border-color 0.25s var(--ease);
}
.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gallery-thumb:hover,
.gallery-thumb.is-active {
  opacity: 1;
  border-color: var(--card-rarity, var(--gold));
}

/* Pièce déjà vendue */
.sold-tag {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--void);
  background: var(--mut);
  padding: 0.28rem 0.6rem;
  border-radius: 2px;
}

/* La vignette du catalogue mène à la fiche produit */
.pedestal a.stage {
  cursor: pointer;
}
.pedestal a.stage.has-photo img {
  transition: transform 0.45s var(--ease);
}
.pedestal a.stage.has-photo:hover img {
  transform: scale(1.04);
}
@media (prefers-reduced-motion: reduce) {
  .pedestal a.stage.has-photo:hover img {
    transform: none;
  }
}

/* ==========================================================================
   Pièces peintes : halo par niveau de finition, visionneuse, avant/après
   ========================================================================== */

/* Les pièces de vitrine pulsent, comme les légendaires auparavant */
[data-finition="vitrine"] {
  animation: legendary-pulse 2.6s ease-in-out infinite;
}
.spot-frame[data-finition="vitrine"] {
  animation: hero-item-drop 0.9s var(--ease) 0.1s both,
    legendary-pulse 2.6s ease-in-out 1s infinite;
}
@media (prefers-reduced-motion: reduce) {
  [data-finition="vitrine"],
  .spot-frame[data-finition="vitrine"] {
    animation: none;
  }
}

/* Mention « pièce unique » sous le prix */
.unique-note {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--gold);
  margin: 0.2rem 0 1.1rem;
}
.unique-note svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

/* Précision sous une caractéristique (ex. ce que veut dire « Vitrine ») */
.spec-note {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.76rem;
  line-height: 1.45;
  color: var(--mut-dim);
}

/* ---------------------------------- Bouton de zoom sur le socle ----------- */
.zoom-btn {
  position: absolute;
  z-index: 3;
  bottom: 0.7rem;
  right: 0.7rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.8rem;
  font-family: var(--font-ui);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--pearl);
  background: rgba(13, 12, 11, 0.72);
  border: 1px solid var(--hairline);
  border-radius: 3px;
  cursor: pointer;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), border-color 0.3s;
}
.product-stage:hover .zoom-btn,
.zoom-btn:focus-visible {
  opacity: 1;
  transform: translateY(0);
}
.zoom-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
}
.zoom-btn svg {
  width: 14px;
  height: 14px;
}
@media (hover: none) {
  .zoom-btn {
    opacity: 1;
    transform: none;
  }
}

/* ---------------------------------- Visionneuse plein écran --------------- */
body.lb-open {
  overflow: hidden;
}
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(8, 7, 6, 0.96);
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox[hidden] {
  display: none;
}
.lb-canvas {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: zoom-in;
}
.lb-canvas.is-zoomed {
  cursor: grab;
}
.lb-canvas.is-dragging {
  cursor: grabbing;
}
.lb-canvas img {
  max-width: 92vw;
  max-height: 86vh;
  object-fit: contain;
  transform-origin: center center;
  transition: transform 0.18s ease-out;
  user-select: none;
  -webkit-user-drag: none;
}
.lb-canvas.is-dragging img {
  transition: none;
}
.lb-close,
.lb-nav {
  position: absolute;
  z-index: 2;
  background: rgba(13, 12, 11, 0.6);
  border: 1px solid var(--hairline);
  color: var(--pearl);
  cursor: pointer;
  line-height: 1;
  transition: border-color 0.25s, color 0.25s;
}
.lb-close:hover,
.lb-nav:hover {
  border-color: var(--gold);
  color: var(--gold);
}
.lb-close {
  top: 1.1rem;
  right: 1.2rem;
  width: 40px;
  height: 40px;
  font-size: 1.6rem;
  border-radius: 3px;
}
.lb-nav {
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 64px;
  font-size: 2rem;
  border-radius: 3px;
}
.lb-nav[hidden] {
  display: none;
}
.lb-prev { left: 1.2rem; }
.lb-next { right: 1.2rem; }
.lb-foot {
  position: absolute;
  bottom: 1.1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.78rem;
  color: var(--mut);
  text-align: center;
  pointer-events: none;
}
.lb-hint {
  font-size: 0.68rem;
  color: var(--mut-dim);
  letter-spacing: 0.06em;
}
@media (max-width: 700px) {
  .lb-nav { width: 36px; height: 52px; font-size: 1.5rem; }
  .lb-hint { display: none; }
}

/* ---------------------------------- Comparatif avant / après -------------- */
.before-after {
  margin-top: 1.4rem;
}
.ba-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.6rem;
}
.ba-head svg {
  width: 15px;
  height: 15px;
}
.ba-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--hairline);
  border-radius: 3px;
  aspect-ratio: 4/5;
  background: var(--void-2);
  user-select: none;
}
.ba-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
  -webkit-user-drag: none;
}
/* L'image « avant » couvre tout le cadre : on la rogne au lieu de la
   rétrécir, sinon elle se déformerait à mesure que le curseur bouge. */
.ba-before-wrap {
  position: absolute;
  inset: 0;
  width: 100%;
  clip-path: inset(0 calc(100% - var(--ba-pos, 50%)) 0 0);
}
.ba-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  background: var(--gold);
  transform: translateX(-1px);
  pointer-events: none;
  z-index: 2;
}
.ba-handle span {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 34px;
  height: 34px;
  margin: -17px 0 0 -17px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  background: rgba(13, 12, 11, 0.8);
}
.ba-handle span::before,
.ba-handle span::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  margin-top: -5px;
}
.ba-handle span::before {
  left: 7px;
  border-right: 6px solid var(--gold);
}
.ba-handle span::after {
  right: 7px;
  border-left: 6px solid var(--gold);
}
.ba-range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
  z-index: 3;
}
.ba-range:focus-visible + .ba-tag,
.ba-range:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: -2px;
}
.ba-tag {
  position: absolute;
  bottom: 0.6rem;
  z-index: 2;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.24rem 0.55rem;
  border-radius: 2px;
  background: rgba(13, 12, 11, 0.72);
  border: 1px solid var(--hairline);
  color: var(--mut);
  pointer-events: none;
}
.ba-tag-left { left: 0.6rem; }
.ba-tag-right { right: 0.6rem; color: var(--gold); border-color: var(--gold); }

/* Photo « avant peinture » repérée dans l'administration */
.image-item.is-nue {
  border-color: rgba(91, 143, 207, 0.5);
}

/* ==========================================================================
   Peinture sur commande
   ========================================================================== */
.commande-grid {
  display: grid;
  grid-template-columns: 20rem 1fr;
  gap: 2.5rem;
  align-items: start;
  margin-top: 2.5rem;
}
@media (max-width: 900px) {
  .commande-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.commande-aside h2 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  margin: 0 0 1rem;
}
.niveau {
  border-left: 2px solid var(--card-rarity, var(--hairline));
  padding: 0.2rem 0 0.2rem 0.9rem;
  margin-bottom: 1.1rem;
}
.niveau-head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.3rem;
}
.niveau-head strong {
  font-size: 0.9rem;
  letter-spacing: 0.02em;
}
.niveau p {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--mut);
}
.commande-note {
  font-size: 0.78rem;
  line-height: 1.55;
  color: var(--mut-dim);
  border-top: 1px solid var(--hairline);
  padding-top: 1rem;
  margin-top: 1.4rem;
}

/* ---------------------------------- Formulaire --------------------------- */
.commande-form {
  border: 1px solid var(--hairline);
  border-radius: 3px;
  padding: 1.8rem;
  background: rgba(255, 246, 222, 0.015);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
}
@media (max-width: 560px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}
.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 1.1rem;
}
.form-field label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mut);
}
.commande-form input[type="text"],
.commande-form input[type="email"],
.commande-form input[type="tel"],
.commande-form input[type="number"],
.commande-form select,
.commande-form textarea {
  width: 100%;
  background: var(--void-2);
  border: 1px solid var(--hairline);
  border-radius: 3px;
  color: var(--pearl);
  font-family: var(--font-ui, inherit);
  font-size: 0.92rem;
  padding: 0.65rem 0.8rem;
  transition: border-color 0.25s var(--ease);
}
.commande-form input:focus,
.commande-form select:focus,
.commande-form textarea:focus {
  outline: none;
  border-color: var(--gold);
}
.commande-form textarea {
  resize: vertical;
  line-height: 1.55;
}
.commande-form input[type="file"] {
  font-size: 0.82rem;
  color: var(--mut);
}
.form-hint {
  font-size: 0.75rem;
  color: var(--mut-dim);
  line-height: 1.45;
}
.form-error {
  font-size: 0.78rem;
  color: #cf5b4e;
}

/* Champ piège : masqué sans display:none, que les robots remplissent quand même */
.pot-de-miel {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ---------------------------------- Confirmation ------------------------- */
.commande-ok {
  max-width: 34rem;
  margin: 3rem auto;
  text-align: center;
  border: 1px solid var(--gold);
  border-radius: 3px;
  padding: 2.5rem 2rem;
}
.commande-ok svg {
  width: 34px;
  height: 34px;
  color: var(--gold);
  margin-bottom: 0.8rem;
}
.commande-ok h2 {
  font-family: var(--font-display);
  font-size: 1.7rem;
  margin: 0 0 0.6rem;
}
.commande-ok p {
  color: var(--mut);
  margin-bottom: 1.6rem;
}
