/* ============================================================
   QUIZ — écrans construits un par un
   Écran 1 : formulaire d'entrée (overlay plein écran)
   ============================================================ */

/* ---------- Voile jaune de transition landing → quiz ---------- */
.quiz-veil {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: var(--color-accent);
  transform: translateY(101%);
  pointer-events: none;
}
.quiz-veil.is-sweeping {
  animation: veil-sweep 1050ms var(--ease-expo) forwards;
}
@keyframes veil-sweep {
  0%   { transform: translateY(101%); }
  45%  { transform: translateY(0); }
  100% { transform: translateY(-101%); }
}

/* ---------- Overlay racine ---------- */
.quiz {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: var(--color-bg);
  transform: translateY(100%);
  transition: transform var(--dur-page) var(--ease-expo) 180ms;
  visibility: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.quiz.is-open {
  transform: translateY(0);
  visibility: visible;
}
body.quiz-open { overflow: hidden; }

/* Contenus du quiz : apparition en cascade à l'ouverture / au changement d'écran */
.quiz .reveal-fade {
  opacity: 0;
  transform: translateY(24px);
}
.quiz.is-revealed .quiz-screen.is-active .reveal-fade {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Barre haute du quiz ---------- */
.quiz__topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-5);
  height: var(--header-h);
  padding-inline: var(--gutter);
  background: color-mix(in srgb, var(--color-bg) 92%, transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.quiz__brand img { width: 110px; height: auto; }

.quiz__progress-text {
  margin-left: auto;
  font-size: var(--fs-body-xs);
  font-weight: 500;
  color: var(--color-fg-muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
@media (max-width: 560px) {
  .quiz__progress-text { display: none; }
}

.quiz__close {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-body-s);
  font-weight: 500;
  color: var(--color-fg-muted);
  transition: color var(--dur-fast) var(--ease-out);
}
.quiz__close:hover { color: var(--color-fg); }
.quiz__close svg { width: 14px; height: 14px; }

/* ---------- Barre de progression ---------- */
.quiz__progress {
  position: sticky;
  top: var(--header-h);
  z-index: 5;
  height: 6px;
  background: rgba(10, 10, 10, 0.08);
}
.quiz__progress-fill {
  height: 100%;
  width: 0;
  background: var(--color-accent);
  border-radius: 0 var(--radius-pill) var(--radius-pill) 0;
  transition: width var(--dur-slow) var(--ease-expo);
}

/* ---------- Écran générique ---------- */
.quiz-screen {
  display: none;
  min-height: calc(100svh - var(--header-h) - 2px);
}
.quiz-screen.is-active { display: block; }

/* ============================================================
   ÉCRANS DE TRANSITION (plein écran dark)
   ============================================================ */

.transition-screen {
  min-height: calc(100svh - var(--header-h) - 2px);
  display: flex;
  align-items: center;
  background: var(--color-black);
  color: var(--color-fg-inverse);
}
.transition-screen__inner {
  max-width: 720px;
  margin-inline: auto;
  padding: clamp(3rem, 8vh, 6rem) var(--gutter);
}
.transition-screen__step {
  font-size: var(--fs-body-2xs);
  font-weight: 500;
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--color-fg-inverse-muted);
  margin: 0 0 var(--sp-5);
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
}
.transition-screen__step::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: var(--radius-circle);
  background: var(--color-accent);
}
.transition-screen__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--fs-h2);
  line-height: 1.08;
  letter-spacing: var(--ls-tight);
  color: var(--color-fg-inverse);
  margin: 0 0 var(--sp-5);
}
.transition-screen__title .u-dot { color: var(--color-accent); }
.transition-screen__text {
  font-size: var(--fs-body-xl);
  line-height: var(--lh-relaxed);
  color: var(--color-fg-inverse-muted);
  margin: 0 0 var(--sp-7);
}
.transition-screen__text strong {
  font-weight: 500;
  color: var(--color-fg-inverse);
}
.transition-screen__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--sp-5);
}

