/* ============================================================
   LYMPIA IMMOBILIER — Port de Nice
   Design system « portail moderne » : fond blanc, coins arrondis,
   ombres douces, accent terracotta.
   Typo : Roboto (texte & titres) · Roboto Condensed (logo) · Roboto Mono (data)
   ============================================================ */

:root {
  --bg: #FFFFFF;
  --bg-alt: #F7F8FA;
  --ink: #1C2533;
  --muted: #66707F;
  --navy: #123B8C;
  --accent: #0B5FFF;
  --accent-dark: #0847C9;
  --accent-soft: #EBF1FF;
  --ochre: #00A6E8;
  --line: #E7EAF0;

  --font-display: "Roboto", sans-serif;
  --font-body: "Roboto", sans-serif;
  --font-mono: "Roboto Mono", monospace;
  --font-logo: "Roboto", sans-serif;

  --radius: 16px;
  --radius-sm: 10px;
  --radius-pill: 999px;
  --shadow-1: 0 1px 3px rgba(16, 32, 64, 0.06), 0 3px 10px rgba(16, 32, 64, 0.05);
  --shadow-2: 0 8px 28px rgba(16, 32, 64, 0.12);
  --header-h: 64px;
}

/* Transitions de page façon SPA : le contenu fond, le header reste en place */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation-duration: 0.14s; }
::view-transition-new(root) { animation-duration: 0.14s; }
.site-header { view-transition-name: site-header; }
.site-footer { view-transition-name: site-footer; }
@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--accent); color: #fff; }

img, svg { display: block; max-width: 100%; }

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.wrap {
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 48px);
}

/* ---------- Typographie ---------- */

h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(36px, 5vw, 58px); font-weight: 900; line-height: 1.05; }
h2 { font-size: clamp(26px, 3.4vw, 38px); }
h3 { font-size: 20px; font-weight: 700; letter-spacing: -0.01em; }

.kicker {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.lead {
  font-size: clamp(16px, 1.5vw, 18.5px);
  color: var(--muted);
  max-width: 58ch;
}

.accent { color: var(--accent); }

/* ---------- Boutons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  padding: 14px 26px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  background: var(--accent);
  color: #fff;
  box-shadow: 0 2px 10px rgba(11, 95, 255, 0.22);
  transition: background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.btn .arrow { transition: transform 0.18s ease; }
.btn:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(11, 95, 255, 0.3);
}
.btn:hover .arrow { transform: translateX(3px); }
.btn:active { transform: scale(0.97); box-shadow: 0 1px 4px rgba(11, 95, 255, 0.2); }

.btn--ghost {
  background: #fff;
  color: var(--ink);
  border: 1.5px solid var(--line);
  box-shadow: none;
}
.btn--ghost:hover {
  background: var(--bg-alt);
  border-color: #C9D2DC;
  box-shadow: var(--shadow-1);
}
.btn--sand { background: #fff; color: var(--accent-dark); box-shadow: var(--shadow-1); }
.btn--ink { background: var(--navy); color: #fff; box-shadow: none; }
.btn--ink:hover { background: #0F1B2E; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  height: var(--header-h);
  max-width: 1440px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.brand-name {
  font-family: var(--font-logo);
  font-weight: 900;
  font-size: 23px;
  letter-spacing: -0.02em;
  line-height: 1;
  display: block;
  color: var(--accent);
  white-space: nowrap;
}
.brand-sub {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--muted);
  margin-top: 3px;
  white-space: nowrap;
  display: block;
}

.main-nav {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: clamp(10px, 1.6vw, 22px);
}
.main-nav a:not(.btn) {
  font-size: 15px;
  font-weight: 500;
  color: #44546A;
  text-decoration: none;
  padding: 6px 2px;
  white-space: nowrap;
  transition: color 0.15s ease;
}
.main-nav a:not(.btn):hover { color: var(--ink); }
.main-nav a.is-active { color: var(--accent); font-weight: 700; }
.main-nav .btn { padding: 11px 20px; font-size: 14px; white-space: nowrap; }

.nav-toggle {
  display: none;
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  width: 44px;
  height: 44px;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  flex: none;
}
.nav-toggle span {
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 1220px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    flex-wrap: wrap;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-2);
    padding: 8px clamp(20px, 4vw, 48px) 20px;
    display: none;
  }
  .nav-open .main-nav { display: flex; }
  .main-nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); white-space: normal; }
  .main-nav .btn { margin-top: 16px; }
}

/* ---------- Hero ---------- */

.hero {
  padding-block: clamp(40px, 6vw, 80px);
  background: linear-gradient(180deg, var(--accent-soft) 0%, rgba(235, 241, 255, 0) 62%);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
.hero h1 { margin-bottom: 18px; }
.hero .lead { margin-bottom: 30px; }

.hero-art {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--shadow-2);
  overflow: hidden;
}
.hero-art svg { width: 100%; height: auto; }
.hero-art-caption {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 18px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { max-width: 560px; }
}

/* Module de recherche façon portail */

.search-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-2);
  overflow: hidden;
}
.search-tabs {
  display: flex;
  border-bottom: 1px solid var(--line);
  background: #FBFCFD;
}
.search-tabs a {
  padding: 15px 22px;
  font-weight: 600;
  font-size: 14.5px;
  color: var(--muted);
  text-decoration: none;
  position: relative;
  transition: color 0.15s ease;
}
.search-tabs a:hover { color: var(--ink); }
.search-tabs a.is-active { color: var(--accent); }
.search-tabs a.is-active::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: -1px;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: var(--accent);
}
.search-fields {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr auto;
  gap: 12px;
  padding: 18px 18px 14px;
}
.search-fields .btn { border-radius: 12px; padding: 13px 24px; }
@media (max-width: 720px) {
  .search-fields { grid-template-columns: 1fr 1fr; }
  .search-fields .btn { grid-column: 1 / -1; }
}
.search-hint {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 20px 16px;
  font-size: 12.5px;
  color: var(--muted);
}
.search-hint::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2EA36B;
  flex: none;
}

