/* Reach Adz v21 — L'atelier : « Du tournage à la pub. » (composant [data-montage], js/montage21.js ;
   docs/v21/COMPOSANTS-v21.md « ## Montage » ; BRIEF-v21 §3).
   La table de montage de la vraie pub, aux couleurs de la marque : barres arrondies, Inter, cyan et blanc sur navy ; pas
   d'allure de logiciel, pas de monospace. La tête de lecture est le surligneur cyan de la marque (coin biseauté).
   Accueil (ordinateur) : .montage--defile, l'ouverture liée au défilement (220 vh, intérieur collant).
   Téléphone : .montage--capcut, la tête de lecture fixe au centre, les pistes défilent dessous.
   Pages Vidéo et Agence : [data-montage="compact"], la même table posée sur un plateau navy. */

@property --monte { syntax: "<number>"; inherits: true; initial-value: 1; }
@property --e { syntax: "<number>"; inherits: true; initial-value: 0; }

.montage {
  --m-fond: var(--nuit, #071326);
  --m-surface: rgb(255 255 255 / .045);
  --m-ligne: rgb(255 255 255 / .1);
  --m-texte: var(--nuit-texte, #C9D6EE);
  --m-doux: var(--nuit-doux, #9FB0D0);
  --m-cyan: var(--cyan, #80F2FF);
  --m-ressort: var(--ressort, cubic-bezier(.34, 1.56, .64, 1));
  --m-biseau: polygon(0 0, 100% 0, 100% calc(100% - 7px), calc(100% - 7px) 100%, 0 100%);
  /* les rangs de la timeline : règle, plans, sous-titres, habillage (deux voies), son */
  --r-regle: 22px; --r-plans: 52px; --r-st: 24px; --r-hab: 44px; --r-son: 36px; --r-gap: 6px;
  --ecran-h: min(600px, 64vh);
  position: relative;
  color: #fff;
}
.montage *, .montage *::before, .montage *::after { box-sizing: border-box; }

/* ------------------------------------------------------------------ la scène : grille */
.montage__scene {
  position: relative; isolation: isolate;
  display: grid; grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "gauche" "ecran" "table" "droite" "legende";
  row-gap: 18px;
  padding-inline: var(--gout, 18px);
}
.montage__gauche { grid-area: gauche; position: relative; z-index: 3; display: grid; align-content: start; gap: 18px; min-width: 0; }
.montage__gauche .plaque { margin: 0; }
.montage__titre { margin: 0; }
.montage__titre > span {
  display: inline-block; transform-origin: 0 100%;
  font: 900 clamp(34px, 7.4vw, 44px)/.98 var(--titre); letter-spacing: -.035em; color: #fff; text-wrap: balance;
}
.montage__titre > span em { font-style: normal; color: var(--m-cyan); }
.montage__petit { grid-area: petit; display: none; }
.montage__ecran { grid-area: ecran; }
.montage__droite { grid-area: droite; position: relative; z-index: 0; display: grid; gap: 14px; align-content: start; justify-items: start; }
.montage__table { grid-area: table; }
.montage__legende { grid-area: legende; margin: 0; max-width: 62rem; font: 400 16px/1.5 var(--corps); color: var(--m-doux); text-wrap: pretty; }
.montage__legende b { font-weight: 650; color: var(--m-texte); }

/* ------------------------------------------------------------------ le moniteur (la pub) */
.montage__ecran {
  position: relative; z-index: 0; margin: 0; justify-self: center;
  height: min(52svh, 470px); aspect-ratio: 9 / 16; border-radius: 22px; overflow: hidden;
  background: #000 center / cover no-repeat;
  box-shadow: 0 0 0 1px rgb(255 255 255 / .16), 0 0 0 7px rgb(255 255 255 / .04), 0 40px 80px -30px rgb(0 0 0 / .8), 0 0 90px -30px rgb(128 242 255 / .35);
  transition: box-shadow 180ms var(--ease, ease);
}
.montage__ecran > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.montage__eclair { position: absolute; inset: 0; z-index: 3; background: #fff; opacity: 0; pointer-events: none; }
.montage__etiquette {
  position: absolute; z-index: 2; left: 10px; top: 10px; display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 11px 7px 9px; border-radius: 999px; background: rgb(7 19 38 / .62);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  font: 600 13px/1 var(--corps); color: #fff; font-feature-settings: "tnum" 1;
}
.montage__etiquette b { font-weight: 800; color: var(--m-cyan); }
.montage__etiquette > span { display: inline-block; }
.montage__lecture {
  position: absolute; z-index: 2; right: 8px; bottom: 8px; width: 44px; height: 44px; border: 0; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer; color: #fff; background: rgb(7 19 38 / .55);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .2);
  transition: transform 180ms var(--m-ressort), background-color 120ms;
}
.montage__lecture::before { content: ""; width: 18px; height: 18px; background: currentColor; -webkit-mask: var(--i-pause) center / contain no-repeat; mask: var(--i-pause) center / contain no-repeat; }
.montage__lecture.est-pause::before { -webkit-mask-image: var(--i-lecture); mask-image: var(--i-lecture); }
.montage__lecture:active { transform: scale(.94); }
.montage__lecture:focus-visible, .montage__son:focus-visible, .montage__revoir:focus-visible, .montage__tete:focus-visible { outline: 2px solid var(--m-cyan); outline-offset: 3px; }
.est-glisse .montage__ecran { box-shadow: 0 0 0 2px var(--m-cyan), 0 0 0 9px rgb(128 242 255 / .12), 0 40px 80px -30px rgb(0 0 0 / .8), 0 0 110px -20px rgb(128 242 255 / .55); }

/* le petit moniteur du rush (ordinateur ; et en mouvement réduit, à côté de la pub) */
.montage__petit { margin: 0; gap: 10px; justify-items: start; align-content: end; }
.montage__petit-ecran {
  position: relative; display: block; width: 112px; aspect-ratio: 9 / 16; border-radius: 14px; overflow: hidden; padding: 0; border: 0;
  background: #000; cursor: pointer; box-shadow: 0 0 0 1px rgb(255 255 255 / .16), 0 20px 40px -20px rgb(0 0 0 / .8);
  transition: transform 260ms var(--m-ressort);
}
.montage__petit-ecran img { width: 100%; height: 100%; object-fit: cover; display: block; }
.montage__petit-ecran::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 40px; height: 40px; margin: -20px 0 0 -20px; border-radius: 50%;
  background: rgb(7 19 38 / .55) var(--i-lecture) 56% 50% / 0 0 no-repeat; box-shadow: inset 0 0 0 1px rgb(255 255 255 / .3);
}
.montage__petit-ecran::before {
  content: ""; position: absolute; z-index: 1; left: 50%; top: 50%; width: 16px; height: 16px; margin: -8px 0 0 -6px; background: #fff;
  -webkit-mask: var(--i-lecture) center / contain no-repeat; mask: var(--i-lecture) center / contain no-repeat;
}
@media (hover: hover) { .montage__petit-ecran:hover { transform: translateY(-3px) rotate(-1.5deg); } }
.montage__petit figcaption { font: 400 14px/1.35 var(--corps); color: var(--m-doux); max-width: 15rem; }
.montage__petit figcaption b { display: block; font: 750 15px/1.3 var(--titre); color: #fff; }
.montage--reduit .montage__petit-ecran { cursor: default; }
.montage--reduit .montage__petit-ecran::before, .montage--reduit .montage__petit-ecran::after { display: none; }

/* ------------------------------------------------------------------ « à l'image », le son, revoir */
.montage__k { margin: 0; font: 650 var(--fs-cartel, 13px)/1 var(--titre); letter-spacing: .16em; text-transform: uppercase; color: var(--cyan-2, #B9F8FF); }
.montage__droite > .montage__k { display: none; }
.montage__alimage { display: none; margin: 0; padding: 0; list-style: none; flex-wrap: wrap; gap: 8px; min-height: 36px; }
.montage__pastille {
  display: inline-flex; align-items: center; min-height: 34px; padding: 6px 13px; border-radius: 999px;
  font: 600 14px/1.2 var(--corps); color: #fff; background: rgb(255 255 255 / .08); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .14);
  transition: transform 420ms var(--m-ressort), opacity 200ms var(--ease, ease);
}
.montage__pastille:first-child { color: var(--m-fond); background: var(--m-cyan); box-shadow: none; clip-path: var(--m-biseau); border-radius: 999px 4px 4px 999px; }
.montage__pastille.est-neuve { transform: scale(.85) translateY(6px); opacity: 0; }
.montage__actions { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; }
.montage__son {
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 20px 0 16px; border: 0; border-radius: 999px; cursor: pointer;
  font: 700 16px/1 var(--titre); color: var(--m-fond); background: var(--m-cyan);
  box-shadow: 0 10px 30px -12px rgb(128 242 255 / .7);
  transition: transform 280ms var(--m-ressort), background-color 120ms;
}
.montage__son::before { content: ""; width: 20px; height: 20px; background: currentColor; -webkit-mask: var(--i-son) center / contain no-repeat; mask: var(--i-son) center / contain no-repeat; }
.montage__son[aria-pressed="true"] { background: #fff; }
.montage__son:active { transform: scale(.97); }
.montage__revoir {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 4px; border: 0; background: none; cursor: pointer;
  font: 600 16px/1.2 var(--corps); color: var(--m-texte); text-decoration: underline; text-decoration-color: rgb(128 242 255 / .5); text-underline-offset: 5px;
}
.montage__revoir img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px var(--m-cyan); }
.montage--reduit .montage__revoir { display: none; }
@media (min-width: 760px) { .montage:not(.montage--compact) .montage__revoir { display: none; } } /* le petit moniteur du rush le fait */
.montage__aide { margin: 0; font: 400 16px/1.45 var(--corps); color: var(--m-doux); }
.montage__aide b { color: var(--m-cyan); font-weight: 650; }

/* ------------------------------------------------------------------ la table (la timeline) */
.montage__table {
  position: relative; z-index: 0; display: grid; grid-template-columns: 104px minmax(0, 1fr); column-gap: 12px;
  padding: 12px 14px 14px; border-radius: 20px; background: var(--m-surface); box-shadow: inset 0 0 0 1px var(--m-ligne);
  transform: translate3d(0, calc((1 - var(--monte, 1)) * 56px), 0); opacity: var(--monte, 1);
  user-select: none; -webkit-user-select: none; -webkit-touch-callout: none;
}
.montage__noms, .montage__rouleau { display: grid; grid-template-rows: var(--r-regle) var(--r-plans) var(--r-st) var(--r-hab) var(--r-son); row-gap: var(--r-gap); }
.montage__nom { display: flex; align-items: center; font: 600 13px/1.1 var(--corps); color: var(--m-doux); white-space: nowrap; }
.montage__cadre { position: relative; min-width: 0; cursor: pointer; touch-action: pan-y; }
.montage__defil { position: relative; overflow: hidden; }
.montage__rouleau { position: relative; width: 100%; }
.montage__piste, .montage__regle { position: relative; min-width: 0; }
.montage__bloc { position: absolute; top: 0; bottom: 0; transition: transform 280ms var(--m-ressort), box-shadow 120ms, filter 120ms, background-color 120ms; }

/* la règle */
.montage__regle {
  background: repeating-linear-gradient(90deg, rgb(255 255 255 / .28) 0 1px, transparent 1px calc(100% / var(--d, 41.6))) 0 100% / 100% 7px no-repeat;
  border-bottom: 1px solid var(--m-ligne);
}
.montage__repere { position: absolute; top: 0; transform: translateX(-1px); white-space: nowrap; padding-left: 5px; border-left: 1px solid rgb(255 255 255 / .5); height: 100%; font: 600 12px/1 var(--corps); color: var(--m-doux); font-feature-settings: "tnum" 1; padding-top: 2px; }

/* les plans : la vignette répétée, comme une pellicule */
.montage__plan {
  border-radius: 10px; margin-right: 3px; background: #222 0 50% / auto 100% repeat-x; overflow: hidden;
  box-shadow: inset 0 0 0 1.5px rgb(255 255 255 / .14); filter: saturate(.85) brightness(.82);
}
.montage__plan-n {
  position: absolute; left: 4px; top: 4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 6px;
  display: grid; place-items: center; font: 800 12px/1 var(--titre); font-style: normal; color: #fff; background: rgb(7 19 38 / .72);
}
.montage__plan.est-courant { filter: none; box-shadow: inset 0 0 0 2px var(--m-cyan), 0 0 24px -6px rgb(128 242 255 / .8); transform: translateY(-2px); z-index: 1; }
.montage__plan.est-courant .montage__plan-n { color: var(--m-fond); background: var(--m-cyan); }
.montage__transition { top: 50%; bottom: auto; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 3px; transform: rotate(45deg); background: #fff; box-shadow: 0 0 0 3px var(--m-fond), 0 0 14px rgb(255 255 255 / .8); z-index: 2; }

/* sous-titres et habillage : des barres arrondies */
.montage__st, .montage__hab {
  display: flex; align-items: center; padding: 0 9px; border-radius: 8px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
  font: 650 12.5px/1 var(--corps);
}
.montage__st { color: var(--cyan-2, #B9F8FF); background: rgb(128 242 255 / .14); box-shadow: inset 0 0 0 1px rgb(128 242 255 / .35); }
.montage__hab { height: calc((var(--r-hab) - 4px) / 2); color: #fff; background: rgb(255 255 255 / .1); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .2); }
.montage__hab--v0 { top: 0; bottom: auto; }
.montage__hab--v1 { top: auto; bottom: 0; }
.montage__st.est-courant { color: var(--m-fond); background: var(--m-cyan); box-shadow: 0 0 18px -4px rgb(128 242 255 / .8); }
/* (finition, jury art) l'habillage actif reste discret (voile blanc et filet) : seul le plan actif (cyan) brille sur la table */
.montage__hab.est-courant { color: #fff; background: rgb(255 255 255 / .18); box-shadow: inset 0 0 0 1px #fff; }
.montage__bloc.est-survol { box-shadow: inset 0 0 0 2px #fff, 0 0 0 3px rgb(128 242 255 / .35); filter: none; }

/* le son : la vraie onde, en cyan jusqu'à la tête de lecture */
.montage__onde { position: absolute; inset: 0; width: 100%; height: 100%; display: block; fill: rgb(255 255 255 / .34); }
.montage__onde--jouee { fill: var(--m-cyan); clip-path: inset(0 calc((1 - var(--p, 0)) * 100%) 0 0); }

/* la tête de lecture : le surligneur cyan, coin biseauté */
.montage__tete {
  position: absolute; z-index: 4; left: 0; top: -4px; bottom: -6px; width: 2px; margin-left: -1px;
  background: var(--m-cyan); box-shadow: 0 0 12px rgb(128 242 255 / .85); cursor: grab; touch-action: none; will-change: transform;
}
.montage__tete::before { content: ""; position: absolute; left: -21px; right: -21px; top: 0; bottom: 0; } /* 44 px à attraper */
.montage__tete-temps {
  position: absolute; left: 50%; top: 0; transform: translateX(-50%); min-width: 50px; padding: 5px 9px 6px; text-align: center;
  font: 800 13px/1 var(--titre); color: var(--m-fond); background: var(--m-cyan); clip-path: var(--m-biseau); border-radius: 6px 6px 0 6px;
  font-feature-settings: "tnum" 1; white-space: nowrap;
}
.est-glisse .montage__tete, .est-glisse .montage__cadre { cursor: grabbing; }
.est-glisse .montage__tete-temps { transform: translateX(-50%) scale(1.12); }

/* la bulle (ordinateur) : ce qu'est le bloc survolé */
.montage__bulle {
  position: absolute; z-index: 5; left: 0; top: 0; margin: 0; padding: 8px 12px; border-radius: 10px; pointer-events: none; white-space: nowrap;
  font: 650 14px/1.2 var(--corps); color: var(--m-fond); background: #fff; box-shadow: 0 12px 30px -10px rgb(0 0 0 / .6);
  transform: translate3d(calc(var(--x, 0px) - 50%), calc(var(--y, 0px) - 100% - 8px), 0) scale(.92); opacity: 0;
  transition: opacity 120ms, transform 220ms var(--m-ressort);
}
.montage__bulle.est-la { opacity: 1; transform: translate3d(calc(var(--x, 0px) - 50%), calc(var(--y, 0px) - 100% - 10px), 0); }

/* ------------------------------------------------------------------ l'ouverture : le rush plein cadre */
.montage__ouverture { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.montage__calque { position: absolute; left: 0; top: 0; width: 100%; height: 100%; transform-origin: 0 0; will-change: transform, clip-path; overflow: hidden; background: #000; }
.montage__calque > video, .montage__calque > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.montage__calque::after { /* la lisibilité du titre posé sur le rush */
  content: ""; position: absolute; inset: 0; opacity: calc(1 - var(--e, 0));
  background: linear-gradient(0deg, rgb(7 19 38 / .78), rgb(7 19 38 / 0) 46%), linear-gradient(180deg, rgb(7 19 38 / .55), rgb(7 19 38 / 0) 30%);
}
.montage__cartel-rush {
  position: absolute; left: var(--gout, 18px); bottom: 16px; margin: 0; max-width: 22rem; opacity: calc(1 - var(--e, 0) * 2.2);
  font: 600 16px/1.35 var(--corps); color: #fff; text-shadow: 0 1px 12px rgb(0 0 0 / .6);
}
.montage__cartel-rush::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 9px; border-radius: 50%; background: #ff4d4d; box-shadow: 0 0 10px #ff4d4d; vertical-align: .08em; }
.montage.est-coupe .montage__ouverture { visibility: hidden; }
.montage--reduit .montage__ouverture { display: none; }
.montage:not(.est-pret) .montage__ouverture, .montage--sans-table .montage__ouverture { display: none; }
.montage--sans-table .montage__table { display: none; }

/* ce qui n'arrive qu'après la coupe */
.montage--defile .montage__droite > *, .montage--defile .montage__petit, .montage--defile .montage__legende,
.montage--temps .montage__droite > *, .montage--temps .montage__legende {
  transition: opacity 420ms var(--ease, ease), transform 600ms var(--m-ressort);
}
.montage--defile:not(.est-coupe) .montage__droite > *, .montage--defile:not(.est-coupe) .montage__petit, .montage--defile:not(.est-coupe) .montage__legende,
.montage--temps:not(.est-coupe) .montage__droite > *, .montage--temps:not(.est-coupe) .montage__legende { opacity: 0; transform: translate3d(0, 18px, 0); }
.montage--defile.est-coupe .montage__droite > :nth-child(2), .montage--temps.est-coupe .montage__droite > :nth-child(2) { transition-delay: 60ms; }
.montage--defile.est-coupe .montage__droite > :nth-child(3), .montage--temps.est-coupe .montage__droite > :nth-child(3) { transition-delay: 120ms; }
.montage--defile.est-coupe .montage__droite > :nth-child(4), .montage--temps.est-coupe .montage__droite > :nth-child(4) { transition-delay: 180ms; }
.montage--defile.est-coupe .montage__petit { transition-delay: 120ms; }

/* ------------------------------------------------------------------ téléphone : CapCut */
.montage--capcut .montage__table { grid-template-columns: minmax(0, 1fr); padding: 10px 0 12px; margin-inline: calc(-1 * var(--gout, 18px)); border-radius: 0; box-shadow: inset 0 1px 0 var(--m-ligne), inset 0 -1px 0 var(--m-ligne); background: rgb(255 255 255 / .03); }
.montage--capcut { --r-regle: 22px; --r-plans: 50px; --r-st: 26px; --r-hab: 44px; --r-son: 34px; }
.montage--capcut .montage__noms {
  position: absolute; z-index: 3; left: 0; top: 10px; bottom: 12px; width: 104px; padding-left: var(--gout, 18px); pointer-events: none;
  background: linear-gradient(90deg, var(--m-fond) 0 82%, rgb(7 19 38 / 0));   /* (finition) les noms ne passent plus sur les clips */
}
.montage--capcut .montage__nom { font-size: 12.5px; color: var(--m-texte); }
.montage--capcut .montage__cadre { cursor: auto; touch-action: auto; }
.montage--capcut .montage__defil { overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.montage--capcut .montage__defil::-webkit-scrollbar { display: none; }
.montage--capcut .montage__rouleau { box-sizing: content-box; padding-inline: var(--marge, 50vw); }
.montage--capcut .montage__tete { left: 50%; transform: none; cursor: auto; touch-action: auto; pointer-events: none; }
.montage--capcut .montage__tete::before { display: none; }
.montage--capcut .montage__bulle { display: none; }
.montage--capcut .montage__plan-n { font-size: 11px; }
/* (couture) l'habillage au téléphone : le nom du bloc reste lisible juste après la tête de lecture tant que le bloc passe
   dessous (« PROMO » couvre presque toute la pub). Le bloc coupe sans devenir un conteneur de défilement (clip), pour que
   le nom colle au défilement de la piste (.montage__defil). */
.montage__hab-nom { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.montage--capcut .montage__hab { overflow: clip; }
.montage--capcut .montage__hab-nom { position: sticky; left: calc(var(--marge, 50vw) + 8px); }

/* ------------------------------------------------------------------ mouvement réduit : les deux affiches côte à côte */
@media (max-width: 759.98px) {
  .montage--reduit .montage__scene { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "gauche gauche" "petit ecran" "table table" "droite droite" "legende legende"; column-gap: 12px; }
  .montage--reduit .montage__petit { display: grid; align-content: start; }
  .montage--reduit .montage__petit-ecran { width: 100%; border-radius: 18px; }
  .montage--reduit .montage__ecran { width: 100%; height: auto; }
}

/* ------------------------------------------------------------------ à partir de la tablette */
@media (min-width: 760px) {
  .montage__alimage { display: flex; }
  .montage__droite > .montage__k { display: block; }
  .montage__scene { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "gauche ecran" "petit ecran" "droite ecran" "table table" "legende legende"; column-gap: 40px; padding-inline: var(--gout, 24px); }
  .montage__petit { display: grid; }
  .montage__ecran { height: min(62vh, 560px); }
  .montage__titre > span { font-size: clamp(40px, 4.2vw, 60px); }
  .montage__legende { font-size: 15px; }
}

/* ------------------------------------------------------------------ ordinateur : la table de montage */
@media (min-width: 1024px) {
  .montage { --ecran-h: min(640px, calc(100vh - var(--tete-h, 72px) - 340px)); }
  .montage__scene {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr) auto auto;
    grid-template-areas: "gauche ecran droite" "petit ecran droite" "table table table" "legende legende legende";
    column-gap: clamp(36px, 4vw, 80px); row-gap: 14px;
    padding-inline: max(var(--gout, 24px), (100% - var(--wrap, 1440px)) / 2 + var(--gout, 24px));
  }
  .montage__ecran { height: max(340px, var(--ecran-h)); }
  .montage__droite { align-content: center; gap: 18px; }
  .montage__petit { align-self: end; }
  .montage__cartel-rush { left: auto; right: max(var(--gout, 24px), (100% - var(--wrap, 1440px)) / 2 + var(--gout, 24px)); bottom: 40px; text-align: right; font-size: 18px; }
}
/* l'accueil : l'intérieur collant, 120 vh de course */
.montage--defile { height: 220vh; }
.montage--defile .montage__scene {
  position: sticky; top: 0; height: 100vh; min-height: 640px; align-content: stretch;
  padding-top: calc(var(--tete-h, 72px) + 18px); padding-bottom: 22px;
}
.montage--defile .montage__gauche { align-self: start; }
.montage--defile .montage__titre > span { will-change: transform; }
@media (min-width: 1600px) and (min-height: 1000px) { .montage { --r-plans: 64px; --r-son: 42px; } }

/* ------------------------------------------------------------------ la version compacte (pages Vidéo, Agence) : sur un plateau navy */
.montage--compact { padding-block: 22px 26px; border-radius: 22px; background: var(--m-fond); overflow: clip; box-shadow: 0 40px 80px -40px rgb(7 19 38 / .6); }
.montage--compact .montage__scene { padding-inline: 18px; }
.montage--compact.montage--capcut .montage__table { margin-inline: -18px; }
.montage--compact .montage__titre > span { font-size: clamp(30px, 7vw, 40px); }
@media (min-width: 760px) {
  .montage--compact { padding-block: 28px; border-radius: 28px; }
  .montage--compact .montage__scene { padding-inline: 28px; }
}
@media (min-width: 1024px) {
  .montage--compact .montage__scene {
    grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto minmax(0, 1fr) auto;
    grid-template-areas: "ecran gauche" "ecran droite" "ecran table" "ecran legende"; column-gap: 40px; row-gap: 20px; padding-inline: 32px;
  }
  .montage--compact .montage__ecran { height: min(600px, 74vh); align-self: start; }
  .montage--compact .montage__petit { display: none; }
  .montage--compact .montage__table { align-self: end; }
}

/* ------------------------------------------------------------------ « Sur d'autres tournages » (les Stories à la une) */
.montage-autres { display: grid; gap: 14px; justify-items: start; margin-top: clamp(28px, 4vw, 56px); }
.montage-autres__k { margin: 0; font: 750 clamp(20px, 2vw, 26px)/1.15 var(--titre); letter-spacing: -.01em; color: #fff; }
.montage-autres__ligne { margin: 0; font: 400 16px/1.45 var(--corps); color: var(--nuit-doux, #9FB0D0); }
.musee-salle--jour .montage-autres__k { color: var(--encre); }
.musee-salle--jour .montage-autres__ligne { color: var(--encre-2); }

@media (prefers-reduced-motion: reduce) {
  .montage *, .montage *::before, .montage *::after { transition-duration: 1ms !important; }
  .montage__table { transform: none; opacity: 1; }
}

/* ------------------------------------------------------------------ la place de la version compacte sur les pages (Agence ; Vidéo : la grille de la section donne l'écart) */
.ag-atelier .montage--compact { margin-top: clamp(20px, 3vw, 40px); }
.sv-tournage .montage-autres, .ag-atelier .montage-autres { margin-top: clamp(4px, 1vw, 12px); }
