/* Feutre ou chiffon en main, devant un miroir à dessin (src/miroirUI.js) : le miroir du séjour de la galerie, ceux des expositions */
#miroir-barre {
  position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 9; max-width: calc(100vw - 24px);
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: center;
  background: var(--panel); border: 1px solid var(--line); border-radius: 999px; padding: 6px 8px 6px 16px; font-size: 0.85rem; color: var(--ink-soft);
}
#miroir-barre[hidden], body.focus #miroir-barre, body:has(#pause.visible) #miroir-barre { display: none; }
#miroir-barre .mb-feutres { display: flex; gap: 6px; }
#miroir-barre button { font: inherit; cursor: pointer; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--ink); height: 34px; }
#miroir-barre [data-feutre] { width: 26px; height: 26px; padding: 0; background: var(--c); border-color: rgba(255,255,255,0.3); }
#miroir-barre [data-feutre][aria-pressed="true"] { outline: 2px solid #fff; outline-offset: 2px; }
#miroir-barre .mb-chiffon { width: 34px; padding: 0; font-size: 1.05rem; }
#miroir-barre .mb-chiffon[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); }
#miroir-barre .mb-reposer { padding: 0 14px; }
body.touch #miroir-barre { bottom: auto; top: 84px; }
@media (max-width: 600px) { #miroir-barre .mb-nom { display: none; } }
/* gros plan sur la surface où l'on écrit (tableau, feuille d'un pupitre : src/miroirUI.js) */
#miroir-barre .mb-zoom { padding: 0 14px; }
#miroir-barre .mb-zoom[hidden] { display: none; }
body.surface-gros-plan #joystick, body.surface-gros-plan #joystick-regard, body.surface-gros-plan #chat, body.surface-gros-plan #puzzle-focus, body.surface-gros-plan #table-focus { display: none !important; }
body.surface-gros-plan #miroir-barre { top: auto; bottom: 14px; }
/* « Mes couleurs » et ＋ (créer sa couleur, sélecteur du système) */
#miroir-barre .mb-mes { display: flex; gap: 6px; }
#miroir-barre .mb-mes:empty { display: none; }
#miroir-barre .mb-mes::before { content: ""; width: 1px; align-self: stretch; background: var(--line); margin: 0 2px; }
#miroir-barre .mb-plus { width: 30px; height: 30px; padding: 0; font-size: 1.05rem; line-height: 1; }
#miroir-barre .mb-choix { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; border: 0; padding: 0; }
