.r-entry,.r-science{margin:1rem 0;border:1px solid #becfc9;border-radius:16px;background:#f8fcfa;color:#183c3a}.r-entry>summary,.r-science>summary{padding:1.1rem;font-weight:750;cursor:pointer}.r-entry>summary span{display:block;margin:.25rem 0 0 1rem;font-size:.88rem;font-weight:400;color:#46625d}.r-entry>div,.r-science>p,.r-science>article,.r-science>ul{margin:0;padding:0 1.2rem 1.2rem}.r-entry ol{padding-left:1.3rem;line-height:1.7}.r-panel{padding:1.2rem;background:#f7fbf9;color:#173c3a;border:1px solid #adcbc0;border-radius:18px;margin:0 0 1rem;scroll-margin-top:1rem;min-width:0}.r-panel h2{font-size:clamp(1.6rem,3vw,2.2rem);line-height:1.15;margin:.25rem 0}.r-panel h3{font-size:1.06rem;line-height:1.35;margin:.6rem 0}.r-panel p{line-height:1.6}.r-header>p:last-child{margin-bottom:.8rem}.r-progress{font-size:.87rem;font-weight:650;color:#386458}.r-panel label{display:block;font-size:.9rem;font-weight:650;margin:.7rem 0 .3rem}.r-panel select,.r-panel textarea,.r-panel input[type=file],.r-panel input[type=text]{width:100%;max-width:100%;min-width:0;font:inherit;color:#173c3a;background:#fff;border:1px solid #90afa3;border-radius:9px;padding:.65rem;box-sizing:border-box}.r-panel textarea{resize:vertical}.r-panel button,.r-entry button{min-height:44px;border:1px solid #95b5a8;border-radius:10px;background:#fff;color:#173c3a;padding:.6rem .8rem;font:inherit;font-size:.88rem;font-weight:650;cursor:pointer;white-space:normal}.r-panel button:hover,.r-entry button:hover{background:#e8f2ed}.r-panel button.f-primary,.r-entry button.f-primary{background:#173c3a;color:#fff;border-color:#173c3a}.r-panel button:disabled{opacity:.48;cursor:default}.r-panel :focus-visible,.r-entry :focus-visible{outline:3px solid #c26a1e;outline-offset:3px}.r-actions{display:flex;flex-wrap:wrap;gap:.5rem;margin:.75rem 0}.r-story{font-weight:650}.r-help,.r-panel .r-help{font-size:.85rem;color:#46625d;line-height:1.55}.r-console{display:grid;grid-template-columns:minmax(0,1fr);gap:1rem}.r-stage{min-width:0;border:1px solid #c6d9cf;border-radius:14px;background:#fff;overflow:hidden;padding:.6rem}.r-stage svg{display:block;width:100%;height:auto;max-height:470px}.r-ground{fill:#edf4ee;stroke:#90afa3;stroke-width:2}.r-grid-lines{fill:none;stroke:#d3e1d8;stroke-width:1}.r-goal{fill:#c5e6c9;stroke:#2c6946;stroke-width:2;stroke-dasharray:6 3}.r-wall{fill:#6a7978;stroke:#253f3c;stroke-width:2}.r-path{fill:none;stroke:#306f8f;stroke-width:3;stroke-dasharray:5 3}.r-start{fill:#173c3a}.r-ray{stroke:#b45c12;stroke-width:3;stroke-dasharray:6 4}.r-ray[data-detected=true]{stroke-dasharray:none}.r-wheel{fill:#173c3a}.r-body{fill:#f5c76b;stroke:#173c3a;stroke-width:2}.r-nose{fill:#173c3a}.r-sensor-dot{fill:#b45c12;stroke:#fff;stroke-width:1}.r-stage text,.r-motor-plot text{font:14px system-ui,sans-serif;fill:#36544d}.r-legend{display:flex;gap:.3rem .8rem;flex-wrap:wrap;font-size:.74rem;margin:.2rem 0}.r-readings{display:flex;flex-wrap:wrap;gap:.35rem}.r-readings output{padding:.35rem .5rem;border-radius:6px;background:#eaf2ed;font-size:.8rem;font-variant-numeric:tabular-nums}.r-program{min-width:0}.r-code{padding:0;margin:.6rem 0;list-style:none}.r-code li{display:grid;grid-template-columns:1.3rem minmax(0,1fr) auto;gap:.35rem;align-items:center;margin:.5rem 0;padding:.5rem;border:1px solid #ccdbd3;border-radius:12px;background:#fff}.r-code li[aria-current=step]{border-color:#9d5110;box-shadow:inset 4px 0 #b45c12;background:#fff8e9}.r-line-number{font-size:.8rem;font-weight:750}.r-code li>div:nth-child(2){display:flex;flex-wrap:wrap;gap:.3rem}.r-code select{padding:.45rem;font-size:.83rem;flex:1 1 160px}.r-code select[data-robot-value]{flex-basis:75px}.r-line-actions{display:flex;gap:.15rem}.r-line-actions button{min-width:32px;padding:.35rem;min-height:40px}.r-panel details{border-top:1px solid #ccdbd3;margin-top:.8rem;padding-top:.7rem}.r-panel summary{cursor:pointer;font-weight:700;line-height:1.5;min-height:36px}.r-fields{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:.25rem .7rem}.r-primary-actions{margin:1rem 0 .4rem}.r-panel input[type=range]{display:block;width:100%;height:36px;accent-color:#173c3a}.r-feedback{padding:.85rem;border:1px solid #b5cfc1;border-radius:10px;background:#edf4ef;scroll-margin-top:1rem}.r-feedback[data-success=true]{background:#def0df;border-color:#528d61}.r-feedback[data-success=false]{background:#fff5e8;border-color:#ca985f}.r-transmission{margin:1rem 0;border:1px solid #ccdbd3;border-radius:12px;padding:.85rem;background:#fff}.r-table-scroll{overflow-x:auto;max-width:100%;margin:.7rem 0}.r-panel table{width:100%;border-collapse:collapse;font-size:.8rem;white-space:normal}.r-panel th,.r-panel td{text-align:left;padding:.55rem;border-bottom:1px solid #cfddd5;min-width:65px}.r-panel caption{text-align:left;font-weight:700;padding:.5rem 0}.r-editor-grid{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:3px;margin:.7rem 0;max-width:480px}.r-editor-grid button{aspect-ratio:1;min-height:0;min-width:0;padding:0;font-weight:750;border-radius:4px;background:#fff}.r-editor-grid button[data-kind=Obstacle]{background:#536b65;color:#fff}.r-editor-grid button[data-kind=Arrivée]{background:#c5e6c9;border:2px dashed #2c6946}.r-editor-grid button[data-kind=Départ]{background:#f5c76b;opacity:1;color:#173c3a}.r-versions{list-style:none;padding:0}.r-versions li{border-bottom:1px solid #ccdbd3;padding:.7rem 0;display:flex;gap:.5rem;flex-wrap:wrap;justify-content:space-between}.r-versions li>div{min-width:0}.r-versions span{display:block;font-size:.8rem;margin:.2rem 0}.r-versions p{font-size:.85rem;overflow-wrap:anywhere}.r-versions button{margin:.2rem}.r-bench-values{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:.5rem}.r-bench-values>div{padding:.65rem;border:1px solid #ccdbd3;border-radius:8px;background:#fff}.r-bench-values dt{font-size:.8rem;color:#46625d}.r-bench-values dd{font-size:1.05rem;font-weight:750;margin:.35rem 0 0;font-variant-numeric:tabular-nums}.r-motor-plot{width:100%;max-height:250px;display:block}.r-axis{stroke:#46625d;stroke-width:2;fill:none}.r-motor-line{stroke:#267761;stroke-width:3;fill:none}.r-operating{fill:#ad5114;stroke:#fff;stroke-width:2}.r-sr{position:absolute!important;width:1px!important;height:1px!important;clip-path:inset(50%);overflow:hidden;white-space:nowrap}.f-robot-active #f-mission,.f-robot-active #f-task,.f-robot-active #f-purpose,.f-robot-active .f-test-dock{display:none}.f-robot-active .f-roadmap,.f-robot-active .f-intro,.f-robot-active #f-next-explorations{display:none}.f-robot-active #f-robot-entry{margin-bottom:.7rem}.f-robot-active #f-robot{display:block}.r-panel [hidden]{display:none!important}@media(min-width:1200px){.r-console{grid-template-columns:minmax(0,1.1fr) minmax(0,1fr)}.r-line-actions{flex-direction:column}.r-line-actions button{min-height:32px}.r-code li>div:nth-child(2){display:block}.r-code select{margin:.15rem 0}}@media(max-width:550px){.r-panel{padding:.8rem;border-radius:12px}.r-line-actions{flex-direction:column}.r-line-actions button{min-height:32px}.r-code li{gap:.25rem;padding:.4rem}.r-editor-grid{gap:2px}.r-entry>summary,.r-science>summary{padding:.85rem}.r-bench-values{grid-template-columns:1fr 1fr}}@media(forced-colors:active){.r-panel,.r-code li,.r-stage{border:1px solid CanvasText}.r-code li[aria-current=step]{outline:2px solid Highlight}.r-wall{fill:GrayText;stroke:CanvasText}.r-goal{fill:Canvas;stroke:Highlight}.r-body{fill:Canvas;stroke:CanvasText}.r-ray,.r-path{stroke:Highlight}.r-wheel,.r-nose,.r-start{fill:CanvasText}.r-ground{fill:Canvas;stroke:CanvasText}.r-stage text,.r-motor-plot text{fill:CanvasText}}

.f-robot-active #f-park-entry,.f-robot-active #f-park-first{display:none}.f-flight-active #f-robot-entry{display:none}.f-robot-resuming #f-roadmap{display:none}

@media(prefers-reduced-motion:reduce){.r-panel #f-robot-play{display:none}}

/* La transmission s’ouvre comme un poste de travail explicite. */
.f-robot-active:not(.r-transmission-open) #atelier{display:block}.f-robot-active:not(.r-transmission-open) .f-workbench>:not(#f-robot),.f-robot-active:not(.r-transmission-open) #f-inspector,.f-robot-active.r-transmission-open #f-robot{display:none!important}.r-mechanism{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:22px;background:var(--a-paper);border-bottom:1px solid #bac6ad;scroll-margin-top:86px}.r-mechanism h3{font:500 28px var(--a-serif)}.r-mechanism p{font-size:13px;line-height:1.5;margin-top:8px}.r-mechanism button{min-height:44px;flex-shrink:0;font-size:13px}
@media(max-width:650px){.r-mechanism{display:block;padding:20px 16px}.r-mechanism button{width:100%;margin-top:14px}}
