/* --- Variables & Style de base --- */
*, *::before, *::after {
    box-sizing: border-box;
}

:root {
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --light-gray: #f8f9fa;
    --border-color: #dee2e6;
    --text-color: #343a40;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
    font-family: var(--font-family);
    background-color: var(--light-gray);
    color: var(--text-color);
    margin: 0;
    padding: 20px;
}

.container {
    max-width: 800px;
    margin: auto;
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

/* --- En-tête --- */
#form-header {
    display: flex;
    gap: 2rem;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
}

.header-text h1 { margin: 0 0 0.5rem 0; color: #000; }
.header-text p { margin: 0; line-height: 1.6; }
.header-image {
    max-width: 150px; /* Taille de l'aperçu limitée */
    height: auto;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

/* --- Groupes de formulaires --- */
.form-group { margin-bottom: 1.5rem; }
.section-title {
    font-size: 1.2rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #000;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
}

input[type="text"], input[type="email"], input[type="number"] {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
}
input:focus-visible {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.2);
}
input[readonly] { background-color: #e9ecef; cursor: not-allowed; }

/* --- Style pour Choices.js --- */
.choices__inner {
    padding: 0.55rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background-color: white;
}
.is-focused .choices__inner {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.2);
}
.choices__list--dropdown { border-radius: 8px; }

/* --- Champs spécifiques --- */
.etiquette-group {
    border: 1px solid #e9ecef;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    background-color: #fdfdfd;
}
.price-fields-wrapper { display: flex; gap: 1rem; }
.price-field { flex: 1; }

.highlight { background-color: #fffbe6; padding: 1rem; border-radius: 8px; }
.checkbox-label { display: flex; align-items: center; gap: 0.5rem; font-weight: 600;}
input[type="checkbox"] { width: 1.2em; height: 1.2em; }
.explanation { font-size: 0.9em; color: #666; margin-top: 5px; }

/* --- Boutons --- */
.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}
.button-primary, .button-secondary {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: background-color 0.2s, transform 0.1s;
}
.button-primary { background-color: var(--primary-color); color: white; }
.button-primary:hover { background-color: #0056b3; }
.button-secondary { background-color: var(--secondary-color); color: white; }
.button-secondary:hover { background-color: #5a6268; }
.button-primary:active, .button-secondary:active { transform: scale(0.98); }

/* --- Responsive --- */
@media (max-width: 768px) {
    .container { padding: 1.5rem; }
    #form-header { flex-direction: column; text-align: center; }
    .price-fields-wrapper { flex-direction: column; gap: 0; }
    .form-actions { flex-direction: column-reverse; }
    .button-primary, .button-secondary { width: 100%; }
}