/* diagnostic.css */
:root {
  --ink: #0A0E1A;
  --ink-2: #1a2030;
  --paper: #F5F3EE;
  --paper-2: #EBE8E0;
  --signal: #D4FF4F;
  --line: #D4D0C5;
  --slate: #5B6170;
  --warn: #C44D2C;
  --ok: #2D7A4D;

  --font-h: "Space Grotesk", system-ui, sans-serif;
  --font-b: "Inter", system-ui, sans-serif;
  --font-m: "JetBrains Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-b);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

/* site-header now provided by site.css (.nav / .nav-inner) — replicated in diagnostic.html */
main { max-width: 880px; margin: 0 auto; padding: 24px; }

.diag-hero{
  position: relative;
  /* right+bottom inset so the mockup's 12px signal shadow isn't clipped by
     overflow:hidden (which is kept to contain the drifting background grid). */
  padding: 64px 16px 52px 0;
  overflow: hidden;
}
/* Faint 64px grid à la canon .slide-grid — drifts slowly for a touch of life. */
.diag-hero-grid {
  position: absolute;
  inset: -64px;
  background-image:
    linear-gradient(to right, rgba(91, 97, 112, 0.07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(91, 97, 112, 0.07) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 30%, #000 0%, transparent 78%);
  mask-image: radial-gradient(ellipse 90% 80% at 50% 30%, #000 0%, transparent 78%);
  animation: gridDrift 40s linear infinite;
  pointer-events: none;
}
@keyframes gridDrift {
  from { transform: translate(0, 0); }
  to { transform: translate(64px, 64px); }
}
/* Scoped wrapper · NOT site.css's .hero-inner (that one is a 2-col grid). */
.diag-hero-inner { position: relative; }
.diag-hero-eyebrow {
  font-family: var(--font-m);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slate);
  margin: 0 0 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  background: rgba(212, 255, 79, 0.16);
  border: 1px solid var(--line);
  border-radius: 999px;
}
.diag-hero h1 {
  font-family: var(--font-h);
  font-size: clamp(30px, 5.4vw, 48px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
  max-width: 720px;
}
/* Animated signal underline behind the key phrase — draws in once on load. */
.diag-hero-underline {
  position: relative;
  white-space: nowrap;
}
.diag-hero-underline::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.06em;
  height: 0.32em;
  background: var(--signal);
  z-index: -1;
  transform-origin: left;
  animation: underlineGrow 0.7s cubic-bezier(0.65, 0, 0.35, 1) 0.35s both;
}
@keyframes underlineGrow {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}
.diag-hero .lead {
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink);
  max-width: 620px;
  margin: 0 0 20px;
}
/* 5 axes as small animated badges — a quiet visual hint of the diagnostic scope. */
.diag-hero-axes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  list-style: none;
  padding: 0;
  margin: 0 0 22px;
}
.diag-hero-axes li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-m);
  font-size: 12px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 13px 6px 11px;
  opacity: 0;
  animation: fadeUp 0.45s ease both;
}
.diag-hero-axes li:nth-child(1) { animation-delay: 0.45s; }
.diag-hero-axes li:nth-child(2) { animation-delay: 0.53s; }
.diag-hero-axes li:nth-child(3) { animation-delay: 0.61s; }
.diag-hero-axes li:nth-child(4) { animation-delay: 0.69s; }
.diag-hero-axes li:nth-child(5) { animation-delay: 0.77s; }
.diag-hero-axis-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--dot, var(--signal));
  flex: none;
  animation: dotPulse 2.6s ease-in-out infinite;
}
.diag-hero-axes li:nth-child(2) .diag-hero-axis-dot { animation-delay: 0.3s; }
.diag-hero-axes li:nth-child(3) .diag-hero-axis-dot { animation-delay: 0.6s; }
.diag-hero-axes li:nth-child(4) .diag-hero-axis-dot { animation-delay: 0.9s; }
.diag-hero-axes li:nth-child(5) .diag-hero-axis-dot { animation-delay: 1.2s; }
@keyframes dotPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.35); opacity: 0.7; }
}
.diag-hero .for-who { color: var(--slate); font-size: 14px; margin: 0 0 8px; }
.cta-primary {
  display: inline-block;
  background: var(--signal);
  color: var(--ink);
  padding: 14px 28px;
  border-radius: 8px;
  font-family: var(--font-h);
  font-weight: 600;
  margin-top: 16px;
  border: 1px solid var(--ink);
  box-shadow: 0 2px 0 var(--ink);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}
