/* =========================================================
   César & Brutus — Pages « Estimation immobilière » (v1.1)
   Feuille de style unique (extension cb-estimation).
   Chargée uniquement sur /estimer-mon-bien/ et les pages /estimation-immobiliere-(zone)/.
   Langage visuel repris des blocs de la page d'accueil (surtitres, cartes, encart navy).
   Paliers du thème : tablette ≤ 1400 px, mobile ≤ 544 px.
   Couleurs : navy #1f2b52, fond hero #141d3a, secondaire #7e89a1, gris #f5f6f9,
   bordures #e3e6ed, vert #2f8a6b, terracotta #b3503f.
   ========================================================= */

/* =========================================================
   1. HERO — copie exacte du bloc .cbh de /estimer-mon-bien/
   ========================================================= */
.cbh {
  --cbh-bg: #141d3a; /* ← couleur de fond du Hero */
  /* Tailles = réglages typographiques du site (ordinateur > 1400 px) */
  --cbh-h1: clamp(38px, 5.4vw, 68px); /* titre H1 : même taille que sur l'accueil */
  --cbh-lead: 18px;   /* texte (= H5) */
  position: relative;
  background: var(--cbh-bg);
  /* Étend la couleur sur toute la largeur de l'écran, sans barre de défilement */
  box-shadow: 0 0 0 100vmax var(--cbh-bg);
  clip-path: inset(0 -100vmax);
  font-family: 'Montserrat', sans-serif;
}
.cbh *, .cbh *::before, .cbh *::after { box-sizing: border-box; }

/* Grille 2 colonnes (passe en 1 colonne automatiquement) */
.cbh .cbh__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 72px 28px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: 56px;
  align-items: center;
}

/* Texte */
.cbh .cbh__title {
  margin: 0 0 22px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 900;
  font-size: var(--cbh-h1);
  line-height: 1;
  letter-spacing: -0.01em;
  text-transform: none;
  color: #fff;
  text-wrap: balance;
}
.cbh .cbh__lead {
  margin: 0 0 34px;
  max-width: 500px;
  font-family: 'Montserrat', sans-serif;
  font-size: var(--cbh-lead); font-weight: 400; line-height: 1.6;
  color: rgba(255,255,255,0.85);
  text-wrap: pretty;
}

/* Bouton « Besoin de renseignements ? » (style des boutons du site, en blanc sur le fond navy) */
.cbh .cbh__btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 15px 28px;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px; font-weight: 500; line-height: 1.2;
  letter-spacing: 2px; text-transform: uppercase; text-align: center;
  text-decoration: none !important; /* le thème souligne les liens */
  color: #1f2b52;
  background: #fff;
  border: 0;
  border-radius: 50px;
  transition: color 160ms ease, background-color 160ms ease;
}
.cbh .cbh__btn:hover,
.cbh .cbh__btn:focus-visible {
  color: #fff;
  text-decoration: none !important;
  background: #7e89a1;
}
.cbh .cbh__btn:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

/* Outil d'estimation
   - L'outil a une marge interne de 16 px : le cadre est élargi de 32 px
     pour que sa carte s'aligne sur les bords de la colonne.
   - Le bas du cadre est rogné pour masquer la ligne « Carte professionnelle ». */
.cbh .cbh__form { min-width: 0; }
.cbh .cbh__frame {
  width: calc(100% + 32px);
  margin: -16px -16px 0;
  overflow: hidden;
}
.cbh .cbh__iframe {
  display: block;
  width: 100%;
  max-width: none;
  height: 520px; /* ajusté automatiquement par le script ci-dessous */
  margin: 0;
  border: 0;
  background: transparent;
  color-scheme: normal;
}

/* Séparateur « ou » */
.cbh .cbh__or {
  display: flex; align-items: center; gap: 12px;
  margin: 20px 0 16px;
  font-size: 12px; line-height: 1.5;
  color: #9aa3b6;
}
.cbh .cbh__or::before,
.cbh .cbh__or::after {
  content: ""; flex: 1; height: 1px;
  background: rgba(255,255,255,0.18);
}

/* Bouton RDV (contour blanc sur navy) */
.cbh .cbh__rdv {
  display: flex; align-items: center; justify-content: center;
  width: 100%; min-height: 46px;
  padding: 12px 22px;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px; font-weight: 600; line-height: 1.2;
  letter-spacing: 0.02em; text-transform: none; text-align: center;
  text-decoration: none !important; /* le thème souligne les liens */
  color: #fff;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: 10px;
  transition: border-color 140ms cubic-bezier(0.22,1,0.36,1), background-color 140ms cubic-bezier(0.22,1,0.36,1);
}
.cbh .cbh__rdv:hover,
.cbh .cbh__rdv:focus-visible {
  color: #fff;
  text-decoration: none !important;
  border-color: #fff;
  background: rgba(255,255,255,0.06);
}

/* Tailles tablette : ≤ 1400 px (même palier que le thème) */
@media (max-width: 1400px) {
  .cbh { --cbh-lead: 16px; }
}
/* Tailles mobile : ≤ 544 px (même palier que le thème) */
@media (max-width: 544px) {
  .cbh { --cbh-lead: 14px; }
}

