/* MQI France — Clavier a l'ecran */
.clavier-ecran { background: #DDE3EC; border-top: 1px solid #BFC8D6; bottom: 0; box-shadow: 0 -6px 24px rgba(21, 43, 87, .18); display: none; left: 0; padding: 6px 10px 10px; position: fixed; right: 0; touch-action: manipulation; user-select: none; -webkit-user-select: none; z-index: 1000; }
.clavier-ecran.visible { display: block; }
.clavier-haut { align-items: center; display: flex; justify-content: space-between; margin: 0 auto 4px; max-width: 980px; }
.clavier-nom { color: #3E4C63; font: 600 14px Inter, Arial, sans-serif; }
.clavier-fermer { background: transparent; border: 0; color: #1F3D7A; cursor: pointer; font: 600 16px Inter, Arial, sans-serif; padding: 4px 12px; }
.clavier-rang { display: flex; gap: 6px; justify-content: center; margin: 0 auto 6px; max-width: 980px; }
.clavier-ecran .touche { align-items: center; background: #fff; border: 0; border-radius: 10px; box-shadow: 0 1px 0 #A8B3C4; color: #1B2433; cursor: pointer; display: flex; flex: 1 1 0; font: 500 clamp(17px, 2.6vh, 24px) Inter, Arial, sans-serif; height: clamp(38px, 5.6vh, 58px); justify-content: center; max-width: 92px; min-width: 0; padding: 0; }
.clavier-ecran .touche:active { background: #C9D3E3; transform: translateY(1px); }
.clavier-ecran .touche.fonction { background: #C3CCDA; font-size: clamp(14px, 2vh, 17px); font-weight: 600; }
.clavier-ecran .touche.fonction.actif { background: #1F3D7A; color: #fff; }
.clavier-ecran .touche.espace { flex: 4 1 0; font-size: 16px; max-width: 420px; }
.clavier-ecran .touche.suivant { background: #1F3D7A; color: #fff; flex: 2 1 0; font-size: clamp(14px, 2vh, 17px); font-weight: 600; max-width: 200px; }
.clavier-ecran .touche.vide { background: transparent; box-shadow: none; }
.clavier-ecran .touche .ms { font-size: clamp(20px, 3vh, 26px); }
.clavier-ecran.pave .clavier-rang { max-width: 420px; }
.clavier-ecran.pave .touche { max-width: none; }
.clavier-ecran.pave .touche.suivant { max-width: none; }
@media (max-width: 700px) {
  .clavier-ecran .touche { font-size: 19px; height: 44px; }
  .clavier-rang { gap: 4px; }
}
@media print { .clavier-ecran { display: none !important; } }
/* La barre Retour / Suivant de la borne reste accessible au-dessus du
   clavier, en version compacte pour laisser voir le champ en cours. */
.clavier-ouvert .actions { bottom: var(--clavier-hauteur, 0) !important; padding-bottom: 8px !important; padding-top: 8px !important; }
.clavier-ouvert .actions .btn { min-height: 52px; font-size: 18px; }
