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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #f5f7fa;
  color: #1a1a2e;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.wizard-container {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
  width: 100%;
  max-width: 640px;
  overflow: hidden;
}

/* Header */
.wizard-header {
  padding: 2rem 2rem 1rem;
  border-bottom: 1px solid #eee;
}

.wizard-header h1 {
  font-size: 1.4rem;
  font-weight: 700;
  color: #714B67;
  margin-bottom: 1rem;
}

.progress-bar {
  height: 6px;
  background: #e5e7eb;
  border-radius: 3px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: #714B67;
  border-radius: 3px;
  transition: width 0.3s ease;
}

.progress-label {
  font-size: 0.8rem;
  color: #9ca3af;
  margin-top: 0.5rem;
}

/* Main */
.wizard-main {
  padding: 2rem;
  min-height: 280px;
}

.step { animation: fadeIn 0.2s ease; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.step-title {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #9ca3af;
  margin-bottom: 0.5rem;
}

.question-label {
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  line-height: 1.4;
}

.error-msg + .question-label {
  margin-top: 2rem;
}

/* Multiselect cards */
.options-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.option-wrap {
  display: flex;
  flex-direction: column;
}

.sys-card { flex-direction: column; align-items: flex-start; gap: 0.2rem; }
.sys-card-label { font-weight: 600; }
.sys-card-nom { font-size: 0.8rem; color: #714B67; font-weight: 400; }

.detail-systems-list { display: flex; flex-direction: column; gap: 0.75rem; }

.detail-system-row { display: flex; flex-direction: column; gap: 0.3rem; }

.detail-system-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #714B67;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.detail-input {
  margin-top: 0.4rem;
  padding: 0.5rem 0.75rem;
  border: 1.5px solid #714B67;
  border-radius: 6px;
  font-size: 0.85rem;
  outline: none;
  color: #374151;
}
.detail-input:focus { border-color: #4a2040; }

.option-card {
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  padding: 1rem;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  user-select: none;
  font-size: 0.95rem;
  line-height: 1.3;
}

.option-card:hover {
  border-color: #9B7293;
  background: #f9f4f7;
}

.option-card.selected {
  border-color: #714B67;
  background: #f5eef3;
  color: #4a2040;
  font-weight: 500;
}

.option-card input[type="checkbox"],
.option-card input[type="radio"] {
  display: none;
}

/* Error */
.error-msg {
  color: #dc2626;
  font-size: 0.85rem;
  margin-top: 1rem;
  display: none;
}
.error-msg.visible { display: block; }

/* Footer */
.wizard-footer {
  padding: 1.25rem 2rem;
  border-top: 1px solid #eee;
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
}

.btn {
  padding: 0.65rem 1.5rem;
  border-radius: 8px;
  border: none;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s;
}
.btn:hover { opacity: 0.85; }

.btn-primary  { background: #714B67; color: #fff; }
.btn-secondary { background: #f3f4f6; color: #374151; }

/* Intro */
.intro-step { text-align: center; padding: 1rem 0; }
.intro-icon  { font-size: 3rem; margin-bottom: 1rem; }
.intro-title { font-size: 1.5rem; font-weight: 700; color: #714B67; margin-bottom: 1.25rem; }
.intro-text  { font-size: 1rem; color: #374151; line-height: 1.6; margin-bottom: 1rem; max-width: 480px; margin-left: auto; margin-right: auto; }
.intro-duration  { font-size: 0.85rem; color: #9ca3af; margin-top: 1.5rem; }
.intro-privacy   { font-size: 0.85rem; color: #714B67; margin-top: 0.5rem; font-weight: 500; }

/* Page de synthèse */
.summary-page { padding: 2rem; }

.summary-header { text-align: center; margin-bottom: 2rem; }
.summary-icon   { font-size: 2.5rem; margin-bottom: 0.75rem; }
.summary-header h2 { font-size: 1.3rem; font-weight: 700; color: #714B67; margin-bottom: 0.5rem; }
.summary-header p  { color: #6b7280; font-size: 0.95rem; }

.summary-section { margin-bottom: 2rem; }
.summary-section h3 {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #714B67;
  margin-bottom: 0.75rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid #f0e6ed;
}

.summary-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.summary-table tr:nth-child(even) { background: #faf7f9; }
.sum-q { padding: 0.6rem 0.75rem; color: #6b7280; width: 50%; vertical-align: top; }
.sum-a { padding: 0.6rem 0.75rem; font-weight: 500; color: #1a1a2e; }

.modules-list { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.module-tag {
  background: #f0e6ed;
  color: #714B67;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.3rem 0.75rem;
  border-radius: 20px;
}

.summary-actions { text-align: center; margin: 1.5rem 0; }

.summary-footer {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid #eee;
  font-size: 0.75rem;
  color: #9ca3af;
  text-align: center;
}
.summary-footer a { color: #714B67; }

/* Impression / PDF */
@media print {
  body { background: white; padding: 0; }
  .no-print { display: none !important; }
  .site-footer { display: none; }
  .wizard-container { box-shadow: none; border-radius: 0; max-width: 100%; }
  .summary-page { padding: 1rem; }
  .module-tag { border: 1px solid #714B67; }
}

/* Site footer */
.site-footer {
  margin-top: 1.5rem;
  font-size: 0.75rem;
  color: #9ca3af;
}
.site-footer a { color: #9ca3af; }
