/* Module MAATMANDPAN : la sphère devient un instrument, ses commandes prennent la place du texte (bloc C). Repris de la v218. */
#zones{position:absolute;inset:0}
body.instr #devi,body.instr #btn{visibility:hidden}
body.instr #txt,body.instr #etiq{display:none}
#instrCtl{display:none;position:absolute;inset:0;padding:20px 70px;box-sizing:border-box}
body.instr #instrCtl{display:block}
#instrCtl .tt{font:600 34px system-ui,sans-serif;color:rgba(175,195,214,.85);margin:0 0 6px}
#instrCtl .tt small{font-weight:400;opacity:.7}
#instrCtl .tt{display:flex;justify-content:space-between;align-items:center}
#instrCtl .outils{display:flex;gap:14px;align-items:center}
#dispoBtn{display:flex;align-items:center;gap:10px;font:500 30px system-ui,sans-serif;color:rgba(175,195,214,.95);background:transparent;border:3px solid rgba(175,195,214,.5);border-radius:999px;padding:6px 22px 6px 30px;cursor:pointer}
#dispoBtn svg{width:26px;height:26px;fill:none;stroke:currentColor;stroke-width:3.5;stroke-linecap:round;stroke-linejoin:round;transition:transform .25s}
#dispoBtn[aria-expanded=true] svg{transform:rotate(180deg)}
#dispoListe{display:none;position:absolute;z-index:18;right:70px;width:660px;box-sizing:border-box;background:#191F25;border:3px solid rgba(175,195,214,.55);border-radius:22px;padding:8px 0}
#dispoListe.ouvert{display:block}
#dispoListe button{display:block;width:100%;text-align:left;background:none;border:0;color:#F3E9D2;font:500 42px system-ui,sans-serif;padding:16px 36px;cursor:pointer}
#dispoListe button small{display:block;font:400 28px system-ui,sans-serif;opacity:.7;margin-top:4px}
#dispoListe button + button{border-top:1.5px solid rgba(175,195,214,.25)}
#dispoListe button[aria-selected=true]{color:#D9C58E}
#reglages{margin:0;padding:0 0 10px;border-bottom:3px solid rgba(175,195,214,.4)}
#reglages .lg:first-child{margin-top:0}
#instrCtl .rang2{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:10px 0 14px}
#tonBtn{display:flex;align-items:center;gap:10px;font:500 30px system-ui,sans-serif;color:rgba(175,195,214,.95);background:transparent;border:3px solid rgba(175,195,214,.5);border-radius:999px;padding:6px 22px 6px 28px;cursor:pointer;white-space:nowrap}
#tonBtn svg{width:26px;height:26px;fill:none;stroke:currentColor;stroke-width:3.5;stroke-linecap:round;stroke-linejoin:round;transition:transform .25s}
#tonBtn[aria-expanded=true] svg{transform:rotate(180deg)}
#tonListe{display:none;position:absolute;z-index:5;left:70px;width:560px;box-sizing:border-box;background:#191F25;border:3px solid rgba(175,195,214,.55);border-radius:22px;padding:8px 0}
#tonListe.ouvert{display:block}
#tonListe button{display:block;width:100%;text-align:left;background:none;border:0;color:#F3E9D2;font:500 42px system-ui,sans-serif;padding:16px 36px;cursor:pointer}
#tonListe button small{display:block;font:400 28px system-ui,sans-serif;opacity:.7;margin-top:4px}
#tonListe button[aria-selected=true]{color:#D9C58E}
#instrCtl .vagueCtl{display:flex;align-items:center;gap:10px}
#instrCtl .pm{width:62px;height:62px;flex:none;border-radius:50%;font:500 44px/1 system-ui,sans-serif;color:rgba(175,195,214,.95);background:transparent;border:3px solid rgba(175,195,214,.5);cursor:pointer;padding:0}
#instrCtl .pm[aria-pressed=true]{color:#F3E9D2;background:rgba(175,195,214,.26);border-color:#AFC3D6}
#instrCtl .rond{width:62px;height:62px;flex:none;border-radius:50%;display:flex;align-items:center;justify-content:center;font:italic 600 38px Georgia,serif;color:rgba(175,195,214,.95);background:transparent;border:3px solid rgba(175,195,214,.5);cursor:pointer;padding:0}
#instrCtl .rond svg{width:34px;height:34px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}
#instrCtl .rond[aria-expanded=true]{color:#F3E9D2;background:rgba(175,195,214,.26);border-color:#AFC3D6}
#instrCtl .volet{display:none;position:absolute;z-index:4;left:70px;right:70px;top:182px;box-sizing:border-box;background:#191F25;border:3px solid #FF934E;border-radius:22px;padding:14px 30px 22px}
#instrCtl .volet.ouvert{display:block}
#instrCtl .volet p{margin:12px 0;font:400 36px system-ui,sans-serif;color:#F3E9D2}
#grilleBtn{font:500 30px system-ui,sans-serif;color:rgba(175,195,214,.95);background:transparent;border:3px solid rgba(175,195,214,.5);border-radius:999px;padding:6px 30px;cursor:pointer}
#grilleBtn[aria-pressed=true]{color:#F3E9D2;background:rgba(175,195,214,.26);border-color:#AFC3D6}
#grille{display:none;position:absolute;inset:0;width:100%;height:100%;pointer-events:none}
body.instr.grille #grille{display:block}
#instrCtl .lg{display:flex;align-items:center;gap:30px;margin:2px 0 0}
#instrCtl label{flex:none;width:260px;font:500 38px system-ui,sans-serif;color:#F3E9D2}
body.blanc #instrCtl label,body.beigegris #instrCtl label{color:#191F25}
#instrCtl input[type=range]{flex:1;min-width:0;height:52px;accent-color:#AFC3D6;cursor:pointer}
#instrCtl .enreg{margin:14px 0 0}
#instrCtl .enregTit{display:flex;justify-content:space-between;align-items:baseline;gap:20px;font:500 36px system-ui,sans-serif;color:#F3E9D2;margin:0 0 8px}
#instrCtl .enregTit>span:first-child{opacity:.5}
body.blanc #instrCtl .enregTit,body.beigegris #instrCtl .enregTit{color:#191F25}
#instrCtl .enregBar{display:flex;align-items:stretch;gap:14px;padding:10px 14px;box-sizing:border-box;border:3px solid rgba(175,195,214,.35);border-radius:22px;background:rgba(175,195,214,.06);opacity:.5}
#instrCtl .touche{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;height:76px;border:3px solid rgba(175,195,214,.45);border-radius:14px;background:rgba(175,195,214,.1);box-shadow:inset 0 -6px 0 rgba(0,0,0,.25)}
#instrCtl .touche em{font:400 26px system-ui,sans-serif;font-style:normal;color:rgba(175,195,214,.95)}
#instrCtl .ic{display:block;width:34px;height:34px}
#instrCtl .ic.rec{border-radius:50%;background:rgb(237,40,73)}
#instrCtl .ic.st{background:rgba(175,195,214,.9);width:28px;height:28px;margin:3px 0;border-radius:3px}
#instrCtl .ic.pl{width:0;height:0;border-left:32px solid rgba(175,195,214,.9);border-top:19px solid transparent;border-bottom:19px solid transparent;margin:-2px 0 -2px 6px}
#instrCtl .aff{flex:none;width:250px;display:flex;align-items:center;justify-content:center;border-radius:12px;background:#0d1217;border:3px solid rgba(175,195,214,.3);font:500 60px ui-monospace,Menlo,Consolas,monospace;color:#D9C58E;letter-spacing:2px}
#instrCtl .enregVerrou{font:400 32px system-ui,sans-serif;color:rgba(175,195,214,.9)}
body.blanc #instrCtl .enregVerrou,body.beigegris #instrCtl .enregVerrou{color:#191F25}
#instrCtl .mu{margin:6px 0 0;font:400 32px system-ui,sans-serif;color:rgba(175,195,214,.85);min-height:40px}
#zones{touch-action:none}
#notesInstr{position:absolute;inset:0;pointer-events:none;container-type:inline-size;display:none}
body.instr #notesInstr{display:block}
#notesInstr span{position:absolute;transform:translate(-50%,-50%);font:600 36px system-ui,sans-serif;font-size:5.2cqw;line-height:1;white-space:nowrap;color:rgba(243,233,210,.8);transition:opacity .25s}
#notesInstr span.sph{font-weight:700;font-size:6cqw}
#notesInstr span.pc{font-weight:400;font-style:italic;font-size:3.8cqw;opacity:.6}
body.blanc #notesInstr span.pc,body.beigegris #notesInstr span.pc{color:rgba(25,31,37,.7)}
#notesInstr span.vg{opacity:1;font-style:normal;font-weight:600;font-size:4.8cqw;color:rgba(255,226,170,.98)}
body.blanc #notesInstr span.vg,body.beigegris #notesInstr span.vg{color:rgba(25,31,37,.95)}
body.blanc #notesInstr span.gr,body.beigegris #notesInstr span.gr{color:rgba(25,31,37,.75)}
/* instrument : le bloc D disparaît, le panneau descend jusqu'en bas, les boutons ont une vraie taille de doigt */
body.instr #instrCtl{display:flex;flex-direction:column;padding:20px 70px}
#instrCtl .tt{margin:0}
#instrCtl .outils{gap:16px}
#grilleBtn{height:112px;font:500 38px system-ui,sans-serif;padding:0 40px}
#instrCtl .rond{width:112px;height:112px;font-size:62px}
#instrCtl .rang2{margin:14px 0 14px;gap:14px}
#tonBtn,#dispoBtn{height:112px;font:500 38px system-ui,sans-serif;padding:0 26px 0 34px;gap:12px}
#tonBtn svg,#dispoBtn svg{width:34px;height:34px}
#instrCtl .pm{width:112px;height:112px;font:500 76px/1 system-ui,sans-serif}
#instrCtl .vagueCtl{gap:12px}
#reglages{padding:0 0 12px}
#instrCtl .lg{margin:0;gap:24px}
#instrCtl label{width:250px;font:500 38px system-ui,sans-serif}
#instrCtl input[type=range]{height:76px;-webkit-appearance:none;appearance:none;background:transparent}
#instrCtl input[type=range]::-webkit-slider-runnable-track{height:12px;border-radius:6px;background:rgba(175,195,214,.3)}
#instrCtl input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;width:60px;height:60px;border-radius:50%;background:#AFC3D6;border:0;margin-top:-24px}
#instrCtl input[type=range]::-moz-range-track{height:12px;border-radius:6px;background:rgba(175,195,214,.3)}
#instrCtl input[type=range]::-moz-range-thumb{width:60px;height:60px;border-radius:50%;background:#AFC3D6;border:0}
#instrCtl .bas{display:flex;align-items:flex-end;gap:16px;margin-top:auto}
#menuInstr{flex:none;width:128px;height:128px;display:flex;align-items:center;justify-content:center;border:3px solid rgba(175,195,214,.5);border-radius:22px;background:rgba(175,195,214,.08);cursor:pointer;padding:0}
#menuInstr svg{width:64px;height:64px;fill:none;stroke:#AFC3D6;stroke-width:3.5;stroke-linecap:round}
#menuInstr{flex-direction:column;gap:4px}
#menuInstr svg{width:58px;height:58px;stroke-linejoin:round}
#menuInstr span{font:500 26px/1 system-ui,sans-serif;color:rgba(175,195,214,.85);letter-spacing:.02em}
#instrCtl .bas .enreg{flex:1;min-width:0;margin:0}
#instrCtl .enregTit{font-size:32px;margin:0 0 6px}
#instrCtl .enregVerrou{font-size:28px}
#instrCtl .enregBar{padding:8px 10px;gap:10px}
#instrCtl .touche{height:100px;border-radius:12px}
#instrCtl .touche em{font-size:22px}
#instrCtl .aff{width:140px;font-size:46px;letter-spacing:1px}
#tonListe{width:520px}

