/* Styles pour les champs de date français */
.date-input-french {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.date-input-french::placeholder {
    color: #9ca3af;
    font-style: italic;
}

/* Amélioration de l'apparence du champ de date */
.date-input-french[type="text"] {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 0.5rem center;
    background-repeat: no-repeat;
    background-size: 1.5em 1.5em;
    padding-right: 2.5rem;
    cursor: pointer;
}

/* Animation au focus */
.date-input-french:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    outline: none;
}

/* Validation visuelle */
.date-input-french:valid {
    border-color: #10b981;
}

.date-input-french:invalid:not(:placeholder-shown) {
    border-color: #ef4444;
}

/* Style pour le calendrier natif (si supporté) */
.date-input-french::-webkit-calendar-picker-indicator {
    background: transparent;
    bottom: 0;
    color: transparent;
    cursor: pointer;
    height: auto;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    width: auto;
}

/* Responsive */
@media (max-width: 640px) {
    .date-input-french {
        font-size: 16px; /* Évite le zoom sur iOS */
    }
}

/* Animation de transition */
.date-input-french {
    transition: all 0.2s ease-in-out;
}

/* Style pour les messages d'erreur */
.date-input-french:invalid + .error-message {
    color: #ef4444;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Amélioration de l'accessibilité */
.date-input-french:focus-visible {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* Style pour les états désactivés */
.date-input-french:disabled {
    background-color: #f9fafb;
    color: #6b7280;
    cursor: not-allowed;
}

/* Indicateur visuel pour les champs requis */
.date-input-french[required]:not(:placeholder-shown):valid {
    border-color: #10b981;
    background-color: #f0fdf4;
}

/* Style pour les champs en lecture seule */
.date-input-french[readonly] {
    background-color: #f9fafb;
    color: #374151;
    cursor: default;
} 