:root {
  --navy: #0B1B3D;
  --navy-2: #13244C;
  --navy-deep: #081020;
  --gold: #D9B354;
  --gold-light: #F0D28C;
  --gold-dark: #A67C1E;
  --bg: #FAF8F3;
  --bg-alt: #F1EEE4;
  --text: #16213F;
  --muted: #636E80;
  --muted-2: #8893A3;
  --card-bg: #FFFFFF;
  --border: #E8E3D6;
  --border-2: #DAD4C3;
  --danger-bg: #FBEAEA;
  --danger: #9B2C2C;
  --danger-border: #F3C6C6;
  --success-bg: #EAF5EE;
  --success: #1F7A4D;
  --success-border: #C7E7D4;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(11, 27, 61, .06), 0 1px 3px rgba(11, 27, 61, .08);
  --shadow-md: 0 6px 16px rgba(11, 27, 61, .10), 0 2px 6px rgba(11, 27, 61, .06);
  --shadow-lg: 0 18px 40px rgba(11, 27, 61, .16), 0 6px 16px rgba(11, 27, 61, .08);
  --shadow-gold: 0 10px 24px rgba(166, 124, 30, .28);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --dur: .22s;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; overflow-x: hidden; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Hanken Grotesk', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: 'Bricolage Grotesque', system-ui, sans-serif; margin: 0; letter-spacing: -.01em; }
a { color: inherit; text-decoration: none; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
::selection { background: var(--gold-light); color: var(--navy); }

/* ---------- icônes inline (voir ICONS dans site.js) ---------- */
.ic { display: inline-flex; align-items: center; justify-content: center; width: 1em; height: 1em; flex: none; vertical-align: -0.15em; }
.ic svg { width: 100%; height: 100%; }
h1 .ic, h2 .ic, .form-section-title .ic { width: 1em; height: 1em; }
.meta .ic, .spec-label .ic, .breadcrumb .ic, .map-status-bar .ic, .btn-gold .ic, .btn-outline .ic, .form-error .ic, .empty-state .ic, .error-state .ic { font-size: 1.1em; }
.btn-gold .ic, .btn-outline .ic, .btn-ghost-navy .ic { width: 1.1em; height: 1.1em; }
.empty-state > .ic, .error-state > .ic { width: 40px; height: 40px; margin-bottom: 14px; opacity: .5; display: flex; margin-left: auto; margin-right: auto; }
.confirm-check .ic { width: 30px; height: 30px; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 100; background: var(--gold); color: var(--navy);
  padding: 10px 16px; border-radius: 0 0 8px 0; font-weight: 600;
}
.skip-link:focus { left: 0; }

/* ---------- en-tête ---------- */
.hd {
  background: var(--navy); position: sticky; top: 0; z-index: 30;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .06);
  transition: box-shadow var(--dur) var(--ease), background var(--dur) var(--ease);
}
.hd.scrolled { box-shadow: 0 10px 30px rgba(3, 8, 20, .35); background: var(--navy-deep); }
.hd-inner { max-width: 1140px; margin: 0 auto; padding: 14px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; position: relative; }
.brand { display: flex; align-items: center; transition: opacity var(--dur) var(--ease); }
.brand:hover { opacity: .85; }
.brand img { height: 36px; display: block; }
.hd-nav { display: flex; align-items: center; gap: 30px; }
.hd-nav a {
  color: #C9CEDC; font-weight: 500; font-size: .95rem; white-space: nowrap; position: relative; padding: 6px 0;
  transition: color var(--dur) var(--ease);
}
.hd-nav a::after {
  content: ''; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px; background: var(--gold);
  border-radius: 2px; transition: right var(--dur) var(--ease);
}
.hd-nav a:hover { color: #fff; }
.hd-nav a:hover::after, .hd-nav a.active::after { right: 0; }
.hd-nav a.active { color: #fff; }
.hd-nav .nav-count {
  background: var(--gold); color: var(--navy); font-size: .68rem; font-weight: 700; border-radius: 10px;
  padding: 1px 6px; margin-left: 3px; display: inline-block; animation: pop .3s var(--ease);
}
.hd-nav .nav-count[hidden] { display: none; }
@keyframes pop { from { transform: scale(0); } to { transform: scale(1); } }

.hd-toggle { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 36px; height: 36px; background: none; border: none; cursor: pointer; padding: 0; }
.hd-toggle span { display: block; width: 100%; height: 2px; background: var(--gold-light); border-radius: 2px; transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease); }
.hd-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hd-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hd-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- boutons ---------- */
.btn-gold {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px; border-radius: 999px; border: none; cursor: pointer;
  background: linear-gradient(135deg, var(--gold-light), var(--gold) 55%, var(--gold-dark));
  background-size: 160% 160%; background-position: 0% 50%;
  color: var(--navy); font-weight: 700; font-size: .95rem; font-family: inherit;
  box-shadow: var(--shadow-gold);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background-position var(--dur) var(--ease);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 16px 32px rgba(166, 124, 30, .36); background-position: 100% 50%; }
.btn-gold:active { transform: translateY(0); }
.btn-gold.small { padding: 10px 18px; font-size: .85rem; box-shadow: var(--shadow-sm); }
.btn-gold.small:hover { box-shadow: 0 10px 20px rgba(166, 124, 30, .3); }
.btn-gold[disabled] { opacity: .6; cursor: default; transform: none; box-shadow: none; }

.btn-outline {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px; border-radius: 999px; border: 1.5px solid var(--border-2); background: transparent;
  color: var(--text); font-weight: 600; font-size: .92rem; font-family: inherit; cursor: pointer;
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.btn-outline:hover { border-color: var(--navy); background: var(--bg-alt); transform: translateY(-1px); }

.btn-ghost-navy {
  display: inline-flex; align-items: center; gap: 8px; padding: 11px 20px; border-radius: 999px;
  border: 1.5px solid rgba(255, 255, 255, .28); color: #fff; font-weight: 600; font-size: .92rem;
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.btn-ghost-navy:hover { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .5); }

.btn-reset {
  color: var(--muted); font-size: .85rem; font-weight: 600; background: none; border: none; cursor: pointer;
  padding: 0; font-family: inherit; display: inline-flex; align-items: center; gap: 4px;
  transition: color var(--dur) var(--ease);
}
.btn-reset:hover { color: var(--navy); }

.spinner {
  width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-top-color: transparent;
  display: inline-block; animation: spin .7s linear infinite; opacity: .8;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- mise en page générale ---------- */
main { display: block; min-height: 50vh; }
.container { max-width: 1140px; margin: 0 auto; padding: 56px 24px; }
.page-fade { animation: pageFade .32s var(--ease); }
@keyframes pageFade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Entrée animée auto-suffisante (pas d'IntersectionObserver) : un contenu principal ne doit jamais
   rester invisible si le JS de révélation ne se déclenche pas (contenu sous la ligne de flottaison
   au premier rendu, onglet en arrière-plan, timing...). L'animation joue une fois au montage, quelle
   que soit la position de défilement. */
@keyframes cardIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.card-in { animation: cardIn .5s var(--ease) both; }
@media (prefers-reduced-motion: reduce) {
  .card-in { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: radial-gradient(1100px 520px at 12% -10%, #1a2d5c 0%, transparent 55%),
              radial-gradient(900px 460px at 110% 10%, #1c2f5f 0%, transparent 50%),
              linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: #fff; padding: 96px 24px 108px;
}
.hero::before {
  content: ''; position: absolute; inset: 0; opacity: .5; pointer-events: none;
  background-image: radial-gradient(rgba(217, 179, 84, .18) 1.5px, transparent 1.5px);
  background-size: 28px 28px; mask-image: linear-gradient(180deg, rgba(0, 0, 0, .6), transparent 70%);
}
.hero-inner { max-width: 760px; margin: 0 auto; text-align: center; position: relative; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px; color: var(--gold-light); font-weight: 600; font-size: .82rem;
  letter-spacing: .08em; text-transform: uppercase; margin-bottom: 18px; opacity: 0; animation: heroIn .6s var(--ease) .05s forwards;
}
.hero-eyebrow::before { content: ''; width: 22px; height: 1.5px; background: var(--gold); display: inline-block; }
.hero h1 {
  font-size: clamp(2rem, 4.4vw, 3.1rem); font-weight: 700; line-height: 1.12;
  opacity: 0; animation: heroIn .7s var(--ease) .12s forwards;
}
.hero p {
  margin: 20px auto 0; max-width: 580px; color: #C9CEDC; font-size: 1.05rem;
  opacity: 0; animation: heroIn .7s var(--ease) .22s forwards;
}
.hero-actions {
  margin-top: 34px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap;
  opacity: 0; animation: heroIn .7s var(--ease) .32s forwards;
}
@keyframes heroIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ---------- section listing ---------- */
.biens-section { position: relative; margin-top: -58px; }
.biens-section h2, .nouveautes-section h2 { font-size: 1.7rem; margin-bottom: 4px; }
.biens-section .section-sub, .nouveautes-section .section-sub { color: var(--muted); margin: 0 0 22px; }
#biens-count { margin: 0 0 20px; font-weight: 600; color: var(--navy); }
.nouveautes-section { margin: 56px 0 64px; }

/* ---------- section accueil : valeurs ---------- */
.values-section {
  position: relative; margin-top: -58px; background: var(--card-bg); padding: 56px 24px 44px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0; box-shadow: var(--shadow-md);
}
.values-section h2 { text-align: center; font-size: 1.7rem; margin-bottom: 32px; }
.values-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; max-width: 1040px; margin: 0 auto; }
.value-card { text-align: center; padding: 8px; }
.value-icon { width: 40px; height: 40px; color: var(--gold-dark); margin-bottom: 14px; }
.value-icon svg { width: 100%; height: 100%; }
.value-card h3 { font-size: 1.02rem; margin-bottom: 6px; }
.value-card p { color: var(--muted); font-size: .9rem; line-height: 1.55; margin: 0; }

.filters {
  display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 32px; align-items: center;
  background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 14px; box-shadow: var(--shadow-md);
}
.filters input, .filters select {
  padding: 11px 14px; border: 1.5px solid var(--border); border-radius: var(--radius-sm); font-size: .9rem; font-family: inherit;
  background: var(--bg); color: var(--text); transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.filters input:focus, .filters select:focus {
  outline: none; border-color: var(--gold-dark); box-shadow: 0 0 0 3px rgba(217, 179, 84, .25); background: #fff;
}
.filters input[type="number"] { width: 150px; }
.filters input[name="q"] { flex: 1 1 200px; min-width: 180px; }

.segmented { display: inline-flex; background: var(--bg); border: 1.5px solid var(--border); border-radius: var(--radius-sm); padding: 3px; gap: 2px; }
.segmented button {
  border: none; background: transparent; padding: 8px 14px; border-radius: 6px; font-family: inherit; font-size: .88rem;
  font-weight: 600; color: var(--muted); cursor: pointer; transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.segmented button.active { background: var(--navy); color: #fff; }
.segmented button:not(.active):hover { color: var(--navy); }

.biens-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 24px; }
.bien-card {
  background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden;
  display: flex; flex-direction: column; box-shadow: var(--shadow-sm);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.bien-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.bien-card .thumb {
  position: relative; display: block; aspect-ratio: 4/3; overflow: hidden;
  background: linear-gradient(145deg, var(--navy) 0%, var(--navy-2) 100%);
}
.bien-card .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s var(--ease); }
.bien-card:hover .thumb img { transform: scale(1.07); }
.bien-card .thumb .thumb-mark {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  color: var(--gold-light); opacity: .5;
}
.bien-card .thumb .thumb-mark svg { width: 46px; height: 46px; }
.bien-card .body { padding: 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.bien-card h3 { font-size: 1.08rem; font-weight: 600; line-height: 1.3; }
.bien-card h3 a:hover { color: var(--gold-dark); }
.tag {
  display: inline-flex; align-self: flex-start; align-items: center; gap: 5px;
  background: var(--navy); color: var(--gold-light); font-size: .7rem; font-weight: 700;
  padding: 4px 11px; border-radius: 20px; text-transform: uppercase; letter-spacing: .04em;
}
.tag.vente { background: #1F3A26; color: #BFE8CC; }
.tag.tag-type { background: var(--bg-alt); color: var(--muted); border: 1px solid var(--border); }
.bien-card .meta, .card-price { color: var(--muted); font-size: .88rem; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.bien-card .meta svg, .card-price svg { width: 14px; height: 14px; flex: none; opacity: .7; }
.card-price { font-weight: 700; color: var(--text); }
.compare-toggle {
  display: flex; align-items: center; gap: 8px; font-size: .82rem; color: var(--muted);
  margin-top: auto; padding-top: 10px; cursor: pointer; user-select: none;
}
.compare-toggle input { accent-color: var(--gold-dark); width: 16px; height: 16px; cursor: pointer; }
.compare-toggle:hover { color: var(--navy); }

/* skeletons */
.skeleton-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 24px; }
.skeleton-card { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); background: var(--card-bg); }
.skeleton-card .sk-thumb { aspect-ratio: 4/3; }
.skeleton-card .sk-line { height: 12px; margin: 14px 16px; border-radius: 6px; }
.skeleton-card .sk-line.w60 { width: 60%; }
.skeleton-card .sk-line.w40 { width: 40%; margin-top: 0; }
.sk-thumb, .sk-line {
  background: linear-gradient(100deg, var(--bg-alt) 30%, #fff 50%, var(--bg-alt) 70%);
  background-size: 200% 100%; animation: shimmer 1.4s ease-in-out infinite;
}
@keyframes shimmer { 0% { background-position: 150% 0; } 100% { background-position: -50% 0; } }

.empty-state, .error-state {
  text-align: center; padding: 56px 20px; background: var(--card-bg); border: 1px dashed var(--border-2);
  border-radius: var(--radius-lg); color: var(--muted);
}

/* ---------- en-tête de page générique ---------- */
.page-head { margin-bottom: 28px; }
.page-head h1 { font-size: 1.9rem; margin: 6px 0 8px; }
.breadcrumb { margin: 0 0 16px; }
.breadcrumb a { color: var(--muted); font-size: .88rem; display: inline-flex; align-items: center; gap: 6px; transition: color var(--dur) var(--ease); }
.breadcrumb a:hover { color: var(--navy); }

/* ---------- fiche détaillée ---------- */
.breadcrumb-wrap { padding-bottom: 0; }
.detail-layout { display: grid; grid-template-columns: 1fr 340px; gap: 40px; align-items: start; }
.detail-main { min-width: 0; }
.detail-actions.mobile-only-actions { display: none; }
.detail h1 { font-size: 2rem; margin: 14px 0 8px; line-height: 1.15; }
.detail .meta { color: var(--muted); margin-bottom: 4px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.detail .description { margin: 24px 0; line-height: 1.7; color: var(--text); font-size: 1rem; }
.detail h2 { font-size: 1.25rem; margin: 32px 0 14px; }

/* ---------- héros plein cadre (page bien) : même langage visuel que la fiche PDF et le CRM —
   photo pleine largeur, bandeau titre superposé, encart prix doré flottant ---------- */
.detail-hero {
  position: relative; width: 100%; height: min(58vh, 520px); min-height: 320px;
  background-size: cover; background-position: center; overflow: hidden;
}
.detail-hero.no-photo { background: linear-gradient(170deg, var(--navy-2) 0%, var(--navy) 46%, var(--navy-deep) 100%); }
.detail-hero-mark { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--gold-light); opacity: .22; }
.detail-hero-mark svg { width: 180px; height: 180px; }
.detail-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(8, 16, 32, .88) 0%, rgba(8, 16, 32, .25) 42%, rgba(8, 16, 32, 0) 68%);
}
.hero-price-badge {
  position: absolute; top: 24px; right: 24px; z-index: 2; text-align: left;
  background: linear-gradient(135deg, var(--gold-light), var(--gold) 55%, var(--gold-dark));
  border-radius: var(--radius-md); padding: 14px 20px; box-shadow: 0 16px 36px -10px rgba(166, 124, 30, .55);
  display: flex; flex-direction: column; gap: 2px;
}
.hpb-label { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--navy-2); }
.hpb-value { font-family: var(--display); font-weight: 800; font-size: 1.3rem; color: var(--navy); letter-spacing: -.01em; }
.detail-hero-panel { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 28px 24px 26px; max-width: 920px; }
.detail-hero-panel .tag { display: inline-flex; align-items: center; gap: 5px; background: var(--navy); color: var(--gold-light); font-size: .72rem; font-weight: 700; padding: 5px 12px; border-radius: 20px; text-transform: uppercase; letter-spacing: .04em; }
.detail-hero-panel .tag-dispo { background: rgba(255, 255, 255, .12); color: #fff; }
.detail-hero-panel .tag-dispo svg { width: 13px; height: 13px; }
.detail-hero-panel h1 { color: #fff; margin: 12px 0 6px; text-shadow: 0 2px 14px rgba(0, 0, 0, .25); }
.detail-hero-panel .meta { color: #D7DCEB; }
@media (max-width: 760px) {
  .detail-hero { height: 340px; }
  .hero-price-badge { top: 16px; right: 16px; padding: 10px 14px; }
  .hpb-value { font-size: 1.05rem; }
  .detail-hero-panel { padding: 20px 20px 22px; }
  .detail-hero-panel h1 { font-size: 1.5rem; }
}

/* ---------- conditions financières ---------- */
.finance-card { background: var(--navy-deep); background-image: linear-gradient(165deg, var(--navy-2), var(--navy-deep)), radial-gradient(360px 200px at 100% -10%, rgba(217, 179, 84, .3), transparent 60%); border-radius: var(--radius-lg); padding: 26px 28px; color: #fff; }
.finance-main { margin-bottom: 14px; }
.finance-main .fm-label { display: block; color: var(--gold-light); font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.finance-main .fm-value { font-family: var(--display); font-weight: 800; font-size: 2rem; letter-spacing: -.01em; }
.finance-rows { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 6px; padding-top: 6px; }
.finance-row { display: flex; justify-content: space-between; gap: 14px; padding: 10px 0; border-bottom: 1px solid rgba(255, 255, 255, .08); font-size: .92rem; }
.finance-row:last-child { border-bottom: none; }
.finance-row span:first-child { color: #A9B1C9; }
.finance-row span:last-child { font-weight: 600; text-align: right; }

/* ---------- DPE / occupation ---------- */
.dpe-badge { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 8px; color: #fff; font-weight: 800; font-family: var(--display); font-size: .95rem; }
.occ-chip { display: inline-block; font-weight: 600; }
.occ-chip.free { color: var(--success); }
.occ-chip.taken { color: var(--gold-dark); }

/* ---------- accès métro / transports ---------- */
.transit-card { background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px 22px; margin-bottom: 8px; }
.metro-list { display: flex; flex-direction: column; gap: 10px; }
.metro-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.metro-row:last-child { border-bottom: none; padding-bottom: 0; }
.metro-name { font-weight: 600; color: var(--navy); font-size: .95rem; }
.metro-lines { display: flex; gap: 6px; }
.metro-badge { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; background: var(--navy); color: #fff; font-size: .72rem; font-weight: 700; }
.transit-free { display: flex; align-items: center; gap: 8px; color: var(--text); font-size: .92rem; margin-top: 12px; }
.transit-free svg { width: 16px; height: 16px; color: var(--gold-dark); flex: none; }
.metro-list + .transit-free { padding-top: 12px; border-top: 1px solid var(--border); }

/* ---------- légendes sur les photos (optionnelles, saisies côté CRM) ---------- */
.gallery-caption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 10px 12px; font-size: .78rem; font-weight: 600;
  color: #fff; text-transform: uppercase; letter-spacing: .03em; background: linear-gradient(0deg, rgba(8, 16, 32, .82), transparent);
}
.photo-gallery .photo-thumbs .gallery-item .gallery-caption { display: none; }

.specs-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; margin-bottom: 8px; }
.spec-card {
  background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 16px 18px;
  transition: box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.spec-card:hover { box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.spec-card .spec-label { color: var(--muted); font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; display: flex; align-items: center; gap: 6px; }
.spec-card .spec-label svg { width: 15px; height: 15px; color: var(--gold-dark); }
.spec-card .spec-value { font-size: 1.02rem; font-weight: 600; color: var(--navy); margin-top: 6px; line-height: 1.4; }

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; margin: 18px 0; }
.gallery-item {
  display: block; aspect-ratio: 4/3; border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--border);
  cursor: zoom-in; position: relative; background: var(--navy);
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s var(--ease); }
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item::after {
  content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(11, 27, 61, .35), transparent 40%);
  opacity: 0; transition: opacity var(--dur) var(--ease);
}
.gallery-item:hover::after { opacity: 1; }

/* Galerie de la fiche détaillée : une photo principale, les autres en vignettes dessous. */
.photo-gallery { margin: 18px 0; }
/* Vidéos d'un bien : souvent verticales (Instagram), donc hauteur bornée et centrées ; jamais plus larges que l'écran. */
.bien-videos { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin: 18px 0; }
.bien-video { display: block; max-width: 100%; max-height: min(78vh, 640px); background: #000; border-radius: 10px; }
.photo-gallery .photo-main .gallery-item { aspect-ratio: 16/9; border-radius: var(--radius-lg); width: 100%; }
.photo-gallery .photo-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; margin-top: 8px; }
.photo-gallery .photo-thumbs .gallery-item { aspect-ratio: 1/1; border-radius: var(--radius-sm); width: 100%; }

.row { display: flex; }
.detail-actions { margin-top: 28px; gap: 16px; align-items: center; flex-wrap: wrap; }

.sidebar-card {
  background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px;
  box-shadow: var(--shadow-md); position: sticky; top: 92px;
}
.sidebar-card .sc-label { color: var(--muted); font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.sidebar-card .sc-value { font-size: 1.5rem; font-weight: 700; color: var(--navy); margin: 4px 0 18px; }
.sc-facts { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); margin: -4px 0 18px; padding: 12px 0; display: flex; flex-direction: column; gap: 8px; }
.sc-fact { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: .86rem; }
.sc-fact span { display: flex; align-items: center; gap: 6px; color: var(--muted); }
.sc-fact span svg { width: 14px; height: 14px; color: var(--gold-dark); }
.sc-fact b { color: var(--navy); font-weight: 700; }
.sidebar-card .btn-gold, .sidebar-card .btn-outline { width: 100%; margin-bottom: 10px; }
.sidebar-card .compare-toggle { justify-content: center; padding-top: 4px; }

/* ---------- lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; background: rgba(8, 16, 32, .92); z-index: 90; display: flex; align-items: center;
  justify-content: center; padding: 40px; animation: fadeIn .22s var(--ease);
}
.lightbox[hidden] { display: none; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.lightbox img { max-width: min(90vw, 1100px); max-height: 85vh; border-radius: 10px; box-shadow: var(--shadow-lg); animation: zoomIn .25s var(--ease); }
@keyframes zoomIn { from { transform: scale(.96); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.lightbox-close {
  position: absolute; top: 20px; right: 24px; background: rgba(255, 255, 255, .1); color: #fff; border: none;
  width: 42px; height: 42px; border-radius: 50%; font-size: 1.6rem; line-height: 1; cursor: pointer;
  transition: background var(--dur) var(--ease);
}
.lightbox-close:hover { background: rgba(255, 255, 255, .22); }
.lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255, 255, 255, .1); color: #fff; border: none;
  width: 48px; height: 48px; border-radius: 50%; font-size: 2rem; line-height: 1; cursor: pointer;
  transition: background var(--dur) var(--ease);
}
.lightbox-nav:hover { background: rgba(255, 255, 255, .22); }
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

/* ---------- comparateur ---------- */
.compare-table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--card-bg); box-shadow: var(--shadow-sm); }
.compare-table { border-collapse: collapse; width: 100%; min-width: 480px; }
.compare-table th, .compare-table td { border-bottom: 1px solid var(--border); padding: 14px 18px; font-size: .92rem; text-align: left; vertical-align: top; }
.compare-table tr:last-child th, .compare-table tr:last-child td { border-bottom: none; }
.compare-table th { color: var(--muted); font-weight: 600; white-space: nowrap; background: var(--bg-alt); position: sticky; left: 0; }
.compare-table td { min-width: 170px; }
.compare-table thead th, .compare-table tr:first-child td { font-weight: 700; color: var(--navy); font-size: .98rem; }
.compare-table .compare-row-actions td { border-bottom: none; padding-top: 10px; }
.compare-table .compare-row-actions button { color: var(--muted); font-size: .82rem; font-weight: 600; text-decoration: none; background: var(--bg-alt); border: 1px solid var(--border); border-radius: 999px; cursor: pointer; padding: 6px 14px; font-family: inherit; transition: all var(--dur) var(--ease); }
.compare-table .compare-row-actions button:hover { background: var(--danger-bg); color: var(--danger); border-color: var(--danger-border); }

/* ---------- contact ---------- */
.contact-layout { display: grid; grid-template-columns: minmax(220px, 320px) 1fr; gap: 36px; align-items: start; }
.contact-info {
  background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md); padding: 28px 26px; display: flex; flex-direction: column; gap: 12px; position: sticky; top: 90px;
}
.contact-info h2 { font-size: 1.1rem; margin: 0 0 4px; }
.contact-line { display: flex; align-items: center; gap: 10px; width: fit-content; }
a.contact-line.btn-reset { color: var(--text); font-weight: 600; }
a.contact-line.btn-reset:hover { color: var(--navy); }
@media (max-width: 760px) {
  .contact-layout { grid-template-columns: 1fr; }
  .contact-info { position: static; }
}

/* ---------- formulaire de candidature ---------- */
.candidature-form { max-width: 600px; margin-top: 24px; display: flex; flex-direction: column; gap: 18px; }
.candidature-form[hidden] { display: none; }
.candidature-form .form-section-title { font-size: 1.05rem; margin-top: 8px; display: flex; align-items: center; gap: 8px; }
.candidature-form .form-section-title svg { width: 18px; height: 18px; color: var(--gold-dark); }
.candidature-form .ff-row { display: flex; gap: 14px; }
.candidature-form .ff-row .ff { flex: 1; }
.ff { display: flex; flex-direction: column; gap: 7px; font-size: .88rem; color: var(--muted); font-weight: 600; }
.ff input[type="text"], .ff input[type="email"], .ff input[type="tel"], .ff textarea {
  padding: 12px 14px; border: 1.5px solid var(--border); border-radius: var(--radius-sm); font-size: .95rem; font-family: inherit;
  color: var(--text); background: var(--card-bg); font-weight: 400; transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.ff input:focus, .ff textarea:focus { outline: none; border-color: var(--gold-dark); box-shadow: 0 0 0 3px rgba(217, 179, 84, .2); }
.ff textarea { min-height: 96px; resize: vertical; }

.dropzone {
  border: 1.5px dashed var(--border-2); border-radius: var(--radius-md); padding: 16px; display: flex;
  align-items: center; gap: 12px; background: var(--bg); cursor: pointer; transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
  position: relative;
}
.dropzone:hover, .dropzone.drag { border-color: var(--gold-dark); background: #FFF9EC; }
.dropzone input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dropzone .dz-icon { width: 34px; height: 34px; flex: none; color: var(--gold-dark); }
.dropzone .dz-text { font-weight: 600; color: var(--text); font-size: .9rem; }
.dropzone .dz-sub { font-weight: 400; color: var(--muted-2); font-size: .8rem; margin-top: 2px; }
.dropzone .dz-files { font-weight: 400; color: var(--success); font-size: .82rem; margin-top: 3px; }

.form-error, .form-success {
  border-radius: var(--radius-sm); padding: 12px 16px; margin: 0; font-size: .9rem; display: flex; align-items: center; gap: 8px;
  animation: shake .35s var(--ease);
}
.form-error { background: var(--danger-bg); color: var(--danger); border: 1px solid var(--danger-border); }
.form-error[hidden] { display: none; }
.form-success { background: var(--success-bg); color: var(--success); border: 1px solid var(--success-border); }
.form-success[hidden] { display: none; }
@keyframes shake { 10%, 90% { transform: translateX(-1px); } 20%, 80% { transform: translateX(2px); } 30%, 50%, 70% { transform: translateX(-4px); } 40%, 60% { transform: translateX(4px); } }

/* ---------- confirmation ---------- */
.confirm-card {
  max-width: 560px; margin: 0 auto; background: var(--card-bg); border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-md); padding: 44px 40px;
}
.confirm-card h1 { font-size: 1.6rem; margin-bottom: 14px; }
.confirm-card p { color: var(--text); margin: 8px 0; }
.confirm-check {
  width: 64px; height: 64px; border-radius: 50%; background: var(--success-bg); border: 1.5px solid var(--success-border);
  display: flex; align-items: center; justify-content: center; margin-bottom: 20px; animation: popIn .4s var(--ease);
}
.confirm-check svg { width: 30px; height: 30px; color: var(--success); }
@keyframes popIn { from { transform: scale(.5); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* ---------- carte ---------- */
.map-wrap { position: relative; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow-md); }
#map-el { height: 68vh; min-height: 380px; }
.detail-map-el { height: 320px; }
.map-status-bar {
  display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .9rem; margin-bottom: 16px;
  background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 12px 16px;
}
.hbc-pin { filter: drop-shadow(0 3px 6px rgba(11, 27, 61, .35)); }

/* ---------- footer ---------- */
.ft { background: var(--navy-deep); color: #AEB6C9; margin-top: 70px; }
.ft-inner { max-width: 1140px; margin: 0 auto; padding: 48px 24px 40px; text-align: center; }
.ft-logo { height: 32px; opacity: .92; margin-bottom: 16px; }
.ft-title { color: #fff; font-weight: 600; font-size: 1.05rem; margin: 0 0 2px; }
.ft p { margin: 4px 0; }
.ft .small { margin-top: 14px; max-width: 460px; margin-left: auto; margin-right: auto; }

/* ---------- responsive ---------- */
@media (max-width: 880px) {
  .detail-layout { grid-template-columns: 1fr; }
  .detail-layout aside { display: none; }
  .detail-actions.mobile-only-actions { display: flex; }
}

@media (max-width: 640px) {
  .hd-toggle { display: flex; }
  .hd-nav {
    position: fixed; top: 0; right: 0; height: 100vh; width: min(78vw, 300px); background: var(--navy-deep);
    flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 4px; padding: 90px 28px 28px;
    transform: translateX(100%); transition: transform var(--dur) var(--ease); box-shadow: -16px 0 40px rgba(0, 0, 0, .3);
  }
  .hd-nav.open { transform: translateX(0); }
  .hd-nav a { padding: 14px 0; font-size: 1.05rem; width: 100%; border-bottom: 1px solid rgba(255, 255, 255, .08); }
  .hd-nav a::after { display: none; }
  .hd-backdrop { position: fixed; inset: 0; background: rgba(5, 10, 20, .5); opacity: 0; pointer-events: none; transition: opacity var(--dur) var(--ease); z-index: 20; }
  .hd-backdrop.open { opacity: 1; pointer-events: auto; }

  .hero { padding: 64px 18px 86px; }
  .hero h1 { font-size: 1.8rem; }
  .biens-section { margin-top: -50px; }
  .container { padding: 36px 18px; }
  .filters { padding: 12px; }
  .filters input, .filters select { flex: 1 1 100%; }
  .filters input[type="number"] { width: auto; }
  .filters .btn-reset { flex: 0 0 auto; }
  .specs-grid { grid-template-columns: 1fr 1fr; }
  .candidature-form .ff-row { flex-direction: column; gap: 18px; }
  .lightbox { padding: 16px; }
  .lightbox-nav { width: 40px; height: 40px; font-size: 1.6rem; }
  .lightbox-prev { left: 6px; }
  .lightbox-next { right: 6px; }
}

/* ---------- pages de contenu rendues par le serveur (conseils, FAQ, zones, mentions légales) ---------- */
.prose { max-width: 820px; margin: 0 auto; padding: 40px 0 56px; line-height: 1.65; }
.prose h1 { margin: 6px 0 12px; }
.prose h2 { margin: 32px 0 8px; font-size: 1.25rem; }
.prose ul { padding-left: 1.2em; }
.ssr-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; margin: 20px 0 8px; }
.ssr-card { display: flex; flex-direction: column; border: 1px solid rgba(11, 27, 61, .14); border-radius: 12px; overflow: hidden; color: inherit; text-decoration: none; background: #fff; }
.ssr-card:hover { box-shadow: 0 6px 20px rgba(11, 27, 61, .12); }
.ssr-card img { width: 100%; height: 160px; object-fit: cover; display: block; }
.ssr-card-body { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; font-size: .92rem; }
.ssr-links { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; }
.ssr-links li { margin: 0; }
.ssr-dl { display: grid; grid-template-columns: max-content 1fr; gap: 8px 20px; }
.ssr-dl dt { font-weight: 600; }
.ssr-dl dd { margin: 0; }
.ft-nap, .ft-links { margin: 6px 0 0; }
@media (max-width: 600px) { .ssr-dl { grid-template-columns: 1fr; } .ssr-dl dd { margin-bottom: 6px; } }

/* ---------- fiche d'un bien : caractéristiques et tableau des lots ---------- */
.feature-card {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; margin-bottom: 8px;
}
.feature {
  display: flex; gap: 12px; align-items: center; padding: 16px 18px; background: var(--card-bg);
  border: 1px solid var(--border); border-radius: var(--radius-md);
  transition: box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.feature:hover { box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.feature-ic { flex: none; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: rgba(217, 179, 84, .16); color: var(--gold-dark); }
.feature-ic svg { width: 19px; height: 19px; }
.feature-label { color: var(--muted); font-size: .74rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.feature-value { font-size: 1.08rem; font-weight: 700; color: var(--navy); margin-top: 2px; line-height: 1.3; }

.lots-card { background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius-md); overflow-x: auto; margin-bottom: 8px; }
.nw { white-space: nowrap; }
.lots-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.lots-table thead th { text-align: left; background: #F8F6EF; color: var(--navy); font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; padding: 12px 12px; border-bottom: 1px solid var(--border); }
.lots-table tbody th, .lots-table tbody td, .lots-table tfoot th, .lots-table tfoot td { padding: 14px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border); }
.lots-table tbody tr { transition: background var(--dur) var(--ease); }
.lots-table tbody tr:hover { background: #FFFCF4; }
.lots-table tbody th { color: var(--navy); font-weight: 700; white-space: nowrap; }
.lots-table td b { color: var(--navy); }
.lots-table tfoot th, .lots-table tfoot td { background: #F8F6EF; border-bottom: 0; color: var(--navy); font-weight: 700; }
.lots-table tr.is-reserved { opacity: .78; }
.lot-na { color: var(--muted-2); font-weight: 500; }
.lot-sub { display: block; margin-top: 3px; font-size: .78rem; font-weight: 500; color: var(--muted); }
.lot-split { min-width: 170px; }
.lot-bar { display: flex; height: 8px; border-radius: 99px; overflow: hidden; background: var(--bg-alt); gap: 2px; }
.lot-bar .seg { display: block; min-width: 4px; transition: flex var(--dur) var(--ease); }
.seg-entrepot, .dot-entrepot { background: var(--navy); }
.seg-activite, .dot-activite { background: #4C6A9C; }
.seg-bureaux, .dot-bureaux { background: var(--gold); }
.seg-showroom, .dot-showroom { background: #3E8E9A; }
.seg-commerce, .dot-commerce { background: #D9715A; }
.seg-stockage_ext, .dot-stockage_ext { background: #7C8B5A; }
.seg-autre, .dot-autre { background: #9AA3B2; }
.lot-legend em { font-style: normal; font-weight: 600; color: var(--navy); }
.lot-legend { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 3px; font-size: .82rem; color: var(--muted); }
.lot-legend li { display: flex; align-items: center; gap: 7px; }
.lot-legend b { color: var(--navy); margin-left: auto; padding-left: 10px; }
.dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.lot-badge { display: inline-block; padding: 4px 12px; border-radius: 99px; font-size: .78rem; font-weight: 700; }
.lot-badge.free { background: #DDF6E6; color: #1B7A43; }
.lot-badge.reserved { background: #FDEFD2; color: #9A6A0B; }
/* Plus de 3 lots : tableau compact, une ligne par lot, en-tête qui reste visible au défilement */
.lots-summary { margin: -6px 0 12px; color: var(--muted); font-size: .92rem; }
.lots-summary b { color: var(--navy); }
.lots-compact tbody th, .lots-compact tbody td, .lots-compact tfoot th, .lots-compact tfoot td { padding: 8px 12px; vertical-align: middle; }
.lots-compact .lot-split-inline { display: flex; align-items: center; gap: 10px; min-width: 240px; }
.lots-compact .lot-split-inline .lot-bar { flex: none; width: 72px; height: 7px; }
.lots-compact .lot-inline-txt { color: var(--muted); font-size: .82rem; white-space: nowrap; }
.lots-compact .lot-sub { display: inline; margin: 0 0 0 8px; }
.lots-compact .lot-badge { padding: 3px 10px; font-size: .74rem; }
.lots-card:has(.lots-compact) { max-height: 640px; overflow: auto; }
.lots-compact thead th { position: sticky; top: 0; z-index: 1; }

@media (max-width: 760px) {
  .lots-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .lots-table, .lots-table tbody, .lots-table tfoot, .lots-table tr { display: block; }
  .lots-table tbody tr, .lots-table tfoot tr { padding: 14px 16px; border-bottom: 1px solid var(--border); }
  .lots-table tbody tr:last-child { border-bottom: 0; }
  .lots-table tbody th, .lots-table tbody td, .lots-table tfoot th, .lots-table tfoot td { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; padding: 6px 0; border: 0; text-align: right; }
  .lots-table tbody th { font-size: 1.05rem; text-align: left; }
  .lots-table td::before { content: attr(data-label); flex: none; color: var(--muted); font-size: .76rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; text-align: left; padding-top: 2px; }
  .lots-table td:empty { display: none; }
  .lot-split { min-width: 0; width: 60%; }
  .lots-card:has(.lots-compact) { max-height: none; }
  .lots-compact .lot-split-inline { min-width: 0; width: auto; flex-direction: column; align-items: flex-end; gap: 4px; }
  .lots-compact .lot-split-inline .lot-bar { width: 90px; }
  .lots-compact .lot-inline-txt { white-space: normal; text-align: right; }
}
@media (max-width: 600px) {
  .feature-card { grid-template-columns: 1fr 1fr; gap: 10px; }
  .feature { flex-direction: column; align-items: flex-start; gap: 8px; padding: 12px 14px; }
  .feature-ic { width: 32px; height: 32px; }
  .feature-value { font-size: 1rem; }
}
@media (max-width: 760px) { .lot-cell { text-align: right; } }

/* ---------- fiche d'un bien : points clés (saisis dans le CRM) ---------- */
.keypoints { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; margin-bottom: 8px; }
.kp-block { background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 18px 20px; }
.kp-block h3 { margin: 0 0 10px; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--gold-dark); }
.kp-block ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.kp-block li { display: flex; gap: 10px; align-items: flex-start; line-height: 1.45; color: var(--text); }
.kp-block li svg { flex: none; width: 17px; height: 17px; margin-top: 2px; color: var(--gold-dark); }

/* ---------- carte : fiche du bien au survol d'un repère ---------- */
.leaflet-tooltip.map-tip { padding: 0; border: 0; border-radius: 14px; overflow: hidden; box-shadow: 0 10px 30px rgba(8, 16, 32, .28); background: var(--card-bg); white-space: normal; }
.leaflet-tooltip-top.map-tip::before { border-top-color: var(--card-bg); }
.tip-card { width: 240px; }
.tip-photo { display: block; width: 100%; height: 138px; object-fit: cover; background: var(--navy); }
.tip-nophoto { display: grid; place-items: center; color: var(--gold); }
.tip-nophoto svg { width: 42px; height: 42px; }
.tip-body { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; padding: 12px 14px 14px; }
.tip-body strong { color: var(--navy); font-size: .95rem; line-height: 1.3; }
.tip-meta { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; color: var(--muted); font-size: .82rem; }
.tip-meta svg { width: 14px; height: 14px; color: var(--gold-dark); }
.map-status-bar[hidden] { display: none; }

/* ---- Comparateur : photo + titre en tête, meilleure valeur surlignée, cartes à faire glisser sur téléphone ---- */
.cmp-tools { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; margin: 4px 0 16px; }
.cmp-tools .compare-toggle { margin: 0; }
.cmp-tools .btn-outline, .cmp-tools .btn-gold { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
.cmp-tools .ic svg { width: 16px; height: 16px; }
.compare-table .cmp-head td { vertical-align: top; min-width: 200px; }
.cmp-photo { display: block; aspect-ratio: 16 / 10; border-radius: 10px; overflow: hidden; background: var(--bg-alt); margin-bottom: 10px; }
.cmp-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cmp-photo .thumb-mark { display: grid; place-items: center; width: 100%; height: 100%; color: var(--muted); }
.cmp-photo .thumb-mark svg { width: 38px; height: 38px; }
.cmp-title { display: block; font-weight: 700; color: var(--navy); text-decoration: none; line-height: 1.3; margin-bottom: 8px; }
.cmp-remove { color: var(--muted); font-size: .82rem; font-weight: 600; background: var(--bg-alt); border: 1px solid var(--border); border-radius: 999px; cursor: pointer; padding: 5px 12px; font-family: inherit; }
.cmp-remove:hover { background: var(--danger-bg); color: var(--danger); border-color: var(--danger-border); }
.compare-table td.is-best { background: rgba(217, 179, 84, .14); box-shadow: inset 3px 0 0 var(--gold, #D9B354); }
.cmp-val { display: block; white-space: normal; }
.cmp-best { display: inline-block; margin-top: 4px; font-size: .68rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--gold-dark, #A67C1E); background: rgba(217, 179, 84, .22); border-radius: 999px; padding: 2px 8px; }
.cmp-plan { max-width: 170px; max-height: 120px; border-radius: 8px; border: 1px solid var(--border); display: block; }
.cmp-legend { margin-top: 12px; }
.cmp-mobile { display: none; }
.compare-table tr.cmp-key th, .compare-table tr.cmp-key td { font-weight: 700; color: var(--navy); font-size: 1rem; background: rgba(15, 30, 61, .035); }
.compare-table tr.cmp-key td.is-best { background: rgba(217, 179, 84, .2); }
.cmp-card dl > div.cmp-key { font-weight: 700; }
.compare-table.cmp-dense td { min-width: 150px; padding: 12px 12px; }
.compare-table.cmp-dense .cmp-head td { min-width: 160px; }
.cmp-cards { gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; -webkit-overflow-scrolling: touch; }
.cmp-card { flex: 0 0 82%; scroll-snap-align: center; background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 14px; box-shadow: var(--shadow-sm); }
.cmp-card dl { margin: 0 0 12px; }
.cmp-card dl > div { padding: 9px 0 9px 10px; border-top: 1px solid var(--border); }
.cmp-card dl > div.is-best { background: rgba(217, 179, 84, .14); box-shadow: inset 3px 0 0 var(--gold, #D9B354); }
.cmp-card dt { color: var(--muted); font-size: .78rem; font-weight: 600; margin-bottom: 2px; }
.cmp-card dd { margin: 0; font-size: .92rem; }
@media (max-width: 700px) { .compare-table-wrap { display: none; } .cmp-mobile { display: flex; } }
.site-notice { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 60; max-width: min(92vw, 460px); background: var(--navy); color: #fff; padding: 12px 18px; border-radius: 12px; font-size: .9rem; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); }.compare-table th { white-space: normal; min-width: 120px; max-width: 190px; }
/* Page « Nos biens » : menu de sélections et sélections par secteur */
.biens-jump { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 4px; }
.biens-jump a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border: 1px solid var(--border); border-radius: 99px; background: var(--card-bg); color: var(--navy); font-weight: 700; font-size: .92rem; text-decoration: none; transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease); }
.biens-jump a:hover { border-color: var(--gold); background: #FFFCF4; }
.biens-jump a span, .biens-sub-n { display: inline-block; min-width: 24px; padding: 1px 8px; border-radius: 99px; background: var(--bg-alt); color: var(--muted); font-size: .78rem; font-weight: 700; text-align: center; }
.biens-part { scroll-margin-top: 90px; margin-top: 36px; }
.biens-part-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.biens-part-title { display: flex; align-items: center; gap: 12px; margin: 0 0 2px; }
.biens-part-head .section-sub { margin: 0; }
.biens-part-all { color: var(--navy); font-weight: 700; font-size: .92rem; text-decoration: none; border-bottom: 2px solid var(--gold); padding-bottom: 2px; white-space: nowrap; }
.biens-part-all:hover { color: var(--gold-dark, var(--navy)); }
.biens-note { margin: 28px 0 0; color: var(--muted); font-size: .85rem; }
.biens-note .linkbtn { background: none; border: 0; padding: 0; color: var(--navy); text-decoration: underline; cursor: pointer; font: inherit; }

/* Porte de sortie « décrivez votre besoin » + champs de besoin du formulaire de contact */
.besoin-cta { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin: 36px 0 8px; padding: 22px 26px; border-radius: var(--radius-md); background: var(--navy); color: #fff; }
.alerte-form { display: none; margin: 12px 0 8px; padding: 16px 20px; border: 1px solid var(--line, #d9dce3); border-radius: var(--radius-md); background: var(--surface, #fff); }
[data-alerte] .alerte-form { display: block; }
.alerte-titre { margin: 0 0 10px; }
.alerte-ligne { display: flex; gap: 10px; flex-wrap: wrap; }
.alerte-ligne input { flex: 1 1 220px; min-width: 0; padding: 10px 12px; border: 1px solid var(--line, #c9ced8); border-radius: 6px; font: inherit; }
.alerte-consent { display: block; margin-top: 8px; font-size: .85rem; color: var(--muted, #5b6478); }
.alerte-consent input { margin-right: 6px; }
.alerte-msg { margin: 8px 0 0; font-size: .9rem; }
.alerte-msg.ok { color: #1f7a3d; } .alerte-msg.err { color: #b3261e; }
.besoin-cta h3 { margin: 0 0 4px; color: #fff; font-size: 1.15rem; }
.besoin-cta p { margin: 0; color: rgba(255,255,255,.78); max-width: 60ch; }
.besoin-fields { border: 1px solid var(--border); border-radius: var(--radius-md); padding: 6px 14px 4px; margin: 6px 0 12px; }
.besoin-fields legend { padding: 0 8px; font-weight: 700; color: var(--navy); }
