/* Fiche lot : plans du catalogue + informations GraphQL */
.lot-panel {
  position: fixed; z-index: 4; top: 22px; right: 22px; bottom: 22px;
  width: min(440px, calc(100vw - 44px));
  display: flex; flex-direction: column;
  background: rgba(16, 20, 18, 0.9); color: var(--paper);
  border: 1px solid var(--line); border-radius: 18px;
  backdrop-filter: blur(16px); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
  transform: translateX(calc(100% + 40px)); opacity: 0;
  transition: transform 0.28s ease, opacity 0.28s ease;
  font-family: Outfit, sans-serif;
}
.lot-panel.open { transform: none; opacity: 1; }
.lot-panel header { padding: 18px 18px 12px; border-bottom: 1px solid var(--line); position: relative; }
.lot-panel .lp-close {
  position: absolute; top: 14px; right: 14px; width: 32px; height: 32px;
  border-radius: 10px; border: 1px solid var(--line); background: rgba(255,255,255,0.06);
  color: var(--paper); font-size: 18px; line-height: 1; cursor: pointer;
}
.lot-panel h2 { font-family: Fraunces, serif; font-weight: 560; font-size: 30px; line-height: 1; margin: 6px 40px 4px 0; letter-spacing: -0.02em; }
.lot-panel .lp-sub { margin: 0; color: var(--muted); font-size: 13px; }
.lot-panel .lp-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.lp-pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 600; background: rgba(255,255,255,0.07); border: 1px solid var(--line);
}
.lp-pill i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.lot-panel .lp-tabs { display: flex; gap: 4px; padding: 10px 14px 0; }
.lot-panel .lp-tabs button {
  flex: 1; border: 1px solid var(--line); background: rgba(255,255,255,0.04); color: var(--paper);
  font: 500 13px Outfit, sans-serif; padding: 8px 10px; border-radius: 999px; cursor: pointer;
}
.lot-panel .lp-tabs button.on { background: var(--copper); color: #23180e; border-color: transparent; }
.lot-panel .lp-body { flex: 1; overflow: auto; padding: 14px 18px 18px; }
.lot-panel .lp-section[hidden] { display: none; }
.lp-figure { margin: 0 0 14px; }
.lp-figure .lp-img {
  display: block; width: 100%; padding: 10px; border-radius: 14px; cursor: zoom-in;
  background: #f7f4ee; border: 1px solid var(--line);
}
.lp-figure img { display: block; width: 100%; height: auto; max-height: 52vh; object-fit: contain; }
.lp-figure figcaption { margin-top: 6px; color: var(--muted); font-size: 11px; line-height: 1.45; display: flex; justify-content: space-between; gap: 8px; }
.lp-figure figcaption button { border: 0; background: none; color: var(--copper); cursor: pointer; font: 600 11px Outfit, sans-serif; padding: 0; }
.lp-empty {
  padding: 22px 16px; border-radius: 14px; text-align: center;
  border: 1px dashed rgba(244, 239, 230, 0.25); color: var(--muted); font-size: 13px; line-height: 1.5;
}
.lp-empty b { display: block; color: var(--paper); font-size: 14px; margin-bottom: 4px; }
.lp-note { margin: 0 0 12px; padding: 8px 10px; border-radius: 10px; font-size: 12px; line-height: 1.45; background: rgba(240, 162, 2, 0.12); border: 1px solid rgba(240, 162, 2, 0.35); color: #f6dfb0; }
.lp-note.ok { background: rgba(60, 186, 111, 0.12); border-color: rgba(60, 186, 111, 0.35); color: #c9f0d6; }
.lp-note.err { background: rgba(226, 75, 75, 0.12); border-color: rgba(226, 75, 75, 0.4); color: #f6c4c4; }
.lp-note button { margin-left: 6px; border: 1px solid currentColor; background: none; color: inherit; border-radius: 999px; padding: 1px 8px; font: 600 11px Outfit, sans-serif; cursor: pointer; }
.lp-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0; }
.lp-fields div { padding: 8px 10px; border-radius: 10px; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.05); min-width: 0; }
.lp-fields div.wide { grid-column: 1 / -1; }
.lp-fields dt { font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.lp-fields dd { margin: 2px 0 0; font-size: 14px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.lp-fields dd.nil { color: rgba(244,239,230,0.35); }
.lp-skel { height: 46px; border-radius: 10px; background: linear-gradient(90deg, rgba(255,255,255,0.04), rgba(255,255,255,0.1), rgba(255,255,255,0.04)); background-size: 200% 100%; animation: lp-shimmer 1.2s linear infinite; }
@keyframes lp-shimmer { to { background-position: -200% 0; } }
.lp-h { margin: 16px 0 8px; font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--copper); font-weight: 600; }

.lp-lightbox { position: fixed; inset: 0; z-index: 6; display: none; background: rgba(8, 10, 9, 0.94); }
.lp-lightbox.open { display: block; }
.lp-lightbox .lp-stage { position: absolute; inset: 0; overflow: hidden; cursor: grab; touch-action: none; }
.lp-lightbox .lp-stage:active { cursor: grabbing; }
.lp-lightbox img { position: absolute; left: 50%; top: 50%; max-width: 92vw; max-height: 86vh; transform-origin: center; user-select: none; -webkit-user-drag: none; background: #f7f4ee; border-radius: 8px; }
.lp-lightbox .lp-tools { position: absolute; top: 18px; right: 18px; display: flex; gap: 6px; }
.lp-lightbox .lp-tools button { width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line); background: var(--glass); color: var(--paper); font: 600 16px Outfit, sans-serif; cursor: pointer; }
.lp-lightbox .lp-cap { position: absolute; left: 18px; bottom: 16px; color: var(--muted); font-size: 12px; }
@media (max-width: 720px) {
  .lot-panel { top: auto; left: 12px; right: 12px; bottom: 12px; width: auto; height: 70vh; }
}
