﻿/* ═══════════════════════════════════════════
   TF URBAN — realisations.css
   Listing réalisations et overrides carte Leaflet
═══════════════════════════════════════════ */

.projet-listing-page {
  padding: 60px var(--px) 80px;
  background: var(--warm)
}

.projet-listing-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 48px;
  align-items: start
}

.projet-listing-main {
  min-width: 0
}

/* ── RÉFÉRENCE FICHE (style éditorial) ── */
.ref-fiche-hero {
  margin-top: -25px;
  position: relative;
  min-height: clamp(420px, 65vh, 720px);
  display: flex;
  align-items: flex-end;
  overflow: hidden
}

.ref-fiche-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover
}

.ref-fiche-hero-ov {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, .72) 0%, rgba(0, 0, 0, .15) 55%, transparent 100%)
}

.ref-fiche-hero-body {
  position: relative;
  z-index: 1;
  padding: 48px var(--px) 56px;
  max-width: 900px;
  color: var(--white)
}

.ref-fiche-breadcrumb {
  font-size: 11px;
  margin-bottom: 20px;
  opacity: .75
}

.ref-fiche-breadcrumb a {
  color: inherit;
  text-decoration: none
}

.ref-fiche-breadcrumb span {
  margin: 0 8px
}

.ref-fiche-hero-label {
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: 10px;
  opacity: .85
}

.ref-fiche-title {
  font-family: var(--bebas);
  font-size: clamp(48px, 8vw, 96px);
  line-height: .92;
  letter-spacing: .03em;
  margin: 0 0 16px
}

.ref-fiche-lead {
  font-size: clamp(16px, 2vw, 20px);
  font-weight: 300;
  line-height: 1.6;
  max-width: 640px;
  margin: 0;
  opacity: .92
}

.ref-fiche-meta-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 28px 40px;
  padding: 24px var(--px);
  background: var(--white);
  border-bottom: 1px solid var(--border)
}

.ref-fiche-meta-key {
  display: block;
  font-size: 9px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--txt2);
  margin-bottom: 4px
}

.ref-fiche-meta-val {
  font-size: 14px;
  font-weight: 500
}

.ref-fiche-content {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 48px;
  padding: 56px var(--px) 72px;
  align-items: start
}

.ref-fiche-aside {
  position: sticky;
  top: calc(var(--nav-sm) + 20px);
  align-self: start;
  max-height: calc(100vh - var(--nav-sm) - 40px);
  overflow-y: auto;
  overflow-x: hidden;
}

.ref-fiche-aside-toolbar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 20px
}

.ref-fiche-text {
  font-size: 16px;
  font-weight: 300;
  line-height: 1.9;
  color: #444;
  margin-top: 12px
}

.ref-fiche-quote {
  margin: 40px 0;
  padding: 28px 32px;
  border-left: 3px solid var(--teal-dark);
  background: var(--warm)
}

.ref-fiche-quote p {
  font-size: 18px;
  font-style: italic;
  line-height: 1.65;
  margin: 0 0 16px
}

.ref-fiche-quote footer {
  font-size: 13px;
  color: var(--txt2)
}

.ref-fiche-quote footer span {
  display: block;
  margin-top: 2px
}

.ref-fiche-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px;
  margin-top: 40px
}

.ref-fiche-photo {
  margin: 0;
  overflow: hidden;
  aspect-ratio: 4/3
}

.ref-fiche-photo--wide {
  grid-column: 1 / -1;
  aspect-ratio: 16/9
}

.ref-fiche-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block
}

.ref-fiche-aside-block {
  margin-bottom: 28px
}

.ref-fiche-aside-title {
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--txt2);
  margin-bottom: 14px
}

.ref-fiche-benefices {
  list-style: none;
  padding: 0;
  margin: 0
}

.ref-fiche-benefices li {
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px
}

.ref-fiche-produits {
  display: flex;
  flex-direction: column;
  gap: 10px
}

.ref-fiche-produit {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  padding: 8px;
  border: 1px solid var(--border);
  transition: border-color .2s
}

.ref-fiche-produit:hover {
  border-color: var(--teal-dark)
}

.ref-fiche-produit img {
  width: 72px;
  height: 54px;
  object-fit: cover;
  flex-shrink: 0
}

.ref-fiche-produit--text {
  padding: 12px 14px
}

.ref-fiche-benefices a {
  color: inherit;
  text-decoration: none
}

.ref-fiche-benefices a:hover {
  color: var(--teal-dark)
}

.ref-fiche-meta-val a {
  color: inherit;
  text-decoration: none
}

.ref-fiche-meta-val a:hover {
  color: var(--teal-dark)
}

.ref-fiche-cta {
  width: 100%;
  text-align: center;
  margin-top: 8px
}

.ref-fiche-nav {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 32px var(--px) 56px;
  border-top: 1px solid var(--border)
}

.ref-fiche-nav-link {
  text-decoration: none;
  color: inherit;
  max-width: 45%
}

