/* header.css — barre de navigation écologique */

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: .75rem 1.5rem;
  background: #ffffff;
  border-bottom: 1px solid #dce5dd; /* vert très clair */
  position: sticky;
  top: 0;
  z-index: 50;
}

header a {
  font-family: system-ui, sans-serif;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  color: #2e7d32; /* vert forêt */
  padding: .5rem .75rem;
  border-radius: 8px;
  transition: background .2s ease, color .2s ease;
}

/* état normal */
header a:not(.active):hover {
  background: #f3fdf5; /* léger vert clair */
}

/* actif */
header a.active {
  background: #2e7d32;
  color: #fff;
}

/* Branding (premier lien) */
header a:first-child {
  font-size: 1.25rem;
  font-weight: 700;
  color: #2e7d32;
}
header a:first-child.active {
  background: transparent;
  color: #2e7d32;
}

header img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}

header .badge {
  background: #4caf50; /* vert clair */
  color: #fff;
  font-size: .75rem;
  font-weight: 600;
  padding: .1rem .4rem;
  border-radius: 12px;
  margin-left: .25rem;
}
