/* Corrections globales pour tous les thèmes
   Garantir la visibilité de TOUS les contenus */

/* ========================================
   CORRECTIONS GLOBALES - TEXTES
   ======================================== */

/* Forcer TOUS les textes à être visibles */
[data-theme="dark"] *:not(.btn):not(.badge):not(.navbar):not(.navbar *):not(.sidebar):not(.sidebar *):not(.footer):not(.footer *),
.dark-mode *:not(.btn):not(.badge):not(.navbar):not(.navbar *):not(.sidebar):not(.sidebar *):not(.footer):not(.footer *) {
    color: inherit;
}

/* Tous les titres - Mode sombre */
[data-theme="dark"] h1, [data-theme="dark"] h2, [data-theme="dark"] h3, 
[data-theme="dark"] h4, [data-theme="dark"] h5, [data-theme="dark"] h6,
[data-theme="dark"] .h1, [data-theme="dark"] .h2, [data-theme="dark"] .h3,
[data-theme="dark"] .h4, [data-theme="dark"] .h5, [data-theme="dark"] .h6,
.dark-mode h1, .dark-mode h2, .dark-mode h3,
.dark-mode h4, .dark-mode h5, .dark-mode h6,
.dark-mode .h1, .dark-mode .h2, .dark-mode .h3,
.dark-mode .h4, .dark-mode .h5, .dark-mode .h6 {
    color: var(--text-primary) !important;
}

/* Tous les paragraphes - Mode sombre */
[data-theme="dark"] p,
.dark-mode p {
    color: var(--text-primary) !important;
}

/* Tous les liens - Mode sombre */
[data-theme="dark"] a:not(.btn):not(.nav-link):not(.dropdown-item):not(.navbar-brand),
.dark-mode a:not(.btn):not(.nav-link):not(.dropdown-item):not(.navbar-brand) {
    color: var(--primary-light) !important;
}

/* Tous les titres - Mode clair */
[data-theme="light"] h1, [data-theme="light"] h2, [data-theme="light"] h3,
[data-theme="light"] h4, [data-theme="light"] h5, [data-theme="light"] h6,
[data-theme="light"] .h1, [data-theme="light"] .h2, [data-theme="light"] .h3,
[data-theme="light"] .h4, [data-theme="light"] .h5, [data-theme="light"] .h6,
.light-mode h1, .light-mode h2, .light-mode h3,
.light-mode h4, .light-mode h5, .light-mode h6,
.light-mode .h1, .light-mode .h2, .light-mode .h3,
.light-mode .h4, .light-mode .h5, .light-mode .h6 {
    color: #1f2937 !important;
}

/* Tous les paragraphes - Mode clair */
[data-theme="light"] p,
.light-mode p {
    color: #1f2937 !important;
}

/* Tous les liens - Mode clair */
[data-theme="light"] a:not(.btn):not(.nav-link):not(.dropdown-item):not(.navbar-brand),
.light-mode a:not(.btn):not(.nav-link):not(.dropdown-item):not(.navbar-brand) {
    color: #1e3a8a !important;
}

/* ========================================
   CORRECTIONS GLOBALES - LISTES
   ======================================== */

/* Listes - Mode sombre */
[data-theme="dark"] ul, [data-theme="dark"] ol, [data-theme="dark"] li,
.dark-mode ul, .dark-mode ol, .dark-mode li {
    color: var(--text-primary) !important;
}

/* Listes - Mode clair */
[data-theme="light"] ul, [data-theme="light"] ol, [data-theme="light"] li,
.light-mode ul, .light-mode ol, .light-mode li {
    color: #1f2937 !important;
}

/* ========================================
   CORRECTIONS GLOBALES - SECTIONS
   ======================================== */

/* Toutes les sections - Mode sombre */
[data-theme="dark"] section,
.dark-mode section {
    color: var(--text-primary) !important;
}

[data-theme="dark"] section *:not(.btn):not(.badge):not(.navbar *):not(.footer *),
.dark-mode section *:not(.btn):not(.badge):not(.navbar *):not(.footer *) {
    color: inherit;
}

/* Toutes les sections - Mode clair */
[data-theme="light"] section,
.light-mode section {
    color: #1f2937 !important;
}

[data-theme="light"] section *:not(.btn):not(.badge):not(.navbar *):not(.footer *),
.light-mode section *:not(.btn):not(.badge):not(.navbar *):not(.footer *) {
    color: inherit;
}

/* ========================================
   CORRECTIONS GLOBALES - CONTENEURS
   ======================================== */

