.terrain { --terrain-ink:#193b48; --terrain-edge:#b8c8c6; color:var(--terrain-ink); scroll-margin-top:5rem; min-width:0 }
.terrain [hidden] { display:none!important }
.terrain .terrain-form,.wall-pictures,.mur-exemple>div { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,14rem),1fr)); gap:1rem }
.terrain label { display:grid; align-content:start; gap:.35rem; font-weight:650; min-width:0 }
.terrain :is(input,select,textarea) { box-sizing:border-box; font:inherit; font-weight:400; max-width:100%; width:100%; min-width:0; padding:.6rem; border:1px solid #72898d; border-radius:5px; color:#193b48; background:white }
.terrain button,.terrain .button { min-height:44px; align-self:end; cursor:pointer }
.terrain .button { color:white; background:#193b48; padding:.65rem 1rem; border:0; border-radius:.35rem; font-weight:700; display:inline-flex; align-items:center; justify-content:center }
.terrain fieldset { min-width:0; border:1px solid var(--terrain-edge); border-radius:8px; padding:1rem }
.terrain legend { font-weight:700; padding:0 .4rem }
.terrain .terrain-source { margin:1rem 0; border-block:1px solid var(--terrain-edge); padding:.65rem 0; overflow-wrap:anywhere }
.terrain summary { cursor:pointer; font-weight:700; min-height:36px; align-content:center }
.terrain .terrain-answer { font-size:clamp(1.35rem,4vw,2rem); font-weight:750; margin-bottom:.2em }
.terrain table { width:100%; border-collapse:collapse; margin:1rem 0; color:#193b48; table-layout:auto }
.terrain table :is(th,td) { padding:.35rem .5rem; text-align:left; border-bottom:1px solid var(--terrain-edge); white-space:normal }
.terrain caption { text-align:left; font-weight:700 }
.terrain .terrain-paper { padding:0; margin:.8rem 0; background:transparent; border:0 }
.terrain-paper svg { width:100%; max-width:37rem; height:auto; display:block; margin:auto }
.terrain-paper figcaption,.mur-exemple figcaption { font-size:.95em; padding:.55rem 0 }
.terrain-paper-controls { max-width:37rem; margin:1rem auto; padding:1rem; background:#eef3ef; border-radius:.5rem }
.terrain-paper-controls label { display:flex; align-items:center; justify-content:space-between }
.terrain-paper-controls output { font-variant-numeric:tabular-nums; white-space:nowrap }
.terrain-paper-controls input[type=range] { height:44px; accent-color:#315e54 }
.terrain .mur-exemple { margin:1rem 0 }
.mur-exemple img,.wall-pictures img { display:block; width:100%; height:auto; border-radius:4px }
.mur-exemple>div { grid-template-columns:1fr 1fr; gap:.45rem }
.mur-exemple>div img { height:100%; max-height:20rem; object-fit:cover }
.terrain .wall-pictures figure { margin:.5rem 0 }
.terrain .terrain-actions { display:flex; flex-wrap:wrap; align-items:center; gap:1rem }
.ouate-zone-card { margin:1rem 0; padding:1rem; border:1px solid var(--terrain-edge); border-inline-start:4px solid #416953; border-radius:.5rem; overflow-wrap:anywhere }
.ouate-zone-card h4 { margin:0 }
.ouate-zone-card dl { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:.45rem .8rem }
.ouate-zone-card dd { margin:0; font-weight:650 }
#ouate-zone-form details { margin:1rem 0 }
@media print {
 html.paper-print :is(body,main,article,section,div):has(#trois-les)>*:not(#trois-les):not(:has(#trois-les)) { display:none!important }
 html.paper-print #trois-les { display:block!important; color:black; margin:0; padding:0 }
 html.paper-print #trois-les .terrain-paper-controls { display:none!important }
 html.paper-print #paper-middle { transform:translateY(48px) }
 html.paper-print #trois-les figure { break-inside:avoid; print-color-adjust:exact }
}
