{% import '../../css/_variables.css' as var %}

/* Fond dégradé bleu (repris de la charte page HubSpot) */
.tl-mmio {
  background: linear-gradient(180deg, #212739 0%, #212739 50%, #254476 100%);
  overflow: clip; /* clip et non hidden : ne casse pas position: sticky */
  /* Full-bleed : sort du conteneur limité en largeur du thème */
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}

.tl-mmio__scroll-area {
  height: calc(var(--steps-count, 7) * 100vh);
  position: relative;
}

.tl-mmio__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 56px 0;
  box-sizing: border-box;
}

/* Intro / header */
.tl-mmio__intro {
  padding: 0 6vw;
  margin-bottom: 44px;
  flex-shrink: 0;
}

.tl-mmio__heading {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: ;
  font-weight: 800;
  font-size: clamp(1.75rem, 3vw, 2.75rem);
  color: #ffffff;
  line-height: 1.2;
  margin: 0 0 16px;
}

.tl-mmio__heading-icon {
  width: 40px;
  height: 40px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}

.tl-mmio__heading-dot {
  color: #ff5c35;
}

.tl-mmio__subheading {
  font-family: ;
  font-weight: ;
  font-size: clamp(0.875rem, 1vw, 1rem);
  color: rgba(255, 255, 255, 0.6);
  max-width: 60ch;
  margin: 0;
  line-height: 1.6;
}

/* Track */
.tl-mmio__track-wrap {
  padding: 0 6vw;
  overflow: visible;
}

.tl-mmio__track {
  display: flex;
  flex-wrap: nowrap;
  gap: 24px;
  will-change: transform;
}

/* Card — glassmorphisme, coins arrondis */
.tl-mmio__card {
  flex-shrink: 0;
  width: clamp(300px, 60vw, 500px);
  padding: 36px 32px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 24px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

/* Date — style H3 hérité du thème, coloris orange */
.tl-mmio__card-year {
  font-family: ;
  font-weight: ;
  font-style: ;
  font-size: clamp(1.75rem, 3.2vw, 2.6rem);
  color: #ff5c35;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0;
}

.tl-mmio__card-sep {
  width: 40px;
  height: 2px;
  background: #ff5c35;
  border-radius: 2px;
  flex-shrink: 0;
}

.tl-mmio__card-content {
  font-family: ;
  font-weight: ;
  font-size: clamp(0.875rem, 1.1vw, 1rem);
  color: rgba(255, 255, 255, 0.78);
  margin: 0;
  line-height: 1.7;
}

/* Mobile : empilement vertical, pas de scroll JS */
@media (max-width: 767px) {
  .tl-mmio__scroll-area {
    height: auto;
  }

  .tl-mmio__sticky {
    position: relative;
    height: auto;
    padding: 48px 0;
  }

  .tl-mmio__track {
    flex-direction: column;
    transform: none !important;
  }

  .tl-mmio__card {
    width: 100%;
  }
}
