.orthography-card{display:grid;grid-template-columns:76px minmax(0,1fr) auto;align-items:center;gap:18px;margin:22px max(4vw,40px);padding:22px 25px;border:4px solid #6b27c9;border-radius:25px;background:linear-gradient(125deg,#fff8cb,#fff 58%,#eee4ff);box-shadow:0 8px 0 #d5aa12,0 15px 28px rgba(67,22,142,.16)}
.orthography-card-icon{position:relative;display:grid;place-items:center;width:72px;height:72px;border:3px solid #5b20bd;border-radius:21px;background:#fff;color:#4a159d;font:700 38px "Fredoka",sans-serif}.orthography-card-icon span{position:absolute;right:7px;bottom:4px;color:#dc2389;font-size:20px}
.orthography-card small{color:#6724bd;font-weight:900;letter-spacing:.6px}.orthography-card h2{margin:3px 0;color:#341176;font:700 30px "Fredoka",sans-serif}.orthography-card h2:after{display:none}.orthography-card p{margin:0;color:#5d4b7d;font-weight:800}
.orthography-card>button{padding:14px 19px;border:0;border-radius:18px;background:#5a20bd;color:#fff;font-weight:900;box-shadow:0 5px 0 #351078;cursor:pointer}
.orthography-dialog{width:min(720px,calc(100% - 22px));max-height:calc(100dvh - 18px);background:#fff}.orthography-dialog::backdrop{background:rgba(38,13,91,.72);backdrop-filter:blur(3px)}
.orthography-content{position:relative;max-height:calc(100dvh - 18px);overflow:auto;padding:30px;background:linear-gradient(145deg,#f4edff,#fff,#fff9ce);color:#2e126d}.orthography-kicker,.orthography-theme{display:inline-block;padding:7px 12px;border-radius:999px;background:#5b20bd;color:#ffe047;font-size:13px;font-weight:900;letter-spacing:.6px}.orthography-content h2{margin:12px 0 7px;color:#4815a8;font:700 33px "Fredoka",sans-serif}.orthography-content h2:after{display:none}
.orthography-categories{display:grid;grid-template-columns:1fr 1fr;gap:11px;margin:20px 0}.orthography-categories button{display:grid;grid-template-columns:52px 1fr;align-items:center;min-height:100px;padding:12px;border:3px solid #d5c4f2;border-radius:18px;background:#fff;color:#3c147f;text-align:left;cursor:pointer}.orthography-categories span{grid-row:1/3;font-size:32px;text-align:center}.orthography-categories strong{font:700 17px "Fredoka",sans-serif}.orthography-categories small{color:#75658f}.orthography-free{padding:11px;border-radius:13px;background:#e5f7e9;color:#17613b;font-weight:900;text-align:center}
.orthography-review{width:100%;margin:0 0 10px;padding:12px 15px;border:2px solid #e78b18;border-radius:14px;background:#fff2ce;color:#7a3c00;font-size:16px;font-weight:900;cursor:pointer}.orthography-format{display:block;margin-top:13px;color:#76658f;font-size:12px;font-weight:900;letter-spacing:.08em}
.orthography-rule-lesson>.orthography-secondary{width:auto;margin:0 0 18px}.orthography-rule-card,.orthography-rule-example{margin:14px 0;padding:17px;border-radius:17px}.orthography-rule-card{border:3px solid #6b27c9;background:#f2ebff;color:#37117e}.orthography-rule-card strong,.orthography-rule-example strong{display:block;margin-bottom:7px;font:700 19px "Fredoka",sans-serif}.orthography-rule-card p,.orthography-rule-example p{margin:6px 0;line-height:1.55}.orthography-rule-example{border:2px solid #e5c74f;background:#fff8cd;color:#5a3b00}.orthography-rule-example b{color:#4a189f}.orthography-rule-coach{padding:12px 14px;border-radius:14px;background:#e5f7e9;color:#17613b;font-weight:850;line-height:1.45}
.orthography-level-picker{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:15px 0;padding:11px 13px;border:2px solid #d7c6f2;border-radius:15px;background:#fff;color:#4815a8;font-weight:900}.orthography-level-picker select{min-width:120px;padding:10px 13px;border:2px solid #6b27c9;border-radius:11px;background:#f7f2ff;color:#351075;font-size:16px;font-weight:900}
.orthography-top{display:flex;align-items:center;justify-content:space-between;gap:10px}.orthography-top button,.orthography-secondary{padding:8px 12px;border:2px solid #5b20bd;border-radius:12px;background:#fff;color:#4a189f;font-weight:900;cursor:pointer}.orthography-content progress{width:100%;height:13px;margin:13px 0 17px;accent-color:#5b20bd}.orthography-theme{background:#fff0a8;color:#5a238c}.orthography-answers{display:grid;gap:9px;margin:18px 0}.orthography-answers button{min-height:54px;padding:11px 15px;border:3px solid #d9caf2;border-radius:15px;background:#fff;color:#37117e;font-size:17px;font-weight:900;cursor:pointer}.orthography-answers button.correct{border-color:#16935b;background:#dcf8e8;color:#09683e}.orthography-answers button.wrong{border-color:#d44b62;background:#ffe5e9;color:#8c1d31}.orthography-answers button:disabled{opacity:1}.orthography-feedback{min-height:50px;padding:12px;border-radius:14px;background:#f0eaff;font-weight:900;line-height:1.4}.orthography-feedback.good{background:#dcf8e8;color:#09683e}.orthography-feedback.bad{background:#ffe6ea;color:#8c1d31}.orthography-result{text-align:center}.orthography-result>span{display:block;font-size:65px}.orthography-result>strong{display:block;margin:8px;color:#5019ae;font:700 50px "Fredoka",sans-serif}.orthography-secondary{width:100%;margin-top:9px}
.training-grid .orthography-card{position:relative;display:flex;width:100%;height:250px;min-height:250px;margin:0;padding:24px;overflow:hidden;flex-direction:column;align-items:flex-start;gap:8px;border:1px solid #ead47c;border-radius:20px;background:linear-gradient(145deg,#fff8c9 0%,#fffdf0 68%,#fff 100%);box-shadow:0 8px 22px rgba(65,38,16,.08);text-align:left}.training-grid .orthography-card-icon{position:absolute;top:20px;right:24px;width:54px;height:54px;border:0;border-radius:12px;background:#5a25b4;color:#fff;box-shadow:none;font-size:28px}.training-grid .orthography-card-icon span{color:#ffe047}.training-grid .orthography-card>div:nth-child(2){width:100%;padding-right:72px}.training-grid .orthography-card small{color:#5a249f}.training-grid .orthography-card h2{margin:0 0 8px;color:#32106f;font-size:1.65rem;line-height:1.15}.training-grid .orthography-card p{color:#594f69;font-size:.94rem;line-height:1.45}.training-grid .orthography-card>button{width:100%;min-height:46px;margin-top:auto;padding:11px 13px;border:0;border-radius:12px;background:#5725b5;color:#fff;box-shadow:none;font-size:.93rem}
@media(max-width:650px){.orthography-card{grid-template-columns:62px minmax(0,1fr);gap:12px;margin:18px 12px;padding:16px 14px}.orthography-card-icon{width:58px;height:58px;font-size:31px}.orthography-card h2{font-size:25px}.orthography-card p{font-size:14px}.orthography-card>button{grid-column:1/-1;width:100%}.orthography-content{padding:26px 14px 18px}.orthography-content h2{padding-right:28px;font-size:27px}.orthography-categories{grid-template-columns:1fr}.orthography-categories button{min-height:82px}.orthography-top{flex-wrap:wrap}}
@media(max-width:850px){.training-grid .orthography-card{height:225px;min-height:225px;padding:20px}.training-grid .orthography-card-icon{top:18px;right:20px;width:48px;height:48px}.training-grid .orthography-card>div:nth-child(2){padding-right:64px}}

/* Les sons et leurs écritures : sous-rubrique compacte d'Orthographe. */
.orthography-sounds-lesson h2{margin:12px 0 8px;color:#4815a8;font:700 clamp(1.65rem,5vw,2.1rem)/1.15 "Fredoka",sans-serif}
.orthography-sounds-intro{margin:8px 0 18px;color:#5d536d;font-size:1rem;line-height:1.5}
.orthography-sound-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:18px 0}
.orthography-sound-group{padding:14px;border:2px solid #e4d8f4;border-radius:17px;background:#fff;box-shadow:0 5px 15px #32106f0c}
.orthography-sound-group h3{margin:0 0 10px;color:#4b1aa2;font:700 1.15rem/1.2 "Fredoka",sans-serif}
.orthography-sound-example{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px;padding:8px 0;border-top:1px solid #eee8f7}
.orthography-sound-example:first-of-type{border-top:0}
.orthography-sound-example strong{display:block;color:#32106f;font-size:1.05rem;letter-spacing:.04em}
.orthography-sound-example small{display:block;margin-top:2px;color:#62596f;font-size:.9rem}
.orthography-sound-example .orthography-sound-makes{color:#4b1aa2;font-weight:900}
.orthography-sound-example button{min-width:44px;min-height:42px;border:1px solid #d7c7ef;border-radius:12px;background:#f6f0ff;color:#4b1aa2;font-size:1.05rem;cursor:pointer}
.orthography-sound-example button:focus-visible,.orthography-sounds-lesson button:focus-visible{outline:3px solid #f4c400;outline-offset:2px}
.orthography-audio-feedback{margin:0;color:#8c1d31;font-weight:800;line-height:1.4}
@media(max-width:560px){.orthography-sound-cards{grid-template-columns:1fr;gap:9px}.orthography-sound-group{padding:12px}.orthography-sound-example small{font-size:.9rem}}

/* Fiche de l'alphabet pour l'activité de CP. */
.orthography-alphabet-lesson h2{margin:12px 0 8px;color:#4815a8;font:700 clamp(1.65rem,5vw,2.1rem)/1.15 "Fredoka",sans-serif}
.orthography-alphabet-intro{margin:8px 0 18px;color:#5d536d;font-size:1rem;line-height:1.5}
.orthography-alphabet-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;margin:18px 0 22px}
.orthography-alphabet-card{display:flex;min-height:82px;align-items:center;justify-content:space-evenly;gap:5px;padding:10px 6px;border:2px solid #e4d8f4;border-radius:16px;background:#fff;box-shadow:0 4px 12px #32106f0c;color:#32106f}
.orthography-alphabet-card strong,.orthography-alphabet-card span,.orthography-alphabet-card i{font-size:clamp(1.35rem,4vw,1.8rem);line-height:1}
.orthography-alphabet-card strong{font-weight:900}.orthography-alphabet-card span{font-family:Arial,sans-serif}.orthography-alphabet-card i{font-family:"Comic Sans MS","Segoe Print","Bradley Hand",cursive;font-style:italic;font-weight:500;color:#6b27c9}
@media(max-width:560px){.orthography-alphabet-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.orthography-alphabet-card{min-height:74px;padding:8px 4px}}
.orthography-alphabet-quiz-top{display:flex;align-items:center;justify-content:flex-end;margin-top:18px;color:#5b20bd;font-weight:900}
.orthography-alphabet-quiz #orthographyAlphabetQuizQuestion{margin:18px 0;color:#32106f;font:700 clamp(1.5rem,5vw,2rem)/1.25 "Fredoka",sans-serif}
.orthography-alphabet-quiz #orthographyAlphabetQuizAnswers button{font-size:1.45rem}
.orthography-alphabet-quiz #orthographyAlphabetQuizResult{padding-top:28px}
