/* Plombier Repair · outil « dureté de l'eau par commune ».
   Chargée seulement sur /durete-eau/. Mêmes jetons que atelier.css, aucune police en plus.
   Blocs responsive en fin de feuille. */

.th-page{--c1:var(--cold);--c2:#4F86C6;--c3:var(--heat);--c4:var(--hot)}
.th-lede{margin:0;font:400 19px/1.55 var(--f-text);color:var(--ink-2)}
.th-head{border-bottom:0;padding-bottom:26px}

/* ---------- Le pupitre : recherche + résultat ---------- */
.th-tool{padding:0 0 clamp(36px,5vw,60px);border-bottom:1px solid var(--ink)}
.th-panel{display:grid;grid-template-columns:minmax(0,370px) minmax(0,1fr);border:2px solid var(--ink);background-color:var(--card);background-image:linear-gradient(var(--grid) 1px,transparent 1px),linear-gradient(90deg,var(--grid) 1px,transparent 1px);background-size:20px 20px}
.th-search{position:relative;padding:24px 24px 22px;border-right:2px solid var(--ink);background:var(--paper)}
.th-search-title{margin:0 0 18px;font:800 clamp(22px,2.3vw,27px)/1.15 var(--f-disp);letter-spacing:-.02em}
.th-label{display:block;margin:0 0 8px;font:600 12px/1.3 var(--f-mono);letter-spacing:.08em;text-transform:uppercase;color:var(--ink-2)}
.th-combo{position:relative}
.th-input{display:block;width:100%;min-height:56px;padding:12px 48px 12px 14px;border:2px solid var(--ink);border-radius:2px;background:#fff;color:var(--ink);font:600 19px/1.2 var(--f-disp);-webkit-appearance:none;appearance:none}
.th-input::placeholder{color:#7C838A;font-weight:500}
.th-input:focus{outline:3px solid var(--cold);outline-offset:2px}
.th-input:disabled{background:var(--paper-2)}
.th-input-ico{position:absolute;right:14px;top:50%;margin-top:-11px;color:var(--hot);pointer-events:none}
.th-list{position:absolute;left:0;right:0;top:calc(100% + 4px);z-index:30;max-height:min(60vh,430px);margin:0;padding:0;overflow-y:auto;list-style:none;border:2px solid var(--ink);background:#fff;box-shadow:0 10px 24px rgba(27,33,38,.16)}
.th-opt{display:flex;flex-direction:column;justify-content:center;gap:2px;min-height:52px;padding:8px 14px;border-bottom:1px solid var(--rule);cursor:pointer}
.th-opt:last-child{border-bottom:0}
.th-opt-name{font:700 17px/1.25 var(--f-disp);color:var(--ink);overflow-wrap:anywhere}
.th-opt-meta{font:500 11.5px/1.3 var(--f-mono);letter-spacing:.03em;color:var(--ink-3)}
.th-opt.is-nodata .th-opt-name{color:var(--ink-2)}
.th-opt:hover,.th-opt[aria-selected="true"]{background:var(--ink)}
.th-opt:hover .th-opt-name,.th-opt[aria-selected="true"] .th-opt-name{color:var(--paper)}
.th-opt:hover .th-opt-meta,.th-opt[aria-selected="true"] .th-opt-meta{color:#C9CDD1}
.th-hint{margin:10px 0 0;font-size:14.5px;line-height:1.5;color:var(--ink-2)}
.th-status{min-height:1.5em;margin:10px 0 0;font:500 12.5px/1.5 var(--f-mono);color:var(--cold)}
.th-fallback{display:none;margin-top:14px;padding:12px 14px;border:1.5px solid var(--ink);border-left:7px solid var(--hot);background:var(--card);font-size:15.5px;line-height:1.5}
.th-fallback p{margin:0}
html.no-js .th-fallback,.th-fallback.is-shown{display:block}
html.no-js .th-hint{display:none}

.th-result{min-width:0;padding:24px;outline:0}
.th-empty .label{margin-bottom:14px}
.th-classes{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));margin:0;padding:0;list-style:none;border:1.5px solid var(--ink);background:var(--card)}
.th-classes li{display:flex;flex-direction:column;gap:6px;padding:14px 14px 16px;border-right:1px solid var(--ink);border-top:7px solid var(--cc)}
.th-classes li:last-child{border-right:0}
.th-c1{--cc:var(--c1)}.th-c2{--cc:var(--c2)}.th-c3{--cc:var(--c3)}.th-c4{--cc:var(--c4)}
.th-c-range{font:600 12px/1.3 var(--f-mono);letter-spacing:.04em;color:var(--ink-2)}
.th-c-name{font:700 17px/1.25 var(--f-disp)}
.th-empty-note{margin:16px 0 0;color:var(--ink-2)}

/* ---------- Fiche résultat ---------- */
.th-card{min-width:0}
.th-card-top{margin-bottom:14px}
.th-kicker{margin:0 0 4px;font:600 12px/1.3 var(--f-mono);letter-spacing:.06em;text-transform:uppercase;color:var(--hot)}
.th-town{margin:0;font:800 clamp(28px,3.4vw,40px)/1.05 var(--f-disp);letter-spacing:-.03em;overflow-wrap:anywhere}
.th-headline{display:grid;grid-template-columns:auto minmax(0,1fr);gap:8px 26px;align-items:center;padding:16px 18px;border:1.5px solid var(--ink);border-left:9px solid var(--cc);background:#fff}
.th-big{display:flex;align-items:baseline;gap:6px;margin:0;white-space:nowrap}
.th-num{font:800 clamp(44px,6vw,72px)/1 var(--f-disp);letter-spacing:-.04em}
.th-big.is-range .th-num{font-size:clamp(34px,4.2vw,54px)}
.th-u{font:700 22px/1 var(--f-disp);color:var(--ink-2)}
.th-verdict p{margin:0}
.th-class{font:800 21px/1.2 var(--f-disp);color:var(--ink)}
.th-class::before{content:"";display:inline-block;width:12px;height:12px;margin-right:9px;border-radius:50%;background:var(--cc);vertical-align:1px}
.th-eq{margin-top:4px!important;font:600 13px/1.45 var(--f-mono);color:var(--ink-2)}
.th-what{margin-top:6px!important;font-size:15.5px;line-height:1.5;color:var(--ink-2)}

.th-scale{margin:18px 0 6px;padding:0 2px}
.th-scale-bar{position:relative;display:flex;height:14px;border:1.5px solid var(--ink)}
.th-z{display:block;height:100%}
.th-z1{flex:0 0 16%;background:var(--c1)}
.th-z2{flex:0 0 24%;background:var(--c2)}
.th-z3{flex:0 0 20%;background:var(--c3)}
.th-z4{flex:1 1 auto;background:var(--c4)}
.th-mark{position:absolute;top:-9px;width:4px;height:30px;margin-left:-2px;background:var(--ink);box-shadow:0 0 0 2px #fff}

.th-ticks{position:relative;height:22px;margin-top:6px;font:500 11px/1 var(--f-mono);color:var(--ink-3)}
.th-ticks span{position:absolute;top:4px;transform:translateX(-50%);white-space:nowrap}
.th-ticks span:first-child{transform:none}
.th-ticks span:last-child{transform:translateX(-100%)}

.th-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));margin:14px 0 0;border:1.5px solid var(--ink);background:var(--card)}
.th-facts div{min-width:0;padding:10px 14px;border-bottom:1px solid var(--rule)}
.th-facts div:nth-child(odd){border-right:1px solid var(--rule)}
.th-facts div:nth-last-child(-n+2){border-bottom:0}
.th-facts dt{font:600 10.5px/1.3 var(--f-mono);letter-spacing:.08em;text-transform:uppercase;color:var(--ink-2)}
.th-facts dd{margin:3px 0 0;font:600 15.5px/1.4 var(--f-disp);overflow-wrap:anywhere}

.th-nets{margin:14px 0 0;padding:0;list-style:none;border-top:1.5px solid var(--ink)}
.th-net{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:6px 18px;align-items:center;padding:12px 0 12px 14px;border-bottom:1px solid var(--rule);border-left:6px solid var(--cc)}
.th-net p{margin:0}
.th-net-name{font:700 16.5px/1.3 var(--f-disp);overflow-wrap:anywhere}
.th-net-q{font-size:14.5px;line-height:1.4;color:var(--ink-2)}
.th-net-meta{margin-top:3px!important;font:500 11.5px/1.45 var(--f-mono);color:var(--ink-3);overflow-wrap:anywhere}
.th-net-val{display:flex;flex-direction:column;align-items:flex-end;text-align:right;font:600 14px/1.2 var(--f-disp);color:var(--ink-2)}
.th-net-num{white-space:nowrap}
.th-net-val strong{font:800 30px/1 var(--f-disp);letter-spacing:-.03em;color:var(--ink)}
.th-net-dh{margin-top:4px;font:500 11.5px/1.3 var(--f-mono);color:var(--ink-3)}
.th-net-cls{margin-top:2px;font:600 12px/1.3 var(--f-mono);color:var(--ink-2)}

.th-note{margin:12px 0 0;padding:8px 12px;border-left:4px solid var(--heat);background:var(--paper);font-size:15px;line-height:1.5}
.th-none-title{margin:0 0 8px;font:700 19px/1.35 var(--f-disp)}

.th-advice{margin-top:20px;padding:16px 18px 6px;background:var(--ink);color:#E6E2D8}
.th-advice-title{display:flex;align-items:center;gap:12px;margin:0 0 12px;font:800 18px/1.3 var(--f-disp);color:#fff}
.th-advice-title::before{content:"";flex:0 0 auto;width:28px;height:6px;background:linear-gradient(90deg,var(--hot) 0 50%,#5E93DB 50% 100%)}
.th-tips{margin:0;padding:0;list-style:none;counter-reset:tip}
.th-tips li{position:relative;display:flex;flex-direction:column;gap:3px;padding:0 0 14px 46px;counter-increment:tip;font-size:15.5px;line-height:1.5}
.th-tips li::before{content:counter(tip,decimal-leading-zero);position:absolute;left:0;top:2px;display:grid;place-items:center;width:32px;height:24px;border-radius:2px;background:#E7E3DA;color:var(--ink);font:600 12px/1 var(--f-mono)}
.th-tips strong{font:700 16.5px/1.3 var(--f-disp);color:#fff}
.th-tips a{align-self:flex-start;display:inline-flex;align-items:center;min-height:44px;color:#A9C7F0;font:600 12.5px/1.2 var(--f-mono);letter-spacing:.04em;text-transform:uppercase}
.th-tips a::after{content:" \2192";margin-left:6px}
.th-tips a:hover{color:#fff}
.th-src{margin:14px 0 0;font-size:14px;line-height:1.55;color:var(--ink-2)}
.th-src a{display:inline-flex;align-items:center;min-height:44px;font-weight:600}

.th-fig{margin-top:clamp(28px,4vw,44px)}
.th-back{padding:8px var(--gut) clamp(48px,6vw,72px)}

/* ================= Responsive ================= */
@media (max-width:1100px){
	.th-panel{grid-template-columns:minmax(0,1fr)}
	.th-search{border-right:0;border-bottom:2px solid var(--ink)}
}
@media (max-width:900px){
	/* Sur mobile, l'outil passe avant la fiche : ses informations reviennent sous chaque résultat. */
	.th-head .dossier-spec{display:none}
	.th-head{padding-bottom:18px}
}
@media (max-width:760px){
	.th-classes{grid-template-columns:repeat(2,minmax(0,1fr))}
	.th-classes li:nth-child(2n){border-right:0}
	.th-classes li:nth-child(-n+2){border-bottom:1px solid var(--ink)}
	.th-headline{grid-template-columns:minmax(0,1fr)}
	.th-facts{grid-template-columns:minmax(0,1fr)}
	.th-facts div:nth-child(odd){border-right:0}
	.th-facts div:nth-last-child(2){border-bottom:1px solid var(--rule)}
}
@media (max-width:640px){
	.th-search,.th-result{padding:18px 16px}
	.th-lede{font-size:17.5px}
	.th-input{font-size:18px}
	.th-net{grid-template-columns:minmax(0,1fr)}
	.th-net-val{flex-direction:row;flex-wrap:wrap;align-items:baseline;gap:4px 10px;text-align:left}
	.th-net-dh,.th-net-cls{margin-top:0}
	.th-advice{padding:14px 14px 4px}
	.th-tips li{padding-left:42px}
}