/* Container - Mode sombre */
[data-theme="dark"] .container,
[data-theme="dark"] .container-fluid,
.dark-mode .container,
.dark-mode .container-fluid {
    color: var(--text-primary) !important;
}

/* Container - Mode clair */
[data-theme="light"] .container,
[data-theme="light"] .container-fluid,
.light-mode .container,
.light-mode .container-fluid {
    color: #1f2937 !important;
}

/* ========================================
   CORRECTIONS GLOBALES - DIVS
   ======================================== */

/* Divs - Mode sombre */
[data-theme="dark"] div:not(.btn):not(.badge):not(.navbar):not(.sidebar):not(.footer),
.dark-mode div:not(.btn):not(.badge):not(.navbar):not(.sidebar):not(.footer) {
    color: inherit;
}

/* Divs - Mode clair */
[data-theme="light"] div:not(.btn):not(.badge):not(.navbar):not(.sidebar):not(.footer),
.light-mode div:not(.btn):not(.badge):not(.navbar):not(.sidebar):not(.footer) {
    color: inherit;
}

/* ========================================
   CORRECTIONS GLOBALES - SPANS
   ======================================== */

/* Spans - Mode sombre */
[data-theme="dark"] span:not(.badge):not(.btn):not(.navbar *):not(.sidebar *):not(.footer *),
.dark-mode span:not(.badge):not(.btn):not(.navbar *):not(.sidebar *):not(.footer *) {
    color: inherit;
}

/* Spans - Mode clair */
[data-theme="light"] span:not(.badge):not(.btn):not(.navbar *):not(.sidebar *):not(.footer *),
.light-mode span:not(.badge):not(.btn):not(.navbar *):not(.sidebar *):not(.footer *) {
    color: inherit;
}

/* ========================================
   CORRECTIONS BOOTSTRAP UTILITIES
   ======================================== */

/* Text utilities - Mode sombre */
[data-theme="dark"] .text-muted,
.dark-mode .text-muted {
    color: var(--text-secondary) !important;
}

[data-theme="dark"] .text-dark,
.dark-mode .text-dark {
    color: var(--text-primary) !important;
}

[data-theme="dark"] .text-body,
.dark-mode .text-body {
    color: var(--text-primary) !important;
}

[data-theme="dark"] .text-white,
.dark-mode .text-white {
    color: #ffffff !important;
}

[data-theme="dark"] .text-white-50,
.dark-mode .text-white-50 {
    color: rgba(255, 255, 255, 0.5) !important;
}

/* Text utilities - Mode clair */
[data-theme="light"] .text-muted,
.light-mode .text-muted {
    color: #6b7280 !important;
}

[data-theme="light"] .text-dark,
.light-mode .text-dark {
    color: #1f2937 !important;
}

[data-theme="light"] .text-body,
.light-mode .text-body {
    color: #1f2937 !important;
}

[data-theme="light"] .text-white,
.light-mode .text-white {
    color: #ffffff !important;
}

[data-theme="light"] .text-white-50,
.light-mode .text-white-50 {
    color: rgba(255, 255, 255, 0.5) !important;
}

/* ========================================
   CORRECTIONS BACKGROUND UTILITIES
   ======================================== */

/* BG utilities - Mode sombre */
[data-theme="dark"] .bg-white,
.dark-mode .bg-white {
    background-color: var(--bg-card) !important;
}

[data-theme="dark"] .bg-light,
.dark-mode .bg-light {
    background-color: var(--bg-secondary) !important;
}

[data-theme="dark"] .bg-transparent,
.dark-mode .bg-transparent {
    background-color: transparent !important;
}

/* BG utilities - Mode clair */
[data-theme="light"] .bg-white,
.light-mode .bg-white {
    background-color: #ffffff !important;
}

[data-theme="light"] .bg-light,
.light-mode .bg-light {
    background-color: #f8f9fa !important;
}

[data-theme="light"] .bg-transparent,
.light-mode .bg-transparent {
    background-color: transparent !important;
}

/* ========================================
   CORRECTIONS SPÉCIALES - ÉLÉMENTS CACHÉS
   ======================================== */

/* Empêcher que les éléments ne deviennent invisibles */
[data-theme="dark"] [style*="color: #000"],
[data-theme="dark"] [style*="color:#000"],
[data-theme="dark"] [style*="color: black"],
.dark-mode [style*="color: #000"],
.dark-mode [style*="color:#000"],
.dark-mode [style*="color: black"] {
    color: var(--text-primary) !important;
}

