/* ===========================================================
   RÉFÉRENCE IMMO — Page projet (complément éditorial)
   =========================================================== */

/* ---------- HERO PROJET ---------- */
.projet-hero {
  position: relative;
  min-height: 86vh;
  display: flex;
  align-items: flex-end;
  color: var(--white);
  padding: 160px 0 80px;
  overflow: hidden;
}
.projet-hero__media { position: absolute; inset: 0; z-index: 0; }
.projet-hero__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  animation: heroZoom 20s ease-out forwards;
}
.projet-hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0,0,0,.40) 0%,
    rgba(0,0,0,.20) 45%,
    rgba(0,0,0,.65) 100%
  );
}
.projet-hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
}
.projet-hero__status {
  position: absolute;
  z-index: 2;
  top: 110px;
  right: 24px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: var(--radius-pill);
  background: rgba(245,158,11,.95);
  backdrop-filter: blur(6px);
  color: #1a1a1a;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.projet-hero__status::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #1a1a1a;
}
.projet-hero__crumb {
  font-family: var(--sans);
  font-size: 13px;
  color: rgba(255,255,255,.7);
  margin-bottom: 36px;
}
.projet-hero__crumb a { transition: color var(--t-fast); }
.projet-hero__crumb a:hover { color: var(--white); }
.projet-hero__crumb span { margin: 0 10px; opacity: .5; }
.projet-hero__loc {
  font-family: var(--sans);
  font-size: 14px;
  letter-spacing: .02em;
  margin: 0 0 16px;
  opacity: .85;
}
.projet-hero__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(56px, 9vw, 128px);
  line-height: .95;
  letter-spacing: -.025em;
  margin: 0 0 28px;
}
.projet-hero__lead {
  font-family: var(--sans);
  font-size: clamp(17px, 1.4vw, 21px);
  line-height: 1.55;
  max-width: 580px;
  margin: 0;
  opacity: .92;
}

/* ---------- BANDE FACTS ---------- */
.projet-facts {
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  padding: 40px 0;
}
.projet-facts__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.projet-facts__grid > div {
  text-align: center;
}
.projet-facts__grid > div + div {
  border-left: 1px solid var(--line);
}
.projet-facts__grid strong {
  display: block;
  font-family: var(--serif);
  font-size: clamp(28px, 3.2vw, 40px);
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 6px;
  line-height: 1;
}
.projet-facts__grid span {
  font-family: var(--sans);
  font-size: 13px;
  color: var(--muted);
}

/* ---------- INTRO ---------- */
.projet-intro {
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
}
.projet-intro .eyebrow::before { display: none; }
.projet-intro .eyebrow { margin-left: 0; }
.projet-intro .title-display { margin: 0 auto 32px; max-width: 14ch; }
.projet-intro .title-display em { color: var(--ink-soft); font-weight: 400; }
.projet-intro__lead { margin: 0 auto; max-width: 600px; }

/* ---------- DESCRIPTION (3 colonnes) ---------- */
.projet-desc {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}
.projet-desc__col h3 {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 500;
  margin: 0 0 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.projet-desc__col p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 0;
}

/* ---------- PRESTATIONS ---------- */
.prestations {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.prestation {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  transition: transform var(--t-base);
}
.prestation:hover { transform: translateY(-4px); }
.prestation h3 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  margin: 0 0 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.prestation ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.prestation li {
  padding: 6px 0 6px 16px;
  font-family: var(--sans);
  font-size: 14px;
  color: var(--ink-soft);
  position: relative;
}
.prestation li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--muted);
}

/* ---------- HERO MONTAGE (Al Madinah) ---------- */
.projet-hero--montage .projet-hero__overlay {
  background: linear-gradient(
    180deg,
    rgba(0,0,0,.55) 0%,
    rgba(0,0,0,.40) 35%,
    rgba(0,0,0,.78) 100%
  );
}

/* ---------- MONTAGE SPLIT ---------- */
.montage-split {
  position: relative;
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #000;
}
.montage-split img {
  width: 100%;
  height: auto;
  display: block;
}
.montage-split figcaption {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.montage-split__label {
  position: absolute;
  bottom: 28px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: var(--radius-pill);
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(6px);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink);
}
.montage-split__label::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--ink);
}
.montage-split__label--left  { left: 28px; }
.montage-split__label--right { right: 28px; }
.montage-split__label--right::before { background: #f59e0b; }

/* ---------- MONTAGE TRIPTYQUE ---------- */
.montage-tripty {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.montage-tripty img {
  width: 100%;
  height: auto;
  display: block;
}

/* ---------- CHANTIER ---------- */
.section--chantier {
  background: var(--bg-cream);
}
.chantier-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 16px;
  margin-bottom: 80px;
}
.chantier__item {
  position: relative;
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-alt);
  aspect-ratio: 4/3;
}
.chantier__item--lg {
  grid-row: 1 / 3;
  aspect-ratio: auto;
}
.chantier__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow);
}
.chantier__item:hover img { transform: scale(1.04); }
.chantier__item figcaption {
  position: absolute;
  left: 16px; bottom: 14px;
  padding: 8px 14px;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-pill);
  font-family: var(--sans);
  font-size: 12px;
  color: var(--ink);
  font-weight: 500;
  letter-spacing: .02em;
}

.chantier-videos {
  border-top: 1px solid var(--line);
  padding-top: 60px;
}
.chantier-videos__title {
  font-family: var(--serif);
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 500;
  margin: 0 0 32px;
}
.chantier-videos__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.chantier-videos__grid video {
  width: 100%;
  aspect-ratio: 9/16;
  object-fit: cover;
  border-radius: var(--radius-lg);
  background: #000;
  display: block;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1024px) {
  .projet-desc { grid-template-columns: 1fr; gap: 32px; }
  .prestations { grid-template-columns: 1fr 1fr; }
  .chantier-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }
  .chantier__item--lg { grid-row: auto; }
  .chantier-videos__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .projet-hero { min-height: 72vh; padding-top: 130px; padding-bottom: 60px; }
  .projet-facts__grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .projet-facts__grid > div + div { border-left: 0; }
  .projet-facts__grid > div:nth-child(n+3) {
    border-top: 1px solid var(--line);
    padding-top: 20px;
  }
  .prestations { grid-template-columns: 1fr; }
  .chantier-videos__grid { grid-template-columns: 1fr; }
  .chantier-videos__grid video { aspect-ratio: 16/9; }
}
