/* Le moment de la montée d'offre (js/montee.js ; retour de Martin du 07/10 au soir, dossier/26 R6), DA v3 « Noir »
   (dossier/02-DIRECTION-ARTISTIQUE.md) : scène noire plein écran, un halo bleu sous 30 %, le nom de l'offre très grand,
   un seul faisceau, qui le traverse de gauche à droite. Seuls transform et opacity bougent ; expo pour ce qui entre,
   300 ms pour une apparition, 600 ms pour ce qui se dessine. Sous prefers-reduced-motion, la scène est la même,
   immobile : rien ne dépend d'une animation. Jetons dans ../assets/tokens.css. */

dialog.montee {
  width: 100vw; max-width: 100vw; height: 100vh; height: 100dvh; max-height: 100vh; max-height: 100dvh;
  margin: 0; padding: 0; border: 0; overflow: auto;
  background: var(--fond); color: var(--encre);
}
dialog.montee::backdrop { background: var(--fond); }

.montee-halo {
  position: fixed; inset: 0; pointer-events: none;
  background: radial-gradient(60vmax 40vmax at 50% 38%, rgba(30, 111, 255, 0.24), rgba(30, 111, 255, 0.05) 55%, rgba(30, 111, 255, 0) 72%);
  animation: montee-halo 900ms var(--expo) both;
}

.montee-scene {
  position: relative; min-height: 100%; display: grid; align-content: center; justify-items: center; gap: 14px;
  padding: max(48px, 8vh) 16px 40px; text-align: center;
}
.montee-etiquette { font-size: var(--taille-etiquette); font-weight: var(--graisse-moyenne); color: var(--encre-2); animation: montee-monte 300ms var(--expo) 100ms both; }

/* Le nom de l'offre, et le faisceau qui passe derrière lui (jamais derrière un texte de moins de 24 px). */
.montee-nom-zone { position: relative; display: grid; place-items: center; padding: 6px 0 10px; isolation: isolate; }
.montee-nom {
  position: relative; z-index: 1; margin: 0;
  font-size: clamp(60px, 18vw, 168px); font-weight: var(--graisse-moyenne); line-height: 0.95; letter-spacing: -0.045em; overflow-wrap: anywhere;
  color: var(--encre); animation: montee-nom 600ms var(--expo) 250ms both;
}
.montee-faisceau {
  position: absolute; left: -12vw; right: -12vw; top: 54%; height: 6px; z-index: 0;
  background: var(--faisceau-traversant); border-radius: 3px; opacity: 0.85;
  transform-origin: left center; animation: montee-faisceau 700ms var(--expo) 450ms both;
}
.montee-faisceau::after {
  content: ""; position: absolute; inset: -18px 0; background: radial-gradient(closest-side, rgba(91, 155, 255, 0.35), rgba(91, 155, 255, 0));
  filter: blur(6px);
}

.montee-titre {
  max-width: 22ch; font-size: clamp(24px, 3.4vw, 34px); line-height: 1.15; letter-spacing: -0.03em; text-wrap: balance;
  animation: montee-monte 300ms var(--expo) 750ms both;
}
.montee-sous { max-width: 52ch; font-size: 15px; line-height: 1.55; color: var(--encre-2); animation: montee-monte 300ms var(--expo) 820ms both; }
.montee-remise { animation: montee-monte 300ms var(--expo) 860ms both; }

.montee-ouvre {
  width: min(560px, 100%); margin-top: 6px; padding-top: 14px; border-top: 1px solid var(--trait);
  animation: montee-monte 300ms var(--expo) 900ms both;
}
.montee-liste { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 10px 0 0; padding: 0; list-style: none; }
.montee-liste li {
  padding: 6px 12px; border-radius: var(--rayon-pilule, 999px); border: 1px solid var(--bleu-trait);
  background: var(--bleu-voile); color: var(--encre); font-size: 13px; line-height: 1.4;
}

.montee-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 20px; margin-top: 10px; animation: montee-monte 300ms var(--expo) 980ms both; }
.montee-passer {
  padding: 8px 4px; border: 0; background: none; font: inherit; font-size: var(--taille-petit); color: var(--encre-2);
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; cursor: pointer;
  transition: color var(--duree-rapide) var(--courbe);
}
.montee-passer:hover { color: var(--encre); }
.montee-passer:focus-visible { outline: 2px solid transparent; outline-offset: 2px; box-shadow: var(--anneau-focus); border-radius: 4px; }
/* La fenêtre prend le focus le temps que ses boutons apparaissent (montee.js) : aucun cadre autour de l'écran entier. */
.montee:focus { outline: none; }
/* Couleurs forcées (contraste élevé de Windows) : l'ombre disparaît, le contour prend la couleur du système. */
@media (forced-colors: active) { .montee-passer:focus-visible, .montee .btn:focus-visible { outline: 2px solid CanvasText; } }

@keyframes montee-halo { from { opacity: 0; transform: scale(0.7); } }
@keyframes montee-monte { from { opacity: 0; transform: translateY(12px); } }
@keyframes montee-nom { from { opacity: 0; transform: translateY(18px) scale(0.98); } }
@keyframes montee-faisceau { from { opacity: 0; transform: scaleX(0); } }

@media (max-width: 600px) {
  .montee-scene { gap: 12px; padding-top: max(32px, 6vh); }
  .montee-faisceau { left: -4vw; right: -4vw; }
}

/* Sans mouvement : la même scène, posée d'emblée (aucune animation, aucune transition). */
@media (prefers-reduced-motion: reduce) {
  .montee-halo, .montee-etiquette, .montee-nom, .montee-faisceau, .montee-titre, .montee-sous, .montee-remise, .montee-ouvre, .montee-actions { animation: none !important; }
  .montee-passer { transition: none !important; }
}
