/* Jetons de l’atelier : papier chaud, établi vert profond, pièces ambrées. */
/* Réserver les commandes avant leur initialisation, sans déplacement de scène. */
.f-page:not(.f-ready) .f-js{visibility:hidden}
/* Décor original d’établi : distinct des schémas scientifiques, sans interaction. */
@media(forced-colors:active){.f-page .f-intro h1,.f-page .f-intro-copy p{text-shadow:none!important}.f-page .f-workbench,.f-page .f-inspector,.f-page .f-reading,.f-page .f-sources{box-shadow:none!important}}
.f-page{position:relative;isolation:isolate;background:#102d29}
.f-page::before{content:"";position:fixed;inset:0;z-index:-1;pointer-events:none;background-color:#102d29;background-image:linear-gradient(90deg,rgba(7,27,24,.76),rgba(9,32,27,.38) 48%,rgba(9,30,26,.64)),url("/assets/fabrique/workshop-background-v1.webp");background-size:cover;background-position:center;background-repeat:no-repeat}
.f-page .f-masthead{color:#f9f4e5;border-bottom-color:#b4c5ac45;background:#0c282636}
.f-page .f-intro{color:#fbf4e2}
.f-page .f-intro .f-breadcrumb,.f-page .f-intro .f-eyebrow,.f-page .f-intro .f-access{color:#dbe4d2}
.f-page .f-intro h1 span{color:#e5be69}
.f-page .f-intro-copy p,.f-page .f-intro h1{text-shadow:0 2px 18px #08231dcc}
.f-page .f-mode-actions button{color:var(--f-ink);background:#f5f3ec;border-color:#c8d1bd}
.f-page .f-status{color:#173c3a}
.f-page .f-workbench,.f-page .f-inspector{box-shadow:0 18px 50px #051d1b45}
.f-page .f-challenges>.f-section-title,.f-page .f-challenges>.f-section-title .f-eyebrow,.f-page .f-challenges>.f-section-title>span{color:#f3efd9}
.f-page .f-reading{padding:28px;border:1px solid #d8dfcd;border-radius:18px;background:#f5f3ec;box-shadow:0 16px 45px #051d1b38}
.f-page .f-sources{box-shadow:0 16px 45px #051d1b38}
.f-page .f-next,.f-page .f-next .f-eyebrow,.f-page .f-footer{color:#f1efdd}
.f-page .f-next li,.f-page .f-footer{border-color:#c4d2b84d}
.f-page .f-masthead a:focus-visible,.f-page .f-intro a:focus-visible,.f-page .f-next a:focus-visible,.f-page .f-footer a:focus-visible{outline-color:#f1d589}
@media(max-width:600px){.f-page::before{background-image:linear-gradient(90deg,rgba(7,27,24,.84),rgba(9,32,27,.65) 62%,rgba(9,30,26,.61)),url("/assets/fabrique/workshop-background-mobile-v1.webp");background-position:80% center}.f-page .f-reading{padding:19px 16px}}
@media(forced-colors:active){.f-page{background:Canvas}.f-page::before{display:none;background-image:none}.f-page .f-masthead,.f-page .f-intro,.f-page .f-intro .f-breadcrumb,.f-page .f-intro .f-eyebrow,.f-page .f-intro .f-access,.f-page .f-status,.f-page .f-challenges>.f-section-title,.f-page .f-challenges>.f-section-title .f-eyebrow,.f-page .f-challenges>.f-section-title>span,.f-page .f-next,.f-page .f-next .f-eyebrow,.f-page .f-footer{color:CanvasText;text-shadow:none}.f-page .f-reading{background:Canvas;border-color:CanvasText}.f-page .f-mode-actions button{color:ButtonText;background:ButtonFace;border-color:ButtonText}.f-page .f-masthead a:focus-visible,.f-page .f-intro a:focus-visible,.f-page .f-next a:focus-visible,.f-page .f-footer a:focus-visible{outline-color:Highlight}}
:root{color-scheme:light;--f-paper:#f5f3ec;--f-ink:#193c3b;--f-muted:#526966;--f-line:#d5ddd5;--f-gold:#f3cb73;--f-green:#2f665c;--f-white:#fffef8;--f-radius:18px}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-size:15px;color:var(--f-ink);background:var(--f-paper);line-height:1.55}button,input,select,textarea{font:inherit;color:inherit}button,a,input,select,textarea,summary{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:default;opacity:.48}a{color:inherit;text-underline-offset:3px}[hidden]{display:none!important}button{border:1px solid var(--f-line);border-radius:9px;background:var(--f-white);min-height:42px;padding:9px 13px;line-height:1.3}button:hover:not(:disabled){background:#e9efe7;border-color:#77938a}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible,[tabindex]:focus-visible{outline:3px solid #8e650c;outline-offset:4px}input,select,textarea{max-width:100%;min-width:0}select,input[type=text],textarea{width:100%;padding:10px 12px;border:1px solid #a8bab0;border-radius:8px;background:#fffef9;min-height:44px}textarea{resize:vertical}input[type=range]{accent-color:var(--f-green);width:100%}label{display:block;font-size:13px;font-weight:600}h1,h2,h3,p{margin:0}h2,h3{line-height:1.2}h2{font-size:26px;letter-spacing:-.7px}h3{font-size:18px}summary{cursor:pointer;font-weight:650;min-height:44px;padding:12px 0}.f-skip{position:fixed;left:12px;top:-100px;z-index:20;background:var(--f-gold);padding:12px 18px;border-radius:8px}.f-skip:focus{top:10px}.f-masthead{max-width:1440px;margin:auto;padding:20px 44px;display:flex;justify-content:space-between;gap:24px;align-items:center;border-bottom:1px solid var(--f-line)}.f-brand{font-weight:750;letter-spacing:-.5px;font-size:18px;text-decoration:none;display:flex;align-items:center;gap:9px}.f-masthead nav{display:flex;gap:24px;font-size:13px}.f-masthead nav a{text-decoration:none}.f-main{max-width:1440px;padding:0 44px;margin:auto}.f-intro{display:flex;justify-content:space-between;align-items:center;gap:35px;padding:30px 0 28px}.f-breadcrumb{display:flex;gap:9px;flex-wrap:wrap;font-size:12px;color:var(--f-muted);margin-bottom:18px}.f-breadcrumb a{text-decoration:none}.f-eyebrow{font-size:11px;font-weight:700;letter-spacing:1.5px;text-transform:uppercase;line-height:1.5;margin-bottom:8px;color:var(--f-muted)}.f-intro h1{font-family:"Iowan Old Style",Baskerville,"Times New Roman",serif;font-weight:500;font-size:clamp(44px,5.6vw,78px);letter-spacing:-3px;line-height:1.05}.f-intro h1 span{color:#b68732}.f-intro-copy{max-width:430px;padding:12px 0 0}.f-intro-copy p{font-size:20px;line-height:1.4;letter-spacing:-.4px}.f-intro-copy strong{font-weight:650}.f-access{display:block;font-size:12px;color:var(--f-muted);margin-top:12px}.f-discoveries{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-bottom:24px}.f-discovery{display:flex;align-items:center;text-align:left;gap:15px;padding:17px 20px;border-radius:12px;min-height:90px}.f-discovery[aria-pressed=true]{background:var(--f-ink);color:#fff9e9;border-color:var(--f-ink)}.f-discovery[aria-pressed=true]:hover{background:#28534e}.f-discovery-number{font-family:ui-monospace,monospace;font-size:17px;opacity:.6}.f-discovery strong,.f-discovery small{display:block}.f-discovery strong{font-size:15px}.f-discovery small{font-size:12px;opacity:.8;margin-top:5px}.f-discovery-arrow{margin-left:auto;font-size:22px}.f-modebar{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:16px;flex-wrap:wrap}.f-modes{display:flex;gap:5px;padding:4px;background:#e6e9df;border-radius:12px}.f-modes button{background:transparent;border-color:transparent;min-width:112px;font-weight:600}.f-modes [aria-pressed=true]{background:var(--f-white);box-shadow:0 2px 4px #1b413412}.f-mode-actions{display:flex;gap:8px}.f-mode-actions button{background:transparent}.f-mode-actions span{margin-left:6px}.f-status{font-size:13px}.f-status:not(:empty){padding:10px 15px;background:#e5edde;border-radius:10px;margin:10px 0}.f-workspace{display:grid;grid-template-columns:minmax(0,1fr) 285px;gap:16px;align-items:start;scroll-margin-top:20px}.f-workbench{min-width:0;background:var(--f-white);border:1px solid #b8c9bd;border-radius:var(--f-radius);overflow:hidden;box-shadow:0 8px 30px #193c3b07}.f-scene-top{display:flex;justify-content:space-between;gap:12px;align-items:center;background:var(--f-ink);color:#fff8e8;padding:15px 22px;font-weight:600;font-size:13px}.f-scene-top>div{display:flex;align-items:center;gap:10px}.f-live-dot{width:7px;height:7px;border-radius:50%;background:var(--f-gold);flex-shrink:0}.f-simulation-state{font-weight:400;font-size:11px;opacity:.8}.f-viewbar{display:flex;justify-content:space-between;gap:8px;flex-wrap:wrap;align-items:center;padding:12px 18px;border-bottom:1px solid #e4e8df;background:#faf9f2}.f-viewbar>div{display:flex;gap:3px;flex-wrap:wrap}.f-viewbar button{padding:6px 10px;font-size:12px;min-height:36px;background:transparent;border-color:transparent}.f-viewbar [aria-pressed=true]{background:#e2eadd;border-color:#afc1b2;font-weight:600}.f-viewbar>[data-action=open]{border-color:#cbd5c9}.f-viewport{position:relative;background:radial-gradient(ellipse at 55% 50%,#fffef7 15%,#edf0e7 100%);overflow:hidden}.f-scene{width:100%;height:440px;display:flex;align-items:center;justify-content:center;touch-action:pan-y}.f-machine{display:block;width:100%;height:100%;overflow:visible;max-height:500px}.f-zoom{position:absolute;right:15px;bottom:14px;display:flex;gap:2px;background:#fffff1dc;border:1px solid #c1cdbe;border-radius:9px;padding:2px}.f-zoom button{font-size:19px;min-width:35px;min-height:34px;padding:4px;border-color:transparent;background:transparent}.f-view-note{font-size:11px;color:var(--f-muted);padding:8px 22px;border-top:1px solid #e6ebdf;min-height:38px}.f-drive{display:flex;align-items:center;gap:14px;padding:15px 20px;border-top:1px solid #e6ebdf}.f-drive button{font-size:12px;white-space:nowrap}.f-drive label{flex:1;max-width:300px;min-width:110px;font-size:11px}.f-drive output{float:right;font-family:ui-monospace,monospace;font-weight:500}.f-drive input{display:block;margin:7px 0 0}.f-play{background:var(--f-gold);border-color:#d1a24b!important;min-width:103px;font-weight:650}.f-play:hover{background:#eed083!important}.f-summary{display:grid;grid-template-columns:1fr 1fr 1.3fr;background:#eaf0e4;border-top:1px solid #d3dfcc;padding:16px 22px;gap:16px}.f-summary span{display:block;font-size:11px;color:#526966}.f-summary strong{font-family:ui-monospace,SFMono-Regular,monospace;font-size:17px;font-weight:600;line-height:1.4;display:block;margin-top:4px}.f-summary .f-ratio-caption{font-family:inherit;font-weight:400;font-size:11px}.f-task{background:#fff4d6;padding:22px;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px 25px;border-top:1px solid #e2d0a1}.f-task h2{font-size:22px;margin-bottom:7px}.f-task p:not(.f-eyebrow){font-size:13px;line-height:1.6}.f-task-actions{display:flex;flex-direction:column;gap:8px;align-items:center;justify-content:center}.f-primary{background:var(--f-ink);border-color:var(--f-ink);color:white;font-weight:600}.f-primary:hover:not(:disabled){background:#315b51}.f-text-button{border-color:transparent;background:transparent;min-height:35px;font-size:12px}.f-hint,.f-feedback{grid-column:1/-1}.f-hint{border-left:3px solid #b38a39;padding-left:12px}.f-feedback{padding:16px 18px;background:#fffdf6;border:1px solid #c9c0a4;border-radius:10px}.f-feedback strong{display:block;font-size:17px;margin-bottom:5px}.f-feedback[data-success=true]{background:#e8f3e1;border-color:#8aaa74}.f-feedback button{margin-top:12px}.f-inspector{padding:21px 19px;background:#e8ede3;border:1px solid #c1cebd;border-radius:var(--f-radius);font-size:12px}.f-panel-heading{margin-bottom:18px}.f-panel-heading h2{font-family:"Iowan Old Style",Baskerville,serif;font-size:30px;font-weight:500}.f-panel-heading>p:last-child{font-size:12px;color:var(--f-muted);margin-top:8px}.f-inspector select{margin:6px 0 11px;font-size:13px;padding:8px}.f-inspector button{font-size:12px}.f-part-editor{background:var(--f-white);border:1px solid #cbd4c4;padding:14px;border-radius:10px;margin:4px 0 14px}.f-part-heading{display:flex;justify-content:space-between;gap:9px;align-items:center;flex-wrap:wrap;margin-bottom:12px}.f-part-heading strong{font-size:15px}.f-part-heading>span{font-size:10px;color:var(--f-muted)}.f-part-reading{margin:0 0 12px;font-family:ui-monospace,monospace;font-size:11px;line-height:1.7}.f-part-editor button{width:100%;min-height:36px}.f-danger{color:#8a3c27}.f-connect,.f-palette{border-top:1px solid #bdcab7}.f-help{font-size:11px;color:var(--f-muted);margin-bottom:10px}.f-connections{padding:0;margin:8px 0 0;list-style:none}.f-connections li{display:flex;align-items:center;justify-content:space-between;gap:9px;font-size:11px;padding:7px 0;border-bottom:1px solid #d4dccf}.f-connections button{font-size:16px;min-height:32px;min-width:32px;padding:2px 7px}.f-palette>div{display:flex;flex-wrap:wrap;gap:6px;padding-bottom:12px}.f-palette button{min-height:35px}.f-edit-actions{display:grid;grid-template-columns:1fr;gap:7px;padding-top:12px}.f-edit-actions [data-action=save]{background:var(--f-ink);color:#fffef8;border-color:var(--f-ink)}.f-local-note{font-size:10px;color:var(--f-muted);margin-top:12px}.f-comparison{padding:18px 22px;background:#eff2e9;border-top:1px solid #bbcdb4;font-size:13px}.f-comparison p{margin-bottom:8px}.f-challenges,.f-reading{margin-top:50px}.f-section-title{display:flex;justify-content:space-between;gap:20px;align-items:end;margin-bottom:20px}.f-section-title>span,.f-section-title>p{font-size:12px;color:var(--f-muted);max-width:290px}.f-challenge-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:9px}.f-challenge-grid button{display:flex;align-items:start;gap:10px;padding:16px 12px;text-align:left;border-color:#c6d1c2;background:#fffdf6;min-height:105px}.f-challenge-number{font-family:ui-monospace,monospace;font-size:11px;color:#778775}.f-challenge-grid strong{display:block;font-size:12px}.f-challenge-grid small{display:block;font-size:10px;margin-top:8px;color:var(--f-muted)}.f-challenge-mark{margin-left:auto;font-size:15px}.f-challenge-grid [data-completed=true]{background:#e4efda}.f-challenge-grid [aria-current=true]{border:2px solid #345c4c;padding:15px 11px}.f-reading-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:25px}.f-reading article{padding:22px 0;border-top:2px solid #b8c6b2}.f-reading article p{font-size:13px;line-height:1.8;margin-top:12px}.f-reading .f-formula{font-family:ui-monospace,monospace;font-size:12px;padding:12px;background:#e7ecdf;border-radius:8px;line-height:1.7}.f-reading .f-reference{font-size:11px;color:var(--f-muted)}.f-measurements{margin-top:20px;border-top:1px solid var(--f-line)}.f-table-scroll{overflow:auto}.f-table-scroll table{border-collapse:collapse;min-width:650px;width:100%;font-size:12px}.f-table-scroll th,.f-table-scroll td{text-align:left;padding:12px;border-bottom:1px solid #d5dfcd}.f-table-scroll caption{text-align:left;font-weight:600;padding:12px 0}.f-sources{margin-top:50px;padding:30px;border:1px solid #cad4c2;border-radius:14px;background:#ecefe4}.f-sources>p:not(.f-eyebrow){font-size:13px;max-width:920px;margin-top:14px;line-height:1.8}.f-sources ul{padding-left:20px;font-size:12px;margin:20px 0 0}.f-sources li{margin-bottom:13px}.f-sources li p{color:var(--f-muted);margin-top:3px}.f-sources .f-edition{font-size:11px!important;color:var(--f-muted)}.f-next{display:grid;grid-template-columns:1fr 1fr;gap:30px;margin:40px 0}.f-next h2{max-width:450px;font-family:"Iowan Old Style",Baskerville,serif;font-weight:500;font-size:35px}.f-next ul{list-style:none;margin:0;padding:0;font-size:13px}.f-next li{padding:12px 0;border-bottom:1px solid #c6d1c0}.f-next a{text-decoration:none}.f-footer{border-top:1px solid var(--f-line);padding:20px 0 30px;display:flex;justify-content:space-between;gap:20px;font-size:11px;color:var(--f-muted)}.f-noscript{padding:20px;background:#fff2ce;border-radius:12px;margin:20px 0}
.f-prediction{display:flex;gap:10px;margin-top:15px;flex-wrap:wrap}.f-prediction label{flex:1;min-width:150px;font-size:10px}.f-prediction select{font-size:11px;min-height:38px;margin-top:5px;padding:7px 8px}
.f-scene-top .f-play{color:var(--f-ink);font-size:12px;min-height:36px;padding:7px 12px}.f-quick{display:none;padding:10px 14px;border-bottom:1px solid #ccd8c8;gap:12px;background:#eaf0e4}.f-quick label{flex:1;min-width:0;font-size:11px}.f-quick select{font-size:12px;margin-top:5px;padding:8px}
@media(max-width:900px){.f-quick{display:flex}}
@media(max-width:600px){.f-scene-top .f-simulation-state{display:none}.f-drive label{grid-column:1/-1;min-width:0}.f-drive{grid-template-columns:1fr 1fr}.f-scene-top .f-play{min-width:90px;min-height:40px}}
/* Pièces SVG : géométrie native, couleurs complétées par des libellés. */
.f-teeth{fill:url(#f-metal);stroke:#49636d;stroke-width:1.5;stroke-linejoin:round}.f-gear-face{fill:#d1dedc;stroke:#536d73;stroke-width:2}.f-part-0 .f-teeth{fill:url(#f-gold);stroke:#866227}.f-part-0 .f-gear-face{fill:#f4d590;stroke:#a37b32}.f-part-2 .f-gear-face{fill:#a3c9bc}.f-part-3 .f-gear-face{fill:#b8bedc}.f-component-spokes{fill:none;stroke:#647d7b;stroke-width:5}.f-part-0 .f-component-spokes{stroke:#b08743}.f-pulley-outer{fill:#647f7c;stroke:#2e514b;stroke-width:3}.f-pulley-inner{fill:#b9d0c0;stroke:#496c5e;stroke-width:3}.f-part-0 .f-pulley-inner{fill:#f3d88e}.f-rotation-mark{stroke:#29473e;stroke-width:4;stroke-linecap:round}.f-hub{fill:#d0dcdb;stroke:#4c6266;stroke-width:3}.f-hub-hole{fill:#506461}.f-selection{fill:none;stroke:transparent;stroke-width:2;stroke-dasharray:5 5}.f-selected .f-selection{stroke:#7d6228}.f-part{cursor:pointer}.f-part:focus-visible{outline:none}.f-part:focus-visible .f-selection{stroke:#845900;stroke-width:5;stroke-dasharray:none}.f-disconnected .f-teeth,.f-disconnected .f-pulley-outer{opacity:.5}.f-part-label,.f-part-dimension,.f-part-speed{text-anchor:middle;font-family:inherit;fill:#234841}.f-part-label{font-size:15px;font-weight:650}.f-part-dimension{font-size:12px;fill:#526b63}.f-part-speed{font-size:11px}.f-connection{fill:none;stroke:#57756b;stroke-width:2}.f-contact-link{opacity:0}.f-open-link{stroke-dasharray:5 6}.f-shaft{stroke-width:5;stroke-dasharray:8 4}.f-belt-back{stroke:#354c47;stroke-width:8;fill:none;stroke-linecap:round;stroke-linejoin:round}.f-belt{stroke:#b8c5b9;stroke-width:3;stroke-dasharray:9 7;fill:none;stroke-linecap:round}.f-chain{stroke:#dfd7ae;stroke-dasharray:3 9;stroke-width:4}.f-small-label{font-family:inherit;font-size:13px;fill:#587266}.f-model-circle{fill:#f4f7ed;stroke:#2f5b4c;stroke-width:2;stroke-dasharray:5 3}.f-radius-line{stroke:#315b4c;stroke-width:2}.f-frame-shadow{fill:none;stroke:#244944;stroke-width:16;stroke-linejoin:round;stroke-linecap:round}.f-frame{fill:none;stroke:#457b70;stroke-width:10;stroke-linejoin:round;stroke-linecap:round}.f-tire{fill:none;stroke:#344b4a;stroke-width:13}.f-rim{fill:none;stroke:#98aaad;stroke-width:4}.f-spokes{fill:none;stroke:#a2b3b0;stroke-width:1.5}.f-chrome{fill:none;stroke:#708a85;stroke-width:9;stroke-linecap:round}.f-saddle{fill:#344741}.f-grip{stroke:#273f36;stroke-width:13;stroke-linecap:round}.f-ground{stroke:#bac6b6;stroke-width:2}.f-crank{fill:none;stroke:#c4cbc9;stroke-width:12;stroke-linecap:round}.f-pedal{stroke:#33483d;stroke-width:9;stroke-linecap:round}
dialog{color:var(--f-ink);border:1px solid #879d8c;border-radius:18px;background:var(--f-white);max-width:640px;width:calc(100% - 30px);max-height:90vh;overflow:auto;padding:25px}dialog::backdrop{background:#152d2cb3}.f-dialog-top{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:20px}.f-dialog-top h2{font-size:25px}.f-dialog-top button{min-width:42px;font-size:23px}#f-dialog-content p{font-size:13px;margin:12px 0}#f-dialog-content label{margin:14px 0 6px}#f-dialog-content .f-primary{margin-top:15px}.f-project-card{padding:16px;border:1px solid #bfcab9;border-radius:10px;margin:12px 0}.f-project-card h3{font-size:17px;overflow-wrap:anywhere}.f-project-card p{overflow-wrap:anywhere}.f-project-card button{font-size:12px;margin:5px 6px 0 0}.f-dialog-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:20px}.f-import{display:inline-block;cursor:pointer;padding:11px 14px;border:1px solid #acbeaf;border-radius:9px}.f-import input{max-width:100%;display:block;font-size:12px}.f-import-error{color:#903f25}.f-error-panel{padding:20px;border:1px solid #c99b7a;border-radius:12px;background:#fff3e9}.f-empty{padding:18px;background:#eff1e7;border-radius:10px}
@media(min-width:1400px){.f-scene{height:480px}.f-inspector{padding:25px}.f-workspace{grid-template-columns:minmax(0,1fr) 310px}}
@media(max-width:1100px){.f-main{padding:0 26px}.f-masthead{padding:18px 26px}.f-workspace{grid-template-columns:minmax(0,1fr) 250px;gap:12px}.f-inspector{padding:17px 14px}.f-challenge-grid{grid-template-columns:repeat(3,1fr)}.f-drive{gap:8px;padding:14px}.f-drive button{padding:8px 9px}.f-task{grid-template-columns:1fr}.f-task-actions{flex-direction:row;justify-content:start}.f-discovery{padding:15px 13px;gap:9px}.f-discovery strong{font-size:13px}}
@media(max-width:900px){.f-workspace{grid-template-columns:1fr}.f-inspector{display:grid;grid-template-columns:1fr 1fr;gap:0 24px;padding:23px}.f-panel-heading{grid-column:1/-1}.f-inspector>label,.f-inspector>#f-selected,.f-part-editor{grid-column:1}.f-connect{grid-column:2;grid-row:2/7}.f-palette{grid-column:1}.f-edit-actions{grid-column:2;grid-row:7;grid-template-columns:1fr 1fr}.f-local-note{grid-column:1/-1}.f-reading-grid{grid-template-columns:repeat(2,1fr)}.f-intro-copy p{font-size:18px}.f-intro-copy{max-width:330px}.f-scene{height:430px}}
@media(max-width:600px){.f-masthead{padding:14px 17px;gap:10px}.f-masthead nav{gap:13px;font-size:11px}.f-masthead nav a:nth-child(2){display:none}.f-brand{font-size:15px;gap:5px}.f-brand img{width:24px;height:24px}.f-main{padding:0 16px}.f-intro{display:block;padding:22px 0 24px}.f-intro h1{font-size:55px;letter-spacing:-2px}.f-intro-copy{padding-top:16px;max-width:100%}.f-intro-copy p{font-size:17px;line-height:1.45}.f-intro-copy p br{display:none}.f-intro-copy p br::after{content:' '}.f-breadcrumb{font-size:10px;gap:7px;margin-bottom:12px}.f-eyebrow{font-size:10px;letter-spacing:1.2px}.f-access{font-size:11px}.f-discoveries{gap:6px;margin-bottom:18px}.f-discovery{flex-direction:column;align-items:start;padding:11px 9px;gap:7px;min-height:102px;position:relative}.f-discovery strong{font-size:12px;line-height:1.25}.f-discovery small{font-size:10px;line-height:1.25}.f-discovery-number{font-size:11px}.f-discovery-arrow{position:absolute;right:9px;top:7px;font-size:15px}.f-modebar{gap:10px}.f-modes{width:100%}.f-modes button{flex:1;min-width:0;font-size:13px}.f-mode-actions{justify-content:space-between;width:100%}.f-mode-actions button{font-size:11px;min-height:36px;padding:7px 9px}.f-workspace{gap:13px}.f-scene-top{padding:13px 14px;font-size:12px}.f-simulation-state{font-size:10px}.f-viewbar{padding:8px 9px;gap:5px}.f-viewbar button{font-size:10px;padding:6px 7px;min-height:36px}.f-viewbar>[data-action=open]{margin-left:auto}.f-scene{height:290px}.f-view-note{font-size:10px;padding:9px 13px}.f-zoom{right:9px;bottom:10px}.f-drive{display:grid;grid-template-columns:auto minmax(0,1fr);gap:10px;padding:12px}.f-drive label{max-width:none}.f-drive button{min-height:38px;font-size:11px}.f-drive [data-action=reverse],.f-drive [data-action=step]{background:transparent;border-color:#c6d1c0}.f-summary{padding:13px;gap:11px;grid-template-columns:1fr 1fr}.f-summary>div:last-child{grid-column:1/-1;border-top:1px solid #cbd7c2;padding-top:9px;display:flex;justify-content:space-between;align-items:center;gap:12px}.f-summary strong{font-size:15px}.f-summary .f-ratio-caption{display:block;font-size:10px;margin-top:4px}.f-task{padding:18px 14px;gap:12px}.f-task h2{font-size:21px}.f-task p:not(.f-eyebrow){font-size:12px}.f-task-actions{flex-wrap:wrap}.f-inspector{grid-template-columns:1fr;padding:19px 17px;gap:0}.f-inspector>*{grid-column:1!important;grid-row:auto!important}.f-inspector .f-edit-actions{grid-template-columns:1fr 1fr;gap:8px}.f-panel-heading{margin-bottom:13px}.f-part-editor{padding:13px}.f-part-heading strong{font-size:15px}.f-inspector select{font-size:14px}.f-inspector button{min-height:42px}.f-challenges,.f-reading{margin-top:34px}.f-section-title{display:block;margin-bottom:16px}.f-section-title>span,.f-section-title>p{display:block;margin-top:12px;max-width:none;font-size:11px}.f-section-title h2{font-size:25px}.f-challenge-grid{grid-template-columns:1fr 1fr;gap:7px}.f-challenge-grid button{padding:14px 10px;gap:7px;min-height:94px}.f-challenge-grid strong{font-size:11px;line-height:1.4}.f-challenge-grid [aria-current=true]{padding:13px 9px}.f-challenge-grid small{font-size:10px}.f-reading-grid{grid-template-columns:1fr;gap:4px}.f-reading article{padding:18px 0}.f-reading article p{font-size:13px}.f-sources{margin-top:28px;padding:22px 18px}.f-sources h2{font-size:24px}.f-next{grid-template-columns:1fr;gap:20px;margin:28px 0}.f-next h2{font-size:30px}.f-next ul{font-size:12px}.f-footer{font-size:10px;gap:14px}.f-part-label{font-size:19px}.f-part-dimension{font-size:16px}.f-part-speed{font-size:15px}.f-small-label{font-size:15px}dialog{padding:19px}.f-dialog-top h2{font-size:22px}}
@media(max-width:600px){.f-quick select,.f-inspector select,.f-prediction select,dialog input[type=text],dialog textarea{font-size:16px}.f-task p:not(.f-eyebrow),.f-reading article p{font-size:14px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*{animation:none!important;transition:none!important}}
@media(forced-colors:active){.f-selection{stroke:CanvasText}.f-selected .f-selection{stroke:Highlight}.f-teeth,.f-gear-face,.f-pulley-inner,.f-pulley-outer,.f-model-circle{fill:Canvas;stroke:CanvasText}.f-belt,.f-belt-back,.f-shaft,.f-frame,.f-tire{stroke:CanvasText}.f-part-label,.f-part-dimension,.f-part-speed,.f-small-label{fill:CanvasText}}

/* Atelier : guidage, construction directe et comparaison. */
.f-guided .f-workspace{grid-template-columns:minmax(0,1fr);max-width:1100px;margin-inline:auto}
.f-guided .f-inspector{display:none}
.f-guided .f-quick{display:flex}
.f-extra-discoveries{margin:-10px 0 18px;color:#edf1e2}
.f-extra-discoveries>summary{font-size:13px;letter-spacing:0}
.f-extra-discoveries .f-discoveries{margin:10px 0 0;color:var(--f-ink)}
.f-mission{background:#fff4d6;padding:18px 22px;border-bottom:1px solid #e2d0a1}
.f-mission h2{font-size:22px;margin-bottom:6px}
.f-mission>p:last-of-type{font-size:14px;line-height:1.55;max-width:75ch}
.f-project-navigation{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-top:12px}
.f-project-navigation button{font-size:12px}.f-project-navigation span{font-size:12px;color:#496249}
.f-scene-tools{display:flex;flex-wrap:wrap;gap:8px;padding:12px 18px;border-bottom:1px solid #d3ddcd;background:#f1f3e9}
.f-scene-tools>button{font-size:12px}.f-scene-palette{display:flex;flex-wrap:wrap;gap:7px;width:100%}
.f-scene-palette button{font-size:12px;background:#fff8e3;border-color:#b6aa88}
#f-link-prompt{width:100%;font-size:13px;line-height:1.5}#f-link-prompt:empty{display:none}
.f-observe{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px 20px;background:#f5f6ec;border-top:1px solid #dce4d6}
.f-observe>button{font-size:12px}.f-counters{display:flex;gap:20px;flex-wrap:wrap;font-size:11px}
.f-counters output{display:block;font-family:ui-monospace,monospace;font-size:15px;font-weight:650;min-width:8ch}
.f-transmission{padding:16px 22px;background:#eef4e5;border-top:1px solid #bed0ad;font-size:13px;line-height:1.65}
.f-transmission ol,.f-feedback-calcul ol{padding-left:20px;margin:10px 0}.f-transmission li,.f-feedback-calcul li{margin:7px 0;overflow-wrap:anywhere}
.f-direction{fill:none;stroke:#375f51;stroke-width:2.5}.f-arrow-head{fill:#375f51}
.f-rod{fill:none;stroke:#637e79;stroke-width:10;stroke-linecap:round}
.f-rack,.f-slider{fill:#e7c16a;stroke:#536c5f;stroke-width:2}
.f-follower{fill:none;stroke:#b9903e;stroke-width:8;stroke-linecap:round}
.f-guide{fill:none;stroke:#9daa99;stroke-width:4;stroke-dasharray:7 4}.f-centered{text-anchor:middle}
.f-route .f-selection{stroke:#527854;stroke-width:3;stroke-dasharray:7 4}
.f-route-active .f-selection{stroke:#805914;stroke-width:5;stroke-dasharray:none}
.f-route-error .f-selection{stroke:#913f27;stroke-width:4;stroke-dasharray:3 3}
.f-route .f-connection,.f-route .f-belt-back{opacity:1;stroke:#567b4f;stroke-width:5}
.f-route-error .f-connection,.f-route-error .f-belt-back{opacity:1;stroke:#913f27;stroke-width:5;stroke-dasharray:5 5}
.f-comparison-heading{display:flex;gap:12px;flex-wrap:wrap;align-items:center;justify-content:space-between}
.f-comparison-heading span{font-size:12px}.f-comparison>label{margin:14px 0;max-width:320px}
.f-comparison-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.f-comparison-grid>section{min-width:0;border:1px solid #bdcbb2;border-radius:12px;background:#fffdf5;padding:12px}
.f-comparison-grid h4{font-size:13px;margin:0 0 8px}.f-comparison-scene{height:260px;overflow:hidden;border-radius:8px;background:#f2f4e9}
.f-comparison-grid p{font-size:12px;line-height:1.5;margin:8px 0}.f-comparison-grid output{font-family:ui-monospace,monospace;font-weight:650}
.f-comparison-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:14px}.f-comparison-actions button{font-size:12px}
.f-projects{margin-top:40px;color:#edf1e2}.f-projects .f-eyebrow,.f-projects .f-section-title>p{color:#d8e4cd}
.f-project-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.f-project-grid article{background:#faf8eb;color:var(--f-ink);border:1px solid #c7d2b9;border-radius:18px;padding:25px;min-width:0}
.f-project-grid h3{font-family:"Iowan Old Style",Baskerville,serif;font-weight:500;font-size:25px}
.f-project-grid p{margin:10px 0;font-size:14px;line-height:1.5}.f-project-grid ol{font-size:13px;line-height:1.7;padding-left:20px;margin:14px 0 18px}
.f-project-grid button{font-size:13px}.f-feedback-calcul{font-size:13px;line-height:1.6}
.f-task{padding-top:16px;padding-bottom:16px}.f-task .f-eyebrow{margin-bottom:4px}
@media(max-width:900px){.f-comparison-scene{height:235px}.f-scene-tools{padding:12px 15px}}
@media(max-width:600px){
 .f-mission{padding:16px 14px}.f-mission h2{font-size:21px}.f-mission>p:last-of-type{font-size:14px}
 .f-scene-tools{padding:10px 12px;gap:7px}.f-scene-tools>button{font-size:11px;flex:1 1 42%}
 .f-observe{padding:12px;display:grid;grid-template-columns:1fr;gap:10px}.f-observe>button{justify-self:start}
 .f-counters{justify-content:space-between;gap:12px}.f-counters output{font-size:15px}
 .f-transmission{padding:15px 14px;font-size:13px}.f-comparison{padding:16px 13px}
 .f-comparison-grid,.f-project-grid{grid-template-columns:1fr}.f-comparison-scene{height:230px}
 .f-comparison-actions button{flex:1 1 42%;min-height:44px}.f-project-grid article{padding:21px}
 .f-project-navigation button{min-height:44px}.f-project-navigation span{width:100%}
 .f-projects{margin-top:32px}.f-extra-discoveries>summary{font-size:12px}
 .f-scene-palette button{flex:1 1 42%;min-height:44px}.f-part-speed{font-size:14px}
}
@media(forced-colors:active){
 .f-extra-discoveries,.f-projects,.f-projects .f-eyebrow,.f-projects .f-section-title>p{color:CanvasText}
 .f-direction,.f-guide,.f-rod,.f-follower,.f-route .f-connection,.f-route-error .f-connection{stroke:CanvasText}
 .f-arrow-head{fill:CanvasText}.f-rack,.f-slider{fill:Canvas;stroke:CanvasText}
 .f-route-active .f-selection{stroke:Highlight}.f-route-error .f-selection{stroke:CanvasText}
 .f-project-grid article,.f-mission,.f-transmission,.f-comparison-grid>section{background:Canvas;color:CanvasText;box-shadow:none}
}
.f-machine .f-offset-label { text-anchor: start; }
#f-mission-goal { margin-top: 12px; padding-top: 12px; border-top: 1px solid #e2d0a1; font-weight: 600; }
