/* ---------- Base & tokens ---------- */
:root {
  --ink: #1c2a2e;
  --ink-soft: #4b5b60;
  --muted: #7c8a8f;
  --line: #e4e7e6;
  --paper: #fdfdfb;
  --paper-alt: #f4f5f2;
  --accent: #2f6b6d;
  --accent-dark: #1f4c4e;
  --max-w: 1120px;
  --radius: 10px;
  font-size: 16px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
}

h1, h2, h3, h4 { font-weight: 600; line-height: 1.2; margin: 0 0 .5em; }
p { margin: 0 0 1em; color: var(--ink-soft); }
a { color: var(--accent-dark); }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.eyebrow {
  display: inline-block;
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: .6rem;
}

section { padding: 5rem 0; }
section:not(.hero):nth-of-type(odd) { background: var(--paper-alt); }

.section-head {
  max-width: 640px;
  margin: 0 auto 2.5rem;
  text-align: center;
}
.section-head h2 { font-size: 1.9rem; }
.section-head p { margin: 0; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(253, 253, 251, .85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand { display: flex; align-items: baseline; gap: .6rem; }
.brand-name { font-weight: 700; font-size: 1.05rem; letter-spacing: .01em; }
.brand-model { font-size: .78rem; color: var(--muted); display: none; }
@media (min-width: 640px) { .brand-model { display: inline; } }

.header-actions {
  display: flex;
  align-items: center;
  gap: .7rem;
}

.price-badge {
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: .85rem;
  padding: .35rem .75rem;
  border-radius: 999px;
  white-space: nowrap;
}

nav.main-nav {
  display: none;
  gap: 1.5rem;
}
nav.main-nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: .92rem;
  font-weight: 500;
}
nav.main-nav a:hover { color: var(--accent-dark); }
@media (min-width: 860px) { nav.main-nav { display: flex; } }

.nav-toggle {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 8px;
  padding: .4rem .6rem;
  cursor: pointer;
  font-size: 1rem;
}
@media (min-width: 860px) { .nav-toggle { display: none; } }

.mobile-nav {
  display: none;
  flex-direction: column;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  padding: .8rem 1.5rem;
  border-top: 1px solid var(--line);
  text-decoration: none;
  color: var(--ink);
  font-size: .95rem;
}
@media (min-width: 860px) { .mobile-nav { display: none !important; } }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: flex-end;
  background-image: url('pics/exterieur_1.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #fff;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(15,30,32,.15) 0%, rgba(12,24,26,.55) 65%, rgba(10,20,22,.82) 100%);
}
.hero-inner {
  position: relative;
  width: 100%;
  padding: 3rem 1.5rem 2.5rem;
}
.hero-inner .container { padding: 0; max-width: var(--max-w); margin: 0 auto; }
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  margin-bottom: .3rem;
  color: #fff;
}
.hero .subtitle {
  font-size: 1.05rem;
  color: rgba(255,255,255,.85);
  margin-bottom: 1.6rem;
}
.spec-bar {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem 1.4rem;
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid rgba(255,255,255,.25);
  padding-top: 1.2rem;
}
.spec-bar li {
  font-size: .88rem;
  color: rgba(255,255,255,.92);
}
.spec-bar strong {
  display: block;
  font-size: 1.05rem;
  font-weight: 700;
}

/* ---------- Intro / highlights ---------- */
.intro-text {
  max-width: 700px;
  margin: 0 auto 3rem;
  text-align: center;
}

.highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.highlight-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem 1.3rem;
  font-size: .92rem;
  font-weight: 500;
  color: var(--ink);
}
.highlight-card span {
  display: block;
  font-size: .74rem;
  color: var(--muted);
  font-weight: 400;
  margin-top: .3rem;
}

/* ---------- Plan ---------- */
.plan-figure { text-align: center; }
.plan-figure-interior { margin-bottom: 3rem; }
.plan-figure img {
  max-width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #fff;
}
.plan-figure figcaption {
  margin-top: .9rem;
  font-size: .88rem;
  color: var(--muted);
}

