/* =====================================================================
   Plum'art — Diagnostic Sommeil (quiz + résultat)
   Design "Diagnostic Sommeil" porté sur les classes pa-* (BEM).
   IMPORTANT : la page résultat est rendue DANS le document thémé
   (display_header=true). Tous les styles sont donc préfixés pa- et/ou
   scopés sous .pa-wizard / .pa-result pour ne jamais fuir vers le thème.
   ===================================================================== */

:root {
  --pa-bleu: #1A2B4A;
  --pa-bleu-700: #243858;
  --pa-ivoire: #FAF8F4;
  --pa-beige: #F0EAE0;
  --pa-dore: #C9A96E;
  --pa-dore-700: #B89558;
  --pa-vert: #2E7D52;
  --pa-orange: #D4603A;
  --pa-gris: #6B7280;
  --pa-dark: #162238;
  --pa-bordure: #EDE6DB;
  --pa-radius: 16px;
  --pa-radius-sm: 10px;
  --pa-shadow-sm: 0 1px 4px rgba(26,43,74,0.06);
  --pa-shadow-md: 0 4px 16px rgba(26,43,74,0.08);
  --pa-shadow-lg: 0 24px 60px -16px rgba(26,43,74,0.18);
  --pa-ease: cubic-bezier(0.4, 0, 0.2, 1);
  --pa-container: 1180px;
  --pa-serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --pa-sans: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
}

/* ── Scoped reset (never touches the themed result page chrome) ── */
.pa-wizard,
.pa-result { box-sizing: border-box; }
.pa-wizard *,
.pa-wizard *::before,
.pa-wizard *::after,
.pa-result *,
.pa-result *::before,
.pa-result *::after { box-sizing: border-box; }

.pa-wizard img,
.pa-result img { max-width: 100%; display: block; }

/* ─────────────────────────────────────────────────────────────────
   STANDALONE QUIZ PAGE SHELL
   ───────────────────────────────────────────────────────────────── */
html.pa-page--quiz {
  height: 100%;
  margin: 0 !important;
  padding: 0 !important;
}
body.pa-page--quiz {
  height: 100%;
  margin: 0 !important;
  padding: 0 !important;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  font-family: var(--pa-sans);
  background: var(--pa-ivoire);
  color: var(--pa-bleu);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Buttons (shared) ── */
.pa-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--pa-sans);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.1;
  padding: 14px 32px;
  border: 1px solid transparent;
  border-radius: 50px;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.25s var(--pa-ease);
}
.pa-btn svg { width: 18px; height: 18px; flex-shrink: 0; stroke: currentColor; }
.pa-btn__text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pa-btn--primary { background: var(--pa-bleu); color: #fff; }
.pa-btn--primary:hover { background: var(--pa-bleu-700); color: #fff; transform: translateY(-1px); box-shadow: var(--pa-shadow-md); }
.pa-btn--primary:disabled { opacity: 0.4; pointer-events: none; transform: none; box-shadow: none; }
.pa-btn--gold { background: var(--pa-dore); color: #fff; }
.pa-btn--gold:hover { background: var(--pa-dore-700); color: #fff; transform: translateY(-1px); }
.pa-btn--ghost { background: transparent; color: var(--pa-gris); padding: 14px 20px; }
.pa-btn--ghost:hover { color: var(--pa-bleu); }

/* WCAG 2.4.7 — visible focus for keyboard nav only */
.pa-btn:focus { outline: none; }
.pa-btn:focus-visible { outline: 2px solid var(--pa-dore); outline-offset: 3px; }

/* ── Eyebrow (gold kicker) ── */
.pa-eyebrow,
.pa-intro__eyebrow,
.pa-question__eyebrow,
.pa-result__eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--pa-sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--pa-dore);
}
.pa-eyebrow::before,
.pa-intro__eyebrow::before,
.pa-question__eyebrow::before,
.pa-result__eyebrow::before {
  content: "";
  width: 28px;
  height: 1.5px;
  background: var(--pa-dore);
  flex-shrink: 0;
}

/* ── Quiz topbar (minimal) ── */
body.pa-page--quiz .pa-topbar {
  height: 60px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(20px, 4vw, 48px);
  background: #fff;
  border-bottom: 1px solid var(--pa-bordure);
}
body.pa-page--quiz .pa-topbar__logo { display: flex; align-items: center; }
body.pa-page--quiz .pa-topbar__logo img { height: 28px; width: auto; }
body.pa-page--quiz .pa-topbar__help {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--pa-sans);
  font-size: 0.85rem;
  color: var(--pa-gris);
}
body.pa-page--quiz .pa-topbar__help-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--pa-vert);
  animation: paPulseDot 2s infinite;
}
body.pa-page--quiz .pa-topbar__help-link {
  color: var(--pa-bleu);
  font-weight: 600;
  text-decoration: none;
}
body.pa-page--quiz .pa-topbar__help-link:hover { color: var(--pa-dore); }

@keyframes paPulseDot { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }

/* ── Wizard wrapper ── */
.pa-wizard {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--pa-ivoire);
  font-family: var(--pa-sans);
  color: var(--pa-bleu);
  line-height: 1.6;
}

