/* Page de livraison ISM — « Votre maison de plain-pied ».
   Les photos de la maison en plein écran ; par-dessus, une interface de verre (flou d'arrière-plan, liserés de lumière, ombres douces).
   Une seule police (Inter), en très fin et en demi-gras. Mouvements à ressort. */
@font-face { font-family: Inter; font-weight: 200; font-display: swap; src: url(polices/inter-latin-200-normal.woff2) format('woff2'); }
@font-face { font-family: Inter; font-weight: 300; font-display: swap; src: url(polices/inter-latin-300-normal.woff2) format('woff2'); }
@font-face { font-family: Inter; font-weight: 400; font-display: swap; src: url(polices/inter-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: Inter; font-weight: 500; font-display: swap; src: url(polices/inter-latin-500-normal.woff2) format('woff2'); }
@font-face { font-family: Inter; font-weight: 600; font-display: swap; src: url(polices/inter-latin-600-normal.woff2) format('woff2'); }

:root {
  --nuit: #0a0b0d;
  --soleil: #ffd9a6;
  --marge: clamp(18px, 2.6vw, 44px);
  --doux: cubic-bezier(0.16, 1, 0.3, 1);
  --ressort: linear(0, 0.009, 0.035 2.1%, 0.141 4.4%, 0.723 12.9%, 0.938 16.7%, 1.017, 1.077, 1.121, 1.149 24.3%, 1.159, 1.163, 1.161, 1.154 29.9%, 1.129 32.8%, 1.051 39.6%, 1.017 43.1%, 0.991, 0.977 51%, 0.974 53.8%, 0.975 57.1%, 0.997 69.8%, 1.003 76.9%, 1);
  --ressort-doux: linear(0, 0.006, 0.025 2.8%, 0.101 6.1%, 0.539 18.9%, 0.721 25.3%, 0.849 31.5%, 0.937 38.1%, 0.968 41.8%, 0.991 45.7%, 1.006 50.1%, 1.015 55%, 1.017 63.9%, 1.001 85.9%, 1);
}
* { box-sizing: border-box; }
html { background: var(--nuit); color: #fff; }
body { margin: 0; font-family: Inter, 'Segoe UI', system-ui, sans-serif; font-weight: 300; font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body.charge { overflow: hidden; }
h1, h2, p, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
img, canvas { display: block; }
b { font-weight: 600; }

/* ————— le verre ————— */
.verre {
  position: relative; isolation: isolate;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.07) 42%, rgba(255, 255, 255, 0.11));
  -webkit-backdrop-filter: blur(26px) saturate(180%) brightness(1.05); backdrop-filter: blur(26px) saturate(180%) brightness(1.05);
  border-radius: 28px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), inset 0 0 0 1px rgba(255, 255, 255, 0.15), inset 0 -1px 0 rgba(255, 255, 255, 0.14),
    inset 0 -22px 34px -26px rgba(255, 255, 255, 0.3), 0 26px 60px -20px rgba(0, 0, 0, 0.5), 0 2px 8px rgba(0, 0, 0, 0.14);
}
/* le reflet : une tache de lumière qui suit la souris sur chaque panneau */
.verre::before { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: -1;
  background: radial-gradient(240px circle at var(--lx, 28%) var(--ly, -10%), rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0) 62%); opacity: var(--lo, 0.55); transition: opacity 0.5s; }
.pastille { display: inline-flex; align-items: center; gap: 12px; height: 50px; padding: 0 20px; border-radius: 999px; font-size: 13px; font-weight: 500; letter-spacing: 0.01em; }
.puce { display: inline-flex; align-items: center; gap: 9px; padding: 9px 16px; border-radius: 999px; font-size: 13px; font-weight: 500; letter-spacing: 0.01em; white-space: nowrap; }
.puce b { font-variant-numeric: tabular-nums; }

/* ————— le chargement ————— */
#chargement { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; background:
  radial-gradient(60vw 50vh at 22% 110%, rgba(255, 170, 96, 0.34), transparent 70%), radial-gradient(50vw 50vh at 85% -10%, rgba(88, 120, 255, 0.26), transparent 70%), var(--nuit);
  transition: opacity 1.1s var(--doux) 0.15s, visibility 0s 1.3s; }
