

.property-detail {
  padding: var(--sp-8) 0;
}

.key-features {
  list-style: none;
  margin: 0 0 var(--sp-6);
  padding: 0 0 var(--sp-6);
  border-bottom: var(--border-thin) solid var(--c-border);
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-5) var(--sp-6);
}

.key-features .feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-2);
  min-width: 72px;
  text-align: center;
  font-size: var(--fs-xs);
  color: var(--c-text-secondary);
  line-height: var(--lh-tight);
}
.key-features .feature strong {
  color: var(--c-text);
  font-weight: var(--fw-semibold);
  font-size: var(--fs-sm);
}

.key-features .feature i,
.key-features .feature img {
  font-size: 30px;
  line-height: 1;
  color: var(--c-brand);
}
.key-features .feature img {
  width: 30px;
  height: 30px;
}

/* - Points forts : max 6, cartes compactes icône + libellé - */
.strengths-grid {
  list-style: none;
  margin: 0 0 var(--sp-8);
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-3);
}
@media (min-width: 520px) {
  .strengths-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 800px) {
  .strengths-grid { grid-template-columns: repeat(6, 1fr); gap: var(--sp-4); }
}
.strength {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  text-align: center;
  min-height: 96px;
  padding: var(--sp-4) var(--sp-2);
  background: #fff;
  border: var(--border-thin) solid var(--c-border);
  border-radius: var(--r-md);
  box-shadow: 0 1px 2px rgba(29, 16, 47, 0.04);
}
.strength img {
  width: 28px;
  height: 28px;
  color: var(--c-brand);
}
.strength span {
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  color: var(--c-text);
  line-height: var(--lh-tight);
}

/* - Caractéristiques : cartes chiffrées en haut, atouts cochés sur 2 lignes en bas - */
.carac-grid {
  list-style: none;
  margin: 0 0 var(--sp-4);
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-3);
}
@media (min-width: 560px) {
  .carac-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 900px) {
  .carac-grid { grid-template-columns: 1fr 1fr 1fr; }
}
.carac-card {
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
  padding: var(--sp-4) var(--sp-5);
  background: #fff;
  border: var(--border-thin) solid var(--c-border);
  border-radius: var(--r-md);
  border-left: 3px solid var(--c-accent);
  min-height: 4.5rem;
}
.carac-card__label {
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: var(--letter-wide, 0.04em);
  color: var(--c-text-secondary);
  line-height: var(--lh-tight);
}
.carac-card__value {
  font-size: var(--fs-md);
  font-weight: var(--fw-semibold);
  color: var(--c-text);
  line-height: var(--lh-tight);
}

/* Atouts cochés : grille en 2 lignes (colonnes = ceil(n/2)) */
.carac-flags {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-2) var(--sp-3);
}
@media (min-width: 560px) {
  .carac-flags {
    grid-template-columns: repeat(var(--carac-flag-cols, 4), 1fr);
  }
}
.carac-flag {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-4);
  background: #fff;
  border: var(--border-thin) solid var(--c-border);
  border-radius: var(--r-md);
  min-height: 2.75rem;
}
.carac-flag__check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--c-brand-tint);
  color: var(--c-brand);
  flex-shrink: 0;
}
.carac-flag__check i { font-size: 0.9rem; }
.carac-flag__label {
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--c-text);
  line-height: var(--lh-tight);
}

/* legacy carac-list (si réutilisé ailleurs) */
.carac-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-3) var(--sp-6);
}
@media (min-width: 640px) {
  .carac-list { grid-template-columns: 1fr 1fr; }
}
.carac-item {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  font-size: var(--fs-sm);
  color: var(--c-text-secondary);
}
.carac-item::before {
  content: "";
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  background: radial-gradient(circle, var(--c-brand) 3px, transparent 3.5px) center/100% no-repeat;
}