/* ─────────────────────────────────────────────────────────────────
   INTRO SCREEN
   ───────────────────────────────────────────────────────────────── */
.pa-intro { display: none; }
.pa-intro.is-active {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr auto;
  flex: 1;
  min-height: 0;
}

.pa-intro__copy {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(40px, 6vw, 80px) clamp(24px, 5vw, 72px);
  max-width: 620px;
  margin-left: auto;
  width: 100%;
}
.pa-intro__title {
  font-family: var(--pa-serif);
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  font-weight: 500;
  line-height: 1.15;
  margin: 20px 0 24px;
  color: var(--pa-bleu);
}
.pa-intro__title em {
  font-style: italic;
  position: relative;
  display: inline-block;
}
.pa-intro__title em::after {
  content: "";
  position: absolute;
  bottom: 2px;
  left: -4px;
  right: -4px;
  height: 12px;
  background: rgba(201, 169, 110, 0.25);
  z-index: -1;
  border-radius: 2px;
}
.pa-intro__lede {
  font-size: 1.05rem;
  color: var(--pa-gris);
  line-height: 1.7;
  margin-bottom: 32px;
  max-width: 440px;
}
.pa-intro__cta {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 0;
}
.pa-intro__note { font-size: 0.8rem; color: var(--pa-gris); }

/* Intro visual panel */
.pa-intro__visual {
  grid-column: 2;
  grid-row: 1 / 3;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px;
  background: linear-gradient(145deg, #2d4470 0%, var(--pa-bleu) 40%, var(--pa-dark) 100%);
}
.pa-intro__visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(-50deg, transparent, transparent 12px, rgba(255,255,255,0.025) 12px, rgba(255,255,255,0.025) 24px);
}
.pa-intro__visual-frame {
  position: relative;
  width: 75%;
  aspect-ratio: 5 / 4;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--pa-radius);
  background: url('https://plum-art-be.b-cdn.net/1681-thickbox_default/matelas-color.webp') center / cover no-repeat;
  overflow: hidden;
}
.pa-intro__visual-bg { display: none; }
.pa-intro__quote {
  position: relative;
  margin: 32px 0 0;
  width: 75%;
}
.pa-intro__quote::before {
  content: "";
  display: block;
  width: 28px;
  height: 2px;
  background: var(--pa-dore);
  margin-bottom: 16px;
}
.pa-intro__quote p {
  font-family: var(--pa-serif);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--pa-dore);
  line-height: 1.6;
  opacity: 0.9;
  margin: 0;
}

/* Intro metrics (bottom-left) */
.pa-intro__metrics {
  grid-column: 1;
  grid-row: 2;
  display: flex;
  gap: 40px;
  max-width: 620px;
  width: 100%;
  margin-left: auto;
  padding: 28px clamp(24px, 5vw, 72px) clamp(40px, 4vw, 60px);
  border-top: 1px solid var(--pa-bordure);
}
.pa-intro__metric-num {
  font-family: var(--pa-serif);
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--pa-bleu);
  line-height: 1.1;
}
.pa-intro__metric-label {
  font-size: 0.8rem;
  color: var(--pa-gris);
  margin-top: 4px;
}

/* ─────────────────────────────────────────────────────────────────
   PROGRESS BAR
   ───────────────────────────────────────────────────────────────── */
.pa-quiz-shell {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.pa-progress {
  flex-shrink: 0;
  background: #fff;
  border-bottom: 1px solid var(--pa-bordure);
  padding: 12px clamp(20px, 4vw, 48px) 14px;
}
.pa-progress__row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 10px;
}
.pa-progress__step {
  font-family: var(--pa-sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pa-bleu);
}
.pa-progress__step strong { color: var(--pa-dore); font-weight: 700; }
.pa-progress__msg {
  font-family: var(--pa-serif);
  font-style: italic;
  font-size: 0.82rem;
  color: var(--pa-dore);
}
.pa-progress__bar {
  width: 100%;
  height: 4px;
  background: var(--pa-beige);
  border-radius: 4px;
  overflow: hidden;
}
.pa-progress__fill {
  height: 100%;
  width: 0;
  background: var(--pa-bleu);
  border-radius: 4px;
  transition: width 0.5s var(--pa-ease);
}

/* ─────────────────────────────────────────────────────────────────
   STAGE = SIDEBAR + QUESTION
   ───────────────────────────────────────────────────────────────── */
.pa-stage {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(320px, 42%) 1fr;
  overflow: hidden;
}

