/* ============================================================
   MyGameList v3 — Navigation — Navbar · Recherche · Footer
   ============================================================ */

/* ── Navbar ────────────────────────────────── */
.navbar {
  background: var(--white);
  border-bottom: 1.5px solid var(--gray-200);
  position: sticky;
  top: 0;
  z-index: 100;
  overflow: visible;
}
.navbar-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 16px;
  height: 60px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.navbar-logo-img {
  height: 45px;
  width: auto;
  display: block;
  position: relative;
  top: 0;
  /* filter: drop-shadow(0 2px 8px rgba(0,0,0,0.45)) drop-shadow(0 1px 2px rgba(0,0,0,0.25)); */
}
.footer-logo-img {
  height: 28px;
  width: auto;
  display: block;
  opacity: 0.85;
}
.navbar-logo {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 800;
  font-size: 20px;
  color: var(--blue);
  letter-spacing: -0.5px;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}
.navbar-logo span { color: var(--yellow-dark); }

.navbar-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
}
.navbar-links a {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  padding: 5px 9px;
  border-radius: var(--radius-sm);
  border-top: 3px solid transparent;
  background: var(--white);
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  transition: all var(--transition);
}
.navbar-links a:hover {
  color: var(--blue);
  background: var(--white);
  box-shadow: 0 2px 8px rgba(0,0,0,0.10);
}

/* Couleurs par section — même palette que les KPI bannière */
.navbar-links a[href*="consoles"]   { border-top-color: #60a5fa; }
.navbar-links a[href*="classement"] { border-top-color: #34d399; }
.navbar-links a[href*="news"]       { border-top-color: #fb923c; }
.navbar-links a[href*="albums"]     { border-top-color: #a78bfa; }
.navbar-links a[href*="forum"]      { border-top-color: #f87171; }
.navbar-links a[href*="avis"]       { border-top-color: #fbbf24; }

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.navbar-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 4px;
  margin-left: auto;
}
.navbar-burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}

/* ── Footer ──────────────────────────────────── */
.footer {
  background: var(--blue);
  color: rgba(255,255,255,0.65);
  padding: 40px 24px;
  margin-top: 0;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-logo {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 800;
  font-size: 18px;
  color: var(--white);
}
.footer-logo span { color: var(--yellow); }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a {
  font-size: 13px;
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--white); }
.footer-copy { font-size: 12px; }

/* ── Responsive ──────────────────────────────── */
@media (max-width: 900px) {
  .banner-inner { grid-template-columns: 1fr; }
  .games-preview { display: none; }
  .banner-stats { gap: 20px; }
}
@media (max-width: 600px) {
  .navbar-links { display: none; }
  .navbar-burger { display: flex; }
  .games-grid { grid-template-columns: repeat(2, 1fr); }
  .cta-banner { text-align: center; justify-content: center; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

/* ── Recherche live navbar ────────────────────── */
.nav-search-wrap {
  position: relative;
  flex: 1;
  max-width: 460px;
  min-width: 220px;
}
.nav-search-inner { position: relative; }
.nav-search-input {
  width: 100%;
  height: 34px;
  padding: 0 14px;
  border: 1.5px solid var(--gray-200);
  border-radius: 20px;
  background: var(--gray-50);
  color: var(--text);
  font-size: 13px;
  font-family: 'DM Sans', sans-serif;
  outline: none;
  transition: all var(--transition);
}
.nav-search-input::placeholder { color: var(--text-muted); }
.nav-search-input:focus {
  background: var(--white);
  border-color: var(--blue-mid);
  box-shadow: 0 0 0 3px var(--blue-light);
}
.nav-search-results {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: -80px;
  min-width: 480px;
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  z-index: 999;
  max-height: 420px;
  overflow-y: auto;
}
.nav-search-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  border-bottom: 1px solid var(--gray-100);
  transition: background var(--transition);
  color: var(--text);
}
.nav-search-item:last-of-type { border-bottom: none; }
.nav-search-item:hover,
.nav-search-item.selected { background: var(--blue-pale); }
.nav-search-jaq {
  width: 28px; height: 38px;
  object-fit: cover;
  border-radius: 3px;
  flex-shrink: 0;
  border: 1px solid var(--gray-200);
}
.nav-search-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.nav-search-name {
  font-size: 13px;
  font-weight: 400;
  color: var(--text);
  white-space: normal;
  word-break: break-word;
}
.nav-search-highlight {
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: var(--blue-mid);
}
.nav-search-alt {
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nav-search-console {
  font-size: 10px;
  font-weight: 700;
  color: var(--white);
  background: var(--blue);
  padding: 2px 6px;
  border-radius: 4px;
  flex-shrink: 0;
}
.nav-search-more {
  display: block;
  padding: 9px 14px;
  font-size: 12px;
  font-weight: 600;
  color: var(--blue-mid);
  text-align: center;
  background: var(--gray-50);
  border-top: 1px solid var(--gray-100);
}
.nav-search-more:hover { background: var(--blue-pale); }

@media (max-width: 900px) {
  .nav-search-wrap { max-width: 100%; }
}
