/* Structure de base */
.main-content {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 120px);
    padding: 2rem 1rem;
    background-color: #f5f5f5;
}

.form-container {
    width: 100%;
    max-width: 600px;
}

.form-box {
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.form-header {
    padding: 1.5rem;
    background: #3C3F41;
    color: white;
    text-align: center;
}

.form-header h1 {
    margin: 0;
    font-size: 1.8rem;
}

.form-header p {
    margin: 0.5rem 0 0;
    opacity: 0.9;
    font-size: 1rem;
}

.devis-form {
    padding: 2rem;
}

/* Styles des champs */
.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
}

input, select, textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: #A9B995;
    box-shadow: 0 0 0 3px rgba(169, 185, 149, 0.2);
}

textarea {
    min-height: 120px;
    resize: vertical;
}

select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.8rem center;
    background-size: 1rem;
}

/* Bouton et messages */
.form-footer {
    margin-top: 2rem;
    text-align: center;
}

.cta-button {
    position: relative;
    background: #F28C38;
    color: white;
    border: none;
    padding: 0.9rem 2rem;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 250px;
}

.cta-button:hover {
    background: #e07d2d;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(242, 140, 56, 0.3);
}

.loading-spinner {
    display: none;
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

.form-note {
    margin-top: 1rem;
    font-size: 0.8rem;
    color: #666;
}

.error-message {
    color: #e74c3c;
    font-size: 0.8rem;
    margin-top: 0.3rem;
    height: 1rem;
}

.form-message {
    margin-top: 1.5rem;
    padding: 1rem;
    border-radius: 6px;
    display: none;
    text-align: center;
}

.form-message.success {
    background: #e8f5e9;
    color: #2e7d32;
    display: block;
}

.form-message.error {
    background: #ffebee;
    color: #c62828;
    display: block;
}

/* Responsive */
@media (max-width: 768px) {
    .main-content {
        padding: 1rem;
        min-height: calc(100vh - 80px);
    }
    
    .form-header {
        padding: 1.2rem;
    }
    
    .form-header h1 {
        font-size: 1.5rem;
    }
    
    .devis-form {
        padding: 1.5rem;
    }
    
    .cta-button {
        max-width: 100%;
    }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}