/* Styles de base - adapte couleurs/espacements à ton thème */
.timeline-wrapper {
  background: #f2f2f2;
  color: #fff;
  padding: 60px 20px;
  font-family: "Helvetica Neue", Arial, sans-serif;
  overflow: hidden;
}

.timeline-title {
  text-align: center;
  font-size: 40px;
  margin-bottom: 60px;
  color: #283478;
  font-weight: 700;
}

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

/* Responsive - Tablette */
@media (max-width: 1024px) {
  .timeline-wrapper {
    padding: 50px 15px;
  }

  .timeline-title {
    font-size: 32px;
    margin-bottom: 40px;
  }

  .timeline-container {
    padding: 40px 0;
  }
}

/* Responsive - Mobile */
@media (max-width: 768px) {
  .timeline-wrapper {
    padding: 40px 15px;
  }

  .timeline-title {
    font-size: 28px;
    margin-bottom: 30px;
  }

  .timeline-container {
    padding: 30px 0;
  }
}

@media (max-width: 520px) {
  .timeline-wrapper {
    padding: 30px 10px;
  }

  .timeline-title {
    font-size: 24px;
    margin-bottom: 25px;
  }

  .timeline-container {
    padding: 20px 0;
  }
}

.timeline-svg {
  width: 100%;
  height: 100%;
  position: absolute;
  left: 0;
  top: 0;
  pointer-events: none;
  z-index: 0;
  overflow: visible;
}

.timeline-items {
  display: flex;
  flex-wrap: wrap;
  gap: 80px 40px;
  justify-content: space-between;
  position: relative;
  z-index: 2;
  padding: 28px 0;
}

.timeline-item {
  width: calc(25% - 30px);
  text-align: center;
  padding: 0 15px 20px 15px;
  box-sizing: border-box;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Responsive - Tablette (3 items par ligne) */
@media (max-width: 1024px) {
  .timeline-items {
    gap: 60px 30px;
    padding: 30px 0;
  }

  .timeline-item {
    width: calc(33.333% - 25px);
    padding: 0 12px 15px 12px;
  }
}

/* Responsive - Tablette portrait / Mobile large (2 items par ligne) */
@media (max-width: 768px) {
  .timeline-items {
    gap: 50px 25px;
    padding: 25px 0;
  }

  .timeline-item {
    width: calc(50% - 20px);
    padding: 0 10px 15px 10px;
  }
}

/* Responsive - Mobile (1 item par ligne) */
@media (max-width: 520px) {
  .timeline-items {
    gap: 40px 0;
    padding: 20px 0;
    justify-content: center;
  }

  .timeline-item {
    width: 100%;
    max-width: 350px;
    padding: 0 10px 15px 10px;
  }
}

.timeline-year {
  color: #f2c100;
  font-weight: 700;
  font-size: 20px;
  /*margin-bottom: 15px;*/
  position: relative;
  z-index: 3;
  background: linear-gradient(135deg, #283478 0%, #1e4b87 100%);
  padding: 5px 10px;
  border-radius: 0 0 10px 10px;
}

.timeline-dot {
  width: 2px;
  height: 30px;
  /*border-radius: 50%;*/
  background: rgba(251, 187, 33, 1);
  /*margin: 0 auto;*/
  /*box-shadow: 0 0 0 8px #fbbb21;*/
  position: relative;
  z-index: 3;
  flex-shrink: 0;
}

.timeline-title-small {
  color: rgba(0, 0, 0, 1);
  font-size: 15px;
  margin: 15px 0 8px 0;
  font-weight: 600;
  position: relative;
  z-index: 3;
  background: rgba(255, 255, 255, 1);
  padding: 5px 10px;
}

.timeline-text {
  color: rgba(130, 130, 130, 1);
  font-size: 13px;
  line-height: 1.6;
  width: 100%;
  position: relative;
  z-index: 3;
  background: rgba(255, 255, 255, 1);
  padding: 8px;
  text-align: center;
  border-radius: 10px;
}

/* Responsive - Tablette */
@media (max-width: 1024px) {
  .timeline-year {
    font-size: 18px;
    margin-bottom: 12px;
    padding: 4px 8px;
  }

  .timeline-dot {
    width: 18px;
    height: 18px;
    box-shadow: 0 0 0 6px rgba(242,193,0,0.1);
  }

  .timeline-title-small {
    font-size: 14px;
    margin: 12px 0 6px 0;
    padding: 4px 8px;
  }

  .timeline-text {
    font-size: 12px;
    line-height: 1.5;
    padding: 6px;
  }
}

/* Responsive - Mobile */
@media (max-width: 768px) {
  .timeline-year {
    font-size: 16px;
    margin-bottom: 10px;
    padding: 3px 6px;
  }

  .timeline-dot {
    width: 16px;
    height: 16px;
    box-shadow: 0 0 0 5px rgba(242,193,0,0.1);
  }

  .timeline-title-small {
    font-size: 13px;
    margin: 10px 0 5px 0;
    padding: 3px 6px;
  }

  .timeline-text {
    font-size: 12px;
    line-height: 1.5;
    padding: 5px;
  }
}

@media (max-width: 520px) {
  .timeline-year {
    font-size: 18px;
    margin-bottom: 12px;
  }

  .timeline-dot {
    width: 18px;
    height: 18px;
  }

  .timeline-title-small {
    font-size: 15px;
    margin: 12px 0 8px 0;
  }

  .timeline-text {
    font-size: 13px;
    line-height: 1.6;
    text-align: center;
  }
}

#timeline-bg {
  stroke-width: 6;
  stroke: #283478;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

#timeline-path {
  stroke-width: 6;
  stroke: rgba(251, 187, 33, 1);
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  filter: drop-shadow(0 0 12px rgba(242, 193, 0, 0.7));
  transition: stroke-dashoffset 0.1s linear;
}

/* Responsive - Ligne SVG pour tablette */
@media (max-width: 1024px) {
  #timeline-bg {
    stroke-width: 5;
  }

  #timeline-path {
    stroke-width: 5;
    filter: drop-shadow(0 0 10px rgba(242, 193, 0, 0.6));
  }
}

/* Responsive - Ligne SVG pour mobile */
@media (max-width: 768px) {
  #timeline-bg {
    stroke-width: 4;
  }

  #timeline-path {
    stroke-width: 4;
    filter: drop-shadow(0 0 8px rgba(242, 193, 0, 0.5));
  }
}

@media (max-width: 520px) {
  #timeline-bg {
    stroke-width: 3;
    stroke: rgba(255,255,255,0.15);
  }

  #timeline-path {
    stroke-width: 3;
    filter: drop-shadow(0 0 6px rgba(242, 193, 0, 0.5));
  }
}
