/* R5 — biens.css. Page « Biens à vendre » (archive-r5_bien),
   prototype work/biens-lab.html validé par Gary le 13/08. Le cycle
   d'images du hero (jour → rosé → nuit) vient du système partagé
   hero.css/.r5h-layer + hero-cycle.js. Mobile-first. */

/* ── 1. Hero ── */
.bh { position: relative; min-height: 88vh; display: flex; align-items: flex-end; overflow: hidden;
  background: linear-gradient(135deg, var(--green-800), var(--green-700) 45%, var(--green) 80%, var(--green-mid)); }
.bh .r5h-media { animation: none; } /* pas de zoom d'installation ici : trois vues fixes qui se fondent */
.bh-veil { position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to top, rgba(2,8,20,0.88) 0%, rgba(2,8,20,0.45) 38%, rgba(2,8,20,0.14) 62%, rgba(2,8,20,0.3) 100%); }
.bh-grid { position: relative; z-index: 2; width: 100%; max-width: 1380px; margin: 0 auto;
  padding: calc(var(--r5-header-h, 96px) + 34px) 20px 52px; display: grid; grid-template-columns: 1fr; gap: 36px; align-items: end; }
.bh-kicker { font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase; color: rgba(255,255,255,0.6); display: block; margin-bottom: 14px; }
.bh h1 { font-family: var(--font); font-weight: 400; font-size: clamp(34px, 4.4vw, 58px); line-height: 1.08; color: white; margin: 0 0 18px; }
.bh h1 em { font-style: italic; color: var(--gold-light); }
.bh-intro { font-size: 14.5px; color: rgba(255,255,255,0.82); line-height: 1.75; max-width: 54ch; margin: 0 0 26px; }
.bh-entry { display: inline-flex; flex-direction: column; gap: 5px; border-left: 2px solid var(--gold-light);
  padding: 6px 0 6px 18px; margin-bottom: 26px; }
.bh-entry-kicker { font-size: 9.5px; letter-spacing: 0.26em; text-transform: uppercase; color: var(--gold-light); }
.bh-entry-name { font-family: var(--font); font-size: 21px; color: white; }
.bh-entry-name a { color: inherit; text-decoration: none; border-bottom: 1px solid rgba(168,139,99,0.45); padding-bottom: 2px; }
.bh-entry-name a:hover { color: var(--gold-light); }
.bh-ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.bh-cta-primary { display: inline-flex; align-items: center; min-height: 48px; background: var(--gold); color: white;
  padding: 13px 30px; border: 0; border-radius: 50px; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  cursor: pointer; text-decoration: none; transition: background .3s, transform .3s; font-family: var(--font-sans); }
.bh-cta-primary:hover { background: var(--gold-light); transform: translateY(-2px); color: white; }
.bh-cta-ghost { display: inline-flex; align-items: center; min-height: 48px; background: none; color: rgba(255,255,255,0.9);
  padding: 13px 30px; border: 1px solid rgba(255,255,255,0.3); border-radius: 50px; font-size: 11px; letter-spacing: 0.14em;
  text-transform: uppercase; cursor: pointer; text-decoration: none; font-family: var(--font-sans); }
.bh-cta-ghost:hover { border-color: var(--gold-light); color: var(--gold-light); }

/* Panneau filtres en verre */
.bh-panel { background: rgba(4,10,24,0.72); border: 1px solid rgba(255,255,255,0.09);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); padding: 30px; display: flex; flex-direction: column; gap: 20px; }
.bh-panel-head { display: flex; align-items: center; gap: 12px; }
.bh-panel-head span { font-size: 9px; letter-spacing: 0.24em; color: var(--gold-light); text-transform: uppercase; }
.bh-panel-head i { flex: 1; height: 1px; background: rgba(255,255,255,0.1); }
.bh-panel label, .bh-panel-label { font-size: 9px; letter-spacing: 0.18em; color: rgba(255,255,255,0.4);
  text-transform: uppercase; display: block; margin-bottom: 10px; font-family: var(--font-sans); }
.bh-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.bh-chip { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.18); color: rgba(255,255,255,0.8);
  font-size: 11px; padding: 8px 16px; border-radius: 50px; cursor: pointer; font-family: var(--font-sans); transition: all .25s; }
.bh-chip.on { background: var(--gold); border-color: var(--gold); color: white; }
.bh-panel select { width: 100%; padding: 12px 16px; background: rgba(0,0,0,0.3); border: 1px solid rgba(255,255,255,0.18);
  color: white; font-size: 13px; font-family: var(--font-sans); border-radius: 50px; }