.gallery {
  margin-bottom: var(--sp-8);
}
.gallery-main-wrap {
  position: relative;
  margin-bottom: var(--sp-3);
  overflow: hidden;
  border-radius: var(--r-lg);
}
/* Ruban Exclusif : badges hors de la diagonale */
.gallery-main-wrap--exclusif .gallery-badges {
  left: 88px;
}
.gallery-main-btn {
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  background: none;
  cursor: zoom-in;
  border-radius: var(--r-lg);
}
.gallery-main-btn:focus-visible {
  outline: 3px solid var(--c-brand);
  outline-offset: 2px;
}
.gallery-main {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--r-lg);
  background: var(--c-bg-subtle);
  display: block;
}
.gallery-badges {
  position: absolute;
  top: var(--sp-3);
  left: var(--sp-3);
  display: flex;
  gap: var(--sp-2);
  pointer-events: none;
}
.gallery-counter {
  position: absolute;
  bottom: var(--sp-3);
  right: var(--sp-3);
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  padding: var(--sp-1) var(--sp-3);
  border-radius: var(--r-full);
}
.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: var(--sp-2);
}
.gallery-thumbs .thumb {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: opacity var(--t-fast) var(--ease-out),
              outline var(--t-fast) var(--ease-out);
  outline: 2px solid transparent;
}
.gallery-thumbs .thumb:hover { opacity: 0.85; }
.gallery-thumbs .thumb:focus-visible,
.gallery-thumbs .thumb.active { outline-color: var(--c-brand); }

.detail-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-8);
}
@media (min-width: 1024px) {
  .detail-grid { grid-template-columns: 2fr 1fr; }
}

/* ── En-tête annonce (sous la photo) — éditorial, sans boîte lourde ── */
.bien-hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-6);
  /* Pas de bordure bas : le filet vient du h2 suivant (.detail-main > h2) */
  margin: 0 0 var(--sp-2);
  padding: 0;
  border: none;
  background: none;
  box-shadow: none;
}
@media (min-width: 720px) {
  .bien-hero {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: var(--sp-8) var(--sp-10);
    align-items: end;
  }
}

.bien-hero__main {
  min-width: 0;
}

.bien-hero__kicker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.55rem;
  margin: 0 0 var(--sp-3);
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-text-muted);
}
.bien-hero__kicker-tx {
  color: var(--c-brand);
}
.bien-hero__sep {
  display: inline-block;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--c-accent);
  flex-shrink: 0;
}
.bien-hero__exclusif {
  color: var(--c-brand-darker);
}

.bien-hero__title {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3.2vw, 2.45rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--c-text);
  margin: 0 0 var(--sp-3);
  padding: 0;
  max-width: 22ch;
}
.bien-hero__title::after { display: none !important; }

.bien-hero__loc {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--c-text-secondary);
}
.bien-hero__loc i {
  color: var(--c-accent-dark-contrast);
  font-size: 1.05rem;
}

.bien-hero__aside {
  text-align: left;
  padding-top: var(--sp-1);
}
@media (min-width: 720px) {
  .bien-hero__aside {
    text-align: right;
    padding-left: var(--sp-6);
    border-left: 1px solid var(--c-border);
    min-width: 11.5rem;
  }
}

.bien-hero__price-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-3) var(--sp-4);
}
@media (min-width: 720px) {
  .bien-hero__price-row {
    justify-content: flex-end;
  }
}
.bien-hero__price {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 3.5vw, 2.65rem);
  font-weight: 500;
  line-height: 1;
  color: var(--c-brand-darker);
  letter-spacing: -0.02em;
  white-space: nowrap;
}

