/* ============================================================
   PROJET — page détail
   ============================================================ */

/* ---------- Nav active ---------- */
.nav-active { color: var(--or) !important; }
.nav-active::after { width: 100% !important; }

/* ============================================================
   HERO GALERIE
   ============================================================ */
.projet-hero {
  position: relative;
  height: 100svh;
  min-height: 560px;
  overflow: hidden;
  background: var(--noir);
}

/* Slides */
.hero-slides {
  position: absolute; inset: 0;
  display: flex;
}
.hero-slide {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity 0.9s cubic-bezier(0.22, 0.7, 0.16, 1);
}
.hero-slide.active { opacity: 1; }
.hero-slide image-slot {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
}
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(to right, rgba(8,8,8,0.72) 0%, rgba(8,8,8,0.18) 60%),
    linear-gradient(to top, rgba(8,8,8,0.60) 0%, transparent 40%);
  pointer-events: none;
}

/* Contenu hero */
.hero-content {
  position: absolute;
  z-index: 2;
  bottom: 0; left: 0; right: 0;
  padding: 0 var(--pad-x) clamp(48px, 7vh, 80px);
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
}
.hero-info { max-width: 680px; }
.hero-status {
  display: inline-block;
  font-size: 0.6rem; letter-spacing: 0.26em; text-transform: uppercase;
  padding: 0.5em 1.1em;
  border: 1px solid var(--line-gold);
  color: var(--or-soft);
  margin-bottom: 20px;
}
.hero-status.reserve { color: var(--on-dark-soft); border-color: var(--line-dark); }
.hero-status.en-cours { color: var(--creme); border-color: var(--line-dark); }
.projet-hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.2rem, 5vw, 4.4rem);
  line-height: 1.06;
  letter-spacing: 0.04em;
  color: var(--creme);
  margin: 0 0 18px;
}
.hero-loc {
  font-size: 0.72rem; letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--or);
}

/* Miniatures */
.hero-thumbs {
  display: flex; flex-direction: column; gap: 8px;
  flex: none;
}
.hero-thumb {
  width: 68px; height: 52px;
  overflow: hidden; cursor: pointer; position: relative;
  border: 1px solid transparent;
  transition: border-color 0.3s var(--ease);
  flex: none;
}
.hero-thumb image-slot { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-thumb.active { border-color: var(--or); }
.hero-thumb::after {
  content: "";
  position: absolute; inset: 0;
  background: rgba(8,8,8,0.45);
  transition: opacity 0.3s var(--ease);
}
.hero-thumb.active::after { opacity: 0; }

/* Compteur slides */
.hero-counter {
  position: absolute; top: clamp(80px, 12vh, 110px); right: var(--pad-x);
  z-index: 2;
  font-size: 0.62rem; letter-spacing: 0.2em;
  color: var(--on-dark-soft);
  display: flex; align-items: center; gap: 10px;
}
.hero-counter-current { color: var(--or); font-size: 1.1rem; font-family: var(--serif); }

/* Bouton retour */
.back-link {
  position: absolute; top: clamp(80px, 12vh, 110px); left: var(--pad-x);
  z-index: 2;
  font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--on-dark-soft);
  transition: color 0.3s var(--ease);
}
.back-link:hover { color: var(--or); }

/* ============================================================
   BANDE PRIX / SPECS
   ============================================================ */
.specs-band {
  background: var(--anthracite);
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
}
.specs-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: var(--pad-x);
  display: flex;
  align-items: stretch;
  flex-wrap: wrap;
}
.spec-item {
  flex: 1 1 160px;
  padding: clamp(18px, 2.6vh, 28px) clamp(20px, 2.4vw, 36px);
  position: relative;
  text-align: center;
}
.spec-item + .spec-item::before {
  content: "";
  position: absolute; left: 0; top: 20%; bottom: 20%;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--line-gold) 40%, var(--line-gold) 60%, transparent);
}
.spec-label {
  font-size: 0.58rem; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--on-dark-faint);
  display: block; margin-bottom: 8px;
}
.spec-value {
  font-family: var(--serif);
  font-size: clamp(1.1rem, 1.8vw, 1.55rem);
  color: var(--creme);
  letter-spacing: 0.06em;
  display: block;
}
.spec-value.gold { color: var(--or-soft); }

