/* Barre « Maquette » : hors interface, discrète. */
#maquette-ouvrir {
  position: fixed; left: 8px; bottom: calc(70px + env(safe-area-inset-bottom, 0px)); z-index: 300;
  font: 600 11px/1 system-ui, sans-serif; color: #fff; background: rgba(30, 30, 36, .72); border: 0; border-radius: 999px;
  padding: 6px 9px; min-height: 26px; min-width: 26px; opacity: .55; cursor: pointer;
}
#maquette-ouvrir:hover, #maquette-ouvrir:focus-visible, #maquette-ouvrir[aria-expanded="true"] { opacity: 1; }
#maquette {
  position: fixed; left: 8px; bottom: calc(100px + env(safe-area-inset-bottom, 0px)); z-index: 301; width: min(340px, calc(100vw - 16px));
  max-height: calc(100dvh - 130px); overflow: auto; background: #1d1d23; color: #f2f2f5; border-radius: 14px; padding: 10px 12px 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, .45); font: 13px/1.3 system-ui, sans-serif;
}
#maquette[hidden] { display: none; }
#maquette .m-tete { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
#maquette h3 { margin: 10px 0 6px; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: #b9b9c4; }
#maquette button { font: inherit; color: inherit; background: #34343e; border: 1px solid #4a4a57; border-radius: 8px; padding: 6px 8px; cursor: pointer; min-height: 32px; }
#maquette button:hover { background: #41414d; }
#maquette button:focus-visible { outline: 2px solid #ffb27a; outline-offset: 1px; }
#maquette button[aria-pressed="true"] { background: #ffb27a; color: #1d1d23; border-color: #ffb27a; font-weight: 700; }
#maquette .m-grille { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; }
#maquette .m-grille button { display: flex; flex-direction: column; align-items: center; padding: 4px 2px; font-weight: 700; }
#maquette .m-grille small { font-size: 8.5px; font-weight: 500; opacity: .8; text-align: center; line-height: 1.1; }
#maquette .m-etats { display: flex; flex-direction: column; gap: 4px; }
#maquette .m-etats button { text-align: left; }
#maquette .m-theme { display: flex; gap: 6px; }
#maquette .m-theme button { flex: 1; }
#maquette .m-zero { width: 100%; margin-top: 12px; background: #5a2a2a; border-color: #7c3a3a; }
#maquette #maquette-fermer { min-width: 32px; padding: 2px 8px; }
@media (min-width: 760px) {
  #maquette-ouvrir { left: 108px; bottom: 10px; }
  #maquette { left: 108px; bottom: 44px; max-height: calc(100dvh - 70px); }
}
