/* scroll-fx.css — effets de défilement d'illudens.fr (20/11/2026).
   Tout est sous html.fx : sans le script (mouvement réduit, animations coupées, bibliothèque non chargée), la page reste exactement comme avant. */

/* 1. Profondeur : les images de fond des sections bougent plus lentement que la page */
html.fx .sec-art{overflow:hidden}
html.fx .sec-art img{transform:scale(1.16);will-change:transform}

/* 2. Produits : un mot géant glisse derrière chaque groupe, un filet de couleur se trace sous chaque ligne */
html.fx .grp{position:relative;overflow-x:clip}
html.fx .grp-h,html.fx .row{position:relative;z-index:1}
html.fx .fx-ghost{position:absolute;left:0;top:clamp(36px,5vw,70px);z-index:0;pointer-events:none;user-select:none;white-space:nowrap;
 font:800 clamp(120px,22vw,340px)/.8 var(--d);letter-spacing:-.06em;color:transparent;-webkit-text-stroke:1.5px var(--c);opacity:.16;will-change:transform}
html.fx .row::after{content:"";position:absolute;left:0;right:0;bottom:-1px;height:2px;background:var(--c);transform:scaleX(0);transform-origin:0 50%;border-radius:2px}
html.fx .row.fx-in::after{transform:scaleX(1);transition:transform 1.1s cubic-bezier(.16,1,.3,1)}
html.fx .row .lg{will-change:transform}

/* 3. Films : la salle de projection se défile à l'horizontale pendant que la page est épinglée (ordinateur seulement) */
html.fx-films #films{min-height:100svh;display:flex;align-items:center}
html.fx-films #films .reel{position:relative;overflow:visible;scroll-snap-type:none;padding-block:28px 40px;will-change:transform}
html.fx-films #films .wrap{overflow:visible}
html.fx-films #films{overflow-x:clip}
html.fx-films .film .fr{transform-origin:50% 60%;will-change:transform;backface-visibility:hidden}
html.fx-films .film .cap{transition:opacity .3s}