/* Bouton favori (cœur) sur la fiche bien */
.bien-favori-form {
  display: inline-flex;
  margin: 0;
}
.bien-favori-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.85rem;
  border: 1.5px solid var(--c-border-strong, rgba(36, 29, 51, 0.15));
  border-radius: 999px;
  background: #fff;
  color: var(--c-brand);
  font-family: var(--font-sans);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
  line-height: 1.2;
}
.bien-favori-btn i {
  font-size: 1.15rem;
}
.bien-favori-btn:hover,
.bien-favori-btn:focus-visible {
  border-color: var(--c-brand);
  background: var(--c-brand-tint);
  color: var(--c-brand-darker);
  outline: none;
  box-shadow: 0 0 0 3px rgba(92, 46, 136, 0.12);
}
.bien-favori-btn.is-on {
  background: var(--c-brand);
  border-color: var(--c-brand);
  color: #fff;
}
.bien-favori-btn.is-on:hover,
.bien-favori-btn.is-on:focus-visible {
  background: var(--c-brand-dark);
  border-color: var(--c-brand-dark);
  color: #fff;
}
@media (max-width: 480px) {
  .bien-favori-btn__label { /* garder le libellé pour clarté */ }
}
.bien-hero__price-unit {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: var(--fw-semibold);
  color: var(--c-text-muted);
  margin-left: 0.2rem;
  letter-spacing: 0.02em;
}
.bien-hero__price-extra {
  margin: 0.45rem 0 0;
  font-family: var(--font-sans);
  font-size: var(--fs-xs);
  font-weight: var(--fw-medium);
  color: var(--c-text-muted);
  line-height: 1.35;
  max-width: 16rem;
}
@media (min-width: 720px) {
  .bien-hero__price-extra {
    margin-left: auto;
  }
}
.bien-hero__ref {
  margin: var(--sp-4) 0 0;
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-grey-pearl);
}

/* legacy (si encore référencé) */
.price-big {
  font-size: var(--fs-3xl);
  font-weight: var(--fw-bold);
  letter-spacing: var(--letter-tight);
  color: var(--c-brand-darker);
  margin: var(--sp-3) 0 var(--sp-2);
}
.prix-sous {
  font-size: var(--fs-sm);
  color: var(--c-text-secondary);
  margin: 0 0 var(--sp-4);
}
.dpe-note {
  font-size: var(--fs-sm);
  color: var(--c-text-secondary);
  line-height: var(--lh-relaxed, 1.5);
  margin: 0 0 var(--sp-3);
}
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4);
  color: var(--c-text-secondary);
  margin-bottom: var(--sp-8);
}
.detail-meta span { display: inline-flex; align-items: center; gap: var(--sp-1); }

/* - Sections de la colonne principale : plus de « bulles » beiges - chaque
   section (h2 direct ou bloc) est plate, séparée de la précédente par un
   filet fin, façon portail immo. Les .legal-block hors fiche (pages légales)
   gardent leur style de reset.css. - */
.detail-main > h2,
.detail-main > .legal-block {
  border-top: var(--border-thin) solid var(--c-border-strong);
  padding-top: var(--sp-8);
  margin-top: var(--sp-10);
}
/* Respiration entre le titre d'une section et son contenu */
.detail-main > h2 { margin-bottom: var(--sp-5); }
.detail-main > .legal-block {
  background: none;
  border-radius: 0;
  padding-left: 0;
  padding-right: 0;
  padding-bottom: 0;
}
/* Titres fiche bien : tous même taille (Montserrat), +2 crans vs ancien fs-lg */
.property-detail .detail-main > h1,
.property-detail .detail-main > h2,
.property-detail .legal-block > h2,
.property-detail .perf-batiment-titre {
  font-family: var(--font-sans);
  font-size: var(--fs-2xl);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--letter-tight);
  line-height: var(--lh-tight);
  color: var(--c-text);
}
/* Filet or sous les titres de section — pas le titre de l’annonce (h1) */
.property-detail .detail-main > h2,
.property-detail .legal-block > h2,
.property-detail .perf-batiment-titre {
  position: relative;
  padding-bottom: var(--sp-3);
}
.property-detail .detail-main > h2::after,
.property-detail .legal-block > h2::after,
.property-detail .perf-batiment-titre::after {
  content: '';
  display: block;
  width: 48px;
  height: 3px;
  margin-top: var(--sp-3);
  background: var(--c-accent);
  border-radius: var(--r-full);
}
.property-detail .legal-block > h2 {
  margin-bottom: var(--sp-4);
}
.legal-block p { margin-bottom: var(--sp-3); }
.legal-block p:last-child { margin-bottom: 0; }

.detail-sidebar {
  display: flex;
  flex-direction: column;
  gap: var(--sp-6);
}

