/* ============================================================
   NowDesk · Pré-diagnostic — Light theme, desktop-first
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: #f7f9fd;
  color: var(--nd-text-primary);
  font-family: var(--nd-font-body);
  min-height: 100%;
}
body { min-height: 100vh; display: flex; flex-direction: column; }
#pd-main { flex: 1; display: flex; flex-direction: column; }
img { max-width: 100%; display: block; }
button { font-family: inherit; }

.scroll-top {
  position: fixed;
  right: clamp(18px, 3vw, 32px);
  bottom: clamp(18px, 3vw, 32px);
  z-index: 80;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.96);
  border-radius: 50%;
  background: linear-gradient(145deg, #0b5fff, #0a1f60);
  color: #fff;
  box-shadow:
    0 2px 8px rgba(6, 24, 64, 0.18),
    0 0 0 1px rgba(255, 255, 255, 0.72);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px) scale(0.94);
  transition: opacity 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.scroll-top svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.scroll-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.scroll-top:hover {
  box-shadow:
    0 3px 10px rgba(6, 24, 64, 0.2),
    0 0 0 1px rgba(255, 255, 255, 0.82);
}

.scroll-top:focus-visible {
  outline: 3px solid rgba(77, 122, 255, 0.32);
  outline-offset: 3px;
}

/* Lift scroll-to-top above sticky bar when the bar is visible */
body:has(.pd-sticky-bar.is-visible) .scroll-top {
  bottom: 80px;
}
@media (max-width: 540px) {
  body:has(.pd-sticky-bar.is-visible) .scroll-top {
    bottom: 116px; /* sticky bar ~100px sur mobile + 16px de marge */
  }
}

/* ============================================================
   Header (minimal, cohérent avec site)
   ============================================================ */
.pd-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 32px;
  border-bottom: 1px solid rgba(15, 38, 80, 0.08);
  background: #ffffff;
  box-shadow: 0 1px 0 rgba(15,38,80,0.06);
}
.pd-brand { display: inline-flex; align-items: center; text-decoration: none; }
.pd-exit {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--nd-text-secondary);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  padding: 7px 16px 7px 12px;
  border-radius: 100px;
  border: 1.5px solid rgba(15,38,80,0.15);
  background: var(--nd-paper);
  transition: color 0.18s, background 0.18s, border-color 0.18s, box-shadow 0.18s;
  box-shadow: 0 1px 3px rgba(15,38,80,0.06);
}
.pd-exit:hover {
  color: var(--nd-brand);
  border-color: rgba(11,95,255,0.4);
  background: rgba(11,95,255,0.04);
  box-shadow: 0 2px 8px rgba(11,95,255,0.12);
}
.pd-exit__arrow { flex-shrink: 0; transition: transform 0.18s; }
.pd-exit:hover .pd-exit__arrow { transform: translateX(-3px); }

/* ============================================================
   Container
   ============================================================ */
.pd-container {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

/* ============================================================
   Intro screen
   ============================================================ */
.pd-intro {
  position: relative;
  flex: 1;
  padding: 72px 0 80px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(235, 241, 255, 0.96), rgba(255, 255, 255, 0.86) 56%, rgba(244, 246, 250, 0.92)),
    radial-gradient(circle at 18% 20%, rgba(11, 95, 255, 0.14), transparent 38%);
}
.pd-intro::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(15, 38, 80, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 38, 80, 0.045) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent 86%);
  mask-image: linear-gradient(to bottom, #000, transparent 86%);
  pointer-events: none;
}
.pd-intro__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  grid-template-rows: auto auto;
  column-gap: 64px;
  row-gap: 32px;
}
.pd-intro__copy {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}
.pd-intro__preview {
  grid-column: 2;
  grid-row: 1 / 3;
  align-self: center;
}
.pd-intro__cta {
  grid-column: 1;
  grid-row: 2;
  align-self: start;
}

.pd-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  background: var(--nd-paper);
  border: 1px solid rgba(15, 38, 80, 0.1);
  border-radius: var(--nd-radius-full);
  box-shadow: var(--nd-shadow-sm);
  color: var(--nd-text-secondary);
  font-size: var(--nd-fs-body-sm);
  font-weight: var(--nd-fw-medium);
}

.pd-h1 {
  font-family: var(--nd-font-display);
  font-size: clamp(32px, 3.6vw, 46px);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--nd-text-primary);
  text-wrap: balance;
  max-width: 640px;
}
.pd-h1__accent { color: var(--nd-brand); }

.pd-lead {
  font-size: clamp(17px, 1.6vw, 19px);
  line-height: 1.55;
  color: var(--nd-text-secondary);
  margin: 0;
  max-width: 560px;
}

.pd-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 8px;
}
.pd-step-card {
  background: var(--nd-paper);
  border: 1px solid rgba(15,38,80,0.09);
  border-radius: var(--nd-radius-xl);
  padding: 20px 16px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  box-shadow: 0 1px 4px rgba(15,38,80,0.05);
}
.pd-step-card__num {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--nd-brand);
  margin-bottom: 2px;
}
.pd-step-card__title {
  font-size: 17px;
  font-weight: 600;
  color: var(--nd-text-primary);
  display: block;
}
.pd-step-card__desc {
  font-size: 14px;
  line-height: 1.45;
  color: var(--nd-text-muted);
  display: block;
}

.pd-intro__cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  width: fit-content;
}
.pd-intro__cta-meta { color: var(--nd-text-muted); font-size: var(--nd-fs-caption); text-align: center; align-self: stretch; }

