.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

/* HEADER */
.header {
  background-color: var(--color-dark);
  color: var(--color-white);
  padding: var(--spacing-md) 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: background-color 0.25s ease, box-shadow 0.25s ease;
}

.header.scrolled {
  background-color: rgba(20, 20, 20, 0.95);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px; /* Conserver une hauteur fixe pour la navbar */
}

.logo {
  color: var(--color-white);
  font-size: 24px;
  font-weight: bold;
  text-decoration: none;
}

.menu {
  list-style: none;
  display: flex;
  gap: var(--spacing-md);
}

.menu a {
  color: var(--color-white);
  text-decoration: none;
  font-weight: 500;
}

.menu a:hover {
  color: var(--color-primary);
}

.nav-toggle {
  display: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: transparent;
  color: var(--color-white);
  width: 42px;
  height: 42px;
  border-radius: 8px;
  font-size: 1.2rem;
  cursor: pointer;
}

.navbar .btn {
  margin-left: var(--spacing-md); /* Espace entre le menu et le bouton */
}

/* FOOTER */
.footer {
  background-color: var(--color-dark);
  color: var(--color-light);
  padding: var(--spacing-lg) 0;
  font-size: 14px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--spacing-md);
}

.footer-section {
  flex: 1;
  min-width: 200px; /* Pour éviter que les sections ne soient trop petites */
}

.footer-section h3,
.footer-section h4 {
  color: var(--color-white);
  margin-bottom: var(--spacing-md);
}

.footer-section ul {
  list-style: none;
  padding: 0;
}

.footer-section ul a {
  color: var(--color-light);
  text-decoration: none;
  margin-bottom: 8px; /* Espacement entre les liens */
  display: block;
}

.footer-section ul a:hover {
  color: var(--color-primary);
}

.footer-bottom {
  text-align: center;
  margin-top: var(--spacing-lg);
  padding-top: var(--spacing-md);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* =========================
   RESPONSIVE GLOBAL
   ========================= */

@media (max-width: 768px) {

  /* Conteneur */
  .container {
    padding: 0 var(--spacing-sm);
  }

  /* NAVBAR */
  .navbar {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    height: auto;
    width: 100%;
  }

  .navbar .logo {
    margin-bottom: 0;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .menu {
    flex-direction: column;
    width: 100%;
    margin-top: var(--spacing-sm);
    gap: 0; /* Pas d'écart entre les éléments de menu empilés */
    grid-column: 1 / -1;
    display: none;
  }

  .menu li {
    margin-bottom: var(--spacing-sm);
    width: 100%;
  }

  .menu a {
    padding: var(--spacing-sm) 0; /* Padding pour les liens de menu */
    border-bottom: 1px solid rgba(255, 255, 255, 0.1); /* Séparateur */
  }

  .menu li:last-child a {
    border-bottom: none;
  }

  .navbar .btn {
    margin-left: 0;
    margin-top: var(--spacing-md);
    width: 100%;
    grid-column: 1 / -1;
    display: none;
  }

  .navbar.is-open .menu,
  .navbar.is-open .btn {
    display: flex;
  }

  /* FOOTER */
  .footer-content {
    flex-direction: column;
    text-align: center;
  }

  .footer-section {
    margin-bottom: var(--spacing-md);
  }

  .footer-section:last-child {
    margin-bottom: 0;
  }

  .footer-section ul {
    margin-top: var(--spacing-sm);
  }
}
