/* MBOKA_TRAJECTOIRE_T2_STYLES */

/* Visibilité des deux modes */
#view-trajectory.mp-t2-guided > :not(.mp-t2-switch):not(#mpT2Layout) {
  display: none !important;
}

#view-trajectory #mpT2Layout {
  display: none;
}

#view-trajectory.mp-t2-guided #mpT2Layout {
  display: block;
}

#view-trajectory .mp-t2-switch {
  display: flex;
  justify-content: flex-end;
  gap: 5px;
  margin: 0 0 14px;
}

#view-trajectory .mp-t2-switch button {
  font: inherit;
  font-size: 12px;
  color: #c7dfd2;
  background: transparent;
  border: 1px solid rgba(151,193,173,.25);
  padding: 9px 15px;
  border-radius: 10px;
  cursor: pointer;
}

#view-trajectory .mp-t2-switch button.active {
  background: rgba(25,132,98,.25);
  color: #80e9b6;
  border-color: rgba(100,214,158,.45);
}

/* Conteneur */
#mpT2Layout {
  --t2-border: rgba(159,204,174,.17);
  --t2-muted: #a7bcb2;
  color: #e6f3eb;
  max-width: 1500px;
  margin: 0 auto;
  font-family: inherit;
  line-height: 1.45;
}

#mpT2Layout * {
  box-sizing: border-box;
}

#mpT2Layout button {
  font-family: inherit;
  cursor: pointer;
}

/* Hero */
#mpT2Layout .mp-t2-hero {
  position: relative;
  isolation: isolate;
  display: flex;
  justify-content: space-between;
  gap: 28px;
  min-height: 180px;
  padding: 30px 32px;
  overflow: hidden;

  border: 1px solid var(--t2-border);
  border-radius: 21px;

  background:
    radial-gradient(
      ellipse at 75% 15%,
      #0d6147 0%,
      transparent 48%
    ),
    linear-gradient(
      118deg,
      #101c18,
      #102e25 72%,
      #10251d
    );
}

#mpT2Layout .mp-t2-hero-copy {
  position: relative;
  z-index: 2;
}

#mpT2Layout .mp-t2-kicker {
  font-size: 10px;
  letter-spacing: .17em;
  font-weight: 800;
  color: #95b7a5;
}

#mpT2Layout .mp-t2-hero h2 {
  font-size: clamp(28px, 3vw, 42px);
  margin: 10px 0;
  line-height: 1.1;
  letter-spacing: -.03em;
  color: #fff;
}

#mpT2Layout .mp-t2-hero p {
  margin: 0 0 7px;
  color: #f6fff8;
  font-size: 15px;
  font-weight: 650;
}

#mpT2Layout .mp-t2-hero-copy > span {
  font-size: 12px;
  color: #a4c8b6;
}

/* Illustration décorative */
#mpT2Layout .mp-t2-decoration {
  position: absolute;
  inset: 0 16% 0 35%;
  pointer-events: none;
  opacity: .65;
}

#mpT2Layout .mp-t2-mountain {
  position: absolute;
  bottom: -18px;
  width: 72%;
  height: 72%;

  clip-path: polygon(
    0 100%,
    43% 8%,
    60% 46%,
    70% 24%,
    100% 100%
  );

  background: linear-gradient(
    122deg,
    #064735,
    #10362a 52%,
    #0a553b
  );
}

#mpT2Layout .mp-t2-mountain.m1 {
  left: 2%;
}

#mpT2Layout .mp-t2-mountain.m2 {
  left: 33%;
  height: 94%;
  background: linear-gradient(
    115deg,
    #064f3c,
    #0e754e 52%,
    #063a2a
  );
}

#mpT2Layout .mp-t2-mountain.m3 {
  left: 62%;
  height: 56%;
  background: #0d4937;
}