/* Bouton secondaire discret (abandon) */
.btn-ghost {
  font-size: var(--fs-body-s);
  font-weight: 500;
  color: var(--color-fg-inverse-muted);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: var(--color-border-inverse);
  transition: color var(--dur-fast) var(--ease-out);
}
.btn-ghost:hover { color: var(--color-fg-inverse); }
.btn-ghost--on-light {
  color: var(--color-fg-muted);
  text-decoration-color: var(--color-border-strong);
}
.btn-ghost--on-light:hover { color: var(--color-fg); }

/* ============================================================
   ÉCRANS QUESTION (fond clair)
   ============================================================ */

.question-screen {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: calc(100svh - var(--header-h) - 2px);
  padding: clamp(2.5rem, 6vh, 4.5rem) 0;
}
.question-screen__inner {
  width: 100%;
  max-width: 980px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.question-screen__bloc {
  font-size: var(--fs-body-2xs);
  font-weight: 500;
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--color-fg-subtle);
  margin: 0 0 var(--sp-4);
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
}
.question-screen__bloc::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: var(--radius-circle);
  background: var(--color-accent);
}
.question-screen__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.7rem, 2.8vw, 2.6rem);
  line-height: 1.12;
  letter-spacing: var(--ls-tight);
  color: var(--color-fg);
  margin: 0 0 var(--sp-3);
  max-width: 26ch;
}
.question-screen__subtitle {
  font-size: var(--fs-body-l);
  line-height: var(--lh-relaxed);
  color: var(--color-fg-muted);
  margin: 0 0 clamp(2rem, 4.5vh, 3rem);
  max-width: 58ch;
}

/* ---------- Large card buttons ---------- */
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-3);
}
.card-grid--2x4 {
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 860px) {
  .card-grid--2x4 { grid-template-columns: repeat(3, 1fr); }
}

/* Champ de précision (option "Autre") */
.other-field {
  display: none;
  margin-top: var(--sp-4);
  max-width: 620px;
}
.other-field.is-visible { display: block; }
.other-field input {
  appearance: none;
  width: 100%;
  font: inherit;
  font-size: var(--fs-body-l);
  color: var(--color-fg);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  transition: border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
.other-field input:focus {
  outline: none;
  border-color: var(--color-fg);
  box-shadow: 0 0 0 3px rgba(252, 205, 3, 0.25);
}

/* Consigne de drag au-dessus de la liste */
.rank-help {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-body-s);
  font-weight: 500;
  color: var(--color-fg-muted);
  background: var(--color-white);
  border: 1px dashed var(--color-border-strong);
  border-radius: var(--radius-pill);
  padding: 0.5rem 0.9rem;
  margin-bottom: var(--sp-4);
}
.rank-help svg { width: 14px; height: 14px; }

.card-option {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--sp-3);
  padding: var(--sp-5);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  text-align: left;
  cursor: pointer;
  transition:
    transform var(--dur-fast) var(--ease-out),
    border-color var(--dur-fast) var(--ease-out),
    box-shadow var(--dur-fast) var(--ease-out);
}
.card-option:hover {
  transform: translateY(-2px);
  border-color: var(--color-border-strong);
  box-shadow: var(--shadow-md);
}
.card-option.is-selected {
  border-color: var(--color-black);
  box-shadow: 0 0 0 1px var(--color-black), var(--shadow-md);
}
.card-option__emoji {
  font-size: 1.6rem;
  line-height: 1;
}
.card-option__label {
  font-size: var(--fs-body-m);
  font-weight: 500;
  color: var(--color-fg);
  line-height: 1.3;
}
.card-option__hint {
  font-size: var(--fs-body-xs);
  color: var(--color-fg-subtle);
  line-height: 1.4;
}

/* Variante colonne (Q.C2) : label + hint sur une ligne */
.card-grid--column { max-width: 620px; }
.card-grid--column .card-option {
  flex-direction: row;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--sp-4);
  padding: var(--sp-4) var(--sp-5);
}

