/* Définition des variables */
:root {
  --primary: #3f3d56;
  --accent: #5a5a89;
  --bg: #f0f0f5;
  --white: #ffffff;
  --text: #3f3d56;
}

/* Réinitialisation */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Style global */
body {
  font-family: "Space Grotesk", sans-serif;
  background: var(--bg);
  color: var(--text);
}

/* Header et navigation */
header {
  position: static;
  top: 0;
  width: 100%;
  background: rgba(63, 61, 86, 0.8);
  padding: 1rem 2rem;
  z-index: 100;
  margin-bottom: 0rem;
}

/* Styles pour la navigation */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Style du logo */
.logo {
  font-family: "Orbitron", sans-serif;
  font-size: 1.5rem;
  color: var(--white);
}

/* Styles pour la liste de liens */
.nav-links {
  list-style: none;
  display: flex;
  gap: 1rem;
  margin: 0;
  padding: 0;
}

/* Styles des éléments de la liste */
.nav-links li {
  display: flex;
  align-items: center;
}

/* Styles des liens */
.nav-links li a {
  color: var(--white);
  text-decoration: none;
  font-size: 1rem;
  font-family: "Space Grotesk", sans-serif;
  transition: color 0.3s ease;
  padding: 5px 10px;
}

.nav-links li a:hover {
  background-color: rgba(255, 255, 255, 0.103);
  border-radius: 20px;
}

/* User menu */
.user-menu {
  position: relative;
}

.user-toggle {
  display: flex;
  align-items: center;
  cursor: pointer;
}

.user-dropdown {
  position: absolute;
  right: 0;
  top: 100%;
  background: var(--white);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  min-width: 220px;
  margin-top: 1rem;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 999;
}

.user-dropdown.show {
  opacity: 1;
  transform: translateY(0);
}

.user-header {
  display: flex;
  align-items: center;
  padding: 1rem;
  background: var(--bg);
}

.user-avatar {
  font-size: 2.5rem;
  margin-right: 1rem;
  color: var(--primary);
}

.user-details {
  line-height: 1.4;
}

.user-name {
  font-weight: 600;
  display: block;
  color: var(--primary);
}

.user-role {
  font-size: 0.8rem;
  color: var(--accent);
}

.dropdown-divider {
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.dropdown-item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1rem;
  color: var(--accent) !important;
  text-decoration: none;
  transition: all 0.2s ease;
}

.dropdown-item:hover {
  background: var(--bg);
}

.dropdown-item i {
  margin-right: 0.75rem;
  width: 20px;
  text-align: center;
}

.login-icon {
  padding: 0.5rem;
  transition: all 0.3s ease;
}

.login-icon:hover {
  background: rgba(255, 255, 255, 0.15);
}

/* Classe pour masquer les éléments */
.hidden {
  display: none !important;
}

/* Timeline Container */
.timeline-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 0;
}

/* La ligne verticale centrale */
.timeline-container::after {
  content: "";
  position: absolute;
  width: 6px;
  background-color: var(--primary);
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
}

/* Chaque événement de la timeline */
.timeline-event {
  position: relative;
  width: 50%;
  padding: 10px 40px;
  box-sizing: border-box;
}

/* Positionnement à gauche */
.timeline-event.left {
  left: 0;
}

/* Positionnement à droite */
.timeline-event.right {
  left: 50%;
}

/* La bulle de l'événement */
.timeline-event::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  background-color: var(--accent);
  border: 4px solid var(--primary);
  top: 15px;
  border-radius: 50%;
  z-index: 1;
}

.timeline-event.left::after {
  right: -10px;
}

.timeline-event.right::after {
  left: -10px;
}

/* Contenu de l'événement */
.timeline-content {
  padding: 20px;
  background-color: var(--white);
  position: relative;
  border-radius: 6px;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: transform 0.3s ease;
}

.timeline-content:hover {
  transform: scale(1.02);
}

.timeline-content h3 {
  font-family: "Orbitron", sans-serif;
  margin-bottom: 10px;
  color: var(--primary);
}

.timeline-date {
  font-size: 0.9em;
  color: #555;
  margin-bottom: 5px;
}

/* Style du bouton hamburger */
.hamburger {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--white);
  cursor: pointer;
}

/* Media Query pour écrans ≤ 768px */
@media (max-width: 768px) {
  header {
    padding: 1rem;
  }
  .hamburger {
    display: block;
  }
  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    position: absolute;
    top: 60px;
    left: 0;
    background: var(--primary);
    padding: 1rem;
    z-index: 1000;
  }
  .nav-links.show {
    display: flex;
  }
  .nav-links li {
    width: 100%;
    justify-content: center;
    margin: 0.5rem 0;
  }
  .login-icon {
    padding: 0.5rem;
    width: 1.8rem;
    height: 1.8rem;
  }
  .user-dropdown {
    position: static;
    margin-top: 0.5rem;
  }
  .timeline-container::after {
    left: 31px;
  }
  .timeline-event {
    width: 100%;
    padding-left: 70px;
    padding-right: 25px;
  }
  .timeline-event.right {
    left: 0%;
  }
  .timeline-event.left::after,
  .timeline-event.right::after {
    left: 15px;
  }
  .timeline-content {
    padding: 15px;
  }
  .timeline-content h3 {
    font-size: 1.2rem;
  }
  .timeline-date {
    font-size: 0.8rem;
  }
}

/* Media Query pour écrans ≤ 480px */
@media (max-width: 480px) {
  .logo {
    font-size: 1.2rem;
  }
  .hamburger {
    font-size: 1.2rem;
  }
  .nav-links li a {
    font-size: 0.9rem;
  }
  .timeline-content {
    padding: 10px;
  }
  .timeline-content h3 {
    font-size: 1rem;
  }
  .timeline-date {
    font-size: 0.7rem;
  }
}