/* Section 4: Étapes */
.msv-etapes {
  width: 100%;
  padding: 80px 0 60px 0;
  background: #fff;
  position: relative;
}
.msv-etapes-title {
  text-align: center;
  font-size: 2.6rem;
  font-weight: 400;
  color: #005258;
  margin-bottom: 48px;
  font-family: "Roboto Condensed", Arial, sans-serif;
}
.msv-etapes-timeline {
  width: calc(100% - 32px);
  overflow-x: auto;
  padding: 0 16px;
  /* Scrollbar styling */
  scrollbar-width: thin;
  scrollbar-color: #00757f #e6f3f7;

  /* For Webkit browsers */
  &::-webkit-scrollbar {
    height: 8px;
  }

  &::-webkit-scrollbar-track {
    background: #e6f3f7;
    border-radius: 4px;
  }

  &::-webkit-scrollbar-thumb {
    background: #00757f;
    border-radius: 4px;
  }

  &::-webkit-scrollbar-thumb:hover {
    background: #005258;
  }

  position: relative; /* Needed for overlays */
}

/* Timeline */
.msv-etapes-years {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  min-width: 900px;
  margin: 0 auto;
}
.msv-etapes-year {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  background: #AFE1E1;
  border-radius: 4px;
  min-height: 35px;
  color: #fff;
  margin-right: 10px;
}
.msv-etapes-year-label {
  background: none;
  color: #005258;
  font-size: 1.6rem;
  font-weight: 500;
  padding: 0 12px;
  font-family: "Roboto Condensed", Arial, sans-serif;
  box-shadow: none;
}

/* Steps */
.msv-etapes-steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  margin: 0 auto 10px auto;
}

.msv-etapes-step {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  border-radius: 0 15px 0 15px;
  text-align: left;
  margin-right: 10px;
  min-height: 50px;
}

.msv-etapes-step-label {
  font-size: 1.05rem;
  font-weight: 500;
  font-family: "Roboto Condensed", Arial, sans-serif;
  padding: 0 12px;
}

/* Contents */
.msv-etapes-contents {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  position: relative;
  margin: 0 auto 10px auto;
}
.msv-etapes-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
  text-align: left;
  width: 180px;
  padding: 30px 20px 10px 10px;
}
.msv-etapes-content-header {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}
.msv-etapes-content-dot-container {
  position: relative;
  height: 32px;
  border-bottom: 3px solid #005258;
  width: 210px;
  margin-left: -10px;
  margin-top: -16px;
  margin-bottom: 16px;
}
.msv-etapes-content-dot {
  position: absolute;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  z-index: 1;
  left: 20px;
  top: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.msv-etapes-content-label {
  font-size: 1.1rem;
  font-weight: 700;
  font-family: "Roboto Condensed", Arial, sans-serif;
}
.msv-etapes-content-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #005258;
  white-space: nowrap;
  height: 36px;
  font-family: "Roboto Condensed", Arial, sans-serif;
}
.msv-etapes-content-desc {
  font-size: 0.95rem;
  color: #000;
  font-family: "Roboto", Arial, sans-serif;
}
@media (max-width: 1100px) {
  .msv-etapes-years {
    gap: 24px;
    min-width: 700px;
  }
  .msv-etapes-year {
    min-width: 140px;
  }
}
@media (max-width: 700px) {
  .msv-etapes-title {
    font-size: 2rem;
  }
  .msv-etapes-years {
    gap: 12px;
    min-width: 400px;
  }
  .msv-etapes-year {
    min-width: 100px;
  }
  .msv-etapes-content-dot {
    width: 22px;
    height: 22px;
  }
  .msv-etapes-content-icon {
    width: 16px;
    height: 16px;
  }

  .msv-etapes-content-dot-container {
    height: 26px;
  }
}

/* === Timeline Scroll Overlays & Arrows === */
.msv-etapes-timeline-scroll-overlay {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 200px;
  pointer-events: none;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
}
.msv-etapes-timeline-scroll-overlay.left {
  left: 0;
  /* Use a theme color with opacity for better visibility */
  background: radial-gradient(
    circle at left,
    rgba(0, 117, 127, 0.2) 20%,
    rgba(255, 255, 255, 0) 50%
  );
}
.msv-etapes-timeline-scroll-overlay.right {
  right: 0;
  background: radial-gradient(
    circle at right,
    rgba(0, 117, 127, 0.2) 20%,
    rgba(255, 255, 255, 0) 50%
  );
}
.msv-etapes-timeline-scroll-arrow {
  pointer-events: auto;
  background: none;
  border: none;
  outline: none;
  opacity: 1;
  cursor: pointer;
  padding: 0;
  margin: 0 10px;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: opacity 0.2s, background 0.2s;
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  z-index: 110;
  background: rgba(255, 255, 255, 0.7);
}
.msv-etapes-timeline-scroll-overlay.right .msv-etapes-timeline-scroll-arrow {
  right: 0;
  left: auto;
}
.msv-etapes-timeline-scroll-arrow img {
  width: 38px;
  height: 38px;
  padding-left: 3px;
  /* filter to make it main color : #005258*/
  filter: invert(0.5) brightness(0.5);
}
.msv-etapes-timeline-scroll-arrow:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 1);
}
.msv-etapes-timeline-scroll-overlay[hidden] {
  display: none !important;
}

.msv-etapes-timeline-container {
  position: relative;
  width: 100%;
  /* Optionnel: ajuste la hauteur si besoin */
}

@media (max-width: 700px) {
  .msv-etapes-timeline-scroll-overlay {
    width: 0;
  }
  .msv-etapes-timeline-scroll-arrow {
    width: 32px;
    height: 32px;
    margin: 0 10px;
    background: #00757fee;
    border-radius: 50%;
    transform: translateY(-50%);
    z-index: 110;
    opacity: 0.85;
    border: 1px solid #00757f;
  }
  .msv-etapes-timeline-scroll-arrow:hover {
    background: #00757fee;
    opacity: 0.85;
  }
  .msv-etapes-timeline-scroll-arrow > img {
    width: 28px !important;
    height: 28px !important;
    filter: invert(1);
  }
}

.msv-etapes-hint {
  text-align: center;
  font-size: 0.95rem;
  color: #888;
  margin-top: 10px;
  font-family: "Roboto", Arial, sans-serif;
}
