/* ==========================================================================
   Questionnaire — Diagnostic de continuité
   ========================================================================== */

.q-page {
  background: linear-gradient(180deg, var(--off-white) 0%, var(--white) 40%);
  min-height: 100vh;
}

/* --- Typographie française (contenu injecté par JS) ---
   Les écrans du questionnaire sont générés par js/questionnaire.js : le texte
   n'embarque pas d'espaces insécables, ces règles sont donc le seul garde-fou
   contre un « ? » (ou un mot) resté seul sur la dernière ligne d'un titre.
   Voir la note complète dans styles.css (section « Typographie française »). */
.q-intro h1,
.q-question h2,
.q-intro-sub,
.q-hint,
.q-option-text,
.q-examples,
.q-consent-text,
.q-info-tile p,
.q-axis-desc,
.q-axis-action,
.q-note,
.q-results-head p,
.q-final-cta p {
  text-wrap: pretty;
}
.q-results-head h2,
.q-axis-title,
.q-seg-intro h2,
.q-final-cta h3,
.q-success h2,
.q-callback-form h4,
.q-field label {
  text-wrap: balance;
}

/* --- Progress bar (sticky under nav) --- */
.q-progress-wrap {
  position: sticky;
  top: var(--nav-height);
  z-index: 40;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--gray-100);
  padding: 14px 0;
}
.q-progress-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 20px;
}
.q-progress-label {
  color: var(--navy);
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
}
.q-progress-bar {
  flex: 1;
  height: 8px;
  background: var(--gray-100);
  border-radius: 99px;
  overflow: hidden;
}
.q-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--blue), var(--orange));
  border-radius: 99px;
  transition: width 0.6s var(--transition);
  width: 0%;
}
.q-progress-pct {
  color: var(--gray-700);
  font-size: 0.85rem;
  font-weight: 500;
  min-width: 40px;
  text-align: right;
}

