/* SPDX-License-Identifier: GPL-3.0-only */
/* Étape 2B : commandes de défi, sans changement des contenus pédagogiques. */
.domain-context{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:4px 12px;margin:8px 0 12px;text-align:center}
.degree-trigger,.degree-selection{min-height:44px;padding:8px 12px;border:1px solid #b6c4b7;border-radius:10px;background:#edf2e8;font-size:14px;font-weight:600;line-height:1.4}
.domain-skill,.degree-pending{font-size:13px;line-height:1.4;color:#4b6054}
.degree-pending{width:100%}
.choice-tools{display:flex;gap:8px;flex:none;align-items:stretch;min-height:44px}
.choice-tools .choice-mode{flex:1;min-width:0;line-height:1.25}
.degree-selection{flex:none;padding:6px 10px}
.degree-menu{position:fixed;z-index:110;width:min(340px,calc(100vw - 16px));overflow:auto;overscroll-behavior:contain;background:#fff;border:1px solid #a9bdaf;border-radius:12px;padding:12px;box-shadow:0 8px 28px #173b3024;text-align:left}
.degree-menu-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:16px;font-weight:650;min-height:44px}
.degree-menu-heading button{width:44px;height:44px;flex:none;font-size:25px;border-radius:8px}
.degree-domain-label{display:flex;align-items:center;gap:8px;font-size:13px;padding:0 0 8px}
.degree-menu #degree-domain{flex:1;min-height:44px;font-size:14px}
.degree-options{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:8px 0}
.degree-options button{display:grid;place-items:center;min-width:44px;min-height:52px;border:1px solid #a9bdaf;border-radius:9px;background:#fff;font-size:22px;font-weight:600}
.degree-options button:hover:not(:disabled){background:#eef3e9}
.degree-options button[aria-checked=true]{background:#285748;color:white;border:3px solid #183e30;box-shadow:0 0 0 2px #c6d8bf}
.degree-options button:disabled{background:#edf0ec;border-style:dashed;color:#687369;opacity:1}
.degree-scale{display:flex;align-items:center;justify-content:space-between;gap:6px;font-size:12px;color:#526456}
.degree-menu p{font-size:12px;line-height:1.4;margin:10px 0 0}
.degree-menu .degree-unavailable{padding:8px;border-radius:8px;background:#f5eddc;color:#4b463c}
.degree-skills{min-height:44px;width:100%;padding:8px;font-size:13px;text-decoration:underline;text-underline-offset:3px}
@media(max-width:700px){.domain-context{margin-top:0}.domain-skill{width:100%}}
:root{--ink:#233e36;--text:#293c36;--muted:#63736b;--bg:#f8f9f4;--line:#dce3d8;--green:#285748;--pale:#edf2e8;--lavender:#eeecf8;--sand:#f5eddc;--radius:24px;font-family:Inter,'Avenir Next',Avenir,system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;color:var(--text);background:var(--bg);font-synthesis:none}
*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit;color:inherit}button{cursor:pointer}button:disabled{cursor:default;opacity:.45}button,a,input,select,summary,textarea{-webkit-tap-highlight-color:transparent}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible,textarea:focus-visible{outline:3px solid #8265b0;outline-offset:4px}button{border:0;background:none}h1,h2,p{margin:0}h1{font-size:clamp(32px,4.2vw,58px);line-height:1.13;font-weight:560;letter-spacing:-2px}h1 em{font-family:Georgia,'Times New Roman',serif;font-weight:400;font-style:italic;color:#587860}h2{font-size:21px;font-weight:570;letter-spacing:-.5px}p{line-height:1.65;color:var(--muted)}small{color:var(--muted)}.header{max-width:1320px;margin:auto;display:flex;align-items:center;justify-content:space-between;gap:24px;padding:30px 48px}.brand{display:flex;align-items:center;gap:13px;font-size:20px;font-weight:650;text-align:left;padding:0}.brand-mark{background:var(--green);color:#f3f4dc;display:grid;grid-template-columns:1fr 1fr;place-items:center;width:42px;height:44px;padding:5px 8px;border-radius:12px;line-height:15px;font-size:21px;font-family:Georgia,serif}.brand-mark i{font-style:normal}.brand-sub{display:block;font-size:10px;letter-spacing:1px;text-transform:uppercase;font-weight:450;margin-top:4px;color:var(--muted)}nav{display:flex;align-items:center;gap:28px}.nav{padding:13px 0;font-size:13px;color:var(--muted);position:relative}.nav.active{color:var(--green);font-weight:650}.nav.active:after{content:'';position:absolute;height:3px;width:14px;background:var(--green);bottom:4px;left:calc(50% - 7px);border-radius:5px}.profile-button{display:flex;align-items:center;gap:10px;border:1px solid var(--line);border-radius:30px;padding:6px 12px 6px 6px;font-size:13px}.avatar{display:inline-grid;place-items:center;border-radius:50%;background:#e0e9d8;width:32px;height:32px;font-weight:600;color:var(--green)}main{max-width:1224px;margin:0 auto;padding:20px 48px 40px;min-height:calc(100vh - 210px)}.eyebrow{font-size:10px;font-weight:700;letter-spacing:2.1px;color:#5e7766;line-height:1.6}.hero{display:grid;grid-template-columns:1.5fr 1fr;gap:50px;align-items:center;min-height:430px;padding:24px 0 44px}.hero h1{margin:21px 0 21px}.hero p{font-size:15px;line-height:1.8}.hero-actions{display:flex;gap:15px;flex-wrap:wrap;margin-top:28px}.primary,.secondary{display:inline-flex;align-items:center;justify-content:center;gap:20px;padding:16px 24px;min-height:52px;border-radius:12px;font-size:14px;font-weight:550;transition:background .15s,transform .15s}.primary{background:var(--green);color:#fff}.primary:hover{background:#1d4135;transform:translateY(-1px)}.primary span{font-size:20px;font-weight:400}.secondary{background:white;border:1px solid #cdd8cf}.secondary:hover{background:var(--pale)}.freedom{margin-top:23px;display:flex;gap:20px;flex-wrap:wrap;font-size:10px;color:#748276}.number-art{height:336px;max-width:365px;width:100%;justify-self:end;position:relative;background:#edf0e3;border-radius:46% 48% 40% 51%;display:flex;flex-direction:column;align-items:center;justify-content:center;transform:rotate(-5deg)}.art-note{font-size:8px;letter-spacing:2px;color:#70816f;transform:rotate(5deg)}.art-sum{font-family:Georgia,serif;font-size:64px;letter-spacing:-5px;margin-top:17px;transform:rotate(5deg)}.art-sum span{font-size:45px;color:#719079}.art-branch{display:flex;gap:20px;font-size:14px;transform:rotate(5deg);color:#6a806e;margin:3px 0 10px}.art-branch span{padding:9px 16px;border:1px dashed #a9b99f;border-radius:30px}.art-answer{font-family:Georgia,serif;font-size:66px;line-height:1.05;transform:rotate(5deg)}.art-answer span{font-size:40px;color:#b9aa7d;display:inline-block;transform:rotate(16deg);margin-left:7px}.art-dot{position:absolute;border-radius:50%}.art-dot.one{width:25px;height:25px;left:-7px;top:80px;background:#d8d1e6}.art-dot.two{width:11px;height:11px;right:40px;bottom:-4px;background:#adc0a1}.art-star{position:absolute;right:-10px;top:20px;font-size:53px;color:#a7b796}.home-grid{display:grid;grid-template-columns:1.15fr 1fr 1fr;gap:20px}.home-card{position:relative;background:white;border:1px solid var(--line);border-radius:var(--radius);padding:29px;min-height:235px;display:flex;flex-direction:column;align-items:flex-start}.home-card.current{background:#edf2e8}.level-title{display:flex;align-items:center;gap:15px;margin:26px 0 14px}.level-title h2{font-size:19px;max-width:180px}.level-badge{width:54px;height:54px;flex-shrink:0;display:grid;place-items:center;background:#dce7d5;border-radius:16px;font-family:Georgia,serif;font-size:28px;color:var(--green)}.home-card p{font-size:12px;line-height:1.7;margin:12px 0 20px}.card-link{display:flex;justify-content:space-between;align-items:center;width:100%;font-size:12px;font-weight:650;text-align:left;padding:8px 0 0;margin-top:auto}.card-link span{font-size:22px}.card-icon{display:grid;place-items:center;width:37px;height:37px;border-radius:11px;margin-bottom:18px;font-size:25px}.lavender{background:var(--lavender);color:#75618d}.sand{background:var(--sand);color:#97835b}.footer{max-width:1224px;display:flex;align-items:center;justify-content:space-between;margin:auto;padding:25px 48px 35px;gap:16px;font-size:10px;color:#7b887c}.footer button{font-size:10px;padding:12px 0;text-decoration:underline;text-underline-offset:4px}.connection{display:flex;align-items:center;gap:6px;font-size:9px}.status-dot{width:6px;height:6px;border-radius:50%;background:#b5bcae}.status-dot.ready{background:#6b9575}.page-intro{margin:15px 0 35px}.page-intro h1{font-size:38px;letter-spacing:-1.4px;margin:11px 0 14px}.page-intro p{font-size:14px}.selection-top{display:grid;grid-template-columns:1.7fr 1fr;gap:45px;padding-bottom:25px;border-bottom:1px solid var(--line)}.section-label{display:flex;align-items:center;gap:12px;margin:8px 0 20px}.section-label h2{font-size:17px}.step-dot{display:grid;place-items:center;width:25px;height:25px;background:#e5ebdf;color:#5b765f;border-radius:50%;font-size:11px;font-weight:600}.level-grid{display:grid;grid-template-columns:repeat(10,1fr);gap:7px}.level-chip{background:white;border:1px solid var(--line);border-radius:9px;min-height:45px;font-size:14px}.level-chip.selected{background:var(--green);color:white;border-color:var(--green)}.level-description{font-size:12px;margin-top:12px}.tempo{display:block;margin-top:25px}.tempo>span:first-child{display:flex;align-items:center;justify-content:space-between;font-size:13px;margin-bottom:15px}.tempo strong{font-weight:500;font-size:12px;background:#e6ecde;padding:5px 10px;border-radius:8px}.tempo input{width:100%;accent-color:var(--green);cursor:pointer;min-height:30px;margin:0}.range-ends{display:flex;justify-content:space-between;color:#5f6d62;font-size:10px}.time-panel p{font-size:10px;margin-top:12px}.categories-section{padding-top:20px}.selection-help{font-size:11px;margin-left:auto;color:var(--muted)}.categories{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}.category{border:1px solid var(--line);border-radius:12px;display:flex;align-items:center;justify-content:space-between;gap:12px;background:white;min-height:65px;padding:15px 17px;text-align:left;font-size:13px}.category.selected{border-color:#70977e;background:#edf3e8}.check{border:1px solid #cfdacc;display:grid;place-items:center;width:20px;height:20px;flex-shrink:0;border-radius:50%;font-size:12px;color:#889784}.category.selected .check{color:white;background:var(--green);border-color:var(--green)}.skills-detail{margin:20px 0}.skills-detail>summary{font-size:12px;color:var(--muted);cursor:pointer;padding:12px 0}.skills-list{display:grid;grid-template-columns:repeat(3,1fr);gap:15px;margin-top:15px}.skills-list fieldset{border:1px solid var(--line);border-radius:12px;padding:15px;font-size:12px;background:#fff}.skills-list legend{font-weight:600;padding:0 5px}.skills-list label{display:flex;align-items:center;gap:8px;min-height:46px}.skills-list input{accent-color:var(--green);width:18px;height:18px;flex-shrink:0}.small-info{border:1px solid var(--line);border-radius:50%;min-width:32px;min-height:32px;margin-left:auto}.representation{border:0;padding:0;font-size:12px;display:flex;gap:20px;flex-wrap:wrap}.representation legend{font-weight:600;margin-bottom:12px}.representation label{display:flex;align-items:center;gap:8px;min-height:32px}.representation input{accent-color:var(--green)}.start-strip{display:flex;justify-content:space-between;align-items:center;gap:20px;background:#eef2e8;border-radius:15px;padding:16px 22px;margin-top:25px}.start-strip p{font-size:12px}.text-link{font-size:12px;font-weight:550;padding:12px 4px;color:#4f6b59;text-underline-offset:4px}.text-link:hover{text-decoration:underline}.exercise-page{max-width:1050px}.exercise-toolbar{display:flex;justify-content:space-between;align-items:center;gap:15px;border-bottom:1px solid var(--line);padding-bottom:13px}.exercise-settings{display:flex;align-items:center;gap:20px;font-size:12px}.live-level select{border:0;background:#e8eee3;border-radius:7px;padding:9px;margin-left:5px}.rhythm-button{border:1px solid var(--line);background:white;padding:11px 15px;border-radius:9px;font-size:12px}.exercise-context{display:flex;flex-direction:column;align-items:center;gap:7px;margin-top:26px}.exercise-context>span:last-child{font-size:11px;color:var(--muted)}.calculation{padding:20px 0 0;display:flex;flex-direction:column;align-items:center;text-align:center;gap:17px}.question{font-size:16px;max-width:710px;color:var(--text)}.expression{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:12px;width:100%;font-family:Georgia,serif;font-size:clamp(24px,5vw,52px);line-height:1.5;overflow-wrap:anywhere}.expression math{font-size:1em;max-width:100%}.math-text{overflow-wrap:anywhere}.standalone-answer{display:flex;align-items:center;justify-content:center;gap:13px}.answer-field{position:relative;display:inline-block;vertical-align:middle;width:clamp(110px,25vw,200px);height:74px;border:1.5px solid #bacbba;border-radius:13px;background:#fff;overflow:hidden}.answer-field.focused{border-color:var(--green);box-shadow:0 0 0 3px #b7cdb526}.answer-field input{width:100%;height:100%;border:0;padding:15px;background:transparent;position:relative;z-index:2;color:transparent;caret-color:var(--green);font-size:28px;text-align:center;outline-offset:-4px}.answer-preview{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;font-size:28px;pointer-events:none;overflow:hidden;padding:5px;color:var(--green)}.answer-preview math{font-size:clamp(20px,4vw,30px)}.answer-field input:disabled{background:#edf0e757}.unit{font-size:20px}.labeled-answer{display:flex;flex-direction:column;gap:6px;font-size:12px}.clock-answer .answer-field{width:110px}.state-message{min-height:26px;font-size:15px;color:var(--muted);display:flex;align-items:center;gap:9px}.positive{color:var(--green)}.keypad-area{width:min(100%,350px);margin:2px auto 0}.symbol-keys{display:flex;flex-wrap:wrap;gap:6px;justify-content:center;margin-bottom:10px}.symbol-key{border:1px solid #dce0d6;border-radius:8px;min-width:43px;min-height:40px;background:#f0f2eb;font-family:Georgia,serif;font-size:18px}.keypad{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.key{height:49px;background:#fff;border:1px solid #dfe4d9;border-radius:10px;font-size:23px}.key:hover{background:#e9efe2}.key:active{transform:scale(.97)}.erase{font-size:11px;background:#eef1e8}.erase:last-child{font-size:23px}.validate{width:100%;margin-top:10px;min-height:50px;padding:12px;justify-content:space-between}.calculation-actions{display:flex;justify-content:center;align-items:center;gap:25px;margin:14px auto 0}.choice-panel{display:grid;grid-template-columns:1fr 1fr;gap:12px;max-width:540px;margin:25px auto}.pause-panel{text-align:center;padding:24px 0}.pause-panel>span{font-size:40px;color:#aab6a2}.pause-panel h2{margin:12px}.pause-panel p{font-size:13px;margin-bottom:20px}.report-link{display:block;margin:30px auto 0;font-size:9px;color:#7d8b80;text-decoration:underline;padding:12px}.method-panel{max-width:640px;background:white;border:1px solid var(--line);border-radius:20px;margin:20px auto;padding:28px}.method-panel h2{margin:10px 0 20px}.method-step{display:flex;gap:15px;align-items:flex-start;margin:12px 0}.method-step>span{background:#edf2e8;border-radius:50%;width:28px;height:28px;display:grid;place-items:center;flex-shrink:0;font-size:12px}.method-step p{font-size:14px;color:var(--text)}.step-actions{display:flex;gap:10px;flex-wrap:wrap;margin:20px 0}.step-actions .secondary{padding:10px 14px;min-height:40px;font-size:12px}.method-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:15px}.method-actions .primary,.method-actions .secondary{font-size:12px;padding:12px 17px}.transition-space{min-height:240px}.quantities{display:flex;align-items:center;justify-content:center;gap:16px}.dot-group{display:grid;grid-template-columns:repeat(5,14px);gap:6px;padding:15px;background:#edf2e5;border-radius:12px}.dot-group i{width:14px;height:14px;background:var(--green);border-radius:50%}.filters{display:flex;gap:16px;flex-wrap:wrap}.filters label{display:flex;flex-direction:column;gap:7px;font-size:11px}.filters select,select{font-size:12px;padding:12px;border-radius:8px;border:1px solid var(--line);background:white;max-width:100%}.empty-state{padding:90px 20px;text-align:center}.empty-state>span{font-size:38px;color:#8e9f87}.empty-state h2{margin:20px 0 12px}.empty-state p{font-size:14px}.method-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;margin-top:35px}.method-card{text-align:left;border:1px solid var(--line);border-radius:20px;background:white;padding:25px;min-height:200px;display:flex;flex-direction:column;gap:15px}.method-card h2{font-size:20px;line-height:1.3}.method-card p{font-size:12px}.method-card>span{font-size:12px;font-weight:600;margin-top:auto}.settings{max-width:920px}.settings-card{padding:28px;background:white;border:1px solid var(--line);border-radius:20px;margin-bottom:20px}.settings-card p{font-size:14px;margin:12px 0}.button-row{display:flex;flex-wrap:wrap;gap:12px;margin:20px 0}.subtle{font-size:11px!important}.danger{color:#923e37;background:#f5e7e3;padding:15px 20px;border-radius:10px;min-height:46px}.welcome{padding-top:60px;padding-bottom:70px;max-width:930px}.welcome h1{margin:20px 0}.welcome p{font-size:16px}.create-profile{margin-top:30px;max-width:670px}.create-profile>div{display:flex;gap:12px;margin:10px 0 15px}.create-profile input{flex:1;min-width:0}.create-profile label{font-size:13px}input:not([type='range']):not([type='radio']):not([type='checkbox']),textarea{border:1px solid #cbd6c8;background:white;border-radius:9px;padding:14px;font-size:16px}input[data-field]{border:0!important;background:transparent!important;padding:12px!important;font-size:28px!important}.modal-backdrop{position:fixed;z-index:100;inset:0;background:#1c352f55;backdrop-filter:blur(4px);display:flex;align-items:center;justify-content:center;padding:20px}.modal{position:relative;background:var(--bg);border-radius:24px;max-width:620px;width:100%;max-height:90dvh;overflow:auto;padding:38px;box-shadow:0 24px 100px #102f3430;outline:none}.close-modal{position:absolute;right:13px;top:10px;width:40px;height:40px;font-size:27px;color:var(--muted)}.modal h2{font-size:27px;line-height:1.25;padding-right:20px;margin-bottom:16px}.modal p{font-size:14px;margin:12px 0}.modal label{display:block;font-size:12px;margin:20px 0 10px}.modal label select{display:block;width:100%;margin-top:8px}.modal form{display:flex;flex-direction:column;gap:12px}.modal form label{margin:12px 0 0}.profile-list{display:flex;flex-direction:column;gap:10px;margin:24px 0}.profile-choice{display:flex;align-items:center;gap:15px;padding:12px;border:1px solid var(--line);border-radius:12px;background:#fff;text-align:left}.profile-choice>span:last-child:not(.avatar){margin-left:auto}.radar{display:block;width:min(100%,320px);margin:10px auto}.radar text{font-family:inherit;font-size:9px;fill:#557362}.radar-legend{padding-left:22px;font-size:12px;display:grid;grid-template-columns:1fr 1fr;column-gap:25px}.radar-legend li{padding:6px 0}.radar-legend button{text-align:left;font-size:11px;min-height:44px;width:100%}.radar-legend button span{display:block;color:#6e7f71;font-size:10px;margin-top:3px}.library-steps{padding-left:24px;line-height:1.6;font-size:14px}.library-steps li{margin:16px 0}.library-expression{font-size:28px;text-align:center;margin:20px 0}.prereq-card{border-top:1px solid var(--line);padding:15px 0;font-size:14px}.prereq-card summary{cursor:pointer;padding:10px 0}textarea{min-height:130px;resize:vertical;width:100%}#notice{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);z-index:200;background:#23483f;color:white;border-radius:12px;padding:14px 22px;font-size:13px;max-width:calc(100% - 30px);box-shadow:0 8px 30px #23483f22}#notice:empty{display:none}#notice.error{background:#86443b}.sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}.skip-link{position:absolute;left:10px;top:-80px;background:#fff;padding:15px;z-index:1000}.skip-link:focus{top:10px}
@media(min-width:1500px){.hero{min-height:470px}.home-card{min-height:260px}}
@media(max-width:950px){.header{padding:24px 28px}main{padding:20px 28px 35px}.hero{gap:25px}.number-art{height:290px}.art-sum{font-size:53px}.art-note{font-size:7px}.home-grid{gap:12px}.home-card{padding:22px}.level-title{gap:10px}.level-title h2{font-size:17px}.home-card h2{font-size:18px}.footer{padding:25px 28px}.categories{grid-template-columns:repeat(3,1fr)}.selection-top{gap:25px}.skills-list{grid-template-columns:1fr 1fr}.method-cards{grid-template-columns:1fr 1fr}.header nav{gap:20px}.hero h1{font-size:42px}}
@media(max-width:700px){.header{padding:20px}.brand{font-size:17px;gap:9px}.brand-sub{font-size:8px;letter-spacing:.5px}.brand-mark{width:37px;height:39px}.header .nav{display:none}.profile-button{font-size:12px;gap:7px;padding-right:10px}.profile-button>span:nth-child(2){max-width:78px;overflow:hidden;text-overflow:ellipsis}main{padding:14px 20px 25px;min-height:calc(100dvh - 180px)}.hero{grid-template-columns:1fr;gap:0;min-height:0;padding:25px 0 35px;position:relative}.hero h1{font-size:39px;letter-spacing:-1.6px;margin:17px 0}.hero p{font-size:13px}.hero-actions{margin-top:22px}.hero-actions .primary{font-size:13px}.number-art{display:none}.freedom{font-size:9px;gap:9px;margin-top:20px;flex-direction:column}.home-grid{grid-template-columns:1fr 1fr;gap:12px}.home-card{min-height:230px;padding:20px 16px;border-radius:18px}.home-card.current{grid-column:1/-1;min-height:185px;padding:23px}.current .level-title{margin:15px 0 0}.level-title h2{max-width:none;font-size:20px}.home-card p{font-size:11px;margin:10px 0 14px}.home-card .card-link{font-size:11px}.home-card h2{font-size:17px}.footer{padding:20px;flex-wrap:wrap;gap:8px 20px;font-size:9px}.footer>span:first-child{width:100%}.connection{margin-left:auto;font-size:8px}.footer button{font-size:9px}.page-intro{margin:15px 0 27px}.page-intro h1{font-size:32px;letter-spacing:-1px}.page-intro p{font-size:13px}.selection-top{grid-template-columns:1fr;gap:20px;padding-bottom:20px}.level-grid{gap:6px}.level-chip{font-size:12px;min-height:40px;border-radius:7px}.section-label{margin-bottom:13px}.section-label h2{font-size:15px}.tempo{margin-top:15px}.categories{grid-template-columns:1fr 1fr;gap:8px}.category{font-size:12px;padding:13px;min-height:65px}.selection-help{display:none}.skills-list{grid-template-columns:1fr}.representation{gap:8px 12px;font-size:11px}.start-strip{flex-direction:column;gap:12px;padding:16px}.start-strip .primary{width:100%}.start-strip p{font-size:10px}.exercise-page{padding:5px 16px 15px}.exercise-toolbar{gap:8px;padding-bottom:10px;align-items:flex-start}.exercise-toolbar>.text-link{font-size:10px;padding:10px 0}.exercise-settings{gap:10px;font-size:10px}.live-level select{padding:9px 5px;margin-left:2px;font-size:11px}.rhythm-button{font-size:10px;padding:10px}.exercise-context{margin-top:20px;gap:5px}.exercise-context .eyebrow{font-size:9px}.exercise-context>span:last-child{font-size:10px}.calculation{gap:12px;padding-top:15px}.question{font-size:14px;line-height:1.5}.expression{font-size:clamp(23px,6.6vw,35px);gap:8px}.answer-field{height:64px;width:140px}.expression .answer-field{width:78px;height:57px}.answer-preview{font-size:25px}.standalone-answer{gap:10px}.state-message{font-size:13px;min-height:24px}.keypad-area{max-width:325px;margin-top:0}.key{height:46px}.keypad{gap:7px}.symbol-key{min-height:37px;min-width:39px;font-size:17px}.symbol-keys{gap:5px}.validate{min-height:46px;margin-top:8px}.calculation-actions{gap:13px;margin-top:9px;flex-wrap:wrap}.calculation-actions .text-link{font-size:10px}.report-link{font-size:8px;margin-top:13px}.choice-panel{grid-template-columns:1fr;gap:9px;margin:15px auto;max-width:330px}.choice-panel .primary,.choice-panel .secondary{font-size:13px;min-height:50px}.method-panel{padding:20px;margin-top:12px}.method-panel h2{font-size:22px}.method-step p{font-size:13px}.method-actions{flex-direction:column}.method-actions button{width:100%}.filters{gap:10px;display:grid;grid-template-columns:1fr 1fr}.filters label:last-child{grid-column:1/-1}.filters select{max-width:100%;width:100%;font-size:11px}.method-cards{grid-template-columns:1fr;gap:14px;margin-top:25px}.empty-state{padding:55px 0}.empty-state h2{font-size:20px}.settings-card{padding:20px}.settings-card h2{font-size:20px}.settings-card p{font-size:13px}.button-row{flex-direction:column}.modal{padding:30px 23px;border-radius:19px;max-height:90dvh}.modal-backdrop{padding:14px}.modal h2{font-size:25px}.modal p{font-size:13px}.radar-legend{column-gap:16px}.welcome{padding-top:40px}.welcome h1{font-size:43px}.welcome p{font-size:14px}.create-profile>div{flex-direction:column}.create-profile input{width:100%}.create-profile small{font-size:11px}.quantities{gap:10px}.dot-group{grid-template-columns:repeat(5,11px);padding:11px;gap:5px}.dot-group i{width:11px;height:11px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{transition:none!important;animation:none!important;scroll-behavior:auto!important}}

.saved-sessions{display:flex;flex-direction:column;gap:10px}.saved-sessions button{justify-content:flex-start;text-align:left}.question math,.method-step math,.library-steps math{font-size:1.12em;vertical-align:middle}.symbol-key{min-width:44px;min-height:44px}.calculation-actions .text-link{min-height:44px;font-size:12px}@media(max-width:700px){.calculation-actions{gap:4px 15px}.calculation-actions .text-link{font-size:11px}.level-chip{min-height:44px}.level-grid{grid-template-columns:repeat(5,1fr)}}

.symbolic-answer .answer-field{width:min(320px,80vw)}.symbolic-answer .answer-preview math{font-size:25px}

/* Ergonomie 1.1 : une action principale, des étapes lisibles, des cibles séparées. */
.home-simple{max-width:1000px;display:flex;flex-direction:column;justify-content:center;min-height:calc(100dvh - 210px);padding-top:55px;padding-bottom:40px}
.home-welcome{display:flex;flex-direction:column;align-items:center;text-align:center;gap:30px;padding:50px 0 65px}
.home-welcome h1{font-size:clamp(36px,5vw,56px);line-height:1.25;overflow-wrap:anywhere}
.home-start{min-height:64px;font-size:19px;padding:19px 32px;gap:35px}
.home-resume{font-size:15px;min-height:48px;margin-top:-15px}
.home-shortcuts{justify-content:center;gap:30px;margin-top:25px}
.home-shortcuts button{display:flex;align-items:center;gap:10px;min-height:48px;font-size:14px;color:#52675c}
.home-shortcuts button>span{font-size:23px}
.footer{font-size:12px;padding-top:20px}.footer button{font-size:12px;min-height:44px}.connection{font-size:11px}
.selection{max-width:1040px}.selection .page-intro{margin:10px 0 24px}.selection .page-intro h1{font-size:34px;margin:0}
.selection-step{padding:26px;background:#fff;border:1px solid var(--line);border-radius:18px;margin-bottom:20px}
.section-label{margin:0 0 20px;gap:13px}.section-label h2{font-size:20px;line-height:1.3}
.step-dot{width:32px;height:32px;flex-shrink:0;font-size:15px;background:#e5edde;color:#285748}
.level-grid{gap:10px}.level-chip{min-height:50px;border:1.5px solid #a8b8a9;font-size:18px;border-radius:10px}
.level-chip.selected{box-shadow:0 0 0 2px #28574825;font-weight:700}
.level-scale{display:flex;justify-content:space-between;gap:10px;font-size:13px;color:#53695c;margin-top:14px}
.selection-hint{font-size:14px;margin:-7px 0 18px;color:#53665b}
.categories{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.category{font-size:15px;line-height:1.4;min-height:68px;border:1.5px solid #b6c4b7;padding:15px;overflow-wrap:anywhere}
.category.selected{border:2px solid #285748;background:#edf4e9;font-weight:600;padding:14.5px}
.check{width:24px;height:24px;border:1.5px solid #93a491;border-radius:6px;font-size:16px;background:#fff}
.skills-detail{margin:14px 0 0}.skills-detail>summary,.representation-detail>summary{min-height:48px;font-size:14px;line-height:1.5;padding:13px 0;color:#425b4d;cursor:pointer}
.skill-option{display:flex;gap:8px;align-items:center}.skill-option label{flex:1;font-size:14px;min-height:52px}.small-info{min-width:44px;min-height:44px}
.representation-detail{border-top:1px solid var(--line);margin-top:5px}.representation{padding:8px 0;font-size:14px}.representation label{min-height:44px}
.time-panel .tempo{max-width:600px;margin-top:0}.tempo>span:first-child{font-size:15px;gap:12px}.tempo strong{font-size:14px;white-space:nowrap;color:#285748}
.time-panel .tempo>span:first-child{justify-content:flex-end}.time-panel .tempo>span:first-child{font-size:0}.time-panel .tempo strong{font-size:15px}
.tempo input{min-height:48px;touch-action:pan-y}.tempo-help,.time-panel .tempo-help{font-size:14px;margin:10px 0 0;color:#4b6054}
.start-step{display:flex;gap:24px;align-items:center;flex-wrap:wrap;background:#edf2e8}.start-step .section-label{margin:0 auto 0 0}.start-step .primary{min-width:220px;font-size:17px;min-height:58px}.start-step .selection-hint{margin:0}
.exercise-page{max-width:1060px;padding-top:5px}
.exercise-toolbar{display:flex;gap:20px;align-items:center;justify-content:space-between;padding-bottom:20px;margin-bottom:22px;border-bottom:1px solid #cbd6c8}
.exercise-controls{display:flex;gap:12px;align-items:center}.control-button{min-height:50px;border:1.5px solid #aebdaf;border-radius:11px;padding:12px 16px;display:flex;align-items:center;justify-content:center;gap:9px;background:#fff;font-size:14px;font-weight:550;line-height:1.35}
.control-button:hover,.rhythm-button:hover{background:#eaf0e5}
.exercise-settings{gap:12px;font-size:13px;flex-shrink:0}.live-level{display:flex;align-items:center;gap:8px}.live-level select{min-height:50px;font-size:14px;margin:0;border:1px solid #aebdaf;padding:10px;background:#edf2e8;border-radius:10px}
.rhythm-button{font-size:14px;min-height:50px;border:1px solid #aebdaf;padding:10px 13px;line-height:1.3}
.calculation{padding-top:0;gap:20px}.instruction{width:min(100%,670px);min-height:66px;background:#eaf0e3;border:1px solid #d0ddc7;border-radius:14px;padding:16px 22px;display:flex;align-items:center;justify-content:center}
.question{font-size:21px;line-height:1.45;font-weight:600;color:#233e36}.training-label{font-size:12px;color:#52675c}
.expression{font-size:clamp(30px,4vw,49px)}.answer-field{height:70px}.state-message:empty{display:none}.state-message{font-size:17px;line-height:1.45;text-align:center;justify-content:center;flex-wrap:wrap}
.interruption-message{font-size:20px;font-weight:650;color:#624d2b;background:#f5efdf;border-radius:12px;border:1px solid #d9caa9;width:min(100%,670px);padding:16px 20px;margin-top:2px}
.keypad-area{width:min(100%,360px);margin:24px auto 0}.keypad{gap:12px}.key{height:60px;border:1.5px solid #9fb19e;border-radius:11px;font-size:28px;font-weight:550;box-shadow:0 3px 0 #d8e0d3;background:#fff;touch-action:manipulation}
.key:active{transform:translateY(2px);box-shadow:0 1px 0 #d8e0d3}.key.erase{background:#e8ece5;border-color:#aab5a5;font-size:14px;font-weight:550}.key.erase:last-child{font-size:26px}
.symbol-keys{gap:10px;margin-bottom:18px}.symbol-key{min-width:50px;min-height:48px;border:1.5px solid #a9b9a5;background:#f0f3eb;border-radius:10px;font-size:21px;touch-action:manipulation}
.answer-validation{width:min(100%,360px);margin:32px auto 0}.validate{margin:0;min-height:58px;font-size:19px;padding:16px 22px}
.exercise-support{max-width:360px;margin:32px auto 0;padding-top:24px;border-top:1px solid #cbd6c8;display:flex;justify-content:center}.exercise-support button{font-size:14px;min-height:50px;width:100%}
.choice-panel{max-width:600px;gap:14px;margin:24px auto}.choice-panel .primary,.choice-panel .secondary{font-size:16px;min-height:58px;text-align:center;line-height:1.4}.correct-answer{grid-column:1/-1}
.report-link{font-size:11px;min-height:44px;margin-top:22px}.home-shortcuts button:focus-visible,.control-button:focus-visible{outline-offset:4px}
main:focus{outline:none}
@media(max-width:950px){
 .exercise-toolbar{flex-direction:column;align-items:stretch;gap:14px}.exercise-controls{justify-content:center}.exercise-settings{justify-content:center}.exercise-page{max-width:760px}
 .header{padding-top:20px;padding-bottom:20px}.categories{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:700px){
 .home-simple{min-height:calc(100dvh - 180px);padding:25px 20px}.home-welcome{padding:45px 0 40px;gap:28px}.home-welcome h1{font-size:38px;letter-spacing:-1px}.home-start{font-size:17px;min-height:64px;width:min(100%,330px);gap:22px;padding:18px 20px}.home-resume{font-size:14px}
 .home-shortcuts{gap:12px 25px;flex-wrap:wrap;margin-top:15px}.home-shortcuts button{font-size:13px;min-height:48px}.footer{gap:8px;padding:16px 20px}.footer .connection{font-size:10px;margin-left:auto}.footer button{font-size:11px}
 .selection{padding:10px 14px 20px}.selection .page-intro h1{font-size:29px}.selection .page-intro{margin:8px 2px 22px}.selection-step{padding:18px 14px;border-radius:16px;margin-bottom:16px}.section-label{gap:10px;margin-bottom:18px}.section-label h2{font-size:18px}.step-dot{width:30px;height:30px;font-size:14px}
 .level-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:9px}.level-chip{min-height:48px;font-size:18px}.level-scale{font-size:12px;margin-top:13px}.categories{gap:10px}.category{font-size:14px;min-height:70px;padding:12px;gap:9px}.category.selected{padding:11.5px}.check{width:22px;height:22px}.selection-hint{font-size:13px}.skills-list{grid-template-columns:1fr}.skills-detail>summary,.representation-detail>summary{font-size:13px}.representation{gap:8px 16px;font-size:13px}.tempo-help,.time-panel .tempo-help{font-size:13px}.tempo>span:first-child{font-size:14px}.tempo strong{font-size:13px}.start-step{gap:18px}.start-step .primary{width:100%;font-size:18px;min-height:58px}
 .exercise-page{padding:4px 16px 20px}.exercise-toolbar{gap:12px;padding-bottom:16px;margin-bottom:18px}.exercise-controls{display:grid;grid-template-columns:1fr 1fr 1.45fr;gap:10px}.exercise-controls:has(>button:only-child){grid-template-columns:1fr}.control-button{font-size:13px;min-height:50px;padding:10px 8px;gap:5px}.exercise-settings{gap:12px;font-size:12px;justify-content:space-between}.live-level{gap:6px}.live-level select{font-size:13px;min-height:48px;padding:8px}.rhythm-button{font-size:13px;min-height:48px;padding:8px 10px}
 .calculation{gap:18px}.instruction{min-height:64px;padding:14px 16px;border-radius:12px}.question{font-size:19px;line-height:1.45}.expression{font-size:clamp(29px,7.5vw,38px);gap:8px}.expression .answer-field{width:82px;height:62px}.answer-field{height:66px}.state-message{font-size:16px}.interruption-message{font-size:18px;padding:14px 16px}
 .keypad-area{max-width:350px;margin-top:22px}.keypad{gap:12px}.key{height:58px;font-size:27px}.key.erase{font-size:13px}.symbol-key{min-width:48px;min-height:48px;font-size:20px}.symbol-keys{gap:10px}.answer-validation{max-width:350px;margin-top:32px}.validate{min-height:58px;font-size:19px}.exercise-support{margin-top:32px;padding-top:24px}.exercise-support button{font-size:14px;min-height:50px}.choice-panel{grid-template-columns:1fr;max-width:350px;gap:12px}.choice-panel .primary,.choice-panel .secondary{font-size:15px;min-height:56px}.report-link{font-size:10px;margin-top:20px}
}
@media(max-width:360px){
 .header{padding:16px 14px;gap:12px}.brand{font-size:16px;gap:7px}.brand-sub{font-size:7px}.profile-button{padding:5px 7px;gap:5px}.profile-button>span:nth-child(2){max-width:49px}.brand-mark{width:34px;height:37px}
 .exercise-page{padding-left:12px;padding-right:12px}.exercise-controls{gap:8px}.control-button{font-size:12px}.live-level{font-size:11px}.live-level select,.rhythm-button{font-size:12px}.exercise-settings{gap:8px}.question{font-size:18px}.category{font-size:13px;gap:7px;padding:10px}.category.selected{padding:9.5px}.clock-answer .answer-field{width:92px}.key{height:56px}
}

/* Sélection 1.2 : commandes à l’écran, panneaux adaptés à la place disponible. */
[hidden]{display:none!important}
.selection-shell{height:100dvh;display:flex;flex-direction:column}
.selection-shell>.header{flex:none;width:100%;max-width:1400px;height:64px;padding:8px 24px}
.selection-shell>.footer{display:none}
.selection-shell .selection{width:100%;max-width:1400px;min-height:0;flex:1;display:flex;flex-direction:column;gap:12px;padding:0 24px max(12px,env(safe-area-inset-bottom))}
.selection-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;flex:none;min-height:38px}
.selection-heading h1{font-size:28px;letter-spacing:-.8px}
.selection-review{font-size:14px;line-height:1.35}
.selection-review:empty{display:none}
.selection-tabs{display:none}
.selection-workspace{min-height:0;flex:1;display:grid;grid-template-columns:300px minmax(0,1fr);grid-template-rows:minmax(280px,1.15fr) minmax(205px,1fr);grid-template-areas:'levels categories' 'time categories';gap:14px}
.selection-shell .selection-step{min-width:0;min-height:0;margin:0;padding:14px;border-radius:16px;display:flex;flex-direction:column;gap:10px}
.selection-shell .level-panel{grid-area:levels;justify-content:center}
.selection-shell .categories-section{grid-area:categories}
.selection-shell .time-panel{grid-area:time;justify-content:center}
.selection-shell .section-label{margin:0;gap:8px;flex:none}
.selection-shell .section-label h2{font-size:18px;line-height:1.25;letter-spacing:-.3px}
.selection-shell .step-dot{width:28px;height:28px;font-size:14px}
.selection-shell .level-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:8px}
.selection-shell .level-chip{min-height:44px;font-size:18px;padding:4px}
.selection-shell .level-scale{font-size:13px;margin:0;line-height:1.4}
.selection-shell .selection-hint{font-size:14px;margin:0;line-height:1.4;flex:none}
.choice-viewport{flex:1;min-height:0}
.selection-shell .categories,.skills-page{display:grid;gap:8px;align-content:start;margin:0}
.selection-shell .category{height:72px;min-height:72px;padding:8px 10px;font-size:15px;line-height:1.25;gap:8px;overflow-wrap:normal}
.selection-shell .category.selected{padding:7.5px 9.5px}
.selection-shell .category small{display:block;margin-top:3px;font-size:12px;font-weight:400}
.selection-shell .check{width:22px;height:22px}
.choice-pager{display:flex;align-items:center;justify-content:center;gap:24px;min-height:44px;flex:none}
.choice-pager.one-page{visibility:hidden}
.page-arrow{min-width:48px;min-height:44px;border:1px solid #aebdaf;border-radius:10px;background:#f4f7f0;font-size:24px}
.page-count{font-size:15px;min-width:54px;text-align:center}
.choice-mode{min-height:44px;flex:none;font-size:14px;text-decoration:underline;text-underline-offset:4px;border-top:1px solid var(--line);padding:8px 0 0}
.skill-category-label{display:flex;gap:10px;align-items:center;font-size:14px;flex:none}
.skill-category-label select{font-size:14px;flex:1;min-width:0;min-height:44px;padding:6px}
.skills-page .skill-option{height:72px;border:1px solid #b6c4b7;border-radius:10px;padding:5px 10px;background:#fff}
.skills-page label{display:flex;align-items:center;gap:10px;line-height:1.3;min-height:60px;font-size:15px;cursor:pointer}
.skills-page input{width:22px;height:22px;accent-color:var(--green);flex:none}
.selection-shell .tempo{margin:0;max-width:none}
.selection-shell .tempo>span:first-child{margin:0;font-size:0}
.selection-shell .tempo strong{font-size:15px}
.selection-shell .tempo input{display:block;min-height:44px;margin:0}
.selection-shell .tempo-help{font-size:13px;line-height:1.4;margin:0}
.representation-select{display:flex;flex-direction:column;gap:5px;font-size:14px;line-height:1.3}
.representation-select select{min-height:44px;font-size:14px;padding:7px 10px}
.selection-shell .start-step{flex:none;flex-direction:row;justify-content:space-between;align-items:center;padding:10px 16px;gap:12px}
.selection-summary{display:flex;flex-direction:column;gap:3px;font-size:14px;line-height:1.35}
.selection-summary strong{font-weight:600}
.selection-summary>span{color:#4b6054;font-size:13px}
.selection-shell .start-step .primary{min-width:200px;min-height:52px;padding:12px 20px;font-size:18px;width:auto}
@media(max-width:1023px),(max-height:710px){
 .selection-shell>.header{height:54px;padding:5px 16px}
 .selection-shell .header .brand-sub,.selection-shell .header .nav{display:none}
 .selection-shell .brand-mark{width:34px;height:36px}
 .selection-shell .selection{gap:8px;padding:0 12px max(8px,env(safe-area-inset-bottom))}
 .selection-heading{min-height:30px;gap:6px}
 .selection-heading h1{font-size:23px}
 .selection-review{font-size:12px;max-width:160px}
 .selection-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;flex:none}
 .selection-tabs button{min-height:44px;font-size:15px;padding:8px 2px;background:#edf2e8;border:1px solid #b6c4b7;border-radius:10px;white-space:nowrap}
 .selection-tabs button.current{background:#285748;border-color:#285748;color:#fff;font-weight:600}
 .selection-workspace{display:flex;flex-direction:column;min-height:0}
 .selection-shell .selection-step{padding:12px;gap:8px}
 .selection-workspace>.selection-step{display:none;flex:1;min-height:0}
 .selection-workspace[data-panel=levels]>.level-panel,.selection-workspace[data-panel=categories]>.categories-section,.selection-workspace[data-panel=time]>.time-panel{display:flex}
 .selection-shell .level-panel,.selection-shell .time-panel{justify-content:center}
 .selection-shell .level-grid{width:100%;max-width:620px;align-self:center}
 .selection-shell .level-chip{min-height:48px}
 .selection-shell .level-scale{width:100%;max-width:620px;align-self:center}
 .selection-shell .category{font-size:14px}
 .selection-shell .start-step{padding:8px 10px;gap:8px}
 .selection-shell .start-step .primary{min-width:135px;min-height:52px;font-size:16px;padding:10px 12px;gap:10px}
 .selection-summary{font-size:13px}
 .selection-summary>span{font-size:12px}
 .selection-shell .time-panel{max-width:680px;align-self:center;width:100%;gap:14px}
}
@media(max-height:500px) and (min-width:500px){
 .selection-shell>.header{height:46px}
 .selection-shell .selection{display:grid;grid-template-columns:152px minmax(0,1fr);grid-template-rows:44px minmax(0,1fr);gap:8px}
 .selection-heading{grid-column:1;grid-row:1;align-items:center}
 .selection-heading h1{font-size:19px}
 .selection-review{display:none}
 .selection-tabs{grid-column:2;grid-row:1}
 .selection-workspace{grid-column:2;grid-row:2}
 .selection-shell .start-step{grid-column:1;grid-row:2;flex-direction:column;align-items:stretch;justify-content:flex-end}
 .selection-shell .start-step .primary{min-width:0;width:100%;padding:8px;font-size:16px}
 .selection-shell .level-grid{grid-template-columns:repeat(10,minmax(0,1fr))}
 .selection-shell .level-panel{padding:8px;gap:6px}
 .selection-shell .level-chip{min-height:44px}
 .selection-shell .level-scale{font-size:12px}
 .selection-shell .section-label h2{font-size:16px}
 .selection-shell .step-dot{display:none}
 .selection-shell .categories-section{display:none;padding:8px;gap:4px}
 .selection-shell .selection-hint{display:none}
 .choice-mode{min-height:44px;padding:4px 0;font-size:13px}
 .choice-pager{gap:16px}
 .selection-shell .time-panel{display:none;gap:4px;padding:8px}
 .selection-shell .tempo{display:flex;align-items:center;gap:12px}
 .selection-shell .tempo>span:first-child{order:2;flex:none}
 .selection-shell .tempo input{flex:1;min-width:0}
 .representation-select{flex-direction:row;align-items:center;gap:10px}
 .representation-select select{flex:1;min-width:0}
 .selection-shell .skill-option,.selection-shell .category{height:72px;min-height:72px}
}
@media(max-height:500px) and (min-width:500px) and (max-width:719px){
 .selection-shell .selection{grid-template-columns:135px minmax(0,1fr)}
 .selection-shell .level-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:4px}
 .selection-shell .level-chip{min-height:44px}
 .selection-shell .level-panel .section-label{display:none}
 .selection-shell .level-panel{gap:4px;justify-content:center}
 .selection-shell .level-scale{font-size:11px}
}
.selection-shell .start-step{flex-wrap:nowrap}
.selection-summary{min-width:0;flex:1}
.selection-shell .start-step .primary{flex:none}
@media(max-width:1023px),(max-height:710px){
 .selection-shell .categories-section .section-label{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
 .selection-shell .start-step .primary{min-width:125px}
}
@media(max-height:500px) and (min-width:500px){
 .selection-shell .start-step .primary{min-width:0}
}
.selection-shell .category>span:first-child{min-width:0;hyphens:auto;overflow-wrap:anywhere}
@media(max-width:360px){.selection-shell .category small{display:none}}
@media(max-height:500px) and (min-width:500px) and (max-width:719px){
 .selection-shell .start-step .primary span{display:none}
}
/* Les représentations restent dans une aide volontaire, sans effet automatique. */
.method-understanding{margin:1rem 0;border:1px solid var(--line,#cad8c9);border-radius:16px;padding:1rem;text-align:left}
.method-understanding summary,.other-representations summary{cursor:pointer;font-weight:700;min-height:44px;display:flex;align-items:center}
.method-understanding p{line-height:1.6;overflow-wrap:anywhere}.method-understanding h3{font-size:1.1rem;margin-top:1.4rem}
.method-visual{margin:1rem 0;min-width:0;max-width:100%}.math-picture{display:block;width:100%;max-width:560px;height:auto;margin:auto;overflow:visible}
.math-picture text{font:16px system-ui,sans-serif;fill:#253e34}.visual-caption{font-size:.95rem;line-height:1.5}
.visual-controls{display:flex;gap:.6rem;align-items:center;justify-content:center;flex-wrap:wrap}.visual-controls button{min-height:44px;padding:.6rem .9rem}
.visual-table-wrap{max-width:100%;overflow-x:auto}.visual-table{width:100%;border-collapse:collapse;font-size:.95rem}.visual-table th,.visual-table td{border:1px solid #c7d7c9;text-align:left;padding:.6rem;overflow-wrap:anywhere}
.relation-map{display:grid;justify-items:center;gap:.2rem}.relation-map p{width:100%;padding:.7rem;border:1px solid #c7d7c9;border-radius:10px;margin:0;background:#f4f7f0}
.counting-collection{width:min(100%,520px);margin:auto}.other-representations .button-row{flex-wrap:wrap}.method-steps{min-width:0}
@media(max-width:480px){.method-understanding{padding:.7rem}.method-visual{margin-inline:-.1rem}.visual-table{font-size:.85rem}.visual-table th,.visual-table td{padding:.35rem}.step-actions{flex-wrap:wrap;gap:.6rem}.visual-controls button{font-size:.9rem}}
@media(prefers-reduced-motion:reduce){.method-visual *{animation:none!important;transition:none!important}}

.cube-layers summary{cursor:pointer;min-height:44px;font-weight:700}.cube-layers h4{margin-block:1rem .2rem}.development-label{font-size:.8rem;color:#536957}@media(max-width:480px){.math-picture text{font-size:24px}.footer{flex-wrap:wrap}.development-label{width:100%}}

/* Correctif 3 : sélectionner une catégorie et l’approfondir sont deux commandes. */
.selection-shell .category-card{height:116px;min-width:0;display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr) auto;border:1.5px solid #b6c4b7;border-radius:12px;background:#fff;overflow:hidden}
.selection-shell .category-card.selected{border-color:#285748;background:#edf4e9;box-shadow:inset 0 0 0 .5px #285748}
.selection-shell .category-card .category{width:100%;height:auto;min-height:64px;border:0;border-radius:10px;padding:8px 10px;background:transparent}
.category-deepen{display:flex;align-items:center;justify-content:flex-end;gap:7px;min-height:44px;padding:6px 11px;color:#285748;background:transparent;font-size:13px;line-height:1.3;white-space:nowrap}
.category-card .category-deepen{border-top:1px solid #d7e1d2}
.category-deepen:hover{background:#e3eddd}.deepen-value{display:grid;place-items:center;min-width:25px;height:25px;border-radius:7px;background:#e2eade;font-weight:700;font-size:14px}
.category-card button:focus-visible{outline-offset:-4px}
.skill-category-controls{display:flex;align-items:center;gap:10px;flex:none;min-width:0}
.skill-category-controls .skill-category-label{flex:1;min-width:0}
.skill-category-controls .category-deepen{border:1px solid #b6c4b7;border-radius:10px}
.degree-options{grid-template-columns:repeat(auto-fit,minmax(44px,1fr))}
@media(max-width:1023px),(max-height:710px){
 .selection-tabs button{white-space:normal;line-height:1.25;font-size:13px;min-height:56px;padding:7px 5px}
 .selection-shell .category-card .category{font-size:14px}
}
@media(max-height:500px) and (min-width:500px){.selection-tabs button{min-height:44px}.selection-shell .category-card{height:108px}.selection-shell .category-card .category{min-height:60px}.selection-shell .category-deepen{padding-block:4px}}
@media(max-width:360px){.category-card .category-deepen{padding-inline:6px;gap:4px}.skill-category-controls{gap:6px;flex-wrap:wrap}.skill-category-controls .category-deepen{padding-inline:6px;margin-left:auto}.skill-category-controls .skill-category-label{gap:5px;flex-basis:100%}.selection-tabs button{font-size:12px}}

/* Installation et partage : surfaces indépendantes du travail pédagogique. */
.installation-page{max-width:720px;min-height:calc(100dvh - 104px);padding:clamp(32px,10vh,96px) 28px 32px;display:flex;flex-direction:column;align-items:center;text-align:center;gap:20px}
.installation-icon{border-radius:22px;flex:none}.installation-page h1{font-size:clamp(34px,7vw,52px);letter-spacing:-1.5px}.installation-tagline{font-size:19px;line-height:1.5}.install-primary{margin-top:8px;min-height:58px;font-size:17px;max-width:100%;gap:16px}.installation-note{font-size:13px}
.installation-help{text-align:left;width:100%;background:#fff;border:1px solid var(--line);border-radius:18px;padding:24px;margin-top:8px}.installation-help h2{font-size:20px;line-height:1.3}.installation-help ol{padding-left:24px;margin:18px 0 0}.installation-help li{padding-left:5px;margin-top:12px;line-height:1.5;font-size:15px}.installation-help p{font-size:14px;margin-top:14px}.installation-help [role=status]{background:#eef3e9;padding:12px;border-radius:10px}.installation-recovery{border-top:1px solid var(--line);margin-top:20px;padding-top:10px}.installation-recovery summary{cursor:pointer;min-height:44px;display:list-item;padding:12px 0;font-size:14px}.installation-recovery .secondary{margin-top:14px;min-height:48px}.modal .installation-help{padding:0;border:0}.modal .installation-help h2{font-size:18px}
.home-share{display:block;margin:22px auto 0;min-height:44px;font-size:14px}.share-address{display:block;font-size:14px;margin:20px 0 14px}.share-address textarea{display:block;width:100%;min-width:0;min-height:48px;margin-top:8px;padding:10px;border:1px solid #b6c4b7;border-radius:9px;font-size:14px;background:#f8faf6}.share-actions{display:flex;flex-wrap:wrap;gap:10px}.share-actions button{min-height:48px}.share-feedback{font-size:14px;min-height:22px;margin-top:10px}.share-qr{margin:12px 0 0;text-align:center}.share-qr svg{display:block;width:320px;max-width:100%;height:auto;margin:auto;background:#fff}.share-qr figcaption{font-size:13px;line-height:1.4;margin-top:8px}.share-preview{font-size:12px!important;padding-top:12px;margin-top:12px;border-top:1px solid var(--line)}
@media(max-width:600px){.installation-page{padding:36px 18px 20px;gap:16px;min-height:calc(100dvh - 125px)}.installation-tagline{font-size:17px}.installation-help{padding:18px}.installation-help li{font-size:15px}.share-actions{flex-direction:column}.share-actions button{width:100%}.modal:has(.share-qr){padding:26px 18px}.share-address textarea{font-size:13px}.home-share{margin-top:12px}}
@media(max-height:500px){.installation-page{padding-top:20px}.installation-icon{width:64px;height:64px}.installation-page h1{font-size:34px}}

.share-address textarea{resize:none;line-height:1.5;overflow-wrap:anywhere}.modal:has(.share-qr) .share-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.modal:has(.share-qr) [data-action="show-qr"]{grid-column:1/-1}.modal:has(.share-qr) .share-actions button{padding-inline:10px;gap:8px}

:root{--safe-top:env(safe-area-inset-top,0px);--safe-bottom:env(safe-area-inset-bottom,0px);--safe-left:env(safe-area-inset-left,0px);--safe-right:env(safe-area-inset-right,0px)}
#app{padding-top:var(--safe-top)}
.exercise-shell .counting-collection{width:min(100%,480px);margin:0 auto}
.exercise-shell .counting-collection .math-picture{width:100%;height:160px;max-height:none}
/* Mobile 1.5.1 : garder la validation à portée de main, sans réduire les
   cibles tactiles ni modifier le contenu des exercices. */
@media(max-width:700px),(max-height:500px) and (max-width:1000px){
 #app.exercise-shell+#notice{bottom:calc(90px + var(--safe-bottom));pointer-events:none}
 .exercise-shell{padding-top:var(--safe-top);padding-bottom:calc(80px + var(--safe-bottom))}
 .exercise-shell>.header{padding:6px max(12px,var(--safe-right)) 6px max(12px,var(--safe-left));min-height:56px}
 .exercise-shell .brand-sub{display:none}
 .exercise-shell .header .nav{display:none}
 .exercise-shell .exercise-page{min-height:0;padding:4px max(12px,var(--safe-right)) 12px max(12px,var(--safe-left))}
 .exercise-shell .exercise-toolbar{gap:6px;padding-bottom:8px;margin-bottom:8px}
 .exercise-shell .exercise-controls{gap:8px}
 .exercise-shell .control-button{min-height:44px;padding:7px 8px}
 .exercise-shell .live-level select,.exercise-shell .rhythm-button{min-height:44px;padding:6px 8px}
 .exercise-shell .domain-context{gap:2px 8px;margin:0 0 8px}
 .exercise-shell .domain-skill{width:auto}
 .exercise-shell .calculation{gap:10px}
 .exercise-shell .counting-collection .math-picture{height:clamp(120px,calc(100dvh - 650px - var(--safe-top) - var(--safe-bottom)),160px)}
 .exercise-shell .instruction{min-height:48px;padding:9px 12px}
 .exercise-shell .question{font-size:19px;line-height:1.35}
 .exercise-shell .expression:empty{display:none}
 .exercise-shell .answer-field,.exercise-shell .expression .answer-field{height:56px}
 .exercise-shell .keypad-area{margin-top:12px;max-width:350px}
 .exercise-shell .keypad{gap:8px}
 .exercise-shell .key{height:50px;font-size:26px}
 .exercise-shell .key.erase{font-size:13px}
 .exercise-shell .key.erase:last-child{font-size:25px}
 .exercise-shell .symbol-keys{gap:6px;margin-bottom:8px}
 .exercise-shell .symbol-key{min-width:44px;min-height:44px;font-size:20px}
 .exercise-shell .answer-validation{position:fixed;z-index:20;bottom:0;left:0;right:0;width:auto;max-width:none;margin:0;padding:8px max(12px,var(--safe-right)) max(8px,var(--safe-bottom)) max(12px,var(--safe-left));border-top:1px solid var(--line);background:var(--bg);display:flex;justify-content:center}
 .exercise-shell .validate{width:min(100%,350px);min-height:52px;padding:12px 18px;font-size:19px}
 .exercise-shell .exercise-support{margin-top:12px;padding-top:10px}
 .exercise-shell .exercise-support button{min-height:44px}
 .exercise-shell .report-link{margin-top:8px}
 .exercise-shell .standalone-answer{flex-wrap:wrap}
 .exercise-shell .expression{max-width:100%;overflow-wrap:anywhere}
 .exercise-shell .interruption-message{font-size:18px;padding:10px 12px}
 .exercise-shell .choice-panel{margin:12px auto;gap:8px}
 .exercise-shell .choice-panel .primary,.exercise-shell .choice-panel .secondary{min-height:48px}
}

.exercise-options-toggle{display:none}
@media(max-width:700px),(max-height:500px) and (max-width:1000px){
 .exercise-shell .exercise-toolbar{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-items:start;gap:6px 8px}
 .exercise-shell .exercise-controls{display:contents}
 .exercise-shell .exercise-controls>.control-button{width:100%}
 .exercise-shell .exercise-controls>.change-work{display:none;grid-column:1/-1;grid-row:3}
 .exercise-shell .exercise-settings{display:none;grid-column:1/-1;grid-row:2;justify-content:space-between;flex-wrap:wrap}
 .exercise-shell .exercise-options-toggle{display:flex;grid-column:3;grid-row:1;min-width:0}
 .exercise-shell .exercise-toolbar:not(:has([data-action="pause"])) .exercise-options-toggle{grid-column:1/-1}
 .exercise-shell .settings-open .exercise-settings,.exercise-shell .settings-open .change-work{display:flex}
}
@media(max-height:500px) and (min-width:600px) and (max-width:1000px){
 .exercise-shell .exercise-page:has(.keypad-area){max-width:940px;display:grid;grid-template-columns:minmax(0,1fr) minmax(240px,40%);column-gap:20px;align-items:start}
 .exercise-shell .exercise-page:has(.keypad-area)>.exercise-toolbar{grid-column:1;grid-row:1}
 .exercise-shell .exercise-page:has(.keypad-area)>.domain-context{grid-column:1;grid-row:2}
 .exercise-shell .exercise-page:has(.keypad-area)>.calculation{grid-column:1;grid-row:3}
 .exercise-shell .exercise-page:has(.keypad-area)>.keypad-area{grid-column:2;grid-row:1/5;margin-top:4px;width:100%}
 .exercise-shell .exercise-page:has(.keypad-area)>.exercise-support{grid-column:1;grid-row:4;width:100%}
 .exercise-shell .exercise-page:has(.keypad-area)>.report-link{grid-column:1;grid-row:5}
 .exercise-shell .key{height:44px}
 .exercise-shell .keypad{gap:6px}
 .exercise-shell .answer-validation{left:auto;width:43%;justify-content:center;padding-left:12px}
 .exercise-shell .validate{min-height:48px}
 .exercise-shell>.header{min-height:48px;padding-block:2px}
 .exercise-shell .counting-collection .math-picture{height:80px}
 .exercise-shell .calculation{gap:6px}
 .exercise-shell .instruction{min-height:40px;padding:6px 8px}
 .exercise-shell .domain-context{margin-bottom:4px}
}

/* Une seule colonne sur ordinateur ; aucune règle mobile précédente modifiée. */
@media(min-width:701px) and (min-height:501px), (min-width:1001px){
 .exercise-shell>.header{padding:6px 24px;min-height:56px;max-width:1200px}
 .exercise-shell .exercise-page{min-height:0;padding:2px 24px 12px;max-width:1160px;display:block}
 .exercise-shell .exercise-toolbar{flex-wrap:wrap;gap:8px;padding-bottom:6px;margin-bottom:6px}
 .exercise-shell .exercise-controls{gap:8px}
 .exercise-shell .control-button,.exercise-shell .live-level select,.exercise-shell .rhythm-button{min-height:44px;padding:6px 12px}
 .exercise-shell .domain-context{margin:0 0 6px;justify-content:center;gap:6px 12px}
 .exercise-shell .degree-trigger{min-height:44px;padding:6px 12px}
 .exercise-shell .calculation{gap:6px;min-width:0}
 .exercise-shell .instruction{min-height:44px;padding:6px 14px}
 .exercise-shell .question{font-size:19px;line-height:1.3}
 .exercise-shell .expression:empty{display:none}
 .exercise-shell .expression{font-size:32px;line-height:1.1}
 .exercise-shell .answer-field,.exercise-shell .expression .answer-field{height:52px}
 .exercise-shell .standalone-answer{flex-wrap:wrap}
 .exercise-shell .keypad-area{width:min(100%,340px);margin:6px auto 0}
 .exercise-shell .keypad{gap:6px}
 .exercise-shell .key{height:44px;font-size:25px}
 .exercise-shell .symbol-keys{gap:4px;margin-bottom:6px}
 .exercise-shell .symbol-key{min-width:44px;min-height:44px;font-size:18px}
 .exercise-shell .answer-validation{width:min(100%,340px);margin:8px auto 0}
 .exercise-shell .validate{min-height:44px;margin:0;padding:8px 16px}
 .exercise-shell .exercise-support{width:min(100%,340px);margin:6px auto 0;padding-top:0;border:0}
 .exercise-shell .exercise-support button{min-height:44px}
 .exercise-shell .report-link{margin-top:6px;min-height:30px}
 .exercise-shell .footer{padding-top:6px;padding-bottom:10px}
 .exercise-shell .counting-collection .math-picture{height:90px}
}
@media(min-width:701px) and (min-height:850px){
 .exercise-shell>.header{min-height:68px;padding-block:10px}
 .exercise-shell .calculation{gap:10px}
 .exercise-shell .key{height:50px}
 .exercise-shell .keypad{gap:8px}
 .exercise-shell .keypad-area{margin-top:10px}
 .exercise-shell .answer-field{height:60px}
 .exercise-shell .expression{font-size:38px}
 .exercise-shell .counting-collection .math-picture{height:140px}
}
.selection-shell .choice-mode{border:1.5px solid var(--green,#285a4b);border-radius:10px;padding:8px 12px;background:#edf2e7;text-decoration:none;font-weight:650;min-height:44px}
.selection-shell .skills-page .skill-option{height:auto;min-height:80px;align-items:center}
.skill-description{display:flex;flex-direction:column;gap:4px;min-width:0}
.skill-example{font-size:13px;font-weight:400;line-height:1.35;color:#496157;overflow-wrap:anywhere}
.selection-shell .skills-page label{min-width:0;align-items:center}
@media(min-width:701px) and (min-height:501px), (min-width:1001px){
 .exercise-shell .key.erase{font-size:13px;line-height:1.1}
 .exercise-shell .standalone-answer:has(.unit:empty){gap:0}
 .exercise-shell .standalone-answer .unit:empty{display:none}
}
@media(min-width:1001px) and (max-height:650px){
 .exercise-shell>.header{min-height:48px;padding-block:2px}
 .exercise-shell .exercise-toolbar{margin-bottom:2px;padding-bottom:2px}
 .exercise-shell .domain-context{margin-bottom:2px}
 .exercise-shell .calculation{gap:4px}
 .exercise-shell .instruction{min-height:40px;padding-block:4px}
 .exercise-shell .answer-field,.exercise-shell .expression .answer-field{height:44px}
 .exercise-shell .counting-collection .math-picture{height:60px}
 .exercise-shell .keypad-area{position:relative;margin-top:4px}
 .exercise-shell .keypad-area:not(:has(.symbol-key:nth-child(7))) .symbol-keys{position:absolute;left:calc(100% + 8px);top:0;display:grid;grid-template-columns:repeat(2,44px);margin:0}
 .exercise-shell .answer-validation{margin-top:6px}
 .exercise-shell .exercise-support{margin-top:4px}
 .exercise-shell .exercise-support button{padding-block:6px;min-height:44px}
}
@media(min-width:701px) and (min-height:501px), (min-width:1001px){
 .exercise-shell .key[data-action="backspace"]{font-size:23px}
}

.home-tables{margin-top:12px}.tables-page{max-width:920px;margin:auto;padding-bottom:36px}.tables-heading{margin:12px 0 28px}.tables-heading h1{font-size:clamp(28px,5vw,42px);letter-spacing:-1px;margin:12px 0}.tables-heading p,.table-hint,.table-example{color:#52685f;line-height:1.55}.tables-card{border:1px solid #d8e2d6;border-radius:18px;padding:20px 24px;margin:0 0 22px;background:#fff}.tables-card legend{font-weight:700;padding:0 8px}.table-operations{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.table-operation,.table-number{position:relative;cursor:pointer}.table-operation input,.table-number input{position:absolute;opacity:0;width:1px;height:1px}.table-operation>span{display:flex;gap:8px;align-items:center;justify-content:center;padding:14px 8px;border:2px solid #d8e2d6;border-radius:12px;min-height:52px}.table-operation b{font-size:24px}.table-operation input:checked+span,.table-number input:checked+span{background:#e8f1e7;border-color:#285847;color:#1e4838}.table-operation input:focus-visible+span,.table-number input:focus-visible+span{outline:3px solid #b78732;outline-offset:3px}.table-numbers{display:grid;grid-template-columns:repeat(6,minmax(44px,1fr));gap:10px;margin-top:14px}.table-number>span:not(.sr-only){display:flex;align-items:center;justify-content:center;min-height:52px;border:2px solid #d8e2d6;border-radius:12px;font-weight:700;font-size:20px}.table-choice-tools{display:flex;gap:22px;margin-top:12px}.table-choice-tools button{min-height:44px}.table-options{display:grid;grid-template-columns:1fr 1fr 2fr;gap:16px}.table-options label{display:flex;flex-direction:column;gap:8px}.table-options select{min-height:48px;width:100%;font:inherit;padding:8px;border:1px solid #a9b9ae;border-radius:9px;background:#fff;color:inherit}.table-tempo{display:block;margin-top:22px}.table-tempo strong{float:right}.table-tempo input{display:block;width:100%;min-height:44px;accent-color:#285847}.tables-start{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:20px;background:#eaf1e5;border-radius:16px}.tables-start strong,.tables-start span{display:block}.tables-start>div span{font-size:14px;margin-top:6px;color:#52685f}.tables-start button{min-height:48px}.table-session-context{display:flex;justify-content:center;gap:10px 20px;flex-wrap:wrap;padding:14px;color:#36594a;font-size:14px}.table-session-context span:first-child{font-weight:700}.table-hint{font-size:14px}.table-example{margin-bottom:0}.table-hint:last-child{margin-bottom:0}
@media(max-width:650px){.tables-card{padding:16px;margin-bottom:18px}.table-operations{grid-template-columns:repeat(2,minmax(0,1fr))}.table-numbers{grid-template-columns:repeat(4,minmax(44px,1fr))}.table-options{grid-template-columns:1fr 1fr}.table-options label:last-child{grid-column:1/-1}.tables-start{flex-direction:column;align-items:stretch}.tables-start button{width:100%}.tables-heading{margin-bottom:22px}.table-session-context{font-size:12px;padding:10px 0;gap:6px 12px}}