/* ── Sidebar (dynamic sleep profile) ── */
.pa-sidebar {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 28px 24px;
  background: linear-gradient(170deg, #E8E5F0 0%, #DCD8EB 50%, #D6D1E6 100%);
}
.pa-sidebar__circle {
  position: absolute;
  top: -30px;
  right: -30px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(240, 228, 190, 0.3);
  filter: blur(1px);
}
.pa-sidebar__circle--2 {
  top: auto;
  right: auto;
  bottom: -60px;
  left: -40px;
  width: 140px;
  height: 140px;
  background: rgba(26, 43, 74, 0.04);
}

/* Glassmorphism profile card */
.pa-profile {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 22px 20px;
  background: rgba(255,255,255,0.35);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.45);
  border-radius: var(--pa-radius);
  box-shadow: 0 4px 24px rgba(26,43,74,0.06), 0 1px 3px rgba(26,43,74,0.04);
}
.pa-profile__header {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--pa-bleu);
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(26,43,74,0.07);
}
.pa-profile__header-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--pa-bleu);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.pa-profile__header-icon svg { width: 15px; height: 15px; stroke: #fff; }

.pa-profile__items {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}
.pa-profile__item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  border-radius: var(--pa-radius-sm);
  transition: all 0.3s var(--pa-ease);
}
.pa-profile__item.is-current { background: rgba(26, 43, 74, 0.04); }
.pa-profile__item.is-upcoming { opacity: 0.4; }
.pa-profile__item.is-filled { opacity: 1; }
.pa-profile__item.is-filled .pa-profile__item-label { color: var(--pa-gris); }
.pa-profile__item-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(26,43,74,0.05);
  color: var(--pa-bleu);
  transition: all 0.3s var(--pa-ease);
}
.pa-profile__item-icon svg { width: 14px; height: 14px; stroke: currentColor; }
.pa-profile__item-icon.is-done { background: var(--pa-dore); color: #fff; }
.pa-profile__item-icon.is-done svg { stroke: #fff; }
.pa-profile__item-body { min-width: 0; }
.pa-profile__item-label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--pa-bleu);
  transition: color 0.3s;
}
.pa-profile__item-value {
  font-weight: 600;
  font-size: 0.82rem;
  color: var(--pa-bleu);
  margin-top: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  animation: paProfileValueIn 0.3s var(--pa-ease) both;
}
@keyframes paProfileValueIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}
.pa-profile__item-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--pa-dore);
  margin-left: auto;
  flex-shrink: 0;
  animation: paPulseDot 2s infinite;
}
.pa-profile__footer {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid rgba(26,43,74,0.07);
  display: flex;
  align-items: center;
  gap: 10px;
}
.pa-profile__footer span { font-size: 0.68rem; color: var(--pa-gris); white-space: nowrap; font-weight: 500; }
.pa-profile__bar {
  flex: 1;
  height: 3px;
  background: rgba(26,43,74,0.06);
  border-radius: 3px;
  overflow: hidden;
}
.pa-profile__bar > div {
  height: 100%;
  background: var(--pa-dore);
  border-radius: 3px;
  transition: width 0.5s var(--pa-ease);
}

.pa-sidebar__reassurance {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 16px;
  padding: 12px 14px;
  background: rgba(255,255,255,0.2);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: var(--pa-radius-sm);
}
.pa-sidebar__reassurance svg { width: 14px; height: 14px; stroke: var(--pa-dore); flex-shrink: 0; margin-top: 2px; }
.pa-sidebar__reassurance p { font-size: 0.72rem; color: var(--pa-gris); line-height: 1.5; margin: 0; }

/* ── Question area ── */
.pa-question { display: none; }
.pa-question.is-active {
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: clamp(32px, 5vw, 60px) clamp(24px, 5vw, 64px);
}
.pa-question__eyebrow { margin-bottom: 12px; }
.pa-question__eyebrow::before { width: 20px; }
.pa-question__title {
  font-family: var(--pa-serif);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 500;
  line-height: 1.2;
  color: var(--pa-bleu);
  margin: 0 0 12px;
  text-wrap: balance;
}
.pa-question__sub {
  font-size: 0.95rem;
  color: var(--pa-gris);
  line-height: 1.7;
  max-width: 520px;
  margin: 0 0 8px;
}
.pa-question__hint {
  font-family: var(--pa-serif);
  font-style: italic;
  font-size: 0.82rem;
  color: var(--pa-gris);
  margin: 0 0 4px;
}
.pa-question__body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding-top: 16px;
}
.pa-filter-badge {
  display: block;
  margin-top: 14px;
  font-family: var(--pa-serif);
  font-style: italic;
  font-size: 0.82rem;
  color: var(--pa-gris);
}

/* ── Option cards (grid-horizontal) ── */
.pa-grid-horizontal {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.pa-answer-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: #fff;
  border: 1.5px solid var(--pa-bordure);
  border-radius: var(--pa-radius);
  cursor: pointer;
  text-align: left;
  width: 100%;
  font-family: var(--pa-sans);
  color: var(--pa-bleu);
  transition: all 0.2s var(--pa-ease);
}
.pa-answer-card:hover { border-color: var(--pa-dore); box-shadow: var(--pa-shadow-sm); }
.pa-answer-card:focus { outline: none; }
.pa-answer-card:focus-visible { outline: 2px solid var(--pa-dore); outline-offset: 2px; }
.pa-answer-card[aria-disabled="true"] { opacity: 0.38; cursor: not-allowed; pointer-events: none; }
.pa-answer-card--selected {
  border-color: var(--pa-dore);
  background: rgba(201, 169, 110, 0.06);
  box-shadow: 0 0 0 1px var(--pa-dore);
}
.pa-answer-card__icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 12px;
  background: rgba(26, 43, 74, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--pa-bleu);
}
.pa-answer-card__icon svg { width: 22px; height: 22px; stroke: currentColor; }
.pa-answer-card__content { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pa-answer-card__title { font-weight: 600; font-size: 0.95rem; color: var(--pa-bleu); }
.pa-answer-card__desc { font-size: 0.8rem; color: var(--pa-gris); }
/* Gold check badge on selection */
.pa-answer-card--selected::after,
.pa-tile--selected::after {
  content: "";
  position: absolute;
  top: 10px;
  right: 10px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--pa-dore);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><path d='M20 6L9 17l-5-5'/></svg>");
  background-repeat: no-repeat;
  background-position: center;
}

