.ss-wrapper {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 24px;
}
.ss-inner {
  display: grid;
  grid-template-columns: 1.8fr 1fr;
  gap: 0 80px;
  align-items: start;
}
.ss-timeline-item {
  height: 100vh;
  display: flex;
  align-items: flex-start;
  position: sticky;
  top: 40px;
  
  transition: opacity 0.5s ease;
  opacity: 0; /* <--- MODIFIÉ: L'opacité des éléments inactifs est maintenant 0 (complètement masqué) */
  grid-column: 1;
}
.ss-timeline-item.active { opacity: 1; } /* L'élément actif est entièrement visible */
.ss-timeline-content-wrapper {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  width: 100%;
}
.ss-timeline-left {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  width: 32px;
}
.ss-num {
  font-family: 'Unbounded', 'Poppins', sans-serif;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
  transition: color 0.4s ease;
  color: #aaa;
}
.ss-timeline-item.active .ss-num { color: #E5007D; }
.ss-line {
  width: 1px;
  flex: 1;
  min-height: 60px;
  background: #e8e8e8;
  position: relative;
  overflow: hidden;
}
.ss-line::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 0%;
  background: #E5007D;
  transition: height 0.6s ease;
}
.ss-timeline-item.active .ss-line::after { height: 100%; }
.ss-timeline-content {
  padding-top: 2px;
  flex: 1;
}
.ss-date {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 6px;
  transition: color 0.4s ease;
  color: #aaa;
}
.ss-timeline-item.active .ss-date { color: #E5007D; }
.ss-titre {
  font-family: 'Poppins', sans-serif;
  font-size: clamp(1.2rem, 2vw, 1.8rem);
  font-weight: 700;
  color: #1a1a2e;
  margin: 0 0 10px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.ss-desc {
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  color: #555;
  line-height: 1.7;
}
.ss-visual-anchor {
  height: 100vh;
  display: flex;
  align-items: center;
  position: sticky;
  top: 40px;
  grid-column: 2;
}
.iphone-frame {
  margin-left: auto;
  margin-right: auto;
  width: 220px;
  max-width: 100%;
  aspect-ratio: 220 / 440;
  background: #1a1a1a;
  border-radius: 36px;
  position: relative;
  box-shadow:
    0 0 0 1px #333,
    0 0 0 3px #111,
    0 30px 60px rgba(0, 0, 0, 0.2),
    inset 0 0 0 1px #444;
  flex-shrink: 0;
}
.iphone-pill {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 22px;
  background: #1a1a1a;
  border-radius: 16px;
  z-index: 2;
  box-shadow: 0 0 0 1px #333;
}
.iphone-screen {
  position: absolute;
  inset: 7px;
  border-radius: 30px;
  overflow: hidden;
  background: #f2f2f2;
}
.iphone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* === RESPONSIVE === */
@media (min-width: 1024px) {
  .ss-timeline-content-wrapper {
    margin-top: 15vh; /* Ajustez cette valeur pour le décalage souhaité du texte */
  }
}
@media (max-width: 1023px) {
  .ss-inner {
    display: flex;
    flex-direction: column;
  }
  
  .ss-timeline-item,
  .ss-visual-anchor {
    position: static;
    height: auto;
    opacity: 1 !important;
    padding: 24px 0;
  }
  
  .ss-timeline-item { padding-bottom: 24px; }
  .ss-visual-anchor { padding: 24px 0 40px; }
  .ss-timeline-content-wrapper {
    margin-top: 0;
  }
  {% for i in range(1, 11) %}
  .ss-timeline-item:nth-child() { order: ; }
  .ss-visual-anchor:nth-child() { order: ; }
  {% endfor %}
  .iphone-frame {
    width: 180px;
  }
}