.header {
  background: rgba(255, 255, 255, 0.98);
border-bottom: none;  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
}

.navbar {
  min-height: 82px;
  display: grid;
  grid-template-columns: 260px 1fr 260px;
  align-items: center;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  justify-self: start;
}

.logo img {
  height: 126px;
  width: auto;
  object-fit: contain;
  filter: contrast(1.15) saturate(1.1);
}

.nav {
  grid-column: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 42px;
  font-size: 15px;
  font-weight: 700;
  color: var(--bleu-principal);
}

.nav a {
  position: relative;
  padding: 8px 0;
}

.nav a.active::after,
.nav a:hover::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 100%;
  height: 3px;
  background: var(--dore);
  border-radius: 999px;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--bleu-principal);
  font-size: 30px;
  cursor: pointer;
  justify-self: end;
}

/* RESPONSIVE HEADER */

@media (max-width: 1050px) {
  .navbar {
    grid-template-columns: 220px 1fr 80px;
  }

  .logo img {
    height: 66px;
  }

  .nav {
    gap: 28px;
  }
}

@media (max-width: 820px) {
  .navbar {
    min-height: auto;
    padding: 12px 0;
    display: grid;
    grid-template-columns: 1fr auto;
  }

  .logo {
    justify-self: start;
  }

  .logo img {
    height: 48px;
  }

  .nav {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .nav.open {
    display: flex;
    grid-column: 1 / -1;
    flex-direction: column;
    gap: 14px;
    background: var(--blanc);
    border-top: 1px solid var(--gris-clair);
    border-bottom: 1px solid var(--gris-clair);
    padding: 22px 0;
    margin-top: 12px;
    box-shadow: var(--ombre-soft);
  }
}