/* ===== v8 — motion: clip-path / zoom reveals, title fades, parallax under translucent green squares ===== */
/* Layout and native aspect ratios stay those of v7. Effects must not force short crop boxes. */

/* Clip-path + zoom reveal on justified photo cells */
.page-home .edito-cell{
  overflow:hidden;
  clip-path:inset(8% 8% 8% 8%);
  opacity:1;
  transform:none;
  transition:clip-path 1.35s cubic-bezier(.22,1,.36,1);
}
.page-home .edito-cell.is-in{
  clip-path:inset(0 0 0 0);
}
.page-home .edito-cell img,
.page-home .edito-cell .wahou-img{
  transform:scale(1.05);
  transform-origin:center center;
  transition:transform 1.45s cubic-bezier(.22,1,.36,1);
  animation:none;
}
.page-home .edito-cell.is-in img,
.page-home .edito-cell.is-in .wahou-img{
  transform:scale(1);
  animation:v8-ken 22s ease-in-out 1.4s alternate infinite;
}
@keyframes v8-ken{
  from{transform:scale(1) translate3d(0,0,0)}
  to{transform:scale(1.06) translate3d(-1.2%,-0.8%,0)}
}

/* Translucent green squares with a photo that can parallax underneath */
.page-home .edito-panel,
.edito-row .edito-panel{
  position:relative;
  overflow:hidden;
  background:#1F3A32;
  padding:0 !important;
}
.page-home .edito-panel__photo{
  position:absolute !important;
  inset:-16%;
  width:132%;
  height:132%;
  max-width:none;
  object-fit:cover !important;
  object-position:center center;
  display:block;
  will-change:transform;
  transform:scale(1.12);
  transition:none;
}
.page-home .edito-panel::after{
  content:"";
  position:absolute;
  inset:0;
  background:rgba(31,58,50,.55);
  pointer-events:none;
  z-index:1;
  display:block !important;
}
.page-home .edito-panel{
  clip-path:inset(10% 10% 10% 10%);
  opacity:0;
  transform:none;
  transition:clip-path 1.35s cubic-bezier(.22,1,.36,1), opacity .9s cubic-bezier(.22,1,.36,1);
}
.page-home .edito-panel.is-in{
  clip-path:inset(0 0 0 0);
  opacity:1;
}

/* Title / lead fades */
html.js-fade .page-home .band-title,
html.js-fade .page-home .corps-title,
html.js-fade .page-home .band-lead,
html.js-fade .page-home .cta-final h2,
html.js-fade .page-home .real-all{
  opacity:0;
  transform:translate3d(0,.55rem,0);
  transition:opacity 1.05s cubic-bezier(.22,1,.36,1), transform 1.05s cubic-bezier(.22,1,.36,1);
}
html.js-fade .page-home .band-title.is-in,
html.js-fade .page-home .corps-title.is-in,
html.js-fade .page-home .band-lead.is-in,
html.js-fade .page-home .cta-final h2.is-in,
html.js-fade .page-home .real-all.is-in,
html.js-fade.is-arrived .page-home .band-title.is-in,
html.js-fade.is-arrived .page-home .corps-title.is-in{
  opacity:1;
  transform:none;
}

@media (prefers-reduced-motion: reduce){
  .page-home .edito-cell,
  .page-home .edito-panel{
    clip-path:none !important;
    opacity:1 !important;
    transition:none !important;
  }
  .page-home .edito-cell img,
  .page-home .edito-cell .wahou-img,
  .page-home .edito-panel__photo{
    animation:none !important;
    transform:none !important;
    inset:0 !important;
    width:100% !important;
    height:100% !important;
  }
  html.js-fade .page-home .band-title,
  html.js-fade .page-home .corps-title,
  html.js-fade .page-home .band-lead,
  html.js-fade .page-home .cta-final h2,
  html.js-fade .page-home .real-all{
    opacity:1 !important;
    transform:none !important;
    transition:none !important;
  }
}