/* ---------- Barre de réassurance ---------- */

.trust-bar {
  background: var(--bg-alt);
  border-block: 1px solid var(--line);
  padding-block: 20px;
}
.trust-bar .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 40px;
  justify-content: space-between;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13.5px;
  color: var(--muted);
}
.trust-item strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}
.trust-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
  flex: none;
}

/* ---------- Sections ---------- */

.section { padding-block: clamp(44px, 6vw, 76px); }
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: clamp(28px, 4vw, 44px);
}
.section-head .lead { margin-top: 12px; }
@media (max-width: 720px) {
  .section-head { flex-direction: column; align-items: flex-start; }
}

/* ---------- Cartes de biens ---------- */

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(18px, 2.2vw, 28px);
}
@media (max-width: 980px) { .cards-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .cards-grid { grid-template-columns: 1fr; } }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-1);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-2);
  border-color: #D8DEE6;
}
.card:active { transform: scale(0.985); }
.card-media {
  position: relative;
  background: var(--bg-alt);
}
.card-media img, .card-media svg { width: 100%; height: auto; }
.card-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #fff;
  color: var(--ink);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-1);
}
.card-tag--terra { background: var(--accent); color: #fff; }

.card-fav {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-1);
  display: grid;
  place-items: center;
  font-size: 17px;
  line-height: 1;
  color: #B9C3CE;
  cursor: pointer;
  transition: color 0.15s ease, transform 0.15s ease, background 0.15s ease;
}
.card-fav:hover { color: var(--accent); transform: scale(1.08); }
.card-fav.is-active { color: var(--accent); background: var(--accent-soft); border-color: rgba(11, 95, 255, 0.3); }

.card-body { padding: 18px 20px 20px; flex: 1; display: flex; flex-direction: column; }
.card-price {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}
.card-price strong {
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.card-price .m2 {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--muted);
  white-space: nowrap;
}
.card-title {
  font-weight: 700;
  font-size: 17px;
  line-height: 1.25;
  margin-bottom: 3px;
}
.card-place { font-size: 14px; color: var(--muted); margin-bottom: 16px; }
.card-meta {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}
.card-meta span {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--muted);
  background: var(--bg-alt);
  padding: 5px 11px;
  border-radius: var(--radius-pill);
}
.card-meta .dpe {
  background: #E7F4EC;
  color: #1E7A4A;
  font-weight: 700;
}

/* ---------- Section quartier (bande grise, cartes blanches) ---------- */

.section--ink {
  background: var(--bg-alt);
  border-block: 1px solid var(--line);
}

.quartier-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(16px, 2vw, 24px);
  margin-top: clamp(28px, 4vw, 44px);
}
@media (max-width: 780px) { .quartier-grid { grid-template-columns: 1fr; } }

.quartier-cell {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(22px, 3vw, 32px);
  box-shadow: var(--shadow-1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.quartier-cell:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }
.quartier-cell .num {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--accent);
  display: block;
  margin-bottom: 12px;
}
.quartier-cell h3 { margin-bottom: 8px; }
.quartier-cell p { font-size: 14.5px; color: var(--muted); margin-bottom: 16px; }
.quartier-cell .prix-m2 {
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--accent-dark);
  background: var(--accent-soft);
  display: inline-block;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
}

/* ---------- Services ---------- */

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(16px, 2vw, 24px);
}
@media (max-width: 980px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .services-grid { grid-template-columns: 1fr; } }

.service {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 22px 28px;
  box-shadow: var(--shadow-1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.service:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }
.service .num {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--accent);
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent-soft);
  margin-bottom: 22px;
}
.service h3 { margin-bottom: 10px; }
.service p { font-size: 14.5px; color: var(--muted); }

/* ---------- Témoignages ---------- */

.quotes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2vw, 24px);
}
@media (max-width: 900px) { .quotes-grid { grid-template-columns: 1fr; } }

.quote {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow-1);
  display: flex;
  flex-direction: column;
}
.quote .mark {
  font-weight: 900;
  font-size: 54px;
  line-height: 0.6;
  color: var(--accent);
  margin-bottom: 20px;
}
.quote blockquote {
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 22px;
  flex: 1;
}
.quote .author {
  font-size: 14px;
  font-weight: 700;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}
.quote .author em { display: block; font-style: normal; font-weight: 400; font-size: 12.5px; color: var(--muted); margin-top: 3px; }