/* --- Screen container --- */
.q-container {
  max-width: 780px;
  margin: 0 auto;
  padding: 60px 24px 120px;
}
.q-screen {
  display: none;
  animation: qFadeIn 0.6s var(--transition);
}
.q-screen.active { display: block; }
@keyframes qFadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- Screen 1: Intro --- */
.q-intro {
  text-align: center;
  padding: 40px 0 20px;
}
.q-intro-icon {
  width: 96px; height: 96px;
  margin: 0 auto 32px;
  background: linear-gradient(135deg, var(--blue), var(--orange));
  border-radius: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 44px;
  box-shadow: 0 20px 40px rgba(33, 65, 98, 0.25);
  transform: rotate(-4deg);
}
.q-intro h1 {
  color: var(--navy);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.15;
  margin: 0 0 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.q-intro-sub {
  color: var(--gray-700);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto 40px;
  line-height: 1.65;
}
.q-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  max-width: 720px;
  margin: 0 auto 44px;
}
.q-info-tile {
  background: var(--white);
  padding: 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  text-align: left;
  border: 1px solid var(--gray-100);
  display: flex;
  gap: 14px;
  align-items: center;
}
.q-info-tile .icn {
  width: 40px; height: 40px;
  background: var(--blue-soft);
  color: var(--blue);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: 20px;
}
.q-info-tile:nth-child(2) .icn { background: var(--orange-soft); color: var(--orange); }
.q-info-tile:nth-child(4) .icn { background: rgba(76, 175, 80, 0.15); color: #4caf50; }
.q-info-tile p {
  margin: 0;
  color: var(--navy);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.4;
}

/* --- Question --- */
.q-question {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 44px 44px 36px;
  box-shadow: var(--shadow-md);
  margin-bottom: 24px;
}
.q-step-label {
  display: inline-block;
  color: var(--blue);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 12px;
  padding: 6px 14px;
  background: var(--blue-soft);
  border-radius: 99px;
}
.q-step-label.axis-1 { background: rgba(76, 175, 80, 0.15); color: #4caf50; }
.q-step-label.axis-2 { background: rgba(156, 39, 176, 0.15); color: #9c27b0; }
.q-step-label.axis-3 { background: var(--orange-soft); color: var(--orange); }
.q-step-label.axis-4 { background: var(--blue-soft); color: var(--blue); }
.q-question h2 {
  color: var(--navy);
  font-size: clamp(1.35rem, 2.4vw, 1.7rem);
  line-height: 1.3;
  margin: 0 0 28px;
  font-weight: 700;
}
.q-hint {
  color: var(--gray-500);
  font-size: 0.9rem;
  margin: -20px 0 20px;
}
.q-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.q-option {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  background: var(--off-white);
  border: 2px solid transparent;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
}
.q-option:hover {
  background: var(--blue-soft);
  border-color: rgba(32, 174, 255, 0.3);
  transform: translateX(4px);
}
.q-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.q-option-mark {
  width: 24px; height: 24px;
  border: 2px solid var(--gray-300);
  border-radius: 50%;
  flex-shrink: 0;
  position: relative;
  transition: all var(--transition-fast);
}
.q-option-mark::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: var(--blue);
  opacity: 0;
  transform: scale(0.5);
  transition: all var(--transition-fast);
}
.q-option-text {
  color: var(--navy);
  font-weight: 500;
  font-size: 1rem;
  line-height: 1.5;
  flex: 1;
}
.q-option input:checked + .q-option-mark {
  border-color: var(--blue);
}
.q-option input:checked + .q-option-mark::after {
  opacity: 1;
  transform: scale(1);
}
.q-option:has(input:checked) {
  background: var(--blue-soft);
  border-color: var(--blue);
}
/* Fallback if :has() not supported: JS adds .checked */
.q-option.checked {
  background: var(--blue-soft);
  border-color: var(--blue);
}
.q-option.checked .q-option-mark { border-color: var(--blue); }
.q-option.checked .q-option-mark::after { opacity: 1; transform: scale(1); }

/* --- Textarea --- */
.q-textarea-wrap { margin-bottom: 24px; }
.q-textarea {
  width: 100%;
  min-height: 130px;
  padding: 16px 18px;
  border: 2px solid var(--gray-100);
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 1rem;
  color: var(--navy);
  background: var(--off-white);
  resize: vertical;
  transition: all var(--transition-fast);
}
.q-textarea:focus {
  outline: none;
  border-color: var(--blue);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(32, 174, 255, 0.1);
}
.q-examples {
  color: var(--gray-500);
  font-size: 0.88rem;
  margin: 12px 0 0;
  line-height: 1.6;
}

/* --- Form fields --- */
.q-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.q-field {
  display: flex;
  flex-direction: column;
  margin-bottom: 6px;
}
.q-field.full { grid-column: 1 / -1; }
.q-field label {
  color: var(--navy);
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 8px;
  display: flex;
  gap: 6px;
  align-items: center;
}
.q-field .req { color: var(--orange); }
.q-field .opt {
  color: var(--gray-500);
  font-size: 0.78rem;
  font-weight: 400;
  margin-left: 6px;
}
.q-field input, .q-field select {
  padding: 14px 16px;
  border: 2px solid var(--gray-100);
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 1rem;
  color: var(--navy);
  background: var(--off-white);
  transition: all var(--transition-fast);
}
.q-field input:focus, .q-field select:focus {
  outline: none;
  border-color: var(--blue);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(32, 174, 255, 0.1);
}
.q-field input.error, .q-field select.error {
  border-color: #e53935;
  background: #fff4f4;
}
.q-field .err-msg {
  color: #e53935;
  font-size: 0.82rem;
  margin-top: 6px;
  display: none;
}
.q-field.error .err-msg { display: block; }

.q-consent {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 18px;
  background: var(--off-white);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  cursor: pointer;
  transition: background var(--transition-fast);
}
.q-consent:hover { background: var(--blue-soft); }
.q-consent input {
  margin-top: 4px;
  width: 20px; height: 20px;
  accent-color: var(--blue);
  cursor: pointer;
  flex-shrink: 0;
}
.q-consent-text {
  color: var(--gray-700);
  font-size: 0.92rem;
  line-height: 1.55;
}
.q-consent-text strong { color: var(--navy); }
.q-consent.error { border: 2px solid #e53935; }

/* --- Nav buttons --- */
.q-nav {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 24px;
  flex-wrap: wrap;
}
.q-btn {
  padding: 15px 30px;
  border-radius: 99px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.q-btn-primary {
  background: var(--orange);
  color: var(--white);
  box-shadow: 0 6px 18px rgba(246, 165, 0, 0.35);
}
.q-btn-primary:hover:not(:disabled) {
  background: #ffb61c;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(246, 165, 0, 0.45);
}
.q-btn-primary:disabled {
  background: var(--gray-300);
  cursor: not-allowed;
  box-shadow: none;
}
.q-btn-secondary {
  background: var(--white);
  color: var(--navy);
  border: 2px solid var(--gray-100);
}
.q-btn-secondary:hover {
  border-color: var(--navy);
  background: var(--off-white);
}

/* --- Results screen --- */
.q-results {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 48px;
  box-shadow: var(--shadow-md);
  margin-bottom: 24px;
}
.q-results-head {
  text-align: center;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--gray-100);
  margin-bottom: 32px;
}
.q-results-badge {
  display: inline-block;
  padding: 8px 20px;
  border-radius: 99px;
  background: var(--orange);
  color: var(--white);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.q-results-head h2 {
  color: var(--navy);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin: 0 0 12px;
}
.q-results-head p {
  color: var(--gray-700);
  font-size: 1.05rem;
  margin: 0;
}

.q-axis {
  padding: 24px 28px;
  border-radius: var(--radius-lg);
  margin-bottom: 20px;
  border-left: 6px solid var(--gray-300);
  background: var(--off-white);
  transition: transform var(--transition);
}
.q-axis:hover { transform: translateX(4px); }
.q-axis-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.q-axis-title {
  color: var(--navy);
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0;
  flex: 1;
}
.q-axis-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 99px;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.q-axis-status .dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: currentColor;
}
.q-axis-desc {
  color: var(--gray-700);
  margin: 0 0 10px;
  line-height: 1.6;
}
.q-axis-action {
  background: var(--white);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  margin-top: 12px;
  border: 1px dashed var(--gray-300);
  color: var(--navy);
  font-size: 0.95rem;
}
.q-axis-action strong { color: var(--navy); }

/* Color variants */
.q-axis.green { border-left-color: #22c55e; background: #f0fdf4; }
.q-axis.green .q-axis-status { background: #dcfce7; color: #15803d; }
.q-axis.orange { border-left-color: var(--orange); background: #fff8ea; }
.q-axis.orange .q-axis-status { background: var(--orange-soft); color: var(--orange); }
.q-axis.red { border-left-color: #ef4444; background: #fef2f2; }
.q-axis.red .q-axis-status { background: #fee2e2; color: #b91c1c; }

.q-final-cta {
  text-align: center;
  padding: 36px 24px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  border-radius: var(--radius-xl);
  color: var(--white);
  margin-top: 32px;
  position: relative;
  overflow: hidden;
}
.q-final-cta::before {
  content: "";
  position: absolute;
  top: -60px; right: -60px;
  width: 240px; height: 240px;
  background: radial-gradient(circle, rgba(32, 174, 255, 0.3), transparent 70%);
  pointer-events: none;
}
.q-final-cta h3 {
  color: var(--white);
  font-size: 1.5rem;
  margin: 0 0 12px;
  position: relative;
}
.q-final-cta p {
  color: rgba(255,255,255,0.8);
  margin: 0 0 24px;
  position: relative;
}
.q-final-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  position: relative;
}
.q-callback-form {
  display: none;
  margin-top: 24px;
  background: var(--white);
  color: var(--navy);
  padding: 24px;
  border-radius: var(--radius-md);
  text-align: left;
}
.q-callback-form.show { display: block; }
.q-callback-form h4 {
  color: var(--navy);
  margin: 0 0 16px;
}

/* --- Segmentation intro screen --- */
.q-seg-intro {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 36px 44px;
  box-shadow: var(--shadow-md);
  margin-bottom: 28px;
  text-align: center;
}
.q-seg-intro h2 {
  color: var(--navy);
  font-size: 1.4rem;
  margin: 0 0 8px;
}
.q-seg-intro p {
  color: var(--gray-700);
  margin: 0;
}

/* --- Big TPE warning --- */
.q-note {
  padding: 14px 18px;
  background: var(--orange-soft);
  border-left: 4px solid var(--orange);
  border-radius: var(--radius-sm);
  color: var(--navy);
  font-size: 0.9rem;
  margin-top: 20px;
  line-height: 1.5;
  display: none;
}
.q-note.show { display: block; }

/* --- Success screen --- */
.q-success {
  text-align: center;
  padding: 60px 30px;
}
.q-success-icon {
  width: 96px; height: 96px;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  border-radius: 50%;
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 48px;
  box-shadow: 0 20px 40px rgba(34, 197, 94, 0.35);
}
.q-success h2 {
  color: var(--navy);
  font-size: 2rem;
  margin: 0 0 12px;
}

/* --- Responsive --- */
@media (max-width: 720px) {
  .q-question, .q-results { padding: 28px 24px; }
  .q-form-grid { grid-template-columns: 1fr; }
  .q-progress-inner { padding: 0 16px; gap: 12px; }
  .q-progress-label { font-size: 0.8rem; }
  .q-container { padding: 40px 16px 100px; }
  .q-nav { justify-content: stretch; }
  .q-nav .q-btn { flex: 1; justify-content: center; }
  .q-intro-icon { width: 76px; height: 76px; font-size: 34px; }
}

/* ==========================================================================
   Ajouts — branchement du moteur de diagnostic (rapport riche) & contact
   ==========================================================================
   Mêmes tokens, mêmes rayons, mêmes ombres que ci-dessus : ces classes
   prolongent le style existant, elles n'en ouvrent pas un nouveau.
   ========================================================================== */

/* --- Typographie française (suite de la liste du haut de fichier) --- */
.q-results-summary,
.q-block-sub,
.q-priority-action,
.q-axis-score,
.q-delivery,
.q-consent-benefit,
.q-thanks p,
.q-intro-legal,
.q-field-hint,
.q-form-alert {
  text-wrap: pretty;
}
.q-block-title,
.q-thanks h3 {
  text-wrap: balance;
}

/* --- Accessibilité : la radio est masquée, le focus doit rester visible --- */
.q-option:focus-within {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
}
.q-consent:focus-within {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
}

/* --- Intro : mention RGPD (ex-style en ligne) --- */
.q-intro-legal {
  color: var(--gray-500);
  font-size: 0.9rem;
  max-width: 560px;
  margin: 0 auto 32px;
  line-height: 1.6;
}

/* --- Écran d'envoi --- */
.q-sending-sub { color: var(--gray-700); }

/* --- Champs : aide et erreurs --- */
.q-field-hint {
  color: var(--gray-500);
  font-size: 0.82rem;
  margin-top: 6px;
  line-height: 1.45;
}
.q-field.error .q-field-hint { display: none; }

/* --- Champ piège anti-robot (rendu par renderContact dans js/questionnaire.js) ---
   Volontairement PAS un simple `display: none` : certains robots ignorent les
   champs ainsi masqués, et surtout un vrai visiteur ne doit JAMAIS pouvoir le
   remplir — sa demande partirait alors dans le vide, sans message d'erreur.
   Le champ sort du flux (aucun espace réservé), part hors écran, est
   totalement transparent et ne reçoit aucun clic ; il est aussi hors de l'ordre
   de tabulation (tabindex="-1") et masqué aux lecteurs d'écran (aria-hidden).
   Le décalage vers la gauche ne crée pas de défilement horizontal : en LTR le
   débordement à gauche n'est pas scrollable. */
.q-honeypot {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.q-form-alert {
  background: #fff4f4;
  border: 2px solid #e53935;
  border-radius: var(--radius-md);
  padding: 14px 18px;
  margin-bottom: 20px;
  color: #b91c1c;
  font-size: 0.92rem;
  line-height: 1.55;
}
.q-form-alert strong { color: #b91c1c; }
.q-form-alert ul { margin: 8px 0 0; padding-left: 20px; }

/* --- Consentements --- */
.q-consents { margin-top: 20px; }
/* Le message d'erreur du consentement vit hors d'un .q-field : il ne bénéficie
   pas de la règle `.q-field .err-msg` et redéclare donc son style ici. */
.q-consents > .err-msg {
  display: none;
  color: #e53935;
  font-size: 0.82rem;
  line-height: 1.5;
  margin: -6px 0 12px;
}
.q-consent-legal {
  font-size: 0.85rem;
  color: var(--gray-500);
}

/* Case « Je souhaite être recontacté(e) » : mise en évidence assumée.
   Elle n'est jamais pré-cochée — l'accent est visuel, pas fonctionnel. */
.q-consent-callback {
  background: var(--blue-soft);
  border: 2px solid rgba(32, 174, 255, 0.45);
  padding: 18px 20px;
}
.q-consent-callback:hover {
  background: #d8efff;
  border-color: var(--blue);
}
.q-consent-callback.checked {
  background: #d8efff;
  border-color: var(--blue);
  box-shadow: 0 6px 18px rgba(32, 174, 255, 0.18);
}
.q-consent-callback .q-consent-text strong {
  color: var(--navy);
  font-size: 1.02rem;
}
.q-consent-tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 99px;
  background: var(--orange);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-right: 8px;
  vertical-align: 2px;
}
.q-consent-benefit {
  display: inline-block;
  margin-top: 6px;
  font-size: 0.9rem;
  color: var(--gray-700);
  line-height: 1.55;
}

/* --- Résultats : synthèse globale --- */
.q-results-summary {
  color: var(--gray-700);
  font-size: 1rem;
  margin: 10px 0 0;
  line-height: 1.6;
}
.q-global {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 24px;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  border-left: 6px solid var(--gray-300);
  background: var(--off-white);
  text-align: left;
}
.q-global-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 99px;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.q-global-status .dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: currentColor;
}
.q-global-score {
  color: var(--navy);
  font-weight: 600;
  font-size: 0.92rem;
  white-space: nowrap;
}
.q-global-bar {
  flex: 1;
  min-width: 120px;
  height: 8px;
  background: var(--gray-100);
  border-radius: 99px;
  overflow: hidden;
  display: block;
}
.q-global-fill {
  display: block;
  height: 100%;
  border-radius: 99px;
  background: var(--blue);
}
.q-global.green { border-left-color: #22c55e; background: #f0fdf4; }
.q-global.green .q-global-status { background: #dcfce7; color: #15803d; }
.q-global.green .q-global-fill { background: #22c55e; }
.q-global.orange { border-left-color: var(--orange); background: #fff8ea; }
.q-global.orange .q-global-status { background: var(--orange-soft); color: var(--orange); }
.q-global.orange .q-global-fill { background: var(--orange); }
.q-global.red { border-left-color: #ef4444; background: #fef2f2; }
.q-global.red .q-global-status { background: #fee2e2; color: #b91c1c; }
.q-global.red .q-global-fill { background: #ef4444; }

/* --- Résultats : note d'envoi (discrète et honnête) --- */
.q-delivery {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  line-height: 1.55;
  margin-bottom: 28px;
  border: 1px dashed var(--gray-300);
  background: var(--white);
  color: var(--gray-700);
}
.q-delivery strong { color: var(--navy); }
/* Adresse de contact des notes d'envoi. En --blue elle tombait entre 2,2:1 et
   2,45:1 sur les quatre fonds de note (AA exige 4,5:1) et n'était signalée que
   par la couleur. --navy-light donne 7,05:1 à 7,85:1 et le soulignement rend
   le lien identifiable sans dépendre de la couleur. */
.q-delivery a {
  color: var(--navy-light);
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 600;
}
.q-delivery a:hover,
.q-delivery a:focus-visible { color: var(--navy); }
.q-delivery.ok {
  border-color: #86efac;
  background: #f0fdf4;
}
.q-delivery.fail {
  border-color: var(--orange);
  background: #fff8ea;
}
.q-delivery.fail strong { color: var(--navy); }
/* Exemplaire non envoyé sans que le prospect y soit pour rien : ton informatif
   et calme, pas d'alerte — il n'y a rien à corriger de son côté. */
.q-delivery.limited {
  border-style: solid;
  border-color: rgba(32, 174, 255, 0.45);
  background: var(--blue-soft);
}
.q-delivery.limited strong { color: var(--navy); }
/* Deux notes peuvent se suivre (transmission à CBO + exemplaire du prospect). */
.q-delivery-zone .q-delivery:not(:last-child) { margin-bottom: 12px; }
/* Adresse saisie par le prospect : peut être longue, ne doit pas déborder. */
.q-delivery-email {
  color: var(--navy);
  font-weight: 700;
  overflow-wrap: anywhere;
}
.q-delivery-retry {
  display: block;
  margin-top: 10px;
  padding: 9px 20px;
  font-size: 0.9rem;
}

/* --- Résultats : sections --- */
.q-block { margin-bottom: 36px; }
.q-block:last-of-type { margin-bottom: 0; }
.q-block-title {
  color: var(--navy);
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 6px;
}
.q-block-sub {
  color: var(--gray-500);
  font-size: 0.92rem;
  margin: 0 0 18px;
}

/* --- Résultats : actions prioritaires --- */
.q-priorities {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.q-priority {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 18px 20px;
  background: var(--off-white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-md);
}
.q-priority-rank {
  width: 32px; height: 32px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  font-weight: 700;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.q-priority-body { display: block; }
.q-priority-axis {
  display: block;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}
.q-priority-action {
  display: block;
  color: var(--navy);
  font-size: 0.98rem;
  line-height: 1.55;
}
.q-priorities-empty {
  padding: 18px 20px;
  border-radius: var(--radius-md);
  background: #f0fdf4;
  border: 1px solid #86efac;
  color: var(--navy);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* --- Résultats : détail des axes --- */
.q-axis-consequence { color: var(--gray-500); font-size: 0.95rem; }
.q-axis-actions {
  margin: 8px 0 0;
  padding-left: 20px;
}
.q-axis-actions li {
  margin-bottom: 6px;
  line-height: 1.55;
}
.q-axis-actions li:last-child { margin-bottom: 0; }
.q-axis-score {
  color: var(--gray-500);
  font-size: 0.82rem;
  margin: 12px 0 0;
}

/* --- Résultats : remerciement de fin --- */
.q-thanks {
  text-align: center;
  padding: 32px 24px;
  margin-top: 32px;
  border-top: 1px solid var(--gray-100);
}
.q-thanks-icon {
  width: 56px; height: 56px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: #dcfce7;
  color: #15803d;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
}
/* Le SVG remplit son support par défaut (voir styles.css) : on le borne ici. */
.q-thanks-icon .cbo-icon { width: 28px; height: 28px; }
.q-thanks h3 {
  color: var(--navy);
  font-size: 1.3rem;
  margin: 0 0 10px;
}
.q-thanks p {
  color: var(--gray-700);
  max-width: 520px;
  margin: 0 auto 22px;
  line-height: 1.6;
  font-size: 0.98rem;
}
.q-thanks-back {
  padding: 11px 22px;
  font-size: 0.92rem;
  text-decoration: none;
}

/* --- Écran d'erreur de démarrage : le bouton retour est un lien --- */
.q-nav a.q-btn { text-decoration: none; }

@media (max-width: 720px) {
  .q-global { gap: 12px; }
  .q-global-bar { min-width: 100%; order: 3; }
}

@media (prefers-reduced-motion: reduce) {
  .q-page *,
  .q-page *::before,
  .q-page *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .q-option:hover,
  .q-axis:hover,
  .q-btn-primary:hover:not(:disabled) { transform: none; }
}
