/*
 * NOVA — Parcours de soin
 * Composant autonome : uniquement .nova-care-path.
 */

.nova-care-path,
.nova-care-path * {
  box-sizing: border-box;
}

.nova-care-path {
  --nova-path-black: #0c0d0e;
  --nova-path-ink: #17191c;
  --nova-path-muted: #6d747d;
  --nova-path-line: #d6d9df;
  --nova-path-grey: #edeff6;
  --nova-path-white: #ffffff;
  width: 100%;
  color: var(--nova-path-ink);
  font: inherit;
}

.nova-care-path h2,
.nova-care-path h3,
.nova-care-path p,
.nova-care-path span,
.nova-care-path button {
  font-family: inherit !important;
  text-transform: none !important;
}

.nova-care-path button {
  appearance: none !important;
  margin: 0 !important;
  border: 0 !important;
  font: inherit !important;
  letter-spacing: normal !important;
  text-transform: none !important;
}

.nova-care-path__layout {
  display: grid;
  grid-template-columns: minmax(240px, .84fr) minmax(0, 2.16fr);
  align-items: stretch;
  gap: 26px;
  min-height: 440px;
}

.nova-care-path__side,
.nova-care-path__mobile-summary {
  border: 1px solid var(--nova-path-grey);
  border-radius: 20px;
  background: var(--nova-path-white);
  box-shadow: 0 12px 32px rgba(12, 13, 14, .045);
}

.nova-care-path__side {
  display: flex;
  min-height: 440px;
  flex-direction: column;
  padding: 20px;
}

.nova-care-path p.nova-care-path__eyebrow {
  margin: 0 0 5px;
  color: var(--nova-path-black) !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  letter-spacing: .05em;
  line-height: 1.2;
  text-transform: uppercase;
}

.nova-care-path__steps {
  display: grid;
  gap: 6px;
  margin-top: 18px;
}

.nova-care-path__step {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 52px;
  width: 100%;
  border: 1px solid var(--nova-path-line) !important;
  border-radius: 8px;
  background: var(--nova-path-white) !important;
  color: #747b84 !important;
  padding: 8px 10px !important;
  cursor: pointer !important;
  text-align: left;
  transition: border-color .2s ease, background-color .2s ease, color .2s ease;
}

.nova-care-path__step:hover {
  border-color: #9aa4af !important;
}

.nova-care-path__step[aria-selected="true"] {
  border-color: var(--nova-path-black) !important;
  background: var(--nova-path-black) !important;
  color: var(--nova-path-white) !important;
}

.nova-care-path__step.is-complete {
  border-color: #bfc5cc !important;
  color: var(--nova-path-ink) !important;
}

.nova-care-path__step-number {
  color: inherit;
  font-size: 17px !important;
  font-weight: 500 !important;
  letter-spacing: -.04em;
  line-height: 1;
}

.nova-care-path__step-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.nova-care-path__step-name {
  color: inherit;
  font-size: 13px !important;
  font-weight: 400 !important;
  line-height: 1.2;
}

.nova-care-path__step-state {
  color: inherit;
  font-size: 10px !important;
  font-weight: 200 !important;
  line-height: 1.15;
  opacity: .72;
}

.nova-care-path__progress {
  margin-top: auto;
  padding-top: 16px;
}

.nova-care-path p.nova-care-path__progress-label,
.nova-care-path p.nova-care-path__mobile-progress-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  /* Reste volontairement séparé de la barre, même si le thème modifie les <p>. */
  margin: 0 0 14px !important;
  color: var(--nova-path-ink);
  font-size: 12px !important;
  font-weight: 400 !important;
  line-height: 1.2;
}

.nova-care-path__progress-track {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--nova-path-grey);
}

.nova-care-path__progress-fill {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--nova-path-black);
  transition: width .22s ease;
}

.nova-care-path__mobile-summary {
  display: none;
}

.nova-care-path__panels {
  min-width: 0;
  min-height: 440px;
}

.nova-care-path__panel {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  grid-template-rows: minmax(0, 1fr);
  column-gap: 28px;
  min-height: 440px;
  transition: opacity .2s ease, transform .2s ease;
}

.nova-care-path__panel[hidden] {
  display: none !important;
}

.nova-care-path__panel.is-entering {
  opacity: 0;
  transform: translateY(10px);
}