/* ── Tiles ── */
.pa-tiles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.pa-tiles--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pa-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 18px 12px;
  background: #fff;
  border: 1.5px solid var(--pa-bordure);
  border-radius: var(--pa-radius);
  cursor: pointer;
  text-align: center;
  width: 100%;
  transition: all 0.2s var(--pa-ease);
}
.pa-tile:hover { border-color: var(--pa-dore); box-shadow: var(--pa-shadow-sm); transform: translateY(-2px); }
.pa-tile:focus { outline: none; }
.pa-tile:focus-visible { outline: 2px solid var(--pa-dore); outline-offset: 2px; }
.pa-tile[aria-disabled="true"] { opacity: 0.38; cursor: not-allowed; pointer-events: none; }
.pa-tile--selected { border-color: var(--pa-dore); background: rgba(201, 169, 110, 0.06); box-shadow: 0 0 0 1px var(--pa-dore); }
.pa-tile__art {
  width: 100%;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--pa-bleu);
}
.pa-tile__art svg { width: 40px; height: 40px; stroke: currentColor; }
.pa-tile__copy { display: flex; flex-direction: column; gap: 2px; }
.pa-tile__label { font-weight: 600; font-size: 0.85rem; color: var(--pa-bleu); }
.pa-tile__desc { font-size: 0.75rem; color: var(--pa-gris); }

/* ── Slider / budget ── */
.pa-slider-group { display: flex; flex-direction: column; gap: 24px; max-width: 560px; padding-top: 8px; }
.pa-slider { display: flex; flex-direction: column; gap: 16px; }
.pa-slider__row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.pa-slider__label {
  font-family: var(--pa-sans);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pa-bleu);
}
.pa-slider__value {
  font-family: var(--pa-serif);
  font-size: 2.2rem;
  font-weight: 600;
  color: var(--pa-bleu);
  letter-spacing: 0.02em;
}

.pa-range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  background: var(--pa-beige);
  border-radius: 4px;
  outline: none;
  cursor: pointer;
  margin: 0;
}
.pa-range:focus { outline: none; }
.pa-range:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px rgba(201,169,110,0.4); }
.pa-range:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 4px rgba(201,169,110,0.4); }
.pa-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--pa-bleu);
  border: 3px solid #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
  cursor: grab;
  transition: transform 0.15s;
}
.pa-range::-webkit-slider-thumb:active { transform: scale(1.15); cursor: grabbing; }
.pa-range::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--pa-bleu);
  border: 3px solid #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}
.pa-range__ticks {
  display: flex;
  justify-content: space-between;
  margin-top: 12px;
  font-family: var(--pa-sans);
  font-size: 0.75rem;
  color: var(--pa-gris);
  font-weight: 500;
}

/* Single (logarithmic) range — progress fill via --range-progress */
.pa-single-range { position: relative; }
.pa-single-range .pa-range {
  background: linear-gradient(to right, var(--pa-bleu) var(--range-progress, 50%), var(--pa-beige) var(--range-progress, 50%));
}

/* Dual range */
.pa-dual-range { position: relative; height: 24px; display: flex; align-items: center; }
.pa-dual-range::after {
  content: "";
  position: absolute;
  inset: 50% 0 auto 0;
  height: 4px;
  transform: translateY(-50%);
  background: var(--pa-beige);
  border-radius: 999px;
  z-index: 0;
}
.pa-dual-range::before {
  content: "";
  position: absolute;
  height: 4px;
  top: 50%;
  transform: translateY(-50%);
  left: var(--range-left, 15%);
  width: var(--range-width, 55%);
  background: var(--pa-bleu);
  border-radius: 999px;
  z-index: 1;
}
.pa-dual-range .pa-range {
  position: absolute;
  left: 0;
  width: 100%;
  pointer-events: none;
  background: transparent !important;
  z-index: 3;
}
.pa-dual-range .pa-range::-webkit-slider-thumb { pointer-events: all; }
.pa-dual-range .pa-range::-moz-range-thumb { pointer-events: all; }

.pa-budget-card {
  border-left: 2px solid var(--pa-dore);
  background: rgba(240, 234, 224, 0.5);
  border-radius: var(--pa-radius-sm);
  padding: 14px 18px;
  color: var(--pa-gris);
  font-size: 0.9rem;
}