/* Intro preview card (right column) */
.pd-intro__preview {
  padding: 32px;
  border: 1px solid rgba(15, 38, 80, 0.1);
  border-radius: var(--nd-radius-2xl);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--nd-shadow-md);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.pd-intro__preview-label {
  font-size: var(--nd-fs-caption);
  font-weight: var(--nd-fw-semibold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--nd-text-muted);
}
.pd-intro__preview h2 {
  font-family: var(--nd-font-display);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--nd-text-primary);
}
.pd-domain-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.pd-domain-list li {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid rgba(15, 38, 80, 0.08);
  border-radius: var(--nd-radius-md);
  background: var(--nd-paper);
}
.pd-domain-list__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--nd-radius-sm);
  font-size: 16px;
}
.pd-domain-list__name {
  color: var(--nd-text-primary);
  font-size: var(--nd-fs-body-md);
  font-weight: var(--nd-fw-medium);
}
.pd-domain-list__count {
  color: var(--nd-text-muted);
  font-size: var(--nd-fs-caption);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

/* ============================================================
   Intro — thème sombre (cohérence avec la banner pré-diagnostic)
   ============================================================ */

.pd-intro {
  background:
    radial-gradient(circle at 12% 0%, rgba(77, 122, 255, 0.34), transparent 55%),
    radial-gradient(circle at 95% 100%, rgba(11, 95, 255, 0.32), transparent 50%),
    linear-gradient(135deg, #0A1F60, #0E1A2B 70%);
  color: #fff;
}

.pd-intro::before {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 36px 36px;
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 0%, transparent 75%);
  mask-image: radial-gradient(circle at 50% 50%, #000 0%, transparent 75%);
}

.pd-intro .pd-eyebrow {
  background: rgba(255, 255, 255, 0.10);
  border-color: rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.80);
  box-shadow: none;
}

.pd-intro .pd-h1 { color: #fff; }
.pd-intro .pd-h1__accent { color: #7da4ff; }
.pd-intro .pd-lead { color: rgba(255, 255, 255, 0.72); }

.pd-intro .pd-step-card {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: none;
}
.pd-intro .pd-step-card__title { color: #fff; }
.pd-intro .pd-step-card__desc  { color: rgba(255, 255, 255, 0.58); }

.pd-intro .pd-intro__cta-meta { color: rgba(255, 255, 255, 0.52); }

.pd-intro .pd-intro__preview {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: none;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.pd-intro .pd-intro__preview-label { color: rgba(255, 255, 255, 0.48); }
.pd-intro .pd-intro__preview h2   { color: rgba(255, 255, 255, 0.92); }

.pd-intro .pd-domain-list li {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.10);
}
.pd-intro .pd-domain-list__name  { color: rgba(255, 255, 255, 0.90); }
.pd-intro .pd-domain-list__count { color: rgba(255, 255, 255, 0.46); }

/* ============================================================
   Buttons
   ============================================================ */
.pd-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--nd-radius-md);
  font-family: inherit;
  font-size: var(--nd-fs-body-md);
  font-weight: var(--nd-fw-semibold);
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.14s, box-shadow 0.18s, background 0.18s, color 0.18s, border-color 0.18s;
  text-decoration: none;
  line-height: 1;
}
.pd-btn--primary {
  background: var(--nd-brand);
  color: #fff;
  border-color: var(--nd-brand);
  box-shadow: 0 8px 22px rgba(11, 95, 255, 0.24);
}
.pd-btn--primary:hover {
  background: var(--nd-brand-hover);
  border-color: var(--nd-brand-hover);
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(11, 95, 255, 0.32);
}
.pd-btn--ghost {
  background: var(--nd-paper);
  color: var(--nd-text-primary);
  border-color: rgba(15, 38, 80, 0.16);
}
.pd-btn--ghost:hover { border-color: var(--nd-brand); color: var(--nd-brand); }
.pd-btn--lg { padding: 18px 36px; font-size: var(--nd-fs-body-lg); }

/* ============================================================
   Quiz layout — two-column desktop
   ============================================================ */
.pd-quiz {
  flex: 1;
  padding: 48px 0 80px;
}
.pd-quiz__grid {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 48px;
  align-items: flex-start;
}

/* Sidebar */
.pd-side {
  position: sticky;
  top: 96px;
  padding: 28px;
  border: 1px solid rgba(15, 38, 80, 0.1);
  border-radius: var(--nd-radius-xl);
  background: var(--nd-paper);
  box-shadow: var(--nd-shadow-sm);
}
.pd-side__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.pd-side__label {
  font-size: var(--nd-fs-caption);
  font-weight: var(--nd-fw-semibold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--nd-text-muted);
}
.pd-side__pct {
  font-family: var(--nd-font-display);
  font-size: 22px;
  font-weight: 600;
  color: var(--nd-brand);
  letter-spacing: -0.01em;
}
.pd-side__track {
  height: 4px;
  background: var(--nd-ink-100);
  border-radius: 100px;
  overflow: hidden;
  margin-bottom: 24px;
}
.pd-side__fill {
  height: 100%;
  background: linear-gradient(90deg, var(--nd-brand), #4D7AFF);
  border-radius: 100px;
  transition: width 0.5s ease;
}

.pd-side__steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.pd-step {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border-radius: var(--nd-radius-md);
  font-size: var(--nd-fs-body-sm);
  transition: background 0.18s;
}
.pd-step__marker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px solid var(--nd-border-strong);
  background: var(--nd-paper);
  color: var(--nd-text-muted);
  font-family: var(--nd-font-display);
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}
.pd-step__label { color: var(--nd-text-secondary); font-weight: var(--nd-fw-medium); line-height: 1.3; }
.pd-step__sub { color: var(--nd-text-muted); font-size: 11px; }

.pd-step.is-done .pd-step__marker {
  background: var(--dom-color, var(--nd-brand));
  border-color: var(--dom-color, var(--nd-brand));
  color: #fff;
}
.pd-step.is-done .pd-step__label { color: var(--nd-text-primary); }
.pd-step.is-current {
  background: var(--nd-blue-50);
}
.pd-step.is-current .pd-step__marker {
  background: var(--nd-paper);
  border-color: var(--dom-color, var(--nd-brand));
  color: var(--dom-color, var(--nd-brand));
  box-shadow: 0 0 0 4px rgba(11, 95, 255, 0.12);
}
.pd-step.is-current .pd-step__label { color: var(--nd-text-primary); font-weight: var(--nd-fw-semibold); }
.pd-step.is-current .pd-step__sub { color: var(--dom-color, var(--nd-brand)); font-weight: var(--nd-fw-semibold); }

/* Question column */
.pd-main { display: flex; flex-direction: column; gap: 24px; }

.pd-domain-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  margin-right: auto;
  align-self: flex-start;
  padding: 8px 14px;
  border-radius: var(--nd-radius-full);
  background: var(--nd-paper);
  border: 1px solid;
  font-size: var(--nd-fs-body-sm);
  font-weight: var(--nd-fw-semibold);
  letter-spacing: 0.02em;
}
.pd-domain-tag__icon { font-size: 15px; }
.pd-domain-tag__count {
  color: var(--nd-text-muted);
  font-weight: var(--nd-fw-medium);
}

.pd-question-card {
  padding: 40px 44px 36px;
  border: 1px solid rgba(15, 38, 80, 0.1);
  border-radius: var(--nd-radius-2xl);
  background: var(--nd-paper);
  box-shadow: var(--nd-shadow-sm);
  transition: opacity 0.28s, transform 0.28s;
}
.pd-question-card.is-leaving { opacity: 0; transform: translateY(-6px); }

.pd-question-num {
  font-family: var(--nd-font-display);
  font-size: var(--nd-fs-caption);
  font-weight: var(--nd-fw-semibold);
  text-align: center;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--nd-text-muted);
  margin-bottom: 12px;
}