/* ---------- Navigation bas d'écran question ---------- */
.question-screen__nav {
  display: flex;
  align-items: center;
  gap: var(--sp-5);
  margin-top: clamp(2rem, 4.5vh, 3rem);
}
.btn[disabled] {
  opacity: 0.35;
  pointer-events: none;
}
.btn-back {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--fs-body-s);
  font-weight: 500;
  color: var(--color-fg-muted);
  transition: color var(--dur-fast) var(--ease-out);
}
.btn-back:hover { color: var(--color-fg); }
.btn-back svg { width: 14px; height: 14px; }

/* ---------- Drag-and-drop ranking (Q.C3) ---------- */
.rank-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  max-width: 620px;
  touch-action: none; /* le drag gère lui-même le geste */
}
.rank-item {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  padding: var(--sp-4) var(--sp-5);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
  transition: border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
.rank-item:hover {
  border-color: var(--color-border-strong);
  box-shadow: var(--shadow-md);
}
.rank-item.is-dragging {
  cursor: grabbing;
  box-shadow: var(--shadow-lg);
  border-color: var(--color-black);
  z-index: 10;
}
.rank-item__num {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: var(--radius-circle);
  background: var(--color-accent);
  color: var(--color-black);
  font-size: var(--fs-body-xs);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-variant-numeric: tabular-nums;
}
.rank-item__body { flex: 1; }
.rank-item__label {
  display: block;
  font-size: var(--fs-body-m);
  font-weight: 500;
  color: var(--color-fg);
  line-height: 1.3;
}
.rank-item__hint {
  display: block;
  font-size: var(--fs-body-xs);
  color: var(--color-fg-subtle);
  line-height: 1.4;
  margin-top: 2px;
}
.rank-item__handle {
  flex-shrink: 0;
  color: var(--color-fg-subtle);
}
.rank-item__handle svg { width: 16px; height: 16px; display: block; }
.rank-placeholder {
  border: 1px dashed var(--color-border-strong);
  border-radius: var(--radius-md);
  background: rgba(10, 10, 10, 0.03);
}

/* ---------- Dot scale (Q5, Q10, QA2) ---------- */
.dot-scale {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-3);
  max-width: 620px;
}
.dot-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-5) var(--sp-4);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition:
    transform var(--dur-fast) var(--ease-out),
    border-color var(--dur-fast) var(--ease-out),
    box-shadow var(--dur-fast) var(--ease-out);
}
.dot-option:hover {
  transform: translateY(-2px);
  border-color: var(--color-border-strong);
  box-shadow: var(--shadow-md);
}
.dot-option.is-selected {
  border-color: var(--color-black);
  box-shadow: 0 0 0 1px var(--color-black), var(--shadow-md);
}
.dot-option__circle {
  width: 26px;
  height: 26px;
  border-radius: var(--radius-circle);
  border: 2px solid var(--color-border-strong);
  transition: background var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
}
.dot-option.is-selected .dot-option__circle {
  background: var(--color-accent);
  border-color: var(--color-black);
}
.dot-option__label {
  font-size: var(--fs-body-m);
  font-weight: 500;
  color: var(--color-fg);
  text-align: center;
}

/* ---------- Split cards (Q9, Q17) ---------- */
.split-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-3);
  max-width: 860px;
}
@media (min-width: 720px) {
  .split-cards { grid-template-columns: repeat(3, 1fr); }
}
.split-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--sp-3);
  min-height: 190px;
  padding: var(--sp-6) var(--sp-5);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  cursor: pointer;
  text-align: center;
  transition:
    transform var(--dur-fast) var(--ease-out),
    border-color var(--dur-fast) var(--ease-out),
    box-shadow var(--dur-fast) var(--ease-out);
}
.split-option:hover {
  transform: translateY(-2px);
  border-color: var(--color-border-strong);
  box-shadow: var(--shadow-md);
}
.split-option.is-selected {
  border-color: var(--color-black);
  box-shadow: 0 0 0 1px var(--color-black), var(--shadow-md);
}
.split-option__label {
  font-family: var(--font-display);
  font-size: var(--fs-display-s);
  line-height: 1.1;
  letter-spacing: var(--ls-tight);
  color: var(--color-fg);
}
.split-option__hint {
  font-size: var(--fs-body-s);
  color: var(--color-fg-muted);
  line-height: 1.4;
  max-width: 24ch;
}

