/* Hemeryt · essai A2 « Le film », une section sur deux.
   Rythme : héros (fort, intact) → Pour qui SIMPLE → Ce qu'on fait FORT → La méthode SIMPLE → Cofondateurs FORT → Blog SIMPLE → Contact FORT.
   Tout ce qui bouge vit sous html.hm-film (posée par js/site.js seulement si le script tourne, hors ?pose=1 et hors mouvement réduit).
   Sans elle : le document de base, immobile, dans l'ordre.
   Règles : aucun texte caché puis montré ; le texte est « porté » (il glisse, toujours opaque) ou s'allume par la couleur.
   Zooms, iris, points : images et fonds seulement. Propriétés animées : transform, clip-path, couleur. */

/* ---------- Base (tous les modes) ---------- */
.hm-pq-scene, .hm-pq-stage,
.hm-cqf-scene, .hm-cqf-stage, .hm-cqf-piste, .hm-cqf-ouverture,
.hm-cf-scene, .hm-cf-stage { display: contents; }
.hm-pq-image .hm-pq-avant, .hm-pq-image .hm-pq-avant img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hm-pq-nuit, .hm-ct-points, .hm-ct-ouverture, .hm-cf-points, .hm-ct-voie { display: none; }

/* Le point final : l'appel le plus gros de la page (tous les modes) */
.hm-ct-titre { font-size: clamp(3rem, 0.9rem + 7.4vw, 9.5rem); line-height: 0.96; letter-spacing: -0.035em; grid-column: 1 / -1; }
.hm-ct-bouton { min-height: 96px; min-width: min(100%, 440px); justify-content: space-between; padding: 0 var(--e-7); font-size: 1.75rem; gap: var(--e-6); box-shadow: 0 26px 52px -22px color-mix(in oklab, black 72%, transparent); }
.hm-ct-bouton::after { width: 64px; }
@media (max-width: 899px) {
  .hm-ct-titre { font-size: clamp(3rem, 1.2rem + 9vw, 4.6rem); }
  .hm-ct-bouton { width: 100%; min-width: 0; min-height: 84px; box-sizing: border-box; font-size: 1.5rem; }
}

/* ============================================================
   FILM
   ============================================================ */
.hm-film .hm-titre, .hm-film .hm-ligne, .hm-film .hm-cf-nom { overflow: visible; }

/* Titres portés : déjà là, ils montent à leur place avec le défilement */
.hm-film .hm-titre-texte { transform: translate3d(0, calc((1 - var(--hm-entree, 1)) * 64px), 0); }
.hm-film .hm-regle { transform: scaleX(calc(0.08 + 0.92 * var(--hm-entree, 1))); }

/* Rail de droite : l'index glisse avec le défilement */
.hm-film .hm-rail::after {
  content: ""; position: absolute; top: 0; right: -4px; width: 21px; height: 100%;
  background: linear-gradient(currentColor, currentColor) right top / 21px 2px no-repeat;
  color: var(--vert-sommet);
  transform: translateY(calc(var(--hm-trace, 1) * 100%));
}
.hm-film .hm-section--nuit .hm-rail::after, .hm-film #cofondateurs .hm-rail::after { color: var(--saison-accent); }
.hm-film #cofondateurs .hm-rail-cote { color: var(--saison-accent); }
.hm-film #cofondateurs .hm-rail-cote::after { background: var(--saison-nuit); }
.hm-film #cofondateurs .hm-rail.hm-atteint .hm-rail-cote::after { background: currentColor; }

/* Jonctions : chaque section glisse sur la précédente par un bord fondu (jamais de coupe nette) */
.hm-film #ce-quon-fait, .hm-film #methode, .hm-film #cofondateurs, .hm-film #blog { margin-top: calc(-18 * 1svh); z-index: 1; }
.hm-film #methode, .hm-film #cofondateurs, .hm-film #blog { padding-top: calc(clamp(64px, 7vw, 120px) + 18svh); }
.hm-film #methode { padding-bottom: calc(clamp(64px, 7vw, 120px) + 18svh); }
.hm-film #ce-quon-fait { background: linear-gradient(180deg, transparent 0, var(--saison-nuit) calc(18 * 1svh)); }
.hm-film #methode { background: linear-gradient(180deg, transparent 0, var(--creme) calc(18 * 1svh)); }
.hm-film #cofondateurs { background: linear-gradient(180deg, transparent 0, var(--saison-nuit) calc(18 * 1svh)); color: var(--sur-sombre); }
.hm-film #blog { background: linear-gradient(180deg, transparent 0, var(--creme) calc(18 * 1svh)); }
.hm-film #methode::before, .hm-film #methode::after,
.hm-film #cofondateurs::before, .hm-film #cofondateurs::after,
.hm-film #ce-quon-fait::after,
.hm-film #blog::before, .hm-film #blog::after {
  -webkit-mask-image: linear-gradient(180deg, transparent 0, transparent calc(10 * 1svh), black calc(22 * 1svh));
  mask-image: linear-gradient(180deg, transparent 0, transparent calc(10 * 1svh), black calc(22 * 1svh));
}