/* - Carte « Votre contact » : logo + coordonnées + formulaire, en un seul
   bloc visuellement cohérent, collant en haut de la sidebar au scroll. - */
.agent-card {
  padding: var(--sp-6);
  position: sticky;
  top: var(--sp-6);
}

.agent-card__header {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  padding-bottom: var(--sp-5);
  margin-bottom: var(--sp-5);
  border-bottom: var(--border-thin) solid var(--c-border);
}
.agent-card__logo {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: var(--r-md);
  background: var(--c-brand-tint);
  padding: var(--sp-2);
}
.agent-card__badge {
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: var(--letter-wide, .04em);
  color: var(--c-brand);
  margin-bottom: var(--sp-1);
}
.agent-card__nom {
  font-size: var(--fs-md);
  font-weight: var(--fw-semibold);
  color: var(--c-text);
}

.agent-card__infos {
  list-style: none;
  margin: 0 0 var(--sp-5);
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}
.agent-card__infos li {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  font-size: var(--fs-sm);
  color: var(--c-text-secondary);
}
.agent-card__infos i {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--c-brand);
  background: var(--c-brand-tint);
  border-radius: var(--r-full);
}
.agent-card__infos a {
  color: var(--c-text);
  font-weight: var(--fw-medium);
  text-decoration: none;
}
.agent-card__infos a:hover { color: var(--c-brand); text-decoration: underline; }

.contact-form {
  padding-top: var(--sp-5);
  border-top: var(--border-thin) solid var(--c-border);
}
.contact-form__lead {
  font-size: var(--fs-sm);
  color: var(--c-text-secondary);
  margin-bottom: var(--sp-4);
}
.contact-form .btn-block {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
}

/* - Lightbox plein écran (galerie photo) - */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  background: rgba(10, 8, 16, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox[hidden] { display: none; }
.lightbox__img {
  max-width: min(90vw, 1200px);
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--r-md);
}
.lightbox__close {
  position: absolute;
  top: var(--sp-5);
  right: var(--sp-5);
  width: var(--tap-min);
  height: var(--tap-min);
  border: none;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-radius: var(--r-full);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.lightbox__close svg { width: 20px; height: 20px; }
.lightbox__close:hover,
.lightbox__close:focus-visible { background: rgba(255, 255, 255, 0.25); }
.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border: none;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-radius: var(--r-full);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.lightbox__nav svg { width: 24px; height: 24px; }
.lightbox__nav:hover,
.lightbox__nav:focus-visible { background: rgba(255, 255, 255, 0.25); }
.lightbox__prev { left: var(--sp-5); }
.lightbox__next { right: var(--sp-5); }
.lightbox__counter {
  position: absolute;
  bottom: var(--sp-5);
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-size: var(--fs-sm);
  background: rgba(255, 255, 255, 0.12);
  padding: var(--sp-1) var(--sp-4);
  border-radius: var(--r-full);
}
@media (max-width: 640px) {
  .lightbox__nav { width: 40px; height: 40px; }
  .lightbox__prev { left: var(--sp-2); }
  .lightbox__next { right: var(--sp-2); }
}

/* - Caractéristiques détaillées : grille de fiches label/valeur - */
.specs-group {
  margin-bottom: var(--sp-6);
}
.specs-group h3 {
  font-size: var(--fs-md);
  font-weight: var(--fw-semibold);
  color: var(--c-brand-darker);
  margin-bottom: var(--sp-3);
}
.specs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: var(--sp-3) var(--sp-5);
  margin: 0 0 var(--sp-4);
}
.specs-item {
  display: flex;
  justify-content: space-between;
  gap: var(--sp-3);
  padding-bottom: var(--sp-2);
  border-bottom: var(--border-thin) solid var(--c-border);
}
.specs-item dt {
  color: var(--c-text-secondary);
  font-size: var(--fs-sm);
}
.specs-item dd {
  margin: 0;
  font-weight: var(--fw-semibold);
  color: var(--c-text);
  font-size: var(--fs-sm);
  text-align: right;
}

.pc-badge-exception {
  background: var(--c-accent);
  color: var(--c-accent-dark-contrast);
}

