/* Habillage du véritable mini-quiz chargé au-dessus ; adaptations à la démo. */
body[data-view]{font-size:16px}body[data-view] header{flex-wrap:nowrap}body[data-view] header>a{white-space:nowrap}body[data-page=mini] .quiz-main{max-width:1100px}body[data-view=study] #quiz{padding-top:24px;padding-right:28px;padding-bottom:26px}.question-situation{font-size:16px;line-height:1.55}#demo-question{font:650 22px/1.4 system-ui,sans-serif;margin:14px 0 22px}.demo-grid{display:grid;grid-template-columns:1.08fr 1fr;gap:24px;align-items:start}.demo-chart{margin:0;padding:4px 0}.demo-chart svg{display:block;width:100%;height:auto;font-family:Arial,sans-serif}.demo-chart figcaption{text-align:center;font-size:14px;margin-top:6px}.demo-tip{font-size:14px;line-height:1.5;padding-left:12px;border-left:3px solid #bd9550;margin:18px 0 0}.demo .answers{grid-template-columns:1fr 1fr;gap:12px}.demo .answer{grid-template-columns:16px 28px 1fr;gap:8px;font-size:16px;padding:14px 10px;min-height:76px}.demo .letter{font-family:Georgia,serif;font-weight:bold}.demo input{margin:0;min-width:16px}.demo button{font-size:16px;padding:11px 15px}.demo button:disabled{opacity:.6;cursor:default}#demo-feedback{font-size:16px;line-height:1.5;margin:18px 0;padding:12px 15px;border-radius:9px}#demo-feedback.retry{background:#fff0da;color:#85451e;border-left:4px solid #b47b2a}#demo-feedback.correct{background:#e4f1dd;color:#2f613d;border-left:4px solid #487f4e}.demo-retain{font-size:15px;line-height:1.5}.demo-note{background:#fff8e8ed;border:1px solid #c5a05a;border-radius:9px;padding:12px 16px;font-size:14px;line-height:1.5;margin:20px 0 0}@media(max-width:760px){.demo-grid{grid-template-columns:1fr}.village-place{display:none}body[data-view] header{gap:10px;padding-inline:14px!important}.village-brand{font-size:22px}body[data-view] header>a{font-size:13px}body[data-view=study] main{padding:18px 14px}body[data-view=study] #quiz{padding:20px 18px 24px 28px}.demo .answer{min-height:70px;padding:12px 9px}.demo-grid{gap:20px}.demo button{font-size:15px}#demo-question{font-size:20px}.demo .meta{font-size:12px}.demo-chart svg{min-height:190px}}
/* Découverte courte des trois espaces, avec leurs décors d’origine. */
body.demo-tour main{max-width:1100px;margin:auto;padding:18px 24px 28px;min-height:calc(100dvh - 62px);height:auto!important;display:block}body.demo-tour .tour-label,body.demo-tour .tour-intro{display:table;background:#fff8e8ef;border:1px solid #c5a05a;border-radius:9px;padding:8px 14px;font-size:14px;line-height:1.5;margin:0 0 14px}.tour-label{font-weight:700;letter-spacing:.05em}.tour-tabs{display:flex;gap:12px;margin:0 0 14px}.tour-tabs button{flex:1;font-size:17px;font-weight:700;padding:12px 14px;cursor:pointer}body.demo-tour .tour-tabs button[aria-selected=true]{background:linear-gradient(#f6dc92,#d7ae59)!important;color:#173e5a!important;box-shadow:0 3px #9b793d}.tour-tabs button.step-done::after{content:' ✓';color:inherit}.demo-tour [role=tabpanel]>h1{font-size:30px;margin:12px 0 10px;background:#fff8e8f5;border:1px solid #d4b26c;border-radius:12px;padding:8px 18px;display:table}.demo-tour .intro{color:#173e5a;background:#fff8e8ed;font-size:15px;line-height:1.5;padding:8px 14px;margin:0 0 18px}.demo-tour article>h2{font:650 22px/1.4 system-ui;margin:16px 0}.tour-method{font-size:16px;line-height:1.5;background:#e7eee9;padding:12px 16px;border:1px solid #ccd8cf;border-radius:8px}.tour-feedback{font-size:16px;line-height:1.5;padding:12px 15px;border-radius:9px;margin:18px 0}.retention-preview{display:grid;grid-template-columns:1fr 1.35fr 1fr;gap:22px;margin:28px 0}.demo-tour .retention-preview .central{position:static;width:auto;height:auto;grid-column:1/-1;max-width:460px;justify-self:center;padding:18px 30px;margin:0 0 8px;background:#103b5c}.demo-tour .retention-preview .central h2{font-size:25px;margin:10px 0}.demo-tour .retention-preview .branch{position:relative;width:auto;height:auto;min-height:0;left:auto;right:auto;top:auto;bottom:auto;padding:16px;align-self:stretch}.demo-tour .retention-preview .branch h2{font:700 20px/1.3 Georgia,serif;margin:0 0 16px}.retention-preview p{font-size:16px;line-height:1.6}.retention-figure svg{width:100%;height:auto;max-height:210px}.retention-actions{display:table;margin:24px auto;text-align:center;background:#fff8e8f2;padding:16px 24px;border:1px solid #c5a05a;border-radius:12px}.retention-actions p{font-size:14px;margin-bottom:0}.training-preview{padding:22px 26px;background:linear-gradient(120deg,#fffbedf7,#f1dfbaf7);border:2px solid #c59a46;border-radius:18px;box-shadow:0 6px #795937}.demo-tour .training-preview label{font-size:16px;display:block;margin-bottom:10px}.demo-tour #response{max-width:100%}.demo-tour button{cursor:pointer}.demo-tour .finish-actions{display:flex;gap:14px;flex-wrap:wrap}#tour-finish{margin-top:24px}#tour-finish h2{font-size:28px}#tour-finish p{font-size:16px;line-height:1.6}.demo-tour .demo-note{display:block!important}@media(max-width:760px){body.demo-tour main{padding:16px 14px}.tour-tabs{gap:8px}.tour-tabs button{font-size:14px;padding:12px 6px}.demo-tour .retention-preview{grid-template-columns:1fr;gap:20px}.demo-tour .retention-preview .central{grid-column:1;width:90%;max-width:none;min-height:0}.demo-tour .retention-preview .branch{width:100%}.retention-figure svg{max-height:240px}.training-preview{padding:16px}.demo-tour article>h2{font-size:20px}.demo-tour .retention-actions{padding:14px}.demo-tour .finish-actions{flex-direction:column}.demo-tour #quiz{padding-left:26px}}
body.demo-tour.retention-page[data-view=mindmap] .retention-preview .branch{position:relative;width:100%;height:auto;min-width:0;min-height:0;top:auto;left:auto;right:auto;bottom:auto;padding:16px;align-self:stretch}body.demo-tour.retention-page[data-view=mindmap] .retention-preview .branch p{font-size:16px;line-height:1.6;margin:12px 0}body.demo-tour.retention-page[data-view=mindmap] .retention-preview .branch h2{font-size:20px;min-height:42px;margin-bottom:16px}
/* Sur PC, répartir l’espace disponible sans masquer le contenu. */
@media screen and (min-width:1000px){
 body.demo-tour main{max-width:1240px;padding:10px 24px 12px;min-height:calc(100dvh - 62px)}
 body.demo-tour .tour-label{font-size:12px;line-height:1.3;padding:5px 12px;margin-bottom:6px}
 .demo-tour .tour-tabs{gap:12px;margin-bottom:6px}.demo-tour .tour-tabs button{padding:9px 14px;font-size:16px}
 body.demo-tour .tour-intro{font-size:14px;line-height:1.4;padding:5px 12px;margin-bottom:10px}
 .demo-tour [role=tabpanel]:not([hidden]){display:grid;grid-template-columns:auto 1fr;gap:10px 16px;align-items:center}
 .demo-tour [role=tabpanel]>h1{font-size:26px;margin:0;padding:6px 16px}
 .demo-tour [role=tabpanel]>.intro{margin:0;font-size:14px;padding:6px 12px;justify-self:start}
 .demo-tour [role=tabpanel]>article,.demo-tour .training-preview,.demo-tour .retention-preview,.demo-tour .retention-actions{grid-column:1/-1}
 body.demo-tour[data-view=study] #quiz{padding:14px 20px 16px 34px}
 .demo-tour .question-situation{font-size:16px;line-height:1.4;margin:0 0 8px}
 .demo-tour .tour-method{font-size:16px;line-height:1.4;padding:9px 12px;margin:0 0 10px}
 .demo-tour article>h2{font-size:21px;line-height:1.3;margin:8px 0 12px}
 .demo-tour .demo-grid{grid-template-columns:1fr 1.05fr;gap:28px;align-items:center}
 .demo-tour .demo-chart{padding:0}.demo-tour .demo-chart svg{height:clamp(150px,calc(100dvh - 470px),310px);width:100%}
 .demo-tour .demo-chart figcaption{font-size:13px;margin-top:3px}
 body.demo-tour[data-view] label.answer{min-height:52px;padding:9px 12px;font-size:16px}
 .demo-tour .demo .answers{gap:10px}.demo-tour .actions{margin-top:10px}
 .demo-tour button.button{font-size:16px;padding:9px 14px}
 .demo-tour .tour-feedback{font-size:16px;line-height:1.4;padding:10px 12px;margin:10px 0}
 .demo-tour .demo-grid>div:has(.tour-feedback.correct:not([hidden])) form .actions{display:none}
 .demo-tour .training-preview{padding:14px 18px 16px}.demo-tour .exercise-card{padding:16px 20px}
 .demo-tour .training-preview label{margin-bottom:7px}.demo-tour #response{font-size:21px;padding:9px 12px;margin-top:0}
 .demo-tour .retention-preview{gap:16px;margin:8px 0}
 .demo-tour .retention-preview .central{padding:10px 24px;margin:0;max-width:520px}
 .demo-tour .retention-preview .central h2{font-size:22px;margin:7px 0}.demo-tour .retention-preview .central small{font-size:11px}
 body.demo-tour.retention-page[data-view=mindmap] .retention-preview .branch{padding:12px 14px}
 body.demo-tour.retention-page[data-view=mindmap] .retention-preview .branch h2{font-size:19px;min-height:36px;margin-bottom:10px}
 body.demo-tour.retention-page[data-view=mindmap] .retention-preview .branch p{font-size:16px;line-height:1.4;margin:9px 0}
 .demo-tour .retention-figure svg{display:block;width:100%;height:clamp(130px,calc(100dvh - 530px),200px)}
 .demo-tour .retention-actions{display:flex;align-items:center;justify-content:center;gap:18px;justify-self:center;margin:4px 0 0;padding:10px 16px}
 .demo-tour .retention-actions p{margin:0;font-size:14px}
 .demo-tour .demo-note{font-size:13px;line-height:1.4;padding:7px 12px;margin:12px 0 0}
 .demo-tour #tour-finish{margin-top:12px}
}
@media screen and (min-width:1000px){.demo-tour .demo-chart svg{height:clamp(140px,calc(100dvh - 550px),270px)}}
@media screen and (min-width:1000px) and (max-height:800px){
 body.demo-tour .tour-label{padding:3px 12px;margin-bottom:4px}.demo-tour .tour-tabs{margin-bottom:4px}.demo-tour .tour-tabs button{padding:7px 14px}
 body.demo-tour .tour-intro{padding:3px 12px;margin-bottom:6px}.demo-tour [role=tabpanel]>h1{font-size:24px;padding:4px 14px}
 .demo-tour [role=tabpanel]>.intro{margin-bottom:0!important;padding:4px 12px}.demo-tour [role=tabpanel]:not([hidden]){gap:8px 16px}
 .demo-tour .retention-preview{gap:12px;margin:4px 0}.demo-tour .retention-preview .central{padding:8px 20px}.demo-tour .retention-preview .central::after{display:none}.demo-tour .retention-preview .central h2{font-size:20px;margin:5px 0}
 .demo-tour .retention-figure svg{height:140px}.demo-tour .retention-actions{padding:6px 14px}.demo-tour .retention-actions button{padding:7px 12px}
 body.demo-tour.retention-page[data-view=mindmap] .retention-preview .branch h2{min-height:32px;margin-bottom:8px}body.demo-tour.retention-page[data-view=mindmap] .retention-preview .branch p{margin:6px 0}
}
@media screen and (min-width:1000px){.demo-tour .tour-topline{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:8px}body.demo-tour .tour-topline p{margin:0}.demo-tour .tour-tabs{margin-bottom:10px}}
@media screen and (min-width:1000px) and (max-height:700px){body.demo-tour main{padding-top:8px}.demo-tour .tour-topline{margin-bottom:5px}.demo-tour .tour-tabs{margin-bottom:6px}.demo-tour .demo-grid:has(.tour-feedback.incorrect:not([hidden])){row-gap:6px}.demo-tour .demo-grid:has(.tour-feedback.incorrect:not([hidden]))>div{display:contents}.demo-tour .demo-grid:has(.tour-feedback.incorrect:not([hidden]))>figure{grid-column:1;grid-row:1}.demo-tour .demo-grid:has(.tour-feedback.incorrect:not([hidden])) form{grid-column:2;grid-row:1}.demo-tour .demo-grid:has(.tour-feedback.incorrect:not([hidden])) .tour-feedback{grid-column:1/-1;grid-row:2;margin:2px 0;padding:8px 12px}.demo-tour .demo-note{margin-top:8px}.demo-tour .retention-preview{margin-top:2px;margin-bottom:2px}}
@media screen and (min-width:1000px) and (max-height:700px){body.demo-tour main{padding-bottom:6px}.demo-tour .retention-preview .central{padding-block:6px}.demo-tour .retention-figure svg{height:130px}}
/* Chapitre 1 : le tableau de numération reste du texte net et lisible. */
.decimal-demo fieldset{min-width:0;border:0;padding:0;margin:0}.decimal-demo .place-values{width:100%;border-collapse:collapse;table-layout:fixed;margin:8px 0 12px;color:#173f58}.decimal-demo .place-values caption{caption-side:bottom;padding-top:9px;font-size:14px;line-height:1.4}.decimal-demo .place-values th,.decimal-demo .place-values td{border:1px solid #bea36d;padding:10px 3px;text-align:center}.decimal-demo .place-values th{font:600 13px system-ui;background:#e6eeea}.decimal-demo .place-values td{font:700 26px Georgia,serif;background:#fff9ec}.decimal-demo .place-values th:nth-child(2){width:20px}.decimal-demo .training-preview .answers{display:grid;grid-template-columns:1fr;gap:8px}.decimal-demo .training-preview label.answer{display:flex;align-items:center;gap:10px;margin:0}.decimal-demo .training-preview .answer input{width:auto;margin:0}.decimal-demo .training-preview .answer span{font-size:15px}.decimal-demo .tour-feedback.incorrect{background:#fff0da;color:#85451e;border-left:4px solid #b47b2a}.decimal-demo .tour-feedback.correct{background:#e4f1dd;color:#2f613d;border-left:4px solid #487f4e}
@media(min-width:1000px){body.decimal-demo .retention-preview{grid-template-columns:1fr 1.15fr 1fr}.decimal-demo .place-values th{font-size:12px}.decimal-demo .place-values td{padding-block:7px}.decimal-demo .training-preview label.answer{min-height:44px;padding:7px 10px}}
@media screen and (min-width:1000px) and (max-height:700px){.decimal-demo .exercise-card{padding-block:10px}.decimal-demo .training-preview .answers{gap:6px}body.decimal-demo[data-view] .training-preview label.answer{min-height:40px;padding-block:6px}}

.symmetry-demo #chart-memory{display:block;width:100%;height:100px;margin:6px auto}
.symmetry-demo #guided-answers{grid-template-columns:1fr}
@media(min-width:1000px) and (max-height:700px){body.symmetry-demo[data-view=study] #quiz{padding-block:10px}.symmetry-demo #guided-answers .answer{min-height:44px;padding-block:6px}.symmetry-demo #guided-feedback{font-size:15px;line-height:1.3;padding:7px 10px;margin:6px 0}}
/* Parcours enrichi : chaque question remplace la précédente. */
.symmetry-demo #memory-sheet,.symmetry-demo #memory-check{grid-column:1/-1;min-width:0}
.symmetry-demo [hidden]{display:none!important}
.symmetry-demo .fold-button,.symmetry-demo #memory-back{display:table;margin:8px auto 0;font-size:14px;padding:7px 12px}
.symmetry-demo #memory-check .answers{grid-template-columns:1fr;gap:8px}
.symmetry-demo #memory-check label.answer{display:flex;align-items:center;gap:8px}
.symmetry-demo #memory-check{padding:16px 20px}
.symmetry-demo #memory-check h2{margin-top:0}
.symmetry-demo #memory-sheet .retention-actions{width:fit-content;margin-inline:auto}
.symmetry-demo #memory-sheet .branch .fold-button{font-size:14px;padding:6px 12px}
@media(min-width:1000px){
 .symmetry-demo #guided-caption{min-height:36px}
 .symmetry-demo #memory-fold-status{min-height:40px}
 .symmetry-demo #memory-check label.answer{min-height:44px;font-size:15px;padding:7px 10px}
 body.symmetry-demo.retention-page[data-view=mindmap] #memory-sheet .branch h2{min-height:0}
 .symmetry-demo #memory-sheet .retention-preview{margin-top:0}
}
@media(min-width:1000px) and (max-height:700px){
 body.symmetry-demo[data-view=study] #quiz{padding-block:8px}
 .symmetry-demo .tour-method{font-size:15px;padding:6px 10px;line-height:1.3}
 .symmetry-demo article>h2{font-size:19px;margin:6px 0 8px}
 .symmetry-demo #guided-caption{min-height:32px;font-size:12px}
 .symmetry-demo .fold-button,.symmetry-demo #memory-back{margin-top:4px;padding:5px 10px}
 .symmetry-demo #memory-check .tour-feedback{font-size:15px;padding:7px 10px;line-height:1.3}
 .symmetry-demo #memory-sheet .retention-preview .central{padding-block:4px}
 .symmetry-demo #memory-sheet .retention-preview .central h2{margin:3px 0}
 body.symmetry-demo.retention-page[data-view=mindmap] #memory-sheet .branch p{font-size:15px;line-height:1.3}
 .symmetry-demo #memory-fold-status{min-height:36px}
 .symmetry-demo #chart-memory{height:80px}
}
@media(min-width:1000px) and (max-height:700px){
 body.symmetry-demo .demo-grid:has(.tour-feedback.incorrect:not([hidden]))>div{display:block}
 body.symmetry-demo .demo-grid:has(.tour-feedback.incorrect:not([hidden])) .tour-feedback{margin:6px 0;padding:7px 10px;font-size:15px;line-height:1.3}
}
