.hero-track { background: #f7f8f5; }
.hero-mosaic { position: absolute; inset: 0; z-index: -2; }
.hero-satellite { display: none; }
.hero-track .hero-media { overflow: hidden; }
.hero-next {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 40px;
  background: #f7f8f5;
  color: #494f43;
  font-size: 12px;
  text-decoration: none;
  letter-spacing: 0;
}
.hero-next svg { width: 16px; height: 16px; }

/* The opening photograph stays in the same tile throughout the zoom-out. */
.hero-track.is-scroll-scene { height: calc(250svh + 40px); }
.is-scroll-scene .hero {
  position: sticky;
  top: 0;
  height: calc(100svh - 40px);
  min-height: 0;
  padding: 110px 24px 64px;
  background: #f7f8f5;
}
.is-scroll-scene .hero-next { position: sticky; top: calc(100svh - 40px); }
.is-scroll-scene .hero-mosaic {
  transform: scale(var(--hero-scale, 1));
  transform-origin: 50% 50%;
  will-change: transform;
}
.is-scroll-scene .hero-media,
.is-scroll-scene .hero-satellite {
  position: absolute;
  display: block;
  inset: auto;
  top: 50%;
  left: 50%;
  width: var(--tile-width);
  height: var(--tile-height);
  transform: translate(-50%, -50%);
  border-radius: 6px;
  overflow: hidden;
}
.is-scroll-scene .hero-media { z-index: 1; }
.is-scroll-scene .hero-satellite img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.is-scroll-scene .hero-media img { object-position: 50% 50%; }
.is-scroll-scene .hero-satellite--left,
.is-scroll-scene .hero-satellite--right { width: var(--portrait-width); }
.is-scroll-scene .hero-satellite--left { left: calc(50% - var(--side-offset)); }
.is-scroll-scene .hero-satellite--right { left: calc(50% + var(--side-offset)); }
.is-scroll-scene .hero-satellite--top-left,
.is-scroll-scene .hero-satellite--top-right,
.is-scroll-scene .hero-satellite--bottom-left,
.is-scroll-scene .hero-satellite--bottom-right { height: var(--strip-height); }
.is-scroll-scene .hero-satellite--top-left,
.is-scroll-scene .hero-satellite--top-right { top: calc(50% - var(--row-offset)); }
.is-scroll-scene .hero-satellite--bottom-left,
.is-scroll-scene .hero-satellite--bottom-right { top: calc(50% + var(--row-offset)); }
.is-scroll-scene .hero-satellite--top-left,
.is-scroll-scene .hero-satellite--bottom-left { left: calc(50% - var(--column-offset)); }
.is-scroll-scene .hero-satellite--top-right,
.is-scroll-scene .hero-satellite--bottom-right { left: calc(50% + var(--column-offset)); }
.is-scroll-scene .hero-satellite--bottom-left img { object-position: 50% 66%; }
.is-scroll-scene .hero-satellite--bottom-right img { object-position: 50% 38%; }
.is-scroll-scene .hero::before { opacity: var(--hero-veil, 1); }
.is-scroll-scene .hero-content { opacity: var(--hero-copy, 1); }
.is-scroll-scene .hero-content.is-concealed { visibility: hidden; pointer-events: none; }

.hero-motion-control {
  position: absolute;
  z-index: 2;
  right: 24px;
  bottom: 24px;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 12px;
  border: 1px solid rgba(38, 35, 33, .15);
  border-radius: 50%;
  background: rgba(255, 255, 255, .94);
  color: #262321;
  cursor: pointer;
  box-shadow: 0 3px 12px rgba(38, 35, 33, .1);
}
.hero-motion-control[hidden],
.hero-motion-control .motion-play-icon,
.hero-motion-control[data-paused="true"] .motion-pause-icon { display: none; }
.hero-motion-control[data-paused="true"] .motion-play-icon { display: block; }
.hero-motion-control:hover { background: #fff; }
.hero-motion-control:focus-visible { outline: 2px solid #262321; outline-offset: 4px; }
.hero-media img { transform-origin: 50% 54%; }

@media (max-width: 640px) {
  .hero-motion-control { right: 16px; bottom: 10px; width: 40px; height: 40px; padding: 9px; }
}
@media (max-height: 600px) and (min-width: 640px) {
  .hero-motion-control { right: 12px; bottom: 12px; width: 40px; height: 40px; padding: 9px; }
}
@media print {
  .hero-track.is-scroll-scene { height: auto; }
  .is-scroll-scene .hero { position: relative; height: auto; min-height: 600px; }
  .is-scroll-scene .hero-mosaic { transform: none; }
  .is-scroll-scene .hero-media { inset: 0; width: 100%; height: 100%; transform: none; }
  .is-scroll-scene .hero-satellite, .hero-next { display: none; }
  .is-scroll-scene .hero::before, .is-scroll-scene .hero-content { opacity: 1; }
  .is-scroll-scene .hero-content.is-concealed { visibility: visible; }
  .hero-motion-control { display: none; }
  .hero-media img { transform: none !important; }
}

/* 2026-10-28 — retour de Jean-Marc : « deux petits rectangles » en bas a droite.
   Ce bouton ne met en pause qu'une derive de photo ; il n'y a aucune video ni son
   sur le site. On le MASQUE, on ne le supprime pas du HTML : hero-motion.js sort
   ligne 7 sur `if (!image || !control) return;` et toute la scene de defilement
   mourrait en silence. Retour arriere = supprimer ce bloc. */
.hero-motion-control { display: none !important; }