/* ── Copropriété (ALUR) : cartes + bandeau légal ── */
.copro-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-3);
  margin: 0 0 var(--sp-5);
}
@media (min-width: 560px) {
  .copro-cards { grid-template-columns: repeat(3, 1fr); }
}
.copro-card {
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
  padding: var(--sp-5);
  background: #fff;
  border: var(--border-thin) solid var(--c-border);
  border-radius: var(--r-md);
  border-left: 3px solid var(--c-brand);
  min-height: 5rem;
}
.copro-card--accent {
  border-left-color: var(--c-accent);
  background: var(--c-accent-tint);
  border-color: transparent;
}
.copro-card__label {
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: var(--letter-wide, 0.04em);
  color: var(--c-text-secondary);
}
.copro-card__value {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: var(--fw-semibold);
  line-height: 1.1;
  color: var(--c-text);
}
.copro-card__hint {
  font-size: var(--fs-xs);
  color: var(--c-text-secondary);
}

.copro-legal {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  padding: var(--sp-4) var(--sp-5);
  border-radius: var(--r-md);
  margin: 0 0 var(--sp-5);
  font-size: var(--fs-sm);
  line-height: var(--lh-relaxed, 1.5);
}
.copro-legal i {
  font-size: 1.35rem;
  flex-shrink: 0;
  margin-top: 2px;
}
.copro-legal p { margin: 0; }
.copro-legal--ok {
  background: #f0faf4;
  color: var(--c-text);
  border: var(--border-thin) solid #c5e6d0;
}
.copro-legal--ok i { color: #2a7a4b; }
.copro-legal--warn {
  background: #fff8f0;
  border: var(--border-thin) solid #f0d4a8;
}
.copro-legal--warn i { color: var(--c-accent-dark-contrast, #8A6210); }
.copro-legal__title {
  font-weight: var(--fw-semibold);
  margin-bottom: var(--sp-2) !important;
}
.copro-legal__list {
  margin: 0;
  padding-left: 1.1rem;
}
.copro-legal__list li { margin-bottom: 2px; }

.copro-charges {
  border: var(--border-thin) solid var(--c-border);
  border-radius: var(--r-md);
  background: #fff;
  padding: var(--sp-4) var(--sp-5);
}
.copro-charges__titre {
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  margin: 0 0 var(--sp-3);
  color: var(--c-text);
}
.copro-charges__list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.copro-charges__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--sp-3);
  padding: var(--sp-2) 0;
  border-bottom: var(--border-thin) solid var(--c-border);
  font-size: var(--fs-sm);
}
.copro-charges__row:last-child { border-bottom: none; padding-bottom: 0; }
.copro-charges__amt {
  font-weight: var(--fw-semibold);
  color: var(--c-text);
  white-space: nowrap;
}
.copro-charges__per {
  font-weight: var(--fw-regular);
  color: var(--c-text-secondary);
  font-size: var(--fs-xs);
}

.copro-detail-titre {
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  margin-top: var(--sp-4);
  margin-bottom: var(--sp-2);
}

/* - Liste simple libellé/valeur (encore utilisée par le détail des
   charges de copropriété) - */
.diagnostics-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}
.diagnostics-list li {
  display: flex;
  justify-content: space-between;
  gap: var(--sp-3);
  padding: var(--sp-2) 0;
  border-bottom: var(--border-thin) solid var(--c-border);
  font-size: var(--fs-sm);
}
.diagnostics-list li:last-child { border-bottom: none; }
.diagnostics-date {
  color: var(--c-text-secondary);
  flex-shrink: 0;
}

/* - Transports en commun proches (section Localisation) : pastilles
   icône + mode + distance - */
.transports-proches {
  list-style: none;
  margin: 0 0 var(--sp-4);
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
}
.transport-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-4);
  border: var(--border-thin) solid var(--c-border-strong);
  border-radius: 999px;
  background: #fff;
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
}
.transport-pill i {
  font-size: 1.1rem;
  color: var(--c-brand);
}
.transport-pill__distance { color: var(--c-text-secondary); }
/* Ligne(s) du transport (ex. Métro B) : petite pastille marquée */
.transport-pill__ligne {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 var(--sp-1);
  border-radius: 50%;
  background: var(--c-brand);
  color: var(--c-text-on-brand);
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
}

