/* ════════════════════════════════════════════════════════════════════════
   Doggen Club de France — Override de contraste pour les pages publiques.
   Audience âgée : on remonte les gris clairs (text-gray-400/500) vers
   leurs équivalents plus sombres (gray-600/700) — ratio WCAG AA garanti.

   Les blocs explicitement sombres (header midnight, footer, cards admin
   dark) gardent leurs gris clairs originaux pour rester lisibles sur fond
   foncé : on les exclut via descendant selectors.
   ════════════════════════════════════════════════════════════════════════ */

/* Par défaut : sur fond clair, gris clair → gris foncé pour lisibilité */
.text-gray-400 { color: #4b5563 !important; } /* gray-600 (était #9ca3af) */
.text-gray-500 { color: #374151 !important; } /* gray-700 (était #6b7280) */
.text-gray-300 { color: #6b7280 !important; } /* gray-500 — ex placeholder */

/* Restauration sur fond sombre : on rend les gris originaux quand le parent
   est un conteneur sombre identifiable (charte DCF). */
.bg-doggen-dark .text-gray-400,
.bg-doggen-midnight .text-gray-400,
.bg-doggen-night .text-gray-400,
.bg-doggen-primary .text-gray-400,
.bg-gray-900 .text-gray-400,
.bg-gray-950 .text-gray-400,
.bg-black .text-gray-400,
[class*="bg-doggen"] .text-gray-400,
[class*="from-doggen-"] .text-gray-400,
[class*="to-doggen-"] .text-gray-400,
.dcf-dark-section .text-gray-400 {
    color: #d1d5db !important; /* gray-300 (clair, lisible sur sombre) */
}

.bg-doggen-dark .text-gray-500,
.bg-doggen-midnight .text-gray-500,
.bg-doggen-night .text-gray-500,
.bg-doggen-primary .text-gray-500,
.bg-gray-900 .text-gray-500,
.bg-gray-950 .text-gray-500,
.bg-black .text-gray-500,
[class*="bg-doggen"] .text-gray-500,
[class*="from-doggen-"] .text-gray-500,
[class*="to-doggen-"] .text-gray-500,
.dcf-dark-section .text-gray-500 {
    color: #9ca3af !important; /* gray-400 (clair, lisible sur sombre) */
}

.bg-doggen-dark .text-gray-300,
.bg-doggen-midnight .text-gray-300,
.bg-doggen-night .text-gray-300,
.bg-doggen-primary .text-gray-300,
.bg-gray-900 .text-gray-300,
.bg-gray-950 .text-gray-300,
.bg-black .text-gray-300,
[class*="bg-doggen"] .text-gray-300,
[class*="from-doggen-"] .text-gray-300,
[class*="to-doggen-"] .text-gray-300,
.dcf-dark-section .text-gray-300 {
    color: #d1d5db !important; /* on garde gray-300 d'origine */
}

/* Lien hover gris : remonter aussi pour lisibilité */
.hover\:text-gray-700:hover { color: #1f2937 !important; }
.hover\:text-gray-600:hover { color: #1f2937 !important; }

/* Body color par défaut : gray-800 plutôt que gray-700 implicite */
body {
    color: #1f2937;
}
