/* Photojournalistes : une planche-contact, une loupe qui suit l'image choisie. */

.sl-hero--pj {
  background: radial-gradient(ellipse 70% 70% at 70% 45%, #fff, #efe4d8 70%);
}

.pj-sheet {
  position: relative;
  padding: 18px;
  border-radius: 6px;
  background: #fffdf9;
  box-shadow: 0 40px 80px -30px rgba(90, 40, 10, 0.45), 0 0 0 1px #eadfd4;
}

.pj-sheet-head {
  display: flex;
  justify-content: space-between;
  padding: 0 2px 10px;
  color: #8a7266;
  font-size: 11px;
}

.pj-frames {
  position: relative;
}

.pj-strip {
  position: relative;
  margin-bottom: 8px;
  padding: 14px 10px 10px;
  border-radius: 2px;
  background: #1a120d;
}

/* Perforations du film. */
.pj-strip::before,
.pj-strip::after {
  content: "";
  position: absolute;
  right: 8px;
  left: 8px;
  height: 5px;
  border-radius: 1px;
  background: repeating-linear-gradient(90deg, #efe6dc 0 7px, transparent 7px 16px);
}

.pj-strip::before { top: 4px; }
.pj-strip::after { bottom: 3px; }

.pj-nums {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  padding: 0 2px 4px;
  color: #ff9a3d;
  font-family: var(--ps-font-mono);
  font-size: 9px;
}

.pj-row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
  padding-bottom: 6px;
}

.pj-fr {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 2;
  padding: 0;
  border: 0;
  border-radius: 1px;
  background: #000;
  cursor: zoom-in;
}

.pj-fr img,
.pj-lens-img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pj-fr[aria-pressed="true"] {
  outline: 2px solid var(--ps-orange-light);
  outline-offset: 1px;
}

.pj-fr:focus-visible {
  outline: 3px solid var(--ps-orange-light);
  outline-offset: 2px;
}

/* Cercle au crayon rouge sur la vue retenue (13). */
.pj-pencil {
  position: absolute;
  top: 0;
  left: 33.3%;
  width: 16.6%;
  height: 33.3%;
  overflow: visible;
  pointer-events: none;
}

@keyframes pj-draw {
  from { stroke-dashoffset: 1; }
  to { stroke-dashoffset: 0; }
}

.pj-pencil ellipse {
  animation: pj-draw 1.4s 0.8s cubic-bezier(0.6, 0, 0.3, 1) both;
}

.pj-loupe {
  --x: 58.33%;
  --y: 20.67%;
  position: absolute;
  top: var(--y);
  left: var(--x);
  z-index: 3;
  width: 150px;
  height: 150px;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transition: left 0.5s var(--ps-ease), top 0.5s var(--ps-ease);
}

.pj-lens {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border: 7px solid var(--ps-ink);
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--ps-orange), 0 24px 40px -10px rgba(0, 0, 0, 0.6), inset 0 0 30px rgba(255, 255, 255, 0.35);
}

.pj-lens-img {
  position: absolute;
  inset: -40% -60%;
}

.pj-lensinfo {
  position: absolute;
  right: 0;
  bottom: 16px;
  left: 0;
  color: #fff;
  font-size: 11px;
  line-height: 1.4;
  text-align: center;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}

.pj-handle {
  position: absolute;
  right: -34px;
  bottom: -34px;
  width: 60px;
  height: 14px;
  border-radius: 7px;
  background: var(--ps-ink);
  transform: rotate(45deg);
}

.pj-caption {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 20px;
  margin-top: 26px;
  color: var(--ps-muted-light);
  font-size: 13px;
}

.pj-caption b {
  color: var(--ps-ink);
}

.pj-ok {
  color: #047857;
}

/* Réglages de chaque vue de la planche. */
.pj-f0 img { filter: hue-rotate(-30deg) saturate(0.7) brightness(0.85); }
.pj-f1 img { filter: hue-rotate(7deg) saturate(0.85) brightness(0.95); }
.pj-f2 img { filter: hue-rotate(44deg) saturate(1.0) brightness(1.05); }
.pj-f3 img { filter: hue-rotate(-9deg) saturate(1.15) brightness(0.85); }
.pj-f4 img { filter: hue-rotate(28deg) saturate(0.7) brightness(0.95); }
.pj-f5 img { filter: hue-rotate(-25deg) saturate(0.85) brightness(1.05); }
.pj-f6 img { filter: hue-rotate(12deg) saturate(1.0) brightness(0.85); }
.pj-f7 img { filter: hue-rotate(49deg) saturate(1.15) brightness(0.95); }
.pj-f8 img { filter: hue-rotate(-4deg) saturate(0.7) brightness(1.05); }
.pj-f9 img { filter: hue-rotate(33deg) saturate(0.85) brightness(0.85); }
.pj-f10 img { filter: hue-rotate(-20deg) saturate(1.0) brightness(0.95); }
.pj-f11 img { filter: hue-rotate(17deg) saturate(1.15) brightness(1.05); }
.pj-f12 img { filter: hue-rotate(54deg) saturate(0.7) brightness(0.85); }
.pj-f13 img { filter: hue-rotate(1deg) saturate(0.85) brightness(0.95); }
.pj-f14 img { filter: hue-rotate(38deg) saturate(1.0) brightness(1.05); }
.pj-f15 img { filter: hue-rotate(-15deg) saturate(1.15) brightness(0.85); }
.pj-f16 img { filter: hue-rotate(22deg) saturate(0.7) brightness(0.95); }
.pj-f17 img { filter: hue-rotate(59deg) saturate(0.85) brightness(1.05); }

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

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

@media (prefers-reduced-motion: reduce) {
  .pj-loupe {
    transition: none;
  }

  .pj-pencil ellipse {
    animation: none;
  }
}