.cta-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(10, 14, 26, 0.22);
}
.cta-primary:active {
  transform: translateY(-1px);
  box-shadow: 0 2px 0 var(--ink);
}
.cta-hero { font-size: 16px; }

/* ─── Hero 2-col · texte à gauche, aperçu rapport à droite (à la .a-hero-grid) ─── */
.diag-hero-cols {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 56px;
  align-items: center;
}
.diag-hero-text { min-width: 0; }

/* Carte aperçu rapport · fond ink, ombre signal décalée — réplique .a-hero-mockup */
.diag-hero-mockup {
  position: relative;
  background: var(--ink);
  color: var(--paper);
  border-radius: 14px;
  padding: 28px;
  box-shadow: 12px 12px 0 var(--signal);
  opacity: 0;
  transform: scale(0.96);
  animation: mockupReveal 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.5s both;
}
/* Texture grille 32px à l'intérieur de la carte (comme .a-hero-mockup::before) */
.diag-hero-mockup::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 14px;
  background-image:
    linear-gradient(rgba(245, 243, 238, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245, 243, 238, 0.045) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}
@keyframes mockupReveal {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}
.diag-hero-mockup-inner { position: relative; z-index: 1; }
.diag-hero-mockup-tag {
  font-family: var(--font-m);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--signal);
}
.diag-hero-mockup-h {
  font-family: var(--font-h);
  font-weight: 700;
  font-size: 21px;
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin: 8px 0 18px;
}
.diag-hero-mockup-body {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(245, 243, 238, 0.14);
}
.diag-hero-radar { flex: none; width: 124px; height: 124px; }
.diag-hero-mockup-score { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 5px; }
.diag-hero-mockup-score-v {
  font-family: var(--font-h);
  font-weight: 700;
  font-size: 46px;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--signal);
}
.diag-hero-mockup-score-m { font-family: var(--font-m); font-size: 14px; color: rgba(245, 243, 238, 0.6); }
.diag-hero-mockup-score-l {
  flex-basis: 100%;
  font-family: var(--font-m);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(245, 243, 238, 0.55);
  margin-top: 6px;
}
.diag-hero-mockup-recos { padding: 14px 0 4px; }
.diag-hero-mockup-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 0;
  border-bottom: 1px solid rgba(245, 243, 238, 0.1);
  font-family: var(--font-m);
  font-size: 11px;
  letter-spacing: 0.02em;
}
.diag-hero-mockup-line:last-child { border-bottom: none; }
.diag-hero-mockup-line span:last-child { color: var(--signal); flex: none; }
.diag-hero-mockup-foot {
  margin-top: 10px;
  padding-top: 14px;
  border-top: 1px solid rgba(245, 243, 238, 0.18);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--font-m);
  font-size: 9.5px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: rgba(245, 243, 238, 0.55);
}