.c-carte { display: grid; justify-items: center; gap: 6px; padding: 44px 64px 40px; border-radius: 40px; transition: transform 1.1s var(--doux), opacity 0.7s; }
.c-logo { width: 132px; height: auto; margin-bottom: 14px; }
.c-mot { font-size: 15px; font-weight: 500; opacity: 0.86; letter-spacing: 0.01em; }
.c-trait { width: 170px; height: 3px; margin-top: 20px; border-radius: 3px; background: rgba(255, 255, 255, 0.18); overflow: hidden; }
.c-trait i { display: block; height: 100%; width: 100%; border-radius: 3px; background: linear-gradient(90deg, #fff, var(--soleil)); transform: scaleX(var(--part, 0)); transform-origin: left; transition: transform 0.4s; }
body:not(.charge) #chargement { opacity: 0; visibility: hidden; }
body:not(.charge) .c-carte { transform: scale(1.14); opacity: 0; }

#halo { position: fixed; left: 0; top: 0; width: 640px; height: 640px; margin: -320px 0 0 -320px; border-radius: 50%; pointer-events: none; z-index: 5;
  background: radial-gradient(closest-side, rgba(255, 224, 180, 0.13), rgba(255, 224, 180, 0)); mix-blend-mode: screen; transform: translate3d(var(--x, -900px), var(--y, -900px), 0); }

/* ————— l'habillage fixe ————— */
#barre { position: fixed; z-index: 30; left: var(--marge); right: var(--marge); top: var(--marge); display: flex; justify-content: space-between; align-items: center; pointer-events: none;
  transition: opacity 0.8s, transform 1.2s var(--ressort-doux); }
#barre > * { pointer-events: auto; }
.b-logo svg { height: 27px; width: auto; }
.b-logo span { opacity: 0.8; padding-left: 12px; border-left: 1px solid rgba(255, 255, 255, 0.28); }
#chapitres { position: fixed; z-index: 30; right: var(--marge); top: 50%; transform: translateY(-50%); display: grid; gap: 4px; padding: 10px 7px; border-radius: 999px; transition: opacity 0.8s; }
#chapitres a { position: relative; display: grid; place-items: center; width: 22px; height: 22px; }
#chapitres i { width: 6px; height: 6px; border-radius: 6px; background: rgba(255, 255, 255, 0.5); transition: height 0.7s var(--ressort), background 0.4s, box-shadow 0.4s; }
#chapitres a.actif i { height: 20px; background: #fff; box-shadow: 0 0 12px rgba(255, 220, 170, 0.9); }
#chapitres a::after { content: attr(data-nom); position: absolute; right: 34px; top: 50%; padding: 6px 12px; border-radius: 999px; font-size: 12px; font-weight: 500; white-space: nowrap; pointer-events: none;
  background: rgba(20, 22, 26, 0.55); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); opacity: 0; transform: translate(8px, -50%); transition: opacity 0.3s, transform 0.6s var(--ressort); }
#chapitres a:hover::after { opacity: 1; transform: translate(0, -50%); }
body.charge #barre, body.charge #chapitres { opacity: 0; }
body.charge #barre { transform: translateY(-16px); }

/* ————— les scènes ————— */
.film, .pose, .photo { position: relative; height: calc(var(--longueur, 300) * 1vh); }
/* chaque scène glisse par-dessus la précédente, comme une feuille de verre aux coins arrondis */
main > section + section { margin-top: -100vh; border-radius: 38px 38px 0 0; overflow: clip; z-index: 1; box-shadow: 0 -30px 80px rgba(0, 0, 0, 0.45); }
.scene { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; background: var(--nuit) center / cover no-repeat; }
.scene canvas, .fond { position: absolute; inset: 0; width: 100%; height: 100%; }
.fond { background-size: cover; background-position: center; transform: scale(calc(1.16 - var(--p, 0) * 0.12)); filter: blur(calc(var(--p, 0) * 10px)); }
.ombre { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(to top, rgba(5, 6, 8, 0.66), rgba(5, 6, 8, 0) 50%), linear-gradient(to bottom, rgba(5, 6, 8, 0.4), rgba(5, 6, 8, 0) 24%); }
.ombre.forte { background: rgba(6, 7, 9, 0.56); }