/* ── Quiz navigation ── */
.pa-quiz-nav {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: auto;
  padding-top: 28px;
}
.pa-quiz-nav .pa-btn--primary { margin-left: auto; }

/* ─────────────────────────────────────────────────────────────────
   LOADING SCREEN
   ───────────────────────────────────────────────────────────────── */
.pa-loading { display: none; }
.pa-loading.is-active {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px;
  background: var(--pa-ivoire);
}
.pa-loading__icon { width: 80px; height: 80px; margin-bottom: 32px; animation: paSpinSlow 3s linear infinite; }
.pa-loading__icon svg { width: 100%; height: 100%; }
.pa-loading__title {
  font-family: var(--pa-serif);
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--pa-bleu);
  margin-bottom: 8px;
}
.pa-loading__sub { font-size: 0.9rem; color: var(--pa-gris); }
.pa-loading__dots::after { content: ""; animation: paDots 1.5s steps(3) infinite; }
@keyframes paDots { 0% { content: ""; } 33% { content: "."; } 66% { content: ".."; } 100% { content: "..."; } }
@keyframes paSpinSlow { to { transform: rotate(360deg); } }

/* ── Fade-in ── */
.pa-fade-in { animation: paFadeIn 0.4s var(--pa-ease) both; }
@keyframes paFadeIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

/* ═════════════════════════════════════════════════════════════════
   RESULT PAGE (rendered inside the themed document)
   ═════════════════════════════════════════════════════════════════ */
.pa-result {
  font-family: var(--pa-sans);
  color: var(--pa-bleu);
  line-height: 1.6;
}

/* The result page renders inside the theme's #center_column (itself inside the
   theme .container), so the content is already aligned with the site header.
   The inner container therefore just fills that width — no extra max-width that
   would make the content narrower than, and misaligned with, the header. */
.pa-result__container {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

/* The dark "Pourquoi" section is the only coloured band; it's full-bleed (see
   its rule below). Every other section is flat (no background) and aligns to the
   header container. */
.pa-result__back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--pa-gris);
  padding: 20px 0 12px;
  text-decoration: none;
  transition: color 0.2s;
}
.pa-result__back:hover { color: var(--pa-bleu); }
.pa-result__back svg { width: 16px; height: 16px; stroke: currentColor; }

/* ── Hero ── */
.pa-result__hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  padding: 24px 0 48px;
  align-items: start;
}
.pa-result__media {
  position: relative;
  background: #f5f3ef;
  border-radius: var(--pa-radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pa-result__media img { width: 100%; height: 100%; object-fit: cover; }
.pa-result__media-placeholder {
  font-family: var(--pa-serif);
  font-size: 1.4rem;
  color: var(--pa-gris);
  opacity: 0.5;
  letter-spacing: 0.1em;
}
.pa-result__badge {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
  background: var(--pa-dore);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 6px;
}

/* Hide the theme breadcrumb on the diagnostic result pages (canonical result
   controller + token result served by the quiz controller). Scoped to those
   body ids so the rule never leaks elsewhere. */
body.module-plugessleepquiz-result .breacrumb-wrapper,
body.module-plugessleepquiz-quiz .breacrumb-wrapper {
  display: none !important;
}

/* Product image gallery (hero) */
.pa-result__gallery { display: flex; flex-direction: column; gap: 12px; }
.pa-result__thumbs { display: flex; gap: 10px; flex-wrap: wrap; }
.pa-result__thumb {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid var(--pa-bordure);
  background: #f0ece6;
  padding: 0;
  cursor: pointer;
  transition: border-color 0.2s;
}
.pa-result__thumb img { width: 100%; height: 100%; object-fit: cover; }
.pa-result__thumb:hover,
.pa-result__thumb.is-active { border-color: var(--pa-dore); }
.pa-result__thumb:focus { outline: none; }
.pa-result__thumb:focus-visible { outline: 2px solid var(--pa-dore); outline-offset: 2px; }

/* Alternative card — product short description (catalogue-card parity) */
.pa-alt__desc {
  font-size: 0.85rem;
  color: var(--pa-gris);
  line-height: 1.5;
  margin: 0 0 10px;
}

.pa-result__eyebrow { margin-bottom: 8px; }
.pa-result__title {
  font-family: var(--pa-serif);
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 4px;
  color: var(--pa-bleu);
}
.pa-result__title .pa-sparkle { color: var(--pa-dore); }
.pa-result__name { font-size: 1.15rem; font-weight: 600; margin-bottom: 4px; }
.pa-result__dim { font-size: 0.9rem; color: var(--pa-gris); margin: 0; }

/* Score card */
.pa-score-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #fff;
  border: 1.5px solid var(--pa-bordure);
  border-radius: var(--pa-radius);
  padding: 16px 20px;
  margin: 24px 0 20px;
}
.pa-score-ring { position: relative; width: 64px; height: 64px; flex-shrink: 0; }
.pa-score-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.pa-score-ring__bg { fill: none; stroke: var(--pa-beige); stroke-width: 5; }
.pa-score-ring__fill { fill: none; stroke-width: 5; stroke-linecap: round; transition: stroke-dasharray 1.2s var(--pa-ease); }
.pa-score-ring__fill.is-green { stroke: var(--pa-vert); }
.pa-score-ring__fill.is-gold { stroke: var(--pa-dore); }
.pa-score-ring__fill.is-orange { stroke: var(--pa-orange); }
.pa-score-ring__num {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--pa-bleu);
}
.pa-score-card__label { font-size: 0.72rem; color: var(--pa-gris); }
.pa-score-card__match { font-weight: 700; font-size: 0.95rem; color: var(--pa-bleu); }
.pa-score-card__desc { font-size: 0.82rem; color: var(--pa-gris); margin-top: 2px; }

