/* Page de démonstration « trois parcours » (propositions-transition-v2.html, 30/09).
   S'ajoute à style.css et accueil.css ; la page d'accueil n'en charge rien. */
body { background: #020202; color: var(--cream); }

.intro { padding: 16vh var(--gutter) 10vh; background: #0b0b0b; }
.intro .display { max-width: 18ch; }
.intro p:not(.eyebrow) { max-width: 66ch; margin: 24px 0 0; font-size: 17px; line-height: 1.65; color: rgba(244,242,234,.86); }

.prop {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 18px 28px; align-items: center;
  padding: 72px var(--gutter) 30px; border-top: 1px solid rgba(244,242,234,.12); background: #0b0b0b;
}
.prop__num { font-family: var(--f-serif); font-size: 72px; line-height: 1; color: var(--orange); }
.prop__titre { margin: 0; font-family: var(--f-serif); font-weight: 400; font-size: clamp(26px, 2.6vw, 38px); line-height: 1.1; }
.prop__texte { margin: 10px 0 0; max-width: 74ch; font-size: 15px; line-height: 1.6; color: rgba(244,242,234,.76); }
.lecture {
  display: inline-flex; align-items: center; gap: 12px; padding: 12px 22px 12px 18px; border-radius: 999px;
  border: 1px solid rgba(244,242,234,.35); background: transparent; color: var(--cream);
  font: inherit; font-size: 14px; letter-spacing: .08em; white-space: nowrap; cursor: pointer;
  transition: border-color .25s ease, transform .2s ease;
}
.lecture::before {
  content: ""; width: 0; height: 0; border-left: 9px solid var(--orange);
  border-top: 6px solid transparent; border-bottom: 6px solid transparent;
}
.lecture:hover { border-color: var(--orange); }
.lecture:active { transform: scale(.98); }
.lecture:focus-visible { outline: 2px solid var(--orange); outline-offset: 4px; }

/* ---- la scène : dix écrans de défilement, un cadre collant ---- */
.scene { position: relative; height: 1000vh; }
.scene__colle { position: sticky; top: 0; height: 100vh; overflow: hidden; background: #020202; isolation: isolate; }

/* la fin du visuel : branche formée, le mot et sa suite */
.heros { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.heros__branche { position: absolute; max-width: none; transform-origin: 41% 100%; will-change: transform, opacity, filter; }
.heros__texte { position: absolute; will-change: transform, opacity; }
.heros__mot { margin: 0; color: #fff; white-space: nowrap; perspective: 700px; }
.heros__mot .lettre { display: inline-block; transform-origin: 50% 70%; will-change: transform, opacity; }
.sonde { display: inline-block; width: 0; height: 0; vertical-align: baseline; }
.heros__suite { margin-top: 20px; will-change: transform, opacity; }
.heros__suite .lead { margin: 14px 0 0; max-width: 42ch; }
.heros .cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.heros__texte.debout .lead { margin-left: auto; margin-right: auto; }
.heros__texte.debout .cta { justify-content: center; }

/* le défilé */
.defile {
  position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column; justify-content: center;
  gap: clamp(20px, 4vh, 44px);
}
.defile__tete { padding: 0 var(--gutter); will-change: transform, opacity; }
.piste { list-style: none; margin: 0; padding: 0; display: flex; gap: 3vw; will-change: transform; }
.piste .produit { flex: 0 0 clamp(280px, 34vw, 760px); transform-origin: 50% 55%; will-change: transform, opacity; }
.piste .produit__nom::after { display: none; }
.piste .produit__nom small {
  flex: none; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: rgba(244,242,234,.5);
}
.parcours-vent .produit__lien { transform-origin: 50% -12%; will-change: transform; }

/* la section suivante : « Pourquoi commander chez nous ? » */
.panneau {
  position: absolute; inset: 0; z-index: 7; margin: 0; overflow: hidden; align-content: center;
  background: transparent; pointer-events: none;
  padding-top: clamp(40px, 8vh, 110px); padding-bottom: clamp(40px, 8vh, 110px);
}
.panneau .fond { position: absolute; inset: 0; z-index: -1; background: var(--cream); opacity: 0; }
.panneau .raisons__tete { position: static; }
.panneau .eyebrow { opacity: 0; }
/* le titre tient dans sa colonne : à 5vw, « COMMANDER » la dépassait de 60 px à 1440 */
.panneau .titre-raisons { font-size: clamp(32px, 4.3vw, 76px); }
.panneau .ligne { display: block; overflow: hidden; padding-bottom: .06em; }
.panneau .ligne > span { display: block; white-space: nowrap; transform-origin: 0 60%; will-change: transform, opacity, filter; }
.panneau--libre .ligne { overflow: visible; }
.panneau .lettre { display: inline-block; will-change: transform, opacity; }
.panneau .raison { opacity: 0; will-change: transform, opacity, filter; }
.panneau .raison__fort { font-size: clamp(34px, 4.4vw, 76px); }

/* parcours 5 : la frise derrière les lettres, les voiles percés du mot */
.frise { position: absolute; left: 0; top: 0; z-index: 2; display: none; pointer-events: none; will-change: transform, opacity; }
.frise span { flex: none; display: block; background-repeat: no-repeat; }
.fenetre { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.fenetre--entree { z-index: 2; display: none; }
.fenetre--sortie { z-index: 8; display: none; }
.fenetre text { font-family: var(--f-display); font-weight: 800; font-stretch: 112%; letter-spacing: -.01em; }
.fenetre__encre text { opacity: 0; }

/* parcours 6 : les grains, les halos */
.grains, .halos { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; display: none; }
.grains { z-index: 4; }
.halos { z-index: 5; }

/* parcours 7 : l'air (feuilles lointaines derrière le texte, proches devant tout),
   le front crème, les textes découpés en mots et en lettres */
.vent { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.vent--loin { z-index: 2; }
.vent--pres { z-index: 9; }
.front-creme { position: absolute; inset: 0; z-index: 4; background: var(--cream); display: none; }
.heros .mot, .defile__tete .mot, .panneau .mot { display: inline-block; white-space: nowrap; }
.defile__tete .lettre { display: inline-block; }
.parcours-vent .defile__tete .display { perspective: 700px; }
.parcours-vent .heros .btn { transition: none; }       /* sa transition au survol ferait traîner le bouton derrière le vent */
.parcours-vent .piste .produit { perspective: 900px; }

/* repères de la démonstration : quel parcours, où en est-on */
.reperes {
  position: absolute; left: var(--gutter); bottom: 16px; z-index: 20; display: flex; align-items: center; gap: 8px;
  padding: 7px 14px 7px 12px; border-radius: 999px; background: rgba(2,2,2,.6);
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: rgba(244,242,234,.8); pointer-events: none;
}
.reperes b { font-family: var(--f-serif); font-weight: 400; font-size: 16px; letter-spacing: 0; color: var(--orange); }
.reperes span { margin-right: 6px; }
.reperes i { position: relative; width: 30px; height: 3px; border-radius: 2px; background: rgba(244,242,234,.22); overflow: hidden; }
.reperes i::after {
  content: ""; position: absolute; inset: 0; background: var(--orange);
  transform-origin: left; transform: scaleX(var(--f, 0));
}

.fin { padding: 90px var(--gutter) 130px; background: #0b0b0b; border-top: 1px solid rgba(244,242,234,.12); }
.fin p:not(.eyebrow) { max-width: 66ch; font-size: 17px; line-height: 1.65; color: rgba(244,242,234,.86); }

@media (max-width: 860px) {
  .piste .produit { flex-basis: 72vw; }
  .prop { grid-template-columns: auto minmax(0, 1fr); }
  .prop .lecture { grid-column: 1 / -1; justify-self: start; }
  .panneau { align-content: start; padding-top: 11vh; }
  .panneau .raison:nth-child(3) { display: none; }
  .reperes span { display: none; }
  .reperes { top: 14px; bottom: auto; }            /* en bas, elle couvrait « Tous les catalogues » */
}
@media (max-height: 760px) and (min-width: 861px) {
  .panneau .raison:nth-child(3) { display: none; }
}