.nova-care-path__copy {
  display: flex;
  min-width: 0;
  min-height: 0;
  height: 100%;
  flex-direction: column;
}

.nova-care-path p.nova-care-path__tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  margin: 0 0 14px;
  border: 1px solid var(--nova-path-black);
  border-radius: 999px;
  padding: 7px 10px;
  color: var(--nova-path-ink);
  font-size: 11px !important;
  font-weight: 400 !important;
  line-height: 1;
}

.nova-care-path__tag::before {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--nova-path-black);
  content: "";
}

.nova-care-path h3.nova-care-path__heading {
  margin: 0;
  color: var(--nova-path-ink);
  font-size: clamp(27px, 2.2vw, 32px) !important;
  font-weight: 500 !important;
  letter-spacing: -.05em;
  line-height: 1.04;
}

.nova-care-path__divider {
  width: 56px;
  height: 1px;
  margin: 18px 0;
  background: var(--nova-path-line);
}

.nova-care-path p.nova-care-path__text {
  width: 100%;
  max-width: 540px;
  margin: 0;
  color: #000000 !important;
  font-size: 20px !important;
  font-weight: 200 !important;
  line-height: 1.3em !important;
}

/* Le texte détaillé équilibre la version ordinateur ; le texte court reste mobile. */
.nova-care-path__text--compact {
  display: none;
}

.nova-care-path__actions {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  margin-top: auto;
}

.nova-care-path__action {
  display: inline-flex !important;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 15px;
  border: 1px solid var(--nova-path-black) !important;
  border-radius: 8px;
  background: var(--nova-path-black) !important;
  color: var(--nova-path-white) !important;
  padding: 0 16px !important;
  cursor: pointer !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  line-height: 1 !important;
  text-decoration: none !important;
  transition: background-color .18s ease, transform .18s ease;
}

.nova-care-path__action:hover {
  background: #303235 !important;
}

.nova-care-path__action:active {
  transform: translateY(1px);
}

.nova-care-path__action--previous {
  flex: 0 0 46px;
  width: 46px;
  padding: 0 !important;
  font-size: 0 !important;
  font-weight: 400 !important;
}

.nova-care-path__action--previous::before,
.nova-care-path__action-arrow::before {
  content: "";
  display: block;
  width: 22px;
  height: 22px;
  background-color: currentColor;
  -webkit-mask-position: center;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-position: center;
  mask-repeat: no-repeat;
  mask-size: contain;
}

.nova-care-path__action--previous::before {
  -webkit-mask-image: var(--nova-svg-arrow-left);
  mask-image: var(--nova-svg-arrow-left);
}

.nova-care-path__action[hidden] {
  display: none !important;
}

.nova-care-path__action-arrow {
  display: inline-block;
  width: 22px;
  height: 22px;
  font-size: 0;
  line-height: 1;
}

.nova-care-path__action-arrow::before {
  -webkit-mask-image: var(--nova-svg-arrow-right);
  mask-image: var(--nova-svg-arrow-right);
}

/* Le caractère ← présent dans le HTML reste masqué à tous les breakpoints. */
.nova-care-path .nova-care-path__action.nova-care-path__action--previous {
  position: relative;
  display: block !important;
  font-size: 0 !important;
  line-height: 0 !important;
}

/* L'icône couvre le carré : le masque de 22 px est donc centré exactement,
   sans être influencé par le caractère ← conservé dans le HTML. */
.nova-care-path .nova-care-path__action.nova-care-path__action--previous::before {
  position: absolute;
  inset: 0;
  display: block;
  width: auto;
  height: auto;
  -webkit-mask-position: center;
  -webkit-mask-size: 22px 22px;
  mask-position: center;
  mask-size: 22px 22px;
}

/* À l'étape 01, l'attribut HTML hidden doit toujours gagner sur le centrage. */
.nova-care-path .nova-care-path__action.nova-care-path__action--previous[hidden] {
  display: none !important;
}

.nova-care-path__media {
  position: relative;
  min-width: 0;
  height: 100%;
  overflow: hidden;
  margin: 0;
  border-radius: 14px;
  background: var(--nova-path-grey);
}

.nova-care-path__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.nova-care-path__media::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 30%;
  background: linear-gradient(180deg, transparent, rgba(12, 13, 14, .34));
  content: "";
  pointer-events: none;
}

