/* InterfaZ V1 — thème sombre. Fichier généré par assemblage de css/theme/*.css : ne pas modifier directement. */
@media screen {

/* ===== 50-bascule.css ===== */
/* =====================================================================
 * 50-bascule.css — Bouton de bascule clair / sombre (agent 4, 21/10/2026).
 * Seul le nouveau bouton .azth-btn (et le bloc « Apparence » de Mes préférences)
 * est stylé en clair : aucun élément existant n'est modifié.
 * ===================================================================== */

/* Icônes : lune en clair (action « passer en sombre »), soleil en sombre. */
.azth-btn .azth-ic { flex: 0 0 auto; display: block; }
.azth-btn .azth-ic--soleil { display: none; }
:root[data-bs-theme="dark"] .azth-btn .azth-ic--lune { display: none; }
:root[data-bs-theme="dark"] .azth-btn .azth-ic--soleil { display: block; color: var(--az-gold, #F5B82E); }

/* Bouton employé hors de l'en-tête (pages autonomes) : rendu minimal propre. */
.azth-btn:not(.azh-btn) {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; padding: 0; border-radius: 12px; cursor: pointer;
  border: 1px solid var(--az-border, #E3E8EF); background: var(--az-surface, #fff); color: var(--az-ink, #0E1B33);
}
.azth-btn { cursor: pointer; }
.azth-btn:focus-visible { outline: 3px solid var(--az-focus, #F5B82E); outline-offset: 2px; }

/* Petit mouvement de l'icône au changement (désactivé si l'utilisateur réduit les animations). */
@media (prefers-reduced-motion: no-preference) {
  :root.azth-anim .azth-btn .azth-ic { animation: azthTourne .3s ease-out; }
  /* Transition discrète des couleurs, uniquement pendant une bascule (classe posée ≈ 260 ms par js/theme.js). */
  :root.azth-anim, :root.azth-anim *, :root.azth-anim *::before, :root.azth-anim *::after {
    transition: background-color .2s ease, color .2s ease, border-color .2s ease, fill .2s ease, stroke .2s ease, box-shadow .2s ease !important;
  }
}
@keyframes azthTourne { from { transform: rotate(-60deg) scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }

/* Bloc « Apparence » (index.php?page=parametres) — nouvel élément. */
.azth-choix { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; max-width: 640px; }
@media (max-width: 575.98px) { .azth-choix { grid-template-columns: 1fr; } }
.azth-choix .form-selectgroup-item { margin: 0; }
.azth-choix .form-selectgroup-label { display: flex; align-items: center; gap: .6rem; justify-content: flex-start; padding: .75rem .9rem; text-align: left; min-height: 48px; }
.azth-choix .form-selectgroup-label svg { flex: 0 0 auto; }
}