/* - Carte de localisation (module partagé carte-biens.js) - taille fixe,
   pas plein écran comme sur /recherche : simple encart dans la page. */
.bien-map-pane {
  position: relative;
  height: 420px;
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-top: var(--sp-4);
}
#bien-map { position: absolute; inset: 0; }
@media (max-width: 640px) {
  .bien-map-pane { height: 320px; }
}

/* Note sous la carte : localisation volontairement approximative (zone) */
.bien-map-note {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  margin-top: var(--sp-2);
  font-size: var(--fs-sm);
  color: var(--c-text-secondary);
}

.media-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
}

/* - Performance énergétique - diagramme style service-public.gouv
   affiché directement (échelles DPE puis GES, encart relié à la classe
   active), infos bâtiment en dessous. - */

/* - Diagramme détaillé : style service-public.gouv, carte blanche - */
.dpe-carte {
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  background: #fff;
  padding: var(--sp-5);
}
.dpe-echelle { margin-bottom: var(--sp-6); }
.dpe-echelle:last-of-type { margin-bottom: 0; }
.dpe-echelle__titre {
  font-size: var(--fs-md, 1rem);
  font-weight: var(--fw-bold);
  margin-bottom: var(--sp-3);
}
.dpe-echelle__mention {
  font-size: var(--fs-xs);
  color: var(--c-text-secondary);
  margin: var(--sp-1) 0;
}

.dpe-echelle__lignes {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.dpe-ligne {
  position: relative;
  display: flex;
  align-items: center;
}
.dpe-ligne__lettre {
  width: 28px;
  flex-shrink: 0;
  font-weight: var(--fw-semibold);
  font-size: var(--fs-sm);
}
/* Barres en escalier (A la plus courte, G la plus longue), pointe arrondie
   côté droit comme le modèle service-public.gouv. */
.dpe-ligne__barre {
  height: 26px;
  border-radius: 0 13px 13px 0;
  display: flex;
  align-items: center;
  padding-left: var(--sp-2);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  color: #fff;
  white-space: nowrap;
}
.dpe-ligne:nth-child(1) .dpe-ligne__barre { width: 22%; }
.dpe-ligne:nth-child(2) .dpe-ligne__barre { width: 29%; }
.dpe-ligne:nth-child(3) .dpe-ligne__barre { width: 36%; }
.dpe-ligne:nth-child(4) .dpe-ligne__barre { width: 43%; }
.dpe-ligne:nth-child(5) .dpe-ligne__barre { width: 50%; }
.dpe-ligne:nth-child(6) .dpe-ligne__barre { width: 57%; }
.dpe-ligne:nth-child(7) .dpe-ligne__barre { width: 64%; }

.dpe-ligne__barre--dpe-a { background: var(--c-dpe-A); }
.dpe-ligne__barre--dpe-b { background: var(--c-dpe-B); }
.dpe-ligne__barre--dpe-c { background: var(--c-dpe-C); color: var(--c-text); }
.dpe-ligne__barre--dpe-d { background: var(--c-dpe-D); color: var(--c-text); }
.dpe-ligne__barre--dpe-e { background: var(--c-dpe-E); color: var(--c-text); }
/* RGAA AA : blanc sur le orange F ne contraste qu'à 2.97:1 (pa11y) */
.dpe-ligne__barre--dpe-f { background: var(--c-dpe-F); color: var(--c-text); }
.dpe-ligne__barre--dpe-g { background: var(--c-dpe-G); }
.dpe-ligne__barre--ges-a { background: var(--c-ges-A); }
.dpe-ligne__barre--ges-b { background: var(--c-ges-B); }
.dpe-ligne__barre--ges-c { background: var(--c-ges-C); }
.dpe-ligne__barre--ges-d { background: var(--c-ges-D); }
.dpe-ligne__barre--ges-e { background: var(--c-ges-E); }
.dpe-ligne__barre--ges-f { background: var(--c-ges-F); }
.dpe-ligne__barre--ges-g { background: var(--c-ges-G); }

/* Ligne de rappel entre la barre active et l'encart (desktop) */
.dpe-ligne__rappel {
  display: none;
  flex: 1;
  height: 1px;
  background: var(--c-border-strong);
}

/* Encart de la classe active : sous l'échelle en mobile, à droite
   (relié par la ligne de rappel) en desktop. */
.dpe-encart {
  border: 1px solid var(--c-border-strong);
  border-radius: var(--r-md);
  background: #fff;
  padding: var(--sp-4);
  width: 100%;
  margin-top: var(--sp-3);
}
.dpe-encart__classe {
  font-size: var(--fs-xl, 1.375rem);
  font-weight: var(--fw-bold);
  margin-bottom: var(--sp-2);
}
.dpe-encart__label {
  font-size: var(--fs-xs);
  color: var(--c-text-secondary);
  margin-top: var(--sp-2);
}
.dpe-encart__valeur {
  font-size: var(--fs-sm);
  font-weight: var(--fw-bold);
}
@media (max-width: 799px) {
  .dpe-ligne { flex-wrap: wrap; }
}
@media (min-width: 800px) {
  .dpe-echelle__lignes { padding-right: 240px; }
  .dpe-ligne__rappel { display: block; }
  .dpe-encart {
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    width: 224px;
    margin-top: 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .06);
    z-index: 1;
  }
}