.bh-panel-btn { width: 100%; min-height: 48px; background: var(--gold); color: white; border: 0; border-radius: 50px;
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; cursor: pointer; font-family: var(--font-sans); transition: background .3s; }
.bh-panel-btn:hover { background: var(--gold-light); }
.bh-panel-projects { display: flex; align-items: center; justify-content: space-between; background: none;
  border: 1px solid rgba(168,139,99,0.4); color: white; padding: 12px 18px; border-radius: 50px; cursor: pointer;
  font-size: 12px; font-family: var(--font-sans); text-decoration: none; transition: border-color .3s; }
.bh-panel-projects:hover { border-color: var(--gold-light); }
.bh-panel-projects b { font-size: 9px; background: var(--gold); color: white; padding: 3px 10px; border-radius: 50px;
  letter-spacing: 0.1em; font-weight: 400; }

/* ── 2. Bandeau programmes neufs ── */
.bn { background: var(--white); border-bottom: 1px solid var(--border); padding: 22px 20px; }
.bn-inner { max-width: 1380px; margin: 0 auto; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.bn-label { font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); }
.bn-text { font-size: 13.5px; color: var(--text-muted); flex: 1; min-width: 240px; margin: 0; }
.bn-text b { color: var(--green); font-weight: 600; }
.bn a { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); text-decoration: none;
  border-bottom: 1px solid rgba(139,111,71,0.4); padding-bottom: 3px; white-space: nowrap; }

/* ── 3. Cartes vitrine ── */
.bl { background: var(--cream); padding: 56px 20px 40px; scroll-margin-top: 24px; }
.bl-inner { max-width: 1380px; margin: 0 auto; }
.bl-kicker { font-size: 10px; color: var(--gold); letter-spacing: 0.16em; text-transform: uppercase; display: block; margin-bottom: 12px; }
.bl-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 40px; }
.bl-head h2 { font-family: var(--font); font-size: clamp(26px, 3.2vw, 42px); font-weight: 400; color: var(--green); margin: 0; }
.bl-count { font-size: 12px; color: var(--text-light); letter-spacing: 0.08em; }
.bl-grid { display: grid; grid-template-columns: 1fr; gap: 32px; }
.bl-empty { font-size: 14px; color: var(--text-muted); line-height: 1.8; max-width: 62ch; }
.bl-empty a { color: var(--gold); }
.bcard { position: relative; display: block; text-decoration: none; background: var(--white);
  border: 1px solid var(--border); overflow: hidden; transition: box-shadow .5s, transform .5s; }
.bcard:hover { box-shadow: 0 30px 70px rgba(8,25,56,0.14); transform: translateY(-4px); }
.bcard-media { position: relative; aspect-ratio: 16 / 10.5; overflow: hidden; background: var(--green); }
.bcard-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 3.2s ease-out; display: block; }
.bcard:hover .bcard-media img { transform: scale(1.06); }
.bcard-media::after { content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(2,8,20,0.42) 0%, transparent 38%); }
.bcard-badge { position: absolute; top: 18px; left: 18px; z-index: 2; font-size: 9px; letter-spacing: 0.16em;
  text-transform: uppercase; color: white; background: rgba(2,8,20,0.55); border: 1px solid rgba(255,255,255,0.25);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); border-radius: 50px; padding: 6px 13px; }
.bcard-badge.neuf { background: var(--gold); border-color: var(--gold); }
/* « Réservé » se pose à droite : sur un lot de programme neuf, les deux
   bandeaux coexistent sans se recouvrir. */
.bcard-badge.reserve { left: auto; right: 18px; background: var(--green); border-color: var(--green); color: var(--white); }
.bcard-city { position: absolute; left: 24px; bottom: 18px; z-index: 2; font-size: 10.5px; letter-spacing: 0.26em;
  text-transform: uppercase; color: white; }
.bcard-body { padding: 26px 26px 28px; }
.bcard-title { font-family: var(--font); font-size: clamp(21px, 2vw, 26px); font-weight: 400; color: var(--green);
  line-height: 1.25; margin: 0 0 12px; }
.bcard-stats { display: flex; gap: 8px 22px; flex-wrap: wrap; margin-bottom: 16px; }
.bcard-stat { font-size: 12.5px; color: var(--text-muted); }
.bcard-stat b { color: var(--green); font-weight: 600; }
.bcard-rule { width: 44px; height: 1px; background: var(--gold-light); margin-bottom: 14px; }
.bcard-foot { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.bcard-price { font-family: var(--font); font-size: 20px; color: var(--green); }
.bcard-price.ondemand { font-size: 15px; font-style: italic; color: var(--gold); }
.bcard-link { font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--green);
  border-bottom: 1px solid rgba(8,25,56,0.3); padding-bottom: 3px; transition: color .3s, border-color .3s; }
.bcard:hover .bcard-link { color: var(--gold); border-color: rgba(139,111,71,0.5); }

