/* Reset et styles de 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-color: #f5f5f5;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: -10px;
}

.col-6 {
    flex: 0 0 50%;
    max-width: 50%;
    padding: 10px;
}

.col-12 {
    flex: 0 0 100%;
    max-width: 100%;
    padding: 10px;
}

/* Cartes */
.card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.card h2 {
    color: #2c3e50;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #3498db;
}

/* Boutons */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}

.btn-primary {
    background-color: #3498db;
    color: white;
}

.btn-primary:hover {
    background-color: #2980b9;
}

.btn-secondary {
    background-color: #95a5a6;
    color: white;
}

.btn-secondary:hover {
    background-color: #7f8c8d;
}

/* Constructeur de formulaire */
.field-palette {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.field-item {
    padding: 10px 15px;
    background: #ecf0f1;
    border: 1px solid #bdc3c7;
    border-radius: 4px;
    cursor: move;
    user-select: none;
    transition: all 0.2s;
}

.field-item:hover {
    background: #d5dbdb;
    transform: translateY(-2px);
}

.form-builder {
    min-height: 300px;
    border: 2px dashed #bdc3c7;
    border-radius: 4px;
    padding: 20px;
    margin-bottom: 20px;
}

.form-builder .field-item {
    margin-bottom: 10px;
}

/* Aperçu du formulaire */
.form-preview .form-group {
    margin-bottom: 15px;
}

.form-preview label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.form-control {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.form-control:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

/* Code d'intégration */
.code-container {
    position: relative;
}

.code-container textarea {
    font-family: 'Courier New', monospace;
    font-size: 12px;
    background: #2c3e50;
    color: #ecf0f1;
    padding: 15px;
    border-radius: 4px;
    resize: none;
}

.code-container .btn {
    position: absolute;
    top: 10px;
    right: 10px;
}

/* Liste des formulaires */
.forms-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
}

.form-item {
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 15px;
    transition: all 0.3s;
}

.form-item:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

/* Header */
header {
    background: #2c3e50;
    color: white;
    padding: 20px 0;
    margin-bottom: 30px;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
}

.logo h1 {
    font-size: 24px;
}

.logo h1 i {
    color: #3498db;
}

/* Responsive */
@media (max-width: 768px) {
    .col-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    
    .forms-list {
        grid-template-columns: 1fr;
    }
}