/* ============================================================
   form.css — Styles du formulaire de devis
   Utilisé par les pages blog (les pages SEO utilisent seo-pages.css)
   ============================================================ */

:root {
    --primary:      #4a7c8c;
    --primary-dark: #36606d;
    --text:         #1f2937;
    --text-light:   #6b7280;
    --bg:           #ffffff;
    --bg-secondary: #f9fafb;
    --border:       #e5e7eb;
}

.section { margin-bottom: 48px; }

.section-title {
    font-size: 1.5em;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.section-title::before {
    content: '';
    width: 4px;
    height: 26px;
    background: var(--primary);
    border-radius: 2px;
    flex-shrink: 0;
}

.form-container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.form-group { margin-bottom: 24px; }

.form-row { display: flex; gap: 20px; }
.form-row .form-group { flex: 1; }

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text);
}

input[type="text"],
input[type="email"],
input[type="tel"],
textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--border);
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    font-family: inherit;
    color: var(--text);
    background: var(--bg);
}
input:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(74,124,140,0.1);
}

.dropzone {
    border: 2px dashed var(--border);
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--bg-secondary);
}
.dropzone:hover,
.dropzone.drag-over {
    border-color: var(--primary);
    background: rgba(74,124,140,0.05);
}

.upload-icon {
    width: 48px; height: 48px;
    fill: var(--primary);
    margin-bottom: 16px;
}

.dropzone-text {
    font-size: 1.1em;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
}
.dropzone-subtext { color: var(--text-light); font-size: 0.9em; }

.file-list { margin-top: 16px; }

.file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px;
    background: var(--bg-secondary);
    border-radius: 8px;
    margin-bottom: 8px;
}
.file-info { display: flex; align-items: center; gap: 12px; }
.file-icon { width: 32px; height: 32px; fill: var(--primary); }
.file-details { display: flex; flex-direction: column; }
.file-name { font-weight: 500; color: var(--text); }
.file-size { font-size: 0.85em; color: var(--text-light); }

.remove-file {
    background: none; border: none; cursor: pointer;
    padding: 8px; color: var(--text-light);
    transition: color 0.3s ease;
}
.remove-file:hover { color: #dc2626; }

.submit-btn {
    width: 100%;
    padding: 16px 32px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.submit-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(74,124,140,0.3);
}
.submit-btn:disabled {
    background: var(--text-light);
    cursor: not-allowed;
    transform: none;
}

.btn-icon { width: 20px; height: 20px; fill: white; }

.form-message {
    margin-top: 16px;
    padding: 12px;
    border-radius: 8px;
    text-align: center;
    display: none;
}
.form-message.success {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
    display: block !important;
}
.form-message.error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
    display: block !important;
}

.spinner {
    display: inline-block;
    width: 20px; height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 768px) {
    .form-row       { flex-direction: column; }
    .form-container { padding: 24px 16px; }
}
