/* mon-test-tdah-quiz — front styles */
.mttq {
  --navy: #1e3a5f;
  --blue: #1E88E5;
  --green: #43A047;
  --orange: #FB8C00;
  --red: #E53935;
  --bg: #F5F7FA;
  --text: #1e293b;
  --muted: #64748b;
  --border: #e2e8f0;

  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  max-width: 720px;
  margin: 0 auto;
  padding: 24px 16px;
  color: var(--text);
  line-height: 1.6;
}

.mttq-noscript {
  background: #fee2e2;
  color: #991b1b;
  padding: 16px;
  border-radius: 8px;
  border: 1px solid #fca5a5;
  text-align: center;
}

/* Boutons */
.mttq-btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: transform .12s, box-shadow .12s;
}
.mttq-btn-primary {
  background: var(--navy);
  color: #fff;
}
.mttq-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0,0,0,.12);
}
.mttq-btn-large {
  padding: 18px 36px;
  font-size: 18px;
}

/* Intro */
.mttq-title {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--navy);
  margin: 0 0 16px;
}
.mttq-lead {
  font-size: 16px;
  color: var(--muted);
  margin-bottom: 24px;
}
.mttq-callout {
  background: var(--bg);
  border-left: 3px solid var(--blue);
  padding: 16px 18px;
  border-radius: 0 8px 8px 0;
  margin-bottom: 28px;
  font-size: 14px;
}
.mttq-callout p { margin: 0; }
.mttq-small { font-size: 12px; color: var(--muted); margin-top: 12px; }

/* Progress */
.mttq-progress {
  margin-bottom: 24px;
}
.mttq-progress-bar {
  width: 8%;
  height: 6px;
  background: linear-gradient(90deg, var(--blue), var(--navy));
  border-radius: 100px;
  transition: width .35s ease-out;
}
.mttq-progress-label {
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  margin-top: 8px;
  letter-spacing: .05em;
  text-transform: uppercase;
}

/* Question */
.mttq-question {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px 24px;
  box-shadow: 0 4px 24px rgba(0,0,0,.06);
}
.mttq-question-text {
  font-size: 19px;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.4;
  margin: 0 0 24px;
}
.mttq-scale {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}
.mttq-scale-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 14px 6px;
  background: var(--bg);
  border: 2px solid transparent;
  border-radius: 10px;
  cursor: pointer;
  font-family: inherit;
  transition: all .15s;
  min-height: 84px;
  justify-content: center;
}
.mttq-scale-btn:hover {
  border-color: var(--blue);
  background: #fff;
  transform: translateY(-2px);
}
.mttq-scale-value {
  font-size: 22px;
  font-weight: 700;
  color: var(--navy);
}
.mttq-scale-label {
  font-size: 11px;
  color: var(--muted);
  text-align: center;
  line-height: 1.2;
}
@media (max-width: 480px) {
  .mttq-scale { grid-template-columns: repeat(5, 1fr); gap: 4px; }
  .mttq-scale-btn { min-height: 72px; padding: 10px 2px; }
  .mttq-scale-value { font-size: 18px; }
  .mttq-scale-label { font-size: 10px; }
}