/* ---------- Slider interactif (Q1, Q7, Q14) ---------- */
.slider-q__emoji {
  font-size: 0.85em;
  margin-right: var(--sp-3);
}
/* Label texte du slider Q7 — Brockmann capitales, petit, interlettré
   (spécificité renforcée pour passer devant .slider-q__value) */
.slider-q p.slider-q__value--text {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1;
  margin-bottom: var(--sp-4);
}
.slider-q {
  max-width: 620px;
}
.slider-q__value {
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 6vw, 5rem);
  line-height: 1;
  color: var(--color-fg);
  margin-bottom: var(--sp-5);
  font-variant-numeric: tabular-nums;
}
.slider-q__value .u-max {
  font-size: 0.4em;
  color: var(--color-fg-subtle);
}
.slider-q input[type="range"] {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  height: 8px;
  border-radius: var(--radius-pill);
  background: linear-gradient(
    to right,
    var(--color-accent) 0%,
    var(--color-accent) var(--slider-pct, 0%),
    rgba(10, 10, 10, 0.10) var(--slider-pct, 0%),
    rgba(10, 10, 10, 0.10) 100%
  );
  outline: none;
  cursor: pointer;
}
.slider-q input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  -webkit-appearance: none;
  width: 28px;
  height: 28px;
  border-radius: var(--radius-circle);
  background: var(--color-black);
  border: 3px solid var(--color-bg);
  box-shadow: var(--shadow-md);
  transition: transform var(--dur-fast) var(--ease-out);
}
.slider-q input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.12); }
.slider-q input[type="range"]::-moz-range-thumb {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-circle);
  background: var(--color-black);
  border: 3px solid var(--color-bg);
  box-shadow: var(--shadow-md);
}
.slider-q__labels {
  display: flex;
  justify-content: space-between;
  gap: var(--sp-4);
  margin-top: var(--sp-3);
  font-size: var(--fs-body-s);
  color: var(--color-fg-muted);
}

/* ============================================================
   ÉCRAN ANALYSE EN COURS
   ============================================================ */
.analyzing {
  min-height: calc(100svh - var(--header-h) - 6px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--sp-5);
  background: var(--color-black);
  color: var(--color-fg-inverse);
}
.analyzing__title {
  font-family: var(--font-display);
  font-size: var(--fs-display-s);
  letter-spacing: var(--ls-tight);
  margin: 0;
}
.analyzing__dots {
  display: flex;
  gap: 8px;
}
.analyzing__dots span {
  width: 10px;
  height: 10px;
  border-radius: var(--radius-circle);
  background: var(--color-accent);
  animation: analyzing-pulse 1s var(--ease-in-out) infinite;
}
.analyzing__dots span:nth-child(2) { animation-delay: 160ms; }
.analyzing__dots span:nth-child(3) { animation-delay: 320ms; }
@keyframes analyzing-pulse {
  0%, 100% { transform: scale(0.6); opacity: 0.4; }
  50% { transform: scale(1); opacity: 1; }
}

/* ============================================================
   PAGE RÉSULTATS (voie statique)
   ============================================================ */
.results-page {
  padding: clamp(2.5rem, 6vh, 4.5rem) 0 clamp(4rem, 8vh, 6rem);
}
.results-page__inner {
  width: 100%;
  max-width: 880px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.results-page__eyebrow {
  font-size: var(--fs-body-2xs);
  font-weight: 500;
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--color-fg-subtle);
  margin: 0 0 var(--sp-4);
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
}
.results-page__eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: var(--radius-circle);
  background: var(--color-accent);
}
.results-page__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--fs-h2);
  line-height: 1.08;
  letter-spacing: var(--ls-tight);
  margin: 0 0 clamp(2rem, 4vh, 3rem);
}
.results-page__title .u-dot { color: var(--color-accent); }

