/* V6.40 — Préparer son devis : aide locale, sans collecte ni sauvegarde.
   Des cases à cocher lisibles sur téléphone et une mise en page imprimable. */
.sop-prep-tool{padding-bottom:clamp(44px,6vw,86px)}
.sop-prep-intro{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(260px,.85fr);align-items:center;gap:clamp(24px,5vw,84px);margin:20px 0 clamp(24px,4vw,48px)}
.sop-prep-intro h2{max-width:15ch;font-size:clamp(2.5rem,5vw,4.8rem);letter-spacing:-.042em;line-height:1.08;margin:0 0 24px}
.sop-prep-lead{max-width:57ch;font-size:clamp(1.05rem,1.6vw,1.25rem);line-height:1.65}
.sop-prep-privacy{max-width:58ch;border-left:3px solid #a4b9a4;padding:7px 0 7px 18px;font-size:.92rem;line-height:1.65;color:#45574b}
.sop-prep-visual{min-width:0;margin:0}
.sop-prep-visual img{width:100%;height:auto;aspect-ratio:5/4;object-fit:cover;display:block;border-radius:2px}
.sop-prep-visual figcaption{margin-top:9px;font-size:.76rem;color:#48554c}
.sop-prep-panel{background:#193e32;color:#f9f7ef;padding:clamp(22px,4.5vw,62px);border-radius:3px}
.sop-prep-panel-head{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;flex-wrap:wrap;padding-bottom:28px;border-bottom:1px solid #82958a}
.sop-prep-label{display:block;font-weight:750;font-size:1.1rem;margin-bottom:12px}
.sop-prep-select{width:min(100%,500px);min-width:min(300px,100%);min-height:50px;background:#fffef8;color:#15362a;border:2px solid #d6e1d8;border-radius:3px;padding:11px 14px;font:inherit}
.sop-prep-select:focus-visible{outline:3px solid #f1d293;outline-offset:3px}
.sop-prep-progress{margin:0;background:#e0e8dc;color:#193e32;padding:10px 18px;border-radius:2px;font-weight:750;font-size:.9rem;line-height:1.5}
.sop-prep-columns{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:clamp(22px,4vw,64px);padding-block:clamp(24px,4vw,46px)}
.sop-prep-list{border:0;min-width:0;padding:0;margin:0}
.sop-prep-list legend{font-family:var(--serif,Georgia,serif);font-size:clamp(1.45rem,2.5vw,2.15rem);line-height:1.22;margin-bottom:18px;padding:0}
.sop-prep-list label{display:flex;gap:14px;align-items:flex-start;line-height:1.5;font-size:.99rem;padding:13px 0;border-bottom:1px solid #537567;cursor:pointer}
.sop-prep-list label:last-child{border-bottom:0}
.sop-prep-list input{width:22px;height:22px;flex:0 0 22px;margin:1px 0 0;accent-color:#d3dbba;cursor:pointer}
.sop-prep-list input:focus-visible{outline:3px solid #f1d293;outline-offset:3px}
.sop-prep-list input:checked+span{text-decoration:line-through}
.sop-prep-tool [hidden]{display:none!important}
.sop-prep-actions{display:flex;flex-wrap:wrap;align-items:center;gap:14px;padding-top:16px;border-top:1px solid #82958a}
.sop-prep-panel .button{min-height:48px}
.sop-prep-panel .button:first-child{background:#f5efe0;color:#193e32;border-color:#f5efe0}
.sop-prep-reset{background:transparent;border:0;color:#f9f7ef;text-decoration:underline;text-underline-offset:5px;font:inherit;cursor:pointer;padding:12px}
.sop-prep-reset:focus-visible{outline:3px solid #f1d293;outline-offset:3px}
.sop-prep-footnote{font-size:.9rem;line-height:1.6;color:#e0e8dc;margin:20px 0 0;max-width:76ch}
.sop-prep-copy-feedback{margin:14px 0 0;color:#f7e1af;font-size:.94rem;line-height:1.6}
.sop-prep-copy-feedback:empty{display:none}
.sop-prep-recap{margin-top:20px;border:1px solid #94a99b;border-radius:3px;background:#254d3f;padding:clamp(16px,2vw,26px)}
.sop-prep-recap summary{cursor:pointer;font-weight:700;line-height:1.5}
.sop-prep-recap summary:focus-visible{outline:3px solid #f1d293;outline-offset:4px}
.sop-prep-recap p{max-width:65ch;line-height:1.6;font-size:.92rem}
.sop-prep-recap pre{max-width:100%;white-space:pre-wrap;overflow-wrap:anywhere;background:#fffef8;color:#1e392e;border-radius:3px;padding:clamp(14px,2vw,22px);font:inherit;font-size:.91rem;line-height:1.65}
.sop-prep-recap pre:focus-visible{outline:3px solid #f1d293;outline-offset:3px}
@media(max-width:760px){
 .sop-prep-intro{grid-template-columns:1fr}
 .sop-prep-visual{max-width:650px}
 .sop-prep-columns{grid-template-columns:1fr;gap:28px}
 .sop-prep-panel-head{align-items:stretch}
 .sop-prep-select{width:100%}
 .sop-prep-progress{align-self:start}
 .sop-prep-actions>*{max-width:100%}
}
@media print{
 .sop-prep-tool{background:#fff;color:#111!important}
 .sop-prep-tool .sop-prep-visual,.sop-prep-actions,.sop-prep-footnote,.sop-prep-recap,.sop-prep-copy-feedback{display:none!important}
 .sop-prep-panel{background:#fff!important;color:#111!important;border:1px solid #555;padding:20px;break-inside:avoid}
 .sop-prep-panel-head{border-color:#aaa}
 .sop-prep-panel-head select{border:0;appearance:none;padding:0;font-weight:bold}
 .sop-prep-progress{background:transparent;color:#111;padding:0}
 .sop-prep-columns{grid-template-columns:1fr 1fr;gap:20px}
 .sop-prep-list label{border-color:#ccc;padding:9px 0}
 .sop-prep-list input{accent-color:#222}
 .sop-prep-privacy{border-color:#444;color:#222}
 .sop-prep-intro{grid-template-columns:1fr}
 .sop-prep-intro h2{font-size:24pt}
 .sop-prep-intro p{font-size:11pt}
}

@media print {
  body:has(.sop-prep-tool) > :not(main){display:none!important}
  body:has(.sop-prep-tool) .guide-main > :not(.sop-prep-tool){display:none!important}
  body:has(.sop-prep-tool),body:has(.sop-prep-tool) .guide-main{background:#fff!important}
  .sop-prep-tool{padding:0!important;width:100%;max-width:none}
  .sop-prep-intro{margin:0 0 12pt}
}
