/* Le Martini Club · animations « 007 » communes (voir fx7.js). Tout est rangé sous html.fx7, posé seulement si l'on accepte les animations :
   sans script ou avec « réduire les animations », la page s'affiche telle quelle. */
:root{--fx7-red:var(--acc,#e3243f);--fx7-ease:cubic-bezier(.16,.84,.24,1);--fx7-cut:cubic-bezier(.7,0,.2,1)}
:root[data-theme="light"]{--fx7-red:var(--acc,#b40c28)}

/* Allégé (nov. 2026) : le canon en iris avec ses anneaux, les flous et l'espacement des lettres qui se resserre,
   les reflets qui balaient les cartes et le volet des grandes images faisaient recalculer et repeindre chaque carte
   pendant le défilement, au point de saccader sur Safari. Il reste une seule apparition douce (opacité + léger glissement,
   pris en charge par la carte graphique), jouée une fois. */

/* ============ apparitions en cascade ============ */
@keyframes fx7Rise{from{opacity:0;translate:0 16px}to{opacity:1;translate:0 0}}
@keyframes fx7Drop{from{opacity:0;translate:0 -10px}to{opacity:1;translate:0 0}}
@keyframes fx7Fade{from{opacity:0}to{opacity:1}}
html.fx7 [data-fx7="rv"],html.fx7 [data-fx7="kick"]{animation:none}
/* l'ancienne apparition de shell.js (.rv) laisse la main sur ces éléments */
html.fx7 [data-fx7].rv{opacity:1;transform:none}
html.fx7 [data-fx7]:not(.fx7-in){opacity:0}
html.fx7 [data-fx7="rv"].fx7-in{animation:fx7Rise .6s var(--fx7-ease) var(--fx7-d,0ms) backwards}
html.fx7 [data-fx7="kick"].fx7-in{animation:fx7Drop .6s .05s var(--fx7-ease) backwards}
/* grandes images et titres façon générique : un simple fondu */
html.fx7 :is([data-fx7="volet"],[data-fx7="gen"]).fx7-in{animation:fx7Fade .7s ease-out backwards}

/* ============ pastilles et numéros qui s'allument ============ */
html.fx7 .fx7-pip{transition:scale .5s cubic-bezier(.2,1.6,.4,1),opacity .4s;transition-delay:calc(var(--fx7-d,0ms) + .3s)}
html.fx7 [data-fx7]:not(.fx7-in) .fx7-pip,html.fx7 [data-fx7]:not(.fx7-in) > h2 > i.fx7-pip{scale:.4;opacity:0}
/* lisibilité : étiquettes sur pastille rouge et dégradé plus sombre sous les titres des affiches */
html .card .im .tag{background:var(--fx7-red)!important;color:#fff!important;box-shadow:0 8px 24px -8px rgba(var(--redr,200,16,46),.8)}
html .poster .cap{background:linear-gradient(180deg,transparent,rgba(5,5,5,.6) 35%,rgba(5,5,5,.95))}
html .poster .cap b{text-shadow:0 2px 14px rgba(0,0,0,.8)}

/* ============ parallaxe (en-têtes seulement) ============ */
/* propriétés translate/scale : elles s'ajoutent aux animations et aux survols existants sans les écraser */
html.fx7 .hero::before{translate:0 var(--fx7-py,0px);scale:1.06}
html.fx7 .hero > .wrap,html.fx7 .fhero > .bg,html.fx7 .fhero > .wrap{will-change:translate}
/* l’image seule est rognée (enveloppe .fimg) */
html.fx7 .art figure .fimg{overflow:hidden;border-radius:var(--r,20px)}

/* ============ ouverture « gun barrel » (accueil, une fois par session) ============ */
.fx7-gb,.mx-cine > .fx7-gb{position:absolute!important;inset:0;z-index:20!important;pointer-events:none;overflow:hidden;animation:fx7GbBg 2.6s linear both}
@keyframes fx7GbBg{0%,54%{background-color:#050505}55%,100%{background-color:transparent}}
/* Le trou du canon n'est plus un petit disque agrandi 24 fois (scale) : le navigateur le peignait à 110 px puis
   l'étirait, d'où l'image pixellisée. Ici, un voile plein écran percé par un dégradé dont le rayon (--gb-r) est animé :
   tout est redessiné à la résolution de l'écran à chaque image, net du début à la fin. */
@property --gb-r{syntax:"<length>";inherits:false;initial-value:0px}
.fx7-gb i{position:absolute;inset:0;--gb-r:0px;
  background:radial-gradient(circle at 50% 50%,transparent var(--gb-r),#050505 calc(var(--gb-r) + .75px)),
    repeating-radial-gradient(circle at 50% 50%,transparent 0 calc(var(--gb-r) * .109),rgba(242,237,227,.08) calc(var(--gb-r) * .109) calc(var(--gb-r) * .127));
  animation:fx7GbHole 2.6s var(--fx7-ease) both}
.fx7-gb b{position:absolute;left:50%;top:50%;width:64px;height:64px;margin:-32px 0 0 -32px;border-radius:50%;background:#f7f4ee;box-shadow:0 0 40px rgba(255,255,255,.5);animation:fx7GbDot 2.6s var(--fx7-ease) both}
@keyframes fx7GbDot{0%{transform:translateX(-46vw) scale(.43);opacity:0}8%{opacity:1}34%{transform:translateX(0) scale(.43);opacity:1}46%{transform:scale(.72);opacity:1}58%{transform:scale(1);opacity:0}100%{opacity:0}}
@keyframes fx7GbHole{0%,40%{--gb-r:0px}55%{--gb-r:55px}100%{--gb-r:max(1320px,90vmax)}}
.fx7-gbon > .wrap > *{animation:fx7Rise 1s var(--fx7-ease) both}
.fx7-gbon > .wrap > :nth-child(1){animation-delay:1.7s}.fx7-gbon > .wrap > :nth-child(2){animation-delay:1.85s}.fx7-gbon > .wrap > :nth-child(3){animation-delay:2s}.fx7-gbon > .wrap > :nth-child(n+4){animation-delay:2.15s}

@media (prefers-reduced-motion:reduce){
  html.fx7 *{animation:none!important;transition:none!important}
  html.fx7 [data-fx7]{opacity:1!important}
  .fx7-gb{display:none!important}}

/* téléphones : le lien « Tous les … → » passe sous le titre de section au lieu de faire déborder la page */
@media (max-width:560px){html body .h2:not(#z){flex-wrap:wrap;row-gap:8px}}
