/* Bonsecours - personnalisation interface Basthon (hors bundle, ré-appliquer après MàJ tgz) */

/* Masquage boutons non utilisés en classe */
button:has(.fa-square-share-nodes),
button:has(.fa-download),
button:has(.fa-life-ring),
a:has(.fa-life-ring),
[title="Redémarrer le noyau"],
[title="Revenir à une version précédente du script"] { display: none !important; }

/* === Tablettes / mobile === */

/* 100dvh : l'éditeur ne passe plus sous le clavier virtuel iOS */
html, body, #root, .basthon-root, .App { height: 100dvh !important; }

@media (pointer: coarse) {
  /* Police Ace lisible + anti-zoom iOS (>=16px) */
  .ace_editor, .ace_editor * {
    font-size: 16px !important;
    line-height: 1.45 !important;
  }
  .ace_gutter, .ace_gutter * { font-size: 14px !important; }

  /* Touch targets >= 44px (Apple HIG) */
  .basthon-toolbar button,
  .basthon-toolbar a,
  header button,
  header a,
  nav button,
  .toolbar button,
  .toolbar a {
    min-width: 44px !important;
    min-height: 44px !important;
    padding: 8px 12px !important;
  }

  /* Onglets / icônes générique */
  button > i, a > i { font-size: 18px !important; }

  /* Espace pour la pyKeys-bar quand visible */
  body.pykeys-open .ace_editor { padding-bottom: 56px; }
}
