/* ════════════════════════════════════════════════════════════════════
   SUCE — feuille de style
   Palette : encre noire, rouge institutionnel, fond nacré animé.
   ════════════════════════════════════════════════════════════════════ */

:root {
  --ink: #0e0e10;
  --ink-soft: #3a3a40;
  --ink-mute: #77767d;
  --red: #b0121b;
  --red-deep: #8a0c13;
  --paper: #f6f3ee;
  --line: rgba(14, 14, 16, 0.14);
  --card: rgba(255, 255, 255, 0.55);
  --serif: "Cormorant Garamond", "Times New Roman", Georgia, serif;
  --sans: "Inter", -apple-system, "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in: cubic-bezier(0.64, 0, 0.78, 0);
}

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

html, body { height: 100%; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ─── Fond nacré : couches de dégradés irisés qui dérivent lentement ─── */
.nacre {
  position: fixed;
  inset: -20%;
  z-index: -2;
  background:
    radial-gradient(40% 35% at 20% 25%, rgba(255, 223, 230, 0.85), transparent 70%),
    radial-gradient(35% 40% at 80% 20%, rgba(214, 232, 255, 0.85), transparent 70%),
    radial-gradient(45% 40% at 70% 80%, rgba(233, 226, 255, 0.8), transparent 70%),
    radial-gradient(40% 45% at 15% 85%, rgba(220, 247, 238, 0.75), transparent 70%),
    radial-gradient(60% 60% at 50% 50%, rgba(255, 250, 240, 0.9), transparent 80%),
    linear-gradient(135deg, #f8f4ef 0%, #f1eef4 50%, #f5f1ea 100%);
  filter: saturate(1.05);
  animation: drift 28s ease-in-out infinite alternate;
}

@keyframes drift {
  0%   { transform: translate3d(0, 0, 0) rotate(0deg) scale(1); }
  50%  { transform: translate3d(-3%, 2%, 0) rotate(4deg) scale(1.05); }
  100% { transform: translate3d(2%, -3%, 0) rotate(-3deg) scale(1.02); }
}

/* Grain léger pour l'aspect papier */
.grain {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.08;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* ─── Barre supérieure ─── */
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px clamp(16px, 5vw, 64px);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--line);
}
.mark {
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  transition: opacity 0.3s;
}
.mark:hover { opacity: 0.6; }
.mark:focus-visible { outline: 2px solid var(--red); outline-offset: 4px; }
.mark span { color: var(--red); margin: 0 0.25em; }

/* ─── Écrans ─── */
main {
  flex: 1;
  position: relative;
  display: grid;
}

.screen {
  grid-area: 1 / 1;
  display: none;
  padding: clamp(32px, 6vw, 80px) clamp(16px, 5vw, 64px);
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
}
.screen.is-active { display: flex; }
.screen.is-leaving { display: flex; animation: screenOut 0.6s var(--ease-in) forwards; pointer-events: none; }
.screen.is-entering { animation: screenIn 0.9s var(--ease) both; }

@keyframes screenOut {
  to { opacity: 0; transform: translateY(-24px); filter: blur(6px); }
}
@keyframes screenIn {
  from { opacity: 0; transform: translateY(28px); filter: blur(6px); }
  to   { opacity: 1; transform: none; filter: none; }
}

/* ─── Accueil ─── */
#screen-intro {
  align-items: center;
  justify-content: space-between;
  gap: clamp(32px, 6vw, 96px);
  flex-wrap: wrap;
}

.title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(54px, 10.5vw, 148px);
  line-height: 0.92;
  letter-spacing: -0.02em;
  color: var(--ink);
  display: flex;
  flex-direction: column;
}
.title .line {
  display: block;
  opacity: 0;
  transform: translateY(0.35em);
  animation: lineIn 1.1s var(--ease) forwards;
}
.title .line:nth-child(1) { animation-delay: 0.10s; }
.title .line:nth-child(2) { animation-delay: 0.22s; }
.title .line:nth-child(3) { animation-delay: 0.34s; }
.title .line:nth-child(4) { animation-delay: 0.46s; }
.title .line:nth-child(5) { animation-delay: 0.58s; }

