/* =========================================================
   BLOCK — Timeline
========================================================= */

.timeline{
  width: 100%;
  padding: 34px 0;
  /* background: var(--tl-bg); */
  overflow: hidden;
}

/* =========================================================
   THEME (même logique que tes blocs)
========================================================= */

.timeline.is-theme-dark{
  --tl-text: var(--color-blanc);
  --tl-muted: var(--color-blanc-fonce);
  --tl-bg: var(--color-noir);

  --tl-line: var(--color-blanc);         /* ligne verticale */
  --tl-accent: var(--page-accent);       /* actif */
  --tl-dot: var(--color-blanc-fonce);    /* bullet inactif */
}

.timeline.is-theme-light{
  --tl-text: var(--color-noir);
  --tl-muted: var(--color-noir);
  --tl-bg: transparent;

  --tl-line: rgba(0,0,0,.12);            /* ligne verticale (comme maquette) */
  --tl-accent: var(--page-accent);       /* actif */
  --tl-dot: rgba(0,0,0,.14);             /* bullet inactif */
}

/* =========================================================
   CONTAINER
========================================================= */

.timeline__container{
  max-width: var(--layout-wide-size);
  margin: 0 auto;
  padding: 0 20px;
}

/* =========================================================
   LAYOUT 45/55
========================================================= */

.timeline__layout{
  display: grid;
  grid-template-columns: 45fr 55fr; /* 45/55 sans dépasser avec le gap */
  gap: clamp(22px, 3.2vw, 46px);
  align-items: center;
}

/* empêche le débordement horizontal dans une grid */
.timeline__layout > *{ min-width: 0; }
.timeline__right{ min-width: 0; }

/* slider clippe strictement */
.timeline__slider{
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}
.timeline__slide img{ max-width: 100%; }

/* =========================================================
   LEFT
========================================================= */

.timeline__intro{
  color: var(--tl-muted);
  font-size: var(--font-size-s, 15px);
  line-height: 1.6;
  margin-bottom: 18px;
}
.timeline__intro p{ margin: 0 0 12px; }
.timeline__intro p:last-child{ margin-bottom: 0; }

/* =========================================================
   NAV (timeline)
   - PAS de trait horizontal
   - Bullet actif -> accent
========================================================= */

.timeline__nav{
  position: relative;
  display: grid;
  gap: 30px;
  margin-top:30px;
  padding-left: 22px; /* place pour ligne + dot */
}

/* Ligne verticale globale (reste toujours claire) */
.timeline__nav::before{
  content: "";
  position: absolute;
  left: 27px;            /* centré avec dot 12px */
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: var(--tl-line);
  opacity: 1;
}

/* Bouton/étape */
.timeline__step{
  position: relative;
  display: grid;
  grid-template-columns: 12px 1fr;
  align-items: start;
  gap: 14px;

  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
  color: var(--tl-text);
}

/* Puce (inactif) */
.timeline__dot{
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: var(--tl-dot);
  margin-top: 3px;
}

/* ✅ pas de trait horizontal */
.timeline__dot::after{
  content: none;
}

/* Texte */
.timeline__stepTitle{
  display: block;
  font-size: var(--font-size-s, 15px);
  line-height: 1.25;
  font-weight: 500;
  color: var(--color-noir);
}

.timeline__stepDesc{
  display: none; /* visible seulement actif */
  margin-top: 6px;
  color: var(--color-noir);
  font-size: var(--font-size-s, 15px);
  line-height: 1.6;
}

/* Actif */
.timeline__step.is-active .timeline__dot{
  background: var(--tl-accent);
}

.timeline__step.is-active .timeline__stepTitle{
  color: var(--tl-accent);
}

.timeline__step.is-active .timeline__stepDesc{
  display: block;
}

/* Focus */
.timeline__step:focus-visible{
  outline: none;
}
.timeline__step:focus-visible .timeline__stepTitle{
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

/* =========================================================
   RIGHT (slider images) — SLIDE
========================================================= */

.timeline__slider{
  width: 100%;
  height: 480px; /* spec desktop */
  overflow: hidden;
  position: relative;
}

.timeline__track{
  height: 100%;
  display: flex;
  transition: transform .45s ease;
  will-change: transform;
}

.timeline__slide{
  flex: 0 0 100%;
  height: 100%;
}

.timeline__slide img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 980px){
  .timeline__slider{
    height: 420px;
  }
}

@media (max-width: 680px){
  .timeline{
    padding: 26px 0;
  }

  .timeline__layout{
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .timeline__slider{
    height: 300px;
  }

  .timeline__nav{
    padding-left: 20px;
  }

  .timeline__nav::before{
    left: 25px;
  }
}