/* ========================================
   CORRECTIONS DISPLAY ET VISIBILITY
   ======================================== */

/* Garantir que rien n'est masqué par erreur */
[data-theme="dark"] *:not([style*="display: none"]):not(.d-none),
[data-theme="light"] *:not([style*="display: none"]):not(.d-none),
.dark-mode *:not([style*="display: none"]):not(.d-none),
.light-mode *:not([style*="display: none"]):not(.d-none) {
    visibility: visible !important;
}

/* ========================================
   CORRECTIONS POUR ÉLÉMENTS INLINE
   ======================================== */

/* Strong, em, b, i */
[data-theme="dark"] strong, [data-theme="dark"] b,
.dark-mode strong, .dark-mode b {
    color: var(--text-primary) !important;
}

[data-theme="dark"] em, [data-theme="dark"] i:not([class*="fa"]),
.dark-mode em, .dark-mode i:not([class*="fa"]) {
    color: inherit !important;
}

[data-theme="light"] strong, [data-theme="light"] b,
.light-mode strong, .light-mode b {
    color: #1f2937 !important;
}

[data-theme="light"] em, [data-theme="light"] i:not([class*="fa"]),
.light-mode em, .light-mode i:not([class*="fa"]) {
    color: inherit !important;
}

/* ========================================
   CORRECTIONS POUR ÉLÉMENTS DE FORMULAIRE
   ======================================== */

/* Legends et fieldsets - Mode sombre */
[data-theme="dark"] legend, [data-theme="dark"] fieldset,
.dark-mode legend, .dark-mode fieldset {
    color: var(--text-primary) !important;
}

/* Legends et fieldsets - Mode clair */
[data-theme="light"] legend, [data-theme="light"] fieldset,
.light-mode legend, .light-mode fieldset {
    color: #1f2937 !important;
}

/* ========================================
   CORRECTIONS POUR ÉLÉMENTS HTML5
   ======================================== */

/* Article, aside, etc. - Mode sombre */
[data-theme="dark"] article, [data-theme="dark"] aside,
[data-theme="dark"] main, [data-theme="dark"] header:not(.card-header):not(.modal-header),
.dark-mode article, .dark-mode aside,
.dark-mode main, .dark-mode header:not(.card-header):not(.modal-header) {
    color: var(--text-primary) !important;
}

/* Article, aside, etc. - Mode clair */
[data-theme="light"] article, [data-theme="light"] aside,
[data-theme="light"] main, [data-theme="light"] header:not(.card-header):not(.modal-header),
.light-mode article, .light-mode aside,
.light-mode main, .light-mode header:not(.card-header):not(.modal-header) {
    color: #1f2937 !important;
}

/* ========================================
   CORRECTIONS POUR ROWS ET COLS
   ======================================== */

/* Bootstrap grid - Mode sombre */
[data-theme="dark"] .row,
[data-theme="dark"] [class*="col-"],
.dark-mode .row,
.dark-mode [class*="col-"] {
    color: inherit;
}

/* Bootstrap grid - Mode clair */
[data-theme="light"] .row,
[data-theme="light"] [class*="col-"],
.light-mode .row,
.light-mode [class*="col-"] {
    color: inherit;
}

/* ========================================
   CORRECTIONS POUR DISPLAY HEADINGS
   ======================================== */

/* Display headings - Mode sombre */
[data-theme="dark"] .display-1, [data-theme="dark"] .display-2,
[data-theme="dark"] .display-3, [data-theme="dark"] .display-4,
[data-theme="dark"] .display-5, [data-theme="dark"] .display-6,
.dark-mode .display-1, .dark-mode .display-2,
.dark-mode .display-3, .dark-mode .display-4,
.dark-mode .display-5, .dark-mode .display-6 {
    color: var(--text-primary) !important;
}

/* Display headings - Mode clair */
[data-theme="light"] .display-1, [data-theme="light"] .display-2,
[data-theme="light"] .display-3, [data-theme="light"] .display-4,
[data-theme="light"] .display-5, [data-theme="light"] .display-6,
.light-mode .display-1, .light-mode .display-2,
.light-mode .display-3, .light-mode .display-4,
.light-mode .display-5, .light-mode .display-6 {
    color: #1f2937 !important;
}

/* ========================================
   CORRECTIONS POUR LEAD ET AUTRES
   ======================================== */

/* Lead - Mode sombre */
[data-theme="dark"] .lead,
.dark-mode .lead {
    color: var(--text-primary) !important;
}