/* ── 4. Dernières ventes ── */
.bv { background: var(--cream); padding: 40px 20px 64px; }
.bv-inner { max-width: 1380px; margin: 0 auto; border-top: 1px solid var(--border); padding-top: 48px; }
.bv-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 32px; }
.bv-head h2 { font-family: var(--font); font-size: clamp(22px, 2.6vw, 32px); font-weight: 400; color: var(--green); margin: 0; }
.bv-cta { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); text-decoration: none;
  border-bottom: 1px solid rgba(139,111,71,0.4); padding-bottom: 3px; white-space: nowrap; }
.bv-grid { display: grid; grid-template-columns: 1fr; gap: 24px; }
.bv-card { position: relative; display: block; overflow: hidden; text-decoration: none; background: var(--green); aspect-ratio: 4 / 3; }
.bv-card img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.82); transition: transform 3s ease-out; display: block; }
.bv-card:hover img { transform: scale(1.05); }
.bv-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(2,8,20,0.72) 0%, rgba(2,8,20,0.1) 55%); }
.bv-seal { position: absolute; top: 16px; left: 16px; z-index: 2; display: inline-flex; align-items: center; gap: 7px;
  font-size: 9px; letter-spacing: 0.18em; text-transform: uppercase; color: rgba(255,255,255,0.85);
  border: 1px solid rgba(255,255,255,0.3); border-radius: 50px; padding: 6px 13px; background: rgba(2,8,20,0.4); }
.bv-seal::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--gold-light); }
.bv-copy { position: absolute; left: 20px; right: 20px; bottom: 18px; z-index: 2; }
.bv-city { font-size: 9.5px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold-light); display: block; margin-bottom: 6px; }
.bv-name { font-family: var(--font); font-size: 19px; color: white; line-height: 1.25; }

/* ── 5. Off-Market ── */
.bo { background: radial-gradient(130% 110% at 88% 6%, rgba(26,74,128,0.25) 0%, transparent 52%),
  linear-gradient(135deg, var(--green-800), var(--green-700) 45%, var(--green) 80%, var(--green-mid)); padding: 64px 20px; }
.bo-inner { max-width: 1380px; margin: 0 auto; display: grid; grid-template-columns: 1fr; gap: 36px; align-items: center; }
.bo-kicker { font-size: 10px; color: var(--gold-light); letter-spacing: 0.16em; text-transform: uppercase; display: block; margin-bottom: 12px; }
.bo h2 { font-family: var(--font); font-size: clamp(26px, 3.2vw, 40px); font-weight: 400; color: white; line-height: 1.2; margin: 0 0 18px; }
.bo p { font-size: 14px; color: rgba(255,255,255,0.72); line-height: 1.85; max-width: 56ch; margin: 0 0 24px; }
.bo ul { list-style: none; display: flex; flex-direction: column; gap: 12px; margin: 0 0 32px; padding: 0; }
.bo li { font-size: 13.5px; color: rgba(255,255,255,0.85); padding-left: 22px; position: relative; }
.bo li::before { content: ''; position: absolute; left: 0; top: 0.55em; width: 10px; height: 1px; background: var(--gold-light); }
.bo ul { margin-bottom: 0; }
.bo-cta { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.bo-cta-btn { min-height: 56px; padding: 16px 38px; font-size: 12px; }
.bo-cta-note { font-size: 11px; letter-spacing: 0.06em; color: rgba(255,255,255,0.5); }

/* ── Tablette / desktop ── */
@media (min-width: 768px) {
  .bh-grid, .bn, .bl, .bv, .bo { padding-left: 48px; padding-right: 48px; }
  .bv-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1100px) {
  .bh-grid { grid-template-columns: 1.5fr 1fr; gap: 64px; padding: calc(var(--r5-header-h, 96px) + 54px) 80px 64px; }
  .bn, .bl, .bv, .bo { padding-left: 80px; padding-right: 80px; }
  .bl { padding-top: 80px; }
  .bl-grid { grid-template-columns: 1fr 1fr; gap: 44px 36px; }
  .bo { padding-top: 88px; padding-bottom: 88px; }
  .bo-inner { grid-template-columns: 1.4fr 1fr; gap: 64px; }
  .bo-cta { align-items: center; justify-self: center; }
}
@media (prefers-reduced-motion: reduce) {
  .bcard, .bcard-media img, .bv-card img, .bh-cta-primary { transition: none !important; }
}

/* ── Pagination (10 biens/page) ── */
.bl-pagination { margin-top: 48px; display: flex; justify-content: center; }
.bl-pagination ul { list-style: none; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 0; padding: 0; }
.bl-pagination a, .bl-pagination span { display: inline-flex; align-items: center; justify-content: center;
  min-width: 42px; min-height: 42px; padding: 0 16px; border: 1px solid var(--border); border-radius: 50px;
  background: var(--white); color: var(--text-muted); font-size: 12px; letter-spacing: 0.06em;
  text-decoration: none; transition: all .25s; font-family: var(--font-sans); }
.bl-pagination a:hover { border-color: var(--gold); color: var(--gold); }
.bl-pagination .current { background: var(--green); border-color: var(--green); color: white; }
.bl-pagination .dots { border: 0; background: none; }

/* ── CTA propriétaire ── */
.bp-owner { background: var(--white); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 40px 20px; }
.bp-owner-inner { max-width: 1380px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap; }
.bp-owner h2 { font-family: var(--font); font-size: clamp(20px, 2.4vw, 28px); font-weight: 400; color: var(--green); margin: 0 0 8px; }
.bp-owner p { font-size: 13.5px; color: var(--text-muted); margin: 0; }

/* ── Accompagnement acquéreur ── */
.bg-guide { background: var(--cream); padding: 64px 20px; }
.bg-guide-inner { max-width: 1380px; margin: 0 auto; display: grid; grid-template-columns: 1fr; gap: 36px; align-items: center; }
.bg-guide-copy h2 { font-family: var(--font); font-size: clamp(24px, 3vw, 38px); font-weight: 400; color: var(--green);
  line-height: 1.2; margin: 0 0 16px; }
.bg-guide-copy p { font-size: 14.5px; color: var(--text-muted); line-height: 1.85; max-width: 56ch; margin: 0 0 24px; }
.bg-guide-cta { display: inline-block; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold);
  text-decoration: none; border-bottom: 1px solid rgba(139,111,71,0.4); padding-bottom: 3px; background: none; cursor: pointer;
  font-family: var(--font-sans); }
