/* Estime ma maison · prototype « interface Google » (Material 3, thème clair) : grande barre de recherche,
   pastilles, cartes à coins arrondis, résultat présenté comme une fiche. Mêmes éléments que vitrine.css,
   pour que estimation.js et net-vendeur.js fonctionnent sans modification. */
@font-face { font-family: 'Roboto'; src: url('/polices/roboto-400-700.woff2') format('woff2'); font-weight: 400 700; font-display: swap; }
:root {
  --fond: #FFFFFF; --surface: #F8FAFD; --surface-2: #F0F4F9; --texte: #1F1F1F; --texte-2: #444746; --gris: #5E5E5E;
  --contour: #747775; --trait: #E1E3E1; --bleu: #0B57D0; --bleu-fond: #D3E3FD; --bleu-texte: #041E49;
  --vert: #146C2E; --vert-fond: #C4EED0; --rouge: #B3261E; --rouge-fond: #F9DEDC;
  --ombre-barre: 0 1px 6px rgba(32,33,36,0.28); --ombre-carte: 0 1px 2px rgba(60,64,67,0.3), 0 1px 3px 1px rgba(60,64,67,0.15);
  --police: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--fond); color: var(--texte); font-family: var(--police); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: var(--bleu); text-decoration: none; }
h1, h2, h3 { font-weight: 400; margin: 0; letter-spacing: 0; }
.num { font-variant-numeric: tabular-nums; }
.espace { flex: 1; }

/* Barre du haut : discrète, comme sur google.com */
.g-barre { display: flex; align-items: center; gap: 24px; padding: 14px 24px; }
.g-logo-petit { display: inline-flex; align-items: center; gap: 8px; color: var(--texte); font-weight: 500; font-size: 15px; }
.g-logo-petit svg { width: 22px; height: 22px; }
.g-barre nav { margin-left: auto; display: flex; gap: 20px; font-size: 14px; }
.g-barre nav a { color: var(--texte); }
.g-barre nav a:hover { text-decoration: underline; }

