/* ================================
   HEADER & NAVBAR
================================ */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #1F3D2B;
  box-shadow: 0 2px 12px rgba(0,0,0,0.2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  height: 64px;
}

/* Logo */
.header .logo img {
  height: 44px;
  width: auto;
  display: block;
}

/* Nav desktop */
#nav {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

#nav a {
  color: #FAF9F6;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.92rem;
  opacity: 0.8;
  transition: opacity 0.2s, color 0.2s;
  position: relative;
  padding-bottom: 4px;
}

#nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: #C8A97E;
  transition: width 0.25s;
}

#nav a:hover,
#nav a.active {
  opacity: 1;
  color: #C8A97E;
}

#nav a:hover::after,
#nav a.active::after {
  width: 100%;
}

/* Compteur panier */
#cart-count {
  background: #C8A97E;
  color: #1F3D2B;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 10px;
  margin-left: 2px;
  vertical-align: middle;
}

/* Burger */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 6px;
  padding: 6px 8px;
  cursor: pointer;
  transition: border-color 0.2s;
}

.burger:hover { border-color: #C8A97E; }

.burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #FAF9F6;
  transition: 0.3s;
}

/* ================================
   HEADER TRANSPARENT (index only)
================================ */
.header-transparent .header {
  background: transparent;
  box-shadow: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
}

.header-transparent .header.scrolled {
  background: #1F3D2B;
  box-shadow: 0 2px 12px rgba(0,0,0,0.3);
  position: fixed;
  transition: background 0.3s ease;
}

/* ================================
   RESPONSIVE — nav.css
================================ */

/* ── Tablette (max 900px) ── */
@media (max-width: 900px) {

  .burger {
    display: flex;
  }

  #nav {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    width: 100%;
    background: #162d1e;
    padding: 12px 0;
    gap: 0;
    /* Ombre sous le menu */
    box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  }

  #nav.open {
    display: flex;
  }

  #nav a {
    padding: 14px 24px;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    opacity: 1;
    font-size: 1rem;
  }

  #nav a:hover {
    background: rgba(200,169,126,0.1);
  }

  /* Cacher le soulignement animé sur mobile */
  #nav a::after {
    display: none;
  }

  /* Compteur panier visible sur mobile */
  #cart-count {
    font-size: 0.75rem;
    padding: 3px 8px;
  }
}

/* ── Mobile (max 480px) ── */
@media (max-width: 480px) {

  .header {
    padding: 0 16px;
    height: 58px;
  }

  .header .logo img {
    height: 36px;
  }

  #nav {
    top: 58px;
  }

  #nav a {
    padding: 15px 20px;
    font-size: 0.95rem;
  }
}