/* Mobile */
@media (max-width: 600px) {
  .cbh .cbh__inner { padding: 48px 20px; gap: 40px; }
  .cbh .cbh__title { margin-bottom: 16px; }
  .cbh .cbh__lead { margin-bottom: 26px; }
  .cbh .cbh__btn { padding: 14px 22px; letter-spacing: 1px; }
}

/* =========================================================
   2. HERO — variante pages de zone (.cbh--zone)
   H1 des pages intérieures : 60 / 50 / 33 px (règle du site)
   ========================================================= */
.cbh.cbh--zone { --cbh-h1: 60px; }
.cbh--zone .cbh__title { line-height: 1.05; overflow-wrap: break-word; }
.cbh--zone .cbh__lead { margin-bottom: 28px; }
.cbh .cbh__crumbs { margin: 0 0 22px; font-size: 13px; line-height: 1.5; color: rgba(255,255,255,0.6); }
.cbh .cbh__crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.cbh .cbh__crumbs li { margin: 0; }
.cbh .cbh__crumbs li + li::before { content: "›"; margin-right: 6px; color: rgba(255,255,255,0.35); }
.cbh .cbh__crumbs a { color: rgba(255,255,255,0.75); text-decoration: none !important; }
.cbh .cbh__crumbs a:hover, .cbh .cbh__crumbs a:focus-visible { color: #fff; }
.cbh .cbh__eyebrow {
  margin: 0 0 14px;
  font-family: 'Montserrat', sans-serif;
  font-size: 13px; font-weight: 700; line-height: 1.5;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: #bcc3d0;
}
/* Chiffres clés (style des étapes de l'encart « Veni, Vidi, Vendu ») */
.cbh dl.cbh__stats {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px;
  max-width: 460px; margin: 0 0 32px; padding: 0;
}
.cbh .cbh__stat {
  margin: 0; padding: 16px 18px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px;
}
.cbh .cbh__stat-label {
  margin: 0 0 6px;
  font-size: 12px; font-weight: 700; line-height: 1.4;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: #bcc3d0;
}
.cbh .cbh__stat-value {
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  font-size: 28px; font-weight: 800; line-height: 1.1; letter-spacing: -0.01em;
  color: #fff; white-space: nowrap;
}
.cbh .cbh__stat-value small { margin-left: 3px; font-size: 14px; font-weight: 600; color: #bcc3d0; }
@media (max-width: 1400px) { .cbh.cbh--zone { --cbh-h1: 50px; } .cbh .cbh__stat-value { font-size: 25px; } }
@media (max-width: 544px) {
  .cbh.cbh--zone { --cbh-h1: 33px; }
  .cbh .cbh__eyebrow { font-size: 12px; letter-spacing: 0.14em; }
  .cbh dl.cbh__stats { gap: 10px; margin-bottom: 26px; }
  .cbh .cbh__stat { padding: 12px 14px; border-radius: 14px; }
  .cbh .cbh__stat-label { font-size: 11px; letter-spacing: 0.1em; }
  .cbh .cbh__stat-value { font-size: 20px; }
  .cbh .cbh__stat-value small { font-size: 12px; }
}

/* =========================================================
   3. SECTIONS (.cbe-section) — même langage que les blocs de l'accueil
   Fonds : blanc / gris (--alt) / navy (--navy), pleine largeur.
   ========================================================= */
.cbe-section {
  --cbe-eyebrow: 15px;  /* = H6 */
  --cbe-h2: 46px;       /* = H2 */
  --cbe-h4: 25px;       /* = H4 (sous-titres, titres de cartes) */
  --cbe-h5: 18px;       /* = H5 */
  --cbe-texte: 16px;    /* corps */
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 96px 28px;
  font-family: 'Montserrat', sans-serif;
  color: #3a4257;
}
.cbe-section *, .cbe-section *::before, .cbe-section *::after { box-sizing: border-box; }
.cbe-section--alt { background: #f5f6f9; box-shadow: 0 0 0 100vmax #f5f6f9; clip-path: inset(0 -100vmax); }
.cbe-section--navy { background: #1f2b52; box-shadow: 0 0 0 100vmax #1f2b52; clip-path: inset(0 -100vmax); }
.cbe-section.cbe-section--suite { padding-top: 0; }

/* Typographie (explicite : ne dépend pas des réglages du kit Elementor) */
.cbe-section .cbe-eyebrow {
  margin: 0 0 12px;
  font-family: 'Montserrat', sans-serif;
  font-size: var(--cbe-eyebrow); font-weight: 700; line-height: 1.5;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: #7e89a1;
}
.cbe-section .cbe-h2 {
  margin: 0 0 22px;
  font-family: 'Montserrat', sans-serif;
  font-size: var(--cbe-h2); font-weight: 800; line-height: 1.05;
  letter-spacing: -0.01em; text-transform: none;
  color: #1f2b52;
  text-wrap: balance;
}
.cbe-section .cbe-h3 {
  margin: 0 0 18px;
  font-family: 'Montserrat', sans-serif;
  font-size: var(--cbe-h4); font-weight: 700; line-height: 1.25;
  letter-spacing: 0; text-transform: none;
  color: #1f2b52;
  text-wrap: balance;
}
.cbe-section p {
  margin: 0 0 1em;
  font-family: 'Montserrat', sans-serif;
  font-size: var(--cbe-texte); font-weight: 400; line-height: 1.65;
  color: #3a4257;
}
.cbe-section strong { color: #1f2b52; font-weight: 700; }
.cbe-section .cbe-lead { font-size: var(--cbe-h5); font-weight: 500; line-height: 1.6; color: #1f2b52; }
.cbe-section .cbe-note { margin: 12px 0 0; font-size: 13px; line-height: 1.5; color: #7e89a1; }

.cbe-section--navy .cbe-eyebrow { color: #bcc3d0; }
.cbe-section--navy .cbe-h2 { color: #fff; }
.cbe-section--navy .cbe-head p { color: rgba(255,255,255,0.8); }

/* En-tête de section (surtitre + titre + intro) */
.cbe-head { max-width: 820px; margin: 0 0 48px; }
.cbe-head > :last-child { margin-bottom: 0; }
.cbe-head--center { margin-left: auto; margin-right: auto; text-align: center; }

/* Deux colonnes : texte à gauche, visuels à droite (≥ 1025 px) */
.cbe-split { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; }
@media (min-width: 1025px) {
  .cbe-split { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 72px; align-items: start; }
  .cbe-split--faq { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); }
  .cbe-split__aside { position: sticky; top: 120px; }
  .cbe-split--sticky > :last-child { position: sticky; top: 120px; }
  .cbe-section .cbe-split--faq .cbe-h2 { font-size: calc(var(--cbe-h2) * 0.72); }
}
.cbe-split > * > :last-child { margin-bottom: 0; }

/* Listes des composants : on neutralise les marges et retraits du thème / navigateur */
.cbe-section ul.cbe-checks, .cbe-section ul.cbe-zones, .cbe ul.cbe-zones,
.cbh ol {
  margin: 0; padding: 0; list-style: none;
}
.cbe-section ul.cbe-checks > li, .cbe-section ul.cbe-zones > li, .cbe ul.cbe-zones > li, .cbh ol > li { margin: 0; list-style: none; }
.cbh dl.cbh__stats dt, .cbh dl.cbh__stats dd { margin-left: 0; margin-right: 0; }

/* Icônes au trait */
.cbe-section .cbe-ico {
  width: 24px; height: 24px; flex: none;
  fill: none; stroke: #1f2b52; stroke-width: 1.7;
  stroke-linecap: round; stroke-linejoin: round;
}
.cbe-iconbox {
  display: flex; align-items: center; justify-content: center; flex: none;
  width: 48px; height: 48px;
  background: #f5f6f9; border-radius: 14px;
}

/* =========================================================
   4. CARTES DE PRIX (prix moyen + fourchette + évolution)
   ========================================================= */
.cbe-prices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.cbe-price {
  position: relative;
  padding: 28px 24px 24px;
  background: linear-gradient(135deg, #ffffff 0%, #f7f8fb 100%);
  border: 1px solid rgba(31,43,82,0.08);
  border-radius: 20px;
  box-shadow: 0 14px 40px rgba(31,43,82,0.07);
  overflow: hidden;
}
.cbe-price::before {
  content: ""; position: absolute; top: 0; left: 20px; right: 20px; height: 3px;
  border-radius: 0 0 999px 999px;
  background: linear-gradient(90deg, #1f2b52, #7e89a1);
}
.cbe-section .cbe-price__label {
  margin: 0 0 10px;
  font-size: 13px; font-weight: 700; line-height: 1.4;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: #7e89a1;
}
.cbe-section .cbe-price__value {
  margin: 0 0 14px;
  font-size: 40px; font-weight: 800; line-height: 1; letter-spacing: -0.02em;
  color: #1f2b52; white-space: nowrap;
}
.cbe-price__value small { margin-left: 4px; font-size: 16px; font-weight: 600; letter-spacing: 0; color: #7e89a1; }

.cbe-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 11px;
  font-size: 12px; font-weight: 700; line-height: 1.3;
  color: #4b4f58; background: #eef0f4;
  border-radius: 999px;
}
.cbe-chip--up { color: #2f8a6b; background: rgba(47,138,107,0.12); }
.cbe-chip--down { color: #b3503f; background: rgba(179,80,63,0.12); }

.cbe-range { margin-top: 24px; }
.cbe-section .cbe-range__title { margin: 0 0 10px; font-size: 12px; font-weight: 600; line-height: 1.3; color: #7e89a1; }
.cbe-range__track {
  position: relative; height: 6px; border-radius: 99px;
  background: linear-gradient(90deg, rgba(126,137,161,0.25), rgba(31,43,82,0.45));
}
.cbe-range__dot {
  position: absolute; top: 50%; left: var(--pos, 50%);
  width: 16px; height: 16px; margin: -8px 0 0 -8px;
  background: #1f2b52; border-radius: 50%;
  box-shadow: 0 0 0 4px #fff, 0 2px 8px rgba(31,43,82,0.35);
}
.cbe-range__legend {
  display: flex; justify-content: space-between; gap: 10px;
  margin-top: 10px;
  font-size: 12px; font-weight: 600; line-height: 1.3; color: #7e89a1;
}

/* Encadré « à retenir » */
.cbe-callout {
  display: flex; align-items: flex-start; gap: 16px;
  margin-top: 24px; padding: 20px 22px;
  background: #f5f6f9; border-radius: 16px;
}
.cbe-section--alt .cbe-callout { background: #fff; border: 1px solid #e3e6ed; }
.cbe-callout .cbe-iconbox { width: 40px; height: 40px; border-radius: 12px; background: #fff; }
.cbe-section--alt .cbe-callout .cbe-iconbox { background: #f5f6f9; }
.cbe-callout .cbe-iconbox .cbe-ico { width: 20px; height: 20px; }
.cbe-section .cbe-callout p { margin: 0; color: #1f2b52; font-weight: 500; }

/* =========================================================
   5. TABLEAUX DE PRIX (.cbe-table) — barres par quartier
   ========================================================= */
.cbe-legend { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 0 0 14px; font-size: 13px; font-weight: 600; color: #4b4f58; }
.cbe-legend span { display: inline-flex; align-items: center; gap: 8px; }
.cbe-legend span::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: #1f2b52; }
.cbe-legend span + span::before { background: #9aa4ba; }

.cbe-table-wrap {
  background: #fff;
  border: 1px solid #e3e6ed;
  border-radius: 20px;
  box-shadow: 0 14px 40px rgba(31,43,82,0.07);
  overflow-x: auto; overflow-y: hidden;   /* très petits écrans : défilement dans la carte, jamais la page */
}
.cbe-table-wrap table.cbe-table {
  width: 100%; margin: 0; border: 0;
  border-collapse: collapse; border-spacing: 0;
  background: transparent;
  font-family: 'Montserrat', sans-serif; font-size: var(--cbe-texte); line-height: 1.45;
}
.cbe-table-wrap .cbe-table th,
.cbe-table-wrap .cbe-table td { padding: 16px 24px; border: 0; text-align: left; vertical-align: middle; }
.cbe-table-wrap .cbe-table thead th {
  padding-top: 18px; padding-bottom: 14px;
  background: #fff; color: #7e89a1;
  font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  border-bottom: 1px solid #e3e6ed;
}
.cbe-table-wrap .cbe-table tbody td { border-top: 1px solid #eef0f4; color: #3a4257; }
.cbe-table-wrap .cbe-table tbody tr:first-child td { border-top: 0; }
.cbe-table-wrap .cbe-table tbody tr:hover td { background: #fafbfd; }
.cbe-table-wrap .cbe-table tbody td:first-child { color: #1f2b52; font-weight: 700; }
.cbe-table-wrap .cbe-table .cbe-num { white-space: nowrap; font-variant-numeric: tabular-nums; }
.cbe-table-wrap .cbe-table .cbe-muted { color: #9aa4ba; font-size: 0.9em; }
.cbe-table-wrap .cbe-table caption {
  caption-side: bottom;
  padding: 14px 24px 16px;
  text-align: left; font-size: 13px; line-height: 1.5; color: #7e89a1;
  background: #fafbfd; border-top: 1px solid #eef0f4;
}
/* Barre + valeur dans une cellule */
.cbe-cell { display: flex; align-items: center; gap: 14px; }
.cbe-bar { position: relative; flex: 1; min-width: 60px; height: 8px; border-radius: 99px; background: #eef0f4; overflow: hidden; }
.cbe-bar i { position: absolute; inset: 0 auto 0 0; width: var(--v, 0%); border-radius: 99px; background: #1f2b52; }
.cbe-bar--2 i { background: #9aa4ba; }
.cbe-val { flex: none; min-width: 74px; text-align: right; font-weight: 700; color: #1f2b52; }

/* =========================================================
   6. CARTES (lecture des écarts, scénarios, comparatif)
   ========================================================= */
.cbe-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.cbe-cards > :last-child:nth-child(odd) { grid-column: 1 / -1; }
.cbe-card {
  display: flex; flex-direction: column; gap: 14px;
  padding: 28px;
  background: #fff;
  border: 1px solid #e3e6ed;
  border-radius: 16px;
  box-shadow: 0 1px 2px rgba(20,29,58,0.06);
  transition: transform 180ms cubic-bezier(0.22,1,0.36,1), box-shadow 180ms cubic-bezier(0.22,1,0.36,1);
}
.cbe-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(20,29,58,0.10); }
.cbe-section .cbe-card__title { margin: 0; font-size: var(--cbe-h5); font-weight: 700; line-height: 1.3; color: #1f2b52; }
.cbe-section .cbe-card__text { margin: 0; font-size: var(--cbe-texte); line-height: 1.6; color: #3a4257; }
.cbe-section .cbe-sub { margin-top: 64px; }

/* Scénarios de vente : bon prix / prix trop haut */
.cbe-scenarios { display: grid; gap: 16px; }
.cbe-scenario {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 18px;
  padding: 26px;
  background: #fff;
  border: 1px solid #e3e6ed;
  border-radius: 18px;
  box-shadow: 0 14px 40px rgba(31,43,82,0.07);
}
.cbe-scenario .cbe-iconbox { background: rgba(47,138,107,0.12); }
.cbe-scenario .cbe-ico { stroke: #2f8a6b; }
.cbe-scenario--bad .cbe-iconbox { background: rgba(179,80,63,0.12); }
.cbe-scenario--bad .cbe-ico { stroke: #b3503f; }
.cbe-scenario .cbe-chip { margin-bottom: 10px; }
.cbe-section .cbe-scenario .cbe-card__title { margin-bottom: 8px; }

/* Comparatif en ligne / sur place */
.cbe-versus { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.cbe-versus .cbe-card { padding: 34px 32px; }
.cbe-versus::after {
  content: "ou";
  position: absolute; left: 50%; top: 50%;
  display: flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; margin: -23px 0 0 -23px;
  font-size: 13px; font-weight: 700; color: #fff;
  background: #1f2b52; border-radius: 50%;
  box-shadow: 0 0 0 6px #f5f6f9;
}
.cbe-section:not(.cbe-section--alt) .cbe-versus::after { box-shadow: 0 0 0 6px #fff; }

/* =========================================================
   7. APPELS À L'ACTION (.cbe-cta)
   ========================================================= */
.cbe-cta { font-family: 'Montserrat', sans-serif; }
.cbe-section .cbe-cta__title { margin: 0 0 8px; font-size: var(--cbe-h5); font-weight: 700; line-height: 1.3; color: #1f2b52; }
.cbe-section .cbe-cta__text { margin: 0; }
.cbe-section .cbe-cta__note { margin: 12px 0 0; font-size: 13px; line-height: 1.5; color: #7e89a1; }

.cbe-section a.cbe-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 15px 28px;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px; font-weight: 500; line-height: 1.2;
  letter-spacing: 2px; text-transform: uppercase; text-align: center;
  text-decoration: none !important;
  color: #fff; background: #1f2b52;
  border: 0; border-radius: 50px;
  transition: color 0.3s, background-color 0.3s;
}
.cbe-section a.cbe-btn:hover, .cbe-section a.cbe-btn:focus-visible { color: #fff; background: #7e89a1; }
.cbe-section a.cbe-btn:focus-visible { outline: 2px solid #1f2b52; outline-offset: 3px; }
.cbe-section a.cbe-btn--light { color: #1f2b52; background: #fff; }
.cbe-section a.cbe-btn--light:hover, .cbe-section a.cbe-btn--light:focus-visible { color: #fff; background: #7e89a1; }
.cbe-section a.cbe-btn--light:focus-visible { outline-color: #fff; }

.cbe-section a.cbe-link {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 14px; font-weight: 700; letter-spacing: 0.04em;
  color: #1f2b52; text-decoration: none !important;
  border-bottom: 1px solid rgba(31,43,82,0.3); padding-bottom: 4px;
  transition: gap 0.2s, border-color 0.2s;
}
.cbe-section a.cbe-link:hover { gap: 14px; border-color: #1f2b52; }
.cbe-section a.cbe-link .cbe-ico { width: 18px; height: 18px; }

/* Encart : carte blanche, icône, bouton à droite */
.cbe-cta--encart {
  display: flex; align-items: center; gap: 24px;
  padding: 28px 32px;
  background: #fff;
  border: 1px solid #e3e6ed;
  border-radius: 20px;
  box-shadow: 0 14px 40px rgba(31,43,82,0.07);
}
.cbe-cta--encart .cbe-cta__icon,
.cbe-cta--fin .cbe-cta__icon {
  display: flex; align-items: center; justify-content: center; flex: none;
  width: 56px; height: 56px; background: #1f2b52; border-radius: 16px;
}
.cbe-section .cbe-cta--encart .cbe-ico, .cbe-section .cbe-cta--fin .cbe-ico { stroke: #fff; width: 26px; height: 26px; }
.cbe-cta--encart .cbe-cta__body { flex: 1; min-width: 0; }
.cbe-cta--encart .cbe-btn { flex: none; }

/* Bandeau : encart navy à deux colonnes (comme « Veni, Vidi, Vendu ») */
.cbe-cta--bandeau {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 36px; align-items: center;
  padding: clamp(28px, 5vw, 64px);
  background: #1f2b52;
  border-radius: 24px;
}
@media (min-width: 1025px) { .cbe-cta--bandeau { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 56px; } }
.cbe-cta--bandeau .cbe-eyebrow { color: #bcc3d0; }
.cbe-section .cbe-cta--bandeau .cbe-cta__title { margin-bottom: 16px; font-size: var(--cbe-h2); font-weight: 900; line-height: 1.02; letter-spacing: -0.01em; color: #fff; text-wrap: balance; }
.cbe-section .cbe-cta--bandeau .cbe-cta__text { max-width: 520px; color: rgba(255,255,255,0.85); }
.cbe-section .cbe-cta--bandeau .cbe-cta__note { color: #bcc3d0; }
.cbe-cta--bandeau .cbe-cta__side { display: flex; flex-direction: column; gap: 28px; min-width: 0; }
.cbe-cta--bandeau .cbe-cta__action { display: flex; flex-direction: column; align-items: stretch; gap: 12px; }
.cbe-section .cbe-cta--bandeau a.cbe-btn { width: 100%; }
.cbe-section .cbe-cta--bandeau .cbe-cta__note { margin: 0; text-align: center; }
.cbe-checks { display: grid; gap: 10px; }
.cbe-checks li {
  display: flex; align-items: center; gap: 14px;
  margin: 0; padding: 14px 18px;
  font-size: 15px; font-weight: 600; line-height: 1.35; color: #fff;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px;
}
.cbe-checks li::before, .cbe-checks li::marker { content: none; }
.cbe-section .cbe-checks .cbe-ico { width: 22px; height: 22px; stroke: #bcc3d0; stroke-width: 2.2; }

/* Fin de page */
.cbe-cta--fin {
  display: flex; flex-direction: column; align-items: center; gap: 22px;
  max-width: 760px; margin: 72px auto 0; padding: 44px 32px;
  text-align: center;
  background: #1f2b52; border-radius: 24px;
  box-shadow: 0 18px 40px rgba(31,43,82,0.18);
}
.cbe-cta--fin .cbe-cta__icon { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.14); }
.cbe-section .cbe-cta--fin .cbe-cta__text { max-width: 560px; font-size: var(--cbe-h5); font-weight: 500; line-height: 1.55; color: #fff; }
.cbe-section--suite > .cbe-cta--fin { margin-top: 0; }

/* =========================================================
   8. FAQ (<details> natifs : aucun script)
   ========================================================= */
.cbe-section .cbe-faq__intro { margin: 0 0 22px; color: #4b4f58; }
.cbe-faq { display: grid; gap: 12px; }
.cbe-faq .cbe-faq__item {
  margin: 0;
  background: #fff;
  border: 1px solid #e3e6ed;
  border-radius: 16px;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.cbe-section--alt .cbe-faq .cbe-faq__item { border-color: transparent; }
.cbe-faq .cbe-faq__item[open] { border-color: #d8dce4; box-shadow: 0 8px 24px rgba(20,29,58,0.08); }
.cbe-faq .cbe-faq__q {
  position: relative; display: block;
  padding: 22px 70px 22px 24px;
  list-style: none; cursor: pointer;
  font-size: var(--cbe-h5); font-weight: 700; line-height: 1.4; color: #1f2b52;
}
.cbe-faq .cbe-faq__q::-webkit-details-marker { display: none; }
.cbe-faq .cbe-faq__q::before {
  content: ""; position: absolute; right: 20px; top: 50%;
  width: 32px; height: 32px; margin-top: -16px;
  background: #f5f6f9; border-radius: 50%;
  transition: background-color 0.2s;
}
.cbe-faq .cbe-faq__q::after {
  content: ""; position: absolute; right: 31px; top: 50%;
  width: 10px; height: 10px; margin-top: -7px;
  border-right: 2px solid #1f2b52; border-bottom: 2px solid #1f2b52;
  transform: rotate(45deg);
  transition: transform 0.2s, margin-top 0.2s;
}
.cbe-faq .cbe-faq__item[open] > .cbe-faq__q::before { background: #1f2b52; }
.cbe-faq .cbe-faq__item[open] > .cbe-faq__q::after { margin-top: -2px; border-color: #fff; transform: rotate(-135deg); }
.cbe-faq .cbe-faq__q:focus-visible { outline: 2px solid #1f2b52; outline-offset: 2px; border-radius: 16px; }
.cbe-faq .cbe-faq__a { padding: 0 24px 22px; }
.cbe-section .cbe-faq__a p { margin: 0 0 0.8em; }
.cbe-section .cbe-faq__a p:last-child { margin-bottom: 0; }

/* =========================================================
   9. MAILLAGE DES ZONES (.cbe-zones)
   ========================================================= */
.cbe-zones { margin: 0; padding: 0; list-style: none; font-family: 'Montserrat', sans-serif; }
.cbe-zones li { margin: 0; }
.cbe-zones li::before, .cbe-zones li::marker { content: none; }

.cbe-zones--cartes { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 14px; }
.cbe-zones--cartes li > a,
.cbe-zones--cartes li > span {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  height: 100%; padding: 20px 22px;
  text-decoration: none !important;
  background: #fff;
  border: 1px solid #e3e6ed;
  border-radius: 16px;
  box-shadow: 0 1px 2px rgba(20,29,58,0.06);
  transition: transform 180ms cubic-bezier(0.22,1,0.36,1), box-shadow 180ms, border-color 180ms;
}
.cbe-zones--cartes li > a:hover,
.cbe-zones--cartes li > a:focus-visible { transform: translateY(-3px); border-color: #d8dce4; box-shadow: 0 8px 24px rgba(20,29,58,0.10); }
.cbe-zone__txt { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.cbe-zone__txt strong { font-size: 15px; font-weight: 700; line-height: 1.35; color: #1f2b52; }
.cbe-zone__txt span { font-size: 13px; line-height: 1.45; color: #7e89a1; }
.cbe-zones .cbe-zone__go {
  width: 36px; height: 36px; padding: 9px; flex: none;
  fill: none; stroke: #1f2b52; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
  background: #f5f6f9; border-radius: 50%;
  transition: background-color 0.2s, stroke 0.2s;
}
.cbe-zones--cartes li > a:hover .cbe-zone__go { background: #1f2b52; stroke: #fff; }

.cbe-zones--pastilles { display: flex; flex-wrap: wrap; gap: 10px; }
.cbe-zones--pastilles li > a,
.cbe-zones--pastilles li > span {
  display: inline-block; padding: 10px 18px;
  font-size: 14px; font-weight: 500; line-height: 1.3; color: #1f2b52;
  text-decoration: none !important;
  background: #fff; border: 1px solid #d8dce4; border-radius: 50px;
  transition: color 0.2s, background-color 0.2s, border-color 0.2s;
}
.cbe-zones--pastilles li > a:hover { color: #fff; background: #1f2b52; border-color: #1f2b52; }

.cbe-zones .cbe-zones__brouillon > span { opacity: 0.45; border-style: dashed; cursor: help; }

/* =========================================================
   10. PALIERS DU THÈME : tablette ≤ 1400 px, mobile ≤ 544 px
   ========================================================= */
@media (max-width: 1400px) {
  .cbe-section { --cbe-eyebrow: 14px; --cbe-h2: 36px; --cbe-h4: 23px; --cbe-h5: 16px; --cbe-texte: 15px; padding: 80px 28px; }
  .cbe-section .cbe-price__value { font-size: 34px; }
}
@media (max-width: 1024px) {
  .cbe-head { margin-bottom: 36px; }
  .cbe-section .cbe-sub { margin-top: 48px; }
}
@media (max-width: 767px) {
  .cbe-section { padding: 56px 20px; }
  .cbe-cards, .cbe-versus { grid-template-columns: minmax(0, 1fr); }
  .cbe-versus { gap: 40px; }
  .cbe-card, .cbe-versus .cbe-card { padding: 22px; }
  .cbe-scenario { padding: 22px; gap: 14px; }
  .cbe-cta--encart { flex-direction: column; align-items: flex-start; gap: 18px; padding: 24px 22px; }
  .cbe-cta--encart .cbe-btn { width: 100%; }
  .cbe-cta--fin { margin-top: 48px; padding: 32px 22px; }

  /* Tableaux simples : valeur au-dessus de la barre */
  .cbe-table-wrap { border-radius: 16px; }
  .cbe-table-wrap .cbe-table th, .cbe-table-wrap .cbe-table td { padding: 12px 14px; }
  .cbe-table-wrap .cbe-table { font-size: 13px; }
  .cbe-table-wrap .cbe-table thead th { font-size: 10px; letter-spacing: 0.08em; }
  .cbe-cell { flex-direction: column-reverse; align-items: stretch; gap: 6px; }
  .cbe-val { min-width: 0; text-align: left; }
  .cbe-bar { flex: none; width: 100%; min-width: 0; height: 6px; }

  /* Tableaux à 4 colonnes : une carte par ligne */
  .cbe-table-wrap table.cbe-table--cards { display: flex; flex-direction: column; font-size: 14px; }
  .cbe-table--cards thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
  .cbe-table--cards tbody, .cbe-table--cards tr, .cbe-table--cards td { display: block; width: 100%; }
  .cbe-table-wrap .cbe-table--cards caption { display: block; order: 2; }
  .cbe-table-wrap .cbe-table--cards tbody tr { padding: 14px 18px; border-top: 1px solid #eef0f4; }
  .cbe-table-wrap .cbe-table--cards tbody tr:first-child { border-top: 0; }
  .cbe-table-wrap .cbe-table--cards tbody td {
    display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
    padding: 4px 0; border: 0; background: transparent; text-align: right; white-space: normal;
  }
  .cbe-table-wrap .cbe-table--cards tbody td::before {
    content: attr(data-label); flex: 0 1 auto; max-width: 48%; text-align: left;
    font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #7e89a1;
  }
  .cbe-table-wrap .cbe-table--cards tbody td:first-child { display: block; padding-bottom: 8px; text-align: left; font-size: 15px; }
  .cbe-table-wrap .cbe-table--cards tbody td:first-child::before { content: none; }
  .cbe-table--cards .cbe-cell { display: block; }
  .cbe-table--cards .cbe-bar { display: none; }
}
@media (max-width: 600px) {
  .cbe-prices { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 400px) {
  .cbe-table-wrap .cbe-table th, .cbe-table-wrap .cbe-table td { padding: 10px 8px; }
  .cbe-table-wrap .cbe-table th:first-child, .cbe-table-wrap .cbe-table td:first-child { padding-left: 14px; }
  .cbe-table-wrap .cbe-table tbody td:first-child { -webkit-hyphens: auto; hyphens: auto; }
  .cbh--zone .cbh__btn { letter-spacing: 0.5px; font-size: 13px; padding: 14px 18px; }
  .cbe-table-wrap .cbe-table { font-size: 12.5px; }
  .cbe-table-wrap .cbe-table--cards tbody tr { padding: 12px 14px; }
}
@media (max-width: 544px) {
  .cbe-section { --cbe-eyebrow: 13px; --cbe-h2: 25px; --cbe-h4: 18px; --cbe-h5: 14px; --cbe-texte: 14px; }
  .cbe-section .cbe-price__value { font-size: 30px; }
  .cbe-iconbox { width: 42px; height: 42px; border-radius: 12px; }
  .cbe-faq .cbe-faq__q { padding: 18px 60px 18px 18px; }
  .cbe-faq .cbe-faq__q::before { right: 14px; width: 30px; height: 30px; margin-top: -15px; }
  .cbe-faq .cbe-faq__q::after { right: 24px; }
  .cbe-faq .cbe-faq__a { padding: 0 18px 18px; }
  .cbe-section .cbe-cta--bandeau .cbe-cta__title { font-size: 25px; }
  .cbe-zones--cartes li > a, .cbe-zones--cartes li > span { padding: 16px 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .cbe-card, .cbe-zones--cartes li > a, .cbe-section a.cbe-link { transition: none; }
  .cbe-card:hover, .cbe-zones--cartes li > a:hover { transform: none; }
}

/* Grille « 5 critères » posée sur le fond navy */
.cbe-section--navy .cb-estimation-grid { margin-bottom: 0; }
.cbe-section--navy .cb-estimation-card { border-color: transparent; box-shadow: 0 18px 40px rgba(0,0,0,0.18); }


/* =========================================================
   11. GRILLE « 5 CRITÈRES » — copie exacte du bloc
   .cb-estimation-grid de /estimer-mon-bien/
   ========================================================= */
/* Polices : Montserrat (thème), tailles = réglages typographiques du site */
.cb-estimation-grid,
.cb-estimation-grid *,
.cb-estimation-grid *::before,
.cb-estimation-grid *::after {
  box-sizing: border-box;
}

.cb-estimation-grid {
  /* Tailles ordinateur (> 1400 px) */
  --cb-est-titre: 25px;   /* titres des cartes (= H4) */
  --cb-est-numero: 15px;  /* numéros (= H6) */
  --cb-est-texte: 16px;   /* texte (= corps du site) */

  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 20px;
  margin: 30px 0 36px;
  font-family: 'Montserrat', sans-serif;
}

/* 3 cartes sur la première ligne */
.cb-estimation-card:nth-child(1),
.cb-estimation-card:nth-child(2),
.cb-estimation-card:nth-child(3) {
  grid-column: span 2;
}

/* 2 cartes centrées sur la deuxième ligne */
.cb-estimation-card:nth-child(4) {
  grid-column: 2 / span 2;
}

.cb-estimation-card:nth-child(5) {
  grid-column: 4 / span 2;
}

.cb-estimation-card {
  position: relative;
  padding: 28px 28px 26px;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid rgba(31, 43, 82, 0.12);
  box-shadow: 0 10px 28px rgba(31, 43, 82, 0.06);
  overflow: hidden;
  min-width: 0;
}

.cb-estimation-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 24px;
  bottom: 24px;
  width: 4px;
  border-radius: 0 5px 5px 0;
  background: #1f2b52;
}

.cb-estimation-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: rgba(31, 43, 82, 0.08);
  color: #1f2b52;
  font-family: 'Montserrat', sans-serif;
  font-size: var(--cb-est-numero);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.04em;
}

.cb-estimation-card h3 {
  margin: 0 0 12px;
  color: #1f2b52;
  font-family: 'Montserrat', sans-serif;
  font-size: var(--cb-est-titre);
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: normal;
  text-transform: none;
  text-wrap: balance;
}

.cb-estimation-card p {
  margin: 0;
  color: #3a4257;
  font-family: 'Montserrat', sans-serif;
  font-size: var(--cb-est-texte);
  line-height: 1.6;
  font-weight: 400;
}

/* Tailles tablette : ≤ 1400 px (même palier que le thème) */
@media (max-width: 1400px) {
  .cb-estimation-grid { --cb-est-titre: 23px; --cb-est-numero: 14px; --cb-est-texte: 15px; }
}

/* Tailles mobile : ≤ 544 px (même palier que le thème) */
@media (max-width: 544px) {
  .cb-estimation-grid { --cb-est-titre: 18px; --cb-est-numero: 13px; --cb-est-texte: 14px; }
}

/* Tablette : 2 colonnes */
@media (max-width: 1100px) {
  .cb-estimation-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cb-estimation-card:nth-child(n) {
    grid-column: auto;
  }

  .cb-estimation-card:nth-child(5) {
    grid-column: 1 / -1;
    width: calc(50% - 10px);
    justify-self: center;
  }
}

/* Mobile : 1 colonne */
@media (max-width: 767px) {
  .cb-estimation-grid {
    grid-template-columns: 1fr;
    gap: 14px;
    margin: 24px 0 30px;
  }

  .cb-estimation-card:nth-child(n) {
    grid-column: auto;
    width: 100%;
  }

  .cb-estimation-card {
    padding: 22px 20px;
    border-radius: 14px;
  }

  .cb-estimation-card::before {
    top: 18px;
    bottom: 18px;
  }

  .cb-estimation-number {
    width: 36px;
    height: 36px;
    margin-bottom: 14px;
  }

  .cb-estimation-card h3 {
    margin-bottom: 10px;
  }
}

@media (max-width: 420px) {
  .cb-estimation-card {
    padding: 20px 18px;
  }

  .cb-estimation-number {
    width: 34px;
    height: 34px;
  }
}