/* ─── Bandeau de réassurance · pleine largeur, fond ink (à la .a-trust) ─── */
.diag-trust {
  background: var(--ink);
  color: var(--paper);
  padding: 16px 24px;
  /* full-bleed hors du main max-width:880px */
  margin: 0 calc(50% - 50vw);
}
.diag-trust-row {
  display: flex;
  justify-content: center;
  gap: 14px 32px;
  flex-wrap: wrap;
  font-family: var(--font-m);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.9;
}
.diag-trust-row span { display: inline-flex; align-items: center; gap: 8px; }
.diag-trust-row .tk {
  width: 7px;
  height: 7px;
  background: var(--signal);
  border-radius: 50%;
  flex: none;
  animation: dotPulse 2.6s ease-in-out infinite;
}
.diag-trust-row span:nth-child(2) .tk { animation-delay: 0.3s; }
.diag-trust-row span:nth-child(3) .tk { animation-delay: 0.6s; }
.diag-trust-row span:nth-child(4) .tk { animation-delay: 0.9s; }
.diag-trust-row span:nth-child(5) .tk { animation-delay: 1.2s; }

.benefits, .how-it-works, .diag-faq {
  padding: 40px 0;
  border-top: 1px solid var(--line);
}
.diag-faq { padding: 40px 0; }

/* ─── "Ce que vous découvrirez" · grille de cartes avec icônes ─── */
.benefits h2, .how-it-works h2 {
  font-family: var(--font-h);
  font-size: clamp(24px, 3vw, 30px);
  margin: 0 0 24px;
}
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.benefit-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px 18px;
  font-size: 15px;
  line-height: 1.5;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.benefit-card:hover {
  transform: translateY(-3px);
  border-color: var(--ink);
  box-shadow: 0 6px 18px rgba(10, 14, 26, 0.08);
}
.benefit-card p { margin: 0; }
.benefit-icon {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: rgba(212, 255, 79, 0.22);
  border: 1px solid var(--line);
  color: var(--ink);
}

/* ─── "Comment ça marche" · 3 cartes numérotées + texture grille de fond ─── */
.how-it-works {
  position: relative;
  /* full-bleed pour porter la texture grille de bord à bord */
  margin: 0 calc(50% - 50vw);
  padding: 56px calc(50vw - 50%);
  background: var(--paper-2);
  overflow: hidden;
}
/* Texture grille canon 64px (style .slide-grid) — statique, faible */
.how-it-works-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(91, 97, 112, 0.07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(91, 97, 112, 0.07) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 80% 75% at 50% 45%, #000 0%, transparent 82%);
  mask-image: radial-gradient(ellipse 80% 75% at 50% 45%, #000 0%, transparent 82%);
  pointer-events: none;
}
.how-it-works-inner { position: relative; max-width: 880px; margin: 0 auto; }
.how-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.how-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px 22px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.how-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 22px rgba(10, 14, 26, 0.1);
}
.how-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.how-card-num {
  font-family: var(--font-m);
  font-weight: 600;
  font-size: 24px;
  letter-spacing: 0.02em;
  color: var(--ink);
  position: relative;
  padding-bottom: 4px;
}
.how-card-num::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 26px;
  height: 4px;
  background: var(--signal);
}
.how-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  color: var(--ink);
}
.how-card h3 {
  font-family: var(--font-h);
  font-weight: 600;
  font-size: 18px;
  line-height: 1.25;
  letter-spacing: -0.015em;
  margin: 0 0 8px;
}
.how-card p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--slate);
  margin: 0;
}

.quiz-zone { padding: 32px 0; min-height: 400px; }
.quiz-zone .loading {
  text-align: center;
  color: var(--slate);
  font-family: var(--font-m);
  padding: 80px 20px;
}