#mpT2Layout .mp-t2-trail {
  position: absolute;
  right: 8%;
  bottom: 34%;
  width: 54%;
  height: 1px;
  transform: rotate(-24deg);
  background: #50d79a;
  box-shadow: 0 0 16px #5bf1a0;
}

#mpT2Layout .mp-t2-stage-card {
  position: relative;
  z-index: 3;
  align-self: center;
  width: 208px;
  min-width: 208px;
  padding: 19px 16px;

  border: 1px solid rgba(130,220,176,.25);
  border-radius: 15px;
  background: rgba(12,39,30,.82);
}

#mpT2Layout .mp-t2-small {
  font-size: 11px;
  color: #b7cfc3;
}

#mpT2Layout .mp-t2-stage-card strong {
  display: block;
  font-size: 18px;
  color: #fff;
  margin: 5px 0;
}

#mpT2Layout .mp-t2-stage-card span {
  font-size: 11px;
  color: #afd0bc;
}

/* Parcours en cinq étapes */
#mpT2Layout .mp-t2-stepper {
  display: grid;
  grid-template-columns: repeat(5,minmax(0,1fr));
  gap: 6px;
  margin: 13px 0;
  padding: 16px;

  border: 1px solid var(--t2-border);
  border-radius: 17px;
  background: rgba(19,46,35,.86);
}

#mpT2Layout .mp-t2-step {
  display: flex;
  gap: 9px;
  align-items: center;
  min-width: 0;
  color: #98b1a3;
}

#mpT2Layout .mp-t2-stepnumber {
  flex: none;
  display: grid;
  place-items: center;
  width: 33px;
  height: 33px;
  border-radius: 50%;
  border: 1px solid #718f80;
  background: #20392e;
  font-size: 12px;
  font-weight: 750;
}

#mpT2Layout .mp-t2-step strong {
  display: block;
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#mpT2Layout .mp-t2-step small {
  display: block;
  color: #7f9a8d;
  font-size: 10px;
  line-height: 1.25;
}

#mpT2Layout .mp-t2-step.done .mp-t2-stepnumber {
  background: #207c5e;
  border-color: #3cb887;
  color: white;
}

#mpT2Layout .mp-t2-step.current {
  color: #7be5b0;
}

#mpT2Layout .mp-t2-step.current .mp-t2-stepnumber {
  color: #0f2920;
  background: #7be5b0;
  border-color: #7be5b0;
  box-shadow: 0 0 0 5px rgba(73,198,137,.13);
}

/* Barre de statut */
#mpT2Layout .mp-t2-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: 12px 2px 15px;
  color: #a6bdb1;
  font-size: 11px;
}

#mpT2Layout .mp-t2-status button {
  border: 0;
  background: transparent;
  color: #a2e9bb;
  font-size: 12px;
  font-weight: 700;
}

/* Colonnes et cartes */
#mpT2Layout .mp-t2-columns {
  display: grid;
  grid-template-columns:
    minmax(0,1.1fr) minmax(0,.9fr);
  gap: 15px;
  align-items: start;
}

#mpT2Layout .mp-t2-stack {
  display: grid;
  gap: 15px;
  min-width: 0;
}

#mpT2Layout .mp-t2-card {
  min-width: 0;
  padding: 19px;
  border-radius: 18px;
  border: 1px solid var(--t2-border);

  background: linear-gradient(
    150deg,
    rgba(25,55,43,.95),
    rgba(18,42,33,.95)
  );

  box-shadow: 0 9px 24px rgba(0,0,0,.05);
}

#mpT2Layout .mp-t2-cardhead {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

#mpT2Layout .mp-t2-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  color: #65e4a6;
  background: rgba(40,150,100,.23);
}

#mpT2Layout .mp-t2-icon svg,
#mpT2Layout .mp-t2-prio-icon svg {
  width: 21px;
  height: 21px;
}

#mpT2Layout .mp-t2-cardhead > div:not(.mp-t2-currency) {
  flex: 1;
  min-width: 0;
}