h1, h2 { font-weight: 200; letter-spacing: -0.045em; line-height: 0.98; text-wrap: balance; }
h1, h2 { text-shadow: 0 2px 40px rgba(0, 0, 0, 0.38); }
h1 { font-size: clamp(54px, 9.6vw, 176px); }
h2 { font-size: clamp(34px, 5.4vw, 92px); }
h1 b, h2 b { font-weight: 600; letter-spacing: -0.05em; }
.ligne { display: block; overflow: hidden; padding: 0.06em 0.06em 0.14em; margin: -0.06em -0.06em -0.14em; }
.ligne > span { display: block; transform: translateY(112%) rotate(2.5deg); transform-origin: left bottom; transition: transform 1.25s var(--ressort-doux); }
.ligne + .ligne > span { transition-delay: 0.09s; }
.texte { max-width: 30em; font-size: clamp(15px, 1.25vw, 19px); line-height: 1.5; opacity: 0.86; text-wrap: pretty; }
.sur, .texte, .invite { transition: opacity 0.9s, transform 1.2s var(--ressort-doux), filter 0.9s; }
.t .sur, .t .texte, .t .invite, .revele.sur, .revele.texte, .o-pieces.revele, .o-carte.revele { opacity: 0; transform: translateY(26px) scale(0.97); filter: blur(10px); }
.t .texte, .revele.texte { transition-delay: 0.16s; }
.t.vu .ligne > span, .vu .ligne > span, .revele.vu .ligne > span { transform: none; }
.t.vu .sur, .t.vu .texte, .t.vu .invite, .revele.vu { opacity: 1; transform: none; filter: none; }
.t.vu .texte, .texte.revele.vu { opacity: 0.86; }
.o-pieces.revele, .o-carte.revele { transition: opacity 1s, transform 1.4s var(--ressort-doux), filter 1s; }

.t { position: absolute; display: grid; gap: clamp(14px, 1.8vw, 26px); pointer-events: none; }
.t.centre { inset: 0; place-content: center; justify-items: center; text-align: center; padding: 0 var(--marge); }
.t.centre h1 { margin: 0.08em 0 0.16em; }
.t.bas { left: var(--marge); bottom: calc(var(--marge) + 138px); max-width: min(880px, 78vw); }
.t.bas.droite { left: auto; right: calc(var(--marge) + 64px); justify-items: end; text-align: right; }
.molette { width: 14px; height: 22px; border-radius: 9px; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.85); position: relative; }
.molette::after { content: ''; position: absolute; left: 6px; top: 5px; width: 2px; height: 5px; border-radius: 2px; background: #fff; animation: molette 1.8s var(--doux) infinite; }
@keyframes molette { 0% { transform: translateY(-2px); opacity: 0; } 30% { opacity: 1; } 100% { transform: translateY(8px); opacity: 0; } }

/* ————— VI. entrer ————— */
.e-image { position: absolute; inset: 0; }
.e-image img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); }
.e-carte { display: grid; justify-items: center; gap: 18px; text-align: center; padding: 34px 54px 30px; border-radius: 40px; width: min(520px, calc(100vw - 2 * var(--marge))); pointer-events: auto; }
.e-logo { width: 62px; height: auto; opacity: 0.95; }
.e-carte h2 { font-size: clamp(32px, 3.5vw, 56px); }
.e-note { font-size: 13px; opacity: 0.78; }
.t.e-fin { place-content: center; }
.t .sur.e-carte { transition: opacity 0.9s, transform 1.4s var(--ressort-doux), filter 0.9s; }
.bouton { position: relative; display: inline-flex; align-items: center; gap: 16px; height: 64px; padding: 0 12px 0 30px; margin-top: 8px; border-radius: 999px; background: #fff; color: #0b0c0e; font-size: 16px; font-weight: 600; letter-spacing: -0.01em;
  box-shadow: 0 18px 44px -12px rgba(0, 0, 0, 0.55), 0 0 0 0 rgba(255, 220, 170, 0.6); transform: translate(var(--bx, 0), var(--by, 0)); transition: transform 0.7s var(--ressort), box-shadow 0.5s; }
