
/* ARES SIGNATURE — Préférences */

#espace .ares-ios-home[hidden],
#espace .ares-ios-detailbar[hidden],
#espace .espace-panneau[hidden] {
  display: none !important;
}

/* Retirer le rectangle de focus natif ou hérité. */
#dlg-preferences .choix label,
#dlg-preferences .choix label:focus,
#dlg-preferences .choix label:focus-visible,
#dlg-preferences .choix label:focus-within,
#dlg-preferences .choix input[type="radio"],
#dlg-preferences .choix input[type="radio"]:focus,
#dlg-preferences .choix input[type="radio"]:focus-visible,
#dlg-preferences .choix input[type="radio"] + span {
  outline: none !important;
  outline-offset: 0 !important;
}

/* Une option non sélectionnée n'a aucun halo. */
#dlg-preferences .choix input[type="radio"]:not(:checked) + span {
  border-color: var(--ligne) !important;
  box-shadow: none !important;
}

/* Une seule bordure arrondie pour l'option cochée. */
#dlg-preferences .choix input[type="radio"]:checked + span {
  border-color: #438cff !important;
  box-shadow: 0 0 0 2px rgba(67,140,255,.28) !important;
}

/* Focus accessible pour navigation clavier. */
@media (hover: hover) and (pointer: fine) {
  #dlg-preferences .choix input[type="radio"]:focus-visible + span {
    box-shadow:
      0 0 0 2px rgba(67,140,255,.28),
      0 0 0 5px rgba(163,188,255,.35) !important;
  }
}


/* ARES USAGE FOCUS FIX */

/* Aucun double contour sur le bouton Fermer */
@media (hover: none) and (pointer: coarse) {
  #ares-usage-dialog .ares-usage-close,
  #ares-usage-dialog .ares-usage-close:focus,
  #ares-usage-dialog .ares-usage-close:focus-visible {
    outline: none !important;
    outline-offset: 0 !important;
    box-shadow: none !important;
  }
}

/* Conserver une seule bordure propre */
#ares-usage-dialog .ares-usage-close {
  border: 1px solid #438cff !important;
}

/* Focus clavier visible sur ordinateur */
@media (hover: hover) and (pointer: fine) {
  #ares-usage-dialog .ares-usage-close:focus-visible {
    outline: 2px solid #a3bcff !important;
    outline-offset: 3px !important;
  }
}