.pd-h2 {
  font-family: var(--nd-font-display);
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: var(--nd-text-primary);
  margin: 0 0 28px;
  text-align: center;
  text-wrap: balance;
  max-width: 700px;
}

.pd-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.pd-option {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 18px 22px;
  background: #fbfcff;
  border: 1.5px solid rgba(15, 38, 80, 0.08);
  border-radius: var(--nd-radius-lg);
  color: var(--nd-text-secondary);
  font-size: var(--nd-fs-body-md);
  font-weight: var(--nd-fw-medium);
  text-align: left;
  cursor: pointer;
  transition: background 0.16s, border-color 0.16s, color 0.16s, box-shadow 0.16s, transform 0.1s;
  font-family: inherit;
  line-height: 1.4;
}
.pd-option:hover {
  background: var(--nd-paper);
  border-color: var(--nd-border-strong);
  color: var(--nd-text-primary);
}
.pd-option.is-selected {
  background: var(--nd-blue-50);
  border-color: var(--opt-color, var(--nd-brand));
  color: var(--nd-text-primary);
  font-weight: var(--nd-fw-semibold);
  box-shadow: 0 0 0 4px rgba(11, 95, 255, 0.1);
}
.pd-option__check {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid rgba(15, 38, 80, 0.16);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: #fff;
  background: transparent;
  transition: all 0.16s;
}
.pd-option.is-selected .pd-option__check {
  border-color: var(--opt-color, var(--nd-brand));
  background: var(--opt-color, var(--nd-brand));
}
.pd-option.is-selected .pd-option__check::after { content: "✓"; }

/* ============================================================
   Quiz — thème sombre (cohérence avec l'intro)
   ============================================================ */

