/* ════════════════════════════════════════════════════════════════
   nav.css — Barre de navigation unifiée Éditions B.
   Design sobre : navy + gold, sans emojis, soulignement actif.
   À inclure sur toutes les pages : <link rel="stylesheet" href="nav.css">
   ════════════════════════════════════════════════════════════════ */

.eb-nav,
.eb-nav * { box-sizing: border-box; }

.eb-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #1B2B4B;
  height: 60px;
  display: flex;
  align-items: center;
  padding: 0 24px;
  box-shadow: 0 1px 0 rgba(0,0,0,.15), 0 4px 16px rgba(0,0,0,.18);
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ── Marque ── */
.eb-nav__brand {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  margin-right: 36px;
  flex-shrink: 0;
}
.eb-nav__brand-name {
  font-family: 'Playfair Display', serif;
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  letter-spacing: .8px;
  line-height: 1;
}
.eb-nav__brand-sub {
  font-size: 9px;
  font-weight: 600;
  color: #C4924B;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  margin-top: 4px;
}

/* ── Liens ── */
.eb-nav__links {
  display: flex;
  gap: 2px;
  flex: 1;
  align-items: center;
}
.eb-nav__link {
  position: relative;
  padding: 10px 18px;
  color: rgba(255,255,255,.72);
  font-size: 13.5px;
  font-weight: 500;
  text-decoration: none;
  letter-spacing: .2px;
  transition: color .15s ease;
  white-space: nowrap;
}
.eb-nav__link:hover { color: #fff; }
.eb-nav__link--active { color: #fff; }
.eb-nav__link--active::after {
  content: '';
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 4px;
  height: 2px;
  background: #C4924B;
  border-radius: 2px;
}

/* ── Actions à droite ── */
.eb-nav__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
  flex-shrink: 0;
}
.eb-nav__user {
  font-size: 12.5px;
  color: rgba(255,255,255,.85);
  font-weight: 500;
  letter-spacing: .2px;
}
.eb-nav__user b {
  color: #fff;
  font-weight: 700;
  margin-right: 6px;
}
.eb-nav__btn {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: .3px;
  transition: all .18s ease;
  border: none;
  cursor: pointer;
  font-family: inherit;
}
.eb-nav__btn--primary {
  background: #C4924B;
  color: #fff;
}
.eb-nav__btn--primary:hover { background: #ad7d3d; }
.eb-nav__btn--ghost {
  background: transparent;
  color: rgba(255,255,255,.72);
  border: 1px solid rgba(255,255,255,.18);
}
.eb-nav__btn--ghost:hover {
  background: rgba(255,255,255,.06);
  color: #fff;
  border-color: rgba(255,255,255,.4);
}

/* ── Burger mobile ── */
.eb-nav__burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: #fff;
  font-size: 22px;
  line-height: 1;
  margin-left: 8px;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .eb-nav { padding: 0 16px; }
  .eb-nav__brand { margin-right: 16px; }
  .eb-nav__user { display: none; }
}

@media (max-width: 768px) {
  .eb-nav__brand-name { font-size: 15px; }
  .eb-nav__brand-sub { font-size: 8px; letter-spacing: 1.2px; }
  .eb-nav__links {
    position: absolute;
    top: 60px;
    left: 0; right: 0;
    flex-direction: column;
    background: #1B2B4B;
    padding: 6px 0;
    box-shadow: 0 8px 24px rgba(0,0,0,.3);
    display: none;
    gap: 0;
  }
  .eb-nav.is-open .eb-nav__links { display: flex; }
  .eb-nav__link { padding: 12px 20px; font-size: 14px; width: 100%; }
  .eb-nav__link--active { background: rgba(196,146,75,.12); }
  .eb-nav__link--active::after {
    left: 0; right: auto; top: 0; bottom: 0;
    width: 3px; height: auto;
    border-radius: 0;
  }
  .eb-nav__burger { display: block; }
  .eb-nav__actions { gap: 8px; }
  .eb-nav__btn { padding: 7px 12px; font-size: 12px; }
}

/* ── Toggle script (CSS-only fallback via :checked si pas de JS) ── */
