
/* ============================================================
   Nexalys — Onboarding Coach
   Thème vert Excel, composants modernes et entièrement scopés
   sous .nxo-root afin de ne pas modifier le reste du taskpane.
   ============================================================ */

#tab-onboarding {
  background: transparent;
}

.nxo-root {
  --nxo-green: #217346;
  --nxo-green-hover: #185c37;
  --nxo-green-deep: #0f5132;
  --nxo-green-soft: #eef8f2;
  --nxo-green-soft-2: #d8eddf;
  --nxo-green-border: #b9ddc7;

  --nxo-ink: #10231a;
  --nxo-text: #334155;
  --nxo-muted: #64748b;
  --nxo-subtle: #94a3b8;
  --nxo-card: #ffffff;
  --nxo-bg: #f7faf8;
  --nxo-soft: #f1f5f3;
  --nxo-border: #e2e9e5;
  --nxo-border-strong: #cfdad3;

  --nxo-warn-ink: #a16207;
  --nxo-warn-soft: #fffbeb;
  --nxo-warn-border: #fde68a;

  --nxo-danger: #b91c1c;
  --nxo-danger-soft: #fef2f2;
  --nxo-danger-border: #fecaca;

  --nxo-sh-1: 0 1px 2px rgba(15, 23, 42, .045);
  --nxo-sh-2: 0 1px 2px rgba(15, 23, 42, .04), 0 7px 20px rgba(15, 23, 42, .065);
  --nxo-sh-green: 0 1px 2px rgba(15, 81, 50, .08), 0 12px 30px rgba(33, 115, 70, .15);

  min-height: 100%;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 18px 14px 20px;
  color: var(--nxo-text);
  background:
    radial-gradient(circle at 100% 0, rgba(33, 115, 70, .06), transparent 220px),
    var(--nxo-bg);

  font-family: "Geist", "Geist Variable", "InterVariable", "Inter", system-ui,
               -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-feature-settings: "tnum" 1, "ss01" 1, "cv11" 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: -.006em;
}

/* ── Progression ── */

.nxo-header {
  display: block;
}

.nxo-progress {
  display: flex;
  align-items: center;
  gap: 11px;
}

.nxo-progress-track {
  flex: 1 1 auto;
  height: 4px;
  overflow: hidden;
  border-radius: 999px;
  background: #e7eee9;
}

.nxo-progress-fill {
  width: 33.333%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--nxo-green), #2f8d59);
  transition: width .38s cubic-bezier(.4, 0, .2, 1);
}

