/* Site de l'agence (accueil et annonces), direction « Plein cadre » : photo d'abord, texte gris très foncé,
   une seule couleur d'action. Variables et composants communs avec les visites dans tokens.css. */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink-2);
  font: 400 16px/1.65 var(--font);
  letter-spacing: 0.005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.no-scroll { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font-family: inherit; }
[hidden] { display: none !important; }
[id] { scroll-margin-top: 96px; }
h1, h2, h3, p { margin: 0; }
.wrap { max-width: calc(1320px + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.muted { color: var(--muted); }
.tnum { font-variant-numeric: tabular-nums; }
:focus-visible { outline: 2px solid var(--action); outline-offset: 3px; }
.on-dark :focus-visible, .hero :focus-visible, .a-hero :focus-visible { outline-color: #fff; }

/* Apparition du contenu et au défilement */
#page { min-height: 100vh; }
#page > * { animation: page-in 0.6s var(--ease) both; }
@keyframes page-in { from { opacity: 0; } }
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Bandeau et en-tête ---------- */
.demo-bar {
  height: 30px; display: flex; align-items: center; justify-content: center;
  padding: 0 16px; background: #fff; border-bottom: 1px solid var(--line);
  color: var(--muted); font-size: 11.5px; letter-spacing: 0.02em; white-space: nowrap; overflow: hidden;
}
.demo-short { display: none; }

.site-header {
  position: sticky; top: 0; z-index: 40; height: 76px;
  background: #fff; color: var(--ink); box-shadow: 0 1px 0 var(--line);
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
body.has-hero .site-header { margin-bottom: -76px; }
body.has-hero .site-header:not(.solid) { background: transparent; color: #fff; box-shadow: none; }
.header-row {
  height: 100%; padding: 0 var(--gutter);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
}
.nav { display: flex; gap: clamp(20px, 3vw, 40px); }
.nav-right { justify-content: flex-end; }
.nav a {
  position: relative; padding: 14px 0; text-decoration: none;
  font-size: 12px; font-weight: 500; font-stretch: 75%; letter-spacing: 0.17em; text-transform: uppercase;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0.17em; bottom: 2px; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: left; transition: transform 0.45s var(--ease);
}
.nav a:hover::after { transform: scaleX(1); }
.wordmark { display: grid; justify-items: center; text-decoration: none; line-height: 1; }
.wm-name { font-size: 21px; font-weight: 500; letter-spacing: 0.46em; margin-right: -0.46em; text-transform: uppercase; }
.wm-sub { margin: 7px -0.3em 0 0; font-size: 11px; font-weight: 500; font-stretch: 75%; letter-spacing: 0.3em; text-transform: uppercase; opacity: 0.85; }

/* ---------- Boutons et liens ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; padding: 0 28px; width: 100%;
  border: 1px solid var(--action); border-radius: 2px; background: var(--action); color: #fff;
  font: 500 14px/1 var(--font); letter-spacing: 0.03em; text-decoration: none; cursor: pointer;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.btn:hover { background: var(--action-hover); border-color: var(--action-hover); }
.btn-line { background: transparent; color: var(--action); border-color: var(--line-2); }
.btn-line:hover { background: var(--soft); border-color: var(--action); color: var(--action); }
.btn-light { background: #fff; color: var(--ink); border-color: #fff; width: auto; height: 46px; padding: 0 22px; }
.btn-light:hover { background: var(--soft); border-color: var(--soft); }
.link-arrow {
  display: inline-flex; align-items: center; gap: 12px; padding: 8px 0;
  font-size: 12px; font-weight: 500; font-stretch: 75%; letter-spacing: 0.17em; text-transform: uppercase; text-decoration: none;
  border-bottom: 1px solid currentColor;
}
.link-arrow svg { transition: transform 0.45s var(--ease); }
.link-arrow:hover svg { transform: translateX(5px); }

/* ---------- Accueil : photo plein cadre ---------- */
.hero {
  position: relative; height: calc(100svh - 30px); min-height: 560px; max-height: 1100px;
  overflow: hidden; background: #2a2c30; color: #fff;
}
.hero-media { position: absolute; inset: 0; margin: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; animation: hero-zoom 3.2s var(--ease) both; }
@keyframes hero-zoom { from { transform: scale(1.07); } }
.hero::before, .a-hero::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(to top, rgba(14, 16, 20, 0.76) 0%, rgba(14, 16, 20, 0.42) 32%, rgba(14, 16, 20, 0) 60%),
    linear-gradient(to bottom, rgba(14, 16, 20, 0.58) 0%, rgba(14, 16, 20, 0.22) 13%, rgba(14, 16, 20, 0) 26%);
}
.hero-text { position: absolute; z-index: 2; left: var(--gutter); right: var(--gutter); bottom: clamp(48px, 8vh, 88px); max-width: 980px; }
.hero-text > * { animation: rise 1s var(--ease) both; }
.hero-text > :nth-child(1) { animation-delay: 0.25s; }
.hero-text > :nth-child(2) { animation-delay: 0.4s; }
.hero-text > :nth-child(3) { animation-delay: 0.55s; }
.hero-text > :nth-child(4) { animation-delay: 0.7s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
.hero .eyebrow { color: #fff; }
.hero-text, .a-hero-text { text-shadow: 0 1px 14px rgba(0, 0, 0, 0.35); }
.hero .eyebrow, .a-hero .eyebrow, .hero-summary, .a-hero-price span { text-shadow: 0 0 3px rgba(0, 0, 0, 0.55), 0 1px 12px rgba(0, 0, 0, 0.45); }
.hero-title { margin: 18px 0 0; font-size: clamp(34px, 5vw, 72px); line-height: 1.04; font-weight: 400; letter-spacing: -0.025em; max-width: 12em; }
.hero-title a { text-decoration: none; }
.hero-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 28px; margin-top: 26px; }
.hero-price { font-size: clamp(22px, 2.2vw, 30px); font-weight: 400; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.hero-summary { font-size: 14.5px; color: #fff; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px 36px; margin-top: 34px; }
.hero-credit {
  position: absolute; z-index: 2; right: var(--gutter); bottom: 22px; max-width: 46ch; text-align: right;
  font-size: 11px; color: #fff; text-decoration: none; line-height: 1.4; padding: 10px 0; text-shadow: 0 0 3px rgba(0, 0, 0, 0.7), 0 1px 10px rgba(0, 0, 0, 0.55);
}
.hero-credit:hover { color: #fff; }

/* ---------- Accueil : sélection ---------- */
.selection { padding-top: clamp(64px, 7vw, 104px); padding-bottom: clamp(64px, 7vw, 104px); }
.sec-head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 32px var(--gutter); align-items: end; }
.sec-title { margin-top: 20px; font-size: clamp(30px, 3.6vw, 52px); line-height: 1.08; font-weight: 400; letter-spacing: -0.025em; color: var(--ink); text-wrap: balance; max-width: 20ch; }
.sec-lead { font-size: 16px; color: var(--muted); max-width: 44ch; }

.filters {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)) auto; gap: 16px 28px; align-items: end;
  margin-top: clamp(44px, 5vw, 72px); padding-bottom: 22px; border-bottom: 1px solid var(--line);
}
.filters label { display: grid; gap: 6px; }
.filters .eyebrow { font-size: 11px; }
.filters select {
  appearance: none; -webkit-appearance: none; width: 100%; height: 40px; padding: 0 26px 0 0;
  border: 0; border-bottom: 1px solid var(--line-2); border-radius: 0; background: transparent;
  font: 400 15px var(--font); color: var(--ink); cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 4.5 6 8l3.5-3.5' fill='none' stroke='%2325282d' stroke-width='1.2'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 0 center; background-size: 12px;
  transition: border-color 0.3s var(--ease);
}
.filters select:hover, .filters select:focus-visible { border-bottom-color: var(--action); outline: 0; }
.count { font-size: 13px; color: var(--muted); white-space: nowrap; padding-bottom: 10px; font-variant-numeric: tabular-nums; }

.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(20px, 2.4vw, 32px); row-gap: clamp(48px, 5vw, 80px); margin-top: clamp(40px, 5vw, 64px); }
.card { display: block; text-decoration: none; color: inherit; min-width: 0; }
.card-photo { position: relative; overflow: hidden; background: var(--soft); aspect-ratio: 4 / 3; }
.card-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.card:hover .card-photo img { transform: scale(1.035); }
.card-body { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 24px; padding-top: 22px; align-items: start; }
.card-title { margin-top: 10px; font-size: clamp(21px, 1.9vw, 27px); line-height: 1.18; font-weight: 400; letter-spacing: -0.015em; color: var(--ink); }
.card-title span { background: linear-gradient(currentColor, currentColor) left 100% / 0 1px no-repeat; transition: background-size 0.6s var(--ease); padding-bottom: 2px; }
.card:hover .card-title span { background-size: 100% 1px; }
.card-place { margin-top: 4px; font-size: 14.5px; color: var(--muted); }
.card-side { text-align: right; }
.card-price { font-size: clamp(20px, 1.7vw, 24px); font-weight: 400; color: var(--ink); letter-spacing: -0.005em; white-space: nowrap; font-variant-numeric: tabular-nums; padding-top: 6px; }
.card-visit { display: inline-flex; align-items: center; gap: 7px; margin-top: 8px; font-size: 12.5px; color: var(--muted); }
.card-ref { grid-column: 1 / -1; font-size: 12px; color: var(--muted); letter-spacing: 0.02em; margin-top: 4px; }

/* Rythme éditorial : une grande carte, deux cartes décalées, deux cartes inversées */
.c0 { grid-column: 1 / -1; }
.c0 .card-photo { aspect-ratio: 2.3 / 1; }
.c1 { grid-column: 1 / span 7; align-self: end; }
.c2 { grid-column: 9 / span 4; align-self: start; }
.c2 .card-photo { aspect-ratio: 4 / 5; }
.c3 { grid-column: 1 / span 4; align-self: start; }
.c3 .card-photo { aspect-ratio: 4 / 5; }
.c4 { grid-column: 6 / span 7; align-self: end; }
.c2 .card-body, .c3 .card-body { grid-template-columns: 1fr; }
.c2 .card-side, .c3 .card-side { text-align: left; }
.c2 .card-price, .c3 .card-price { padding-top: 0; }
.c1 .card-photo, .c4 .card-photo { aspect-ratio: 3 / 2; }
.grid-empty { grid-column: 1 / -1; color: var(--muted); padding: 40px 0; }

/* ---------- Accueil : la visite à distance ---------- */
.band { margin: 0; position: relative; overflow: hidden; height: clamp(320px, 56vh, 620px); background: var(--soft); }
.band img { position: absolute; left: 0; top: -12%; width: 100%; height: 124%; object-fit: cover; will-change: transform; }
.band figcaption { position: absolute; left: var(--gutter); bottom: 20px; font-size: 11.5px; color: rgba(255, 255, 255, 0.85); text-shadow: 0 0 8px rgba(0, 0, 0, 0.35); }
.how { padding-top: clamp(72px, 9vw, 120px); padding-bottom: clamp(72px, 9vw, 120px); }
.how-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px var(--gutter); }
.how-grid h2 { margin-top: 20px; font-size: clamp(28px, 3.2vw, 44px); line-height: 1.1; font-weight: 400; letter-spacing: -0.025em; color: var(--ink); text-wrap: balance; }
.how-list { border-top: 1px solid var(--line-2); }
.how-item { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 8px 16px; padding: 30px 0; border-bottom: 1px solid var(--line); }
.how-item .n { font-size: 13px; color: var(--faint); font-variant-numeric: tabular-nums; padding-top: 4px; }
.how-item h3 { font-size: 20px; font-weight: 400; letter-spacing: -0.01em; color: var(--ink); }
.how-item p { grid-column: 2; margin-top: 8px; max-width: 54ch; color: var(--muted); }

/* ---------- Annonce : visite 360° en tête ---------- */
.a-hero {
  position: relative; overflow: hidden; background: #2a2c30; color: #fff;
  aspect-ratio: 2 / 1; max-height: calc(100svh - 30px); width: 100%;
}
.a-hero .psv, .a-hero-fallback { position: absolute; inset: 0; width: 100%; height: 100%; }
.a-hero-fallback { object-fit: cover; transition: opacity 1s var(--ease); }
.a-hero.ready .a-hero-fallback { opacity: 0; pointer-events: none; }
.a-hero .psv { z-index: 0; touch-action: pan-y; }
.a-hero .psv .psv-container, .a-hero .psv .psv-canvas-container { touch-action: pan-y !important; }
.a-hero::before { z-index: 1; }
.a-hero-text { position: absolute; z-index: 2; left: var(--gutter); bottom: 112px; right: calc(var(--gutter) + 260px); pointer-events: none; }
.a-hero-text a, .a-hero-text button { pointer-events: auto; }
.a-hero-text > * { animation: rise 1s var(--ease) both; }
.a-hero-text > :nth-child(1) { animation-delay: 0.2s; }
.a-hero-text > :nth-child(2) { animation-delay: 0.35s; }
.a-hero-text > :nth-child(3) { animation-delay: 0.5s; }
.a-hero .eyebrow { color: rgba(255, 255, 255, 0.9); }
.a-hero h1 { margin-top: 14px; font-size: clamp(28px, 3.5vw, 52px); line-height: 1.06; font-weight: 400; letter-spacing: -0.025em; max-width: 11.5em; }
.a-hero-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 22px; margin-top: 18px; }
.a-hero-price strong { font-size: clamp(20px, 2vw, 28px); font-weight: 400; font-variant-numeric: tabular-nums; }
.a-hero-price span { font-size: 14px; color: #fff; }
/* Pilule des pièces sous le titre, mini-plan et « Plein écran » à droite : mêmes composants que la visite */
.a-hero-bar { position: absolute; z-index: 3; left: var(--gutter); bottom: 32px; right: calc(var(--gutter) + 260px); color: var(--ink); animation: rise 1s var(--ease) 0.6s both; }
.a-hero-bar .dock { max-width: 100%; }
.a-hero-side { position: absolute; z-index: 3; right: var(--gutter); bottom: 32px; display: grid; justify-items: end; gap: 12px; color: var(--ink); animation: rise 1s var(--ease) 0.7s both; }
.a-hero-side .minimap { width: 216px; }
.pill-light {
  display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 22px 0 18px; border-radius: 999px;
  background: #fff; color: var(--ink); box-shadow: var(--shadow); text-decoration: none; font: 500 14px/1 var(--font); letter-spacing: 0.01em;
  transition: background-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.pill-light:hover { background: var(--soft); }
.pill-light:active { transform: scale(0.98); }
.pill-light svg { display: block; }
.a-hero-hint {
  position: absolute; z-index: 2; left: 50%; top: 42%; transform: translate(-50%, -50%); pointer-events: none;
  display: inline-flex; align-items: center; gap: 10px; height: 40px; padding: 0 16px; border-radius: 999px; background: #fff; color: var(--ink); box-shadow: var(--shadow); white-space: nowrap;
  font-size: 11.5px; font-weight: 500; font-stretch: 75%; letter-spacing: 0.15em; text-transform: uppercase;
  opacity: 0; animation: hint 7s var(--ease) 1.8s both;
}
@keyframes hint { 0% { opacity: 0; } 12%, 70% { opacity: 1; } 100% { opacity: 0; } }
.a-hero.touched .a-hero-hint { display: none; }
.a-hero-credit { position: absolute; z-index: 2; right: var(--gutter); top: 92px; padding: 10px 0; font-size: 11px; color: #fff; text-shadow: 0 0 3px rgba(0, 0, 0, 0.7), 0 1px 10px rgba(0, 0, 0, 0.55); text-decoration: none; }
.a-hero-credit:hover { color: #fff; }
.a-hero .psv-container { background: transparent; }

.sample-line { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: baseline; padding: 18px 0; font-size: 13px; color: var(--muted); border-bottom: 1px solid var(--line); }
.sample-line strong { font-weight: 500; font-stretch: 75%; letter-spacing: 0.17em; text-transform: uppercase; font-size: 11.5px; color: var(--ink); }

/* Planche des pièces, collée sous la visite (idée de la piste C) */
.sheet { border-bottom: 1px solid var(--line); }
.sheet-track { display: flex; overflow-x: auto; scrollbar-width: none; padding: 0 var(--gutter); }
.sheet-track::-webkit-scrollbar { display: none; }
.sh { flex: 1 0 128px; max-width: 220px; padding: 14px 14px 12px 0; border: 0; background: none; text-align: left; cursor: pointer; font: inherit; color: var(--muted); }
.sh img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; background: var(--soft); opacity: 0.8; transition: opacity 0.4s var(--ease); }
.sh:hover img, .sh.active img { opacity: 1; }
.sh span { display: flex; gap: 8px; margin-top: 9px; padding-bottom: 6px; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border-bottom: 1px solid transparent; transition: color 0.3s var(--ease), border-color 0.3s var(--ease); }
.sh span i { font-style: normal; color: var(--faint); font-variant-numeric: tabular-nums; }
.sh:hover span { color: var(--ink); }
.sh.active span { color: var(--ink); border-bottom-color: var(--action); }

/* Mosaïque de photos : une grande et quatre petites (idée de la piste C) */
.mosaic { position: relative; display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: repeat(2, clamp(180px, 17vw, 260px)); gap: 10px; margin-top: clamp(56px, 6vw, 88px); }
.mosaic.n1 { grid-template-columns: 1fr; }
.mosaic.n2 { grid-template-columns: 2fr 1fr; }
.mosaic.n2 .mo1 { grid-row: 1 / 3; }
.mosaic.n3 .mo1, .mosaic.n3 .mo2 { grid-column: span 2; }
.mosaic.n4 .mo3 { grid-column: span 2; }
.mo { position: relative; padding: 0; border: 0; overflow: hidden; background: var(--soft); cursor: zoom-in; }
.mo0 { grid-row: 1 / 3; }
.mo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.mo:hover img { transform: scale(1.035); }
.mo-cap { position: absolute; left: 14px; bottom: 12px; color: #fff; font-size: 12.5px; text-shadow: 0 0 10px rgba(0, 0, 0, 0.7); opacity: 0; transform: translateY(4px); transition: opacity 0.4s var(--ease), transform 0.4s var(--ease); }
.mo:hover .mo-cap, .mo:focus-visible .mo-cap { opacity: 1; transform: none; }
.mo-all {
  position: absolute; right: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px;
  border: 0; border-radius: 2px; background: #fff; color: var(--ink); font: 500 13px var(--font); cursor: pointer; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.14);
}
.mo-all:hover { background: var(--soft); }

/* Chiffres clés */
.keyfacts { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin-top: clamp(40px, 5vw, 72px); border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line); }
.keyfacts.n4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.keyfacts.n3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.kf { padding: 30px 0 32px 28px; border-left: 1px solid var(--line); }
.kf:first-child { border-left: 0; padding-left: 0; }
.kf-v { margin-top: 14px; font-size: clamp(24px, 2.6vw, 38px); line-height: 1.1; font-weight: 400; letter-spacing: -0.025em; color: var(--ink); font-variant-numeric: tabular-nums; }
.kf-v small { font-size: 0.5em; letter-spacing: 0; color: var(--muted); margin-left: 4px; }

/* Contenu et colonne de contact */
.annonce-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 48px clamp(48px, 8vw, 120px); padding-top: clamp(64px, 7vw, 104px); padding-bottom: clamp(56px, 6vw, 96px); }
.annonce-main > section { padding-top: clamp(56px, 6vw, 88px); }
.annonce-main > section:first-child { padding-top: 0; }
.annonce-main h2 { margin-bottom: 26px; }
.a-lead { font-size: clamp(22px, 2.3vw, 31px); line-height: 1.34; font-weight: 400; letter-spacing: -0.02em; color: var(--ink); max-width: 30ch; text-wrap: pretty; }
.a-text p { margin-top: 20px; max-width: 62ch; }
.a-text p:first-child { margin-top: 0; }
.a-text { margin-top: 40px; }
.facts { display: grid; grid-template-columns: 1fr 1fr; column-gap: 48px; margin: 0; border-top: 1px solid var(--line-2); }
.facts div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; min-height: 54px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.facts dd { white-space: nowrap; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; text-align: right; color: var(--ink); }
.features { display: grid; grid-template-columns: 1fr 1fr; column-gap: 48px; margin: 40px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line-2); }
.features li { position: relative; padding: 13px 0 13px 18px; border-bottom: 1px solid var(--line); color: var(--ink); }
.features li::before { content: ""; position: absolute; left: 0; top: 50%; width: 7px; height: 1px; background: var(--ink); }
.fiche { display: grid; grid-template-columns: 1fr 1fr; column-gap: 48px; }
.fiche .facts { grid-template-columns: 1fr; }
.rooms-table { width: 100%; border-collapse: collapse; margin-bottom: 14px; border-top: 1px solid var(--line-2); }
.rooms-table th, .rooms-table td { text-align: left; padding: 15px 0; border-bottom: 1px solid var(--line); font-weight: 400; vertical-align: top; }
.rooms-table td { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--ink); }
.rooms-table .sub { display: block; font-size: 13px; color: var(--muted); }
.rooms-table tfoot th, .rooms-table tfoot td { color: var(--ink); border-bottom: 0; }
.note { font-size: 13px; color: var(--muted); }
.form-error:empty { display: none; }
.form-error { color: var(--ink); }
/* Plan et légende : la légende éclaire la pièce, un clic y conduit la visite intégrée (idées des pistes B et C) */
.plan-sec { padding-bottom: clamp(64px, 7vw, 104px); }
.plan-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 32px; padding-bottom: 22px; border-bottom: 1px solid var(--line-2); }
.plan-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 40px clamp(48px, 8vw, 120px); padding-top: 32px; align-items: start; }
.plan { margin: 0; }
.plan-box { background: #fff; border: 1px solid var(--line); padding: clamp(12px, 2.4vw, 32px); }
.plan-box #plan-host { max-width: 640px; margin: 0 auto; }
.plan-box #plan-host > img { display: block; width: 100%; height: auto; }
.plan-dark .plan-box { background: #1d1f23; border-color: #1d1f23; }
.plan-dark .plan-box #plan-host { max-width: 420px; }
.plan-dark .pm.num { border-color: #fff; background: #1d1f23; color: #fff; }
.plan-dark .pm.num.hl, .plan-dark .pm.num:hover { background: #fff; color: var(--ink); }
.legend { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line-2); }
.legend li { border-bottom: 1px solid var(--line); }
.legend button { width: 100%; display: flex; align-items: center; gap: 16px; padding: 13px 0; border: 0; background: none; text-align: left; font: 400 15.5px var(--font); color: var(--ink-2); cursor: pointer; }
.legend .lg-n { width: 24px; font-size: 12.5px; color: var(--faint); font-variant-numeric: tabular-nums; }
.legend .lg-name { flex: 1; }
.legend svg { opacity: 0; transform: translateX(-6px); transition: opacity 0.35s var(--ease), transform 0.35s var(--ease); }
.legend li:hover button, .legend li.active button { color: var(--ink); }
.legend li:hover svg { opacity: 1; transform: none; }
.legend li.active .lg-n { color: var(--action); }
.legend li.active .lg-name { font-weight: 500; }

.annonce-aside { position: relative; }
.aside-box { position: sticky; top: 100px; padding: 0 0 0 clamp(0px, 1vw, 8px); }
.aside-price { margin-top: 14px; font-size: clamp(32px, 3vw, 44px); line-height: 1.05; font-weight: 400; letter-spacing: -0.03em; color: var(--ink); font-variant-numeric: tabular-nums; }
.aside-sub { margin-top: 10px; font-size: 14px; color: var(--muted); }
.aside-cta { margin-top: 28px; display: grid; gap: 12px; }
.contact { display: grid; gap: 22px; margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--line-2); }
.form-title { font-size: 20px; line-height: 1.2; font-weight: 400; letter-spacing: -0.01em; color: var(--ink); }
.contact label { display: grid; gap: 4px; }
.contact label .eyebrow { font-size: 11px; }
.contact input, .contact textarea {
  width: 100%; padding: 8px 0 10px; border: 0; border-bottom: 1px solid var(--line-2); border-radius: 0; background: transparent;
  font: 400 15.5px/1.5 var(--font); color: var(--ink); resize: vertical; transition: border-color 0.3s var(--ease);
}
.contact input:focus, .contact textarea:focus { outline: 0; border-bottom-color: var(--action); }
.contact-done { margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--line-2); }
.contact-done p { margin-top: 8px; color: var(--muted); }
.mobile-bar { display: none; }

/* Autres biens */
.more { border-top: 1px solid var(--line); padding-top: clamp(64px, 8vw, 104px); padding-bottom: clamp(72px, 9vw, 120px); }
.more-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 40px; gap: 24px; }
.more-title { font-size: clamp(26px, 2.8vw, 38px); line-height: 1.1; font-weight: 400; letter-spacing: -0.025em; color: var(--ink); margin-top: 16px; }
.more-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px clamp(20px, 2.4vw, 32px); }
.more-grid .card-body { grid-template-columns: 1fr; }
.more-grid .card-side { text-align: left; }
.more-grid .card-price { padding-top: 0; }