.pd-quiz {
  background:
    radial-gradient(circle at 12% 0%, rgba(77, 122, 255, 0.30), transparent 55%),
    radial-gradient(circle at 95% 100%, rgba(11, 95, 255, 0.28), transparent 50%),
    linear-gradient(135deg, #0A1F60, #0E1A2B 70%);
  color: #fff;
}

/* Sidebar */
.pd-quiz .pd-side {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.10);
  box-shadow: none;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.pd-quiz .pd-side__label { color: rgba(255, 255, 255, 0.46); }
.pd-quiz .pd-side__pct   { color: #7da4ff; }
.pd-quiz .pd-side__track { background: rgba(255, 255, 255, 0.12); }

/* Étapes de la sidebar */
.pd-quiz .pd-step__marker {
  border-color: rgba(255, 255, 255, 0.20);
  background: transparent;
  color: rgba(255, 255, 255, 0.42);
}
.pd-quiz .pd-step__label { color: rgba(255, 255, 255, 0.58); }
.pd-quiz .pd-step__sub   { color: rgba(255, 255, 255, 0.36); }
.pd-quiz .pd-step.is-done .pd-step__label { color: rgba(255, 255, 255, 0.84); }
.pd-quiz .pd-step.is-current { background: rgba(255, 255, 255, 0.08); }
.pd-quiz .pd-step.is-current .pd-step__marker {
  background: transparent;
  border-color: var(--dom-color, var(--nd-brand));
  color: var(--dom-color, var(--nd-brand));
  box-shadow: 0 0 0 3px rgba(77, 122, 255, 0.18);
}
.pd-quiz .pd-step.is-current .pd-step__label { color: rgba(255, 255, 255, 0.95); }
.pd-quiz .pd-step.is-current .pd-step__sub   { color: var(--dom-color, #7da4ff); }

/* Tag domaine */
.pd-quiz .pd-domain-tag {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.88);
}
.pd-quiz .pd-domain-tag__count { color: rgba(255, 255, 255, 0.44); }

/* Carte question */
.pd-quiz .pd-question-card {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: none;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.pd-quiz .pd-question-num { color: rgba(255, 255, 255, 0.44); }
.pd-quiz .pd-h2            { color: #fff; }

/* Options de réponse */
.pd-quiz .pd-option {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.11);
  color: rgba(255, 255, 255, 0.78);
}
.pd-quiz .pd-option:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.30);
  color: #fff;
}
.pd-quiz .pd-option.is-selected {
  background: rgba(255, 255, 255, 0.13);
  border-color: var(--opt-color, var(--nd-brand));
  color: #fff;
  font-weight: var(--nd-fw-semibold);
  box-shadow: 0 0 0 3px rgba(77, 122, 255, 0.16);
}
.pd-quiz .pd-option__check {
  border-color: rgba(255, 255, 255, 0.24);
}

/* ============================================================
   Results layout
   ============================================================ */
.pd-results {
  flex: 1;
  padding: 0 0 40px;
}

.pd-card {
  padding: 28px;
  border: 1px solid rgba(15, 38, 80, 0.1);
  border-radius: var(--nd-radius-xl);
  background: var(--nd-paper);
  box-shadow: var(--nd-shadow-sm);
}
.pd-card--dark {
  background:
    radial-gradient(circle at 80% 0%, rgba(77, 122, 255, 0.42), transparent 45%),
    linear-gradient(135deg, var(--nd-blue-900), #111b31 70%);
  border-color: transparent;
  color: var(--nd-paper);
  box-shadow: 0 18px 44px rgba(11, 95, 255, 0.18);
}
.pd-card--dark h3,
.pd-card--dark p { color: var(--nd-paper); }

.pd-section-label {
  font-size: var(--nd-fs-caption);
  font-weight: var(--nd-fw-semibold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--nd-text-muted);
  margin: 0 0 14px;
}
.pd-gauge {
  position: relative;
  width: 160px;
  height: 160px;
  flex-shrink: 0;
}
.pd-gauge svg { width: 100%; height: 100%; }
.pd-maturity-pill {
  display: inline-block;
  padding: 5px 14px;
  border-radius: var(--nd-radius-full);
  font-size: 12px;
  font-weight: var(--nd-fw-bold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 14px;
  border: 1px solid;
}

/* Detail grid: radar + domain rows */
.pd-detail {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 20px;
  margin-bottom: 32px;
}
.pd-radar-card { display: flex; flex-direction: column; gap: 12px; }
.pd-radar-svg {
  width: 100%;
  max-width: 460px;
  height: auto;
  margin: 0 auto;
  overflow: visible;
}
.pd-radar-grid-line { stroke: rgba(15, 38, 80, 0.1); stroke-width: 1; fill: none; }
.pd-radar-axis { stroke: rgba(15, 38, 80, 0.08); stroke-width: 1; }
.pd-radar-shape { fill: rgba(11, 95, 255, 0.18); stroke: var(--nd-brand); stroke-width: 2; stroke-linejoin: round; }
.pd-radar-dot { fill: var(--nd-brand); }
.pd-radar-label {
  font-size: 13px;
  font-weight: 600;
  fill: var(--nd-text-secondary);
  font-family: var(--nd-font-body);
}

.pd-radar-legend {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 4px;
  border-top: 1px solid rgba(15, 38, 80, 0.08);
}
.pd-radar-legend__item {
  display: grid;
  grid-template-columns: 10px 1fr auto auto;
  align-items: center;
  gap: 8px;
  font-size: var(--nd-fs-body-sm);
}
.pd-radar-legend__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.pd-radar-legend__name {
  color: var(--nd-text-secondary);
  font-weight: var(--nd-fw-medium);
}
.pd-radar-legend__score {
  font-weight: var(--nd-fw-semibold);
  font-family: var(--nd-font-display);
  min-width: 34px;
  text-align: right;
}
.pd-radar-legend__level {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: 2px 7px;
  border-radius: 9999px;
  white-space: nowrap;
}

.pd-domain-scores { display: flex; flex-direction: column; gap: 10px; }

/* Domain row — two-zone layout (like heat tiles) */
.pd-domain-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border: 1px solid rgba(15, 38, 80, 0.1);
  border-radius: var(--nd-radius-lg);
  background: var(--nd-paper);
  box-shadow: var(--nd-shadow-sm);
}
/* Left zone — identity */
.pd-domain-row__left {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
}
.pd-domain-row__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--nd-radius-sm);
  font-size: 16px;
  flex-shrink: 0;
}
.pd-domain-row__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.pd-domain-row__name {
  font-size: var(--nd-fs-body-md);
  font-weight: var(--nd-fw-semibold);
  color: var(--nd-text-primary);
}
.pd-domain-row__detail {
  font-size: 12px;
  color: var(--nd-text-muted);
  line-height: 1.45;
  margin: 0;
}
.pd-domain-row__track {
  height: 4px;
  width: 100%;
  background: var(--nd-ink-100);
  border-radius: 100px;
  overflow: hidden;
  margin-top: 4px;
}
.pd-domain-row__fill { height: 100%; border-radius: 100px; transition: width 0.6s ease; }
/* Right zone — score + badge (mirroir des heat tiles) */
.pd-domain-row__right {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex: 0 0 104px;
  width: 104px;
}
.pd-domain-row__score {
  font-family: var(--nd-font-display);
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1;
  width: 100%;
  text-align: center;
}
.pd-domain-row__score span { font-size: 14px; font-weight: 500; }
.pd-domain-row__level {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 9999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  text-align: center;
}

/* Final CTA */
.pd-final-cta {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) auto;
  gap: 32px;
  align-items: center;
  padding: 36px 40px;
}
.pd-final-cta h3 {
  font-family: var(--nd-font-display);
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--nd-paper);
  margin: 0 0 10px;
  line-height: 1.2;
  text-align: center;
}
.pd-final-cta p {
  color: rgba(255, 255, 255, 0.74);
  font-size: var(--nd-fs-body-md);
  line-height: 1.55;
  margin: 0 auto;
  max-width: 540px;
  text-align: center;
}
.pd-final-cta__actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.pd-final-cta .pd-btn--ghost {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.24);
  color: var(--nd-paper);
}
.pd-final-cta .pd-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.4);
  color: var(--nd-paper);
}
.pd-final-cta .pd-btn--primary {
  background: var(--nd-paper);
  color: var(--nd-brand-active);
  border-color: var(--nd-paper);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.16);
}
.pd-final-cta .pd-btn--primary:hover {
  background: var(--nd-blue-50);
  color: var(--nd-brand);
  border-color: var(--nd-blue-50);
}

