/* Extrait automatiquement de main.css lignes 1711-2010 — BIEN DÉTAIL  (bd-*) */
/* =============================================
   BIEN DÉTAIL  (bd-*)
   ============================================= */

/* Conteneur éditorial max-width 1280px */
.bd-container { max-width: 1280px; margin: 0 auto; padding: 0 2.5rem; }

/* ── En-tête ── */
.bd-header {
  background: color-mix(in srgb, var(--creme) 60%, transparent);
  border-bottom: 1px solid var(--border);
  padding: 2rem 0 2.5rem;
}
.bd-header__inner {
  display: flex;
  align-items: flex-end;
  gap: 3rem;
}
.bd-header__left {
  flex: 1 1 0;
  min-width: 0;
}
.bd-header__pitch {
  flex: 0 0 300px;
  max-width: 300px;
  padding: 1.25rem 1.5rem;
  background: var(--blanc);
  border-left: 3px solid var(--rouge);
  align-self: flex-end;
  margin-bottom: 0.25rem;
}
.bd-pitch__label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--rouge);
  margin-bottom: 0.6rem;
}
.bd-pitch__text {
  font-size: 0.88rem;
  line-height: 1.65;
  color: var(--gris);
}
@media (max-width: 768px) {
  .bd-header__inner { flex-direction: column; align-items: flex-start; gap: 1.5rem; }
  .bd-header__pitch { flex: none; max-width: 100%; width: 100%; }
}
.bd-back {
  display: inline-flex; align-items: center; gap: .45rem;
  font-size: .72rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase;
  color: var(--gris); margin-bottom: 1.5rem;
  transition: color var(--transition);
}
.bd-back:hover { color: var(--noir); }

.bd-location {
  display: flex; align-items: center; gap: .4rem;
  font-size: .7rem; font-weight: 600; letter-spacing: .22em;
  text-transform: uppercase; color: var(--rouge);
  margin-bottom: 1rem;
}

.bd-meta { display: flex; align-items: center; gap: .75rem; margin-bottom: 1rem; }

.bd-badge {
  font-size: .63rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  padding: .3rem .9rem;
}
.bd-badge--exclu { background: var(--rouge); color: var(--blanc); }
.bd-badge--offre { background: var(--noir); color: var(--blanc); }
.bd-badge--vendu { background: var(--gris); color: var(--blanc); }

.bd-type-label {
  font-size: .7rem; font-weight: 500; letter-spacing: .14em;
  text-transform: uppercase; color: var(--gris);
}

.bd-title {
  font-family: var(--font-titre);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -.025em;
  max-width: 780px;
}
.bd-subtitle {
  font-size: 0.82rem;
  color: var(--gris-moyen, #888);
  margin-top: 0.4rem;
  letter-spacing: 0.04em;
}

/* ── Photo simple ── */
.bd-photo { height: 600px; overflow: hidden; }
.bd-photo img { width: 100%; height: 100%; object-fit: cover; }

/* ── Galerie ── */
.bd-gallery { background: var(--noir); }
.bd-gallery__main { position: relative; height: 580px; overflow: hidden; }
.bd-gallery__main img { width: 100%; height: 100%; object-fit: cover; display: block; transition: opacity .25s; }
.bd-gallery__main-img { cursor: pointer; }
.bd-gallery__main-img:hover { opacity: .92; }
.bd-gallery__prev,
.bd-gallery__next {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,.15); backdrop-filter: blur(4px);
  border: none; color: var(--blanc); cursor: pointer;
  width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.bd-gallery__prev { left: 1rem; }
.bd-gallery__next { right: 1rem; }
.bd-gallery__prev:hover, .bd-gallery__next:hover { background: rgba(255,255,255,.3); }

.bd-gallery__actions {
  position: absolute; bottom: 1rem; right: 1rem;
  display: flex; align-items: center; gap: .6rem;
}
.bd-gallery__seeall,
.bd-gallery__seeplans {
  display: flex; align-items: center; gap: .45rem;
  background: rgba(0,0,0,.55); backdrop-filter: blur(4px);
  color: var(--blanc); border: 1px solid rgba(255,255,255,.35);
  font-size: .8rem; font-weight: 500;
  padding: .55rem 1rem; border-radius: 2rem;
  cursor: pointer; transition: background .2s;
  white-space: nowrap;
}
.bd-gallery__seeall:hover,
.bd-gallery__seeplans:hover { background: rgba(0,0,0,.75); }
.bd-gallery__seeall svg,
.bd-gallery__seeplans svg { flex-shrink: 0; }

/* ── Vue plein écran : toutes les photos, empilées ── */
.bd-lightbox {
  position: fixed; inset: 0; z-index: 200;
  background: var(--noir);
  display: flex; flex-direction: column;
}
.bd-lightbox[hidden] { display: none; }
.bd-lightbox__bar {
  flex: 0 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 1.5rem;
  background: var(--noir);
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.bd-lightbox__count {
  color: var(--blanc); font-size: .8rem; letter-spacing: .04em;
}
.bd-lightbox__close {
  background: rgba(255,255,255,.1); border: none; color: var(--blanc);
  cursor: pointer; width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.bd-lightbox__close:hover { background: rgba(255,255,255,.25); }
.bd-lightbox__scroll {
  flex: 1 1 auto; overflow-y: auto;
  padding: 1.5rem 0 3rem;
  display: flex; flex-direction: column; align-items: center; gap: 1.25rem;
}
.bd-lightbox__item {
  width: 100%; max-width: 1100px; margin: 0; padding: 0 1.5rem;
}
.bd-lightbox__item img {
  width: 100%; height: auto; display: block; border-radius: 2px;
}

/* ── Corps ── */
.bd-body { padding: 5rem 0 7rem; background: var(--creme); }
.bd-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 5rem;
  align-items: start;
}

/* ── Eyebrow ── */
.bd-eyebrow {
  display: block;
  font-size: .68rem; font-weight: 500;
  letter-spacing: .28em; text-transform: uppercase;
  color: var(--gris);
  margin-bottom: 1.5rem;
}

/* ── Sections ── */
.bd-section { margin-bottom: 3.5rem; padding-top: 3rem; border-top: 1px solid var(--border); }
.bd-section:first-child { border-top: none; padding-top: 0; }

/* ── Specs ── */
.bd-specs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem 1rem;
}
.bd-spec {
  display: flex; align-items: flex-start; gap: .85rem;
}
.bd-spec__icon {
  width: 40px; height: 40px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: color-mix(in srgb, var(--rouge) 10%, transparent);
  color: var(--rouge);
}
.bd-spec__body { display: flex; flex-direction: column; gap: .15rem; }
.bd-spec__val {
  font-family: var(--font-titre); font-size: 1.2rem;
  line-height: 1.2; letter-spacing: -.01em;
}
.bd-spec__label {
  font-size: .62rem; font-weight: 500;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--gris);
}