/* Carte score globale */
.score-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: clamp(1.75rem, 3.5vw, 3rem);
  margin-bottom: var(--sp-6);
}
.score-card__top {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--sp-6);
  padding-bottom: var(--sp-5);
  margin-bottom: var(--sp-5);
  border-bottom: 1px solid var(--color-border);
}
.score-card__gauge {
  display: flex;
  align-items: center;
  gap: var(--sp-5);
}
.score-card__ring { width: 108px; height: 108px; flex-shrink: 0; }
.score-card__ring circle { fill: none; stroke-width: 8; }
.score-card__ring .ring-bg { stroke: rgba(10,10,10,0.08); }
.score-card__ring .ring-val {
  stroke: var(--color-accent);
  stroke-linecap: round;
  stroke-dasharray: 264;
  stroke-dashoffset: 264;
  transform: rotate(-90deg);
  transform-origin: center;
  transition: stroke-dashoffset 1400ms var(--ease-expo) 250ms;
}
.score-card__number {
  font-family: var(--font-display);
  font-size: clamp(3.6rem, 6vw, 5rem);
  line-height: 0.9;
}
.score-card__number span { font-size: 0.4em; color: var(--color-fg-subtle); }
.score-card__profile { flex: 1; min-width: 220px; }
.score-card__profile-label {
  font-size: var(--fs-body-2xs);
  font-weight: 500;
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--color-fg-subtle);
  margin: 0 0 var(--sp-2);
}
.score-card__profile-name {
  font-family: var(--font-display);
  font-size: var(--fs-display-s);
  letter-spacing: var(--ls-tight);
  margin: 0;
}
.score-card__profile-name .u-dot { color: var(--color-accent); }

/* Sous-scores */
.pillar-score { padding-block: var(--sp-4); }
.pillar-score + .pillar-score { border-top: 1px solid var(--color-border); }
.pillar-score__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--sp-4);
  margin-bottom: var(--sp-2);
}
.pillar-score__name {
  font-size: var(--fs-body-m);
  font-weight: 500;
  margin: 0;
}
.pillar-score__val {
  font-size: var(--fs-body-s);
  font-weight: 500;
  color: var(--color-fg-muted);
  font-variant-numeric: tabular-nums;
}
.pillar-score__track {
  height: 8px;
  border-radius: var(--radius-pill);
  background: rgba(10,10,10,0.07);
  overflow: hidden;
  margin-bottom: var(--sp-3);
}
.pillar-score__fill {
  height: 100%;
  width: 0;
  border-radius: var(--radius-pill);
  background: var(--color-accent);
  transition: width 1200ms var(--ease-expo) 300ms;
}
.pillar-score__text {
  font-size: var(--fs-body-s);
  line-height: var(--lh-relaxed);
  color: var(--color-fg-muted);
  margin: 0;
  max-width: 68ch;
}

/* Paragraphe de profil */
.results-profile {
  font-size: var(--fs-body-xl);
  line-height: var(--lh-relaxed);
  color: var(--color-fg);
  margin: 0 0 clamp(2.5rem, 5vh, 3.5rem);
  max-width: 62ch;
}

/* Frictions */
.results-frictions__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--fs-display-s);
  letter-spacing: var(--ls-tight);
  margin: 0 0 var(--sp-5);
}
.friction-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: clamp(1.5rem, 2.5vw, 2.25rem);
  margin-bottom: var(--sp-4);
}
.friction-card__num {
  font-size: var(--fs-body-2xs);
  font-weight: 600;
  letter-spacing: var(--ls-wide);
  color: var(--color-fg-subtle);
  margin: 0 0 var(--sp-3);
  text-transform: uppercase;
}
.friction-card__text {
  font-size: var(--fs-body-l);
  line-height: var(--lh-relaxed);
  margin: 0 0 var(--sp-4);
}
.friction-card__figure {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  font-size: var(--fs-body-s);
  line-height: var(--lh-normal);
  color: var(--color-fg-muted);
  background: var(--color-bg);
  border-radius: var(--radius-sm);
  padding: var(--sp-3) var(--sp-4);
  margin: 0 0 var(--sp-4);
}
.friction-card__figure::before {
  content: "";
  flex-shrink: 0;
  width: 7px;
  height: 7px;
  border-radius: var(--radius-circle);
  background: var(--color-accent);
  margin-top: 0.45em;
}
.friction-card__step {
  font-size: var(--fs-body-m);
  line-height: var(--lh-relaxed);
  margin: 0;
}
.friction-card__step strong { font-weight: 600; }