/* Benefits list */
.pa-benefits { display: flex; flex-direction: column; gap: 10px; margin-bottom: 24px; }
.pa-benefits__item { display: flex; align-items: flex-start; gap: 10px; font-size: 0.88rem; line-height: 1.5; color: var(--pa-bleu); }
.pa-benefits__item svg { width: 16px; height: 16px; stroke: var(--pa-vert); flex-shrink: 0; margin-top: 3px; }

/* Price */
.pa-price { margin-bottom: 24px; }
.pa-price__from { font-size: 0.82rem; color: var(--pa-gris); margin-bottom: 2px; }
.pa-price__row { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.pa-price__promo { font-size: 2rem; font-weight: 700; color: var(--pa-bleu); }
.pa-price__original { font-size: 1rem; color: var(--pa-gris); text-decoration: line-through; }
.pa-price__save {
  background: rgba(212, 96, 58, 0.1);
  color: var(--pa-orange);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 6px;
}
.pa-price__sub { font-size: 0.82rem; color: var(--pa-gris); margin-top: 4px; }

/* Avoid note + warning banner */
.pa-result__avoid {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: rgba(240, 234, 224, 0.5);
  border-radius: var(--pa-radius-sm);
  padding: 14px 18px;
  margin-bottom: 20px;
  font-size: 0.88rem;
  color: var(--pa-bleu);
  line-height: 1.6;
}
.pa-result__avoid svg { width: 20px; height: 20px; stroke: var(--pa-dore); flex-shrink: 0; margin-top: 2px; }
.pa-result__warning {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(240, 234, 224, 0.6);
  border-radius: var(--pa-radius-sm);
  padding: 12px 18px;
  margin-bottom: 16px;
  font-size: 0.85rem;
  color: var(--pa-bleu);
}
.pa-result__warning svg { width: 18px; height: 18px; stroke: var(--pa-orange); flex-shrink: 0; }

/* Hero actions */
.pa-result__actions { display: flex; flex-direction: column; gap: 12px; margin-top: 8px; }
.pa-result__actions .pa-btn--cta { width: 100%; }
.pa-result__actions-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.pa-btn--cta { background: var(--pa-dore); color: #fff; }
.pa-btn--cta:hover { background: var(--pa-dore-700); color: #fff; transform: translateY(-1px); box-shadow: var(--pa-shadow-md); }
.pa-btn--cta.is-added { background: var(--pa-vert); color: #fff; }

.pa-copy-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--pa-sans);
  font-size: 0.8rem;
  color: var(--pa-gris);
  background: none;
  border: none;
  padding: 4px 0;
  cursor: pointer;
  text-decoration: none;
  transition: color 0.2s;
}
.pa-copy-link:hover { color: var(--pa-bleu); }
.pa-copy-link svg { width: 14px; height: 14px; stroke: currentColor; }

/* ── Why cards (dark blue) ── */
.pa-why {
  position: relative;
  overflow: hidden;
  background: var(--pa-bleu);
  color: #fff;
  /* Full-bleed: the dark band spans the whole viewport width (edge to edge),
     while its content stays aligned with the header container — the horizontal
     padding restores the container inset. body has overflow-x:hidden, so the
     100vw break-out never triggers a horizontal scrollbar. */
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: clamp(56px, 7vw, 96px) max(20px, calc(50vw - 50%));
}
.pa-why::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 120%, rgba(201,169,110,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.pa-why .pa-result__container { position: relative; z-index: 1; text-align: center; }
.pa-why__title {
  font-family: var(--pa-serif);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 500;
  margin: 0 0 56px;
  color: #fff;
}
.pa-why__title em { font-style: italic; color: var(--pa-dore); }
.pa-why__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  text-align: left;
}
.pa-why__card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--pa-radius);
  padding: 28px 24px;
  transition: all 0.3s var(--pa-ease);
}
.pa-why__card:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(201,169,110,0.3);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}
.pa-why__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(201,169,110,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.pa-why__icon svg { width: 22px; height: 22px; stroke: var(--pa-dore); }
.pa-why__card h3 { font-weight: 600; font-size: 0.95rem; margin: 0 0 8px; color: #fff; }
.pa-why__card p { font-size: 0.9rem; color: rgba(255,255,255,0.82); line-height: 1.65; margin: 0; }

/* ── Alternatives ── */
.pa-alts { padding: clamp(48px, 6vw, 80px) 0; }
.pa-alts__title {
  font-family: var(--pa-serif);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 500;
  margin: 0 0 32px;
  color: var(--pa-bleu);
}
.pa-alts__title em { font-style: italic; color: var(--pa-dore); }
.pa-alts__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.pa-alt {
  background: #fff;
  border: 1px solid var(--pa-bordure);
  border-radius: var(--pa-radius);
  overflow: hidden;
  transition: box-shadow 0.25s;
}
.pa-alt:hover { box-shadow: var(--pa-shadow-md); }
.pa-alt__media {
  height: 180px;
  background: #f0ece6;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.pa-alt__media img { width: 100%; height: 100%; object-fit: cover; }
.pa-alt__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--pa-dore);
  background: rgba(255,255,255,0.9);
  padding: 4px 10px;
  border-radius: 4px;
}
.pa-alt__body { padding: 20px; }
.pa-alt__name { font-weight: 600; font-size: 1rem; margin: 0 0 6px; color: var(--pa-bleu); }
.pa-alt__reason { font-size: 0.85rem; color: var(--pa-gris); margin: 0 0 12px; line-height: 1.5; }
.pa-alt__price { display: flex; align-items: baseline; gap: 8px; margin-bottom: 14px; }
.pa-alt__price-current { font-weight: 700; font-size: 1.15rem; color: var(--pa-bleu); }
.pa-alt__price-old { font-size: 0.85rem; color: var(--pa-gris); text-decoration: line-through; }
.pa-alt__link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--pa-bleu);
  border-bottom: 1px solid var(--pa-dore);
  padding-bottom: 2px;
  text-decoration: none;
}
.pa-alt__link svg { width: 14px; height: 14px; stroke: currentColor; }
.pa-alt__link:hover { color: var(--pa-dore); }