/* ---------- Visionneuse de photos ---------- */
.lightbox { position: fixed; inset: 0; z-index: 80; background: #131519; color: #fff; display: grid; grid-template-rows: 64px minmax(0, 1fr) 72px; opacity: 0; transition: opacity 0.4s var(--ease); }
.lightbox.open { opacity: 1; }
.lb-top { display: flex; justify-content: space-between; align-items: center; padding: 0 var(--gutter); }
.lb-count { font-size: 12px; font-weight: 500; font-stretch: 75%; letter-spacing: 0.17em; text-transform: uppercase; color: rgba(255,255,255,0.7); font-variant-numeric: tabular-nums; }
.lightbox :focus-visible { outline-color: #fff; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--action); color: #fff; font-size: 14px; text-decoration: none; }
.skip:focus { top: 12px; }
.lb-close { background: none; border: 0; color: #fff; cursor: pointer; display: inline-flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 500; font-stretch: 75%; letter-spacing: 0.17em; text-transform: uppercase; padding: 10px 0; }
.lb-stage { position: relative; display: grid; place-items: center; min-height: 0; padding: 0 clamp(56px, 8vw, 120px); }
.lb-stage img { max-width: 100%; max-height: 100%; object-fit: contain; animation: lb-in 0.5s var(--ease) both; }
@keyframes lb-in { from { opacity: 0; } }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(255,255,255,0.3); background: transparent; color: #fff; cursor: pointer; transition: background-color 0.3s, border-color 0.3s; }
.lb-nav:hover { background: rgba(255,255,255,0.12); border-color: #fff; }
.lb-prev { left: clamp(12px, 2.4vw, 32px); }
.lb-next { right: clamp(12px, 2.4vw, 32px); }
.lb-cap { display: grid; place-items: center; font-size: 14px; color: rgba(255,255,255,0.82); }

.error { padding: 120px var(--gutter); max-width: 720px; }
.error h1 { color: var(--ink); font-weight: 400; font-size: 32px; letter-spacing: -0.02em; }

/* ---------- Pied de page ---------- */
.site-footer { border-top: 1px solid var(--line); padding: clamp(56px, 7vw, 96px) 0 56px; font-size: 14px; color: var(--muted); }
.footer-grid { display: grid; grid-template-columns: 1.1fr 1fr 1.3fr 1.2fr; gap: 40px clamp(24px, 3vw, 48px); }
.footer-grid .eyebrow { margin-bottom: 16px; color: var(--ink); }
.footer-grid p { margin: 0; line-height: 1.7; }
.footer-mark { font-size: 18px; font-weight: 500; letter-spacing: 0.4em; text-transform: uppercase; color: var(--ink); margin-bottom: 18px; }
.credits { margin: 0; padding: 0; list-style: none; }
.credits li { margin-bottom: 0; line-height: 1.5; }
.credits a { display: inline-block; padding: 10px 0; text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 4px; }
.credits a:hover { color: var(--ink); text-decoration-color: var(--ink); }
.footer-end { margin-top: 56px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 12px; color: var(--faint); }

/* ---------- Tablette et téléphone ---------- */
@media (max-width: 1000px) {
  .sec-head, .how-grid { grid-template-columns: 1fr; }
  .filters { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .count { grid-column: 1 / -1; padding: 0; }
  .annonce-grid { grid-template-columns: 1fr; }
  .aside-box { position: static; padding: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .more-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .more-grid > :nth-child(3) { display: none; }
  .keyfacts, .keyfacts.n4, .keyfacts.n5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .kf { border-top: 1px solid var(--line); }
  .kf:nth-child(-n+3) { border-top: 0; }
  .kf:nth-child(3n+1) { border-left: 0; padding-left: 0; }
  .a-hero-text { right: var(--gutter); }
  .a-hero-bar { right: calc(var(--gutter) + 170px); }
  .a-hero-side .minimap { display: none; }
  .plan-grid, .fiche { grid-template-columns: 1fr; }
  .mosaic { grid-template-columns: 2fr 1fr; grid-template-rows: repeat(2, clamp(160px, 24vw, 240px)); }
  .mosaic .mo3, .mosaic .mo4 { display: none; }
}
@media (max-width: 720px) {
  :root { --gutter: 20px; }
  body { font-size: 15.5px; }
  .demo-long { display: none; }
  .demo-short { display: inline; }
  .site-header { height: 64px; }
  body.has-hero .site-header { margin-bottom: -64px; }
  .header-row { grid-template-columns: 1fr auto; }
  .nav-left { display: none; }
  .wordmark { justify-items: start; order: -1; }
  .wm-name { font-size: 17px; letter-spacing: 0.4em; margin-right: 0; }
  .wm-sub { margin-right: 0; font-size: 10px; }
  .nav-right a:not(:first-child) { display: none; }
  .nav a { font-size: 11.5px; }

  .hero { min-height: 520px; }
  .hero-title { font-size: 34px; }
  .hero-text { bottom: 76px; }
  .hero-actions { margin-top: 26px; gap: 14px 28px; }
  .hero-credit { left: var(--gutter); right: auto; text-align: left; bottom: 18px; max-width: none; }

  .filters { grid-template-columns: 1fr 1fr; gap: 14px 20px; }
  .filters label:nth-of-type(5) { grid-column: 1 / -1; }
  .grid { display: flex; flex-direction: column; row-gap: 56px; }
  .c0 .card-photo, .c1 .card-photo, .c4 .card-photo { aspect-ratio: 4 / 3.4; }
  .c2 .card-photo, .c3 .card-photo { aspect-ratio: 4 / 4.6; }
  .c2 .card-body, .c3 .card-body, .card-body { grid-template-columns: minmax(0, 1fr) auto; }
  .c2 .card-side, .c3 .card-side { text-align: right; }
  .c2 .card-price, .c3 .card-price { padding-top: 6px; }
  .card-body { padding-top: 16px; }

  .band { height: 300px; }
  .how-item { grid-template-columns: 40px minmax(0, 1fr); padding: 24px 0; }

  .a-hero { aspect-ratio: auto; height: min(600px, calc(100svh - 120px)); min-height: 500px; max-height: none; }
  .a-hero-text { left: var(--gutter); right: var(--gutter); bottom: 86px; }
  .a-hero h1 { font-size: 28px; }
  .a-hero-price { margin-top: 12px; }
  .a-hero-price span { font-size: 13px; }
  .a-hero-bar { left: 12px; right: 76px; bottom: 14px; }
  .a-hero-bar .dock { width: 100%; height: 56px; padding: 6px; gap: 2px; }
  .a-hero-bar .play { width: 42px; height: 42px; }
  .a-hero-bar .room { height: 42px; }
  .a-hero-side { right: 12px; bottom: 14px; }
  .pill-light { width: 56px; height: 56px; padding: 0; justify-content: center; }
  .pill-light span { display: none; }
  .a-hero-hint { top: 34%; font-size: 11px; gap: 8px; }
  .a-hero-credit { display: none; }
  .sheet { display: none; }
  .mosaic { grid-template-columns: 1fr 1fr; grid-template-rows: 240px 120px; gap: 6px; margin-top: 40px; margin-left: calc(-1 * var(--gutter)); margin-right: calc(-1 * var(--gutter)); }
  .mo0 { grid-row: auto; grid-column: 1 / -1; }
  .mosaic.n2 .mo1 { grid-row: auto; }
  .mo-all { right: 10px; bottom: 10px; }
  .plan-grid { padding-top: 20px; gap: 24px; }

  .keyfacts, .keyfacts.n3, .keyfacts.n4, .keyfacts.n5 { grid-template-columns: 1fr 1fr; }
  .kf, .kf:nth-child(3n+1) { padding: 22px 0 24px 20px; border-left: 1px solid var(--line); border-top: 1px solid var(--line); }
  .kf:nth-child(odd) { border-left: 0; padding-left: 0; }
  .kf:nth-child(-n+2) { border-top: 0; }
  .facts, .features, .fiche { grid-template-columns: 1fr; }
  .more-grid { grid-template-columns: 1fr; }
  .more-grid > :nth-child(3) { display: block; }
  .more-grid > :nth-child(n+3) { display: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }

  .mobile-bar {
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
    position: sticky; bottom: 0; z-index: 30; padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: #fff; border-top: 1px solid var(--line);
  }
  .mobile-bar .btn { height: 48px; padding: 0 10px; font-size: 13.5px; }
  .lightbox { grid-template-rows: 56px minmax(0, 1fr) 64px; }
  .lb-stage { padding: 0 8px; }
  .lb-nav { top: auto; bottom: -62px; transform: none; width: 44px; height: 44px; }
  .lb-prev { left: 12px; }
  .lb-next { right: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-delay: 0s !important; transition-duration: 0.001ms !important; transition-delay: 0s !important; }
  .reveal { opacity: 1; transform: none; }
}
