/* sticky-feature-scroll-charte — pin scroll + liste / média (hub ressources) */
.lws-sticky-feature-scroll {
  --sfs-ivory: var(--lws-ivory, #f4efe8);
  --sfs-soft: var(--lws-text-soft, #c7bbb3);
  --sfs-copper: var(--lws-copper, #DBAF5C);
  --sfs-border: var(--lws-border, #3b3137);
  --sfs-surface: var(--lws-surface, #1c181b);
  position: relative;
  width: 100%;
  color: var(--sfs-ivory);
  font-family: "Montserrat", "Segoe UI", system-ui, sans-serif;
  box-sizing: border-box;
}

.lws-sticky-feature-scroll *,
.lws-sticky-feature-scroll *::before,
.lws-sticky-feature-scroll *::after {
  box-sizing: border-box;
}

.lws-sticky-feature-scroll__track {
  --sfs-steps: 2;
  height: calc(var(--sfs-steps) * 100vh);
}

.lws-sticky-feature-scroll[data-step-count="1"] .lws-sticky-feature-scroll__track { --sfs-steps: 1; height: auto; }
.lws-sticky-feature-scroll[data-step-count="2"] .lws-sticky-feature-scroll__track { --sfs-steps: 2; }
.lws-sticky-feature-scroll[data-step-count="3"] .lws-sticky-feature-scroll__track { --sfs-steps: 3; }
.lws-sticky-feature-scroll[data-step-count="4"] .lws-sticky-feature-scroll__track { --sfs-steps: 4; }
.lws-sticky-feature-scroll[data-step-count="5"] .lws-sticky-feature-scroll__track { --sfs-steps: 5; }
.lws-sticky-feature-scroll[data-step-count="6"] .lws-sticky-feature-scroll__track { --sfs-steps: 6; }

.lws-sticky-feature-scroll__pin {
  position: sticky;
  top: 0;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.18fr);
  gap: clamp(1.5rem, 3.5vw, 3.25rem);
  align-items: center;
  min-height: 100vh;
  padding: clamp(1.5rem, 4vh, 3rem) clamp(1.25rem, 4vw, 3rem);
  max-width: 1280px;
  margin: 0 auto;
}

.lws-sticky-feature-scroll__eyebrow {
  margin: 0 0 1rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--sfs-copper);
}

.lws-sticky-feature-scroll__title {
  margin: 0 0 1rem;
  font-size: clamp(1.7rem, 3.4vw, 2.45rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--sfs-ivory);
  text-wrap: balance;
}

.lws-sticky-feature-scroll__intro {
  max-width: 28rem;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--sfs-soft);
}

.lws-sticky-feature-scroll__intro p {
  margin: 0 0 0.75rem;
}

.lws-sticky-feature-scroll__intro p:last-child {
  margin-bottom: 0;
}

.lws-sticky-feature-scroll__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 1.5rem;
  min-height: 2.85rem;
  padding: 0.75rem 1.4rem;
  border-radius: 999px;
  background: var(--sfs-ivory);
  color: #111111;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
}

.lws-sticky-feature-scroll__cta:hover,
.lws-sticky-feature-scroll__cta:focus-visible {
  background: var(--sfs-copper);
  color: #1a120e;
}

.lws-sticky-feature-scroll__right {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  min-width: 0;
}

.lws-sticky-feature-scroll__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.lws-sticky-feature-scroll__item {
  display: grid;
  grid-template-columns: 2.4rem minmax(0, 1fr);
  gap: 0.85rem;
  padding: 0.85rem 0;
  border-top: 1px solid rgba(244, 239, 232, 0.12);
  opacity: 0.42;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.lws-sticky-feature-scroll__item:last-child {
  border-bottom: 1px solid rgba(244, 239, 232, 0.12);
}

.lws-sticky-feature-scroll__item.is-active {
  opacity: 1;
}

.lws-sticky-feature-scroll__num {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--sfs-soft);
  padding-top: 0.12rem;
}

.lws-sticky-feature-scroll__item.is-active .lws-sticky-feature-scroll__num {
  color: var(--sfs-ivory);
}

.lws-sticky-feature-scroll__item-title {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--sfs-ivory);
}

.lws-sticky-feature-scroll__item-excerpt {
  display: none;
  margin: 0.35rem 0 0;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--sfs-soft);
}