/* ── Services ── */
.pa-services {
  background: var(--pa-ivoire); /* #FAF8F4 */
  /* Full-bleed like .pa-why: the band spans the whole viewport width while its
     content stays aligned with the header container. */
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: clamp(56px, 7vw, 88px) max(20px, calc(50vw - 50%));
}
.pa-services__title {
  font-family: var(--pa-serif);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 500;
  margin: 0 0 40px;
  color: var(--pa-bleu);
}
.pa-services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.pa-service {
  background: #fff;
  border: 1px solid var(--pa-bordure);
  border-radius: var(--pa-radius);
  padding: 28px 24px;
  transition: all 0.3s var(--pa-ease);
}
.pa-service:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(26,43,74,0.07); border-color: var(--pa-dore); }
.pa-service__icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(201,169,110,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.pa-service__icon svg { width: 24px; height: 24px; stroke: var(--pa-dore); }
.pa-service h3 { font-weight: 600; font-size: 0.95rem; margin: 0 0 6px; color: var(--pa-bleu); }
.pa-service p { font-size: 0.84rem; color: var(--pa-gris); line-height: 1.6; margin: 0; }

/* ── Cross-sell ── */
.pa-cross { padding: clamp(48px, 6vw, 80px) 0; }
.pa-cross__title {
  font-family: var(--pa-serif);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 500;
  margin: 0 0 36px;
  color: var(--pa-bleu);
}
.pa-cross__title em { font-style: italic; color: var(--pa-dore); }
.pa-cross__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.pa-cross__card {
  background: #fff;
  border: 1px solid var(--pa-bordure);
  border-radius: var(--pa-radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.3s var(--pa-ease);
}
.pa-cross__card:hover { box-shadow: var(--pa-shadow-md); }
.pa-cross__media { height: 220px; overflow: hidden; position: relative; background: #f5f3ef; }
.pa-cross__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s var(--pa-ease); }
.pa-cross__card:hover .pa-cross__media img { transform: scale(1.03); }
.pa-cross__body { padding: 28px; flex: 1; display: flex; flex-direction: column; }
.pa-cross__body .pa-eyebrow { margin-bottom: 10px; font-size: 0.62rem; }
.pa-cross__body h3 {
  font-family: var(--pa-serif);
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1.3;
  margin: 0 0 14px;
  color: var(--pa-bleu);
}
.pa-cross__body p { font-size: 0.88rem; color: var(--pa-gris); line-height: 1.7; margin: 0 0 20px; flex: 1; }
.pa-cross__body .pa-btn { align-self: flex-start; font-size: 0.85rem; padding: 11px 24px; }

/* ── Expert CTA ── */
.pa-expert { padding: clamp(48px, 6vw, 72px) 0; background: var(--pa-ivoire); }
.pa-expert__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  background: var(--pa-bleu);
  border-radius: var(--pa-radius);
  padding: 40px 48px;
}
.pa-expert__eyebrow { color: var(--pa-dore); margin-bottom: 12px; }
.pa-expert__title {
  font-family: var(--pa-serif);
  font-size: clamp(1.4rem, 2.5vw, 1.8rem);
  font-weight: 500;
  margin: 0 0 8px;
  color: #fff;
}
.pa-expert__sub { font-size: 0.9rem; color: rgba(255,255,255,0.75); margin: 0; max-width: 440px; }
.pa-expert__cta { display: flex; gap: 12px; flex-wrap: wrap; flex-shrink: 0; }

/* ── Sticky CTA ── */
.pa-sticky {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 80;
  display: flex;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transform: translateY(100%);
  transition: opacity 0.4s var(--pa-ease), transform 0.4s var(--pa-ease);
}
.pa-sticky.is-visible { opacity: 1; transform: translateY(0); }
.pa-sticky__inner {
  width: 100%;
  background: var(--pa-bleu);
  padding: 16px clamp(20px, 4vw, 48px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  pointer-events: auto;
  box-shadow: 0 -4px 24px rgba(26,43,74,0.15);
}
.pa-sticky__text h3 { color: #fff; font-size: 0.95rem; font-weight: 600; margin: 0; }
.pa-sticky__text p { color: rgba(255,255,255,0.6); font-size: 0.78rem; margin: 2px 0 0; }
.pa-sticky__actions { display: flex; align-items: center; gap: 16px; }
.pa-sticky__actions .pa-btn { padding: 12px 28px; font-size: 0.88rem; }
.pa-sticky__restart { color: rgba(255,255,255,0.7); font-size: 0.78rem; text-decoration: none; }
.pa-sticky__restart:hover { color: #fff; }

.pa-result__no-match {
  background: rgba(240, 234, 224, 0.6);
  border-left: 3px solid var(--pa-dore);
  border-radius: var(--pa-radius-sm);
  padding: 16px 20px;
  font-family: var(--pa-serif);
  font-style: italic;
  font-size: 1rem;
  color: var(--pa-gris);
}

/* ═════════════════════════════════════════════════════════════════
   RESPONSIVE
   ═════════════════════════════════════════════════════════════════ */

/* ── Tablet / small desktop : quiz becomes single column ── */
@media (max-width: 1024px) {
  /* Intro : no-scroll, visual after content */
  .pa-intro.is-active {
    grid-template-columns: 1fr;
    display: flex;
    flex-direction: column;
    max-height: calc(100dvh - 60px);
    overflow: hidden;
  }
  .pa-intro__copy {
    order: 0;
    flex: 0 1 auto;
    max-width: 100%;
    min-height: 40vh;
    max-height: 50vh;
    margin: 0;
    padding: 16px 24px 10px;
    justify-content: center;
    overflow: hidden;
  }
  .pa-intro__title { margin: 6px 0 8px; }
  .pa-intro__lede {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 10px;
  }
  .pa-intro__cta { flex-direction: column; align-items: stretch; gap: 6px; }
  .pa-intro__cta .pa-btn--primary { width: 100%; padding: 13px 24px; }
  .pa-intro__note { text-align: center; font-size: 0.7rem; }
  .pa-intro__visual {
    order: 1;
    flex: 1 0 0;
    min-height: 0;
    padding: 0;
    align-items: flex-start;
    justify-content: flex-end;
  }
  .pa-intro__visual-frame { display: none; }
  .pa-intro__visual-bg {
    display: block;
    position: absolute;
    inset: 0;
    background: url('https://plum-art-be.b-cdn.net/1681-thickbox_default/matelas-color.webp') center / cover no-repeat;
    opacity: 0.45;
    z-index: 0;
  }
  .pa-intro__quote { width: 100%; margin: 0; padding: 0 24px 20px; max-width: 520px; position: relative; z-index: 1; }
  .pa-intro__quote p { font-size: 1rem; line-height: 1.5; }
  .pa-intro__metrics {
    order: 2;
    max-width: 100%;
    margin: 0;
    padding: 10px 20px;
    justify-content: space-between;
    gap: 16px;
  }
  .pa-intro__metric-num { font-size: 1.4rem; }
  .pa-intro__metric-label { font-size: 0.7rem; }

  /* Quiz shell : hide sidebar, single column */
  .pa-stage { grid-template-columns: 1fr; }
  .pa-sidebar { display: none; }
}

/* ── Mobile ── */
@media (max-width: 768px) {
  .pa-result__hero { grid-template-columns: 1fr; gap: 24px; padding: 16px 0 32px; }
  .pa-cross__grid { grid-template-columns: 1fr; }
  .pa-cross__media { height: 180px; }
  .pa-expert__inner { flex-direction: column; align-items: flex-start; padding: 28px 24px; }
  .pa-expert__cta { width: 100%; }
  .pa-expert__cta .pa-btn { width: 100%; justify-content: center; }
  .pa-sticky__inner { flex-direction: column; gap: 12px; align-items: stretch; text-align: center; }
  .pa-sticky__actions { flex-direction: column; gap: 8px; }
  .pa-sticky__actions .pa-btn { width: 100%; justify-content: center; }
}

@media (max-width: 640px) {
  body.pa-page--quiz .pa-topbar__help span:not(.pa-topbar__help-link):not(.pa-topbar__help-dot) { display: none; }
  .pa-grid-horizontal { grid-template-columns: 1fr; }
  .pa-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pa-slider__row { flex-direction: column; align-items: flex-start; gap: 4px; }
  .pa-slider__value { font-size: 1.8rem; }
  .pa-question.is-active { padding: 24px 20px; }
  .pa-quiz-nav { padding-top: 20px; }
}
