:root {
    --bg-color: #f4f7f6;
    --card-bg: #ffffff;
    --primary: #3498db;
    --text: #2c3e50;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-color);
    color: var(--text);
    margin: 0;
    padding: 5px 20px 20px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.container {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 500px;
}

h1 {
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 25px;
    color: #1a252f;
}

.preview-box {
    width: 100%;
    height: 100px;
    border-radius: 8px;
    margin-bottom: 25px;
    border: 1px solid #ddd;
    transition: background-color 0.3s ease;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

.section {
    border: 1px solid #e2e8f0;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    background: #fafbfc;
}

.section-title {
    font-weight: bold;
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.1rem;
    color: var(--primary);
}

.input-group, .input-group2 {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    align-items: center;
}

.input-group label {
    width: 70px;
    font-size: 0.9rem;
    display: block;      /* si nécessaire */
    text-align: right;
}

.input-group2 label {
    width: 70px;
    font-size: 0.9rem;
}

input[type='number'],
select {
    flex: 1;
    padding: 8px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 0.95rem;
}

input[type='color'] {
    width: 50px;
    height: 35px;
    border: none;
    cursor: pointer;
    background: none;
}

.btn {
    width: 100%;
    padding: 10px;
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.2s;
}

.btn:hover {
    background-color: #2980b9;
}

.info-note {
    font-size: 0.8rem;
    color: #7f8c8d;
    text-align: center;
    margin-top: 15px;
    line-height: 1.4;
}
#preview {
    background-color: rgb(255, 128, 128);
}
