:root {
  --bg: #F6F7F4;
  --surface: #FFFFFF;
  --ink: #1B201C;
  --muted: #535C55;
  --line: #D9DED8;
  --spruce: #23402F;
  --spruce-ink: #FFFFFF;
  --spruce-soft: #E6EEE8;
  --amber: #B35A1F;
  --amber-ink: #FFFFFF;
  --font-display: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.05;
  margin: 0;
  text-wrap: balance;
}

h2 { font-size: clamp(30px, 4.5vw, 40px); }
h3 { font-size: 24px; margin-bottom: 12px; color: var(--spruce); }

p { margin: 0; text-wrap: pretty; }
a { color: var(--spruce); }
img { max-width: 100%; }

:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }

.wrap { max-width: 1120px; margin: 0 auto; padding-inline: 16px; }

.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.tnum { font-variant-numeric: tabular-nums; }

/* ---------- Bandeau d'annonce ---------- */
.docnote { background: var(--spruce-soft); border-bottom: 1px solid var(--line); }
.docnote .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 20px;
  padding-block: 14px;
}
.docnote p { font-size: 15px; font-weight: 500; }
.docnote-link {
  display: inline-block;
  background: var(--spruce);
  color: var(--spruce-ink);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  padding: 10px 16px;
  min-height: 44px;
  line-height: 24px;
}
.docnote-link:hover { filter: brightness(1.1); }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--spruce); color: var(--spruce-ink); }
.hero > img {
  display: block;
  width: 100%;
  height: clamp(300px, 54vw, 600px);
  object-fit: cover;
  object-position: center 60%;
}
.hero-band .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  padding-block: 28px 30px;
}
.hero h1 { font-size: clamp(40px, 7vw, 72px); }
.hero .place { margin-top: 10px; color: #DCE6DF; font-size: 16px; }
.hero .highlight {
  display: inline-block;
  margin-top: 14px;
  background: var(--amber);
  color: var(--amber-ink);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(20px, 2.6vw, 26px);
  letter-spacing: 0.02em;
  line-height: 1.3;
  padding: 6px 14px;
}
.price { text-align: right; }
.price .eyebrow { color: #DCE6DF; }
.price strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 60px);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.tag {
  position: absolute;
  top: 20px;
  left: 16px;
  background: var(--amber);
  color: var(--amber-ink);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 0.14em;
  line-height: 1.3;
  padding: 6px 14px;
}

/* ---------- Rangée de trois atouts ---------- */
.openhouse { background: var(--surface); border-bottom: 1px solid var(--line); }
.openhouse .wrap { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.step {
  padding: 22px 20px;
  border-left: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.step:first-child { border-left: 0; padding-left: 0; }
.step .when { font-family: var(--font-display); font-size: 26px; font-weight: 700; line-height: 1.1; }
.step p { color: var(--muted); font-size: 15px; }

/* ---------- Sections ---------- */
section.block { padding-block: 56px; }
section.block + section.block { border-top: 1px solid var(--line); }
.head { display: flex; flex-direction: column; gap: 8px; margin-bottom: 26px; }
.intro { font-size: 18px; max-width: 66ch; }
.intro + .intro { margin-top: 12px; }

/* ---------- Chiffres clés ---------- */
.facts {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: 28px;
}
.fact { background: var(--surface); padding: 18px; display: flex; flex-direction: column; gap: 2px; }
.fact b {
  font-family: var(--font-display);
  font-size: 30px;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.fact span { color: var(--muted); font-size: 14px; }
.fact-key { background: var(--spruce); }
.fact-key b, .fact-key span { color: var(--spruce-ink); }

/* ---------- Galerie ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  grid-auto-flow: dense;
}
.gallery button {
  all: unset;
  cursor: zoom-in;
  display: block;
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--spruce-soft);
}
.gallery button[hidden] { display: none; }
.gallery button:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }
.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}
.gallery button:hover img { transform: scale(1.04); }
.gallery .wide { grid-column: span 2; grid-row: span 2; aspect-ratio: 4 / 3; }
.gallery .wide img { position: absolute; inset: 0; }
.gallery figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 18px 10px 7px;
  font-size: 13px;
  line-height: 1.4;
  color: #fff;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.65));
}
.gallery-more { margin-top: 18px; display: flex; justify-content: center; }

/* ---------- Visionneuse ---------- */
dialog.lightbox {
  border: 0;
  padding: 0;
  background: #0D110E;
  color: #fff;
  max-width: min(96vw, 1400px);
  width: 100%;
}
dialog.lightbox::backdrop { background: rgba(0, 0, 0, 0.82); }
.lb-img {
  display: block;
  width: 100%;
  max-height: 80vh;
  object-fit: contain;
  background: #0D110E;
}
.lb-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; }
.lb-bar p { font-size: 15px; min-width: 0; }
.lb-btns { display: flex; gap: 8px; flex-shrink: 0; }
.lb-btns button {
  min-width: 44px;
  min-height: 44px;
  border: 1px solid #3A443D;
  background: #1A201C;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
}
.lb-btns button:hover { background: #242B26; }

/* ---------- Colonnes / listes ---------- */
.cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; }
.cols > * { min-width: 0; }
.cols-side, .feature-lists { display: flex; flex-direction: column; gap: 32px; }

.list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.list li {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 14px;
  padding: 11px 0;
  border-top: 1px solid var(--line);
}
.list li:last-child { border-bottom: 1px solid var(--line); }
.list strong { font-weight: 600; }

.costs { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.costs td { padding: 11px 0; border-top: 1px solid var(--line); }
.costs tr:last-child td { border-bottom: 1px solid var(--line); }
.costs td:last-child { text-align: right; white-space: nowrap; padding-left: 16px; }

.callout { background: var(--spruce-soft); padding: 18px 20px; display: flex; flex-direction: column; gap: 6px; }
.callout p { color: var(--muted); font-size: 15px; }

/* ---------- Duo photo + texte ---------- */
.feature {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 40px;
  align-items: start;
}
.feature > * { min-width: 0; }
.feature figure { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.feature figure img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.feature figure img:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 10; }

/* ---------- Bouton ---------- */
.btn {
  display: inline-block;
  text-decoration: none;
  appearance: none;
  border: 0;
  background: var(--spruce);
  color: var(--spruce-ink);
  font: 600 15px/1 var(--font-body);
  padding: 14px 16px;
  min-height: 44px;
  cursor: pointer;
  text-align: center;
}
.btn:hover { filter: brightness(1.1); }

/* ---------- Emplacement ---------- */
.map-wrap {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}
.map-wrap > * { min-width: 0; }
.map-frame {
  width: 100%;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--line);
  background: var(--spruce-soft);
  display: block;
}
.map-side { display: flex; flex-direction: column; gap: 14px; }
.map-side .list li { grid-template-columns: 110px minmax(0, 1fr); }

/* ---------- Contact ---------- */
.contact { background: var(--spruce); color: var(--spruce-ink); }
.contact .wrap {
  padding-block: 48px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}
.contact p { color: #DCE6DF; margin-top: 8px; max-width: 52ch; }
.mail .addr {
  display: inline-block;
  color: #fff;
  font-size: 19px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.1);
  padding: 10px 14px;
  text-decoration: none;
}
.mail .addr:hover { background: rgba(255, 255, 255, 0.18); }

footer.fine { padding-block: 22px; font-size: 13px; color: var(--muted); }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fact-key { grid-column: 1 / -1; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cols, .feature, .map-wrap { grid-template-columns: minmax(0, 1fr); }
  .openhouse .wrap { grid-template-columns: minmax(0, 1fr); }
  .step, .step:first-child {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding: 16px 0;
  }
  .step:first-child { border-top: 0; }
  .price { text-align: left; }
}

@media (max-width: 480px) {
  .list li { grid-template-columns: minmax(0, 1fr); gap: 2px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .gallery img { transition: none; }
}
