/* Formulaire d'évaluation */
:root {
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --success: #16a34a;
  --error: #dc2626;
  --text: #1f2937;
  --text-light: #6b7280;
  --bg: #f9fafb;
  --white: #ffffff;
  --border: #e5e7eb;
  --radius: 8px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

.container { max-width: 720px; margin: 0 auto; padding: 2rem 1rem; }
header { text-align: center; margin-bottom: 2rem; }
.logos { display: flex; justify-content: center; align-items: center; gap: 2rem; margin-bottom: 1.5rem; }
.logo { height: 50px; width: auto; object-fit: contain; }
.logo-ca { height: 60px; }
h1 { font-size: 1.75rem; margin-bottom: 0.5rem; }
.description { color: var(--text-light); }

.section {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}
.section legend { font-weight: 600; font-size: 1.1rem; padding: 0 0.5rem; color: var(--primary); }

.question { margin-bottom: 1.5rem; }
.question:last-child { margin-bottom: 0; }
.question-title { display: block; font-weight: 500; margin-bottom: 0.5rem; }
.required { color: var(--error); margin-left: 0.25rem; }

input[type="text"], textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 1rem;
  font-family: inherit;
}
input[type="text"]:focus, textarea:focus { outline: none; border-color: var(--primary); }

.choices { display: flex; flex-direction: column; gap: 0.5rem; }
.choice {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
}
.choice:hover { background: var(--bg); }
.choice input { margin-top: 0.125rem; }
.choice:has(input:checked) { border-color: var(--primary); background: #eff6ff; }

.form-actions { text-align: center; padding-top: 1rem; }
.btn-submit {
  background: var(--primary);
  color: var(--white);
  border: none;
  padding: 1rem 2rem;
  font-size: 1rem;
  font-weight: 500;
  border-radius: var(--radius);
  cursor: pointer;
}
.btn-submit:hover { background: var(--primary-hover); }
.btn-submit:disabled { opacity: 0.6; cursor: not-allowed; }

.success-message, .error-message { text-align: center; padding: 2rem; border-radius: var(--radius); }
.success-message { background: #dcfce7; color: var(--success); }
.error-message { background: #fee2e2; color: var(--error); }

.question.invalid input, .question.invalid textarea { border-color: var(--error); }
.question.invalid .choice { border-color: #fca5a5; }

@media (max-width: 480px) {
  .container { padding: 1rem; }
  .section { padding: 1rem; }
}