/* ---------- 1. Pour qui · SIMPLE : tout se lit d'un coup d'œil ---------- */
/* mouvement : les mots du chapeau s'allument par la couleur (≥ 3:1 → plein) ; les lignes sont portées ; la vallée bouge doucement dans son cadre */
.hm-film .hm-pq-chapeau .hm-mot { color: color-mix(in oklab, var(--encre) 66%, var(--creme)); transition: color 420ms var(--ease-sortie); }
.hm-film .hm-pq-chapeau .hm-mot.hm-allume { color: var(--encre); }
.hm-film .hm-pq-stage {
  display: grid; grid-column: 1 / -1;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  column-gap: clamp(32px, 5vw, 96px); align-items: center;
  margin-top: clamp(40px, 5vw, 88px);
}
.hm-film .hm-pq-image {
  grid-column: 2; grid-row: 1; margin: 0; position: relative;
  aspect-ratio: 5 / 4; max-height: 66svh; width: 100%;
  overflow: clip; border-radius: var(--r-1);
}
.hm-film .hm-pq-image::after { display: none; }
.hm-film .hm-pq-image picture { position: absolute; inset: 0; display: block; }
.hm-film .hm-pq-image img { width: 100%; height: 100%; object-fit: cover; object-position: 38% 50%; }
.hm-film .hm-pq-image > picture:first-child img { transform: translate3d(0, calc((var(--hm-pq, 0.5) - 0.5) * -5%), 0) scale(1.12); }
.hm-film .hm-pq-image .hm-pq-avant img { transform: translate3d(0, calc((var(--hm-pq, 0.5) - 0.5) * -14%), 0) scale(1.16); transform-origin: 50% 100%; }
.hm-film .hm-pq-lignes { grid-column: 1; grid-row: 1; margin: 0; }
.hm-film .hm-pq-lignes .hm-ligne {
  font-size: clamp(1.5rem, 0.8rem + 1.7vw, 2.6rem);
  line-height: 1.12; letter-spacing: -0.02em; font-weight: 500;
  padding-block: clamp(18px, 3svh, 36px);
  color: var(--vert-maison);
  transform: translate3d(0, calc((1 - var(--hm-le, 1)) * 48px), 0);
}
.hm-film .hm-pq-lignes .hm-ligne-texte { max-width: 22ch; }
@media (max-width: 899px) {
  .hm-film #pour-qui { padding-top: calc(8 * var(--hm-vh, 1vh)); }
  .hm-film .hm-pq-stage { grid-template-columns: minmax(0, 1fr); margin-top: var(--e-7); row-gap: var(--e-6); }
  .hm-film .hm-pq-image { grid-column: 1; grid-row: 1; aspect-ratio: 16 / 9; max-height: none; }
  .hm-film .hm-pq-lignes { grid-row: 2; }
  .hm-film .hm-pq-lignes .hm-ligne { font-size: 1.3125rem; padding-block: 10px; }
}

/* ---------- 2. Ce qu'on fait · FORT « la traversée » ---------- */
/* La montagne de nuit plein écran ; le trait pointillé se trace à travers l'écran et passe par trois camps ;
   à chaque camp la scène tient (chiffre géant, titre, texte) ; entre deux camps, le cadrage zoome et se déplace. */
