:root {
  --background: #fff8f2;
  --foreground: #2b2b2b;
  --card: #ffffff;
  --primary: #9c0e42;
  --primary-foreground: #fff8f2;
  --secondary: #d1dcca;
  --muted: #666666;
  --accent: #ffb6b0;
  --border: #e6e6e6;
  --ring: #d9a6a1;
  --radius: 0.75rem;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--background);
  color: var(--foreground);
  margin: 0;
  padding: 3rem 1rem;
}

.container {
  max-width: 48rem;
  margin: 0 auto;
}

/* Typography */
.title-serif {
  font-family: 'Playfair Display', serif;
  margin: 0;
}

.header {
  text-align: center;
  margin-bottom: 3rem;
}

.header h1 { font-size: 3rem; letter-spacing: -0.02em; }
.subtitle { color: var(--muted); font-size: 1.125rem; }

/* Cards */
.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  margin-bottom: 2rem;
  padding: 1.5rem;
}

.card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.step-number {
  background: var(--primary);
  color: var(--primary-foreground);
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

/* Grids and Forms */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.form-group { display: flex; flex-direction: column; gap: 0.5rem; }
.form-group label { font-size: 0.875rem; font-weight: 500; display: flex; align-items: center; gap: 0.5rem; }
.full-width { grid-column: span 2; }

input, textarea {
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  font-size: 1rem;
  transition: border-color 0.2s;
}

input:focus { outline: none; border-color: var(--ring); }

/* Radio Grid Styling */
.radio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.radio-item {
  border: 2px solid var(--border);
  padding: 1rem;
  border-radius: 0.5rem;
  text-align: center;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.2s;
}

.radio-item:has(input:checked) {
  border-color: var(--primary);
  background-color: rgba(156, 14, 66, 0.05);
}

.radio-item input { display: none; }

/* Toggle Buttons */
.button-toggle-group { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1rem; }
.btn-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  border: 1px solid var(--border);
  background: white;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-toggle .x { display: none; }
.btn-toggle.active { background: var(--primary); color: white; border-color: var(--primary); }
.btn-toggle.active .plus { display: none; }
.btn-toggle.active .x { display: block; }

/* Dynamic Sections */
.dynamic-section {
  display: none; /* Hidden by default */
  padding: 1.5rem;
  border-radius: var(--radius);
  border: 2px solid transparent;
  margin-top: 1rem;
}

.dynamic-section.active { display: block; }
.dynamic-section.secondary { background: rgba(209, 220, 202, 0.2); border-color: var(--secondary); }
.dynamic-section.accent { background: rgba(255, 182, 176, 0.2); border-color: var(--accent); }
.dynamic-section.ring { background: rgba(217, 166, 161, 0.2); border-color: var(--ring); }

.section-title { display: flex; align-items: center; gap: 0.75rem; color: var(--primary); margin-bottom: 1rem; }
.section-title h3 { margin: 0; font-family: 'Playfair Display', serif; }

/* Tags */
.tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tag {
  padding: 0.5rem 1rem;
  border-radius: 9999px;
  border: 1px solid var(--border);
  background: white;
  font-size: 0.875rem;
  cursor: pointer;
  user-select: none;
}

.tag.selected {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

/* Submit Button */
.btn-submit {
  width: 100%;
  padding: 1.25rem;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: var(--radius);
  font-size: 1.125rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s, background 0.2s;
}

.btn-submit:hover { transform: translateY(-2px); background: #850c38; }

/* Budget Pills */
.radio-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.5rem; }
.radio-pill { border: 2px solid var(--border); padding: 0.75rem; border-radius: 0.5rem; text-align: center; cursor: pointer; font-size: 0.875rem; }
.radio-pill:has(input:checked) { border-color: var(--primary); background: rgba(156, 14, 66, 0.05); }
.radio-pill input { display: none; }
/* AJOUTER À LA FIN DU FICHIER CSS */

/* Style pour les nouveaux boutons d'ajout */
.btn-add {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    border-radius: 0.5rem;
    border: 2px dashed var(--primary);
    background: transparent;
    color: var(--primary);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-add:hover {
    background: rgba(156, 14, 66, 0.05);
    transform: translateY(-1px);
}

/* Conteneur des éléments ajoutés */
.dynamic-list-container {
    margin-top: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Bloc d'une ligne ajoutée (Select + Bouton supprimer) */
.dynamic-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #fdfdfd;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    animation: slideIn 0.3s ease-out;
}

.dynamic-item select {
    flex: 1;
    padding: 0.6rem;
    border-radius: 0.4rem;
    border: 1px solid var(--border);
    background: white;
}

.btn-remove {
    background: transparent;
    border: none;
    color: #cc0000;
    cursor: pointer;
    display: flex;
    align-items: center;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}