#mpT2Layout .mp-t2-card h3 {
  margin: 0;
  font-size: 16px;
  color: #f3faf5;
}

#mpT2Layout .mp-t2-cardhead p {
  margin: 4px 0 0;
  color: var(--t2-muted);
  font-size: 11px;
}

#mpT2Layout .mp-t2-subtle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  padding: 9px;

  border: 1px solid rgba(144,200,164,.19);
  border-radius: 10px;
  background: rgba(83,143,111,.12);

  color: #d7eee0;
  font-size: 11px;
}

#mpT2Layout .mp-t2-subtle svg,
#mpT2Layout .mp-t2-link svg {
  width: 12px;
  height: 12px;
}

/* Priorités */
#mpT2Layout .mp-t2-priorities {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 10px;
}

#mpT2Layout .mp-t2-priority {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  gap: 9px;
  min-width: 0;
  min-height: 180px;
  padding: 15px 12px;

  color: #dcefe2;
  border: 1px solid rgba(153,194,165,.2);
  border-radius: 14px;
  background: rgba(10,35,26,.55);

  transition:
    transform .2s,
    border-color .2s;
}

#mpT2Layout .mp-t2-priority:hover {
  transform: translateY(-2px);
  border-color: #55bc8d;
}

#mpT2Layout .mp-t2-prio-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #145841;
  color: #79e8ad;
}

#mpT2Layout .mp-t2-prio-name {
  font-size: 12px;
  font-weight: 800;
}

#mpT2Layout .mp-t2-priority > strong {
  font-size: 13px;
  color: white;
}

#mpT2Layout .mp-t2-priority small {
  font-size: 10px;
  color: #a9c2b3;
  line-height: 1.4;
}

#mpT2Layout .mp-t2-meter {
  display: block;
  overflow: hidden;
  width: 100%;
  height: 6px;
  margin-top: auto;
  background: rgba(150,197,169,.14);
  border-radius: 12px;
}

#mpT2Layout .mp-t2-meter i {
  display: block;
  height: 100%;
  background: linear-gradient(
    90deg,
    #38b989,
    #87e8ad
  );
  border-radius: inherit;
}

/* Actions */
#mpT2Layout .mp-t2-action {
  display: flex;
  align-items: center;
  gap: 13px;
  width: 100%;
  padding: 13px;
  margin: 8px 0;

  text-align: left;
  color: #eff9f1;

  border: 1px solid rgba(160,196,169,.15);
  border-radius: 12px;
  background: rgba(6,32,22,.35);
}

#mpT2Layout .mp-t2-action:hover {
  border-color: rgba(113,226,172,.55);
  background: rgba(19,80,52,.27);
}

#mpT2Layout .mp-t2-action-number {
  display: grid;
  place-items: center;
  flex: none;

  width: 28px;
  height: 28px;

  border-radius: 50%;
  border: 1px solid rgba(122,216,154,.5);
  color: #70dda5;
  font-size: 11px;
  font-weight: 800;
}

#mpT2Layout .mp-t2-action-copy {
  flex: 1;
  min-width: 0;
}

#mpT2Layout .mp-t2-action-copy strong {
  display: block;
  font-size: 12px;
  line-height: 1.4;
}

#mpT2Layout .mp-t2-action-copy small {
  display: block;
  color: #9fbaaa;
  font-size: 10px;
  margin-top: 4px;
}

#mpT2Layout .mp-t2-action-arrow {
  color: #a4d5b8;
}

#mpT2Layout .mp-t2-action-arrow svg {
  width: 15px;
  height: 15px;
}

/* Projections */
#mpT2Layout .mp-t2-currency {
  display: flex;
  gap: 4px;
  margin-left: auto;
  padding: 3px;
  border-radius: 9px;
  background: rgba(6,28,20,.6);
}

#mpT2Layout .mp-t2-currency button {
  padding: 7px 10px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #aac2b2;
  font-size: 11px;
}

