/* ===== Section Outils LEMG (/outils/) ===== */
.tool-hero{padding:130px 0 38px;text-align:center;background:var(--bg2);border-bottom:1px solid var(--line)}
.tool-hero .breadcrumb{display:flex;gap:8px;justify-content:center;align-items:center;font-size:13px;color:var(--ink2);margin-bottom:16px}
.tool-hero .breadcrumb a{color:var(--ink2)}
.tool-hero .breadcrumb a:hover{color:var(--red)}
.tool-hero .bc-current{color:var(--ink)}
.tool-hero .eyebrow{font-size:12px;letter-spacing:.28em;text-transform:uppercase;color:var(--red);font-weight:700;margin-bottom:12px}
.tool-hero h1{font-size:clamp(30px,5vw,46px);font-weight:800;letter-spacing:-.02em;color:var(--ink);margin:0}
.tool-sub{color:var(--ink2);max-width:62ch;margin:14px auto 0;font-size:17px}

.tool-wrap{padding:40px 0 8px}

/* Widget metronome */
.metro{max-width:560px;margin:0 auto;background:var(--card);border:1px solid var(--line);border-radius:20px;padding:30px 26px;box-shadow:0 24px 60px -28px rgba(22,22,26,.28)}
.metro-display{display:flex;align-items:center;justify-content:center;gap:18px}
.metro-readout{display:flex;flex-direction:column;align-items:center;line-height:1;min-width:170px}
.metro-bpm{width:160px;text-align:center;border:0;background:transparent;font-family:inherit;font-weight:800;font-size:68px;color:var(--ink);letter-spacing:-.02em;-moz-appearance:textfield}
.metro-bpm::-webkit-outer-spin-button,.metro-bpm::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}
.metro-bpm:focus{outline:none}
.metro-bpm-unit{font-size:13px;font-weight:700;letter-spacing:.22em;color:var(--ink2);text-transform:uppercase;margin-top:-4px}
.metro-mark{margin-top:8px;font-size:15px;font-weight:700;color:var(--red);letter-spacing:.02em}
.metro-bpm-step{width:46px;height:46px;flex:none;border-radius:50%;border:1.5px solid var(--line);background:#fff;color:var(--ink);font-size:24px;font-weight:600;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:.15s}
.metro-bpm-step:hover{border-color:var(--red);color:var(--red)}
.metro-slider{width:100%;margin:22px 0 6px;-webkit-appearance:none;appearance:none;height:6px;border-radius:6px;background:var(--bg2);cursor:pointer}
.metro-slider::-webkit-slider-thumb{-webkit-appearance:none;width:22px;height:22px;border-radius:50%;background:var(--red);border:3px solid #fff;box-shadow:0 2px 8px rgba(160,24,41,.4);cursor:pointer}
.metro-slider::-moz-range-thumb{width:20px;height:20px;border-radius:50%;background:var(--red);border:3px solid #fff;cursor:pointer}
.metro-beats{display:flex;flex-wrap:wrap;gap:12px;justify-content:center;align-items:center;min-height:30px;margin:18px 0 22px}
.metro-dot{width:16px;height:16px;border-radius:50%;background:#d7d7de;transition:transform .08s ease,background .08s ease}
.metro-dot.is-accent{width:20px;height:20px;background:#c2c2cc}
.metro-dot.is-on{background:var(--red);transform:scale(1.45)}
.metro-dot.is-accent.is-on{background:var(--gold)}
.metro-actions{display:flex;gap:12px;justify-content:center;flex-wrap:wrap}
.metro-play{min-width:170px;padding:15px 26px;border:0;border-radius:40px;background:var(--red);color:#fff;font-family:inherit;font-weight:700;font-size:16px;cursor:pointer;box-shadow:0 12px 30px -8px rgba(160,24,41,.5);transition:.15s}
.metro-play:hover{background:var(--red2);transform:translateY(-2px)}
.metro-play.is-playing{background:var(--ink);box-shadow:none}
.metro-tap{padding:15px 22px;border:1.5px solid var(--line);border-radius:40px;background:#fff;color:var(--ink);font-family:inherit;font-weight:700;font-size:15px;cursor:pointer;transition:.12s;user-select:none}
.metro-tap:hover{border-color:var(--red);color:var(--red)}
.metro-tap.is-tapped{background:var(--red);color:#fff;border-color:var(--red);transform:scale(.97)}
.metro-row{display:flex;flex-wrap:wrap;gap:16px;justify-content:center;margin-top:26px;padding-top:22px;border-top:1px solid var(--line)}
.metro-row label{display:flex;flex-direction:column;gap:6px;font-size:12px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:var(--ink2)}
.metro-row select{padding:9px 12px;border:1.5px solid var(--line);border-radius:10px;background:#fff;font-size:14px;color:var(--ink);font-weight:600;cursor:pointer;font-family:inherit}
.metro-row select:focus{outline:none;border-color:var(--red)}
.metro-vol-wrap input{width:120px;accent-color:var(--red);margin-top:6px}
.metro-hint{text-align:center;color:var(--ink2);font-size:13.5px;margin-top:20px}

/* Bandeau CTA studio */
.tool-cta-band{padding:30px 0}
.tool-cta{background:linear-gradient(135deg,rgba(160,24,41,.06),rgba(198,31,55,.04));border:1px solid var(--line);border-radius:16px;padding:24px 28px;display:flex;align-items:center;justify-content:space-between;gap:20px;flex-wrap:wrap}
.tool-cta p{margin:0;color:var(--ink2);font-size:16px}
.tool-cta strong{color:var(--ink)}
.tool-cta .btn-red{flex:none;display:inline-block;background:var(--red);color:#fff;padding:13px 24px;border-radius:40px;font-weight:700;box-shadow:0 10px 26px -8px rgba(160,24,41,.45);transition:.15s}
.tool-cta .btn-red:hover{background:var(--red2);transform:translateY(-2px)}

/* Texte + FAQ */
.tool-copy{padding:18px 0 10px;max-width:760px}
.tool-copy h2{font-size:24px;font-weight:800;color:var(--ink);margin:30px 0 8px;letter-spacing:-.01em}
.tool-copy p{color:var(--ink2);font-size:16.5px;margin:0 0 12px}
.tool-copy ul{color:var(--ink2);font-size:16.5px;margin:0 0 12px 22px}
.tool-copy li{margin:6px 0}
.tool-copy strong{color:var(--ink)}
.tool-faq{padding:14px 0 30px;max-width:760px}
.tool-faq h2{font-size:24px;font-weight:800;color:var(--ink);margin:0 0 14px}
.tool-faq-item{border-top:1px solid var(--line);padding:16px 0}
.tool-faq-q{font-size:17px;font-weight:700;color:var(--ink);margin:0 0 6px}
.tool-faq-a{color:var(--ink2);font-size:16px;margin:0;line-height:1.6}
.tool-more{padding:6px 0 50px}
.tool-more a{color:var(--red);font-weight:700}

/* Index des outils */
.tools-grid-sec{padding:40px 0 60px}
.tools-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:18px}
.tool-card{display:flex;flex-direction:column;gap:10px;padding:24px 22px;background:var(--card);border:1px solid var(--line);border-radius:16px;text-decoration:none;transition:.18s;box-shadow:0 10px 30px -22px rgba(22,22,26,.4)}
.tool-card:hover{transform:translateY(-4px);border-color:var(--red);box-shadow:0 22px 44px -26px rgba(160,24,41,.5)}
.tool-card-ic{width:46px;height:46px;border-radius:12px;background:rgba(160,24,41,.08);color:var(--red);display:flex;align-items:center;justify-content:center}
.tool-card-ic svg{width:24px;height:24px}
.tool-card-tt{font-size:18px;font-weight:800;color:var(--ink)}
.tool-card-d{font-size:14.5px;color:var(--ink2);line-height:1.5}

@media(max-width:560px){
  .metro{padding:24px 16px}
  .metro-bpm{font-size:54px;width:130px}
  .metro-readout{min-width:140px}
  .tool-cta{flex-direction:column;align-items:flex-start}
}
@media(prefers-reduced-motion:reduce){
  .metro-dot.is-on{transform:none}
  .metro-play:hover,.tool-cta .btn-red:hover,.tool-card:hover{transform:none}
}

/* Vocal remover */
.vrm{max-width:560px;margin:0 auto;background:var(--card);border:1px solid var(--line);border-radius:20px;padding:30px 26px;box-shadow:0 24px 60px -28px rgba(22,22,26,.28)}
.vrm-drop{border:2px dashed var(--line);border-radius:14px;padding:22px;text-align:center;transition:.15s}
.vrm-drop:hover{border-color:var(--red)}
.vrm-file{position:absolute;width:1px;height:1px;opacity:0;overflow:hidden}
.vrm-filelabel{display:inline-block;padding:11px 20px;border-radius:40px;border:1.5px solid var(--line);background:#fff;font-weight:700;font-size:15px;color:var(--ink);cursor:pointer;transition:.15s}
.vrm-filelabel:hover{border-color:var(--red);color:var(--red)}
.vrm-file:focus-visible + .vrm-filelabel{outline:2px solid var(--red);outline-offset:2px}
.vrm-fname{display:block;margin-top:10px;font-size:14px;color:var(--ink2);word-break:break-all}
.vrm-modes{display:flex;gap:10px;flex-wrap:wrap;justify-content:center;margin:18px 0}
.vrm-mode{display:flex;align-items:center;gap:8px;padding:10px 14px;border:1.5px solid var(--line);border-radius:12px;font-weight:700;font-size:14px;color:var(--ink);cursor:pointer}
.vrm-mode.is-soon{opacity:.55;cursor:not-allowed}
.vrm-mode-note{font-weight:500;font-size:12px;color:var(--ink2)}
.vrm-go{display:block;width:100%;margin-top:6px;padding:15px 26px;border:0;border-radius:40px;background:var(--red);color:#fff;font-family:inherit;font-weight:700;font-size:16px;cursor:pointer;box-shadow:0 12px 30px -8px rgba(160,24,41,.5);transition:.15s}
.vrm-go:hover:not(:disabled){background:var(--red2)}
.vrm-go:disabled{opacity:.5;cursor:not-allowed;box-shadow:none}
.vrm-status{text-align:center;color:var(--ink2);font-size:14px;margin-top:14px;min-height:1em}
.vrm-prog{display:block;width:100%;height:8px;margin-top:12px;border-radius:6px;overflow:hidden;-webkit-appearance:none;appearance:none;border:0;background:var(--bg2)}
.vrm-prog::-webkit-progress-bar{background:var(--bg2);border-radius:6px}
.vrm-prog::-webkit-progress-value{background:var(--red);border-radius:6px}
.vrm-prog::-moz-progress-bar{background:var(--red);border-radius:6px}
.vrm-result{margin-top:22px;display:flex;flex-direction:column;gap:16px}
.vrm-track{display:flex;flex-direction:column;gap:8px;padding:16px;background:var(--bg2);border-radius:14px}
.vrm-track-h{font-weight:800;font-size:15px;color:var(--ink)}
.vrm-track audio{width:100%}
.vrm-dl{align-self:flex-start;font-size:14px;font-weight:700;color:var(--red)}
.vrm-privacy{margin-top:18px;text-align:center;font-size:12.5px;color:var(--ink2)}

/* Cercle des quintes */
.cof{max-width:920px;margin:0 auto}
.cof-main{display:flex;gap:30px;align-items:flex-start;justify-content:center;flex-wrap:wrap}
.cof-circle{flex:0 0 auto;width:min(360px,86vw)}
.cof-circle svg{width:100%;height:auto;display:block}
.cof-seg{stroke:#fff;stroke-width:1.5;cursor:pointer;transition:fill .15s}
.cof-maj{fill:#efe7e9}
.cof-min{fill:#e6edf0}
.cof-seg:hover{fill:#f7d9de}
.cof-maj.is-sel{fill:var(--red)}
.cof-min.is-sel{fill:var(--red2)}
.cof-tx{text-anchor:middle;dominant-baseline:central;font-family:inherit;font-weight:700;pointer-events:none;fill:var(--ink)}
.cof-tx-maj{font-size:15px}
.cof-tx-min{font-size:11px;fill:var(--ink2)}
.cof-tx.is-sel{fill:#fff}
.cof-hub{fill:var(--bg2);stroke:var(--line);stroke-width:1.5}
.cof-hub-tx{text-anchor:middle;dominant-baseline:central;font-size:36px;font-weight:800;fill:var(--red);font-family:inherit;pointer-events:none}
.cof-panel{flex:1 1 320px;min-width:270px}
.cof-key{display:flex;flex-direction:column;gap:2px;margin-bottom:4px}
.cof-key-name{font-size:26px;font-weight:800;color:var(--ink);letter-spacing:-.01em}
.cof-key-rel{font-size:14px;color:var(--ink2)}
.cof-sig{font-size:13.5px;color:var(--ink2);margin:0 0 16px;padding:9px 13px;background:var(--bg2);border-radius:9px}
.cof-block{margin-bottom:18px}
.cof-lab{display:block;font-size:11.5px;font-weight:700;letter-spacing:.07em;text-transform:uppercase;color:var(--ink2);margin-bottom:9px}
.cof-notes{display:flex;flex-wrap:wrap;gap:7px;margin-bottom:11px}
.cof-note{padding:8px 13px;border:1.5px solid var(--line);border-radius:9px;background:#fff;font-family:inherit;font-weight:700;font-size:14px;color:var(--ink);cursor:pointer;transition:.12s}
.cof-note:hover{border-color:var(--red);color:var(--red)}
.cof-chord-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:6px;margin-bottom:11px}
.cof-chord{display:flex;flex-direction:column;align-items:center;gap:3px;padding:9px 4px;border:1.5px solid var(--line);border-radius:9px;background:#fff;cursor:pointer;transition:.12s}
.cof-chord:hover{border-color:var(--red);background:#fdf3f4}
.cof-deg{font-size:10px;font-weight:700;color:var(--ink2)}
.cof-cn{font-size:13px;font-weight:800;color:var(--ink)}
.cof-play{display:inline-flex;align-items:center;gap:6px;padding:10px 17px;border:0;border-radius:30px;background:var(--ink);color:#fff;font-family:inherit;font-weight:700;font-size:13.5px;cursor:pointer;transition:.12s}
.cof-play:hover{background:var(--red)}
.cof-opts{margin-top:20px;text-align:center}
.cof-toggle{display:inline-flex;align-items:center;gap:8px;font-size:14px;font-weight:600;color:var(--ink2);cursor:pointer}
.cof-toggle input{accent-color:var(--red);width:16px;height:16px}
@media(max-width:560px){.cof-chord-grid{grid-template-columns:repeat(4,1fr)}.cof-note{padding:7px 11px}}
/* Manche guitare / gammes */
.fb{max-width:1140px;margin:0 auto}
.fb-controls{display:flex;flex-wrap:wrap;gap:14px;align-items:flex-end;justify-content:center;margin-bottom:18px}
.fb-controls label{display:flex;flex-direction:column;gap:5px;font-size:12px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:var(--ink2)}
.fb-controls select{padding:9px 12px;border:1.5px solid var(--line);border-radius:10px;background:#fff;font-family:inherit;font-size:14px;font-weight:600;color:var(--ink);cursor:pointer}
.fb-controls select:focus{outline:none;border-color:var(--red)}
.fb-check{flex-direction:row!important;align-items:center;gap:8px!important;text-transform:none!important;font-size:14px!important;color:var(--ink)!important}
.fb-check input{accent-color:var(--red);width:16px;height:16px}
.fb-play{padding:10px 18px;border:0;border-radius:30px;background:var(--ink);color:#fff;font-family:inherit;font-weight:700;font-size:13.5px;cursor:pointer;transition:.12s}
.fb-play:hover{background:var(--red)}
.fb-board{overflow-x:auto;border:1px solid var(--line);border-radius:14px}
.fb-board svg{display:block;min-width:1080px;width:100%;height:auto;background:linear-gradient(#fbf6f0,#f3e9dd)}
.fb-fret{stroke:#cdbfae;stroke-width:2}
.fb-nut{stroke:#6b5844;stroke-width:5}
.fb-string{stroke:#b3a08c;stroke-width:1.4}
.fb-inlay{fill:#dccab2}
.fb-slabel{fill:var(--ink2);font-weight:700;font-size:13px;text-anchor:end;dominant-baseline:central;font-family:inherit}
.fb-fnum{fill:var(--ink2);font-size:12px;text-anchor:middle;font-family:inherit}
.fb-note{cursor:pointer}
.fb-note circle{fill:#fff;stroke:var(--ink);stroke-width:1.3;transition:fill .1s}
.fb-note text{fill:var(--ink);font-size:12px;font-weight:700;text-anchor:middle;dominant-baseline:central;pointer-events:none;font-family:inherit}
.fb-note:hover circle{fill:var(--gold)}
.fb-root circle{fill:var(--red);stroke:var(--red)}
.fb-root text{fill:#fff}
.fb-info{margin-top:14px;text-align:center;font-size:15px;color:var(--ink2)}
.fb-info strong{color:var(--ink)}
@media(max-width:560px){.fb-controls{gap:10px}}
.cof-maj.is-rel{fill:#f3cdd4}
.cof-min.is-rel{fill:#eed7dc}
.cof-relnote{margin-top:14px;font-size:13px;color:var(--ink2);line-height:1.5}

/* Piano en ligne */
.piano{max-width:1120px;margin:0 auto}
.piano-controls{display:flex;justify-content:center;align-items:flex-end;gap:16px;margin-bottom:18px}
.piano-controls > label:not(.fb-check){display:flex;flex-direction:column;gap:5px;font-size:12px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:var(--ink2)}
.piano-controls select{padding:9px 12px;border:1.5px solid var(--line);border-radius:10px;background:#fff;font-family:inherit;font-size:14px;font-weight:600;color:var(--ink);cursor:pointer}
.piano-board{overflow-x:auto;padding:6px 0}
.pkbd{position:relative;margin:0 auto}
.pk{position:absolute;top:0;cursor:pointer;border-radius:0 0 6px 6px;user-select:none;-webkit-user-select:none;-webkit-tap-highlight-color:transparent}
.pk-w{background:#fff;border:1px solid #c9c2bb;z-index:1;display:flex;align-items:flex-end;justify-content:center;padding-bottom:9px;box-shadow:inset 0 -3px 5px -3px rgba(0,0,0,.12)}
.pk-w.is-down{background:#f6d9de}
.pk-b{background:linear-gradient(#333,#111);border:1px solid #000;z-index:2;border-radius:0 0 5px 5px}
.pk-b.is-down{background:linear-gradient(var(--red2),var(--red))}
.pk-lab{font-size:11px;font-weight:600;color:var(--ink2);pointer-events:none}
.piano.hide-names .pk-lab{display:none}
.piano-hint{text-align:center;color:var(--ink2);font-size:13.5px;margin-top:18px}
/* Accords de guitare */
.chd{max-width:1080px;margin:0 auto}
.chd-positions{display:flex;flex-wrap:wrap;gap:8px;justify-content:center;margin:0 0 16px}
.chd-pos{padding:8px 14px;border:1.5px solid var(--line);border-radius:30px;background:#fff;font-family:inherit;font-weight:700;font-size:13.5px;color:var(--ink);cursor:pointer;transition:.12s}
.chd-pos:hover{border-color:var(--red);color:var(--red)}
.chd-pos.is-on{background:var(--red);border-color:var(--red);color:#fff}
.chd-board svg{min-width:820px}
.chd-dot{fill:var(--ink);stroke:#fff;stroke-width:1.5;cursor:pointer}
.chd-dot:hover{fill:var(--ink2)}
.chd-root{fill:var(--red);stroke:#fff}
.chd-mark{font-family:inherit;font-weight:700;font-size:17px;text-anchor:middle;dominant-baseline:central}
.chd-x{fill:var(--ink2)}
.chd-o{fill:var(--ink)}
/* Accords : dropdown variation */
.chd-varwrap{display:flex;flex-direction:column;align-items:center;gap:8px;margin:0 0 18px}
.chd-varlabel-txt{font-family:inherit;font-weight:700;font-size:12px;letter-spacing:.05em;text-transform:uppercase;color:var(--ink2)}
.chd-varrow{display:flex;align-items:stretch;gap:8px}
.chd-varrow select{font-family:inherit;font-weight:700;font-size:16px;color:var(--ink);padding:11px 18px;border:1.5px solid var(--line);border-radius:10px;background:#fff;min-width:240px;text-align:center;cursor:pointer}
.chd-varrow select:hover{border-color:var(--red)}
.chd-arrow{display:flex;align-items:center;justify-content:center;width:52px;border:0;border-radius:10px;background:var(--ink);color:#fff;cursor:pointer;transition:.12s;padding:0}
.chd-arrow:hover{background:var(--red)}
.chd-arrow svg{width:22px;height:22px}
.chd-varhint{font-size:13px;color:var(--ink2);max-width:480px;text-align:center}
/* Manche : mode jeu plein ecran */
.fb-boardwrap{position:relative}
.fb-fsbtn{position:absolute;top:10px;right:10px;z-index:3;display:flex;align-items:center;justify-content:center;width:40px;height:40px;border:1.5px solid var(--line);border-radius:10px;background:rgba(255,255,255,.92);color:var(--ink);cursor:pointer;transition:.12s;padding:0}
.fb-fsbtn:hover{border-color:var(--red);color:var(--red)}
.fb-fsbtn svg{width:20px;height:20px}
.fb-fsclose{display:none}
.fb-boardwrap.fb-fs-active{position:fixed;inset:0;z-index:9999;background:#1c1714;display:flex;align-items:center;justify-content:center;border-radius:0;margin:0;padding:0}
.fb-boardwrap.fb-fs-active .fb-board{width:100%;max-height:100vh;border:0;border-radius:0;overflow:auto;background:transparent}
.fb-boardwrap.fb-fs-active .fb-board svg{min-width:0;width:100%;height:auto}
.fb-boardwrap.fb-fs-active .fb-fsbtn{display:none}
.fb-boardwrap.fb-fs-active .fb-fsclose{display:flex;position:absolute;top:16px;right:18px;z-index:4;align-items:center;justify-content:center;width:48px;height:48px;border:0;border-radius:50%;background:rgba(255,255,255,.16);color:#fff;font-size:28px;line-height:1;cursor:pointer;transition:.12s;font-family:inherit}
.fb-boardwrap.fb-fs-active .fb-fsclose:hover{background:var(--red)}
.vrm-attrib{margin-top:10px;text-align:center;font-size:11.5px;color:var(--ink2);line-height:1.5}
.vrm-attrib a{color:var(--ink2);text-decoration:underline}
.vrm-attrib a:hover{color:var(--red)}

.vrm-drophint{display:block;margin-top:10px;font-size:13px;color:var(--ink2)}
.vrm-drop.is-drag{border-color:var(--red);background:rgba(160,24,41,.05)}

/* Accordeur */
.tuner{max-width:560px;margin:0 auto;background:var(--card);border:1px solid var(--line);border-radius:20px;padding:30px 26px;box-shadow:0 24px 60px -28px rgba(22,22,26,.28)}
.tn-controls{display:flex;flex-wrap:wrap;gap:16px;align-items:flex-end;justify-content:center;margin-bottom:6px}
.tn-controls label{display:flex;flex-direction:column;gap:6px;font-size:12px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:var(--ink2)}
.tn-controls select{padding:10px 12px;border:1.5px solid var(--line);border-radius:10px;background:#fff;font-size:14px;color:var(--ink);font-weight:600;font-family:inherit;cursor:pointer;max-width:320px}
.tn-controls .fb-check{flex-direction:row;align-items:center;gap:7px;text-transform:none;letter-spacing:0;font-size:13px}
.tn-display{text-align:center;padding:16px 0 4px}
.tn-note-wrap{display:flex;align-items:flex-start;justify-content:center;gap:4px;line-height:1}
.tn-note{font-size:82px;font-weight:800;color:var(--ink);letter-spacing:-.02em}
.tn-oct{font-size:24px;font-weight:700;color:var(--ink2);margin-top:14px}
.tn-intune .tn-note{color:#16a05a}
.tn-meter{margin:8px auto 0;max-width:420px}
.tn-meter-track{position:relative;height:14px;border-radius:8px;background:var(--bg2)}
.tn-center{position:absolute;left:50%;top:-5px;bottom:-5px;width:2px;background:var(--ink2);transform:translateX(-50%);opacity:.45}
.tn-needle{position:absolute;top:50%;left:50%;width:6px;height:28px;border-radius:4px;background:var(--red);transform:translate(-50%,-50%);transition:left .07s linear,background .1s}
.tn-intune .tn-needle{background:#16a05a}
.tn-meter-labels{display:flex;justify-content:space-between;font-size:11.5px;color:var(--ink2);margin-top:8px}
.tn-readout{display:flex;justify-content:center;gap:20px;margin-top:8px;font-size:15px;color:var(--ink2);font-weight:600}
.tn-cents{min-width:92px;text-align:right}
.tn-freq{min-width:92px;text-align:left}
.tn-intune .tn-cents{color:#16a05a}
.tn-strings{display:flex;flex-wrap:wrap;gap:8px;justify-content:center;margin:16px 0 2px}
.tn-string{display:flex;flex-direction:column;align-items:center;justify-content:center;width:46px;height:46px;border-radius:50%;border:1.5px solid var(--line);background:#fff;font-weight:800;font-size:15px;color:var(--ink);line-height:1;transition:.12s}
.tn-string small{font-size:9.5px;font-weight:600;color:var(--ink2)}
.tn-string.is-active{border-color:var(--red);color:var(--red);transform:scale(1.08)}
.tn-string.is-intune{border-color:#16a05a;background:#16a05a;color:#fff}
.tn-string.is-intune small{color:rgba(255,255,255,.85)}
.tn-strhint{text-align:center;font-size:12.5px;color:var(--ink2);min-height:1em;margin:2px 0 0}
.tn-start{display:block;width:100%;margin-top:12px;padding:15px 26px;border:0;border-radius:40px;background:var(--red);color:#fff;font-family:inherit;font-weight:700;font-size:16px;cursor:pointer;box-shadow:0 12px 30px -8px rgba(160,24,41,.5);transition:.15s}
.tn-start:hover{background:var(--red2)}
.tn-start.is-on{background:var(--ink);box-shadow:none}
.tn-status{text-align:center;color:var(--ink2);font-size:14px;margin-top:12px;min-height:1em}
.tn-privacy{margin-top:12px;text-align:center;font-size:12.5px;color:var(--ink2)}
/* Progressions d'accords */
.prog{max-width:760px;margin:0 auto;background:var(--card);border:1px solid var(--line);border-radius:20px;padding:28px 24px;box-shadow:0 24px 60px -28px rgba(22,22,26,.28)}
.prog .fb-controls{margin-bottom:14px}
.prog .fb-controls input[type=number]{padding:10px 12px;border:1.5px solid var(--line);border-radius:10px;background:#fff;font-size:14px;color:var(--ink);font-weight:600;font-family:inherit;width:88px}
.prog-toggles{display:flex;flex-wrap:wrap;gap:14px;justify-content:center;margin-bottom:14px}
.prog-actions{display:flex;flex-wrap:wrap;gap:10px;justify-content:center;margin-bottom:18px}
.prog-gen{padding:13px 22px;border:0;border-radius:40px;background:var(--red);color:#fff;font-family:inherit;font-weight:700;font-size:15px;cursor:pointer;box-shadow:0 12px 30px -8px rgba(160,24,41,.5)}
.prog-gen:hover{background:var(--red2)}
.prog-play,.prog-midi{padding:13px 20px;border:1.5px solid var(--line);border-radius:40px;background:#fff;color:var(--ink);font-family:inherit;font-weight:700;font-size:15px;cursor:pointer;transition:.12s}
.prog-play:hover,.prog-midi:hover{border-color:var(--red);color:var(--red)}
.prog-play.is-on{background:var(--ink);color:#fff;border-color:var(--ink)}
.pg-chords{display:flex;flex-wrap:wrap;gap:10px;justify-content:center;min-height:84px;margin-bottom:8px}
.pg-chord{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-width:82px;padding:14px 12px;border:1.5px solid var(--line);border-radius:14px;background:#fff;cursor:pointer;font-family:inherit;transition:.12s}
.pg-chord:hover{border-color:var(--red)}
.pg-chord.is-sel{border-color:var(--red);box-shadow:0 0 0 3px rgba(160,24,41,.12)}
.pg-chord.is-play{background:var(--red);border-color:var(--red)}
.pg-chord.is-play .pg-roman,.pg-chord.is-play .pg-name{color:#fff}
.pg-roman{font-size:12px;font-weight:700;color:var(--ink2);letter-spacing:.02em}
.pg-name{font-size:22px;font-weight:800;color:var(--ink);line-height:1}
.pg-edit{display:flex;flex-wrap:wrap;align-items:flex-end;gap:10px;justify-content:center;padding-top:16px;margin-top:8px;border-top:1px solid var(--line)}
.pg-edit-lbl{font-size:13px;font-weight:700;color:var(--ink2);align-self:center}
.pg-edit label{display:flex;flex-direction:column;gap:4px;font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:.04em;color:var(--ink2)}
.pg-edit select{padding:9px 10px;border:1.5px solid var(--line);border-radius:10px;background:#fff;font-size:13.5px;color:var(--ink);font-weight:600;font-family:inherit;cursor:pointer}
.pg-mini{width:40px;height:40px;border:1.5px solid var(--line);border-radius:10px;background:#fff;color:var(--ink);font-size:16px;font-weight:700;cursor:pointer;transition:.12s}
.pg-mini:hover{border-color:var(--red);color:var(--red)}
.prog .fb-info{margin-top:14px;text-align:center}
/* Fiches a imprimer */
.sheets{max-width:760px;margin:0 auto;background:var(--card);border:1px solid var(--line);border-radius:20px;padding:28px 24px;box-shadow:0 24px 60px -28px rgba(22,22,26,.28)}
.sh-controls input[type=number],.sh-controls input[type=text]{padding:10px 12px;border:1.5px solid var(--line);border-radius:10px;background:#fff;font-size:14px;color:var(--ink);font-weight:600;font-family:inherit}
.sh-controls input[type=number]{width:86px}
.sh-controls input[type=text]{width:160px}
.sh-hint{text-align:center;font-size:13px;color:var(--ink2);margin:2px 0 12px;min-height:1em}
.sh-actions{display:flex;gap:10px;justify-content:center;margin-bottom:18px}
.sh-print{padding:13px 22px;border:0;border-radius:40px;background:var(--red);color:#fff;font-family:inherit;font-weight:700;font-size:15px;cursor:pointer;box-shadow:0 12px 30px -8px rgba(160,24,41,.5)}
.sh-print:hover{background:var(--red2)}
.sh-png{padding:13px 20px;border:1.5px solid var(--line);border-radius:40px;background:#fff;color:var(--ink);font-family:inherit;font-weight:700;font-size:15px;cursor:pointer;transition:.12s}
.sh-png:hover{border-color:var(--red);color:var(--red)}
.sh-out{display:flex;justify-content:center}
.sh-out svg{width:100%;max-width:470px;height:auto;border:1px solid var(--line);box-shadow:0 8px 24px -14px rgba(22,22,26,.4);background:#fff}
@media print{
  body{visibility:hidden}
  #sh-out,#sh-out *{visibility:visible}
  #sh-out{position:absolute;inset:0;margin:0;padding:0;display:block}
  #sh-out svg{width:100%;max-width:none;border:0;box-shadow:none}
}
/* MIDI splitter */
.ms-controls{display:flex;justify-content:center;margin:16px 0 8px}
.ms-controls label{display:flex;flex-direction:column;gap:6px;font-size:12px;font-weight:700;text-transform:uppercase;letter-spacing:.04em;color:var(--ink2)}
.ms-controls select{padding:10px 12px;border:1.5px solid var(--line);border-radius:10px;background:#fff;font-size:14px;color:var(--ink);font-weight:600;font-family:inherit;cursor:pointer;max-width:430px}
.ms-summary{margin:4px 0}
.ms-voices{display:flex;flex-direction:column;gap:8px;max-width:420px;margin:10px auto 0}
.ms-voice{display:flex;justify-content:space-between;align-items:center;padding:11px 16px;background:var(--bg2);border-radius:10px}
.ms-vname{font-weight:800;font-size:15px;color:var(--ink)}
.ms-vcount{font-size:13px;color:var(--ink2);font-weight:600}
.ms-actions{display:flex;gap:10px;justify-content:center;flex-wrap:wrap;margin-top:18px}
.ms-btn{padding:13px 20px;border:1.5px solid var(--line);border-radius:40px;background:#fff;color:var(--ink);font-family:inherit;font-weight:700;font-size:15px;cursor:pointer;transition:.12s}
.ms-btn:hover:not(:disabled){border-color:var(--red);color:var(--red)}
.ms-btn:disabled{opacity:.5;cursor:not-allowed}
.ms-actions .vrm-go{width:auto;margin-top:0;display:inline-block}
.tn-string{cursor:pointer}

.pg-var{display:inline-flex;align-items:center;gap:8px}
.pg-var-lbl{font-size:13px;font-weight:700;color:var(--ink2);min-width:42px;text-align:center}
.pg-chord.is-play{animation:pgpulse .22s ease}
@keyframes pgpulse{from{transform:scale(.93)}to{transform:scale(1)}}

.prog-play{padding:13px 28px;border:0;background:var(--red);color:#fff;box-shadow:0 12px 30px -8px rgba(160,24,41,.5)}
.prog-play:hover{background:var(--red2);border-color:transparent;color:#fff}
.prog-gen-full{display:block;width:100%;margin-top:20px;padding:17px;border:0;border-radius:14px;background:var(--red);color:#fff;font-family:inherit;font-weight:800;font-size:17px;cursor:pointer;box-shadow:0 14px 34px -10px rgba(160,24,41,.55);transition:.12s}
.prog-gen-full:hover{background:var(--red2)}
.prog-rdrum{padding:13px 20px;border:1.5px solid var(--line);border-radius:40px;background:#fff;color:var(--ink);font-family:inherit;font-weight:700;font-size:15px;cursor:pointer;transition:.12s}
.prog-rdrum:hover{border-color:var(--red);color:var(--red)}
.prog-bottom{display:flex;gap:12px;margin-top:20px}
.prog-gen-btn{flex:2;padding:17px;border:0;border-radius:14px;background:var(--red);color:#fff;font-family:inherit;font-weight:800;font-size:17px;cursor:pointer;box-shadow:0 14px 34px -10px rgba(160,24,41,.55);transition:.12s}
.prog-gen-btn:hover{background:var(--red2)}
.prog-midi-btn{flex:1;padding:17px;border:1.5px solid var(--line);border-radius:14px;background:#fff;color:var(--ink);font-family:inherit;font-weight:700;font-size:16px;cursor:pointer;transition:.12s}
.prog-midi-btn:hover{border-color:var(--red);color:var(--red)}
@media(max-width:560px){.prog-bottom{flex-direction:column}}
/* Mastering en ligne */
.mst-controls{display:flex;flex-wrap:wrap;gap:16px 22px;justify-content:center;align-items:center;margin:18px 0}
.mst-controls label{display:flex;flex-direction:column;gap:6px;font-size:12px;font-weight:700;text-transform:uppercase;letter-spacing:.04em;color:var(--ink2)}
.mst-controls select{padding:10px 12px;border:1.5px solid var(--line);border-radius:10px;background:#fff;font-size:14px;color:var(--ink);font-weight:600;font-family:inherit;cursor:pointer}
.mst-range{min-width:180px}
.mst-range input[type=range]{accent-color:var(--red)}
.mst-int-val{font-size:12px;color:var(--ink2);text-align:center}
.mst-tpwrap{flex-direction:row!important;align-items:center;gap:8px;text-transform:none!important;letter-spacing:0!important;font-size:14px!important;color:var(--ink)!important;font-weight:600}
.mst-result{margin-top:18px}
.mst-report{max-width:460px;margin:0 auto 16px}
.mst-row{display:grid;grid-template-columns:1.5fr 1fr 1fr;gap:8px;padding:9px 14px;border-bottom:1px solid var(--line);font-size:14px}
.mst-row.mst-head{font-weight:800;color:var(--ink2);font-size:12px;text-transform:uppercase;letter-spacing:.04em;border-bottom:2px solid var(--line)}
.mst-rlbl{font-weight:600;color:var(--ink)}
.mst-rb{text-align:right;color:var(--ink2);font-variant-numeric:tabular-nums}
.mst-ra{text-align:right;font-weight:800;color:var(--red);font-variant-numeric:tabular-nums}
.mst-audition{display:flex;gap:10px;justify-content:center;margin-bottom:14px}
.mst-downloads{display:flex;gap:10px;justify-content:center;flex-wrap:wrap}
.mst-downloads a{text-decoration:none;display:inline-block}
.mst-dl16{padding:13px 20px;border:1.5px solid var(--line);border-radius:40px;background:#fff;color:var(--ink);font-weight:700;font-size:15px;transition:.12s}
.mst-dl16:hover{border-color:var(--red);color:var(--red)}
/* Mastering : boutons ecoute + telechargement */
.mst-audition{display:flex;gap:10px;justify-content:center;margin:6px 0 16px}
.mst-ab,.mst-dl,.mst-dl2{display:inline-flex;align-items:center;gap:8px;font-family:inherit;cursor:pointer;text-decoration:none;transition:.14s}
.mst-ab{padding:11px 22px;border:1.5px solid var(--line);border-radius:40px;background:#fff;color:var(--ink);font-weight:700;font-size:15px}
.mst-ab:hover{border-color:var(--red);color:var(--red)}
.mst-ab.is-on{background:var(--red);border-color:var(--red);color:#fff}
.mst-downloads{display:flex;gap:12px;justify-content:center;flex-wrap:wrap;margin-top:2px}
.mst-dl{padding:15px 30px;border:0;border-radius:40px;background:var(--red);color:#fff;font-weight:800;font-size:16px;box-shadow:0 12px 30px -8px rgba(160,24,41,.5)}
.mst-dl:hover{background:var(--red2)}
.mst-dl2{padding:15px 26px;border:1.5px solid var(--line);border-radius:40px;background:#fff;color:var(--ink);font-weight:700;font-size:15px}
.mst-dl2:hover{border-color:var(--red);color:var(--red)}
/* Mastering : lecteur A/B */
.mst-player{max-width:460px;margin:6px auto 18px}
.mst-ab-toggle{display:flex;justify-content:center;margin-bottom:14px}
.mst-seg{padding:9px 28px;border:1.5px solid var(--line);background:#fff;color:var(--ink2);font-family:inherit;font-weight:700;font-size:14px;cursor:pointer;transition:.12s}
.mst-seg:first-child{border-radius:40px 0 0 40px;border-right-width:.75px}
.mst-seg:last-child{border-radius:0 40px 40px 0;border-left-width:.75px}
.mst-seg.is-active{background:var(--red);border-color:var(--red);color:#fff}
.mst-transport{display:flex;align-items:center;gap:12px}
.mst-pp{flex:0 0 auto;width:46px;height:46px;border-radius:50%;border:0;background:var(--red);color:#fff;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;box-shadow:0 8px 20px -6px rgba(160,24,41,.5);transition:.12s}
.mst-pp:hover{background:var(--red2)}
.mst-seek{flex:1 1 auto;accent-color:var(--red);cursor:pointer;height:6px}
.mst-time{flex:0 0 auto;font-size:12px;color:var(--ink2);font-variant-numeric:tabular-nums;min-width:78px;text-align:right}
/* Outils : filtre par categorie (sidebar gauche) */
.tools-layout{display:flex;gap:30px;align-items:flex-start}
.tools-filter{flex:0 0 218px;position:sticky;top:90px;display:flex;flex-direction:column;gap:5px}
.tools-filter-h{font-size:12px;font-weight:800;text-transform:uppercase;letter-spacing:.06em;color:var(--ink2);padding:4px 14px 8px}
.tf-btn{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;text-align:left;padding:11px 14px;border:0;border-radius:10px;background:transparent;color:var(--ink);font-family:inherit;font-weight:700;font-size:14.5px;cursor:pointer;transition:.12s}
.tf-btn:hover{background:rgba(160,24,41,.06)}
.tf-btn.is-active{background:var(--red);color:#fff}
.tf-n{font-size:12px;font-weight:700;color:var(--ink2);background:rgba(22,22,26,.07);border-radius:20px;padding:1px 9px;min-width:24px;text-align:center}
.tf-btn.is-active .tf-n{background:rgba(255,255,255,.25);color:#fff}
.tools-layout .tools-grid{flex:1 1 auto;min-width:0}
@media(max-width:820px){
  .tools-layout{flex-direction:column}
  .tools-filter{flex:none;width:100%;position:static;flex-direction:row;flex-wrap:nowrap;overflow-x:auto;gap:8px;padding-bottom:6px;margin-bottom:4px}
  .tools-filter-h{display:none}
  .tf-btn{width:auto;flex:0 0 auto;border:1.5px solid var(--line);border-radius:40px;padding:9px 16px}
  .tf-n{display:none}
}
/* Accords a imprimer */
.chordprint{max-width:900px;margin:0 auto}
.cp-controls input[type=text]{padding:10px 12px;border:1.5px solid var(--line);border-radius:10px;background:#fff;font-size:14px;color:var(--ink);font-weight:600;font-family:inherit;width:170px}
.cp-types-wrap{margin:16px 0}
.cp-types-h{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:8px;font-size:12px;font-weight:800;text-transform:uppercase;letter-spacing:.04em;color:var(--ink2);margin-bottom:8px}
.cp-mini{border:1.5px solid var(--line);background:#fff;border-radius:30px;padding:5px 12px;font-family:inherit;font-weight:700;font-size:12px;color:var(--ink2);cursor:pointer;margin-left:6px}
.cp-mini:hover{border-color:var(--red);color:var(--red)}
.cp-types{display:flex;flex-wrap:wrap;gap:8px 16px}
.cp-tcheck{display:inline-flex;align-items:center;gap:6px;font-size:14px;font-weight:600;color:var(--ink);cursor:pointer}
.cp-tcheck input{accent-color:var(--red)}
.cp-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin:16px 0 8px}
.cp-print{padding:13px 22px;border:0;border-radius:40px;background:var(--red);color:#fff;font-family:inherit;font-weight:700;font-size:15px;cursor:pointer;box-shadow:0 12px 30px -8px rgba(160,24,41,.5)}
.cp-print:hover{background:var(--red2)}
.cp-png{padding:13px 20px;border:1.5px solid var(--line);border-radius:40px;background:#fff;color:var(--ink);font-family:inherit;font-weight:700;font-size:15px;cursor:pointer}
.cp-png:hover{border-color:var(--red);color:var(--red)}
.cp-count{font-size:13px;color:var(--ink2);font-weight:600}
.cp-out{margin-top:14px}
.cp-title{text-align:center;font-family:Georgia,serif;font-size:24px;margin:0 0 4px}
.cp-sub{text-align:center;color:var(--ink2);font-size:14px;margin:0 0 18px}
.cp-section{margin-bottom:22px;break-inside:avoid}
.cp-sec-h{font-size:15px;color:var(--red);font-weight:800;border-bottom:1px solid var(--line);padding-bottom:5px;margin:0 0 12px}
.cp-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(96px,1fr));gap:12px}
.cp-cell{display:flex;flex-direction:column;align-items:center;gap:4px;break-inside:avoid}
.cp-svg{width:100%;max-width:104px;height:auto}
.cp-lbl{font-size:14px;font-weight:800;color:var(--ink)}
.cp-na{justify-content:center;min-height:90px;border:1px dashed var(--line);border-radius:8px}
.cp-nax{font-size:11px;color:#aaa}
.cp-empty{text-align:center;color:var(--ink2);padding:24px}
@media print{
  body *{visibility:hidden}
  #cp-out,#cp-out *{visibility:visible}
  #cp-out{position:absolute;left:0;top:0;width:100%}
  .cp-grid{grid-template-columns:repeat(6,1fr)}
}
/* Filtre categories : drag horizontal, sans barre de defilement (mobile) */
.tools-filter::-webkit-scrollbar{display:none}
@media(max-width:820px){
  .tools-filter{scrollbar-width:none;-ms-overflow-style:none;touch-action:pan-y;cursor:grab;-webkit-overflow-scrolling:touch}
  .tools-filter.is-drag{cursor:grabbing}
  .tools-filter .tf-btn{user-select:none;-webkit-user-select:none}
}