.pd-disclaimer {
  margin-top: 20px;
  font-size: 12px;
  color: var(--nd-text-muted);
  line-height: 1.6;
  text-align: center;
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1060px) {
  .pd-intro__grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    gap: 32px;
  }
  /* Réordonnancement mobile : copy → domains → CTA */
  .pd-intro__copy    { grid-column: 1; grid-row: auto; order: 1; align-items: center; text-align: center; }
  .pd-intro__preview { grid-column: 1; grid-row: auto; order: 2; }
  .pd-intro__cta     { grid-column: 1; grid-row: auto; order: 3; align-items: center; width: auto; }
  /* Pré-titre et titre du bloc domaines centrés en responsive */
  .pd-intro__preview-label,
  .pd-intro__preview h2 { text-align: center; }
  .pd-detail { grid-template-columns: 1fr; }
  .pd-final-cta { grid-template-columns: 1fr; }
  .pd-final-cta__actions { justify-content: center; }
}

@media (max-width: 760px) {
  .pd-header { padding: 12px 20px; }
  .pd-container { width: calc(100% - 32px); }
  .pd-intro { padding: 56px 0; }
  .pd-quiz { padding: 32px 0 56px; }
  .pd-question-card { padding: 28px 22px; }
  .pd-options { grid-template-columns: 1fr; }
  .pd-gauge { width: 130px; height: 130px; }
}

/* ============================================================
   Hero dark (résultats)
   ============================================================ */
.pd-hero {
  background:
    radial-gradient(circle at 75% 30%, rgba(77,122,255,0.35), transparent 50%),
    radial-gradient(circle at 10% 80%, rgba(11,95,255,0.18), transparent 40%),
    linear-gradient(135deg, #0a1f60, #111b31 65%, #0d1a3a);
  padding: 64px 0 56px;
  margin-bottom: 48px;
  overflow: hidden;
  position: relative;
}
.pd-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 44px 44px;
  pointer-events: none;
}
.pd-hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 56px;
  align-items: center;
}
.pd-hero__score-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.pd-hero__eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.5);
  align-self: flex-start;
}
.pd-gauge-wrap {
  position: relative;
  width: 180px;
  height: 180px;
}
.pd-gauge-svg { width: 100%; height: 100%; }
.pd-gauge-ring { transition: stroke-dashoffset .05s linear; }
.pd-gauge-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.pd-gauge-num {
  font-family: var(--nd-font-display);
  font-size: 56px;
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1;
  color: #fff;
}
.pd-gauge-denom {
  font-size: 14px;
  color: rgba(255,255,255,.5);
  font-weight: 500;
  margin-top: 2px;
}
.pd-maturity-pill-hero {
  display: inline-block;
  padding: 5px 16px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  border: 1px solid;
}

.pd-hero__msg-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}
.pd-hero__title {
  font-family: var(--nd-font-display);
  font-size: clamp(26px, 3.2vw, 44px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -.02em;
  color: #fff;
  margin: 0;
  text-wrap: balance;
}
.pd-hero__sub {
  font-size: clamp(15px, 1.4vw, 17px);
  line-height: 1.6;
  color: rgba(255,255,255,.7);
  margin: 0;
  max-width: 600px;
}
.pd-hero__cta-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}
.pd-hero__cta {
  background: #fff;
  color: var(--nd-brand-active);
  border-color: #fff;
  box-shadow: 0 8px 28px rgba(0,0,0,.22);
}
.pd-hero__cta:hover {
  background: var(--nd-blue-50);
  color: var(--nd-brand);
  border-color: var(--nd-blue-50);
  transform: translateY(-1px);
}
.pd-hero__cta-email {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.3);
  color: #fff;
}
.pd-hero__cta-email:hover {
  background: rgba(255,255,255,0.18);
  border-color: rgba(255,255,255,0.5);
}
.pd-hero__cta-meta {
  font-size: 12px;
  color: rgba(255,255,255,.45);
}

/* ============================================================
   Impact cards
   ============================================================ */
.pd-impact { margin-bottom: 40px; }
.pd-impact__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 16px;
}
.pd-impact-card {
  padding: 24px;
  border: 1px solid rgba(15,38,80,.1);
  border-radius: var(--nd-radius-xl);
  background: var(--nd-paper);
  box-shadow: var(--nd-shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.pd-impact-card__top {
  display: flex;
  align-items: center;
  gap: 8px;
}
.pd-impact-card__icon { font-size: 20px; line-height: 1; }
.pd-impact-card__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--nd-text-muted);
}
.pd-impact-card__value {
  font-family: var(--nd-font-display);
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1;
}
.pd-impact-card__desc {
  font-size: 13px;
  color: var(--nd-text-secondary);
  line-height: 1.55;
  margin: 0;
}

/* ============================================================
   Heatmap domaines
   ============================================================ */