.diag-faq h2 { font-family: var(--font-h); font-size: clamp(24px, 3vw, 30px); margin: 0 0 20px; }
.diag-faq details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-bottom: 10px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.diag-faq details:hover { border-color: var(--slate); }
.diag-faq details[open] {
  border-color: var(--ink);
  box-shadow: 0 4px 16px rgba(10, 14, 26, 0.06);
}
.diag-faq summary {
  font-family: var(--font-h);
  font-weight: 600;
  font-size: 16px;
  padding: 18px 22px;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.diag-faq summary::-webkit-details-marker { display: none; }
.diag-faq summary::after {
  content: "+";
  font-family: var(--font-m);
  font-size: 22px;
  font-weight: 400;
  color: var(--slate);
  flex-shrink: 0;
  line-height: 1;
  transition: color 0.15s ease;
}
.diag-faq details[open] summary::after { content: "−"; color: var(--ink); }
.diag-faq details p {
  margin: 0;
  padding: 0 22px 20px;
  line-height: 1.6;
  color: var(--slate);
  font-size: 15px;
}

/* site-footer now provided by site.css (.footer / .footer-top / etc.) — replicated in diagnostic.html */

/* Quiz app styles */
.quiz-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 36px 32px;
  max-width: 640px;
  margin: 0 auto;
  box-shadow: 0 1px 2px rgba(10, 14, 26, 0.04), 0 12px 32px rgba(10, 14, 26, 0.08);
}
.quiz-intro {
  font-size: 14px;
  line-height: 1.55;
  color: var(--slate);
  margin: 0 0 24px;
}
.quiz-progress {
  height: 6px;
  background: var(--paper-2);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 24px;
}
.quiz-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #b8e636, var(--signal));
  border-radius: 3px;
  transition: width 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}
.quiz-question {
  font-family: var(--font-h);
  font-size: 23px;
  line-height: 1.32;
  letter-spacing: -0.01em;
  margin: 14px 0 24px;
}
.likert-options, .qcm-options {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.option-btn {
  background: #fff;
  border: 1.5px solid var(--line);
  padding: 15px 20px;
  border-radius: 9px;
  text-align: left;
  font-family: var(--font-b);
  font-size: 15px;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease,
    transform 0.15s ease, box-shadow 0.15s ease;
}
.option-btn:hover {
  border-color: var(--ink);
  transform: translateX(4px);
  box-shadow: -3px 3px 0 rgba(10, 14, 26, 0.08);
}
.option-btn.selected {
  border-color: var(--ink);
  background: rgba(212, 255, 79, 0.22);
  box-shadow: inset 3px 0 0 var(--signal);
  font-weight: 500;
}
/* Sector picker · each row gets an arrow that slides on hover. */
.sector-options { gap: 10px; }
.sector-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-weight: 500;
}
.sector-btn-label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.sector-arrow {
  font-family: var(--font-h);
  color: var(--line);
  flex: none;
  transition: transform 0.18s ease, color 0.18s ease;
}
.sector-btn:hover .sector-arrow {
  color: var(--ink);
  transform: translateX(5px);
}

/* Inline geometric icons · sector picker + axes. Single-stroke, currentColor,
   matching the Mark logo style. Muted by default, ink on hover/active. */
.diag-icon { display: block; }
.sector-icon {
  display: inline-flex;
  flex: none;
  color: var(--slate);
  transition: color 0.18s ease, transform 0.18s ease;
}
.sector-btn:hover .sector-icon,
.sector-btn.selected .sector-icon {
  color: var(--ink);
}
.sector-btn:hover .sector-icon { transform: translateX(2px); }
.quiz-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 28px;
}
.btn-prev, .btn-next {
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--ink);
  padding: 12px 24px;
  border-radius: 7px;
  font-family: var(--font-h);
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}
.btn-next:not(:disabled):hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 14px rgba(10, 14, 26, 0.25);
}
.btn-prev {
  background: transparent;
  color: var(--slate);
  border-color: transparent;
}
.btn-prev:hover { color: var(--ink); transform: translateX(-3px); }
.btn-next:disabled { opacity: 0.35; cursor: not-allowed; }

/* Score preview · dopamine moment */
.score-preview {
  text-align: center;
  padding: 44px 32px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  max-width: 640px;
  margin: 0 auto;
  box-shadow: 0 1px 2px rgba(10, 14, 26, 0.04), 0 12px 32px rgba(10, 14, 26, 0.08);
}
.score-big {
  font-family: var(--font-h);
  font-size: 76px;
  font-weight: 700;
  line-height: 1;
  color: var(--ink);
  margin: 12px 0;
  letter-spacing: -0.03em;
}
.blurred {
  filter: blur(8px);
  user-select: none;
  pointer-events: none;
  opacity: 0.4;
}

