/* Reset et base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    min-height: 100vh;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 40px;
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 4px 20px rgba(250, 126, 85, 0.1);
}

.logo {
    max-height: 80px;
    margin-bottom: 20px;
}

.header h1 {
    color: #f05c22;
    font-size: 2.5rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.subtitle {
    color: #666;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Formulaire */
.contact-form {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 1rem;
}

.required {
    color: #f05b22;
    font-weight: bold;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: #fafafa;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #f05c22;
    background-color: white;
    box-shadow: 0 0 0 3px rgba(250, 126, 85, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group select {
    cursor: pointer;
}

/* Upload de fichiers */
.file-upload-container {
    border: 2px dashed #e1e5e9;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    background-color: #fafafa;
}

.file-upload-container:hover {
    border-color: #f05c22;
    background-color: #fff;
}

.file-upload-container input[type="file"] {
    margin-bottom: 10px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background-color: white;
}

.file-upload-info p {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 10px;
}

.file-list {
    margin-top: 15px;
}

.file-item {
    background: #f8f9fa;
    padding: 8px 12px;
    margin: 5px 0;
    border-radius: 6px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
}

.file-item .remove-file {
    background: #f05b22;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 4px 8px;
    cursor: pointer;
    font-size: 0.8rem;
}

.file-item .remove-file:hover {
    background: #d04419;
}

/* Cloudflare Turnstile */
.cf-turnstile {
    margin: 20px 0;
}

/* Section RGPD */
.rgpd-section {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 10px;
    border-left: 4px solid #f05c22;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 20px;
}

.checkbox-group input[type="checkbox"] {
    width: auto;
    margin: 0;
    margin-top: 4px;
    transform: scale(1.2);
    accent-color: #f05c22;
}

.checkbox-label {
    flex: 1;
    font-size: 1rem;
    line-height: 1.5;
    cursor: pointer;
}

.rgpd-info h3 {
    color: #f05c22;
    font-size: 1.1rem;
    margin-bottom: 15px;
}

.rgpd-info p {
    margin-bottom: 10px;
    color: #555;
    font-size: 0.95rem;
}

.rgpd-info ul {
    margin-left: 20px;
    margin-bottom: 15px;
}

.rgpd-info li {
    margin-bottom: 8px;
    color: #555;
    font-size: 0.9rem;
}

.rgpd-info a {
    color: #f05c22;
    text-decoration: none;
    font-weight: 600;
}

.rgpd-info a:hover {
    color: #f05b22;
    text-decoration: underline;
}

/* Bouton de soumission */
.form-actions {
    text-align: center;
    margin-top: 30px;
}

.submit-btn {
    background: linear-gradient(135deg, #f05c22 0%, #f05b22 100%);
    color: white;
    border: none;
    padding: 16px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(250, 126, 85, 0.3);
    min-width: 200px;
}

.submit-btn:hover {
    background: linear-gradient(135deg, #f05b22 0%, #d04419 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(250, 126, 85, 0.4);
}

.submit-btn:active {
    transform: translateY(0);
}

.submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-loader {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-loader::after {
    content: '';
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Footer */
.footer {
    text-align: center;
    color: #666;
    font-size: 0.9rem;
}

.footer a {
    color: #f05c22;
    text-decoration: none;
    font-weight: 600;
}

.footer a:hover {
    color: #f05b22;
    text-decoration: underline;
}

/* Messages d'alerte */
.alert {
    padding: 15px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-weight: 500;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-warning {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .contact-form {
        padding: 25px;
    }
    
    .header {
        padding: 20px;
    }
    
    .header h1 {
        font-size: 2rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .checkbox-group {
        flex-direction: column;
        gap: 8px;
    }
    
    .checkbox-group input[type="checkbox"] {
        margin-top: 0;
    }
}

@media (max-width: 480px) {
    .header h1 {
        font-size: 1.6rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .contact-form {
        padding: 20px;
    }
    
    .submit-btn {
        padding: 14px 30px;
        font-size: 1rem;
    }
}