.bouton i { width: 42px; height: 42px; border-radius: 50%; background: #0b0c0e; position: relative; transition: transform 0.7s var(--ressort); }
.bouton i::before { content: ''; position: absolute; left: 14px; top: 20px; width: 14px; height: 1.5px; background: #fff; }
.bouton i::after { content: ''; position: absolute; left: 20px; top: 16px; width: 8px; height: 8px; border: solid #fff; border-width: 1.5px 1.5px 0 0; transform: rotate(45deg); }
.bouton:hover { box-shadow: 0 22px 54px -12px rgba(0, 0, 0, 0.6), 0 0 0 8px rgba(255, 220, 170, 0.22); }
.bouton:hover i { transform: translateX(4px) scale(1.06); }
.bouton:active { transform: translate(var(--bx, 0), var(--by, 0)) scale(0.96); }

main > section:last-child { box-shadow: none; }

/* ————— la signature ————— */
#signature { position: relative; display: grid; justify-items: center; gap: 44px; padding: clamp(90px, 14vh, 170px) var(--marge) 46px; text-align: center; background:
  radial-gradient(60vw 60vh at 20% 120%, rgba(255, 170, 96, 0.32), transparent 70%), radial-gradient(50vw 60vh at 86% 0%, rgba(88, 120, 255, 0.24), transparent 70%), var(--nuit); }
.s-carte { display: grid; justify-items: center; gap: 18px; padding: 54px 84px 46px; border-radius: 48px; }
.s-carte svg { width: clamp(150px, 16vw, 230px); height: auto; filter: drop-shadow(0 1px 0 rgba(255, 255, 255, 0.35)) drop-shadow(0 -1px 0 rgba(0, 0, 0, 0.25)); }
.s-carte p { font-size: 14px; font-weight: 500; opacity: 0.8; }
.s-mention { max-width: 62em; font-size: 12px; opacity: 0.5; }

/* ————— le départ : la baie de verre se referme, puis s'ouvre sur la maison ————— */
#baie { position: fixed; inset: 0; z-index: 80; visibility: hidden; pointer-events: none; overflow: hidden; }
.b-fond { position: absolute; inset: 0; background: url(images/seq/meubles-jour/large/0225.webp) center / cover; opacity: 0; transform: scale(1.12); transition: opacity 0.5s 0.45s, transform 2.4s var(--doux) 0.5s; }
.vantail { position: absolute; top: 0; bottom: 0; width: 50.2%; background: linear-gradient(120deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.05) 50%, rgba(255, 255, 255, 0.12));
  -webkit-backdrop-filter: blur(30px) saturate(160%); backdrop-filter: blur(30px) saturate(160%); box-shadow: inset 0 0 0 9px #101114, inset 0 0 0 10px rgba(255, 255, 255, 0.35), 0 0 80px rgba(0, 0, 0, 0.5);
  transition: transform 0.95s var(--ressort-doux); }
.vantail.g { left: 0; transform: translateX(-101%); }
.vantail.d { right: 0; transform: translateX(101%); }
body.depart #baie { visibility: visible; pointer-events: auto; }
body.depart .vantail { transform: none; }
body.depart .b-fond { opacity: 1; transform: none; }
body.depart.ouvre .vantail { transition: transform 1.25s cubic-bezier(0.7, 0, 0.2, 1); }
body.depart.ouvre .vantail.g { transform: translateX(-101%); }
body.depart.ouvre .vantail.d { transform: translateX(101%); }


/* ————— les photos : plein écran, un zoom très lent pendant toute la vie de la scène ————— */
.vue { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--ox, 50%) var(--oy, 50%);
  transform-origin: var(--ox, 50%) var(--oy, 50%); transform: translateY(var(--ty, 0%)) scale(calc(var(--z, 1.02) + var(--q, 0) * 0.13)); will-change: transform; }
/* le clip d'une étape : une toile sur la photo, invisible tant qu'elle n'a rien peint ; pas de zoom lent sur la toile,
   pour que la dernière image d'un clip et la première du suivant se raccordent exactement */
