/* =============================================
   RESUME.CSS — Section Parcours (timeline)
   ============================================= */

/* Onglets */
.timeline-tabs {
  display: flex;
  gap: 1rem;
  margin-bottom: 3rem;
}

.timeline-tab {
  padding: 0.5rem 1.25rem;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  font-family: var(--font-body);
  cursor: pointer;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  transition: all 0.2s;
}

.timeline-tab:hover {
  border-color: var(--border-hi);
  color: var(--text);
}

.timeline-tab.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* Sections switchables */
.timeline-section {
  display: none;
}

.timeline-section.active {
  display: block;
}

/* Timeline verticale */
.timeline {
  position: relative;
  padding-left: 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 7px; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent), var(--accent2), transparent);
}

.timeline-item {
  position: relative;
  margin-bottom: 2.5rem;
}

.timeline-dot {
  position: absolute;
  left: -2rem; top: 6px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--accent);
  z-index: 1;
  transition: background 0.2s;
}

.timeline-item:hover .timeline-dot {
  background: var(--accent);
}

/* Carte de timeline */
.timeline-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.25rem 1.5rem;
  transition: border-color 0.2s;
}

.timeline-card:hover {
  border-color: var(--border-hi);
}

.timeline-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
  flex-wrap: wrap;
}

.timeline-date {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent2);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.timeline-org {
  font-size: 0.78rem;
  color: var(--text-faint);
  background: var(--bg3);
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
}

.timeline-card h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 0.5rem;
}

.timeline-card p {
  font-size: 0.875rem;
  color: var(--text-muted);
  font-weight: 300;
  line-height: 1.7;
}

.timeline-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.75rem;
}

.stack-tag {
  font-size: 0.7rem;
  padding: 0.2rem 0.5rem;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-faint);
}

/* ---- RESPONSIVE ---- */
@media (max-width: 600px) {
  .timeline {
    padding-left: 1.5rem;
  }

  .timeline-card {
    padding: 1rem;
  }
}