/* CTA final résultats */
.results-cta {
  background: var(--color-black);
  color: var(--color-fg-inverse);
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 4vw, 3.5rem);
  margin-top: clamp(2.5rem, 5vh, 3.5rem);
}
.results-cta__text {
  font-size: var(--fs-body-xl);
  line-height: var(--lh-relaxed);
  color: var(--color-fg-inverse);
  margin: 0 0 var(--sp-6);
  max-width: 56ch;
}
.results-cta__hint {
  font-size: var(--fs-body-s);
  color: var(--color-fg-inverse-muted);
  margin: var(--sp-4) 0 0;
}

/* Bloc "la suite par email" */
.results-next {
  margin-top: clamp(2.5rem, 5vh, 3.5rem);
  padding-top: clamp(2rem, 4vh, 3rem);
  border-top: 1px solid var(--color-border);
}
.results-next__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--fs-display-s);
  letter-spacing: var(--ls-tight);
  margin: 0 0 var(--sp-3);
}
.results-next__text {
  font-size: var(--fs-body-l);
  line-height: var(--lh-relaxed);
  color: var(--color-fg-muted);
  max-width: 58ch;
  margin: 0 0 var(--sp-5);
}
.results-next__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--sp-5);
}

/* ---------- Popup de sortie ---------- */
.exit-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(10, 10, 10, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--gutter);
}
.exit-modal[hidden] { display: none; }
.exit-modal__card {
  background: var(--color-bg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: clamp(2rem, 4vw, 3rem);
  max-width: 560px;
  width: 100%;
}
.exit-modal__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--fs-display-s);
  letter-spacing: var(--ls-tight);
  margin: 0 0 var(--sp-4);
}
.exit-modal__text {
  font-size: var(--fs-body-l);
  line-height: var(--lh-relaxed);
  color: var(--color-fg-muted);
  margin: 0 0 var(--sp-4);
}
.exit-modal__text a {
  color: var(--color-fg);
  text-underline-offset: 3px;
}
.exit-modal__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--sp-5);
  margin-top: var(--sp-5);
}

/* ---------- Impression PDF des résultats ---------- */
@media print {
  .site-header, main, .site-footer, .quiz-veil, .quiz__topbar, .quiz__progress,
  .results-cta, .results-next, .exit-modal, .loader { display: none !important; }
  body { background: #fff; }
  body.quiz-open { overflow: visible; }
  .quiz {
    position: static !important;
    transform: none !important;
    visibility: visible !important;
    overflow: visible !important;
    background: #fff;
  }
  .quiz .reveal-fade { opacity: 1 !important; transform: none !important; }
  .score-card, .friction-card { box-shadow: none; border: 1px solid #ddd; break-inside: avoid; }
  .pillar-score__fill, .score-card__ring .ring-val { transition: none !important; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* ---------- Champ texte libre (Q.C4) ---------- */
.free-text {
  max-width: 620px;
}
.free-text textarea {
  appearance: none;
  width: 100%;
  min-height: 130px;
  resize: vertical;
  font: inherit;
  font-size: var(--fs-body-l);
  line-height: var(--lh-relaxed);
  color: var(--color-fg);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  transition: border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
.free-text textarea::placeholder { color: var(--color-fg-subtle); }
.free-text textarea:hover { border-color: var(--color-border-strong); }
.free-text textarea:focus {
  outline: none;
  border-color: var(--color-fg);
  box-shadow: 0 0 0 3px rgba(252, 205, 3, 0.25);
}

/* ============================================================
   ÉCRAN 1 — FORMULAIRE D'ENTRÉE
   ============================================================ */

.entry {
  display: grid;
  grid-template-columns: 1fr;
  min-height: calc(100svh - var(--header-h));
}
@media (min-width: 960px) {
  .entry { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); }
}

/* Panneau gauche — contexte et réassurance */
.entry__aside {
  background: var(--color-black);
  color: var(--color-fg-inverse);
  padding: clamp(2.5rem, 5vw, 4.5rem) var(--gutter);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--sp-8);
}
@media (max-width: 959px) {
  .entry__aside { padding-block: var(--sp-6); gap: var(--sp-5); }
}

.entry__aside-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--fs-h2);
  line-height: 1.08;
  letter-spacing: var(--ls-tight);
  margin: 0 0 var(--sp-4);
  max-width: 14ch;
}
.entry__aside-title .u-dot { color: var(--color-accent); }
.entry__aside-text {
  font-size: var(--fs-body-l);
  line-height: var(--lh-relaxed);
  color: var(--color-fg-inverse-muted);
  max-width: 40ch;
  margin: 0;
}

.entry__aside-meta {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}
.entry__aside-meta-item {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  font-size: var(--fs-body-s);
  color: var(--color-fg-inverse-muted);
}
.entry__aside-meta-item::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: var(--radius-circle);
  background: var(--color-accent);
  flex-shrink: 0;
}
@media (max-width: 959px) {
  .entry__aside-meta { display: none; }
}

