/* 4. Les huit vitrines : chacune a sa lettre, son cadrage, son rythme */

/* ---------- Entre deux heures : une bande de ciel, jamais de texte dessus ---------- */
.passage { height: clamp(50px, 9vw, 110px); background: linear-gradient(var(--de), var(--a)); }
.vers-petale { height: clamp(140px, 22vw, 300px); background: linear-gradient(#0f1236, #4c306c 30%, #c9728a 62%, #f3a98d 82%, #f9cfb4); }
.vers-pile { --de: #fbe3bd; --a: #fbe3bd; }
.vers-famie { --de: #f5edcf; --a: #f5edcf; }
.vers-chambre { --de: #e2efe2; --a: #cfe9f5; }
.vers-lumen { height: clamp(130px, 19vw, 260px); background: linear-gradient(#eef6f4, #f3d9b8 22%, #d98f6f 48%, #7b3350 76%, #3d1029); }
.vers-peigne { --de: #521a37; --a: #8a2d42; }
.vers-monter { --de: #4d265f; --a: #33235f; }
.vers-billet { --de: #17194a; --a: #13153f; }
.vers-demain { height: clamp(140px, 22vw, 300px); background: linear-gradient(#0b0d26, #3b2a66 28%, #c9728a 62%, #f3a98d 82%, #f9cfb4); }

/* ---------- Ce que toutes partagent ---------- */
.stop { --lettre: var(--titre); display: grid; gap: 18px 28px; align-items: start; padding: clamp(18px, 3vh, 40px) var(--marge) clamp(40px, 7vh, 90px); background: linear-gradient(var(--haut), var(--bas)); color: var(--encre); overflow-x: clip; }
.stop > *, .banc > * { min-width: 0; }
/* Le titre est l'enseigne de la boutique : sa couleur, sa lettre, son filet doré */
.tete h2 { display: inline-block; max-width: 100%; padding: .2em .46em .24em; font: 400 clamp(2.2rem, 4.3vw, 4.5rem)/1.04 var(--lettre), serif; color: var(--or); background: linear-gradient(color-mix(in srgb, var(--panneau) 88%, #fff), var(--panneau) 30%); border-radius: 5px; box-shadow: inset 0 0 0 4px var(--panneau), inset 0 0 0 6px color-mix(in srgb, var(--or) 62%, var(--panneau)), 0 2px 0 rgb(0 0 0 / .35), 0 12px 22px rgb(20 10 40 / .26); }
.adresse { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-bottom: 12px; font-weight: 600; }
/* Le numéro de maison : la même plaque émaillée que le nom de la rue */
.numero { display: grid; place-items: center; min-width: 46px; height: 46px; border-radius: 5px; color: #fff; font: 700 1.75rem/1 var(--titre); background: radial-gradient(120% 150% at 25% 0, #2a57ad, var(--email) 50%, var(--email-fonce)); box-shadow: inset 0 0 0 2px var(--email), inset 0 0 0 4px #f3f5fb, 0 2px 4px rgb(20 10 40 / .4); }
.adresse time { font: 700 1.75rem/1 var(--titre); }
.anglais { margin-top: 8px; font-style: italic; color: var(--doux); }
.but { margin-top: 10px; max-width: 36ch; font-size: 1.2rem; line-height: 1.38; }
.scene { position: relative; }
.decor { width: 100%; height: auto; }
.note { margin-top: 12px; min-height: 3em; max-width: 64ch; font-weight: 600; }
.nom-produit { font: 400 clamp(1.7rem, 2.6vw, 2.7rem)/1.05 var(--lettre), serif; }
.banc { display: grid; gap: 18px; }

/* ---------- 1. Pétale : le comptoir sort de l'écran à gauche, l'étiquette est posée devant ---------- */
#petale { --lettre: Petale; }
#petale .scene { overflow: hidden; border-radius: 0 10px 10px 0; }
#petale .etiquette { position: absolute; right: 3.5%; bottom: 4%; width: min(62%, 430px); padding: 18px 26px 16px; background: #fffaf0; color: #2a1d35; border-radius: 6px; box-shadow: 0 12px 26px rgb(30 18 40 / .34); }
/* L'œillet et le fil de l'étiquette */
#petale .etiquette::before { content: ""; position: absolute; left: 50%; top: 9px; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: #5c7a5f; box-shadow: 0 0 0 3px #c79a4a; }
#petale .etiquette .nom-produit { margin-top: 12px; }
#petale .appui { margin: 12px 0 10px; }
/* Le papier s'ouvre autour des fleurs, le ruban se noue. GSAP ne change que --ouvert et --noeud. */
.c-bouquet { --ouvert: 0; --noeud: 1; }
[data-etat="repos"] .c-bouquet { --ouvert: 1; --noeud: 0; }
.c-bouquet > g { transform-box: fill-box; }
.c-papier-gauche { transform-origin: 100% 100%; rotate: calc(var(--ouvert) * -30deg); }
.c-papier-droite { transform-origin: 0 100%; rotate: calc(var(--ouvert) * 30deg); }
.c-papier-bas { transform-origin: 50% 0; scale: 1 calc(1 - var(--ouvert) * .5); }
.c-fleurs { transform-origin: 50% 100%; scale: calc(1 + var(--ouvert) * .05); }
.c-ruban { transform-origin: 50% 30%; scale: var(--noeud); }
.bouton-etats { width: 100%; min-height: 76px; padding: 0; overflow: hidden; font-size: 1.7rem; }
.bouton-etats .teinte { position: absolute; inset: 0; background: #1d5b3c; opacity: 0; }
[data-etat="fait"] .bouton-etats .teinte { opacity: 1; }
.mots { position: relative; display: grid; overflow: clip; height: 1.7em; line-height: 1.7; }
.mot { grid-area: 1 / 1; transform: translateY(115%); }
.mot:first-child { transform: none; }
[data-etat="fait"] .mot { transform: translateY(-115%); }
[data-etat="fait"] .mot:last-child { transform: none; }
.bouton-etats[aria-disabled] { cursor: progress; }
.bouton-etats { color: #fffaf0; background: #2a1d35; border-color: #2a1d35; }
@media (hover: hover) { .bouton-etats:hover { color: #fffaf0; background: #57405f; border-color: #2a1d35; } }
.bouton-etats:active { color: #fffaf0; background: #57405f; }
[data-motion="full"] .bouton-etats:active { transition-property: background-color, color; }

/* ---------- 2. Pile à l'heure : l'établi sort de l'écran à droite, le formulaire est sur le pupitre ---------- */
#pile { --lettre: Pile; }
#pile .scene { container-type: inline-size; }
#pile .decor { border-radius: 10px 0 0 10px; }
.bon { position: absolute; left: 53.6%; top: 20.4%; width: 38.2%; height: 46%; padding: 1.2cqw 1.8cqw; display: grid; align-content: center; gap: 8px; background: #fffaeb; color: #2a2130; border-radius: 2px; }
.bon .nom-produit { font-size: clamp(1.4rem, 2.7cqw, 2.2rem); }
.champ label { display: block; font-weight: 600; }
.secousse { position: relative; margin-top: 4px; }
.secousse input { width: 100%; min-height: 54px; padding: 6px 18px; font-size: 1.3rem; background: #fff; border: 2px solid #7d6a58; border-radius: 3px; }
.trait-rouge { position: absolute; left: 0; top: 0; bottom: 0; width: 9px; background: #a81e2b; border-radius: 3px 0 0 3px; transform-origin: 50% 100%; pointer-events: none; }
.champ:not(.en-erreur) .trait-rouge { visibility: hidden; }
.en-erreur input { border-color: #a81e2b; }
.message { min-height: 2.9em; margin-top: 6px; line-height: 1.3; }
.champ:has([aria-invalid]) .message { color: #a81e2b; font-weight: 600; }
/* Scène étroite : le formulaire quitte le pupitre et se pose sous le dessin */
@container (max-width: 880px) {
  #pile .decor { aspect-ratio: 418 / 490; object-fit: cover; object-position: left center; }
  #pile img.decor { aspect-ratio: 418 / 560; }
  .bon { position: relative; left: auto; top: auto; width: min(100% - 28px, 480px); height: auto; margin: 0 auto; padding: 26px 30px 30px; gap: 10px; box-shadow: 0 14px 30px rgb(50 34 20 / .3); }
}

/* ---------- 3. Fa Mie : le four à gauche, une ardoise murale à droite, sur toute la largeur ---------- */
#famie { --lettre: Famie; }
#famie .vitrine { margin-inline: calc(-1 * var(--marge)); }
#famie .scene { display: flex; height: clamp(330px, 54svh, 620px); overflow: hidden; background: #22302b; }
#famie .decor { flex: 0 1 auto; width: auto; height: 100%; max-width: 60%; aspect-ratio: 900 / 560; object-fit: cover; }
#famie .note { padding-inline: var(--marge); max-width: calc(64ch + 2 * var(--marge)); }
/* La miche sur sa pelle : au fond du four à 0, sur la table à 1 */
.c-sortie-du-four { --sortie: 1; }
.c-sortie-du-four {
  transform-origin: 0 0;
  transform: translate(calc(252px - (1 - var(--sortie)) * 14px), calc(420px - (1 - var(--sortie)) * 42px))
    scale(calc(.68 + var(--sortie) * .32)) translate(-252px, -420px);
}
[data-etat="repos"] .c-sortie-du-four { --sortie: 0; }
.ardoise { position: relative; flex: 1 1 0; min-width: 0; display: flex; justify-content: center; align-items: center; gap: clamp(20px, 4vw, 80px); padding: 20px clamp(20px, 3.4vw, 70px); color: #fffdf3; border: solid #7a4a24; border-width: 14px 0 14px 14px; }
.commande { flex: 0 1 340px; display: grid; gap: 14px; }
.commande .nom-produit { font-size: clamp(1.9rem, 3vw, 3.2rem); }
.commande .etat { min-height: 2.9em; font-size: 1.15rem; }
.commande .bouton-boutique { justify-self: start; background: #ffd466; border-color: #ffd466; color: #22302b; }
.coche { position: relative; width: 100%; height: 100%; overflow: visible; }
/* La place du tampon, tracée à la craie sur l'ardoise */
.tampon { position: relative; flex: 0 1 290px; min-width: 110px; aspect-ratio: 1; }
.tampon::before { content: ""; position: absolute; inset: 4%; border: 3px dashed rgb(255 253 243 / .42); border-radius: 50%; }
.fond-coche { fill: #fffdf3; }
.coche .trait { fill: none; stroke: #1d5b3c; stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 100 130; }
[data-motion] .scene[data-etat="repos"] .coche, [data-motion] .scene:not([data-etat]) .coche { opacity: 0; }
.confettis { position: absolute; right: 22%; top: 45%; }
.confettis i { position: absolute; width: 24px; height: 14px; background: #e8505f; opacity: 0; }
.confettis i:nth-child(3n) { background: #ffd466; } .confettis i:nth-child(3n+1) { background: #9fd8b4; }

/* ---------- 4. Chambre 12 : un tirage, dans sa marge blanche ---------- */
#chambre { --lettre: Chambre; }
#chambre h2 { font-size: clamp(1.7rem, 2.7vw, 3rem); line-height: 1.16; }
#chambre .nom-produit { font-size: 1.5rem; }
#chambre .scene { padding: clamp(12px, 1.4vw, 22px); background: #fff; color: #14233a; box-shadow: 0 2px 0 #b9c9d4, 0 22px 50px rgb(20 50 80 / .24); z-index: 2; }
.c-faisceau { opacity: .12; }
.barre-studio { position: relative; z-index: 2; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-bottom: 12px; }
.nom-studio { font: 400 1.15rem/1 Chambre, sans-serif; }

.tiroir { position: relative; }
.ouvrir-menu { display: flex; align-items: center; gap: 12px; font-size: 1.15rem; }
.menu-studio { width: min(330px, 72vw); padding: 8px; background: #fff; border: 2px solid #14233a; border-radius: 4px; box-shadow: 0 18px 40px rgb(10 30 60 / .34); transform-origin: 0 0; }
[data-motion] .menu-studio { position: absolute; left: 0; top: calc(100% + 8px); }
.menu-studio a { display: flex; justify-content: space-between; align-items: center; min-height: 54px; padding: 6px 14px; font-size: 1.15rem; text-decoration: none; }
.menu-studio li + li { border-top: 1px solid #c6d4de; }
.menu-studio a:hover { background: #174b82; color: #fff; }
.legende-studio { padding-top: 12px; min-height: 3em; }
#chambre .barre-studio { flex-direction: row-reverse; }

/* ---------- 5. Le Lumen : la salle prend toute la page, l'enseigne est au milieu ---------- */
#lumen { --lettre: Lumen; }
#lumen .tete { text-align: center; justify-self: center; }
#lumen .adresse { justify-content: center; }
#lumen h2 { font-size: clamp(2.1rem, 3.4vw, 3.8rem); padding: .16em .7em .2em; background: #fff1d8; border: 4px solid #2a0a1c; box-shadow: none; outline: 7px dotted #ffcf6b; outline-offset: 4px; margin: 10px 0 12px; }
#lumen .adresse { margin-bottom: 4px; }
#lumen .anglais { margin: 0; }
#lumen .but { margin-top: 2px; max-width: none; }
#lumen .vitrine { justify-self: center; width: min(100%, 104svh); }
#lumen .scene { aspect-ratio: 900 / 440; overflow: hidden; border-radius: 10px; background: #2a0a1c; }
#lumen .note { text-align: center; margin-inline: auto; }
/* Le hall garde ses proportions : les affiches tombent juste dans les caissons lumineux */
#lumen .scene { container-type: inline-size; }
.hall { position: absolute; left: 0; top: -4.2cqw; width: 100%; aspect-ratio: 900 / 560; }
#lumen .hall .decor { position: absolute; inset: 0; width: 100%; height: 100%; }
.film { position: absolute; top: 21.07%; width: 17.333%; display: grid; gap: 3.1cqw; }
.film:nth-child(1) { left: 38.444%; } .film:nth-child(2) { left: 59.111%; } .film:nth-child(3) { left: 79.778%; }
.film p { text-align: center; padding: 4px 8px; background: #2a0a1c; color: #fff1d8; border-radius: 3px; }
.film b { display: block; font: 400 1.15rem/1.15 Lumen, serif; }
.affiche { position: relative; display: block; width: 100%; min-height: 0; aspect-ratio: 3 / 4; padding: 0; border: 0; border-radius: 3px; transform-origin: 0 0; box-shadow: 0 10px 26px rgb(0 0 0 / .5); }
.affiche img, .intruse img { width: 100%; height: 100%; border-radius: 3px; }
.intruse { position: absolute; inset: 0; width: 100%; z-index: 5; aspect-ratio: 3 / 4; padding: 0; border: 0; pointer-events: none; }
@media (hover: hover) { .affiche:hover { outline: 4px solid #ffcf6b; outline-offset: 3px; } }
.fiche-film { position: absolute; inset: 0; display: flex; justify-content: center; align-items: center; gap: clamp(20px, 5vw, 80px); visibility: hidden; pointer-events: none; }
.place { position: relative; flex: none; height: 92%; aspect-ratio: 3 / 4; }
.place .affiche { width: 100%; height: 100%; }
.texte-film { width: min(430px, 48%); padding: 24px 28px; display: grid; gap: 12px; background: #2a0a1c; color: #fff1d8; border-radius: 4px; }
.texte-film .nom-produit { font-size: clamp(1.9rem, 3.4vw, 3.2rem); }
.texte-film .bouton-boutique { justify-self: start; background: #ffcf6b; border-color: #ffcf6b; color: #2a0a1c; }
:is([data-etat="fiche"], [data-etat="fiche-ratee"]) .fiche-film { visibility: visible; pointer-events: auto; background-color: rgb(34 8 24 / .8); }
[data-etat="aller"] .fiche-film { pointer-events: auto; }
:is([data-etat="fiche"], [data-etat="fiche-ratee"]) .fiche-film, [data-etat="aller"] .fiche-film { cursor: pointer; }
.texte-film { cursor: auto; }
:is([data-etat="fiche"], [data-etat="fiche-ratee"]) .programme { visibility: hidden; }
#lumen .lectures { justify-content: center; }

/* ---------- 6. Au peigne fin : l'annonce est la vitrine, en lettres de la largeur de la page ---------- */
#peigne { --lettre: Peigne; }
#peigne h2 { font-size: clamp(2.6rem, 4.6vw, 5rem); line-height: 1; }
#peigne .vitrine { margin-inline: calc(-1 * var(--marge)); }
#peigne .scene { overflow: hidden; height: min(62.2cqw, max(330px, 100svh - 432px)); background: #2b3f3a; }
#peigne .vitrine { container-type: inline-size; }
/* Le salon garde ses proportions : l'annonce est écrite sur le miroir */
.salon { position: absolute; left: 0; top: -1.5cqw; width: 100%; aspect-ratio: 900 / 560; overflow: hidden; }
#peigne .salon .decor { width: 100%; height: 100%; }
.annonce { position: absolute; left: 42%; top: 11.2%; width: 49.5%; height: 31%; display: grid; align-content: center; color: #3a1838; }
.lignes { font: 400 5.9cqw/.86 Peigne, sans-serif; letter-spacing: .01em; }
.masque, .ligne { display: block; }
.masque { overflow: clip; padding: .03em .05em .13em 0; margin-bottom: -.13em; }
.ligne { width: max-content; }
.lettre { display: inline-block; }
.horaires { position: absolute; right: 0; bottom: 0; padding: 12px var(--marge) 12px 26px; background: #3a1838; color: #fff5e4; border-radius: 8px 0 0 0; font-size: 1.3rem; font-weight: 600; }
#peigne .note { padding-inline: var(--marge); max-width: calc(64ch + 2 * var(--marge)); }

/* ---------- 7. La Grande Roue : la scène reste à l'écran, le texte passe à côté ---------- */
#monter { --lettre: Roue; }
#monter h2 { font-size: clamp(1.7rem, 2.9vw, 3.1rem); line-height: 1.1; }
#monter .scene { overflow: hidden; border-radius: 10px; background: #0d0e33; }
#monter .scene > .dessin { width: 100%; height: clamp(300px, calc(100svh - var(--entete) - 130px), 860px); }
#monter .scene > img.dessin { object-fit: cover; }
.parcours-roue { display: grid; gap: 18px; min-width: 0; }
.etape-visible { position: absolute; left: 18px; bottom: 18px; display: flex; align-items: center; gap: 12px; padding: 8px 18px 8px 10px; background: #14123a; color: #fff3e0; font-size: 1.35rem; border-radius: 4px; }
.etape-visible b { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #ffd27d; color: #14123a; font: 700 1.6rem/1 var(--titre); }
.etapes li { display: grid; align-content: center; min-height: 60vh; padding: 18px 0 18px 26px; border-left: 6px solid #5a4f93; }
.etapes li > div { display: grid; gap: 8px; }
.etapes b { font: 400 clamp(1.5rem, 2.2vw, 2.2rem)/1.1 Roue, sans-serif; }
.etapes span { max-width: 30ch; font-size: 1.25rem; }
.etapes [data-active] { border-color: #ffd27d; }

/* ---------- 8. Le billet : un seul objet, grand, dans la nuit ---------- */
#billet { --lettre: Billet; }
#billet h2 { font-size: clamp(1.7rem, 2.9vw, 3.1rem); line-height: 1.1; }
#billet .scene { padding: clamp(20px, 5vh, 60px) 0; }
.zone-billet { position: relative; display: grid; place-items: center; min-height: clamp(280px, 44svh, 440px); perspective: 1100px; touch-action: pan-y; }
.billet { position: relative; width: min(94%, 800px); aspect-ratio: 2; }
.billet .dessin { width: 100%; height: 100%; overflow: visible; }
.ombre-billet { position: absolute; width: min(94%, 800px); aspect-ratio: 2; translate: 8px 22px; }
.ombre-billet svg { width: 100%; height: 100%; overflow: visible; }
.reflet { opacity: 0; }
.pointeur { position: absolute; width: 34px; height: 34px; border: 4px solid #ffe08a; border-radius: 50%; opacity: 0; pointer-events: none; }

/* ====== Grand écran : les huit mises en page ====== */
@media (min-width: 1001px) {
  .stop { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .banc { display: contents; }

  /* La scène reste à l'écran : toute la colonne de gauche est à elle, aucun texte ne passe dessous */
  #petale { grid-template-rows: auto auto auto auto auto 1fr; }
  #petale .vitrine { grid-area: 1 / 1 / 7 / 8; margin-left: calc(-1 * var(--marge)); position: sticky; top: calc(var(--entete) + 12px); }
  #petale .note { padding-left: var(--marge); }
  #petale .tete { grid-area: 1 / 8 / 2 / 13; }
  #petale .lectures { grid-area: 2 / 8 / 3 / 13; }
  #petale .horaire { grid-area: 3 / 8 / 4 / 13; }
  #petale .reglages { grid-area: 4 / 8 / 5 / 13; }
  #petale .demande { grid-area: 5 / 8 / 6 / 13; }
  #petale .de-trop { grid-area: 6 / 8 / 7 / 13; }

  #pile { grid-template-rows: auto auto auto 1fr; }
  #pile .tete { grid-area: 1 / 1 / 2 / 4; }
  #pile .vitrine { grid-area: 1 / 4 / 4 / 13; margin-right: calc(-1 * var(--marge)); }
  #pile .lectures { grid-area: 2 / 1 / 3 / 4; }
  #pile .reglages { grid-area: 3 / 1 / 4 / 4; }
  #pile .horaire { grid-area: 4 / 4 / 6 / 9; }
  #pile .demande { grid-area: 4 / 9 / 5 / 13; }
  #pile .de-trop { grid-area: 5 / 9 / 6 / 13; }

  #famie .tete { grid-column: 1 / 13; display: grid; grid-template-columns: auto 1fr auto; column-gap: 30px; align-items: end; }
  #famie .adresse { grid-column: 1 / -1; }
  #famie .but { justify-self: end; grid-column: 3; }
  #famie .anglais { align-self: end; }
  #famie .vitrine { grid-column: 1 / 13; }
  #famie .lectures { grid-column: 1 / 13; }
  #famie .horaire { grid-column: 1 / 6; grid-row: 4 / 6; }
  #famie .reglages { grid-column: 6 / 9; grid-row: 4 / 6; }
  #famie .demande { grid-column: 9 / 13; grid-row: 4; }
  #famie .de-trop { grid-column: 9 / 13; grid-row: 5; }

  #chambre { grid-template-rows: auto auto 1fr auto auto; }
  #chambre .tete { grid-area: 1 / 1 / 2 / 6; }
  #chambre .vitrine { grid-area: 1 / 6 / 4 / 13; width: min(100%, (100svh - var(--entete) - 190px) * 1.607); justify-self: end; }
  #chambre .lectures { grid-area: 2 / 1 / 3 / 6; }
  #chambre .horaire { grid-area: 3 / 1 / 5 / 6; }
  #chambre .reglages { grid-area: 4 / 6 / 5 / 9; }
  #chambre .demande { grid-area: 4 / 9 / 5 / 13; }
  #chambre .de-trop { grid-area: 5 / 6 / 6 / 13; }

  #lumen .tete, #lumen .vitrine, #lumen .lectures { grid-column: 1 / 13; }
  #lumen .horaire { grid-column: 2 / 8; }
  #lumen .reglages { grid-column: 8 / 12; }
  #lumen .demande { grid-column: 2 / 8; }
  #lumen .de-trop { grid-column: 8 / 12; }

  #peigne .tete { grid-column: 1 / 13; display: flex; flex-wrap: wrap; align-items: end; gap: 4px 34px; }
  #peigne .adresse { width: 100%; margin-bottom: 0; }
  #peigne .but { margin-left: auto; }
  #peigne .vitrine { grid-column: 1 / 13; }
  #peigne .lectures { grid-area: 3 / 1 / 4 / 5; }
  #peigne .reglages { grid-area: 4 / 1 / 5 / 5; }
  #peigne .de-trop { grid-area: 5 / 1 / 6 / 5; }
  #peigne .horaire { grid-area: 3 / 5 / 5 / 13; }
  #peigne .demande { grid-area: 5 / 5 / 6 / 13; }

  #monter { grid-template-rows: auto auto auto auto auto auto 1fr; }
  #monter > *, #monter .banc > * { grid-column: 1 / 6; }
  #monter .parcours-roue { display: contents; }
  #monter .etapes { grid-area: 5 / 1 / 6 / 6; }
  #monter .demande { grid-area: 6 / 1 / 7 / 6; }
  #monter .de-trop { grid-area: 7 / 1 / 8 / 6; }
  #monter .vitrine { grid-area: 1 / 6 / 8 / 13; position: sticky; top: calc(var(--entete) + 12px); margin-right: calc(-1 * var(--marge) + 18px); }

  #billet .tete { grid-area: 1 / 1 / 2 / 5; }
  #billet .vitrine { grid-area: 1 / 5 / 3 / 13; }
  #billet .scene { padding-top: 0; }
  #billet .demande { grid-area: 2 / 1 / 5 / 5; align-self: start; }
  #billet .lectures { grid-area: 3 / 5 / 4 / 13; }
  #billet .horaire { grid-area: 4 / 5 / 5 / 10; }
  #billet .reglages { grid-area: 4 / 10 / 5 / 13; }
  #billet .de-trop { grid-area: 5 / 1 / 6 / 8; }
}
/* Écran bas (portable) : on gagne de la hauteur pour garder la scène et les boutons ensemble */
@media (min-width: 1001px) and (max-height: 720px) {
  .tete h2 { font-size: clamp(2rem, 3.4vw, 3rem); }
  #chambre h2, #monter h2, #billet h2 { font-size: clamp(1.6rem, 2.5vw, 2.4rem); }
  .adresse { margin-bottom: 6px; }
  .but { font-size: 1.08rem; margin-top: 6px; }
  #famie .scene { height: 44svh; min-height: 290px; }
  #lumen .vitrine { width: min(100%, 96svh); }
  #lumen .note { min-height: 0; max-width: none; }
  #lumen .film p { font-size: .85rem; padding-block: 2px; }
  #lumen .film b { font-size: .95rem; }
  #peigne .scene { height: max(280px, 100svh - 356px); }
  /* Les boutons passent au-dessus du dessin : ils sont à l'écran avec lui */
  #lumen .lectures, #peigne .lectures { grid-area: 2 / 1 / 3 / 13; }
  #lumen .vitrine, #peigne .vitrine { grid-row: 3; }
  #peigne .reglages { grid-area: 4 / 1 / 5 / 5; }
  #peigne .horaire { grid-area: 4 / 5 / 5 / 13; }
  .horaires { inset: 0 auto 0 0; width: 24%; display: grid; align-content: center; padding: 0 24px 0 var(--marge); border-radius: 0; font-size: 1.5rem; line-height: 1.3; text-wrap: balance; }
  .salon { left: 24%; width: 76%; top: -3cqw; }
  .lignes { font-size: 4.3cqw; }
  #lumen h2 { margin: 8px 0 10px; }
}
[data-motion="reduce"] #monter .etapes li { min-height: 40vh; }

/* ====== Une seule colonne ====== */
@media (max-width: 1000px) {
  .stop { grid-template-columns: minmax(0, 1fr); }
  #petale .vitrine { margin-inline: calc(-1 * var(--marge)); }
  #petale .scene { border-radius: 0; }
  #petale .note { padding-inline: var(--marge); }
  #monter .vitrine { position: sticky; top: var(--entete); align-self: start; z-index: 4; margin-inline: calc(-1 * var(--marge)); background: #2d215d; padding-bottom: 8px; }
  #monter .scene { border-radius: 0; }
  #monter .scene > .dessin { height: min(28svh, 65vw); }
  #monter .lectures { padding: 6px var(--marge) 0; }
  #monter .lectures button { min-height: 44px; }
  #monter .etape-visible { left: 12px; bottom: 12px; font-size: 1.1rem; }
  #monter .etape-visible b { width: 33px; height: 33px; }
  #monter .etapes li { scroll-margin-top: 40svh; }
  #monter .note { padding-inline: var(--marge); }
  .etapes li { align-content: stretch; align-items: start; }
  .etapes li > div { position: sticky; top: var(--lecture-roue, 44svh); }
  .etapes span { font-size: 1.08rem; }
}
@media (max-width: 760px) {
  .tete h2 { font-size: clamp(1.9rem, 9vw, 3rem); overflow-wrap: anywhere; }
  #chambre h2 { font-size: 6.6vw; }
  #lumen h2 { font-size: 9.4vw; padding-inline: .4em; outline-width: 5px; }
  #monter h2, #billet h2 { font-size: 7.4vw; }
  .lectures button { flex: 1 1 42%; }
  #petale .etiquette { position: relative; right: auto; bottom: auto; width: auto; margin: -36px 16px 14px; }
  .bon { padding: 24px 18px; }
  #famie .scene { display: block; height: auto; }
  #famie .decor { width: 100%; height: 56vw; max-width: none; }
  .ardoise { border-width: 10px; padding: 20px 16px; gap: 14px; }
  .tampon { flex-basis: 120px; }
  .confettis { right: 30%; }
  /* Au téléphone, le menu a besoin de hauteur : on garde tout le studio, sur un fond de mur */
  #chambre .decor { min-height: 330px; object-fit: cover; object-position: 0 50%; }
  #lumen .scene { aspect-ratio: auto; height: 384px; }
  .hall { left: -60.5%; width: 163%; top: -8px; }
  .film { gap: 22px; }
  .film b { font-size: .95rem; }
  .film p { font-size: .9rem; padding: 4px 2px; }
  .fiche-film { flex-direction: column; gap: 12px; }
  .place { height: 46%; }
  .texte-film { width: calc(100% - 28px); padding: 12px 16px; gap: 5px; }
  .texte-film .nom-produit { font-size: 1.6rem; }
  /* Le miroir remplit la largeur : on zoome dans le salon */
  #peigne .scene { height: 108cqw; }
  .salon { width: 186%; left: -76%; top: -2cqw; }
  .lignes { font-size: 13.4cqw; }
  .horaires { left: 0; padding: 12px 18px; border-radius: 0; font-size: 1.05rem; }
  #monter .vitrine { top: 0; }
  #monter .note { font-size: .95rem; }
  .etapes b { font-size: 1.35rem; }
  .zone-billet { min-height: 240px; }
  .billet, .ombre-billet { width: 100%; }
}
