/* Preuve juridique : une pièce sous scellés et son registre. Simuler une modification non
   déclarée rompt les scellés et invalide la pièce. Hero sombre, comme la maquette. */

.sl-hero--lg {
  background: radial-gradient(ellipse 55% 65% at 75% 45%, rgba(200, 30, 30, 0.18), transparent 66%), var(--ps-ember);
  color: #fff;
}

.ps-page .sl-hero--lg .sl-h1 {
  color: #fff;
}

.sl-hero--lg .sl-crumbs,
.ps-page main .sl-hero--lg .sl-crumbs a {
  color: var(--ps-faint-dark);
}

.ps-page main .sl-hero--lg .sl-crumbs a:hover,
.sl-hero--lg .sl-crumbs [aria-current="page"] {
  color: #fff;
}

.sl-hero--lg .f-out {
  -webkit-text-stroke-color: var(--ps-orange-light);
}

.sl-hero--lg .sl-lead {
  color: var(--ps-muted-dark);
}

.ps-page main .sl-hero--lg .sl-text-link {
  color: #fff;
}

.lg-board [hidden] {
  display: none !important;
}

.lg-board {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  align-items: start;
  gap: 22px;
  max-width: 640px;
}

/* Le carton de la pièce. */
.lg-folder {
  position: relative;
  overflow: hidden;
  height: 330px;
  border-radius: 6px 6px 10px 10px;
  background: linear-gradient(160deg, #cfae80, #b58d5c);
  box-shadow: 0 40px 70px -30px rgba(0, 0, 0, 0.8), inset 0 -20px 40px rgba(90, 50, 10, 0.25);
}

.lg-folder-tabs {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 26px;
  background: repeating-linear-gradient(90deg, #a87f4f 0 2px, transparent 2px 7px);
}

.lg-label {
  position: absolute;
  top: 48px;
  right: 18px;
  left: 18px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 12px;
  border-radius: 3px;
  background: #fffdf6;
  color: #3a2a22;
  font-size: 10px;
}

.lg-label b {
  font-size: 12px;
}

.lg-photo {
  position: absolute;
  top: 150px;
  left: 30px;
  overflow: hidden;
  width: 190px;
  height: 120px;
  border-radius: 3px;
  opacity: 0.9;
}

.lg-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lg-tape {
  position: absolute;
  top: 58%;
  right: -30px;
  left: -30px;
  overflow: hidden;
  height: 30px;
  background: #c81e1e;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.35);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 30px;
  letter-spacing: 0.14em;
  text-align: center;
  white-space: nowrap;
  transition: transform 0.6s var(--ps-ease);
}

.lg-tl {
  clip-path: inset(0 50% 0 0);
}

.lg-tr {
  clip-path: inset(0 0 0 50%);
}

.lg-board.is-tampered .lg-tl {
  transform: translate(-18px, 12px);
}

.lg-board.is-tampered .lg-tr {
  transform: translate(22px, -16px);
}

.lg-status {
  position: absolute;
  right: 14px;
  bottom: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 6px;
  background: #047857;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  transition: background 0.3s;
}

.lg-board.is-tampered .lg-status {
  background: #a8173a;
}

/* Le registre de la pièce. */
.lg-log {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.lg-log-title {
  color: #ffb48c;
  font-size: 11px;
  letter-spacing: 0.1em;
}

.lg-rows {
  margin: 0;
  padding: 0;
  border-top: 1px solid rgba(255, 211, 189, 0.25);
  list-style: none;
}

.lg-rows li {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 211, 189, 0.15);
  font-size: 13px;
}

.lg-row-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.lg-row-title {
  color: #fff;
  font-weight: 600;
}

.lg-row-code {
  color: #b59a8c;
  font-size: 11px;
}

.lg-row-state {
  color: #6ee7b7;
  font-size: 11px;
}

.lg-row--bad .lg-row-state {
  color: #f6a3b3;
}

.lg-btn {
  align-self: flex-start;
  min-height: 44px;
  padding: 10px 16px;
  border: 1.5px solid rgba(255, 211, 189, 0.4);
  border-radius: 999px;
  background: transparent;
  color: #ffd3bd;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s var(--ps-ease), background 0.2s, color 0.2s;
}

.lg-btn:hover {
  transform: translateY(-2px);
}

.lg-btn:focus-visible {
  outline: 3px solid rgba(255, 138, 76, 0.55);
  outline-offset: 3px;
}

@media (max-width: 900px) {
  .lg-board {
    grid-template-columns: 1fr;
  }

  .sl-scene .lg-board {
    zoom: 0.62;
  }
}

@media (max-width: 420px) {
  .sl-scene .lg-board {
    zoom: 0.54;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lg-tape,
  .lg-status,
  .lg-btn {
    transition: none;
  }
}