/* ---------- Bande CTA ---------- */

.cta-band { padding-block: 8px clamp(56px, 8vw, 96px); }
.cta-band .wrap {
  background: linear-gradient(120deg, var(--accent) 0%, var(--accent-dark) 100%);
  color: #fff;
  max-width: 1200px;
  border-radius: 24px;
  padding-block: clamp(40px, 6vw, 64px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  box-shadow: 0 20px 50px -20px rgba(8, 71, 201, 0.5);
}
@media (min-width: 1240px) { .cta-band .wrap { padding-inline: 56px; } }
@media (max-width: 1239px) { .cta-band { padding-inline: 16px; } }
.cta-band h2 { max-width: 18ch; }
.cta-band p {
  font-size: 15.5px;
  color: rgba(255, 255, 255, 0.9);
  max-width: 46ch;
  margin-top: 12px;
}
.cta-band .btn { background: #fff; color: var(--accent); box-shadow: var(--shadow-1); }
.cta-band .btn:hover { background: var(--accent-soft); transform: translateY(-2px); }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--bg-alt);
  color: var(--ink);
  border-top: 1px solid var(--line);
  padding-block: clamp(48px, 7vw, 72px) 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
  gap: clamp(28px, 4vw, 56px);
  padding-bottom: 44px;
  border-bottom: 1px solid var(--line);
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-brand .brand-name { font-size: 25px; }
.footer-brand p {
  font-size: 14px;
  color: var(--muted);
  margin-top: 14px;
  max-width: 34ch;
}
.footer-col h4 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; font-size: 14.5px; }
.footer-col a {
  text-decoration: none;
  color: #44546A;
  transition: color 0.15s ease;
}
.footer-col a:hover { color: var(--accent); }
.footer-col address { font-style: normal; font-size: 14.5px; color: var(--muted); line-height: 1.9; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 24px;
  font-size: 12px;
  color: var(--muted);
}

/* ---------- Page hero (pages intérieures) ---------- */

.page-hero {
  padding-block: clamp(28px, 4vw, 48px);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, var(--accent-soft) 0%, rgba(235, 241, 255, 0) 80%);
}
.page-hero h1 { font-size: clamp(32px, 4.6vw, 52px); margin-bottom: 16px; }
.page-hero .lead { max-width: 64ch; }

/* ---------- Filtres (page biens) ---------- */

.filters {
  position: sticky;
  top: calc(var(--header-h) + 12px);
  z-index: 30;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-2);
  padding: 18px;
  margin-bottom: clamp(28px, 4vw, 40px);
}
.filter-field { display: flex; flex-direction: column; gap: 7px; min-width: 160px; flex: 1; }
.filter-field label,
.form-field label {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.filters .count {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  margin-left: auto;
  padding-bottom: 13px;
  white-space: nowrap;
}
.filters .reset {
  background: none;
  border: none;
  font-size: 12.5px;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
  color: var(--muted);
  cursor: pointer;
  padding-bottom: 14px;
}
.filters .reset:hover { color: var(--accent); }
@media (max-width: 720px) {
  .filters { position: static; }
  .filters .count { margin-left: 0; }
}

select, input[type="text"], input[type="email"], input[type="tel"], input[type="number"], textarea {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--ink);
  background: #fff;
  border: 1.5px solid #DCE2E9;
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  width: 100%;
  appearance: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
select:hover, input:hover, textarea:hover { border-color: #B9C3CE; }
select:focus, input:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(11, 95, 255, 0.15);
}
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%235B6B7C' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
  cursor: pointer;
}
textarea { resize: vertical; min-height: 140px; }

.empty-state {
  border: 1.5px dashed #C9D2DC;
  border-radius: var(--radius);
  padding: 56px 24px;
  text-align: center;
  font-size: 15px;
  color: var(--muted);
  display: none;
}
.empty-state.is-visible { display: block; }

/* ---------- Page agence ---------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
@media (max-width: 880px) { .split { grid-template-columns: 1fr; } }
.split .lead { margin-bottom: 18px; }
.split p + p { margin-top: 14px; color: var(--muted); }

.big-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2vw, 24px);
}
@media (max-width: 620px) { .big-stats { grid-template-columns: 1fr; } }
.big-stat {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-1);
  padding: 30px 26px;
}
.big-stat .num {
  font-weight: 900;
  font-size: clamp(36px, 4.4vw, 52px);
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--accent);
}
.big-stat .label {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  margin-top: 10px;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(16px, 2vw, 24px);
}
@media (max-width: 980px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .team-grid { grid-template-columns: 1fr; } }

.member {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-1);
  padding: 28px 22px;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.member:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }
.member .avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 24px;
  color: #fff;
}
.member h3 { font-size: 18px; margin-bottom: 3px; }
.member .role {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.member p { font-size: 13.5px; color: var(--muted); }

.timeline { list-style: none; border-left: 2px solid var(--line); padding-left: 32px; max-width: 640px; }
.timeline li { position: relative; padding-bottom: 32px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: "";
  position: absolute;
  left: -40px;
  top: 5px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid #fff;
  box-shadow: 0 0 0 1.5px var(--accent);
}
.timeline .year {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.12em;
  color: var(--accent);
  display: block;
  margin-bottom: 5px;
}
.timeline h3 { margin-bottom: 5px; }
.timeline p { font-size: 14.5px; color: var(--muted); max-width: 52ch; }

/* ---------- Formulaires (estimation + contact) ---------- */

