@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@800&family=Space+Grotesk:wght@500;600;700&family=Inter:wght@400;500;600;700&display=swap');

/* ==================================================================
   Rochat Gestion — rochat-gestion.fr
   Charte « magazine » : bleu nuit encre #262b4e + corail #f0554d,
   beaucoup d'air, ombres douces, grands rayons, Inter / Montserrat.
   ================================================================== */

:root {
  /* — Couleurs de structure — */
  --ink: #14233a;            /* texte principal (bleu encre) */
  --muted: #5c6675;          /* texte secondaire */
  --line: #e7e0d1;           /* filets / bordures */
  --line-soft: #efe9dc;
  --bg: #ffffff;
  --bg-soft: #f6f1e7;        /* fonds de sections */
  --bg-mute: #efe8da;
  --white: #ffffff;

  /* — Marque — */
  --brand: #143257;          /* bleu nuit encre */
  --brand-dark: #0a1c34;
  --accent: #DD6B4D;         /* corail */
  --accent-dark: #B4502F;
  --accent-soft: #fbeee7;

  /* — Alias historiques (conservés pour le JS / cartes) — */
  --bleu: #143257;
  --bleu-dark: #0a1c34;
  --vert: #13612e;
  --vert-dark: #0d4a22;

  /* — Forme — */
  --radius: 16px;
  --radius-sm: 12px;
  --radius-xs: 10px;
  --shadow: 0 12px 34px rgba(27, 31, 58, 0.08);
  --shadow-sm: 0 4px 14px rgba(27, 31, 58, 0.06);
  --shadow-lg: 0 24px 60px rgba(27, 31, 58, 0.14);
  --container: 1200px;

  /* — Typographie — */
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --display: "Space Grotesk", "Inter", system-ui, sans-serif;
  --serif: var(--display);   /* alias conservé : titres d'affichage */
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--accent); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--accent-dark); }

::selection { background: var(--accent-soft); color: var(--accent-dark); }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 1000;
  background: var(--brand); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 8px; top: 8px; }

/* ----------------------------------------------------------------
   BOUTONS
   ---------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 12px 24px; border-radius: 999px;
  font-family: inherit; font-weight: 600; font-size: 0.95rem; cursor: pointer;
  border: 1.5px solid transparent; transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease, box-shadow .18s ease;
  white-space: nowrap; line-height: 1;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--accent); color: #fff; border-color: var(--accent); box-shadow: 0 8px 20px rgba(37, 99, 235, .22); }
.btn--primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; box-shadow: 0 10px 26px rgba(37, 99, 235, .30); }
.btn--ghost { background: transparent; color: var(--brand); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.btn--light { background: #fff; color: var(--brand); border-color: #fff; }
.btn--light:hover { background: var(--bg-soft); color: var(--brand); }

/* ----------------------------------------------------------------
   MARQUE / LOGO
   ---------------------------------------------------------------- */
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand--logo img { width: 168px; max-width: 100%; height: auto; display: block; }
@media (max-width: 560px) { .brand--logo img { width: 140px; } }
.brand__mark {
  display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--accent); color: #fff;
  font-family: var(--display); font-weight: 700; font-size: 1.4rem;
}
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name {
  font-family: var(--display); font-weight: 700; letter-spacing: 1px;
  font-size: 1.2rem; color: var(--brand);
}
.brand__sub {
  font-size: 0.78rem; letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--accent); margin-top: 3px;
}

/* ----------------------------------------------------------------
   EN-TÊTE
   ---------------------------------------------------------------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.25s ease;
}
/* Fond translucide + flou sur un pseudo-élément : un backdrop-filter posé
   directement sur le header en ferait le « containing block » des éléments
   en position:fixed, et le tiroir du menu mobile resterait emprisonné
   dans la hauteur du header. */
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  transition: background .25s ease;
}
.site-header--scrolled { box-shadow: 0 6px 24px rgba(17, 41, 74, 0.07); }
.site-header--scrolled::before { background: rgba(255, 255, 255, 0.94); }

.site-header__topbar {
  background: var(--brand); color: rgba(255, 255, 255, 0.78);
  font-size: 0.82rem; letter-spacing: .2px;
}
.site-header__topbar-inner {
  display: flex; justify-content: space-between; align-items: center;
  height: 40px;
}
.topbar__tag { letter-spacing: 0.3px; display: inline-flex; align-items: center; gap: 8px; }
.topbar__tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--vert); box-shadow: 0 0 0 3px rgba(21,145,90,.25); }
.topbar__contact { display: flex; gap: 24px; }
.site-header__topbar a { color: #fff; }
.site-header__topbar a:hover { color: #bcd2ff; }

/* Header pleine largeur, marges latérales souples */
.site-header .container {
  max-width: 100%;
  padding-inline: 4% 5%;
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; min-height: 84px;
}

.nav { display: flex; align-items: center; gap: 22px; }
.nav__list {
  display: flex; align-items: center; gap: 2px;
  list-style: none; margin: 0; padding: 0;
}
.nav__item { position: relative; }
.nav__link {
  position: relative;
  display: inline-flex; align-items: center; gap: 5px;
  padding: 9px 14px; font-weight: 600; font-size: 15.5px;
  color: var(--ink); border-radius: 10px;
  transition: color .15s ease, background .15s ease;
}
.nav__link:hover { color: var(--accent); background: var(--accent-soft); }
.nav__item.is-active > .nav__link { color: var(--accent); }
.nav__item.is-active > .nav__link::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 3px;
  height: 2px; background: var(--accent); border-radius: 2px;
}
.nav__caret { font-size: 0.62rem; color: var(--muted); transition: transform .18s ease; }
.nav__item--has-children:hover .nav__caret { transform: rotate(180deg); color: var(--accent); }

.nav__submenu {
  position: absolute; top: calc(100% + 10px); left: 0;
  min-width: 248px; background: #fff;
  border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow-lg); padding: 8px;
  list-style: none; margin: 0;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
  z-index: 20;
}
.nav__item--has-children::after { /* pont invisible pour le survol */
  content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 12px;
}
.nav__item--has-children:hover .nav__submenu,
.nav__item--has-children:focus-within .nav__submenu {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.nav__sublink {
  display: block; padding: 10px 12px; border-radius: 9px;
  color: var(--ink); font-size: 0.92rem; font-weight: 500;
  transition: background .14s ease, color .14s ease;
}
.nav__sublink:hover { background: var(--accent-soft); color: var(--accent); }

.nav__actions { display: flex; align-items: center; gap: 10px; }

/* Bouton menu mobile */
.nav-toggle {
  display: none; flex-direction: column; gap: 5px; align-items: center; justify-content: center;
  width: 46px; height: 46px; padding: 12px;
  background: #fff; border: 1px solid var(--line);
  border-radius: 12px; cursor: pointer;
}
.nav-toggle__bar {
  width: 100%; height: 2px; background: var(--brand); border-radius: 2px;
  transition: transform 0.22s ease, opacity 0.22s ease;
}
.nav-toggle--open .nav-toggle__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle--open .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle--open .nav-toggle__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ----------------------------------------------------------------
   PIED DE PAGE
   ---------------------------------------------------------------- */
.site-footer { background: var(--brand-dark); color: rgba(255, 255, 255, 0.72); margin-top: 96px; }

/* Bande d'appel à l'action en haut du pied de page */
.footer-cta {
  position: relative; overflow: hidden;
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(37,99,235,.55) 0%, transparent 55%),
    linear-gradient(120deg, var(--brand) 0%, #163a6b 100%);
  color: #fff; text-align: center; padding: 64px 0;
}
.footer-cta__title { font-family: var(--display); font-weight: 700; font-size: clamp(1.6rem, 3vw, 2.1rem); margin: 0 0 12px; letter-spacing: -.01em; }
.footer-cta__text { color: rgba(255,255,255,.85); max-width: 600px; margin: 0 auto 28px; font-size: 1.05rem; }
.footer-cta__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 44px; padding-top: 60px; padding-bottom: 52px;
}
.brand--footer .brand__name { color: #fff; }
.footer-brand__baseline { color: #8fb4ff; font-weight: 600; margin: 16px 0 8px; }
.footer-brand__desc { font-size: 0.92rem; margin: 0 0 16px; color: rgba(255,255,255,.66); }
.footer-badge {
  display: inline-block; padding: 6px 14px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2); font-size: 0.78rem;
  letter-spacing: 1px; text-transform: uppercase;
}
.footer-col__title {
  color: #fff; font-size: 0.82rem; font-weight: 700; margin: 0 0 18px;
  letter-spacing: 1.4px; text-transform: uppercase;
}
.footer-links, .footer-contact {
  list-style: none; margin: 0; padding: 0; display: grid; gap: 12px;
  font-size: 0.93rem;
}
.footer-links a, .footer-contact a { color: rgba(255, 255, 255, 0.72); transition: color .14s ease, padding .14s ease; }
.footer-links a:hover, .footer-contact a:hover { color: #fff; padding-left: 4px; }
.footer-contact li { display: flex; gap: 8px; }

.footer-social { display: flex; gap: 10px; margin-top: 20px; }
.footer-social a {
  display: grid; place-items: center; width: 40px; height: 40px;
  border-radius: 50%; background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255,255,255,.1);
  color: #fff; font-weight: 700; font-size: 0.9rem; transition: background .15s ease, border-color .15s ease, transform .15s ease;
}
.footer-social a:hover { background: var(--accent); border-color: var(--accent); transform: translateY(-2px); }

.site-footer__bottom { border-top: 1px solid rgba(255, 255, 255, 0.1); }
.site-footer__bottom-inner {
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px; padding: 22px 24px; font-size: 0.84rem; color: rgba(255,255,255,.6);
}
.site-footer__bottom p { margin: 0; }
.footer-legal { list-style: none; display: flex; gap: 22px; margin: 0; padding: 0; }
.footer-legal a { color: rgba(255, 255, 255, 0.72); }
.footer-legal a:hover { color: #fff; }

/* ----------------------------------------------------------------
   CONTENU GÉNÉRIQUE / PAGES
   ---------------------------------------------------------------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(120% 120% at 100% 0%, rgba(37,99,235,.5) 0%, transparent 55%),
    linear-gradient(120deg, var(--brand) 0%, var(--brand-dark) 100%);
  color: #fff; padding: 92px 0;
}
.hero__inner { max-width: 720px; position: relative; z-index: 1; }
.hero h1 {
  font-family: var(--display); font-weight: 700; font-size: clamp(2.1rem, 4.4vw, 3.2rem);
  line-height: 1.12; margin: 0 0 18px; letter-spacing: -.02em;
}
.hero p { font-size: 1.15rem; color: rgba(255, 255, 255, 0.85); margin: 0 0 28px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

.page-head {
  background: var(--bg-soft); border-bottom: 1px solid var(--line);
  padding: 60px 0;
}
.page-head h1 { font-family: var(--display); font-weight: 700; font-size: clamp(1.8rem, 3.4vw, 2.4rem); margin: 0 0 8px; color: var(--brand); letter-spacing: -.02em; }
.page-head p { margin: 0; color: var(--muted); max-width: 680px; font-size: 1.05rem; }

.section { padding: 72px 0; }
.section--soft { background: var(--bg-soft); }
.section__title { font-family: var(--display); font-weight: 700; font-size: clamp(1.5rem, 3vw, 2rem); color: var(--brand); margin: 0 0 12px; letter-spacing: -.01em; }
.section__lead { color: var(--muted); max-width: 720px; margin: 0 0 40px; font-size: 1.05rem; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #d8e0ec; }
.card h3 { margin: 0 0 10px; color: var(--brand); font-size: 1.2rem; font-family: var(--display); font-weight: 600; }
.card p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.card__icon {
  width: 52px; height: 52px; border-radius: 14px; margin-bottom: 18px;
  display: grid; place-items: center; background: var(--accent-soft);
  color: var(--accent); font-size: 1.4rem;
}

.prose { max-width: 760px; }
.prose h2 { font-family: var(--display); font-weight: 600; color: var(--brand); margin-top: 40px; scroll-margin-top: 130px; letter-spacing: -.01em; }
.prose p { color: #36434f; }

.cta {
  background: linear-gradient(120deg, var(--brand) 0%, var(--brand-dark) 100%); color: #fff; border-radius: 22px;
  padding: 52px; text-align: center; margin: 0 auto;
}
.cta h2 { font-family: var(--display); font-weight: 700; font-size: 1.9rem; margin: 0 0 12px; }
.cta p { color: rgba(255, 255, 255, 0.85); margin: 0 0 24px; }

/* Formulaire simple (contact / estimation) */
.form { display: grid; gap: 16px; max-width: 620px; }
.form__row { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }
.form label { font-weight: 600; font-size: 0.9rem; display: block; margin-bottom: 6px; }
.form input, .form textarea, .form select {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line);
  border-radius: 10px; font-family: inherit; font-size: 0.95rem; background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.form input:focus, .form textarea:focus, .form select:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft);
}