/* - Infos bâtiment sous le diagramme (taille titre = règles .property-detail h2) - */
.perf-batiment-titre {
  margin: var(--sp-8) 0 var(--sp-4);
}
.perf-batiment { margin-top: 0; }

/* - Coût annuel + émission totale : dans la carte blanche - */
.dpe-carte__infos {
  margin-top: var(--sp-6);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--c-border);
  font-size: var(--fs-sm);
  color: var(--c-text-secondary);
}
.dpe-carte__infos p + p { margin-top: var(--sp-1); }
.dpe-carte__infos strong { color: var(--c-text); }

/* ── Plans du bien (section conditionnelle : absente sans plan) ── */
.plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--sp-4);
  margin-bottom: var(--sp-6);
}
.plan-thumb {
  padding: 0;
  border: 1px solid var(--c-border);
  border-radius: var(--r-md, 8px);
  background: #fff;
  cursor: zoom-in;
  overflow: hidden;
  transition: box-shadow .15s ease;
}
.plan-thumb:hover,
.plan-thumb:focus-visible {
  box-shadow: 0 2px 12px rgba(0, 0, 0, .12);
}
.plan-thumb img {
  display: block;
  width: 100%;
  height: 220px;
  object-fit: contain;
  background: #fff;
}

/* ── Conditions de location (cartes + ledger, même esprit que Détails du prix) ── */
.loc-pills {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin: 0 0 var(--sp-5);
}
.loc-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-4);
  border-radius: 999px;
  border: var(--border-thin) solid var(--c-border);
  background: #fff;
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--c-text-secondary);
}
.loc-pill i { font-size: 1.05rem; color: var(--c-brand); }
.loc-pill.is-on {
  background: var(--c-brand-tint);
  border-color: transparent;
  color: var(--c-brand-dark);
  font-weight: var(--fw-semibold);
}
.loc-total-hint {
  font-size: var(--fs-sm);
  color: var(--c-text-secondary);
  margin: var(--sp-2) 0 0;
}
.loc-annexe-total {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: var(--fw-semibold);
  line-height: 1.1;
  color: var(--c-text);
  margin: 0 0 var(--sp-4);
}

/* ── Détails du prix / Financement - parti pris « état de frais de
   notaire » : total en Cormorant, lignes à pointillés conducteurs,
   distinction coût d'acquisition (carte blanche) / charges annuelles
   (carte teintée) ; mensualité sur panneau violet profond. ── */
.prix-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-4);
  border-radius: 999px;
  background: var(--c-brand-tint);
  color: var(--c-brand-dark);
  font-size: var(--fs-sm);
  margin-bottom: var(--sp-4);
}
.prix-chip i { font-size: 1.05rem; }

