/* =============================================================================
   TIMELINE.CSS – 📅 Vertical Timeline
   Harmonisé le 2025-07-04
   -----------------------------------------------------------------------------
   CHANGEMENTS CLÉS
   • Palette alignée : #00aaff  ➜ var(--accent)
   • Couleurs texte passent par var(--text-color) / var(--text-light)
   • Border-left utilise rgba actuelle mais configurable via --timeline-border
   • Focus & hover AA, indentation homogène, aucun renommage de classe
   ---------------------------------------------------------------------------*/

/* ---------------------------------------------------------------------------
   0 · DESIGN TOKENS (facultatif)
   ------------------------------------------------------------------------ */
:root {
  --timeline-border: rgba(255, 255, 255, .20);
}
html.light {
  --timeline-border: rgba(0, 0, 0, .10);
}

/* ---------------------------------------------------------------------------
   1 · LISTE & LIGNE VERTICALE
   ------------------------------------------------------------------------ */
.timeline-list {
  list-style: none;
  margin: 0 0 0 1rem;
  padding: 0;
  position: relative;
  border-left: 2px solid var(--timeline-border);
  transition: border-color .3s ease;
}

/* ---------------------------------------------------------------------------
   2 · ÉLÉMENT INDIVIDUEL
   ------------------------------------------------------------------------ */
.timeline-item {
  position: relative;
  margin-block-end: 1.5rem;
  padding-inline-start: 1.5rem;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-color);
  transition: color .3s ease;
}
html.light .timeline-item { color: var(--text-light); }

/* ---------------------------------------------------------------------------
   3 · BULLE / POINT
   ------------------------------------------------------------------------ */
.timeline-item::before {
  content: "";
  position: absolute;
  left: -0.5rem;
  top: .4rem;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 60%, transparent 40%);
  transition: transform .3s ease, box-shadow .3s ease;
}

/* Hover */
.timeline-item:is(:hover, :focus)::before {
  transform: scale(1.2);
  box-shadow: 0 0 6px color-mix(in srgb, var(--accent) 80%, transparent 20%);
}

/* ---------------------------------------------------------------------------
   4 · BREAKPOINT MOBILE
   ------------------------------------------------------------------------ */
@media (max-width: 600px) {
  .timeline-list   { margin-inline-start: 0; border-left: none; }
  .timeline-item   { padding-inline-start: 1rem; }
  .timeline-item::before { left: 0; }
}
