/* ═══════════════════════════════════════════════════════════════════════
   L'ESPACE INVESTISSEUR — css/espace.css
   -----------------------------------------------------------------------
   Charge par main.js des qu'un investisseur est connecte sur une page de
   l'espace (barre d'onglets, menu), et directement par les pages espace,
   recherches, favoris, patrimoine, simulateur, conseiller.

   La marque : fond blanc, marine pour le texte fort et les commandes,
   bleu vif pour les chiffres qui comptent, filets fins, coins arrondis a
   20 px (grands blocs) et 12 px (petits). Pas d'icone dans un carre de
   couleur, pas de rangee de trois cases egales, pas de capitales espacees.
   ═══════════════════════════════════════════════════════════════════════ */
:root {
  --es-encre: #1F1E2E;
  --es-marine: #04024D;
  --es-bleu: #405AD2;
  --es-gris: #6A6A72;
  --es-pale: #9A9AA2;
  --es-trait: #E6E6EA;
  --es-fond: #F7F7F9;
  --es-vert: #1F7A45;
  --es-rouge: #B42318;
  --es-rayon: 20px;
  --es-rayon-petit: 12px;
}

/* ── La colonne de l'espace (js/main.js, mkCoque) ─────────────────────
   Organisee comme les applications de lemlist ou d'Airbnb : fond blanc,
   un filet pour la separer du contenu, une ligne par page, en groupes
   courts. La page en cours est la seule touche de couleur. En haut du
   contenu, le titre de la page et son fil d'Ariane. Sous 900 px, la
   colonne laisse place a l'en-tete du site et a la barre d'onglets du bas. */
.mk-coque, .mk-barre { display: none; }
/* L'ancien rail et son decalage s'effacent partout ou la colonne est posee. */
html.mk-avec-coque #pageSidebar, html.mk-avec-coque .page-sidebar-mobile-top { display: none !important; }
html.mk-avec-coque .section.section { padding-left: 0; }
html.mk-avec-coque body.msg-avec-barre .msg-page { padding-left: 0; }

