/* Variables */
:root {
  --primary: #3f3d56;
  --accent: #5a5a89;
  --bg: #f0f0f5;
  --white: #ffffff;
  --text: #3f3d56;
  --shadow-color: rgba(0, 0, 0, 0.1);
  --shadow-hover: rgba(0, 0, 0, 0.2);
}

/* Réinitialisation */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Styles globaux */
body {
  font-family: "Space Grotesk", sans-serif;
  background: var(--bg);
  color: var(--text);
}

/* Header et navigation */
header {
  position: sticky;
  top: 0;
  width: 100%;
  background: rgba(63, 61, 86, 0.8);
  padding: 1rem 2rem;
  z-index: 100;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: "Orbitron", sans-serif;
  font-size: 1.5rem;
  color: var(--white);
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1rem;
  margin: 0;
  padding: 0;
}

.nav-links li {
  display: flex;
  align-items: center;
}

.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;
}

.hamburger {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--white);
  cursor: pointer;
}

/* 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;
}

.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);
}

.hidden {
  display: none !important;
}

/* Section Hero avec vidéo */
.hero {
  position: relative;
  height: 100vh;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
}

.hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: var(--white);
  z-index: 2;
  width: 100%;
  padding: 0 1rem;
}

.hero-content h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.btn {
  background: var(--accent);
  color: var(--white);
  padding: 0.8rem 2rem;
  text-decoration: none;
  border-radius: 50px;
  transition: transform 0.3s;
}

.btn:hover {
  transform: scale(1.05);
}

/* Section Features */
.features {
  display: flex;
  justify-content: space-around;
  padding: 4rem 2rem;
  background: var(--white);
}

.feature {
  text-align: center;
  max-width: 300px;
}

.feature i {
  font-size: 3rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

.feature h2 {
  font-family: "Orbitron", sans-serif;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.feature p {
  font-size: 1rem;
}

.cta {
  text-align: center;
  padding: 3rem 2rem;
  background: var(--bg);
}

.cta h2 {
  font-size: 2rem;
}

.featured {
  padding: 4rem 2rem;
  background: #fff;
  text-align: center;
}

.featured h2 {
  font-family: 'Orbitron', sans-serif;
  font-size: 2rem;
  margin-bottom: 2rem;
  color: var(--primary);
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.featured-card {
  background: var(--bg);
  border-radius: 8px;
  box-shadow: 0 4px 8px var(--shadow-color);
  padding: 1rem;
  transition: transform 0.3s ease;
}

.featured-card:hover {
  transform: translateY(-5px);
}

.featured-card img {
  width: 100%;
  height: 80%;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.featured-card h3 {
  font-family: 'Orbitron', sans-serif;
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  color: var(--primary);
}

.featured-card p {
  font-size: 0.9rem;
  color: var(--text);
}

/* --- Styles pour la section "L'Évolution de l'Aviation" --- */
.timeline-preview {
  padding: 4rem 2rem;
  background: var(--bg);
  text-align: center;
}

.timeline-preview h2 {
  font-family: 'Orbitron', sans-serif;
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--primary);
}

.timeline-preview p {
  font-size: 1rem;
  margin-bottom: 2rem;
  color: var(--text);
}

/* Footer */
footer {
  background: var(--primary);
  text-align: center;
  padding: 1rem;
  color: var(--white);
  font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 1200px) {
  .featured-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  header {
    padding: 1rem;
  }

  nav {
    position: relative;
    flex-wrap: wrap;
  }

  .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;
  }

  .user-dropdown {
    position: static;
    width: 100%;
    margin-top: 0.5rem;
  }

  .hero-content h1 {
    font-size: 2.5rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

  .features {
    flex-direction: column;
    align-items: center;
    gap: 2rem;
  }

  .feature {
    max-width: 100%;
  }

  .featured-grid {
    grid-template-columns: 1fr;
  }

  .timeline-preview {
    padding: 2rem 1rem;
  }

  .timeline-preview h2 {
    font-size: 1.5rem;
  }

  .timeline-preview p {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .logo {
    font-size: 1.2rem;
  }

  .hamburger {
    font-size: 1.2rem;
  }

  .nav-links li a {
    font-size: 0.9rem;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-content p {
    font-size: 0.9rem;
  }

  .btn {
    padding: 0.6rem 1.5rem;
  }

  .features {
    padding: 2rem 1rem;
  }

  .feature h2 {
    font-size: 1.2rem;
  }

  .feature p {
    font-size: 0.9rem;
  }

  .cta h2 {
    font-size: 1.5rem;
  }

  .featured {
    padding: 2rem 1rem;
  }

  .featured h2 {
    font-size: 1.5rem;
  }

  .featured-card h3 {
    font-size: 1rem;
  }

  .featured-card p {
    font-size: 0.8rem;
  }

  .timeline-preview h2 {
    font-size: 1.2rem;
  }

  .timeline-preview p {
    font-size: 0.8rem;
  }
}