/* QuadraForme — correctif dark mode global.
   Neutralise TOUS les fonds clairs (classes + styles inline) restés du thème clair,
   pour éviter texte clair sur fond clair = illisible. Chargé sur toutes les pages. */

/* surfaces claires codées en classe -> surface sombre + texte clair lisible */
.prot,.avert,.okmsg,.infocru,.consigne,.tag,.badge,.day-head,.rayon,.meal .ic{
  background:#1c1c1e !important;
  color:#f2f2f7 !important;
  border-color:#38383a !important;
}
.prot *,.avert *,.okmsg *,.infocru *,.consigne *{ color:#f2f2f7 !important; }

/* champs désactivés (fond gris clair) -> gris sombre */
input[disabled],input:disabled,select[disabled],select:disabled,
.fld.locked input,.fld.locked select,.fld.locked .toggle button{
  background:#2c2c2e !important;
  color:#aeb6b0 !important;
  -webkit-text-fill-color:#aeb6b0 !important;
}

/* styles INLINE clairs les plus fréquents (l'inline perd contre !important) */
[style*="#eafaf1"],[style*="#fff8e6"],[style*="#eef9f2"],[style*="#eef7f0"],
[style*="#fff4e6"],[style*="#fff9f0"],[style*="#fdf3e2"],[style*="#e9f1fb"],
[style*="#fafafc"],[style*="#f5f5f7"],[style*="#fff4e5"],[style*="#fff0f0"],
[style*="background:#fff"],[style*="background:#ffffff"],[style*="background: #fff"]{
  background:#1c1c1e !important;
  color:#f2f2f7 !important;
}

/* badges de statut : garder une teinte lisible plutôt que blanc */
.badge.actif{ background:#123a28 !important; color:#5fd39a !important; }
.badge.inactif{ background:#3a2f12 !important; color:#e8c15f !important; }

/* messages d'erreur : fond sombre rouge lisible */
.msg.err{ background:#3a1414 !important; color:#ff8b7a !important; }

/* barres d'accent claires sur cartes muscu/repas */
.exo.abdo{ background:#241f14 !important; }
.exo.abdo .num{ background:#3a2f12 !important; color:#e8c15f !important; }