.ref-fiche-nav-link--next {
  text-align: right;
  margin-left: auto
}

.ref-fiche-nav-dir {
  display: block;
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--teal-dark);
  margin-bottom: 6px
}

.ref-fiche-nav-title {
  font-family: var(--bebas);
  font-size: 22px;
  letter-spacing: .04em
}

/* ── PROJET FICHE ── */
.projet-fiche {
  padding: 60px var(--px) 80px
}

.projet-fiche-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 48px;
  align-items: start
}

.projet-fiche-contexte {
  font-size: 16px;
  font-weight: 300;
  line-height: 1.85;
  color: #444;
  margin: 16px 0 28px
}

.projet-fiche-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border)
}

.projet-meta-key {
  display: block;
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--txt2);
  margin-bottom: 4px
}

.projet-meta-val {
  font-size: 14px;
  font-weight: 400
}

.projet-fiche-photos {
  display: grid;
  gap: 4px
}

.projet-photo-hero {
  aspect-ratio: 16/10;
  overflow: hidden
}

.projet-photo-hero img,
.projet-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover
}

.projet-photo:not(.projet-photo-hero) {
  aspect-ratio: 16/9;
  overflow: hidden
}

.projet-aside-block {
  background: var(--warm);
  padding: 24px;
  margin-bottom: 16px
}

.projet-aside-title {
  font-family: var(--bebas);
  font-size: 18px;
  letter-spacing: .06em;
  margin-bottom: 14px
}

.projet-benefices {
  list-style: none;
  padding: 0
}

.projet-benefices li {
  font-size: 13px;
  font-weight: 300;
  line-height: 1.65;
  color: #555;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  padding-left: 16px;
  position: relative
}

.projet-benefices li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--teal-dark);
  font-size: 11px
}

.projet-produit-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  font-weight: 500
}

.projet-produit-link img {
  width: 64px;
  height: 48px;
  object-fit: cover
}

.projet-produit-link:hover {
  color: var(--teal-dark)
}

/* ── MAP ── */
.sect-map {
  padding: 0 var(--px) 60px
}

.map-placeholder {
  display: grid;
  grid-template-columns: 1fr 240px;
  gap: 24px;
  align-items: center
}

.map-france {
  position: relative;
  aspect-ratio: 4/3;
  background: var(--warm) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 360'%3E%3Cpath fill='%23e8f6f7' d='M80 40 L320 60 L360 200 L280 320 L120 300 L40 180 Z'/%3E%3C/svg%3E") center/contain no-repeat;
  border: 1px solid var(--border)
}

.map-pin {
  position: absolute;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px
}

.map-pin-dot {
  width: 12px;
  height: 12px;
  background: var(--teal);
  border: 2px solid var(--white);
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .2);
  transition: transform .2s
}

.map-pin:hover .map-pin-dot {
  transform: scale(1.4);
  background: var(--teal-dark)
}

.map-pin-label {
  font-size: 9px;
  letter-spacing: .08em;
  text-transform: uppercase;
  background: var(--white);
  padding: 2px 6px;
  opacity: 0;
  transition: opacity .2s;
  white-space: nowrap
}

.map-pin:hover .map-pin-label {
  opacity: 1
}

/* ── MAP LEAFLET ── */
.map-wrap {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 0;
  border: 1px solid var(--border);
  overflow: hidden
}

.map-leaflet {
  height: 520px;
  min-height: 360px;
  background: var(--warm);
  z-index: 1
}

.map-sidebar {
  background: var(--white);
  padding: 28px 24px;
  border-left: 1px solid var(--border);
  overflow-y: auto;
  max-height: 520px
}

.map-sidebar-text {
  font-size: 13px;
  font-weight: 300;
  color: #555;
  line-height: 1.65;
  margin: 8px 0 20px
}

.map-projet-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px
}

.map-projet-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 8px;
  font-size: 12px;
  font-weight: 300;
  line-height: 1.35;
  border-bottom: 1px solid var(--border);
  transition: background .2s
}

.map-projet-link:hover {
  background: var(--teal-pale)
}

.map-projet-link img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid var(--white);
  box-shadow: 0 2px 8px rgba(0, 0, 0, .12)
}

.leaflet-pin-wrap {
  background: transparent;
  border: none
}

.leaflet-pin {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-decoration: none
}

.leaflet-pin img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--white);
  box-shadow: 0 4px 16px rgba(0, 0, 0, .22);
  transition: transform .2s, box-shadow .2s
}

.leaflet-pin:hover img {
  transform: scale(1.08);
  box-shadow: 0 6px 20px rgba(133, 199, 201, .5);
  border-color: var(--teal)
}

.leaflet-pin-city {
  font-size: 9px;
  letter-spacing: .08em;
  text-transform: uppercase;
  background: var(--white);
  padding: 2px 8px;
  color: var(--black);
  box-shadow: 0 1px 4px rgba(0, 0, 0, .1);
  white-space: nowrap
}

