:root{--ink:#213b4b;--blue:#176b86;--dark:#124a62;--light:#ecf8fa;--gold:#efb850;--line:#d6e7eb;--green:#176d50;--rose:#e56c85}*{box-sizing:border-box}body{margin:0;background:#f6fbfc;color:var(--ink);font:17px/1.5 system-ui,-apple-system,"Segoe UI",Arial,sans-serif}button,input{font:inherit}button{cursor:pointer;border:0;border-radius:13px;background:var(--blue);color:#fff;padding:12px 17px;font-weight:800;min-height:46px}button:hover:not(:disabled){filter:brightness(.94)}button:disabled{cursor:not-allowed;opacity:.6}a{color:#136185}a:focus-visible,button:focus-visible,input:focus-visible,summary:focus-visible{outline:3px solid #c55e13;outline-offset:3px}[hidden]{display:none!important}.container{max-width:1080px;margin:auto;padding:0 20px}.skip{position:absolute;top:-100px;left:12px;z-index:10;background:#fff;padding:10px}.skip:focus{top:12px}.nav{max-width:1080px;margin:auto;padding:15px 20px;display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:10px;font-size:.93rem}.nav .logo{font:800 1.65rem Georgia,serif;text-decoration:none;color:#155d76}.hero{background:linear-gradient(125deg,#124b65,#20858c);color:white;padding:36px 0 42px}.kicker{font-weight:900;letter-spacing:.08em;font-size:.78rem;text-transform:uppercase}.kicker.dark{color:#287b89}.hero h1{font:800 clamp(2.25rem,5.5vw,3.9rem)/1.08 Georgia,serif;margin:9px 0}.hero p{max-width:760px}.hero-badges{display:flex;gap:8px;flex-wrap:wrap;margin-top:17px}.hero-badges span{background:#ffffff27;border:1px solid #ffffff4d;border-radius:30px;padding:6px 11px;font-weight:750;font-size:.88rem}main{padding-top:22px!important;padding-bottom:35px!important}.panel{background:#fff;border:1px solid var(--line);box-shadow:0 8px 25px #1b50600e;border-radius:23px;padding:24px;margin-bottom:22px}.panel h2{font-size:clamp(1.55rem,4vw,2.2rem);line-height:1.2;margin:8px 0 14px}.mode-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px;margin:24px 0}.mode-card{background:#f5fbfd;border:1px solid #c7e0e6;border-radius:18px;padding:19px;display:flex;flex-direction:column;align-items:flex-start;gap:9px}.mode-card:nth-child(2){background:#fff9ec;border-color:#f1ddb3}.mode-card:nth-child(3){background:#f2f8f4;border-color:#c5e1d3}.mode-icon{font-size:2.6rem;line-height:1.1}.mode-card h3{margin:0;font-size:1.2rem}.mode-card p{margin:0 0 6px;flex:1}.mode-card button{width:100%}.completed{font-size:.86rem;font-weight:800;color:#166b50;min-height:1em}.gift{display:flex;align-items:center;gap:18px;background:#fff2d5;border:1px solid #efd197;border-radius:20px;padding:18px;flex-wrap:wrap}.gift-icon{font-size:3.3rem}.gift div{flex:1;min-width:190px}.gift h3{margin:0 0 5px}.gift p{margin:0;font-size:.93rem}.gift button{background:#916013}.gift button:not(:disabled){background:#995b04}.lesson{margin-top:20px;border:1px solid var(--line);border-radius:14px;padding:12px 17px}.lesson summary{font-weight:800;cursor:pointer}.lesson-body p{margin-bottom:11px}.example{display:inline-block;margin:4px 7px 4px 0;border-radius:8px;padding:7px 10px;background:#edf7fa;font-weight:800}.top-row{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}.secondary{background:#e9f4f7;color:#174d62;border:1px solid #c9e2e7}.mission-counter{font-weight:800;color:#236a7c}.progress{height:12px;background:#e4f1f4;border-radius:16px;overflow:hidden;margin:20px 0}.progress div{height:100%;width:0;background:#3ca58e;transition:width .2s}.game h2{margin-top:5px}.checkout{display:grid;grid-template-columns:200px 1fr;gap:18px;margin:17px 0 21px}.product{border:2px solid #bcdbe3;border-radius:19px;background:#eaf7fb;text-align:center;padding:13px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px}.product-emoji{font-size:4.1rem;line-height:1.2}.product strong{font-size:1.05rem}.price{font-size:2.2rem;font-weight:900;color:#125c79;line-height:1.3}.checkout-info{border:1px solid #e4e9ec;border-radius:18px;padding:15px;background:#fcfefd;display:flex;flex-direction:column;justify-content:center}.checkout-info p{margin:6px 0}.goal{font-size:1.15rem;font-weight:850}.constraints{color:#8c4f10;font-weight:750}.calculate{background:#fff4da;border-radius:16px;padding:18px;margin:12px 0 22px;border:1px solid #eed6a0}.calculate label{font-size:1.16rem;font-weight:900}.calc-line{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin-top:10px}.calc-line input{font-size:1.5rem;width:104px;max-width:100%;padding:11px;border:2px solid #ccaa64;border-radius:10px;text-align:center}.calc-line span{font-size:1.4rem;font-weight:800}.muted{color:#5d707a;font-size:.9rem}.token-groups{display:grid;grid-template-columns:1fr 2fr;gap:15px}.token-groups>div{border:1px solid var(--line);border-radius:17px;padding:15px;background:#f9fcfd}.token-groups h4{margin:0 0 11px}.money-grid{display:flex;flex-wrap:wrap;gap:9px;align-items:center}.token{position:relative;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:0;padding:10px 12px;min-width:80px;min-height:67px;box-shadow:0 3px 0 #163b431c;color:#1d3443}.token small{font-size:.7rem;font-weight:750}.token.coin{border:4px double #99752b;border-radius:50%;background:radial-gradient(circle at 30% 20%,#fff5cd,#c6ad61);min-width:79px;width:79px;min-height:79px}.token.coin.two{border-color:#7c8990;background:radial-gradient(circle at 35% 30%,#fff7c6,#c6c8ce 63%,#919ba1)}.token.note{border:2px solid #88a0a7;border-radius:9px;min-width:90px}.note.n5{background:#d7dee0}.note.n10{background:#f8bdb4}.note.n20{background:#a0d3ec}.note.n50{background:#edb87a}.note.n100{background:#b7dd9c}.token .value{font-weight:950;font-size:1.3rem}.token:disabled{opacity:.35}.tray{border:2px dashed #b5d5d5;border-radius:17px;background:#f5faf7;padding:17px;margin:17px 0}.tray-head{display:flex;justify-content:space-between;align-items:center;gap:10px}.tray h4{margin:0}.tray-head strong{font-size:1.7rem;color:#167355}.selected{display:flex;gap:7px;flex-wrap:wrap;align-items:center;min-height:62px;margin:11px 0}.selected button{background:#fff;color:#194d5d;border:1px solid #a7c4c6;padding:7px 12px;font-size:.95rem;min-height:41px}.controls,.hintbar{display:flex;flex-wrap:wrap;gap:9px;align-items:center}.hintbar{margin:15px 0}.hint-text{background:#fff6e4;border-left:5px solid #dfa13a;border-radius:10px;padding:13px;margin:9px 0}.feedback{background:#edf7fa;border-left:5px solid #388ba6;border-radius:10px;padding:14px 16px;margin:12px 0;min-height:55px;font-weight:650}.feedback.good{background:#e8f8ed;border-color:#2e9c66}.feedback.try{background:#fff5e9;border-color:#d9963e}.next{display:block;margin:14px 0 0 auto;background:#187855}.finish{text-align:center}.trophy{font-size:4.3rem}.centered{justify-content:center}.memory-board{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:8px;margin:20px 0}.memory-card{padding:5px;aspect-ratio:3/3.6;min-height:66px;background:#1f718b;border:2px solid #12556d;border-radius:12px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;font-size:1.95rem;line-height:1.1}.memory-card .word{font-size:.66rem;line-height:1.15;font-weight:750}.memory-card.revealed{background:#fff5d8;color:#183a44;border-color:#dfa42f}.memory-card.matched{background:#d2f1dd;border-color:#5ab18a;color:#184d3e}.memory-card:not(.revealed):not(.matched):hover{background:#175f77}footer{text-align:center;padding:22px 15px 35px;color:#596e76;font-size:.86rem}footer p{margin:6px 0 0}@media(max-width:800px){.mode-grid{grid-template-columns:1fr}.token-groups{grid-template-columns:1fr}.memory-board{grid-template-columns:repeat(5,minmax(0,1fr))}}@media(max-width:550px){body{font-size:16px}.hero{padding:28px 0}.panel{padding:17px;border-radius:17px}.checkout{grid-template-columns:1fr;gap:9px}.product{display:grid;grid-template-columns:75px 1fr;grid-template-rows:auto auto;text-align:left;padding:10px}.product-emoji{grid-row:1/3;font-size:3.5rem}.product strong,.price{justify-self:start}.price{font-size:1.8rem}.token-groups>div{padding:10px}.money-grid{gap:6px}.token.note{min-width:77px;padding:8px}.token.coin{min-width:72px;width:72px;min-height:72px}.money-grid .value{font-size:1.17rem}.controls button,.hintbar button{flex:1 1 145px}.memory-board{grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}.memory-card{font-size:1.65rem;min-height:65px}.memory-card .word{font-size:.6rem}.hero-badges span{font-size:.78rem}}@media(prefers-reduced-motion:reduce){.progress div{transition:none}}

/* Optional Deezer music: nothing is embedded before a user action. */
.music-panel{border:1px solid #bfd7e0;border-radius:19px;background:linear-gradient(120deg,#f1f8ff,#fffafa);padding:16px 20px;margin:0 0 20px}
.music-top{display:flex;gap:13px;align-items:center}
.music-mark{font-size:2.2rem;flex:0 0 auto}
.music-panel h2{font-size:1.24rem;line-height:1.3;margin:0 0 3px}
.music-lead{color:#556c78;font-size:.89rem;margin:0}
.music-details{margin-top:9px}
.music-details>summary{cursor:pointer;font-weight:850;color:#155e7c;padding:5px 0}
.music-body{padding:11px 0 0}
.music-options,.music-actions,.music-input-row{display:flex;gap:9px;flex-wrap:wrap;align-items:center}
.music-options button{flex:0 1 auto}
.music-options button[aria-pressed=true]{background:#145b77;color:white;border-color:#145b77}
.music-label{display:block;font-weight:800;margin:16px 0 6px}
.music-input-row input{flex:1 1 220px;min-width:0;border:2px solid #a7cbd5;border-radius:11px;padding:11px 13px;background:white;color:#203d4a;min-height:46px}
.music-input-row button{flex:0 1 auto}
.music-help,.music-disclaimer{color:#566e78;font-size:.85rem;line-height:1.5}
.music-actions{margin-top:11px}
.music-external{display:inline-flex;align-items:center;justify-content:center;border-radius:12px;background:#e4f4e9;color:#175f49;font-weight:800;padding:11px 13px;min-height:45px;text-decoration:none;border:1px solid #add6bd}
.music-external:hover{background:#d0ecdb}
.deezer-player{margin-top:15px}
.deezer-player iframe{display:block;border:0;border-radius:13px;width:100%;height:285px;background:#fff}
.random-title{font-size:1.05rem;font-weight:850;margin:12px 0 7px}
.music-message{font-weight:720;color:#175a70;font-size:.87rem;margin:9px 0 0}
@media(max-width:550px){.music-panel{padding:13px}.music-options button,.music-actions button,.music-external{flex:1 1 130px}.music-input-row button{flex:1 1 100%}}

/* Billets et pièces illustrés : valeurs explicites et gros contrôles tactiles. */
.token.coin,.token.coin.two{width:112px;min-width:112px;min-height:128px;border:1px solid #bed2d7;border-radius:14px;background:#f7fbfd;padding:7px 5px;box-shadow:0 3px 0 #183b4524}
.token.note{min-width:165px;min-height:132px;padding:7px;background:#fff;border:1px solid #bed2d7;box-shadow:0 3px 0 #183b4524}
.token .money-art{display:block;width:100%;max-width:156px;height:82px;object-fit:contain;margin:0 auto}
.token.coin .money-art{max-width:89px;height:88px}
.token .value{font-size:1rem;line-height:1.1}
.token small{font-size:.71rem;line-height:1.15}
@media(max-width:550px){.token.note{min-width:140px;min-height:120px}.token.coin,.token.coin.two{width:97px;min-width:97px;min-height:120px}.token .money-art{height:72px}.token.coin .money-art{height:79px}.money-grid{gap:8px}}