.hm-film #ce-quon-fait { padding: calc(18 * 1svh) 0 0; }
.hm-film .hm-cqf-image {
  position: sticky; top: 0; z-index: 0; display: block;
  width: 100%; height: 100svh; margin: 0 0 -100svh;
  -webkit-mask-image: none; mask-image: none; overflow: clip;
  background: var(--saison-nuit);
}
.hm-film .hm-cqf-image picture { display: block; position: absolute; top: 0; bottom: 0; left: max(0px, calc((100% - 2200px) / 2)); right: max(0px, calc((100% - 2200px) / 2));
  transform: translate3d(var(--hm-cam-x, 0%), var(--hm-cam-y, 0%), 0) scale(var(--hm-cam-s, 1)); transform-origin: 50% 45%; will-change: transform; }
.hm-film .hm-cqf-image img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 32%; transform: none; }
/* voile de nuit + trame de points (le relevé du héros) : la photo reste lisible en structure, le texte au-dessus tient 4,5:1 */
.hm-film .hm-cqf-image::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background-image: radial-gradient(circle, color-mix(in oklab, var(--creme) 16%, transparent) 0.9px, transparent 1.4px);
  background-size: 7px 7px;
}
.hm-film .hm-cqf-image::after {
  content: ""; position: absolute; inset: 0; z-index: 2;
  background:
    linear-gradient(to bottom, var(--saison-nuit) 0, color-mix(in oklab, var(--saison-nuit) 66%, transparent) 16%, color-mix(in oklab, var(--saison-nuit) 70%, transparent) 50%, color-mix(in oklab, var(--saison-nuit) 92%, transparent) 100%),
    linear-gradient(to right, var(--saison-nuit) 0, transparent max(0px, calc((100% - 2200px) / 2 + 160px)), transparent min(100%, calc(100% - (100% - 2200px) / 2 - 160px)), var(--saison-nuit) 100%);
}
.hm-film .hm-cqf-scene { display: block; position: relative; z-index: 1; grid-column: 1 / -1; height: calc(200 * 1svh); }
.hm-film .hm-cqf-stage { display: block; position: sticky; top: 0; height: 100svh; overflow: clip;
  margin-left: calc(-1 * var(--hm-gauche, 0px)); width: 100vw; }
.hm-film .hm-cqf-piste {
  display: flex; position: absolute; left: 0; top: 0; height: 100%;
  transform: translate3d(calc(var(--hm-cqf-x, 0) * -1px), 0, 0); will-change: transform;
}
.hm-film .hm-cqf-ouverture { display: flex; flex-direction: column; justify-content: center; flex: none; width: 100vw; height: 100%;
  padding: 0 max(var(--hm-gauche, 20px), calc((100vw - 2200px) / 2 + 80px)); box-sizing: border-box; }
.hm-film .hm-cqf-ouverture .hm-regle { width: min(100%, 1100px); }
.hm-film .hm-cqf-ouverture .hm-h2 { font-size: clamp(3.2rem, 1rem + 6.4vw, 8.5rem); line-height: 0.98; letter-spacing: -0.035em; max-width: 13ch; color: var(--creme); }
.hm-film .hm-temps-liste { display: flex; margin: 0; padding: 0; flex: none; height: 100%; }
.hm-film .hm-temps {
  display: grid; flex: none; width: 100vw; height: 100%; box-sizing: border-box; border: 0; position: relative;
  grid-template-columns: auto minmax(0, 40rem); column-gap: clamp(32px, 5vw, 120px);
  align-content: center; align-items: center;
  padding: 0 max(var(--hm-gauche, 20px), calc((100vw - 2200px) / 2 + 80px));
}
.hm-film .hm-temps > * { grid-column: 2; }
.hm-film .hm-temps .hm-temps-num {
  grid-column: 1; grid-row: 1 / span 3; align-self: center;
  font-size: clamp(9rem, 2rem + 15vw, 22rem); line-height: 0.8; letter-spacing: -0.05em; font-weight: 500;
  color: var(--saison-accent); margin: 0;
  transform: translate3d(calc(var(--hm-tp, 0) * -6vw), 0, 0);
}
.hm-film .hm-temps .hm-h3 { font-size: clamp(2.1rem, 1rem + 2.2vw, 3.6rem); line-height: 1.04; letter-spacing: -0.03em; color: var(--creme); margin-bottom: var(--e-5); }
.hm-film .hm-temps p { color: var(--sur-sombre); font-size: clamp(1.0625rem, 0.9rem + 0.3vw, 1.3rem); }
.hm-film .hm-temps .hm-livrable { background: color-mix(in oklab, var(--saison-nuit) 80%, transparent); }
/* la voie : un trait pointillé à travers toute la piste, révélé jusqu'à la tête ; trois camps qui s'allument */
.hm-film .hm-temps-voie {
  display: block; position: absolute; z-index: 1; left: 0; width: 400vw; top: 82%; height: 12px; margin: 0;
  background-image: repeating-linear-gradient(to right, var(--saison-accent) 0 7px, transparent 7px 15px);
  background-size: 100% 1px; background-repeat: no-repeat; background-position: 0 50%;
  clip-path: inset(-12px calc((1 - var(--hm-voie, 0)) * 100%) -12px 0);
}
.hm-film .hm-temps-voie span { position: absolute; top: 1px; width: 11px; height: 11px; margin: 0; background: var(--saison-nuit); border: 1px solid var(--saison-accent);
  transform: rotate(45deg) scale(0.6); transition: transform 500ms var(--ease-sortie), background-color 500ms var(--ease-sortie); }