/* ----------------------------------------------------------------
   RESPONSIVE — en-tête / pied de page
   ---------------------------------------------------------------- */
@media (max-width: 1024px) {
  .nav-toggle { display: flex; }
  .topbar__email { display: none; }

  .nav {
    position: fixed; inset: 0 0 0 auto; width: min(380px, 88vw);
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; padding: 26px; box-shadow: var(--shadow-lg);
    transform: translateX(110%); transition: transform 0.3s cubic-bezier(.4,0,.2,1);
    overflow-y: auto;
  }
  .nav--open { transform: translateX(0); }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; width: 100%; }
  .nav__item { border-bottom: 1px solid var(--line); }
  .nav__link { padding: 15px 4px; justify-content: space-between; font-size: 16px; }
  .nav__link:hover { background: transparent; }
  .nav__item.is-active > .nav__link::after { display: none; }

  .nav__submenu {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: 0; padding: 0 0 8px 12px;
    max-height: 0; overflow: hidden; transition: max-height 0.25s ease; min-width: 0;
  }
  .nav__item--expanded .nav__submenu { max-height: 440px; }
  .nav__actions { flex-direction: column; align-items: stretch; gap: 12px; margin-top: 22px; }
  .nav__actions .btn { width: 100%; }
}

@media (max-width: 960px) {
  .site-footer__grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .cards { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .site-footer__bottom-inner { flex-direction: column; text-align: center; }
}

@media (max-width: 560px) {
  .site-header__topbar-inner { justify-content: center; }
  .topbar__contact { gap: 16px; }
  .site-footer__grid { grid-template-columns: 1fr; }
  .footer-legal { flex-wrap: wrap; justify-content: center; gap: 14px; }
}

/* ==================================================================
   ANNONCES — barre de filtres + grille de cartes
   ================================================================== */

.annonces-toolbar {
  background: rgba(245, 247, 251, 0.8);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
  position: sticky; top: var(--header-h, 0px); z-index: 40;
}
.annonces-toolbar__inner {
  display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-end;
}
.filter { display: flex; flex-direction: column; gap: 6px; }
.filter label { font-size: 0.78rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.5px; }
.filter select, .filter input {
  padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px;
  font-family: inherit; font-size: 0.95rem; background: #fff; min-width: 170px;
}
.filter select:focus, .filter input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.annonces-toolbar .filter--count { margin-left: auto; align-self: center; }
.annonces-count { font-weight: 700; color: var(--brand); }
.filter-reset {
  margin-left: 8px; background: #fff; cursor: pointer;
  border: 1px solid var(--line); border-radius: 999px; padding: 11px 20px;
  font-family: inherit; font-weight: 600; color: var(--accent); transition: border-color .15s, color .15s, background .15s;
}
.filter-reset:hover { border-color: var(--accent); color: var(--accent-dark); background: var(--accent-soft); }
.flt--tri { margin-left: auto; }
.flt-pop--right { left: auto; right: 0; }

/* Moteur de recherche — pastilles + popovers */
.flt-bar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.flt { position: relative; }
.flt-pill {
  display: inline-flex; align-items: center; gap: 9px; cursor: pointer;
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 11px 18px; font-family: inherit; font-weight: 600; color: var(--ink); font-size: .94rem;
  box-shadow: var(--shadow-sm);
  transition: border-color .15s, box-shadow .15s, color .15s;
}
.flt-pill:hover { border-color: #c3ccd8; box-shadow: var(--shadow); }
.flt.is-open .flt-pill, .flt.is-active .flt-pill { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.flt-caret {
  width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg); margin: -3px 0 0 2px; transition: transform .15s;
}
.flt.is-open .flt-caret { transform: rotate(-135deg); margin-top: 2px; }

.flt-pop {
  position: absolute; top: calc(100% + 10px); left: 0; z-index: 50;
  background: #fff; border: 1px solid var(--line); border-radius: 18px;
  box-shadow: var(--shadow-lg); padding: 18px; width: 320px; max-width: 92vw;
}
.flt-pop[hidden] { display: none; }
.flt-pop__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.flt-pop__head strong { font-size: 1.02rem; color: var(--brand); }
.flt-pop__x { border: 0; background: none; font-size: 1.5rem; line-height: 1; cursor: pointer; color: var(--muted); }
.flt-pop__x:hover { color: var(--ink); }

.flt-opts { display: flex; flex-direction: column; gap: 4px; }
.flt-opts label { display: flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 500; color: #3a4858; padding: 7px 8px; border-radius: 10px; transition: background .14s ease; }
.flt-opts label:hover { background: var(--bg-soft); }
.flt-opts input, .flt-chk input { accent-color: var(--accent); width: 18px; height: 18px; }

.flt-range { display: flex; gap: 14px; }
.flt-num { flex: 1; display: flex; flex-direction: column; gap: 6px; font-size: .72rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .4px; }
.flt-num__in { position: relative; display: flex; align-items: center; }
.flt-num__in input { width: 100%; padding: 11px 28px 11px 12px; border: 1px solid var(--line); border-radius: 12px; font: inherit; }
.flt-num__in input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.flt-num__in i { position: absolute; right: 12px; color: var(--muted); font-style: normal; }

.flt-search { width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: 12px; font: inherit; margin-bottom: 12px; }
.flt-search:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.flt-villes { max-height: 240px; overflow-y: auto; display: flex; flex-direction: column; gap: 2px; }
.flt-chk { display: flex; align-items: center; gap: 10px; padding: 8px 8px; cursor: pointer; color: #3a4858; font-weight: 500; border-radius: 10px; }
.flt-chk:hover { background: var(--bg-soft); }

.flt-apply { width: 100%; margin-top: 16px; padding: 13px; border: 0; border-radius: 12px; background: var(--accent); color: #fff; font-family: inherit; font-weight: 600; cursor: pointer; transition: background .15s; }
.flt-apply:hover { background: var(--accent-dark); }

.annonces-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px;
  padding: 44px 0;
}

/* Carte d'appel à l'action dans la grille */
.listing-card.cta-card {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%); color: #fff; border: none;
  display: flex; align-items: center; justify-content: center; text-align: center;
}
.listing-card.cta-card:hover { transform: none; box-shadow: var(--shadow); }
.cta-card__inner { padding: 34px 28px; display: flex; flex-direction: column; gap: 14px; align-items: center; }
.cta-card__title { font-family: var(--display); font-size: 1.45rem; font-weight: 700; margin: 0; color: #fff; letter-spacing: -.01em; }
.cta-card__text { margin: 0; color: rgba(255,255,255,.85); line-height: 1.55; }
.cta-card__btn {
  display: inline-flex; align-items: center; gap: 9px; margin-top: 6px;
  background: var(--vert); color: #fff; font-weight: 700; font-size: 1.02rem;
  padding: 13px 26px; border-radius: 999px; transition: background .15s, transform .15s;
}
.cta-card__btn:hover { background: var(--vert-dark); color: #fff; transform: translateY(-2px); }
.news-form { display: flex; flex-direction: column; gap: 12px; width: 100%; max-width: 290px; }
.news-form__input { padding: 13px 14px; border: 0; border-radius: 12px; font: inherit; width: 100%; }
.news-form__input:focus { outline: 2px solid var(--vert); }
.news-form__chk { display: flex; align-items: flex-start; gap: 8px; font-size: .76rem; color: rgba(255,255,255,.9); text-align: left; line-height: 1.4; cursor: pointer; }
.news-form__chk input { accent-color: var(--vert); margin-top: 2px; flex: none; width: 16px; height: 16px; }
.news-form__chk a { color: #fff; text-decoration: underline; }
.news-form__btn { width: 100%; justify-content: center; border: 0; cursor: pointer; }
.news-form__ok { color: #fff; font-weight: 700; margin: 0; }
.news-form__err { color: #ffd2d2; font-size: .85rem; margin: 6px 0 0; }

.listing-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color .2s ease;
}
.listing-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: #d8e0ec; }

.listing-card__media {
  position: relative; aspect-ratio: 16 / 11; overflow: hidden;
  background: linear-gradient(135deg, #d4ddea 0%, #aebfd2 100%);
  background-size: cover; background-position: center;
}
.listing-card__img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; display: block; transition: transform .4s ease;
}
.listing-card:hover .listing-card__img { transform: scale(1.04); }
.listing-card__badges {
  position: absolute; top: 12px; left: 12px;
  display: flex; flex-direction: column; gap: 6px; align-items: flex-start;
}
.badge-exclu {
  display: inline-flex; align-items: center; gap: 6px;
  background: #fff; color: var(--brand); font-weight: 700;
  font-size: 0.72rem; letter-spacing: 0.3px; padding: 6px 11px;
  border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,.12);
}
.badge-exclu::before { content: "❖"; color: var(--accent); }
.badge-exclu small { font-weight: 600; opacity: .7; }
.badge-new {
  background: var(--accent); color: #fff; font-weight: 600;
  font-size: 0.72rem; padding: 6px 11px; border-radius: 8px;
}
.badge-type {
  position: absolute; bottom: 12px; left: 12px;
  background: rgba(17,41,74,.82); backdrop-filter: blur(4px); color: #fff; font-size: 0.72rem;
  font-weight: 600; padding: 6px 11px; border-radius: 8px;
}
.listing-card__fav {
  position: absolute; top: 12px; right: 12px;
  width: 40px; height: 40px; border-radius: 50%; border: 0;
  background: rgba(255,255,255,.92); backdrop-filter: blur(4px); color: var(--muted); cursor: pointer;
  display: grid; place-items: center; font-size: 1.1rem;
  box-shadow: 0 2px 10px rgba(0,0,0,.14); transition: color .15s ease, transform .15s ease;
}
.listing-card__fav:hover { transform: scale(1.1); }
.listing-card__fav.is-fav { color: #e0457b; }
.listing-card__counter {
  position: absolute; bottom: 12px; right: 12px;
  background: rgba(0,0,0,.55); backdrop-filter: blur(4px); color: #fff; font-size: 0.78rem;
  padding: 4px 10px; border-radius: 8px;
}

.listing-card__body { padding: 20px 20px 22px; display: flex; flex-direction: column; gap: 11px; flex: 1; }
.listing-card__head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.listing-card__title { font-size: 1.25rem; font-weight: 700; color: var(--brand); margin: 0; }
.listing-card__price { font-size: 1.25rem; font-weight: 700; color: var(--accent); white-space: nowrap; }
.listing-card__loc { font-weight: 600; color: var(--ink); margin: 0; }
.listing-card__specs { color: var(--muted); font-size: 0.95rem; margin: 0; }
.listing-card__viager { font-size: 0.86rem; color: var(--muted); margin: 2px 0 0; }
.listing-card__viager strong { color: var(--ink); }
.listing-card__actions { display: flex; gap: 10px; margin-top: auto; padding-top: 14px; }
.listing-card__actions .btn { flex: 1; padding: 11px 10px; }

.annonces-empty { text-align: center; padding: 60px 0; color: var(--muted); }

@media (max-width: 960px) {
  .annonces-grid { grid-template-columns: repeat(2, 1fr); }
  .filter select, .filter input { min-width: 0; width: 100%; }
  .filter { flex: 1 1 140px; }
  .annonces-toolbar .filter--count { margin-left: 0; flex-basis: 100%; }
  .annonces-toolbar { position: static; }
}
@media (max-width: 560px) {
  .annonces-grid { grid-template-columns: 1fr; }
}

.listing-card__price { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.1; }
.listing-card__price small { font-size: 0.62rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; }
.listing-card__title a { color: inherit; }
.listing-card__title a:hover { color: var(--accent); }

/* Bascule grille / liste */
.view-toggle {
  display: inline-flex; gap: 4px; margin-left: 8px; padding: 4px;
  background: #fff; border: 1px solid var(--line); border-radius: 30px;
}
.view-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 36px; border: 0; border-radius: 22px;
  background: none; color: var(--muted); cursor: pointer;
  transition: background .15s, color .15s;
}
.view-btn:hover { color: var(--ink); }
.view-btn.is-active { background: var(--accent); color: #fff; }
.view-btn svg { display: block; }

/* Affichage en liste : une annonce par ligne, photo à gauche */
.annonces-grid--list { grid-template-columns: 1fr; gap: 18px; }
.annonces-grid--list .listing-card { flex-direction: row; }
.annonces-grid--list .listing-card__media {
  flex: none; width: 38%; max-width: 360px; min-width: 240px; aspect-ratio: auto;
}
.annonces-grid--list .listing-card__body { flex: 1; }
.annonces-grid--list .listing-card.cta-card { flex-direction: column; }
@media (max-width: 640px) {
  .annonces-grid--list .listing-card { flex-direction: column; }
  .annonces-grid--list .listing-card__media {
    width: 100%; max-width: none; min-width: 0; aspect-ratio: 16 / 11;
  }
}

/* ==================================================================
   Cartes annonces — accents
   ================================================================== */

/* Survols/accents du pied de page (lisibles sur fond bleu nuit) */
.footer-links a:hover, .footer-contact a:hover, .footer-legal a:hover { color: #fff; }

.listing-card__title { color: var(--brand); font-weight: 700; }
.listing-card__title a { color: inherit; }
.listing-card__title a:hover { color: var(--bleu); }

.listing-card__price { color: var(--bleu); font-size: 1.3rem; font-weight: 700; }
.listing-card__price small { color: var(--muted); font-weight: 600; }

.listing-card__loc { color: #2b3a4d; font-size: .98rem; }
.listing-card__specs { color: var(--muted); }

/* Tag type de viager dans le corps */
.listing-card__tag {
  align-self: flex-start;
  background: var(--accent-soft); color: var(--bleu);
  font-size: .76rem; font-weight: 600; letter-spacing: .2px;
  padding: 5px 11px; border-radius: 999px;
}

/* Boutons Message / Appeler */
.listing-card__actions .btn { border-radius: 12px; font-weight: 600; padding: 12px 10px; }
.listing-card__actions .btn--primary { background: var(--bleu); border-color: var(--bleu); color: #fff; }
.listing-card__actions .btn--primary:hover { background: var(--bleu-dark); border-color: var(--bleu-dark); color: #fff; }
.listing-card__actions .btn--ghost { color: var(--bleu); border-color: #cfdcf2; background: #fff; }
.listing-card__actions .btn--ghost:hover { border-color: var(--bleu); color: var(--bleu-dark); background: var(--accent-soft); }

/* ==================================================================
   Cartes annonces — modèle viager (titre, specs, bouquet/rente/valeur)
   ================================================================== */

.listing-card__body { padding: 20px 22px 22px; gap: 12px; }

/* Badges sur l'image (en haut à gauche) */
.lc-badges {
  position: absolute; top: 12px; left: 12px; display: flex; gap: 6px;
  flex-wrap: wrap; max-width: calc(100% - 70px);
}
.lc-badge {
  font-size: .74rem; font-weight: 600; color: #fff; padding: 6px 12px;
  border-radius: 999px; box-shadow: 0 2px 8px rgba(0,0,0,.18);
}
.lc-badge--type { background: var(--accent); }
.lc-badge--exclu { background: var(--vert); }

.lc-counter {
  position: absolute; bottom: 12px; right: 12px; display: inline-flex;
  align-items: center; gap: 5px; background: rgba(0,0,0,.5); backdrop-filter: blur(4px); color: #fff;
  font-size: .8rem; font-weight: 600; padding: 5px 10px; border-radius: 8px;
}

.lc-title {
  font-family: var(--display); font-size: 1.28rem; font-weight: 700;
  color: var(--brand); margin: 0; line-height: 1.25; letter-spacing: -.01em;
}
.lc-title a { color: inherit; }
.lc-title a:hover { color: var(--bleu); }

.lc-loc { display: flex; align-items: center; gap: 7px; color: #3a4858; font-weight: 600; margin: 0; }
.lc-loc .lc-ico { color: var(--accent); }

.lc-specs { display: flex; flex-wrap: wrap; gap: 10px 18px; color: #3a4858; font-weight: 500; }
.lc-spec { display: inline-flex; align-items: center; gap: 6px; }
.lc-ico { flex: none; color: var(--vert); }

.lc-prices {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 14px; border-top: 1px solid var(--line); padding-top: 14px;
}
.lc-prices__main { display: flex; flex-direction: column; gap: 7px; }
.lc-prow { display: flex; align-items: center; gap: 6px; color: #3a4858; }
.lc-prow strong { color: var(--ink); font-weight: 700; }
.lc-info { flex: none; color: var(--vert); }

/* Infobulle sur les "i" (Bouquet / Rente) */
.lc-tip { position: relative; display: inline-flex; align-items: center; cursor: help; outline: none; }
.lc-tip__bubble {
  position: absolute; left: -4px; bottom: calc(100% + 12px);
  width: max-content; max-width: 230px;
  background: var(--brand); color: #fff; font-weight: 500;
  font-size: .82rem; line-height: 1.35; text-align: left;
  padding: 11px 14px; border-radius: 12px; box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(5px);
  transition: opacity .15s ease, transform .15s ease, visibility .15s;
  z-index: 30; pointer-events: none;
}
.lc-tip__bubble::after {
  content: ""; position: absolute; top: 100%; left: 16px;
  border: 8px solid transparent; border-top-color: var(--brand);
}
.lc-tip:hover .lc-tip__bubble,
.lc-tip:focus .lc-tip__bubble,
.lc-tip:focus-visible .lc-tip__bubble { opacity: 1; visibility: visible; transform: translateY(0); }
.lc-prices__value { text-align: right; flex: none; }
.lc-prices__value span { display: block; color: var(--muted); font-size: .92rem; }
.lc-prices__value strong { display: block; color: var(--ink); font-weight: 700; font-size: 1.05rem; white-space: nowrap; }

.lc-actions { display: flex; gap: 12px; margin-top: auto; padding-top: 6px; }
.lc-btn {
  flex: 1; text-align: center; padding: 13px 10px; border-radius: 12px;
  font-weight: 600; border: 1.5px solid; background: #fff;
  transition: background .15s, color .15s, border-color .15s;
}
.lc-btn--detail { color: var(--bleu); border-color: #c4d4f2; }
.lc-btn--detail:hover { background: var(--bleu); color: #fff; border-color: var(--bleu); }
.lc-btn--contact { color: var(--vert-dark); border-color: #bfdcc7; }
.lc-btn--contact:hover { background: var(--vert); color: #fff; border-color: var(--vert); }

/* ==================================================================
   PAGE DÉTAIL D'UNE ANNONCE
   ================================================================== */
.listing-card__media { display: block; }

.detail-head { background: var(--bg-soft); border-bottom: 1px solid var(--line); padding: 30px 0 26px; }
.detail-back { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; margin-bottom: 14px; color: var(--accent); }
.detail-back:hover { color: var(--accent-dark); }
.detail-title { font-family: var(--display); font-weight: 700; color: var(--brand); font-size: clamp(1.5rem, 3vw, 2rem); margin: 0 0 14px; letter-spacing: -.02em; }
.detail-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.detail-chip {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 8px 15px; font-size: .92rem; font-weight: 600; color: #2b3a4d;
  box-shadow: var(--shadow-sm);
}
.detail-chip .chip-ico { color: var(--accent); flex: none; }

.detail-layout {
  display: grid; grid-template-columns: 1fr 340px; gap: 36px;
  padding-top: 32px; padding-bottom: 20px; align-items: start;
}

/* Galerie */
.detail-gallery__main {
  width: 100%; aspect-ratio: 16 / 10; object-fit: cover;
  border-radius: var(--radius); background: var(--bg-soft);
}
.detail-gallery__main--empty { display: grid; place-items: center; color: var(--muted); }
.detail-gallery__thumbs {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: 10px; margin-top: 12px;
}
.detail-thumb {
  padding: 0; border: 2px solid transparent; border-radius: 10px;
  overflow: hidden; cursor: pointer; background: none; aspect-ratio: 4/3;
}
.detail-thumb img { width: 100%; height: 100%; object-fit: cover; }
.detail-thumb.is-on { border-color: var(--bleu); }

/* ---- Fiche bien : photo+texte à gauche, colonne infos+formulaire à droite ---- */
.bien-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(420px, 1fr);
  grid-template-areas: "gallery side" "text side";
  grid-template-rows: auto 1fr;
  gap: 24px 36px; margin: 30px 0 48px; align-items: start;
}
.bl-gallery { grid-area: gallery; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.bl-side { grid-area: side; display: flex; flex-direction: column; gap: 16px; align-self: stretch; }
.bl-text { grid-area: text; min-width: 0; }
.bl-text .detail-desc { text-align: justify; }
.bl-text .detail-section__title:first-child { margin-top: 0; }

/* Le formulaire suit le défilement et remonte jusque sous le prix */
.bl-side .bien-aside { position: sticky; top: calc(var(--header-h, 0px) + 16px); }

/* Bloc conseiller (entre la valeur et le formulaire) */
.bien-nego {
  display: flex; align-items: center; gap: 14px;
  background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 14px 16px;
}
.bien-nego__photo { width: 58px; height: 58px; border-radius: 50%; object-fit: cover; flex: none; }
.bien-nego__info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.bien-nego__info strong { color: var(--ink); font-size: 1.02rem; }
.bien-nego__info span { color: var(--muted); font-size: .85rem; }
.bien-nego__tel { display: inline-flex; align-items: center; gap: 7px; color: var(--accent); font-weight: 700; margin-top: 3px; }
.bien-nego__tel .chip-ico { flex: none; }
.bien-nego__tel:hover { color: var(--accent-dark); }
.bien-loc-top {
  display: flex; align-items: center; gap: 8px; margin: 0;
  font-weight: 700; font-size: 1.2rem; color: var(--ink);
}
.bien-loc-top svg { color: var(--vert); flex: none; }
.bien-valeur { margin: 0; color: #3a4858; font-weight: 600; font-size: 1.05rem; }
.bien-valeur strong { color: var(--ink); font-weight: 800; }
.bien-specs { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.bien-specs li { display: flex; align-items: center; gap: 10px; color: #3a4858; font-weight: 500; }
.bien-specs .chip-ico { color: var(--vert); flex: none; }

/* Le formulaire suit le défilement et peut remonter jusque sous le prix */
.bien-layout__right .bien-aside {
  position: sticky; top: calc(var(--header-h, 120px) + 16px);
}

.bien-gallery { display: flex; flex-direction: column; gap: 12px; }
.bien-gallery__stage {
  position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius);
  overflow: hidden; background: #e7edf3;
}
.bien-gallery__stage--empty { display: grid; place-items: center; color: var(--muted); }
.bien-gallery__img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bien-gallery__badge { position: absolute; top: 14px; left: 14px; z-index: 2; }
.bien-gallery__counter {
  position: absolute; bottom: 14px; right: 14px; z-index: 2;
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(0,0,0,.55); backdrop-filter: blur(4px); color: #fff; font-size: .82rem;
  font-weight: 600; padding: 5px 12px; border-radius: 999px;
}
.bien-gallery__nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255,255,255,.92); backdrop-filter: blur(4px); color: var(--brand); font-size: 1.6rem; line-height: 1;
  display: grid; place-items: center; box-shadow: 0 4px 14px rgba(0,0,0,.2); opacity: .96; transition: background .15s, color .15s;
}
.bien-gallery__nav:hover { opacity: 1; background: var(--bleu); color: #fff; }
.bien-gallery__nav--prev { left: 14px; }
.bien-gallery__nav--next { right: 14px; }

.bien-price { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.bien-price__box {
  border-radius: var(--radius); padding: 18px; text-align: center; background: var(--bg-mute);
  border: 1px solid var(--line);
}
.bien-price__box span { display: block; color: #3a4858; font-size: 1rem; margin-bottom: 4px; }
.bien-price__box strong { font-size: 1.5rem; font-weight: 800; color: var(--ink); }
.bien-price__box--bouquet { background: var(--accent-soft); border-color: #d4e2ff; }
.bien-price__box--bouquet strong { color: var(--bleu); }
.bien-price__box--rente { background: #e8f6ee; border-color: #c8e8d4; }
.bien-price__box--rente strong { color: var(--vert-dark); }

.bien-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 26px;
  color: #3a4858; font-weight: 600;
}
.bien-meta__item { display: inline-flex; align-items: center; gap: 7px; }
.bien-meta__item svg { color: var(--vert); flex: none; }
.bien-meta__value strong { color: var(--ink); font-weight: 800; margin-left: 4px; }

.bien-aside {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 28px;
}
.bien-form__title { font-family: var(--display); font-weight: 600; font-size: 1.25rem; color: var(--ink); margin: 0 0 20px; line-height: 1.3; }
.bien-form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; }
.bien-form label { display: block; font-weight: 600; color: #3a4858; font-size: .95rem; }
.bien-form input, .bien-form textarea {
  width: 100%; margin-top: 6px; padding: 11px 12px; font: inherit; color: var(--ink);
  border: 1px solid var(--line); border-radius: 12px; background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
.bien-form input:focus, .bien-form textarea:focus { outline: none; border-color: var(--bleu); box-shadow: 0 0 0 3px var(--accent-soft); }
.bien-form textarea { resize: vertical; }
.bien-form__field { margin-top: 14px; }
.bien-form .bien-form__check {
  display: flex; align-items: flex-start; gap: 12px; font-weight: 500;
  color: #3a4858; margin-top: 14px; line-height: 1.4; cursor: pointer;
}
.bien-form__check span { flex: 1; }
.bien-form__check input[type="checkbox"] {
  appearance: none; -webkit-appearance: none; width: 22px; height: 22px;
  flex: none; margin: 1px 0 0; border: 2px solid #c3ccd8; border-radius: 7px;
  background: #fff; cursor: pointer; display: grid; place-content: center;
  transition: background .15s, border-color .15s;
}
.bien-form__check input[type="checkbox"]::after {
  content: ""; width: 5px; height: 9px; margin-top: -2px;
  border: solid #fff; border-width: 0 2px 2px 0;
  transform: rotate(45deg) scale(0); transition: transform .12s ease;
}
.bien-form__check input[type="checkbox"]:checked { background: var(--bleu); border-color: var(--bleu); }
.bien-form__check input[type="checkbox"]:checked::after { transform: rotate(45deg) scale(1); }
.bien-form__check input[type="checkbox"]:focus-visible { outline: 2px solid var(--bleu); outline-offset: 2px; }
.bien-form__checks {
  margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 4px;
}
.bien-form__checks .bien-form__check:first-child { margin-top: 0; }
.bien-form__submit {
  margin-top: 20px; width: 100%; padding: 14px 30px; border: 0; border-radius: 12px;
  background: var(--accent); color: #fff; font-family: inherit; font-weight: 600; font-size: 1rem; cursor: pointer;
  box-shadow: 0 8px 20px rgba(240,85,77,.22); transition: background .15s, box-shadow .15s;
}
.bien-form__submit:hover { background: var(--accent-dark); box-shadow: 0 10px 26px rgba(240,85,77,.3); }
.bien-form__legal { color: var(--muted); font-size: .76rem; line-height: 1.55; margin: 16px 2px 0; }
.bien-form__ok {
  background: #e8f6ee; color: var(--vert-dark); border: 1px solid #c8e8d4;
  border-radius: var(--radius); padding: 18px; text-align: center; font-weight: 700; margin: 0;
}
.bien-form__err { color: #c0392b; font-weight: 600; font-size: .9rem; margin: 12px 0 0; }

.detail-body { margin-bottom: 48px; }

/* Section Géorisques */
.detail-geo__text { color: var(--ink); margin: 0 0 16px; max-width: 640px; }
.geo-link {
  display: inline-block; background: #fff; border: 1.5px solid var(--line);
  border-radius: 999px; padding: 12px 26px; font-weight: 600; color: var(--ink);
  transition: border-color .15s, color .15s, background .15s;
}
.geo-link:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }

@media (max-width: 900px) {
  .bien-layout {
    grid-template-columns: 1fr; grid-template-rows: none;
    grid-template-areas: "gallery" "side" "text"; gap: 22px;
  }
  .bl-side .bien-aside { position: static; }
  .bien-price { grid-template-columns: 1fr 1fr; }
  .bien-layout .bien-form__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .bien-price, .bien-form__grid, .bien-layout .bien-form__grid { grid-template-columns: 1fr; }
}

.detail-section__title { font-family: var(--display); font-weight: 600; color: var(--brand); font-size: 1.4rem; margin: 36px 0 14px; letter-spacing: -.01em; }
.detail-desc { color: #36434f; line-height: 1.75; }

.detail-specs {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 0 30px;
}
.detail-specs li {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 12px 0; border-bottom: 1px solid var(--line);
}
.detail-specs li span { color: var(--muted); }
.detail-specs li strong { color: var(--ink); text-align: right; }

/* Performance énergétique — vue compacte */
.epc { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-bottom: 24px; }
.epc-col__label { font-weight: 700; color: var(--ink); margin-bottom: 12px; font-size: .95rem; }
.epc-bar { display: flex; align-items: center; gap: 5px; min-height: 42px; }
.epc-seg { flex: 1; height: 14px; background: var(--c); border-radius: 3px; }
.epc-seg:first-child { border-radius: 8px 3px 3px 8px; }
.epc-seg:last-child { border-radius: 3px 8px 8px 3px; }
.epc-seg.is-on {
  flex: 1.3; height: 42px; border-radius: 10px; display: flex;
  align-items: center; justify-content: center; color: #fff;
  font-weight: 800; font-size: 1.15rem;
}
.epc-na { color: var(--muted); font-size: .9rem; }
.epc-cout { color: var(--ink); margin: 6px 0 18px; }
.epc-cout strong { color: var(--ink); font-weight: 800; }
.epc-cout__ref { display: block; color: var(--muted); font-size: .85rem; margin-top: 3px; }

.epc-info { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 30px; margin: 6px 0 24px; }
.epc-info__item { display: flex; gap: 12px; align-items: flex-start; }
.epc-info__item .chip-ico { color: var(--accent); margin-top: 2px; flex: none; }
.epc-info__item span { display: block; font-weight: 700; color: var(--ink); }
.epc-info__item strong { display: block; font-weight: 400; color: var(--muted); }

.epc-more {
  background: #fff; border: 1.5px solid var(--line); border-radius: 999px;
  padding: 12px 30px; font-family: inherit; font-weight: 600; cursor: pointer; color: var(--ink);
  font-size: .95rem; transition: border-color .15s, color .15s, background .15s;
}
.epc-more:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }

@media (max-width: 640px) {
  .epc, .epc-info { grid-template-columns: 1fr; gap: 18px; }
}

/* Modale */
.modal[hidden] { display: none; }
.modal {
  position: fixed; inset: 0; z-index: 1000; display: flex;
  align-items: center; justify-content: center; padding: 20px;
}
.modal__backdrop { position: absolute; inset: 0; background: rgba(12, 31, 58, .55); backdrop-filter: blur(2px); }
.modal__box {
  position: relative; background: #fff; border-radius: var(--radius);
  max-width: 900px; width: 100%; max-height: 90vh; overflow: auto;
  padding: 36px 40px; box-shadow: var(--shadow-lg);
}
.modal__close {
  position: absolute; top: 14px; right: 18px; border: none; background: none;
  font-size: 1.9rem; line-height: 1; cursor: pointer; color: var(--muted);
}
.modal__close:hover { color: var(--ink); }
.modal__title { font-family: var(--display); font-weight: 600; margin: 0 0 26px; font-size: 1.5rem; color: var(--brand); }
.modal__note { color: var(--muted); font-size: .82rem; margin-top: 16px; }

/* Étiquette officielle DPE / GES */
.epc-ticket { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; margin-bottom: 24px; }
.epc-label__cap { font-size: .8rem; font-weight: 700; line-height: 1.25; }
.epc-label--dpe .epc-label__cap--top { color: #319a3f; }
.epc-label--dpe .epc-label__cap--bottom { color: #e30613; }
.epc-label--ges .epc-label__cap--top { color: #6fb0dc; }
.epc-label--ges .epc-label__cap--bottom { color: #181f4d; }
.epc-label__cap--top { margin-bottom: 8px; }
.epc-label__cap--bottom { margin-top: 8px; }

.epc-rows { display: flex; flex-direction: column; gap: 7px; position: relative; }
.epc-label--dpe .epc-rows { padding-left: 152px; }
.epc-label--ges .epc-rows { padding-right: 118px; }
.epc-row { position: relative; height: 30px; display: flex; align-items: center; }
.epc-row.is-on { height: 46px; }
.epc-arrow {
  width: var(--w); height: 100%; background: var(--c); display: flex;
  align-items: center; padding-left: 14px; color: #fff; font-weight: 700;
  font-size: 1.05rem;
  clip-path: polygon(0 0, calc(100% - 13px) 0, 100% 50%, calc(100% - 13px) 100%, 0 100%);
}
.epc-row.is-light .epc-arrow { color: #1c2530; }
.epc-row.is-on .epc-arrow { font-size: 1.5rem; font-weight: 800; }
.epc-label--ges .epc-arrow {
  clip-path: none; border-radius: 0 16px 16px 0;
}

/* Encadré valeurs (DPE) — reste dans la gouttière de gauche */
.epc-callout {
  position: absolute; right: 100%; top: 50%; transform: translateY(-50%);
  margin-right: 4px; display: flex; background: #fff; border: 1px solid #2b2b2b;
  border-radius: 4px; z-index: 2; overflow: hidden;
}
.epc-callout > div { padding: 4px 8px; text-align: center; min-width: 54px; box-sizing: border-box; }
.epc-callout > div + div { border-left: 1px solid #ccc; }
.epc-callout span { display: block; font-size: .56rem; color: var(--muted); text-transform: lowercase; }
.epc-callout strong { display: block; font-size: 1.2rem; color: var(--ink); line-height: 1.15; }
.epc-callout small { display: block; font-size: .56rem; color: var(--muted); line-height: 1.1; }

/* Valeur émissions (GES) — reste dans la gouttière de droite */
.epc-ges-val {
  position: absolute; left: 100%; top: 50%; transform: translateY(-50%);
  display: flex; align-items: center; gap: 8px; padding-left: 6px;
}
.epc-ges-line { width: 26px; height: 2px; background: #2b2b2b; flex: none; }
.epc-ges-val strong { font-size: 1.35rem; color: var(--ink); }
.epc-ges-val small { font-size: .6rem; color: var(--muted); line-height: 1.05; max-width: 56px; }

@media (max-width: 720px) {
  .epc-ticket { grid-template-columns: 1fr; gap: 30px; }
}

.detail-map { width: 100%; height: 320px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.map-static { position: absolute; inset: 0; overflow: hidden; }
.map-attr {
  position: absolute; right: 4px; bottom: 3px; z-index: 2;
  font-size: 10px; color: #333; background: rgba(255,255,255,.75);
  padding: 1px 5px; border-radius: 3px;
}
/* Cercle de zone approximative en superposition (repli carte statique) */
.map-circle {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 150px; height: 150px; border-radius: 50%; z-index: 1;
  border: 3px solid var(--accent); background: rgba(37, 99, 235, .16);
  pointer-events: none;
}

/* Encart contact (sticky) */
.detail-sidebar { position: sticky; top: 96px; }
.detail-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 24px;
}
.detail-price { margin: 12px 0 16px; }
.detail-price__row {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 9px 0; border-bottom: 1px dashed var(--line);
}
.detail-price__row span { color: var(--muted); }
.detail-price__row strong { color: var(--bleu); font-size: 1.25rem; font-weight: 800; }
.detail-nego { display: flex; align-items: center; gap: 12px; margin: 4px 0 16px; }
.detail-nego img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.detail-nego strong { display: block; color: var(--ink); }
.detail-nego span { font-size: .85rem; color: var(--muted); }
.detail-card__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.detail-card__actions .btn { border-radius: 12px; font-weight: 600; padding: 12px 8px; }
.detail-card__actions .btn--primary { background: var(--bleu); border-color: var(--bleu); }
.detail-card__actions .btn--primary:hover { background: var(--bleu-dark); border-color: var(--bleu-dark); }
.detail-card__actions .btn--ghost { color: var(--bleu); border-color: #cfdcf2; }
.detail-card__link { display: inline-block; margin-top: 14px; font-weight: 600; color: var(--bleu); }

@media (max-width: 900px) {
  .detail-layout { grid-template-columns: 1fr; }
  .detail-sidebar { position: static; }
  .detail-specs { grid-template-columns: 1fr; }
}

/* Badge "Sous compromis" */
.badge-offer {
  background: #e8821e; color: #fff; font-weight: 600;
  font-size: .72rem; padding: 6px 11px; border-radius: 8px;
}
.detail-offer {
  display: inline-block; background: #e8821e; color: #fff; font-weight: 700;
  padding: 6px 14px; border-radius: 8px; margin: 0 0 14px;
}

/* Badge "Vendu" (rouge) */
.badge-sold { background: #c0392b; color: #fff; font-weight: 600; font-size: .72rem; padding: 6px 11px; border-radius: 8px; }
.detail-offer--sold { background: #c0392b; }

.detail-map__note { color: var(--muted); font-size: .9rem; margin: 0 0 12px; }

/* ==================================================================
   PAGE D'ACCUEIL (modèle)
   ================================================================== */
.home-hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(110% 120% at 100% 0%, rgba(37,99,235,.55) 0%, transparent 55%),
    linear-gradient(120deg, var(--brand) 0%, var(--brand-dark) 100%);
  padding: 88px 0 84px;
}
.home-hero__inner { max-width: 760px; position: relative; z-index: 1; }
.home-hero__eyebrow {
  display: inline-flex; align-items: center; gap: 6px; margin: 0 0 18px;
  font-size: .62rem; font-weight: 600; letter-spacing: .8px; text-transform: uppercase;
  color: #9be7bd; padding: 4px 11px; border: 1px solid rgba(34,197,94,.38);
  border-radius: 999px; background: rgba(21,145,90,.14);
}
.home-hero__eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #34d27f; box-shadow: 0 0 0 3px rgba(52,210,127,.28); }
.home-hero h1 { font-family: var(--display); font-weight: 700; font-size: clamp(2.1rem, 4.6vw, 3.4rem); line-height: 1.1; letter-spacing: -.02em; margin: 0 0 20px; }
.home-hero p { font-size: 1.18rem; color: rgba(255,255,255,.86); margin: 0 0 30px; max-width: 640px; }
.home-hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* Bandeau de statistiques (carte blanche posée dans le hero) */
.stats {
  position: relative; z-index: 2; margin-top: 56px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); display: grid; grid-template-columns: repeat(4, 1fr);
  overflow: hidden;
}
.stat { padding: 28px 24px; text-align: center; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat strong { display: block; font-family: var(--display); font-weight: 700; font-size: 2rem; color: var(--accent); line-height: 1; letter-spacing: -.02em; }
.stat span { display: block; margin-top: 10px; color: var(--muted); font-size: .92rem; font-weight: 500; }
.stats-spacer { height: 0; }

/* Section split (texte + liste d'avantages) */
.home-split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.home-split__media { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4/3; background: linear-gradient(135deg, #d4ddea, #aebfd2); }
.home-split__media img { width: 100%; height: 100%; object-fit: cover; }

/* Deux colonnes "gagnant-gagnant" */
.benefit-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.benefit {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; box-shadow: var(--shadow-sm);
}
.benefit h3 { font-family: var(--display); font-weight: 600; color: var(--brand); font-size: 1.25rem; margin: 0 0 16px; display: flex; align-items: center; gap: 10px; }
.benefit h3 .benefit__pin { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; flex: none; }
.benefit--vendeur h3 .benefit__pin { background: var(--accent-soft); color: var(--accent); }
.benefit--acquereur h3 .benefit__pin { background: #e8f6ee; color: var(--vert-dark); }
.benefit-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.benefit-list li { display: flex; align-items: flex-start; gap: 11px; color: #3a4858; font-weight: 500; line-height: 1.5; }
.benefit-list li::before {
  content: ""; flex: none; width: 21px; height: 21px; margin-top: 1px; border-radius: 50%;
  background: var(--vert) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 12px no-repeat;
}

/* Cartes "types de viager" cliquables */
.type-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.type-card {
  display: block; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow-sm); color: inherit;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.type-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #d8e0ec; color: inherit; }
.type-card__k { font-size: .78rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--accent); }
.type-card h3 { font-family: var(--display); font-weight: 600; color: var(--brand); font-size: 1.3rem; margin: 8px 0 10px; }
.type-card p { margin: 0 0 16px; color: var(--muted); font-size: .95rem; }
.type-card__more { font-weight: 600; color: var(--accent); display: inline-flex; align-items: center; gap: 6px; }
.type-card:hover .type-card__more { gap: 10px; }

/* Régions */
.regions { display: flex; flex-wrap: wrap; gap: 12px; }
.region {
  display: inline-flex; align-items: center; gap: 9px; background: #fff;
  border: 1px solid var(--line); border-radius: 999px; padding: 11px 20px;
  font-weight: 600; color: var(--ink); box-shadow: var(--shadow-sm);
  transition: border-color .15s, color .15s, background .15s;
}
.region:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.region::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }

/* Bloc avis / confiance */
.trust-band { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; }
.trust-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 32px;
}
.trust-card__stars { color: #f5a623; font-size: 1.3rem; letter-spacing: 3px; }
.trust-card p { color: #3a4858; font-size: 1.05rem; line-height: 1.6; margin: 14px 0 0; }

/* Coordonnées en pied de page d'accueil */
.home-contact { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.home-contact__item { display: flex; gap: 14px; align-items: flex-start; }
.home-contact__ico { width: 46px; height: 46px; border-radius: 12px; flex: none; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.home-contact__item strong { display: block; color: var(--ink); font-weight: 700; margin-bottom: 3px; }
.home-contact__item span, .home-contact__item a { color: var(--muted); }

@media (max-width: 960px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid var(--line); }
  .home-split, .benefit-cols, .type-cards, .trust-band, .home-contact { grid-template-columns: 1fr; gap: 28px; }
  .home-split__media { order: -1; }
}
@media (max-width: 560px) {
  .stats { grid-template-columns: 1fr; }
  .stat { border-right: 0; border-bottom: 1px solid var(--line); }
  .stat:last-child { border-bottom: 0; }
}

/* Icônes au trait (line-art) dans les pastilles de l'accueil */
.card__icon svg { width: 30px; height: 30px; }
.benefit__pin svg { width: 22px; height: 22px; }
.home-contact__ico svg { width: 24px; height: 24px; }

/* ==================================================================
   PAGES INTERNES (vendre, acheter, guide, à propos, contact)
   ================================================================== */
a.card { color: inherit; }

/* Processus en étapes numérotées */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.step {
  position: relative; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm);
}
.step__n {
  width: 44px; height: 44px; border-radius: 13px; margin-bottom: 16px;
  background: var(--accent); color: #fff; font-family: var(--display);
  font-weight: 700; font-size: 1.15rem; display: grid; place-items: center;
}
.step h3 { font-family: var(--display); font-weight: 600; color: var(--brand); font-size: 1.12rem; margin: 0 0 8px; }
.step p { margin: 0; color: var(--muted); font-size: .93rem; }

/* Grille d'experts / équipe */
.experts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.expert {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; text-align: center; box-shadow: var(--shadow-sm);
}
.expert__ph { width: 88px; height: 88px; border-radius: 50%; margin: 0 auto 16px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }
.expert__ph svg { width: 40px; height: 40px; }
.expert strong { display: block; font-family: var(--display); color: var(--brand); font-size: 1.05rem; }
.expert span { display: block; color: var(--muted); font-size: .9rem; margin-top: 2px; }

/* FAQ / sections détaillées */
.faq { display: grid; gap: 14px; max-width: 860px; }
.faq__item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 26px; scroll-margin-top: 140px; }
.faq__item h3 { font-family: var(--display); font-weight: 600; color: var(--brand); font-size: 1.15rem; margin: 0 0 8px; }
.faq__item p { margin: 0; color: #3a4858; }

/* Liste à puces vertes (réutilise le style de l'accueil) */
.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.check-list li { display: flex; align-items: flex-start; gap: 11px; color: #3a4858; font-weight: 500; line-height: 1.5; }
.check-list li::before {
  content: ""; flex: none; width: 21px; height: 21px; margin-top: 1px; border-radius: 50%;
  background: var(--vert) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 12px no-repeat;
}

/* Page contact : formulaire + infos */
.contact-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: start; }
.contact-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 30px; }
.contact-card h2 { font-family: var(--display); font-weight: 600; color: var(--brand); font-size: 1.3rem; margin: 0 0 20px; }
.contact-info { display: grid; gap: 22px; }
.contact-aside { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }

/* Messages de formulaire */
.form__msg { margin: 16px 0 0; padding: 14px 16px; border-radius: 12px; font-weight: 600; display: none; }
.form__msg.form__ok { display: block; background: #e8f6ee; color: var(--vert-dark); border: 1px solid #c8e8d4; }
.form__msg.form__err { display: block; background: #fdecea; color: #c0392b; border: 1px solid #f5c6c0; }

/* Bloc final sombre (CTA large) — réutilise .home-hero en pied de page */
.cta-band { background: linear-gradient(120deg, var(--brand) 0%, var(--brand-dark) 100%); color: #fff; border-radius: 22px; padding: 52px; text-align: center; }
.cta-band h2 { font-family: var(--display); font-weight: 700; font-size: clamp(1.5rem, 3vw, 2rem); margin: 0 0 12px; }
.cta-band p { color: rgba(255,255,255,.85); max-width: 600px; margin: 0 auto 26px; }
.cta-band__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

@media (max-width: 960px) {
  .steps { grid-template-columns: 1fr 1fr; }
  .experts { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; }
  .cta-band { padding: 36px 24px; }
}

/* ==================================================================
   AVIS CLIENTS
   ================================================================== */
.rating-hero { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 26px 30px; }
.rating-hero__score { font-family: var(--display); font-weight: 800; font-size: 3rem; color: var(--accent); line-height: 1; }
.rating-hero__stars { color: #f5a623; font-size: 1.4rem; letter-spacing: 3px; }
.rating-hero__meta { color: var(--muted); margin: 4px 0 0; }
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.review { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 12px; }
.review__stars { color: #f5a623; letter-spacing: 2px; }
.review p { margin: 0; color: #3a4858; line-height: 1.6; }
.review__author { margin-top: auto; font-weight: 700; color: var(--brand); }
.review__author span { display: block; font-weight: 500; color: var(--muted); font-size: .88rem; }
@media (max-width: 960px) { .reviews-grid { grid-template-columns: 1fr; } }

/* ==================================================================
   ÉQUILIBRE BLEU / VERT — touches d'émeraude dans la palette
   (bloc d'overrides global : facile à ajuster ou retirer)
   ================================================================== */

/* Marqueur vert au-dessus de chaque titre de section */
.section__title { position: relative; padding-top: 20px; }
.section__title::before {
  content: ""; position: absolute; top: 0; left: 0;
  width: 46px; height: 4px; border-radius: 4px;
  background: linear-gradient(90deg, var(--vert), #34d27f);
}

/* Lueur corail dans les grands aplats bleu encre (charte magazine) */
.home-hero, .hero {
  background:
    radial-gradient(110% 120% at 100% 0%, rgba(240,85,77,.38) 0%, transparent 55%),
    linear-gradient(120deg, var(--brand) 0%, var(--brand-dark) 100%);
}
.footer-cta {
  background:
    radial-gradient(100% 130% at 0% 0%, rgba(240,85,77,.34) 0%, transparent 55%),
    linear-gradient(120deg, var(--brand) 0%, var(--brand-dark) 100%);
}
.cta-band, .cta {
  background:
    radial-gradient(80% 130% at 100% 0%, rgba(240,85,77,.32) 0%, transparent 55%),
    linear-gradient(120deg, var(--brand) 0%, var(--brand-dark) 100%);
}

/* Accents ponctuels */
.type-card__k { color: var(--accent-dark); }
.type-card:hover .type-card__more { color: var(--accent-dark); }
.faq__item { border-left: 4px solid var(--vert); }
.footer-col__title::after { background: var(--vert); }

/* Rythme bleu ↔ vert sur les chiffres clés et les icônes de cartes */
.stat:nth-child(even) strong { color: var(--vert-dark); }
.cards .card:nth-child(even) .card__icon { background: #e8f6ee; color: var(--vert-dark); }

/* Liens : survol émeraude discret (hors navigation principale) */
.prose a:hover, .detail-desc a:hover { color: var(--vert-dark); }

/* ==================================================================
   Rochat Gestion — compléments (tarifs, blog, ajustements de charte)
   ================================================================== */

/* Ajustements de charte : l'orange remplace les accents émeraude/bleus */
.home-hero {
  background:
    radial-gradient(110% 120% at 100% 0%, rgba(240, 85, 77, .38) 0%, transparent 55%),
    linear-gradient(120deg, var(--brand) 0%, var(--brand-dark) 100%);
}
.home-hero__eyebrow {
  color: #ffb3ad;
  border-color: rgba(240, 85, 77, .45);
  background: rgba(240, 85, 77, .14);
}
.stat:nth-child(even) strong { color: var(--accent-dark); }
.cards .card:nth-child(even) .card__icon { background: var(--accent-soft); color: var(--accent-dark); }
.prose a:hover, .detail-desc a:hover { color: var(--accent-dark); }
.check-list li::before,
.bien-form__check input:checked + span::before { background-color: var(--accent) !important; }

/* — Tarifs (nos-offres) — */
.pricing {
  display: grid; gap: 22px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  align-items: stretch; margin-top: 34px;
}
.price-card {
  position: relative; display: flex; flex-direction: column;
  background: var(--bg); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 30px 26px 26px;
  box-shadow: var(--shadow-sm);
}
.price-card--featured {
  border-color: var(--accent);
  box-shadow: var(--shadow-lg);
}
.price-card__badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: #fff; font-size: .7rem; font-weight: 700;
  letter-spacing: .6px; text-transform: uppercase;
  padding: 5px 14px; border-radius: 999px; white-space: nowrap;
}
.price-card__name {
  margin: 0 0 6px; font-family: var(--display); font-size: 1.05rem;
  font-weight: 700; color: var(--brand);
}
.price-card__price {
  font-family: var(--display); font-size: 2.3rem; font-weight: 800;
  color: var(--accent-dark); line-height: 1.1;
}
.price-card__price small { font-size: 1rem; font-weight: 600; color: var(--muted); }
.price-card__period { margin: 4px 0 18px; color: var(--muted); font-size: .88rem; }
.price-card .check-list { flex: 1; margin: 0 0 22px; }
.price-card .btn { width: 100%; justify-content: center; text-align: center; }

/* — Blog — */
.post-grid {
  display: grid; gap: 24px;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  margin-top: 34px;
}
.post-card {
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--bg); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
  transition: transform .15s ease, box-shadow .15s ease;
  color: inherit;
}
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); color: inherit; }
.post-card__img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; background: var(--bg-mute); }
.post-card__body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.post-card__date { font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; }
.post-card__title { margin: 0; font-family: var(--display); font-size: 1.06rem; font-weight: 700; color: var(--brand); line-height: 1.35; }
.post-card__excerpt { margin: 0; color: var(--muted); font-size: .92rem; flex: 1; }
.post-card__more { color: var(--accent-dark); font-weight: 600; font-size: .9rem; }

/* — Article de blog — */
.article { max-width: 820px; margin: 0 auto; }
.article__date { color: var(--muted); font-size: .88rem; margin-bottom: 8px; }
.article .prose img { border-radius: var(--radius-sm); margin: 18px auto; max-height: 480px; object-fit: cover; }
.article .prose h2 { font-family: var(--display); color: var(--brand); margin-top: 2em; }
.article .prose h3 { font-family: var(--display); color: var(--brand); }

/* Pastilles et tirets d'accent : orange charte (au lieu de l'émeraude) */
.topbar__tag::before { background: var(--accent); box-shadow: 0 0 0 3px rgba(240,85,77,.25); }
.home-hero__eyebrow::before { background: var(--accent); box-shadow: 0 0 0 3px rgba(240,85,77,.28); }
.section__title::before { background: linear-gradient(90deg, var(--accent), #ff8d80); }
.faq__item { border-left-color: var(--accent); }
.footer-col__title::after { background: var(--accent); }
.faq__item summary {
  font-family: var(--display); font-weight: 600; color: var(--brand);
  font-size: 1.1rem; cursor: pointer; list-style: none; position: relative; padding-right: 28px;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  color: var(--accent); font-size: 1.4rem; font-weight: 600; line-height: 1;
}
.faq__item[open] summary::after { content: "–"; }
.faq__item[open] summary { margin-bottom: 10px; }

/* Topbar mobile : on ne garde que téléphone + espace client */
@media (max-width: 760px) {
  .topbar__tag { display: none; }
  .site-header__topbar-inner { justify-content: center; }
}

/* Pictos SVG hérités du contenu WordPress (articles) : taille d'icône en ligne */
.prose svg { width: 1.2em; height: 1.2em; display: inline-block; vertical-align: -0.22em; margin-right: .45em; color: var(--accent); }

/* ==================================================================
   VERSION CLAIRE & LUMINEUSE (2026-07-13, demande JP)
   Les grands aplats bleu nuit deviennent des fonds clairs ; le bleu
   encre ne subsiste qu'en topbar et pied de page.
   ================================================================== */

/* — Hero clair — */
.home-hero, .hero {
  color: var(--ink);
  background:
    radial-gradient(90% 110% at 100% 0%, rgba(240,85,77,.10) 0%, transparent 55%),
    radial-gradient(70% 100% at 0% 100%, rgba(38,43,78,.06) 0%, transparent 55%),
    linear-gradient(160deg, #ffffff 0%, #f3f5fb 100%);
}
.home-hero h1, .hero h1 { color: var(--brand); }
.home-hero p, .hero p { color: #4c5170; }
.home-hero__eyebrow {
  color: var(--accent-dark);
  border-color: rgba(240,85,77,.35);
  background: var(--accent-soft);
}
.home-hero__eyebrow::before { box-shadow: 0 0 0 3px rgba(240,85,77,.18); }

/* Le bouton « blanc » du hero garde un contour sur fond clair */
.home-hero .btn--light, .hero .btn--light { border-color: var(--line); box-shadow: var(--shadow-sm); }

/* Le bandeau de statistiques devient une carte posée sur fond clair */
.stats { box-shadow: var(--shadow); border: 1px solid var(--line); }

/* — Encarts CTA clairs (honoraires, « un doute sur la formule »…) — */
.cta-band, .cta {
  background:
    radial-gradient(80% 130% at 100% 0%, rgba(240,85,77,.10) 0%, transparent 55%),
    linear-gradient(160deg, #ffffff 0%, #f3f5fb 100%);
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.cta h2, .cta-card__title { color: var(--brand); }
.cta p, .cta-card__text { color: #4c5170; }
.cta-band .btn--light, .cta .btn--light { border-color: var(--line); }

/* — Bande d'appel à l'action du pied de page, en clair — */
.footer-cta {
  background:
    radial-gradient(100% 130% at 0% 0%, rgba(240,85,77,.12) 0%, transparent 55%),
    linear-gradient(160deg, #ffffff 0%, #f0f2fa 100%);
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.footer-cta__title { color: var(--brand); }
.footer-cta__text { color: #4c5170; }
.footer-cta .btn--light { border-color: var(--line); background: #fff; }

/* Sections : alternance blanc / gris très clair, plus aérée */
.section--soft { background: #f8f9fd; }

/* Badge du hero plus discret (demande JP : « trop gros ») */
.home-hero__eyebrow {
  font-size: .55rem;
  padding: 3px 10px;
  letter-spacing: .6px;
  margin-bottom: 14px;
}
.home-hero__eyebrow::before { width: 5px; height: 5px; }

/* Logo FNAIM Chambre du Rhône dans le pied de page */
.footer-fnaim {
  display: inline-flex; align-items: center;
  background: #fff; border-radius: 10px; padding: 7px 12px;
}
.footer-fnaim img { height: 44px; width: auto; display: block; }
@media (max-width: 960px) { .site-footer__bottom-inner { gap: 14px; } }

/* Hero de l'accueil : texte + photo de Lyon */
.home-hero__grid {
  display: grid; grid-template-columns: 1.04fr .96fr;
  gap: 48px; align-items: center;
}
.home-hero__media {
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-lg); aspect-ratio: 5 / 4;
  transform: rotate(.6deg);
}
.home-hero__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 960px) {
  .home-hero__grid { grid-template-columns: 1fr; gap: 30px; }
  .home-hero__media { aspect-ratio: 16 / 10; transform: none; }
}

/* Badge du hero : spécificité > `.home-hero p` (qui imposait 1.18rem) */
.home-hero p.home-hero__eyebrow {
  font-size: .68rem;
  padding: 3px 11px;
  letter-spacing: .7px;
  margin: 0 0 14px;
}

/* Statistique FNAIM du hero : le cube remplace le texte */
.stat--logo img {
  display: block; height: 46px; width: auto; margin: 0 auto;
}

/* ==================================================================
   CHARTE ROCHAT 1922 (2026-11-23, demande JP)
   Alignement sur rochat1922.fr : marine #143257 + corail #DD6B4D,
   creme #f6f1e7, Space Grotesk / Inter, boutons pilule, cartes a
   liseré métier (orange gestion #e07b2f), hero photo voile marine.
   ================================================================== */
:root {
  --m-gestion: #EC642A;
  --cream: #f6f1e7;
  --ease: cubic-bezier(.22,.61,.36,1);
}

/* Boutons pilule */
.btn { border-radius: 999px; font-weight: 700; transition: background .2s var(--ease), color .2s var(--ease), transform .2s var(--ease), border-color .2s var(--ease); }
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--accent); }
.btn--primary:hover { background: var(--accent-dark); }

/* Marque texte (header) */
.brand-word { font-family: "Montserrat", sans-serif; font-weight: 800; font-size: 1.55rem; letter-spacing: -.03em; color: var(--brand); line-height: 1; }
.brand-sub { display: flex; flex-direction: column; border-left: 1.5px solid #cfd6df; padding-left: 12px; margin-left: 12px; font-size: .68rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); line-height: 1.5; }
.brand-sub b { color: var(--m-gestion); font-weight: 700; }
.brand--logo { display: inline-flex; align-items: center; }

/* En-tête : blanc net, sans flou */
.site-header::before { background: #fff; backdrop-filter: none; -webkit-backdrop-filter: none; }
.site-header--scrolled::before { background: #fff; }
.site-header__topbar { background: var(--brand); }
.nav__link { font-weight: 600; }
.nav__item.is-active > .nav__link { color: var(--accent-dark); }

/* Kicker et filets de titres */
.section__title::before { background: var(--m-gestion); height: 3px; width: 44px; }
.home-hero p.home-hero__eyebrow, .hero p.hero__eyebrow { border: 0; background: transparent; padding: 0; }

/* Hero accueil : photo plein cadre, voile marine, texte blanc */
.home-hero {
  position: relative; overflow: hidden; color: #fff;
  background: var(--brand);
  padding: 96px 0 84px;
}
.home-hero__bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 70% 42%; z-index: 0;
}
.home-hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgba(20,50,87,.95) 0%, rgba(20,50,87,.84) 32%, rgba(20,50,87,.30) 62%, rgba(20,50,87,.08) 78%);
}
.home-hero .container { position: relative; z-index: 2; }
.home-hero__grid { display: block; }
.home-hero__inner { max-width: 640px; }
.home-hero h1 { color: #fff; font-weight: 700; }
.home-hero h1 em { font-style: normal; color: #ffb59e; }
.home-hero p { color: rgba(255,255,255,.88); }
.home-hero p.home-hero__eyebrow {
  font-family: var(--font); font-style: italic; text-transform: none;
  letter-spacing: 0; font-size: 1.05rem; color: rgba(255,255,255,.88);
}
.home-hero__eyebrow::before { display: none; }
.home-hero__media { display: none; }
.home-hero .btn--light { background: #fff; color: var(--brand); border-color: #fff; box-shadow: none; }

/* Bandeau de chiffres : bande créme pleine largeur, style « trust » */
.stats {
  margin-top: 54px; background: #fff; border: 1px solid var(--line);
  box-shadow: 0 2px 4px rgba(10,28,52,.04), 0 18px 40px -22px rgba(10,28,52,.35);
  border-radius: 18px;
}
.stat strong { font-family: var(--display); color: var(--brand); }
.stat:nth-child(even) strong { color: var(--brand); }

/* Cartes : rayon 18, ombre 1922, liseré métier orange */
.card, .price-card, .post-card, .review, .faq__item, .contact-card, .contact-aside {
  border-radius: 18px;
  box-shadow: 0 2px 4px rgba(10,28,52,.04), 0 18px 40px -22px rgba(10,28,52,.35);
}
.card { border-top: 4px solid var(--m-gestion); transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.card:hover { transform: translateY(-4px); box-shadow: 0 2px 4px rgba(10,28,52,.05), 0 26px 50px -22px rgba(10,28,52,.45); }
.cards .card .card__icon { background: #faf0dc; color: var(--m-gestion); }
.cards .card:nth-child(even) .card__icon { background: #faf0dc; color: var(--m-gestion); }
.faq__item { border-left-color: var(--m-gestion); }

/* Sections crème, encarts CTA et bande du pied de page */
.section--soft { background: var(--cream); }
.cta-band, .cta {
  background: var(--brand); color: #fff; border: 0; border-radius: 18px;
  box-shadow: none;
}
.cta h2, .cta-card__title { color: #fff; }
.cta p, .cta-card__text { color: rgba(255,255,255,.8); }
.cta-band .btn--light, .cta .btn--light { background: #fff; color: var(--brand); border-color: #fff; }
.footer-cta {
  background: var(--brand); color: #fff; border-bottom: 0;
}
.footer-cta__title { color: #fff; }
.footer-cta__text { color: rgba(255,255,255,.8); }
.footer-cta .btn--light { background: #fff; color: var(--brand); border-color: #fff; }

/* Pied de page marine profond */
.site-footer { background: var(--brand-dark); }
.site-footer__grid, .site-footer__bottom { background: transparent; }

/* En-têtes de pages intérieures : crème, kicker corail */
.page-head { background: var(--cream); }
.page-head h1 { color: var(--brand); }

/* Hero clair générique (pages) conservé en crème */
.hero { background: var(--cream); color: var(--ink); }
.hero h1 { color: var(--brand); }

/* Logotype 2026 dans l'en-tête */
.brand--logo img { height: 46px; width: auto; display: block; }
@media (max-width: 560px) { .brand--logo img { width: auto; height: 34px; } }

/* Estimateur de loyer (valeur-locative) */
.estim-sugg { position: relative; display: flex; flex-direction: column; gap: 4px; margin-top: 6px; }
.estim-sugg__item {
  text-align: left; padding: 10px 14px; border: 1px solid var(--line);
  border-radius: 10px; background: #fff; cursor: pointer; font: inherit; color: var(--ink);
}
.estim-sugg__item:hover { border-color: var(--accent); background: var(--accent-soft); }
.estim-sep { border: 0; border-top: 1px solid var(--line); margin: 22px 0 14px; }
.estim-coords-title { font-weight: 700; color: var(--brand); margin: 0 0 10px; font-family: var(--display); }
.estim-resultat {
  margin-top: 18px; padding: 24px 26px; border-radius: 14px;
  background: var(--cream); border: 1px solid var(--line);
}
.estim-kicker { margin: 0 0 6px; text-transform: uppercase; letter-spacing: .12em; font-size: .74rem; font-weight: 700; color: var(--accent-dark); }
.estim-fourchette { margin: 0; font-family: var(--display); font-size: 1.7rem; color: var(--brand); }
.estim-fourchette strong { color: var(--accent-dark); }
.estim-detail { margin: 8px 0 0; color: var(--muted); font-size: .92rem; }
.estim-note { margin: 12px 0 0; font-size: .92rem; color: var(--ink); }
.estim-next { margin: 14px 0 0; font-weight: 600; }
.estim-err { margin: 0; color: #b4502f; font-weight: 600; }
#est-form select { width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; font: inherit; background: #fff; }
