/* Header et navigation */
header {
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  padding: 14px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.logo {
  font-size: 28px;
  font-weight: 800;
  color: var(--vert-sauge);
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.logo:hover {
  opacity: 0.85;
  text-decoration: none;
}

.nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 20px;
  margin: 0;
}

.nav-list a {
  font-weight: 700;
  font-size: 15px;
  padding: 8px 12px;
  border-radius: 6px;
  transition: background 0.2s ease;
}

.nav-list a:hover {
  background: var(--blanc-casse);
  text-decoration: none;
}

.nav-toggle {
  display: none;
  appearance: none;
  background: #fff;
  border: 2px solid var(--vert-sauge);
  border-radius: 8px;
  padding: 10px 16px;
  font-weight: 800;
  color: var(--vert-sauge);
  cursor: pointer;
  transition: all 0.2s ease;
}

.nav-toggle:hover {
  background: var(--vert-sauge);
  color: #fff;
}

.nav-toggle:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 98;
}

.nav-drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100dvh;
  width: min(90vw, 380px);
  background: #fff;
  box-shadow: -5px 0 30px rgba(0, 0, 0, 0.3);
  transform: translateX(100%);
  transition: transform 0.3s ease;
  z-index: 99;
  display: flex;
  flex-direction: column;
}

.drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 2px solid var(--blanc-casse);
  background: var(--vert-sauge);
  color: #fff;
}

.drawer-head strong {
  font-size: 20px;
}

.drawer-close {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 28px;
  cursor: pointer;
  padding: 4px 8px;
  line-height: 1;
}

.drawer-list {
  list-style: none;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.drawer-list a {
  display: block;
  padding: 14px 12px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 16px;
  transition: background 0.2s ease;
}

.drawer-list a:hover {
  background: var(--blanc-casse);
  text-decoration: none;
}

.drawer-contacts {
  margin-top: auto;
  padding: 20px;
  border-top: 2px solid var(--blanc-casse);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.drawer-contacts a {
  padding: 12px;
  background: var(--blanc-casse);
  border-radius: 8px;
  font-weight: 600;
  text-align: center;
}

.nav-open .nav-backdrop {
  opacity: 1;
  pointer-events: auto;
}

.nav-open .nav-drawer {
  transform: translateX(0);
}

.header-contact {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.header-contact a {
  font-weight: 600;
  font-size: 15px;
  padding: 8px 12px;
  border-radius: 6px;
  transition: background 0.2s ease;
}

.header-contact a:hover {
  background: var(--blanc-casse);
  text-decoration: none;
}

/* Media queries pour header */
@media (max-width: 1060px) {
  .header-contact {
    display: none;
  }
}

@media (max-width: 820px) {
  .nav-list {
    display: none;
  }
  .nav-toggle {
    display: inline-flex;
  }
}