/* Panneau droit — le formulaire */
.entry__form-wrap {
  padding: clamp(2.5rem, 5vw, 4.5rem) var(--gutter);
  display: flex;
  align-items: center;
}
.entry__form {
  width: 100%;
  max-width: 620px;
  margin-inline: auto;
}

.entry__form-title {
  font-family: var(--font-sans);
  font-size: var(--fs-body-xl);
  font-weight: 500;
  margin: 0 0 var(--sp-6);
}

.entry__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-5) var(--sp-5);
}
@media (min-width: 640px) {
  .entry__grid { grid-template-columns: 1fr 1fr; }
  .field--full { grid-column: 1 / -1; }
}

/* ---------- Champs ---------- */
.field { display: flex; flex-direction: column; gap: var(--sp-2); }

.field__label {
  font-size: var(--fs-body-s);
  font-weight: 500;
  color: var(--color-fg);
}
.field__label .u-optional {
  font-weight: 400;
  color: var(--color-fg-subtle);
}

.field__input {
  appearance: none;
  width: 100%;
  font: inherit;
  font-size: var(--fs-body-l);
  color: var(--color-fg);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  transition: border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
.field__input::placeholder { color: var(--color-fg-subtle); }
.field__input:hover { border-color: var(--color-border-strong); }
.field__input:focus {
  outline: none;
  border-color: var(--color-fg);
  box-shadow: 0 0 0 3px rgba(252, 205, 3, 0.25);
}
.field__input[aria-invalid="true"] {
  border-color: #C43D2B;
}
.field__error {
  font-size: var(--fs-body-xs);
  color: #C43D2B;
  min-height: 1em;
  margin: 0;
}

/* ---------- Case RGPD ---------- */
.consent {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  margin-top: var(--sp-5);
  cursor: pointer;
}
.consent input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.consent__box {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  margin-top: 2px;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-xs);
  background: var(--color-white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out);
}
.consent__box svg {
  width: 12px;
  height: 12px;
  color: var(--color-black);
  opacity: 0;
  transform: scale(0.5);
  transition: opacity var(--dur-fast) var(--ease-out), transform var(--dur-med) var(--ease-expo);
}
.consent input:checked + .consent__box {
  background: var(--color-accent);
  border-color: var(--color-accent);
}
.consent input:checked + .consent__box svg {
  opacity: 1;
  transform: scale(1);
}
.consent input:focus-visible + .consent__box {
  outline: 2px solid var(--color-fg);
  outline-offset: 2px;
}
.consent__text {
  font-size: var(--fs-body-s);
  line-height: var(--lh-normal);
  color: var(--color-fg-muted);
}
.consent.is-invalid .consent__box { border-color: #C43D2B; }

.entry__reassure {
  font-size: var(--fs-body-xs);
  line-height: var(--lh-normal);
  color: var(--color-fg-subtle);
  margin: var(--sp-4) 0 0;
}

.entry__submit { margin-top: var(--sp-6); }
