/* Styles additionnels pour le formulaire de contact */

/* Style pour les champs obligatoires */
.required {
    color: #e74c3c;
    font-weight: bold;
}

.pot {
    display: none !important;
    position: absolute;
    left: -9999px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* Style pour le conteneur reCAPTCHA */
.recaptcha-container {
    margin: 20px 0;
}

/* Messages de réponse */
#form-response {
    padding: 15px;
    margin-top: 20px;
    border-radius: 4px;
    display: none;
}

#form-response.success {
    display: block;
    background-color: rgba(39, 174, 96, 0.1);
    color: #27ae60;
    border: 1px solid #27ae60;
}

#form-response.error {
    display: block;
    background-color: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
    border: 1px solid #e74c3c;
}

/* Animation de chargement pour le bouton */
.btn-loading {
    position: relative;
    pointer-events: none;
    color: transparent !important;
}

.btn-loading:after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 20px;
    height: 20px;
    margin-left: -10px;
    margin-top: -10px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s infinite linear;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Style pour les erreurs de validation */
.form-control.error {
    border-color: #e74c3c;
}

.error-message {
    color: #e74c3c;
    font-size: 12px;
    margin-top: 5px;
    display: none;
}

.error-message.visible {
    display: block;
}

/* Style pour le survol et focus des champs de formulaire */
.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 119, 255, 0.2);
}

/* Amélioration de l'accessibilité */
.form-control:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 1px;
}

/* Style pour le texte d'aide */
.form-text {
    margin-top: 5px;
    font-size: 12px;
    color: var(--gray) !important;
}