/* ═══════════════════════════════════════════════════════════
   GOSSET — Page Réalisations (carte interactive + fiches)
   ═══════════════════════════════════════════════════════════ */

/* ── Intro + chiffres ──────────────────────────────────────── */
.real-intro { background: var(--navy); color: #fff; padding: clamp(120px, 15vw, 176px) 0 clamp(48px, 6vw, 72px); overflow: hidden; /* rogne le gros cœur qui déborde */ }
.real-intro-inner { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); display: grid; grid-template-columns: 1.35fr .65fr; gap: clamp(40px, 5vw, 72px); align-items: center; }
/* Visuel de marque (desktop) : le cœur en très grand, dans un bleu plus foncé que la charte.
   Il habille le vide sans capter l'œil, et déborde volontairement (rogné par la section). */
.real-hero-visual { position: relative; display: flex; align-items: center; justify-content: center; align-self: stretch; min-height: 340px; }
.real-hero-visual .rhv-coeur {
  width: 175%; max-width: none; flex-shrink: 0;
  color: #011E2A;   /* navy assombri : visible, mais discret sur le fond #02364B */
}
.real-intro .kicker { color: var(--ciel); }
.real-intro .kicker::before { background: var(--ciel); }
.real-intro h1 { color: #fff; font-size: clamp(38px, 5vw, 64px); max-width: 16ch; margin-bottom: 20px; }
.real-intro h1 em { font-style: normal; color: var(--ciel); }
.real-intro-lead { color: rgba(255,255,255,.74); font-size: clamp(17px, 1.4vw, 19px); max-width: 56ch; line-height: 1.7; margin-bottom: 44px; }
.real-stats { display: flex; flex-wrap: wrap; gap: 44px; border-top: 1px solid rgba(255,255,255,.15); padding-top: 32px; }
.real-stat b { font-family: var(--serif); font-size: clamp(34px, 4vw, 48px); color: var(--ciel); display: block; line-height: 1; }
.real-stat span { font-size: 14px; color: rgba(255,255,255,.6); display: block; margin-top: 8px; max-width: 22ch; }

/* ── Carte interactive ─────────────────────────────────────── */
.map-section { background: var(--beige); padding: clamp(56px, 7vw, 90px) 0; }
.map-head { max-width: var(--wrap); margin: 0 auto clamp(28px, 4vw, 40px); padding: 0 var(--gut); display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.map-head h2 { font-size: clamp(26px, 3vw, 40px); max-width: 18ch; }
.map-hint { font-size: 14.5px; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.map-hint svg { color: var(--pourpre); }
.map-wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
#map { height: clamp(440px, 62vh, 640px); border-radius: 8px; overflow: hidden; border: 1px solid var(--sand); background: var(--ciel-bg); z-index: 1; }
.leaflet-container { font-family: var(--sans); background: #eef2f0; }

/* Marqueur cœur Gosset */
.gosset-pin { color: var(--navy); filter: drop-shadow(0 3px 5px rgba(2,54,75,.35)); transition: transform .15s ease; cursor: pointer; }
.gosset-pin:hover { transform: scale(1.18); }
.gosset-pin.encours { color: var(--pourpre); }
.leaflet-marker-icon .gosset-pin svg { display: block; }

/* ── Fiche projet (tiroir) ─────────────────────────────────── */
.fiche-overlay { position: fixed; inset: 0; background: rgba(2,54,75,.4); opacity: 0; visibility: hidden; transition: opacity .3s ease; z-index: 900; }
.fiche-overlay.open { opacity: 1; visibility: visible; }
.fiche { position: fixed; top: 0; right: 0; height: 100%; width: min(520px, 100%); background: var(--cream); z-index: 901;
  transform: translateX(100%); transition: transform .35s cubic-bezier(.4,0,.2,1); overflow-y: auto; box-shadow: -20px 0 60px rgba(2,54,75,.18); }
.fiche.open { transform: none; }
.fiche-close { position: sticky; top: 0; margin-left: auto; display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; background: var(--cream); border: 0; cursor: pointer; color: var(--navy); font-size: 24px; z-index: 2; }
.fiche-body { padding: 0 clamp(24px, 4vw, 38px) 44px; margin-top: -44px; }
.fiche-tag { font-size: 12.5px; color: var(--terre); letter-spacing: .04em; }
.fiche-tag.encours { color: var(--pourpre); }
.fiche h3 { font-family: var(--sans); font-size: 30px; font-weight: 500; color: var(--ink); margin: 6px 0 20px; }
.fiche-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 12px; margin-bottom: 24px; }
.fiche-meta div { border-top: 1px solid var(--line); padding-top: 10px; }
.fiche-meta dt { font-size: 12px; color: var(--muted); margin-bottom: 3px; }
.fiche-meta dd { font-family: var(--sans); font-weight: 500; color: var(--navy); font-size: 15.5px; }
.fiche-desc { font-size: 15.5px; color: var(--text); line-height: 1.7; margin: 6px 0 24px; }
.fiche-cta { display: inline-flex; }

/* ── Slider Avant / Après ──────────────────────────────────── */
.ba { position: relative; width: 100%; aspect-ratio: 3/2; overflow: hidden; border-radius: 6px; margin-bottom: 20px; touch-action: none; user-select: none; background: var(--beige-mid); }
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.ba-after { clip-path: inset(0 0 0 var(--pos, 50%)); }
.ba-divider { position: absolute; top: 0; bottom: 0; left: var(--pos, 50%); width: 2px; background: #fff; box-shadow: 0 0 0 1px rgba(2,54,75,.15); }
.ba-knob { position: absolute; top: 50%; left: var(--pos, 50%); transform: translate(-50%,-50%); width: 40px; height: 40px; border-radius: 50%;
  background: #fff; box-shadow: 0 3px 10px rgba(2,54,75,.3); display: flex; align-items: center; justify-content: center; cursor: ew-resize; color: var(--navy); }
.ba-lab { position: absolute; bottom: 12px; font-size: 11px; font-weight: 500; letter-spacing: .08em; color: #fff; background: rgba(2,54,75,.7); padding: 4px 10px; border-radius: 3px; }
.ba-lab.av { left: 12px; } .ba-lab.ap { right: 12px; }

/* ── 3 derniers projets ────────────────────────────────────── */
.latest { background: var(--cream); padding: clamp(64px, 8vw, 100px) 0; }
/* Savoir-faire précède directement ce bloc, sur le même fond crème : sans cela les deux
   marges s'additionnent (110 + 100) et creusent un vide que rien ne vient justifier. */
.savoirfaire:has(+ .latest) { padding-bottom: clamp(48px, 5vw, 72px); }
.savoirfaire + .latest { padding-top: 0; }
.latest-inner { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.latest h2 { font-size: clamp(26px, 3vw, 40px); margin-bottom: 40px; }
.latest-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.latest-item { display: flex; flex-direction: column; align-items: flex-start; }
/* Lien direct vers la fiche détaillée (le clic sur la carte ouvre l'aperçu en tiroir) */
.lc-full { display: inline-flex; align-items: center; gap: 7px; margin-top: 10px; font-size: 14px; font-weight: 500; color: var(--ciel); }
.lc-full:hover { color: #fff; }
.lc-full svg { transition: transform .2s ease; }
.lc-full:hover svg { transform: translateX(3px); }
.latest-card { cursor: pointer; text-align: left; background: none; border: 0; padding: 0; font: inherit; }
.latest-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 6px; margin-bottom: 14px; transition: transform .5s ease; }
.latest-card:hover img { transform: scale(1.03); }
.latest-card .lc-loc { font-size: 13px; color: var(--terre); }
.latest-card .lc-name { font-family: var(--sans); font-weight: 500; font-size: 19px; color: var(--navy); margin-top: 2px; }

/* ── Témoignages ───────────────────────────────────────────── */
.temoins { background: var(--navy); color: #fff; padding: clamp(72px, 9vw, 118px) 0; }
.temoins-inner { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.temoins .kicker { color: var(--ciel); } .temoins .kicker::before { background: var(--ciel); }
.temoins h2 { color: #fff; font-size: clamp(26px, 3vw, 40px); max-width: 20ch; margin-bottom: 46px; }
.temoins-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.temoin { border-top: 2px solid var(--ciel); padding-top: 20px; }
.temoin blockquote { font-family: var(--serif); font-size: 20px; color: #fff; line-height: 1.45; margin-bottom: 18px; }
.temoin cite { font-style: normal; font-size: 14px; color: rgba(255,255,255,.6); }
.temoin cite b { color: var(--ciel); font-weight: 500; display: block; }
.temoins-more { text-align: center; margin-top: 40px; }
.temoins-more .arrow-link { color: var(--ciel); }
.temoins-more .arrow-link:hover { color: #fff; }

/* ── CTA ───────────────────────────────────────────────────── */
.real-cta { background: var(--beige); text-align: center; padding: clamp(72px,9vw,110px) var(--gut); }
.real-cta .kicker { justify-content: center; color: var(--terre); }
.real-cta h2 { font-size: clamp(30px, 4vw, 48px); max-width: 18ch; margin: 0 auto 18px; }
.real-cta p { color: var(--muted); font-size: 18px; max-width: 46ch; margin: 0 auto 34px; line-height: 1.7; }

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 900px) {
  .latest-grid { grid-template-columns: 1fr 1fr; }
  .temoins-grid { grid-template-columns: 1fr; gap: 32px; }
}
/* Visuel de marque du hero : desktop uniquement */
@media (max-width: 900px) {
  .real-intro-inner { grid-template-columns: 1fr; }
  .real-hero-visual { display: none; }
}
@media (max-width: 620px) {
  .latest-grid { grid-template-columns: 1fr; }
  .real-stats { gap: 28px; }
}
/* Mobile : espaces verticaux resserrés */
@media (max-width: 700px) {
  .real-intro { padding-top: 96px; padding-bottom: 40px; }
  .real-stats { gap: 20px 32px; padding-top: 24px; }
  .map-section, .latest, .temoins, .real-cta { padding-top: 50px; padding-bottom: 50px; }
  .map-head { margin-bottom: 20px; }
  .latest h2, .temoins h2 { margin-bottom: 26px; }
  #map { height: 56vh; }
}
