/* auteur : Z3S_2 */

.site-header {
  position: fixed;
  top: 0;
  width: 100%;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  padding: 0 20px;
  z-index: 11;
  animation: fadeSlideDown 1s ease;
}

.header-left {
  display: flex;
  align-items: center;
}

.header-logo {
  width: 50px;
  height: auto;
  margin-right: 0px;
  transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.header-logo:hover {
  transform: rotate(-10deg) scale(1.1);
  box-shadow: 0 0 15px 4a2a12;
}

.header-center-wrapper {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
}

.site-title {
  font-family: "Press Start 2P", cursive;
  font-size: 1.2rem;
  color: #b35f34;
  letter-spacing: 2px;
  animation: pulseGlow 3s ease-in-out infinite;
}

@keyframes pulseGlow {
  0%,
  100% {
    text-shadow: 0 0 8px rgba(179, 95, 52, 0.7);
  }
  50% {
    text-shadow: 0 0 20px rgba(179, 95, 52, 1);
  }
}

.header-right {
  display: flex;
  align-items: center;
  gap: 15px;
}

.nav-links {
  display: flex;
  gap: 20px;
}

.nav-links a {
  color: white;
  text-decoration: none;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 5px;
  transition: all 0.3s, transform 0.3s ease;
}

.nav-links a:hover {
  background: rgba(179, 95, 52, 0.7);
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 0 10px rgba(179, 95, 52, 1);
}

.nav-links a.active {
  background: rgba(179, 95, 52, 1);
}

.mobile-menu-toggle {
  display: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: white;
}

@keyframes fadeSlideDown {
  0% {
    opacity: 0;
    transform: translateY(-20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1024px) {
  .header-logo {
    width: 40px;
  }

  .site-title {
    font-size: 1rem;
  }

  .nav-links {
    position: fixed;
    top: 70px;
    right: -100%;
    flex-direction: column;
    gap: 20px;
    background: rgba(0, 0, 0, 0.9);
    width: 200px;
    height: 100vh;
    padding: 40px 20px;
    transition: right 0.3s ease;
  }

  .nav-links.open {
    right: 0;
  }

  .mobile-menu-toggle {
    display: block;
  }
}

@media (max-width: 1024px) {
  body:not(.page-accueil) .header-left {
    margin-left: 20px;
  }

  body:not(.page-accueil) .mobile-menu-toggle {
    margin-right: 20px;
  }
}

@media (min-width: 1025px) {
  body:not(.page-accueil) .header-left {
    margin-left: 20px;
  }

  body:not(.page-accueil) .nav-links {
    margin-right: 20px;
  }
}
