@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&display=swap');

.site-header {
  background-color: var(--header-bg);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  font-family : "Cal Sans";
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

/* Logo */
.logo img {
  height: 50px;
  width: auto;
}

/* Liens de navigation */
.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  color: var(--text-color);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
  position: relative;
}

.nav-links a::after {
  content: '';
  display: block;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: width 0.3s;
  position: absolute;
  bottom: -4px;
  left: 0;
}

.nav-links a:hover,
.nav-links a:focus {
  color: var(--primary-color);
}

.nav-links a:hover::after,
.nav-links a:focus::after {
  width: 100%;
}

/* Bouton hamburger pour mobile */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  border: none;
  background: transparent;
  cursor: pointer;
}

.hamburger span {
  display: block;
  height: 3px;
  width: 100%;
  background: var(--primary-color);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

/* Navigation responsive */
@media (max-width: 900px) {
  .nav-links {
    position: fixed;
    top: 80px;
    right: 0;
    height: calc(100vh - 80px);
    width: 70%;
    max-width: 300px;
    flex-direction: column;
    gap: 1.5rem;
    padding: 1.5rem;
    background-color: var(--header-bg);
    box-shadow: -4px 0 12px rgba(0, 0, 0, 0.1);
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    overflow-y: auto;
  }
  .nav-links a {
    padding: 0.5rem 0;
  }
  .nav-links.active {
    transform: translateX(0);
  }
  .hamburger {
    display: flex;
  }
  /* Animation du hamburger en croix lorsqu’il est actif */
  .hamburger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }
  .hamburger.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
}