.nova-care-path__media-label {
  position: absolute;
  right: 18px;
  bottom: 16px;
  z-index: 1;
  margin: 0;
  color: var(--nova-path-white);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .12em;
  line-height: 1;
}

.nova-care-path__step:focus-visible,
.nova-care-path__action:focus-visible {
  outline: 3px solid #858f9b !important;
  outline-offset: 3px;
}

@media (max-width: 1240px) and (min-width: 1101px) {
  .nova-care-path__layout {
    grid-template-columns: minmax(225px, .84fr) minmax(0, 2.16fr);
    gap: 24px;
    min-height: 420px;
  }

  .nova-care-path__side,
  .nova-care-path__panels,
  .nova-care-path__panel {
    min-height: 420px;
  }

  .nova-care-path__side {
    padding: 18px;
  }

  .nova-care-path__panel {
    column-gap: 28px;
  }

  .nova-care-path h3.nova-care-path__heading {
    font-size: 29px !important;
  }

  .nova-care-path p.nova-care-path__text {
    font-size: 20px !important;
  }
}

@media (max-width: 1100px) {
  .nova-care-path__layout {
    display: block;
    min-height: 0;
  }

  .nova-care-path__side {
    display: none;
  }

  .nova-care-path__mobile-summary {
    display: block;
    margin-bottom: 18px;
    padding: 16px;
  }

  .nova-care-path__mobile-current {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin: 12px 0;
  }

  .nova-care-path__mobile-current-name {
    min-width: 0;
    color: var(--nova-path-ink);
    font-size: 14px !important;
    font-weight: 400 !important;
    line-height: 1.35 !important;
  }

  .nova-care-path__mobile-dots {
    display: flex;
    flex: 0 0 auto;
    gap: 7px;
  }

  .nova-care-path__mobile-dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--nova-path-grey);
  }

  .nova-care-path__mobile-dot.is-active {
    width: 22px;
    background: var(--nova-path-black);
  }

  .nova-care-path__panels {
    min-height: 0;
  }

  .nova-care-path__panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto auto auto auto auto;
    min-height: 0;
    height: auto;
    column-gap: 0;
  }

  .nova-care-path__copy {
    display: contents;
  }

  .nova-care-path__text--desktop {
    display: none !important;
  }

  .nova-care-path__text--compact {
    display: block !important;
  }

  .nova-care-path p.nova-care-path__tag {
    grid-column: 1;
    grid-row: 1;
    margin: 0 0 18px;
  }

  .nova-care-path h3.nova-care-path__heading {
    grid-column: 1;
    grid-row: 2;
    width: 100%;
    margin: 0;
    font-size: 30px !important;
    line-height: 1.1 !important;
  }

  .nova-care-path__divider {
    grid-column: 1;
    grid-row: 3;
    align-self: start;
    margin: 18px 0;
  }

  .nova-care-path__media {
    grid-column: 1;
    grid-row: 4;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    margin: 0;
  }

  .nova-care-path p.nova-care-path__text {
    grid-column: 1;
    grid-row: 5;
    align-self: start;
    width: 100%;
    max-width: none;
    margin: 18px 0 0;
    font-size: 20px !important;
    line-height: 1.3em !important;
  }

  .nova-care-path__actions {
    grid-column: 1;
    grid-row: 6;
    align-self: start;
    margin: 24px 0 0;
  }
}

@media (max-width: 767px) {
  .nova-care-path__mobile-summary {
    padding: 17px;
    border-radius: 14px;
  }

  .nova-care-path__mobile-current {
    margin: 14px 0 12px;
  }

  .nova-care-path__mobile-current-name {
    font-size: 14px;
  }

  .nova-care-path__panel {
    grid-template-rows: auto auto auto auto auto auto;
    height: auto;
  }

  .nova-care-path h3.nova-care-path__heading {
    font-size: 27px !important;
    line-height: 1.12 !important;
  }

  .nova-care-path__media {
    height: auto;
    aspect-ratio: 16 / 10;
    border-radius: 14px;
  }

  .nova-care-path p.nova-care-path__text {
    margin-top: 16px;
    font-size: 18px !important;
    line-height: 1.3em !important;
  }

  .nova-care-path__action {
    min-height: 50px;
  }

  .nova-care-path__action--previous {
    flex-basis: 50px;
    width: 50px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nova-care-path *,
  .nova-care-path *::before,
  .nova-care-path *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
