/* Styles personnalisés pour le formulaire de contact */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

.form-control,
.form-select {
    border-radius: 0.5rem;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

/* Correction spécifique pour le textarea */
textarea.form-control {
    white-space: pre-wrap !important;
    text-transform: none !important;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif !important;
    resize: vertical !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
    line-height: 1.5 !important;
    letter-spacing: normal !important;
    word-spacing: normal !important;
    font-variant: normal !important;
    text-rendering: auto !important;
    -webkit-text-size-adjust: 100% !important;
    -webkit-font-feature-settings: normal !important;
    font-feature-settings: normal !important;
}


.form-control:focus,
.form-select:focus {
    border-color: #ccae62;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.15);
    transform: translateY(-1px);
}

.form-control.is-valid,
.form-select.is-valid {
    border-color: #198754;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%23198754' d='m2.3 6.73.94-.94 1.48 1.48L7.6 4.39l.94.94L5.66 8.21z'/%3e%3c/svg%3e");
}

.form-control.is-invalid,
.form-select.is-invalid {
    border-color: #dc3545;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath d='m5.5 5.5 1 1m0-1-1 1'/%3e%3c/svg%3e");
}

.btn {
    border-radius: 0.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    background-color: #ccae62;
    color: #495057;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(219, 185, 14, 0.092);
    color: #ccae62;
}

.card {
    transition: all 0.3s ease;
    animation: fadeInUp 0.6s ease-out;
}

.card:hover {
    transform: translateY(-5px);
}

.alert {
    border-radius: 0.75rem;
    border: none;
    font-weight: 500;
}

.form-label {
    color: #495057;
    margin-bottom: 0.5rem;
}

/* Animations personnalisées */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 40px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

/* Responsive improvements */
@media (max-width: 768px) {
    .card-body {
        padding: 1.5rem !important;
    }
    
    .btn-lg {
        font-size: 1rem;
        padding: 0.75rem 1rem;
    }
    
    .form-select {
        font-size: 0.9rem;
    }
    
    .phone-container {
        flex-direction: column;
    }
    
    .phone-container .form-select {
        margin-bottom: 0.5rem;
        border-radius: 0.5rem 0.5rem 0 0;
    }
    
    .phone-container .form-control {
        border-radius: 0 0 0.5rem 0.5rem;
    }
}

.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

/* Styles pour le conteneur téléphone */
.phone-container {
    display: flex;
    gap: 0;
}

.phone-container .form-select {
    flex: 0 0 120px;
    border-radius: 0.5rem 0 0 0.5rem;
    border-right: none;
}

.phone-container .form-control {
    flex: 1;
    border-radius: 0 0.5rem 0.5rem 0;
}

.phone-container .form-select:focus {
    border-right: 2px solid #ccae62;
}

.phone-container .form-control:focus + .form-select,
.phone-container .form-select:focus + .form-control {
    border-color: #ccae62;
}