/* Dedicated learning space, not a modal. Existing lessons remain mounted and are restored. */
body>[data-hg-suspended]{display:none!important}
body:has(>.ht-space){margin:0;background:#edf0eb;color:#123342}
.ht-space.ht-dialog{position:static;inset:auto;display:block;width:100%;max-width:none;min-height:100dvh;max-height:none;margin:0;padding:0;border:0;border-radius:0;overflow:visible;background:#f4f3ed;box-shadow:none}
.ht-space.ht-dialog .ht-adventure-frame{grid-template-columns:180px minmax(0,1fr);min-height:100dvh}
.ht-space .ht-adventure-nav{position:sticky;top:0;height:100dvh;box-sizing:border-box;padding:0 12px 18px;gap:16px}
.ht-space .ht-guide-cover{padding-top:18px}.ht-space .ht-guide-cover>img{height:125px}.ht-space .ht-guide-cover>div{padding:10px}.ht-space .ht-guide-cover b{font-size:20px}.ht-space .ht-guide-cover p{font-size:12px}
.ht-space .ht-adventure-nav nav{gap:6px}.ht-space .ht-adventure-nav nav button{font-size:12px;padding:10px 9px;line-height:1.45;min-height:42px}
.ht-space .ht-adventure-main{padding:18px 24px;min-height:0;min-width:0;background:#f6f4ed}
.ht-space .ht-breadcrumb{margin:0 0 10px;font-size:11px;line-height:1.5;opacity:.85}
.ht-space .ht-route{display:none}
.ht-space .hg-topbar{display:flex;align-items:start;justify-content:space-between;gap:20px;margin:0!important;padding:0 0 12px!important;border-bottom:1px solid #cdd5d2!important;background:transparent!important}
.ht-space .hg-topbar small{font:600 10px/1.6 system-ui!important;letter-spacing:.13em;color:#55717a!important}
.ht-space .hg-topbar h2{font:700 22px/1.3 Georgia,serif!important;color:#092f42!important;margin:5px 0!important;max-width:950px}
.ht-space .hg-topbar p{font:12px/1.6 system-ui;margin:4px 0 0;color:#476575}
.ht-space .hg-topbar>button{font-size:12px;background:#fffdf6;color:#234952;white-space:nowrap}
.ht-space progress{appearance:none;width:100%;height:5px;margin:0;display:block;border:0;background:#dce3dd;border-radius:4px;overflow:hidden}.ht-space progress::-webkit-progress-bar{background:#dce3dd}.ht-space progress::-webkit-progress-value{background:#d4ad46}.ht-space progress::-moz-progress-bar{background:#d4ad46}
.ht-space button{font:600 13px/1.5 system-ui;cursor:pointer;border-radius:8px;min-height:42px;box-sizing:border-box;box-shadow:none;white-space:normal}
.ht-space button:disabled{cursor:default;opacity:.55}.ht-space button:focus-visible,.ht-space input:focus-visible{outline:3px solid #d4a638;outline-offset:3px}
.ht-space button.primary,.ht-space .hg-main-action>button{background:#225d53;color:#fffdf2;border:1px solid #225d53;box-shadow:0 3px 8px #1e594c12}
.ht-space .hg-main-action>button:hover{background:#16493f}.ht-space .hg-workbench{margin-top:18px;min-width:0}
.hg-workbench *{box-sizing:border-box}
.ht-space .hg-task-heading{margin:0 0 18px;padding:0}.ht-space .hg-task-heading>small{font:600 10px/1.5 system-ui;letter-spacing:.15em;text-transform:uppercase;color:#846c34}.ht-space .hg-task-heading h2{font:700 clamp(20px,2vw,27px)/1.35 Georgia,serif;color:#082f43;margin:7px 0 8px;max-width:1000px}.ht-space .hg-task-heading p{font:14px/1.6 system-ui;margin:0;color:#506b75}
.hg-task-grid{display:grid;grid-template-columns:minmax(0,1fr) 215px;gap:18px;align-items:start;min-width:0}
.hg-workbench.has-document .hg-task-grid{grid-template-columns:minmax(250px,1.05fr) minmax(260px,1fr) 205px}
.hg-document-panel,.hg-response-panel{min-width:0}.hg-response-panel{display:flex;flex-direction:column;gap:14px}
.hg-reader{border:1px solid #d9d9cb;border-radius:12px;overflow:hidden;background:#fffdf7;box-shadow:0 5px 18px #123e4910;position:sticky;top:16px}
.hg-reader>header{display:flex;align-items:center;gap:8px;justify-content:space-between;padding:11px 14px;background:#e9e9dc;border-bottom:1px solid #d5d9c9}
.ht-space .hg-reader>header h3{font:700 15px/1.4 Georgia,serif;margin:0;color:#173a4a}.hg-reader>header>div{display:flex;align-items:center;gap:5px}
.ht-space .hg-reader>header button{padding:4px 9px;font-size:11px;min-height:32px;background:#fffdf5}.hg-zoom-label{font:10px system-ui;color:#59717a;white-space:nowrap}
.hg-document-scroll{max-height:calc(100dvh - 280px);min-height:200px;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin}
.hg-document-content{padding:18px;line-height:1.85;font-family:Georgia,serif;color:#163e4e}
.hg-document-content figure{margin:0}.hg-document-content figure img{height:auto;object-fit:contain;display:block}.hg-document-content figcaption{font:11px/1.5 system-ui;color:#5b6f73;margin:9px 0}
.hg-source-text{margin:0!important;font:inherit;line-height:inherit}
.ht-space .hg-text-fragment{font:inherit;line-height:inherit;text-align:left;padding:0;border:0;background:none;min-height:0;color:inherit;border-radius:3px;display:inline;box-decoration-break:clone;font-weight:400}
.ht-space .hg-text-fragment:hover{background:#f5edc4}.ht-space .hg-text-fragment.is-marked,.ht-space .hg-text-fragment[aria-pressed=true]{background:#f6df83;box-shadow:0 2px 0 #dac16a}
.hg-reader>footer{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 12px;background:#f3f0e5;font:11px/1.5 system-ui;color:#52717b}.ht-space .hg-reader>footer button{padding:4px 7px;min-height:30px;font-size:10px;background:transparent}
.hg-table-scroll{overflow:auto}.hg-table-scroll table{border-collapse:collapse;width:100%;font:13px/1.6 system-ui;margin:12px 0}.hg-table-scroll th,.hg-table-scroll td{border:1px solid #cbd4c9;padding:9px;text-align:left}.hg-table-scroll th{background:#e9efdf}
.hg-coach{padding:14px;border:1px solid #d8d9c8;background:#eeeddf;border-radius:12px;position:sticky;top:16px;max-height:calc(100dvh - 40px);overflow:auto;scrollbar-width:thin}
.hg-coach>header{display:flex;gap:10px;align-items:center;background:none;padding:0;border:0}.hg-coach>header img{width:48px;height:64px;object-fit:contain}.ht-space .hg-coach h3{font:700 20px Georgia,serif;color:#22584b;margin:5px 0}.hg-coach small{font:9px system-ui;letter-spacing:.09em;color:#60766c}.hg-coach>p{font:13px/1.6 Georgia,serif;color:#325d61;margin:12px 0}
.hg-coach-actions{display:grid;gap:7px}.ht-space .hg-coach-actions button{background:#fffdf4;color:#254b57;padding:8px 9px;min-height:36px;text-align:left;font-size:11px}.ht-space .hg-coach-actions [data-help]{background:#f7e7a7;border-color:#dac576}
.hg-coach .vt-teacher{margin-top:12px;border:0;border-top:1px solid #d4d7c6;border-radius:0;padding:12px 0 0;background:none;box-shadow:none}.hg-coach .vt-teacher>header{display:none}.hg-coach .vt-board{padding:8px;margin:0 0 10px;min-height:0}.hg-coach .vt-icon{width:28px!important;height:28px!important}.hg-coach .vt-tile{padding:8px}.hg-coach .vt-tile small{font-size:8px;letter-spacing:0}.hg-coach .vt-tile strong{font-size:11px}.hg-coach .vt-teacher nav{display:grid;grid-template-columns:1fr 1fr;gap:5px}.hg-coach .vt-teacher nav button{font-size:10px;min-height:32px;padding:6px}.hg-coach .vt-teacher [data-vt-listen]{grid-column:1/-1;grid-row:2}.hg-coach .vt-say{font:13px/1.6 Georgia,serif}.hg-coach .vt-note{display:none}
.hg-answer-area{border:1px solid #d4d9cf;border-radius:12px;padding:16px;background:#fffdf6;box-shadow:0 5px 18px #123e4908}
.hg-connections{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(120px,.9fr);gap:16px}
.hg-link-sources{display:grid;gap:12px;align-content:start}.hg-link-row{border:1px solid #cfdae0;border-radius:9px;background:#eef3f3;overflow:hidden;padding:9px}
.ht-space .hg-link-row>button{width:100%;padding:9px;background:#e0ebef;border-color:#b9ced4;color:#1b4a60;text-align:left}.ht-space .hg-link-row>button[aria-pressed=true]{border:2px solid #b49135;background:#f8ebba}
.hg-connection{display:flex;align-items:center;gap:8px;margin-top:10px;min-height:42px;font:12px/1.5 Georgia;color:#71858b}.hg-connection>span[aria-hidden]{font-size:25px;color:#769b98}.hg-connection.is-linked{color:#17454d}.hg-connection strong{font-weight:400;flex:1}.ht-space .hg-connection button{padding:0 7px;min-height:28px;background:#fffdf5}
.hg-targets{display:grid;gap:9px;align-content:start}.hg-targets>small,.hg-bank>small{font:600 9px/1.5 system-ui;letter-spacing:.1em;color:#7a714d;display:block}.ht-space .hg-targets>button{padding:12px;background:#f2e8cb;border-color:#d4c49a;color:#463d26;text-align:left;font:14px/1.5 Georgia,serif;box-shadow:0 3px 0 #d1c9af55}
.hg-places{display:flex;gap:10px;min-height:140px;align-items:stretch;position:relative;padding:14px 0}
.hg-place{flex:1;min-width:0;display:flex;flex-direction:column;gap:10px}.ht-space .hg-place>button{padding:12px 10px;min-height:90px;flex:1;background:#f0f2e9;border:1px dashed #acbfb9;color:#3f6764;font:14px/1.5 Georgia;overflow-wrap:anywhere}.ht-space .hg-place>button[aria-pressed=true]{border:2px solid #bc9b41;background:#fbf0c8}.hg-place>small{font:10px/1.5 system-ui;color:#587269;text-align:center}
.hg-bank{display:flex;flex-wrap:wrap;gap:9px;padding:15px 0;margin-top:12px;border-top:1px solid #e4dfce}.hg-bank>small{width:100%}.ht-space .hg-bank>button{background:#e7eae1;padding:11px 14px;box-shadow:0 3px 0 #cdd4c955;font:14px/1.5 Georgia;max-width:100%;color:#1c4a54}
.hg-axis-label{display:flex;align-items:center;justify-content:space-between;font:700 12px Georgia;color:#2c565f;gap:10px}.hg-axis-label span{font:10px/1.5 system-ui;text-align:center;color:#658184}
.hg-timeline .hg-places{padding:28px 0 14px}.hg-timeline .hg-places:before{content:'';position:absolute;left:0;right:0;top:14px;height:3px;background:#547974}.hg-timeline .hg-place:before{content:'';position:relative;top:-19px;margin-bottom:-15px;align-self:center;width:13px;height:13px;border:3px solid #c6aa52;background:#fff9df;border-radius:50%}
.hg-sentence .hg-places{flex-wrap:wrap;justify-content:start;min-height:0}.hg-sentence .hg-place{flex:1 1 85px}.hg-sentence .hg-place>button{min-height:66px}
.hg-decision{display:grid;gap:16px}.hg-conclusion{border:2px dashed #a0b9b0;border-radius:10px;padding:16px;background:#edf3e9;min-height:115px}.hg-conclusion>small{font:600 9px/1.5 system-ui;letter-spacing:.12em;color:#52756c}.hg-conclusion>p{font:17px/1.6 Georgia,serif;color:#153f47;margin:8px 0}.ht-space .hg-conclusion button{font-size:11px;min-height:28px;padding:4px 8px}
.hg-options{display:grid;gap:9px}.ht-space .hg-options>button{font:15px/1.6 Georgia,serif;padding:12px 14px;background:#f4eedf;border:1px solid #dcd0b4;color:#243e46;text-align:left;box-shadow:0 3px 0 #dbd2bc33}.ht-space .hg-options>button[aria-pressed=true]{border:2px solid #9c833c;background:#f7e8af}.hg-decision>small{font:11px/1.5 system-ui;color:#6b7e76}
.hg-number-lab label,.hg-recall label{display:grid;gap:12px;font:14px/1.5 Georgia,serif;color:#2c5b62}.ht-space .hg-number-lab input{font:500 36px/1.4 ui-monospace,monospace;letter-spacing:.1em;text-align:right;background:#183c4a;color:#fbf2d5;padding:16px;max-width:100%;width:100%;border:2px solid #467279;border-radius:9px;min-width:0}
.hg-keypad{display:grid;grid-template-columns:repeat(3,1fr);gap:7px;margin-top:14px}.ht-space .hg-keypad button{font:600 18px/1.4 ui-monospace,monospace;background:#e8eee7;min-height:45px;color:#274b55}.hg-keypad [data-key=back]{grid-column:1/-1;font-size:12px!important}.hg-number-lab p,.hg-recall p{font:11px/1.6 system-ui;color:#627771;margin:12px 0 0}
.hg-recall{padding:12px;background:repeating-linear-gradient(#fffdf5 0,#fffdf5 31px,#e1e1cd 32px);border-left:3px solid #c9ac56}.hg-recall>span{font:600 9px/1.6 system-ui;color:#997b36;letter-spacing:.15em;display:block;margin-bottom:20px}.ht-space .hg-recall input{font:23px/1.6 Georgia,serif;color:#174f5a;border:0;border-bottom:2px solid #a1b6a6;background:#fffdf5b3;border-radius:0;padding:8px 0;width:100%;min-width:0;max-width:100%}
.hg-map{min-width:0}.hg-map>p{font:13px/1.6 Georgia;color:#345a62;margin:0 0 12px}.hg-map-canvas{position:relative;min-width:0}.hg-map-canvas>img{width:100%;height:auto;display:block}.hg-map-pins{position:absolute;inset:0;pointer-events:none}.ht-space .hg-map-pin{position:absolute;width:28px;height:28px;min-height:28px;padding:0;transform:translate(-50%,-50%);border:2px solid #fff8d7;border-radius:50%;color:white;background:#174d62;box-shadow:0 1px 8px #0f2a5a77;pointer-events:auto;font:700 12px system-ui}.ht-space .hg-map-pin[aria-pressed=true]{background:#c79526;color:#fff;border-color:white}
.hg-map-tools{display:flex;align-items:center;gap:9px;justify-content:flex-end;margin-bottom:9px}.hg-map-tools span{font:11px system-ui}.ht-space .hg-map-tools button{min-height:30px;padding:4px 10px;background:#fffdf3}.hg-map-viewport{overflow:auto;max-height:320px;scrollbar-width:thin;border:1px solid #dde0d4;border-radius:7px}.hg-map-canvas{min-width:100%}
.hg-map-legend{display:grid;gap:7px;margin:12px 0}.hg-map-legend>section{display:grid;grid-template-columns:1fr 1fr;gap:10px;align-items:center;padding:6px;border-radius:8px;background:#eef1e9}.ht-space .hg-map-legend button{font:13px Georgia;background:#fffdf6;min-height:35px;padding:7px}.hg-map-legend span{font:12px/1.5 Georgia;color:#49666d}.hg-map-bank{grid-template-columns:repeat(auto-fit,minmax(120px,1fr))}.hg-map .hg-caption{font-size:10px;margin-top:12px}
.ht-space .hg-main-action{padding:0;display:flex;justify-content:flex-end;position:sticky;bottom:10px;z-index:2}.ht-space .hg-main-action>button{padding:13px 24px;min-height:46px;box-shadow:0 5px 20px #123b4922}
.hg-feedback{border:1px solid #c3d5c8;border-left:4px solid #548e71;border-radius:10px;padding:16px;background:#eef5e9}.hg-feedback>div:first-child{display:grid;gap:5px}.hg-feedback strong{font:700 19px Georgia;color:#22594c}.hg-feedback span{font:10px/1.5 system-ui;color:#567268}.hg-feedback p{font:14px/1.6 Georgia;color:#234e54;margin:12px 0}.hg-feedback>div:last-child{display:flex;gap:7px;flex-wrap:wrap}.ht-space .hg-feedback button{font-size:12px;padding:8px 11px}.hg-feedback summary{font:12px system-ui;color:#516d70;cursor:pointer}.hg-feedback.hg-incorrect{background:#faf0db;border-color:#ddc388;border-left-color:#b18436}.hg-feedback.hg-pending{background:#edf2f6;border-color:#bbcdd8;border-left-color:#668b9e}
.ht-space .hg-correct{border-color:#57846b!important;background-color:#edf5e9!important}.ht-space .hg-incorrect{border-color:#bd8c36!important}.hg-link-row.hg-incorrect:after{content:'Lien à ajuster';font:10px system-ui;color:#88621e;display:block;margin-top:6px}
.ht-space .hg-savebar{display:flex;align-items:center;gap:15px;flex-wrap:wrap;border-top:1px solid #dde0d3;margin:20px 0 0;padding:10px 0 0;color:#648079}.hg-savebar p{font:11px/1.5 system-ui;margin:0;flex:1}.ht-space .hg-savebar button{font-size:10px;min-height:30px;padding:4px 10px;background:transparent}.hg-savebar>small{font:9px system-ui}
.ht-space .ht-result-banner>span{font:700 32px Georgia;background:#dfece0;color:#245b4b;border-radius:10px;width:60px;height:60px}
.hg-session{display:grid;gap:6px;padding:15px 18px;border:1px solid #dce0d3;border-radius:10px;background:#fffdf5;margin:12px 0}.hg-session strong{font:700 16px Georgia;color:#254e55}.hg-session span{font:11px system-ui;color:#667e75}.hg-session p{font:14px/1.6 Georgia;margin:2px 0;color:#2e565c}
.ht-space .ht-overview section{box-shadow:0 6px 18px #1235420c}.ht-space.ht-view-intro .ht-adventure-main{min-height:100dvh}.ht-space .ht-version{font-size:10px}
@media(min-width:850px){.ht-space.ht-view-game .ht-adventure-main{display:grid;grid-template-rows:auto auto 5px minmax(0,1fr) auto;height:100dvh;min-height:0;overflow:hidden}.ht-view-game .hg-workbench{display:flex;flex-direction:column;min-height:0}.ht-view-game .hg-task-heading{flex:none;margin-bottom:12px}.ht-view-game .hg-task-grid{min-height:0;flex:1;overflow:hidden}.ht-view-game .hg-document-panel,.ht-view-game .hg-response-panel{max-height:100%;min-height:0}.ht-view-game .hg-response-panel{overflow:auto;overscroll-behavior:contain;padding:0 3px 3px;scrollbar-width:thin}.ht-view-game .hg-reader{display:flex;flex-direction:column;position:static;max-height:100%;height:100%}.ht-view-game .hg-document-scroll{max-height:none;min-height:0;flex:1}.ht-view-game .hg-coach{position:static;max-height:100%;min-height:0}.ht-view-game .hg-savebar{margin-top:10px;padding-top:6px}.ht-view-game .hg-main-action{bottom:0;padding:5px 0 0;background:linear-gradient(transparent,#f6f4ed 30%);flex:none}}
.ht-space.ht-view-skills .ht-adventure-main{max-width:1100px}.ht-space .ht-adventure-nav button[data-route=skills][aria-current=page]{background:#efdb96;color:#133943}
@media(prefers-reduced-motion:no-preference){.hg-link-row,.hg-place>button,.hg-conclusion,.hg-options button{transition:background .15s,border-color .15s,box-shadow .15s}.hg-feedback{animation:hg-arrive .2s ease-out}@keyframes hg-arrive{from{opacity:.4;transform:translateY(5px)}to{opacity:1;transform:none}}}
@media(min-width:1550px){.hg-task-grid{grid-template-columns:minmax(0,1fr) 235px}.hg-workbench.has-document .hg-task-grid{grid-template-columns:minmax(350px,1.05fr) minmax(330px,1fr) 225px}.ht-space .ht-adventure-main{padding:22px 36px}.hg-document-scroll{max-height:calc(100dvh - 260px)}}
@media(max-width:1200px){.ht-space.ht-dialog .ht-adventure-frame{grid-template-columns:155px minmax(0,1fr)}.ht-space .ht-adventure-main{padding:16px}.hg-task-grid,.hg-workbench.has-document .hg-task-grid{grid-template-columns:minmax(0,1fr) 185px}.hg-workbench.has-document .hg-document-panel{grid-column:1;grid-row:1}.hg-workbench.has-document .hg-response-panel{grid-column:1;grid-row:2}.hg-workbench.has-document .hg-coach{grid-column:2;grid-row:1 / span 2}.hg-document-scroll{max-height:38dvh;min-height:140px}.hg-reader{position:static}.hg-connections{grid-template-columns:minmax(0,1fr) minmax(120px,.75fr)}.hg-places{flex-wrap:wrap}.hg-place{flex:1 1 130px}}
@media(min-width:850px) and (max-width:1200px){.hg-workbench.has-document .hg-task-grid{grid-template-columns:minmax(250px,1fr) minmax(250px,1fr)}.hg-workbench.has-document .hg-document-panel{grid-column:1;grid-row:1}.hg-workbench.has-document .hg-response-panel{grid-column:2;grid-row:1}.hg-workbench.has-document .hg-coach{grid-column:1/-1;grid-row:2;max-height:none;position:static;display:grid;grid-template-columns:120px 1fr 1fr;gap:12px}.hg-workbench.has-document .hg-coach>p{margin:0}.hg-workbench.has-document .hg-coach>[data-visual-hint]{grid-column:1/-1}.hg-document-scroll{max-height:calc(100dvh - 260px)}.hg-connections{grid-template-columns:1fr}.hg-targets{grid-template-columns:repeat(2,minmax(0,1fr))}.hg-targets>small{grid-column:1/-1}}
@media(max-width:849px){.ht-space.ht-dialog .ht-adventure-frame{display:block}.ht-space .ht-adventure-nav{position:static;height:auto;padding:10px 14px}.ht-space .ht-guide-cover,.ht-space .ht-adventure-nav>small{display:none}.ht-space .ht-adventure-nav nav{display:flex;gap:6px;overflow:auto}.ht-space .ht-adventure-nav nav button{flex:0 0 auto;max-width:145px;min-height:36px;font-size:11px;padding:7px 10px}.hg-task-heading h2{font-size:23px}.hg-document-scroll{max-height:42dvh}.ht-space .hg-topbar h2{font-size:20px!important}}
@media(max-width:600px){.ht-space .ht-adventure-main{padding:14px}.hg-task-grid,.hg-workbench.has-document .hg-task-grid{display:flex;flex-direction:column;gap:14px}.hg-document-panel,.hg-response-panel,.hg-coach{width:100%}.hg-coach{position:static;max-height:none;padding:12px}.hg-coach-actions{grid-template-columns:repeat(3,minmax(0,1fr))}.hg-coach>p{margin:6px 0}.hg-coach>header img{height:42px;width:35px}.hg-coach .vt-teacher nav{display:flex;flex-wrap:wrap}.ht-space .hg-topbar{gap:10px}.ht-space .hg-topbar>button{min-height:32px;font-size:10px;padding:6px;white-space:normal}.hg-connections{grid-template-columns:1fr}.hg-targets{grid-template-columns:repeat(2,minmax(0,1fr))}.hg-targets>small{grid-column:1/-1}.hg-answer-area{padding:12px}.hg-document-content{padding:14px}.hg-map-legend>section{grid-template-columns:1fr}.hg-main-action>button{width:100%}.hg-keypad button{min-height:42px}}