/* Circular score ring · report header */
.score-ring {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 8px auto 4px;
}
.score-ring svg { display: block; }
.score-ring-label {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
}
.score-ring-value {
  font-family: var(--font-h);
  font-size: 52px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.03em;
}
.score-ring-max {
  font-family: var(--font-m);
  font-size: 13px;
  color: var(--slate);
  margin-top: 4px;
}

/* Email gate */
.email-gate {
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: 12px;
  padding: 32px 24px;
  margin: 32px auto;
  max-width: 480px;
}
.email-gate input[type="email"], .email-gate input[type="text"] {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-family: var(--font-b);
  font-size: 15px;
  margin: 8px 0;
}
.email-gate label {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin: 12px 0;
  font-size: 13px;
  color: var(--slate);
}
/* /privacy link · stands out from the muted consent text */
.email-gate .privacy-link {
  color: var(--ink);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

/* Report */
.report { padding: 24px 0; }

/* Report header · score ring centred */
.report-hero { text-align: center; padding: 8px 0 4px; }
.report-eyebrow {
  font-family: var(--font-m);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--slate);
  margin: 0 0 8px;
}
.report-score-caption {
  font-size: 14px;
  color: var(--slate);
  margin: 8px 0 0;
}

/* Radar · the radar lives in its own card with generous vertical padding so
   the 5 axis labels never touch the Forces card above or the Benchmark card
   below. The inner .radar-canvas carries the JSX-driven pixel height. */
.radar-section {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px 8px 32px;
  margin: 28px 0;
}
.radar-title {
  font-family: var(--font-m);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--slate);
  text-align: center;
  margin: 0 0 8px;
}
.radar-canvas {
  width: 100%;
  height: 400px;
}

.recommendation-card {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--signal);
  padding: 18px 22px;
  margin: 12px 0;
  border-radius: 8px;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}
.recommendation-card:hover {
  transform: translateX(3px);
  box-shadow: -3px 4px 14px rgba(10, 14, 26, 0.08);
}
.recommendation-card .reco-title {
  display: flex;
  align-items: flex-start;
  gap: 11px;
}
.recommendation-card .reco-icon {
  display: inline-flex;
  flex: none;
  color: var(--ink);
  margin-top: 1px;
}
.recommendation-card .reco-meta {
  font-family: var(--font-m);
  font-size: 12px;
  color: var(--slate);
  margin-top: 6px;
}

/* B4 · Recommendations cascade — each card fades+slides up with an
   incremental 0.1s delay so the list reveals one card at a time. */