.nxo-progress-label {
  flex: 0 0 auto;
  color: var(--nxo-muted);
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 10.5px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

/* ── Étapes ── */

.nxo-steps {
  flex: 1 1 auto;
  min-height: 0;
}

.nxo-step {
  display: none;
  animation: nxo-in .28s cubic-bezier(.22, 1, .36, 1);
}

.nxo-step.is-active {
  display: block;
}

@keyframes nxo-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.nxo-step-head {
  margin-bottom: 18px;
}

.nxo-step-kicker {
  display: block;
  margin-bottom: 6px;
  color: var(--nxo-green);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.nxo-step-title {
  margin: 0 0 7px;
  color: var(--nxo-ink);
  font-size: 22px;
  font-weight: 680;
  line-height: 1.2;
  letter-spacing: -.035em;
}

.nxo-step-sub {
  margin: 0;
  color: var(--nxo-muted);
  font-size: 13.5px;
  line-height: 1.55;
  letter-spacing: -.01em;
}

/* ── Accueil ── */

.nxo-hero {
  margin-bottom: 12px;
  padding: 28px 20px 24px;
  text-align: center;
  border: 1px solid var(--nxo-green-soft-2);
  border-radius: 18px;
  background:
    linear-gradient(150deg, rgba(238, 248, 242, .96) 0%, #ffffff 68%);
  box-shadow: var(--nxo-sh-green);
}

.nxo-hero-badge {
  display: inline-flex;
  align-items: center;
  margin-bottom: 16px;
  padding: 5px 12px;
  color: var(--nxo-green-deep);
  border: 1px solid var(--nxo-green-border);
  border-radius: 999px;
  background: rgba(255, 255, 255, .88);
  box-shadow: var(--nxo-sh-1);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.nxo-hero-title {
  margin: 0 0 10px;
  color: var(--nxo-ink);
  font-size: 24px;
  font-weight: 680;
  line-height: 1.18;
  letter-spacing: -.038em;
}

.nxo-hero-sub {
  max-width: 350px;
  margin: 0 auto;
  color: var(--nxo-muted);
  font-size: 13px;
  line-height: 1.6;
}

.nxo-pillars {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nxo-pillar {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 13px 14px;
  border: 1px solid var(--nxo-border);
  border-radius: 13px;
  background: var(--nxo-card);
  box-shadow: var(--nxo-sh-1);
  transition: border-color .16s ease, box-shadow .16s ease, transform .12s ease;
}

.nxo-pillar:hover {
  transform: translateY(-1px);
  border-color: var(--nxo-green-border);
  box-shadow: var(--nxo-sh-2);
}

.nxo-pillar-ico {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  color: var(--nxo-green-deep);
  border-radius: 9px;
  background: var(--nxo-green-soft);
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 11.5px;
  font-weight: 650;
}

.nxo-pillar div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nxo-pillar strong {
  color: var(--nxo-ink);
  font-size: 13px;
  font-weight: 660;
  letter-spacing: -.015em;
}

.nxo-pillar span {
  color: var(--nxo-muted);
  font-size: 12px;
  line-height: 1.45;
}


/* Parcours animé 1 → 2 → 3 : séquence courte et discrète */

.nxo-journey {
  position: relative;
  gap: 8px;
}

.nxo-journey::before,
.nxo-journey::after {
  position: absolute;
  z-index: 0;
  top: 27px;
  bottom: 27px;
  left: 27px;
  width: 2px;
  border-radius: 999px;
  content: "";
  pointer-events: none;
}

.nxo-journey::before {
  background: var(--nxo-border);
}

.nxo-journey::after {
  background: linear-gradient(180deg, var(--nxo-green), #55a978);
  transform: scaleY(0);
  transform-origin: top;
}

.nxo-step.is-active .nxo-journey::after {
  animation: nxo-journey-line 1.45s cubic-bezier(.4, 0, .2, 1) .18s forwards;
}

.nxo-journey .nxo-pillar {
  z-index: 1;
  opacity: 0;
  transform: translateY(7px);
}

.nxo-step.is-active .nxo-journey .nxo-pillar:nth-child(1) {
  animation: nxo-journey-item .32s cubic-bezier(.22, 1, .36, 1) .08s forwards;
}

.nxo-step.is-active .nxo-journey .nxo-pillar:nth-child(2) {
  animation: nxo-journey-item .32s cubic-bezier(.22, 1, .36, 1) .62s forwards;
}

.nxo-step.is-active .nxo-journey .nxo-pillar:nth-child(3) {
  animation: nxo-journey-item .32s cubic-bezier(.22, 1, .36, 1) 1.16s forwards;
}

.nxo-step.is-active .nxo-journey .nxo-pillar:nth-child(1) .nxo-pillar-ico {
  animation: nxo-journey-node .38s ease .20s both;
}

.nxo-step.is-active .nxo-journey .nxo-pillar:nth-child(2) .nxo-pillar-ico {
  animation: nxo-journey-node .38s ease .74s both;
}

.nxo-step.is-active .nxo-journey .nxo-pillar:nth-child(3) .nxo-pillar-ico {
  animation: nxo-journey-node .38s ease 1.28s both;
}

@keyframes nxo-journey-item {
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes nxo-journey-line {
  to {
    transform: scaleY(1);
  }
}

@keyframes nxo-journey-node {
  0% {
    color: var(--nxo-muted);
    background: var(--nxo-soft);
    box-shadow: 0 0 0 0 rgba(33, 115, 70, 0);
  }
  55% {
    color: #ffffff;
    background: var(--nxo-green);
    box-shadow: 0 0 0 5px rgba(33, 115, 70, .12);
  }
  100% {
    color: var(--nxo-green-deep);
    background: var(--nxo-green-soft);
    box-shadow: none;
  }
}

/* ── Formulaire objectif + contexte ── */

.nxo-form-card,
.nxo-context-card {
  border: 1px solid var(--nxo-border);
  border-radius: 16px;
  background: var(--nxo-card);
  box-shadow: var(--nxo-sh-2);
}

.nxo-form-card {
  overflow: hidden;
}

.nxo-form-section {
  padding: 17px;
}

.nxo-section-divider {
  height: 1px;
  margin: 0 17px;
  background: var(--nxo-border);
}

.nxo-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.nxo-section-head > div {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.nxo-section-number {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  color: #ffffff;
  border-radius: 8px;
  background: var(--nxo-green);
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 10.5px;
  font-weight: 650;
}

.nxo-section-title {
  color: var(--nxo-ink);
  font-size: 13px;
  font-weight: 680;
}


.nxo-required {
  display: inline-flex;
  align-items: center;
  margin-left: 5px;
  padding: 2px 6px;
  color: var(--nxo-green-deep);
  border: 1px solid var(--nxo-green-border);
  border-radius: 999px;
  background: var(--nxo-green-soft);
  font-size: 8.5px;
  font-weight: 750;
  letter-spacing: .055em;
  text-transform: uppercase;
  vertical-align: middle;
}

.nxo-required-help {
  margin: 10px 2px 0;
  color: var(--nxo-muted);
  font-size: 11px;
  line-height: 1.45;
  text-align: center;
}

/* Objectifs */

.nxo-goals {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.nxo-goal {
  position: relative;
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  min-width: 0;
  padding: 11px 12px;
  color: inherit;
  border: 1px solid var(--nxo-border);
  border-radius: 12px;
  background: var(--nxo-card);
  box-shadow: var(--nxo-sh-1);
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  transition: border-color .15s ease, box-shadow .15s ease, transform .1s ease, background-color .15s ease;
}

.nxo-goal:hover {
  transform: translateY(-1px);
  border-color: var(--nxo-green-border);
  box-shadow: var(--nxo-sh-2);
}

.nxo-goal:active {
  transform: none;
}

.nxo-goal:focus-visible {
  outline: 2px solid var(--nxo-green);
  outline-offset: 2px;
}

.nxo-goal-ico {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--nxo-soft);
  font-size: 15px;
  transition: background-color .15s ease;
}

.nxo-goal-label {
  flex: 1 1 auto;
  min-width: 0;
  color: var(--nxo-ink);
  font-size: 13px;
  font-weight: 520;
  line-height: 1.35;
  letter-spacing: -.012em;
}

.nxo-goal-check {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--nxo-border-strong);
  border-radius: 50%;
  background: #fff;
  transition: border-color .15s ease, background-color .15s ease;
}

.nxo-goal-check::after {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: transparent;
  content: "";
  transition: background-color .15s ease;
}

.nxo-goal.is-selected {
  border-color: var(--nxo-green);
  background: var(--nxo-green-soft);
  box-shadow: 0 0 0 1px var(--nxo-green), 0 7px 18px rgba(33, 115, 70, .12);
}

.nxo-goal.is-selected .nxo-goal-label {
  color: var(--nxo-green-deep);
  font-weight: 650;
}

.nxo-goal.is-selected .nxo-goal-ico {
  background: #ffffff;
}

.nxo-goal.is-selected .nxo-goal-check {
  border-color: var(--nxo-green);
  background: var(--nxo-green);
}

.nxo-goal.is-selected .nxo-goal-check::after {
  background: #ffffff;
}

/* Contexte facultatif */

.nxo-context-card {
  margin-top: 12px;
  padding: 17px;
}

.nxo-context-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.nxo-context-eyebrow {
  display: block;
  margin-bottom: 3px;
  color: var(--nxo-green);
  font-size: 9.5px;
  font-weight: 750;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.nxo-context-title {
  margin: 0;
  color: var(--nxo-ink);
  font-size: 15px;
  font-weight: 670;
  letter-spacing: -.02em;
}


.nxo-field {
  margin-bottom: 18px;
}

.nxo-field--last {
  margin-bottom: 0;
}

.nxo-field-label {
  display: block;
  margin-bottom: 8px;
  color: var(--nxo-ink);
  font-size: 12px;
  font-weight: 660;
}

.nxo-field-label em {
  color: var(--nxo-subtle);
  font-style: normal;
  font-weight: 500;
}

.nxo-field-hint {
  margin: -3px 0 9px;
  color: var(--nxo-subtle);
  font-size: 11.5px;
  line-height: 1.45;
}

/* Chips */

.nxo-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.nxo-chip {
  padding: 8px 13px;
  color: var(--nxo-text);
  border: 1px solid var(--nxo-border);
  border-radius: 999px;
  background: var(--nxo-card);
  box-shadow: var(--nxo-sh-1);
  cursor: pointer;
  font-family: inherit;
  font-size: 12px;
  font-weight: 520;
  letter-spacing: -.01em;
  transition: border-color .14s ease, background-color .14s ease, color .14s ease, box-shadow .14s ease, transform .1s ease;
}

.nxo-chip:hover {
  transform: translateY(-1px);
  color: var(--nxo-green-deep);
  border-color: var(--nxo-green-border);
  box-shadow: var(--nxo-sh-2);
}

.nxo-chip:focus-visible {
  outline: 2px solid var(--nxo-green);
  outline-offset: 2px;
}

.nxo-chip.is-selected {
  color: #ffffff;
  border-color: var(--nxo-green);
  background: var(--nxo-green);
  box-shadow: 0 5px 14px rgba(33, 115, 70, .22);
  font-weight: 630;
}

/* Listes déroulantes adaptatives */

.nxo-select,
.nxo-multiselect {
  position: relative;
}

.nxo-dropdown-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  min-height: 43px;
  padding: 10px 12px;
  color: var(--nxo-muted);
  border: 1px solid var(--nxo-border-strong);
  border-radius: 11px;
  background: #ffffff;
  box-shadow: var(--nxo-sh-1);
  cursor: pointer;
  font-family: inherit;
  font-size: 12.5px;
  text-align: left;
  transition: border-color .15s ease, box-shadow .15s ease, color .15s ease;
}

.nxo-dropdown-trigger:hover {
  border-color: var(--nxo-green-border);
}

.nxo-dropdown-trigger:focus-visible,
.nxo-select.is-open .nxo-dropdown-trigger,
.nxo-multiselect.is-open .nxo-dropdown-trigger {
  outline: none;
  color: var(--nxo-ink);
  border-color: var(--nxo-green);
  box-shadow: 0 0 0 3px rgba(33, 115, 70, .12);
}

.nxo-select.has-value .nxo-dropdown-trigger,
.nxo-multiselect.has-value .nxo-dropdown-trigger {
  color: var(--nxo-ink);
  font-weight: 570;
}

.nxo-dropdown-summary {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nxo-dropdown-chevron {
  flex: 0 0 auto;
  transition: transform .15s ease;
}

.nxo-select.is-open .nxo-dropdown-chevron,
.nxo-multiselect.is-open .nxo-dropdown-chevron {
  transform: rotate(180deg);
}

.nxo-dropdown-menu {
  position: fixed;
  z-index: 100020;
  box-sizing: border-box;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 6px;
  border: 1px solid var(--nxo-border-strong);
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 18px 42px rgba(15, 23, 42, .16);
  animation: nxo-dropdown-in .14s ease-out;
}

.nxo-dropdown-menu[hidden] {
  display: none;
}

@keyframes nxo-dropdown-in {
  from {
    opacity: 0;
    transform: translateY(-3px) scale(.99);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.nxo-select.is-above .nxo-dropdown-menu,
.nxo-multiselect.is-above .nxo-dropdown-menu {
  transform-origin: bottom center;
}

.nxo-select-option {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  min-height: 36px;
  padding: 8px 9px;
  color: var(--nxo-text);
  border: 0;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-size: 12.5px;
  line-height: 1.35;
  text-align: left;
  transition: background-color .12s ease, color .12s ease;
}

.nxo-select-option:hover,
.nxo-select-option:focus-visible {
  outline: none;
  color: var(--nxo-green-deep);
  background: var(--nxo-green-soft);
}

.nxo-select-option.is-selected {
  color: var(--nxo-green-deep);
  background: var(--nxo-green-soft);
  font-weight: 630;
}

.nxo-select-option-ico {
  flex: 0 0 auto;
  width: 22px;
  text-align: center;
}

.nxo-select-option > span:not(.nxo-select-option-ico):not(.nxo-select-option-check) {
  flex: 1 1 auto;
  min-width: 0;
}

.nxo-select-option-check {
  flex: 0 0 auto;
  color: var(--nxo-green);
  opacity: 0;
}

.nxo-select-option.is-selected .nxo-select-option-check {
  opacity: 1;
}

.nxo-option {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 34px;
  padding: 7px 8px;
  border-radius: 8px;
  color: var(--nxo-text);
  cursor: pointer;
  font-size: 12.5px;
  line-height: 1.35;
  transition: background-color .12s ease, color .12s ease;
}

.nxo-option:hover {
  color: var(--nxo-green-deep);
  background: var(--nxo-green-soft);
}

.nxo-option input {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--nxo-green);
}

.nxo-other-field {
  margin: 4px 4px 2px;
  padding: 9px;
  border-top: 1px solid var(--nxo-border);
}

.nxo-other-field[hidden] {
  display: none;
}

.nxo-other-field label {
  display: block;
  margin-bottom: 6px;
  color: var(--nxo-muted);
  font-size: 10.5px;
  font-weight: 600;
}

.nxo-other-input {
  width: 100%;
  box-sizing: border-box;
  padding: 9px 10px;
  color: var(--nxo-ink);
  border: 1px solid var(--nxo-border-strong);
  border-radius: 9px;
  background: var(--nxo-bg);
  font: inherit;
  font-size: 12px;
}

.nxo-other-input:focus {
  outline: none;
  border-color: var(--nxo-green);
  box-shadow: 0 0 0 3px rgba(33, 115, 70, .11);
  background: #ffffff;
}


/* Résumé visible des usages sélectionnés */

.nxo-selection-box {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
  padding: 9px;
  border: 1px solid var(--nxo-green-border);
  border-radius: 11px;
  background: var(--nxo-green-soft);
}

.nxo-selection-box[hidden] {
  display: none;
}

.nxo-selection-box-label {
  flex: 1 0 100%;
  color: var(--nxo-green-deep);
  font-size: 10px;
  font-weight: 680;
  letter-spacing: .025em;
}

.nxo-selection-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  min-height: 27px;
  padding: 4px 8px 4px 9px;
  color: var(--nxo-green-deep);
  border: 1px solid var(--nxo-green-border);
  border-radius: 999px;
  background: #ffffff;
  box-shadow: var(--nxo-sh-1);
  cursor: pointer;
  font: inherit;
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.25;
  text-align: left;
}

.nxo-selection-tag:hover {
  border-color: var(--nxo-green);
  background: #f8fcf9;
}

.nxo-selection-tag:focus-visible {
  outline: 2px solid var(--nxo-green);
  outline-offset: 2px;
}

.nxo-selection-tag-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nxo-selection-tag-remove {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 16px;
  height: 16px;
  color: var(--nxo-green);
  border-radius: 50%;
  background: var(--nxo-green-soft);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
}

/* ── Diagnostic ── */

.nxo-diag-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.nxo-diag-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px;
  color: var(--nxo-ink);
  border: 1px solid var(--nxo-border);
  border-radius: 999px;
  background: var(--nxo-card);
  box-shadow: var(--nxo-sh-1);
  font-size: 11.5px;
  font-weight: 620;
}

.nxo-diag-pill-k {
  color: var(--nxo-green);
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 9px;
  font-weight: 650;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.nxo-diag-card {
  padding: 2px 15px;
  border: 1px solid var(--nxo-green-soft-2);
  border-radius: 15px;
  background: var(--nxo-card);
  box-shadow: var(--nxo-sh-2);
}

.nxo-diag-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.nxo-diag-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid var(--nxo-soft);
}

.nxo-diag-list li:first-child {
  border-top: 0;
}

.nxo-diag-num {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 23px;
  height: 23px;
  color: var(--nxo-green-deep);
  border-radius: 8px;
  background: var(--nxo-green-soft);
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 10px;
  font-weight: 650;
}

.nxo-diag-text {
  color: var(--nxo-text);
  font-size: 12.5px;
  line-height: 1.52;
}

.nxo-diag-text strong {
  color: var(--nxo-ink);
  font-weight: 650;
}

.nxo-diag-note {
  margin-top: 12px;
  padding: 13px 14px;
  border: 1px solid var(--nxo-border);
  border-radius: 12px;
  background: var(--nxo-soft);
}

.nxo-diag-note p {
  margin: 0;
  color: var(--nxo-muted);
  font-size: 12px;
  line-height: 1.5;
}

.nxo-diag-note p + p {
  margin-top: 5px;
}

.nxo-diag-note strong {
  color: var(--nxo-green-deep);
  font-weight: 650;
}

/* ── Changement d'objectif ── */

.nxo-choice {
  align-items: flex-start;
  padding: 14px;
}

.nxo-choice .nxo-goal-ico {
  margin-top: 1px;
}

.nxo-choice-body {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.nxo-choice-sub {
  color: var(--nxo-muted);
  font-size: 11.5px;
  line-height: 1.45;
}

.nxo-goal.is-selected .nxo-choice-sub {
  color: var(--nxo-text);
}

.nxo-choice .nxo-goal-check {
  margin-top: 7px;
}

.nxo-retake-error {
  margin: 10px 0 0;
  padding: 10px 12px;
  color: var(--nxo-danger);
  border: 1px solid var(--nxo-danger-border);
  border-radius: 10px;
  background: var(--nxo-danger-soft);
  font-size: 12px;
  line-height: 1.45;
}

.nxo-retake-error[hidden] {
  display: none;
}

/* ── Footer ── */

.nxo-footer {
  flex: 0 0 auto;
  display: flex;
  gap: 9px;
  margin-top: auto;
  padding-top: 8px;
}

.nxo-btn {
  min-height: 42px;
  border: 1px solid transparent;
  border-radius: 11px;
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  font-weight: 650;
  transition: background-color .15s ease, border-color .15s ease, box-shadow .15s ease, transform .08s ease;
}

.nxo-btn:active {
  transform: translateY(1px);
}

.nxo-btn:focus-visible {
  outline: 2px solid var(--nxo-green);
  outline-offset: 2px;
}

.nxo-btn-primary {
  flex: 1 1 auto;
  color: #ffffff;
  border-color: var(--nxo-green);
  background: var(--nxo-green);
  box-shadow: 0 6px 16px rgba(33, 115, 70, .23);
}

.nxo-btn-primary:hover {
  border-color: var(--nxo-green-hover);
  background: var(--nxo-green-hover);
  box-shadow: 0 9px 22px rgba(33, 115, 70, .27);
}

.nxo-btn-primary:disabled {
  cursor: not-allowed;
  color: #8a9890;
  border-color: #dce5df;
  background: #e8eeea;
  box-shadow: none;
}

.nxo-btn-ghost {
  flex: 0 0 auto;
  min-width: 96px;
  padding: 0 14px;
  color: var(--nxo-text);
  border-color: var(--nxo-border);
  background: var(--nxo-card);
  box-shadow: var(--nxo-sh-1);
}

.nxo-btn-ghost:hover {
  color: var(--nxo-green-deep);
  border-color: var(--nxo-green-border);
  box-shadow: var(--nxo-sh-2);
}

.nxo-btn-ghost[hidden] {
  display: none;
}

/* ── Adaptation au taskpane ── */

@media (min-width: 440px) {
  .nxo-goals {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 390px) {
  .nxo-root {
    padding-right: 12px;
    padding-left: 12px;
  }

  .nxo-section-head {
    align-items: flex-start;
  }

  .nxo-footer {
    flex-direction: column-reverse;
  }

  .nxo-btn-ghost {
    width: 100%;
    min-width: 0;
  }

  .nxo-step-title {
    font-size: 20px;
  }

  .nxo-hero-title {
    font-size: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nxo-step {
    animation: none;
  }

  .nxo-progress-fill,
  .nxo-goal,
  .nxo-chip,
  .nxo-pillar,
  .nxo-btn,
  .nxo-dropdown-chevron {
    transition: none;
  }

  .nxo-step.is-active .nxo-journey::after,
  .nxo-step.is-active .nxo-journey .nxo-pillar,
  .nxo-step.is-active .nxo-journey .nxo-pillar-ico {
    animation: none;
  }

  .nxo-journey::after {
    transform: scaleY(1);
  }

  .nxo-journey .nxo-pillar {
    opacity: 1;
    transform: none;
  }

  .nxo-goal:hover,
  .nxo-chip:hover,
  .nxo-pillar:hover {
    transform: none;
  }
}

/* ── Diagnostic onboarding — thème vert Excel ──
   learning-diagnostic.ts injecte ses styles au runtime. Ces sélecteurs sont
   volontairement plus spécifiques afin de conserver le thème Coach vert,
   y compris pour le bouton « J'ai terminé ». */
html body #nx-test-view {
  --c-bg1: #f7faf8;
  --c-bg2: #eef8f2;
  --c-ink: #10231a;
  --c-text: #334155;
  --c-muted: #64748b;
  --c-card: #ffffff;
  --c-border: #e2e9e5;

  --c-primary: #217346;
  --c-primary-2: #2f8d59;
  --c-primary-ink: #185c37;
  --c-primary-soft: #eef8f2;
  --c-primary-soft-2: #d8eddf;

  --c-success: #217346;
  --c-success-2: #2f8d59;
  --c-success-ink: #185c37;
  --c-success-soft: #eef8f2;
  --c-success-border: #b9ddc7;

  --grad-brand: linear-gradient(135deg, #217346 0%, #2f8d59 100%);
  --grad-duo: linear-gradient(90deg, #217346 0%, #2f8d59 100%);
}

html body #nx-test-view .nxl2-btn--success,
html body #nx-test-view .nx-test-btn--primary {
  color: #ffffff !important;
  border-color: #185c37 !important;
  background: #217346 !important;
  box-shadow: 0 6px 16px rgba(33, 115, 70, .25) !important;
}

html body #nx-test-view .nxl2-btn--success:hover,
html body #nx-test-view .nx-test-btn--primary:hover {
  border-color: #185c37 !important;
  background: #185c37 !important;
  box-shadow: 0 8px 20px rgba(33, 115, 70, .30) !important;
  filter: none !important;
}

html body #nx-test-view .nxl2-progress > i {
  background: linear-gradient(90deg, #217346, #2f8d59) !important;
}

html body #nx-test-view .nxl2-badge,
html body #nx-test-view .nx-test-chrono,
html body #nx-test-view .nxl2-ex-kicker,
html body #nx-test-view .nxq-head {
  color: #185c37 !important;
}

html body #nx-test-view .nxl2-badge,
html body #nx-test-view .nx-test-chrono {
  border-color: #b9ddc7 !important;
  background: #eef8f2 !important;
}

html body #nx-test-view .nx-test-practice,
html body #nx-test-view .nx-test-sheet-card,
html body #nx-test-view .nx-test-question-panel {
  border-color: #d8eddf !important;
}

html body #nx-test-view .nx-test-sheet-ico,
html body #nx-test-view .nxq-num {
  color: #185c37 !important;
  background: #eef8f2 !important;
  border-color: #b9ddc7 !important;
}

html body #nx-test-view .nxq-opt.is-selected {
  color: #185c37 !important;
  border-color: #217346 !important;
  background: #eef8f2 !important;
  box-shadow: 0 0 0 1px #217346 !important;
}

html body #nx-test-view .nxq-opt.is-selected .nxq-radio {
  border-color: #217346 !important;
  background: #217346 !important;
}
