/* =============================================
   LFW Unified Header
   Used across all pages

   Zéro couleur en dur — tout vient de tokens.css,
   qui DOIT être chargé avant ce fichier.
   ============================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--surf1);
  border-bottom: 1px solid var(--bord);
}
.site-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

/* Logo */
.header-logo {
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  flex-shrink: 0;
}
.header-logo img {
  height: 44px;
  width: auto;
}
.header-brand-name {
  font-size: 17px;
  font-weight: 800;
  color: var(--vert);
  font-family: var(--sans);
  letter-spacing: -0.01em;
}

/* Nav */
.header-nav {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
  justify-content: center;
  min-width: 0;
}
.header-nav a {
  color: var(--att);
  text-decoration: none;
  font-weight: 500;
  font-size: 13px;
  padding: 10px 12px;
  border-radius: 6px;
  white-space: nowrap;
  transition: color 0.2s, background 0.2s;
}
.header-nav a:hover,
.header-nav a.active {
  color: var(--vert);
  background: var(--v100);
}

/* Right */
.header-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.header-lang {
  display: flex;
  gap: 3px;
}
.header-lang-btn {
  min-height: 40px;
  padding: 5px 13px;
  border: 1px solid var(--bord);
  background: var(--surf1);
  color: var(--att);
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  font-size: 12px;
  transition: all 0.2s;
  font-family: inherit;
}
.header-lang-btn.active {
  background: var(--vert);
  color: var(--surf1);
  border-color: var(--vert);
}
.header-cta {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  background: var(--vert);
  color: var(--surf1) !important;
  padding: 7px 16px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 13px;
  white-space: nowrap;
  transition: background 0.2s;
}
.header-cta:hover {
  background: var(--v900);
}
.header-hamburger {
  display: none;
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  color: var(--vert);
  width: var(--tap);
  height: var(--tap);
  line-height: 1;
}

/* Mobile nav dropdown */
.header-mobile-nav {
  display: none;
  flex-direction: column;
  border-top: 1px solid var(--bord);
  background: var(--surf1);
  position: absolute;
  top: 64px;
  left: 0;
  right: 0;
  z-index: 999;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}
.header-mobile-nav.open {
  display: flex;
}
.header-mobile-nav a {
  display: flex;
  align-items: center;
  min-height: var(--tap);
  padding: 13px 20px;
  color: var(--texte);
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  border-bottom: 1px solid var(--surf2);
  transition: color 0.2s;
}
.header-mobile-nav a:hover,
.header-mobile-nav a.active {
  color: var(--vert);
}
.header-mobile-nav .mobile-cta {
  justify-content: center;
  margin: 12px 20px 16px;
  background: var(--vert);
  color: var(--surf1) !important;
  border-radius: 8px;
  text-align: center;
  border-bottom: none;
  font-weight: 600;
}
.header-mobile-nav .mobile-cta:hover {
  background: var(--v900);
}

@media (max-width: 860px) {
  .header-nav { display: none; }
  .header-cta { display: none; }
  .header-hamburger { display: block; }
}
@media (max-width: 480px) {
  .site-header-inner { padding: 0 14px; }
}
