/* Academy 1.2 — voir, comprendre, essayer */
.guide-workspace{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(320px,1fr);align-items:stretch;background:#ebe6f1}.guide-workspace .guide-stage{aspect-ratio:auto;min-height:460px;max-height:630px;height:100%;border:0}.guide-workspace .guide-dock{min-width:0;display:flex;flex-direction:column;align-items:stretch;gap:20px;padding:27px;background:#fff;justify-content:space-between;border-left:1px solid #e4dcef;min-height:460px}.guide-copy h3{font-size:24px;line-height:1.18;margin:12px 0 18px}.guide-action>strong,.guide-result strong{font-size:11px;letter-spacing:.4px;color:#6e539a}.guide-action p,.guide-copy p{font-size:14px;line-height:1.65;color:#544a62}.guide-result{display:flex;align-items:flex-start;gap:10px;background:#f1ebfc;border:1px solid #ddd0f3;border-radius:15px;padding:16px;margin-top:20px;font-size:14px;transition:background .25s,box-shadow .3s}.guide-result .effect-icon{flex:0 0 26px;font-size:23px;color:#8a64ce}.guide-result p{margin:7px 0 0;color:#50376c;font-size:14px}.guide-result strong{font-size:13px}.click-feedback{display:block;font-size:11px;margin-top:9px;font-weight:800;color:#47604d}.click-feedback:empty{display:none}.guide-result.effect-seen{background:#e9f6ef;border-color:#a8d7b9;box-shadow:0 0 0 5px #a8d7b926}.guide-result.effect-seen p,.guide-result.effect-seen strong{color:#345440}.guide-context{margin-top:17px;font-size:11px;color:#796a86}.guide-context summary{cursor:pointer;display:flex;gap:6px;align-items:center;font-weight:800}.guide-context p{font-size:12px}.guide-controls{justify-content:space-between;gap:10px}.guide-controls #guide-counter{font-size:12px}.guide-controls .btn{font-size:12px;min-height:44px}.guide-timeline{overflow:auto}.guide-stop{flex:1 0 100px;font-size:10px}.guide-stop>b{max-width:135px}.guide-open #guide-player-fullscreen{display:flex;flex-direction:column}.guide-open .guide-workspace{flex:1;min-height:0;overflow:auto}.guide-open .guide-stage{max-height:none;min-height:260px}.guide-open .guide-dock{min-height:0}.guide-open .guide-result{display:flex}.guide-open .guide-copy h3{font-size:24px}.guide-open .guide-copy p{font-size:14px}.guide-open .guide-controls{margin-top:auto}.guide-open .guide-timeline{flex-shrink:0}.guide-watermark{font-size:8px;max-width:calc(100% - 20px)}.guide-copy .guide-kicker{font-size:9px}.guide-spotlight .spot-label{white-space:nowrap}
.deep-dive{margin:30px 0}.settings-filter{display:flex;align-items:end;gap:16px;background:#fff;border:1px solid var(--line);padding:20px;border-radius:18px;margin-bottom:17px}.settings-filter label{display:flex;flex-direction:column;gap:8px;font-size:11px;font-weight:800;flex:1;min-width:0}.settings-filter input,.settings-filter select{border:1px solid #ded5ea;border-radius:10px;background:#faf8fd;padding:12px;width:100%;font-size:13px}.settings-filter>span{font-size:11px;white-space:nowrap;padding-bottom:14px}.detail-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px;align-items:start;margin-bottom:20px}.detail-card{border:1px solid #e4daef;background:#fff;border-radius:17px;overflow:hidden}.detail-card[hidden]{display:none}.detail-card summary{list-style:none;padding:21px;cursor:pointer}.detail-card summary::-webkit-details-marker{display:none}.detail-card summary>span{font-size:8px;letter-spacing:1px;text-transform:uppercase;color:#836497}.detail-card h3{font-size:19px;margin:8px 0}.detail-card summary p{font-size:11px;color:#786a88;margin:0}.detail-card summary>b{display:flex;align-items:center;gap:6px;margin-top:12px;font-size:11px;color:#8152c1}.detail-card[open] summary>b i{transform:rotate(45deg)}.detail-body{border-top:1px solid var(--line);padding:20px;font-size:13px;line-height:1.75;color:#62516f}.detail-body>strong{font-size:11px;color:#70508a}.detail-body p{margin:7px 0 16px}.detail-body p:last-child{margin-bottom:0}.detail-example{background:#faf1e8;border-radius:12px;padding:15px;margin:15px 0}.detail-example strong{font-size:11px;color:#8f643d}.detail-example p{margin-bottom:0}.settings-empty{padding:20px}.settings-empty[hidden]{display:none}
.lab-hero{padding:42px 45px;background:linear-gradient(120deg,#2b223f,#51374f);border-radius:25px;color:white;margin-bottom:35px;position:relative;overflow:hidden}.lab-hero:after{content:'';position:absolute;right:-60px;top:-80px;width:340px;height:340px;border:50px solid #b79bc418;border-radius:50%;pointer-events:none}.lab-hero h1{font-size:48px;line-height:1.1;color:white;margin:15px 0 20px}.lab-hero h1 em{font-style:normal;color:#f1c7a5}.lab-hero p{max-width:570px;color:#c3b2cc;font-size:15px;line-height:1.7}.lab-hero .pill{background:#ffffff12;color:#e6d6ee;margin-top:10px;font-size:11px}.lab-catalog>section{margin-bottom:34px}.lab-catalog h2{font-size:24px}.lab-card-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.lab-card{background:white;border:1px solid var(--line);border-radius:20px;padding:24px;position:relative;transition:transform .25s,box-shadow .25s;display:flex;flex-direction:column;align-items:flex-start}.lab-card:hover{transform:translateY(-5px);box-shadow:0 15px 30px #43245412}.lab-symbol{width:42px;height:42px;border-radius:13px;background:#f0e8ff;color:#895aca;display:grid;place-items:center;font-size:24px;margin-bottom:12px}.lab-card h3{font-size:19px;line-height:1.3;margin:3px 0 9px}.lab-card p{font-size:12px;line-height:1.65;color:#7a6988;margin-bottom:25px}.lab-card>span:last-child{margin-top:auto;font-size:11px;font-weight:800;color:#7854a2}.lab-back{display:flex;align-items:center;gap:10px;font-size:12px;color:#816691;margin-bottom:25px}.lab-presets{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin:20px 0}.lab-presets>span{font-size:11px;color:#7d6888;margin-right:4px}.lab-presets .btn{font-size:11px;padding:9px 14px;min-height:38px}.lab-rich{display:grid;grid-template-columns:minmax(265px,.8fr) minmax(0,1.3fr);gap:0;border:1px solid var(--line);border-radius:21px;background:white;overflow:hidden;margin-bottom:24px}.lab-rich .lab-controls{padding:27px;background:#fff}.lab-rich .lab-results{padding:27px;background:#fbf8fe;min-width:0}.lab-panel-heading{display:flex;align-items:center;gap:12px;margin-bottom:22px}.lab-panel-heading>span{display:grid;place-items:center;width:30px;height:30px;background:#ece2fb;color:#7f52ac;border-radius:10px;font-size:10px;font-weight:800}.lab-panel-heading h2{font-size:21px;margin:0}.lab-field{display:flex;flex-direction:column;gap:8px;margin-bottom:18px;font-size:12px;color:#655075;font-weight:700}.lab-field input:not([type=checkbox]),.lab-field select{width:100%;border:1px solid #dfd5ec;border-radius:10px;padding:11px 12px;background:#fefcff;font:inherit;color:#45314f}.lab-field.toggle-row{flex-direction:row;align-items:center;gap:15px;padding:12px 0;border-bottom:1px solid #f0eaf4}.lab-field.toggle-row span{flex:1}.lab-changed{font-size:10px;color:#83659d;display:flex;gap:7px;align-items:center;margin-bottom:14px}.lab-metrics{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:12px}.lab-metric{background:white;border:1px solid #e4dced;border-radius:14px;padding:17px}.lab-metric>span{font-size:10px;line-height:1.4;color:#826595;font-weight:800;display:block}.lab-metric b{display:block;font-family:Nunito,sans-serif;font-weight:900;font-size:27px;letter-spacing:-1px;color:#634287;margin:9px 0}.lab-metric p{font-size:12px;color:#6b5a78;line-height:1.65;margin:9px 0 0}.lab-formula{background:#eee6f8;border-radius:14px;padding:17px;margin-top:16px;color:#614676;overflow-wrap:anywhere}.lab-formula strong{font-size:10px}.lab-formula p{font-size:15px;font-weight:800;line-height:1.7;margin:7px 0 0}.lab-trace{padding-left:24px;margin:22px 0;font-size:12px;line-height:1.7;color:#756180}.lab-trace li{padding:4px 0 4px 6px}.lab-trace li::marker{color:#a985c8;font-weight:800}.lab-boundary{display:flex;gap:10px;padding:15px;background:#fbf0e4;border:1px solid #f2dfc9;border-radius:13px;font-size:11px;line-height:1.65;color:#876747}.lab-boundary p{margin:0}.lab-boundary>i{font-size:18px}.time-comparison{margin-top:20px;padding-top:15px;border-top:1px solid #e9dff2}.time-comparison>div{height:38px;position:relative;background:#f1eaf7;margin:8px 0;border-radius:6px;overflow:hidden}.time-comparison span{position:relative;z-index:2;font-size:10px;padding:10px;display:block;color:#38233e}.time-comparison i{position:absolute;top:0;height:100%;background:#c7a0ef80}.time-comparison>div:nth-child(2) i{background:#e7b88a80}.time-comparison small{font-size:9px;color:#7f698a}.lab-challenge{border:1px solid #e2d5ed;background:linear-gradient(130deg,#fff,#f6effc);border-radius:18px;padding:27px;margin:25px 0}.lab-challenge h2{font-size:21px;margin:12px 0 20px;max-width:680px}.lab-challenge>div{display:flex;gap:10px;flex-wrap:wrap}.lab-challenge .btn{font-size:12px;text-align:left}.lab-challenge p{font-size:13px;line-height:1.6}.answer-correct{color:#47765b}.answer-wrong{color:#99633c}.lab-controls>.btn{font-size:11px;margin-top:14px}
.chat-panel{width:min(610px,calc(100vw - 28px));height:min(820px,85dvh);max-height:calc(100dvh - 30px);border-radius:22px}.chat-head{padding:20px}.chat-head h3{font-size:19px}.chat-head small{font-size:11px}.chat-messages{padding:20px}.chat-message{font-size:14px;line-height:1.7;padding:19px;margin-bottom:16px}.chat-message p{white-space:normal}.chat-message ol{padding-left:22px}.chat-message li{padding:5px 0 5px 5px}.chat-consequence{padding:15px;background:#eee7f8;border:1px solid #dfd1ed;border-radius:12px;margin:16px 0;color:#67467f}.chat-consequence strong{font-size:11px;letter-spacing:.3px}.chat-consequence p{margin:7px 0 0}.chat-source{margin-top:12px;font-size:11px}.chat-source summary{font-size:11px}.chat-source p{font-size:12px;line-height:1.6}.chat-follow{display:flex;gap:8px;flex-wrap:wrap;margin-top:15px}.chat-follow button{padding:8px 11px;border:1px solid #dfd3eb;background:white;color:#805e9c;border-radius:9px;font-size:11px;text-align:left}.chat-input-row textarea{font-size:14px;min-height:66px}.chat-privacy{font-size:9px;line-height:1.6}.mode-label{font-size:9px}.chat-empty{font-size:13px}.side-bottom{padding-top:20px}
@media(max-width:1150px){.guide-workspace{grid-template-columns:minmax(0,1.1fr) minmax(290px,1fr)}.guide-workspace .guide-dock{padding:21px}.guide-copy h3{font-size:22px}.lab-card-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.lab-rich{grid-template-columns:minmax(240px,.9fr) minmax(0,1.2fr)}.guide-workspace .guide-stage{min-height:500px}}
@media(max-width:900px){.guide-workspace{grid-template-columns:1fr}.guide-workspace .guide-stage{height:300px;min-height:0;max-height:none;aspect-ratio:auto}.guide-workspace .guide-dock{min-height:0;border-left:0;border-top:1px solid var(--line);padding:23px}.guide-action p,.guide-copy p{font-size:14px}.guide-copy h3{font-size:23px;margin-bottom:12px}.guide-result{margin-top:13px}.guide-workspace .guide-controls{margin-top:0}.guide-open .guide-workspace{display:block;overflow:auto}.guide-open .guide-stage{height:280px;min-height:280px}.guide-open .guide-dock{min-height:0}.guide-open .guide-timeline{display:none}.lab-rich{grid-template-columns:1fr}.lab-rich .lab-controls{border-bottom:1px solid var(--line)}.lab-field{max-width:none}.lab-hero h1{font-size:39px}.detail-grid{grid-template-columns:1fr}}
@media(max-width:520px){.guide-workspace .guide-stage{height:240px}.guide-workspace .guide-dock{padding:20px 17px;gap:18px}.guide-copy h3{font-size:22px}.guide-kicker{font-size:8px}.guide-action>strong{font-size:10px}.guide-result{padding:13px;gap:8px}.guide-result strong{font-size:12px}.guide-result p{font-size:13px}.guide-context{font-size:10px}.guide-context p{font-size:12px}.guide-result .effect-icon{font-size:19px;flex-basis:19px}.guide-controls .btn{min-height:44px}.guide-stop{font-size:9px}.guide-watermark{font-size:7px}.guide-open .guide-stage{height:220px;min-height:220px}.guide-open .guide-copy h3{font-size:21px}.guide-open .guide-copy p{font-size:13px}.guide-open .guide-result{display:flex}.settings-filter{padding:17px;flex-direction:column;align-items:stretch;gap:13px}.settings-filter>span{padding:0}.detail-card h3{font-size:18px}.detail-body{font-size:13px}.detail-card summary{padding:18px}.lab-hero{padding:30px 25px}.lab-hero h1{font-size:36px}.lab-hero p{font-size:13px}.lab-hero .pill{font-size:9px}.lab-card-grid{grid-template-columns:1fr;gap:13px}.lab-card{padding:22px}.lab-card h3{font-size:20px}.lab-card p{font-size:13px;margin-bottom:17px}.lab-rich .lab-controls,.lab-rich .lab-results{padding:21px}.lab-panel-heading h2{font-size:21px}.lab-field{font-size:13px}.lab-metrics{grid-template-columns:1fr}.lab-metric{padding:17px;display:grid;grid-template-columns:1fr auto;gap:8px}.lab-metric b{font-size:27px;margin:0;grid-column:2;grid-row:1/3;align-self:center;max-width:130px;overflow-wrap:anywhere}.lab-metric p{grid-column:1;font-size:13px;margin:0}.lab-metric>span{font-size:11px}.lab-trace{font-size:13px}.lab-boundary{font-size:12px}.lab-challenge{padding:23px}.lab-challenge h2{font-size:21px}.lab-challenge .btn{font-size:13px}.chat-panel{bottom:10px;right:10px;width:calc(100vw - 20px);height:calc(100dvh - 20px);max-height:none}.chat-head{padding:16px}.chat-head small{font-size:9px}.chat-messages{padding:13px}.chat-message{font-size:14px;padding:15px}.chat-form{padding:12px}.chat-consequence{padding:12px}.chat-source summary{font-size:12px}}
@media(prefers-reduced-motion:reduce){.lab-card,.guide-result{transition:none}}

@media(max-width:520px){.chat-toggle{font-size:0;gap:0;padding:9px;border-radius:50%}.chat-toggle>span:first-child{width:25px;height:25px}.chat-toggle-label{display:none}}

/* 1.3 : véritables états d’interface et album des captures */
.guide-state-button{display:block;background:#fff;border:1px solid #cbb5e4;border-radius:9px;padding:9px 12px;margin-top:13px;color:#65428c;font-size:12px;font-weight:800;text-align:left;cursor:pointer}.guide-spotlight:disabled{cursor:default;opacity:1}.lesson-location{display:flex;flex-wrap:wrap;gap:8px 20px;padding:16px 19px;margin:-4px 0 20px;border:1px solid #e1d6ed;border-radius:15px;background:#fff;color:#6e597e;font-size:12px}.lesson-location>span{flex:1}.lesson-location a{font-weight:800;color:#744dab}.lesson-location small{font-size:10px;width:100%;overflow-wrap:anywhere;color:#7e6791}.screen-gallery{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px;margin:18px 0 32px;max-height:550px;overflow:auto;padding:3px 7px 8px 3px}.screen-gallery button{background:#fff;border:1px solid #e2d7eb;border-radius:13px;overflow:hidden;text-align:left;transition:transform .2s,box-shadow .2s}.screen-gallery button:hover{transform:translateY(-3px);box-shadow:0 8px 20px #45245215}.screen-gallery img{aspect-ratio:1.44;object-fit:contain;width:100%;background:#f1edf5;display:block}.screen-gallery span{font-size:12px;line-height:1.5;padding:12px;display:block;color:#5e4075;font-weight:800}.screen-viewer{border:1px solid #d8c5e9;border-radius:20px;padding:0;width:min(1500px,calc(100vw - 24px));max-width:none;max-height:calc(100dvh - 24px);background:#f5f0fa}.screen-viewer::backdrop{background:#20172bd9;backdrop-filter:blur(6px)}.screen-viewer header{display:flex;align-items:center;justify-content:space-between;gap:15px;padding:14px 20px;background:white;position:sticky;top:0}.screen-viewer h2{font-size:19px;margin:0}.screen-viewer>div{overflow:auto;max-height:calc(100dvh - 140px);text-align:center}.screen-viewer img{width:100%;max-width:1440px;height:auto;display:block;margin:auto}.screen-viewer>p{font-size:11px;text-align:center;margin:10px}.setting-image{display:block;width:100%;border:0;border-top:1px solid #e5dbee;background:#f5f1fa;padding:0;text-align:left}.setting-image img{width:100%;max-height:260px;object-fit:cover;object-position:center;display:block}.setting-image span{display:block;font-size:11px;font-weight:800;padding:10px 20px;color:#7b579c}.setting-save{background:#eaf5ed;border:1px solid #c5e1ce;padding:14px;border-radius:11px;margin-top:18px;color:#3e674e}.setting-save strong{font-size:12px}.setting-save p{margin:7px 0 0}.setting-fields{margin-top:20px}.setting-fields>div{padding:12px 0;border-bottom:1px solid #eee7f4}.setting-fields b{font-size:12px}.setting-fields p{font-size:12px;margin:5px 0}.lesson-gallery h2{font-size:24px}
@media(max-width:900px){.screen-gallery{grid-template-columns:repeat(2,minmax(0,1fr))}.screen-viewer h2{font-size:15px}}@media(max-width:520px){.screen-gallery{grid-template-columns:1fr;max-height:490px}.lesson-location{font-size:12px;padding:15px}.lesson-location>span{flex-basis:100%}.setting-image img{max-height:none}.screen-viewer>div{overflow:auto}.screen-viewer img{width:1100px;max-width:none}.screen-viewer header{padding:12px}.guide-state-button{font-size:12px}}
@media(prefers-reduced-motion:reduce){.screen-gallery button{transition:none}}

.guide-jump{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:13px 22px;background:#f5f0fb;border-bottom:1px solid #e5d7f2;color:#76528f;font-size:11px;font-weight:800}.guide-jump select{max-width:65%;min-width:0;border:1px solid #dfd0ec;border-radius:9px;background:#fff;color:#654477;padding:9px 12px;font:inherit}.screen-viewer:not(.zoomed) img{width:100%;max-width:1440px}.screen-viewer.zoomed img{width:1440px;max-width:none}.screen-viewer header h2{flex:1}.screen-viewer header .btn{font-size:11px;min-height:34px;padding:8px 12px}.guide-spotlight{backface-visibility:hidden}@media(max-width:520px){.guide-jump{padding:11px 15px;gap:10px;align-items:flex-start;flex-direction:column}.guide-jump select{max-width:100%;width:100%}.screen-viewer header{flex-wrap:wrap}.screen-viewer header h2{flex-basis:65%}}

/* 1.4 : introductions, vrais liens et erreurs de chargement explicites */
.lesson-introduction{background:linear-gradient(115deg,#f3edff,#fff);border:1px solid #e4d9f5;border-radius:20px;padding:24px 28px;margin:0 0 22px}.lesson-introduction>span{font-size:10px;font-weight:800;letter-spacing:1.2px;color:#835faf}.lesson-introduction h2{font-size:22px;margin:10px 0}.lesson-introduction p{font-size:15px;line-height:1.8;color:#645575;max-width:900px;margin:0}.lesson-location{display:block}.location-top{display:flex;justify-content:space-between;align-items:center;gap:18px}.location-top>span{font-size:12px;color:#7b6890}.location-top .btn{font-size:12px;padding:11px 15px;min-height:40px;color:#fff}.lesson-location .location-path{display:block;width:fit-content;font-size:15px;font-weight:800;text-decoration:underline;text-underline-offset:4px;margin:12px 0 9px}.lesson-location .location-url{display:block;width:fit-content;font-size:12px;overflow-wrap:anywhere;text-decoration:underline;text-underline-offset:3px}.lesson-location>p{font-size:11px;line-height:1.7;margin:12px 0 0;color:#7e6791}.lesson-location a:hover{text-decoration:underline;filter:brightness(.92)}.guide-image-error{position:absolute;inset:0;background:#f0eaf6;padding:32px;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:16px;text-align:center;color:#60486f}.guide-image-error[hidden],.guide-scene[hidden]{display:none!important}.guide-image-error>span{font-size:20px;font-weight:800}.guide-image-error p{font-size:13px;line-height:1.7;max-width:330px;margin:0}.guide-image-error .btn{font-size:12px}.screen-gallery img.image-unavailable{object-fit:contain;background:#f1e6e8}.screen-gallery button.capture-unavailable:after{content:'Capture indisponible — vérifier le transfert';display:block;padding:10px;font-size:12px;color:#92465e}
@media(max-width:520px){.lesson-introduction{padding:21px}.lesson-introduction p{font-size:14px}.location-top{align-items:flex-start;flex-direction:column;gap:12px}.location-top .btn{width:100%}.lesson-location .location-path{font-size:14px}.lesson-location .location-url{font-size:11px}}