.form-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: clamp(24px, 4vw, 40px);
  box-shadow: var(--shadow-2);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.form-field { display: flex; flex-direction: column; gap: 7px; }
.form-field--full { grid-column: 1 / -1; }

.steps-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 32px;
}
.steps-bar .step-pill {
  flex: 1;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  padding: 10px 8px;
  border-radius: var(--radius-pill);
  color: var(--muted);
  background: var(--bg-alt);
  transition: background 0.2s ease, color 0.2s ease;
}
.steps-bar .step-pill.is-active { background: var(--ink); color: #fff; }
.steps-bar .step-pill.is-done { background: var(--accent-soft); color: var(--accent-dark); }

.form-step { display: none; }
.form-step.is-active { display: block; animation: stepIn 0.35s ease; }
@keyframes stepIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.form-nav {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 30px;
}

.choice-row { display: flex; flex-wrap: wrap; gap: 10px; }
.choice-row input { position: absolute; opacity: 0; pointer-events: none; }
.choice-row label.choice {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  border: 1.5px solid #DCE2E9;
  border-radius: var(--radius-pill);
  padding: 10px 18px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.choice-row input:checked + label.choice {
  background: var(--accent-soft);
  color: var(--accent-dark);
  border-color: var(--accent);
}
.choice-row input:focus-visible + label.choice { outline: 2px solid var(--accent); outline-offset: 2px; }
.choice-row label.choice:hover { border-color: #B9C3CE; }

.result-panel { display: none; text-align: center; padding-block: 12px; }
.result-panel.is-visible { display: block; animation: stepIn 0.35s ease; }
.result-panel .result-kicker {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}
.result-panel .result-range {
  font-weight: 900;
  font-size: clamp(28px, 4.2vw, 46px);
  letter-spacing: -0.02em;
  color: var(--accent);
  line-height: 1.1;
  margin-bottom: 14px;
}
.result-panel .result-detail {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 26px;
}
.result-panel .note {
  font-size: 13.5px;
  color: var(--muted);
  max-width: 52ch;
  margin: 24px auto 0;
}

.form-error {
  display: none;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--accent-dark);
  background: var(--accent-soft);
  border: 1px solid rgba(11, 95, 255, 0.35);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  margin-top: 20px;
}
.form-error.is-visible { display: block; }

.form-success {
  display: none;
  text-align: center;
  padding: 44px 24px;
}
.form-success.is-visible { display: block; animation: stepIn 0.35s ease; }
.form-success .check {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #2EA36B;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 28px;
  margin: 0 auto 22px;
}
.form-success h3 { margin-bottom: 8px; }
.form-success p { color: var(--muted); max-width: 46ch; margin-inline: auto; }

/* ---------- Page contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(32px, 4vw, 56px);
  align-items: start;
}
@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; } }

.info-block { border-top: 1px solid var(--line); padding-block: 20px; }
.info-block:last-of-type { border-bottom: 1px solid var(--line); }
.info-block h3 { font-size: 15px; margin-bottom: 6px; }
.info-block p, .info-block address {
  font-style: normal;
  font-size: 15px;
  color: var(--muted);
  line-height: 1.75;
}
.info-block a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }

.map-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow-2);
  margin-top: 32px;
}
.map-card svg { width: 100%; height: auto; }
.map-caption {
  border-top: 1px solid var(--line);
  padding: 12px 18px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--muted);
}

.pin-pulse { animation: pinPulse 2s ease-out infinite; transform-origin: center; }
@keyframes pinPulse {
  0% { opacity: 0.7; transform: scale(0.6); }
  100% { opacity: 0; transform: scale(2.2); }
}

/* ---------- Animations ---------- */

.hero [data-hero] {
  opacity: 0;
  transform: translateY(10px);
  animation: heroIn 0.32s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
  animation-delay: calc(var(--d, 0s) * 0.45);
}
@keyframes heroIn {
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .hero [data-hero] { animation: none; opacity: 1; transform: none; }
}

.reveal {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.26s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.26s cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: calc(var(--d, 0s) * 0.4);
}
.reveal.in { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ============================================================
   Fiche de bien (bien.html)
   ============================================================ */

/* ---------- Fil d'ariane ---------- */

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-block: 18px 8px;
  font-size: 13px;
  color: var(--muted);
}
.breadcrumb a { text-decoration: none; color: var(--muted); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span[data-bc] { color: var(--ink); font-weight: 600; }

/* ---------- Grille principale ---------- */

.detail-top { padding-block: 12px clamp(48px, 6vw, 72px); }
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: clamp(24px, 3vw, 44px);
  align-items: start;
}
.detail-grid > * { min-width: 0; }
@media (max-width: 980px) { .detail-grid { grid-template-columns: 1fr; } }

/* ---------- Galerie ---------- */

.gallery-main {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-1);
  background: var(--bg-alt);
}
.gallery-main img { width: 100%; height: auto; cursor: pointer; display: block; }
.gallery-count {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(27, 43, 63, 0.85);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
}
.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 10px;
}
.thumb {
  border: 2px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  padding: 0;
  cursor: pointer;
  background: var(--bg-alt);
  opacity: 0.75;
  transition: opacity 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.thumb img { width: 100%; height: auto; display: block; }
.thumb:hover { opacity: 1; transform: translateY(-2px); }
.thumb.is-active { opacity: 1; border-color: var(--accent); }

/* ---------- En-tête du bien ---------- */

.detail-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-top: 26px;
}
.detail-header h1 {
  font-size: clamp(22px, 2.8vw, 30px);
  font-weight: 800;
  line-height: 1.2;
}
.detail-place { font-size: 15px; color: var(--muted); margin-top: 6px; }
.detail-actions { display: flex; align-items: center; gap: 10px; flex: none; }
.detail-actions .card-fav { position: static; }
.detail-actions .btn { padding: 10px 18px; font-size: 13.5px; }

