/* HIT Estimateur, front. Généré depuis le prototype validé par build-front.py */
@import url("https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700&family=Poppins:wght@600;700&display=swap");
.hit-estimateur{
  --bg:#ffffff; --surface:#ffffff; --surface-2:#f4f6fa; --border:#e6e9ef; --border-strong:#cfd5df;
  --text:#101828; --muted:#5b6474; --muted-2:#8a93a3;
  --red:#e5322d; --red-dark:#c9241f; --red-soft:#fdecec; --red-disabled:#f2a6a3;
  --green:#22a95a; --green-soft:#eaf8ef;
  --shadow:0 4px 18px rgba(16,24,40,.06);
  --radius:14px;
}
.hit-estimateur, .hit-estimateur *{box-sizing:border-box}
.hit-estimateur{color:var(--text);font-family:"Nunito",system-ui,-apple-system,"Segoe UI",Arial,sans-serif;font-size:15px;line-height:1.5;-webkit-font-smoothing:antialiased}
.hit-estimateur h1, .hit-estimateur h2, .hit-estimateur h3{font-family:"Poppins","Nunito",system-ui,sans-serif;font-weight:700;margin:0;letter-spacing:-.01em}
.hit-estimateur button{font-family:inherit;font-size:inherit;color:inherit;cursor:pointer}
.hit-estimateur input, .hit-estimateur select{font-family:inherit;font-size:inherit;color:var(--text)}
.hit-estimateur :focus-visible{outline:2px solid var(--red);outline-offset:2px}
.hit-estimateur .page{max-width:720px;margin:0 auto;padding:44px 20px 64px}
.hit-estimateur .hero{text-align:center;margin-bottom:28px}
.hit-estimateur .hero h1{font-size:30px}
.hit-estimateur .hero p{margin:6px 0 0;color:var(--muted)}
.hit-estimateur .card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow);padding:28px 32px;overflow-wrap:anywhere;min-width:0}
.hit-estimateur .card *{min-width:0}
@media (max-width:560px){
.hit-estimateur .page{padding:20px 0 40px}
.hit-estimateur .card{padding:18px 12px;border-radius:12px}
.hit-estimateur .hero{margin-bottom:18px;padding:0 8px}
.hit-estimateur .hero h1{font-size:22px;line-height:1.2}
.hit-estimateur .hero p{font-size:14px}
.hit-estimateur .step-title h2{font-size:19px;line-height:1.25;overflow-wrap:anywhere}
.hit-estimateur .step-title p{font-size:13px}
.hit-estimateur .types{gap:8px}
.hit-estimateur .type{min-height:0;padding:12px 6px 10px;justify-content:center;font-size:12px;gap:6px;overflow-wrap:anywhere;hyphens:auto}
.hit-estimateur .type svg{width:24px;height:24px}
.hit-estimateur .seg button{padding:8px 14px;font-size:14px}
.hit-estimateur .chips{gap:6px}
.hit-estimateur .chip{min-width:42px;height:42px;padding:0 10px;font-size:14px}
.hit-estimateur .equip{gap:8px}
.hit-estimateur .eq{padding:10px 10px;font-size:13px;gap:8px}
.hit-estimateur .eq i{width:30px;height:30px}
.hit-estimateur .states{gap:8px}
.hit-estimateur .state{padding:12px 4px;font-size:12px}
.hit-estimateur .label{white-space:normal;font-size:13px}
.hit-estimateur .nav{margin-top:18px;padding-top:14px;gap:8px}
.hit-estimateur .btn{padding:10px 14px;font-size:14px}
.hit-estimateur .result-box{padding:18px 12px}
.hit-estimateur .result-box .price{font-size:30px}
.hit-estimateur .factor{font-size:12px;padding:6px 10px}
.hit-estimateur .notice{font-size:12px;padding:12px}
.hit-estimateur .actions .btn-block{padding:12px;font-size:14px}
.hit-estimateur .phone-row select{width:104px}
.hit-estimateur .notlisted h3{font-size:16px}
.hit-estimateur .consent{font-size:13px;padding:12px}
}
.hit-estimateur .progress{display:flex;justify-content:space-between;font-size:13px;color:var(--muted);margin-bottom:8px}
.hit-estimateur .progress b{color:var(--red);font-weight:600}
.hit-estimateur .bar{height:6px;border-radius:99px;background:var(--surface-2);overflow:hidden;margin-bottom:26px}
.hit-estimateur .bar > i{display:block;height:100%;background:var(--red);border-radius:99px;transition:width .35s ease}
@media (prefers-reduced-motion:reduce){
.hit-estimateur .bar > i{transition:none}
}
.hit-estimateur .step-title{text-align:center;margin-bottom:22px}
.hit-estimateur .step-title h2{font-size:22px}
.hit-estimateur .step-title p{margin:4px 0 0;color:var(--muted);font-size:14px}
.hit-estimateur .step-icon{width:56px;height:56px;border-radius:50%;background:var(--surface-2);display:flex;align-items:center;justify-content:center;margin:0 auto 12px;color:var(--red)}
.hit-estimateur .step-icon svg{width:24px;height:24px}
.hit-estimateur .seg{display:inline-flex;background:var(--surface-2);border-radius:10px;padding:4px;margin:0 auto 22px;position:relative;left:50%;transform:translateX(-50%)}
.hit-estimateur .seg button{border:0;background:transparent;padding:9px 20px;border-radius:8px;font-weight:600;color:var(--muted)}
.hit-estimateur .seg button.on{background:var(--red);color:#fff}
.hit-estimateur .types{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}
@media (max-width:560px){
.hit-estimateur .types{grid-template-columns:repeat(2,1fr)}
}
.hit-estimateur .type{border:1.5px solid var(--border);border-radius:12px;background:var(--surface);padding:18px 8px 14px;display:flex;flex-direction:column;align-items:center;gap:10px;font-size:13px;font-weight:600;text-align:center;line-height:1.25;min-height:118px}
.hit-estimateur .type svg{width:30px;height:30px;color:var(--muted)}
.hit-estimateur .type:hover{border-color:var(--border-strong)}
.hit-estimateur .type.on{border-color:var(--red);background:var(--red-soft);color:var(--red-dark)}
.hit-estimateur .type.on svg{color:var(--red)}
.hit-estimateur .notlisted{text-align:center;margin-top:28px}
.hit-estimateur .notlisted h3{font-size:18px;margin-bottom:12px}
.hit-estimateur .field{margin-bottom:18px}
.hit-estimateur .label{display:flex;align-items:center;gap:6px;font-weight:600;font-size:14px;margin-bottom:8px;white-space:nowrap}
.hit-estimateur .label svg{width:16px;height:16px;color:var(--red);flex:none}
.hit-estimateur .label .opt{color:var(--muted-2);font-weight:400}
.hit-estimateur .label .req{color:var(--red)}
.hit-estimateur .control{width:100%;height:46px;border:1px solid var(--border);border-radius:10px;background:var(--surface);padding:0 14px;appearance:none;-webkit-appearance:none}
.hit-estimateur select.control{background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235b6474' stroke-width='2'><path d='M6 9l6 6 6-6'/></svg>");background-repeat:no-repeat;background-position:right 14px center;padding-right:40px}
.hit-estimateur .control:disabled{opacity:.55}
.hit-estimateur .help{font-size:12px;color:var(--muted-2);margin-top:6px}
.hit-estimateur .error{font-size:12px;color:var(--red-dark);margin-top:6px;display:none}
.hit-estimateur .field.invalid .control{border-color:var(--red)}
.hit-estimateur .field.invalid .error{display:block}
.hit-estimateur .fields{max-width:460px;margin:0 auto}
.hit-estimateur .phone-row{display:flex;gap:8px}
.hit-estimateur .phone-row select{width:118px;flex:none;padding:0 26px 0 10px;background-position:right 8px center}
.hit-estimateur .phone-row input{flex:1;min-width:0}
.hit-estimateur .phone-row select{text-overflow:ellipsis}
.hit-estimateur .chips{display:flex;flex-wrap:wrap;gap:8px}
.hit-estimateur .chip{border:1.5px solid var(--border);background:var(--surface);border-radius:10px;min-width:48px;height:46px;padding:0 14px;font-weight:600}
.hit-estimateur .chip.on{background:var(--red);border-color:var(--red);color:#fff}
.hit-estimateur .chip.wide{flex:1 1 0}
.hit-estimateur #s3t .chip{height:auto;min-height:46px;padding:10px 12px;line-height:1.25;white-space:normal}
.hit-estimateur #s3l .chip{height:auto;min-height:46px;padding:10px 12px;line-height:1.25;white-space:normal}
.hit-estimateur .chips.grid2, .hit-estimateur #tVocation{display:grid;grid-template-columns:1fr 1fr}
@media (max-width:480px){
.hit-estimateur .chips.grid2, .hit-estimateur #tVocation{grid-template-columns:1fr}
}
.hit-estimateur .toggle-row{display:flex;align-items:center;justify-content:space-between;background:var(--surface-2);border-radius:10px;padding:12px 14px;font-weight:600;font-size:14px}
.hit-estimateur .switch{width:44px;height:24px;border-radius:99px;background:var(--border-strong);border:0;position:relative;flex:none}
.hit-estimateur .switch::after{content:"";position:absolute;top:3px;left:3px;width:18px;height:18px;border-radius:50%;background:#fff;transition:left .2s}
.hit-estimateur .switch.on{background:var(--red)}
.hit-estimateur .switch.on::after{left:23px}
.hit-estimateur .section-h{font-size:13px;font-weight:700;color:var(--muted);letter-spacing:.02em;margin:6px 0 12px}
.hit-estimateur .equip{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-bottom:24px}
@media (max-width:480px){
.hit-estimateur .equip{grid-template-columns:1fr}
}
.hit-estimateur .eq{border:1.5px solid var(--border);border-radius:12px;background:var(--surface);padding:12px 14px;display:flex;align-items:center;gap:12px;font-weight:600;font-size:14px;text-align:left}
.hit-estimateur .eq i{width:36px;height:36px;border-radius:50%;background:var(--surface-2);display:flex;align-items:center;justify-content:center;flex:none;color:var(--muted)}
.hit-estimateur .eq svg{width:18px;height:18px}
.hit-estimateur .eq.on{border-color:var(--red);background:var(--red-soft);color:var(--red-dark)}
.hit-estimateur .eq.on i{background:var(--red);color:#fff}
.hit-estimateur .states{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}
.hit-estimateur .state{border:1.5px solid var(--border);border-radius:12px;background:var(--surface);padding:16px 8px;display:flex;flex-direction:column;align-items:center;gap:8px;font-size:13px;font-weight:600;color:var(--muted)}
.hit-estimateur .state svg{width:24px;height:24px}
.hit-estimateur .state.on{border-color:var(--green);background:var(--green-soft);color:var(--green)}
.hit-estimateur .consent{display:flex;gap:10px;align-items:flex-start;background:var(--surface-2);border-radius:10px;padding:14px;font-size:14px;color:var(--muted)}
.hit-estimateur .consent input{margin-top:3px;accent-color:var(--red);width:16px;height:16px}
.hit-estimateur .secure{display:flex;align-items:center;justify-content:center;gap:6px;font-size:12px;color:var(--muted-2);margin-top:14px}
.hit-estimateur .secure svg{width:14px;height:14px}
.hit-estimateur .nav{display:flex;justify-content:space-between;align-items:center;border-top:1px solid var(--border);margin-top:26px;padding-top:20px}
.hit-estimateur .btn{border:0;border-radius:8px;padding:11px 22px;font-weight:600;display:inline-flex;align-items:center;gap:8px;white-space:nowrap}
.hit-estimateur .btn svg{width:16px;height:16px}
.hit-estimateur .btn-primary{background:var(--red);color:#fff}
.hit-estimateur .btn-primary:hover{background:var(--red-dark)}
.hit-estimateur .btn-primary:disabled{background:var(--red-disabled);cursor:not-allowed}
.hit-estimateur .btn-ghost{background:transparent;color:var(--muted);padding-left:0}
.hit-estimateur .btn-ghost:disabled{opacity:.4;cursor:default}
.hit-estimateur .btn-outline{background:var(--surface);border:1px solid var(--border);color:var(--text)}
.hit-estimateur .btn-block{width:100%;justify-content:center;padding:14px}
.hit-estimateur .result-box{background:linear-gradient(180deg,var(--surface-2),var(--surface));border:1px solid var(--border);border-radius:14px;padding:26px 24px;text-align:center}
.hit-estimateur .result-box .lbl{color:var(--muted);font-size:14px}
.hit-estimateur .result-box .price{font-family:"Poppins",sans-serif;font-weight:700;font-size:38px;color:var(--red);line-height:1.15;margin:4px 0 2px}
.hit-estimateur .result-box .unit{color:var(--muted);font-size:14px}
.hit-estimateur .range{margin-top:22px}
.hit-estimateur .range-labels{display:flex;justify-content:space-between;font-size:13px;color:var(--muted)}
.hit-estimateur .range-track{height:8px;border-radius:99px;background:linear-gradient(90deg,var(--border),var(--text) 55%,var(--border));margin:10px 0;position:relative}
.hit-estimateur .range-track > i{position:absolute;top:50%;width:18px;height:18px;border-radius:50%;background:var(--surface);border:3px solid var(--red);transform:translate(-50%,-50%)}
.hit-estimateur .range-vals{display:flex;justify-content:space-between;font-weight:700;font-size:14px}
.hit-estimateur .reliab{margin-top:18px;font-size:14px;color:var(--muted)}
.hit-estimateur .reliab .stars{color:var(--red);letter-spacing:2px}
.hit-estimateur .result-box .dt{font-size:14px;color:var(--muted);margin:-2px 0 4px}
.hit-estimateur .devise{margin-top:16px;padding-top:14px;border-top:1px dashed var(--border);display:flex;flex-wrap:wrap;gap:8px 10px;justify-content:center;align-items:center;font-size:13px;color:var(--muted)}
.hit-estimateur .devise select.control{width:auto;min-width:200px;padding:8px 32px 8px 12px;font-size:14px}
.hit-estimateur .devise-note{width:100%;font-size:12px;color:var(--muted)}
.hit-estimateur .factors{display:flex;flex-wrap:wrap;gap:8px;margin:18px 0}
.hit-estimateur .factor{background:var(--surface-2);border-radius:8px;padding:8px 12px;font-size:13px;display:inline-flex;gap:6px;align-items:center}
.hit-estimateur .factor svg{width:14px;height:14px;color:var(--red)}
.hit-estimateur .notice{background:var(--surface-2);border:1px solid var(--border);border-radius:10px;padding:14px 16px;font-size:13px;color:var(--muted);margin-bottom:22px}
.hit-estimateur .notice b{color:var(--text)}
.hit-estimateur .actions{display:flex;flex-direction:column;gap:10px}
.hit-estimateur .link-btn{background:none;border:0;color:var(--muted);font-weight:600;display:inline-flex;gap:8px;align-items:center;justify-content:center;padding:12px}
.hit-estimateur .toast{position:fixed;right:20px;bottom:20px;background:var(--surface);border:1px solid var(--border);box-shadow:var(--shadow);border-radius:12px;padding:14px 18px;font-size:14px;max-width:320px;opacity:0;transform:translateY(8px);transition:.25s;pointer-events:none;z-index:50}
.hit-estimateur .toast.show{opacity:1;transform:none}
.hit-estimateur .toast b{display:block;margin-bottom:2px}
.hit-estimateur .hidden{display:none !important}

.hit-estimateur .hit-loading{text-align:center;padding:60px 20px;color:var(--muted)}
.hit-estimateur .hit-err{background:var(--red-soft);color:var(--red-dark);border-radius:10px;padding:12px 14px;font-size:14px;margin:12px 0}
.hit-estimateur .mentions{font-size:12px;color:var(--muted-2);margin-top:14px;line-height:1.5}
.hit-estimateur .maj{font-size:12px;color:var(--muted-2);text-align:center;margin-top:14px}
.hit-estimateur[data-loading] .page{display:none}

/* Intégration RealHomes : récupérer la largeur sur mobile */
@media (max-width:560px){
  .hit-estimateur{margin:0 -12px}
  .elementor-widget-shortcode .elementor-widget-container:has(.hit-estimateur){padding:0 !important}
  .rh-page-content:has(.hit-estimateur), .rh_page__content:has(.hit-estimateur){padding-left:0 !important;padding-right:0 !important}
}
