/* 🔵 Style général */
body {
  font-family: 'Segoe UI', sans-serif;
  background-color: #f5f7fa;
  color: #333;
}

h1 {
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 2rem;
}

/* 🟦 Formulaire */
form {
  border-left: 5px solid #0d6efd;
  border-radius: 0.5rem;
  padding: 2rem;
  background-color: #fff;
  box-shadow: 0 0 12px rgba(0,0,0,0.05);
}

/* 🟨 Titres de sections */
fieldset {
  border: none;
  border-left: 4px solid #dee2e6;
  padding-left: 1rem;
  margin-bottom: 2rem;
  background-color: #fdfdfd;
  border-radius: 0.25rem;
  box-shadow: 0 0 2px rgba(0, 0, 0, 0.04);
}

legend {
  font-size: 1.15rem;
  font-weight: 600;
  color: #0d6efd;
  background-color: #e9f0fe;
  padding: 0.4rem 0.75rem;
  border-radius: 0.35rem;
  display: inline-block;
  margin-bottom: 1rem;
}

/* 🟩 Libellés */
label {
  font-weight: 500;
  margin-bottom: 0.4rem;
}

/* 🟧 Textarea pour le prompt généré */
textarea#resultat {
  background-color: #f8f9fa;
  border-left: 4px solid #0d6efd;
  white-space: pre-wrap;
  font-family: Consolas, monospace;
  font-size: 0.95rem;
  min-height: 140px;
  padding: 0.75rem;
}

/* 🟥 Boutons */
button.btn-primary {
  background-color: #0d6efd;
  border: none;
  font-weight: bold;
  transition: all 0.3s ease;
}

button.btn-primary:hover {
  background-color: #0b5ed7;
}

button.btn-outline-secondary {
  font-size: 0.9rem;
  transition: all 0.3s ease;
  border: 1px solid #adb5bd;
}

button.btn-outline-secondary:hover {
  background-color: #e9ecef;
}

/* 🟪 Cases à cocher alignées */
.form-check {
  margin-bottom: 0.5rem;
}

/* 📱 Responsive */
@media (max-width: 576px) {
  legend {
    font-size: 1rem;
  }

  form {
    padding: 1.25rem;
  }
}
