/* Écran 1 : la séquence jouée par le défilement, sous un bandeau haut plein. */
.montee { position: relative; height: 280svh; }
.montee__scene {
  position: sticky; top: 0; height: 100svh;
  display: flex; flex-direction: column;
  padding-top: calc(var(--barre-h) + var(--demobar-offset, 0px));
  overflow: clip;
}
.montee__bandeau {
  flex: none; height: 24svh; min-height: 150px;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; padding-bottom: 20px;
}
.montee h1 {
  font: 700 11vw/.98 var(--titre); color: var(--neige); text-wrap: balance;
}
.montee__offre { max-width: 34em; font-size: 16px; line-height: 1.4; color: var(--lichen); }
.montee__fenetre {
  position: relative; flex: 1 1 auto; min-height: 0;
  margin-bottom: var(--bande-tot); overflow: hidden;
}
.montee__fenetre img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; }
/* Le canvas garde le rapport des images et déborde de la fenêtre : il n'est jamais étiré ni agrandi. */
.montee__fenetre canvas { position: absolute; left: 50%; top: 55%; transform: translate(-50%, -55%); }
.montee__fenetre canvas { opacity: 0; transition: opacity .3s; }
.montee__fenetre canvas.est-pret { opacity: 1; }

/* La plaque des cols entre depuis la jauge et recouvre l'image en fin de piste. */
.plaque {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 6px;
  padding: 0 0 clamp(16px, 4svh, 40px);
  background: var(--sapin);
  transform: translateY(100%); will-change: transform;
}
.plaque__chiffre { font: 700 clamp(170px, 50vw, 360px)/.8 var(--titre); color: var(--jaune); display: flex; align-items: baseline; gap: .08em; }
.plaque__chiffre span { font-weight: 200; color: var(--lichen); font-size: .42em; }
.plaque__mot { font: 500 clamp(20px, 2.2vw, 30px)/1.2 var(--titre); color: var(--neige); }

@media (min-width: 768px) {
  .montee { height: 400svh; }
  .montee__bandeau { flex-direction: row; align-items: center; justify-content: space-between; gap: 40px; }
  .montee h1 { font-size: clamp(44px, 6vw, 96px); white-space: nowrap; }
  .montee__offre { font-size: 17px; max-width: 26em; text-align: right; }
  .montee__fenetre { width: min(100%, 1600px); max-height: min(900px, 56.25vw); margin-inline: auto; }
  .plaque { transform: translateX(100%); }
}
@media (min-width: 768px) and (max-width: 1099px) {
  .montee__bandeau { flex-direction: column; align-items: flex-start; justify-content: center; gap: 10px; }
  .montee__offre { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  .montee, .montee { height: auto; }
  .montee__scene { position: relative; height: 100svh; }
  .plaque { display: none; }
}