/* Tip */
.mttq-tip {
  background: #E3F2FD;
  border: 1px solid #BBDEFB;
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 18px;
  font-size: 13px;
  color: #0c4a6e;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.mttq-tip-icon { font-size: 18px; flex-shrink: 0; }
.mttq-tip-text { line-height: 1.4; }

/* Part A summary */
.mttq-part-a-summary {
  text-align: center;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 32px 24px;
}
.mttq-circle {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 120px;
  height: 120px;
  border: 6px solid var(--blue);
  border-radius: 50%;
  margin: 0 auto 20px;
}
.mttq-circle-value { font-size: 48px; font-weight: 800; line-height: 1; }
.mttq-circle-unit { font-size: 18px; font-weight: 500; }
.mttq-part-a-summary h3 { font-size: 20px; margin: 0 0 8px; }
.mttq-part-a-summary p { color: var(--muted); margin-bottom: 24px; font-size: 14px; }

/* Submitting */
.mttq-submitting { text-align: center; padding: 40px 0; }
.mttq-spinner {
  width: 40px; height: 40px;
  margin: 0 auto 16px;
  border: 4px solid var(--border);
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: mttq-spin 1s linear infinite;
}
@keyframes mttq-spin { to { transform: rotate(360deg); } }

/* Error */
.mttq-error {
  text-align: center;
  padding: 24px;
  background: #fee2e2;
  border-radius: 10px;
  color: #991b1b;
}
.mttq-error button {
  margin-left: 12px;
  background: #991b1b;
  color: white;
  border: 0;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
}

/* Results page (shared) */
.mttq-results {
  max-width: 760px;
}
.mttq-hero {
  text-align: center;
  background: var(--bg);
  border-radius: 14px;
  padding: 32px 24px;
  margin-bottom: 28px;
  border-top: 4px solid var(--profile-color, var(--blue));
}
.mttq-hero-badge {
  display: inline-block;
  background: var(--profile-color, var(--blue));
  color: #fff;
  font-weight: 700;
  padding: 8px 24px;
  border-radius: 8px;
  font-size: 14px;
  letter-spacing: .05em;
  margin-bottom: 16px;
}
.mttq-hero-text {
  font-size: 17px;
  color: var(--text);
  max-width: 560px;
  margin: 0 auto 24px;
  line-height: 1.5;
}
.mttq-scores {
  display: flex;
  justify-content: center;
  gap: 28px;
  margin-bottom: 20px;
}
.mttq-score { text-align: center; padding: 0 12px; }
.mttq-score + .mttq-score { border-left: 1px solid var(--border); }
.mttq-score-value { font-size: 32px; font-weight: 800; color: var(--profile-color, var(--navy)); }
.mttq-score-value span { font-size: 16px; font-weight: 400; }
.mttq-score-small { font-size: 18px !important; padding-top: 12px; }
.mttq-score-label { font-size: 11px; color: var(--muted); margin-top: 4px; }

.mttq-progress-static { max-width: 380px; margin: 0 auto; }
.mttq-progress-bg { background: var(--border); border-radius: 100px; height: 8px; overflow: hidden; }
.mttq-progress-fill { height: 100%; border-radius: 100px; }

.mttq-section {
  margin-bottom: 28px;
}
.mttq-section h2 {
  font-size: 20px;
  color: var(--navy);
  margin: 0 0 12px;
}

.mttq-locked {
  background: #fff;
  border: 2px solid var(--navy);
  border-radius: 14px;
  padding: 32px 24px;
  text-align: center;
  margin-bottom: 28px;
}
.mttq-locked-icon { font-size: 40px; margin-bottom: 12px; }
.mttq-locked h2 { font-size: 24px; color: var(--navy); }
.mttq-features {
  text-align: left;
  list-style: none;
  padding: 0;
  margin: 24px auto;
  max-width: 480px;
}
.mttq-features li {
  padding: 6px 0;
  font-size: 14px;
}
.mttq-cta-box {
  background: var(--bg);
  border-radius: 12px;
  padding: 24px;
  margin-top: 20px;
}
.mttq-price { font-size: 36px; font-weight: 800; color: var(--navy); }
.mttq-price-note { font-size: 12px; color: var(--muted); margin-bottom: 16px; }

.mttq-error-inline {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  color: #9a3412;
  padding: 12px;
  border-radius: 8px;
  font-size: 13px;
}

.mttq-disclaimer {
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  font-style: italic;
  margin-top: 32px;
}

.mttq-callout-warning {
  background: #fff7ed;
  border-left-color: var(--orange);
}

/* ── Input fields (firstName + email) ────────────────────────────── */
.mttq-field {
  margin: 16px 0 24px;
  text-align: left;
}
.mttq-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
}
.mttq-optional {
  font-weight: 400;
  color: var(--muted);
  font-size: 12px;
}
.mttq-input {
  width: 100%;
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 15px;
  font-family: inherit;
  color: var(--text);
  outline: none;
  transition: border-color .15s, box-shadow .15s;
  box-sizing: border-box;
}
.mttq-input:focus {
  border-color: var(--blue);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(30, 136, 229, .12);
}
.mttq-hint {
  margin: 6px 0 0;
  font-size: 12px;
  color: var(--muted);
  font-style: italic;
}

/* ── Email capture mid-test ───────────────────────────────────────── */
.mttq-email-capture {
  max-width: 420px;
  margin: 28px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.mttq-email-pitch {
  margin: 0 0 16px;
  font-size: 15px;
  color: var(--navy);
  text-align: center;
}
.mttq-email-error {
  margin: 6px 0 0;
  color: #991b1b;
  font-size: 13px;
}
.mttq-email-captured {
  text-align: center;
}
.mttq-email-ok {
  color: var(--green);
  font-weight: 600;
  margin: 16px 0;
  font-size: 14px;
}

/* Bouton secondaire "Continuer sans email" */
.mttq-link {
  display: inline-block;
  margin-top: 12px;
  padding: 8px 16px;
  background: none;
  border: 0;
  color: var(--muted);
  font-size: 13px;
  cursor: pointer;
  text-decoration: underline;
  font-family: inherit;
}
.mttq-link:hover { color: var(--navy); }

.mttq-btn[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

/* Loading state pour le bouton "Recevoir mon rapport" */
.mttq-buy-loading {
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
  font-style: italic;
  text-align: center;
}

/* ── Page Merci (post-paiement) ──────────────────────────────────── */
.mttq-merci {
  max-width: 640px;
  margin: 60px auto;
  padding: 24px;
}
.mttq-merci-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 48px 32px;
  text-align: center;
  box-shadow: 0 8px 32px rgba(0,0,0,.06);
}
.mttq-merci-card.mttq-merci-ok { border-top: 4px solid var(--green); }
.mttq-merci-card.mttq-merci-warn { border-top: 4px solid var(--orange); }
.mttq-merci-card.mttq-merci-err { border-top: 4px solid var(--red); }
.mttq-merci-icon {
  font-size: 56px;
  margin-bottom: 16px;
  line-height: 1;
}
.mttq-merci h1 {
  font-size: 26px;
  color: var(--navy);
  margin: 0 0 16px;
}
.mttq-merci .mttq-lead {
  font-size: 16px;
  color: var(--text);
  margin: 0 0 16px;
}
.mttq-merci .mttq-hint {
  font-size: 13px;
  color: var(--muted);
  margin: 16px 0 24px;
  font-style: italic;
}
.mttq-merci .mttq-btn { margin-top: 16px; }
