/* =========================================================
   Tawem Digital — effets cinématographiques (accueil + touches catégorie / fiche produit)
   Règles : transform / opacity / filter uniquement, rien de bloquant, rien d'invisible au-delà de 1,5 s,
   prefers-reduced-motion = aucun mouvement, contenu lisible sans JS (états cachés seulement sous .js / .intro).
   ========================================================= */

/* ---------- 1. Intro (1re visite de la session, accueil seulement, ≤ 1,45 s, jamais cliquable) ---------- */
.intro-cine { display: none; }
.intro .intro-cine {
  display: block; position: fixed; inset: 0; z-index: 2000; pointer-events: none; overflow: hidden;
  animation: intro-fin 0s 1.45s forwards;
}
.intro-cine__volet { position: absolute; left: 0; right: 0; height: 50.5%; background: #05070f; animation: .62s cubic-bezier(.75,0,.2,1) .78s both; }
.intro-cine__volet--h { top: 0; animation-name: volet-haut; background: linear-gradient(180deg, #03050c, #0a0f24); }
.intro-cine__volet--b { bottom: 0; animation-name: volet-bas; background: linear-gradient(0deg, #03050c, #0a0f24); }
.intro-cine__ligne {
  position: absolute; left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px;
  background: linear-gradient(90deg, transparent, #3b82ff 20%, #fff 50%, #ff2ea6 80%, transparent);
  box-shadow: 0 0 18px 2px rgba(59,130,255,.7), 0 0 40px 6px rgba(255,46,166,.35);
  transform: scaleX(0); animation: intro-ligne 1.2s cubic-bezier(.6,0,.2,1) .05s both;
}
.intro-cine__logo {
  position: absolute; left: 50%; top: 50%; width: min(440px, 72vw); aspect-ratio: 680 / 120;
  transform: translate(-50%, -50%); animation: intro-logo 1.3s cubic-bezier(.2,.7,.2,1) both;
}
/* Logo en silhouette néon (dégradé masqué par le logo, même URL versionnée que l’en-tête → déjà en cache) */
.intro-cine__forme {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, #6f9dff 0%, #3b82ff 36%, #ff2ea6 39%, #ff4fb8 61%, #3b82ff 64%, #7aa7ff 100%);
  -webkit-mask: var(--logo-intro) center / contain no-repeat; mask: var(--logo-intro) center / contain no-repeat;
}
.intro-cine__logo { filter: drop-shadow(0 0 14px rgba(59,130,255,.7)) drop-shadow(0 0 30px rgba(255,46,166,.35)); }
.intro-cine__balayage {
  position: absolute; inset: 0; overflow: hidden;
  -webkit-mask: var(--logo-intro) center / contain no-repeat; mask: var(--logo-intro) center / contain no-repeat;
}
.intro-cine__balayage::before {
  content: ""; position: absolute; top: -20%; bottom: -20%; left: 0; width: 45%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.95) 50%, transparent);
  transform: translateX(-120%) skewX(-18deg); animation: intro-balayage .6s cubic-bezier(.5,0,.3,1) .22s both;
}
[data-theme="clair"] .intro-cine__volet--h { background: linear-gradient(180deg, #eef2fc, #ffffff); }
[data-theme="clair"] .intro-cine__volet--b { background: linear-gradient(0deg, #eef2fc, #ffffff); }
[data-theme="clair"] .intro-cine__forme { background: linear-gradient(90deg, #1553bd 0%, #1553bd 36%, #d70f81 39%, #d70f81 61%, #1553bd 64%, #1553bd 100%); }
[data-theme="clair"] .intro-cine__logo { filter: drop-shadow(0 0 10px rgba(21,83,189,.3)) drop-shadow(0 0 24px rgba(215,15,129,.22)); }
/* Ouverture sur le héros : léger recul de caméra pendant l'ouverture des volets */
.intro .heros .carrousel, .intro .heros__cote { animation: heros-ouverture 1.1s cubic-bezier(.2,.7,.2,1) .7s both; }
.intro .heros__cote { animation-delay: .82s; }
@keyframes intro-fin { to { visibility: hidden; } }
@keyframes volet-haut { to { transform: translateY(-101%); } }
@keyframes volet-bas { to { transform: translateY(101%); } }
@keyframes intro-ligne { 0% { transform: scaleX(0); opacity: 1; } 45% { transform: scaleX(1); opacity: 1; } 62% { opacity: 1; } 100% { transform: scaleX(1) scaleY(.4); opacity: 0; } }
@keyframes intro-logo {
  0% { opacity: .02; transform: translate(-50%, -50%) scale(.9); }   /* jamais 0 : peint dès le 1er rendu, donc jamais un LCP tardif */
  35% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  60% { opacity: 1; transform: translate(-50%, -50%) scale(1.02); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(1.16); }
}
@keyframes intro-balayage { to { transform: translateX(260%) skewX(-18deg); } }
@keyframes heros-ouverture { from { transform: scale(1.045); } to { transform: none; } }

/* ---------- 2. Héros : halos, grain, vignettage, particules, parallaxe ---------- */
.heros { isolation: isolate; }
.heros > .conteneur { position: relative; z-index: 1; }
.heros__halos { position: absolute; inset: -60px 0 -40px; z-index: 0; pointer-events: none; overflow: hidden; }
.heros__halos span {
  position: absolute; width: 46vmax; height: 46vmax; border-radius: 50%; opacity: .32; will-change: transform;
  transform: translate3d(calc(var(--hx, 0) * 1px), calc(var(--hy, 0) * 1px), 0);
}
.heros__halos span::before { content: ""; position: absolute; inset: 0; border-radius: inherit; animation: halo-pulse 9s ease-in-out infinite alternate; }
.heros__halos span:nth-child(1) { left: -14vmax; top: -18vmax; }
.heros__halos span:nth-child(1)::before { background: radial-gradient(circle, rgba(47,107,255,.55), transparent 62%); }
.heros__halos span:nth-child(1) { --hx: calc(var(--px, 0) * 22); --hy: calc(var(--py, 0) * 16 + var(--sy, 0) * 140); }
.heros__halos span:nth-child(2) { right: -12vmax; top: -6vmax; --hx: calc(var(--px, 0) * -26); --hy: calc(var(--py, 0) * -18 + var(--sy, 0) * 90); }
.heros__halos span:nth-child(2)::before { background: radial-gradient(circle, rgba(255,46,166,.5), transparent 62%); animation-delay: -4.5s; animation-duration: 11s; }
[data-theme="clair"] .heros__halos span { opacity: .16; }
@keyframes halo-pulse { 0% { transform: scale(.9) rotate(0deg); opacity: .7; } 100% { transform: scale(1.12) rotate(25deg); opacity: 1; } }

/* Vignettage + grain de film sur le carrousel (au-dessus des diapos, sous la navigation) */
.carrousel::before, .carrousel::after { content: ""; position: absolute; pointer-events: none; z-index: 1; }
.carrousel::before { inset: 0; background: radial-gradient(120% 95% at 50% 45%, transparent 58%, rgba(2,4,12,.42) 100%); }
[data-theme="clair"] .carrousel::before { background: radial-gradient(120% 95% at 50% 45%, transparent 62%, rgba(10,18,48,.22) 100%); }
.carrousel::after { inset: -50%; opacity: 0; background-image: var(--grain, none); background-size: 180px 180px; mix-blend-mode: overlay; }
.cine-grain .carrousel::after { opacity: .13; animation: grain 1.1s steps(6) infinite; }
[data-theme="clair"] .cine-grain .carrousel::after { opacity: .08; }
@keyframes grain {
  0% { transform: translate3d(0, 0, 0); } 17% { transform: translate3d(-6%, 4%, 0); } 33% { transform: translate3d(5%, -7%, 0); }
  50% { transform: translate3d(-3%, 8%, 0); } 67% { transform: translate3d(8%, 2%, 0); } 83% { transform: translate3d(-7%, -4%, 0); } 100% { transform: translate3d(2%, -2%, 0); }
}
.carrousel__particules { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; pointer-events: none; mix-blend-mode: screen; opacity: 0; transition: opacity 1.2s; }
.carrousel__particules.on { opacity: 1; }
[data-theme="clair"] .carrousel__particules { mix-blend-mode: normal; }
.carrousel__nav, .carrousel__points { z-index: 3; }

/* Parallaxe (desktop, pointeur fin) : couches décalées au mouvement de la souris et au défilement */
.heros--parallaxe .carrousel__piste { transform: translate3d(calc(var(--px, 0) * -7px), calc(var(--py, 0) * -5px), 0) scale(1.018); transition: none; }
.heros--parallaxe .heros__cote { transform: translate3d(calc(var(--px, 0) * 9px), calc(var(--py, 0) * 7px + var(--sy, 0) * -46px), 0); }
.heros--parallaxe .carrousel { transform: translate3d(0, calc(var(--sy, 0) * 22px), 0); }
.heros--parallaxe .avantages { transform: translate3d(0, calc(var(--sy, 0) * -18px), 0); }
.intro .heros--parallaxe .carrousel, .intro .heros--parallaxe .heros__cote { transform: none; }

/* ---------- 3. Carrousel « cinéma » : fondu enchaîné + zoom + flou de mouvement + Ken Burns ---------- */
.carrousel--cine .carrousel__piste { overflow: hidden; scroll-snap-type: none; touch-action: pan-y; }
.carrousel--cine .carrousel__diapo {
  grid-area: 1 / 1; opacity: 0; visibility: hidden; transform: scale(1.06); filter: blur(9px);
  transition: opacity .85s cubic-bezier(.4,0,.2,1), transform 1.1s cubic-bezier(.2,.7,.2,1), filter .85s ease, visibility 0s linear 1.1s;
}
.carrousel--bascule .carrousel__diapo { transition: none !important; }
.carrousel--cine .carrousel__diapo.actif { opacity: 1; visibility: visible; transform: none; filter: none; z-index: 1; transition-delay: 0s; }
.carrousel--cine .carrousel__diapo.sortante { visibility: visible; transform: scale(1.09) translate3d(-1.5%, 0, 0); filter: blur(12px); transition-delay: 0s; }
.carrousel--cine .carrousel__diapo img { transition: none; transform: none; }
.carrousel--cine .carrousel__diapo.actif img, .carrousel--cine .carrousel__diapo.sortante img { animation: ken-burns 9s cubic-bezier(.25,.1,.25,1) both; }
.carrousel--cine .carrousel__diapo:nth-child(even).actif img, .carrousel--cine .carrousel__diapo:nth-child(even).sortante img { animation-name: ken-burns-2; }
@keyframes ken-burns { from { transform: scale(1); } to { transform: scale(1.045) translate3d(.6%, -.5%, 0); } }
@keyframes ken-burns-2 { from { transform: scale(1.045) translate3d(-.6%, .4%, 0); } to { transform: scale(1); } }

/* ---------- 4. Titres : révélation par masque (mot par mot) + enseigne néon lettre par lettre ---------- */
.titre-masque .mot { display: inline-block; overflow: hidden; vertical-align: top; }
.titre-masque .mot > span { display: inline-block; transform: translate3d(0, 105%, 0); transition: transform .85s cubic-bezier(.2,.8,.2,1); transition-delay: calc(var(--m, 0) * 70ms + 80ms); }
.titre-masque.vu .mot > span { transform: none; }
.titre-neon .lettre { display: inline-block; opacity: .08; }
.titre-neon.vu .lettre { animation: neon-allume .9s steps(1) both; animation-delay: calc(var(--l, 0) * 55ms + 200ms); }
.titre-neon:not(.allume) .glitch::before, .titre-neon:not(.allume) .glitch::after { opacity: 0; }
.titre-neon.allume .glitch { text-shadow: 0 0 18px rgba(59,130,255,.55), 0 0 42px rgba(255,46,166,.35); }
@keyframes neon-allume { 0% { opacity: .08; } 12% { opacity: 1; } 20% { opacity: .2; } 32% { opacity: 1; } 40% { opacity: .45; } 52%, 100% { opacity: 1; } }
/* Titre de page (catégorie, fiche) : jamais masqué (LCP), soulignement néon qui se trace */
.page-tete h1, .fiche h1 { position: relative; }
.js .titre-trace::after {
  content: ""; position: absolute; left: 0; bottom: -4px; width: min(220px, 60%); height: 3px; border-radius: 3px;
  background: var(--grad); box-shadow: 0 0 14px rgba(255,46,166,.55); transform-origin: left; transform: scaleX(0);
  animation: trace .9s cubic-bezier(.2,.8,.2,1) .15s forwards;
}
@keyframes trace { to { transform: scaleX(1); } }

/* ---------- 5. Révélation en rideau (affiches, zone gamer, configurateur, atelier) ---------- */
.rideau { position: absolute; inset: 0; z-index: 6; pointer-events: none; background: var(--grad); transform-origin: right center; transform: scaleX(1); transition: transform 1s cubic-bezier(.75,0,.2,1) .12s; }
.rideau::after { content: ""; position: absolute; inset: 0 auto 0 0; width: 3px; background: #fff; box-shadow: 0 0 18px 4px rgba(255,255,255,.8); }
.vu > .rideau { transform: scaleX(0); }

/* ---------- 6. Mise en scène « Zone gamer » / « Configure ton PC » : faisceaux + circuit SVG ---------- */
.scene { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.zone-gamer > :not(.scene):not(.rideau), .cfga__cadre > :not(.scene):not(.rideau) { position: relative; z-index: 1; }
.scene__circuit { position: absolute; inset: 0; width: 100%; height: 100%; }
.scene__circuit path { fill: none; stroke: url(#cine-grad-circuit); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; opacity: .55; transition: stroke-dashoffset 2.4s cubic-bezier(.4,0,.2,1); }
.scene__circuit path:nth-of-type(2n) { transition-delay: .3s; }
.scene__circuit path:nth-of-type(3n) { transition-delay: .55s; }
.vu > .scene .scene__circuit path { stroke-dashoffset: 0; }
.scene__circuit circle { fill: #ff2ea6; opacity: 0; transform-box: fill-box; transform-origin: center; }
.vu > .scene .scene__circuit circle { animation: noeud 2.6s ease-in-out infinite; animation-delay: calc(var(--n, 0) * .37s + 1.6s); }
.scene__circuit circle:nth-of-type(odd) { fill: #3b82ff; }
@keyframes noeud { 0%, 100% { opacity: .25; transform: scale(.7); } 45% { opacity: 1; transform: scale(1.35); } }
.scene__faisceau {
  position: absolute; top: -40%; bottom: -40%; left: 0; width: 22%;
  background: linear-gradient(90deg, transparent, rgba(122,167,255,.16) 45%, rgba(255,255,255,.22) 50%, rgba(255,46,166,.14) 55%, transparent);
  transform: translate3d(-150%, 0, 0) rotate(18deg); mix-blend-mode: screen; opacity: 0;
}
.vu > .scene .scene__faisceau { opacity: 1; animation: faisceau 7.5s cubic-bezier(.45,0,.25,1) 1s infinite; }
.vu > .scene .scene__faisceau--2 { animation-delay: 4.6s; animation-duration: 9s; width: 12%; }
@keyframes faisceau { 0% { transform: translate3d(-150%, 0, 0) rotate(18deg); } 55%, 100% { transform: translate3d(620%, 0, 0) rotate(18deg); } }
[data-theme="clair"] .cfga__cadre .scene__circuit path { opacity: .35; }
[data-theme="clair"] .cfga__cadre .scene__faisceau { mix-blend-mode: multiply; opacity: .5; }

/* ---------- 7. Cartes produit : reflet qui balaye au survol (l'inclinaison 3D est dans app.js) ---------- */
.carte__media::before {
  content: ""; position: absolute; z-index: 2; top: -10%; bottom: -10%; left: 0; width: 38%; pointer-events: none;
  background: linear-gradient(105deg, transparent, rgba(255,255,255,.55) 50%, transparent); transform: translate3d(-140%, 0, 0) skewX(-14deg); opacity: 0;
}
@media (hover: hover) and (pointer: fine) {
  .carte:hover .carte__media::before { animation: reflet .85s cubic-bezier(.4,0,.2,1); }
  .carte:hover .carte__media { box-shadow: 0 18px 40px -18px rgba(59,130,255,.55), 0 0 0 1px rgba(255,46,166,.25); }
}
@keyframes reflet { 0% { opacity: 1; transform: translate3d(-140%, 0, 0) skewX(-14deg); } 100% { opacity: 1; transform: translate3d(320%, 0, 0) skewX(-14deg); } }

/* Compteurs : éclat néon à la fin du décompte */
.compteur__val.fini { animation: compteur-eclat 1s ease-out; }
@keyframes compteur-eclat { 0% { filter: drop-shadow(0 0 0 transparent); } 30% { filter: drop-shadow(0 0 14px rgba(255,46,166,.8)); } 100% { filter: drop-shadow(0 0 0 transparent); } }

/* Bandeau marques : ralentit au survol au lieu de s'arrêter net (piste dupliquée par la vue, CSS seul) */
.marques-defile { position: relative; }
.marques-defile::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(59,130,255,.6), rgba(255,46,166,.6), transparent); opacity: .7; }

/* ---------- 8. Transitions entre pages (View Transitions API, ignorées par les navigateurs qui ne la gèrent pas) ---------- */
@view-transition { navigation: auto; }
.entete { view-transition-name: entete; }
.barre-mobile { view-transition-name: barre-mobile; }
.whatsapp-flottant { view-transition-name: whatsapp; }
.galerie__principale img { view-transition-name: produit-img; }
::view-transition-old(root) { animation: vt-sortie .26s cubic-bezier(.4,0,1,1) both; }
::view-transition-new(root) { animation: vt-entree .45s cubic-bezier(0,0,.2,1) both; }
::view-transition-group(produit-img) { animation-duration: .45s; animation-timing-function: cubic-bezier(.2,.8,.2,1); }
@keyframes vt-sortie { to { opacity: 0; transform: scale(.985); filter: blur(3px); } }
@keyframes vt-entree { from { opacity: 0; transform: scale(1.012); filter: blur(3px); } }

/* ---------- 9. Mouvement réduit : rien ne bouge, tout est visible ---------- */
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  .intro .intro-cine, .heros__halos, .carrousel__particules, .scene__faisceau, .rideau, .carte__media::before { display: none !important; }
  .intro .heros .carrousel, .intro .heros__cote { animation: none; }
  .carrousel::after { display: none; }
  .titre-masque .mot > span { transform: none !important; }
  .titre-neon .lettre { opacity: 1 !important; animation: none !important; }
  .scene__circuit path { stroke-dashoffset: 0; transition: none; }
  .js .titre-trace::after { animation: none; transform: scaleX(1); }
  .heros--parallaxe .carrousel__piste, .heros--parallaxe .heros__cote, .heros--parallaxe .carrousel, .heros--parallaxe .avantages { transform: none; }
}
@media print { .intro-cine, .heros__halos, .scene, .rideau, .carrousel__particules { display: none !important; } }

/* ── Affiches de droite du héros : animation du contenu (images fixes → effets superposés, texte jamais rogné) ── */
.tuile-anim { isolation: isolate; transform-style: preserve-3d; transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .25s ease-out, box-shadow .35s; }
.tuile-anim img { transform-origin: 100% 50%; animation: tw-respire 7s ease-in-out infinite; }
.tuile-anim:nth-child(2) img { animation-delay: -3.5s; }
@keyframes tw-respire { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.035) translateX(-.6%); } }
.tuile-anim__eclat { position: absolute; inset: -20% -60%; z-index: 2; pointer-events: none; background: linear-gradient(105deg, transparent 42%, rgba(255,255,255,.38) 49%, rgba(255,255,255,.08) 53%, transparent 58%); transform: translateX(-60%); animation: tw-eclat 5.5s ease-in-out infinite; mix-blend-mode: soft-light; }
.tuile-anim:nth-child(2) .tuile-anim__eclat { animation-delay: 2.7s; }
@keyframes tw-eclat { 0%, 55% { transform: translateX(-60%); } 85%, 100% { transform: translateX(60%); } }
.tuile-anim__etincelles { position: absolute; inset: 0 0 0 45%; z-index: 2; pointer-events: none;
  background-image: radial-gradient(2px 2px at 12% 30%, #fff, transparent 60%), radial-gradient(1.5px 1.5px at 40% 72%, #fff, transparent 60%), radial-gradient(2px 2px at 68% 18%, #ffd6f0, transparent 60%), radial-gradient(1.5px 1.5px at 86% 58%, #fff, transparent 60%), radial-gradient(2.5px 2.5px at 58% 88%, #ffc2e6, transparent 60%), radial-gradient(1.5px 1.5px at 24% 82%, #fff, transparent 60%);
  animation: tw-scintille 3.2s ease-in-out infinite; }
.tuile-anim:nth-child(2) .tuile-anim__etincelles { animation-delay: -1.6s; }
@keyframes tw-scintille { 0%, 100% { opacity: .15; transform: translateY(0); } 50% { opacity: .95; transform: translateY(-3px); } }
.tuile-anim__reflet { position: absolute; inset: 0; z-index: 3; pointer-events: none; opacity: 0; transition: opacity .3s; background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,.22), transparent 60%); }
.tuile-anim:hover .tuile-anim__reflet { opacity: 1; }
.tuile-anim::after { content: ""; position: absolute; inset: 0; z-index: 4; border-radius: inherit; padding: 2px; pointer-events: none; opacity: 0; transition: opacity .35s;
  background: conic-gradient(from var(--tw-angle, 0deg), #2f6bff, #8a3dff, #ff2ea6, #2f6bff); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: tw-tourne 4s linear infinite; }
.tuile-anim:hover::after { opacity: 1; }
@property --tw-angle { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes tw-tourne { to { --tw-angle: 360deg; } }
.tuile-anim:hover img { transform: scale(1.04); animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) {
  .tuile-anim, .tuile-anim img, .tuile-anim__eclat, .tuile-anim__etincelles, .tuile-anim::after { animation: none !important; transform: none !important; }
  .tuile-anim__eclat, .tuile-anim__etincelles { display: none; }
}

/* ── Retour client (15/11) : plus de grain de film, de vignettage ni de flou sur le carrousel ;
      la photo « flotte » doucement (les produits bougent) au lieu du zoom Ken Burns ── */
.carrousel::before, .carrousel::after, .cine-grain .carrousel::after { content: none !important; animation: none !important; }
.carrousel--cine .carrousel__diapo, .carrousel--cine .carrousel__diapo.sortante { filter: none !important; }
.carrousel--cine .carrousel__diapo.sortante { transform: none; }
.carrousel--cine .carrousel__diapo.actif img, .carrousel--cine .carrousel__diapo.sortante img { animation: produit-flotte 6s ease-in-out infinite; }
.carrousel--cine .carrousel__diapo:nth-child(even).actif img { animation-name: produit-flotte; animation-delay: -3s; }
@keyframes produit-flotte { 0%, 100% { transform: scale(1.03) translate3d(0, 0, 0); } 50% { transform: scale(1.03) translate3d(0, -1.6%, 0) rotate(-.25deg); } }
@media (prefers-reduced-motion: reduce) { .carrousel--cine .carrousel__diapo img { animation: none !important; } }

/* ── Retour client : l'affiche du carrousel remplit toute la case (le carrousel peut être étiré par la colonne
      des affiches de droite, et la parallaxe le décale de quelques pixels) ── */
.carrousel .carrousel__piste { height: 100%; }
.carrousel .carrousel__diapo { min-height: 100%; }
.carrousel .carrousel__diapo a, .carrousel .carrousel__diapo img { height: 100%; width: 100%; object-fit: cover; }
.heros--parallaxe .carrousel__piste { transform: translate3d(calc(var(--px, 0) * -7px), calc(var(--py, 0) * -5px), 0) scale(1.045); }

/* ── Retour client : intro rejouée à chaque chargement de l'accueil, un peu plus lente (≈ ×1,45 : 2,1 s) ── */
.intro .intro-cine { animation: intro-fin 0s 2.1s forwards; }
.intro-cine__volet { animation-duration: .9s; animation-delay: 1.13s; }
.intro-cine__ligne { animation-duration: 1.74s; animation-delay: .07s; }
.intro-cine__logo { animation-duration: 1.88s; }
.intro-cine__balayage::before { animation-duration: .87s; animation-delay: .32s; }
.intro .heros .carrousel, .intro .heros__cote { animation-duration: 1.6s; animation-delay: 1.02s; }
.intro .heros__cote { animation-delay: 1.19s; }

/* ── Variété des apparitions (retour client) : chaque section a son style de révélation et son rideau ── */
.js .reveal--gauche { transform: translateX(-46px); }
.js .reveal--droite { transform: translateX(46px); }
.js .reveal--zoom { transform: scale(.9); }
.js .reveal--flou { transform: translateY(10px); filter: blur(10px); transition-property: opacity, transform, filter; }
.js .reveal--bascule { transform: perspective(900px) rotateX(18deg) translateY(26px); transform-origin: 50% 100%; }
.js .reveal--monte { transform: translateY(34px); }
.js .reveal.vu[class*="reveal--"] { transform: none; filter: none; }
.rideau--droite { transform-origin: right center; }
.rideau--gauche { transform-origin: left center; }
.rideau--gauche::after { inset: 0 0 0 auto; }
.rideau--haut, .rideau--bas { transform: scaleY(1); }
.rideau--haut { transform-origin: center top; }
.rideau--bas { transform-origin: center bottom; }
.rideau--haut::after, .rideau--bas::after { inset: auto 0 0 0; width: auto; height: 3px; }
.rideau--bas::after { inset: 0 0 auto 0; }
.vu > .rideau--haut, .vu > .rideau--bas { transform: scaleY(0); }
.rideau--centre { transform-origin: center; }
.rideau--centre::after { display: none; }
.vu > .rideau--centre { transform: scaleX(0); opacity: 0; transition: transform 1s cubic-bezier(.75,0,.2,1) .12s, opacity .4s ease .9s; }
.rideau--diagonale { transform: none; clip-path: polygon(0 0, 140% 0, 100% 100%, -40% 100%); transition: clip-path 1.1s cubic-bezier(.75,0,.2,1) .12s; }
.rideau--diagonale::after { display: none; }
.vu > .rideau--diagonale { transform: none; clip-path: polygon(140% 0, 140% 0, 100% 100%, 100% 100%); }
.rideau--c1 { background: linear-gradient(120deg, #1553bd, #2f6bff); }
.rideau--c2 { background: linear-gradient(120deg, #d70f81, #ff2ea6); }
@media (prefers-reduced-motion: reduce) { .js .reveal[class*="reveal--"] { transform: none !important; filter: none !important; } }
