:root {
  color-scheme: dark;
  font-family: "Segoe UI", system-ui, sans-serif;
  --background: #111313;
  --foreground: #f3efe8;
  --panel: #1a1d1d;
  --border: #343838;
  --muted-foreground: #b6b9b3;
  --amber: #f2b77e;
  --mint: #a5e3d2;
  --font-size-base: 1rem;
  --blue: #a0bbf9;
  --green: #94d3b1;
  --orange: #eab183;
  --purple: #c4afee;
  --yellow: #e7cd84;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--background); color: var(--foreground); font-size: 1rem; line-height: 1.5; }
a { color: inherit; }
button, select { font: inherit; }
button, summary, select { cursor: pointer; }
:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; }
.shell { width: min(100% - 3.5rem, 1320px); margin-inline: auto; }
.skip { position: absolute; top: .5rem; left: 1rem; padding: .5rem 1rem; transform: translateY(-180%); background: var(--panel); z-index: 3; }
.skip:focus { transform: none; }
.site-header { border-bottom: 1px solid #262929; }
.masthead { display: flex; justify-content: space-between; align-items: center; gap: .75rem; min-height: 4.65rem; }
.brand { display: inline-flex; gap: .75rem; align-items: center; text-decoration: none; font-weight: 720; white-space: nowrap; letter-spacing: -.025em; }
nav { display: flex; gap: .3rem; align-items: center; }
nav a { padding: .55rem .85rem; border-radius: .5rem; font-size: .9rem; color: var(--muted-foreground); text-decoration: none; white-space: nowrap; }
nav a:hover, nav a[aria-current="page"] { color: var(--foreground); background: #232626; }
.intro { display: flex; justify-content: space-between; align-items: end; gap: .9rem; flex-wrap: wrap; margin-block: 2.45rem 1.75rem; }
.eyebrow { margin: 0 0 .45rem; color: var(--amber); font-size: .83rem; font-weight: 670; letter-spacing: .12em; text-transform: uppercase; }
.eyebrow span { padding-inline: .33rem; }
h1, h2, h3 { margin: 0; letter-spacing: -.035em; line-height: 1.16; }
h1 { font-size: clamp(2.15rem, 5vw, 3.45rem); font-weight: 710; }
.intro p:not(.eyebrow) { margin: .55rem 0 0; color: var(--muted-foreground); }
.draft { border: 1px solid #584732; color: #efc59c; background: #262017; border-radius: 2rem; padding: .35rem .7rem; font-size: .83rem; white-space: nowrap; }
.workspace { display: grid; grid-template-columns: minmax(0, 1fr) minmax(16rem, 21rem); gap: 1rem; align-items: start; }
.viewer, .inspector, .metrics { min-width: 0; border: 1px solid var(--border); border-radius: .95rem; background: var(--panel); }
.viewer { overflow: hidden; }
.toolbar { min-height: 3.85rem; display: flex; justify-content: space-between; align-items: center; gap: .65rem; flex-wrap: wrap; padding: .65rem .8rem; }
.segmented, .views { display: inline-flex; gap: .23rem; padding: .22rem; background: #121515; border: 1px solid #343737; border-radius: .62rem; }
.btn { display: inline-flex; justify-content: center; align-items: center; min-height: 2.3rem; padding: .33rem .66rem; color: var(--foreground); border: 1px solid transparent; background: transparent; border-radius: .44rem; font-size: .88rem; font-weight: 600; line-height: 1.2; text-decoration: none; }
.btn:hover { background: #303636; }
.segmented .btn[aria-pressed="true"] { color: #1e1710; background: var(--amber); }
.views .btn { color: var(--muted-foreground); }
.views .btn[aria-pressed="true"] { color: var(--foreground); background: #323838; }
.vue { position: relative; isolation: isolate; aspect-ratio: 1.91; min-height: 270px; overflow: hidden; background: #070a0a; }
.vue canvas { display: block; position: absolute; inset: 0; width: 100%; height: 100%; touch-action: pan-y; cursor: grab; }
.vue .fallback { cursor: default; }
.vue .scene:active { cursor: grabbing; }
.view-label { position: absolute; top: .85rem; left: .85rem; display: inline-flex; gap: .52rem; align-items: center; pointer-events: none; color: #e9eee9; font-size: .8rem; background: #171d1de8; border: 1px solid #3c4945; border-radius: 2rem; padding: .31rem .62rem; }
.view-label span:first-child { width: .44rem; height: .44rem; border-radius: 100%; background: var(--mint); }
.zoom { position: absolute; right: .8rem; bottom: .8rem; display: flex; border: 1px solid #3c4945; background: #171d1de8; border-radius: .6rem; padding: .17rem; }
.zoom .btn { min-width: 2.1rem; font-size: 1.14rem; padding: .2rem .4rem; }
.measure { position: absolute; pointer-events: none; inset: auto 8.3rem .85rem .85rem; width: max-content; max-width: calc(100% - 9.2rem); background: #242d2bf0; border-radius: .4rem; color: #def6ed; font-size: .8rem; padding: .35rem .6rem; line-height: 1.4; }
.viewer-details { padding: .78rem .93rem; }
.viewer-details p { margin: 0; }
.viewer-details [data-step] { font-size: .93rem; font-weight: 620; }
#aide-eau-trafic { color: var(--muted-foreground); font-size: .82rem; margin-top: .16rem; }
.layers { margin-top: .62rem; padding-top: .55rem; border-top: 1px solid var(--border); }
.layers summary { width: fit-content; color: var(--muted-foreground); font-size: .85rem; font-weight: 620; }
.layers summary:hover { color: var(--foreground); }
.layer-controls { display: flex; gap: .4rem; align-items: center; flex-wrap: wrap; padding: .65rem 0 .18rem; }
.layer-controls .btn, .check { border: 1px solid #444949; }
.layer-controls .btn[aria-pressed="true"] { border-color: #709b90; background: #263832; color: #d3f3e8; }
.check { display: inline-flex; align-items: center; gap: .42rem; min-height: 2.3rem; padding: .28rem .52rem; border-radius: .44rem; font-size: .88rem; cursor: pointer; }
.check input { accent-color: var(--mint); width: .9rem; height: .9rem; margin: 0; }
.inspector { overflow: hidden; }
.inspector-top, .piece-card { padding: 1.12rem; }
.inspector-top { border-bottom: 1px solid var(--border); }
.inspector-top label { display: block; margin-bottom: .42rem; font-weight: 630; font-size: .89rem; }
.inspector select { width: 100%; height: 2.72rem; color: var(--foreground); border: 1px solid #484e4d; border-radius: .5rem; padding: .4rem .65rem; background: #212626; font-size: .94rem; }
.quick-parts { display: flex; gap: .32rem; margin-top: .65rem; flex-wrap: wrap; }
.quick-parts .btn { min-height: 2.15rem; padding: .3rem .55rem; background: #242828; color: #e0e1dc; }
.quick-parts .btn:hover { background: #343a39; }
.quick-parts .btn[aria-pressed="true"] { background: #294239; color: #d2f5e8; border-color: #4a7465; }
.piece-card h2 { font-size: 1.45rem; font-weight: 680; }
.piece-card p { color: var(--muted-foreground); margin: .5rem 0 .85rem; font-size: .92rem; }
.piece-card dl { margin: 0; font-size: .88rem; }
.piece-card dt { color: #c2c7c1; padding-top: .65rem; margin-top: .6rem; border-top: 1px solid var(--border); font-size: .81rem; }
.piece-card dd { margin: .15rem 0 0; font-weight: 600; overflow-wrap: anywhere; }
.part-links { display: grid; gap: .42rem; margin-top: 1rem; }
.part-links .btn { border-color: #535e59; max-width: 100%; overflow-wrap: anywhere; }
.part-empty { padding-inline: 1.12rem; color: var(--muted-foreground); }
.metrics { margin-top: 1rem; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.metrics div { padding: .8rem 1rem; min-width: 0; }
.metrics div + div { border-left: 1px solid var(--border); }
.metrics span { display: block; color: var(--muted-foreground); font-size: .83rem; }
.metrics strong { display: block; margin-top: .14rem; font-size: clamp(1.15rem, 2.4vw, 1.65rem); letter-spacing: -.035em; }
.metrics small { color: var(--muted-foreground); font-size: .8rem; font-weight: 500; letter-spacing: 0; }
.installation { display: grid; grid-template-columns: minmax(13rem, .8fr) minmax(0, 1.6fr); gap: 1.1rem 2rem; margin-top: 2rem; padding-block: 1.6rem; border-top: 1px solid var(--border); }
.installation h2 { font-size: 1.35rem; }
.installation p { margin: .45rem 0 0; color: var(--muted-foreground); }
.installation ul { margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .85rem; list-style: none; }
.installation li { border-left: 2px solid #58776e; padding-left: .72rem; }
.installation li span { display: block; font-size: .87rem; color: var(--muted-foreground); padding-top: .22rem; }
.footer { display: flex; justify-content: space-between; gap: .8rem; border-top: 1px solid var(--border); padding-block: 1rem 1.5rem; font-size: .86rem; color: var(--muted-foreground); }
.text-small { font-size: .86rem; }
.text-muted { color: var(--muted-foreground); }
.text-end { text-align: end; }
.tabular-nums { font-variant-numeric: tabular-nums; }
.sr-only { position: absolute; inline-size: 1px; block-size: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
#trafic-mixed-cut { margin-bottom: 2rem; }
#trafic-mixed-cut > div:first-child p { margin-block: .4rem 0; }
.mixed-table { border-collapse: collapse; width: 100%; }
.mixed-table th, .mixed-table td { text-align: start; padding: .55rem .65rem; border-bottom: 1px solid var(--border); }
.mixed-table .text-end { text-align: end; }
.mixed-table thead, .mixed-table tfoot { background: var(--panel); }
.rolls .roll { border: 1px solid var(--border); border-radius: .7rem; background: var(--panel); padding: 1rem; }
.rolls .roll h3 { font-size: 1.13rem; }
@media (max-width: 920px) {
  .workspace { grid-template-columns: minmax(0, 1fr) minmax(14rem, 17.5rem); gap: .75rem; }
  .installation { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .shell { width: calc(100% - 1.6rem); }
  .masthead { min-height: 3.65rem; }
  .brand { gap: .4rem; font-size: .94rem; }
  .brand img { width: 29px; height: 29px; }
  nav a { padding: .45rem .48rem; font-size: .79rem; }
  .intro { margin-block: 1.5rem 1.1rem; }
  .workspace { grid-template-columns: minmax(0, 1fr); }
  .toolbar { padding-inline: .55rem; gap: .4rem; }
  .toolbar .btn { font-size: .81rem; padding-inline: .51rem; }
  .vue { aspect-ratio: 1.32; min-height: 254px; }
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metrics div:nth-child(3) { border-left: 0; }
  .metrics div:nth-child(n+3) { border-top: 1px solid var(--border); }
  .installation ul { grid-template-columns: 1fr; }
}
@media (max-width: 355px) {
  .masthead { flex-wrap: wrap; padding-block: .45rem; }
  .vue { min-height: 240px; }
}