.photo canvas.clip { opacity: 0; transition: opacity 0.35s; }
.photo canvas.clip.pret { opacity: 1; }
/* le curseur d'heure du soir venu : en bas, l'heure en grand, le soleil à gauche, la lune à droite ; le bouton avance avec le clip */
.t.heure { left: 50%; bottom: var(--marge); transform: translateX(-50%); }
.h-curseur { display: flex; align-items: center; gap: 20px; height: 84px; padding: 0 30px; border-radius: 999px; width: min(620px, calc(100vw - 2 * var(--marge))); }
.h-lue { min-width: 76px; font-size: 26px; font-weight: 600; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.h-bout { display: grid; justify-items: center; gap: 3px; }
.h-bout svg { width: 24px; height: 24px; }
.h-bout em { font-style: normal; font-size: 11px; font-weight: 500; letter-spacing: 0.02em; opacity: 0.75; }
.h-jour svg { fill: none; stroke: var(--soleil); stroke-width: 1.8; stroke-linecap: round; opacity: calc(1 - var(--k, 0) * 0.6); }
.h-jour svg circle { fill: var(--soleil); }
.h-soir svg { fill: #fff; opacity: calc(0.4 + var(--k, 0) * 0.6); filter: drop-shadow(0 0 calc(var(--k, 0) * 8px) rgba(255, 230, 190, 0.8)); }
.h-jauge { position: relative; flex: 1; height: 28px; }
.h-jauge::before { content: ''; position: absolute; left: 0; right: 0; top: 11px; height: 6px; border-radius: 6px; background: rgba(255, 255, 255, 0.22); }
.h-rempli { position: absolute; left: 0; top: 11px; height: 6px; border-radius: 6px; width: calc(var(--k, 0) * 100%); background: linear-gradient(90deg, #fff, var(--soleil)); }
.h-bouton { position: absolute; top: 0; left: calc(var(--k, 0) * 100%); width: 28px; height: 28px; margin-left: -14px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff, #ffe9c8); box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35), 0 0 18px rgba(255, 217, 166, 0.55); }
#soir .t.bas { bottom: calc(var(--marge) + 120px); }
.ombre.haute { background: radial-gradient(70vw 60vh at 12% 18%, rgba(5, 6, 8, 0.62), rgba(5, 6, 8, 0) 70%), linear-gradient(to bottom, rgba(5, 6, 8, 0.42), rgba(5, 6, 8, 0) 30%, rgba(5, 6, 8, 0) 62%, rgba(5, 6, 8, 0.6)); }
.photo .ombre:not(.haute) { background: radial-gradient(80vw 70vh at 8% 100%, rgba(5, 6, 8, 0.6), rgba(5, 6, 8, 0) 70%), linear-gradient(to top, rgba(5, 6, 8, 0.5), rgba(5, 6, 8, 0) 46%), linear-gradient(to bottom, rgba(5, 6, 8, 0.4), rgba(5, 6, 8, 0) 22%); }
.puce > b { display: grid; place-items: center; min-width: 22px; height: 22px; margin: -2px 2px -2px -7px; padding: 0 6px; border-radius: 22px; background: #fff; color: #0b0c0e; font-size: 12px; font-weight: 600; }

/* l'ouverture : les quatre chiffres de la maison */
.h-faits { display: grid; grid-template-columns: repeat(4, auto); padding: 20px 10px; border-radius: 30px; margin-bottom: 4px; }
.h-faits li { display: grid; gap: 6px; justify-items: start; text-align: left; padding: 0 clamp(18px, 2.2vw, 36px); border-left: 1px solid rgba(255, 255, 255, 0.2); }
.h-faits li:first-child { border-left: 0; }
.h-faits b { font-size: clamp(32px, 3.3vw, 54px); font-weight: 200; letter-spacing: -0.045em; line-height: 1; font-variant-numeric: tabular-nums; }
.h-faits b i, .f-chiffre i { font-style: normal; font-weight: 500; letter-spacing: -0.01em; }
.h-faits b i { font-size: 0.4em; margin-left: 0.18em; }
.h-faits span { font-size: 13px; font-weight: 500; line-height: 1.35; opacity: 0.86; }
.t.pied .sur.h-faits { transition-delay: 0.22s; }
.t.pied .invite { transition-delay: 0.4s; }

/* le chiffre de chaque étape : un panneau de verre, en bas à droite */
.t.fait { right: calc(var(--marge) + 64px); bottom: calc(var(--marge) + 30px); }
.photo .t.bas, .film .t.bas { bottom: calc(var(--marge) + 30px); }
.photo h2 { font-size: clamp(32px, 4.7vw, 80px); }
.t.tete { left: var(--marge); top: calc(var(--marge) + 88px); justify-items: start; }
.t.tete h1 { font-size: clamp(44px, 5.9vw, 106px); }
.t.pied { left: 0; right: 0; bottom: calc(var(--marge) + 6px); justify-items: center; gap: 16px; padding: 0 var(--marge); }
.f-carte { display: grid; gap: 4px; min-width: 250px; max-width: 330px; padding: 24px 30px 22px; border-radius: 34px; }
.t .sur.f-carte { transition-delay: 0.24s; }
.f-chiffre { display: flex; align-items: baseline; gap: 0.1em; font-size: clamp(64px, 6.6vw, 112px); line-height: 0.95; }
.f-chiffre b { font-weight: 200; letter-spacing: -0.055em; font-variant-numeric: tabular-nums; }
.f-chiffre i { font-size: 0.3em; }
.f-quoi { font-size: clamp(15px, 1.15vw, 18px); font-weight: 500; line-height: 1.3; margin-top: 6px; }
.f-source { font-size: 12px; opacity: 0.66; margin-top: 8px; padding-top: 10px; border-top: 1px solid rgba(255, 255, 255, 0.2); }
.t.bas { max-width: min(880px, calc(100vw - 2 * var(--marge) - 440px)); }

/* la barre : l'étape en cours et l'accès direct à la visite */
.b-visite { gap: 14px; padding-right: 8px; }
.b-etape { opacity: 0.8; padding-right: 14px; border-right: 1px solid rgba(255, 255, 255, 0.28); min-width: 9.5em; text-align: right; }
.b-visite i { width: 34px; height: 34px; border-radius: 50%; background: #fff; position: relative; transition: transform 0.7s var(--ressort); }
.b-visite i::before { content: ''; position: absolute; left: 10px; top: 16px; width: 13px; height: 1.5px; background: #0b0c0e; }
.b-visite i::after { content: ''; position: absolute; left: 16px; top: 13px; width: 7px; height: 7px; border: solid #0b0c0e; border-width: 1.5px 1.5px 0 0; transform: rotate(45deg); }
.b-visite:hover i { transform: translateX(3px) scale(1.06); }
body.a-la-fin .b-visite b, body.a-la-fin .b-visite i { display: none; }
body.a-la-fin .b-etape { border-right: 0; padding-right: 12px; }

/* ————— le plan ————— */
.o-grille { position: absolute; inset: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(340px, 38vw); align-items: center; gap: clamp(28px, 5vw, 90px);
  padding: calc(var(--marge) + 70px) calc(var(--marge) + 70px) calc(var(--marge) + 10px) var(--marge); }
.o-texte { display: grid; gap: clamp(14px, 1.8vw, 24px); justify-items: start; }
.o-texte h2 { font-size: clamp(32px, 4.4vw, 76px); }
.o-pieces { display: grid; width: min(100%, 600px); }
.o-pieces li { display: grid; grid-template-columns: 9.2em 1fr auto; align-items: baseline; gap: 12px; padding: 9px 12px; margin: 0 -12px; border-top: 1px solid rgba(255, 255, 255, 0.16); border-radius: 10px; font-size: clamp(14px, 1.1vw, 16.5px); transition: background 0.3s; cursor: default; }
.o-pieces li:first-child { border-top-color: transparent; }
.o-pieces li span { opacity: 0.7; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.o-pieces li em { font-style: normal; font-weight: 500; font-variant-numeric: tabular-nums; }
.o-pieces li.actif { background: rgba(255, 255, 255, 0.14); border-top-color: transparent; }
.o-pieces li.actif + li { border-top-color: transparent; }
.o-carte { padding: clamp(14px, 1.6vw, 24px); border-radius: 40px; justify-self: center; }
#plan-dessin { height: min(calc(100vh - 2 * var(--marge) - 150px), 52vw); aspect-ratio: 148.4 / 206; max-width: 100%; margin: 0 auto; }
#plan-dessin svg { display: block; width: 100%; height: 100%; overflow: visible; }
.k-sol { fill: rgba(24, 26, 31, 0.86); }
.k-mur { fill: #fff; }
.k-biais { stroke: #fff; fill: none; }
.k-trou { fill: #1b1d22; }
.k-jour { fill: var(--soleil); }
.k-piece { fill: var(--soleil); opacity: 0; transition: opacity 0.35s; }
.k-piece.actif { opacity: 0.34; }
.k-terrasse { fill: rgba(196, 150, 104, 0.4); stroke: rgba(255, 255, 255, 0.5); stroke-width: 0.5; }
.k-lame { stroke: rgba(255, 255, 255, 0.14); stroke-width: 0.3; }
.k-nom, .k-cote, .k-bord { fill: #fff; text-anchor: middle; pointer-events: none; }
.k-nom { font-size: 4.6px; font-weight: 600; }
.k-nom.fin { font-weight: 400; opacity: 0.74; font-size: 4.2px; }
.k-nom.serre { font-size: 3.7px; }
.k-nom.serre.fin { font-size: 3.5px; }
.k-cote { font-size: 3.8px; font-weight: 500; fill: var(--soleil); }
.k-bord { font-size: 4.2px; font-weight: 500; opacity: 0.6; letter-spacing: 0.04em; text-transform: uppercase; }

/* ————— petit écran : la page reste lisible, sans plus ————— */
@media (max-width: 820px) {
  #chapitres, .b-logo span, .b-etape, #halo { display: none; }
  .b-visite { padding-left: 18px; }
  .photo { height: 150vh; height: 150svh; }
  .photo[data-clip] { height: 260vh; height: 260svh; }
  #terrasse, #soir { height: 320vh; height: 320svh; }
  .t.heure { bottom: var(--marge); }
  .h-curseur { height: 66px; gap: 12px; padding: 0 20px; }
  .h-lue { min-width: 62px; font-size: 21px; }
  #soir .t.bas { bottom: calc(var(--marge) + 92px); }
  main > section + section { margin-top: 0; border-radius: 0; }
  .t.bas { left: var(--marge); bottom: calc(var(--marge) + 28px); max-width: calc(100vw - 2 * var(--marge)); }
  .t.fait { right: auto; left: var(--marge); bottom: auto; top: 96px; }
  .f-carte { min-width: 0; max-width: 240px; padding: 16px 20px 14px; border-radius: 26px; }
  .f-chiffre { font-size: 54px; }
  .f-source { display: none; }
  .puce { white-space: normal; }
  .t.tete h1 { font-size: clamp(44px, 13vw, 80px); }
  .photo .t.bas { bottom: calc(var(--marge) + 28px); }
  .h-faits { grid-template-columns: repeat(2, 1fr); gap: 18px 0; padding: 18px 6px; }
  .h-faits li:nth-child(3) { border-left: 0; }
  body.a-la-fin .b-visite { display: none; }
  #plan { height: auto; }
  #plan .scene { position: relative; height: auto; }
  .o-grille { position: relative; grid-template-columns: 1fr; padding: 110px var(--marge) 60px; }
  .o-pieces li { grid-template-columns: 1fr auto; }
  .o-pieces li span { display: none; }
  #plan-dessin { height: auto; width: 100%; }
  .e-carte { padding: 28px 24px 24px; }
  .s-carte { padding: 40px 44px; }
}
@media (prefers-reduced-motion: reduce) {
  .ligne > span, .sur, .texte, .invite, .revele { transition-duration: 0.01s !important; }
  .vue { transform: none; }
}
.t:not(.vu) .e-carte, .t:not(.vu) .f-carte { pointer-events: none; }
/* l'ouverture ne zoome pas : sa photo doit se raccorder exactement à la première image du clip de l'allée */
#maison .vue { transform: none; }
/* les étapes « raccord » : la dernière image d'un clip est la première du suivant ; pas de glissement,
   la scène suivante se pose d'un coup (fondu très court) au moment exact où elle atteint le haut de l'écran */
main > section.raccord { border-radius: 0; box-shadow: none; }
.raccord > .scene { opacity: 0; transition: opacity 0.4s; }
.raccord.la > .scene { opacity: 1; }
@media (max-width: 820px) { main > section.raccord { margin-top: -200vh; margin-top: -200svh; } }
/* l'étape suivie d'un raccord dure une hauteur d'écran de plus : sa scène reste épinglée, immobile, sous l'étape suivante
   pendant que celle-ci apparaît — rien ne bouge derrière le fondu, comme dans un film d'une seule traite */
main > section.suivie { height: calc(var(--longueur, 300) * 1vh + 100vh); }
/* deux marges négatives qui se touchent ne s additionnent pas : c est l étape raccord qui remonte de deux écrans */
main > section.raccord { margin-top: -200vh; margin-top: -200svh; }
@media (max-width: 820px) {
  main > section.photo[data-clip].suivie { height: calc(260vh + 100vh); height: calc(260svh + 100svh); }
  main > section.photo.suivie:not([data-clip]) { height: calc(150vh + 100vh); height: calc(150svh + 100svh); }
}
/* le trajet : les clips 2 à 6 montés en un seul film, dans une seule scène */
.trajet { position: relative; height: calc(var(--longueur, 1800) * 1vh); }
.repere { position: absolute; left: 0; width: 1px; height: 1px; pointer-events: none; }