.hm-film .hm-temps-voie span:nth-child(1) { left: calc(100vw + max(var(--hm-gauche, 20px), calc((100vw - 2200px) / 2 + 80px)) + 2vw); }
.hm-film .hm-temps-voie span:nth-child(2) { left: calc(200vw + max(var(--hm-gauche, 20px), calc((100vw - 2200px) / 2 + 80px)) + 2vw); }
.hm-film .hm-temps-voie span:nth-child(3) { left: calc(300vw + max(var(--hm-gauche, 20px), calc((100vw - 2200px) / 2 + 80px)) + 2vw); }
.hm-film .hm-temps-voie span.hm-allume { background: var(--saison-accent); transform: rotate(45deg) scale(1.3); }
.hm-film #ce-quon-fait .hm-rail { z-index: 2; }
@media (max-width: 899px) {
  .hm-film .hm-cqf-scene { height: calc(180 * 1svh); }
  .hm-film .hm-cqf-image { opacity: 1; right: auto; width: 100%; }
  .hm-film .hm-cqf-image img { object-position: 64% 30%; }
  .hm-film .hm-cqf-piste { flex-direction: column; width: 100vw; height: auto; transform: translate3d(0, calc(var(--hm-cqf-x, 0) * -1px), 0); }
  .hm-film .hm-cqf-ouverture { height: 100svh; padding: 0 var(--hm-gauche, 16px) 0 calc(var(--hm-gauche, 16px) + 22px); }
  .hm-film .hm-cqf-ouverture .hm-h2 { font-size: clamp(2.8rem, 1rem + 9vw, 3.6rem); }
  .hm-film .hm-temps-liste { flex-direction: column; height: auto; }
  .hm-film .hm-temps { display: flex; flex-direction: column; justify-content: center; width: 100vw; height: 100svh;
    padding: 0 var(--hm-gauche, 16px) 0 calc(var(--hm-gauche, 16px) + 22px); }
  .hm-film .hm-temps .hm-temps-num { font-size: 7.5rem; line-height: 1.1; margin: 0 0 var(--e-3); align-self: flex-start; transform: none; }
  .hm-film .hm-temps .hm-h3 { font-size: 2rem; }
  .hm-film .hm-temps p { font-size: 1rem; margin-bottom: var(--e-5); }
  .hm-film .hm-temps .hm-livrable { font-size: 1.125rem; padding: var(--e-4); }
  .hm-film .hm-temps-voie { left: calc(var(--hm-gauche, 16px) + 2px); top: 0; width: 12px; height: 400svh;
    background-image: repeating-linear-gradient(to bottom, var(--saison-accent) 0 7px, transparent 7px 15px);
    background-size: 1px 100%; background-position: 50% 0;
    clip-path: inset(0 -12px calc((1 - var(--hm-voie, 0)) * 100%) -12px); }
  .hm-film .hm-temps-voie span { left: 0 !important; }
  .hm-film .hm-temps-voie span:nth-child(1) { top: calc(100svh + 30svh); }
  .hm-film .hm-temps-voie span:nth-child(2) { top: calc(200svh + 30svh); }
  .hm-film .hm-temps-voie span:nth-child(3) { top: calc(300svh + 30svh); }
}