.bg-guide-cta:hover { color: var(--gold-light); }
.bg-guide-list { list-style: none; margin: 0; padding: 28px 30px; background: var(--white); border: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 14px; }
.bg-guide-list li { font-size: 13.5px; color: var(--text); padding-left: 24px; position: relative; }
.bg-guide-list li::before { content: ''; position: absolute; left: 0; top: 0.6em; width: 12px; height: 1px; background: var(--gold); }

/* ── FAQ ── */
.bf-faq { background: var(--white); padding: 64px 20px; }
.bf-faq-inner { max-width: 860px; margin: 0 auto; }
.bf-faq-inner h2 { font-family: var(--font); font-size: clamp(22px, 2.8vw, 32px); font-weight: 400; color: var(--green); margin: 0 0 28px; }
.bf-faq-item { border-bottom: 1px solid var(--border); padding: 20px 0; }
.bf-faq-item:first-child { border-top: 1px solid var(--border); }
.bf-faq-item h3 { font-family: var(--font); font-size: 17px; font-weight: 400; color: var(--green); margin: 0 0 10px; }
.bf-faq-item p { font-size: 13.5px; color: var(--text-muted); line-height: 1.85; margin: 0; }

/* ── CTA recherche spécifique ── */
.bs-cta { background: var(--green-700); padding: 64px 20px; text-align: center; }
.bs-cta-inner { max-width: 700px; margin: 0 auto; }
.bs-cta h2 { font-family: var(--font); font-size: clamp(24px, 3vw, 36px); font-weight: 400; color: white; margin: 0 0 12px; }
.bs-cta p { font-size: 14px; color: rgba(255,255,255,0.78); line-height: 1.75; margin: 0 0 28px; }
.bs-cta-buttons { justify-content: center; }

@media (min-width: 768px) {
  .bp-owner, .bg-guide, .bf-faq, .bs-cta { padding-left: 48px; padding-right: 48px; }
}
@media (min-width: 1100px) {
  .bp-owner, .bg-guide, .bf-faq, .bs-cta { padding-left: 80px; padding-right: 80px; }
  .bg-guide { padding-top: 80px; padding-bottom: 80px; }
  .bg-guide-inner { grid-template-columns: 1.3fr 1fr; gap: 64px; }
}

/* Lisibilité mobile (audit 26/08) : les kickers et étiquettes du
   catalogue descendaient à 9–9,5 px sur téléphone — trop petit pour des
   capitales très espacées. Ils passent à 10,5 px sous 600 px, en
   resserrant l'interlettrage pour que la place suffise. */
@media (max-width: 600px) {
	.bh-entry-kicker,
	.bh-panel-head span,
	.bh-panel label,
	.bh-panel-label,
	.bh-panel-projects b,
	.bcard-badge,
	.bv-seal,
	.bv-city { font-size: 10.5px; letter-spacing: 0.14em; }
}