/* ============================================================
   LAYOUT PRINCIPAL
   ============================================================ */
.projet-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: clamp(48px, 6vw, 96px);
  max-width: var(--container);
  margin: 0 auto;
  padding: clamp(56px, 8vh, 96px) var(--pad-x);
  align-items: start;
  background: var(--creme);
  color: var(--ink);
}

/* ---------- Corps ---------- */
.projet-body { min-width: 0; }

.projet-body h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.6rem, 2.6vw, 2.4rem);
  letter-spacing: 0.08em;
  color: var(--ink);
  margin: 0 0 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line-light);
}
.projet-body p {
  font-size: 1rem; line-height: 1.95;
  color: var(--ink-soft); margin: 0 0 1.4em;
}

/* Prestations */
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 2em 0 2.8em;
}
.feature {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 16px 18px;
  background: #fff;
  border: 1px solid var(--line-light);
}
.feature-icon {
  width: 20px; height: 20px;
  color: var(--or-deep); flex: none; margin-top: 1px;
}
.feature-icon svg { width: 100%; height: 100%; }
.feature-text { font-size: 0.88rem; line-height: 1.5; color: var(--ink-soft); }
.feature-text strong { display: block; color: var(--ink); font-weight: 400; margin-bottom: 2px; font-size: 0.92rem; }

/* ============================================================
   GALERIE PHOTOS
   ============================================================ */
.photo-gallery {
  margin: 2.8em 0;
}
.photo-gallery h2 { margin-bottom: 20px; }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 8px;
}
.gallery-item {
  position: relative;
  overflow: hidden;
  cursor: zoom-in;
}
.gallery-item image-slot {
  display: block;
  width: 100%; height: 100%;
  position: absolute; inset: 0;
  transition: transform 0.6s var(--ease);
}
.gallery-item:hover image-slot { transform: scale(1.04); }
.gallery-item:nth-child(1) {
  grid-column: span 2;
  aspect-ratio: 16 / 9;
}
.gallery-item:nth-child(2) { aspect-ratio: 3 / 4; }
.gallery-item:nth-child(3) { aspect-ratio: 4 / 3; }
.gallery-item:nth-child(4) { aspect-ratio: 4 / 3; }
.gallery-item:nth-child(5) { aspect-ratio: 4 / 3; }
.gallery-count {
  position: absolute; bottom: 10px; right: 12px; z-index: 2;
  font-size: 0.6rem; letter-spacing: 0.18em;
  color: var(--creme); background: rgba(8,8,8,0.6);
  padding: 0.4em 0.8em; backdrop-filter: blur(4px);
}

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 999;
  background: rgba(7,7,7,0.96);
  display: none; place-items: center;
  padding: 24px;
}
.lightbox.open { display: grid; }
.lightbox-img {
  max-width: 92vw; max-height: 88vh;
  object-fit: contain;
}
.lightbox-close {
  position: absolute; top: 20px; right: 24px;
  background: none; border: none; color: var(--on-dark-soft);
  font-size: 1.6rem; cursor: pointer; line-height: 1;
  transition: color 0.3s var(--ease);
}
.lightbox-close:hover { color: var(--or); }
.lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: none; border: 1px solid var(--line-dark);
  color: var(--on-dark-soft); width: 44px; height: 44px;
  font-size: 1.1rem; cursor: pointer;
  transition: all 0.3s var(--ease);
}
.lightbox-nav:hover { border-color: var(--or); color: var(--or); }
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

/* ============================================================
   CARTE
   ============================================================ */
.map-section { margin: 2.8em 0 0; }
.map-section h2 { margin-bottom: 6px; }
.map-note {
  font-size: 0.78rem; color: var(--ink-soft); margin: 0 0 18px;
  font-style: italic;
}
.map-wrap {
  position: relative;
  height: 380px;
  border: 1px solid var(--line-light);
  overflow: hidden;
}
#projet-map { width: 100%; height: 100%; }

