/**
 * Styles pour le formulaire de contact et les notifications
 */

/* Notification */
.form-notification {
    margin: 20px 0;
    padding: 15px 20px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.form-notification.show {
    opacity: 1;
    transform: translateY(0);
}

.form-notification-success {
    background: linear-gradient(135deg, #06a77d 0%, #05c99d 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(6, 167, 125, 0.3);
}

.form-notification-error {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
}

.notification-icon {
    font-size: 20px;
    font-weight: bold;
    width: 28px;
    height: 28px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.notification-message {
    flex: 1;
}

/* Loading spinner */
.loading-spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.6s linear infinite;
    margin-right: 8px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Validation des champs */
.form-group input.invalid,
.form-group select.invalid,
.form-group textarea.invalid {
    border-color: #e74c3c;
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

.field-error {
    display: block;
    color: #e74c3c;
    font-size: 13px;
    margin-top: 5px;
}

/* État désactivé du bouton */
button[type="submit"]:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Animation au hover du bouton */
.btn-submit {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-submit:not(:disabled):hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(74, 105, 189, 0.4);
}

.btn-submit:not(:disabled):active {
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
    .form-notification {
        font-size: 14px;
        padding: 12px 15px;
    }
}