#instrCtl .tt{gap:12px}
#instrCtl .tt>span:first-child{font-size:32px;white-space:nowrap}
#metro{display:flex;align-items:stretch;height:112px;flex:none;border-radius:999px;border:3px solid rgba(175,195,214,.5);color:rgba(175,195,214,.95);font-family:system-ui,sans-serif;overflow:hidden}
#metro .mInt{display:flex;align-items:center;gap:10px;padding:0 16px;border-right:2px solid rgba(175,195,214,.3)}
#metro .mInt button{width:76px;height:76px;border-radius:50%;border:3px solid rgba(175,195,214,.45);background:transparent;color:inherit;cursor:pointer;display:flex;align-items:center;justify-content:center;padding:0}
#metro .mInt button svg{width:40px;height:40px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
#metro .mInt button[aria-checked=true]{background:rgb(196,84,98);border-color:rgb(196,84,98);color:#fff}
#metro b{display:flex;align-items:center;justify-content:center;min-width:104px;padding:0 10px;font:600 46px system-ui,sans-serif;font-variant-numeric:tabular-nums;border-right:2px solid rgba(175,195,214,.3)}
#metro em{display:flex;align-items:center;padding:0 22px 0 16px;font:400 26px system-ui,sans-serif;font-style:normal;opacity:.85}
#metroRing{display:none;position:absolute;inset:0;width:100%;height:100%;pointer-events:none;overflow:visible}
body.metroOn #metroRing{display:block}
/* le tempo se distingue discrètement : étiquette et rail dorés */
#instrCtl .lg.tempo label{color:#D9C58E}
#instrCtl .lg.tempo input[type=range]::-webkit-slider-runnable-track{background:rgba(212,175,55,.4)}
#instrCtl .lg.tempo input[type=range]::-webkit-slider-thumb{background:#D9C58E}
#instrCtl .lg.tempo input[type=range]::-moz-range-track{background:rgba(212,175,55,.4)}
#instrCtl .lg.tempo input[type=range]::-moz-range-thumb{background:#D9C58E}
#instrCtl .beat{display:flex;gap:12px;margin:2px 0 12px}
#instrCtl .beat button{flex:1;display:flex;align-items:center;justify-content:center;gap:12px;height:96px;padding:0 10px;border-radius:22px;border:3px solid rgba(175,195,214,.45);background:rgba(175,195,214,.06);color:rgba(175,195,214,.95);font:500 30px system-ui,sans-serif;cursor:pointer;white-space:nowrap}
#instrCtl .beat button:disabled{opacity:.4;cursor:default}
#instrCtl .beat svg{width:34px;height:34px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
#instrCtl .beat #bLoop svg{fill:currentColor}
#instrCtl .beat .pt{display:block;width:30px;height:30px;border-radius:50%;background:rgb(196,84,98);flex:none}
#instrCtl .beat button.actif{background:rgb(196,84,98);border-color:rgb(196,84,98);color:#fff}
#instrCtl .beat button.actif .pt{background:#fff;border-radius:6px;width:24px;height:24px}
#instrCtl .beat #bLoop.actif{background:rgba(175,195,214,.26);border-color:#AFC3D6;color:#F3E9D2}
/* tout doit tenir dans le bloc C, même sur un écran 9:16 (740 unités) */
body.instr #instrCtl{padding:12px 70px 12px}
#grilleBtn,#tonBtn,#dispoBtn,#instrCtl .pm,#instrCtl .rond{height:100px}
#instrCtl .pm{width:100px;font-size:68px}
#metro{height:100px}
#metro .mInt button{width:68px;height:68px}
#instrCtl .rang2{margin:8px 0 8px}
#instrCtl .lg{margin:0}
#instrCtl input[type=range]{height:50px}
#instrCtl label{font-size:34px}
#instrCtl input[type=range]::-webkit-slider-thumb{width:50px;height:50px;margin-top:-19px}
#instrCtl .lg.tempo input[type=range]::-webkit-slider-thumb{width:50px;height:50px;margin-top:-19px}
#reglages{padding:0 0 8px}
#instrCtl .cap{margin:8px 0 4px;font:500 26px system-ui,sans-serif;color:rgba(175,195,214,.8);letter-spacing:.5px}
#instrCtl .beat{margin:0 0 6px}
#instrCtl .beat button{height:80px;font-size:28px}
#instrCtl .enregTit{font-size:28px;margin:0 0 4px}
#instrCtl .enregVerrou{font-size:24px}
#instrCtl .enregBar{padding:6px 8px}
#instrCtl .touche{height:66px;flex-direction:row;gap:10px}
#instrCtl .touche .ic.rec{width:26px;height:26px}
#instrCtl .touche .ic.st{width:22px;height:22px;margin:0}
#instrCtl .touche .ic.pl{border-left-width:24px;border-top-width:14px;border-bottom-width:14px;margin:0 0 0 4px}
#instrCtl .touche em{font-size:20px}
#instrCtl .aff{font-size:40px}
#menuInstr{width:96px;height:96px}
#menuInstr svg{width:44px;height:44px}
#menuInstr span{font-size:22px}
#instrCtl .bas{align-items:flex-end}

