/* Stak'd : la pile (balisage : scene.mjs ; mouvement : scene.js).
   Composition finale, fixe : la photo entière (six tranches en place), le titre en bas à gauche,
   la liste des couches à droite. */

.scene-pile { --scene-fond: #0a0908; --grain: .09; }
.pi-pile { position: absolute; inset: 0; }
/* Chaque tranche montre sa bande de la même photo : la photo fait six fois sa hauteur et remonte d'autant. */
.pi-tranche { position: absolute; left: 0; right: 0; top: calc(var(--i) * 100% / 6); height: calc(100% / 6 + 1px); overflow: hidden; }
.pi-photo { left: 0; right: 0; top: calc(var(--i) * -100%); height: 600%; }
.pi-photo img { object-position: var(--hero-focus, center); }
.pi-voile {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background:
    linear-gradient(0deg, rgb(10 9 8 / .92) 0%, rgb(10 9 8 / .6) 32%, rgb(10 9 8 / 0) 60%),
    linear-gradient(90deg, rgb(10 9 8 / .5), transparent 50%);
}
/* L'annonce de chaque couche, pendant l'empilement (absente de la composition finale). */
.pi-etiquettes { position: absolute; z-index: 4; left: var(--g); bottom: max(var(--bas), 10%); pointer-events: none; }
.pi-etiquette { position: absolute; left: 0; bottom: 0; margin: 0; white-space: nowrap; opacity: 0; color: #f7f2e8; }
.pi-etiquette span { display: block; font: 600 14px/1 var(--font-body); letter-spacing: .2em; color: #ffd21f; margin-bottom: 14px; }
.pi-etiquette strong { display: block; font: 400 clamp(44px, 7vw, 110px)/.95 var(--font-display); text-transform: uppercase; letter-spacing: -.01em; }
.pi-etiquette em { display: block; margin-top: 10px; font: 500 18px/1.2 var(--font-body); font-style: normal; opacity: .8; }
/* L'éclair jaune du smash. */
.pi-eclair { position: absolute; inset: 0; z-index: 5; background: #ffd21f; transform: scaleX(0); transform-origin: 0 50%; pointer-events: none; }

.scene-pile .scene-texte { left: var(--g); bottom: max(var(--bas), 10%); width: min(58%, 820px); color: #f7f2e8; }
.scene-pile h2 { font-size: clamp(42px, 6.6vw, 104px); line-height: .96; }
.scene-pile h2 em { font-style: normal; color: #ffd21f; }
.scene-pile .eyebrow { color: #ffd21f; }
.pi-liste {
  position: absolute; z-index: 6; right: var(--g); bottom: max(var(--bas), 10%);
  margin: 0; padding: 22px 26px; list-style: none; counter-reset: couche;
  background: rgb(10 9 8 / .82); border: 1px solid rgb(255 210 31 / .5); border-radius: 14px; color: #f7f2e8;
}
.pi-liste li { counter-increment: couche; display: flex; gap: 12px; align-items: baseline; padding: 5px 0; font-size: 15px; }
.pi-liste li::before { content: counter(couche, decimal-leading-zero); font-weight: 600; font-size: 12.5px; letter-spacing: .1em; color: #ffd21f; }
.pi-liste strong { font-weight: 600; }
.pi-liste span { opacity: .65; font-size: 14px; }

@media (max-width: 760px), (max-aspect-ratio: 1/1) {
  .pi-liste { display: none; }
  .scene-pile .scene-texte, .pi-etiquettes { bottom: calc(var(--bas) + 4px); }
  .scene-pile .scene-texte { width: auto; right: var(--g); }
  .scene-pile h2 { font-size: clamp(36px, 10.4vw, 72px); }
  .pi-etiquette strong { font-size: clamp(30px, 8.6vw, 80px); }
  .pi-voile { background: linear-gradient(0deg, rgb(10 9 8 / .94) 0%, rgb(10 9 8 / .62) 36%, rgb(10 9 8 / 0) 62%); }
}
@media (max-aspect-ratio: 1/1) and (min-width: 761px) { .pi-liste { display: block; top: 110px; bottom: auto; } }
/* Ce sont les tranches qui bougent, pas les photos (six fois la hauteur de l'écran) : pas de couche à part pour elles. */
.est-vive .pi-photo > picture { will-change: auto; }
.est-vive .pi-tranche { will-change: transform; }