.lws-sticky-feature-scroll__item.is-active .lws-sticky-feature-scroll__item-excerpt {
  display: block;
}

.lws-sticky-feature-scroll__media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 14px;
  background: var(--sfs-surface);
  border: 1px solid var(--sfs-border);
}

.lws-sticky-feature-scroll__frame {
  position: absolute;
  inset: 0;
  display: block;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
}

.lws-sticky-feature-scroll__frame.is-active {
  opacity: 1;
  pointer-events: auto;
}

.lws-sticky-feature-scroll__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lws-sticky-feature-scroll__fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 1.25rem;
  text-align: center;
  color: var(--sfs-soft);
}

@media (max-width: 900px) {
  .lws-sticky-feature-scroll__track {
    height: auto;
  }

  .lws-sticky-feature-scroll__pin {
    position: relative;
    min-height: 0;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: clamp(2rem, 5vh, 3rem) clamp(1.25rem, 4vw, 3rem);
  }

  .lws-sticky-feature-scroll__item-excerpt {
    display: block;
  }

  .lws-sticky-feature-scroll__media {
    order: -1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lws-sticky-feature-scroll__item,
  .lws-sticky-feature-scroll__frame {
    transition: none;
  }
}

/* Timeline Présentation : copie LTX hp-half-screen-sticky-cards (cartes toujours ouvertes). */
.lws-sticky-feature-scroll--timeline {
  --sfs-tab-step: 0;
  --sfs-stack-top: 7.5rem;
  position: relative;
  padding: 0;
  overflow: visible;
  background: transparent;
}

.lws-sticky-feature-scroll--timeline .lws-sticky-feature-scroll__halo-stage {
  display: none;
}

.lws-sticky-feature-scroll--timeline .lws-sticky-feature-scroll__halo-pin {
  position: sticky;
  top: 0;
  height: 100dvh;
  width: 100%;
  overflow: visible;
}

.lws-sticky-feature-scroll--timeline .lws-sticky-feature-scroll__halo {
  position: absolute;
  z-index: 0;
  width: min(88vw, 920px);
  height: min(88vw, 920px);
  left: 50%;
  top: 42%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.lws-sticky-feature-scroll--timeline .lws-sticky-feature-scroll__inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  width: 100%;
  background: transparent;
}

.lws-sticky-feature-scroll--timeline .lws-sticky-feature-scroll__copy {
  position: sticky;
  top: var(--sfs-stack-top);
  z-index: 2;
  flex: 0 0 40vw;
  width: 40vw;
  height: 100vh;
  display: flex;
  align-items: flex-start;
  padding: 7.5rem 3vw 10vh 5vw;
  background: transparent;
}

.lws-sticky-feature-scroll--timeline .lws-sticky-feature-scroll__copy-inner {
  max-width: none;
  width: 100%;
  padding-right: 1.5rem;
}

.lws-sticky-feature-scroll--timeline .lws-sticky-feature-scroll__eyebrow {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 2rem;
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sfs-soft);
}

.lws-sticky-feature-scroll--timeline .lws-sticky-feature-scroll__eyebrow-mark {
  color: var(--sfs-copper);
}

.lws-sticky-feature-scroll--timeline .lws-sticky-feature-scroll__title {
  margin: 0 0 1rem;
  font-size: clamp(3rem, 4.5vw, 4.5rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.12rem;
}

.lws-sticky-feature-scroll--timeline .lws-sticky-feature-scroll__intro {
  max-width: 28rem;
  margin-bottom: 2rem;
  font-size: clamp(1.1rem, 1.15vw, 1.15rem);
  line-height: 1.45;
  letter-spacing: 0.04rem;
}

.lws-sticky-feature-scroll--timeline .lws-sticky-feature-scroll__refresh,
.lws-sticky-feature-scroll--timeline .lws-sticky-feature-scroll__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 0;
  min-height: 0;
  padding: 0.8rem 1.6rem 0.9rem;
  border: 1px solid var(--sfs-ivory);
  border-radius: 0.3rem;
  background: transparent;
  color: var(--sfs-ivory);
  font: inherit;
  font-size: 1.1rem;
  font-weight: 400;
  letter-spacing: 0.03rem;
  line-height: 1;
  cursor: pointer;
  text-decoration: none;
}

.lws-sticky-feature-scroll--timeline .lws-sticky-feature-scroll__cta {
  margin-top: 1.25rem;
}