.title .line-small {
  font-style: italic;
  font-weight: 400;
  font-size: 0.42em;
  line-height: 1.3;
  color: var(--ink-soft);
  padding-left: 0.12em;
}
.title .initial { color: var(--red); }

@keyframes lineIn {
  to { opacity: 1; transform: none; }
}

.intro-side {
  max-width: 420px;
  flex: 1 1 300px;
  opacity: 0;
  animation: lineIn 1.1s var(--ease) 0.85s forwards;
}
.kicker {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--red);
  font-weight: 600;
  margin-bottom: 18px;
}
.pitch {
  font-size: clamp(22px, 2.3vw, 30px);
  font-weight: 300;
  line-height: 1.3;
  letter-spacing: -0.015em;
  margin-bottom: 36px;
}
.btn-link {
  display: block;
  margin-top: 18px;
  background: none;
  border: none;
  padding: 4px 0;
  font-family: var(--sans);
  font-size: 14px;
  color: var(--ink-soft);
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-underline-offset: 5px;
  transition: color 0.3s, text-decoration-color 0.3s;
}
.btn-link:hover { color: var(--red); text-decoration-color: var(--red); }
.btn-link:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }

.fineprint {
  margin-top: 18px;
  font-size: 12px;
  color: var(--ink-mute);
  letter-spacing: 0.02em;
}

/* ─── Boutons ─── */
.btn {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.01em;
  border-radius: 999px;
  padding: 17px 30px;
  cursor: pointer;
  border: 1px solid var(--ink);
  transition: transform 0.35s var(--ease), background 0.35s var(--ease), color 0.35s var(--ease), box-shadow 0.35s var(--ease);
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.btn-primary {
  background: var(--ink);
  color: #fff;
  box-shadow: 0 10px 30px -12px rgba(14, 14, 16, 0.5);
}
.btn-primary:hover {
  background: var(--red);
  border-color: var(--red);
  transform: translateY(-2px);
  box-shadow: 0 16px 36px -14px rgba(176, 18, 27, 0.6);
}
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: rgba(14, 14, 16, 0.06); }
.btn-arrow { transition: transform 0.35s var(--ease); }
.btn:hover .btn-arrow { transform: translateX(5px); }
.btn:focus-visible, .answer:focus-visible, .btn-back:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

/* ─── Questionnaire ─── */
#screen-quiz {
  flex-direction: column;
  max-width: 820px;
}
.quiz-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}
.btn-back {
  background: none;
  border: none;
  font-family: var(--sans);
  font-size: 13px;
  color: var(--ink-soft);
  cursor: pointer;
  padding: 6px 0;
  transition: color 0.3s, opacity 0.3s;
}
.btn-back:hover { color: var(--red); }
.btn-back[disabled] { opacity: 0; pointer-events: none; }
.counter {
  font-family: var(--serif);
  font-size: 20px;
  font-style: italic;
  color: var(--ink-soft);
}
.progress {
  height: 2px;
  background: var(--line);
  overflow: hidden;
  margin-bottom: clamp(36px, 6vw, 64px);
}
.progress-bar {
  height: 100%;
  width: 0;
  background: var(--red);
  transition: width 0.8s var(--ease);
}

.card-stage { perspective: 1400px; }
.card { will-change: transform, opacity, filter; }
.card.out-next { animation: cardOutNext 0.45s var(--ease-in) forwards; }
.card.in-next  { animation: cardInNext 0.75s var(--ease) both; }
.card.out-prev { animation: cardOutPrev 0.45s var(--ease-in) forwards; }
.card.in-prev  { animation: cardInPrev 0.75s var(--ease) both; }

@keyframes cardOutNext { to   { opacity: 0; transform: translateX(-60px) rotateY(8deg); filter: blur(8px); } }
@keyframes cardInNext  { from { opacity: 0; transform: translateX(60px) rotateY(-8deg); filter: blur(8px); } }
@keyframes cardOutPrev { to   { opacity: 0; transform: translateX(60px) rotateY(-8deg); filter: blur(8px); } }
@keyframes cardInPrev  { from { opacity: 0; transform: translateX(-60px) rotateY(8deg); filter: blur(8px); } }