/* Réglages : volet par-dessus l'instrument */
#reglBtn{display:flex;align-items:center;justify-content:center;gap:18px;flex-wrap:wrap;width:100%;min-height:110px;margin:auto 0 26px;padding:12px 24px;border-radius:22px;border:3px solid rgba(175,195,214,.5);background:rgba(175,195,214,.08);color:rgba(175,195,214,.95);font:500 38px system-ui,sans-serif;cursor:pointer;box-sizing:border-box}
#reglBtn svg{width:46px;height:46px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}
#reglBtn small{flex-basis:100%;text-align:center;font:400 24px system-ui,sans-serif;opacity:.7}
#instrCtl .bas{margin-top:auto}
#reglages{display:none;position:absolute;left:0;top:180px;width:1080px;bottom:0;z-index:15;box-sizing:border-box;background:#191F25;padding:36px 70px;overflow-y:auto;color:#F3E9D2;font-family:system-ui,sans-serif;border-top:4px solid rgba(175,195,214,.4)}
body.instr.reglOuvert #reglages{display:block}
#reglages .rgTete{display:flex;justify-content:space-between;align-items:center;margin:0 0 40px;font:600 48px system-ui,sans-serif;color:#F3E9D2}
#reglFerme{height:112px;padding:0 44px;border-radius:22px;border:3px solid rgba(175,195,214,.6);background:rgba(175,195,214,.12);color:#F3E9D2;font:500 38px system-ui,sans-serif;cursor:pointer}
#reglages section{margin:0 0 40px;padding:0 0 34px;border-bottom:2px solid rgba(175,195,214,.25)}
#reglages section:last-child{border-bottom:0}
#reglages h3{margin:0 0 20px;font:600 34px system-ui,sans-serif;letter-spacing:.5px;color:rgba(175,195,214,.9)}
#reglages .aide{margin:0 0 24px;font:400 30px/1.35 system-ui,sans-serif;color:rgba(243,233,210,.75)}
#reglages .lg{display:flex;align-items:center;gap:28px;margin:0 0 18px}
#reglages label{width:260px;font:500 38px system-ui,sans-serif;color:#F3E9D2}
#reglages .lg.tempo label{color:#D9C58E}
#reglages .beat{display:flex;gap:22px;margin:0}
#reglages .beat button{flex:1;height:120px;font-size:32px;border-radius:22px}
#reglages input[type=range]{flex:1;min-width:0;height:76px;-webkit-appearance:none;appearance:none;background:transparent;cursor:pointer}
#reglages input[type=range]::-webkit-slider-runnable-track{height:12px;border-radius:6px;background:rgba(175,195,214,.3)}
#reglages input[type=range]::-webkit-slider-thumb{-webkit-appearance:none;width:60px;height:60px;border-radius:50%;background:#AFC3D6;border:0;margin-top:-24px}
#reglages input[type=range]::-moz-range-track{height:12px;border-radius:6px;background:rgba(175,195,214,.3)}
#reglages input[type=range]::-moz-range-thumb{width:60px;height:60px;border-radius:50%;background:#AFC3D6;border:0}
#reglages .lg.tempo input[type=range]::-webkit-slider-runnable-track{background:rgba(212,175,55,.4)}
#reglages .lg.tempo input[type=range]::-webkit-slider-thumb{background:#D9C58E}
#reglages .lg.tempo input[type=range]::-moz-range-track{background:rgba(212,175,55,.4)}
#reglages .lg.tempo input[type=range]::-moz-range-thumb{background:#D9C58E}
#reglages .beat button{display:flex;align-items:center;justify-content:center;gap:14px;border:3px solid rgba(175,195,214,.45);background:rgba(175,195,214,.06);color:rgba(175,195,214,.95);font-weight:500;cursor:pointer}
#reglages .beat button:disabled{opacity:.4;cursor:default}
#reglages .beat svg{width:40px;height:40px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
#reglages .beat #bLoop svg{fill:currentColor}
#reglages .beat .pt{display:block;width:34px;height:34px;border-radius:50%;background:rgb(196,84,98);flex:none}
#reglages .beat button.actif{background:rgb(196,84,98);border-color:rgb(196,84,98);color:#fff}
#reglages .beat button.actif .pt{background:#fff;border-radius:6px;width:28px;height:28px}
#reglages .beat #bLoop.actif{background:rgba(175,195,214,.26);border-color:#AFC3D6;color:#F3E9D2}