.lws-sticky-feature-scroll--timeline .lws-sticky-feature-scroll__refresh + .lws-sticky-feature-scroll__cta {
  margin-left: 0.75rem;
}

.lws-sticky-feature-scroll--timeline .lws-sticky-feature-scroll__refresh:hover,
.lws-sticky-feature-scroll--timeline .lws-sticky-feature-scroll__refresh:focus-visible,
.lws-sticky-feature-scroll--timeline .lws-sticky-feature-scroll__cta:hover,
.lws-sticky-feature-scroll--timeline .lws-sticky-feature-scroll__cta:focus-visible {
  background: var(--sfs-ivory);
  color: #111111;
}

.lws-sticky-feature-scroll--timeline .lws-sticky-feature-scroll__phases {
  list-style: none;
  flex: 1 1 60vw;
  width: 60vw;
  margin: 0;
  padding: 7.5rem 5vw 10vh 0;
  display: block;
  background: transparent;
}

/* 80 px dans la boîte de contenu, APRÈS la margin 5rem de la dernière
   fiche : course sticky réelle avant que l’avant-dernière soit poussée.
   Un padding-bottom ne compte pas pour le sticky. */
.lws-sticky-feature-scroll--timeline .lws-sticky-feature-scroll__phases::after {
  content: "";
  display: block;
  height: 80px;
}

.lws-sticky-feature-scroll--timeline .lws-sticky-feature-scroll__phase {
  position: sticky;
  top: var(--sfs-stack-top);
  z-index: calc(1 + var(--sfs-stack-i, 0));
  margin: 0 0 5rem;
  padding: 0;
  background: transparent;
  overflow: visible;
}

.lws-sticky-feature-scroll--timeline .lws-sticky-feature-scroll__phase-card {
  position: relative;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  overflow: hidden;
  background: transparent;
}

.lws-sticky-feature-scroll--timeline .lws-sticky-feature-scroll__phase-visible {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  padding: 3rem 0 0;
  background: var(--lws-bg, #111111);
  border-top: 1px solid rgba(244, 239, 232, 0.18);
  overflow: hidden;
}

.lws-sticky-feature-scroll--timeline .lws-sticky-feature-scroll__phase-text {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  column-gap: 5rem;
  align-items: start;
  width: 100%;
}

.lws-sticky-feature-scroll--timeline .lws-sticky-feature-scroll__ttl {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  min-width: 0;
}

.lws-sticky-feature-scroll--timeline .lws-sticky-feature-scroll__num {
  padding-top: 0;
  font-size: clamp(1.8rem, 2.2vw, 2.2rem);
  font-weight: 400;
  letter-spacing: -0.04rem;
  line-height: 1.15;
  color: var(--sfs-soft);
}

.lws-sticky-feature-scroll--timeline .lws-sticky-feature-scroll__phase-title {
  margin: 0;
  font-size: clamp(1.8rem, 2.2vw, 2.2rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.04rem;
  color: var(--sfs-ivory);
  text-wrap: balance;
  min-width: 0;
}

.lws-sticky-feature-scroll--timeline .lws-sticky-feature-scroll__phase-copy {
  min-width: 0;
}

.lws-sticky-feature-scroll--timeline .lws-sticky-feature-scroll__phase-synopsis {
  display: block;
  margin: 0;
  font-size: clamp(1.1rem, 1.15vw, 1.15rem);
  line-height: 1.45;
  letter-spacing: 0.04rem;
  color: var(--sfs-ivory);
  text-wrap: balance;
}

.lws-sticky-feature-scroll--timeline .lws-sticky-feature-scroll__period {
  margin: 0 0 0.55rem;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sfs-copper);
}

.lws-sticky-feature-scroll--timeline .lws-sticky-feature-scroll__phase-body {
  font-size: 1.05rem;
  line-height: 1.35;
  color: var(--sfs-ivory);
}

.lws-sticky-feature-scroll--timeline .lws-sticky-feature-scroll__phase-body p {
  margin: 0 0 0.7rem;
}

.lws-sticky-feature-scroll--timeline .lws-sticky-feature-scroll__phase-body p:last-child {
  margin-bottom: 0;
}

.lws-sticky-feature-scroll--timeline .lws-sticky-feature-scroll__phase-body a {
  color: var(--sfs-copper);
  text-decoration: none;
  text-underline-offset: 0.18em;
}

.lws-sticky-feature-scroll--timeline .lws-sticky-feature-scroll__phase-body a:hover,
.lws-sticky-feature-scroll--timeline .lws-sticky-feature-scroll__phase-body a:focus-visible {
  color: var(--sfs-ivory);
  text-decoration: underline;
}

.lws-sticky-feature-scroll--timeline .lws-sticky-feature-scroll__milestones {
  list-style: none;
  margin: 0.85rem 0 0;
  padding: 0.85rem 0 0;
  border-top: 1px solid rgba(244, 239, 232, 0.18);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.lws-sticky-feature-scroll--timeline .lws-sticky-feature-scroll__milestone {
  display: grid;
  grid-template-columns: minmax(4.5rem, auto) minmax(0, 1fr);
  gap: 0.75rem;
  align-items: baseline;
}

.lws-sticky-feature-scroll--timeline .lws-sticky-feature-scroll__milestone-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--sfs-copper);
}

