/* =============================================
   RESUME - Timeline Work Experience
   ============================================= */

#resume {
  padding: 80px 6vw;
  background: #fff;
}

#resume h2 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  text-align: center;
  margin-bottom: 60px;
}

#resume h2 span {
  color: var(--orange);
}

/* Grid 3 colonnes : gauche | nœud | droite */
.timeline {
  display: grid;
  grid-template-columns: 1fr 60px 1fr;
  max-width: 800px;
  margin: 0 auto;
}

/* Item gauche */
.timeline-item {
  padding-bottom: 52px;
  animation: fadeUp .5s ease both;
}

.timeline-item.left {
  text-align: right;
  padding-right: 28px;
}

.timeline-item.right {
  padding-left: 28px;
}

.timeline-item .company {
  font-family: 'Syne', sans-serif;
  font-size: 18px;
  font-weight: 800;
  color: var(--dark);
}

.timeline-item .date {
  font-size: 12px;
  color: var(--gray);
  margin-top: 2px;
}

.timeline-item .role {
  font-family: 'Syne', sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 6px;
}

.timeline-item .desc {
  font-size: 13px;
  color: var(--gray);
  line-height: 1.6;
}

/* Colonne centrale avec nœud + ligne pointillée */
.timeline-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 52px;
}

.timeline-center.last {
  padding-bottom: 0;
}

.timeline-node {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 3px solid var(--orange);
  background: #fff;
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}

.timeline-node.filled {
  background: var(--navy);
  border-color: var(--navy);
}

.timeline-line {
  flex: 1;
  width: 2px;
  border-left: 2px dashed #ccc;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  #resume {
    padding: 60px 5vw;
  }
}

@media (max-width: 600px) {
  #resume {
    padding: 50px 5vw;
  }

  /* Timeline empilée : ligne verticale à gauche */
  .timeline {
    display: flex;
    flex-direction: column;
    max-width: 100%;
    padding-left: 20px;
    border-left: 2px dashed #ddd;
    gap: 0;
  }

  .timeline-center {
    display: none;
  }

  .timeline-item.left,
  .timeline-item.right {
    text-align: left;
    padding-left: 0;
    padding-right: 0;
    padding-bottom: 6px;
    position: relative;
  }

  .timeline-item.left {
    padding-top: 20px;
  }

  .timeline-item.left::before {
    content: '';
    position: absolute;
    left: -26px;
    top: 26px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--orange);
    border: 2px solid #fff;
    box-shadow: 0 0 0 2px var(--orange);
  }

  .timeline-item.right {
    padding-bottom: 28px;
  }
}