/* ---------- 3. La méthode · SIMPLE : la liste en grand, celui du centre en couleur pleine ---------- */
.hm-film .hm-mt-lignes .hm-ligne {
  font-size: clamp(2.2rem, 1rem + 2.4vw, 3.4rem); line-height: 1.08; letter-spacing: -0.03em;
  padding-block: clamp(16px, 3svh, 36px);
}
.hm-film .hm-mt-lignes .hm-ligne .hm-ligne-texte { color: color-mix(in oklab, var(--encre) 66%, var(--creme)); transition: color 420ms var(--ease-sortie); }
.hm-film .hm-mt-lignes .hm-ligne.hm-actif .hm-ligne-texte { color: var(--vert-sommet); }
.hm-film .hm-mt-lignes .hm-ligne-texte { max-width: 22ch; }
.hm-film .hm-mt-courbes {
  transform: translate3d(calc(var(--hm-trace, 0) * 9%), calc(var(--hm-trace, 0) * -12%), 0) rotate(calc(var(--hm-trace, 0) * -6deg)) scale(calc(1 + var(--hm-trace, 0) * 0.12));
  transform-origin: 30% 60%;
  width: min(110vw, 1600px); left: -14%; bottom: -16%;
  color: color-mix(in oklab, var(--vert-sommet) 40%, transparent);
}
@media (max-width: 899px) {
  .hm-film .hm-mt-lignes .hm-ligne { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 1.8rem); padding-block: 14px; }
  .hm-film .hm-mt-courbes { width: 240vw; left: -60%; bottom: 0; }
}

/* ---------- 4. Cofondateurs · FORT « la cordée » (mission 3 : plus court, plus de contenu) ---------- */
/* scène collée plein écran : les deux vignettes arrivent presque ensemble, de deux côtés, avec de la profondeur ;
   sous chacune, le nom en grand, « Cofondateur » et sa phrase de rôle, qui montent depuis la vignette.
   Un champ de points derrière répond au pointeur et au doigt. */
.hm-cf-phrase { margin: var(--e-2) 0 0; font-size: max(1rem, var(--t-m)); line-height: 1.45; max-width: 36ch; }
.hm-film #cofondateurs .hm-cf-titre .hm-titre-texte { color: var(--creme); }
.hm-film #cofondateurs .hm-cf-chapeau { color: var(--sur-sombre); }
.hm-film #cofondateurs .hm-regle { border-color: var(--saison-accent-filet); }
.hm-film #cofondateurs { padding-bottom: calc(18svh + 24px); }
.hm-film .hm-cf-scene { display: block; grid-column: 1 / -1; position: relative; height: calc(150 * 1svh); margin-top: clamp(16px, 3vw, 40px);
  margin-left: calc(-1 * var(--hm-gauche, 0px)); width: 100vw; }
