/* Page guide de mesure (maquette guide-mesure.html). */
.jump{display:flex;flex-wrap:wrap;gap:10px;margin-top:22px}
.jump a{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:9px 16px;border-radius:99px;background:#fff;border:1.5px solid var(--line);font-weight:600;font-size:14.5px;color:var(--ink);transition:border-color .2s,background .2s}
.jump a:hover{border-color:var(--violet);background:var(--lav)}
.jump svg.i{width:20px;height:20px;color:var(--violet)}

.prep{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.25fr);gap:20px}
.card2{border:1px solid var(--line);border-radius:var(--r);padding:24px 26px;background:#fff}
.card2.soft{background:var(--lav);border-color:var(--lav)}
.card2 h3{font-size:17px;display:flex;align-items:center;gap:10px;margin-bottom:12px}
.card2 h3 svg.i{width:24px;height:24px;color:var(--violet)}
.tools-l{list-style:none;display:grid;gap:12px}
.tools-l li{display:flex;gap:12px;align-items:flex-start;font-size:15px}
.tools-l li svg.i{width:22px;height:22px;color:var(--violet);margin-top:1px}
.rules{list-style:none;display:grid;gap:12px;counter-reset:r}
.rules li{display:flex;gap:12px;align-items:flex-start;font-size:15px;counter-increment:r}
.rules li::before{content:counter(r);flex:none;width:26px;height:26px;border-radius:50%;background:var(--violet);color:#fff;font-weight:700;font-size:13px;display:grid;place-items:center;margin-top:1px}
.rules b{color:var(--ink)}

/* onglets par famille */
.ftabs{position:sticky;top:84px;z-index:15;background:rgba(255,255,255,.96);backdrop-filter:blur(6px);border-bottom:1px solid var(--line);margin-top:56px}
.ftabs .wrap{display:flex;gap:6px;overflow-x:auto;scrollbar-width:none}
.ftabs .wrap::-webkit-scrollbar{display:none}
.ftabs a{flex:none;display:flex;align-items:center;gap:9px;min-height:56px;padding:0 18px;font-weight:600;font-size:15px;color:var(--muted);border-bottom:3px solid transparent;white-space:nowrap}
.ftabs a svg.i{width:22px;height:22px}
.ftabs a:hover{color:var(--ink)}
.ftabs a[aria-selected=true]{color:var(--violet);border-color:var(--violet)}
.js .fam[hidden]{display:none}
.fam{padding-top:40px;scroll-margin-top:150px}
.fam-h{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:16px 30px;margin-bottom:28px}
.fam-h h2{font-size:32px;margin-bottom:8px}
.fam-h p{max-width:64ch}
.fam-h .btn{flex:none}

.case{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.1fr);gap:34px;align-items:center;padding:30px 0;border-top:1px solid var(--line)}
.case:first-of-type{border-top:0}
.case figure{background:var(--lav);border-radius:16px;padding:14px}
.case figure svg{display:block;width:100%;height:auto}
.case figcaption{font-size:13px;color:var(--muted);text-align:center;margin-top:6px}
.tag{display:inline-block;font-size:12.5px;font-weight:700;letter-spacing:.05em;text-transform:uppercase;color:var(--gold);margin-bottom:6px}
.case h3{font-family:Lora,Georgia,serif;font-weight:500;font-size:24px;margin-bottom:8px}
.case .when{color:var(--muted);margin-bottom:16px}
.steps2{list-style:none;counter-reset:s;display:grid;gap:12px;margin-bottom:18px}
.steps2 li{counter-increment:s;display:flex;gap:12px;align-items:flex-start}
.steps2 li::before{content:counter(s);flex:none;width:28px;height:28px;border-radius:50%;border:1.5px solid var(--violet);color:var(--violet);font-weight:700;font-size:13.5px;display:grid;place-items:center}
.steps2 b{color:var(--ink)}
.res{border-left:3px solid var(--gold);background:#fbf8f2;border-radius:0 10px 10px 0;padding:14px 18px}
.res strong{display:block;font-size:12.5px;letter-spacing:.05em;text-transform:uppercase;color:#8a6a1f;margin-bottom:4px}
.res p{color:var(--ink);font-weight:500}
.res p + p{margin-top:4px}

.notes{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-top:10px}
.note{border:1px solid var(--line);border-radius:var(--r);padding:18px 20px}
.note h4{font-size:15.5px;color:var(--ink);display:flex;gap:9px;align-items:center;margin-bottom:6px}
.note h4 svg.i{width:22px;height:22px;color:var(--violet)}
.note p{font-size:14.5px}
.lims{width:100%;border-collapse:collapse;font-size:14.5px;margin-top:6px}
.lims th,.lims td{text-align:left;padding:8px 6px;border-bottom:1px solid var(--line)}
.lims th{font-weight:600;color:var(--ink)}
.lims td{white-space:nowrap}

/* calculette rideaux */
.calc{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:0;border:1px solid var(--line);border-radius:16px;overflow:hidden;margin-top:6px}
.calc .in{padding:26px 28px}
.calc .out{background:var(--violet);color:#fff;padding:26px 28px;display:flex;flex-direction:column;gap:16px;justify-content:center}
.calc h3{font-family:Lora,Georgia,serif;font-weight:500;font-size:22px;margin-bottom:4px}
.calc .in > p{color:var(--muted);margin-bottom:18px;font-size:14.5px}
.calc .row{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-bottom:16px}
.fld .unit{position:relative}
.fld .unit input{padding-right:46px}
.fld .unit span{position:absolute;right:14px;top:50%;transform:translateY(-50%);color:var(--muted);font-size:14px}
.seg{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.seg.two{grid-template-columns:1fr 1fr}
.seg label{position:relative;cursor:pointer}
.seg input{position:absolute;opacity:0;inset:0}
.seg span{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;min-height:56px;padding:6px 8px;border:1.5px solid var(--line);border-radius:10px;font-weight:600;font-size:14.5px;color:var(--ink);transition:border-color .2s,background .2s}
.seg span small{font-weight:400;font-size:12.5px;color:var(--muted)}
.seg input:checked + span{border-color:var(--violet);background:var(--lav)}
.seg input:focus-visible + span{outline:3px solid var(--gold);outline-offset:2px}
.seg svg{width:56px;height:16px;margin-bottom:2px}
.chk{display:flex;align-items:center;gap:10px;min-height:44px;font-size:15px;cursor:pointer}
.chk input{width:20px;height:20px;accent-color:var(--violet)}
.out .lbl{font-size:13px;letter-spacing:.05em;text-transform:uppercase;opacity:.85}
.out .val{font:600 34px/1.1 Lora,Georgia,serif}
.out .val small{font:500 15px Figtree,sans-serif;opacity:.9}
.out .det{font-size:13.5px;opacity:.88}
.out .warn{background:rgba(255,255,255,.14);border-radius:8px;padding:8px 12px;font-size:13.5px}
.out .warn:empty{display:none}
.out .btn{background:#fff;color:var(--violet);border-color:#fff;align-self:flex-start}
.out .btn:hover{background:var(--lav)}

/* erreurs fréquentes */
.errs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.err{display:flex;gap:14px;align-items:flex-start;padding:20px;border-radius:var(--r);background:#fff;border:1px solid var(--line)}
.err .x{flex:none;width:34px;height:34px;border-radius:50%;background:#fbeeee;color:#a3242f;display:grid;place-items:center}
.err .x svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round}
.err b{display:block;color:var(--ink);margin-bottom:3px}
.err p{font-size:14.5px}

.helpband{display:flex;align-items:center;gap:24px;background:var(--lav);border-radius:16px;padding:28px 34px}
.helpband > svg.i{width:46px;height:46px;color:var(--violet);flex:none}
.helpband h2{font-size:26px;margin-bottom:4px}
.helpband .ctas{margin-left:auto;flex-wrap:nowrap}
.helpband .ctas .btn{white-space:nowrap}

/* schémas */
.dg .wall{fill:#fbf8fc}
.dg .frm{fill:#fff;stroke:#cfc6d6;stroke-width:8}
.dg .ouv{fill:#eaf1f5;stroke:#b9afc2;stroke-width:6}
.dg .gl{fill:#eaf1f5}
.dg .fab{fill:#d9cce3;opacity:.9}
.dg .mec{fill:#62166D}
.dg .clip{fill:#1f1a22}
.dg .ext{stroke:#9a91a1;stroke-width:1;stroke-dasharray:3 3;fill:none}
.dg .ck{stroke:#1f1a22;stroke-width:1.3;marker-start:url(#ak);marker-end:url(#ak)}
.dg .cv{stroke:#62166D;stroke-width:1.8;marker-start:url(#av);marker-end:url(#av)}
.dg text{font:500 12px Figtree,Arial,sans-serif;fill:#3d3742;paint-order:stroke;stroke:#fbf8fc;stroke-width:4px;stroke-linejoin:round}
.dg text.v{fill:#62166D;font-weight:700;font-size:13px}
.dg text.s{font-size:11px}
.dg .gold{fill:none;stroke:#C9A146;stroke-width:5}

@media (max-width:1080px){
  .ftabs{top:84px}
  .case{grid-template-columns:1fr;gap:20px}
  .notes,.errs{grid-template-columns:1fr 1fr}
  .calc{grid-template-columns:1fr}
  .prep{grid-template-columns:1fr}
}
@media (max-width:620px){
  .jump{gap:8px}
  .jump a{font-size:14px;padding:8px 14px}
  .ftabs{top:64px;margin-top:44px}
  .ftabs .wrap{padding:0 8px;gap:0}
  .ftabs a{padding:0 12px;font-size:14px;min-height:52px}
  .ftabs a svg.i{display:none}
  .fam{padding-top:28px;scroll-margin-top:124px}
  .fam-h h2{font-size:26px}
  .fam-h .btn{width:100%;justify-content:center;min-height:50px}
  .case{padding:24px 0}
  .case figure{padding:8px;margin:0 -4px}
  .case h3{font-size:21px}
  .notes,.errs{grid-template-columns:1fr}
  .note{padding:16px}
  .lims{font-size:13.5px}.lims th,.lims td{padding:7px 3px}.lims td:first-child{white-space:normal}
  .dg text{font-size:14px}.dg text.s{font-size:12.5px}.dg text.v{font-size:15px}
  .card2{padding:20px 18px}
  .calc .in,.calc .out{padding:22px 18px}
  .calc .row{grid-template-columns:1fr}
  .out .val{font-size:30px}
  .out .btn{align-self:stretch;justify-content:center;min-height:50px}
  .helpband{flex-direction:column;align-items:flex-start;padding:24px 20px;gap:14px}
  .helpband .ctas{margin-left:0;width:100%;flex-direction:column}
  .helpband .ctas .btn{justify-content:center;min-height:50px}
}

