/* Reset et styles de base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Mode sombre forcé pour index.html */
html {
    color-scheme: dark;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    -webkit-font-smoothing: antialiased;
    /* -moz-osx-font-smoothing: grayscale; */ /* Propriété obsolète, supprimée pour éviter l'avertissement */
    overflow-x: hidden;
}

button {
    font-family: inherit;
}

/* Styles pour les liens et boutons */
a {
    text-decoration: none;
    color: inherit;
}

/* ============================================
   FORMULAIRES - Lisibilité garantie tous modes
   ============================================ */
input,
textarea,
select,
.form-control,
.form-select {
    background-color: #ffffff !important;
    color: #1a1a1a !important;
    border: 1.5px solid #d0d0d0 !important;
    font-size: 16px !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    -webkit-text-fill-color: #1a1a1a !important;
    opacity: 1;
    -webkit-appearance: none;
}

input::placeholder,
textarea::placeholder,
.form-control::placeholder {
    color: #999999 !important;
    -webkit-text-fill-color: #999999 !important;
    opacity: 1 !important;
}

input:focus,
textarea:focus,
select:focus,
.form-control:focus,
.form-select:focus {
    background-color: #ffffff !important;
    color: #1a1a1a !important;
    -webkit-text-fill-color: #1a1a1a !important;
    border-color: #c41e3a !important;
    box-shadow: 0 0 0 3px rgba(196, 30, 58, 0.15) !important;
    outline: none !important;
}

/* Empêcher les auto-fill sombres du navigateur */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
select:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 1000px #ffffff inset !important;
    -webkit-text-fill-color: #1a1a1a !important;
    background-color: #ffffff !important;
    color: #1a1a1a !important;
    transition: background-color 5000s ease-in-out 0s;
}

label,
.form-label {
    font-weight: 600;
}

/* Scrollbar personnalisée */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

