/* Éditeurs de presse : une double page de magazine. Le bouton ouvre « l'ours » de l'image,
   comme l'ours du titre dit qui a fait le journal. Hero sombre, comme la maquette. */

.sl-hero--pb {
  background: radial-gradient(ellipse 60% 70% at 72% 45%, rgba(244, 81, 30, 0.28), transparent 66%), var(--ps-ember);
  color: #fff;
}

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

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

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

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

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

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

.sl-hero--pb .sl-scene {
  max-width: 680px;
}

/* ---------- La double page ---------- */

.pb-spread {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-radius: 4px;
  background: #fffdf9;
  box-shadow: 0 50px 90px -40px rgba(60, 30, 10, 0.55);
}

/* Le pli central. */
.pb-fold {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 40px;
  margin-left: -20px;
  background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.12) 48%, rgba(0, 0, 0, 0.04) 52%, transparent);
  pointer-events: none;
}

.pb-page {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  padding: 22px;
}

.pb-page--text {
  padding-left: 30px;
}

.pb-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4;
}

.pb-frame > img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* L'ours de l'image, masqué tant que le bouton n'est pas activé. */
.pb-ours {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 18px;
  background: rgba(18, 10, 6, 0.86);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.35s ease, transform 0.45s var(--ps-ease), visibility 0s linear 0.45s;
}

.pb-ours.is-open {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 0.35s ease, transform 0.45s var(--ps-ease), visibility 0s;
}

.pb-ours-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

.pb-ours-title img {
  width: 18px;
  height: 18px;
}

.pb-ours-list {
  margin: 0;
}

.pb-ours-row {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 10px;
  padding: 6px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.pb-ours-row dt {
  color: var(--ps-peach);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pb-ours-row dd {
  margin: 0;
  color: #fff;
  font-size: 13px;
}

.pb-ours-ok {
  display: block;
  margin-top: 8px;
  color: #6ee7b7;
  font-size: 11px;
}

.pb-btn {
  position: absolute;
  bottom: 14px;
  left: 50%;
  min-height: 44px;
  padding: 10px 16px;
  border: 0;
  border-radius: var(--ps-radius-pill);
  background: #fff;
  color: var(--ps-ink);
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  translate: -50% 0;
  transition: transform 0.2s var(--ps-ease);
  animation: pb-pulse 2.4s ease-in-out infinite;
}

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

.pb-btn:focus-visible {
  outline: var(--ps-focus);
  outline-offset: 3px;
}

@keyframes pb-pulse {
  0%, 100% { box-shadow: 0 10px 24px -8px rgba(0, 0, 0, 0.5), 0 0 0 0 rgba(244, 81, 30, 0.5); }
  50% { box-shadow: 0 10px 24px -8px rgba(0, 0, 0, 0.5), 0 0 0 8px rgba(244, 81, 30, 0); }
}

.pb-caption {
  color: #8a7266;
  font-size: 10px;
}

/* ---------- Page de texte ---------- */

.pb-kicker {
  color: var(--ps-orange-dark);
  font-size: 10px;
  letter-spacing: 0.1em;
}

.pb-title {
  color: var(--ps-ink);
  font-family: var(--ps-font-serif);
  font-size: 30px;
  font-weight: 700;
  line-height: 1.05;
}

.pb-text {
  column-gap: 14px;
  columns: 2;
}

.pb-text span {
  display: block;
  width: 100%;
  height: 5px;
  margin-bottom: 7px;
  border-radius: 2px;
  background: #e3d8cc;
}

.pb-text span:nth-child(2) { width: 96%; }
.pb-text span:nth-child(3) { width: 92%; }
.pb-text span:nth-child(5) { width: 88%; }
.pb-text span:nth-child(6) { width: 97%; }
.pb-text span:nth-child(7) { width: 72%; }
.pb-text span:nth-child(9) { width: 94%; }
.pb-text span:nth-child(10) { width: 99%; }
.pb-text span:nth-child(11) { width: 90%; }
.pb-text span:nth-child(12) { width: 65%; }
.pb-text span:nth-child(14) { width: 93%; }
.pb-text span:nth-child(15) { width: 96%; }
.pb-text span:nth-child(16) { width: 80%; }

.pb-box {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: auto;
  padding: 10px 12px;
  border: 1px solid var(--ps-ink);
}

.pb-box .ps-mono {
  color: var(--ps-ink);
  font-size: 9px;
  letter-spacing: 0.1em;
}

.pb-box span:not(.ps-mono) {
  height: 4px;
  border-radius: 2px;
  background: #d9cfc2;
}

.pb-box span:nth-child(2) { width: 80%; }
.pb-box span:nth-child(3) { width: 64%; }
.pb-box span:nth-child(4) { width: 72%; }
.pb-box span:nth-child(5) { width: 58%; }

/* Note sous la scène : pastille à coche commune, version fond sombre. */
.ps-page .pb-note {
  justify-content: center;
  margin-top: 18px;
  color: var(--ps-faint-dark);
}

.pb-note li::before {
  background: rgba(244, 81, 30, 0.18);
  color: var(--ps-peach);
}

/* ---------- Mobile et mouvement réduit ---------- */

@media (max-width: 900px) {
  .sl-scene .pb-scene {
    zoom: 0.62;
  }
}

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

@media (max-width: 900px), (hover: none) {
  .pb-btn {
    animation: none;
    box-shadow: 0 10px 24px -8px rgba(0, 0, 0, 0.5);
  }
}

@media (prefers-reduced-motion: reduce) {
  .pb-ours,
  .pb-ours.is-open,
  .pb-btn {
    transition: none;
  }

  .pb-btn {
    animation: none;
    box-shadow: 0 10px 24px -8px rgba(0, 0, 0, 0.5);
  }
}
