:root { 
  --bg: #071023;
  --card-bg: #0f1724;
  --muted: #9aa7b2;
  --accent: #7AF2B6;
  --line-height: 4px;
  --marker-size: 20px;
  --line-width: 8px;
  --line-gap: 120px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg);
  color: #e6f0f2;
  font-family: Inter, Arial, sans-serif;
  display: flex;
  justify-content: center;
  padding: 48px 20px;
  min-height: 100vh;
}

.timeline-container {
  display: flex;
  max-width: 1000px;
  margin: 40px auto;
  gap: 50px;
}

/* Colonne gauche - bio */
.bio-section {
  flex: 0 0 280px; /* largeur fixe */
  background: var(--card-bg);
  padding: 24px;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(122, 242, 182, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.profile-pic {
  width: 140px;
  height: 140px;
  object-fit: cover;
  border-radius: 50%;
  margin-bottom: 16px;
  border: 3px solid var(--accent);
  box-shadow: 0 0 12px var(--accent);
}

.bio-section h2 {
  margin-bottom: 12px;
  color: var(--accent);
}

.bio-section p {
  font-size: 15px;
  line-height: 1.4;
  color: var(--muted);
}

/* Colonne droite - timeline */
.timeline {
  flex: 2;
  position: relative;
  padding-left: 120px; /* espace à gauche pour dates */
  display: flex;
  flex-direction: column;
  gap: var(--line-gap);
}

/* Ligne verticale au centre */
.timeline::before {
  content: "";
  position: absolute;
  left: 90px;  /* position ligne verticale */
  top: 0;
  bottom: 0;
  width: var(--line-width);
  background:
    linear-gradient(180deg,
      rgba(122,242,182,0.3),
      rgba(122,242,182,0.7),
      rgba(122,242,182,0.3));
  border-radius: 9999px;
  filter: drop-shadow(0 0 6px var(--accent));
  z-index: 0;
}

/* Ligne animée au-dessus */
.timeline::after {
  content: "";
  position: absolute;
  left: 90px;
  top: -40px;
  width: var(--line-width);
  height: 200%;
  background: repeating-linear-gradient(
    45deg,
    rgba(122, 242, 182, 0.4),
    rgba(122, 242, 182, 0.4) 8px,
    rgba(122, 242, 182, 0.1) 10px,
    rgba(122, 242, 182, 0.1) 18px
  );
  border-radius: 9999px;
  animation: flow 6s linear infinite;
  pointer-events: none;
  z-index: 1;
}

@keyframes flow {
  0% { transform: translateY(0); }
  100% { transform: translateY(-40px); }
}

/* Chaque item de la timeline */
.timeline-item {
  display: flex;
  align-items: center;
  gap: 20px;
  position: relative;
  z-index: 2;
  background: var(--card-bg);
  border-radius: 16px;
  padding: 60px 104px;
  margin-left: 120px; /* espace après la ligne verticale */
  border: 1px solid rgba(255,255,255,0.1);
  width: 450px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
margin : 1px;
}

.timeline-item:hover {
  transform: scale(1.03);
  box-shadow: 0 12px 30px rgba(122,242,182,0.25);
  background-color: var(--accent);
  text-color: var(--muted);
}

/* Date à gauche, fixe largeur */
.timeline-date {
  flex: 0 0 70px;
  color: var(--accent);
  font-weight: 700;
  font-size: 14px;
  text-align: right;
  user-select: none;
  position: relative;
  z-index: 3;
}

/* Marker (point) sur la ligne */
.timeline-marker {
  position: absolute;
  left: 90px; /* exactement sur la ligne verticale */
  top: 50%;
  transform: translate(-50%, -50%);
  width: var(--marker-size);
  height: var(--marker-size);
  background: var(--accent);
  border-radius: 50%;
  border: 3px solid var(--card-bg);
  box-shadow: 0 0 8px var(--accent);
  z-index: 4;
}

/* Contenu à droite */
.timeline-content {
  color: var(--muted);
}

/* Titres contenu */
.timeline-content h3 {
  margin-bottom: 8px;
  color: var(--accent);
  font-size: 1.3rem;
}

.timeline-content p {
  line-height: 1.4;
  font-size: 1rem;
}



/* Conteneur relatif pour gérer l'animation */
.ripple-container {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

/* Cercle animé */
.ripple {
  position: absolute;
  border: 2px solid var(--accent);
  border-radius: 50%;
  animation: ripple-effect 0.6s ease-out;
  pointer-events: none;
  opacity: 0.7;
  transform: scale(0);
}

/* Animation de l’anneau */
@keyframes ripple-effect {
  to {
    opacity: 0;
    transform: scale(6);
  }
}




/* Menu bouton */
.menu-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    font-size: 26px;
    cursor: pointer;
    z-index: 1001;
}

/* Menu latéral */
.side-menu {
    position: fixed;
    top: 0;
    right: -250px;
    width: 250px;
    height: 100%;
    background: #2c3e50;
    color: white;
    transition: 0.3s;
    padding-top: 60px;
    z-index: 1000;
}

.side-menu.open {
    right: 0;
}

.side-menu .close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 22px;
    cursor: pointer;
}

.side-menu ul {
    list-style: none;
    padding: 0;
}

.side-menu ul li {
    padding: 15px 20px;
}

.side-menu ul li a {
    color: white;
    text-decoration: none;
    font-size: 18px;
}

.side-menu ul li a:hover,
.side-menu ul li a.active {
    color: #1abc9c;
}