.detail-price-row {
  display: flex;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 18px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}
.detail-price-row strong {
  font-size: clamp(28px, 3.6vw, 38px);
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--accent);
}
.detail-price-row span {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--muted);
}

/* ---------- Points clés ---------- */

.facts-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(105px, 1fr));
  gap: 10px;
  margin-top: 22px;
}
.fact {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px 10px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.fact-value { font-weight: 700; font-size: 15.5px; }
.fact-label {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Sections de la fiche ---------- */

.detail-section { margin-top: clamp(36px, 4vw, 48px); }
.detail-section h2 { font-size: clamp(21px, 2.4vw, 26px); margin-bottom: 18px; }
.detail-desc p { color: #33465C; }
.detail-desc p + p { margin-top: 14px; }

/* ---------- Caractéristiques ---------- */

.chars-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 36px;
}
@media (max-width: 640px) { .chars-grid { grid-template-columns: 1fr; } }
.char-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-block: 11px;
  border-bottom: 1px solid var(--line);
  font-size: 14.5px;
}
.char-row dt { color: var(--muted); }
.char-row dd { font-weight: 600; text-align: right; }

/* ---------- Diagnostics ---------- */

.diag-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(16px, 2vw, 24px);
}
@media (max-width: 760px) { .diag-grid { grid-template-columns: 1fr; } }
.diag-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-1);
  padding: 22px;
}
.diag-card h3 { font-size: 14.5px; margin-bottom: 16px; }
.scale-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
  opacity: 0.4;
  transition: opacity 0.2s ease;
}
.scale-row.is-active { opacity: 1; }
.scale-bar {
  display: block;
  padding: 6px 12px;
  border-radius: 6px;
  font-weight: 800;
  font-size: 13px;
  color: #fff;
}
.scale-row.is-active .scale-bar {
  outline: 2.5px solid var(--ink);
  outline-offset: 2px;
}
.scale-val {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--ink);
  font-weight: 500;
  white-space: nowrap;
}
.diag-note { font-size: 12.5px; color: var(--muted); margin-top: 14px; max-width: 62ch; }

/* ---------- Quartier ---------- */

.secteur-card {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(20px, 3vw, 28px);
}
.secteur-card h3 { margin-bottom: 8px; }
.secteur-card > p { font-size: 14.5px; color: var(--muted); margin-bottom: 16px; }
.secteur-card .prix-m2 {
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--accent-dark);
  background: var(--accent-soft);
  display: inline-block;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
}
.secteur-position {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

/* ---------- Calculette de financement ---------- */

.calc-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-1);
  padding: clamp(20px, 3vw, 28px);
}
.calc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 640px) { .calc-grid { grid-template-columns: 1fr; } }
.calc-result {
  display: flex;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.calc-result strong {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--accent);
}
.calc-result span {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
}

/* ---------- Colonne latérale ---------- */

.detail-aside { position: sticky; top: calc(var(--header-h) + 16px); }
@media (max-width: 980px) { .detail-aside { position: static; } }
.aside-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow-2);
  padding: 26px;
}
.aside-kicker {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}
.agent { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.agent-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  flex: none;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 19px;
  color: #fff;
}
.agent-info strong { display: block; font-size: 16px; }
.agent-info span { font-size: 12.5px; color: var(--muted); }
.aside-card > .btn { width: 100%; margin-bottom: 10px; }
.aside-card form h3 { font-size: 17px; margin-bottom: 14px; padding-top: 18px; border-top: 1px solid var(--line); }
.aside-card .form-field { margin-bottom: 14px; }
.aside-card textarea { min-height: 96px; }
.aside-card form .btn { width: 100%; }
.aside-note { font-size: 11.5px; color: var(--muted); margin-top: 12px; }
.aside-card .form-success { padding: 24px 8px; }
.choice-row--slots label.choice { padding: 8px 13px; font-size: 12.5px; }

/* ============================================================
   Portail : favoris, carte interactive, marché
   ============================================================ */

/* ---------- Lien favoris du header ---------- */

.main-nav .nav-fav {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 17px;
  color: #44546A;
}
.main-nav .nav-fav:hover, .main-nav .nav-fav.is-active { color: var(--accent); }
.fav-count {
  background: var(--accent);
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1;
  padding: 3px 7px;
  border-radius: var(--radius-pill);
}