/* Lead - Mode clair */
[data-theme="light"] .lead,
.light-mode .lead {
    color: #1f2937 !important;
}

/* Blockquote - Mode sombre */
[data-theme="dark"] blockquote,
.dark-mode blockquote {
    color: var(--text-secondary) !important;
    border-left-color: var(--primary-color) !important;
}

/* Blockquote - Mode clair */
[data-theme="light"] blockquote,
.light-mode blockquote {
    color: #6b7280 !important;
    border-left-color: #1e3a8a !important;
}

/* ========================================
   CORRECTIONS POUR CARDS (GLOBAL)
   ======================================== */

/* Cards - tous les éléments */
[data-theme="dark"] .card *:not(.btn):not(.badge),
.dark-mode .card *:not(.btn):not(.badge) {
    color: inherit;
}

[data-theme="light"] .card *:not(.btn):not(.badge),
.light-mode .card *:not(.btn):not(.badge) {
    color: inherit;
}

/* ========================================
   CORRECTIONS POUR ALERTS
   ======================================== */

/* Alerts - Mode sombre */
[data-theme="dark"] .alert,
.dark-mode .alert {
    color: var(--text-primary) !important;
}

[data-theme="dark"] .alert *,
.dark-mode .alert * {
    color: inherit !important;
}

/* Alerts - Mode clair */
[data-theme="light"] .alert,
.light-mode .alert {
    color: #1f2937 !important;
}

[data-theme="light"] .alert *,
.light-mode .alert * {
    color: inherit !important;
}

/* ========================================
   CORRECTIONS POUR TOUT LE CONTENU
   ======================================== */

/* Content principal - Mode sombre */
[data-theme="dark"] .content,
[data-theme="dark"] .content-wrapper,
[data-theme="dark"] main,
.dark-mode .content,
.dark-mode .content-wrapper,
.dark-mode main {
    background-color: var(--bg-primary) !important;
    color: var(--text-primary) !important;
}

/* Content principal - Mode clair */
[data-theme="light"] .content,
[data-theme="light"] .content-wrapper,
[data-theme="light"] main,
.light-mode .content,
.light-mode .content-wrapper,
.light-mode main {
    background-color: #ffffff !important;
    color: #1f2937 !important;
}

/* ========================================
   CORRECTIONS POUR DL, DT, DD
   ======================================== */

/* Definition lists - Mode sombre */
[data-theme="dark"] dl, [data-theme="dark"] dt, [data-theme="dark"] dd,
.dark-mode dl, .dark-mode dt, .dark-mode dd {
    color: var(--text-primary) !important;
}

/* Definition lists - Mode clair */
[data-theme="light"] dl, [data-theme="light"] dt, [data-theme="light"] dd,
.light-mode dl, .light-mode dt, .light-mode dd {
    color: #1f2937 !important;
}

/* ========================================
   CORRECTIONS POUR ADDRESS
   ======================================== */

/* Address - Mode sombre */
[data-theme="dark"] address,
.dark-mode address {
    color: var(--text-primary) !important;
}

/* Address - Mode clair */
[data-theme="light"] address,
.light-mode address {
    color: #1f2937 !important;
}

/* ========================================
   CORRECTIONS POUR CITE, Q, MARK
   ======================================== */

/* Citations - Mode sombre */
[data-theme="dark"] cite, [data-theme="dark"] q,
.dark-mode cite, .dark-mode q {
    color: var(--text-secondary) !important;
}

[data-theme="dark"] mark,
.dark-mode mark {
    background-color: var(--warning-color) !important;
    color: #1f2937 !important;
}

/* Citations - Mode clair */
[data-theme="light"] cite, [data-theme="light"] q,
.light-mode cite, .light-mode q {
    color: #6b7280 !important;
}

[data-theme="light"] mark,
.light-mode mark {
    background-color: #fef3c7 !important;
    color: #1f2937 !important;
}

/* ========================================
   CORRECTIONS POUR TOUTES LES PAGES
   ======================================== */

/* Garantir visibilité de toutes les pages - Mode sombre */
[data-theme="dark"] .page-header,
[data-theme="dark"] .page-content,
[data-theme="dark"] .page-footer,
.dark-mode .page-header,
.dark-mode .page-content,
.dark-mode .page-footer {
    color: var(--text-primary) !important;
}

[data-theme="dark"] .page-header *,
[data-theme="dark"] .page-content *,
.dark-mode .page-header *,
.dark-mode .page-content * {
    color: inherit;
}

