/* Mes progrès : acquis, carnet personnel, historique repliable. */
.app .notebook-dashboard{max-width:1000px}
.app .notebook-bilan{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:18px 30px;padding:22px 25px;background:#f1f5e9;border:1px solid #bdcebc;border-radius:13px;margin:0 0 30px;color:#315b48}
.app .notebook-bilan h2{font-size:1.0625rem;line-height:1.5;margin:0;font-weight:750}
.app .notebook-bilan p{font-size:.875rem;line-height:1.6;margin:4px 0 0;color:#526c5e}
.app .notebook-bilan dl{display:flex;flex-wrap:wrap;gap:18px 28px;margin:0}
.app .notebook-bilan dl>div{display:flex;flex-direction:column;gap:5px}
.app .notebook-bilan dt{font-size:.875rem;color:#526c5e;order:2}
.app .notebook-bilan dd{margin:0;color:#32674e;font-size:1.875rem;line-height:1.2;font-weight:800}
.app .notebook-heading{margin-bottom:22px}
.app .notebook-heading h2{font-size:clamp(24px,3vw,30px);line-height:1.3;letter-spacing:-.7px;color:#234f50;margin:0}
.app .notebook-heading>p{font-size:1rem;line-height:1.7;color:#526c5e;margin:8px 0 0}
.app .notebook-layout{display:grid;grid-template-columns:minmax(210px,.8fr) minmax(0,1.65fr);gap:24px;align-items:start}
.app .notebook-list{display:grid;gap:10px;min-width:0}
.app .notebook-entry{appearance:none;display:block;width:100%;text-align:left;background:#f7f9ef;border:1px solid #bdcebc;border-radius:11px;padding:15px;color:#284f45;min-height:96px;font:inherit;cursor:pointer}
.app .notebook-entry:hover{border-color:#9c8060}
.app .notebook-entry.is-selected{background:#fffdf6;border-color:#b56e47;box-shadow:inset 3px 0 0 #b56e47}
.app .notebook-entry strong{display:block;font-size:1rem;line-height:1.4;margin:6px 0;font-weight:750;overflow-wrap:anywhere}
.app .notebook-subject{display:block;font-size:.8125rem;line-height:1.6;color:#526c5e}
.app .notebook-status{display:block;font-size:.875rem;line-height:1.6;color:#79532b}
.app .notebook-status.is-revisited{color:#32674e}
.app .notebook-sheet{background:linear-gradient(90deg,transparent 17px,#d8b8a8 17px,#d8b8a8 18px,transparent 18px),#fffdf6;border:1px solid #becfbd;border-radius:4px 17px 18px 4px;padding:25px 24px 25px 34px;box-shadow:4px 4px 0 #f6f2e7,5px 5px 0 #c6d1bc;min-width:0;overflow-wrap:anywhere}
.app .notebook-sheet h3{font-size:1.375rem;font-weight:750;line-height:1.35;color:#234f50;letter-spacing:-.4px;margin:5px 0 0}
.app .notebook-sheet h3::after{content:"";display:block;height:5px;width:70px;border-bottom:2px solid #b56e47;border-radius:0 0 65% 35%;transform:rotate(-2deg);margin:10px 0 16px}
.app .notebook-origin{font-size:.8125rem;color:#526c5e;margin:0 0 17px;line-height:1.6}
.app .notebook-question,.app .notebook-legacy{font-size:1rem;line-height:1.75;white-space:pre-line;margin:13px 0}
.app .notebook-response{border-left:2px solid #cfa585;padding:9px 13px;margin:15px 0;color:#6b503d;background:#faf2e7}
.app .notebook-response>span{display:block;font-size:.8125rem;font-weight:700;line-height:1.6;margin-bottom:4px}
.app .notebook-response>p{font-size:1rem;line-height:1.75;white-space:pre-line;margin:0}
.app .notebook-response.is-correct{border-left-color:#86a885;background:#edf3e6;color:#315d45}
.app .notebook-rule{background-image:linear-gradient(#86a7a224 1px,transparent 1px),linear-gradient(90deg,#86a7a224 1px,transparent 1px);background-size:22px 22px;padding:14px 13px;margin:20px 0}
.app .notebook-rule>strong{display:block;font-size:.875rem;color:#245d72;line-height:1.6;margin-bottom:5px}
.app .notebook-rule>p{font-size:1rem;line-height:1.8;white-space:pre-line;margin:0}
.app .notebook-note-label{display:block;font-size:.9375rem;color:#245d72;font-weight:700;margin:18px 0 8px}
.app #notebook-note{display:block;box-sizing:border-box;resize:vertical;min-height:90px;max-width:100%;width:100%;background:#fffdf6;border:1px solid #aebfaa;border-radius:8px;padding:12px;color:#315b48;font:inherit;font-size:1rem;line-height:1.7}
.app .notebook-note-status{min-height:24px;font-size:.8125rem;color:#526c5e;margin:7px 0 10px;line-height:1.6}
.app .notebook-actions{display:flex;align-items:center;flex-wrap:wrap;gap:10px}
.app .notebook-actions .btn{min-height:44px;white-space:normal}
.app .notebook-retry-note{font-size:.8125rem;line-height:1.7;color:#526c5e;margin:13px 0 0}
.app .notebook-revisited{margin-top:8px;border-top:1px solid #afc6b8}
.app .notebook-revisited>summary{padding:14px 0;font-size:.875rem;color:#315b48;line-height:1.6;cursor:pointer}
.app .notebook-revisited .notebook-entry{margin-bottom:10px}
.app .notebook-empty{padding:25px;background:#fffdf6;border:1px solid #bdcebc;border-radius:15px}
.app .notebook-empty h3{font-size:1.25rem;color:#234f50;margin:0 0 9px}
.app .notebook-empty p{font-size:1rem;line-height:1.75;margin:0 0 18px}
.app .notebook-history{margin-top:32px;border-top:1px solid #afc6b8;border-bottom:1px solid #afc6b8}
.app .notebook-history>summary{padding:19px 0;color:#245d72;font-size:1rem;font-weight:750;min-height:58px;cursor:pointer}
.app .notebook-history-list{list-style:none;padding:0;margin:0 0 18px}
.app .notebook-history-list>li{display:flex;justify-content:space-between;align-items:baseline;gap:12px 25px;flex-wrap:wrap;padding:16px 0;border-top:1px solid #c5d3c3;font-size:1rem}
.app .notebook-history-list time{display:block;font-size:.8125rem;color:#526c5e;margin-top:5px}
.app .notebook-history-list>li>span{font-size:.875rem;color:#32674e}
.app .notebook-history-details{margin:0 0 20px}
.app .notebook-history-details>summary{font-size:.9375rem;padding:13px 0;color:#245d72;cursor:pointer}
.app .notebook-history-details .progress-overview{margin-top:14px}
.app .notebook-home{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:15px 24px;padding:23px;margin:23px 0;background:#fffdf6;border:1px solid #bdcebc;border-radius:15px}
.app .notebook-home h2{font-size:1.25rem;line-height:1.4;color:#234f50;margin:0 0 6px}
.app .notebook-home p{font-size:.9375rem;line-height:1.65;color:#526c5e;margin:0}
.app .notebook-home .btn{min-height:44px;white-space:normal}
.app :is(.notebook-entry,.notebook-actions .btn,#notebook-note,.notebook-revisited>summary,.notebook-history>summary):focus-visible{outline:3px solid #245d72;outline-offset:3px}
@media(max-width:700px){
 .app .notebook-bilan{padding:19px;align-items:flex-start}
 .app .notebook-layout{grid-template-columns:1fr;gap:22px}
 .app .notebook-entry{min-height:80px;padding:13px 15px}
 .app .notebook-sheet{padding:23px 18px 23px 29px}
 .app .notebook-sheet h3{font-size:1.25rem}
 .app .notebook-actions .btn{max-width:100%}
 .app .notebook-home{padding:20px;align-items:flex-start}
}
