/*
 * Overrides chargés APRÈS tailwind.css (layouts/application.html.erb).
 * Hors pipeline Tailwind — pas de corruption #0B0D10 → #ffffff90.
 */

/* Texte sur boutons fond saturé (primary, secondary, success…) */
.ido-btn-filled-text {
  color: #ffffff;
}

html.dark .ido-btn-filled-text,
html.dark .ido-btn-filled-text span,
html.dark .ido-btn-filled-text svg {
  color: #0b0d10 !important;
}

/* Hover inversé (tertiary, warning, danger, ghost_primary) */
.ido-btn-filled-text-hover:hover {
  color: #ffffff;
}

html.dark .ido-btn-filled-text-hover:hover,
html.dark .ido-btn-filled-text-hover:hover span,
html.dark .ido-btn-filled-text-hover:hover svg {
  color: #0b0d10 !important;
}

/* Autres usages text-inverse (footer, tooltips…) */
html.dark {
  --color-inverse: #0b0d10;
}

html.dark .text-inverse,
html.dark .btn-primary,
html.dark .btn-danger:hover,
html.dark .hover\:text-inverse:hover {
  color: #0b0d10 !important;
}