.reco-cascade > .recommendation-card {
  opacity: 0;
  animation: recoCascade 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.reco-cascade > .recommendation-card:nth-child(1) { animation-delay: 0.30s; }
.reco-cascade > .recommendation-card:nth-child(2) { animation-delay: 0.40s; }
.reco-cascade > .recommendation-card:nth-child(3) { animation-delay: 0.50s; }
.reco-cascade > .recommendation-card:nth-child(4) { animation-delay: 0.60s; }
.reco-cascade > .recommendation-card:nth-child(5) { animation-delay: 0.70s; }
.reco-cascade > .recommendation-card:nth-child(6) { animation-delay: 0.80s; }
.reco-cascade > .recommendation-card:nth-child(7) { animation-delay: 0.90s; }
@keyframes recoCascade {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Forces section */
.forces-section {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px;
  margin: 24px 0;
}
.forces-section h2 {
  font-family: var(--font-h);
  font-size: 22px;
  margin: 0 0 12px;
}
.forces-section p { font-size: 14px; line-height: 1.6; color: var(--slate); margin: 0; }
.force-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  line-height: 1.6;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.force-item:last-child { border-bottom: none; }
.force-icon {
  display: inline-flex;
  flex: none;
  color: var(--ink);
  margin-top: 2px;
}

/* Trust block · honest differentiators only */
.trust-block {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px;
  margin: 24px 0 0;
}
.trust-block h2 {
  font-family: var(--font-h);
  font-size: 20px;
  margin: 0 0 16px;
  color: var(--ink);
}
.trust-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.trust-list li {
  font-size: 14px;
  line-height: 1.6;
  padding: 10px 0 10px 24px;
  position: relative;
  border-bottom: 1px solid var(--line);
}
.trust-list li:last-child { border-bottom: none; }
.trust-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--ok);
  font-weight: 700;
}
.founder-signature {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.founder-signature p {
  font-family: var(--font-m);
  font-size: 13px;
  color: var(--slate);
  margin: 0;
}

/* CTA section · inline Cal.com booking calendar embedded in the report. */
.cta-section {
  margin-top: 24px;
  padding: 32px 24px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 12px;
}
.cta-reassurance {
  font-family: var(--font-m);
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--signal);
  margin: 4px 0 0;
}
/* The Cal embed renders a white booking iframe — wrap it on a paper card so it
   sits cleanly against the dark CTA section. */