.prix-cartes {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-4);
  align-items: start;
}
@media (min-width: 800px) {
  .prix-cartes { grid-template-columns: 3fr 2fr; gap: var(--sp-6); }
}
.prix-carte,
.fin-carte {
  border: var(--border-thin) solid var(--c-border);
  border-radius: var(--r-md);
  background: #fff;
  padding: var(--sp-6);
}
.prix-carte--annexe {
  background: var(--c-accent-tint);
  border-color: transparent;
}

.prix-eyebrow {
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: var(--letter-wide, .08em);
  color: var(--c-accent-dark-contrast);
  margin-bottom: var(--sp-2);
}
.prix-eyebrow--sur-brun { color: var(--c-brand-light-contrast); }

.prix-carte__tete { margin-bottom: var(--sp-5); }
.prix-total {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: var(--fw-semibold);
  line-height: 1.05;
  color: var(--c-text);
}

/* Barre de répartition prix / frais de notaire */
.prix-barre {
  display: flex;
  gap: 3px;
  height: 10px;
  margin-bottom: var(--sp-5);
}
.prix-barre__seg { border-radius: 5px; }
.prix-barre__seg--bien { background: var(--c-brand); }
.prix-barre__seg--notaire { background: var(--c-accent); flex: 1; }

/* Ledger : libellé …… valeur (pointillés conducteurs façon état de frais) */
.prix-lignes {
  display: flex;
  flex-direction: column;
  margin: 0;
}
.prix-ligne {
  display: flex;
  align-items: baseline;
  gap: var(--sp-3);
  padding: var(--sp-3) 0;
  font-size: var(--fs-sm);
}
.prix-ligne dt { color: var(--c-text-secondary); }
.prix-fil {
  flex: 1;
  min-width: var(--sp-4);
  border-bottom: 2px dotted var(--c-border-strong);
  transform: translateY(-4px);
}
.prix-ligne dd {
  font-weight: var(--fw-semibold);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.prix-ligne dd .prix-m2,
.prix-ligne dt .prix-m2 { font-weight: var(--fw-normal); }
.prix-ligne--bien dt::before,
.prix-ligne--notaire dt::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: var(--sp-2);
}
.prix-ligne--bien dt::before { background: var(--c-brand); }
.prix-ligne--notaire dt::before { background: var(--c-accent); }

/* Simulateur */
.financement-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-8);
  align-items: stretch;
}
.financement-form { padding: var(--sp-2) 0; }
.financement-form .form-group { margin-bottom: var(--sp-4); }
.fin-hint {
  font-size: var(--fs-sm);
  color: var(--c-text-secondary);
  font-weight: normal;
}

/* Panneau résultat : violet profond, mensualité en grand Cormorant */
.fin-panel {
  background: var(--c-brand-dark);
  border-radius: var(--r-md);
  padding: var(--sp-6);
  color: var(--c-text-on-dark);
}
.fin-mensualite {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: var(--fw-semibold);
  line-height: 1.05;
  color: var(--c-text-on-dark);
  margin-bottom: var(--sp-5);
}
.fin-mensualite__unite {
  font-family: var(--font-sans);
  font-size: var(--fs-sm);
  color: var(--c-brand-light-contrast);
  font-weight: normal;
}
.prix-lignes--sur-brun .prix-ligne dt,
.prix-lignes--sur-brun .prix-ligne dt .prix-m2 { color: var(--c-brand-light-contrast); }
.prix-lignes--sur-brun .prix-ligne dd { color: var(--c-text-on-dark); }
.prix-lignes--sur-brun .prix-fil { border-color: rgba(250, 247, 242, 0.35); }

.fin-note {
  font-size: var(--fs-sm);
  color: var(--c-text-secondary);
  margin-top: var(--sp-3);
}
.prix-m2 {
  font-size: var(--fs-sm);
  color: var(--c-text-secondary);
}
@media (max-width: 700px) {
  .financement-grid { grid-template-columns: 1fr; }
}