/* ---------- Page carte ---------- */

.carte-page { padding-bottom: 8px; }
.filters--carte { position: static; box-shadow: var(--shadow-1); }
.filters--carte .filter-field { max-width: 260px; }

.carte-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(18px, 2.4vw, 28px);
  align-items: start;
}
.carte-layout > * { min-width: 0; }
@media (max-width: 1000px) { .carte-layout { grid-template-columns: 1fr; } }

.carte-map-col { position: sticky; top: calc(var(--header-h) + 12px); }
@media (max-width: 1000px) { .carte-map-col { position: static; } }
.map-card--big { margin-top: 0; }

/* Vraie carte Leaflet (OpenStreetMap / CARTO) */
#map { height: 560px; width: 100%; }
#contact-map { height: 340px; width: 100%; }
.bien-map {
  height: 260px;
  margin-top: 18px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--line);
}
.leaflet-container { font-family: var(--font-body); z-index: 0; }
.leaflet-container a { color: var(--accent); }
.leaflet-control-attribution svg { display: inline; width: 12px !important; height: 8px !important; }

.price-pin-anchor { background: none; border: none; }
.price-pin {
  position: relative;
  display: inline-block;
  transform: translate(-50%, calc(-100% - 7px));
  background: #fff;
  color: var(--ink);
  border-color: var(--ink);
  font-weight: 700;
  font-size: 12.5px;
  line-height: 1;
  padding: 7px 12px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--ink);
  box-shadow: 0 2px 8px rgba(16, 32, 64, 0.3);
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.12s ease, color 0.12s ease, border-color 0.12s ease;
}
.price-pin::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -5px;
  width: 8px;
  height: 8px;
  background: inherit;
  border-right: 1.5px solid;
  border-bottom: 1.5px solid;
  border-color: inherit;
  transform: translateX(-50%) rotate(45deg);
}
.price-pin:hover,
.leaflet-marker-icon.is-active .price-pin,
.price-pin--brand {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent-dark);
}
.price-pin--brand { font-weight: 900; }

.map-selected { margin-top: 14px; }
.mini-card {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-2);
  padding: 12px;
  text-decoration: none;
  animation: stepIn 0.3s ease;
}
.mini-card img {
  width: 108px;
  height: 81px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  flex: none;
}
.mini-card-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.mini-card-info strong { font-size: 17px; font-weight: 800; color: var(--accent); }
.mini-card-title { font-weight: 700; font-size: 14.5px; }
.mini-card-meta { font-size: 12.5px; color: var(--muted); }
.mini-card-cta {
  margin-left: auto;
  flex: none;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  white-space: nowrap;
}

.cards-grid--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 560px) { .cards-grid--2 { grid-template-columns: 1fr; } }
.cards-grid--2 .card-title { font-size: 15px; }
.cards-grid--2 .card-price strong { font-size: 18px; }
.cards-grid--2 .card-meta span { font-size: 11px; padding: 4px 8px; }

.card.is-selected { outline: 3px solid var(--accent); outline-offset: 0; }

/* ---------- Graphiques ---------- */

.chart-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-1);
  padding: clamp(18px, 2.6vw, 28px);
}
.chart-card svg { width: 100%; height: auto; }
.chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 14px;
}
.chart-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
}
.chart-legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex: none;
}

.bars { display: flex; flex-direction: column; gap: 14px; }
.bar-row { display: grid; grid-template-columns: 130px 1fr 110px; align-items: center; gap: 14px; }
@media (max-width: 560px) { .bar-row { grid-template-columns: 100px 1fr 90px; } }
.bar-label { font-size: 13.5px; font-weight: 700; }
.bar-track { background: var(--bg-alt); border-radius: var(--radius-pill); height: 22px; overflow: hidden; }
.bar-fill { height: 100%; border-radius: var(--radius-pill); transition: width 0.6s ease; }
.bar-value { font-family: var(--font-mono); font-size: 12.5px; color: var(--muted); text-align: right; }

/* ---------- Tables de ventes ---------- */

.table-scroll { overflow-x: auto; }
.sales-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-1);
  font-size: 14px;
}
.sales-table th {
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--bg-alt);
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.sales-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.sales-table tbody tr:last-child td { border-bottom: none; }
.sales-table tbody tr:hover { background: #FBFCFD; }
.sales-table .sales-prix { font-weight: 700; }
.sales-table .sales-rue { font-weight: 500; }

/* ---------- Indicateurs (page marché) ---------- */

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(14px, 2vw, 24px);
}
@media (max-width: 900px) { .kpi-grid { grid-template-columns: repeat(2, 1fr); } }
.kpi {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-1);
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.kpi-value {
  font-weight: 900;
  font-size: clamp(28px, 3.4vw, 40px);
  letter-spacing: -0.02em;
  line-height: 1;
}
.kpi-value--up { color: #1E7A4A; }
.kpi-label { font-size: 13px; color: var(--muted); }
@media (max-width: 520px) {
  .kpi-grid { gap: 10px; }
  .kpi { padding: 16px 14px; gap: 5px; }
  .kpi-value { font-size: 24px; }
  .kpi-label { font-size: 11.5px; }
}

/* ---------- Décomposition du coût mensuel ---------- */

.cost-breakdown { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); }
.cost-breakdown:empty { display: none; }
.cost-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.cost-total span { font-size: 13.5px; font-weight: 600; color: var(--muted); }
.cost-total strong { font-size: 20px; font-weight: 800; }
.cost-bar {
  display: flex;
  height: 14px;
  border-radius: var(--radius-pill);
  overflow: hidden;
  background: var(--bg-alt);
}
.cost-seg { height: 100%; }
.cost-legend { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 12px; }

