body {
  margin: 0;
  background: #edf2f4;
  font-family: 'Poppins', sans-serif;
}

h1{
  color: #2b2e42;
  font-size: 50px;
}

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

/* === Ligne centrale === */
.timeline::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  width: 4px;
  background: #2b2e42;
  transform: translateX(-50%);
  transform: translateY(155px);
  z-index: 0;
  height: 80%;
}

/* === Boîtes === */
.timeline-box {
  position: relative;
  background: #2b2e42;
  width: 45%;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.15);
  margin: 40px 0;
  z-index: 1;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #fff;
}

/* Alternance gauche/droite */
.timeline-box:nth-child(odd) {
  left: 0;
}
.timeline-box:nth-child(even) {
  left: 55%;
}

/* Points rouges */
.timeline-box::before {
  content: "";
  position: absolute;
  top: 20px;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: #d80536;
  border: 4px solid #fff;
  z-index: 2;
  margin: -15px;
}

/* Point positionné correctement */
.timeline-box:nth-child(odd)::before {
  right: -44px;
}
.timeline-box:nth-child(even)::before {
  left: -41px;
}

/* Hover */
.timeline-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.25);
}

.timeline-box:hover::before {
  background: #500210;
  transition: background 0.3s ease;
}

/* Titre */
.timeline h1 {
  text-align: center;
  color: #2b2e42;
  margin-bottom: 50px;
}

/* details */

.details_box{
  display:inline-block ;
  margin: 20px;
  border-radius: 20px;
  text-align: center;
  box-shadow: 0 8px 25px rgba(0,0,0,0.25);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background-color: #2b2e42;
  color: #fff;
  padding: 30px;
  margin: 30px;
}

.details_box:hover{
  transform: translateY(-7px);
}

.details{
  display: flex;
  justify-content: center; /* centre horizontalement */
  align-items: center;
  margin-top: 150px;
}

/* === Responsive (mobile) === */
@media screen and (max-width: 768px) {
  .timeline::before {
    left: 8px;
  }

  .timeline-box {
    width: 100%;
    left: 0 !important;
    margin-left: 30px;
  }

  .timeline-box::before {
    left: -17px !important;
  }
}