/* =========================
   HERO PAGE PARCELLE
========================= */
.parcelle-hero {
  position: relative;
  min-height: calc(82vh - clamp(82px, 12vw, 140px));
  display: flex;
  align-items: center;
  padding: clamp(54px, 7vw, 82px) 0;
  color: var(--color-white);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  isolation: isolate;
}
.parcelle-hero-jardin-baie {
  background-image: url("../images/terrains/parcelle-jardin-de-la-baie-01.webp");
}

.parcelle-hero-betahitra {
  background-image: url("../images/terrains/parcelle-de-betahitra-vue-sur-nosy-lonjo.webp");
}
.parcelle-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(8, 28, 23, 0.78) 0%, rgba(8, 28, 23, 0.56) 48%, rgba(8, 28, 23, 0.32) 100%),
    linear-gradient(180deg, rgba(4, 18, 38, 0.14) 0%, rgba(4, 18, 38, 0.26) 100%);
}

.parcelle-hero-content {
  max-width: 820px;
}

.parcelle-hero h1 {
  margin: 0;
  font-size: clamp(2.2rem, 4.6vw, 4.8rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.parcelle-hero-text {
  max-width: 690px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.94);
  font-size: clamp(1rem, 1vw + 0.84rem, 1.1rem);
}

.parcelle-hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.parcelle-badge {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 14px;
  color: var(--color-white);
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.14);
}

/* =========================
   BLOC RÉSUMÉ PARCELLE
========================= */
.parcelle-summary-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 34px;
}

.parcelle-summary-text {
  flex: 1 1 560px;
  min-width: 0;
}

.parcelle-summary-text h2 {
  margin: 0 0 16px;
  color: var(--color-green);
  font-size: clamp(1.8rem, 2vw + 1rem, 2.35rem);
  line-height: 1.15;
}

.parcelle-summary-text p {
  color: var(--color-text-soft);
}

.parcelle-summary-card {
  flex: 0 1 340px;
  padding: 26px;
  background: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
}

.parcelle-summary-card h3 {
  margin: 0 0 14px;
  color: var(--color-green);
}

.feature-list {
  margin: 0;
  padding-left: 20px;
}

.feature-list li + li {
  margin-top: 8px;
}

/* =========================
   GALERIE
========================= */
.gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.gallery-item {
  flex: 0 1 calc((100% - 40px) / 3);
  min-width: 250px;
  margin: 0;
}

.gallery-trigger {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.gallery-trigger img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.gallery-trigger:hover img,
.gallery-trigger:focus-visible img {
  transform: scale(1.02);
  box-shadow: var(--shadow-main);
}

.gallery figcaption {
  margin-top: 8px;
  color: var(--color-text-soft);
  font-size: 0.92rem;
  text-align: center;
}
/* =========================
   LIGHTBOX GALERIE
========================= */

.gallery-lightbox[hidden] {
  display: none;
}

.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
}

.gallery-lightbox-dialog {
  position: relative;
  z-index: 1;
  width: min(1100px, calc(100% - 40px));
  max-height: calc(100vh - 40px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-lightbox-figure {
  margin: 0;
  width: 100%;
  max-height: calc(100vh - 80px);
  background: var(--color-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.38);
}

.gallery-lightbox-figure img {
  width: 100%;
  max-height: calc(100vh - 80px);
  object-fit: contain;
  display: block;
}

.gallery-lightbox-close,
.gallery-lightbox-nav {
  position: absolute;
  z-index: 2;
  border: none;
  cursor: pointer;
  color: var(--color-white);
  background: rgba(0, 0, 0, 0.55);
  transition: background 0.25s ease, transform 0.25s ease;
}

.gallery-lightbox-close:hover,
.gallery-lightbox-close:focus-visible,
.gallery-lightbox-nav:hover,
.gallery-lightbox-nav:focus-visible {
  background: rgba(0, 0, 0, 0.78);
}

.gallery-lightbox-close {
  top: -18px;
  right: -18px;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-pill);
  font-size: 1.7rem;
  line-height: 1;
}

.gallery-lightbox-nav {
  top: 50%;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-pill);
  font-size: 1.9rem;
  line-height: 1;
  transform: translateY(-50%);
}

.gallery-lightbox-prev {
  left: -24px;
}

.gallery-lightbox-next {
  right: -24px;
}

body.gallery-open {
  overflow: hidden;
}
/* =========================
   LOTS + PLAN
========================= */
.parcelle-lots-section {
  padding: 70px 0;
  color: var(--color-white);
  background: linear-gradient(135deg, var(--color-green), var(--color-sky));
}

.section-header-light h2,
.section-header-light p,
.section-header-light .section-kicker {
  color: var(--color-white);
}

.parcelle-lots-layout {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 30px;
}

.parcelle-table-wrap {
  flex: 0 1 360px;
  min-width: 280px;
}

.parcelle-plan {
  flex: 1 1 560px;
  min-width: 280px;
  margin: 0;
}

.parcelle-table-wrap,
.parcelle-plan {
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(4px);
}

.parcelle-lots-table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  color: var(--color-text-strong);
  background: var(--color-white);
  border-radius: var(--radius-md);
}

.parcelle-lots-table th,
.parcelle-lots-table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.95rem;
}

.parcelle-lots-table th {
  color: var(--color-white);
  background: var(--color-green);
}

.parcelle-lots-table tbody tr:nth-child(even) {
  background: #f7fbf7;
}

.parcelle-lots-table tbody tr:last-child td {
  border-bottom: 0;
}

.parcelle-plan img {
  width: 100%;
  border-radius: var(--radius-md);
  background: var(--color-white);
}

.parcelle-plan figcaption {
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.92rem;
  text-align: center;
}