/* Garantir visibilité de toutes les pages - Mode clair */
[data-theme="light"] .page-header,
[data-theme="light"] .page-content,
[data-theme="light"] .page-footer,
.light-mode .page-header,
.light-mode .page-content,
.light-mode .page-footer {
    color: #1f2937 !important;
}

[data-theme="light"] .page-header *,
[data-theme="light"] .page-content *,
.light-mode .page-header *,
.light-mode .page-content * {
    color: inherit;
}

/* ========================================
   ANTI-PATTERNS - FORCER LA VISIBILITÉ
   ======================================== */

/* Empêcher les textes noirs invisibles en mode sombre */
[data-theme="dark"] [style*="color: #000"],
[data-theme="dark"] [style*="color:#000000"],
[data-theme="dark"] [style*="color: rgb(0,0,0)"],
[data-theme="dark"] [style*="color:rgb(0,0,0)"],
.dark-mode [style*="color: #000"],
.dark-mode [style*="color:#000000"],
.dark-mode [style*="color: rgb(0,0,0)"],
.dark-mode [style*="color:rgb(0,0,0)"] {
    color: var(--text-primary) !important;
}

/* Empêcher les textes blancs invisibles en mode clair */
[data-theme="light"] [style*="color: #fff"]:not(.navbar *):not(.footer *):not(.btn),
[data-theme="light"] [style*="color:#ffffff"]:not(.navbar *):not(.footer *):not(.btn),
[data-theme="light"] [style*="color: rgb(255,255,255)"]:not(.navbar *):not(.footer *):not(.btn),
.light-mode [style*="color: #fff"]:not(.navbar *):not(.footer *):not(.btn),
.light-mode [style*="color:#ffffff"]:not(.navbar *):not(.footer *):not(.btn),
.light-mode [style*="color: rgb(255,255,255)"]:not(.navbar *):not(.footer *):not(.btn) {
    color: #1f2937 !important;
}

/* ========================================
   CORRECTIONS POUR ÉLÉMENTS ADMINLTE
   ======================================== */

/* AdminLTE sidebar mini */
[data-theme="dark"] .sidebar-mini.sidebar-collapse .main-sidebar:hover,
[data-theme="light"] .sidebar-mini.sidebar-collapse .main-sidebar:hover,
.dark-mode .sidebar-mini.sidebar-collapse .main-sidebar:hover,
.light-mode .sidebar-mini.sidebar-collapse .main-sidebar:hover {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%) !important;
}

/* Brand text */
[data-theme="dark"] .brand-text,
[data-theme="light"] .brand-text,
.dark-mode .brand-text,
.light-mode .brand-text {
    color: #ffffff !important;
}

/* ========================================
   CORRECTIONS POUR BOUTONS DE GROUPE
   ======================================== */

/* Button groups - Mode sombre */
[data-theme="dark"] .btn-group .btn,
.dark-mode .btn-group .btn {
    border-color: var(--border-color) !important;
}

/* Button groups - Mode clair */
[data-theme="light"] .btn-group .btn,
.light-mode .btn-group .btn {
    border-color: #dee2e6 !important;
}

/* ========================================
   CORRECTIONS FINALES - OVERRIDE TOUT
   ======================================== */

/* Override final pour garantir la visibilité */
[data-theme="dark"] body *:not(.navbar):not(.navbar *):not(.sidebar):not(.sidebar *):not(.footer):not(.footer *):not(.btn):not(.badge),
.dark-mode body *:not(.navbar):not(.navbar *):not(.sidebar):not(.sidebar *):not(.footer):not(.footer *):not(.btn):not(.badge) {
    color: inherit;
}

[data-theme="light"] body *:not(.navbar):not(.navbar *):not(.sidebar):not(.sidebar *):not(.footer):not(.footer *):not(.btn):not(.badge),
.light-mode body *:not(.navbar):not(.navbar *):not(.sidebar):not(.sidebar *):not(.footer):not(.footer *):not(.btn):not(.badge) {
    color: inherit;
}

/* ========================================
   CORRECTIONS POUR OPACITY ET VISIBILITY
   ======================================== */

/* Empêcher opacity 0 sur éléments de contenu */
[data-theme="dark"] .content *:not(.loading):not(.hidden),
[data-theme="light"] .content *:not(.loading):not(.hidden),
.dark-mode .content *:not(.loading):not(.hidden),
.light-mode .content *:not(.loading):not(.hidden) {
    opacity: 1 !important;
}

