/* Navigation partagée Solidheberg (navbar.php). Préfixe shn- : indépendante de Bootstrap et de style.css. */
.shn { position: sticky; top: 0; z-index: 1030; background: rgba(7, 5, 17, 0.72); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid rgba(255, 255, 255, 0.12); font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; font-size: 1rem; line-height: 1.4; color: rgba(255, 255, 255, 0.92); transition: background-color 200ms; }
.shn.shn--scrolled { background: rgba(7, 5, 17, 0.94); }
.shn *, .shn *::before, .shn *::after { box-sizing: border-box; }
.shn ul { margin: 0; padding: 0; list-style: none; }
.shn a { text-decoration: none; }
.shn__bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; max-width: 1340px; min-height: 72px; margin-inline: auto; padding-inline: 20px; }
.shn__brand { display: inline-flex; align-items: center; gap: 0.7rem; color: rgba(255, 255, 255, 0.92); font-size: 1.2rem; font-weight: 800; white-space: nowrap; }
.shn__brand:hover { color: rgba(255, 255, 255, 0.92); }
.shn__brand img { display: block; width: auto; height: 36px; border-radius: 0; }
.shn__panel { display: flex; flex: 1; align-items: center; justify-content: flex-end; gap: 0.8rem; }
.shn__links { display: flex; align-items: center; gap: 0.25rem; }
.shn__link { display: inline-flex; align-items: center; gap: 0.4rem; min-height: 44px; padding: 0 0.6rem; border: 0; border-radius: 12px; background: transparent; color: rgba(255, 255, 255, 0.7); font: inherit; font-weight: 700; white-space: nowrap; cursor: pointer; transition: color 150ms, background-color 150ms; }
.shn__link:hover, .shn__dd.open > .shn__link, .shn__dd:focus-within > .shn__link { color: rgba(255, 255, 255, 0.95); background: rgba(255, 255, 255, 0.07); }
.shn__link:focus-visible, .shn__btn:focus-visible, .shn__item:focus-visible, .shn__burger:focus-visible { outline: 2px solid #b780ff; outline-offset: 2px; }
.shn__caret { font-size: 0.7rem; transition: transform 200ms; }
.shn__dd.open .shn__caret { transform: rotate(180deg); }
.shn__badge { padding: 0.12rem 0.6rem; border-radius: 999px; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.18); color: rgba(255, 255, 255, 0.7); font-size: 0.75rem; font-weight: 800; }
.shn__badge[data-state="ok"] { background: rgba(61, 220, 132, 0.12); border-color: rgba(61, 220, 132, 0.35); color: #3ddc84; }
.shn__badge[data-state="degraded"], .shn__badge[data-state="down"] { background: rgba(255, 107, 214, 0.12); border-color: rgba(255, 107, 214, 0.4); color: #ff6bd6; }

.shn__dd { position: relative; }
.shn__menu { position: absolute; top: calc(100% - 2px); left: 0; z-index: 2; min-width: 240px; padding: 0.5rem; border: 1px solid rgba(183, 128, 255, 0.35); border-radius: 14px; background: rgba(13, 10, 26, 0.98); box-shadow: 0 18px 60px rgba(0, 0, 0, 0.55); opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity 180ms, transform 180ms, visibility 180ms; }
.shn__dd:hover > .shn__menu, .shn__dd.open > .shn__menu, .shn__dd:focus-within > .shn__menu { opacity: 1; visibility: visible; transform: none; }
.shn__item { display: flex; align-items: center; gap: 0.7rem; padding: 0.6rem 0.8rem; border-radius: 10px; color: rgba(255, 255, 255, 0.82); font-weight: 600; transition: background-color 150ms, color 150ms; }
.shn__item:hover { background: rgba(183, 128, 255, 0.14); color: #fff; }
.shn__item i { width: 1.2rem; color: #b780ff; text-align: center; }

.shn__actions { display: flex; align-items: center; gap: 0.5rem; }
.shn__btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; min-height: 42px; padding: 0 1rem; border-radius: 14px; font-weight: 800; white-space: nowrap; transition: transform 200ms, filter 150ms, background-color 150ms, border-color 150ms; }
.shn__btn:hover { transform: translateY(-2px); }
.shn__btn--discord { background: #5865f2; color: #fff; box-shadow: 0 10px 30px rgba(88, 101, 242, 0.35); }
.shn__btn--discord:hover { color: #fff; filter: brightness(1.1); }
.shn__btn--ghost { background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.14); color: rgba(255, 255, 255, 0.92); }
.shn__btn--ghost:hover { color: rgba(255, 255, 255, 0.92); background: rgba(255, 255, 255, 0.1); border-color: rgba(183, 128, 255, 0.55); }

.shn__burger { display: none; width: 44px; height: 44px; padding: 0; border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 12px; background: rgba(255, 255, 255, 0.06); color: rgba(255, 255, 255, 0.92); font-size: 1.4rem; line-height: 1; cursor: pointer; }

@media (max-width: 80rem) {
  .shn__burger { display: inline-grid; place-items: center; }
  .shn__panel { position: absolute; top: 100%; left: 0; right: 0; display: none; flex-direction: column; align-items: stretch; gap: 1rem; max-height: calc(100vh - 72px); overflow-y: auto; padding: 1rem 24px 1.5rem; border-bottom: 1px solid rgba(255, 255, 255, 0.12); background: #070511; }
  .shn.shn--open .shn__panel { display: flex; }
  .shn__links { flex-direction: column; align-items: stretch; gap: 0.15rem; }
  .shn__link { justify-content: flex-start; width: 100%; }
  .shn__caret { display: none; }
  .shn__menu { position: static; min-width: 0; padding: 0 0 0.4rem 1.4rem; border: 0; background: transparent; box-shadow: none; opacity: 1; visibility: visible; transform: none; }
  .shn__actions { flex-direction: column; align-items: stretch; }
  .shn__btn { width: 100%; }
}
@media (max-width: 40rem) { .shn__bar { padding-inline: 16px; } .shn__panel { padding-inline: 16px; } }
@media (prefers-reduced-motion: reduce) { .shn, .shn__menu, .shn__btn, .shn__caret { transition: none; } }