/* v77 : tempo et beat sample restent dans le panneau (on joue pendant l'enregistrement) */
body.instr #instrCtl{padding:36px 70px 12px}
#instrCtl .rang2{margin:20px 0 18px}
#blocTempo .lg{margin:0}
#blocTempo label{color:#D9C58E;width:200px}
#blocTempo input[type=range]{flex:1;min-width:0}
#blocTempo input[type=range]::-webkit-slider-runnable-track{background:rgba(212,175,55,.4)}
#blocTempo input[type=range]::-webkit-slider-thumb{background:#D9C58E}
#blocTempo input[type=range]::-moz-range-track{background:rgba(212,175,55,.4)}
#blocTempo input[type=range]::-moz-range-thumb{background:#D9C58E}
#instrCtl .beat{margin:14px 0 22px;gap:14px}
#instrCtl .beat button{height:96px;font-size:26px;gap:10px;padding:0 8px}
#instrCtl .beat #reglBtn{flex:none;width:96px;padding:0}
#instrCtl .beat #reglBtn svg{width:46px;height:46px}
#reglages .lg{margin:0 0 30px}

/* v77 : le panneau se relève vers le haut (le tempo reste sous le BPM) */
#reglages{position:static;display:none;width:auto;bottom:auto;z-index:auto;background:none;padding:0;overflow:visible;border:0;margin:0 0 6px}
body.instr.reglOuvert #reglages{display:block}
#reglages .lg{margin:0 0 6px}
#reglages .lg.tempo{margin-bottom:12px}
#reglages label{width:250px;font-size:34px}
#reglages input[type=range]{height:62px}
body.reglOuvert #C{z-index:14}
body.instr.reglOuvert #instrCtl{top:-670px;background:#191F25;border-top:4px solid #D4AF37;border-radius:26px 26px 0 0;box-shadow:0 -14px 30px rgba(0,0,0,.45)}
body.instr.reglOuvert #C{border-top-color:transparent}
#reglBtn[aria-expanded=true]{background:rgba(175,195,214,.28);border-color:#AFC3D6}