/* Accueil : la marque, la barre de recherche, les pastilles */
.g-accueil { max-width: 760px; margin: 0 auto; padding: 9vh 20px 40px; text-align: center; }
.g-marque { display: flex; align-items: center; justify-content: center; gap: 16px; }
.g-symbole { width: 64px; height: 64px; }
.g-marque h1 { font-size: clamp(34px, 7vw, 64px); font-weight: 500; letter-spacing: -0.02em; color: var(--texte); white-space: nowrap; }
.g-marque h1 span { background: linear-gradient(100deg, #FF6B5B, #EC4899 50%, #8B5CF6); -webkit-background-clip: text; background-clip: text; color: transparent; }
.g-accroche { color: var(--texte-2); font-size: 17px; margin: 14px auto 0; max-width: 560px; }
.g-form { margin-top: 32px; display: grid; gap: 16px; text-align: left; }
.g-recherche { position: relative; display: flex; align-items: center; gap: 12px; height: 56px; padding: 0 20px; border: 1px solid #DFE1E5; border-radius: 28px; background: #fff; transition: box-shadow .2s ease, border-color .2s ease; }
.g-recherche:hover, .g-recherche:focus-within { box-shadow: var(--ombre-barre); border-color: transparent; }
.g-ico { width: 22px; height: 22px; fill: #9AA0A6; flex: none; }
.g-recherche input { flex: 1; min-width: 0; border: 0; outline: none; font: inherit; font-size: 17px; color: var(--texte); background: transparent; }
.suggestions { position: absolute; z-index: 10; left: -1px; right: -1px; top: 54px; margin: 0; padding: 8px 0; list-style: none; background: #fff; border-radius: 0 0 24px 24px; box-shadow: 0 4px 6px rgba(32,33,36,0.28); }
.g-recherche:has(.suggestions:not([hidden])) { border-radius: 28px 28px 0 0; box-shadow: var(--ombre-barre); }
.suggestions li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 20px 9px 54px; cursor: pointer; font-size: 15px; }
.suggestions li small { color: var(--gris); white-space: nowrap; }
.suggestions li[aria-selected="true"], .suggestions li:hover { background: var(--surface-2); }
.g-options { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.bascule { display: inline-flex; border: 1px solid var(--contour); border-radius: 8px; overflow: hidden; }
.bascule button { font: inherit; font-size: 14px; font-weight: 500; border: 0; padding: 0 16px; height: 40px; background: #fff; color: var(--texte-2); cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.bascule button + button { border-left: 1px solid var(--contour); }
.bascule button[aria-pressed="true"] { background: var(--bleu-fond); color: var(--bleu-texte); }
.bascule button[aria-pressed="true"]::before { content: '✓'; font-size: 13px; }
.g-pastille-champ { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 6px 0 14px; border: 1px solid var(--contour); border-radius: 8px; background: #fff; font-size: 14px; color: var(--texte-2); }
.g-pastille-champ .champ { border: 0; outline: none; font: inherit; font-size: 14px; font-weight: 500; color: var(--texte); background: transparent; width: 84px; padding: 6px; }
.g-pastille-champ select.champ { width: auto; }
.g-pastille-champ:focus-within { border-color: var(--bleu); box-shadow: inset 0 0 0 1px var(--bleu); }
.g-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 8px; }
.g-bouton, .btn-principal { font: inherit; font-size: 14px; font-weight: 500; border: 0; border-radius: 20px; height: 40px; padding: 0 24px; background: var(--bleu); color: #fff; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; transition: box-shadow .2s ease; }
.g-bouton:hover, .btn-principal:hover { box-shadow: var(--ombre-carte); }
.g-bouton[disabled], .btn-principal[disabled] { opacity: .6; cursor: wait; }
.g-bouton-tonal, .btn-citron { font: inherit; font-size: 14px; font-weight: 500; border-radius: 20px; height: 40px; padding: 0 24px; background: var(--bleu-fond); color: var(--bleu-texte); display: inline-flex; align-items: center; justify-content: center; border: 0; }
.btn-petit { height: 36px; padding: 0 18px; }
.g-confiance { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; margin: 20px 0 0; font-size: 13px; color: var(--gris); }
.g-confiance span::before { content: '✓'; color: var(--vert); margin-right: 6px; font-weight: 700; }
.info-dpe { font-size: 14px; color: var(--texte-2); background: var(--surface-2); border-radius: 12px; padding: 12px 16px; display: grid; gap: 8px; }
.info-dpe b { color: var(--texte); font-weight: 500; }
.autres-dpe { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.autres-dpe span { font-size: 13px; color: var(--gris); }
.autres-dpe button { font: inherit; font-size: 13px; font-weight: 500; color: var(--texte-2); background: #fff; border: 1px solid var(--contour); border-radius: 8px; padding: 6px 12px; cursor: pointer; }
.erreur-estim { font-size: 14px; color: var(--rouge); background: var(--rouge-fond); border-radius: 12px; padding: 12px 16px; }

/* Résultat : une fiche, comme un panneau de connaissances */
.g-carte-resultat:empty { display: none; }
.g-carte-resultat { margin-top: 32px; text-align: left; background: #fff; border: 1px solid var(--trait); border-radius: 24px; padding: 28px; display: grid; gap: 22px; }
.attente { display: grid; place-items: center; gap: 14px; padding: 24px; color: var(--gris); text-align: center; }
.grand-pixel { display: grid; grid-template-columns: repeat(3, 12px); gap: 4px; }
.grand-pixel i { width: 12px; height: 12px; border-radius: 3px; background: var(--trait); }
.grand-pixel i.on { background: var(--bleu); }
.chargement .grand-pixel i.on { animation: clignote 1.2s ease-in-out infinite; }
.chargement .grand-pixel i.on:nth-child(5) { animation-delay: .2s; } .chargement .grand-pixel i.on:nth-child(8) { animation-delay: .4s; }
@keyframes clignote { 50% { opacity: .25; } }
.valeur small { font-size: 13px; color: var(--gris); letter-spacing: .02em; }
.valeur b { display: block; font-size: clamp(40px, 6vw, 52px); font-weight: 400; line-height: 1.1; margin-top: 4px; color: var(--texte); }
.valeur p { color: var(--texte-2); font-size: 14px; margin: 6px 0 0; }
.jauge { position: relative; height: 6px; border-radius: 3px; background: var(--bleu-fond); }
.jauge i { position: absolute; top: -6px; width: 4px; height: 18px; border-radius: 2px; background: var(--bleu); transform: translateX(-2px); }
.bornes { display: flex; justify-content: space-between; font-size: 13px; margin-top: 10px; color: var(--texte-2); }
.bornes b { color: var(--texte); font-weight: 500; }
.faits { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.fait { background: var(--surface-2); border-radius: 16px; padding: 14px 16px; }
.fait b { display: block; font-size: 20px; font-weight: 500; }
.fait span { display: block; font-size: 13px; color: var(--gris); margin-top: 2px; }
.annees { display: flex; align-items: end; gap: 8px; height: 112px; }
.annees div { flex: 1; display: grid; gap: 6px; text-align: center; font-size: 12px; color: var(--gris); }
.annees div b { font-size: 12.5px; font-weight: 500; color: var(--texte); }
.annees div i { display: block; border-radius: 6px 6px 2px 2px; background: var(--bleu-fond); }
.annees div:last-child i { background: var(--bleu); }
.mention-estim { font-size: 12.5px; color: var(--gris); margin: 0; }
.mention-estim a { color: var(--bleu); }

/* Mise en relation */
.relation { border: 1px solid var(--trait); border-radius: 16px; padding: 20px; background: var(--surface); }
.relation-tete { display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.relation-tete > div { flex: 1 1 260px; min-width: 0; }
.relation h3 { font-size: 18px; font-weight: 500; }
.relation-tete p { font-size: 14px; color: var(--texte-2); margin: 6px 0 0; }
#relation-corps { margin-top: 18px; }
.form-relation { display: grid; gap: 14px; }
.form-relation label > span { display: block; font-size: 12px; color: var(--texte-2); margin-bottom: 4px; }
.form-relation .champ { width: 100%; font: inherit; font-size: 15px; color: var(--texte); background: #fff; border: 1px solid var(--contour); border-radius: 4px; padding: 12px 14px; outline: none; }
.form-relation .champ:focus { border-color: var(--bleu); box-shadow: inset 0 0 0 1px var(--bleu); }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.sous-titre { display: flex; justify-content: space-between; font-size: 13px; font-weight: 500; color: var(--texte-2); margin-bottom: 8px; }
.sous-titre span { color: var(--gris); font-weight: 400; }
.agences-liste { display: grid; gap: 6px; max-height: 248px; overflow: auto; }
.form-relation label.agence { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 12px; border: 1px solid var(--trait); border-radius: 12px; cursor: pointer; background: #fff; }
.form-relation label.agence:has(input:checked) { border-color: var(--bleu); background: #F3F7FE; }
.agence input, .accord input { width: 18px; height: 18px; accent-color: var(--bleu); margin: 0; }
.agence span { min-width: 0; }
.form-relation .agence span b { display: block; font-size: 14.5px; font-weight: 500; color: var(--texte); }
.agence small { display: block; font-size: 12.5px; color: var(--gris); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.agence em { font-style: normal; font-size: 12.5px; color: var(--gris); }
.form-relation label.accord { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 12px; align-items: start; }
.form-relation label.accord span { font-size: 13px; color: var(--texte-2); margin: 0; line-height: 1.45; }
.note { font-size: 13px; color: var(--gris); }
.merci { text-align: center; display: grid; gap: 10px; justify-items: center; padding: 12px; }
.merci h3 { font-size: 18px; font-weight: 500; }
.merci p { font-size: 14px; color: var(--texte-2); margin: 0; }

/* Sections sous l'accueil */
.g-section { padding: 48px 20px; border-top: 1px solid var(--trait); }
.g-colonne { max-width: 760px; margin: 0 auto; }
.g-section h2 { font-size: 24px; font-weight: 400; }
.g-sous { color: var(--texte-2); margin: 8px 0 0; font-size: 15px; }
.carte-nv { margin-top: 20px; background: #fff; border: 1px solid var(--trait); border-radius: 24px; padding: 24px; display: grid; gap: 16px; }
.carte-nv label > span { display: block; font-size: 12px; color: var(--texte-2); margin-bottom: 4px; }
.carte-nv .champ { width: 100%; font: inherit; font-size: 15px; color: var(--texte); background: #fff; border: 1px solid var(--contour); border-radius: 4px; padding: 12px 14px; outline: none; }
.carte-nv .champ:focus { border-color: var(--bleu); box-shadow: inset 0 0 0 1px var(--bleu); }
.carte-nv label.accord { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 12px; align-items: center; }
.carte-nv label.accord span { margin: 0; font-size: 15px; color: var(--texte); }
.nv-resultat { background: var(--surface-2); border-radius: 16px; padding: 20px; }
.nv-resultat small { font-size: 13px; color: var(--gris); }
.nv-resultat > b { display: block; font-size: 36px; font-weight: 400; color: var(--vert); margin-top: 2px; }
.nv-detail { display: grid; gap: 6px; margin-top: 12px; font-size: 14px; }
.nv-detail div { display: flex; justify-content: space-between; gap: 12px; color: var(--texte-2); border-top: 1px solid var(--trait); padding-top: 6px; }
.nv-detail b { color: var(--texte); font-weight: 500; text-align: right; }
.g-cartes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 20px; }
.g-carte-lien { display: grid; gap: 8px; align-content: start; padding: 20px; border-radius: 16px; background: var(--surface-2); color: var(--texte); transition: background .15s ease; }
.g-carte-lien:hover { background: #E9EEF6; }
.g-carte-lien b { font-weight: 500; font-size: 16px; }
.g-carte-lien span:last-child { font-size: 13.5px; color: var(--texte-2); }
.g-pastille-ico { width: 36px; height: 36px; border-radius: 50%; background: var(--bleu-fond); color: var(--bleu-texte); display: grid; place-items: center; font-weight: 700; }
.g-faq { margin-top: 12px; border-top: 1px solid var(--trait); }
.g-faq details { border-bottom: 1px solid var(--trait); }
.g-faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 0; font-size: 16px; color: var(--texte); }
.g-faq summary::-webkit-details-marker { display: none; }
.g-faq summary::after { content: ''; width: 9px; height: 9px; border-right: 2px solid var(--texte-2); border-bottom: 2px solid var(--texte-2); transform: rotate(45deg); transition: transform .2s ease; margin-right: 6px; }
.g-faq details[open] summary::after { transform: rotate(-135deg); }
.g-faq details p { color: var(--texte-2); font-size: 14.5px; padding-bottom: 16px; margin: 0; }

/* Pied de page gris, comme google.com */
.g-pied { background: #F2F2F2; color: #70757A; font-size: 14px; margin-top: 32px; }
.g-pied-pays { padding: 14px 30px; border-bottom: 1px solid #DADCE0; }
.g-pied-liens { display: flex; flex-wrap: wrap; gap: 12px 26px; padding: 14px 30px; }
.g-pied-liens a { color: #70757A; }
.g-pied-liens a:hover { text-decoration: underline; }

@media (max-width: 700px) {
  .g-barre nav { gap: 14px; font-size: 13px; }
  .g-logo-petit span { display: none; }
  .g-accueil { padding-top: 6vh; }
  .g-marque { flex-direction: column; gap: 10px; }
  .g-symbole { width: 44px; height: 44px; }
  .faits, .g-cartes { grid-template-columns: minmax(0, 1fr); }
  .duo { grid-template-columns: minmax(0, 1fr); }
  .g-carte-resultat { padding: 20px; }
}
