/* Mes devoirs (12 novembre 2026) : dictée, par cœur, minuteur. Verre blanc et encre comme le reste de la webapp ;
   seuls les boutons .button.primary (arc-en-ciel) marquent une validation. Jamais de chevauchement entre boutons. */
.devoirs-card{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}
.devoirs-card p{margin:.3rem 0 0}
.devoirs-card-badge{flex:0 0 auto;width:58px;height:58px;border-radius:50%;display:grid;place-items:center;color:#24384a;background:#ffffffd9;border:1px solid #ffffffcc;box-shadow:0 8px 18px -10px #8c7fb8aa}
.devoirs-card-text{flex:1 1 12rem}
.devoirs-card-text strong{font-size:1.1rem}
.devoirs{display:flex;flex-direction:column;gap:14px}
.devoirs-head{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.devoirs-head h1{margin:0;font-size:1.5rem}
.devoirs-tabs{display:flex;gap:10px;flex-wrap:wrap}
.devoirs-tabs .button{margin:0;display:inline-flex;flex-direction:row;align-items:center;justify-content:center;gap:6px;min-height:44px;height:auto;width:auto;min-width:0;padding:10px 14px;font-size:1rem;line-height:1.2;white-space:normal;text-align:center}
.devoirs-tabs .button svg{flex:0 0 auto;width:20px;height:20px}
.devoirs-tabs .button.is-current{box-shadow:inset 0 0 0 2px #43877599}
.devoirs-body{display:flex;flex-direction:column;gap:12px}
.devoirs-body p{margin:0}
.devoirs-actions{display:flex;flex-wrap:wrap;gap:12px;align-items:center}
.devoirs-actions .button{margin:0}
.devoirs-switch{display:flex;flex-wrap:wrap;gap:10px}
.devoirs-switch .button{margin:0}
.devoirs-switch .button.is-current{background:#fff;box-shadow:inset 0 0 0 2px #43877566}
.devoirs-label{font-weight:800}
.devoirs-input{width:100%;box-sizing:border-box;font:inherit;font-size:1.15rem;padding:12px 14px;border-radius:16px;border:1px solid #d7dde3;background:#fff;color:#24384a}
.devoirs-area{min-height:9rem;resize:vertical;line-height:1.5}
.devoirs-big{font-size:1.25rem;font-weight:800}
.devoirs-word{font-size:2rem;font-weight:900;letter-spacing:.02em}
.devoirs-feedback{font-weight:800}
.devoirs-feedback strong{display:block;font-size:1.6rem;margin-top:6px}
.devoirs-feedback.is-right{color:#2f7a5c}
.devoirs-error{color:#b3412f;font-weight:700}
.devoirs-poem{display:flex;flex-direction:column;gap:6px;font-size:1.2rem;line-height:1.6;padding:14px 16px;border-radius:18px;background:#ffffffcc}
.devoirs-line{display:block;white-space:pre-wrap}
.devoirs-hidden{color:transparent;background:linear-gradient(90deg,#9fd6b955,#bba8ea55,#f0ad8c55);border-radius:6px;letter-spacing:.05em;user-select:none}
.devoirs-clock{font-size:1.6rem;font-weight:900;font-variant-numeric:tabular-nums}
.devoirs-ring{width:120px;height:120px;border-radius:50%;background:conic-gradient(#9fd6b9 var(--devoirs-done,0deg),#ffffffb3 0);box-shadow:inset 0 0 0 10px #ffffffcc}
.devoirs-durations .button{min-width:6.5rem}
.devoirs-privacy{opacity:.8}
.devoirs-tomo-row{display:flex;align-items:flex-end;gap:12px}
.devoirs-bubble{flex:1 1 auto;margin:0;padding:10px 14px;border-radius:18px;background:#fff;font-weight:700;box-shadow:0 6px 16px -12px #24384a66}
.devoirs-tomo{flex:0 0 auto;width:96px;height:96px;position:relative}
.devoirs-tomo .tomo{width:100%;height:100%}
.devoirs-tomo.is-waiting{animation:devoirs-bob 3s ease-in-out infinite}
.devoirs-tomo.is-entering{animation:devoirs-enter .6s cubic-bezier(.3,1.4,.5,1) 1}
.devoirs-tomo.is-hop{animation:devoirs-hop .7s cubic-bezier(.3,1.6,.5,1) 1}
.devoirs-tomo.is-shake{animation:devoirs-shake .5s ease-in-out 1}
.devoirs-tomo.is-sitting{animation:devoirs-sit .8s ease-out 1 forwards}
@keyframes devoirs-bob{50%{transform:translateY(-5px)}}
@keyframes devoirs-enter{from{transform:translateX(60px);opacity:0}to{transform:none;opacity:1}}
@keyframes devoirs-hop{40%{transform:translate(-18px,-34px) rotate(-6deg)}70%{transform:translate(-22px,8px) scale(1.04,.94)}}
@keyframes devoirs-shake{20%,60%{transform:rotate(-7deg)}40%,80%{transform:rotate(7deg)}}
@keyframes devoirs-sit{60%{transform:translateY(10px) scale(1.05,.92)}100%{transform:translateY(6px)}}
@media (max-width:560px){.devoirs-tomo{width:76px;height:76px}.devoirs-tabs{gap:8px}.devoirs-tabs .button{flex:1 1 0;flex-direction:column;gap:2px;padding:8px 4px;font-size:.84rem;word-break:keep-all}.devoirs-actions .button{flex:1 1 auto}}
@media (prefers-reduced-motion:reduce){.devoirs-tomo,.devoirs-tomo.is-waiting,.devoirs-tomo.is-entering,.devoirs-tomo.is-hop,.devoirs-tomo.is-shake,.devoirs-tomo.is-sitting{animation:none}}
html[data-veilleuse="on"] .devoirs-input{background:#f7f8fa;color:#24384a}
html[data-veilleuse="on"] .devoirs-bubble{color:#24384a}
html[data-veilleuse="on"] .devoirs-poem{color:#24384a}
/* Ce soir : liste du jour tirée du cahier de textes. */
.devoirs-plan{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:12px}
.devoirs-item{display:flex;flex-direction:column;gap:8px;padding:14px 16px;border-radius:18px;background:#ffffffcc;color:#24384a}
.devoirs-item .mini{margin:0}
.devoirs-item.is-done .devoirs-item-text{text-decoration:line-through;opacity:.7}
.devoirs-item.is-skipped{opacity:.55}
.devoirs-check{display:flex;align-items:flex-start;gap:12px;font-size:1.05rem;font-weight:800;cursor:pointer}
.devoirs-check input{flex:0 0 auto;width:26px;height:26px;margin:0;accent-color:#438775}
.devoirs-chip{display:inline-flex;align-items:center;min-height:32px;padding:4px 12px;border-radius:999px;background:#f4efe1;font-weight:700;font-size:.9rem}
.devoirs-link{align-self:flex-start;border:0;background:none;padding:6px 0;font:inherit;font-size:.9rem;color:#24384a;text-decoration:underline;cursor:pointer}
.devoirs-link:hover{color:#438775}
/* 5 questions sur la leçon (mot manquant, trois choix). */
.devoirs-question{font-size:1.2rem;line-height:1.6;font-weight:700;padding:14px 16px;border-radius:18px;background:#ffffffcc;color:#24384a}
.devoirs-blank{display:inline-block;min-width:3.5em;border-bottom:3px solid #438775;color:transparent}
.devoirs-options .button{min-width:7rem;justify-content:center}
.devoirs-option.is-right{box-shadow:inset 0 0 0 3px #2f9a6a}
.devoirs-option.is-wrong{box-shadow:inset 0 0 0 3px #d4483b}
/* Bulle D (Loïc, 11/11, étendue le 17/11 à toutes les bulles de Tomo) : carte blanche signée « Tomo », quatre coins identiques,
   trait arc-en-ciel qui se dessine dessous. Couche veilleuse : même carte de jour comme de nuit. */
@layer meettomo-veilleuse{
:root body .devoirs-bubble{position:relative!important;padding:11px 18px 14px!important;border-radius:20px!important;background:#fffffff2!important;border:1px solid #fff!important;box-shadow:inset 0 2px 1px #fff,0 14px 26px -14px #4052645e!important;color:#203b4a!important;font-weight:800!important;transform-origin:100% 100%;animation:mt-card-pop .45s cubic-bezier(.34,1.56,.64,1) both}
:root body .devoirs-bubble::before{content:"Tomo";display:block;margin:0 0 2px;font:900 11px/1.2 "Nunito Sans",Nunito,system-ui,sans-serif;letter-spacing:.08em;text-transform:uppercase;color:#438775}
:root body .devoirs-bubble::after{content:"";position:absolute;left:18px;right:18px;bottom:-2px;height:4px;border-radius:4px;background:linear-gradient(90deg,#a6dcc0,#c3b1ee 38%,#f3bf9f 70%,#f2d57e);transform-origin:0 50%;animation:mt-card-line .55s cubic-bezier(.3,.7,.3,1) .25s both}
}
@media (prefers-reduced-motion:reduce){@layer meettomo-veilleuse{:root body .devoirs-bubble,:root body .devoirs-bubble::after{animation:none!important}}}