/* ============================================================
   Conversion : téléphone header, bloc vendeur, preuves, alertes
   ============================================================ */

/* Téléphone dans le header avec pastille « ouvert » */
.nav-tel {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700 !important;
  font-size: 14.5px !important;
  color: var(--ink) !important;
  white-space: nowrap;
}
.nav-tel:hover { color: var(--accent) !important; }

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2EA36B;
  display: inline-block;
  flex: none;
  animation: livePulse 2s ease-out infinite;
}
@keyframes livePulse {
  0% { box-shadow: 0 0 0 0 rgba(46, 163, 107, 0.45); }
  70% { box-shadow: 0 0 0 6px rgba(46, 163, 107, 0); }
  100% { box-shadow: 0 0 0 0 rgba(46, 163, 107, 0); }
}

/* Bloc vendeurs (accueil) */
.sell-band {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow-2);
  padding: clamp(24px, 4vw, 48px);
}
@media (max-width: 880px) { .sell-band { grid-template-columns: 1fr; } }
.sell-points { list-style: none; margin: 22px 0 26px; }
.sell-points li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 11px;
  font-size: 15.5px;
  font-weight: 500;
}
.sell-points li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  width: 21px;
  height: 21px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  display: grid;
  place-items: center;
}
.sell-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.sell-note { font-size: 12.5px; color: var(--muted); margin-top: 14px; }
.sell-visual { display: flex; flex-direction: column; gap: 12px; }
.sell-stat {
  display: flex;
  align-items: baseline;
  gap: 16px;
  background: var(--accent-soft);
  border-radius: 14px;
  padding: 18px 22px;
}
.sell-stat strong {
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
  min-width: 86px;
}
.sell-stat span { font-size: 13.5px; color: var(--muted); }

/* Comment ça marche */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2vw, 24px);
}
@media (max-width: 780px) { .steps-grid { grid-template-columns: 1fr; } }
.step-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-1);
  padding: 26px 24px;
}
.step-num {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 900;
  font-size: 17px;
  margin-bottom: 18px;
}
.step-card h3 { margin-bottom: 8px; }
.step-card p { font-size: 14.5px; color: var(--muted); }

/* Note clients */
.rating-summary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-1);
  padding: 11px 20px;
  font-size: 13.5px;
  color: var(--muted);
  white-space: nowrap;
}
.rating-summary .stars { color: #F5A623; letter-spacing: 2px; font-size: 15px; }
.rating-summary strong { font-size: 15.5px; color: var(--ink); font-variant-numeric: tabular-nums; }

/* Vendus récemment */
.vendus-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(14px, 2vw, 20px);
}
@media (max-width: 900px) {
  .vendus-row {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 8px;
  }
  .vendu-card { min-width: 225px; scroll-snap-align: start; }
}
.vendu-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-1);
}
.vendu-card img { width: 100%; height: auto; opacity: 0.88; }
.vendu-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--navy);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 6px 11px;
  border-radius: var(--radius-pill);
}
.vendu-body { padding: 13px 15px 15px; }
.vendu-body strong { display: block; font-size: 14.5px; }
.vendu-body span { font-size: 12.5px; color: var(--muted); }