/* ---------- Galleries ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: .8rem;
}
.gallery.featured-first .g-item:first-child {
  grid-column: span 2;
  grid-row: span 2;
}
@media (max-width: 640px) {
  .gallery.featured-first .g-item:first-child { grid-column: span 1; grid-row: span 1; }
}

.g-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  cursor: zoom-in;
  background: var(--paper-alt);
  border: 1px solid var(--line);
}
.g-item img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  transition: transform .35s ease;
}
.gallery.featured-first .g-item:first-child img { aspect-ratio: 4/3; }
.g-item:hover img { transform: scale(1.05); }
.g-item .cap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  background: linear-gradient(0deg, rgba(10,20,22,.75), transparent);
  color: #fff;
  font-size: .78rem;
  padding: .6rem .7rem .5rem;
  opacity: 0;
  transition: opacity .25s ease;
}
.g-item.has-cap .cap { opacity: 1; }

.note {
  margin-top: 1.5rem;
  font-size: .88rem;
  color: var(--muted);
  font-style: italic;
  text-align: center;
}

/* ---------- Interior sub-nav ---------- */
.subnav {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  justify-content: center;
  margin-bottom: 2.8rem;
}
.subnav a {
  text-decoration: none;
  font-size: .84rem;
  font-weight: 600;
  color: var(--ink-soft);
  background: #fff;
  border: 1px solid var(--line);
  padding: .45rem 1rem;
  border-radius: 999px;
}
.subnav a:hover { border-color: var(--accent); color: var(--accent-dark); }

.zone {
  margin-bottom: 3.6rem;
  scroll-margin-top: 80px;
}
.zone:last-child { margin-bottom: 0; }
.zone-head {
  display: flex;
  align-items: baseline;
  gap: .7rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.zone-head h3 { font-size: 1.25rem; margin: 0; }
.zone-head p { margin: 0; font-size: .88rem; color: var(--muted); }

/* ---------- Inventory accordion ---------- */
.inventory-list { max-width: 800px; margin: 0 auto; }
details.inv-cat {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: .7rem;
  padding: 0;
  overflow: hidden;
}
details.inv-cat summary {
  cursor: pointer;
  list-style: none;
  padding: 1rem 1.3rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
details.inv-cat summary::-webkit-details-marker { display: none; }
details.inv-cat summary::after {
  content: "+";
  color: var(--accent);
  font-size: 1.3rem;
  font-weight: 400;
}
details.inv-cat[open] summary::after { content: "\2212"; }
details.inv-cat .inv-body {
  padding: 0 1.3rem 1.3rem;
}
details.inv-cat ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--ink-soft);
  font-size: .92rem;
}
details.inv-cat li { margin-bottom: .4rem; }
details.inv-cat p.lead {
  font-size: .92rem;
  color: var(--ink-soft);
}

/* ---------- Footer / CTA ---------- */
footer.cta {
  background: var(--accent-dark);
  color: #fff;
  text-align: center;
  padding: 4.5rem 1.5rem;
}
footer.cta h2 { color: #fff; font-size: 1.7rem; }
footer.cta .eyebrow-footer { color: #cfe3e2; }
footer.cta .price { font-size: 2.2rem; font-weight: 700; margin: .4rem 0 1.6rem; }
footer.cta .price small { display: block; font-size: .95rem; font-weight: 400; opacity: .75; }
footer.cta .foot-note-urgent { margin-top: -1rem; margin-bottom: 1.8rem; }
.btn-cta {
  display: inline-block;
  background: #fff;
  color: var(--accent-dark);
  font-weight: 700;
  text-decoration: none;
  padding: .9rem 2rem;
  border-radius: 999px;
  font-size: 1rem;
}
.btn-cta:hover { background: #eef4f3; }
.foot-note {
  margin-top: 2rem;
  font-size: .8rem;
  color: rgba(255,255,255,.6);
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(8, 16, 18, .94);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  flex-direction: column;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 90vw;
  max-height: 78vh;
  object-fit: contain;
  border-radius: 4px;
}
.lightbox .lb-cap {
  color: #fff;
  font-size: .9rem;
  margin-top: 1rem;
  opacity: .85;
}
.lb-close, .lb-prev, .lb-next {
  position: absolute;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.25);
  color: #fff;
  border-radius: 50%;
  width: 42px; height: 42px;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.lb-close:hover, .lb-prev:hover, .lb-next:hover { background: rgba(255,255,255,.2); }
.lb-close { top: 1.2rem; right: 1.2rem; }
.lb-prev { left: 1.2rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: 1.2rem; top: 50%; transform: translateY(-50%); }
@media (max-width: 640px) {
  .lb-prev, .lb-next { width: 36px; height: 36px; font-size: 1rem; }
}
