/* Calculateur PAC Sanitherme : styles limités au bloc .stc pour ne pas toucher au thème du site. */
.stc{
  --red:#DB001C; --red-ink:#B00017; --blue:#009ADE; --blue-ink:#0077AD;
  --bg:#F3F7FA; --surface:#FFFFFF; --ink:#0B1620; --muted:#55636F; --line:#D6E1E8;
  --blue-wash:#E3F3FB; --red-wash:#FCE6E9; --ok:#0F7B4E; --ok-wash:#E2F4EB; --ok-bar:#2FA672;
  --pipe:#C9D6DE; --thumb:#0B1620; --thumb-ink:#FFFFFF; --track:#EAF0F4;
  --f-display:"Rubik",system-ui,-apple-system,"Segoe UI",sans-serif;
  --f-body:"Montserrat",system-ui,-apple-system,"Segoe UI",sans-serif;
  --r:12px;
  background:var(--bg);color:var(--ink);font-family:var(--f-body);font-size:16px;line-height:1.55;
  padding-inline:16px;padding-block:32px 48px
}
.stc *{box-sizing:border-box}
.stc.has-bar{padding-block-end:120px}
.stc .wrap{max-width:640px;margin:0 auto;display:flex;flex-direction:column;gap:20px}
.stc h1{font-family:var(--f-display);font-weight:700;font-size:clamp(1.6rem,5vw,2.15rem);line-height:1.15;margin:0;text-wrap:balance;color:var(--ink)}
.stc h1 em{font-style:normal;color:var(--blue)}
.stc .lead{margin:0;color:var(--muted);max-width:56ch;font-size:1rem}
.stc .intro{display:flex;flex-direction:column;gap:10px}
.stc .trust{display:flex;flex-wrap:wrap;gap:8px 16px;font-size:.82rem;font-weight:600}
.stc .trust span{display:inline-flex;align-items:center;gap:6px}
.stc .trust svg{width:16px;height:16px;stroke:var(--ok);fill:none;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}
.stc .pipe{display:flex;flex-direction:column;gap:8px}
.stc .segs{display:flex;gap:6px}
.stc .seg{position:relative;flex:1;height:10px;border-radius:3px;background:var(--pipe)}
.stc .seg::after{content:"";position:absolute;inset:0;width:0;border-radius:3px;background:linear-gradient(90deg,var(--blue),var(--blue-ink));transition:width .3s ease}
.stc .seg.on::after{width:100%}
.stc .seg+.seg::before{content:"";position:absolute;left:-6px;top:-2px;width:6px;height:14px;background:var(--line);border-radius:2px}
.stc .pipe-label{font-size:.8rem;font-weight:600;color:var(--muted);font-variant-numeric:tabular-nums}
.stc .card{background:var(--surface);border:1px solid var(--line);border-radius:var(--r);padding:22px}
.stc .q{font-family:var(--f-display);font-weight:600;font-size:1.25rem;margin:0 0 4px;text-wrap:balance;color:var(--ink)}
.stc .hint{margin:0 0 16px;color:var(--muted);font-size:.9rem}
.stc .opts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
@media (max-width:480px){.stc .opts{grid-template-columns:1fr}}
.stc .opt{position:relative;display:flex;flex-direction:column;align-items:flex-start;gap:10px;min-height:56px;padding:14px 40px 14px 14px;border:1.5px solid var(--line);border-radius:12px;background:var(--surface);color:var(--ink);font:inherit;text-align:left;cursor:pointer;transition:border-color .15s,background .15s,box-shadow .15s}
@media (max-width:480px){.stc .opt{flex-direction:row;align-items:center}}
.stc .opt .tile{display:grid;place-items:center;width:38px;height:38px;border-radius:11px;border:1px solid var(--line);background:var(--bg);flex:none}
.stc .opt .tile svg{width:20px;height:20px;stroke:var(--blue-ink);fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.stc .opt .t{font-weight:600;font-size:.95rem;line-height:1.3}
.stc .opt .t small{display:block;font-weight:500;color:var(--muted);font-size:.8rem;margin-top:2px}
.stc .opt .dot{position:absolute;top:14px;right:14px;width:18px;height:18px;border-radius:50%;border:1.5px solid var(--line);display:grid;place-items:center}
.stc .opt .dot::after{content:"";width:8px;height:8px;border-radius:50%;background:var(--blue);transform:scale(0);transition:transform .15s}
.stc .opt:hover{border-color:var(--blue)}
.stc .opt[aria-checked="true"]{border-color:var(--blue);background:var(--blue-wash);box-shadow:0 0 0 3px rgba(0,154,222,.18)}
.stc .opt[aria-checked="true"] .dot{border-color:var(--blue)}
.stc .opt[aria-checked="true"] .dot::after{transform:scale(1)}
.stc .opt[aria-checked="true"] .tile{border-color:var(--blue);background:var(--surface)}
.stc .opt:focus-visible,.stc .btn:focus-visible,.stc input:focus-visible,.stc .segc button:focus-visible{outline:3px solid var(--blue);outline-offset:2px}
.stc .nav{display:flex;justify-content:space-between;gap:10px;margin-top:18px}
.stc .btn{min-height:48px;padding:0 20px;border-radius:10px;border:0;font:inherit;font-weight:700;cursor:pointer;transition:background .15s;line-height:1.2}
.stc .btn.primary{background:var(--red);color:#fff}
.stc .btn.primary:hover{background:var(--red-ink);color:#fff}
.stc .btn.ghost{background:transparent;color:var(--muted);border:1.5px solid var(--line)}
.stc .btn[disabled]{opacity:.45;cursor:not-allowed}
.stc .btn.wide{width:100%;border-radius:999px;display:inline-flex;align-items:center;justify-content:center;gap:8px}
.stc .btn svg{width:18px;height:18px;stroke:currentColor;fill:none;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.stc .eyebrow{font-size:.75rem;font-weight:700;letter-spacing:.09em;text-transform:uppercase;color:var(--blue-ink)}
.stc .price-card{display:flex;flex-direction:column;border:1px solid var(--line);border-radius:16px;overflow:hidden;margin:0 -6px}
.stc .pc-top{padding:18px;text-align:center;border-bottom:1px solid var(--line);display:flex;flex-direction:column;align-items:center;gap:12px}
.stc .segc{position:relative;display:grid;grid-template-columns:repeat(var(--n,2),minmax(0,1fr));width:100%;max-width:340px;padding:3px;border-radius:11px;border:1px solid var(--line);background:var(--track)}
.stc .segc .thumb{position:absolute;top:3px;bottom:3px;left:3px;width:calc((100% - 6px)/var(--n,2));border-radius:8px;background:var(--thumb);box-shadow:0 1px 3px rgba(0,0,0,.25);transition:transform .32s cubic-bezier(.3,1.3,.5,1)}
.stc .segc button{position:relative;z-index:1;min-height:40px;border:0;background:transparent;font:inherit;font-weight:600;font-size:.85rem;color:var(--muted);cursor:pointer;border-radius:8px;transition:color .2s}
.stc .segc button[aria-checked="true"]{color:var(--thumb-ink)}
.stc .pc-sub{font-size:.9rem;color:var(--muted)}
.stc .big{font-family:var(--f-display);font-weight:700;font-size:clamp(1.9rem,8vw,2.7rem);line-height:1.05;font-variant-numeric:tabular-nums;color:var(--ink);white-space:nowrap}
.stc .big small{font-size:.45em;font-weight:600;color:var(--muted)}
.stc .was{font-size:.82rem;color:var(--muted)}
.stc .was s{font-weight:600;font-variant-numeric:tabular-nums}
.stc .split{width:100%;display:flex;flex-direction:column;gap:6px;text-align:left}
.stc .split-bar{display:flex;height:12px;border-radius:999px;overflow:hidden;background:var(--track)}
.stc .split-bar .a{background:var(--ok-bar);transition:width .5s ease}
.stc .split-bar .r{background:var(--blue);flex:1}
.stc .split-leg{display:flex;justify-content:space-between;gap:10px;font-size:.78rem;color:var(--muted);flex-wrap:wrap}
.stc .split-leg i{display:inline-block;width:9px;height:9px;border-radius:2px;margin-right:6px}
.stc .badges{display:flex;justify-content:center;gap:16px;flex-wrap:wrap;font-size:.78rem;color:var(--muted)}
.stc .badges span{display:inline-flex;align-items:center;gap:6px}
.stc .badges svg{width:14px;height:14px;stroke:var(--ok);fill:none;stroke-width:2.4}
.stc .pc-body{padding:4px 18px 14px}
.stc .rows{display:flex;flex-direction:column}
.stc .row{display:flex;justify-content:space-between;gap:12px;padding:10px 0;border-bottom:1px solid var(--line);font-size:.95rem;margin:0}
.stc .row span:last-child{font-weight:600;font-variant-numeric:tabular-nums;text-align:right;white-space:nowrap}
.stc .row.aid span:last-child{color:var(--ok)}
.stc .row.total{font-weight:700;border-bottom:0}
.stc .row .src{display:block;font-size:.75rem;color:var(--muted);font-weight:500}
.stc .pc-sec{padding:18px;border-top:1px solid var(--line);text-align:left}
.stc .incl{list-style:none;margin:10px 0 0;padding:0;display:flex;flex-direction:column;gap:8px;font-size:.9rem}
.stc .incl li{display:flex;gap:10px;align-items:flex-start}
.stc .incl i{flex:none;width:18px;height:18px;border-radius:50%;background:var(--blue-wash);display:grid;place-items:center;margin-top:2px}
.stc .incl i svg{width:11px;height:11px;stroke:var(--blue-ink);fill:none;stroke-width:3}
.stc .note{display:flex;gap:10px;padding:12px 14px;border-radius:10px;font-size:.88rem;margin-top:14px}
.stc .note.warn{background:var(--red-wash)}
.stc .note.info{background:var(--blue-wash)}
.stc .note.ok{background:var(--ok-wash)}
.stc .note strong{display:block}
.stc ul.cond{margin:8px 0 0;padding-left:1.1em;display:flex;flex-direction:column;gap:6px;font-size:.9rem;color:var(--muted)}
.stc form{display:flex;flex-direction:column;gap:12px}
.stc label{font-weight:600;font-size:.9rem;display:flex;flex-direction:column;gap:6px;margin:0}
.stc input[type=text],.stc input[type=tel],.stc input[type=email]{min-height:48px;border:1.5px solid var(--line);border-radius:10px;padding:0 12px;font:inherit;background:var(--surface);color:var(--ink);width:100%}
.stc input[aria-invalid="true"]{border-color:var(--red)}
.stc .addr{display:grid;grid-template-columns:7rem minmax(0,1fr);gap:12px}
.stc .check{flex-direction:row;align-items:flex-start;font-weight:500;font-size:.85rem;color:var(--muted)}
.stc .check input{margin-top:3px;width:18px;height:18px;flex:none}
.stc .err{color:var(--red-ink);font-size:.82rem;font-weight:600}
.stc .fine{font-size:.78rem;color:var(--muted);margin:0}
.stc .tel{font-family:var(--f-display);font-weight:600;color:var(--red);user-select:all}
.stc .done{display:flex;flex-direction:column;align-items:center;text-align:center;gap:10px;padding:18px 6px}
.stc .done .ic{width:48px;height:48px;border-radius:12px;background:var(--ok-wash);display:grid;place-items:center}
.stc .done .ic svg{width:26px;height:26px;stroke:var(--ok);fill:none;stroke-width:2.2}
.stc .done p{margin:0;color:var(--muted);max-width:42ch}
.stc .sticky{position:fixed;left:0;right:0;bottom:0;z-index:1030;background:var(--surface);border-top:1px solid var(--line);box-shadow:0 -6px 18px rgba(0,0,0,.08);padding:10px 16px calc(10px + env(safe-area-inset-bottom,0px));display:none;align-items:center;justify-content:space-between;gap:12px}
.stc .sticky .s-lab{font-size:.72rem;color:var(--muted);display:block}
.stc .sticky .s-val{font-family:var(--f-display);font-weight:700;font-size:1.05rem;font-variant-numeric:tabular-nums;white-space:nowrap}
.stc .sticky .btn{min-height:44px;padding:0 16px;border-radius:999px;font-size:.88rem}
@media (max-width:640px){.stc.has-bar .sticky{display:flex}}
@media (prefers-reduced-motion:reduce){.stc *{transition:none!important}}