.pd-heatmap-section { margin-bottom: 40px; }
.pd-heatmap {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 12px;
}
.pd-heat-tile {
  padding: 16px 20px;
  border: 1px solid rgba(15,38,80,.08);
  border-radius: var(--nd-radius-xl);
  background: var(--nd-paper);
  box-shadow: var(--nd-shadow-sm);
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
  transition: transform .16s, box-shadow .16s;
}
.pd-heat-tile:hover { transform: translateY(-2px); box-shadow: var(--nd-shadow-md); }
/* Left zone — domain identity */
.pd-heat-tile__left {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.pd-heat-tile__icon { font-size: 20px; }
.pd-heat-tile__name {
  font-size: 13px;
  font-weight: 600;
  color: var(--nd-text-secondary);
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pd-heat-tile__bar-track {
  width: 100%;
  height: 4px;
  background: var(--nd-ink-100);
  border-radius: 100px;
  overflow: hidden;
}
.pd-heat-tile__bar-fill {
  height: 100%;
  border-radius: 100px;
  width: 0;
  transition: width .8s cubic-bezier(.22,1,.36,1);
}
/* Right zone — performance (fixed width so left-zone bar is always the same size) */
.pd-heat-tile__right {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex: 0 0 104px;
  width: 104px;
}
.pd-heat-tile__score {
  font-family: var(--nd-font-display);
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -.025em;
  line-height: 1;
  width: 100%;
  text-align: center;
}
.pd-heat-tile__score span { font-size: 16px; font-weight: 500; }
.pd-heat-tile__badge {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 9999px;
  white-space: nowrap;
}

/* ============================================================
   Action cards (recommandations)
   ============================================================ */
.pd-actions { margin-bottom: 40px; }
.pd-action-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 14px;
}
.pd-action-card {
  padding: 24px;
  border: 1px solid rgba(15,38,80,.1);
  border-radius: var(--nd-radius-xl);
  background: var(--nd-paper);
  box-shadow: var(--nd-shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.pd-action-card__head {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.pd-action-card__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: var(--nd-radius-md);
  background: var(--nd-blue-50);
  color: var(--nd-brand-active);
  font-family: var(--nd-font-display);
  font-weight: 700;
  font-size: 13px;
  flex-shrink: 0;
}
.pd-action-card__tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--nd-text-muted);
}
.pd-action-card__priority {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 9999px;
  margin-left: auto;
}
.pd-action-card__title {
  font-family: var(--nd-font-display);
  font-size: 16px;
  font-weight: 600;
  color: var(--nd-text-primary);
  line-height: 1.3;
  margin: 0;
}
.pd-action-card__text {
  font-size: 13px;
  color: var(--nd-text-secondary);
  line-height: 1.6;
  margin: 0;
}

/* ============================================================
   Sticky bar
   ============================================================ */
.pd-sticky-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 32px;
  background: rgba(10,31,96,.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(77,122,255,.25);
  box-shadow: 0 -4px 24px rgba(0,0,0,.2);
  transform: translateY(100%);
  transition: transform .28s cubic-bezier(.22,1,.36,1);
}
.pd-sticky-bar.is-visible { transform: translateY(0); }
.pd-sticky-bar__score {
  display: flex;
  align-items: baseline;
  gap: 0;
}
.pd-sticky-bar__num {
  font-family: var(--nd-font-display);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1;
}
.pd-sticky-bar__sep { font-size: 14px; color: rgba(255,255,255,.4); margin: 0 8px 0 1px; }
.pd-sticky-bar__level {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .04em;
}
.pd-sticky-bar .pd-btn--primary {
  background: #fff;
  color: var(--nd-brand-active);
  border-color: #fff;
  padding: 12px 24px;
  font-size: 14px;
}
.pd-sticky-bar .pd-btn--primary:hover {
  background: var(--nd-blue-50);
  color: var(--nd-brand);
  border-color: var(--nd-blue-50);
}

/* ============================================================
   Results layout — domain detail grid
   ============================================================ */
.pd-detail {
  display: grid;
  grid-template-columns: minmax(0,.95fr) minmax(0,1.05fr);
  gap: 20px;
  margin-bottom: 40px;
}

/* ============================================================
   Responsive — nouvelles sections
   ============================================================ */
@media (max-width: 1060px) {
  .pd-intro__grid { grid-template-columns: 1fr; gap: 40px; }
  .pd-detail { grid-template-columns: 1fr; }
  .pd-final-cta { grid-template-columns: 1fr; }
  .pd-final-cta__actions { justify-content: center; }
}

@media (max-width: 800px) {
  .pd-quiz__grid { grid-template-columns: 1fr; gap: 20px; }

  /* Progression en haut, question en dessous */
  .pd-main { order: 2; }
  .pd-side { order: 1; position: static; }

  /* Sidebar compacte : juste la barre de progression + % */
  .pd-side {
    padding: 14px 16px;
    border-radius: var(--nd-radius-xl);
  }
  .pd-side__head { margin-bottom: 10px; }
  .pd-side__pct { font-size: 16px; }
  .pd-side__track { margin-bottom: 0; }

  /* Cacher la liste des domaines sur mobile */
  .pd-side__steps { display: none; }
}

@media (max-width: 920px) {
  .pd-impact__grid { grid-template-columns: 1fr 1fr; }
  /* 2 colonnes avec minmax(0) pour éviter tout débordement */
  .pd-heatmap { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .pd-action-cards { grid-template-columns: 1fr 1fr; }
  .pd-hero__inner { grid-template-columns: 1fr; gap: 32px; text-align: center; }
  .pd-hero__msg-col { align-items: center; }
  .pd-hero__title { max-width: 100%; }
  .pd-hero__eyebrow { align-self: center; }
  /* Options quiz : colonne unique quand la sidebar est encore visible */
  .pd-options { grid-template-columns: 1fr; }
  /* Sticky bar : centrage quand le layout passe en colonne unique */
  .pd-sticky-bar { justify-content: center; flex-wrap: wrap; gap: 16px; }
}

@media (max-width: 760px) {
  .pd-header { padding: 12px 20px; }
  .pd-container { width: calc(100% - 32px); }
  .pd-intro { padding: 56px 0; }
  .pd-quiz { padding: 32px 0 56px; }
  .pd-question-card { padding: 28px 22px; }
  .pd-options { grid-template-columns: 1fr; }
  .pd-hero { padding: 48px 0 40px; }
  .pd-gauge-wrap { width: 150px; height: 150px; }
  .pd-gauge-num { font-size: 44px; }
  .pd-impact__grid { grid-template-columns: 1fr; }
  .pd-heatmap { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .pd-sticky-bar { padding: 12px 20px; gap: 16px; }
  .pd-sticky-bar__num { font-size: 22px; }
  .pd-final-cta { padding: 28px 24px; }

  /* ── Results page: mobile centering & fixes ── */
  /* 72px = juste assez pour que le bouton flèche ne chevauche pas le disclaimer */
  .pd-results { padding-bottom: 72px; }
  .pd-section-label { text-align: center; }
  .pd-impact-card { align-items: center; text-align: center; }
  .pd-impact-card__top { justify-content: center; }
  .pd-impact-card__value { text-align: center; }
  .pd-impact-card__desc { width: 100%; text-align: center; }
  .pd-final-cta h3,
  .pd-final-cta p { text-align: center; }
  .pd-final-cta__actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 10px;
  }
  .pd-final-cta__actions .pd-btn { width: 100%; justify-content: center; }
  .pd-hero__cta-wrap {
    flex-direction: column;
    align-items: center;
    width: 100%;
  }
  .pd-hero__cta-wrap .pd-btn { width: 100%; justify-content: center; }
  /* Disclaimer: keep button from overlapping last line */
  .pd-disclaimer { padding-bottom: 12px; }
}

@media (max-width: 540px) {
  /* Heatmap single column */
  .pd-heatmap { grid-template-columns: 1fr; }

  /* Intro: CTA button full width */
  .pd-intro__cta .pd-btn { width: 100%; justify-content: center; }

  /* Cartes étape : 3 colonnes côte à côte, contenu centré */
  .pd-steps { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .pd-step-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 10px 6px;
    gap: 4px;
  }
  .pd-step-card__num { font-size: 11px; margin-bottom: 0; }
  .pd-step-card__body { flex: 1; display: flex; flex-direction: column; gap: 4px; text-align: center; }
  .pd-step-card__title { font-size: 13px; }
  .pd-step-card__desc { display: block; font-size: 11px; }

  /* Results: action cards single column */
  .pd-action-cards { grid-template-columns: 1fr !important; }

  /* Hero title smaller on very small screens */
  .pd-hero__title { font-size: 22px; }

  /* Sticky bar: tighter layout, score centré */
  .pd-sticky-bar { flex-direction: column; align-items: stretch; gap: 10px; padding: 12px 16px; }
  .pd-sticky-bar__score { justify-content: center; }
  .pd-sticky-bar .pd-btn--primary { text-align: center; }

  /* ── Domain detail rows: ajustements mobile ── */
  .pd-domain-row { padding: 12px 14px; gap: 10px; }
  .pd-domain-row__name { font-size: 13px; }
  .pd-domain-row__detail { font-size: 11px; }
  .pd-domain-row__score { font-size: 26px; }
}

/* ============================================================
   Modal — email résultats
   ============================================================ */
.pd-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(6, 24, 64, 0.52);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 300;
  padding: 16px;
  animation: pd-fade-in 160ms ease;
}
@keyframes pd-fade-in { from { opacity: 0; } to { opacity: 1; } }

.pd-modal {
  background: var(--nd-paper);
  border-radius: var(--nd-radius-xl);
  box-shadow: 0 24px 64px rgba(6, 24, 64, 0.22), 0 0 0 1px rgba(15, 38, 80, 0.08);
  padding: 36px 32px 32px;
  width: 100%;
  max-width: 440px;
  position: relative;
  animation: pd-slide-up 200ms ease;
}
@keyframes pd-slide-up {
  from { transform: translateY(14px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

.pd-modal__close {
  position: absolute;
  top: 14px; right: 14px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--nd-text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  border-radius: var(--nd-radius-sm);
  transition: color 0.15s, background 0.15s;
}
.pd-modal__close:hover { color: var(--nd-text-primary); background: var(--nd-ink-100); }

/* Head */
.pd-modal__head { text-align: center; margin-bottom: 24px; }
.pd-modal__icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--nd-blue-50);
  color: var(--nd-brand);
  margin-bottom: 14px;
}
.pd-modal__title {
  font-family: var(--nd-font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--nd-text-primary);
  margin: 0 0 6px;
}
.pd-modal__subtitle {
  font-size: var(--nd-fs-body-sm);
  color: var(--nd-text-muted);
  margin: 0;
}

/* Form */
.pd-modal__form { display: flex; flex-direction: column; gap: 16px; }
.pd-modal__form[hidden] { display: none; }
.pd-modal__field { display: flex; flex-direction: column; gap: 6px; }
.pd-modal__field label { font-size: 13px; font-weight: 600; color: var(--nd-text-primary); }
.pd-modal__field input[type="email"],
.pd-modal__field input[type="text"] {
  border: 1.5px solid rgba(15, 38, 80, 0.18);
  border-radius: var(--nd-radius-md);
  padding: 10px 14px;
  font-size: var(--nd-fs-body-md);
  font-family: inherit;
  color: var(--nd-text-primary);
  background: var(--nd-paper);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.pd-modal__field input[type="email"]:focus,
.pd-modal__field input[type="text"]:focus {
  border-color: var(--nd-brand);
  box-shadow: 0 0 0 3px rgba(11, 95, 255, 0.12);
}
.pd-modal__field-error { font-size: 12px; color: #DC2626; min-height: 16px; }

/* Checkbox personnalisée */
.pd-modal__check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
}
.pd-modal__check input[type="checkbox"] { position: absolute; opacity: 0; width: 0; height: 0; }
.pd-modal__check-box {
  flex-shrink: 0;
  width: 18px; height: 18px;
  margin-top: 2px;
  border: 2px solid rgba(15, 38, 80, 0.25);
  border-radius: 4px;
  background: var(--nd-paper);
  transition: background 0.15s, border-color 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.pd-modal__check input:checked ~ .pd-modal__check-box {
  background: var(--nd-brand);
  border-color: var(--nd-brand);
}
.pd-modal__check input:checked ~ .pd-modal__check-box::after {
  content: '';
  display: block;
  width: 10px; height: 6px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg) translateY(-1px);
}
.pd-modal__check-label { font-size: 13px; color: var(--nd-text-secondary); line-height: 1.45; }

.pd-modal__submit { width: 100%; justify-content: center; }
.pd-modal__submit:disabled { opacity: 0.6; cursor: not-allowed; }

.pd-modal__privacy {
  font-size: 11px;
  color: var(--nd-text-muted);
  line-height: 1.5;
  text-align: center;
  margin: 0;
}

/* États succès / erreur */
.pd-modal__state {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  padding: 8px 0 4px;
}
.pd-modal__state[hidden] { display: none; }

.pd-modal__state-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px; height: 64px;
  border-radius: 50%;
  margin-bottom: 8px;
}
.pd-modal__state-icon--ok { background: rgba(22, 163, 74, 0.1); color: #16A34A; }
.pd-modal__state-icon--ko { background: rgba(220, 38, 38, 0.1); color: #DC2626; }

.pd-modal__state-title {
  font-family: var(--nd-font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--nd-text-primary);
  margin: 0;
}
.pd-modal__state-text {
  font-size: var(--nd-fs-body-sm);
  color: var(--nd-text-muted);
  margin: 0 0 12px;
}

@media (max-width: 540px) {
  .pd-modal { padding: 28px 20px 24px; }
  .pd-modal__title { font-size: 19px; }
}

/* ============================================================
   Print (PDF report)
   ============================================================ */
@media print {
  @page { size: A4 portrait; margin: 14mm 16mm; }

  * { -webkit-print-color-adjust: exact !important; print-color-adjust: exact !important; }

  html, body { background: #fff !important; font-size: 11px; }

  /* Hide screen-only elements */
  .pd-header, .pd-exit, .pd-final-cta, .pd-side,
  .pd-sticky-bar, .pd-no-print, .scroll-top { display: none !important; }

  .pd-results { padding: 0 !important; }
  .pd-container { width: 100% !important; max-width: 100% !important; padding: 0 !important; }

  /* Show print-only elements */
  .pd-print-only { display: block !important; }

  /* ---- Document header ---- */
  .pd-print-doc-header {
    display: flex !important;
    align-items: flex-end;
    justify-content: space-between;
    padding-bottom: 10px;
    margin-bottom: 20px;
    border-bottom: 2px solid #0B5FFF;
  }
  .pd-print-doc-header__brand { display: flex; flex-direction: column; gap: 2px; }
  .pd-print-doc-header__logo {
    font-size: 20px;
    font-weight: 800;
    color: #0B5FFF;
    font-family: var(--nd-font-display);
    line-height: 1;
  }
  .pd-print-doc-header__title {
    font-size: 11px;
    font-weight: 600;
    color: #1e293b;
    letter-spacing: .01em;
  }
  .pd-print-doc-header__date {
    font-size: 10px;
    color: #64748b;
  }

  /* ---- Score block ---- */
  .pd-print-score-block {
    display: flex !important;
    align-items: center;
    gap: 28px;
    padding: 16px 0;
    margin-bottom: 20px;
    border-bottom: 1px solid #e5e7eb;
  }
  .pd-print-score-block__left { text-align: center; min-width: 96px; }
  .pd-print-score-block__num {
    font-size: 52px;
    font-weight: 800;
    line-height: 1;
    font-family: var(--nd-font-display);
  }
  .pd-print-score-block__num span {
    font-size: 18px;
    color: #94a3b8;
    font-weight: 500;
  }
  .pd-print-score-block__level {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-top: 4px;
  }
  .pd-print-score-block__msg {
    font-size: 16px;
    font-weight: 700;
    color: #0f1630;
    margin: 0 0 6px;
    font-family: var(--nd-font-display);
    line-height: 1.3;
  }
  .pd-print-score-block__desc {
    font-size: 12px;
    color: #475569;
    margin: 0;
    line-height: 1.5;
  }

  /* ---- Print section label ---- */
  .pd-print-section-label {
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: #94a3b8;
    margin: 0 0 10px;
  }

  /* ---- Print domain table ---- */
  .pd-print-domains { margin-bottom: 20px; }
  .pd-print-domain-row {
    padding: 9px 10px 9px 12px;
    margin-bottom: 6px;
    background: #f8fafc;
    border-radius: 4px;
  }
  .pd-print-domain-row__head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 4px;
  }
  .pd-print-domain-row__name {
    flex: 1;
    font-size: 12px;
    font-weight: 600;
    color: #0f1630;
  }
  .pd-print-domain-row__level {
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
  }
  .pd-print-domain-row__score {
    font-size: 14px;
    font-weight: 700;
    min-width: 36px;
    text-align: right;
    font-family: var(--nd-font-display);
  }
  .pd-print-bar-track {
    height: 5px;
    background: #e5e7eb;
    border-radius: 3px;
    margin-bottom: 4px;
    overflow: hidden;
  }
  .pd-print-bar-fill {
    height: 5px;
    border-radius: 3px;
  }
  .pd-print-domain-row__detail {
    font-size: 10px;
    color: #64748b;
    margin: 0;
    line-height: 1.4;
  }

  /* ---- Recommendations ---- */
  .pd-actions { break-before: page; padding-top: 4px; }
  .pd-section-label {
    font-size: 9px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: .12em !important;
    color: #94a3b8 !important;
  }
  .pd-action-cards { grid-template-columns: 1fr !important; gap: 10px !important; }
  .pd-card { box-shadow: none !important; }
  .pd-action-card {
    break-inside: avoid;
    border: 1px solid #e5e7eb !important;
    padding: 14px 16px !important;
  }
  .pd-action-card__title { font-size: 13px !important; margin: 6px 0 4px !important; }
  .pd-action-card__text { font-size: 11px !important; }

  /* ---- Print CTA ---- */
  .pd-print-cta {
    display: block !important;
    margin-top: 20px;
    padding: 14px 16px;
    border: 1.5px solid #0B5FFF;
    border-radius: 6px;
    break-inside: avoid;
  }
  .pd-print-cta__title {
    font-size: 13px;
    font-weight: 700;
    color: #0B5FFF;
    margin: 0 0 4px;
  }
  .pd-print-cta__text {
    font-size: 11px;
    color: #475569;
    margin: 0 0 4px;
  }
  .pd-print-cta__link {
    font-size: 11px;
    color: #0f1630;
    margin: 0;
  }

  /* ---- Footer ---- */
  .pd-print-footer {
    display: block !important;
    margin-top: 16px;
    padding-top: 10px;
    border-top: 1px solid #e5e7eb;
    font-size: 9px;
    color: #94a3b8;
    text-align: center;
  }
}
.pd-print-only { display: none; }
