:root{--ink:#244c3f;--green:#245b44;--muted:#63766c;--paper:#fffdf8;--line:#dce5da;--orange:#ad4e10;--cream:#f4f3e8;--shadow:0 12px 36px #264d3f0a;font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--ink);background:var(--cream);font-size:17px;line-height:1.6}
*{box-sizing:border-box}body{margin:0}button,input{font:inherit}button,a,input{touch-action:manipulation}button{cursor:pointer;border:1px solid #b7cdbb;background:#fffdf8;color:var(--green);padding:.7rem 1.05rem;border-radius:12px;font-weight:650;min-height:46px}button:hover{background:#edf3e6}button:disabled{opacity:.5;cursor:default}button.primary{background:var(--green);color:white;border-color:var(--green)}button.primary:hover{background:#173e2e}:focus-visible{outline:3px solid #cc6b20;outline-offset:4px}a{color:inherit;text-underline-offset:4px}h1,h2,h3,p{margin:0 0 .8rem}h1,h2,h3{line-height:1.2}h2{font-size:1.55rem}h3{font-size:1.08rem}small,.muted{color:var(--muted)}[hidden]{display:none!important}.skip{position:absolute;left:10px;top:-100px;z-index:10;background:#fff;padding:10px}.skip:focus{top:10px}.topbar{max-width:1120px;margin:auto;padding:24px 26px;display:flex;align-items:center;justify-content:space-between;gap:15px}.topbar a{font-weight:750;text-decoration:none}.topbar a>span{font-size:1.7rem;margin-right:8px}.pupil{font-size:.85rem;white-space:nowrap}.pupil b{background:#e5eddb;border-radius:8px;padding:6px 9px;margin-left:8px}main{max-width:1100px;margin:auto;padding:0 26px}.hero{padding:34px 38px 38px;border-radius:28px;background:#e7eddd;display:flex;justify-content:space-between;align-items:center;gap:24px;overflow:hidden}.eyebrow{font-size:.73rem;letter-spacing:.13em;font-weight:800;color:var(--muted)}h1{font-family:Georgia,serif;font-weight:500;font-size:clamp(2.1rem,4.5vw,3.5rem);line-height:1.08;letter-spacing:-.03em;margin:16px 0 18px}h1 em{color:var(--green)}.hero p:not(.eyebrow){font-size:.95rem}.chips{display:flex;gap:8px;flex-wrap:wrap;margin-top:20px}.chips span,.pill{font-size:.75rem;background:#fff9;border:1px solid #fff;border-radius:30px;padding:5px 12px}.hero-aside{flex:0 0 190px;text-align:center;transform:rotate(-5deg);color:var(--green)}.hero-symbol{font-size:110px;line-height:1.15;display:block;color:var(--orange);font-family:Georgia,serif}.hero-aside strong{font-family:Georgia,serif;font-size:1.1rem;font-weight:500}.tabs{display:grid;grid-template-columns:repeat(4,1fr);gap:6px;padding:8px;background:#fffdf8;border:1px solid var(--line);border-radius:18px;margin:26px 0}.tabs button{border:0;background:transparent;color:var(--muted);font-size:.75rem;display:flex;align-items:center;justify-content:center;gap:10px}.tabs span{font-size:.95rem}.tabs button[aria-current=page]{background:var(--green);color:#fff}.notice{background:#fff0d7;border:1px solid #e9ca94;border-radius:12px;padding:14px}.section-head{display:flex;align-items:baseline;justify-content:space-between;gap:14px;margin:30px 0 18px}.section-head p{margin:0}.grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}article,.panel{padding:28px;background:var(--paper);border:1px solid var(--line);border-radius:20px;margin-bottom:18px;box-shadow:var(--shadow)}.grid article{margin-bottom:0}.lesson-main{display:grid;grid-template-columns:minmax(230px,1fr) 1.1fr;gap:34px;align-items:center}.clock{display:block;width:100%;max-width:280px;margin:0 auto;font-family:inherit}.clock-wrap{text-align:center;background:#f3f5ed;border-radius:18px;padding:20px}.clock-readout{font-size:2rem;font-weight:750;letter-spacing:.02em;margin:12px 0 2px}.clock-period{font-size:.85rem;color:var(--muted)}.legend{font-size:.84rem;display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}.legend span{border-left:5px solid var(--green);padding-left:9px}.legend span+span{border-color:#b95614}.fields,.controls{display:flex;gap:12px;flex-wrap:wrap;align-items:flex-end}.fields{margin:18px 0}.fields label{display:flex;flex-direction:column;gap:5px;font-size:.88rem}.fields input{width:105px;max-width:100%;border:2px solid #aebfaf;border-radius:12px;padding:10px 12px;background:#fff;color:var(--ink);font-size:1.3rem;min-height:50px}.controls{margin-top:18px}.controls button{font-size:.9rem}.learn-notes{padding-left:20px}.learn-notes li{margin:12px 0}.rule-box{background:#eff3e8;border-radius:12px;padding:14px;margin:16px 0}.rule-box strong{color:var(--green)}.timeline{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin:15px 0}.hop{display:flex;gap:7px;align-items:center;font-size:.87rem;background:#fff;border:1px solid var(--line);padding:10px 12px;border-radius:12px}.hop b{font-size:.78rem;color:var(--orange)}.choice-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.choice-grid button{text-align:left;display:flex;flex-direction:column;gap:8px;padding:20px}.choice-grid small{font-weight:400}.choice-grid .wide{grid-column:1/-1}.intro{max-width:720px}.progress-line{display:flex;justify-content:space-between;align-items:center;margin:12px 0;font-size:.9rem}.progress-line b{color:var(--green)}progress{display:block;width:100%;height:7px;border:0;border-radius:10px;margin:0 0 22px;accent-color:var(--green)}progress::-webkit-progress-bar{background:#dbe4d5;border-radius:10px}progress::-webkit-progress-value{background:var(--green);border-radius:10px}.question h2{font-size:1.45rem;line-height:1.5;max-width:780px}.question .clock{max-width:265px;margin:20px auto}.answer-box{max-width:540px;margin:20px auto 0}.question .fields{justify-content:center}.question .fields label{font-size:.9rem}.question .fields input{width:125px;text-align:center}.answer-hint{text-align:center;font-size:.86rem;color:var(--muted)}.question .controls{justify-content:center}.feedback{padding:20px;border-radius:14px;background:#f3ede0;margin:20px 0 0;border:1px solid #ddc7a6}.feedback.good{background:#edf4e8;border-color:#bed1ae}.feedback p:last-child{margin-bottom:0}.feedback strong{display:block;margin-bottom:8px}.feedback .timeline strong{display:inline}.error{color:#9a3527;font-weight:650;min-height:1.5em;text-align:center;margin:8px 0}.question-nav{justify-content:space-between;margin:18px 0}.session-note{text-align:center;font-size:.8rem}.score{font-size:3.5rem;font-weight:750;line-height:1.1;margin:18px 0}.score small{font-size:1.2rem}.summary-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:22px 0}.stat{background:#eff3e8;border-radius:14px;padding:15px}.stat b{display:block;font-size:1.3rem}.skill-list{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:20px 0}.skill{padding:12px 15px;border:1px solid var(--line);border-radius:12px;font-size:.85rem}.skill b{float:right}.copy h3{line-height:1.5}.copy .clock{max-width:190px;margin:15px auto}.history-list button{display:flex;justify-content:space-between;text-align:left;width:100%;align-items:center;margin:10px 0;gap:10px}.history-list small{display:block;font-weight:400}.empty{padding:30px 0}.print-only{display:none}footer{padding:38px 24px;text-align:center;color:var(--muted);font-size:.85rem}footer small{font-size:.75rem}@media(max-width:700px){:root{font-size:16px}.topbar{padding:18px 16px}.topbar a{font-size:.85rem}.topbar a>span{font-size:1.3rem}main{padding:0 14px}.hero{padding:24px}.hero-aside{display:none}.hero br{display:none}.hero h1 br{display:block}.tabs{gap:0;padding:5px}.tabs button{flex-direction:column;gap:2px;padding:8px 3px}.tabs span{font-size:.8rem}.grid,.lesson-main{grid-template-columns:1fr}.lesson-main{gap:22px}article,.panel{padding:20px}.choice-grid{grid-template-columns:1fr 1fr}.choice-grid .wide{grid-column:1/-1}.section-head{display:block}.summary-grid{gap:7px}.stat{padding:11px;font-size:.8rem}.stat b{font-size:1.15rem}.skill-list{grid-template-columns:1fr}.question h2{font-size:1.25rem}.controls button{flex-grow:1}.question-nav button{flex-grow:0}.clock{max-width:240px}}@media print{body{background:white;color:#111}.topbar,.hero,.tabs,footer,.no-print,#storageNotice{display:none!important}main{max-width:none;padding:0}.print-only{display:block}article{box-shadow:none;break-inside:avoid;border-color:#aaa;margin-bottom:18px}.copy{page-break-inside:avoid}.feedback{background:white}.controls{display:none}.score{font-size:2rem}.clock{max-width:180px!important}.skill-list{grid-template-columns:1fr 1fr}}
/* L’horloge de Bao */
.tabs{grid-template-columns:repeat(5,1fr)}
.clock-game-active .hero{display:none}.clock-game-active .tabs{margin-top:4px}
.game-welcome{text-align:center;padding:38px 28px;max-width:820px;margin:0 auto}.game-welcome h2{font-family:Georgia,serif;font-size:2.5rem;font-weight:500;margin:6px 0 20px}.bao-avatar{width:94px;height:94px;border-radius:50%;background:#e9efd9;display:grid;place-items:center;font-size:3.7rem;margin:0 auto 20px}.game-steps{display:flex;justify-content:center;gap:20px;margin:28px 0;flex-wrap:wrap}.game-steps span{display:flex;gap:8px;align-items:center;font-size:.9rem}.game-steps b{border-radius:50%;background:#e5eddc;width:30px;height:30px;line-height:30px}.game-small{font-size:.79rem;color:var(--muted);line-height:1.6;margin:14px 0 0}.game-title{display:flex;align-items:center;justify-content:space-between;gap:16px}.game-title h2{font-family:Georgia,serif;font-size:2.2rem;font-weight:500}.game-title .eyebrow{margin-bottom:5px}.bamboo-track{display:flex;gap:8px;margin:18px 0}.bamboo-track span{width:38px;height:38px;display:grid;place-items:center;border-radius:50%;background:#e6ebde;border:1px solid #ced8c6;font-size:.8rem;color:#62745f}.bamboo-track .earned{background:#dcebc8;border-color:#7b9a60;font-size:1.3rem}.bamboo-track .current{border:2px solid #ad4e10;background:#fff6e8;color:#8d3d0c;font-weight:800}.clock-game-panel{padding:24px 30px}.game-goal{display:flex;gap:18px;align-items:center;background:#eff3e6;border-radius:16px;padding:17px 22px;margin-bottom:16px}.game-goal p{margin:0}.game-goal .eyebrow{font-size:.68rem;margin-bottom:3px}.bao-small{font-size:3rem}.target-time{font-size:2.4rem;font-weight:750;line-height:1.2;color:#244c3f}.game-layout{display:grid;grid-template-columns:1fr 1fr;gap:30px;align-items:center}.game-clock{max-width:340px;touch-action:none;user-select:none;-webkit-user-select:none;cursor:crosshair;overflow:visible}.game-clock [data-grip]{cursor:grab;outline:none}.game-clock [data-grip]:focus-visible .hand-visible{filter:drop-shadow(0 0 3px #d39322);stroke-width:12}.game-clock.dragging,.game-clock.dragging [data-grip]{cursor:grabbing}.hand-hit{stroke:transparent;stroke-width:24;stroke-linecap:round;pointer-events:stroke}.hand-visible{stroke-linecap:round;pointer-events:none}.hand-tip{stroke:#fff;stroke-width:2}.game-clock-side{text-align:center}#clockBoard{padding:5px 10px}.game-digital{min-height:2rem;font-size:.9rem;font-weight:600;color:var(--muted);margin:12px 0 0}.game-digital.revealed{font-size:1.5rem;color:var(--green)}.hand-choice{display:grid;grid-template-columns:1fr 1fr;gap:8px}.hand-choice button{font-size:.8rem;padding:9px 7px;display:flex;align-items:center;justify-content:center;gap:6px}.hand-choice button[aria-pressed=true]{background:#e7efde;border:2px solid #40674e}.hour-key,.minute-key{width:6px;height:18px;display:inline-block;border-radius:4px;background:#245b44}.minute-key{height:24px;width:4px;background:#b95614}.nudge-controls{display:grid;grid-template-columns:70px 1fr 1fr;gap:8px;align-items:center;margin:18px 0}.nudge-controls>span{font-size:.77rem;color:var(--muted)}.nudge-controls button{font-size:.88rem;padding:8px}.game-help{border-top:1px solid var(--line);padding-top:12px}.game-help label{display:flex;align-items:center;gap:8px;font-size:.8rem;margin:8px 0;min-height:30px}.game-help input{width:18px;height:18px;accent-color:var(--green);flex-shrink:0}.game-feedback{font-size:.9rem;line-height:1.5;margin:12px 0}.game-feedback:not(:empty){padding:14px;border-radius:12px;background:#fff1dc;color:#774218}.game-feedback.success{background:#e7f1df;color:#245b44;border:1px solid #bad3aa}.game-submit{width:100%;margin-top:4px}.game-keyboard{text-align:center}.bamboo-prize{display:flex;justify-content:center;gap:8px;flex-wrap:wrap;font-size:2rem;margin:20px auto;max-width:360px}.game-finish .bamboo-prize{animation:bambooPop .4s ease-out}@keyframes bambooPop{from{transform:scale(.9)}to{transform:scale(1)}}@media(prefers-reduced-motion:reduce){.game-finish .bamboo-prize{animation:none}}@media(max-width:700px){.tabs{grid-template-columns:repeat(5,1fr)}.tabs span{font-size:.7rem}.tabs button{padding:9px 2px}.game-title{display:block}.game-title h2{font-size:1.9rem}.game-title .pill{display:inline-block}.bamboo-track{gap:4px;justify-content:space-between}.bamboo-track span{width:28px;height:28px;font-size:.7rem}.bamboo-track .earned{font-size:1.05rem}.clock-game-panel{padding:14px}.game-goal{padding:12px 15px;gap:14px}.target-time{font-size:2rem}.game-layout{grid-template-columns:1fr;gap:12px}.game-clock{max-width:290px}.game-clock-side>.game-small{margin-top:4px}.game-digital{margin-top:2px}.game-welcome{padding:28px 18px}.game-welcome h2{font-size:2rem}.game-steps{flex-direction:column;gap:12px;align-items:center}.nudge-controls{grid-template-columns:64px 1fr 1fr}.game-keyboard{display:none}.game-control-side{padding:0 3px 6px}}@media(max-width:360px){.tabs{grid-template-columns:repeat(3,1fr)}.tabs span{font-size:.8rem}}

/* Évaluations inspirées de la classe, novembre 2026 */
.school-focus{border-left:5px solid var(--orange)}h4{margin:14px 0 8px}.school-focus .grid{margin-bottom:16px}.answer-choices{border:0;padding:0;margin:24px auto;max-width:620px}.answer-choices legend{font-weight:700;margin-bottom:14px}.answer-choices label{display:flex;align-items:center;gap:12px;border:2px solid var(--line);background:#fff;padding:15px;margin:10px 0;border-radius:12px;cursor:pointer}.answer-choices label:has(input:checked){border-color:var(--green);background:#edf4e8}.answer-choices input{width:22px;height:22px;flex-shrink:0;accent-color:var(--green)}.schedule-wrap{margin:24px 0}.schedule{width:100%;border-collapse:collapse;font-variant-numeric:tabular-nums;font-size:.93rem}.schedule th,.schedule td{padding:12px 10px;border-bottom:1px solid var(--line);text-align:left}.schedule thead{background:#e7eddd}.schedule tbody tr:nth-child(even){background:#f3f5ed}.schedule caption{text-align:left;font-size:.8rem;padding-bottom:12px;color:var(--muted)}.table-note{font-size:.85rem;margin-top:14px}.working-label{display:block;max-width:640px;margin:24px auto}.working-label small{display:block;font-size:.8rem}.working-label textarea{display:block;width:100%;margin-top:8px;padding:12px;border:2px solid #aebfaf;border-radius:12px;font:inherit;color:var(--ink);background:#fff;resize:vertical}.saved-work{white-space:pre-wrap}.clock-editor{max-width:420px;margin:20px auto;text-align:center}.clock-editor svg{touch-action:none;user-select:none;cursor:crosshair}.clock-editor p{font-size:.85rem}.clock-editor button[aria-pressed=true]{background:var(--green);color:#fff}.progress-chart{width:100%;height:auto;display:block;margin:20px auto;font-size:17px;fill:var(--ink)}details summary{cursor:pointer;padding:10px 0;font-weight:650}.tabs button{min-width:0}@media(max-width:700px){.schedule{font-size:.84rem}.schedule th,.schedule td{padding:10px 5px}.school-focus .grid{gap:10px}.answer-choices label{padding:12px}.clock-editor .controls{gap:6px}.clock-editor .controls button{font-size:.78rem}.progress-chart{min-height:150px}.question .fields input{width:105px}}@media print{.progress-chart{max-height:180px}.working-label textarea{border-color:#777}.schedule-wrap{break-inside:avoid}}
