/* ═══ Plotform — Fiche de faisabilité A4 ═══
   À l'écran : les pages sont posées sur un fond gris, à l'échelle. À l'impression : seules les
   pages sortent, une par feuille, sans la coquille de l'application. */
#v-fiche{max-width:none;align-items:center;background:#e9e9e9;animation:none;padding:0 0 40px;gap:0}
.f-barre{position:sticky;top:0;z-index:20;width:100%;background:#fff;border-bottom:1px solid var(--line);padding:12px 28px;display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap}
.f-barre b{color:var(--navy);font-size:14.5px;display:block}
.f-barre span{font-size:13px;color:var(--dim)}
#fiche-pages{display:flex;flex-direction:column;gap:22px;align-items:center;padding-top:22px}

.a4{width:210mm;min-height:297mm;background:#fff;box-shadow:0 4px 24px rgba(28,27,24,.12);padding:13mm 15mm 12mm;display:flex;flex-direction:column;gap:3.2mm;font-size:9.2pt;line-height:1.36;color:#0d0d0d;position:relative}
.f-tete{display:flex;justify-content:space-between;align-items:flex-end;gap:10mm;border-bottom:1.4pt solid #0d0d0d;padding-bottom:3mm}
.f-sur{font-size:8.4pt;font-weight:500;color:#0d0d0d}
.f-adr{font-size:16pt;font-weight:500;color:#0d0d0d;letter-spacing:-.2pt;margin-top:1mm}
.f-droite{text-align:right;flex:none;max-width:70mm}
.f-ag{font-weight:600;font-size:10.5pt;color:#0d0d0d;min-width:36mm;outline:none;border-bottom:1pt dashed transparent}
.f-ag:empty::before{content:attr(data-ph);color:#b0b0b0;font-weight:500}
.f-ag:hover,.f-ag:focus{border-bottom-color:#0d0d0d}
.f-date{font-size:8pt;color:#737373;margin-top:1mm}
.f-pied{margin-top:auto;border-top:.6pt solid #e6e6e6;padding-top:2.5mm;font-size:7.4pt;color:#7a7a7a;display:flex;justify-content:space-between;gap:8mm}
.f-pied span{font-weight:600;color:#0d0d0d;}
.f-h{font-size:10.5pt;font-weight:600;color:#0d0d0d;margin-top:2mm;display:flex;align-items:baseline;gap:3mm}
.f-h small{font-size:7.8pt;font-weight:500;color:#7a7a7a}
.f-2col{display:grid;grid-template-columns:1fr 88mm;gap:6mm;align-items:start}
.f-kv{border-collapse:collapse;width:100%}
.f-kv td{padding:1.6mm 0;border-bottom:.5pt solid #efefef;vertical-align:top}
.f-kv td:first-child{color:#737373;width:38mm;padding-right:3mm}
.f-plan{border:.6pt solid #e6e6e6;border-radius:2mm;padding:2mm}
.f-plan .plan-svg{width:100%;height:auto;display:block}
.f-leg{display:flex;gap:4mm;font-size:7.4pt;color:#737373;margin-top:1.5mm;flex-wrap:wrap}
.f-leg i{display:inline-block;width:3.2mm;height:2.2mm;margin-right:1.2mm;vertical-align:-.2mm}
.l-parc{border:1pt solid #c1121f}.l-env{border:1pt dashed #0d0d0d;background:rgba(13,13,13,.06)}.l-vol{background:#0d0d0d}
.f-chiffres{display:grid;grid-template-columns:repeat(4,1fr);gap:3mm}
.f-chiffres>div{border:.6pt solid #e6e6e6;border-radius:2mm;padding:2.5mm 3mm;display:flex;flex-direction:column}
.f-chiffres span{font-size:7.6pt;font-weight:400;color:#737373}
.f-chiffres b{font-family:'Geist',sans-serif;font-size:18pt;font-weight:300;letter-spacing:-.02em;color:#0d0d0d;margin-top:.5mm}
.f-chiffres small{font-size:7.6pt;color:#7a7a7a}
.f-tab{width:100%;border-collapse:collapse;font-size:8.8pt}
.f-tab th{text-align:left;font-size:7.8pt;font-weight:500;color:#737373;padding:1.4mm 2mm;border-bottom:.9pt solid #0d0d0d}
.f-tab td{padding:1.2mm 2mm;border-bottom:.5pt solid #efefef;vertical-align:top}
.f-tab.regles td:first-child{width:50mm;color:#4a4a4a}
.f-tab.regles td:nth-child(2){width:34mm}
.f-th td{font-size:8pt;font-weight:600;color:#0d0d0d;background:#f6f6f6;padding:1.2mm 2mm}
.f-val{font-weight:600;color:#0d0d0d}
.f-val .rv{font-size:inherit;font-weight:inherit;color:inherit}
.f-val .rv.txt{font-weight:500;font-size:8.4pt}
.f-val .rv small{font-size:7.6pt;font-weight:500;color:#737373}
.f-val.nd .rv{font-weight:400;color:#9e9e9e}
.f-val .rv.txt{display:block;-webkit-line-clamp:unset;overflow:visible}
.f-srcl{font-weight:400;font-size:8pt;color:#4a4a4a;margin-top:.8mm}
.f-src{font-family:'Geist Mono',monospace;font-size:7pt;font-weight:500;color:#4a4a4a;white-space:nowrap;display:inline-flex;align-items:center;gap:1mm}
.f-src::before{content:"";width:1.5mm;height:1.5mm;border-radius:.2mm;background:#737373}
.f-src.cite::before{background:#2d6a4f}.f-src.officiel::before{background:#0d0d0d}.f-src.saisi::before{background:#5b4a8a}.f-src.saisi{color:#5b4a8a}.f-src.estime::before,.f-src.non_cite::before{background:#8a5a00}.f-src.estime{color:#7a4f00}.f-src.nd::before{background:none;border:.5pt solid #737373}
/* Signature : la référence citée écrite comme une cote */
.f-cote{position:relative;display:inline-block;font-family:'Geist Mono',monospace;font-size:7.4pt;color:#4a4a4a;padding:0 1.2mm .4mm;border-bottom:.5pt solid #7a7a7a;line-height:1.3;margin-left:1mm}
.f-cote::before,.f-cote::after{content:"";position:absolute;bottom:-.9mm;width:.5pt;height:1.8mm;background:#7a7a7a}.f-cote::before{left:0}.f-cote::after{right:0}
.f-tab i{color:#7a7a7a;font-size:8pt}
.f-niv{font-size:7.4pt;font-weight:500;width:24mm;white-space:nowrap;color:#737373}
.f-niv::before{content:"";display:inline-block;width:1.8mm;height:1.8mm;border-radius:50%;margin-right:1.4mm;vertical-align:.1mm;border:.5pt solid #737373}
.f-niv.n3{color:#c1121f}.f-niv.n3::before{background:#c1121f;border-color:#c1121f}.f-niv.n2{color:#7a4f00}.f-niv.n2::before{background:#8a5a00;border-color:#8a5a00}
.f-det{color:#737373;font-size:8.2pt}
.f-note{font-size:8.4pt;color:#4a4a4a;background:#f6f6f6;border-radius:1.5mm;padding:2mm 3mm}
.f-note.alerte{background:#fdf1dc;color:#5c3c00}
.f-dest{display:grid;grid-template-columns:repeat(3,1fr);gap:3mm;font-size:8.2pt;color:#4a4a4a}
.f-dest>div{border:.6pt solid #e6e6e6;border-radius:2mm;padding:2mm 2.5mm}
.f-dest b{display:block;font-size:7.4pt;color:#0d0d0d;margin-bottom:1mm}
.f-risques{display:flex;flex-wrap:wrap;gap:1.5mm}
.f-risques span{border:.6pt solid #e6e6e6;border-radius:3mm;padding:.8mm 2.5mm;font-size:8.2pt}
.f-risques span.s{border-color:#e3b27a;background:#fdf1dc;color:#5c3c00;font-weight:600}
.f-tab.cap td,.f-tab.cap th{text-align:right}
.f-tab.cap td:first-child,.f-tab.cap th:first-child{text-align:left;color:#737373}
.f-vues{display:grid;grid-template-columns:1fr 1fr;gap:3mm}
.f-vues figure{margin:0}
.f-vues img{width:100%;height:62mm;object-fit:cover;border-radius:1.5mm;border:.6pt solid #e6e6e6;display:block}
.f-vues figcaption{font-size:7.4pt;color:#7a7a7a;margin-top:.8mm}
.f-bilan{display:grid;grid-template-columns:repeat(6,1fr);gap:2mm}
.f-bilan>div{border:.6pt solid #e6e6e6;border-radius:2mm;padding:2mm;text-align:center;display:flex;flex-direction:column;gap:.6mm}
.f-bilan b{font-family:'Geist',sans-serif;font-size:16pt;font-weight:300;color:#0d0d0d}
.f-bilan span{font-size:7.2pt;color:#737373;line-height:1.25}
.f-bilan .zero b{color:#cccccc}
.f-lim{margin-left:5mm;font-size:8pt;color:#4a4a4a;display:flex;flex-direction:column;gap:.9mm}
.f-mention{font-size:8pt;color:#0d0d0d;border:.8pt solid #0d0d0d;border-radius:2mm;padding:2.5mm 3mm;font-weight:500}

@media screen and (max-width:1100px){ .a4{zoom:.72} }
@media screen and (max-width:760px){ .a4{zoom:.44} }

@page{size:A4;margin:0}
@media print{
  html,body{height:auto;overflow:visible;background:#fff}
  #bar,#nav,#dossier-head,.f-barre,.view:not(#v-fiche),#act-modeler{display:none!important}
  #shell,#main{display:block;overflow:visible;height:auto}
  #v-fiche{display:block!important;padding:0;background:#fff}
  #fiche-pages{display:block;padding:0}
  /* Une page qui déborderait continue sur la feuille suivante : rien n'est jamais coupé à l'impression. */
  .a4{box-shadow:none;margin:0;page-break-after:always;break-after:page;min-height:297mm;height:auto;zoom:1}
  .a4:last-child{page-break-after:auto;break-after:auto}
  .f-ag:empty{display:none}
  *{-webkit-print-color-adjust:exact;print-color-adjust:exact}
}

.f-tab.dest td:first-child{width:30mm;font-size:7.4pt;font-weight:600;white-space:nowrap}
.f-tab.dest .oui{color:#2d6a4f}.f-tab.dest .cdt{color:#8a5a00}.f-tab.dest .non{color:#c1121f}
.f-tab.dest td{font-size:8.4pt;color:#4a4a4a}
.f-tab.regles{font-size:8.3pt}
.f-tab.regles td{padding:.85mm 2mm}
.f-tab.regles .f-th td{padding:.9mm 2mm}

.f-vues.trois{grid-template-columns:repeat(3,1fr)}
.f-vues.trois img{height:38mm}
.f-tab.regles td{padding:.7mm 2mm}
.f-tab.dest td{font-size:8pt;padding:.9mm 2mm}

/* ── Pièces graphiques (2026-11-18) : plans masse vectoriels à l'échelle, vues 3D ── */
.pg-plan .pm-svg{display:block;width:100%;height:auto}
.f-plan.pm .pm-svg{display:block;width:84mm;height:auto;margin:0 auto}   /* largeur exacte : l’échelle imprimée reste vraie */
.f-plan.pm{padding:1.5mm}
.pg-leg{gap:3.5mm;margin-top:0}
.l-pm-vol{background:#333333;border:.6pt solid #0d0d0d}.l-pm-vois{background:#d6d6d6;border:.5pt solid #9e9e9e}
.l-pm-voie{background:#cccccc;box-shadow:0 0 0 1pt #f8f8f8 inset}.l-pm-jard{background:#d3e2c0}
.l-pm-arb{background:#a9c58f;border-radius:50%;width:2.6mm!important;height:2.6mm!important;border:.5pt solid #6e9152}
.l-pm-parc{border-top:1.2pt dashed #c1121f;height:0!important;vertical-align:.6mm!important}
.l-pt-bat{background:repeating-linear-gradient(45deg,#0d0d0d 0 .4pt,#fff .4pt 2.2pt);border:.8pt solid #0d0d0d}
.l-pt-parc{border-top:1.2pt dashed #0d0d0d;height:0!important;vertical-align:.6mm!important}
.l-pt-recul{border-top:1pt solid #c1121f;height:0!important;vertical-align:.6mm!important}
.l-pt-ex{border:.8pt dotted #7a7a7a}
.pg-vues{display:grid;grid-template-columns:2fr 1fr;gap:3mm;align-items:start}
.pg-vues figure,.pg-hero,.pg-petite{margin:0}
/* Les images sont rendues au rapport exact de leur case (4:3, 2:1) et jamais recadrées : le bâtiment reste entier. */
.pg-vues img,.pg-hero img,.pg-petite img{width:100%;height:auto;display:block;border-radius:1.2mm;border:.6pt solid #e6e6e6;object-fit:contain;background:#eef0f1}
.pg-axo img,.pg-pietons img,.pg-petite img{aspect-ratio:4/3}
.pg-hero img{aspect-ratio:2/1}
.pg-pietons{display:flex;flex-direction:column;gap:1.5mm}
.pg-vues figcaption,.pg-hero figcaption,.pg-petite figcaption{font-size:7.2pt;color:#7a7a7a;margin-top:.6mm;line-height:1.25}
.pg-surf td:first-child{width:62mm}
.pm-n{font-size:2.6px;font-weight:600;fill:#0d0d0d}
.pm-ech{font-size:2px;fill:#0d0d0d}.pm-ech.b{font-weight:600;font-size:2.3px}
.pm-rue{font-size:2.5px;font-style:italic;fill:#666666;paint-order:stroke;stroke:#f8f8f8;stroke-width:.6px;}
.pm-niv{font-size:2.8px;font-weight:600;fill:#fff;paint-order:stroke;stroke:#8f0d17;stroke-width:.35px}
.pm-niv.t{fill:#0d0d0d;font-size:2.3px;stroke:none}
.pm-h{font-size:1.7px;fill:#4a4a4a}
.pm-hv{font-size:1.65px;fill:#7a7a7a}
.pm-ruet{font-size:2.1px;fill:#4a4a4a;font-weight:600;paint-order:stroke;stroke:#f6f7f9;stroke-width:.5px}
.pt-parcno{font-size:2px;fill:#7a7a7a;font-style:italic;paint-order:stroke;stroke:#fff;stroke-width:.5px}
.f-dim{color:#737373;font-weight:400;font-size:.92em}
.pm-cote path{fill:none}.pm-cote .ln{stroke:#0d0d0d;stroke-width:.13}.pm-cote .att{stroke:#0d0d0d;stroke-width:.08}
.pm-cote text{font-size:1.75px;fill:#0d0d0d;paint-order:stroke;stroke:#fff;stroke-width:.45px}
.pm-cote.parc text{font-weight:600}
.pm-cote.recul .ln{stroke:#c1121f}.pm-cote.recul text{fill:#c1121f;font-weight:600}
.pm-cote.bat text{font-size:1.65px}
.pm-mit{font-size:1.7px;fill:#c1121f;font-style:italic;font-weight:600}
.pm-fait{stroke:#0d0d0d;stroke-width:.2;stroke-dasharray:2 .6 .3 .6;fill:none}

/* Élévations et coupes cotées (2026-11-20) — SVG en mm : la largeur de 180 mm garde l'échelle vraie à l'impression */
.el-fig{margin:0;display:flex;flex-direction:column;gap:1mm}
.el-fig figcaption{display:flex;justify-content:space-between;align-items:baseline;font-size:8.4pt;color:#0d0d0d}
.el-fig figcaption span{font-family:'Geist Mono',monospace;font-size:7.6pt;color:#4a4a4a}
.el-svg{display:block;width:180mm;height:auto}
.el-mur{fill:#fff;stroke:#0d0d0d;stroke-width:.3;stroke-linejoin:round}
.el-toit{fill:#e6e6e6;stroke:#0d0d0d;stroke-width:.3;stroke-linejoin:round}
.el-vois{fill:#f1f1f1;stroke:#9e9e9e;stroke-width:.15}
.el-fin{stroke:#0d0d0d;stroke-width:.15;fill:none}
.el-niv{stroke:#b4b4b4;stroke-width:.1;fill:none}
.el-baie{fill:#dfe5e8;stroke:#0d0d0d;stroke-width:.14}
.el-porte{fill:#cccccc;stroke:#0d0d0d;stroke-width:.14}
.el-men{stroke:#0d0d0d;stroke-width:.08;fill:none}
.el-loggia{fill:#666666;stroke:#0d0d0d;stroke-width:.12}
.el-bal{fill:#fff;stroke:#0d0d0d;stroke-width:.14}
.el-garde{stroke:#0d0d0d;stroke-width:.12;fill:none}
.el-int{fill:#fff;stroke:none}
.el-poche{fill:#0d0d0d}
.el-rampant{fill:none;stroke:#0d0d0d;stroke-linejoin:round}
.el-vcoupe{fill:#d6d6d6;stroke:#7a7a7a;stroke-width:.15}
.el-sol{stroke:#0d0d0d;stroke-width:.5}
.el-lim{stroke:#0d0d0d;stroke-width:.18;stroke-dasharray:3 .8 .4 .8;fill:none}
.el-limt{font-size:1.7px;fill:#4a4a4a}
.el-plu{stroke:#c1121f;stroke-width:.22;stroke-dasharray:1.6 .8;fill:none}
.el-plut{font-size:1.7px;fill:#c1121f;font-weight:600}
.el-hv{font-size:1.6px;fill:#4a4a4a}
.el-rue{font-size:1.7px;fill:#4a4a4a;font-style:italic}
.el-nomniv{font-size:1.8px;fill:#4a4a4a;font-weight:600}
.el-rappel{stroke:#b4b4b4;stroke-width:.08;stroke-dasharray:.5 .5;fill:none}
.el-tri{fill:#0d0d0d}
.el-cn{font-size:1.9px;font-weight:600;fill:#0d0d0d;font-family:'Geist Mono',monospace}
.el-cnom{font-size:1.6px;fill:#4a4a4a}
.pm-cote.el.tot text{font-weight:600}
.pm-ctrait{stroke:#0d0d0d;stroke-width:.25;stroke-dasharray:4 1 .6 1;fill:none}
.pm-cflec{stroke:#0d0d0d;stroke-width:.3;fill:none}
.pm-ctri{fill:#0d0d0d}
.pm-clet{font-size:2.6px;font-weight:600;fill:#0d0d0d}
.l-el-mur{background:#fff;border:.6pt solid #0d0d0d}
.l-el-vois{background:#f1f1f1;border:.5pt solid #9e9e9e}
.l-el-poche{background:#0d0d0d}
.l-el-vcoupe{background:#d6d6d6;border:.5pt solid #7a7a7a}
.l-el-plu{border-top:1.2pt dashed #c1121f;height:0!important;vertical-align:.6mm!important}
.l-el-lim{border-top:1pt dashed #0d0d0d;height:0!important;vertical-align:.6mm!important}

/* Bâti limitrophe et vues depuis la rue (2026-11-21) */
.f-rue{display:grid;grid-template-columns:1fr 1fr;gap:4mm;margin:3mm 0}
.f-rue figure{margin:0}
.f-rue img{display:block;width:100%;height:auto;border-radius:1mm}
.f-rue figcaption{font-size:7.2pt;color:#7a7a7a;margin-top:.8mm;line-height:1.3}
.f-rue figcaption b{color:#0d0d0d;font-weight:500}

/* Insertion dans le site — visuels réalistes retenus (essai du 2026-11-21) */
.f-ia{display:flex;flex-direction:column;gap:3mm;margin:2mm 0 4mm}
.f-ia figure{margin:0}
.f-ia img{display:block;width:100%;height:auto;max-height:105mm;object-fit:contain;border-radius:1mm}
.f-ia figcaption{font-size:7.2pt;color:#7a7a7a;margin-top:.8mm;line-height:1.3}
.f-ia figcaption b{color:#0d0d0d;font-weight:500}

/* Contenu de la fiche (2026-11-24) : modèles de destinataire et pages, dans la barre (jamais imprimés) */
.f-contenu{flex-basis:100%;display:flex;align-items:center;gap:10px 16px;flex-wrap:wrap;padding-top:10px;border-top:1px solid var(--trait)}
.f-contenu-t{font-size:13px;font-weight:600;color:var(--t1)}
.f-seg{display:flex;border:1px solid var(--trait);border-radius:var(--r);overflow:hidden}
.f-seg button{background:#fff;border:none;border-right:1px solid var(--trait);padding:5px 12px;font:inherit;font-size:13px;color:var(--t2);cursor:pointer}
.f-seg button:last-child{border-right:none}
.f-seg button:hover{background:var(--fond)}
.f-seg button.on{background:var(--t1);color:#fff;font-weight:500}
.f-seg button:disabled{cursor:default}
.f-choix{display:flex;flex-wrap:wrap;gap:4px 14px}
.f-choix label{display:inline-flex;align-items:center;gap:5px;font-size:13px;color:var(--t1);cursor:pointer}
.f-choix label.off{color:var(--t3);cursor:default}
.f-choix input{accent-color:var(--t1)}