/* Surcharge Leaflet pour le style luxe */
.leaflet-container { font-family: var(--sans); background: var(--creme-3); }
.leaflet-tile { filter: grayscale(0.18) contrast(1.04); }
.leaflet-control-zoom a {
  font-family: var(--serif) !important;
  border-color: var(--line-light) !important;
  color: var(--ink) !important;
}

/* ============================================================
   SIDEBAR
   ============================================================ */
.projet-sidebar {
  position: sticky;
  top: clamp(80px, 12vh, 110px);
  display: flex; flex-direction: column; gap: 16px;
}

.sidebar-price-card {
  background: var(--ink);
  color: var(--creme);
  padding: clamp(28px, 3vw, 40px);
}
.sidebar-price-card .eyebrow { margin-bottom: 12px; }
.price-display {
  font-family: var(--serif);
  font-size: clamp(1.7rem, 2.4vw, 2.4rem);
  letter-spacing: 0.04em;
  color: var(--or-soft);
  line-height: 1;
  margin: 0 0 6px;
}
.price-note { font-size: 0.76rem; color: var(--on-dark-faint); margin: 0 0 28px; }
.sidebar-price-card .btn {
  width: 100%; justify-content: center;
  border-color: var(--or); color: var(--or);
  margin-bottom: 10px;
}
.sidebar-price-card .btn::before { background: var(--or); }
.sidebar-price-card .btn:hover { color: var(--noir); }
.sidebar-price-card .btn.outline-light {
  border-color: var(--line-dark); color: var(--on-dark-soft);
  margin-bottom: 0;
}
.sidebar-price-card .btn.outline-light::before { background: var(--line-dark); }
.sidebar-price-card .btn.outline-light:hover { color: var(--creme); }

.sidebar-specs {
  background: #fff;
  border: 1px solid var(--line-light);
  padding: clamp(22px, 2.6vw, 32px);
}
.sidebar-specs h4 {
  font-size: 0.62rem; letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--or-deep); margin: 0 0 18px; font-weight: 400;
}
.sidebar-spec-list { list-style: none; margin: 0; padding: 0; }
.sidebar-spec-list li {
  display: flex; justify-content: space-between;
  padding: 11px 0; border-top: 1px solid var(--line-light);
  font-size: 0.88rem;
}
.sidebar-spec-list li:first-child { border-top: none; }
.sidebar-spec-list .sl-label { color: var(--ink-soft); }
.sidebar-spec-list .sl-value { color: var(--ink); font-weight: 400; text-align: right; }

.sidebar-agent {
  background: var(--creme-2);
  border: 1px solid var(--line-light);
  padding: clamp(22px, 2.6vw, 32px);
  display: flex; gap: 16px; align-items: center;
}
.agent-avatar {
  width: 52px; height: 52px; border-radius: 50%;
  overflow: hidden; position: relative; flex: none;
}
.agent-avatar image-slot { position: absolute; inset: 0; width: 100%; height: 100%; }
.agent-name { font-family: var(--serif); font-size: 1.05rem; color: var(--ink); margin: 0 0 3px; }
.agent-role { font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--or-deep); margin: 0 0 8px; }
.agent-phone { font-size: 0.82rem; color: var(--ink-soft); }
.agent-phone a { color: var(--ink); }

/* ============================================================
   PROJETS SIMILAIRES
   ============================================================ */
.similar-section {
  background: var(--noir);
  padding-block: clamp(72px, 10vh, 110px);
}
.similar-section .section-head { text-align: center; margin-bottom: clamp(48px, 6vh, 72px); }
.similar-section .section-head .eyebrow { margin-bottom: 16px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1040px) {
  .projet-layout { grid-template-columns: 1fr; }
  .projet-sidebar { position: static; }
  .hero-thumbs { flex-direction: row; position: absolute; bottom: 80px; right: var(--pad-x); }
}
@media (max-width: 760px) {
  .specs-inner { flex-wrap: wrap; }
  .spec-item { flex: 1 1 140px; }
  .spec-item + .spec-item::before { display: none; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .gallery-item:nth-child(1) { grid-column: span 2; }
  .features-grid { grid-template-columns: 1fr; }
  .hero-thumbs { display: none; }
}
