.ataj-roadmap {
  position: relative;
  margin: 60px 0;
  padding: 0 20px;
}

.ataj-roadmap::before {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  width: 2px;
  background: #19402D;
  transform: translateX(-50%);
  z-index: 1;
}

.ataj-item {
  position: relative;
  width: 50%;
  padding: 20px 40px;
  box-sizing: border-box;
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease;
  will-change: opacity, transform;
}

.ataj-item.animate {
  opacity: 1;
  transform: translateY(0);
}

.ataj-item.left {
  left: 0;
  text-align: right;
}

.ataj-item.right {
  left: 50%;
  text-align: left;
}

.ataj-circle {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 140px;
  height: 140px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid #fff;
  background: #fff;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
  z-index: 3;
  transition: transform 0.3s ease;
}

.ataj-circle:hover {
  transform: translateX(-50%) scale(1.05);
}

.ataj-circle::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  box-shadow: inset 0 0 15px rgba(25, 64, 45, 0.2);
}

.ataj-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ataj-content {
  position: relative;
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  margin-top: 90px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  z-index: 2;
  transition: box-shadow 0.3s ease;
}

.ataj-content:hover {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.ataj-content h3 { 
  text-align: center;
}

.ataj-content p {
  text-align: left;
  text-align: justify;
}

.ataj-item.left .ataj-content::before,
.ataj-item.right .ataj-content::before {
  content: '';
  position: absolute;
  top: 20px;
  width: 40px;
  height: 2px;
  background-color: #19402D;
}

.ataj-item.left .ataj-content::before {
  right: -40px;
}

.ataj-item.right .ataj-content::before {
  left: -40px;
}

.ataj-year {
  font-weight: 600;
  color: #19402D;
  font-size: 14px;
  margin-bottom: 8px;
}

@media (max-width: 768px) {
  .ataj-item {
    width: 100%;
    left: 0 !important;
    text-align: center;
    padding-top: 120px;
  }

  .ataj-roadmap::before {
    left: 50%;
    z-index: 0; /* ⬅️ IMPORTANT : passer derrière les items */
  }

  .ataj-circle {
    left: 50%;
    transform: translateX(-50%);
    z-index: 2; /* assure que l'image passe au-dessus */
  }

  .ataj-item.left .ataj-content::before,
  .ataj-item.right .ataj-content::before {
    display: none;
  }

  .ataj-content {
    margin-top: 30px;
    z-index: 1;
    position: relative;
  }
}

/* --- RTL Support --- */
:dir(rtl) .ataj-roadmap::before {
  left: auto;
  right: 50%;
  transform: translateX(50%);
}

:dir(rtl) .ataj-item.left {
  left: auto;
  right: 0;
  text-align: left;
}

:dir(rtl) .ataj-item.right {
  left: auto;
  right: 50%;
  text-align: right;
}

:dir(rtl) .ataj-circle {
  left: auto;
  right: 50%;
  transform: translateX(50%);
}

:dir(rtl) .ataj-circle:hover {
  transform: translateX(50%) scale(1.05);
}

:dir(rtl) .ataj-item.left .ataj-content::before {
  left: -40px;
  right: auto;
}

:dir(rtl) .ataj-item.right .ataj-content::before {
  right: -40px;
  left: auto;
}

@media (max-width: 768px) {
  :dir(rtl) .ataj-item {
    text-align: right;
  }

  :dir(rtl) .ataj-content {
    text-align: right;
  }

  :dir(rtl) .ataj-content p {
    text-align: justify;
  }

  :dir(rtl) .ataj-roadmap::before {
    right: 50%;
    left: auto;
    transform: translateX(50%);
  }

  :dir(rtl) .ataj-circle {
    right: 50%;
    left: auto;
    transform: translateX(50%);
  }
  :dir(rtl) .ataj-item.right {
	right: 0%;
  }
}