.q-index {
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--red);
  font-weight: 600;
  margin-bottom: 18px;
}
.q-text {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(32px, 4.6vw, 54px);
  line-height: 1.05;
  letter-spacing: -0.015em;
  margin-bottom: 14px;
}
.q-help {
  font-size: 15px;
  color: var(--ink-mute);
  margin-bottom: 8px;
  min-height: 1em;
}
.answers {
  list-style: none;
  margin-top: 32px;
  display: grid;
  gap: 12px;
}
.answers li {
  opacity: 0;
  animation: answerIn 0.6s var(--ease) forwards;
}
@keyframes answerIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}
.answer {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 18px;
  text-align: left;
  padding: 18px 22px;
  font-family: var(--sans);
  font-size: 16px;
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  cursor: pointer;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease), transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.answer:hover {
  border-color: var(--ink);
  background: rgba(255, 255, 255, 0.8);
  transform: translateX(4px);
  box-shadow: 0 10px 30px -18px rgba(14, 14, 16, 0.4);
}
.answer.is-selected {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
  transform: scale(1.01);
}
.answers.is-locked .answer:not(.is-selected) { opacity: 0.35; }

/* ─── En savoir plus : note méthodologique ─── */
#screen-about { flex-direction: column; }
.note { width: 100%; }
.note > *, .note-content > * { opacity: 0; animation: lineIn 0.9s var(--ease) forwards; }
.note-body { opacity: 1; animation: none; }
.note-body > .note-toc { opacity: 0; animation: lineIn 0.9s var(--ease) 0.35s forwards; }
.note-content > :nth-child(1) { animation-delay: 0.25s; }
.note-content > :nth-child(2) { animation-delay: 0.35s; }
.note-content > :nth-child(n+3) { animation-delay: 0.45s; }

.note-head {
  border-bottom: 1px solid var(--ink);
  padding-bottom: clamp(28px, 4vw, 44px);
  margin-bottom: clamp(32px, 5vw, 56px);
}
.note-ref {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 28px;
}
.note-ref span:first-child { color: var(--red); font-weight: 600; }
.note-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(40px, 6.4vw, 84px);
  line-height: 0.98;
  letter-spacing: -0.02em;
  max-width: 14ch;
}
.note-title .initial { color: var(--red); }
.note-lead {
  margin-top: 22px;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(20px, 2.2vw, 26px);
  color: var(--ink-soft);
  max-width: 34ch;
}

.note-body {
  display: grid;
  grid-template-columns: 200px minmax(0, 680px);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}

/* Sommaire collant */
.note-toc { position: sticky; top: 28px; }
.note-toc-label {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 14px;
}
.note-toc ol { list-style: none; counter-reset: toc; border-left: 1px solid var(--line); }
.note-toc li { counter-increment: toc; }
.note-toc a {
  display: flex;
  gap: 10px;
  padding: 7px 0 7px 16px;
  margin-left: -1px;
  border-left: 1px solid transparent;
  font-size: 13px;
  color: var(--ink-soft);
  text-decoration: none;
  transition: color 0.3s, border-color 0.3s;
}
.note-toc a::before {
  content: counter(toc, decimal-leading-zero);
  font-family: var(--serif);
  font-style: italic;
  color: var(--ink-mute);
  flex: 0 0 auto;
}
.note-toc a:hover { color: var(--ink); }
.note-toc a.is-current { color: var(--ink); border-left-color: var(--red); }
.note-toc a.is-current::before { color: var(--red); }

/* Sections */
.note-section { padding-bottom: clamp(36px, 5vw, 56px); scroll-margin-top: 24px; }
.note-section + .note-section { border-top: 1px solid var(--line); padding-top: clamp(32px, 4.5vw, 48px); }
.note-section h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(28px, 3.4vw, 38px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin-bottom: 20px;
  display: flex;
  align-items: baseline;
  gap: 16px;
}
.note-section h3 .num {
  font-size: 0.55em;
  font-style: italic;
  color: var(--red);
  flex: 0 0 auto;
}
.note-section p {
  font-size: 17px;
  font-weight: 300;
  line-height: 1.75;
  color: var(--ink-soft);
  margin-bottom: 16px;
}
.note-section em { font-family: var(--serif); font-size: 1.12em; color: var(--ink); }
.note-section strong { font-weight: 500; color: var(--ink); }