/* ========================================
   CORRECTIONS POUR TOUS LES LABELS
   ======================================== */

/* Labels - Mode sombre */
[data-theme="dark"] label:not(.btn):not(.form-check-label),
.dark-mode label:not(.btn):not(.form-check-label) {
    color: var(--text-primary) !important;
}

/* Labels - Mode clair */
[data-theme="light"] label:not(.btn):not(.form-check-label),
.light-mode label:not(.btn):not(.form-check-label) {
    color: #1f2937 !important;
}

/* Form check labels */
[data-theme="dark"] .form-check-label,
.dark-mode .form-check-label {
    color: var(--text-primary) !important;
}

[data-theme="light"] .form-check-label,
.light-mode .form-check-label {
    color: #1f2937 !important;
}

/* ========================================
   CORRECTIONS POUR TEXT-CENTER ET AUTRES
   ======================================== */

/* Text alignment classes */
[data-theme="dark"] .text-center, [data-theme="dark"] .text-start, [data-theme="dark"] .text-end,
.dark-mode .text-center, .dark-mode .text-start, .dark-mode .text-end {
    color: inherit;
}

[data-theme="light"] .text-center, [data-theme="light"] .text-start, [data-theme="light"] .text-end,
.light-mode .text-center, .light-mode .text-start, .light-mode .text-end {
    color: inherit;
}

/* ========================================
   CORRECTIONS POUR IMAGES ET FIGURES
   ======================================== */

/* Figure caption - Mode sombre */
[data-theme="dark"] figcaption,
.dark-mode figcaption {
    color: var(--text-secondary) !important;
}

/* Figure caption - Mode clair */
[data-theme="light"] figcaption,
.light-mode figcaption {
    color: #6b7280 !important;
}

/* ========================================
   CORRECTIONS POUR TOUS LES BG-COLORED
   ======================================== */

/* Bg-primary conserve le texte blanc */
[data-theme="dark"] .bg-primary, [data-theme="dark"] .bg-primary *,
[data-theme="light"] .bg-primary, [data-theme="light"] .bg-primary *,
.dark-mode .bg-primary, .dark-mode .bg-primary *,
.light-mode .bg-primary, .light-mode .bg-primary * {
    color: #ffffff !important;
}

/* Bg-success conserve le texte blanc */
[data-theme="dark"] .bg-success, [data-theme="dark"] .bg-success *,
[data-theme="light"] .bg-success, [data-theme="light"] .bg-success *,
.dark-mode .bg-success, .dark-mode .bg-success *,
.light-mode .bg-success, .light-mode .bg-success * {
    color: #ffffff !important;
}

/* Bg-warning conserve le texte blanc */
[data-theme="dark"] .bg-warning, [data-theme="dark"] .bg-warning *,
[data-theme="light"] .bg-warning, [data-theme="light"] .bg-warning *,
.dark-mode .bg-warning, .dark-mode .bg-warning *,
.light-mode .bg-warning, .light-mode .bg-warning * {
    color: #ffffff !important;
}

/* Bg-danger conserve le texte blanc */
[data-theme="dark"] .bg-danger, [data-theme="dark"] .bg-danger *,
[data-theme="light"] .bg-danger, [data-theme="light"] .bg-danger *,
.dark-mode .bg-danger, .dark-mode .bg-danger *,
.light-mode .bg-danger, .light-mode .bg-danger * {
    color: #ffffff !important;
}

/* Bg-info conserve le texte blanc */
[data-theme="dark"] .bg-info, [data-theme="dark"] .bg-info *,
[data-theme="light"] .bg-info, [data-theme="light"] .bg-info *,
.dark-mode .bg-info, .dark-mode .bg-info *,
.light-mode .bg-info, .light-mode .bg-info * {
    color: #ffffff !important;
}

/* ========================================
   CORRECTIONS POUR TOUTES LES ICÔNES
   ======================================== */

/* Garantir visibilité des icônes partout */
[data-theme="dark"] i, [data-theme="dark"] .fa, [data-theme="dark"] .fas,
[data-theme="dark"] .far, [data-theme="dark"] .fab,
.dark-mode i, .dark-mode .fa, .dark-mode .fas,
.dark-mode .far, .dark-mode .fab {
    color: inherit;
}

[data-theme="light"] i, [data-theme="light"] .fa, [data-theme="light"] .fas,
[data-theme="light"] .far, [data-theme="light"] .fab,
.light-mode i, .light-mode .fa, .light-mode .fas,
.light-mode .far, .light-mode .fab {
    color: inherit;
}


