/* v5.74 — correctif ciblé pour les visuels « À la une » et « À l'affiche ».
   Objectif : uniformiser toutes les photos, éviter les mosaïques à 2 images,
   et faire passer soit 3 images identiques, soit 1 image par écran. */

/* ===== Bloc « À la une » ===== */
body section[data-home-block="hero"] .sfc-hero-uniform .sfc-hero-frame{display:flex!important;gap:0!important;overflow:hidden;}
body section[data-home-block="hero"] .sfc-hero-uniform .sfc-hero-frame .sfc-hero-tile{position:relative!important;inset:auto!important;display:block!important;flex:1 1 0!important;min-width:0!important;width:auto!important;height:100%!important;box-sizing:border-box!important;opacity:1!important;visibility:visible!important;overflow:hidden!important;border:0!important;animation:none!important;transition:none!important;transform:none!important;}
body section[data-home-block="hero"] .sfc-hero-uniform .sfc-hero-frame.sfc-hero-photo-layout-single .sfc-hero-tile{flex:1 1 100%!important;}
body section[data-home-block="hero"] .sfc-hero-uniform .sfc-hero-tile .sfc-hero-ambient{display:none!important;}
body section[data-home-block="hero"] .sfc-hero-uniform .sfc-hero-tile{--sfc-fit-x:var(--sfc-pos-x,50%);--sfc-fit-y:var(--sfc-pos-y,50%);--sfc-fit-zoom:var(--sfc-photo-zoom,1);}
body section[data-home-block="hero"] .sfc-hero-uniform .sfc-hero-tile .sfc-hero-complete{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;max-width:none!important;max-height:none!important;object-fit:cover!important;object-position:var(--sfc-fit-x) var(--sfc-fit-y)!important;transform-origin:var(--sfc-fit-x) var(--sfc-fit-y)!important;transform:scale(var(--sfc-fit-zoom))!important;transition:none!important;display:block!important;}
@media(max-width:850px),(max-width:1100px) and (pointer:coarse){body section[data-home-block="hero"] .sfc-hero-uniform .sfc-hero-tile{--sfc-fit-x:var(--sfc-pos-mx,50%);--sfc-fit-y:var(--sfc-pos-my,50%);--sfc-fit-zoom:var(--sfc-photo-mzoom,1);}}
body section[data-home-block="hero"] .sfc-hero-uniform .sfc-is-current .sfc-hero-photo-effect-kenburns .sfc-hero-complete{animation:sfc72-kenburns 8s ease-in-out both;}
body section[data-home-block="hero"] .sfc-hero-uniform .sfc-is-current .sfc-hero-photo-effect-float .sfc-hero-complete{animation:sfc72-float 5s ease-in-out infinite alternate;}
body section[data-home-block="hero"] .sfc-hero-uniform .sfc-is-current .sfc-hero-photo-effect-reveal .sfc-hero-complete{animation:sfc72-reveal 1.4s ease-out both;}
body section[data-home-block="hero"] .sfc-hero-uniform .sfc-is-current .sfc-hero-photo-effect-tilt .sfc-hero-complete{animation:sfc72-tilt 6s ease-in-out infinite alternate;}
@keyframes sfc72-kenburns{from{scale:1;filter:brightness(.94)}to{scale:1.055;filter:brightness(1.06)}}
@keyframes sfc72-float{from{scale:1;filter:brightness(.98)}to{scale:1.06;filter:brightness(1.03)}}
@keyframes sfc72-reveal{from{filter:brightness(.55)}to{filter:brightness(1)}}
@keyframes sfc72-tilt{from{scale:1.13;rotate:-.65deg;transform-origin:center}to{scale:1.13;rotate:.65deg;transform-origin:center}}
@media(prefers-reduced-motion:reduce){body section[data-home-block="hero"] .sfc-hero-uniform .sfc-hero-complete,body section[data-home-block="hero"] .sfc-hero-uniform .sfc-hero-frame{animation:none!important;transition:none!important;}}
body section[data-home-block="hero"] .sfc-hero-uniform .sfc-hero-photo-effect-tilt .sfc-hero-complete{transform-origin:center!important;}

/* ===== Bloc « À l'affiche » / publications avec images ===== */
body section[data-home-block="posters"] .sfc-poster-slide{overflow:hidden;}
body section[data-home-block="posters"] .sfc-poster-photos{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:10px!important;
  align-items:stretch!important;
  width:100%!important;
}
body section[data-home-block="posters"] .sfc-poster-photos.sfc-poster-layout-single,
body section[data-home-block="posters"] .sfc-poster-photos-1{
  grid-template-columns:minmax(0,1fr)!important;
}
body section[data-home-block="posters"] .sfc-poster-photo{
  position:relative!important;
  min-width:0!important;
  width:100%!important;
  overflow:hidden!important;
  border-radius:14px!important;
  background:#0a1a31!important;
  box-sizing:border-box!important;
  aspect-ratio:4 / 5;
}
body section[data-home-block="posters"] .sfc-poster-photos.sfc-poster-layout-single .sfc-poster-photo,
body section[data-home-block="posters"] .sfc-poster-photos-1 .sfc-poster-photo{
  aspect-ratio:16 / 9;
}
body section[data-home-block="posters"] .sfc-poster-photo img{
  width:100%!important;
  height:100%!important;
  display:block!important;
  object-fit:cover!important;
  object-position:center center!important;
}
body section[data-home-block="posters"] .sfc-poster-photo.sfc-poster-landscape{aspect-ratio:16 / 9;}
body section[data-home-block="posters"] .sfc-poster-photo.sfc-poster-portrait{aspect-ratio:4 / 5;}
body section[data-home-block="posters"] .sfc-poster-photos.sfc-poster-single-cycle{display:block!important;}
body section[data-home-block="posters"] .sfc-poster-photos.sfc-poster-single-cycle .sfc-poster-photo{display:none!important;}
body section[data-home-block="posters"] .sfc-poster-photos.sfc-poster-single-cycle .sfc-poster-photo.is-active{display:block!important;}

/* Sécurité responsive : on garde des cadres identiques sur téléphone et tablette. */
@media (max-width: 900px){
  body section[data-home-block="posters"] .sfc-poster-photos{gap:8px!important;}
  body section[data-home-block="posters"] .sfc-poster-photo{border-radius:12px!important;}
}