.lws-sticky-feature-scroll--timeline .lws-sticky-feature-scroll__milestone-text {
  font-size: 0.82rem;
  line-height: 1.4;
  color: var(--sfs-ivory);
}

.lws-sticky-feature-scroll--timeline .lws-sticky-feature-scroll__phase-media {
  position: relative;
  margin: 0;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 0.5rem;
  background: #0b0b0b;
}

.lws-sticky-feature-scroll--timeline .lws-sticky-feature-scroll__phase-media img,
.lws-sticky-feature-scroll--timeline .lws-sticky-feature-scroll__phase-media video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0.5rem;
}

.lws-sticky-feature-scroll--timeline video::-webkit-media-controls {
  display: none !important;
}

@media (max-width: 991px) {
  .lws-sticky-feature-scroll--timeline {
    --sfs-tab-step: 0;
    --sfs-stack-top: 0;
  }

  .lws-sticky-feature-scroll--timeline .lws-sticky-feature-scroll__inner {
    flex-direction: column;
  }

  .lws-sticky-feature-scroll--timeline .lws-sticky-feature-scroll__copy {
    position: relative;
    top: auto;
    flex: 1 1 auto;
    width: 100%;
    height: auto;
    min-height: 0;
    padding: 4rem 1rem 0;
    align-items: flex-start;
  }

  .lws-sticky-feature-scroll--timeline .lws-sticky-feature-scroll__copy-inner {
    max-width: none;
    padding-right: 0;
  }

  .lws-sticky-feature-scroll--timeline .lws-sticky-feature-scroll__title {
    font-size: clamp(2.1rem, 8vw, 3rem);
    letter-spacing: -0.06rem;
  }

  .lws-sticky-feature-scroll--timeline .lws-sticky-feature-scroll__phases {
    flex: 1 1 auto;
    width: 100%;
    padding: 3rem 1rem 4rem;
  }

  .lws-sticky-feature-scroll--timeline .lws-sticky-feature-scroll__phases::after {
    display: none;
  }

  .lws-sticky-feature-scroll--timeline .lws-sticky-feature-scroll__phase {
    top: auto;
    margin-bottom: 3rem;
    padding: 0;
  }

  .lws-sticky-feature-scroll--timeline .lws-sticky-feature-scroll__phase-visible {
    padding: 2.5rem 0 1rem;
  }

  .lws-sticky-feature-scroll--timeline .lws-sticky-feature-scroll__phase-text {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: 0.5rem;
  }

  .lws-sticky-feature-scroll--timeline .lws-sticky-feature-scroll__ttl {
    gap: 1rem;
  }

  .lws-sticky-feature-scroll--timeline .lws-sticky-feature-scroll__num,
  .lws-sticky-feature-scroll--timeline .lws-sticky-feature-scroll__phase-title {
    font-size: 1.25rem;
    letter-spacing: -0.02rem;
  }

  .lws-sticky-feature-scroll--timeline .lws-sticky-feature-scroll__phase-synopsis {
    font-size: 0.92rem;
  }

  .lws-sticky-feature-scroll--timeline .lws-sticky-feature-scroll__milestone {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }
}

@media (max-width: 600px) {
  .lws-sticky-feature-scroll--timeline .lws-sticky-feature-scroll__phase-text {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 1.35rem;
  }
}