.note-quote {
  margin: 28px 0 4px;
  padding-left: 24px;
  border-left: 2px solid var(--red);
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(24px, 2.8vw, 32px);
  line-height: 1.25;
  color: var(--ink);
}

.note-steps { list-style: none; margin: 8px 0 22px; display: grid; gap: 10px; }
.note-steps li {
  position: relative;
  padding: 16px 20px 16px 22px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-soft);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.note-steps li::before {
  content: "";
  position: absolute;
  left: 0; top: 16px; bottom: 16px;
  width: 2px;
  background: var(--red);
  border-radius: 2px;
}

.note-tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.note-tags li {
  font-size: 13px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  color: var(--ink);
}

.note-timeline {
  list-style: none;
  margin: 8px 0 26px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  position: relative;
}
.note-timeline::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 7px;
  height: 1px;
  background: var(--ink);
}
.note-timeline li { position: relative; padding: 28px 16px 0 0; }
.note-timeline li::before {
  content: "";
  position: absolute;
  top: 1px; left: 0;
  width: 13px; height: 13px;
  border-radius: 50%;
  background: var(--paper);
  border: 1.5px solid var(--ink);
}
.note-timeline li:last-child::before { background: var(--red); border-color: var(--red); }
.tl-step {
  display: block;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red);
  font-weight: 600;
  margin-bottom: 6px;
}
.tl-text { font-family: var(--serif); font-size: 21px; line-height: 1.2; color: var(--ink); }

.note-box {
  margin: 4px 0 20px;
  padding: 24px 26px;
  background: var(--ink);
  color: #fff;
  border-radius: 14px;
}
.note-box p { color: rgba(255, 255, 255, 0.75); margin: 0; font-size: 15px; }
.note-box .note-box-title {
  font-family: var(--serif);
  font-size: 24px;
  line-height: 1.2;
  color: #fff;
  margin-bottom: 8px;
}

.note-legal {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 11px !important;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-mute) !important;
}

.note-sign { margin: 8px 0 8px; text-align: right; }
.note-sign p { font-family: var(--serif); font-style: italic; font-size: 20px; color: var(--ink-soft); }
.note-sign-name { color: var(--ink) !important; }

/* Barème visuel (généré depuis resultats.json) */
.scale { margin: 28px 0 8px; }
.scale-bar {
  display: flex;
  height: 14px;
  border-radius: 999px;
  overflow: hidden;
  gap: 2px;
}
.scale-bar span { display: block; height: 100%; }
.scale-ticks {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--ink-mute);
  margin-top: 8px;
  font-variant-numeric: tabular-nums;
}
.scale-legend { list-style: none; margin-top: 22px; display: grid; gap: 2px; }
.scale-legend li {
  display: grid;
  grid-template-columns: 14px 104px 1fr;
  align-items: center;
  gap: 14px;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
}
.scale-legend .chip { width: 14px; height: 14px; border-radius: 4px; }
.scale-legend .range { font-size: 13px; color: var(--ink-mute); font-variant-numeric: tabular-nums; }
.scale-legend .name { font-family: var(--serif); font-size: 20px; color: var(--ink); }
.scale figcaption { margin-top: 14px; font-size: 12px; color: var(--ink-mute); }

.about-actions { justify-content: flex-start; margin-top: 36px; }

@media (max-width: 900px) {
  .note-body { grid-template-columns: minmax(0, 1fr); }
  .note-toc { display: none; }
}
@media (max-width: 640px) {
  .note-timeline { grid-template-columns: 1fr; gap: 18px; }
  .note-timeline::before { left: 6px; right: auto; top: 0; bottom: 0; width: 1px; height: auto; }
  .note-timeline li { padding: 0 0 0 30px; }
  .scale-legend li { grid-template-columns: 14px 88px 1fr; }
}