.hm-film .hm-cf-stage { display: block; position: sticky; top: 0; height: 100svh; overflow: clip; }
.hm-film .hm-cf-points { display: block; position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.hm-film .hm-cf-liste {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1; margin: 0; padding: 0;
  display: grid; grid-auto-flow: column; grid-template-columns: none; justify-content: center; align-content: center; align-items: start;
  column-gap: clamp(32px, 6vw, 160px); box-sizing: border-box;
}
.hm-film .hm-cf-personne { width: calc(46svh * 0.8); max-width: 40vw; }
.hm-film .hm-portrait { width: 100%; aspect-ratio: 4 / 5; border-radius: var(--r-1);
  transform: translate3d(calc((1 - var(--hm-cfa, 1)) * var(--hm-cf-cote, 0) * 34vw), calc((1 - var(--hm-cfa, 1)) * 5svh), 0) scale(calc(0.8 + 0.2 * var(--hm-cfa, 1) + 0.035 * var(--hm-cfz, 0)));
  will-change: transform; }
.hm-film .hm-cf-personne + .hm-cf-personne { --hm-cfa: var(--hm-cfb, 1); }
.hm-film .hm-portrait--jp { --hm-cf-cote: -1; }
.hm-film .hm-portrait--pm { --hm-cf-cote: 1; }
.hm-film .hm-portrait picture { transform: translate3d(calc(var(--hm-mx, 0) * -10px), calc(var(--hm-my, 0) * -8px + (0.5 - var(--hm-cfp, 0.5)) * 5%), 0) scale(1.1); }
/* le nom et la phrase montent depuis la vignette (glissement seul, texte toujours à opacité 1) */
.hm-film .hm-cf-nom, .hm-film .hm-cf-phrase { transform: translate3d(0, calc((1 - var(--hm-cfa, 1)) * 9svh), 0); }
.hm-film .hm-cf-phrase { transform: translate3d(0, calc((1 - var(--hm-cfa, 1)) * 14svh), 0); color: var(--sur-sombre); font-size: clamp(1rem, 0.75rem + 0.45vw, 1.375rem); }
.hm-film .hm-cf-nom { border-top-color: var(--saison-accent-filet); margin-top: var(--e-3); }
.hm-film .hm-cf-nom-texte { font-size: clamp(1.8rem, 0.6rem + 2.1vw, 3.4rem); line-height: 1; letter-spacing: -0.03em; color: var(--creme); }
.hm-film .hm-cf-role { color: var(--saison-accent); font-size: var(--t-m); margin-top: var(--e-2); }
@media (max-width: 899px) {
  .hm-film .hm-cf-scene { height: calc(140 * 1svh); }
  /* au téléphone : deux rangées, la vignette d'un côté, le nom et la phrase de l'autre ; Paul en miroir */
  .hm-film .hm-cf-liste { grid-auto-flow: row; justify-content: stretch; row-gap: clamp(28px, 5svh, 48px); padding: 0 calc(var(--hm-gauche, 16px) + 14px) 0 var(--hm-gauche, 16px); }
  .hm-film .hm-cf-personne { width: 100%; max-width: none; display: grid; grid-template-columns: 40vw 1fr; column-gap: 18px; align-items: end; }
  .hm-film .hm-cf-personne + .hm-cf-personne { grid-template-columns: 1fr 40vw; }
  .hm-film .hm-cf-personne > * { grid-column: 2; }
  .hm-film .hm-cf-personne > .hm-portrait { grid-column: 1; grid-row: 1 / span 2; align-self: center; }
  .hm-film .hm-cf-personne + .hm-cf-personne > * { grid-column: 1; }
  .hm-film .hm-cf-personne + .hm-cf-personne > .hm-portrait { grid-column: 2; }
  .hm-film .hm-portrait { transform: translate3d(calc((1 - var(--hm-cfa, 1)) * var(--hm-cf-cote, 0) * 46vw), 0, 0) scale(calc(0.86 + 0.14 * var(--hm-cfa, 1))); }
  .hm-film .hm-cf-nom { margin-top: 0; align-self: end; }
  .hm-film .hm-cf-phrase { align-self: start; font-size: 1rem; max-width: none; }
  .hm-film .hm-cf-nom-texte { font-size: 1.625rem; }
}

/* ---------- 5. Blog · SIMPLE : les couvertures bougent dans leur cadre (balisage du générateur intact) ---------- */
.hm-film .hm-blog-image picture { transform: translate3d(0, calc(var(--hm-g, 0) * -8%), 0) scale(1.18); }

/* ---------- 6. Contact · FORT, la fin ---------- */
/* La photo du sommet s'ouvre jusqu'au plein écran ; le trait pointillé monte au sommet et finit sur le bouton ;
   « Parlons de vos journées » en géant, le bouton le plus gros de la page ; les points répondent au pointeur. */
.hm-film .hm-blog-tous { margin-bottom: 14svh; }
.hm-film .hm-ct > .hm-cadre { margin-top: 76svh; }
.hm-film .hm-ct { --hm-ct-pad: clamp(120px, 26svh, 280px);
  margin-top: -16svh; z-index: 1; background: transparent; padding-top: calc(var(--hm-ct-pad) + 16svh); padding-bottom: clamp(40px, 6svh, 64px); }
.hm-film .hm-ct::before { content: ""; position: absolute; z-index: -2; left: 0; right: 0; top: 0; bottom: 0;
  background: linear-gradient(to bottom, transparent 0, color-mix(in oklab, var(--saison-nuit) 80%, transparent) 9svh, var(--saison-nuit) 16svh);
  transform: translate3d(0, calc((1 - var(--hm-ct-nuit, 1)) * 16svh), 0); }
.hm-film .hm-ct-image {
  position: sticky; top: 0; inset: auto; z-index: -1;
  height: 100svh; margin: calc(-1 * var(--hm-ct-pad)) 0 calc(var(--hm-ct-pad) - 100svh);
  clip-path: inset(calc((1 - var(--hm-ct, 1)) * 30%) calc((1 - var(--hm-ct, 1)) * 38%) calc((1 - var(--hm-ct, 1)) * 30%) calc((1 - var(--hm-ct, 1)) * 38%));
}
.hm-film .hm-ct-image picture, .hm-film .hm-ct-points { position: absolute; top: 0; bottom: 0; height: 100%;
  left: max(0px, calc((100% - 2400px) / 2)); right: max(0px, calc((100% - 2400px) / 2)); width: auto;
  transform: translate3d(0, calc(var(--hm-ct-fin, 0) * 26svh), 0) scale(calc(1.5 - var(--hm-ct, 1) * 0.5)); transform-origin: 72% 34%; will-change: transform; }
.hm-film .hm-ct-image img { height: 100%; object-position: 80% 30%; transform: none; }
.hm-film .hm-ct-points { display: block; z-index: 1; }
.hm-film .hm-ct-image::after { z-index: 2; }
.hm-film .hm-ct-image::before { content: ""; display: block; position: absolute; inset: 0; z-index: 2;
  background-image: radial-gradient(circle, color-mix(in oklab, var(--creme) 12%, transparent) 0.9px, transparent 1.4px); background-size: 7px 7px; }
.hm-film .hm-ct-titre .hm-titre-texte, .hm-film .hm-ct-action, .hm-film .hm-ct-coord { transform: translate3d(0, calc((1 - var(--hm-ct, 1)) * 12svh), 0); }
.hm-film .hm-ct-titre { font-size: clamp(3.2rem, 0.6rem + 9vw, 12rem); }
/* le bord de l'ouverture : un filet crème posé exactement sur la découpe */
.hm-film .hm-ct-ouverture {
  display: block; position: absolute; z-index: 3; pointer-events: none;
  top: calc((1 - var(--hm-ct, 1)) * 30%); bottom: calc((1 - var(--hm-ct, 1)) * 30%);
  left: calc((1 - var(--hm-ct, 1)) * 38%); right: calc((1 - var(--hm-ct, 1)) * 38%);
  border: 1px solid var(--creme); opacity: calc((1 - var(--hm-ct, 1)) * 0.7);
}
/* la voie : du bas de l'écran au sommet, puis jusqu'au bouton */
.hm-film .hm-ct-voie { display: block; position: absolute; inset: 0; width: 100%; height: 100%; z-index: 3; overflow: visible; pointer-events: none; }
.hm-film .hm-ct-voie-trait { fill: none; stroke: var(--saison-accent); stroke-width: 1.5; }
.hm-film .hm-ct-voie-sommet { fill: var(--saison-accent); transform-box: fill-box; transform-origin: center; transform: rotate(45deg); }
@media (max-width: 899px) {
  .hm-film .hm-ct > .hm-cadre { margin-top: 66svh; }
  .hm-film .hm-ct-titre { font-size: clamp(3.2rem, 1.2rem + 10vw, 4.8rem); }
}
/* fluidité : couches propres pour les grands éléments déplacés à chaque image */
.hm-film .hm-mt-courbes, .hm-film .hm-blog-image picture, .hm-film .hm-portrait picture, .hm-film .hm-cf-points, .hm-film .hm-ct-voie, .hm-film .hm-cqf-image::before { will-change: transform; }
/* vitesse : loin de l'écran, ces éléments rendent leur couche (mémoire graphique) ; site.js pose .hm-proche à ±1 écran */
.hm-film .hm-section:not(.hm-proche) .hm-cqf-image picture, .hm-film .hm-section:not(.hm-proche) .hm-cqf-piste,
.hm-film .hm-section:not(.hm-proche) .hm-portrait, .hm-film .hm-section:not(.hm-proche) .hm-portrait picture,
.hm-film .hm-section:not(.hm-proche) .hm-ct-image picture, .hm-film .hm-section:not(.hm-proche) .hm-ct-points,
.hm-film .hm-section:not(.hm-proche) .hm-mt-courbes, .hm-film .hm-section:not(.hm-proche) .hm-blog-image picture,
.hm-film .hm-section:not(.hm-proche) .hm-cf-points, .hm-film .hm-section:not(.hm-proche) .hm-ct-voie,
.hm-film .hm-section:not(.hm-proche) .hm-cqf-image::before { will-change: auto; }
