/* Éditeur PDF du musicien : ce qui s'ajoute à ../editeur-pdf/editeur.css */

/* accueil : papiers à musique, familles de symboles */
.mu-papiers .btn { min-height: 40px; padding: 0 15px; }
.mu-familles { max-width: 1100px; margin: 34px auto 0; }
.mu-familles h2 { margin: 0 0 14px; font-size: 1.25rem; }
.mu-familles ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 10px 16px; }
.mu-familles li { padding: 12px 14px; border: 1px solid var(--ligne); border-radius: 14px; background: var(--surface); }
.mu-familles strong { display: block; margin-bottom: 2px; }
.mu-familles span { color: var(--doux); font-size: .92rem; line-height: 1.45; }

.mu-credit { max-width: 1100px; margin: 10px auto 0; text-align: center; color: var(--doux); font-size: .82rem; }

/* panneau des symboles : une famille à la fois */
.ed-bloc.onglets .ed-bibs button[aria-pressed="true"] { background: var(--orange); border-color: var(--orange); color: #fff; }
.ed-bloc.onglets .ed-symboles-titre { display: block; }
.ed-bloc.onglets .ed-symboles-zone.seule .ed-symboles-titre:not(.ed-recents-titre) { display: none; }
.ed-recents { margin-bottom: 12px; padding-bottom: 12px; border-bottom: 1px dashed var(--ligne); }
.ed-recents button { background: var(--surface-2); }

/* barre : pupitre et métronome */
.ed .mu-pupitre-b { margin-left: 2px; }
.ed-b.actif#mu-b-metronome { color: var(--orange); }
.mu-pop {
  position: absolute; top: 58px; right: 10px; z-index: 30; width: min(300px, calc(100vw - 20px)); padding: 14px 16px 16px;
  background: var(--surface); border: 1px solid var(--ligne); border-radius: 16px; box-shadow: 0 18px 44px rgba(0, 0, 0, .22);
}
.mu-pop header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.mu-pop h2 { margin: 0; }
.mu-pop h2.mu-second { margin: 16px 0 8px; padding-top: 14px; border-top: 1px solid var(--ligne); }
.mu-tempo { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.mu-tempo p { margin: 0; text-align: center; line-height: 1.1; }
.mu-tempo output { display: block; font-size: 44px; font-weight: 800; font-variant-numeric: tabular-nums; }
.mu-tempo small { color: var(--doux); font-size: 12.5px; font-style: italic; }
.mu-tempo .ed-mini { width: 40px; height: 40px; border: 1px solid var(--ligne); border-radius: 50%; }
.mu-pop input[type="range"] { width: 100%; margin: 10px 0 6px; accent-color: var(--orange); }
.mu-temps { display: flex; justify-content: center; gap: 8px; min-height: 14px; margin: 6px 0 10px; }
.mu-temps i { width: 12px; height: 12px; border-radius: 50%; background: var(--ligne); }
.mu-temps i:first-child { outline: 2px solid var(--ligne); outline-offset: 2px; }
.mu-temps i.actif { background: var(--orange); }
.mu-libelle { margin: 0 0 6px; font-size: 12px; color: var(--doux); }
.mu-choix { display: flex; gap: 6px; flex-wrap: wrap; }
.mu-choix button {
  flex: 1; min-width: 38px; min-height: 34px; border: 1px solid var(--ligne); border-radius: 9px; background: var(--surface); color: var(--texte);
  font: inherit; font-weight: 600; font-variant-numeric: tabular-nums; cursor: pointer;
}
.mu-choix button[aria-pressed="true"] { border-color: var(--orange); background: color-mix(in srgb, var(--orange) 16%, var(--surface)); }
.mu-actions { display: flex; gap: 8px; margin-top: 12px; }
.mu-actions .btn { flex: 1; min-height: 42px; padding: 0 12px; font-size: 14px; gap: 8px; }
.mu-actions .btn.actif { border-color: var(--orange); color: var(--orange); }

/* mode pupitre */
html.mu-pupitre-ouvert .toast { z-index: 7400; }
.mu-pupitre { position: fixed; inset: 0; z-index: 7200; background: #17181c; display: flex; flex-direction: column; -webkit-user-select: none; user-select: none; }
.mu-pupitre[hidden] { display: none; }
.mu-pu-barre {
  position: absolute; top: 0; left: 0; right: 0; z-index: 2; display: flex; align-items: center; gap: 4px; padding: 8px 10px;
  background: linear-gradient(rgba(0, 0, 0, .72), rgba(0, 0, 0, 0)); color: #fff; transition: opacity .35s;
}
.mu-pu-barre.calme { opacity: 0; pointer-events: none; }
.mu-pu-barre button {
  width: 44px; height: 44px; border: 0; border-radius: 12px; background: rgba(255, 255, 255, .14); color: #fff; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
.mu-pu-barre button:hover { background: rgba(255, 255, 255, .26); }
.mu-pu-barre button[aria-pressed="true"] { background: var(--orange); }
.mu-pu-barre output { margin-left: 8px; font-weight: 700; font-variant-numeric: tabular-nums; text-shadow: 0 1px 3px #000; }
.mu-pu-scene { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; gap: 2px; cursor: pointer; }
.mu-pu-scene canvas { display: block; background: #fff; }
.mu-pupitre.nuit .mu-pu-scene canvas { filter: invert(1) hue-rotate(180deg); }
.mu-pu-attente { color: #fff; font-size: 1rem; }
.mu-pu-aide {
  position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); margin: 0; padding: 9px 16px; border-radius: 999px; max-width: calc(100vw - 32px);
  background: rgba(0, 0, 0, .72); color: #fff; font-size: 14px; text-align: center; pointer-events: none;
}
.mu-pu-aide[hidden] { display: none; }

@media (max-width: 860px) {
  .ed .mu-pupitre-b span { display: none; }
  .ed .mu-pupitre-b { padding: 0 10px; }
}
/* téléphone : la barre garde l'essentiel (signer reste dans la barre d'outils, en bas) */
@media (max-width: 600px) {
  .mu-ed #ed-signer, .mu-ed #ed-b-ocr, .mu-ed #ed-retablir { display: none; }
  .mu-ed .ed-nom { min-width: 24px; }
  .mu-pop { top: 52px; right: 6px; }
}
@media print { .mu-pupitre, .mu-pop { display: none !important; } }
