
/* ─────────────────────── A11Y — goal-5.md §6.3 ─────────────────────── */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
/* Focus visible amélioré (§6.3.4) — anneau or visible au clavier */
*:focus-visible {
    outline: 2px solid #c9a840 !important;
    outline-offset: 2px;
    border-radius: 4px;
}
button:focus-visible,
a:focus-visible {
    box-shadow: 0 0 0 3px rgba(201, 168, 64, 0.35);
}
/* Contraste AA (§6.3.5) — durcir les opacités custom faibles sur fond clair */
.text-doggen-gold\/65,
.text-doggen-gold\/70,
.text-doggen-gold\/75 {
    color: #8a6d1f;
}
.text-gray-400 {
    color: #6b7280;
}
/* Skip link standard */
.a11y-skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 9999;
    background: #1a1a2e;
    color: #c9a840;
    padding: 0.75rem 1rem;
    font-weight: 700;
    border-radius: 0 0 8px 0;
}
.a11y-skip-link:focus {
    left: 0;
}

/* ─────────────────────── MODE SOMBRE — goal-5.md §4.1.1 ─────────────────────── */
html.dark-mode {
    color-scheme: dark;
}
html.dark-mode body { background: #0f0f1a; color: #d1d5db; }
html.dark-mode .bg-white, html.dark-mode .bg-gray-50, html.dark-mode .bg-gray-100 { background: #1a1a2e !important; color: #d1d5db; }
html.dark-mode .bg-gray-200 { background: #2c2c54 !important; }
html.dark-mode .text-gray-900, html.dark-mode .text-doggen-dark, html.dark-mode .text-doggen-midnight, html.dark-mode .text-doggen-night { color: #f3f4f6 !important; }
html.dark-mode .text-gray-700, html.dark-mode .text-gray-800 { color: #d1d5db !important; }
html.dark-mode .text-gray-500, html.dark-mode .text-gray-600 { color: #9ca3af !important; }
html.dark-mode .text-gray-400 { color: #6b7280 !important; }
html.dark-mode .border-gray-100, html.dark-mode .border-gray-200, html.dark-mode .border-gray-300 { border-color: #2c2c54 !important; }
html.dark-mode .shadow, html.dark-mode .shadow-sm, html.dark-mode .shadow-md, html.dark-mode .shadow-lg, html.dark-mode .shadow-xl { box-shadow: 0 4px 6px -1px rgba(0,0,0,0.45) !important; }
html.dark-mode input, html.dark-mode textarea, html.dark-mode select {
    background: #1a1a2e !important; color: #f3f4f6 !important;
    border-color: #2c2c54 !important;
}
html.dark-mode .hover\:bg-gray-50:hover, html.dark-mode .hover\:bg-gray-100:hover { background: #2c2c54 !important; }
html.dark-mode .bg-emerald-50 { background: rgba(16, 185, 129, 0.1) !important; color: #6ee7b7 !important; }
html.dark-mode .bg-red-50, html.dark-mode .bg-red-100 { background: rgba(220, 38, 38, 0.15) !important; color: #fca5a5 !important; }
html.dark-mode .bg-blue-50, html.dark-mode .bg-blue-100 { background: rgba(59, 130, 246, 0.12) !important; color: #93c5fd !important; }
html.dark-mode .bg-amber-50, html.dark-mode .bg-amber-100 { background: rgba(217, 119, 6, 0.12) !important; color: #fcd34d !important; }