@media (min-width: 900px) {
  html.mk-avec-coque { --coque: 224px; }
  html.mk-avec-coque body { padding-left: var(--coque); }
  html.mk-avec-coque #nav { display: none !important; }
  /* Sur les pages du site, l'en-tete reste, a droite de la colonne ; le
     logo est deja en haut de la colonne. */
  html.mk-avec-coque.mk-coque-site #nav { display: block !important; left: var(--coque); }
  html.mk-avec-coque.mk-coque-site #nav .nav__logo { display: none; }
  html.mk-avec-coque.mk-coque-site .mk-barre { display: none; }
  html.mk-avec-coque.mk-coque-site .nav__mega { left: calc(var(--coque) + 16px); }
  html.mk-avec-coque .mm-bascule { left: calc(50% + var(--coque) / 2); }
  /* Le fil d'Ariane du haut remplace le lien de retour des simulateurs. */
  html.mk-avec-coque .es-page a.es-btn--lien[href="simulateurs"] { display: none; }

  /* Mesures du systeme de design Mandak : lignes de 36 px, texte de 13 px
     en #3B3A66 (un ton plus clair que le marine), titres de groupe de 12 px,
     icones de 18 px, 16 px entre deux groupes et 24 px sous le bouton. */
  .mk-coque {
    position: fixed; top: 0; left: 0; bottom: 0; z-index: 1000; width: var(--coque);
    display: flex; flex-direction: column; box-sizing: border-box;
    padding: 16px 8px 12px; background: #fff; border-right: 1px solid var(--es-trait);
    overflow-y: auto; scrollbar-width: none;
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  }
  .mk-coque::-webkit-scrollbar { display: none; }
  .mk-coque__cta {
    flex: none; display: flex; align-items: center; justify-content: center; height: 36px; margin: 0 8px 24px;
    border-radius: 8px; background: var(--es-bleu); color: #fff; font-size: 13px; font-weight: 600; text-decoration: none;
    transition: background .15s;
  }
  .mk-coque__cta:hover { background: #3550C4; }
  .mk-coque__nav { display: flex; flex-direction: column; gap: 16px; margin-bottom: 16px; }
  .mk-coque__groupe { display: flex; flex-direction: column; }
  .mk-coque__titre { margin: 0; padding: 0 12px 4px; font-size: 12px; line-height: 16px; font-weight: 600; color: #6C6A94; }

  .mk-coque__item {
    display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 12px; box-sizing: border-box; border-radius: 8px;
    color: #3B3A66; text-decoration: none; font-size: 13px; font-weight: 500; line-height: 20px; white-space: nowrap;
    transition: background .15s, color .15s;
  }
  .mk-coque__item:hover { background: #F8F7FB; }
  /* Les memes icones que la barre d'onglets et le menu du telephone : le
     trait seul, gris iOS, sans aplat ni carre corail ; l'element ouvert
     passe au bleu avec un aplat leger. */
  .mk-coque__ico { width: 20px; height: 20px; flex: none; stroke-width: 1.6; color: #8e8e93; }
  .mk-coque__ico .f { fill: none; }
  .mk-coque__ico .c { display: none; }
  .mk-coque__item.is-actif .mk-coque__ico { color: var(--es-bleu); }
  .mk-coque__item.is-actif .mk-coque__ico .f { fill: currentColor; fill-opacity: .16; }
  .mk-coque__item.is-bientot .mk-coque__ico { color: #C7C7CC; }
  .mk-coque__item.is-actif { background: #EEF0FC; color: var(--es-bleu); font-weight: 600; }
  /* Du nouveau : le petit carré du logo, en bleu (plus de chiffres). */
  .mk-coque__neuf { flex: none; margin-left: auto; width: 7px; height: 7px; border-radius: 2px; background: var(--es-bleu); }
  .mk-coque__item.is-bientot { color: #B3B1C8; cursor: default; }
  .mk-coque__item.is-bientot:hover { background: none; }

  /* En bas : les initiales et le nom, qui ouvrent le menu du compte. Le
     logo est en haut de la colonne. */
  .mk-coque__bas {
    position: relative; margin-top: auto; padding: 12px 12px 0; border-top: 1px solid var(--es-trait);
    display: flex; align-items: center; justify-content: space-between; gap: 8px;
  }
  .mk-coque__logo { flex: none; display: flex; align-items: center; height: 44px; margin: 0 12px 12px; text-decoration: none; }
  /* Le logo et la cloche sur une ligne ; la cloche garde le dessin de
     l'en-tête du téléphone (style.css). */
  .mk-coque__tete { flex: none; display: flex; align-items: center; justify-content: space-between; margin: 0 4px 12px 0; }
  .mk-coque__tete .mk-coque__logo { margin-bottom: 0; }
  .mk-coque__logo .mandak-wordmark { font-size: 1.625rem; }
  .mk-coque__compte { flex: 1; min-width: 0; }
  .mk-coque__moi { display: flex; align-items: center; gap: 10px; width: 100%; min-width: 0; padding: 4px; margin: -4px; border: 0; border-radius: 8px; background: none; font: inherit; text-align: left; cursor: pointer; }
  .mk-coque__moi:hover { background: #F8F7FB; }
  .mk-coque__nom { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; font-weight: 600; color: #3B3A66; }
  .mk-coque__moi .mk-compte__initiales { width: 28px; height: 28px; flex: none; font-size: 11px; }
  .mk-coque__moi:hover .mk-compte__initiales, .mk-coque__compte.is-ouvert .mk-compte__initiales { box-shadow: 0 0 0 3px #EEF0FC; }
  .mk-coque__menu {
    position: absolute; left: 0; right: 0; bottom: calc(100% + 8px); padding: 8px; box-sizing: border-box;
    background: #fff; border-radius: 12px; box-shadow: 0 12px 32px -12px rgba(4, 2, 77, .25), 0 0 0 1px rgba(4, 2, 77, .06);
    opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .18s, transform .18s, visibility .18s;
  }
  .mk-coque__compte.is-ouvert .mk-coque__menu { opacity: 1; visibility: visible; transform: none; }
  .mk-coque__qui { display: flex; flex-direction: column; padding: 6px 12px 10px; margin-bottom: 4px; border-bottom: 1px solid var(--es-trait); line-height: 1.35; }
  .mk-coque__qui b, .mk-coque__qui span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .mk-coque__qui b { font-size: 13px; color: var(--es-marine); }
  .mk-coque__qui span { font-size: 12px; color: #6C6A94; }
  .mk-coque__menu a { display: block; padding: 8px 12px; border-radius: 8px; font-size: 13px; font-weight: 600; color: #3B3A66; text-decoration: none; }
  .mk-coque__menu a:hover { background: #EEF0FC; color: var(--es-bleu); }

  /* En haut du contenu : le titre de la page, et d'ou elle vient. */
  .mk-barre {
    position: fixed; top: 0; left: var(--coque); right: 0; z-index: 950; height: var(--nav-h, 69px);
    display: flex; align-items: center; gap: 24px; padding: 0 32px; box-sizing: border-box;
    background: rgba(255, 255, 255, .94); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--es-trait); font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  }
  .mk-barre__fil { display: flex; align-items: center; gap: 10px; min-width: 0; font-size: 1rem; white-space: nowrap; }
  .mk-barre__fil a { color: #6A6A80; text-decoration: none; font-weight: 600; }
  .mk-barre__fil a:hover { color: var(--es-marine); }
  .mk-barre__fil span { color: #C3C0CF; }
  .mk-barre__fil b { color: var(--es-marine); font-weight: 700; overflow: hidden; text-overflow: ellipsis; }
  /* Le rendez-vous, avec le visage du conseiller référent (Nicolas,
     30/10 : un contour gris « pas assez visuel », puis un bouton bleu qui
     ressemblait trop à « Nouvelle recherche »). Capsule bleue, la photo à
     gauche cerclée de blanc ; sans conseiller attitré, l'initiale de
     Mandak. Nom et photo : advisersPublic, via mkPoserConseiller. */
  .mk-barre__rdv {
    flex: none; margin-left: auto; display: inline-flex; align-items: center; gap: 10px;
    padding: 4px 18px 4px 4px; border-radius: 999px; background: var(--es-bleu); color: #fff;
    text-decoration: none; font-size: 0.84375rem; font-weight: 600;
    box-shadow: 0 1px 2px rgba(4,2,77,.12), 0 4px 12px -4px rgba(64,90,210,.45); transition: background .15s, box-shadow .15s;
  }
  .mk-barre__rdv:hover { background: #3550C4; color: #fff; box-shadow: 0 1px 2px rgba(4,2,77,.14), 0 6px 16px -4px rgba(64,90,210,.55); }
  .mk-barre__visage {
    width: 30px; height: 30px; flex: none; font-size: 11px; background-color: #EEF0FC; color: var(--es-bleu);
    background-size: cover; background-position: center; box-shadow: 0 0 0 2px #fff;
  }
  .mk-barre__visage.has-photo { color: transparent; }
  .mk-barre__interet {
    flex: none; margin-left: auto; padding: 9px 16px; border: 0; border-radius: 10px; background: var(--es-bleu);
    color: #fff; text-decoration: none; font: inherit; font-size: 0.84375rem; font-weight: 600; cursor: pointer; transition: background .15s;
  }
  .mk-barre__interet:hover { background: #3550C4; color: #fff; }
  .mk-barre__interet.is-fait { background: #EEF0FC; color: var(--es-bleu); }
}

/* Entre 769 et 899 px : ni colonne ni barre du bas ; l'en-tete garde son menu. */
@media (min-width: 769px) and (max-width: 899px) {
  html.mk-avec-coque .nav__burger { display: flex; }
}

/* ── La barre d'onglets du telephone ───────────────────────────────────── */
.mk-onglets { display: none; }
@media (max-width: 768px) {
  /* À la manière de l'iPhone (demande de Nicolas, 24/10 : l'ancienne « fait
     très Android ») : une capsule qui flotte à 12 px des bords, arrondie comme
     le reste de l'app, en verre dépoli blanc avec une ombre douce. Icônes
     monochromes grises, la seule couleur pour l'onglet ouvert, posé sur une
     pastille claire ; libellés de 10 px ; ni aplat bleu ni corail. */
  .mk-onglets {
    position: fixed; left: 12px; right: 12px; bottom: calc(8px + env(safe-area-inset-bottom)); z-index: 900;
    display: grid; grid-template-columns: repeat(5, 1fr); gap: 2px;
    height: 62px; padding: 6px; border-radius: 31px;
    background: rgba(255, 255, 255, .82); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
    box-shadow: 0 0 0 .5px rgba(0, 0, 0, .06), 0 6px 24px rgba(0, 0, 0, .10);
  }
  /* Sur une zone sombre (pied de page, bandeau bleu), la barre devient
     blanche et opaque pour rester lisible ; main.js pose la classe. */
  .mk-onglets { transition: background-color .2s, box-shadow .2s; }
  .mk-onglets.is-sur-sombre { background: #fff; box-shadow: 0 0 0 .5px rgba(0, 0, 0, .08), 0 8px 28px rgba(0, 0, 0, .28); }
  .mk-onglets a {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; border-radius: 25px;
    color: #8e8e93; text-decoration: none; font-size: 10px; line-height: 12px; font-weight: 500; letter-spacing: .01em;
    -webkit-tap-highlight-color: transparent;
  }
  .mk-onglets a.is-actif { color: var(--es-bleu); background: rgba(0, 0, 0, .05); }
  .mk-onglets__ico { width: 25px; height: 25px; flex: none; stroke-width: 1.6; }
  .mk-onglets .mk-ic .f { fill: none; }
  /* Pas de carré corail (retiré par main.js, mkIcOnglet) : la bulle de
     Messages garde ses trois points ronds. */
  .mk-onglets .mk-ic .c { display: none; }
  .mk-onglets a.is-actif .mk-ic .f { fill: currentColor; fill-opacity: .16; }
  /* La capsule (62) et sa marge (8) : le contenu s'arrête 8 px au-dessus. */
  html.mk-espace-investisseur body { padding-bottom: calc(78px + env(safe-area-inset-bottom)); }
  /* Le bouton rond de rendez-vous passe au-dessus de la barre ; le
     rendez-vous est de toute facon dans l'onglet Conseiller. */
  html.mk-espace-investisseur #chatbotFab,
  html.mk-espace-investisseur .cta-fab { display: none !important; }
}

/* Les icones Mandak et le menu burger de l'investisseur : dans style.css,
   charge sur toutes les pages (le menu existe aussi sur les pages vitrine). */
.mk-espace .mk-sous { display: flex; flex-direction: column; margin: -4px 0 6px 28px; padding-left: 29px; border-left: 1px solid var(--es-trait); }
.mk-espace .mk-sous__lien { padding: 8px 0; color: #55536A; text-decoration: none; font-size: 0.9375rem; font-weight: 500; }
.mk-espace .mk-sous__lien.is-actif { color: var(--es-marine); font-weight: 700; }

/* ── La page ─────────────────────────────────────────────────────────── */
.es-page {
  max-width: 1080px; margin: 0 auto; box-sizing: border-box;
  padding: calc(var(--nav-h, 69px) + 32px) clamp(16px, 4vw, 40px) 96px;
  color: var(--es-encre); font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
}
.es-page *, .es-page *::before, .es-page *::after { box-sizing: border-box; }
.es-tete { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 28px; }
.es-tete h1 { margin: 0; font-size: clamp(1.6rem, 3vw, 2rem); font-weight: 700; letter-spacing: -.02em; color: var(--es-encre); }
.es-tete p { margin: 6px 0 0; color: var(--es-gris); font-size: 1rem; line-height: 1.5; max-width: 620px; }
.es-section { padding: 28px 0; border-top: 1px solid var(--es-trait); }
.es-section:first-of-type { border-top: 0; padding-top: 0; }
.es-section h2 { margin: 0 0 4px; font-size: 1.3rem; font-weight: 700; letter-spacing: -.01em; }
.es-section__tete { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.es-section__tete a { color: var(--es-encre); font-weight: 600; font-size: .92rem; white-space: nowrap; }
.es-gris { color: var(--es-gris); }
.es-petit { font-size: .86rem; }
.es-bleu { color: var(--es-bleu); }
.es-vert { color: var(--es-vert); }
.es-rouge { color: var(--es-rouge); }

/* ── Boutons ── */
.es-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 18px; border: 0; border-radius: 10px; cursor: pointer; text-decoration: none;
  background: var(--es-marine); color: #fff; font: inherit; font-size: .95rem; font-weight: 600;
}
.es-btn:hover { background: #17157A; color: #fff; }
.es-btn--clair { background: #fff; color: var(--es-encre); border: 1px solid #C8C8CF; }
.es-btn--clair:hover { background: var(--es-fond); color: var(--es-encre); }
.es-btn--lien { background: none; color: var(--es-encre); padding: 6px 0; text-decoration: underline; text-underline-offset: 3px; }
.es-btn--lien:hover { background: none; color: var(--es-marine); }
.es-btn--danger { background: none; color: var(--es-rouge); padding: 6px 0; text-decoration: underline; text-underline-offset: 3px; }
.es-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ── Un bloc encadre (la carte de reservation d'Airbnb) ── */
.es-bloc { border: 1px solid #DDDDE2; border-radius: var(--es-rayon); padding: 22px 24px; background: #fff; }

/* ── Le chiffre de tete d'une section : une phrase, pas une tuile ── */
.es-resume { font-size: 1.15rem; line-height: 1.55; margin: 0 0 6px; }
.es-resume b { color: var(--es-marine); }
.es-chiffres { display: flex; flex-wrap: wrap; gap: 8px 36px; margin: 14px 0 0; padding: 0; list-style: none; }
.es-chiffres li { display: flex; flex-direction: column; }
.es-chiffres b { font-size: 1.5rem; font-weight: 700; letter-spacing: -.01em; color: var(--es-marine); }
.es-chiffres span { font-size: .86rem; color: var(--es-gris); }

/* ── Listes a filets ── */
.es-liste { display: flex; flex-direction: column; }
.es-ligne {
  display: flex; align-items: center; gap: 16px; padding: 14px 0; border-top: 1px solid var(--es-trait);
  color: var(--es-encre); text-decoration: none;
}
.es-liste > .es-ligne:first-child { border-top: 0; }
a.es-ligne:hover .es-ligne__titre { text-decoration: underline; text-underline-offset: 3px; }
.es-ligne__photo { flex: none; width: 104px; height: 80px; border-radius: var(--es-rayon-petit); overflow: hidden; background: var(--es-fond); }
.es-ligne__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.es-ligne__texte { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.es-ligne__titre { font-weight: 700; color: var(--es-marine); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.es-ligne__sous { font-size: .88rem; color: var(--es-gris); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.es-ligne__prix { font-size: .92rem; color: var(--es-gris); }
.es-ligne__prix b { color: var(--es-marine); }
.es-ligne__prix i { font-style: normal; font-weight: 600; color: var(--es-bleu); }
.es-ligne__droite { flex: none; display: flex; align-items: center; gap: 10px; text-align: right; }

/* ── Grille de vignettes (favoris) ── */
.es-grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 28px 20px; }
.es-vignette { position: relative; display: flex; flex-direction: column; gap: 4px; color: var(--es-encre); text-decoration: none; }
.es-vignette__photo { aspect-ratio: 4 / 3; border-radius: var(--es-rayon-petit); overflow: hidden; background: var(--es-fond); margin-bottom: 8px; }
.es-vignette__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.es-vignette__l1 { display: flex; justify-content: space-between; gap: 8px; font-weight: 700; color: var(--es-marine); }
.es-vignette__l1 i { font-style: normal; font-weight: 600; color: var(--es-bleu); white-space: nowrap; }
.es-vignette__l2 { font-size: .88rem; color: var(--es-gris); }
.es-coeur {
  position: absolute; top: 10px; right: 10px; width: 34px; height: 34px; border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, .92); display: grid; place-items: center; cursor: pointer;
  box-shadow: 0 2px 8px rgba(4, 2, 77, .18);
}
.es-coeur svg { width: 18px; height: 18px; fill: var(--es-marine); stroke: var(--es-marine); stroke-width: 1.6; }

/* ── Vide : une phrase et une action ── */
.es-vide { padding: 36px 0; }
.es-vide p { margin: 0 0 16px; color: var(--es-gris); max-width: 520px; line-height: 1.55; }
.es-vide b { display: block; margin-bottom: 4px; color: var(--es-encre); font-size: 1.05rem; }

/* ── Formulaires ── */
.es-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; }
.es-form .es-plein { grid-column: 1 / -1; }
.es-form h3 { grid-column: 1 / -1; margin: 10px 0 0; font-size: 1rem; font-weight: 700; }
.es-champ { display: flex; flex-direction: column; gap: 6px; font-size: .88rem; font-weight: 600; color: var(--es-encre); }
.es-champ small { font-weight: 400; color: var(--es-gris); }
.es-champ input, .es-champ select, .es-champ textarea {
  width: 100%; padding: 11px 12px; border: 1px solid #C8C8CF; border-radius: 10px; background: #fff;
  font: inherit; font-size: .95rem; font-weight: 500; color: var(--es-encre);
}
.es-champ input:focus, .es-champ select:focus, .es-champ textarea:focus { outline: 2px solid var(--es-bleu); outline-offset: -1px; border-color: transparent; }
.es-unite { position: relative; }
.es-unite input { padding-right: 38px; }
.es-unite span { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--es-gris); font-weight: 500; pointer-events: none; }
.es-actions { grid-column: 1 / -1; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 6px; }

/* ── Fenetre (dialog) ── */
/* margin: auto, que la remise a zero de style.css (* { margin: 0 }) retirait :
   sans elle, la fenetre s'ouvrait collee en haut a gauche. */
.es-dialog {
  margin: auto; width: min(640px, calc(100vw - 32px)); max-height: calc(100dvh - 48px); padding: 0; border: 0;
  border-radius: var(--es-rayon); box-shadow: 0 24px 60px -20px rgba(4, 2, 77, .45); color: var(--es-encre);
}
.es-dialog::backdrop { background: rgba(4, 2, 77, .35); }
.es-dialog__tete { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; padding: 18px 24px; background: #fff; border-bottom: 1px solid var(--es-trait); }
.es-dialog__tete h2 { margin: 0; font-size: 1.15rem; }
.es-dialog__corps { padding: 20px 24px 24px; }
.es-fermer { width: 36px; height: 36px; border: 0; border-radius: 50%; background: none; cursor: pointer; display: grid; place-items: center; color: var(--es-encre); }
.es-fermer:hover { background: var(--es-fond); }
.es-fermer svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }

/* ── Un message passager ── */
.es-toast {
  position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); z-index: 2000;
  padding: 12px 18px; border-radius: 10px; background: var(--es-marine); color: #fff; font-size: .92rem; font-weight: 600;
  opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s;
}
.es-toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
@media (max-width: 768px) { .es-toast { bottom: calc(80px + env(safe-area-inset-bottom)); } }

/* ── Le simulateur : les hypotheses a gauche, le resultat colle a droite ── */
.es-sim { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 40px; align-items: start; }
.es-sim__resultat { position: sticky; top: calc(var(--nav-h, 69px) + 24px); }
.es-sim__cash { margin: 2px 0 6px; font-size: 2.2rem; font-weight: 800; letter-spacing: -.02em; }
.es-sim__lignes div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--es-trait); font-size: .95rem; }
.es-sim__lignes span { color: var(--es-gris); }
.es-sim__lignes b { font-weight: 700; color: var(--es-marine); white-space: nowrap; }
@media (max-width: 900px) {
  .es-sim { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .es-sim__resultat { position: static; order: -1; }
}

/* ── Le conseiller ── */
.es-carte-conseiller { display: flex; align-items: center; gap: 16px; }
.es-carte-conseiller img, .es-carte-conseiller__initiale {
  width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex: none;
}
.es-carte-conseiller__initiale { display: grid; place-items: center; background: #E8EBFE; color: var(--es-marine); font-size: 1.5rem; font-weight: 700; }
.es-etapes { list-style: none; margin: 18px 0 0; padding: 0; counter-reset: etape; }
.es-etapes li { display: flex; flex-direction: column; gap: 2px; padding: 14px 0 14px 40px; border-top: 1px solid var(--es-trait); position: relative; counter-increment: etape; }
.es-etapes li::before { content: counter(etape); position: absolute; left: 0; top: 14px; font-weight: 700; color: var(--es-bleu); }
.es-etapes b { color: var(--es-encre); }
.es-etapes span { color: var(--es-gris); line-height: 1.5; }

/* ── Les loyers, mois par mois ── */
.es-mois { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.es-mois__case { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.es-mois__btn {
  width: 100%; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 4px;
  border: 1px solid #DDDDE2; border-radius: var(--es-rayon-petit); background: #fff; cursor: pointer;
  font: inherit; color: var(--es-encre);
}
.es-mois__btn b { font-size: .9rem; font-weight: 700; }
.es-mois__btn span { font-size: .78rem; color: var(--es-gris); }
.es-mois__btn:hover:not(:disabled) { border-color: var(--es-encre); }
.es-mois__btn.is-paye { border-color: #A9D3B8; background: #EEF7F1; }
.es-mois__btn.is-paye span { color: var(--es-vert); font-weight: 600; }
.es-mois__btn.is-impaye { border-color: #F1B8B2; background: #FDF0EF; }
.es-mois__btn.is-impaye span { color: var(--es-rouge); font-weight: 600; }
.es-mois__btn:disabled { cursor: default; opacity: .55; }

@media (max-width: 640px) {
  .es-mois { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  #esDepense { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important; }
  #esDepense .es-champ:nth-child(2) { grid-column: 1 / -1; grid-row: 1; }
  .es-ligne__droite { flex-wrap: wrap; justify-content: flex-end; }
  .es-page { padding-top: calc(var(--nav-h, 69px) + 20px); }
  .es-form { grid-template-columns: minmax(0, 1fr); }
  .es-ligne__photo { width: 88px; height: 70px; }
  .es-chiffres { gap: 8px 24px; }
  .es-chiffres b { font-size: 1.3rem; }
}

/* ── Les guides : des articles, image puis titre ── */
.es-guides { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.es-guide { display: flex; flex-direction: column; gap: 4px; color: var(--es-encre); text-decoration: none; }
.es-guide b { font-size: 1.05rem; font-weight: 700; color: var(--es-marine); }
.es-guide span:last-child { font-size: .92rem; line-height: 1.5; color: var(--es-gris); }
.es-guide:hover b { text-decoration: underline; text-underline-offset: 3px; }

/* ── Les simulateurs ── */
.es-outils { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; }
.es-outil { display: flex; flex-direction: column; gap: 3px; padding: 16px 0; border-top: 1px solid var(--es-trait); color: var(--es-encre); text-decoration: none; }
.es-outil b { font-size: 1.02rem; font-weight: 700; color: var(--es-marine); }
.es-outil span { font-size: .9rem; line-height: 1.5; color: var(--es-gris); }
.es-outil:hover b { text-decoration: underline; text-underline-offset: 3px; }
.es-sim__titre { margin: 4px 0 6px; font-size: 1.45rem; font-weight: 800; letter-spacing: -.02em; color: var(--es-marine); }
.es-sim__lignes div.is-meilleur span, .es-sim__lignes div.is-meilleur b { color: var(--es-marine); font-weight: 700; }
.es-defilable { overflow-x: auto; }
.es-tableau { width: 100%; border-collapse: collapse; font-size: .92rem; font-variant-numeric: tabular-nums; }
.es-tableau th { text-align: left; font-weight: 600; color: var(--es-gris); padding: 10px 12px 10px 0; border-bottom: 1px solid var(--es-trait); white-space: nowrap; }
.es-tableau td { padding: 10px 12px 10px 0; border-bottom: 1px solid var(--es-trait); white-space: nowrap; }
.es-tableau td small { display: block; white-space: normal; max-width: 360px; margin-top: 2px; color: var(--es-gris); font-size: .82rem; }
.es-tableau tr.is-courant td { background: #F2F3FE; }
.es-tableau tr.is-courant td:first-child { box-shadow: inset 3px 0 0 var(--es-bleu); padding-left: 10px; }
.es-jauge { position: relative; height: 8px; border-radius: 4px; background: var(--es-fond); margin-top: 6px; }
.es-jauge i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 4px; background: var(--es-marine); }
.es-jauge span { position: absolute; top: -4px; bottom: -4px; width: 2px; background: var(--es-rouge); }
.es-bref { padding: 14px 0; border-top: 1px solid var(--es-trait); }
.es-bref b { color: var(--es-marine); }
.es-bref p { margin: 4px 0 0; color: var(--es-gris); line-height: 1.6; max-width: 760px; }
.es-liens-regimes { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 8px 0 0; }
.es-liens-regimes a { color: var(--es-encre); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.es-avertissement { margin-top: 28px; max-width: 760px; line-height: 1.6; }
.es-avertissement a { color: var(--es-encre); font-weight: 600; }
@media (max-width: 640px) { .es-outils { grid-template-columns: minmax(0, 1fr); } }

/* ── La page des simulateurs : une ouverture, des cartes qui montrent ce
      qu'elles calculent, des visages ── */
.es-ouverture { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 40px; align-items: center; margin-bottom: 36px; }
.es-ouverture h1 { margin: 0 0 10px; font-size: clamp(1.8rem, 3.4vw, 2.4rem); font-weight: 800; letter-spacing: -.025em; color: var(--es-encre); }
.es-ouverture p { margin: 0 0 12px; font-size: 1.05rem; line-height: 1.6; color: var(--es-encre); }
.es-ouverture__visuel { position: relative; }
.es-ouverture__visuel img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--es-rayon); }
.es-ouverture__carte {
  position: absolute; left: 18px; bottom: 18px; display: flex; flex-direction: column; gap: 2px; padding: 14px 18px;
  border-radius: 14px; background: #fff; box-shadow: 0 12px 30px -10px rgba(4, 2, 77, .35);
}
.es-ouverture__carte small { font-size: .78rem; color: var(--es-gris); }
.es-ouverture__carte b { font-size: 1.35rem; font-weight: 800; letter-spacing: -.01em; }
.es-ouverture__carte span { font-size: .84rem; color: var(--es-gris); }

.es-simus { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 16px; }
.es-simu {
  display: flex; flex-direction: column; border: 1px solid var(--es-trait); border-radius: var(--es-rayon); padding: 10px;
  background: #fff; color: var(--es-encre); text-decoration: none; transition: border-color .15s, box-shadow .15s;
}
.es-simu:hover { border-color: #B9BCD6; box-shadow: 0 12px 30px -18px rgba(4, 2, 77, .45); }
.es-simu--large { grid-column: 1 / -1; flex-direction: row; align-items: stretch; }
.es-simu--large .es-apercu { flex: 1.3; }
.es-simu--large .es-simu__texte { flex: 1; justify-content: center; }
.es-simu__texte { display: flex; flex-direction: column; gap: 4px; padding: 14px 12px 10px; }
.es-simu__texte > b { font-size: 1.1rem; font-weight: 700; color: var(--es-marine); }
.es-simu__texte > span { font-size: .92rem; line-height: 1.5; color: var(--es-gris); }
.es-simu__lancer { margin-top: 8px; font-weight: 600; color: var(--es-marine) !important; text-decoration: underline; text-underline-offset: 3px; }

.es-apercu { display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; height: 184px; padding: 20px 20px 16px; border-radius: 14px; overflow: hidden; }
.es-apercu--bleu { background: #F2F3FE; }
.es-apercu--creme { background: #F7F2ED; }
.es-apercu__chiffre { font-size: 1.9rem; font-weight: 800; letter-spacing: -.02em; color: var(--es-marine); line-height: 1.1; }
.es-apercu__chiffre small { font-size: .95rem; font-weight: 600; color: var(--es-gris); letter-spacing: 0; }
.es-apercu__legende { font-size: .8rem; color: var(--es-gris); }
.es-apercu__svg { display: block; width: 100%; height: 56px; flex: none; }
.es-apercu__piles { display: flex; gap: 3px; height: 12px; }
.es-apercu__piles i { border-radius: 4px; background: var(--es-marine); }
.es-apercu__piles i.is-bleu { background: var(--es-bleu); }
.es-apercu__piles i.is-pale { background: #C5CCFB; }
.es-apercu__jauge { position: relative; height: 12px; border-radius: 6px; background: #fff; }
.es-apercu__jauge i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 6px; background: var(--es-marine); }
.es-apercu__jauge b { position: absolute; top: -5px; bottom: -5px; width: 2px; background: var(--es-rouge); }
.es-apercu__lignes { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; font-size: .9rem; }
.es-apercu__lignes span { color: var(--es-gris); }
.es-apercu__lignes b { color: var(--es-marine); }
.es-apercu__regimes { display: flex; flex-direction: column; gap: 7px; }
.es-apercu__regimes > span { display: grid; grid-template-columns: 96px minmax(0, 1fr) 64px; align-items: center; gap: 10px; font-size: .82rem; }
.es-apercu__regimes em { font-style: normal; color: var(--es-gris); white-space: nowrap; }
.es-apercu__regimes i { display: block; height: 10px; min-width: 3px; border-radius: 5px; background: #C5CCFB; }
.es-apercu__regimes i.is-meilleur { background: var(--es-marine); }
.es-apercu__regimes b { text-align: right; color: var(--es-marine); font-weight: 700; }

.es-regimes { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; margin: 16px 0 0; }
.es-regimes a { color: var(--es-encre); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

.es-humain { display: flex; align-items: center; gap: 28px; margin-top: 12px; padding: 28px; border-radius: var(--es-rayon); background: #F7F2ED; }
.es-humain h2 { margin: 0 0 6px; font-size: 1.3rem; }
.es-humain p { margin: 0 0 16px; max-width: 560px; line-height: 1.6; }
.es-humain__visages { flex: none; display: flex; }
.es-humain__visages img { width: 76px; height: 76px; border-radius: 50%; object-fit: cover; border: 3px solid #F7F2ED; }
.es-humain__visages img + img { margin-left: -18px; }

@media (max-width: 900px) {
  .es-ouverture { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .es-ouverture__visuel { order: -1; }
}
@media (max-width: 640px) {
  .es-simus { grid-template-columns: minmax(0, 1fr); }
  .es-simu--large { flex-direction: column; }
  .es-humain { flex-direction: column; align-items: flex-start; padding: 22px; }
}

/* ── L'accueil de l'espace (espace.html, js/espace-accueil.js) ─────────
   Un bandeau au bleu de la marque pour le bonjour et les chiffres, puis
   les annonces en vignettes photo, les propositions du conseiller et ce
   qui attend une action. Le bleu porte ce qui compte : le rendement. */
.ac-page { display: flex; flex-direction: column; gap: 40px; }
.ac-gris { color: var(--es-gris); }
.ac-hero {
  display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 32px; align-items: end;
  padding: 34px 36px; border-radius: var(--es-rayon); background: var(--es-bleu); color: #fff;
}
.ac-hero__date { margin: 0 0 6px; font-size: .875rem; font-weight: 600; color: rgba(255, 255, 255, .78); }
.ac-hero h1 { margin: 0; font-size: clamp(1.8rem, 3.4vw, 2.4rem); font-weight: 800; letter-spacing: -.03em; color: #fff; }
.ac-hero__phrase { margin: 10px 0 0; font-size: 1.05rem; line-height: 1.5; color: rgba(255, 255, 255, .92); max-width: 46ch; }
.ac-hero__phrase b { color: #fff; }
.ac-hero__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.ac-btn { display: inline-flex; align-items: center; padding: 12px 18px; border-radius: 12px; font: inherit; font-size: .9375rem; font-weight: 700; text-decoration: none; cursor: pointer; border: 0; }
.ac-btn--blanc { background: #fff; color: var(--es-marine); }
.ac-btn--blanc:hover { background: #F1F2FD; }
.ac-btn--ligne { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .6); }
.ac-btn--ligne:hover { box-shadow: inset 0 0 0 1.5px #fff; }
.ac-hero__chiffres { margin: 0; display: flex; flex-direction: column; gap: 0; border-radius: 16px; background: rgba(4, 2, 77, .16); }
.ac-chiffre { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; padding: 13px 18px; }
.ac-chiffre + .ac-chiffre { border-top: 1px solid rgba(255, 255, 255, .16); }
.ac-chiffre dt { font-size: .875rem; color: rgba(255, 255, 255, .85); }
.ac-chiffre dd { margin: 0; font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ac-chiffre dd small { font-size: .8rem; font-weight: 600; opacity: .8; }
.ac-chiffre a { color: #fff; text-decoration: none; }
.ac-chiffre a:hover { text-decoration: underline; text-underline-offset: 3px; }

.ac-bloc { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.ac-bloc__tete { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; }
.ac-bloc__tete h2, .ac-bloc--cote h2 { margin: 0; font-size: 1.3rem; font-weight: 800; letter-spacing: -.02em; color: var(--es-marine); }
.ac-bloc__tete p { margin: 4px 0 0; font-size: .9375rem; }
.ac-bloc__tete > a { flex: none; font-weight: 700; color: var(--es-bleu); text-decoration: none; font-size: .9375rem; }
.ac-bloc__tete > a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Les vignettes d'annonces : photo d'abord, rendement en bleu. */
.ac-grille { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px 18px; }
.ac-carte { display: flex; flex-direction: column; gap: 10px; color: inherit; text-decoration: none; min-width: 0; }
.ac-carte__photo { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: 16px; overflow: hidden; background: #EFEEF4; }
.ac-carte__photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: opacity .2s; }
.ac-carte:hover .ac-carte__photo img { opacity: .92; }
.ac-neuf { position: absolute; left: 10px; top: 10px; padding: 4px 9px; border-radius: 8px; background: #ED797B; color: #fff; font-size: .75rem; font-weight: 800; }
.ac-coeur { position: absolute; right: 10px; top: 10px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .92); cursor: pointer; }
.ac-coeur svg { width: 18px; height: 18px; fill: none; stroke: var(--es-marine); stroke-width: 2; }
.ac-coeur.is-on svg { fill: #ED797B; stroke: #ED797B; }
.ac-carte__texte { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ac-carte__lieu, .ac-prop__lieu { font-size: .8125rem; font-weight: 600; color: var(--es-gris); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ac-carte__titre { font-size: 1rem; font-weight: 700; color: var(--es-marine); }
.ac-carte__bas { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.ac-carte__bas b { font-size: 1.05rem; font-weight: 800; color: var(--es-marine); font-variant-numeric: tabular-nums; }
.ac-rdt { font-size: 1.25rem; font-weight: 800; color: var(--es-bleu); letter-spacing: -.02em; white-space: nowrap; }
.ac-rdt small { font-size: .75rem; font-weight: 700; }
.ac-carte--vide .ac-carte__photo { animation: ac-pouls 1.4s ease-in-out infinite; }
.ac-carte--vide i { display: block; height: 12px; border-radius: 6px; background: #EFEEF4; margin-top: 8px; width: 70%; }
.ac-carte--vide i + i { width: 45%; }
@keyframes ac-pouls { 50% { opacity: .55; } }
@media (prefers-reduced-motion: reduce) { .ac-carte--vide .ac-carte__photo { animation: none; } }
.ac-vide { grid-column: 1 / -1; padding: 26px; border-radius: var(--es-rayon); background: var(--es-fond); display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.ac-vide b { color: var(--es-marine); font-size: 1.05rem; }
.ac-vide p { margin: 0 0 10px; color: var(--es-gris); }

/* Propositions du conseiller et colonne « A faire ». */
.ac-duo { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.ac-props { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.ac-prop { display: flex; flex-direction: column; gap: 6px; color: inherit; text-decoration: none; min-width: 0; }
.ac-prop__photo { display: block; aspect-ratio: 1; border-radius: 14px; overflow: hidden; background: #EFEEF4; }
.ac-prop__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ac-prop__photo svg { width: 34%; height: 34%; margin: 33%; display: block; fill: none; stroke: #B9B6C8; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ac-prop__titre { font-size: .9375rem; font-weight: 700; color: var(--es-marine); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ac-prop .ac-rdt { font-size: 1.05rem; }
.ac-bloc--cote { padding: 22px; border-radius: var(--es-rayon); background: var(--es-fond); gap: 12px; }
.ac-faire { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.ac-faire a { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 12px; background: #fff; text-decoration: none; box-shadow: 0 0 0 1px var(--es-trait); }
.ac-faire a:hover { box-shadow: 0 0 0 1.5px var(--es-bleu); }
.ac-faire b { color: var(--es-marine); font-size: .9375rem; }
.ac-faire span { color: var(--es-gris); font-size: .8125rem; }
.ac-sous-titre { margin-top: 14px !important; font-size: 1.05rem !important; }
.ac-favs { display: flex; flex-direction: column; gap: 10px; }
.ac-fav { display: flex; gap: 12px; align-items: center; color: inherit; text-decoration: none; }
.ac-fav__photo { width: 54px; height: 54px; flex: none; border-radius: 10px; overflow: hidden; background: #EFEEF4; }
.ac-fav__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ac-fav b { display: block; font-size: .875rem; color: var(--es-marine); }
.ac-fav span span { font-size: .8125rem; color: var(--es-gris); }
.ac-lien { font-size: .875rem; font-weight: 700; color: var(--es-bleu); text-decoration: none; }

/* La fenetre « Que recherchez-vous ? » : des choix rapides, pas un formulaire. */
.ac-dialog { width: min(560px, calc(100vw - 32px)); }
.ac-form { display: flex; flex-direction: column; gap: 18px; }
.ac-ville { position: relative; }
.ac-suggestions { position: absolute; left: 0; right: 0; top: 100%; z-index: 5; margin-top: 4px; padding: 6px; border-radius: 12px; background: #fff; box-shadow: 0 14px 30px -14px rgba(4, 2, 77, .35), 0 0 0 1px var(--es-trait); display: flex; flex-direction: column; }
.ac-suggestions button { display: flex; justify-content: space-between; gap: 10px; padding: 9px 10px; border: 0; border-radius: 8px; background: none; font: inherit; font-weight: 600; color: var(--es-marine); text-align: left; cursor: pointer; }
.ac-suggestions button:hover { background: #EEF0FC; }
.ac-suggestions small { color: var(--es-gris); font-weight: 500; }
.ac-choisies { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.ac-choisies:empty { display: none; }
.ac-choisies button { border: 0; border-radius: 9px; padding: 6px 10px; background: #EEF0FC; color: var(--es-bleu); font: inherit; font-size: .875rem; font-weight: 700; cursor: pointer; }
.ac-puces { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.ac-puces legend { width: 100%; margin-bottom: 8px; font-size: .875rem; font-weight: 700; color: var(--es-marine); }
.ac-puces label { cursor: pointer; }
.ac-puces input { position: absolute; opacity: 0; pointer-events: none; }
.ac-puces span { display: inline-block; padding: 8px 13px; border-radius: 10px; box-shadow: inset 0 0 0 1px #DDDDE2; font-size: .875rem; font-weight: 600; color: var(--es-marine); }
.ac-puces input:checked + span { background: var(--es-marine); color: #fff; box-shadow: none; }
.ac-puces input:focus-visible + span { outline: 2px solid var(--es-bleu); outline-offset: 2px; }
.ac-alerte { display: flex; gap: 8px; align-items: center; font-size: .875rem; color: var(--es-gris); }

@media (max-width: 900px) {
  .ac-hero { grid-template-columns: minmax(0, 1fr); padding: 26px 22px; }
  .ac-grille { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ac-duo { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .ac-grille { grid-template-columns: minmax(0, 1fr); }
  .ac-props { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ac-bloc__tete { flex-wrap: wrap; }
}

/* ── Nos accompagnements (accompagnements.html) ─────────────────────────
   Un tableau « lequel pour quel projet », puis les quatre formules : pour
   qui, comment, ce qu'on paie, et ce pour quoi elles ne sont pas faites. */
.acc-aide { margin: 0 0 16px; max-width: 640px; line-height: 1.5; }
.acc-cache { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.acc-defile { overflow-x: auto; }
.acc-tableau { width: 100%; min-width: 620px; border-collapse: collapse; font-size: .9rem; }
.acc-tableau th, .acc-tableau td { padding: 12px; border-bottom: 1px solid #ECEAF2; text-align: center; vertical-align: middle; }
.acc-tableau thead th { font-size: .82rem; font-weight: 600; color: #6C6A94; border-bottom-color: #DDDBE6; }
.acc-tableau thead a { color: #04024D; text-decoration: none; }
.acc-tableau thead a:hover { color: #405AD2; text-decoration: underline; text-underline-offset: 3px; }
.acc-tableau tbody th { padding-left: 0; text-align: left; font-weight: 500; color: #3B3A66; }
/* La situation reste a gauche quand le tableau defile sur un ecran etroit. */
.acc-tableau tbody th, .acc-tableau thead th:first-child { position: sticky; left: 0; z-index: 1; background: #fff; }
@media (max-width: 760px) { .acc-tableau tbody th { min-width: 150px; max-width: 170px; box-shadow: 6px 0 8px -8px rgba(4, 2, 77, .25); } }
.acc-note { display: inline-block; padding: 3px 8px; border-radius: 6px; font-size: .78rem; font-weight: 600; white-space: nowrap; }
.acc-note--oui { background: #EEF0FC; color: #405AD2; }
.acc-note--peut { background: #F8F7FB; color: #3B3A66; }
.acc-note--non { background: #FDECEC; color: #04024D; }
.acc-note--hors { color: #B3B1C8; font-weight: 500; }

.acc-offres { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; margin-top: 16px; }
@media (min-width: 760px) { .acc-offres { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.acc-offre { padding: 24px; border: 1px solid #ECEAF2; border-radius: 14px; background: #fff; scroll-margin-top: calc(var(--nav-h, 69px) + 16px); }
.acc-offre:target { border-color: #405AD2; box-shadow: 0 0 0 1px #405AD2; }
.acc-offre__tete { display: flex; align-items: flex-start; gap: 14px; padding-bottom: 16px; border-bottom: 1px solid #ECEAF2; }
.acc-offre__tete .mk-ic { flex: none; width: 28px; height: 28px; margin-top: 2px; color: #04024D; }
.acc-offre h3 { margin: 0; font-size: 1.1rem; font-weight: 700; letter-spacing: -.01em; color: #04024D; }
.acc-offre__tete p { margin: 4px 0 0; font-size: .92rem; line-height: 1.5; color: #3B3A66; }
.acc-offre dl { margin: 0; }
.acc-offre dl > div { padding: 14px 0 0; }
.acc-offre dt { margin-bottom: 4px; font-size: .78rem; font-weight: 600; color: #6C6A94; }
.acc-offre dd { margin: 0; font-size: .9rem; line-height: 1.55; color: #3B3A66; }
.acc-offre ol { margin: 0; padding-left: 18px; }
.acc-offre li + li { margin-top: 4px; }
.acc-offre__eviter dd { padding: 10px 12px; border-radius: 10px; background: #FDECEC; color: #04024D; }

/* ── Estimations (estimations.html, js/estimations.js) ──────────────────
   Un parcours en quatre sections, sans cadre : les etapes s'ajoutent les
   unes sous les autres le long d'un fil (un point par etape, bleu une fois
   repondue), l'entete et sa barre de progression restent en haut, le
   calcul en trois temps ferme le fil, puis vient le resultat. Les reglages
   visuels suivent le systeme de design Mandak. */
.est-parcours { max-width: 720px; margin: 0 auto; }
.est-parcours[hidden] { display: none; }
.est-entete { position: sticky; top: var(--nav-h, 69px); z-index: 30; padding: 12px 0 0; background: #fff; }
.est-entete__haut { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.est-entete__section { font-size: .85rem; font-weight: 700; color: #04024D; }
.est-entete__compte { font-size: .8rem; color: #6C6A94; font-variant-numeric: tabular-nums; }
.est-progression { height: 4px; margin: 12px 0 0; border-radius: 2px; background: #ECEAF2; overflow: hidden; }
.est-progression i { display: block; height: 100%; width: 0; background: #405AD2; border-radius: 0 4px 4px 0; transition: width .45s cubic-bezier(.2, .8, .2, 1); }

.est-scene { position: relative; padding-top: 32px; }
.est-q { position: relative; padding: 0 0 40px; scroll-margin-top: calc(var(--nav-h, 69px) + 84px);
  transition: transform .32s cubic-bezier(.2, .8, .2, 1), opacity .32s; }
.est-q.is-entre { transform: translateY(16px); opacity: 0; }
.est-q h2 { margin: 0 0 20px; font-size: 1.35rem; font-weight: 700; letter-spacing: -.01em; color: #04024D; }
.est-q h2 small { font-size: .85rem; font-weight: 500; color: #6C6A94; }
.est-q__aide { margin: 12px 0 0; font-size: .85rem; line-height: 1.5; color: #6C6A94; }
.est-q__aide.is-alerte { color: #B83E47; }
.est-q__sous { margin: 28px 0 16px; font-size: 1rem; font-weight: 700; color: #04024D; }
.est-calcul-note { margin: 16px 0 0; font-variant-numeric: tabular-nums; }
.est-q__champ { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.est-q__champ > span:first-child { font-size: .85rem; font-weight: 600; color: #3B3A66; }
.est-q__champ input[type="text"] { height: 46px; box-sizing: border-box; padding: 0 14px; border: 1px solid #C8C8CF; border-radius: 10px;
  background: #fff; font: inherit; font-size: 14px; color: #04024D; }
@media (max-width: 640px) { .est-q__champ input[type="text"] { font-size: 16px; } } /* sous 16 px, l'iPhone zoome au toucher */
.est-q__champ input[type="text"]:focus { outline: 0; border-color: #405AD2; box-shadow: 0 0 0 3px #EEF0FC; }
.est-unite { display: flex; align-items: center; }
.est-unite input { flex: 1; min-width: 0; border-radius: 10px 0 0 10px !important; }
.est-unite em { display: flex; align-items: center; height: 46px; box-sizing: border-box; padding: 0 14px; border: 1px solid #C8C8CF; border-left: 0;
  border-radius: 0 10px 10px 0; background: #F8F7FB; font-style: normal; font-size: .9rem; color: #6C6A94; }
.est-unite input:only-child { border-radius: 10px !important; }
.est-adresse { position: relative; }
.est-suggest { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 20; padding: 6px; background: #fff; border-radius: 12px;
  box-shadow: 0 12px 32px -12px rgba(4, 2, 77, .3), 0 0 0 1px rgba(4, 2, 77, .06); animation: est-pop .16s ease-out; }
.est-suggest[hidden] { display: none; }
.est-suggest button { display: flex; flex-direction: column; width: 100%; padding: 10px 12px; border: 0; border-radius: 8px; background: none; font: inherit; text-align: left; cursor: pointer; }
.est-suggest button b { font-size: .95rem; font-weight: 600; color: #04024D; }
.est-suggest button span { font-size: .8rem; color: #6C6A94; }
.est-suggest button:hover { background: #F8F7FB; }
@keyframes est-pop { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

.est-verif { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
.est-verif__champs { display: flex; flex-direction: column; gap: 14px; }
.est-verif__carte { height: 220px; border-radius: 12px; overflow: hidden; background: #F7F2ED; }
@media (min-width: 640px) { .est-verif { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .est-verif__carte { height: auto; min-height: 240px; } }

.est-types { display: flex; flex-direction: column; border: 1px solid #ECEAF2; border-radius: 12px; overflow: hidden; }
.est-type { display: flex; align-items: center; gap: 16px; min-height: 58px; padding: 0 18px; border: 0; border-top: 1px solid #ECEAF2; background: #fff;
  font: inherit; font-size: 1rem; color: #04024D; text-align: left; cursor: pointer; transition: background .15s; }
.est-type:first-child { border-top: 0; }
.est-type:hover { background: #F8F7FB; }
.est-type svg { width: 26px; height: 26px; flex: none; fill: none; stroke: #3B3A66; stroke-width: 1.25; stroke-linecap: round; stroke-linejoin: round; }
.est-type span { flex: 1; }
.est-type i { width: 20px; height: 20px; flex: none; border: 1.5px solid #C8C8CF; border-radius: 50%; box-sizing: border-box; transition: border .15s; }
.est-type[aria-checked="true"] { background: #F2F3FE; }
.est-type[aria-checked="true"] svg { stroke: #405AD2; }
.est-type .est-type__ico { width: 32px; height: 32px; flex: none; background: #04024D; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-position: center; mask-position: center; -webkit-mask-size: contain; mask-size: contain; }
.est-type[aria-checked="true"] .est-type__ico { background: #405AD2; }
.est-type[aria-checked="true"] i { border: 6px solid #405AD2; }

.est-grille2 { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 18px 24px; }
.est-compteur { display: inline-flex; align-items: stretch; height: 46px; border: 1px solid #C8C8CF; border-radius: 10px; overflow: hidden; width: fit-content; }
.est-compteur button { width: 46px; border: 0; background: #fff; font: inherit; font-size: 1.3rem; color: #405AD2; cursor: pointer; }
.est-compteur button:hover { background: #F2F3FE; }
.est-compteur output { display: flex; align-items: center; justify-content: center; min-width: 64px; border-left: 1px solid #ECEAF2; border-right: 1px solid #ECEAF2;
  font-size: 1rem; font-weight: 700; color: #04024D; font-variant-numeric: tabular-nums; }
.est-compteur output.is-bouge { animation: est-bouge .2s ease-out; }
@keyframes est-bouge { from { transform: scale(1.25); color: #405AD2; } to { transform: none; } }

.est-atouts { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.est-atout { display: flex; align-items: flex-start; gap: 12px; padding: 14px; border: 1px solid #DDDBE6; border-radius: 10px; background: #fff;
  font: inherit; text-align: left; cursor: pointer; color: #04024D; transition: border-color .15s, background .15s; }
.est-atout:hover { border-color: #04024D; }
.est-atout i { width: 18px; height: 18px; flex: none; margin-top: 1px; border: 1.5px solid #C8C8CF; border-radius: 5px; box-sizing: border-box; position: relative; transition: background .15s, border-color .15s; }
.est-atout span { display: flex; flex-direction: column; font-size: .95rem; font-weight: 500; }
.est-atout small { font-size: .78rem; font-weight: 400; color: #6C6A94; }
.est-atout[aria-checked="true"] { border-color: #405AD2; background: #F2F3FE; }
.est-atout[aria-checked="true"] i { background: #405AD2; border-color: #405AD2; }
.est-atout[aria-checked="true"] i::after { content: ""; position: absolute; left: 5px; top: 1px; width: 5px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }

.est-precisions { display: flex; flex-direction: column; gap: 22px; }
.est-precisions .est-q__champ:first-child input { max-width: 200px; }
.est-suite { display: flex; flex-direction: column; gap: 22px; }
.est-suite:empty { display: none; }
.est-seg { display: flex; flex-wrap: wrap; gap: 8px; }
.est-seg button { min-height: 42px; padding: 0 14px; border: 1px solid #C8C8CF; border-radius: 10px; background: #fff; font: inherit; font-size: .9rem; font-weight: 600;
  color: #04024D; cursor: pointer; transition: border-color .15s, background .15s, color .15s; }
.est-seg button:hover { border-color: #04024D; }
.est-seg button[aria-checked="true"] { border-color: #405AD2; background: #405AD2; color: #fff; }
.est-seg--dpe button:not(:last-child) { min-width: 42px; padding: 0; }
/* Les echelles a cinq crans : un seul bloc, comme un curseur. */
.est-seg--echelle { gap: 0; flex-wrap: nowrap; border: 1px solid #C8C8CF; border-radius: 10px; overflow: hidden; }
.est-seg--echelle button { flex: 1; min-width: 0; border: 0; border-left: 1px solid #ECEAF2; border-radius: 0; padding: 0 6px; font-size: .82rem; }
.est-seg--echelle button:first-child { border-left: 0; }
.est-seg--echelle button[aria-checked="true"] { border-color: transparent; }

.est-onglets { display: flex; gap: 20px; margin: -6px 0 20px; border-bottom: 1px solid #ECEAF2; overflow-x: auto; scrollbar-width: none; }
.est-onglets button { flex: none; padding: 10px 0; border: 0; background: none; font: inherit; font-size: .92rem; font-weight: 600; color: #6C6A94; cursor: pointer; }
.est-onglets button[aria-selected="true"] { color: #04024D; box-shadow: inset 0 -2px 0 #405AD2; }

/* Le bouton suit l'etape en cours, sous ses champs. */
.est-nav { display: flex; align-items: center; padding: 24px 0 0; }
.est-nav[hidden] { display: none; }
.est-suivant { min-height: 46px; padding: 0 28px; border: 0; border-radius: 10px; background: #405AD2; color: #fff; font: inherit; font-size: .95rem; font-weight: 700; cursor: pointer; transition: background .15s, opacity .15s; }
.est-suivant:hover { background: #3550C4; }
.est-suivant:disabled { opacity: .4; cursor: not-allowed; }

/* Le calcul en trois temps */
.est-calcul { display: flex; flex-direction: column; gap: 22px; padding: 4px 0 8px; }
.est-calcul__ligne { display: flex; align-items: center; gap: 16px; font-size: 1rem; color: #B3B1C8; transition: color .3s; }
.est-calcul__ligne i { position: relative; width: 36px; height: 36px; flex: none; border: 2px solid #ECEAF2; border-radius: 50%; box-sizing: border-box; transition: border-color .3s, background .3s; }
.est-calcul__ligne.is-encours { color: #04024D; }
.est-calcul__ligne.is-encours i { border-color: #EEF0FC; border-top-color: #405AD2; animation: est-tourne .8s linear infinite; }
.est-calcul__ligne.is-fait { color: #04024D; }
.est-calcul__ligne.is-fait i { border-color: #405AD2; background: #405AD2; animation: est-pop .2s ease-out; }
.est-calcul__ligne.is-fait i::after { content: ""; position: absolute; left: 11px; top: 6px; width: 7px; height: 14px; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
@keyframes est-tourne { to { transform: rotate(360deg); } }

/* Le resultat */
.est-res { display: flex; flex-direction: column; gap: 20px; scroll-margin-top: calc(var(--nav-h, 69px) + 20px); }
.est-res[hidden] { display: none; }
.est-res.is-visible > * { animation: est-monte .45s cubic-bezier(.2, .8, .2, 1) both; }
.est-res.is-visible > *:nth-child(2) { animation-delay: .08s; }
.est-res.is-visible > *:nth-child(3) { animation-delay: .16s; }
.est-res.is-visible > *:nth-child(n+4) { animation-delay: .24s; }
@keyframes est-monte { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.est-res__tete { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px 24px; }
.est-res__tete h1 { margin: 0; font-size: clamp(1.5rem, 3vw, 1.9rem); font-weight: 700; letter-spacing: -.02em; color: #04024D; }
.est-res__tete p { margin: 6px 0 0; font-size: .92rem; color: #6C6A94; }
.est-res__actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.est-carte { padding: 24px; border: 1px solid #ECEAF2; border-radius: 14px; background: #fff; }
.est-carte h2 { margin: 0 0 4px; font-size: 1.1rem; font-weight: 700; color: #04024D; }
.est-carte--valeur { box-shadow: 0 12px 32px -20px rgba(4, 2, 77, .3); }
.est-label { display: block; font-size: .78rem; font-weight: 600; color: #6C6A94; }
.est-trio { display: grid; grid-template-columns: 1fr 1.3fr 1fr; gap: 12px; align-items: end; text-align: center; }
.est-trio > div { display: flex; flex-direction: column; gap: 4px; }
.est-trio b { font-size: 1.15rem; font-weight: 700; color: #3B3A66; font-variant-numeric: tabular-nums; }
.est-trio small { font-size: .8rem; color: #6C6A94; }
.est-trio__milieu b { font-size: clamp(1.8rem, 4vw, 2.4rem); letter-spacing: -.02em; color: #04024D; }
.est-jauge { position: relative; height: 8px; margin: 18px 8% 6px; border-radius: 8px; background: linear-gradient(90deg, #DDE2F9, #405AD2 50%, #DDE2F9); }
.est-jauge i { position: absolute; top: 50%; left: 50%; width: 18px; height: 18px; margin: -9px 0 0 -9px; border: 3px solid #fff; border-radius: 50%; background: #04024D;
  box-shadow: 0 2px 6px rgba(4, 2, 77, .35); animation: est-glisse .9s cubic-bezier(.2, .8, .2, 1) forwards; }
@keyframes est-glisse { from { left: 0; } to { left: var(--pos); } }
.est-fiab { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 10px; margin: 14px 0 0; font-size: .88rem; color: #6C6A94; }
.est-fiab b { color: #04024D; }
.est-points { display: flex; gap: 4px; }
.est-points i { width: 10px; height: 10px; border-radius: 3px; background: #ECEAF2; }
.est-points i.is-plein { background: #405AD2; }
.est-facteurs { margin-top: 20px; padding-top: 18px; border-top: 1px solid #ECEAF2; }
.est-facteurs > div { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.est-facteur { padding: 6px 10px; border-radius: 8px; font-size: .85rem; font-weight: 600; }
.est-facteur.is-plus { background: #EEF0FC; color: #405AD2; }
.est-facteur.is-moins { background: #FDECEC; color: #04024D; }
.est-actions { margin-top: 20px; justify-content: center; }
.est-btn { background: #405AD2; }
.est-btn:hover { background: #3550C4; }
.est-duo { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.est-chiffres { display: flex; flex-wrap: wrap; gap: 16px 32px; margin-top: 14px; }
.est-chiffres > div { display: flex; flex-direction: column; gap: 2px; }
.est-chiffres b { font-size: 1.3rem; font-weight: 700; color: #04024D; font-variant-numeric: tabular-nums; }
.est-chiffres b.is-hausse { color: #1F7A45; }
.est-chiffres b.is-baisse { color: #B4480F; }
.est-chiffres small { font-size: .8rem; color: #6C6A94; }
/* Les chiffres du secteur et le calcul de l'immeuble, en lignes fines :
   le libelle a gauche, le chiffre a droite, un trait fonce avant un total. */
.est-lignes { margin-top: 8px; }
.est-ligne { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 10px 0; border-top: 1px solid #ECEAF2;
  font-size: .9rem; line-height: 1.35; color: #04024D; }
.est-ligne:first-child { border-top: 0; }
.est-ligne > span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.est-ligne small { font-size: .78rem; color: #6C6A94; }
.est-ligne > b { flex: none; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.est-ligne > b i { margin-right: 8px; font-style: normal; font-weight: 500; color: #6C6A94; }
.est-ligne > b em { font-style: normal; }
.est-ligne > b .is-hausse { color: #1F7A45; }
.est-ligne > b .is-baisse { color: #B4480F; }
.est-ligne--total { border-top-color: #04024D; font-weight: 700; }
.est-ligne--total > b { font-weight: 700; }
.est-ligne--prix > b { color: #405AD2; font-size: 1.05rem; }
.est-carte__note { margin: 10px 0 0; font-size: .78rem; line-height: 1.5; color: #6C6A94; }
.est-ventes { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin-top: 14px; }
.est-ventes__carte { height: 280px; border-radius: 12px; overflow: hidden; background: #F7F2ED; }
@media (min-width: 1000px) { .est-ventes { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); } .est-ventes__carte { height: auto; min-height: 320px; } }
.est-pin { width: 18px; height: 18px; border: 3px solid #fff; border-radius: 50%; background: #405AD2; box-shadow: 0 2px 8px rgba(4, 2, 77, .4); }
.est-pin--vente { display: grid; place-items: center; width: 22px; height: 22px; border-width: 2px; background: #04024D; color: #fff; font: 700 11px/1 'Plus Jakarta Sans', sans-serif; }
.est-num { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: #04024D; color: #fff; font-size: 11px; font-weight: 700; }
.est-defile { overflow-x: auto; }
.est-table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: .86rem; font-variant-numeric: tabular-nums; }
.est-table th { padding: 8px 8px; border-bottom: 1px solid #DDDBE6; font-size: .76rem; font-weight: 600; color: #6C6A94; text-align: right; }
.est-table td { padding: 10px 8px; border-bottom: 1px solid #ECEAF2; color: #3B3A66; text-align: right; white-space: nowrap; }
.est-table th:nth-child(-n+2), .est-table td:nth-child(-n+2) { text-align: left; }
.est-table td:nth-child(2) { white-space: normal; color: #04024D; }
.est-annonces { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin-top: 12px; }
.est-annonce { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border: 1px solid #ECEAF2; border-radius: 10px; text-decoration: none; color: #3B3A66; }
.est-annonce:hover { border-color: #04024D; }
.est-annonce b { font-size: 1rem; color: #04024D; }
.est-annonce span { font-size: .85rem; }
.est-annonce small { font-size: .78rem; color: #6C6A94; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.est-note { margin: 0; font-size: .82rem; text-align: center; }
/* Le sous-menu de la page, a la largeur du parcours. */
.est-tete { max-width: 720px; margin: 0 auto; }
.est-tete .gb-onglets { margin-bottom: var(--s4); }
#estEstimer[hidden] { display: none; }
.est-historique { max-width: 720px; margin: 0 auto; }
.est-historique[hidden] { display: none; }
.est-liste { display: flex; flex-direction: column; }
.est-liste { gap: 2px; }
.est-jour { margin: 20px 12px 6px; font-size: .8rem; font-weight: 700; color: #04024D; }
.est-jour:first-child { margin-top: 4px; }
.est-jour + .est-ligne-hist::before { display: none; }
.est-ligne-hist { position: relative; display: flex; align-items: center; gap: 14px; width: 100%; padding: 12px; border: 0; border-radius: 12px; background: none;
  font: inherit; text-align: left; text-decoration: none; cursor: pointer; color: #04024D; transition: background .15s; }
.est-ligne-hist + .est-ligne-hist::before { content: ""; position: absolute; top: -1px; left: 70px; right: 12px; height: 1px; background: #ECEAF2; }
.est-ligne-hist:hover, .est-ligne-hist:focus-visible { background: #F2F3FE; outline: 0; }
.est-ligne-hist:hover::before, .est-ligne-hist:hover + .est-ligne-hist::before { display: none; }
.est-ligne-hist__ico { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 10px; background: #EEF0FC; }
.est-ligne-hist__ico i { width: 28px; height: 28px; background: #405AD2; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: center; mask-position: center; -webkit-mask-size: contain; mask-size: contain; }
.est-ligne-hist:hover .est-ligne-hist__ico { background: #fff; }
.est-ligne-hist__ico { position: relative; overflow: hidden; }
.est-ligne-hist__ico img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.est-ligne-hist__ico.a-photo i { display: none; }
.est-ligne-hist__txt { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.est-ligne-hist__txt b { font-size: .95rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.est-ligne-hist small { font-size: .8rem; color: #6C6A94; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.est-ligne-hist__prix { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.est-ligne-hist__prix em { font-style: normal; font-size: 1rem; font-weight: 700; color: #04024D; font-variant-numeric: tabular-nums; }
.est-ligne-hist__fl { flex: none; width: 18px; height: 18px; fill: none; stroke: #B3B1C8; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .15s, stroke .15s; }
.est-ligne-hist:hover .est-ligne-hist__fl { stroke: #405AD2; transform: translateX(2px); }
/* La derniere estimation, en avant : un bandeau bleu vif, la facade a
   gauche, le prix en grand, le bien en pictos blancs (historique() de
   js/estimations.js). */
.est-une { display: flex; gap: 20px; width: 100%; margin: 4px 0 8px; padding: 14px; border: 0; border-radius: 16px; background: #405AD2; color: #fff;
  font: inherit; text-align: left; text-decoration: none; cursor: pointer; transition: background .15s; }
.est-une:hover { color: #fff; }
.est-une:hover { background: #3A52C4; }
.est-une:focus-visible { outline: 2px solid #04024D; outline-offset: 2px; }
.est-une__photo { position: relative; overflow: hidden; display: grid; place-items: center; flex: none; width: 176px; min-height: 148px; border-radius: 10px; background: rgba(255,255,255,.14); }
.est-une__photo i { width: 56px; height: 56px; background: #fff; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-size: contain; mask-size: contain; -webkit-mask-position: center; mask-position: center; }
.est-une__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.est-une__photo.a-photo i { display: none; }
.est-une__corps { flex: 1; min-width: 0; display: flex; flex-direction: column; padding: 2px 4px 2px 0; }
.est-une__tete { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.est-une__tete small { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 13px; font-weight: 500; color: rgba(255,255,255,.75); }
.est-une__tete small span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.est-une__tete small b { font-weight: 700; color: #fff; }
/* Le carre corail du logo, en repere. */
.est-une__tete small i { flex: none; width: 8px; height: 8px; border-radius: 2px; background: #ED797B; }
.est-une__voir { flex: none; display: inline-flex; align-items: center; gap: 2px; height: 28px; padding: 0 8px 0 12px; border-radius: 999px; background: #fff; color: #405AD2; font-size: 12px; font-weight: 700; }
.est-une__voir svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .15s; }
.est-une:hover .est-une__voir svg { transform: translateX(2px); }
.est-une__adresse { margin-top: 4px; font-size: 15px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.est-une__prix { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; margin-top: 8px; }
.est-une__prix em { font-style: normal; font-size: 30px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.est-une__prix small { font-size: 13px; color: rgba(255,255,255,.85); font-variant-numeric: tabular-nums; }
.est-une__faits { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.est-une__faits span { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px 0 8px; border-radius: 8px; background: rgba(255,255,255,.14); font-size: 12px; font-weight: 600; white-space: nowrap; }
.est-une__faits svg { width: 16px; height: 16px; fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.est-une__faits i { width: 16px; height: 16px; background: #fff; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; -webkit-mask-size: contain; mask-size: contain; -webkit-mask-position: center; mask-position: center; }
@media (max-width: 560px) {
  .est-une { flex-direction: column; gap: 14px; padding: 10px; }
  .est-une__photo { width: 100%; min-height: 0; height: 168px; }
  .est-une__corps { padding: 0 4px 4px; }
  .est-une__tete { align-items: flex-start; }
  .est-une__tete small { align-items: baseline; }
  .est-une__tete small span { white-space: normal; }
  .est-une__prix em { font-size: 26px; }
}
@media (max-width: 480px) {
  .est-ligne-hist { gap: 12px; padding: 12px 8px; }
  .est-ligne-hist__ico { width: 40px; height: 40px; }
  .est-ligne-hist + .est-ligne-hist::before { left: 60px; right: 8px; }
  .est-ligne-hist__fl { display: none; }
}
@media (max-width: 640px) {
  .est-q { padding: 0 0 32px; }
  .est-q h2 { font-size: 1.2rem; }
  .est-carte { padding: 18px; }
  .est-trio { grid-template-columns: 1fr 1fr; }
  .est-trio__milieu { grid-column: 1 / -1; order: -1; }
  .est-seg--echelle button { font-size: .74rem; padding: 0 2px; }
}
@media (prefers-reduced-motion: reduce) {
  .est-q, .est-progression i, .est-res.is-visible > *, .est-jauge i { transition: none; animation: none; }
  .est-jauge i { left: var(--pos); }
}

/* ── La video d'estimation (js/estimation-video.js) ────────────────────
   Un gabarit fixe en 16:9 : la carte en fond pour les trois premieres
   scenes, des cartouches blancs, les sous-titres en bas, la marque en
   haut a droite. Les scenes entrent en fondu ; leurs elements, un a un. */
.est-video #estVideo { margin-top: 14px; }
.ev { position: relative; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: #F7F2ED; isolation: isolate;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif; color: #04024D; container: ev / inline-size; }
.ev-carte, .ev > .ev-carte.maplibregl-map { position: absolute; inset: 0; z-index: 0; transition: opacity .8s, filter .8s; }
.ev.sans-carte .ev-carte { opacity: .18; filter: blur(2px); }
.ev-carte .maplibregl-ctrl-bottom-right { opacity: .6; }
.ev-scenes { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.ev-scene { position: absolute; inset: 0; opacity: 0; transform: translateX(4%); transition: opacity .6s, transform .8s cubic-bezier(.2, .8, .2, 1); }
.ev-scene.is-active { opacity: 1; transform: none; }
.ev-scene.is-passee { transform: translateX(-4%); }
.ev-scene > * { transform: translateY(14px); opacity: 0; transition: transform .7s cubic-bezier(.2, .8, .2, 1) .25s, opacity .7s .25s; }
.ev-scene.is-active > * { transform: none; opacity: 1; }
.ev-label { display: block; font-size: max(10px, 1.6cqw); font-weight: 600; color: #6C6A94; }
.ev-cartouche { position: absolute; display: flex; flex-direction: column; gap: .4cqw; max-width: 46%; padding: 2.2cqw 2.6cqw; border-radius: 1.6cqw;
  background: rgba(255, 255, 255, .96); box-shadow: 0 1.4cqw 3.6cqw -1.6cqw rgba(4, 2, 77, .35); }
.ev-cartouche b { font-size: max(13px, 2.6cqw); font-weight: 700; line-height: 1.2; }
.ev-cartouche small { font-size: max(10px, 1.6cqw); color: #3B3A66; }
.ev-haut-gauche { top: 4cqw; left: 4cqw; }
.ev-bas-gauche { bottom: 13cqw; left: 4cqw; }
.ev-grand { font-size: max(20px, 5cqw) !important; letter-spacing: -.02em; }
.ev-grand small { font-size: .45em !important; font-weight: 600; color: #6C6A94 !important; }
.ev-puces { display: flex; flex-wrap: wrap; gap: .8cqw; margin-top: .8cqw; }
.ev-puces span { padding: .5cqw 1.1cqw; border-radius: .8cqw; background: #EEF0FC; color: #405AD2; font-size: max(10px, 1.5cqw); font-weight: 600; }
.ev-marque { position: absolute; top: 3cqw; right: 3.4cqw; z-index: 2; font-size: max(12px, 2.4cqw); font-weight: 800; letter-spacing: -.03em; color: #04024D;
  padding: .6cqw 1.4cqw; border-radius: 1cqw; background: rgba(255, 255, 255, .85); }
.ev-marque span { color: #405AD2; }
.ev-marque i { display: inline-block; width: .32em; height: .32em; margin-left: .12em; border-radius: .06em; background: #ED797B; }

/* Les ventes : une colonne a droite, une carte apres l'autre */
.ev-pile { position: absolute; top: 4cqw; right: 3cqw; bottom: 12cqw; width: 38%; display: flex; flex-direction: column; justify-content: center; gap: 1.1cqw;
  transform: none !important; opacity: 1 !important; }
.ev-vente { display: flex; align-items: center; gap: 1.4cqw; padding: 1.4cqw 1.6cqw; border-radius: 1.4cqw; background: rgba(255, 255, 255, .97);
  box-shadow: 0 1cqw 2.4cqw -1.2cqw rgba(4, 2, 77, .35); opacity: 0; transform: translateX(4cqw); transition: opacity .5s, transform .5s cubic-bezier(.2, .8, .2, 1); }
.ev-scene.is-active .ev-vente { opacity: 1; transform: none; transition-delay: calc(.8s + var(--i) * .55s); }
.ev-vente span:nth-child(2) { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.ev-vente b { font-size: max(12px, 2cqw); }
.ev-vente small { font-size: max(9px, 1.3cqw); color: #6C6A94; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ev-vente em { font-style: normal; font-size: max(10px, 1.5cqw); font-weight: 700; color: #405AD2; white-space: nowrap; }
.ev-num { display: grid; place-items: center; flex: none; width: max(18px, 2.8cqw); height: max(18px, 2.8cqw); border-radius: 50%; background: #04024D; color: #fff;
  font-size: max(9px, 1.3cqw); font-weight: 700; }
.ev-pile__pied { align-self: flex-end; font-size: max(10px, 1.4cqw); font-weight: 600; color: #04024D; padding: .5cqw 1.2cqw; border-radius: 1cqw; background: rgba(255, 255, 255, .9);
  opacity: 0; transition: opacity .5s 3.2s; }
.ev-scene.is-active .ev-pile__pied { opacity: 1; }
/* MapLibre pose lui-meme opacity et transform sur le marqueur : on force. */
.ev-pin-vente { transition: opacity .35s !important; }
.ev-pin-vente:not(.is-visible) { opacity: 0 !important; }

/* Les annonces : les photos du jour, en leger mouvement */

/* Ce qui fait le prix, puis le resultat : au centre */
.ev-centre { position: absolute; left: 50%; top: 46%; width: 76%; display: flex; flex-direction: column; align-items: center; gap: 1.6cqw; text-align: center;
  padding: 3cqw; border-radius: 2cqw; background: rgba(255, 255, 255, .97); box-shadow: 0 2cqw 5cqw -2cqw rgba(4, 2, 77, .35);
  transform: translate(-50%, calc(-50% + 14px)) !important; }
.ev-scene.is-active .ev-centre { transform: translate(-50%, -50%) !important; }
.ev-scene.is-active .ev-prix { font-size: max(28px, 7.4cqw); font-weight: 800; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.ev-jauge { position: relative; width: 70%; height: max(6px, 1cqw); border-radius: 1cqw; background: linear-gradient(90deg, #DDE2F9, #405AD2 50%, #DDE2F9); }
.ev-jauge i { position: absolute; top: 50%; left: 0; width: max(14px, 2.4cqw); height: max(14px, 2.4cqw); transform: translate(-50%, -50%); border: 3px solid #fff; border-radius: 50%;
  background: #04024D; box-shadow: 0 2px 6px rgba(4, 2, 77, .35); transition: left 1.4s cubic-bezier(.2, .8, .2, 1) .6s; }
.ev-scene.is-active .ev-jauge i { left: var(--pos); }
.ev-bornes { display: flex; justify-content: space-between; width: 70%; font-size: max(10px, 1.6cqw); font-weight: 600; color: #3B3A66; }
.ev-fiab { display: flex; align-items: center; gap: 1cqw; font-size: max(10px, 1.6cqw); font-weight: 600; color: #3B3A66; }
.ev-points { display: flex; gap: .5cqw; }
.ev-points i { width: max(7px, 1.2cqw); height: max(7px, 1.2cqw); border-radius: 2px; background: #ECEAF2; }
.ev-points i.is-plein { background: #405AD2; }
.ev-loyer { font-size: max(11px, 1.8cqw); color: #3B3A66; }
.ev-prix--moyen { font-size: max(22px, 5.4cqw); }
.ev-titre { font-size: max(16px, 3.6cqw); font-weight: 700; letter-spacing: -.01em; line-height: 1.15; }
.ev-loyer b { color: #04024D; }

/* Les sous-titres, l'affiche, les commandes */
.ev-sous-titres { position: absolute; left: 50%; bottom: 3cqw; z-index: 3; width: 86%; margin: 0; transform: translateX(-50%); padding: 1cqw 2cqw; border-radius: 1.2cqw;
  background: rgba(4, 2, 77, .82); color: #fff; font-size: max(11px, 1.9cqw); line-height: 1.45; text-align: center; opacity: 0; transition: opacity .3s; }
.ev[data-etat="lecture"] .ev-sous-titres:not(:empty), .ev[data-etat="pause"] .ev-sous-titres:not(:empty) { opacity: 1; }
.ev.sans-st .ev-sous-titres { opacity: 0 !important; }
.ev-affiche { position: absolute; inset: 0; z-index: 4; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.2cqw; border: 0;
  background: linear-gradient(160deg, rgba(64, 90, 210, .92), rgba(4, 2, 77, .95)); color: #fff; font: inherit; cursor: pointer; transition: opacity .4s; }
.ev-affiche b { font-size: max(16px, 3.4cqw); font-weight: 700; letter-spacing: -.01em; }
.ev-affiche small { font-size: max(11px, 1.7cqw); opacity: .85; }
.ev-lecture { position: relative; width: max(54px, 9cqw); height: max(54px, 9cqw); border-radius: 50%; background: #fff; box-shadow: 0 0 0 1.4cqw rgba(255, 255, 255, .18);
  transition: transform .2s; }
.ev-lecture::after { content: ""; position: absolute; left: 54%; top: 50%; transform: translate(-50%, -50%); border-style: solid; border-width: max(10px, 1.6cqw) 0 max(10px, 1.6cqw) max(16px, 2.6cqw);
  border-color: transparent transparent transparent #405AD2; }
.ev-affiche:hover .ev-lecture { transform: scale(1.06); }
.ev:not([data-etat="pret"]):not([data-etat="chargement"]) .ev-affiche { opacity: 0; pointer-events: none; }
.ev[data-etat="chargement"] .ev-affiche small::after { content: " · préparation…"; }
.ev[data-etat="chargement"] .ev-lecture { animation: ev-pulse 1s ease-in-out infinite; }
@keyframes ev-pulse { 50% { transform: scale(.92); } }
.ev[data-etat="fini"] .ev-scene--resultat { opacity: 1; }
.ev-commandes { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.ev-bouton { display: grid; place-items: center; flex: none; width: 38px; height: 38px; border: 1px solid #DDDBE6; border-radius: 10px; background: #fff; color: #04024D; cursor: pointer;
  font: inherit; font-size: .75rem; font-weight: 700; }
.ev-bouton:hover { border-color: #04024D; }
.ev-bouton svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ev-bouton--st { color: #B3B1C8; }
.ev-bouton--st.is-on { color: #04024D; }
.ev-frise { flex: 1; display: flex; gap: 4px; }
.ev-frise button { position: relative; height: 18px; padding: 0; border: 0; background: none; cursor: pointer; }
.ev-frise button::before { content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 4px; border-radius: 4px; background: #ECEAF2; }
.ev-frise i { position: absolute; left: 0; top: 7px; height: 4px; width: 0; border-radius: 4px; background: #405AD2; }
@media (prefers-reduced-motion: reduce) {
  .ev-scene, .ev-scene > *, .ev-vente, .ev-apparait, .ev-scene [data-k], .ev-diapo figure, .ev-jauge i, .ev-pin-vente { transition: none !important; }
  .ev-diapo img, .ev-pin-bien { animation: none !important; }
}

/* Ce qui apparait avec la phrase qui en parle (data-k, js/estimation-video.js). */
.ev-apparait, .ev-scene [data-k] { opacity: 0; transform: translateY(1.2cqw) scale(.96); transition: opacity .5s, transform .6s cubic-bezier(.3, 1.4, .5, 1); }
.ev-apparait.is-on, .ev-scene [data-k].is-on { opacity: 1; transform: none; }
.ev-vente.is-courant { box-shadow: 0 0 0 2px #405AD2, 0 1cqw 3cqw -1.2cqw rgba(4, 2, 77, .4); }

/* Les annonces : leurs photos en plein cadre, qui defilent ou s'arretent
   sur celle que la voix commente. */
.ev.plein-cadre .ev-carte { opacity: 0; }
.ev-diapo { position: absolute; inset: 0; background: #04024D; }
.ev-diapo figure { position: absolute; inset: 0; margin: 0; overflow: hidden; opacity: 0; transition: opacity .9s; }
.ev-diapo figure.is-vue { opacity: 1; }
.ev-diapo img { width: 100%; height: 100%; object-fit: cover; display: block; transform: scale(1.04); }
.ev-diapo figure.is-vue.ev-kb-a img { animation: ev-kb-a 7s ease-out forwards; }
.ev-diapo figure.is-vue.ev-kb-b img { animation: ev-kb-b 7s ease-out forwards; }
@keyframes ev-kb-a { from { transform: scale(1.04) translate(0, 0); } to { transform: scale(1.16) translate(-2%, -1.5%); } }
@keyframes ev-kb-b { from { transform: scale(1.16) translate(2%, 1%); } to { transform: scale(1.05) translate(0, 0); } }
.ev-voile { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(4, 2, 77, .28) 0%, rgba(4, 2, 77, 0) 30%, rgba(4, 2, 77, 0) 55%, rgba(4, 2, 77, .55) 100%); }
.ev-scene--annonce > .ev-diapo, .ev-scene--annonce > .ev-voile { transform: none !important; opacity: 1 !important; }
.ev-annonce-tete { max-width: 40%; }
.ev-prixdemande { position: absolute; left: 4cqw; bottom: 13cqw; display: flex; flex-direction: column; padding: 1.4cqw 2cqw; border-radius: 1.4cqw; background: #fff; }
.ev-prixdemande span { font-size: max(9px, 1.3cqw); font-weight: 600; color: #6C6A94; }
.ev-prixdemande b { font-size: max(16px, 3.6cqw); font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.ev-prixdemande small { font-size: max(9px, 1.4cqw); color: #3B3A66; }
.ev-etiquette, .ev-face { position: absolute; right: 4cqw; display: flex; flex-direction: column; padding: 1.2cqw 1.8cqw; border-radius: 1.2cqw; background: #fff; min-width: 20%; }
.ev-etiquette { bottom: 22cqw; }
.ev-face { bottom: 13cqw; flex-direction: row; align-items: center; gap: 1.2cqw; }
.ev-etiquette span, .ev-face span { font-size: max(9px, 1.3cqw); font-weight: 600; color: #6C6A94; }
.ev-etiquette b, .ev-face b { font-size: max(12px, 2.2cqw); font-weight: 700; }
.ev-etiquette.is-moins { box-shadow: inset 0.5cqw 0 0 #ED797B; }
.ev-etiquette.is-plus { box-shadow: inset 0.5cqw 0 0 #405AD2; }
.ev-face i { display: grid; place-items: center; width: max(20px, 3.4cqw); height: max(20px, 3.4cqw); margin-left: auto; border-radius: .8cqw; background: #405AD2; color: #fff;
  font-style: normal; font-weight: 800; font-size: max(11px, 1.9cqw); }
.ev-points-photo { position: absolute; top: 9cqw; right: 3.4cqw; display: flex; gap: .6cqw; }
.ev-points-photo i { width: max(5px, .9cqw); height: max(5px, .9cqw); border-radius: 2px; background: rgba(255, 255, 255, .45); transition: background .3s, transform .3s; }
.ev-points-photo i.is-on { background: #fff; transform: scale(1.3); }
.ev-conseil { padding: .8cqw 1.6cqw; border-radius: 1cqw; background: #EEF0FC; color: #405AD2; font-size: max(10px, 1.6cqw); font-weight: 600; }

/* Les points d'interet poses sur la carte du secteur et du bien. */
.ev-poi { display: flex; align-items: center; gap: .6cqw; opacity: 0 !important; transition: opacity .4s !important; pointer-events: none; }
.ev-poi.is-visible { opacity: 1 !important; }
.ev-poi i { width: 14px; height: 14px; flex: none; border: 3px solid #fff; border-radius: 4px; background: #ED797B; box-shadow: 0 2px 6px rgba(4, 2, 77, .35); }
.ev-poi--ecole i { background: #405AD2; }
.ev-poi span { padding: 3px 8px; border-radius: 6px; background: #fff; color: #04024D; font: 600 max(10px, 1.4cqw)/1.3 'Plus Jakarta Sans', sans-serif; white-space: nowrap;
  box-shadow: 0 2px 8px rgba(4, 2, 77, .2); }
.ev-pin-bien { animation: ev-pouls 1.8s ease-out infinite; }
@keyframes ev-pouls { 0% { box-shadow: 0 0 0 0 rgba(64, 90, 210, .55), 0 2px 8px rgba(4, 2, 77, .4); } 100% { box-shadow: 0 0 0 18px rgba(64, 90, 210, 0), 0 2px 8px rgba(4, 2, 77, .4); } }

.ev-cartouche .ev-apparait { display: flex; flex-direction: column; gap: .4cqw; }
.ev-quartier { margin-top: .8cqw; padding-top: .8cqw; border-top: 1px solid #ECEAF2; }
.ev-quartier b { font-size: max(14px, 2.8cqw); font-weight: 800; letter-spacing: -.02em; }
.ev-quartier b small { font-size: .5em; font-weight: 600; color: #6C6A94; }

/* ═══ Gérer mes biens (patrimoine.html, js/patrimoine.js) ═══════════════
   Écrit avec les seuls jetons du système de design Mandak
   (https://claude.ai/artifact/SU1KQABJNVKVmuxzsZegt7) :
   – couleurs : ink, text, muted, faint, line, line-strong, surface,
     surface-alt, blue (action et rendement seulement), blue-tint, blue-soft,
     coral (signal, en aplat), coral-tint, positive, negative ;
   – texte : page-title 20/28, section-title 15/22, row et body 13/20,
     label et caption 12/16, figure 18/24, figure-sm 13 ;
   – espaces 4 · 8 · 12 · 16 · 24 · 32 · 48 ; rayons 4 · 8 · 12 · pilule
     (avatars) ; lignes et contrôles de 36 px ; icônes de 18 px.
   Une exception voulue par Nicolas (23/10/2026) : le bandeau bleu en tête
   du tableau de bord, seule grande surface colorée de la page. */
.gb {
  --ink: #04024d; --text: #3b3a66; --muted: #6c6a94; --faint: #b3b1c8; --line: #eceaf2; --line-strong: #dddbe6;
  --surface: #fff; --surface-alt: #f8f7fb; --blue: #405ad2; --blue-tint: #eef0fc; --blue-soft: #d9dff8;
  /* Ni vert ni rouge (demande de Nicolas, 24/10) : le bon en bleu Mandak, ce
     qui coince dans notre rouge, le corail du logo tel quel (Nicolas, 10/11 :
     « utilise notre rouge plutôt », à la place du corail foncé #b83e47). */
  --coral: #ed797b; --coral-tint: #fdecec; --positive: #405ad2; --negative: #ed797b;
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s6: 24px; --s8: 32px; --s12: 48px;
  --r-sm: 4px; --r-md: 8px; --r-lg: 12px; --ligne: 36px; --icone: 18px;
  font-size: 13px; line-height: 20px; color: var(--text);
}
.gb h2 { margin: 0; font-size: 15px; line-height: 22px; font-weight: 700; letter-spacing: 0; color: var(--ink); }
.gb-gris { color: var(--muted); }
.gb-bleu { color: var(--blue) !important; }
.gb-positif { color: var(--positive) !important; }
.gb-negatif { color: var(--negative) !important; }
.gb-nb { text-align: right !important; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Les commandes : 36 px, rayon 8. */
.gb-btn { display: inline-flex; align-items: center; justify-content: center; height: var(--ligne); padding: 0 var(--s4); border: 0; border-radius: var(--r-md); background: var(--blue); color: #fff;
  font-family: inherit; font-size: 13px; font-weight: 600; line-height: 20px; white-space: nowrap; cursor: pointer; }
.gb-btn--clair { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-strong); }
.gb-btn--clair:hover { background: var(--surface-alt); }
.gb-btn--petit { padding: 0 var(--s3); }
.gb-btn:disabled { opacity: .6; cursor: default; }
.gb-lien { padding: 0; border: 0; background: none; font-family: inherit; font-size: 13px; font-weight: 600; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.gb-select, .gb-saisie select, .gb-saisie input { height: var(--ligne); padding: 0 var(--s3); border: 1px solid var(--line-strong); border-radius: var(--r-md); background: var(--surface);
  font-family: inherit; font-size: 13px; color: var(--ink); }
.gb-sup { flex: none; display: grid; place-items: center; width: var(--ligne); height: var(--ligne); border: 0; border-radius: var(--r-md); background: none; color: var(--muted); font-size: 18px; cursor: pointer; }
.gb-sup:hover { background: var(--coral-tint); color: var(--negative); }
.gb-ic { width: var(--icone); height: var(--icone); flex: none; fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.gb-ic .f { fill: var(--blue-soft); }
.gb-ic .c { fill: var(--coral); stroke: none; }
.gb-ic--grand { width: 32px; height: 32px; }

/* L'en-tête de la page et le sous-menu horizontal (lignes de 36 px). */
.gb-tete { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); flex-wrap: wrap; margin-bottom: var(--s4); }
.gb-tete h1 { margin: 0; font-size: 20px; line-height: 28px; font-weight: 700; letter-spacing: -.01em; color: var(--ink); }
.gb-tete__droite { display: flex; align-items: center; gap: var(--s2); }
.gb-onglets { display: flex; gap: var(--s6); margin: 0 0 var(--s6); border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.gb-onglets::-webkit-scrollbar { display: none; }
.gb-onglet { position: relative; display: inline-flex; align-items: center; gap: var(--s2); height: var(--ligne); flex: none; color: var(--muted); font-weight: 600; text-decoration: none; white-space: nowrap; }
.gb-onglet:hover, .gb-onglet.is-actif { color: var(--ink); }
.gb-onglet.is-actif::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--ink); }
.gb-onglet small { font-size: 12px; line-height: 16px; }
.gb-compte { min-width: 20px; height: 20px; padding: 0 var(--s1); border-radius: var(--r-sm); background: var(--coral); color: #fff; font-family: inherit; font-size: 12px; font-weight: 700; line-height: 20px; text-align: center; font-style: normal; }
.gb-alerte { width: 8px; height: 8px; border-radius: 2px; background: var(--coral); }
.gb-onglet-tete { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s3); flex-wrap: wrap; margin-bottom: var(--s4); }
.gb-onglet-tete p { margin: var(--s1) 0 0; color: var(--muted); }
.gb-annees { display: inline-flex; align-items: center; gap: var(--s1); }
.gb-annees b { min-width: 48px; text-align: center; color: var(--ink); font-variant-numeric: tabular-nums; }
.gb-annees__btn { width: var(--ligne); height: var(--ligne); border: 0; border-radius: var(--r-md); background: none; font-size: 18px; color: var(--ink); cursor: pointer; box-shadow: inset 0 0 0 1px var(--line-strong); }
.gb-annees__btn:hover:not(:disabled) { background: var(--surface-alt); }
.gb-annees__btn:disabled { color: var(--faint); cursor: default; }

/* Le bandeau du tableau de bord : l'actualité du loyer du mois, trois repères. */
.gb-bandeau { margin-bottom: var(--s6); padding: var(--s4) var(--s6); border-radius: var(--r-lg); background: var(--blue); color: #fff; }
.gb-bandeau__actu { display: flex; align-items: center; gap: var(--s1) var(--s4); flex-wrap: wrap; }
.gb-bandeau__actu span { flex-basis: 100%; font-size: 12px; line-height: 16px; font-weight: 600; color: rgba(255, 255, 255, .8); }
.gb-bandeau__actu p { flex: 1; min-width: 0; margin: 0; font-size: 18px; line-height: 24px; font-weight: 700; color: #fff; }
.gb-bandeau__btn { flex: none; height: var(--ligne); padding: 0 var(--s4); border: 0; border-radius: var(--r-md); background: #fff; color: var(--ink); font-family: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.gb-bandeau__btn:hover { background: var(--blue-tint); }
.gb-bandeau__reperes { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s8); margin: var(--s3) 0 0; padding-top: var(--s3); border-top: 1px solid rgba(255, 255, 255, .24); }
.gb-bandeau__reperes div { display: flex; flex-direction: column; }
.gb-bandeau__reperes dt { font-size: 12px; line-height: 16px; color: rgba(255, 255, 255, .8); }
.gb-bandeau__reperes dd { margin: 0; font-size: 13px; line-height: 20px; font-weight: 700; font-variant-numeric: tabular-nums; }
.gb-bandeau__reperes small { font-size: 12px; font-weight: 500; color: rgba(255, 255, 255, .8); }

/* Les cartes : fond blanc, filet, rayon 12, marge de 16. */
.gb-deux { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: var(--s6); margin-bottom: var(--s8); align-items: start; }
.gb-deux--inverse { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
.gb-carte { padding: var(--s4); border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
.gb-carte > h2 { margin-bottom: var(--s2); }
.gb-carte__tete { display: flex; align-items: center; gap: var(--s2); margin-bottom: var(--s2); }
.gb-carte__tete > a { margin-left: auto; font-weight: 600; color: var(--ink); }
.gb-section { margin-bottom: var(--s8); }
.gb-pile { display: flex; flex-direction: column; gap: var(--s4); }
.gb-calme { margin: var(--s1) 0 0; color: var(--muted); }
.gb-plus { display: inline-block; margin-top: var(--s2); }

/* Listes : une icône ou un avatar, deux lignes, une commande. */
.gb-taches, .gb-locataires { margin: 0; padding: 0; list-style: none; }
.gb-taches li, .gb-locataires li { display: flex; align-items: center; gap: var(--s3); min-height: var(--ligne); padding: var(--s2) 0; border-top: 1px solid var(--line); }
.gb-taches li:first-child, .gb-locataires li:first-child { border-top: 0; }
.gb-taches__texte, .gb-locataires__texte { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.gb-taches__texte b, .gb-locataires__texte b { font-weight: 600; color: var(--ink); }
.gb-taches__texte small, .gb-locataires__texte small { font-size: 12px; line-height: 16px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gb-taches li.is-urgent .gb-taches__texte b::after { content: ""; display: inline-block; width: 8px; height: 8px; margin-left: var(--s2); border-radius: 2px; background: var(--coral); vertical-align: 1px; }
.gb-montant { flex: none; color: var(--ink); font-weight: 700; font-variant-numeric: tabular-nums; }
.gb-initiales { display: inline-grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 999px; background: var(--blue-tint); color: var(--blue); font-size: 12px; font-weight: 700; }
.gb-initiales--grand { width: 48px; height: 48px; font-size: 15px; }
.gb-etat { flex: none; height: var(--ligne); padding: 0 var(--s3); border: 0; border-radius: var(--r-md); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-strong); font-family: inherit; font-size: 12px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.gb-etat:hover { box-shadow: inset 0 0 0 1px var(--ink); }
.gb-etat--ok { color: var(--positive); }
.gb-etat--ko { color: var(--negative); background: var(--coral-tint); box-shadow: none; }
.gb-etat--att { color: var(--muted); }

/* Les images des biens : photo ou vue aérienne, rayon 12. */
.gb-photo { position: relative; display: grid; place-items: center; overflow: hidden; border-radius: var(--r-lg); background: var(--surface-alt); }
.gb-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.gb-photo__point { position: absolute; left: 50%; top: 50%; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 999px; background: var(--blue); box-shadow: 0 0 0 2px #fff, 0 0 0 8px rgba(64, 90, 210, .24); }
.gb-photo--mini { width: 64px; height: 48px; flex: none; border-radius: var(--r-md); }
.gb-photo--puce { width: 40px; height: 32px; flex: none; border-radius: var(--r-sm); }
.gb-photo--mini .gb-photo__point, .gb-photo--puce .gb-photo__point { width: 8px; height: 8px; margin: -4px 0 0 -4px; box-shadow: 0 0 0 2px #fff; }
.gb-pastille { position: absolute; top: var(--s3); left: var(--s3); z-index: 1; padding: 0 var(--s2); border-radius: var(--r-sm); background: var(--surface); color: var(--ink); font-size: 12px; line-height: 24px; font-weight: 600; }
.gb-pastille--ko { color: var(--negative); }

/* Les biens en vignettes, l'image d'abord. */
.gb-vignettes { display: grid; grid-template-columns: repeat(auto-fill, minmax(224px, 1fr)); gap: var(--s6); }
.gb-vignette { position: relative; display: flex; flex-direction: column; gap: var(--s3); color: inherit; text-decoration: none; }
.gb-vignette .gb-photo { aspect-ratio: 3 / 2; }
.gb-vignette:hover .gb-vignette__texte > b { text-decoration: underline; text-underline-offset: 3px; }
.gb-vignette__texte { display: flex; flex-direction: column; }
.gb-vignette__texte > b { font-weight: 700; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gb-vignette__texte > small { font-size: 12px; line-height: 16px; color: var(--muted); }
.gb-vignette__chiffres { display: flex; gap: var(--s3); margin-top: var(--s1); font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.gb-vignette__chiffres small { font-size: 12px; font-weight: 500; color: var(--muted); }
/* Le tableau de bord : une ligne par bien (photo de 56 px, nom, état et
   loyer ; à droite le cash-flow et le rendement ; une flèche). */
.gb-liste-biens { display: flex; flex-direction: column; }
.gb-ligne-bien { display: flex; align-items: center; gap: var(--s3); padding: var(--s2) 0; border-top: 1px solid var(--line); color: inherit; text-decoration: none; }
.gb-ligne-bien:first-child { border-top: 0; padding-top: 0; }
.gb-ligne-bien:hover .gb-ligne-bien__texte b { text-decoration: underline; text-underline-offset: 3px; }
.gb-photo--ligne { flex: none; width: 56px; height: 56px; border-radius: var(--r-lg); }
.gb-photo--ligne .gb-photo__point { width: 8px; height: 8px; margin: -4px 0 0 -4px; box-shadow: 0 0 0 2px #fff; }
.gb-ligne-bien__texte { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.gb-ligne-bien__texte b { font-size: 13px; line-height: 20px; font-weight: 600; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gb-ligne-bien__texte small { font-size: 12px; line-height: 16px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gb-ligne-bien__texte small span { display: inline; }
.gb-ligne-bien__chiffres { flex: none; display: flex; flex-direction: column; align-items: flex-end; font-variant-numeric: tabular-nums; }
.gb-ligne-bien__chiffres b { font-size: 13px; line-height: 20px; font-weight: 700; }
.gb-ligne-bien__chiffres small { font-size: 12px; line-height: 16px; font-weight: 500; color: var(--muted); }
.gb-ligne-bien__fleche { flex: none; width: 16px; height: 16px; fill: none; stroke: var(--faint); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Documents rangés comme sur un ordinateur : des rangées (dossier ou bien,
   titre, précision, flèche) dans une carte, et un chemin pour remonter. */
/* « ‹ Étage d'avant », au-dessus du titre, comme le retour d'iOS. */
.gb-retour { display: inline-flex; align-items: center; gap: 2px; max-width: 100%; margin: 0 0 var(--s2) -6px; padding: var(--s1) var(--s2) var(--s1) 2px; border-radius: 999px;
  color: var(--blue); font-size: 13px; font-weight: 600; line-height: 20px; text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gb-retour:hover { background: var(--blue-tint); }
.gb-retour svg { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.gb-rangees { padding: var(--s1) var(--s4); margin-bottom: var(--s4); }
/* Documents : 24 px entre ce qui est rangé et la zone de dépôt, à tous les
   étages (liste de fichiers, dossier vide, dossiers d'un bien). */
.gb-carte + .gb-depot { margin-top: var(--s6); }
.gb-rangee {
  display: flex; align-items: center; gap: var(--s3); width: 100%; min-height: 56px; padding: var(--s2) 0;
  border: 0; border-top: 1px solid var(--line); background: none; font-family: inherit; text-align: left; color: inherit; cursor: pointer;
}
.gb-rangee:first-child { border-top: 0; }
.gb-rangee:hover .gb-rangee__texte b { text-decoration: underline; text-underline-offset: 3px; }
.gb-rangee__ico { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: var(--r-md); background: var(--surface-alt); }
.gb-rangee__ico .gb-ic { width: 22px; height: 22px; }
.gb-photo--rangee { width: 40px; height: 40px; border-radius: var(--r-md); }
.gb-rangee__texte { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.gb-rangee__texte b { font-size: 13px; line-height: 20px; font-weight: 600; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gb-rangee__texte small { font-size: 12px; line-height: 16px; color: var(--muted); }
.gb-rangee__fleche { flex: none; width: 16px; height: 16px; fill: none; stroke: var(--faint); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
/* Un document : la ligne d'un dossier (pastille, nom, date et poids) ; à
   droite, télécharger et supprimer en boutons ronds de 36 px. */
.gb-doc { display: flex; align-items: center; gap: var(--s1); border-top: 1px solid var(--line); }
.gb-doc:first-child { border-top: 0; }
.gb-doc__ouvrir {
  flex: 1; min-width: 0; display: flex; align-items: center; gap: var(--s3); min-height: 56px; padding: var(--s2) 0;
  border: 0; background: none; font-family: inherit; text-align: left; color: inherit; cursor: pointer;
}
.gb-doc__ouvrir:hover .gb-rangee__texte b { text-decoration: underline; text-underline-offset: 3px; }
.gb-doc__ouvrir .gb-rangee__texte small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gb-doc__action { flex: none; display: grid; place-items: center; width: var(--ligne); height: var(--ligne); border: 0; border-radius: 999px; background: none; color: var(--muted); cursor: pointer; }
.gb-doc__action svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.gb-doc__action:hover { background: var(--blue-tint); color: var(--blue); }
.gb-doc__action--sup:hover { background: var(--coral-tint); color: var(--negative); }

/* La fiche d'un bien : l'image à gauche, l'essentiel à droite. */
/* La photo dans la fenêtre « Modifier le bien » : l'aperçu, le bouton, une
   ligne d'aide. */
.gb-photo-champ > span { font-size: 12px; line-height: 16px; font-weight: 600; color: var(--muted); }
.gb-photo-champ__ligne { display: flex; align-items: center; gap: var(--s4); margin-top: var(--s1); }
.gb-photo--champ { width: 112px; height: 76px; flex: none; border-radius: var(--r-md); }
.gb-photo-champ__texte { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s1); min-width: 0; }
.gb-photo-champ__btn { height: var(--ligne); cursor: pointer; }
.gb-photo-champ__texte small { font-size: 12px; line-height: 16px; color: var(--muted); }
/* La fiche d'un bien : la photo, et à côté (dessous au téléphone) un bandeau
   bleu vif comme celui du locataire, avec l'essentiel. */
.gb-fiche { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s3); margin-bottom: var(--s6); }
.gb-photo--fiche { min-height: 280px; border-radius: var(--r-lg); }
.gb-fiche__bandeau { display: flex; align-items: center; gap: var(--s3); min-width: 0; padding: var(--s4); border-radius: var(--r-lg); background: var(--blue); color: rgba(255, 255, 255, .82); }
.gb-fiche__adresse { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.gb-fiche__adresse b, .gb-fiche__adresse span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gb-fiche__bandeau b { font-size: 15px; line-height: 22px; font-weight: 700; color: #fff; }
.gb-fiche__bandeau-actions { flex: none; display: flex; gap: var(--s2); }
.gb-fiche__bandeau-actions button, .gb-fiche__bandeau-actions label {
  display: inline-flex; align-items: center; height: 32px; padding: 0 var(--s3); border: 0; border-radius: 999px;
  background: rgba(255, 255, 255, .16); color: #fff; font-family: inherit; font-size: 13px; font-weight: 600; cursor: pointer;
}
.gb-fiche__bandeau-actions button:hover, .gb-fiche__bandeau-actions label:hover { background: rgba(255, 255, 255, .26); }
/* « Supprimer » : du texte seul, sans cadre de bouton, à gauche de « Modifier ». */
.gb-fiche__bandeau-actions .gb-fiche__lien { padding: 0 var(--s2); background: none; color: rgba(255, 255, 255, .82); font-weight: 500; }
.gb-fiche__bandeau-actions .gb-fiche__lien:hover { background: none; color: #fff; text-decoration: underline; text-underline-offset: 3px; }
/* L'estimation, en pleine largeur sous la fiche : prix bas, estimé, haut
   (et leur prix au m²), la jauge, la fiabilité, le bien face au quartier,
   ce qui fait le prix, les ventes de référence. */
.gb-estim { margin-bottom: var(--s6); }
.gb-estim__tete { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s3); margin-bottom: var(--s4); }
.gb-estim__tete small { font-size: 12px; line-height: 16px; color: var(--muted); }
/* Comme MeilleursAgents : le type du bien en icône à gauche, puis deux
   valeurs en grand (vente, loyer), leur fourchette dessous, l'indice de
   confiance en ronds bleus. Pas de fond ni de cadre. */
.gb-estim__ma { display: grid; grid-template-columns: 88px minmax(0, 1fr) minmax(0, 1fr); gap: var(--s4) var(--s6); align-items: start; padding: var(--s2) 0 var(--s4); }
.gb-estim__type { align-self: center; display: flex; flex-direction: column; align-items: center; gap: var(--s2); text-align: center; }
.gb-estim__ico { display: block; width: 44px; height: 44px; fill: none; stroke: var(--ink); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.gb-estim__type span { font-size: 13px; line-height: 20px; font-weight: 600; color: var(--ink); }
.gb-estim__val { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.gb-estim__val > span { font-size: 13px; line-height: 20px; color: var(--text); }
.gb-estim__val b { font-size: 28px; line-height: 36px; font-weight: 700; letter-spacing: -.02em; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.gb-estim__val small { font-size: 13px; line-height: 20px; color: var(--text); font-variant-numeric: tabular-nums; }
.gb-estim__val small + small { font-size: 12px; line-height: 16px; color: var(--muted); }
.gb-estim__conf { display: flex; align-items: center; gap: var(--s2); max-width: none; margin: var(--s2) 0 0; font-size: 13px; line-height: 20px; color: var(--muted); }
/* L'indice : des carrés comme le point du logo Mandak (coins à 29 %). */
.gb-estim__points { display: inline-flex; gap: 4px; }
.gb-estim__points i { width: 9px; height: 9px; border-radius: 2.6px; background: var(--line-strong); }
.gb-estim__points i.is-plein { background: var(--blue); }
.gb-court { display: none; }
@media (max-width: 600px) {
  /* Au téléphone : le type en petit sur une ligne, puis la vente et le
     loyer côte à côte, séparés d'un filet ; « Confiance » tout court. */
  .gb-estim__ma { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s3) 0; padding: 0 0 var(--s2); }
  .gb-estim__type { grid-column: 1 / -1; align-self: start; flex-direction: row; gap: var(--s2); }
  .gb-estim__ico { width: 22px; height: 22px; }
  .gb-estim__val + .gb-estim__val { padding-left: var(--s4); border-left: 1px solid var(--line); }
  .gb-estim__val:nth-child(2) { padding-right: var(--s4); }
  .gb-estim__val > span { font-size: 12px; line-height: 16px; }
  .gb-estim__val b { font-size: 22px; line-height: 30px; }
  .gb-estim__val small { font-size: 12px; line-height: 16px; }
  .gb-estim__conf { margin-top: var(--s1); font-size: 12px; line-height: 16px; }
  .gb-long { display: none; }
  .gb-court { display: inline; }
  .gb-estim__tete { flex-wrap: wrap; row-gap: 0; }
}
.gb-estim dd small { font-weight: 500; }
.gb-estim__bloc { margin-top: var(--s4); padding-top: var(--s4); border-top: 1px solid var(--line); }
.gb-estim__label { display: block; margin-bottom: var(--s2); font-size: 12px; line-height: 16px; font-weight: 600; color: var(--muted); }
.gb-estim__ventes { margin: 0; padding: 0; list-style: none; }
.gb-estim__ventes li { display: flex; align-items: center; gap: var(--s3); min-height: 48px; padding: var(--s1) 0; border-top: 1px solid var(--line); }
.gb-estim__ventes li:first-child { border-top: 0; }
.gb-estim__ventes i { flex: none; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 11px; font-style: normal; font-weight: 700; }
.gb-estim__vente { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.gb-estim__vente b, .gb-estim__prixv b { font-size: 13px; line-height: 20px; font-weight: 600; color: var(--ink); }
.gb-estim__vente b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gb-estim__vente small, .gb-estim__prixv small { font-size: 12px; line-height: 16px; color: var(--muted); }
/* La courbe de l'estimation (courbeEstimation) : 140 px de haut, deux
   lignes de repère discrètes (plus haut, plus bas), le trait bleu de 2 px,
   des points de 8 px cerclés de blanc, la valeur au survol ou au focus. */
.gb-estim__attente { max-width: none; margin: 0; font-size: 13px; line-height: 20px; color: var(--muted); }
.gb-estim__tendance { display: flex; align-items: baseline; flex-wrap: wrap; gap: var(--s2); max-width: none; margin: 0 0 var(--s3); font-size: 13px; line-height: 20px; color: var(--muted); }
.gb-estim__tendance b { font-size: 15px; color: var(--ink); font-variant-numeric: tabular-nums; }
.gb-estim__tendance span { font-weight: 600; }
.gb-courbe { position: relative; height: 140px; margin: 0 72px 0 var(--s2); }
.gb-courbe svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.gb-courbe path { fill: none; stroke: var(--blue); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.gb-courbe__grille { position: absolute; left: calc(-1 * var(--s2)); right: -72px; border-top: 1px dashed var(--line); }
.gb-courbe__grille i { position: absolute; right: 0; top: -8px; padding-left: var(--s1); background: var(--surface); font-size: 11px; line-height: 14px; font-style: normal; color: var(--muted); font-variant-numeric: tabular-nums; }
.gb-courbe__point { position: absolute; width: 24px; height: 24px; margin: -12px 0 0 -12px; padding: 0; border: 0; background: none; cursor: default; }
.gb-courbe__point::before { content: ""; position: absolute; left: 8px; top: 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 2px var(--surface); }
.gb-courbe__bulle { position: absolute; bottom: calc(100% + 4px); left: 50%; z-index: 2; display: none; flex-direction: column; padding: var(--s1) var(--s2); border-radius: var(--r-sm); background: var(--ink); color: rgba(255, 255, 255, .8); font-size: 12px; line-height: 16px; white-space: nowrap; transform: translateX(-50%); pointer-events: none; }
.gb-courbe__bulle b { color: #fff; font-variant-numeric: tabular-nums; }
.gb-courbe__point:hover .gb-courbe__bulle, .gb-courbe__point:focus-visible .gb-courbe__bulle, .gb-courbe__point:focus .gb-courbe__bulle { display: flex; }
.gb-courbe__point:first-of-type .gb-courbe__bulle { left: 0; transform: none; }
.gb-courbe__point:last-of-type .gb-courbe__bulle { left: auto; right: 0; transform: none; }
.gb-courbe__mois { display: flex; justify-content: space-between; margin: var(--s2) 72px 0 0; font-size: 12px; line-height: 16px; color: var(--muted); }
.gb-estim__vente small { display: flex; align-items: center; gap: var(--s2); }
.gb-estim__dist { flex: none; padding: 0 6px; border-radius: var(--r-sm); background: var(--blue-tint); color: var(--blue); font-size: 12px; line-height: 18px; font-style: normal; font-weight: 600; }
.gb-estim__prixv { flex: none; display: flex; flex-direction: column; align-items: flex-end; font-variant-numeric: tabular-nums; }
.gb-estim__note { max-width: none; margin: var(--s4) 0 0; font-size: 12px; line-height: 16px; color: var(--muted); }
/* La fiche d'un bien sans cadres (Nicolas : « pas très beau ») : les
   sections tiennent par leur titre et l'espace entre elles, comme les
   Réglages d'iPhone ; seuls les bandeaux bleus gardent un fond. */
.gb-fiche-page .gb-carte { padding: 0; border: 0; border-radius: 0; background: none; }
.gb-fiche-page .gb-deux { margin-bottom: var(--s8); }
.gb-fiche-page .gb-estim, .gb-fiche-page .gb-autour { margin-bottom: var(--s8); }
.gb-fiche-page .gb-estim__tete { margin-bottom: var(--s3); }
/* Autour du bien : des vignettes d'annonces, en rang qui défile au doigt
   sur téléphone, sur trois colonnes sur ordinateur. */
.gb-autour { margin-bottom: var(--s6); }
.gb-autour h2 { margin-bottom: var(--s3) !important; }
.gb-autour__rang { display: flex; gap: var(--s3); overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; padding-bottom: var(--s1); scrollbar-width: none; }
.gb-autour__rang::-webkit-scrollbar { display: none; }
.gb-autour__rang .gb-annonce { flex: 0 0 220px; scroll-snap-align: start; }
.gb-annonce { display: flex; flex-direction: column; gap: 2px; min-width: 0; color: inherit; text-decoration: none; }
.gb-annonce__photo { position: relative; display: block; aspect-ratio: 4 / 3; margin-bottom: var(--s2); border-radius: var(--r-md); overflow: hidden; background: var(--surface-alt); }
.gb-annonce__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.gb-annonce b { font-size: 13px; line-height: 20px; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.gb-annonce b small { font-size: 12px; font-weight: 500; color: var(--muted); }
.gb-annonce > span:not(.gb-annonce__photo) { font-size: 13px; line-height: 20px; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gb-annonce > small { font-size: 12px; line-height: 16px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gb-annonce__lieu { display: flex; align-items: center; gap: var(--s2); min-width: 0; }
.gb-annonce__lieu > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gb-annonce__lieu .gb-estim__dist { flex: none; }
.gb-annonce:hover > span:not(.gb-annonce__photo) { text-decoration: underline; text-underline-offset: 3px; }
.gb-annonce--vide i { display: block; height: 10px; margin-top: 6px; border-radius: 5px; background: var(--surface-alt); width: 70%; }
.gb-annonce--vide i + i { width: 45%; }
@media (max-width: 600px) {
  /* Au téléphone, la bande va d'un bord à l'autre de l'écran. */
  .gb-autour__rang { margin: 0 calc(-1 * var(--s4)); padding: 0 var(--s4) var(--s1); scroll-padding: 0 var(--s4); }
  .gb-autour__rang .gb-annonce { flex-basis: 62%; }
}
/* Les équipements du formulaire : cases sur deux ou trois colonnes. */
.gb-choix.gb-choix--grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: var(--s2) var(--s4); }
.gb-choix.gb-choix--grille legend { grid-column: 1 / -1; }
.gb-actions { display: flex; gap: var(--s2); flex-wrap: wrap; align-items: center; }
.gb-photo-btn { cursor: pointer; }

/* Les fiches en définitions : lignes de 36 px. */
.gb-dl { display: grid; grid-template-columns: minmax(0, 1fr); margin: 0; }
.gb-dl div { display: flex; justify-content: space-between; align-items: center; gap: var(--s3); min-height: var(--ligne); border-bottom: 1px solid var(--line); }
.gb-dl div:last-child { border-bottom: 0; }
.gb-dl dt { color: var(--muted); }
.gb-dl dd { margin: 0; text-align: right; color: var(--ink); font-weight: 600; }
.gb-dpe { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: var(--r-sm); color: #fff; font-size: 12px; line-height: 1; font-weight: 700; vertical-align: middle; }
.gb-dpe--A { background: #00845a; } .gb-dpe--B { background: #2aa14b; } .gb-dpe--C { background: #93c548; }
.gb-dpe--D { background: #e6c62f; color: var(--ink); } .gb-dpe--E { background: #ef9e37; } .gb-dpe--F { background: #e26a2c; } .gb-dpe--G { background: #c8332b; }

/* L'en-tête d'une carte de bien : miniature, nom, actions. */
.gb-carte-bien__tete { display: flex; align-items: center; gap: var(--s3); margin-bottom: var(--s4); }
.gb-carte-bien__nom { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.gb-carte-bien__nom b { font-weight: 700; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gb-carte-bien__nom small { font-size: 12px; line-height: 16px; color: var(--muted); }
.gb-qui { display: inline-flex; align-items: center; gap: var(--s2); font-size: 12px; color: var(--muted); }
.gb-qui .gb-initiales { width: 24px; height: 24px; }

/* Le bail : le locataire à gauche, le bail à droite, la révision dessous. */
.gb-bail { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: var(--s6); }
/* Le locataire : un bloc bleu vif (demande de Nicolas), texte blanc. */
.gb-bail__qui { align-self: start; display: flex; flex-direction: column; gap: 2px; min-width: 0; padding: var(--s4); border-radius: var(--r-lg); background: var(--blue); color: rgba(255, 255, 255, .82); }
.gb-bail__qui b { font-size: 15px; line-height: 22px; font-weight: 700; color: #fff; }
.gb-bail__contacts { display: flex; flex-direction: column; margin-top: var(--s2); }
.gb-bail__contacts { gap: var(--s1); }
.gb-bail__qui a { display: flex; align-items: center; gap: var(--s2); min-width: 0; color: #fff; text-decoration: none; }
.gb-bail__qui a span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gb-bail__qui a:hover span { text-decoration: underline; text-underline-offset: 3px; }
.gb-bail__qui a svg { flex: none; width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.gb-bail__qui small { margin-top: var(--s2); font-size: 12px; line-height: 16px; }
.gb-bail__completer { align-self: flex-start; margin-top: var(--s2); padding: 0; border: 0; background: none; font-family: inherit; font-size: 13px; font-weight: 600; color: #fff; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.gb-vacant, .gb-vide-carte { display: flex; align-items: center; gap: var(--s3); }
.gb-vacant div, .gb-vide-carte div { flex: 1; display: flex; flex-direction: column; }
.gb-vacant b, .gb-vide-carte b { color: var(--ink); }
.gb-vacant small, .gb-vide-carte small { font-size: 12px; line-height: 16px; color: var(--muted); }
/* Une seule ligne : l'icône dans un carré blanc de 36, le texte qui prend
   la place, puis le nouveau loyer et le bouton, à la hauteur des lignes (36). */
.gb-revision { display: flex; align-items: center; gap: var(--s3); margin-top: var(--s4); padding: var(--s3); border-radius: var(--r-md); background: var(--blue-tint); }
.gb-revision > .gb-ic { box-sizing: border-box; width: var(--ligne); height: var(--ligne); padding: calc((var(--ligne) - var(--icone)) / 2); border-radius: var(--r-md); background: var(--surface); }
.gb-revision__texte { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; }
.gb-revision__res { flex: none; }
.gb-revision .gb-btn { flex: none; }
.gb-revision__texte b { color: var(--ink); }
.gb-revision__texte small { font-size: 12px; line-height: 16px; color: var(--text); }
.gb-revision__texte a { color: var(--ink); }
.gb-revision__res { font-variant-numeric: tabular-nums; }
.gb-revision__res b { color: var(--ink); }
.gb-anciens { margin-top: var(--s4); padding-top: var(--s3); border-top: 1px solid var(--line); }
.gb-anciens summary { cursor: pointer; font-size: 12px; line-height: 16px; font-weight: 600; color: var(--muted); }
.gb-anciens ul { margin: var(--s2) 0 0; padding: 0; list-style: none; }
.gb-anciens li { display: flex; align-items: center; gap: var(--s2); min-height: var(--ligne); }
.gb-anciens li > span:nth-child(2) { flex: 1; display: flex; flex-direction: column; color: var(--ink); font-weight: 600; }
.gb-anciens small { font-size: 12px; line-height: 16px; font-weight: 500; color: var(--muted); }

/* Loyers : les repères de l'année, puis douze cases par bien. */
.gb-recap { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s8); margin-bottom: var(--s4); }
.gb-recap div { display: flex; flex-direction: column; }
.gb-recap span { font-size: 12px; line-height: 16px; color: var(--muted); }
.gb-recap b { font-size: 18px; line-height: 24px; color: var(--ink); font-variant-numeric: tabular-nums; }
.gb-grille-mois { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--s2); }
.gb-mois { display: flex; flex-direction: column; padding: var(--s2); border: 0; border-radius: var(--r-md); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); font-family: inherit; text-align: left; cursor: pointer; }
.gb-mois b { font-size: 12px; line-height: 16px; color: var(--ink); }
.gb-mois span { font-size: 12px; line-height: 16px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: clip; }
.gb-mois:hover:not(:disabled) { box-shadow: inset 0 0 0 1px var(--ink); }
.gb-mois:disabled { opacity: .5; cursor: default; }
.gb-mois.is-futur { background: var(--surface-alt); box-shadow: none; }
.gb-mois.is-paye span { color: var(--positive); font-weight: 600; }
.gb-mois.is-partiel, .gb-mois.is-impaye { background: var(--coral-tint); box-shadow: none; }
.gb-mois.is-partiel span, .gb-mois.is-impaye span { color: var(--negative); font-weight: 600; }
.gb-defile { overflow-x: auto; }
.gb-table { width: 100%; border-collapse: collapse; }
.gb-table th { height: var(--ligne); padding: 0 var(--s2) 0 0; text-align: left; font-size: 12px; line-height: 16px; font-weight: 600; color: var(--muted); border-bottom: 1px solid var(--line); white-space: nowrap; }
.gb-table td { height: var(--ligne); padding: var(--s1) var(--s2) var(--s1) 0; border-bottom: 1px solid var(--line); vertical-align: middle; }
.gb-table td small { display: block; font-size: 12px; line-height: 16px; color: var(--muted); }
.gb-table td b { color: var(--ink); }
.gb-table--loyers th:not(:first-child) { text-align: center; padding: 0 var(--s1); }
.gb-table--loyers td:first-child { min-width: 224px; padding-right: var(--s3); }
.gb-ligne-bien { display: flex; align-items: center; gap: var(--s3); }
.gb-ligne-bien span { display: flex; flex-direction: column; min-width: 0; }
.gb-case { display: grid; place-items: center; width: 32px; height: 28px; margin: 0 auto; border: 0; border-radius: var(--r-sm); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); font-family: inherit; font-size: 12px; font-weight: 700; color: var(--muted); cursor: pointer; }
.gb-case:hover:not(:disabled) { box-shadow: inset 0 0 0 1px var(--ink); }
.gb-case:disabled { opacity: .4; cursor: default; }
.gb-case.is-futur { background: var(--surface-alt); box-shadow: none; }
.gb-case.is-paye { color: var(--positive); }
.gb-case.is-partiel, .gb-case.is-impaye { background: var(--coral-tint); box-shadow: none; color: var(--negative); }

/* Dépenses : la saisie, la liste et la répartition. */
.gb-saisie { display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--s3); margin-bottom: var(--s6); }
.gb-saisie label { display: flex; flex-direction: column; gap: var(--s1); font-size: 12px; line-height: 16px; font-weight: 600; color: var(--muted); }
.gb-saisie .gb-large { flex: 1 1 160px; }
.gb-saisie .gb-large input { width: 100%; }
.gb-unite { position: relative; display: flex; }
.gb-unite input { width: 120px; padding-right: var(--s8); }
.gb-unite i { position: absolute; right: var(--s3); top: 50%; transform: translateY(-50%); font-style: normal; color: var(--muted); }
.gb-total { margin: 0 0 var(--s3); display: flex; flex-direction: column; font-size: 18px; line-height: 24px; font-weight: 700; color: var(--ink); }
.gb-total small { font-size: 12px; line-height: 16px; font-weight: 500; color: var(--muted); }
.gb-repartition { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: var(--s3); }
.gb-repartition li { display: grid; grid-template-columns: 1fr auto; gap: var(--s1) var(--s2); }
.gb-repartition b { color: var(--ink); font-variant-numeric: tabular-nums; }
.gb-repartition > li > i { grid-column: 1 / -1; display: block; height: 8px; border-radius: var(--r-sm); background: var(--surface-alt); overflow: hidden; }
.gb-repartition > li > i > i { display: block; height: 100%; border-radius: var(--r-sm); background: var(--blue-soft); }

/* Documents : la zone de dépôt, puis un dossier par catégorie. */
.gb-depot { display: flex; flex-wrap: wrap; gap: var(--s3); margin-bottom: var(--s6); }
.gb-depot__zone { position: relative; flex: 1 1 320px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--s1); min-height: 120px; padding: var(--s4); border: 1px dashed var(--line-strong); border-radius: var(--r-lg); text-align: center; cursor: pointer; }
.gb-depot__zone:hover, .gb-depot__zone.is-survol { border-color: var(--blue); background: var(--blue-tint); }
.gb-depot__zone.is-pret { border-style: solid; border-color: var(--blue); }
.gb-depot__zone b { color: var(--ink); }
.gb-depot__zone small { font-size: 12px; line-height: 16px; color: var(--muted); text-wrap: balance; }
/* Deux lignes voulues : l'action, puis les formats (sinon un mot restait seul
   sur une troisième ligne au téléphone). */
.gb-depot__zone small + small { margin-top: -2px; }
.gb-depot__zone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.gb-depot__choix { font-size: 12px; line-height: 16px; font-weight: 600; color: var(--blue); }
.gb-depot__options { flex: 1 1 100%; min-width: 0; display: flex; justify-content: flex-end; gap: var(--s2); }
.gb-depot__options .gb-liste { flex: 0 1 240px; min-width: 0; }
.gb-depot__options .gb-btn { flex: none; }
/* Une liste au dessin du site : flèche fine à droite, et à la mise au point
   un filet bleu et un halo bleu clair, au lieu du double cadre du navigateur.
   Toutes les listes de la gestion la suivent (filtre des biens, dépenses). */
.gb-liste, .gb-select, .gb-saisie select {
  height: var(--ligne); padding: 0 32px 0 var(--s3); border: 1px solid var(--line-strong); border-radius: var(--r-md);
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236c6a94' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E") no-repeat right 10px center / 16px;
  -webkit-appearance: none; appearance: none; font-family: inherit; font-size: 13px; font-weight: 500; color: var(--ink);
  text-overflow: ellipsis; cursor: pointer;
}
.gb-liste:hover, .gb-select:hover, .gb-saisie select:hover { border-color: var(--faint); }
.gb-liste:focus, .gb-liste:focus-visible, .gb-select:focus, .gb-select:focus-visible, .gb-saisie select:focus, .gb-saisie select:focus-visible { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-tint); }
.gb-dossiers { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: var(--s6); align-items: start; }

.gb-vide { padding: var(--s6) 0; }
.gb-vide b { display: block; margin-bottom: var(--s1); font-size: 15px; line-height: 22px; color: var(--ink); }
.gb-vide p { margin: 0 0 var(--s4); max-width: 560px; color: var(--muted); }

/* Les fenêtres (bien, bail, loyer d'un mois), à l'échelle de l'application. */
.gb .es-dialog { font-size: 13px; line-height: 20px; }
.gb .es-dialog__tete { padding: var(--s4) var(--s6); }
.gb .es-dialog__tete h2 { font-size: 15px; line-height: 22px; }
.gb .es-dialog__corps { padding: var(--s4) var(--s6) var(--s6); }
.gb .es-form { gap: var(--s3) var(--s4); }
.gb .es-form h3 { margin: var(--s2) 0 0; font-size: 15px; line-height: 22px; color: var(--ink); }
.gb .es-champ { gap: var(--s1); font-size: 12px; line-height: 16px; font-weight: 600; color: var(--muted); }
.gb .es-champ small { font-size: 12px; font-weight: 500; }
.gb .es-champ input, .gb .es-champ select { height: var(--ligne); padding: 0 var(--s3); border-color: var(--line-strong); border-radius: var(--r-md); font-size: 13px; color: var(--ink); }
/* La liste ajoute 4px devant son texte : on les retire pour l'aligner sur les champs. */
.gb .es-champ select { padding-left: var(--s2); }
.gb .es-unite input { padding-right: 72px; }
.gb .es-unite span { right: var(--s3); font-size: 12px; }
.gb .es-actions { margin-top: var(--s2); }
.gb .es-actions { gap: var(--s2); }
.gb .es-dialog .es-btn { height: var(--ligne); padding: 0 var(--s4); border-radius: var(--r-md); background: var(--blue); color: #fff; font-size: 13px; line-height: 20px; font-weight: 600; }
.gb .es-dialog .es-btn:hover, .gb-btn:not(.gb-btn--clair):not(:disabled):hover { background: var(--ink); }
.gb .es-dialog .es-btn--lien { padding: 0 var(--s2); background: none; color: var(--text); }
.gb .es-dialog .es-btn--lien:hover { background: none; color: var(--ink); }
.gb .es-fermer { border-radius: var(--r-md); color: var(--muted); }
.gb .es-fermer:hover { background: var(--surface-alt); color: var(--ink); }
.gb .es-dialog .es-gris, .gb .es-champ small, .gb .es-unite span { color: var(--muted); }
.gb .es-dialog .es-petit { font-size: 12px; line-height: 16px; }
.gb-petit-dialog { max-width: 480px; }
.gb-choix { display: flex; flex-direction: column; gap: var(--s2); margin: 0; padding: 0; border: 0; }
.gb-choix legend { margin-bottom: var(--s2); font-weight: 600; color: var(--ink); }
.gb-choix label { display: flex; align-items: center; gap: var(--s2); color: var(--text); cursor: pointer; }
.gb-docs { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2) var(--s4); padding-top: var(--s3); border-top: 1px solid var(--line); }
.gb-docs:empty { display: none; }

@media (max-width: 900px) {
  .gb-deux, .gb-deux--inverse, .gb-fiche, .gb-bail { grid-template-columns: minmax(0, 1fr); }
  .gb-photo--fiche { min-height: 200px; }
}
@media (max-width: 720px) {
  .gb-grille-mois { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
/* Sur un iPhone, six cases de 45 px coupaient « Impayé » : trois rangées de quatre. */
@media (max-width: 440px) {
  .gb-grille-mois { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .gb-carte-bien__tete { flex-wrap: wrap; }
  .gb-carte-bien__tete > .gb-actions { flex-basis: 100%; }
  .gb-carte-bien__nom b { white-space: normal; }
  .gb-mois { padding: var(--s2) var(--s1); }
  .gb-revision { flex-wrap: wrap; }
  .gb-revision__texte { flex-basis: calc(100% - var(--ligne) - var(--s3)); }
  .gb-revision__res { flex: 1 1 0; padding-left: calc(var(--ligne) + var(--s3)); }
  /* La saisie d'une dépense : deux champs par ligne, de même largeur. */
  .gb-saisie > label { flex: 1 1 calc(50% - var(--s2)); min-width: 0; }
  .gb-saisie > label.gb-large { flex-basis: 100%; }
  .gb-saisie input, .gb-saisie select, .gb-saisie .gb-unite { width: 100%; }
  /* La ligne de dépôt prend toute la largeur. Quand il faut aussi choisir
     le bien, sa liste prend une ligne entière, au-dessus du dossier. */
  .gb-depot__options { flex-wrap: wrap; }
  .gb-depot__options .gb-liste { flex: 1 1 0; }
  .gb-depot__options .gb-liste[name="bien"] { flex-basis: 100%; }
}

/* Sur iPhone et iPad, style.css passe les champs à 16px (sinon la page
   zoome) ; les listes de la gestion suivent, pour qu'un formulaire garde une taille. */
@supports (-webkit-touch-callout: none) {
  .gb select, .gb .es-champ select { font-size: 16px; }
}

/* ── Le lecteur de documents (js/patrimoine.js, ouvrirLecteur) ──
   Une fenêtre posée sur la page, pas une nouvelle page : coins de 16 px, voile
   marine léger derrière. En tête, sur blanc : le nom à gauche, l'action
   (télécharger, imprimer) et la croix à droite. Dessous, sur le gris très
   clair de la marque, le document en feuilles blanches aux coins de 8 px. */
.gb-lecteur {
  position: fixed; inset: 0; margin: auto; padding: 0; border: 0; border-radius: 16px; overflow: hidden;
  width: min(880px, calc(100vw - 48px)); max-width: none;
  height: calc(100vh - 48px); height: calc(100dvh - 48px); max-height: none;
  background: var(--surface); box-shadow: 0 24px 64px rgba(4, 2, 77, .18);
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
}
.gb-lecteur[open] { display: flex; flex-direction: column; }
.gb-lecteur::backdrop { background: rgba(4, 2, 77, .32); }
.gb-lecteur__haut {
  flex: none; display: flex; align-items: center; gap: var(--s1); height: 56px; padding: 0 var(--s2) 0 var(--s6);
  border-bottom: 1px solid var(--line);
}
.gb-lecteur__titre { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; line-height: 20px; font-weight: 600; color: var(--ink); }
.gb-lecteur__action { flex: none; display: flex; }
.gb-lecteur__bouton {
  display: inline-flex; align-items: center; gap: 6px; height: var(--ligne); padding: 0 var(--s3);
  border: 0; border-radius: 999px; background: none; color: var(--blue);
  font-family: inherit; font-size: 13px; font-weight: 600; line-height: 20px; cursor: pointer;
}
.gb-lecteur__fermer { flex: none; display: grid; place-items: center; width: var(--ligne); height: var(--ligne); border: 0; border-radius: 999px; background: none; color: var(--ink); cursor: pointer; }
.gb-lecteur__bouton:hover { background: var(--blue-tint); }
.gb-lecteur__fermer:hover { background: var(--surface-alt); }
/* Les deux icônes de l'en-tête : même taille, même trait (demande de Nicolas). */
.gb-lecteur__bouton svg, .gb-lecteur__fermer svg { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.gb-lecteur__scene {
  flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center;
  padding: var(--s4); background: var(--surface-alt); outline: none;
}
/* Une feuille (quittance, texte, PDF en repli) ou les pages d'un PDF. */
.gb-lecteur__page, .gb-lecteur__feuille {
  border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface);
  box-shadow: 0 1px 2px rgba(4, 2, 77, .04);
}
.gb-lecteur__page { width: 100%; height: 100%; overflow: hidden; }
.gb-lecteur__pages {
  width: 100%; height: 100%; overflow-y: auto; -webkit-overflow-scrolling: touch;
  display: flex; flex-direction: column; align-items: center; gap: var(--s3);
}
.gb-lecteur__feuille { display: block; flex: none; max-width: 100%; }
.gb-lecteur__image { display: block; max-width: 100%; max-height: 100%; border-radius: var(--r-md); object-fit: contain; }
.gb-lecteur__sans { display: flex; flex-direction: column; align-items: center; gap: var(--s1); text-align: center; color: var(--muted); }
.gb-lecteur__sans b { margin-top: var(--s2); color: var(--ink); }
.gb-lecteur__sans .gb-btn { margin-top: var(--s3); }
/* Sur téléphone : la fenêtre à 8 px des bords (encoche comprise), l'action
   en icône seule. */
@media (max-width: 600px) {
  .gb-lecteur {
    width: calc(100vw - 16px);
    height: calc(100vh - 16px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
    height: calc(100dvh - 16px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
  }
  .gb-lecteur__haut { padding-left: var(--s4); }
  .gb-lecteur__bouton { width: var(--ligne); padding: 0; justify-content: center; }
  .gb-lecteur__bouton span { display: none; }
  .gb-lecteur__scene { padding: var(--s2); }
}

/* ── La fenêtre d'alerte (patrimoine.html, #esSupprimer) ──
   Blanche, une pastille corail et sa corbeille, la liste à puces carrées
   corail (le point du logo), le mot à écrire pour confirmer, et le bouton
   au corail du logo, texte blanc en gras (choix de Nicolas : « notre
   rouge », c'est le corail du logo). */
.gb .es-dialog.gb-fenetre-alerte { position: relative; width: min(440px, calc(100vw - 32px)); border-radius: 20px; background: #fff; color: var(--text); box-shadow: 0 24px 64px rgba(4, 2, 77, .22); }
.gb .es-dialog.gb-fenetre-alerte::backdrop { background: rgba(4, 2, 77, .32); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.gb-supprimer__fermer { position: absolute; top: var(--s3); right: var(--s3); }
.gb-supprimer__fermer:hover { background: var(--surface-alt); }
.gb-supprimer { display: flex; flex-direction: column; padding: var(--s8) var(--s6) var(--s6); }
.gb-supprimer__ico { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: var(--s4); border-radius: 15px; background: var(--coral); box-shadow: 0 8px 20px rgba(237, 121, 123, .4); }
.gb-supprimer__ico svg { width: 26px; height: 26px; fill: none; stroke: #fff; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.gb .gb-supprimer h2 { margin: 0 0 var(--s2); font-size: 20px; line-height: 28px; font-weight: 700; color: var(--ink); }
.gb-supprimer p { max-width: none; margin: 0 0 var(--s3); color: var(--text); }
.gb-supprimer p b { color: var(--ink); }
.gb-supprimer ul { margin: 0 0 var(--s4); padding: var(--s3) var(--s4); list-style: none; border-radius: var(--r-md); background: var(--coral-tint); }
.gb-supprimer li { position: relative; padding: 3px 0 3px var(--s4); color: var(--text); }
.gb-supprimer li::before { content: ""; position: absolute; left: 0; top: 10px; width: 7px; height: 7px; border-radius: 2px; background: var(--coral); }
.gb-supprimer .gb-supprimer__note { font-size: 12px; line-height: 16px; font-weight: 600; color: var(--negative); }
.gb-supprimer__erreur:empty { display: none; }
.gb-supprimer .gb-supprimer__erreur { padding: var(--s2) var(--s3); border-radius: var(--r-md); background: var(--coral-tint); color: var(--negative); }
.gb-supprimer__actions { display: flex; flex-direction: column; gap: var(--s2); margin-top: var(--s2); }
.gb .es-dialog .gb-supprimer__actions .es-btn { width: 100%; height: 44px; justify-content: center; border-radius: 999px; }
.gb .es-dialog .gb-supprimer__actions .es-btn.gb-btn-danger { background: var(--coral); border-color: var(--coral); color: #fff; font-size: 14px; font-weight: 700; }
.gb .es-dialog .gb-supprimer__actions .es-btn.gb-btn-danger:hover { background: #e5686a; }
.gb .es-dialog .gb-supprimer__actions .es-btn.gb-btn-danger:disabled { background: var(--line-strong); border-color: var(--line-strong); color: var(--muted); cursor: not-allowed; }
.gb-supprimer__mot { display: flex; flex-direction: column; gap: var(--s1); margin: 0 0 var(--s4); font-size: 13px; line-height: 20px; color: var(--text); }
.gb-supprimer__mot b { color: var(--ink); letter-spacing: .04em; }
.gb-supprimer__mot input { height: 44px; padding: 0 var(--s3); border: 1px solid var(--line-strong); border-radius: var(--r-md); background: #fff; font-family: inherit; font-size: 15px; font-weight: 600; letter-spacing: .04em; color: var(--ink); text-transform: uppercase; }
.gb-supprimer__mot input:focus { outline: none; border-color: var(--coral); box-shadow: 0 0 0 3px var(--coral-tint); }
.gb .es-dialog .gb-supprimer__actions .es-btn--lien { color: var(--text); text-decoration: none; }
.gb .es-dialog .gb-supprimer__actions .es-btn--lien:hover { background: rgba(4, 2, 77, .05); }

/* ── L'aperçu d'une annonce (ouvrirApercu) : la fenêtre du lecteur, dense
   comme nos fiches — galerie, bandeau bleu vif, lignes de 36 px. ── */
.gb-lecteur.gb-lecteur--apercu { width: min(760px, calc(100vw - 48px)); height: auto; max-height: calc(100dvh - 48px); }
.gb-lecteur--apercu .gb-lecteur__scene { display: block; padding: 0; overflow-y: auto; background: var(--surface); }
/* Pas de barre de titre : la galerie, décollée des bords (16 px, 12 au
   téléphone, comme le texte dessous) et
   arrondie, ouvre la fenêtre ; la croix en rond blanc posée dessus, le
   titre passe dessous. */
.gb-lecteur--apercu .gb-lecteur__haut { position: absolute; top: 28px; right: 28px; z-index: 3; height: auto; padding: 0; border: 0; background: none; }
.gb-lecteur--apercu .gb-lecteur__titre, .gb-lecteur--apercu .gb-lecteur__action { display: none; }
.gb-lecteur--apercu .gb-lecteur__fermer { width: 36px; height: 36px; background: rgba(255, 255, 255, .94); color: var(--ink); box-shadow: 0 2px 8px rgba(4, 2, 77, .2); }
.gb-lecteur--apercu .gb-lecteur__fermer:hover { background: #fff; }
.gb .gb-apercu__nom { margin: 0 0 2px; font-size: 17px; line-height: 24px; font-weight: 700; color: var(--ink); }
.gb-apercu__galerie { position: relative; margin: var(--s4) var(--s4) 0; border-radius: var(--r-lg); overflow: hidden; }
.gb-apercu__photos { display: flex; height: 280px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; background: var(--surface-alt); }
.gb-apercu__photos::-webkit-scrollbar { display: none; }
.gb-apercu__photos img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: cover; scroll-snap-align: start; }
.gb-apercu__fleche { position: absolute; top: 50%; display: grid; place-items: center; width: 32px; height: 32px; margin-top: -16px; left: var(--s3); border: 0; border-radius: 999px; background: rgba(255, 255, 255, .92); color: var(--ink); cursor: pointer; box-shadow: 0 2px 8px rgba(4, 2, 77, .18); }
.gb-apercu__fleche--droite { left: auto; right: var(--s3); }
.gb-apercu__fleche svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.gb-apercu__compte { position: absolute; right: var(--s3); bottom: var(--s3); padding: 2px var(--s2); border-radius: 999px; background: rgba(4, 2, 77, .65); color: #fff; font-size: 12px; line-height: 18px; font-weight: 600; font-variant-numeric: tabular-nums; }
.gb-apercu__corps { padding: var(--s4) var(--s4) var(--s6); }
.gb-apercu__corps p { max-width: none; margin: 0; }
.gb-apercu__lieu { display: flex; align-items: center; flex-wrap: wrap; gap: var(--s1) var(--s2); margin-bottom: var(--s3) !important; color: var(--muted); }
.gb-apercu__lieu > span::before { content: "· "; }
.gb-apercu__lieu b { color: var(--ink); font-weight: 600; }
/* Le bandeau bleu vif : le prix, le rendement, le loyer estimé. */
.gb-apercu__bandeau { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); border-radius: var(--r-lg); background: var(--blue); color: rgba(255, 255, 255, .82); }
.gb-apercu__bandeau > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding: var(--s3) var(--s4); }
.gb-apercu__bandeau > div + div { border-left: 1px solid rgba(255, 255, 255, .2); }
.gb-apercu__bandeau span { font-size: 12px; line-height: 16px; font-weight: 600; }
.gb-apercu__bandeau b { font-size: 20px; line-height: 28px; font-weight: 700; color: #fff; font-variant-numeric: tabular-nums; white-space: nowrap; }
.gb-apercu__bandeau b small { font-size: 12px; font-weight: 500; color: rgba(255, 255, 255, .82); }
.gb-apercu__bandeau > div > small { font-size: 12px; line-height: 16px; }
/* Deux colonnes de lignes : le bien, le prix (ou la location). */
.gb-apercu__deux { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s6); margin-top: var(--s5, 20px); }
.gb-apercu__corps h3 { margin: 0 0 var(--s1); font-size: 13px; line-height: 20px; font-weight: 700; color: var(--ink); }
.gb-apercu__corps .gb-dl .gb-dpe { width: 18px; height: 18px; margin-right: 2px; font-size: 11px; }
.gb-apercu__conf { display: flex; align-items: center; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s2) !important; font-size: 12px; line-height: 16px; color: var(--muted); }
.gb-apercu__conf > span:last-child { color: var(--muted); }
.gb-apercu__desc { margin-top: var(--s5, 20px); padding-top: var(--s4); border-top: 1px solid var(--line); }
.gb-apercu__texte { display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; color: var(--text); white-space: pre-line; }
.gb-apercu__texte.is-ouvert { display: block; -webkit-line-clamp: unset; }
.gb-apercu__plus { margin-top: var(--s1); padding: 0; border: 0; background: none; font-family: inherit; font-size: 13px; font-weight: 600; color: var(--blue); cursor: pointer; }
.gb-apercu__actions { display: flex; gap: var(--s2); margin-top: var(--s5, 20px); }
.gb-apercu__actions .gb-btn { flex: 1; height: 44px; border-radius: 999px; text-decoration: none; }
@media (max-width: 600px) {
  .gb-lecteur.gb-lecteur--apercu { width: calc(100vw - 16px); }
  .gb-apercu__photos { height: 220px; }
  .gb-apercu__galerie { margin: var(--s3) var(--s3) 0; }
  .gb-lecteur--apercu .gb-lecteur__haut { top: var(--s6); right: var(--s6); }
  .gb-apercu__fleche { display: none; }
  .gb-apercu__corps { padding: var(--s4) var(--s3); }
  /* Deux colonnes ; avec trois cases, le prix prend toute la première ligne
     et le rendement et le loyer se partagent la seconde (pas de trou). */
  .gb-apercu__bandeau { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  /* Avec trois cases, le prix prend toute la première ligne, en vedette :
     28 px, le prix au m² en pastille translucide juste à côté ; rendement et
     loyer se partagent la seconde ligne. */
  .gb-apercu__bandeau > div:first-child:nth-last-child(3) { grid-column: 1 / -1; display: flex; flex-flow: row wrap; align-items: center; column-gap: var(--s3); padding: var(--s4); border-bottom: 1px solid rgba(255, 255, 255, .2); }
  .gb-apercu__bandeau > div:first-child:nth-last-child(3) > span { flex-basis: 100%; }
  .gb-apercu__bandeau > div:first-child:nth-last-child(3) > b { font-size: 28px; line-height: 36px; letter-spacing: -.01em; }
  .gb-apercu__bandeau > div:first-child:nth-last-child(3) > small { padding: 2px var(--s2); border-radius: 999px; background: rgba(255, 255, 255, .18); color: #fff; font-size: 12px; line-height: 18px; font-weight: 600; white-space: nowrap; }
  .gb-apercu__bandeau > div:first-child:nth-last-child(3) + div { border-left: 0; }
  .gb-apercu__bandeau b { font-size: 18px; line-height: 26px; }
  .gb-apercu__deux { grid-template-columns: minmax(0, 1fr); gap: var(--s4); }
  .gb-apercu__actions { flex-direction: column; }
}

/* ═══ Les pages vides (30/10/2026, js/page-vide.js) ═══
   Le modèle de Mes recherches, partagé : une carte bleue qui dit ce qui
   manque et propose l'action, puis « Pour vous inspirer », quatre idées du
   Marché illustrées par de vraies annonces. Le petit carré corail du logo
   en haut à droite, comme sur la carte d'origine. */
.es-vide { position: relative; margin-bottom: 32px; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 28px 20px 24px; border-radius: 16px; background: #405AD2; color: #fff; text-align: center; overflow: hidden; }
.es-vide::after { content: ''; position: absolute; top: 18px; right: 18px; width: 8px; height: 8px; border-radius: 2px; background: #ED797B; }
.es-vide b { font-size: 18px; line-height: 24px; font-weight: 700; color: #fff; }
.es-vide p { margin: 0 0 12px; max-width: 340px; font-size: 13px; line-height: 20px; color: rgba(255, 255, 255, .82); }
.es-vide__btn { display: inline-flex; align-items: center; height: 40px; padding: 0 18px; border: 0; border-radius: 10px; background: #fff; color: #405AD2 !important; font: inherit; font-size: 14px; font-weight: 700; text-decoration: none; cursor: pointer; }
.es-vide__btn:hover { background: #EEF0FC; }
.es-vide--compact { margin: 16px; padding: 22px 16px 18px; }
.es-vide--compact b { font-size: 15px; line-height: 21px; }
/* « .es-idees » devant : sinon .gb h2 remet la marge a zero. */
.es-idees .es-idees__titre { margin: 0 0 16px; font-size: 15px; line-height: 22px; font-weight: 700; color: #04024D; }
.es-idees__bande { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.es-idee { display: flex; flex-direction: column; gap: 10px; min-width: 0; color: inherit; text-decoration: none; }
.es-idee__photo { position: relative; display: block; aspect-ratio: 3 / 2; border-radius: 12px; overflow: hidden; background: #F4F4F8; }
.es-idee__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.es-idee__texte { display: flex; flex-direction: column; min-width: 0; }
.es-idee__texte b { font-size: 13px; line-height: 20px; font-weight: 700; color: #04024D; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.es-idee:hover .es-idee__texte b { text-decoration: underline; text-underline-offset: 3px; }
.es-idee__texte small { font-size: 12px; line-height: 16px; color: #6C6A94; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 640px) {
  .es-idees__bande { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 62%; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 16px; margin: 0 -16px; padding: 0 16px 4px; scrollbar-width: none; }
  .es-idees__bande::-webkit-scrollbar { display: none; }
  .es-idee { scroll-snap-align: start; }
}
