/* --------------------------- RESET & GLOBAL --------------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: #101010;
    color: #ffffff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    text-decoration: none;
    color: inherit;
}


/* --------------------------- NAVBAR --------------------------- */
.navbar {
    background: #202020;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 10;
}

.navbar h1 {
    font-size: 1.8rem;
    font-weight: bold;
    color: #5AD1B8;
}


/* --------------------------- NAV LINKS --------------------------- */
.nav-links {
    display: flex;
    list-style: none;
    gap: 20px;
}

.nav-links li {
    position: relative;
}

.nav-links a {
    font-size: 1rem;
    padding: 8px 12px;
    background: #2d2d2d;
    border-radius: 5px;
    transition: all 0.3s;
}

.nav-links a:hover {
    background: #5AD1B8;
    color: #000;
}


/* --------------------------- DROPDOWN MENU --------------------------- */
.dropdown {
    display: none;
    position: absolute;
    top: 110%;
    left: 0;
    background: #2d2d2d;
    padding: 10px;
    border-radius: 5px;
    list-style: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
    z-index: 11;
}

.nav-links li:hover .dropdown,
.nav-links li:focus-within .dropdown {
    display: block;
}

.dropdown a {
    display: block;
    padding: 8px;
    font-size: 0.9rem;
}

.dropdown a:hover {
    background: #5AD1B8;
    color: #000;
}


/* --------------------------- BURGER MENU --------------------------- */
.burger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.burger div {
    width: 25px;
    height: 3px;
    background: #fff;
    transition: background 0.3s;
}

.burger:hover div {
    background: #5AD1B8;
}

.burger-menu {
    display: none;
    flex-direction: column;
    background: #2d2d2d;
    padding: 10px;
    position: absolute;
    top: 60px;
    right: 20px;
    border-radius: 5px;
    z-index: 15;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.3);
}

.burger-menu.active {
    display: flex;
}

.burger-menu a {
    padding: 10px 0;
    color: #fff;
}

.burger-menu a:hover {
    background: #5AD1B8;
    color: #000;
    border-radius: 5px;
}

.burger-menu .dropdown {
    display: none;
    flex-direction: column;
}

.burger-menu .dropdown.active {
    display: flex;
}

.burger-menu .dropdown a {
    padding-left: 20px;
}


/* --------------------------- HERO / HEADER --------------------------- */
.hero {
    background: linear-gradient(135deg, #5AD1B8, #399380);
    color: #fff;
    padding: 80px 20px;
    text-align: center;
    clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.hero p {
    font-size: 1.3rem;
    margin: 0 auto;
    max-width: 700px;
}


/* --------------------------- TIMELINE --------------------------- */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 80px auto;
  padding: 40px 20px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 4px;
  background: #5AD1B8;
  transform: translateX(-50%);
}

/* --------------------------- EVENTS --------------------------- */
.timeline-event {
  position: relative;
  width: 50%;
  padding: 20px;
  box-sizing: border-box;
  border-radius: 8px;
  margin-bottom: 40px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease-out;
}

.timeline-event h3 {
    color: #5AD1B8;
    margin-bottom: 8px;
}

.timeline-event p {
    color: #ccc;
}

.timeline-event a:hover{
    color: #5AD1B8;
    transition: all 0.4s ease-out;
}

/* --------------------------- ALTERNANCE --------------------------- */
.timeline-event:nth-child(odd) {
    left: 0;
    text-align: right;
    transform-origin: right center;
    }

    .timeline-event:nth-child(even) {
    left: 50%;
    text-align: left;
    transform-origin: left center;
}

/* --------------------------- BULLE --------------------------- */
.timeline-event::before {
    content: '';
    position: absolute;
    top: 20px;
    width: 16px;
    height: 16px;
    background: #5AD1B8;
    border-radius: 50%;
    z-index: 1;
}

.timeline-event:nth-child(odd)::before {
    right: -8px;
}

.timeline-event:nth-child(even)::before {
    left: -8px;
}

/* --------------------------- VISIBLE ANIMATION --------------------------- */
.visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
}


/* --------------------------- FOOTER --------------------------- */
.footer {
    text-align: center;
    padding: 20px;
    background: #202020;
    color: #aaa;
    font-size: 0.9rem;
    margin-top: auto;
}

.footer a {
    color: #5AD1B8;
    text-decoration: none;
    font-weight: bold;
}

.footer a:hover {
    text-decoration: underline;
}


/* --------------------------- RESPONSIVE --------------------------- */
@media (max-width: 768px) {
  .nav-links {
      display: none;
  }

  .burger {
      display: flex;
  }

  .hero h1 {
      font-size: 2.5rem;
  }

  .hero p {
      font-size: 1.1rem;
  }

  .timeline::before {
    left: 12px;
  }

  .timeline-event {
    width: 100%;
    left: 0 !important;
    text-align: left !important;
    padding-left: 40px;
  }

  .timeline-event::before {
    left: 0 !important;
    right: auto !important;
  }

  .timeline-event h3 {
    font-size: 1.2rem;
  }

  .timeline-event p {
    font-size: 0.95rem;
  }
}