/* v78 : groupes séparés (métronome+tempo / son de l'instrument / beat), libellés lisibles */
#reglages .lg.tempo{margin-bottom:18px;padding-bottom:18px;border-bottom:2px solid rgba(175,195,214,.25)}
#reglages .lg.tempo + .lg{margin-top:6px}
#reglages{padding-bottom:14px}
#instrCtl .beat{margin:14px 0 22px;padding-top:20px;border-top:2px solid rgba(175,195,214,.25)}
body.instr:not(.reglOuvert) #instrCtl .beat{border-top:0;padding-top:0}
#instrCtl .beat button{height:104px;font-size:30px;line-height:1.1;white-space:normal;text-align:left;gap:12px}
#instrCtl .beat #reglBtn{width:104px;height:104px}
#instrCtl .beat button span{flex:0 1 auto}

/* v79 : le beat sample est mis de côté (niveau 10 plus tard) ; le code reste, les boutons sont masqués */
#instrCtl .beat #bRec,#instrCtl .beat #bLoop,#instrCtl .beat #bEff{display:none}
#instrCtl .beat #reglBtn{flex:1;width:auto;height:104px;font:500 34px system-ui,sans-serif;gap:16px}
#instrCtl .beat{border-top:0 !important;padding-top:0 !important}
body.instr.reglOuvert #instrCtl .beat{border-top:2px solid rgba(175,195,214,.25) !important;padding-top:20px !important}

