/* GestiPilot — page « Estimez votre bien » (/estimation-bien.php)
   Tokens repris de www/index.html (système marketing). Aucune dépendance de la
   navigation/pied de page, qui embarquent leurs propres styles (préfixe gp-).
   Mis en cache un an : changer le ?v= du <link> de la page à chaque modification. */
:root{--ink:#0f172a;--text:#334155;--muted:#64748b;--line:#e2e8f0;--bg:#fff;--bg-soft:#f8fafc;--accent:#15803d;--accent-dark:#166534;--accent-soft:#f0fdf4;--gold:#b8860b;--gold-soft:#fef9e7;--warn:#b45309;--warn-soft:#fffbeb;--err:#b91c1c;--err-soft:#fef2f2}
*,*::before,*::after{box-sizing:border-box}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{margin:0;font-family:'Inter',system-ui,-apple-system,'Segoe UI',Roboto,sans-serif;color:var(--text);background:var(--bg);line-height:1.65;font-size:16px;-webkit-font-smoothing:antialiased}
img{max-width:100%;height:auto;display:block}
a{color:var(--accent);text-decoration:none}
a:hover{text-decoration:underline}
a:focus-visible,button:focus-visible,input:focus-visible,summary:focus-visible,[tabindex="-1"]:focus-visible{outline:3px solid #1d4ed8;outline-offset:2px;border-radius:4px}
h1,h2,h3{color:var(--ink);line-height:1.15;margin:0 0 .6em;letter-spacing:-.025em}
h1{font-size:clamp(2rem,5vw,3.1rem);font-weight:800}
h2{font-size:clamp(1.4rem,3vw,1.9rem);font-weight:700}
h3{font-size:1.05rem;font-weight:700;letter-spacing:-.01em}
p{margin:0 0 1em}
[hidden]{display:none!important}
.container{max-width:1120px;margin:0 auto;padding:0 24px}
.narrow{max-width:760px}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.skip{position:absolute;left:-9999px;top:0;background:var(--accent);color:#fff;padding:10px 16px;z-index:300}
.skip:focus{left:10px;top:10px}

.btn{display:inline-block;padding:13px 24px;border-radius:6px;font-weight:600;font-size:.98rem;border:1px solid transparent;cursor:pointer;text-align:center;font-family:inherit;line-height:1.3;min-height:44px}
.btn:hover{text-decoration:none}
.btn-primary{background:var(--accent);color:#fff}
.btn-primary:hover{background:var(--accent-dark)}
.btn-secondary{background:#fff;color:var(--ink);border-color:#cbd5e1}
.btn-secondary:hover{background:var(--bg-soft)}
.btn[disabled]{opacity:.6;cursor:not-allowed}

.eyebrow{display:inline-block;font-size:.78rem;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:var(--accent);margin-bottom:14px}
.lead{font-size:1.15rem;color:var(--text);max-width:560px}
.section{padding:72px 0}
.section-soft{background:var(--bg-soft)}

/* Accroche */
.est-hero{padding:56px 0 32px}
.est-hero .container{display:grid;gap:32px;align-items:center}
.est-note{font-size:.9rem;color:var(--muted);margin:14px 0 0}
@media(min-width:860px){.est-hero .container{grid-template-columns:1.2fr .8fr}}

/* La fée Pilot */
.pilot-fairy{width:150px;height:auto;flex:none;filter:drop-shadow(0 10px 14px rgba(15,23,42,.18));animation:pilotFloat 4.6s ease-in-out infinite}
.pilot-bubble{position:relative;margin:0 0 22px;max-width:340px;padding:12px 16px;background:#fff;border:1px solid var(--line);border-radius:14px 14px 14px 4px;box-shadow:0 8px 22px -14px rgba(15,23,42,.35);font-size:.92rem;line-height:1.5;color:var(--ink)}
.pilot-bubble::before{content:"";position:absolute;left:-7px;bottom:-1px;width:12px;height:12px;background:inherit;border-left:1px solid var(--line);border-bottom:1px solid var(--line);transform:skewY(40deg);border-radius:0 0 0 3px}
.pilot-bubble b{display:block;font-size:.72rem;letter-spacing:.1em;text-transform:uppercase;color:var(--accent);margin-bottom:2px}
.pilot-hello{display:flex;align-items:flex-end;gap:2px}
.pilot-hello picture,.est-guide picture{display:block;flex:none}
@keyframes pilotFloat{0%,100%{transform:translateY(0)}50%{transform:translateY(-9px)}}
@keyframes pilotSeek{0%,100%{transform:rotate(-6deg)}50%{transform:rotate(6deg)}}

/* Guide : la fée accompagne le formulaire, ses humeurs viennent de data-mood */
.est-guide{display:flex;align-items:flex-end;gap:2px;margin:0 0 18px}
.est-guide .pilot-fairy{width:92px}
.est-guide .pilot-bubble{margin-bottom:14px;flex:1;min-width:0}
.est-guide[data-mood="thinking"] .pilot-fairy{animation:pilotSeek 1.6s ease-in-out infinite;transform-origin:50% 60%}
.est-guide[data-mood="ok"] .pilot-bubble{border-color:var(--gold);background:var(--gold-soft)}
.est-guide[data-mood="ok"] .pilot-bubble b{color:var(--gold)}
.est-guide[data-mood="prudent"] .pilot-fairy{animation:none;transform:rotate(-5deg)}
.est-guide[data-mood="prudent"] .pilot-bubble{border-color:#fcd34d;background:var(--warn-soft)}
.est-guide[data-mood="prudent"] .pilot-bubble b{color:var(--warn)}
.est-guide[data-mood="error"] .pilot-fairy{animation:none}
.est-guide[data-mood="error"] .pilot-bubble{border-color:#fecaca;background:var(--err-soft)}
.est-guide[data-mood="error"] .pilot-bubble b{color:var(--err)}
@media(prefers-reduced-motion:reduce){.pilot-fairy,.est-guide[data-mood="thinking"] .pilot-fairy{animation:none}.est-progress span{transition:none}}

/* Carte du formulaire */
.est-card{background:#fff;border:1px solid var(--line);border-radius:8px;padding:28px;box-shadow:0 1px 2px rgba(15,23,42,.04),0 12px 32px -16px rgba(15,23,42,.18);scroll-margin-top:90px}
.est-progress{height:6px;border-radius:3px;background:var(--line);margin-bottom:22px;overflow:hidden}
.est-progress span{display:block;height:100%;width:var(--p,0%);background:var(--accent);transition:width .25s ease}
.est-step h2{font-size:1.35rem;margin-bottom:.4em}
.est-step h2:focus{outline:none}
.est-help{font-size:.9rem;color:var(--muted);margin:0 0 14px}
.est-error{margin:12px 0 0;padding:10px 14px;border-radius:6px;background:var(--err-soft);border:1px solid #fecaca;color:var(--err);font-size:.92rem}
.est-nav{display:flex;gap:12px;margin-top:22px}
.est-nav .btn-primary{flex:1}

.est-field{display:block;font-weight:600;color:var(--ink);font-size:.95rem;margin-bottom:6px}
.est-input{width:100%;padding:12px 14px;border:1px solid #cbd5e1;border-radius:6px;font:inherit;color:var(--ink);background:#fff;min-height:44px}
.est-row{display:grid;gap:14px}
@media(min-width:560px){.est-row{grid-template-columns:1fr 1fr}}
.est-combo{position:relative}
.est-list{position:absolute;left:0;right:0;top:100%;z-index:20;margin:4px 0 0;padding:4px;list-style:none;background:#fff;border:1px solid var(--line);border-radius:8px;box-shadow:0 12px 28px -12px rgba(15,23,42,.3)}
.est-list li{padding:10px 12px;border-radius:6px;cursor:pointer;font-size:.95rem;color:var(--ink)}
.est-list li:hover,.est-list li[aria-selected="true"]{background:var(--accent-soft)}

.est-choices{display:grid;gap:10px;border:0;padding:0;margin:0}
.est-choices legend{padding:0}
@media(min-width:560px){.est-choices.cols-2{grid-template-columns:1fr 1fr}.est-choices.cols-4{grid-template-columns:repeat(4,1fr)}}
.est-choice{position:relative;display:block}
.est-choice input{position:absolute;opacity:0;inset:0;width:100%;height:100%;margin:0;cursor:pointer}
.est-choice span{display:block;padding:12px 14px;border:1px solid #cbd5e1;border-radius:8px;background:#fff;color:var(--ink);font-weight:600;font-size:.95rem;min-height:44px}
.est-choice small{display:block;font-weight:400;color:var(--muted);font-size:.82rem}
.est-choice input:checked+span{border-color:var(--accent);background:var(--accent-soft);box-shadow:inset 0 0 0 1px var(--accent)}
.est-choice input:focus-visible+span{outline:3px solid #1d4ed8;outline-offset:2px}
.est-dpe{display:flex;flex-wrap:wrap;gap:8px;border:0;padding:0;margin:0;min-width:0}
.est-dpe .est-choice span{min-width:52px;text-align:center;padding:10px 12px}
.est-dpe .est-choice span b{display:block;font-size:1.05rem}
.est-dpe .est-choice.wide span{padding:10px 16px}

/* Résultat */
.est-range{font-size:clamp(1.7rem,5vw,2.6rem);font-weight:800;color:var(--ink);letter-spacing:-.03em;line-height:1.1;margin:6px 0 4px}
.est-mid{color:var(--muted);font-size:.95rem;margin:0 0 14px}
.est-conf{display:flex;align-items:center;gap:10px;font-size:.92rem;color:var(--ink);font-weight:600;margin-bottom:20px}
.est-gauge{display:flex;gap:4px}
.est-gauge i{display:block;width:30px;height:8px;border-radius:4px;background:var(--line)}
.est-gauge i.on{background:var(--accent)}
.est-kpis{display:grid;gap:12px;margin:0 0 20px}
@media(min-width:560px){.est-kpis{grid-template-columns:1fr 1fr}}
.est-kpi{background:var(--bg-soft);border:1px solid var(--line);border-radius:8px;padding:14px 16px}
.est-kpi small{display:block;color:var(--muted);font-size:.8rem;text-transform:uppercase;letter-spacing:.08em;font-weight:700}
.est-kpi b{display:block;font-size:1.15rem;color:var(--ink);margin-top:2px}
.est-disclaimer{font-size:.84rem;color:var(--muted);border-left:3px solid var(--line);padding-left:12px;margin:0 0 22px}

.est-wall{background:var(--accent-soft);border:1px solid #bbf7d0;border-radius:8px;padding:20px;margin-bottom:18px}
.est-wall h3{margin-bottom:.3em}
.est-wall ul{margin:0 0 14px;padding-left:20px;font-size:.93rem}
.est-wall .est-input{margin-bottom:10px}
.est-optin{display:flex;gap:10px;align-items:flex-start;font-size:.88rem;color:var(--text);margin:0 0 12px}
.est-optin input{margin-top:4px;width:18px;height:18px;flex:none}
.est-hp{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}
.est-status{font-size:.9rem;margin:10px 0 0;min-height:1.4em;color:var(--ink)}
.est-bridge{display:flex;flex-wrap:wrap;gap:12px;align-items:center}
.est-bridge p{margin:0;flex:1 1 260px;font-weight:600;color:var(--ink)}

/* Contenu de la page */
.est-how{display:grid;gap:20px}
@media(min-width:860px){.est-how{grid-template-columns:repeat(3,1fr)}}
.est-how div{background:#fff;border:1px solid var(--line);border-radius:8px;padding:24px;border-top:3px solid var(--accent)}
.est-how p{margin:0;font-size:.95rem}
.est-faq details{border-bottom:1px solid var(--line);padding:14px 0}
.est-faq summary{cursor:pointer;font-weight:600;color:var(--ink)}
.est-faq p{margin:10px 0 0;font-size:.95rem}
.est-final{background:var(--ink);color:#cbd5e1;padding:72px 0}
.est-final h2{color:#fff;max-width:620px}
.est-final p{max-width:600px;font-size:1.05rem;margin-bottom:26px}
.est-final .btn-primary{background:#fff;color:var(--ink)}
.est-source{font-size:.82rem;color:var(--muted);margin-top:18px}

@media(max-width:640px){.est-hero{padding:36px 0 20px}.section{padding:52px 0}.est-card{padding:20px 16px}.pilot-fairy{width:104px}.est-guide .pilot-fairy{width:76px}}
