/* header.css */

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  background-color: #000;
  color: #fff;
}

a {
  text-decoration: none;
  color: #fff;
  transition: color 0.3s ease;
}

a:hover {
  color: #a78bfa;
}

.main-header {
  background-color: #000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 20px;
  position: relative;
}

.logo {
  display: flex;
  align-items: center;
  cursor: pointer;
  transition: all 0.3s ease;
  padding-top: 10px;
}

#logo-img {
  height: 50px;
}

.desktop-nav ul {
  display: flex;
  list-style: none;
  gap: 30px;
  margin: 0;
  padding: 0;
}

.desktop-nav li {
  position: relative;
  transition: transform 0.3s ease;
}

.desktop-nav li:hover {
  transform: translateY(-2px);
}

.desktop-nav a {
  font-size: 0.95rem;
  font-weight: 500;
}

.mobile-menu-icon {
  display: none;
  cursor: pointer;
}

.hamburger {
  display: block;
  width: 25px;
  height: 2px;
  background-color: #fff;
  position: relative;
}

.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  width: 25px;
  height: 2px;
  background-color: #fff;
  transition: 0.3s;
}

.hamburger::before {
  top: -8px;
}

.hamburger::after {
  top: 8px;
}

/* Mobile menu styles */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100%;
  background-color: #a78bfa; /* nouvelle couleur fixe */
  color: #fff;
  display: none;
  flex-direction: column;
  padding: 20px;
  z-index: 999;
  opacity: 0;
  transform: translateY(-30px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  overflow: hidden;
}
.mobile-menu.open {
  display: flex;
}

.mobile-menu.opening {
  opacity: 1;
  transform: translateY(0);
}


.mobile-menu-header {
  display: flex;
  justify-content: flex-start;
  margin-bottom: 15px;
}

#menu-close {
  background: none;
  border: 1px solid #fff;
  color: #fff;
  padding: 10px 15px;
  font-size: 1rem;
  cursor: pointer;
}

.mobile-menu-links {
  list-style: none;
  padding: 20px 0;
  flex-grow: 1;
  font-weight: 700;
  color: #fff;
}

.mobile-menu-links li {
  font-size: 1.2rem;
  margin: 15px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: transform 0.3s ease;
}

.mobile-menu-links li:hover {
  transform: translateX(5px);
}

.mobile-menu-footer {
  border-top: 1px solid #333;
  padding-top: 15px;
}

.footer-links p {
  margin: 5px 0;
}

.social-icons {
  margin-top: 10px;
}

.social-icons i {
  margin-right: 10px;
  font-size: 1.2rem;
}

/* Responsive */
@media (max-width: 768px) {
  .desktop-nav {
    display: none;
  }

  .mobile-menu-icon {
    display: block;
  }

  .main-header {
    justify-content: space-between;
    padding-top: 20px;
  }

  .logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }
}

/* Cacher logo et bouton menu quand menu actif */
body.menu-active .main-header .logo,
body.menu-active .main-header .mobile-menu-icon {
  display: none;
}
