/* Timeline Verticale - Version Responsive */

.timeline-container {
  position: relative;
  padding: 40px 0;
  max-width: 800px;
  margin: 0 auto;
}

.timeline-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: 2px;
  height: 100%;
  background: #d4d4d4;
  transform: translateX(-50%);
  z-index: 1;
}

.timeline-item-wrapper {
  position: relative;
  margin-bottom: 80px;
  min-height: 140px;
}

.timeline-item-wrapper:nth-child(odd) .timeline-event {
  width: 42%;
  float: left;
  text-align: center;
  padding-right: 40px;
  margin-top: 60px;
}

.timeline-item-wrapper:nth-child(even) .timeline-event {
  width: 42%;
  float: right;
  text-align: center;
  padding-left: 40px;
  margin-top: 60px;
}

.timeline-event {
  background: white;
  padding: 30px;
  border: 2px solid #d4d4d4;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
  position: relative;
  border-radius: 8px;
}

.timeline-dot {
  position: absolute;
  left: 50%;
  top: 40px;
  width: 16px;
  height: 16px;
  background: #646464;
  border: 4px solid white;
  border-radius: 50%;
  transform: translateX(-50%);
  z-index: 3;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.timeline-time {
  position: absolute;
  left: 50%;
  top: -5px;
  transform: translateX(-50%);
  background: #646464;
  color: white;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 4px;
  z-index: 3;
  white-space: nowrap;
}

.timeline-item-wrapper::after {
  content: "";
  display: table;
  clear: both;
}

.timeline-event h3 {
  color: #646464;
  font-size: 22px;
  font-weight: 400;
  margin-bottom: 20px;
  text-transform: uppercase;
  line-height: 1.3;
}

.timeline-event i {
  font-size: 32px;
  color: #d4af37;
  margin: 15px 0;
  display: block;
  text-align: center;
}

.timeline-event p {
  color: #828282;
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 0;
}

/* RESPONSIVE MOBILE */
@media (max-width: 768px) {
  .timeline-container {
    padding: 20px 10px;
    max-width: 100%;
  }

  .timeline-container::before {
    left: 30px;
    transform: none;
  }
  
  .timeline-item-wrapper {
    margin-bottom: 50px;
    min-height: auto;
  }
  
  /* Tous les événements alignés à droite de la ligne */
  .timeline-item-wrapper:nth-child(odd) .timeline-event,
  .timeline-item-wrapper:nth-child(even) .timeline-event {
    width: auto;
    max-width: calc(100% - 80px);
    float: none;
    margin-left: 70px;
    margin-right: 10px;
    margin-top: 30px;
    padding: 20px;
    text-align: left;
    padding-left: 20px;
    padding-right: 20px;
  }
  
  .timeline-dot {
    left: 30px;
    top: 0px;
    transform: none;
    width: 12px;
    height: 12px;
  }
  
  .timeline-time {
    left: 30px;
    top: -45px;
    transform: none;
    font-size: 12px;
    padding: 6px 10px;
  }
  
  .timeline-event h3 {
    font-size: 18px;
    margin-bottom: 15px;
  }
  
  .timeline-event i {
    font-size: 28px;
    margin: 10px 0;
  }
  
  .timeline-event p {
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .timeline-container {
    padding: 15px 5px;
  }
  
  .timeline-item-wrapper:nth-child(odd) .timeline-event,
  .timeline-item-wrapper:nth-child(even) .timeline-event {
    max-width: calc(100% - 70px);
    margin-left: 60px;
    margin-right: 5px;
    padding: 15px;
  }
  
  .timeline-dot {
    left: 25px;
    width: 10px;
    height: 10px;
    border: 3px solid white;
  }
  
  .timeline-time {
    left: 25px;
    font-size: 11px;
    padding: 5px 8px;
  }
  
  .timeline-event h3 {
    font-size: 16px;
    margin-bottom: 10px;
  }
  
  .timeline-event i {
    font-size: 24px;
    margin: 8px 0;
  }
  
  .timeline-event p {
    font-size: 13px;
    line-height: 1.5;
  }
}