/* Villa Vulcain : neutre blanc, sable, noir. Une seule famille de titres, de la place, peu de décor. */
@font-face { font-family: 'Instrument Serif'; src: url(polices/instrument-serif-400.woff2) format('woff2'); font-display: swap; }
@font-face { font-family: 'Instrument Sans'; src: url(polices/instrument-sans-var.woff2) format('woff2'); font-weight: 400 700; font-display: swap; }

:root {
  --blanc: #fbfaf7;
  --creme: #f7f4ee;
  --sable: #e8dfd0;
  --sable-fonce: #8a7a62;
  --encre: #161412;
  --gris: #5d574e;
  --ligne: rgba(22, 20, 18, .14);
  --marge: clamp(20px, 4vw, 64px);
  --titres: 'Instrument Serif', 'Times New Roman', serif;
  --texte: 'Instrument Sans', system-ui, sans-serif;
  --courbe: cubic-bezier(.3, 0, .15, 1);
  --haut-barre: 60px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 56px; }
body { margin: 0; background: var(--blanc); color: var(--encre); font: 400 17px/1.55 var(--texte); -webkit-font-smoothing: antialiased; overflow-x: clip; }
h1, h2, p, dl, dd, ul { margin: 0; padding: 0; }
ul { list-style: none; }
img, canvas, svg { display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

/* Fondu entre les vues */
/* Un clic pendant le fondu doit toucher la page, pas la couche du fondu. */
::view-transition { pointer-events: none; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .55s; animation-timing-function: ease; }
@media (prefers-reduced-motion: reduce) { ::view-transition-old(root), ::view-transition-new(root) { animation-duration: .01s; } }

/* Boutons */
.bouton { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 14px 28px; border-radius: 2px; font-size: .95rem; font-weight: 500; letter-spacing: .01em; text-decoration: none; text-align: center; transition: background .2s, color .2s, border-color .2s; }
.bouton-plein { background: var(--encre); color: var(--blanc); }
.bouton-plein:hover { background: #38322b; }
.bouton-clair { background: var(--blanc); color: var(--encre); }
.bouton-clair:hover { background: var(--sable); }
.bouton-clair:disabled { background: rgba(251, 250, 247, .16); color: rgba(251, 250, 247, .62); cursor: not-allowed; }
.bouton-ligne { border: 1px solid currentColor; }
.bouton-ligne:hover { background: var(--encre); color: var(--blanc); }
.bouton-large { width: 100%; }
.pastille { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 9px 16px; border-radius: 999px; background: rgba(251, 250, 247, .94); color: var(--encre); font-size: .9rem; font-weight: 500; box-shadow: 0 1px 2px rgba(0, 0, 0, .1); white-space: nowrap; transition: background .2s, color .2s; }
.pastille:hover { background: var(--sable); }
.pastille-forte, .pastille-forte:hover { background: var(--encre); color: var(--blanc); }
.pastille:disabled { opacity: .55; cursor: progress; }
.pastille svg { width: 18px; height: 18px; fill: currentColor; }

/* Accueil : tout est posé sur l'image. Le bandeau devient blanc dès qu'on la quitte. */
.bandeau { position: fixed; top: 0; left: 0; right: 0; z-index: 20; display: flex; align-items: center; justify-content: center; gap: 16px; min-height: 56px; padding: 0 var(--marge); color: var(--blanc); border-bottom: 1px solid transparent; transition: background .3s, color .3s, border-color .3s; }
.bandeau.colle, .bandeau.ouvert { background: var(--blanc); color: var(--encre); border-bottom-color: var(--ligne); }
.bandeau-nom { position: absolute; left: var(--marge); display: inline-flex; align-items: center; min-height: 44px; font: 400 1.3rem/1 var(--titres); text-decoration: none; opacity: 0; pointer-events: none; transition: opacity .25s; }
.bandeau.colle .bandeau-nom, .bandeau.ouvert .bandeau-nom { opacity: 1; pointer-events: auto; }
.bandeau-menu { display: none; min-height: 44px; min-width: 64px; font-size: .95rem; font-weight: 500; }
.bandeau-liens { display: flex; gap: clamp(14px, 3vw, 44px); }
.bandeau-liens a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 2px; font-size: .95rem; text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 calc(100% - 9px) / 0 1px no-repeat; transition: background-size .25s var(--courbe); }
.bandeau-liens a:hover { background-size: 100% 1px; }
.lien-fort { font-weight: 600; }

.heros { position: relative; height: 100svh; min-height: 480px; overflow: hidden; background: #2b2118; }
.heros-image { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.heros-image img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 58%; transition: transform 1.2s var(--courbe); }
.heros-image:hover img { transform: scale(1.015); }
/* Voile en haut : le texte blanc reste lisible sur le ciel, quelle que soit l'image. */
.heros::before { content: ''; position: absolute; inset: 0 0 auto; height: 46%; z-index: 1; background: linear-gradient(rgba(13, 10, 7, .62), rgba(13, 10, 7, .34) 55%, rgba(13, 10, 7, 0)); pointer-events: none; }
.tete { position: absolute; left: 0; right: 0; top: clamp(56px, 8vh, 84px); z-index: 2; padding: 0 var(--marge); text-align: center; color: var(--blanc); pointer-events: none; }
.titre { font: 400 clamp(3.1rem, min(11.5vw, 19vh), 11.5rem)/.98 var(--titres); letter-spacing: -.012em; text-shadow: 0 2px 28px rgba(0, 0, 0, .35); }
.lieu { margin-top: 8px; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; }
.heros-actions { position: absolute; left: 50%; bottom: 44px; z-index: 2; transform: translateX(-50%); display: flex; gap: 10px; }
.heros-actions .bouton { white-space: nowrap; box-shadow: 0 6px 22px rgba(0, 0, 0, .22); }

.intro { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(28px, 6vw, 96px); align-items: end; padding: clamp(56px, 9vw, 120px) var(--marge); }
.intro-texte { font: 400 clamp(1.8rem, 3.6vw, 3.1rem)/1.12 var(--titres); }
.faits { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 28px; }
.faits div { border-top: 1px solid var(--ligne); padding-top: 10px; }
.faits div { display: flex; flex-direction: column; }
.faits dd { order: -1; font: 400 clamp(1.5rem, 2.5vw, 2.2rem)/1.1 var(--titres); }
.faits dt { margin-top: 2px; font-size: .88rem; color: var(--gris); }

.bloc { padding: clamp(56px, 8vw, 112px) var(--marge); }
.bloc-sable { background: var(--sable); }
.bloc-noir { background: var(--encre); color: var(--blanc); }
.bloc-tete { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 32px; margin-bottom: clamp(26px, 4vw, 52px); }
.bloc-tete h2 { font: 400 clamp(2.6rem, 6vw, 5rem)/1 var(--titres); }
.bloc-tete p { max-width: 44ch; color: var(--gris); }
.bloc-noir .bloc-tete p { color: #cfc8bb; }
.bloc-sable .bloc-tete p { color: #4d463c; }

/* Photos */
.galerie { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(26px, 3vw, 44px) clamp(12px, 1.6vw, 24px); }
.photo { grid-column: span 4; display: grid; grid-template-rows: minmax(0, 1fr) auto auto; text-align: left; width: 100%; }
.photo-large { grid-column: span 8; }
.photo-cadre { display: block; aspect-ratio: 3 / 2; width: 100%; height: 100%; overflow: hidden; background: var(--sable); }
.photo-large .photo-cadre { aspect-ratio: auto; height: 100%; min-height: 0; }
.photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--courbe); }
.photo:hover img { transform: scale(1.025); }
.photo-titre { display: block; margin-top: 11px; font: 400 1.45rem/1.15 var(--titres); }
.photo-texte { display: block; margin-top: 2px; font-size: .95rem; color: var(--gris); }

/* Liste des niveaux, sur la page */
.niveaux { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 24px); }
.niveau { display: block; width: 100%; text-align: left; }
.niveau-image { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: #cfc2ad; }
.niveau-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--courbe); }
.niveau:hover img { transform: scale(1.03); }
.niveau strong { display: block; margin-top: 11px; font: 400 1.5rem/1.1 var(--titres); }
.niveau span.niveau-texte { display: block; margin-top: 3px; font-size: .95rem; color: #4d463c; }
.niveau span.niveau-nb { display: block; margin-top: 6px; font-size: .86rem; font-weight: 500; }

/* Équipements */
.equipements { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(24px, 3vw, 44px); }
.equipements h3 { margin: 0 0 12px; padding-top: 12px; border-top: 1px solid var(--encre); font: 400 1.45rem/1.15 var(--titres); }
.equipements li { padding: 7px 0; border-bottom: 1px solid var(--ligne); font-size: .98rem; }

/* Réservation */
.reservation { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr); gap: clamp(24px, 4vw, 64px); align-items: start; }
.calendrier-tete { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.calendrier-tete p { font: 400 1.6rem/1 var(--titres); text-transform: capitalize; }
.fleche { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(251, 250, 247, .3); transition: background .2s, color .2s; }
.fleche:hover:not(:disabled) { background: var(--blanc); color: var(--encre); }
.fleche:disabled { opacity: .3; cursor: not-allowed; }
.fleche svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.mois { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; }
.mois-jour-nom { padding: 6px 0; text-align: center; font-size: .8rem; color: #cfc8bb; }
.jour { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 54px; border-radius: 2px; font-size: .98rem; line-height: 1.1; transition: background .15s, color .15s; }
.jour small { font-size: .68rem; color: #cfc8bb; margin-top: 2px; }
.jour:hover:not(:disabled) { background: rgba(251, 250, 247, .14); }
.jour:disabled { color: rgba(251, 250, 247, .42); cursor: not-allowed; text-decoration: line-through; }
.jour.dans { background: rgba(232, 223, 208, .24); }
.jour.borne, .jour.borne:hover { background: var(--blanc) !important; color: var(--encre); }
.jour.borne small { color: var(--gris); }
.legende { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-top: 14px; font-size: .9rem; color: #cfc8bb; }
.devis { padding: clamp(18px, 2.4vw, 28px); border: 1px solid rgba(251, 250, 247, .24); }
.devis-dates { font: 400 1.45rem/1.2 var(--titres); }
.devis-personnes { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; padding-block: 8px; border-block: 1px solid rgba(251, 250, 247, .2); }
.devis-personnes select { min-height: 44px; padding: 0 12px; font: inherit; color: inherit; background: transparent; border: 1px solid rgba(251, 250, 247, .3); border-radius: 2px; }
.devis-personnes option { color: var(--encre); }
.devis-lignes { margin-top: 12px; font-size: .94rem; }
.devis-lignes div { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; color: #e5dfd4; }
.devis-total { margin: 10px 0 16px; font: 400 2rem/1.1 var(--titres); min-height: 2.2rem; }
.lien-discret { display: block; width: 100%; min-height: 44px; margin-top: 4px; font-size: .92rem; text-decoration: underline; text-underline-offset: 3px; }

.pied { padding: clamp(40px, 6vw, 72px) var(--marge) 72px; background: var(--creme); }
.pied-nom { font: 400 2rem/1 var(--titres); }
.pied-mention { max-width: 62ch; margin: 12px 0; color: var(--gris); }
.pied a { display: inline-flex; align-items: center; min-height: 44px; }

/* Filigrane : en bas à gauche, le bouton de l'assistant n'existe pas ici mais la règle reste la même. */
.filigrane-demo { position: fixed; left: 10px; bottom: max(8px, env(safe-area-inset-bottom)); z-index: 30; display: inline-block; padding: 4px 10px; border-radius: 999px; background: rgba(251, 250, 247, .94); color: var(--encre); font-size: .72rem; line-height: 1.35; text-decoration: none; box-shadow: 0 1px 3px rgba(0, 0, 0, .14); }
.filigrane-demo::after { content: ''; position: absolute; inset: -10px 0; }
.filigrane-demo { font-weight: 600; }

/* Visite */
.barre { position: fixed; top: 66px; left: 10px; right: 10px; z-index: 25; display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; pointer-events: none; }
.barre > * { pointer-events: auto; }

.eclatee { position: relative; height: 100svh; overflow: hidden; background: #8a6a3f url(medias/fond.jpg?v=c00c9caa) center / cover no-repeat; }
/* Toute la scène tient dans l'écran, sous la barre : les quatre niveaux se voient ensemble. Le fond couvre le reste. */
.scene { position: absolute; left: 50%; top: calc(50% + 28px); aspect-ratio: 16 / 9; width: min(100vw, calc((100svh - 56px) * 16 / 9)); transform: translate(-50%, -50%); }
.couche { position: absolute; display: block; height: auto; pointer-events: none; transition: transform 1.2s var(--courbe); }
.ferme .couche { transform: translateY(var(--ferme)); }
.zone-niveau { position: absolute; border-radius: 12px; transition: opacity .5s .7s; }
.ferme .zone-niveau { opacity: 0; pointer-events: none; }
.zone-niveau-nom { position: absolute; right: 100%; top: 50%; margin-right: 10px; transform: translateY(-50%); display: inline-flex; align-items: center; min-height: 44px; padding: 8px 18px; border-radius: 999px; background: rgba(251, 250, 247, .94); font-size: .95rem; font-weight: 500; white-space: nowrap; box-shadow: 0 4px 14px rgba(0, 0, 0, .22); transition: background .2s, color .2s; }
.zone-niveau:hover .zone-niveau-nom, .zone-niveau:focus-visible .zone-niveau-nom { background: var(--encre); color: var(--blanc); }
.eclatee-aide { position: absolute; left: 50%; top: 66px; transform: translateX(-50%); color: var(--blanc); font: 400 1.6rem/1 var(--titres); text-shadow: 0 1px 12px rgba(0, 0, 0, .6); white-space: nowrap; }

/* Coupes */
.coupe { display: grid; grid-template-columns: 290px minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); height: calc(100svh - 56px); background: #2a2118; color: var(--blanc); }
.coupe-tete { grid-area: 1 / 1; padding: 20px 20px 10px; }
.coupe-tete h2 { font: 400 clamp(2rem, 2.8vw, 2.7rem)/1.02 var(--titres); }
.coupe-tete p { margin-top: 6px; color: #dcd4c6; font-size: .93rem; }
.coupe-tete .coupe-aide { color: var(--blanc); font-size: .84rem; font-weight: 500; }
.coupe.arrive .coupe-aide { animation: aide 2.4s var(--courbe) .2s 1; }
@keyframes aide { 0%, 100% { opacity: 1; } 35% { opacity: .35; } 70% { opacity: 1; } }
.coupe-liste { grid-area: 2 / 1; overflow-y: auto; padding: 0 12px 56px; scrollbar-width: thin; }
.coupe-liste button { display: flex; justify-content: space-between; align-items: center; gap: 10px; width: 100%; min-height: 44px; padding: 6px 8px; border-top: 1px solid rgba(251, 250, 247, .16); text-align: left; font-size: .96rem; transition: background .15s, color .15s; }
.coupe-liste button.vue, .coupe-liste button:focus-visible { background: var(--blanc); color: var(--encre); }
.coupe-liste span:last-child { color: #dcd4c6; font-size: .84rem; white-space: nowrap; }
.coupe-liste button.vue span:last-child, .coupe-liste button:focus-visible span:last-child { color: var(--gris); }
.coupe-defile { grid-area: 1 / 2 / 3 / 3; display: grid; align-content: center; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; }
.coupe-defile::-webkit-scrollbar { display: none; }
.coupe-cadre { position: relative; margin-inline: auto; aspect-ratio: 2688 / 1520; width: min(calc(100vw - 290px), calc((100svh - 56px) * 2688 / 1520)); }
.coupe-cadre img { position: absolute; inset: 0; width: 100%; height: 100%; }
.coupe-cadre svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.coupe-cadre polygon { fill: rgba(251, 250, 247, 0); stroke: transparent; stroke-width: 1.5; vector-effect: non-scaling-stroke; cursor: pointer; transition: fill .2s, stroke .2s; outline: none; }
.coupe-cadre polygon.vue, .coupe-cadre polygon:focus-visible { fill: rgba(251, 250, 247, .3); stroke: var(--blanc); }
/* Le repère de chaque pièce : il attire l'œil à l'arrivée, puis se calme. */
.repere { position: absolute; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%; display: grid; place-items: center; }
.repere i { display: block; width: 12px; height: 12px; border-radius: 50%; background: var(--blanc); box-shadow: 0 0 0 1px rgba(22, 20, 18, .4), 0 1px 6px rgba(0, 0, 0, .5); transition: transform .2s; }
.repere::before { content: ''; position: absolute; inset: 11px; border-radius: 50%; border: 1.5px solid var(--blanc); opacity: 0; }
.coupe.arrive .repere::before { animation: onde 1.5s var(--courbe) var(--retard, 0s) 2; }
@keyframes onde { 0% { transform: scale(.5); opacity: .95; } 100% { transform: scale(2.1); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .coupe.arrive .repere::before { animation: none; } }
.repere.vue i { transform: scale(1.4); }
.repere-nom { display: none; }
/* L'étiquette qui suit la souris */
.bulle { position: fixed; z-index: 40; padding: 8px 14px; background: var(--blanc); color: var(--encre); border-radius: 3px; box-shadow: 0 6px 20px rgba(0, 0, 0, .3); pointer-events: none; transform: translate(-50%, calc(-100% - 16px)); white-space: nowrap; }
.bulle strong { display: block; font: 400 1.25rem/1.15 var(--titres); }
.bulle span { display: block; font-size: .78rem; color: var(--gris); }
.coupe-liste-clavier { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.visite-fin { display: flex; flex-direction: column; align-items: center; gap: 20px; padding: 80px var(--marge) 110px; text-align: center; background: var(--creme); font: 400 clamp(1.5rem, 3vw, 2.3rem)/1.2 var(--titres); }

/* Préparation d'un étage : on regarde les pièces pendant que la visite se charge. */
#vue-etage { min-height: 100svh; background: var(--creme); padding-bottom: 150px; }
.etage-tete { padding: 124px var(--marge) 28px; }
.etage-petit { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gris); }
.etage-tete h1 { margin-top: 6px; font: 400 clamp(3rem, 8vw, 6.5rem)/1 var(--titres); }
.etage-tete p:last-child { max-width: 52ch; margin-top: 8px; font-size: 1.08rem; color: var(--gris); }
.etage-pieces { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(26px, 3vw, 44px) clamp(14px, 1.8vw, 26px); padding: 0 var(--marge); }
.etage-piece img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; background: var(--sable); }
.etage-piece h2 { margin-top: 10px; font: 400 1.5rem/1.15 var(--titres); }
.etage-surface { font-size: .9rem; font-weight: 500; }
.etage-piece p:not(.etage-surface) { margin-top: 4px; font-size: .96rem; color: var(--gris); }
.etage-piece ul { margin-top: 8px; }
.etage-piece li { padding: 5px 0; border-top: 1px solid var(--ligne); font-size: .9rem; }
.etage-bas { position: fixed; left: 0; right: 0; bottom: 0; z-index: 22; padding: 0 var(--marge) calc(36px + env(safe-area-inset-bottom)); background: var(--blanc); box-shadow: 0 -10px 30px rgba(0, 0, 0, .08); }
.etage-avance { height: 3px; margin-inline: calc(var(--marge) * -1); background: var(--sable); overflow: hidden; }
.etage-avance span { display: block; height: 100%; background: var(--encre); transform: scaleX(0); transform-origin: left; transition: transform .25s linear; }
.etage-ligne { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 4px 16px; padding-top: 12px; }
.etage-ligne p { margin-right: auto; font-size: .96rem; }
.etage-sauter { width: auto; margin: 0; }
.etage-ligne .bouton:disabled { background: var(--sable); color: #4d463c; cursor: progress; }
.etage-pret { animation: pret 1.6s var(--courbe) 2; }
@keyframes pret { 0%, 100% { box-shadow: 0 0 0 0 rgba(22, 20, 18, .45); } 60% { box-shadow: 0 0 0 12px rgba(22, 20, 18, 0); } }

/* Pièce */
.piste { position: relative; }
.piece-ecran { position: sticky; top: 56px; height: calc(100svh - 56px); background: #0d0c0b; overflow: hidden; }
.film { position: absolute; inset: 0; }
.film canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.barre-piece { position: absolute; top: 10px; right: auto; }
.pieces-menu { position: relative; }
.pieces-liste { position: absolute; left: 0; top: calc(100% + 6px); z-index: 3; display: grid; width: 250px; max-height: 60vh; overflow-y: auto; padding: 6px; background: rgba(251, 250, 247, .98); color: var(--encre); border-radius: 6px; box-shadow: 0 10px 30px rgba(0, 0, 0, .3); }
.pieces-liste button { min-height: 44px; padding: 6px 10px; border-radius: 3px; text-align: left; font-size: .95rem; transition: background .15s; }
.pieces-liste button:hover { background: var(--sable); }
.pieces-liste .actif { font-weight: 600; background: var(--sable); }
/* Changer d'étage */
.changer { position: fixed; right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); z-index: 24; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
body[data-vue="page"] .changer, body[data-vue="etage"] .changer { display: none; }
.changer-bouton { display: inline-flex; align-items: center; gap: 9px; min-height: 48px; padding: 8px 18px 8px 14px; border-radius: 999px; background: var(--encre); color: var(--blanc); font-size: .95rem; font-weight: 500; box-shadow: 0 6px 22px rgba(0, 0, 0, .35); transition: background .2s; }
.changer-bouton:hover { background: #38322b; }
.changer-bouton svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; }
.changer-liste { display: grid; gap: 2px; width: 250px; padding: 6px; background: var(--blanc); color: var(--encre); border-radius: 6px; box-shadow: 0 12px 34px rgba(0, 0, 0, .34); }
.changer-niveau { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 5px 8px; border-radius: 3px; text-align: left; font-size: .95rem; transition: background .15s; }
.changer-niveau:hover { background: var(--sable); }
.changer-niveau img { width: 64px; height: 36px; object-fit: cover; border-radius: 2px; }
.changer-niveau.actif { background: var(--sable); font-weight: 600; }
.charge { align-self: center; padding: 8px 14px; border-radius: 999px; background: rgba(13, 12, 11, .72); color: var(--blanc); font-size: .85rem; }
.film-bas { position: absolute; left: 12px; bottom: calc(40px + env(safe-area-inset-bottom)); right: 412px; display: flex; align-items: center; gap: 12px; }
.curseur { flex: 1; min-width: 0; height: 44px; margin: 0; background: none; accent-color: var(--blanc); cursor: pointer; -webkit-appearance: none; appearance: none; }
.curseur::-webkit-slider-runnable-track { height: 3px; background: rgba(251, 250, 247, .55); border-radius: 2px; }
.curseur::-moz-range-track { height: 3px; background: rgba(251, 250, 247, .55); border-radius: 2px; }
.curseur::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; margin-top: -7.5px; border-radius: 50%; background: var(--blanc); box-shadow: 0 1px 4px rgba(0, 0, 0, .4); }
.curseur::-moz-range-thumb { width: 18px; height: 18px; border: 0; border-radius: 50%; background: var(--blanc); box-shadow: 0 1px 4px rgba(0, 0, 0, .4); }
/* Les flèches, posées sur la vidéo : à gauche, à droite, devant, et revenir en bas. */
.sorties { position: absolute; inset: 0; pointer-events: none; opacity: 0; visibility: hidden; transition: opacity .3s, visibility 0s linear .3s; }
.sorties.au-bout { opacity: 1; visibility: visible; transition: opacity .3s; }
.sorties > div { position: absolute; display: flex; flex-direction: column; gap: 8px; }
.sorties-gauche { left: 12px; top: 50%; transform: translateY(-50%); align-items: flex-start; }
.sorties-droite { right: 408px; top: 50%; transform: translateY(-50%); align-items: flex-end; }
.sorties-devant { left: calc((100% - 396px) / 2); top: 70px; transform: translateX(-50%); align-items: center; }
.sorties-retour { left: calc((100% - 396px) / 2); bottom: 96px; transform: translateX(-50%); align-items: center; }
.fleche-piece { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 8px 18px 8px 10px; border-radius: 999px; background: rgba(13, 12, 11, .78); color: var(--blanc); font-size: .95rem; font-weight: 500; white-space: nowrap; pointer-events: auto; transition: background .2s, color .2s; }
.fleche-piece:hover { background: var(--blanc); color: var(--encre); }
.fleche-piece svg { width: 24px; height: 24px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.fleche-droite { flex-direction: row-reverse; padding: 8px 10px 8px 18px; }
.piece-fin-voisines { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 6px; }
.piece-fin-voisines .fleche-piece { background: var(--encre); }
.piece-fin-voisines .fleche-piece:hover { background: #38322b; color: var(--blanc); }
.aide-defiler { position: absolute; left: 50%; bottom: 104px; transform: translateX(-50%); padding: 6px 14px; border-radius: 999px; background: rgba(13, 12, 11, .62); color: var(--blanc); font-size: .85rem; white-space: nowrap; pointer-events: none; transition: opacity .4s; }
.aide-defiler.partie { opacity: 0; }
.fiche { position: absolute; right: 12px; top: 12px; width: 384px; max-height: calc(100% - 84px); overflow: auto; background: rgba(251, 250, 247, .96); color: var(--encre); border-radius: 4px; }
.fiche-poignee { display: grid; grid-template-columns: minmax(0, 1fr) auto 24px; align-items: center; gap: 10px; width: 100%; min-height: 60px; padding: 12px 16px; text-align: left; }
.fiche-poignee svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; transition: transform .25s; }
.fiche-poignee[aria-expanded="false"] svg { transform: rotate(180deg); }
.fiche-niveau { display: block; font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gris); }
.fiche-poignee strong { display: block; font: 400 1.6rem/1.1 var(--titres); }
.fiche-surface { font-size: .95rem; font-weight: 500; white-space: nowrap; }
.fiche-corps { padding: 0 16px 16px; font-size: .97rem; }
.fiche-corps ul { margin-top: 10px; }
.fiche-corps li { padding: 6px 0; border-top: 1px solid var(--ligne); font-size: .94rem; }
.piece-fin { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; min-height: 70svh; padding: 64px var(--marge) 80px; background: var(--creme); text-align: center; }
.piece-fin-petit { font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; color: var(--gris); }
.piece-fin-nom { min-height: 44px; font: 400 clamp(2.6rem, 7vw, 5.6rem)/1.04 var(--titres); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .14em; }
.piece-fin-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 10px; }

/* Le parcours au défilement */
.course { position: absolute; left: 0; width: 1px; visibility: hidden; pointer-events: none; }
html:not(.doigt) .piece-fin { display: none; }
.fondu-court::view-transition-old(root), .fondu-court::view-transition-new(root) { animation-duration: .28s; }
.texte-parcours { position: absolute; left: 24px; bottom: 104px; max-width: min(420px, 42%); padding: 14px 40px 14px 18px; border-left: 2px solid var(--blanc); background: linear-gradient(90deg, rgba(13, 12, 11, .72), rgba(13, 12, 11, 0)); color: var(--blanc); opacity: 0; transform: translateY(12px); transition: opacity .4s, transform .5s var(--courbe); pointer-events: none; }
.texte-parcours.vue { opacity: 1; transform: none; }
.texte-parcours strong { display: block; font: 400 clamp(1.5rem, 2.2vw, 2rem)/1.12 var(--titres); }
.texte-parcours span { display: block; margin-top: 4px; font-size: .95rem; line-height: 1.4; }
.sorties-titre { position: absolute; left: calc((100% - 396px) / 2); top: 66px; transform: translateX(-50%); padding: 8px 20px; border-radius: 999px; background: var(--blanc); color: var(--encre); font: 400 1.35rem/1.15 var(--titres); white-space: nowrap; box-shadow: 0 6px 20px rgba(0, 0, 0, .28); }
.sorties-titre ~ .sorties-devant { top: 118px; }
.sorties.appel .sorties-titre, .sorties.appel .fleche-piece { animation: rappel .55s var(--courbe) 1; }
@keyframes rappel { 40% { box-shadow: 0 0 0 7px rgba(251, 250, 247, .55); } }

/* Message de démonstration */
.message { width: min(560px, calc(100vw - 32px)); padding: clamp(24px, 4vw, 40px); border: 0; border-radius: 4px; background: var(--blanc); color: var(--encre); }
.message::backdrop { background: rgba(13, 12, 11, .62); }
.message h2 { font: 400 clamp(2rem, 4vw, 2.8rem)/1.05 var(--titres); }
.message p { margin-top: 12px; }
.message-resume { color: var(--gris); font-size: .95rem; }
.message-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }

/* Tablette */
@media (max-width: 1100px) {
  .niveaux { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .equipements { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .photo { grid-column: span 6; }
  .photo-large { grid-column: span 12; }
  .photo-large .photo-cadre { aspect-ratio: 16 / 9; height: auto; }
  .reservation { grid-template-columns: minmax(0, 1fr); }
}

/* Écran en hauteur : vidéo verticale, fiche sous la vidéo, repliable */
@media (max-aspect-ratio: 1 / 1) {
  .film { bottom: var(--haut-fiche, 74px); transition: bottom .28s var(--courbe); }
  .film-bas { right: 12px; bottom: 12px; }
  .fiche { left: 0; right: 0; top: auto; bottom: 0; width: 100%; max-height: 52svh; border-radius: 0; background: var(--blanc); padding-bottom: calc(36px + env(safe-area-inset-bottom)); }
  .fiche-poignee { min-height: 74px; }
  .aide-defiler { bottom: 70px; }
  .scene { top: 50%; width: 190vw; }
  .zone-niveau-nom { right: auto; left: 50%; top: 100%; margin: 0; transform: translate(-50%, -60%); }
  .eclatee-aide { top: auto; bottom: 52px; }
  #suivante-bas { max-width: 42vw; overflow: hidden; text-overflow: ellipsis; display: inline-block; line-height: 26px; }

  /* Le plan se pousse du doigt : il garde une taille où les pièces se lisent. */
  .coupe { display: block; height: auto; }
  .coupe-cadre { width: max(960px, 240vw); margin-inline: 0; }
  .coupe-tete { padding: 18px var(--marge) 12px; }
  .coupe-defile { display: block; }
  .changer { bottom: 40px; right: 10px; }
  .changer-bouton { min-height: 44px; padding: 6px 14px 6px 11px; font-size: .88rem; }
  .changer-bouton svg { width: 19px; height: 19px; }
  /* Le bas de l'écran appartient au bouton Changer d'étage : la consigne passe en haut. */
  .eclatee-aide { top: 70px; bottom: auto; font-size: 1.35rem; }
  .repere { width: auto; height: 44px; margin: -22px 0 0 0; transform: translateX(-50%); }
  .repere i { display: none; }
  .repere::before { display: none; }
  .repere-nom { display: flex; align-items: center; min-height: 30px; padding: 3px 10px; border-radius: 999px; background: rgba(251, 250, 247, .95); color: var(--encre); font-size: .78rem; font-weight: 500; white-space: nowrap; box-shadow: 0 1px 5px rgba(0, 0, 0, .34); }
  .coupe.arrive .repere-nom { animation: appel 1.3s var(--courbe) var(--retard, 0s) 1; }
  @keyframes appel { 0%, 100% { transform: scale(1); } 40% { transform: scale(1.12); } }
  .coupe-liste { overflow: visible; padding: 14px var(--marge) 96px; }
}

/* Téléphone */
@media (max-width: 720px) {
  body { font-size: 16px; }
  .tete { top: 58px; }
  .titre { font-size: clamp(3.1rem, 16.5vw, 6rem); }
  .lieu { font-size: .72rem; }
  .bandeau { justify-content: flex-end; flex-wrap: wrap; }
  .bandeau-menu { display: inline-flex; align-items: center; justify-content: flex-end; }
  .bandeau-liens { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; gap: 0; padding: 4px var(--marge) 12px; background: var(--blanc); color: var(--encre); border-bottom: 1px solid var(--ligne); box-shadow: 0 16px 24px rgba(0, 0, 0, .08); }
  .bandeau.ouvert .bandeau-liens { display: flex; }
  .bandeau-liens a { width: 100%; min-height: 50px; font-size: 1.05rem; border-bottom: 1px solid var(--ligne); background: none; }
  .bandeau-liens li:last-child a { border-bottom: 0; }
  .heros-image img { object-position: 56% 50%; }
  .heros-actions { left: 16px; right: 16px; bottom: 56px; transform: none; flex-direction: column; }
  .intro { grid-template-columns: minmax(0, 1fr); padding-block: 52px; }
  .galerie { gap: 28px 0; }
  .photo, .photo-large { grid-column: span 12; }
  .niveaux { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .equipements { grid-template-columns: minmax(0, 1fr); }
  .jour { min-height: 50px; font-size: .92rem; }
  .jour small { font-size: .62rem; letter-spacing: -.01em; }
  .message-actions .bouton { width: 100%; }
  .piece-fin-actions .bouton { min-width: 150px; }
  .filigrane-demo { font-size: .68rem; max-width: calc(100vw - 20px); }
}

@media (max-width: 1100px) { .etage-pieces { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) {
  .etage-pieces { grid-template-columns: minmax(0, 1fr); }
  .etage-ligne .bouton { width: 100%; }
  #vue-etage { padding-bottom: 170px; }
  .etage-bas { padding-bottom: calc(52px + env(safe-area-inset-bottom)); }
  #vue-etage { padding-bottom: 190px; }
}

/* Au doigt : la vidéo en haut, pilotée sur l'image ; en dessous, une page normale, libre de défiler. */
.doigt .piste { height: auto; }
.doigt body[data-vue="piece"] .changer { display: none; }
.doigt .piece-ecran { position: static; height: auto; margin-top: 56px; overflow: visible; background: var(--blanc); }
.doigt .film { position: relative; inset: auto; height: 66svh; bottom: auto; background: #0d0c0b; overflow: hidden; touch-action: pan-y; transition: none; }
.doigt .fiche { position: static; width: 100%; max-height: none; border-radius: 0; background: var(--blanc); padding-bottom: 8px; }
.doigt .fiche-poignee { min-height: 66px; }
.doigt .film-bas { left: 10px; right: 10px; bottom: 10px; }
.doigt #suivante-bas { display: none; }
.doigt .aide-defiler { bottom: 66px; }
.doigt .sorties-droite { right: 10px; }
.doigt .sorties-gauche { left: 10px; }
.doigt .sorties-devant, .doigt .sorties-retour { left: 50%; }
.doigt .sorties-devant { top: 62px; }
.doigt .sorties-retour { bottom: 62px; }
.doigt .fleche-piece { min-height: 44px; padding: 6px 13px 6px 7px; font-size: .86rem; }
.doigt .fleche-droite { padding: 6px 7px 6px 13px; }
.doigt .piece-fin { min-height: 0; padding: 34px var(--marge) 70px; }
.doigt .piece-fin-nom { font-size: clamp(2.2rem, 9vw, 3.4rem); }
@media (pointer: coarse) and (min-aspect-ratio: 1 / 1) {
  .doigt .film { height: calc(100svh - 56px); }
  .doigt .film-bas { bottom: 38px; }
  .doigt .sorties-retour { bottom: 88px; }
}

.doigt .texte-parcours { left: 10px; right: 10px; bottom: 62px; max-width: none; padding: 10px 14px; }
.doigt .texte-parcours strong { font-size: 1.3rem; }
.doigt .texte-parcours span { font-size: .86rem; }
.doigt .sorties-titre { left: 50%; top: 62px; padding: 6px 14px; font-size: 1.12rem; }
.doigt .sorties-titre ~ .sorties-devant { top: 104px; }

/* Écran tactile à l'horizontale : pas de souris non plus, les noms restent affichés. */
@media (pointer: coarse) and (min-aspect-ratio: 1 / 1) {
  .repere { width: auto; height: 44px; margin: -22px 0 0 0; transform: translateX(-50%); }
  .repere i, .repere::before { display: none; }
  .repere-nom { display: flex; align-items: center; min-height: 30px; padding: 3px 10px; border-radius: 999px; background: rgba(251, 250, 247, .95); color: var(--encre); font-size: .78rem; font-weight: 500; white-space: nowrap; box-shadow: 0 1px 5px rgba(0, 0, 0, .34); }
}

/* Écran très bas (téléphone à l'horizontale) : les quatre niveaux tiennent dans la hauteur. */
@media (max-height: 500px) and (min-aspect-ratio: 1 / 1) {
  .eclatee-aide, .coupe-tete .coupe-aide { display: none; }
  /* Accueil sur un téléphone couché : l'image tient dans l'écran, boutons compris. */
  .heros { min-height: 0; }
  .titre { font-size: clamp(2.4rem, 15vh, 4.2rem); }
  .lieu { margin-top: 4px; }
  .heros-actions { bottom: 40px; }
  .heros-actions .bouton { min-height: 46px; padding: 10px 22px; }
  .doigt .texte-parcours { bottom: 98px; right: auto; max-width: 55%; }
  .doigt .sorties-titre { top: 8px; left: 60%; }
  /* Peu de hauteur : les flèches s'alignent au lieu de s'empiler jusqu'au bouton Lire. */
  .doigt .sorties > .sorties-gauche { top: 58px; transform: none; flex-direction: row; flex-wrap: wrap; max-width: 62%; }
  .doigt .sorties > .sorties-devant { top: 58px; left: auto; right: 12px; transform: none; }
  .doigt .sorties > .sorties-droite { top: 112px; right: 12px; transform: none; }
  .coupe { display: block; height: auto; }
  .coupe-defile { display: block; }
  .coupe-cadre { width: 100vw; }
  .coupe-liste { overflow: visible; padding-bottom: 96px; }
}

/* Mouvement réduit : plus aucune animation de décor. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Téléphone en mode guidé (Mathis, 10/11) : le trajet se joue seul, puis on tourne le regard au doigt dans la pièce. */
.regard { position: absolute; inset: 0; overflow: hidden; background: #0d0c0b; touch-action: pan-y; cursor: grab; }
.regard[hidden] { display: none; }
.regard-calque { position: absolute; left: 50%; top: 50%; height: var(--regard-h, 100%); width: var(--regard-w, 100%); transform: translate(calc(-50% + var(--regard-x, 0px)), -50%); will-change: transform; }
.regard-calque img { display: block; width: 100%; height: 100%; max-width: none; user-select: none; -webkit-user-drag: none; }
.regard-reperes { position: absolute; inset: 0; }
/* Les repères : le nom des pièces voisines posé à leur place dans l'image. */
.voisine { position: absolute; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 6px 14px 6px 8px; transform: translate(-50%, -50%); border-radius: 999px; background: rgba(13, 12, 11, .62); color: var(--blanc); font-size: .9rem; font-weight: 500; white-space: nowrap; box-shadow: 0 2px 14px rgba(0, 0, 0, .25); cursor: pointer; opacity: 0; transition: opacity .35s, background .2s; }
.regard.pret .voisine { opacity: 1; }
.voisine::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--blanc); box-shadow: 0 0 0 4px rgba(255, 255, 255, .25); }
.voisine:hover, .voisine:focus-visible { background: rgba(13, 12, 11, .85); }
.regard-repere { position: absolute; left: 50%; bottom: 14px; width: 84px; height: 4px; transform: translateX(-50%); border-radius: 2px; background: rgba(255, 255, 255, .28); }
.regard-repere span { position: absolute; top: 0; bottom: 0; border-radius: 2px; background: var(--blanc); }
.guide #lire, .guide #curseur { display: none; }
.guide .film-bas { justify-content: center; }
.guide-sorties { display: none; }
.guide .sorties { display: none; }
.guide .guide-sorties { display: flex; gap: 8px; overflow-x: auto; padding: 10px var(--marge, 16px); background: var(--blanc); scrollbar-width: none; }
.guide .guide-sorties::-webkit-scrollbar { display: none; }
.guide .guide-sorties .fleche-piece { position: static; flex: none; transform: none; background: var(--encre); color: var(--blanc); }
.guide-sorties-titre { flex: none; align-self: center; margin: 0 4px 0 0; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gris); }

/* Lecture continue et visite guidée (10/11). */
.toile-fondu { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.toile-fondu[hidden] { display: none; }
.tour { position: absolute; left: 50%; bottom: calc(40px + env(safe-area-inset-bottom)); transform: translateX(-50%); display: flex; gap: 8px; z-index: 6; }
.tour[hidden] { display: none; }
.en-visite .film-bas, .en-visite #sorties { display: none; }
.doigt .tour { bottom: 10px; }
.eclatee-guidee { position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 4; }
/* Au téléphone, le centre du bas appartient au nom du sous-sol : le bouton se range au-dessus de Changer d'étage. */
@media (max-aspect-ratio: 1 / 1) { .eclatee-guidee { left: auto; right: 10px; bottom: 94px; transform: none; min-height: 44px; padding: 6px 18px; border-radius: 999px; font-size: .88rem; box-shadow: 0 6px 22px rgba(0, 0, 0, .35); } }
.barre-piece .court { display: none; }
@media (max-width: 480px) { .barre-piece .long { display: none; } .barre-piece .court { display: inline; } }
.voisine { width: max-content; }

/* Barre de la pièce : trois boutons qu'on distingue (icône), la visite guidée mise en avant (Mathis, 10/11). */
.pastille svg path[fill="none"] { fill: none; }
.pastille-guidee, .pastille-guidee:hover { background: #6b5a43; color: var(--blanc); }
.en-visite .pastille-guidee { background: var(--encre); }
/* Les sorties : « Revenir » dès le début de la vidéo, les autres directions à mi-parcours. */
.sorties.debut { opacity: 1; visibility: visible; transition: opacity .3s; }
.sorties.debut:not(.au-bout) > div:not(.sorties-retour), .sorties.debut:not(.au-bout) > .sorties-titre { opacity: 0; visibility: hidden; }
.sorties > div, .sorties > .sorties-titre { transition: opacity .3s; }
/* Les points sur les objets : apparaissent un à un, un cadre pour les ensembles (les deux places du garage). */
.points { position: absolute; inset: 0; pointer-events: none; }
.points-ecran { position: absolute; left: 50%; top: 50%; width: var(--pe-w, 100%); height: var(--pe-h, 100%); transform: translate(-50%, -50%); pointer-events: none; }
.point { position: absolute; display: flex; align-items: center; gap: 8px; transform: translate(-8px, -50%); opacity: 0; transition: opacity .45s var(--courbe), transform .45s var(--courbe); }
.point.a-gauche { flex-direction: row-reverse; transform: translate(calc(-100% + 8px), -50%); }
.point i { flex: none; width: 16px; height: 16px; border-radius: 50%; background: var(--blanc); box-shadow: 0 0 0 4px rgba(255, 255, 255, .28), 0 1px 8px rgba(0, 0, 0, .45); }
.point span { padding: 6px 13px; border-radius: 999px; background: rgba(13, 12, 11, .7); color: var(--blanc); font-size: .88rem; font-weight: 500; line-height: 1.25; white-space: nowrap; box-shadow: 0 2px 12px rgba(0, 0, 0, .25); }
.point-cadre { position: absolute; border: 2px solid rgba(255, 255, 255, .92); border-radius: 14px; box-shadow: 0 0 18px rgba(0, 0, 0, .25), inset 0 0 18px rgba(0, 0, 0, .12); opacity: 0; transform: scale(1.06); transition: opacity .5s var(--courbe), transform .5s var(--courbe); }
.points.vu .point, .points.vu .point-cadre { opacity: 1; transform-origin: center; transition-delay: calc(var(--k, 0) * .7s + .2s); }
.points.vu .point-cadre { transform: scale(1); }
.points.vu .point i { animation: pouls 2.4s ease-out calc(var(--k, 0) * .7s + .2s) 2; }
@keyframes pouls { 0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, .7), 0 1px 8px rgba(0, 0, 0, .45); } 100% { box-shadow: 0 0 0 16px rgba(255, 255, 255, 0), 0 1px 8px rgba(0, 0, 0, .45); } }
@media (max-width: 480px) { .point span { font-size: .8rem; padding: 5px 10px; } }
@media (prefers-reduced-motion: reduce) { .points.vu .point, .points.vu .point-cadre { transition-delay: 0s; } .points.vu .point i { animation: none; } }
/* Ordinateur : après l'arrivée, les libellés s'effacent et restent au survol du point. */
.points-ecran .point { pointer-events: auto; }
.points-ecran .points.calme .point span { opacity: 0; transition: opacity .4s; }
.points-ecran .points.calme .point:hover span { opacity: 1; }
.points-ecran .points.calme .point i { cursor: help; }

/* ------------------------------------------------------------------------ */
/* Assistant de la villa (10/11) : bloc repris tel quel de                  */
/* outils/socle-premium/socle.css (source unique du widget), puis réglé ici.  */
/* Assistant (assistant.js) : bouton bas DROITE, panneau au-dessus           */
/* ------------------------------------------------------------------------ */
.assistant-bouton {
  position: fixed; right: 1rem; bottom: calc(1rem + env(safe-area-inset-bottom)); z-index: 2147482999;
  width: 60px; height: 60px; border-radius: 50%; border: 0; cursor: pointer;
  display: grid; place-items: center;
  background: var(--assistant-fond, var(--accent, #111)); color: var(--assistant-texte, #fff);
  box-shadow: 0 10px 30px rgb(0 0 0 / .28);
  transition: transform .35s cubic-bezier(.16, 1, .3, 1);
}
.assistant-bouton:hover { transform: scale(1.06); }
.assistant-bouton svg { width: 28px; height: 28px; }
@media (max-width: 480px) { .assistant-bouton { right: .6rem; bottom: calc(.6rem + env(safe-area-inset-bottom)); width: 54px; height: 54px; } }

.assistant-panneau {
  position: fixed; right: 1rem; bottom: calc(5.2rem + env(safe-area-inset-bottom)); z-index: 2147482999;
  width: min(380px, calc(100vw - 2rem)); max-height: min(560px, calc(100svh - 7rem));
  display: flex; flex-direction: column;
  background: var(--assistant-panneau, var(--surface, #fff)); color: var(--assistant-panneau-texte, var(--texte, #111));
  border: 1px solid var(--assistant-bord, rgb(0 0 0 / .1)); border-radius: 1.2rem;
  box-shadow: 0 30px 80px rgb(0 0 0 / .3);
  overflow: hidden;
  transform-origin: 100% 100%;
  animation: assistant-ouvre .45s cubic-bezier(.16, 1, .3, 1);
}
.assistant-panneau[hidden] { display: none; }
@keyframes assistant-ouvre { from { opacity: 0; transform: translateY(12px) scale(.96); } }
.assistant-tete { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .9rem 1rem; border-bottom: 1px solid var(--assistant-bord, rgb(0 0 0 / .1)); }
.assistant-tete strong { font-size: 1rem; }
.assistant-tete small { display: block; opacity: .7; font-size: .78rem; }
.assistant-fermer { width: 44px; height: 44px; border: 0; background: transparent; border-radius: 50%; cursor: pointer; font-size: 1.4rem; line-height: 1; }
.assistant-fil { flex: 1; overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; gap: .6rem; }
.assistant-bulle { max-width: 88%; padding: .7rem .9rem; border-radius: 1rem; font-size: .92rem; line-height: 1.45; }
.assistant-bulle--bot { align-self: flex-start; background: var(--assistant-bulle, rgb(0 0 0 / .06)); border-bottom-left-radius: .3rem; }
.assistant-bulle--moi { align-self: flex-end; background: var(--assistant-fond, var(--accent, #111)); color: var(--assistant-texte, #fff); border-bottom-right-radius: .3rem; }
.assistant-bulle a { font-weight: 600; }
.assistant-suggestions { display: flex; flex-wrap: wrap; gap: .4rem; padding: 0 1rem .8rem; }
.assistant-suggestions button {
  min-height: 44px; padding: .45rem .8rem; border-radius: 999px; cursor: pointer; font-size: .85rem;
  border: 1px solid var(--assistant-bord, rgb(0 0 0 / .15)); background: transparent;
}
/* Écran bas : les suggestions tiennent sur une ligne qui défile, la réponse garde sa place à lire. */
@media (max-height: 700px) {
  .assistant-tete { padding-block: .35rem; }
  .assistant-suggestions { flex: none; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .assistant-suggestions::-webkit-scrollbar { display: none; }
  .assistant-suggestions button { flex: none; white-space: nowrap; }
  .assistant-fil { min-height: 5.5rem; }
}
.assistant-saisie { display: flex; gap: .5rem; padding: .7rem; border-top: 1px solid var(--assistant-bord, rgb(0 0 0 / .1)); }
.assistant-saisie input {
  flex: 1; min-width: 0; min-height: 44px; padding: .5rem .8rem; border-radius: .7rem; font: inherit; font-size: 16px;
  border: 1px solid var(--assistant-bord, rgb(0 0 0 / .15)); background: transparent; color: inherit;
}
.assistant-saisie button {
  min-width: 44px; min-height: 44px; border: 0; border-radius: .7rem; cursor: pointer;
  background: var(--assistant-fond, var(--accent, #111)); color: var(--assistant-texte, #fff); font-weight: 600; padding: 0 .9rem;
}

/* Réglages de la villa : couleurs du site, bouton en pastille avec son texte,
   « Changer d'étage » remonté au-dessus pour ne jamais se chevaucher. */
:root {
  --assistant-fond: var(--encre);
  --assistant-texte: var(--blanc);
  --assistant-panneau: var(--blanc);
  --assistant-panneau-texte: var(--encre);
  --assistant-bord: rgba(22, 20, 18, .12);
  --assistant-bulle: var(--sable);
}
.assistant-bouton { width: auto; height: 52px; padding: 0 18px 0 14px; border-radius: 999px; display: inline-flex; align-items: center; gap: 9px; font: 500 .95rem/1 var(--texte); }
.assistant-bouton svg { width: 22px; height: 22px; }
.assistant-bouton::after { content: "Une question pour la villa ?"; }
.changer { bottom: calc(max(12px, env(safe-area-inset-bottom)) + 64px); }
/* Les boutons de l'accueil remontent au-dessus de l'assistant. */
.heros-actions { bottom: 84px; }
/* Écran en hauteur : le bouton passe au-dessus du filigrane de démo (bas
   gauche), et tout ce qui vit en bas à droite remonte d'autant. */
@media (max-aspect-ratio: 1 / 1) {
  .assistant-bouton { right: 10px; bottom: calc(40px + env(safe-area-inset-bottom)); height: 46px; padding: 0 14px 0 12px; font-size: .9rem; }
  .assistant-bouton::after { content: "Une question ?"; }
  .assistant-panneau { right: 10px; bottom: calc(94px + env(safe-area-inset-bottom)); max-height: min(560px, calc(100svh - 160px)); }
  .changer { bottom: calc(max(12px, env(safe-area-inset-bottom)) + 88px); }
  .eclatee-guidee { bottom: 156px; }
  .heros-actions { bottom: 100px; }
}
/* Téléphone, dans une pièce : le bas appartient à la fiche, dont la poignée s'ouvre au doigt. Le bouton de
   l'assistant la couvrait (390 x 664) : il s'efface, comme Changer d'étage. */
.doigt body[data-vue="piece"] .assistant-bouton { display: none; }
/* Sous 375 px, le filigrane passe sur deux lignes (45 px du bas) : le bouton monte au-dessus. Dans la visite, il laisse
   la place aux noms des niveaux ; Changer d'étage et Visite guidée se rangent juste au-dessus du filigrane. */
@media (max-width: 374px) {
  .assistant-bouton { bottom: calc(52px + env(safe-area-inset-bottom)); }
  .assistant-panneau { bottom: calc(106px + env(safe-area-inset-bottom)); }
  .heros-actions { bottom: 110px; }
  body[data-vue="visite"] .assistant-bouton { display: none; }
  body[data-vue="visite"] .changer { bottom: 52px; }
  body[data-vue="visite"] .eclatee-guidee { bottom: 106px; }
}
/* Le bas de l'écran : sur iPad et sur les iPhone sans bouton, env(safe-area-inset-bottom) vaut 20 à 34 px. Le bouton de
   l'assistant en tient compte : ce qui se range au-dessus de lui aussi, sinon ils se touchent (iPad de Mathis, 11/11 :
   « Une question pour la villa ? » sur les boutons de l'accueil). Mêmes écarts qu'avant quand la marge est nulle. */
.heros-actions { bottom: calc(84px + env(safe-area-inset-bottom)); }
.changer { bottom: calc(80px + env(safe-area-inset-bottom)); }  /* 12 px au-dessus de l'assistant */
@media (max-aspect-ratio: 1 / 1) {
  .heros-actions { bottom: calc(100px + env(safe-area-inset-bottom)); }
  /* Pile serrée à 6 px : avec la marge d'un iPhone (34 px), Visite guidée reste sous le nom du rez-de-chaussée. */
  .changer { bottom: calc(92px + env(safe-area-inset-bottom)); }
  .eclatee-guidee { bottom: calc(142px + env(safe-area-inset-bottom)); }
}
@media (max-width: 374px) {
  .heros-actions { bottom: calc(110px + env(safe-area-inset-bottom)); }
  body[data-vue="visite"] .changer { bottom: calc(52px + env(safe-area-inset-bottom)); }
  body[data-vue="visite"] .eclatee-guidee { bottom: calc(106px + env(safe-area-inset-bottom)); }
}
/* Écran d'un étage (« prêtes à visiter ») : son bouton pour entrer est en bas à droite, l'assistant le cachait sur
   iPad à l'horizontale (photo de Mathis, 11/11). L'assistant attend la visite ou la page. */
body[data-vue="etage"] .assistant-bouton, body[data-vue="etage"] .assistant-panneau { display: none; }
/* La barre de la pièce hérite de .barre (au-dessus du bandeau) : sur tablette, la page défile et elle passait par-dessus
   le bandeau (iPad de Mathis, 11/11). Elle reste au-dessus de la vidéo, sous le bandeau. */
.barre-piece { z-index: 15; }

/* ------------------------------------------------------------------------ */
/* Tour de drone de l'accueil (11/11, survol.js) : #accueil devient une piste */
/* de --piste en plus de l'écran ; .heros-colle reste en haut pendant que la  */
/* villa tourne. Sans survol (mouvement réduit), l'accueil reste une image.   */
/* ------------------------------------------------------------------------ */
.heros-colle { position: sticky; top: 0; height: 100svh; min-height: inherit; overflow: hidden; }
/* Le dégradé du haut suit l'écran collé, pas la piste. */
.heros::before { display: none; }
.heros-colle::before { content: ''; position: absolute; inset: 0 0 auto; height: 46%; z-index: 1; background: linear-gradient(rgba(13, 10, 7, .62), rgba(13, 10, 7, .34) 55%, rgba(13, 10, 7, 0)); pointer-events: none; }
/* La piste en hauteur, pas en marge : un élément collant ne glisse que dans le contenu de son parent. */
.heros.survol { height: calc(100svh + var(--piste, 0px)); min-height: 0; overflow: visible; }
.heros.survol .heros-colle { min-height: 480px; }
/* La toile couvre l'image fixe une fois sa première image dessinée ; le clic passe à l'image (démarrer la visite). */
.survol-toile { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 58%; opacity: 0; transition: opacity .4s; pointer-events: none; }
.heros.survol-pret .survol-toile { opacity: 1; }
/* Écran en hauteur : le film 4:5 entier, en pleine largeur sous le titre, ses bords fondus dans l'image fixe
   floutée (agrandi pour remplir un téléphone, il coupait la villa sur les côtés). */
@media (max-aspect-ratio: 1 / 1) {
  .heros.survol .survol-toile { inset: auto 0; top: 13svh; height: auto; aspect-ratio: 4 / 5; -webkit-mask-image: linear-gradient(transparent, #000 9%, #000 86%, transparent); mask-image: linear-gradient(transparent, #000 9%, #000 86%, transparent); }
  .heros.survol-pret .heros-image img { filter: blur(18px) brightness(.68); transform: scale(1.1); }
}
/* Téléphone bas (375 × 667) : le film plus petit et fondu sur tous ses bords, la villa au-dessus des boutons. */
@media (max-aspect-ratio: 1 / 1) and (max-height: 720px) {
  .heros.survol .survol-toile { top: 9svh; left: 9%; right: auto; width: 82%; -webkit-mask-image: radial-gradient(ellipse 62% 58% at 50% 46%, #000 68%, transparent 100%); mask-image: radial-gradient(ellipse 62% 58% at 50% 46%, #000 68%, transparent 100%); }
}
@media (max-height: 500px) { .heros.survol .heros-colle { min-height: 0; } }

/* Téléphone en mode guidé : les flèches de navigation sur l'image (Mathis, 11/11), la rangée « Aller vers » sous l'image
   s'efface. En haut, ce qui est devant ; sur les côtés, à gauche et à droite, montés depuis le bas pour ne jamais
   rejoindre ceux du haut ; tout en bas, « Revenir ». Pendant un trajet, les flèches attendent l'arrivée. */
.guide .sorties { display: block; }
.guide .guide-sorties { display: none; }
.guide .sorties-titre { display: none; }
.guide .sorties-devant, .guide .sorties-titre ~ .sorties-devant { top: 62px; }
.guide .sorties > .sorties-gauche, .guide .sorties > .sorties-droite { top: auto; bottom: 128px; transform: none; }
.guide .sorties-retour { bottom: 28px; }
.guide .aide-defiler { bottom: 82px; }
.guide .film:has(.sorties-retour > :nth-child(2)) .aide-defiler { display: none; }
.guide.en-trajet .sorties { opacity: 0; visibility: hidden; }
/* Très petit écran (320 px) : trop de flèches pour les ranger par direction, elles se rangent en lignes au bas de l'image. */
@media (max-width: 359px) {
  .guide .sorties { display: flex; flex-wrap: wrap; align-content: flex-end; justify-content: center; gap: 6px; padding: 0 8px 24px; }
  .guide .sorties > div { display: contents; }
  .guide .aide-defiler { display: none; }
}
/* Barre de la pièce sur un écran étroit : « Visite guidée » dépassait de l'image à 360 px. */
@media (max-width: 374px) {
  .barre-piece .pastille { gap: 6px; padding: 9px 11px; font-size: .84rem; }
}
/* Barre de la visite guidée : Pause, Pièce suivante, Vitesse, Arrêter. Sur un téléphone, Pause et Arrêter en icônes. */
.tour .court { display: none; }
@media (max-width: 480px) {
  .tour { gap: 6px; }
  .tour .long { display: none; }
  .tour .court { display: inline; }
  .tour .pastille { padding: 9px 13px; }
}
@media (max-width: 359px) { .tour .tres-long { display: none; } }