.cal-inline-wrap {
  margin: 20px auto 0;
  max-width: 720px;
  background: var(--paper);
  border-radius: 12px;
  padding: 8px;
  min-height: 540px;
}
.cal-inline-wrap #cal-inline-container {
  background: var(--paper);
}
.cal-inline-fallback {
  font-size: 14px;
  color: var(--slate);
  text-align: center;
  margin: 16px 8px;
}
.cal-inline-fallback a {
  color: var(--ink);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Quiz progression counter */
.quiz-counter {
  font-family: var(--font-m);
  font-size: 12px;
  color: var(--slate);
  margin: 0 0 8px;
  letter-spacing: 0.04em;
}

/* Tablette · le hero passe en colonne unique, le mockup descend sous le texte */
@media (max-width: 880px) {
  .diag-hero-cols {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .diag-hero-mockup { box-shadow: 9px 9px 0 var(--signal); }
  .benefits-grid { grid-template-columns: repeat(2, 1fr); }
  .how-cards { grid-template-columns: 1fr; }
}

/* Mobile */
@media (max-width: 640px) {
  .diag-hero{ padding: 44px 10px 40px 0; }
  .diag-hero h1 { font-size: 29px; }
  .diag-hero-underline { white-space: normal; }
  .diag-hero-cols { gap: 32px; }
  .diag-hero-mockup { padding: 22px; box-shadow: 7px 7px 0 var(--signal); }
  .diag-hero-mockup-body { flex-direction: column; align-items: flex-start; gap: 10px; }
  .diag-hero-mockup-score-l { margin-top: 2px; }
  .diag-trust { padding: 14px 18px; }
  .diag-trust-row { gap: 10px 20px; font-size: 11px; }
  .benefits-grid { grid-template-columns: 1fr; }
  .how-it-works { padding: 44px 24px; }
  .quiz-card { padding: 24px 18px; }
  .quiz-question { font-size: 20px; }
  .score-preview { padding: 32px 20px; }
  .score-big { font-size: 58px; }
  .radar-section { padding: 20px 4px 28px; }
}

/* Small viewport · radar shrinks so labels don't overflow the 375px screen.
   The JSX inline height (useRadarHeight) drives the rendered SVG; this keeps
   the no-JS / pre-hydration fallback in sync. */
@media (max-width: 480px) {
  .radar-canvas { height: 320px; }
  .score-ring svg { width: 168px; height: 168px; }
  .score-ring-value { font-size: 44px; }
}

/* B3 · Radar progressive draw — the radar container scales + fades in just
   before the Recharts <Radar> draws itself (animationBegin 300ms in JSX). */
.radar-canvas-anim {
  transform-origin: center;
  animation: radarReveal 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.12s both;
}
@keyframes radarReveal {
  from { opacity: 0; transform: scale(0.92); }
  to { opacity: 1; transform: scale(1); }
}

/* B5 · End-of-quiz mini-celebration — a sober checkmark that draws itself.
   The circle traces first, then the tick. No confetti — Stripe/Linear style. */
.success-check {
  display: block;
  margin: 0 auto 16px;
}
.success-check-circle {
  stroke: var(--ok);
  stroke-width: 3;
  stroke-dasharray: 145;
  stroke-dashoffset: 145;
  animation: checkCircle 0.5s ease-out 0.05s forwards;
}
.success-check-mark {
  stroke: var(--ok);
  stroke-width: 3.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 40;
  stroke-dashoffset: 40;
  animation: checkMark 0.4s cubic-bezier(0.65, 0, 0.45, 1) 0.5s forwards;
}
@keyframes checkCircle { to { stroke-dashoffset: 0; } }
@keyframes checkMark { to { stroke-dashoffset: 0; } }

/* B6 · Question transitions slide+fade — the incoming card slides in from the
   right (forward) or left (backward), fading at the same time. ~250ms, subtle.
   The card remounts on each question (React key) so the entry re-runs. */
.q-enter-next { animation: qEnterNext 0.25s cubic-bezier(0.22, 1, 0.36, 1) both; }
.q-enter-prev { animation: qEnterPrev 0.25s cubic-bezier(0.22, 1, 0.36, 1) both; }
@keyframes qEnterNext {
  from { opacity: 0; transform: translateX(26px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes qEnterPrev {
  from { opacity: 0; transform: translateX(-26px); }
  to { opacity: 1; transform: translateX(0); }
}

/* Respect users who prefer reduced motion — kill the ambient + entry
   animations. JS-driven count-ups (useCountUp) snap to final value via
   prefersReducedMotion() in diagnostic.jsx. */
@media (prefers-reduced-motion: reduce) {
  .diag-hero-grid,
  .diag-hero-axis-dot,
  .diag-hero-underline::after,
  .diag-hero-mockup,
  .diag-trust-row .tk,
  .fade-up,
  .report-staggered > section,
  .report-staggered > p,
  .reco-cascade > .recommendation-card,
  .radar-canvas-anim,
  .q-enter-next,
  .q-enter-prev {
    animation: none !important;
  }
  .diag-hero-mockup { opacity: 1 !important; transform: none !important; }
  .report-staggered > section,
  .report-staggered > p,
  .diag-hero-axes li,
  .reco-cascade > .recommendation-card { opacity: 1 !important; }
  .radar-canvas-anim { opacity: 1 !important; transform: none !important; }
  .q-enter-next,
  .q-enter-prev { opacity: 1 !important; transform: none !important; }
  .diag-hero-underline::after { transform: scaleX(1); }
  /* B5 · checkmark drawn instantly (no stroke trace). */
  .success-check-circle,
  .success-check-mark { stroke-dashoffset: 0 !important; animation: none !important; }
}

/* Animations */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp 0.4s ease both; }

/* Report sections fade staggered */
.report-staggered > section { animation: fadeUp 0.5s ease both; opacity: 0; }
.report-staggered > section:nth-child(1) { animation-delay: 0.0s; }
.report-staggered > section:nth-child(2) { animation-delay: 0.12s; }
.report-staggered > section:nth-child(3) { animation-delay: 0.24s; }
.report-staggered > section:nth-child(4) { animation-delay: 0.36s; }
.report-staggered > section:nth-child(5) { animation-delay: 0.48s; }
.report-staggered > section:nth-child(6) { animation-delay: 0.6s; }
.report-staggered > section:nth-child(7) { animation-delay: 0.72s; }
.report-staggered > section:nth-child(8) { animation-delay: 0.84s; }
.report-staggered > p { animation: fadeUp 0.5s ease both; animation-delay: 0.96s; opacity: 0; }
