:root {
  color-scheme: light;
  --bg:        #f8f5f0;
  --surface:   #ffffff;
  --ink:       #2b2622;
  --ink-soft:  #6d6259;
  --line:      #e6ddd0;
  --accent:    #b0563a;
  --accent-bg: #f6eae4;
  --radius:    14px;
  --shadow:    0 1px 2px rgba(43,38,34,.05), 0 8px 24px rgba(43,38,34,.06);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

sup { font-size: .68em; line-height: 0; }

.wrap {
  width: 100%;
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 56px 24px; border-top: 1px solid var(--line); }
.section:first-of-type { border-top: 0; }

h2 {
  font-size: 1.05rem;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 650;
  margin: 0 0 28px;
}

h3 {
  font-size: 1.02rem;
  margin: 0 0 18px;
  letter-spacing: .01em;
}

/* ---------- Hero ---------- */

.hero {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  padding: 64px 0 56px;
}

.eyebrow {
  margin: 0 0 18px;
  font-size: .82rem;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 600;
}

.hero h1 {
  margin: 0 0 20px;
  font-size: clamp(2rem, 5.2vw, 3.1rem);
  line-height: 1.12;
  letter-spacing: -.02em;
  font-weight: 700;
  max-width: 16ch;
}

.lede {
  margin: 0 0 32px;
  font-size: 1.12rem;
  color: var(--ink-soft);
  max-width: 58ch;
}

.price {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  margin: 0;
  padding: 14px 22px;
  background: var(--accent-bg);
  border-radius: var(--radius);
}
.price strong { font-size: 1.7rem; letter-spacing: -.02em; color: var(--accent); }
.price span   { font-size: .95rem; color: var(--ink-soft); }

/* ---------- Galerie ---------- */

.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.shot { margin: 0; }
.shot--cover,
.shot--wide { grid-column: 1 / -1; }

.shot a {
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow);
  cursor: zoom-in;
  outline-offset: 3px;
}

.shot img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform .45s ease;
}
.shot--cover img,
.shot--wide img { aspect-ratio: 16 / 9; }
.shot--tall img { aspect-ratio: 3 / 4; }

.shot a:hover img,
.shot a:focus-visible img { transform: scale(1.03); }

.shot figcaption {
  margin-top: 10px;
  font-size: .9rem;
  color: var(--ink-soft);
}

/* ---------- En bref ---------- */

.facts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.facts li {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.fact-v { font-size: 1.28rem; font-weight: 660; letter-spacing: -.015em; }
.fact-k { font-size: .84rem; color: var(--ink-soft); line-height: 1.4; }

/* ---------- Descriptif ---------- */

.prose { max-width: 66ch; }
.prose p { margin: 0 0 18px; }
.prose p:last-child { margin-bottom: 0; }

.rooms {
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
}
.rooms li {
  position: relative;
  padding: 10px 0 10px 24px;
  border-bottom: 1px solid var(--line);
}
.rooms li:last-child { border-bottom: 0; }
.rooms li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 1.15em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}
.rooms strong { font-weight: 620; }

/* ---------- Conditions ---------- */

.cols {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  align-items: start;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
}

.card-note { margin: -8px 0 20px; font-size: .88rem; color: var(--ink-soft); }

.money {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 22px;
}
.money th,
.money td {
  padding: 10px 0;
  text-align: left;
  font-weight: 400;
  border-bottom: 1px solid var(--line);
}
.money td { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.money .total th { font-weight: 640; }
.money .total td { font-weight: 680; font-size: 1.15rem; color: var(--accent); }
.money .total th, .money .total td { border-bottom: 0; }

.terms { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 8px 20px; }
.terms dt { color: var(--ink-soft); font-size: .92rem; }
.terms dd { margin: 0; text-align: right; font-size: .95rem; }

.dpe + .dpe { margin-top: 22px; }
.dpe-label { margin: 0 0 8px; font-size: .86rem; color: var(--ink-soft); }

.scale {
  list-style: none;
  display: flex;
  gap: 4px;
  margin: 0;
  padding: 0;
}
.scale li {
  flex: 1;
  text-align: center;
  padding: 8px 0;
  border-radius: 7px;
  background: var(--bg);
  border: 1px solid var(--line);
  font-size: .82rem;
  font-weight: 620;
  color: var(--ink-soft);
}
.scale .on {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  transform: scale(1.12);
}

/* ---------- Quartier / contact ---------- */

.address {
  font-size: 1.15rem;
  font-weight: 620;
  letter-spacing: -.01em;
  margin: 0 0 14px;
}

.link-out {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.contact-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px 32px;
  box-shadow: var(--shadow);
  max-width: 68ch;
}
.contact-card h2 { margin-bottom: 18px; }
.contact-card p { margin: 0 0 16px; }

.contact-actions { margin: 24px 0 20px; }

.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  padding: 13px 26px;
  border-radius: 10px;
  font-weight: 600;
  transition: background .18s ease;
}
.btn:hover { background: #96482f; }

.contact-alt { font-size: .93rem; color: var(--ink-soft); margin-bottom: 0; }

footer {
  padding: 36px 24px 56px;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: .86rem;
}
footer p { margin: 0; }

/* ---------- Lightbox ---------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(20, 17, 14, .975);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 56px 24px;
}
.lightbox[hidden] { display: none; }

.lb-figure {
  margin: 0;
  max-width: 100%;
  max-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.lb-img {
  max-width: 100%;
  max-height: calc(100vh - 150px);
  width: auto;
  height: auto;
  border-radius: 8px;
  object-fit: contain;
}

.lb-figure figcaption {
  display: flex;
  align-items: baseline;
  gap: 12px;
  color: rgba(255, 255, 255, .82);
  font-size: .92rem;
}
.lb-count { color: rgba(255, 255, 255, .5); font-variant-numeric: tabular-nums; }

.lb-close,
.lb-nav {
  position: absolute;
  background: rgba(255, 255, 255, .1);
  border: 0;
  color: #fff;
  cursor: pointer;
  border-radius: 50%;
  line-height: 1;
  transition: background .18s ease;
}
.lb-close:hover,
.lb-nav:hover { background: rgba(255, 255, 255, .22); }

.lb-close {
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  font-size: 1.7rem;
}

.lb-nav {
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  font-size: 2rem;
  padding-bottom: 4px;
}
.lb-prev { left: 16px; }
.lb-next { right: 16px; }

body.lb-open { overflow: hidden; }

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .facts { grid-template-columns: repeat(2, 1fr); }
  .cols  { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .wrap { padding: 0 18px; }
  .section { padding: 44px 18px; }
  .hero { padding: 46px 0 44px; }
  .gallery { grid-template-columns: 1fr; gap: 24px; }
  .shot--cover img,
  .shot--wide img { aspect-ratio: 4 / 3; }
  .shot--tall img { aspect-ratio: 3 / 4; }
  .contact-card { padding: 28px 22px; }
  .lightbox { padding: 64px 12px; }
  .lb-nav { width: 44px; height: 44px; font-size: 1.7rem; }
  .lb-prev { left: 8px; }
  .lb-next { right: 8px; }
  .terms { grid-template-columns: 1fr; gap: 2px 0; }
  .terms dd { text-align: left; margin-bottom: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