#mpT2Layout .mp-t2-currency button.active {
  background: #17684c;
  color: #caffdd;
}

#mpT2Layout .mp-t2-horizons {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 3px;
  padding: 3px;

  border: 1px solid rgba(162,204,177,.15);
  border-radius: 10px;
  background: rgba(8,34,25,.53);
}

#mpT2Layout .mp-t2-horizons button {
  padding: 9px 3px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #b6cec0;
  font-size: 11px;
}

#mpT2Layout .mp-t2-horizons button.active {
  background: rgba(29,129,88,.6);
  color: #e6ffec;
}

#mpT2Layout .mp-t2-chart {
  margin-top: 14px;
  min-height: 140px;
}

#mpT2Layout .mp-t2-chart svg {
  display: block;
  max-width: 100%;
  height: auto;
}

#mpT2Layout .mp-t2-gridline {
  stroke: rgba(178,207,179,.14);
  stroke-width: 1;
}

#mpT2Layout .mp-t2-axis {
  fill: #8fab9c;
  font-family: inherit;
  font-size: 11px;
}

#mpT2Layout .mp-t2-area {
  fill: rgba(57,186,121,.12);
}

#mpT2Layout .mp-t2-plotline {
  stroke: #65dda0;
  stroke-width: 3;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

#mpT2Layout .mp-t2-dot {
  fill: #56cb8f;
  stroke: #12372a;
  stroke-width: 2;
}

#mpT2Layout .mp-t2-chart-empty {
  padding: 44px 12px;
  text-align: center;
  color: #b0c7b7;
  font-size: 12px;
  border: 1px dashed rgba(130,192,153,.2);
  border-radius: 10px;
}

#mpT2Layout .mp-t2-muted {
  color: #acc7b7;
  font-size: 11px;
  line-height: 1.55;
  margin: 12px 0;
}

#mpT2Layout .mp-t2-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 0;
  padding: 6px 0;
  background: transparent;
  color: #7ddfb0;
  font-size: 11px;
  font-weight: 800;
}

/* Indicateurs */
#mpT2Layout .mp-t2-metric {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(149,196,165,.11);
  font-size: 11px;
}

#mpT2Layout .mp-t2-metric span {
  color: #b5cbbc;
}

#mpT2Layout .mp-t2-metric strong {
  color: #eaf9ee;
  text-align: right;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

#mpT2Layout .mp-t2-disclaimer {
  margin: 17px 5px;
  color: #92af9d;
  font-size: 11px;
  line-height: 1.6;
}

/* Adaptation tablette */
@media (max-width: 1100px) {
  #mpT2Layout .mp-t2-columns {
    grid-template-columns: 1fr;
  }
}

/* Adaptation mobile */
@media (max-width: 760px) {
  #mpT2Layout .mp-t2-hero {
    padding: 21px 16px;
  }

  #mpT2Layout .mp-t2-hero h2 {
    font-size: 30px;
  }

  #mpT2Layout .mp-t2-stage-card {
    width: 150px;
    min-width: 150px;
    padding: 12px;
  }

  #mpT2Layout .mp-t2-stepper {
    overflow-x: auto;
    grid-template-columns:
      repeat(5,minmax(112px,1fr));
    padding: 10px;
  }

  #mpT2Layout .mp-t2-card {
    padding: 14px;
  }

  #mpT2Layout .mp-t2-cardhead {
    flex-wrap: wrap;
  }

  #mpT2Layout .mp-t2-priorities {
    grid-template-columns: 1fr;
  }

  #mpT2Layout .mp-t2-priority {
    min-height: 0;
  }
}

@media (max-width: 440px) {
  #mpT2Layout .mp-t2-hero {
    flex-direction: column;
    gap: 12px;
  }

  #mpT2Layout .mp-t2-stage-card {
    width: 100%;
    min-width: 0;
  }

  #mpT2Layout .mp-t2-decoration {
    opacity: .25;
  }
}