/* ─── Réponses multiples ─── */
.answers.is-multi .answer { gap: 16px; }
.check {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  border-radius: 5px;
  border: 1.5px solid var(--ink-mute);
  display: grid;
  place-items: center;
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease);
}
.check::after {
  content: "";
  width: 9px;
  height: 5px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: translateY(-1px) rotate(-45deg) scale(0);
  transition: transform 0.25s var(--ease);
}
.answer.is-selected .check { background: var(--red); border-color: var(--red); }
.answer.is-selected .check::after { transform: translateY(-1px) rotate(-45deg) scale(1); }
.answers.is-multi .answer.is-selected { transform: none; }

.multi-actions {
  margin-top: 28px;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  opacity: 0;
  animation: answerIn 0.6s var(--ease) forwards;
}
.multi-actions[hidden] { display: none; }
.multi-hint { font-size: 13px; color: var(--ink-mute); }
.btn[disabled] {
  opacity: 0.3;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}
.btn-primary[disabled]:hover { background: var(--ink); border-color: var(--ink); }

/* ─── Calcul ─── */
#screen-computing { align-items: center; justify-content: center; }
.computing { text-align: center; }
.spinner {
  width: 56px;
  height: 56px;
  margin: 0 auto 28px;
  border-radius: 50%;
  border: 1px solid var(--line);
  border-top-color: var(--red);
  animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.computing-text {
  font-family: var(--serif);
  font-size: 26px;
  font-style: italic;
  color: var(--ink-soft);
  transition: opacity 0.3s;
}

/* ─── Résultat ─── */
#screen-result, #screen-error { justify-content: center; }
.result {
  max-width: 720px;
  width: 100%;
  text-align: center;
}
.result > * { opacity: 0; animation: lineIn 1s var(--ease) forwards; }
.result > :nth-child(1) { animation-delay: 0.05s; }
.result > :nth-child(2) { animation-delay: 0.15s; }
.result > :nth-child(3) { animation-delay: 0.4s; }
.result > :nth-child(4) { animation-delay: 1.6s; }
.result > :nth-child(5) { animation-delay: 1.8s; }
.result > :nth-child(6) { animation-delay: 2.0s; }
.result > :nth-child(7) { animation-delay: 2.3s; }
.result > :nth-child(8) { animation-delay: 2.5s; }

.result-label {
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 500;
}
.score {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(110px, 22vw, 230px);
  line-height: 1;
  letter-spacing: -0.04em;
  margin: 12px 0 18px;
  font-variant-numeric: lining-nums tabular-nums;
  font-feature-settings: "lnum" 1, "tnum" 1;
}
.score.is-negative { color: var(--red); }

.gauge {
  position: relative;
  height: 34px;
  max-width: 420px;
  margin: 0 auto;
}
.gauge-track {
  position: absolute;
  top: 8px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--red) 0%, var(--line) 50%, var(--ink) 100%);
}
.gauge-cursor {
  position: absolute;
  top: 2px;
  left: 50%;
  width: 14px;
  height: 14px;
  margin-left: -7px;
  border-radius: 50%;
  background: var(--paper);
  border: 2px solid var(--ink);
  transition: left 1.6s var(--ease);
}
.gauge-min, .gauge-max {
  position: absolute;
  top: 18px;
  font-size: 11px;
  color: var(--ink-mute);
  font-variant-numeric: tabular-nums;
}
.gauge-min { left: 0; }
.gauge-max { right: 0; }

.rule {
  width: 48px;
  height: 1px;
  background: var(--red);
  margin: 32px auto;
}
.result-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.05;
  letter-spacing: -0.015em;
  margin-bottom: 20px;
}
.result-text {
  font-size: 17px;
  font-weight: 300;
  line-height: 1.65;
  color: var(--ink-soft);
  max-width: 560px;
  margin: 0 auto;
}
.result-actions {
  margin-top: 44px;
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}
.certif {
  margin-top: 32px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

/* ─── Pied de page ─── */
.footer {
  padding: 22px clamp(16px, 5vw, 64px);
  font-size: 11px;
  color: var(--ink-mute);
  border-top: 1px solid var(--line);
  letter-spacing: 0.02em;
}

/* ─── Mobile ─── */
@media (max-width: 640px) {
  .topbar-right { display: none; }
  .answer { padding: 15px 16px; font-size: 15px; }
  .btn { width: 100%; justify-content: center; }
  .result-actions { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
    transition-duration: 0.01ms !important;
  }
}