/* ── Description ── */
.bd-text p {
  font-size: .975rem; line-height: 1.85; color: var(--noir-2);
  margin-bottom: 1.1rem;
}
.bd-text p:last-child { margin-bottom: 0; }

/* ── Points forts ── */
.bd-points {
  display: grid; grid-template-columns: 1fr 1fr; gap: .6rem 2rem;
}
.bd-points li {
  font-size: .9rem; line-height: 1.5; color: var(--noir-2);
  padding-left: 1.1rem; position: relative;
}
.bd-points li::before {
  content: '';
  position: absolute; left: 0; top: .55em;
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--rouge);
}

/* ── Infos tableau ── */
.bd-infos { }
.bd-info-row {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: .65rem 0; border-bottom: 1px solid var(--border);
  font-size: .88rem;
}
.bd-info-row span { color: var(--gris); }
.bd-info-row strong { font-weight: 500; }

/* ── Sidebar ── */
.bd-sidebar { }
.bd-sidebar__inner {
  position: sticky; top: 2rem;
  background: var(--blanc); border: 1px solid var(--border);
  padding: 2rem;
  display: flex; flex-direction: column; gap: 1.5rem;
}

.bd-sidebar__price-block { }

.bd-price {
  font-family: var(--font-titre);
  font-size: clamp(2rem, 3vw, 2.75rem);
  letter-spacing: -.02em;
  line-height: 1;
  margin: .5rem 0 .35rem;
}
.bd-honoraires { font-size: .75rem; color: var(--gris); }

/* DPE 2-col grid */
.bd-dpe-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: .75rem;
}
.bd-dpe-box {
  border: 1px solid var(--border); padding: .85rem;
}
.bd-dpe-box__label {
  display: flex; align-items: center; gap: .3rem;
  font-size: .65rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--gris); margin-bottom: .4rem;
}
.bd-dpe-box__val {
  font-family: var(--font-titre); font-size: 2rem;
  line-height: 1; letter-spacing: -.02em;
}
/* DPE couleurs */
.bd-dpe-box__val--a { color: #00a550; }
.bd-dpe-box__val--b { color: #57b947; }
.bd-dpe-box__val--c { color: #9ab844; }
.bd-dpe-box__val--d { color: #d4920a; }
.bd-dpe-box__val--e { color: #ef7d00; }
.bd-dpe-box__val--f { color: #e73834; }
.bd-dpe-box__val--g { color: #c1141e; }
.bd-dpe-box__sub { font-size: .68rem; color: var(--gris); margin-top: .3rem; line-height: 1.3; }

.bd-energie { font-size: .75rem; color: var(--gris); margin-top: -.5rem; }

/* CTAs */
.bd-ctas { display: flex; flex-direction: column; align-items: flex-start; gap: .6rem; }
.bd-cta {
  display: flex; align-items: center; justify-content: space-between; gap: .75rem;
  padding: .9rem 1.25rem;
  font-size: .68rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
}
.bd-cta svg { flex-shrink: 0; }
.bd-cta--primary { background: var(--noir); color: var(--blanc); }
.bd-cta--primary:hover { background: var(--rouge); }
.bd-cta--outline { border: 1px solid var(--noir); color: var(--noir); }
.bd-cta--outline:hover { background: var(--noir); color: var(--blanc); }

/* Agent */
.bd-agent {
  display: flex; align-items: center; gap: .85rem;
  padding-top: 1rem; border-top: 1px solid var(--border);
}
.bd-agent__photo { width: 48px; height: 48px; max-width: none; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.bd-agent__name { font-family: var(--font-card); font-size: 1rem; line-height: 1.2; }
.bd-agent__role { font-size: .72rem; color: var(--gris); margin-top: .15rem; }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .bd-grid { grid-template-columns: 1fr; }
  .bd-sidebar__inner { position: static; }
}
@media (max-width: 680px) {
  .bd-photo { height: 360px; }
  .bd-gallery__main { height: 280px; }
  .bd-gallery__actions { right: .75rem; bottom: .75rem; gap: .4rem; }
  .bd-gallery__seeall, .bd-gallery__seeplans { font-size: .72rem; padding: .5rem .85rem; }
  .bd-lightbox__bar { padding: .85rem 1.25rem; }
  .bd-lightbox__item { padding: 0 .75rem; }
  .bd-body { padding: 3rem 0 5rem; }
  .bd-specs { grid-template-columns: repeat(2, 1fr); }
  .bd-points { grid-template-columns: 1fr; }
  .bd-container { padding: 0 1.25rem; }
}