/* v80 : le tempo reste sous le BPM, toujours visible */
#blocTempo{margin:0 0 10px}
#blocTempo .lg{margin:0;padding:0;border:0}
#blocTempo label{color:#D9C58E;width:250px;font-size:34px}
#blocTempo input[type=range]{height:62px}
#instrCtl .beat #reglBtn{height:96px}

/* v81 : bouton de fermeture bien visible */
#reglBtn .fl{display:none;width:18px;height:18px;border-right:5px solid currentColor;border-bottom:5px solid currentColor;transform:rotate(45deg) translateY(-4px);margin-left:8px}
#reglBtn[aria-expanded=true] .fl{display:block}
#instrCtl .beat #reglBtn[aria-expanded=true]{background:#D9C58E;border-color:#D9C58E;color:#191F25;font-weight:700}

/* v82 : choix de la pulsation du métronome */
#pulsBloc{margin:14px 0 6px;padding-top:16px;border-top:2px solid rgba(175,195,214,.25)}
#pulsBloc .pulsTit{display:block;margin:0 0 12px;font:500 30px system-ui,sans-serif;color:#D9C58E}
#pulsListe{display:flex;gap:10px;flex-wrap:wrap}
#pulsListe button{flex:1;min-width:150px;height:84px;border-radius:18px;border:3px solid rgba(175,195,214,.45);background:rgba(175,195,214,.06);color:rgba(175,195,214,.95);font:500 30px system-ui,sans-serif;cursor:pointer;padding:0 10px}
#pulsListe button[aria-pressed=true]{background:rgba(217,197,142,.22);border-color:#D9C58E;color:#F3E9D2}