/* Alerte e-mail */
.alert-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px 36px;
  align-items: center;
  background: var(--accent-soft);
  border: 1px solid rgba(11, 95, 255, 0.25);
  border-radius: 20px;
  padding: clamp(20px, 3vw, 30px);
  margin-top: 36px;
}
@media (max-width: 780px) { .alert-card { grid-template-columns: 1fr; } }
.alert-card h3 { margin-bottom: 4px; }
.alert-card p { font-size: 14.5px; color: var(--muted); }
.alert-form { display: flex; gap: 10px; min-width: min(360px, 100%); }
@media (max-width: 480px) { .alert-form { flex-direction: column; } }
.alert-form input { background: #fff; }
.alert-form .btn { flex: none; }
.alert-success { font-weight: 600; color: #1E7A4A; font-size: 14.5px; grid-column: 1 / -1; }

/* Slide-in estimation (desktop) */
.slidein {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 70;
  width: 320px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 16px 48px rgba(16, 32, 64, 0.22);
  padding: 22px;
  transform: translateY(24px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.slidein.is-visible { transform: none; opacity: 1; pointer-events: auto; }
.slidein .kicker { margin-bottom: 6px; }
.slidein-title { display: block; font-size: 18px; font-weight: 800; letter-spacing: -0.01em; margin-bottom: 8px; }
.slidein-text { font-size: 13.5px; color: var(--muted); margin-bottom: 16px; }
.slidein .btn { width: 100%; padding: 12px 20px; font-size: 14px; }
.slidein-close {
  position: absolute;
  top: 10px;
  right: 14px;
  border: none;
  background: none;
  font-size: 20px;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
}
.slidein-close:hover { color: var(--ink); }
@media (max-width: 919px) { .slidein { display: none; } }

/* Micro-conversions de la fiche bien */
.agent-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--muted);
  margin: -4px 0 16px;
}
.aside-ctas { display: flex; gap: 10px; margin-bottom: 18px; }
.aside-ctas .btn { flex: 1; padding: 11px 8px; font-size: 13.5px; }
.btn--wa { color: #1DA851; border-color: #BFE6CF; }
.btn--wa:hover { background: #EAF7EF; border-color: #8FD3A8; }
.callback { margin-bottom: 16px; }
.callback label {
  display: block;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.callback-row { display: flex; gap: 8px; }
.callback-row input { flex: 1; }
.callback-row .btn { flex: none; padding: 12px 18px; }
.callback-done { font-weight: 600; font-size: 14px; color: #1E7A4A; margin-bottom: 16px; }

/* ============================================================
   Feeling « app » : header, chiffres, barre d'onglets mobile
   ============================================================ */

/* Ombre du header uniquement après scroll */
.site-header { transition: box-shadow 0.2s ease; }
.site-header.is-scrolled { box-shadow: 0 1px 0 var(--line), 0 4px 16px rgba(16, 32, 64, 0.07); border-bottom-color: transparent; }

/* Chiffres alignés, rendu « produit » */
.card-price strong, .detail-price-row strong, .kpi-value, .calc-result strong,
.cost-total strong, .mini-card-info strong, .result-range, .sales-table td {
  font-variant-numeric: tabular-nums;
}

/* Barre d'onglets mobile fixe */
.tabbar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 60;
  display: none;
  grid-template-columns: repeat(5, 1fr);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom);
}
.tabbar a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 9px 4px 8px;
  text-decoration: none;
  font-size: 10.5px;
  font-weight: 600;
  color: var(--muted);
  position: relative;
  transition: color 0.12s ease;
}
.tabbar a:active { transform: scale(0.94); }
.tabbar a.is-active { color: var(--accent); }
.tabbar svg { width: 22px; height: 22px; }
.tab-badge {
  position: absolute;
  top: 4px;
  left: calc(50% + 4px);
  background: var(--accent);
  color: #fff;
  font-size: 9.5px;
  font-weight: 700;
  line-height: 1;
  padding: 2.5px 5.5px;
  border-radius: var(--radius-pill);
}
@media (max-width: 920px) {
  .tabbar { display: grid; }
  body { padding-bottom: calc(58px + env(safe-area-inset-bottom)); }
}

/* ============================================================
   Adaptation mobile poussée
   ============================================================ */

/* Recherche du hero : champs pleine largeur */
@media (max-width: 480px) {
  .search-fields { grid-template-columns: 1fr; gap: 10px; padding: 14px 14px 10px; }
  .search-tabs a { padding: 13px 16px; font-size: 14px; }
}

/* Barre de réassurance : grille 2 colonnes */
@media (max-width: 720px) {
  .trust-bar .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; }
  .trust-item { font-size: 12.5px; align-items: flex-start; }
  .trust-item strong { font-size: 13.5px; }
  .trust-icon { width: 34px; height: 34px; }
  .trust-icon svg { width: 15px; height: 15px; }
}
@media (max-width: 380px) {
  .trust-bar .wrap { grid-template-columns: 1fr; }
}

/* Filtres : grille compacte 2 colonnes */
@media (max-width: 720px) {
  .filters { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 14px; }
  .filter-field { min-width: 0; }
  .filters select { padding: 11px 10px; padding-right: 28px; font-size: 13.5px; background-position: right 9px center; }
  .filters .reset { padding-bottom: 0; justify-self: start; align-self: center; }
  .filters .count { margin-left: auto; padding-bottom: 0; align-self: center; }
}

/* Cartes : hauteurs mobiles */
@media (max-width: 760px) {
  #map { height: 420px; }
  #contact-map { height: 280px; }
  .bien-map { height: 220px; }
  .mini-card-cta { display: none; }
  .mini-card img { width: 88px; height: 66px; }
}

/* Fiche bien : en-tête empilé, étapes compactes */
@media (max-width: 560px) {
  .detail-header { flex-direction: column; gap: 12px; }
  .steps-bar .step-pill { font-size: 10.5px; padding: 8px 5px; }
  .gallery-thumbs { gap: 7px; }
  .chars-grid { column-gap: 0; }
}

/* Barre d'action fixe sur la fiche bien (au-dessus des onglets) */
.detail-actionbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: calc(58px + env(safe-area-inset-bottom));
  z-index: 55;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
  padding: 10px 16px;
}
.detail-actionbar strong {
  font-size: 18px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  display: block;
  line-height: 1.15;
}
.detail-actionbar .ab-meta {
  display: block;
  font-size: 11px;
  color: var(--muted);
}
.detail-actionbar .btn { padding: 12px 20px; font-size: 14px; flex: none; }
@media (max-width: 920px) {
  .detail-actionbar { display: flex; }
  body.has-actionbar { padding-bottom: calc(58px + 64px + env(safe-area-inset-bottom)); }
}
