/* Le vélo à l'atelier 2.0.1 — CSS autonome et isolé */
.velo5{--v5-ink:#17324b;--v5-navy:#123c5a;--v5-blue:#06799a;--v5-ok:#157347;--v5-line:#d6e5ee;--v5-paper:#fff;--v5-cloud:#f3f8fa;--v5-shake:5px;--v5-play:9px;display:block;max-width:1260px;margin:0 auto 18px;color:var(--v5-ink);font:16px/1.5 system-ui,-apple-system,"Segoe UI",sans-serif;letter-spacing:normal}
.velo5 *, .velo5 *::before, .velo5 *::after{box-sizing:border-box}
.velo5 h2,.velo5 h3,.velo5 h4,.velo5 p{font-family:inherit;line-height:1.3}
.velo5 h2{font-size:clamp(25.6px,3vw,35.2px);margin:0 0 8px;font-weight:800}
.velo5 h3{font-size:18.08px;margin:0;font-weight:800}.velo5 h4{font-size:18.4px;margin:16px 0 8px}
.velo5 p{margin:5px 0 10px}
.velo5 button,.velo5 select,.velo5 input{font:inherit}
.velo5 button{cursor:pointer;border:1px solid #b1c7d4;border-radius:10px;background:#fff;color:var(--v5-ink);padding:11px 14px;transition:background-color .14s,border-color .14s,transform .14s}
.velo5 button:focus-visible,.velo5 select:focus-visible,.velo5 input:focus-visible,.velo5 [role="button"]:focus-visible{outline:3px solid #e69d25;outline-offset:3px}
.velo5 button:not(:disabled):hover{border-color:var(--v5-blue);background:#eaf6fa}
.velo5 button:disabled{opacity:.55;cursor:default}
.velo5 select{background:#fff;color:var(--v5-ink);border:1px solid #b7cbd5;border-radius:9px;padding:7px 11px;min-height:42px}
.velo5 .v5-head{display:flex;justify-content:space-between;align-items:center;gap:18px;padding:18px 21px;background:linear-gradient(115deg,#123a58,#086681);color:#fff;border-radius:18px 18px 0 0}
.velo5 .v5-head p{color:#deecf4;margin:3px 0 0}
.velo5 .v5-eyebrow{font-size:12.32px;font-weight:800;letter-spacing:.11em;opacity:.9}
.velo5 .v5-count{flex-shrink:0;text-align:center;border-radius:13px;padding:12px 18px;background:#ffffff1b;border:1px solid #ffffff35;min-width:165px}
.velo5 .v5-count strong{display:block;font-size:28.8px;line-height:1.15;color:#fff}.velo5 .v5-count span{font-size:13.12px;color:#eaf5f9}
.velo5 .v5-bar{display:flex;align-items:center;flex-wrap:wrap;gap:10px;background:#eaf3f7;padding:11px 18px;border:1px solid var(--v5-line);border-top:0}
.velo5 .v5-bar label{display:flex;align-items:center;gap:8px;font-weight:700}
.velo5 .v5-bar button{padding:7px 12px;min-height:42px}.velo5 .v5-score{margin-left:auto;font-weight:800}
.velo5 .v5-progress{height:10px;background:#cfdfeb;overflow:hidden}
.velo5 .v5-progress-fill{background:#229867;width:0;height:100%;transition:width .35s ease}
.velo5 .v5-missions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:11px;background:#f1f6f9;padding:14px;border:1px solid var(--v5-line);border-top:0}
.velo5 .v5-mission{display:grid;grid-template-columns:34px minmax(0,1fr);align-items:center;text-align:left;min-width:0;gap:12px;padding:13px 15px;background:#fff;border:1px solid #d7e5ec;border-radius:12px;min-height:75px;max-width:100%;overflow:hidden}
.velo5 .v5-mission-copy{display:block;min-width:0;max-width:100%;overflow-wrap:break-word;word-break:normal}
.velo5 .v5-mission strong{display:block;font-size:15px;line-height:1.3;white-space:normal;overflow-wrap:break-word}
.velo5 .v5-mission small{display:block;color:#58728a;font-size:12px;line-height:1.35;margin-top:3px;white-space:normal}
.velo5 .v5-mission-n{display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:#d8eaf3;color:#215d78;font-weight:800}
.velo5 .v5-mission-symbol{display:none}
.velo5 .v5-mission.v5-selected{background:#e4f4f9;border:2px solid #08799f;padding:12px 14px;box-shadow:0 3px 10px #0e76951b}
.velo5 .v5-mission.v5-done{background:#e9f7ed;border-color:#9dcbaf}.velo5 .v5-mission.v5-done .v5-mission-n{background:#15804d;color:#fff}
.velo5 .v5-workshop{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(340px,1fr);gap:14px;padding:15px;background:#f1f6f9;border:1px solid var(--v5-line);border-top:0}
.velo5 .v5-panel{background:#fff;border:1px solid #d8e6ec;border-radius:14px;padding:16px;min-width:0}
.velo5 .v5-panel-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px}
.velo5 .v5-live-pill{color:#0b607f;background:#e4f2f7;border-radius:99px;padding:4px 12px;font-size:12.48px;font-weight:750;white-space:nowrap}
.velo5 .v5-scene{width:100%;height:auto;display:block;overflow:visible;max-height:450px}
.velo5 .v5-hotspot{cursor:pointer;outline:0}
.velo5 .v5-hotspot-ring{fill:#e1f3f7aa;stroke:#087797;stroke-width:3;stroke-dasharray:5 5}
.velo5 .v5-hotspot-inner{fill:#0b7494;stroke:#fff;stroke-width:3}
.velo5 .v5-hotspot.v5-fixed-zone .v5-hotspot-inner{fill:#168a55}.velo5 .v5-hotspot.v5-fixed-zone .v5-hotspot-ring{stroke:#168a55}
.velo5 .v5-hotspot:hover .v5-hotspot-inner,.velo5 .v5-hotspot:focus-visible .v5-hotspot-inner{fill:#ef920f}
.velo5 .v5-hotspot.v5-active-zone .v5-hotspot-inner{fill:#e37a13}.velo5 .v5-hotspot.v5-active-zone .v5-hotspot-ring{stroke:#ea8b12;stroke-width:5}
.velo5 .v5-actions{display:flex;align-items:center;gap:9px;flex-wrap:wrap;margin:12px 0}
.velo5 .v5-actions button{min-width:0;font-size:14px;line-height:1.35;padding:10px 12px}
.velo5 button.v5-replay{background:#f2f8fb;border:1px solid #89b7ca;color:#164b66;font-weight:700}
.velo5 button.v5-replay[hidden]{display:none!important}
.velo5 .v5-replay:disabled{opacity:.48}
.velo5 button.v5-primary{background:#07688a;border-color:#07688a;color:#fff;font-weight:750;padding:11px 17px;box-shadow:0 3px 7px #07688a24}
.velo5 button.v5-primary:not(:disabled):hover{background:#06536e;color:#fff}
.velo5 .v5-action-explain{color:#536f80;font-size:13.28px;flex:1;min-width:160px}
.velo5 .v5-readout{border-radius:12px;background:#e7f4f9;border-left:5px solid #0784ad;padding:13px 15px;min-height:105px}
.velo5 .v5-readout strong{display:block}.velo5 .v5-readout p{font-size:14.72px;margin:4px 0 0}
.velo5 .v5-subtext{min-height:46px;color:#546b7a;font-size:14.72px;margin:7px 0 14px}
.velo5 .v5-steps{display:grid;grid-template-columns:repeat(4,1fr);gap:4px;margin:7px 0 16px}
.velo5 .v5-steps span{background:#edf3f6;color:#526f81;font-size:11.68px;text-align:center;padding:8px 3px;border-radius:6px;font-weight:650;line-height:1.2}
.velo5 .v5-steps .v5-step-now{background:#cdeef9;color:#075f81;box-shadow:inset 0 -3px 0 #137fa2}
.velo5 .v5-steps .v5-step-ok{background:#def4e7;color:#117044}
.velo5 .v5-phase{min-height:185px}
.velo5 .v5-guide{border-radius:11px;border:1px dashed #a4bdcb;background:#f7fafc;padding:16px;color:#294b5f}
.velo5 .v5-guide strong{display:block;margin-bottom:6px}
.velo5 .v5-guide p{margin:5px 0 10px}
.velo5 .v5-question{font-weight:800;font-size:16px;margin:0 0 12px}
.velo5 .v5-choices{display:grid;gap:9px}.velo5 .v5-choices button{text-align:left;min-height:52px}
.velo5 .v5-tools{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px;margin-bottom:15px}
.velo5 .v5-tools button{padding:8px 5px;min-height:75px;display:grid;place-items:center;gap:3px;line-height:1.2}
.velo5 .v5-tools button span{font-size:20.8px}.velo5 .v5-tools button small{font-size:11.68px;line-height:1.25}
.velo5 .v5-tools button.v5-tool-selected{background:#d9f0f7;border:2px solid #047a9c;padding:7px 4px}
.velo5 .v5-control{border-radius:10px;background:#f1f7fa;border:1px solid #d8e6ed;padding:12px;margin-bottom:13px}
.velo5 .v5-control label{display:flex;gap:10px;justify-content:space-between;font-weight:750}.velo5 .v5-control label strong{white-space:nowrap}
.velo5 .v5-control input[type=range]{width:100%;height:26px;accent-color:#0783a5;cursor:pointer;margin:8px 0}
.velo5 .v5-scale{display:flex;align-items:center;justify-content:space-between;gap:7px;font-size:11.2px;color:#617785}.velo5 .v5-target{color:#26774c;font-weight:800;text-align:center}
.velo5 .v5-sequence{display:flex;gap:10px;flex-wrap:wrap;background:#f0f6fa;padding:13px;margin-bottom:14px;border-radius:10px;font-size:13.44px;font-weight:750}
.velo5 .v5-sequence span{padding:8px;border-radius:6px;background:#fff;border:1px solid #dae5ec}.velo5 .v5-sequence .v5-ok{background:#d8f1e2;color:#137041}
.velo5 .v5-apply{width:100%;margin-bottom:5px}
.velo5 .v5-feedback{background:#f4f7f9;border:1px solid #dbe6ed;padding:11px 13px;margin-top:12px;min-height:72px;border-radius:10px;font-weight:650;color:#2c4b5e}
.velo5 .v5-feedback[data-kind="error"]{background:#fff3e8;border-color:#ffd2ad;color:#964c0d}
.velo5 .v5-feedback[data-kind="success"]{background:#e9f9ee;border-color:#a8ddbb;color:#126137}
.velo5 .v5-hint{margin-top:10px;color:#486c80;font-size:13.76px;min-height:23px}
.velo5 .v5-success{background:#e6f6eb;color:#115e3b;font-weight:750;padding:17px;border-radius:10px}
.velo5 .v5-end{padding:20px;border:1px solid #a2d1ac;background:#e9f7ee;border-radius:13px;margin:15px 0}
.velo5 .v5-end[hidden]{display:none!important}.velo5 .v5-end h3{color:#13603a}.velo5 .v5-end button{margin-top:9px}
.velo5 .v5-safety{font-size:13.28px;color:#59717d;margin:11px 3px 3px}
.velo5-offline{font-size:14.72px;margin:8px 0 22px}.velo5-offline a{font-weight:700;color:#086c8b;text-decoration:underline}
/* Mouvements réels simulés pendant l'essai de la mission active */
.velo5 .v5-wheel-rotor,.velo5 .v5-chain-path,.velo5 .v5-derailleur,.velo5 .v5-brake-lever,.velo5 .v5-brake-arm,.velo5 .v5-wheel-shift{transform-box:fill-box;transform-origin:center;}
.velo5.v5-is-testing .v5-wheel-rotor{animation:v5-spin 1.15s linear infinite}
.velo5.v5-is-testing[data-active="bearing"] .v5-wheel-rotor{animation-duration:2.1s}
.velo5.v5-is-testing[data-active="brake"][data-test-phase="verify"] .v5-wheel-rotor{animation:v5-spin .75s ease-out 1}
.velo5.v5-is-testing[data-active="brake"] .v5-brake-lever{animation:v5-lever .55s ease-in-out infinite alternate;transform-origin:top left}
.velo5.v5-is-testing[data-active="brake"] .v5-brake-arm{animation:v5-brake .55s ease-in-out infinite alternate;transform-origin:bottom center}
.velo5.v5-is-testing[data-active="gear"][data-test-phase="verify"] .v5-derailleur{animation:none}
.velo5.v5-is-testing[data-active="gear"] .v5-derailleur{animation:v5-gear .38s ease-in-out infinite alternate}
.velo5.v5-is-testing[data-active="gear"] .v5-chain-path,.velo5.v5-is-testing[data-active="chain"] .v5-chain-path{animation:v5-chain .32s linear infinite}
.velo5.v5-is-testing[data-active="wheel"] .v5-front-wrap .v5-wheel-shift{animation:v5-wobble .36s ease-in-out infinite alternate}
.velo5.v5-is-testing[data-active="wheel"][data-test-phase="verify"] .v5-front-wrap .v5-wheel-shift{animation:none}
.velo5.v5-is-testing[data-active="wheel"] .v5-wheel-check{opacity:1}
.velo5.v5-is-testing[data-active="chain"] .v5-chain-check{opacity:1;animation:v5-flicker .34s infinite alternate}
.velo5.v5-is-testing[data-active="chain"][data-test-phase="verify"] .v5-chain-check{opacity:0;animation:none}
.velo5.v5-is-testing[data-active="bearing"] .v5-front-wrap .v5-wheel-shift{animation:v5-bearing .28s ease-in-out infinite alternate}
.velo5.v5-is-testing[data-active="bearing"][data-test-phase="verify"] .v5-front-wrap .v5-wheel-shift{animation:none}
.velo5.v5-is-testing[data-active="bearing"] .v5-bearing-check{opacity:1}
@keyframes v5-spin{to{transform:rotate(360deg)}}
@keyframes v5-lever{to{transform:rotate(18deg)}}
@keyframes v5-brake{to{transform:scaleX(.90)}}
@keyframes v5-gear{to{transform:translate(5px,-4px)}}
@keyframes v5-chain{to{stroke-dashoffset:-34}}
@keyframes v5-wobble{to{transform:translateX(var(--v5-shake))}}
@keyframes v5-bearing{to{transform:translateX(var(--v5-play))}}
@keyframes v5-flicker{to{opacity:.25}}
@media(max-width:1040px){.velo5 .v5-workshop{grid-template-columns:1fr}}
/* S’adapte à la largeur RÉELLE du bloc WordPress, pas seulement à la fenêtre. */
.velo5{container-type:inline-size}
@media(max-width:620px){.velo5{font-size:15px}.velo5 .v5-head{padding:15px;align-items:flex-start}.velo5 .v5-count{min-width:100px;padding:11px}.velo5 .v5-count strong{font-size:20.8px}.velo5 .v5-count span{font-size:11.04px}.velo5 .v5-missions{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;padding:8px}.velo5 .v5-mission{min-height:68px;padding:10px}.velo5 .v5-mission-symbol{display:none}.velo5 .v5-workshop{padding:8px;gap:9px}.velo5 .v5-panel{padding:10px}.velo5 .v5-bar{padding:9px}.velo5 .v5-bar .v5-score{margin-left:0}.velo5 .v5-actions button{width:100%}.velo5 .v5-action-explain{min-width:100%}.velo5 .v5-steps span{font-size:10.88px}.velo5 .v5-scale{font-size:10.56px}}
@container (max-width:760px){.velo5 .v5-missions{grid-template-columns:repeat(2,minmax(0,1fr))}.velo5 .v5-workshop{grid-template-columns:1fr}}
@container (max-width:440px){.velo5 .v5-missions{grid-template-columns:1fr}.velo5 .v5-mission{min-height:60px}}
@media(prefers-reduced-motion:reduce){.velo5 *, .velo5 *::before,.velo5 *::after{animation-duration:.01ms!important;transition:none!important}}