/* v83 */
#instrCtl .tt small.beta{font:500 26px system-ui,sans-serif;font-style:italic;letter-spacing:1px;color:#FF934E;opacity:.95;margin-left:6px}
#instrCtl label,#blocTempo label,#reglages label{width:176px}
/* instrument sur écran 9:16 : le bloc C garde sa hauteur d'origine, les rangées se compactent (rien ne disparaît) */
@media (min-aspect-ratio:53/100){
  body.instr #instrCtl{padding:16px 70px 8px}
  #grilleBtn,#tonBtn,#dispoBtn,#instrCtl .pm,#instrCtl .rond{height:90px}
  #instrCtl .pm{width:90px;font-size:62px}
  #metro{height:90px}
  #metro .mInt button{width:62px;height:62px}
  #instrCtl .rang2{margin:6px 0 4px}
  #instrCtl input[type=range]{height:46px}
  #blocTempo{margin:0 0 4px}
  #instrCtl .beat{margin:0 0 6px}
  #instrCtl .beat #reglBtn{height:90px;min-height:0;margin:0;padding:0 24px}
  #instrCtl .enreg{margin:14px 0 0}
  #instrCtl .touche{height:66px}
}
/* Enregistreur de piste (01/11) : la barre s'ouvre (plus de cadenas), trois pistes en dessous */
#instrCtl .enreg.actif .enregBar{opacity:1}
#instrCtl .enreg.actif .enregTit>span:first-child{opacity:1}
#pisteMsg{margin:6px 0 0;font:400 32px/1.3 system-ui,sans-serif;color:#E6D9A6}
#pisteMsg:empty{display:none}
body.blanc #pisteMsg,body.beigegris #pisteMsg{color:#7D6B33}
#instrCtl button.touche{padding:0;margin:0;font:inherit;color:inherit;cursor:pointer}
#instrCtl button.touche:disabled{opacity:.45;cursor:default}
#instrCtl button.touche.actif{background:rgba(237,40,73,.28);border-color:rgb(237,40,73)}
#instrCtl button.touche.actif .ic.rec{animation:pisteRec 1.2s ease-in-out infinite}
@keyframes pisteRec{50%{opacity:.35}}
body.anim-aucune #instrCtl button.touche.actif .ic.rec{animation:none}
@media (prefers-reduced-motion:reduce){#instrCtl button.touche.actif .ic.rec{animation:none}}
#pistes{margin:8px 0 0;display:flex;flex-direction:column;gap:6px}
#pistes .piste{display:flex;align-items:center;gap:12px;padding:3px 4px 3px 22px;border:2px solid rgba(175,195,214,.3);border-radius:18px;background:rgba(175,195,214,.05)}
#pistes .pNom{flex:1;min-width:0;font:400 30px system-ui,sans-serif;color:#F3E9D2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body.blanc #pistes .pNom,body.beigegris #pistes .pNom{color:#191F25}
#pistes .pB{flex:none;display:flex;align-items:center;justify-content:center;min-width:96px;height:66px;padding:0 16px;border-radius:14px;border:3px solid rgba(175,195,214,.45);background:rgba(175,195,214,.1);color:rgba(175,195,214,.95);font:500 28px system-ui,sans-serif;cursor:pointer}
#pistes .pB svg{width:40px;height:40px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
#pistes .pB[data-a=ecouter] svg{fill:currentColor}
#pistes .pB.confirme{background:rgb(196,84,98);border-color:rgb(196,84,98);color:#fff}
body.blanc #pistes .pB,body.beigegris #pistes .pB{color:#243A47;border-color:rgba(36,58,71,.5)}
/* Écran large (PC) : le panneau est moins haut ; quand les pistes ne tiennent pas, il défile */
@media (min-aspect-ratio:53/100){ #instrCtl{overflow-y:auto;overscroll-behavior:contain} }
/* Boîte à rythme (02/11) : un bouton sous la barre de l'enregistreur, puis le panneau (cases, longueur, commandes, set) */
#instrCtl{overflow-y:auto;overscroll-behavior:contain}
#notesInstr span.bt{font-weight:500;font-size:3.8cqw;line-height:1.1;max-width:16cqw;text-align:center;white-space:normal;padding:.3cqw .9cqw;border-radius:1.2cqw;background:rgba(25,31,37,.55)}
/* Sur les sphères de couleur (claires), le carré sombre rendait le nom illisible : texte anthracite, sans carré (Christophe, 13/11 ; couleur choisie par Claude) */
#notesInstr span.bt.bs{background:none;color:#191F25;font-weight:700;text-shadow:0 0 .8cqw rgba(243,233,210,.75)}   /* le halo crème garde le nom lisible pendant que les sphères s'allument */
#boiteBtn{display:block;flex:1;min-width:0;margin:0;height:86px;border-radius:18px;border:3px solid rgba(175,195,214,.45);background:rgba(175,195,214,.1);color:#F3E9D2;font:500 32px system-ui,sans-serif;cursor:pointer}
#boiteBtn[aria-pressed=true]{background:#D9C58E;border-color:#D9C58E;color:#191F25}
body.blanc #boiteBtn:not([aria-pressed=true]),body.beigegris #boiteBtn:not([aria-pressed=true]){color:#191F25;border-color:rgba(36,58,71,.5)}
#boite{margin:10px 0 0;display:flex;flex-direction:column;gap:10px}
#boite[hidden]{display:none}
#boite button{font:500 28px system-ui,sans-serif;color:rgba(175,195,214,.95);background:rgba(175,195,214,.1);border:3px solid rgba(175,195,214,.45);border-radius:14px;cursor:pointer}
#boite button:disabled{opacity:.4;cursor:default}
.btGrille{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.btGrille .btCase{height:84px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:0}
.btGrille .btCase b{font-size:32px;color:#F3E9D2}
.btGrille .btCase small{font-size:24px;font-weight:400}
#boite .btGrille .btCase.pleine{background:rgba(217,197,142,.14);border-color:rgba(217,197,142,.6)}
#boite .btGrille .btCase.sel{border-color:#D9C58E;background:#D9C58E;box-shadow:none}
#boite .btGrille .btCase.sel b,#boite .btGrille .btCase.sel small{color:#191F25}
.btLong{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.btLong span{flex:0 0 100%;margin:0;font:400 28px system-ui,sans-serif;color:#F3E9D2}
#boite .btLong button{flex:1 1 30%;min-width:0;height:66px}
#boite .btLong button[aria-pressed=true]{background:#D9C58E;border-color:#D9C58E;color:#191F25}
.btCmd{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.btCmd button{height:76px;display:flex;align-items:center;justify-content:center;gap:10px;padding:0 10px}
.btCmd svg{width:34px;height:34px;fill:currentColor}
.btCmd .pt{display:block;width:26px;height:26px;border-radius:50%;background:rgb(237,40,73);flex:none}
#btEnreg.actif{background:rgba(237,40,73,.28);border-color:rgb(237,40,73);color:#F3E9D2}
#btEff.confirme{background:rgb(196,84,98);border-color:rgb(196,84,98);color:#fff}
#btEtat{margin:0;font:400 30px/1.3 system-ui,sans-serif;color:#E6D9A6;min-height:39px}
#btSetBtn{height:72px}
#btSet{display:flex;flex-direction:column;gap:8px}
#btSet[hidden]{display:none}
.btZone{display:flex;align-items:center;gap:14px;margin:0}
.btZone span{flex:1;min-width:0;font:400 28px system-ui,sans-serif;color:#F3E9D2}
.btZone select{flex:none;width:52%;height:66px;font:400 28px system-ui,sans-serif;border-radius:12px;background:#243A47;color:#F3E9D2;border:2px solid rgba(175,195,214,.45)}
body.blanc #btEtat,body.beigegris #btEtat{color:#7D6B33}
body.blanc .btLong span,body.beigegris .btLong span,body.blanc .btZone span,body.beigegris .btZone span,body.blanc .btGrille .btCase b,body.beigegris .btGrille .btCase b{color:#191F25}
body.blanc #boite button,body.beigegris #boite button{color:#243A47;border-color:rgba(36,58,71,.5)}
/* Le « i » de la boîte à rythme et sa bulle (02/11) */
#instrCtl .btTete{display:flex;align-items:center;gap:12px;margin:10px 0 0}
#btInfo{flex:none;width:86px;height:86px;border-radius:50%;border:3px solid #FF934E;background:transparent;color:#FF934E;font:italic 700 44px Georgia,serif;cursor:pointer;padding:0}
#btInfo[aria-expanded=true]{background:#FF934E;color:#191F25}
#btBulle{margin:10px 0 0;padding:22px 28px;border-radius:20px;border:2px solid rgba(255,147,78,.4);background:rgba(243,233,210,.1);cursor:pointer}
#btBulle[hidden]{display:none}
#btBulle p{margin:0 0 14px;font:400 30px/1.4 system-ui,sans-serif;color:#F3E9D2}
#btBulle p:last-child{margin:0}
body.blanc #btBulle p,body.beigegris #btBulle p{color:#191F25}
/* Boîte à rythme : longueur d'une case pleine, bouton « Arrêter la boucle » toujours visible (02/11) */
#btLongInfo{margin:0;font:400 30px/1.35 system-ui,sans-serif;color:#F3E9D2}
#btLongInfo[hidden],.btLong[hidden]{display:none}
body.blanc #btLongInfo,body.beigegris #btLongInfo{color:#191F25}
#btStopBoucle{position:sticky;top:0;z-index:5;display:flex;align-items:center;justify-content:center;gap:14px;width:100%;height:96px;margin:0 0 10px;border-radius:18px;border:3px solid rgb(237,40,73);background:rgb(196,40,62);color:#fff;font:600 34px system-ui,sans-serif;cursor:pointer;flex:none}
#btStopBoucle[hidden]{display:none}
#btStopBoucle svg{width:38px;height:38px;fill:currentColor}
/* Le volume de chaque note (18/11) : le bouton dans « Réglages » (le panneau monte de 130 px de plus pour lui faire place), puis la barre qui remplace les commandes sous l'instrument */
#notesBtn{display:block;width:100%;height:100px;margin:18px 0 6px;border-radius:18px;border:3px solid rgba(175,195,214,.45);background:rgba(175,195,214,.06);color:#F3E9D2;font:500 34px system-ui,sans-serif;cursor:pointer}
#notesBar{display:none}
body.instr.instrNotes #instrCtl > *{display:none !important}
body.instr.instrNotes #instrCtl > #notesBar{display:block !important}
#notesBar p{margin:10px 0 26px;text-align:center;font:500 38px/1.3 system-ui,sans-serif;color:#F3E9D2;min-height:100px;display:flex;align-items:center;justify-content:center}
#notesBar p.choisie{font:700 84px/1 system-ui,sans-serif;color:#D9C58E}
#notesBar .notesLigne{display:flex;align-items:center;justify-content:center;gap:26px;margin:0 0 26px}
#notesBar button{height:120px;border-radius:22px;border:3px solid rgba(175,195,214,.5);background:rgba(175,195,214,.08);color:#F3E9D2;font:500 34px system-ui,sans-serif;cursor:pointer;padding:0 30px}
#notesMoins,#notesPlus{width:220px;font-size:76px !important;line-height:1}
#notesVal{min-width:150px;text-align:center;font:600 60px system-ui,sans-serif;color:#F3E9D2}
#notesZero,#notesFini{flex:1}
#notesFini{border-color:#D9C58E !important;background:rgba(217,197,142,.22) !important}
#notesBar button:disabled{opacity:.35;cursor:default}
body.blanc #notesBar p,body.beigegris #notesBar p,body.blanc #notesVal,body.beigegris #notesVal,body.blanc #notesBar button,body.beigegris #notesBar button{color:#191F25}
body.blanc #notesBar p.choisie,body.beigegris #notesBar p.choisie{color:#8A6A12}
