/* Navigation publique alignée sur la page Jeux. */
.header,
.header.scrolled {
  min-height: 105px;
  padding: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(7, 7, 11, 0.82);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.header .header-content {
  position: relative;
  width: min(1180px, calc(100% - 40px));
  min-height: 104px;
  margin: 0 auto;
  padding: 0;
  gap: 28px;
}

.header .logo {
  flex: 0 0 auto;
  gap: 12px;
  font-size: 24px;
  font-weight: 850;
  letter-spacing: -0.035em;
}

.header .logo-img {
  width: 45px;
  height: 45px;
  object-fit: contain;
}

.header .header-actions .btn-dashboard {
  min-height: 50px;
  padding: 0 26px;
  gap: 9px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff1748, #e9003e);
  box-shadow: 0 14px 28px -11px rgba(255, 23, 72, 0.72);
  font-size: 14px;
  font-weight: 850;
}

.header .header-actions .btn-dashboard svg {
  width: 17px;
  height: 17px;
}

@media (min-width: 901px) {
  .header .nav {
    position: absolute;
    inset: auto auto auto 50%;
    display: block;
    transform: translateX(-50%);
  }

  .header .nav-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(18px, 2.2vw, 31px);
    margin: 0;
  }

  .header .nav-links a {
    position: relative;
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 13px 0;
    color: #a5a5af;
    font-size: 14px;
    font-weight: 700;
    line-height: normal;
    white-space: nowrap;
  }

  .header .nav-links a::after {
    right: 0;
    bottom: 7px;
    left: 0;
    width: auto;
    height: 2px;
    border-radius: 2px;
    background: #ff2754;
    transform: scaleX(0);
    transition: transform 0.18s;
  }

  .header .nav-links a:hover::after {
    width: auto;
    transform: scaleX(1);
  }

  .header .games-site-nav-entry small {
    padding: 3px 5px;
    border-color: rgba(80, 225, 166, 0.24);
    border-radius: 5px;
    background: rgba(80, 225, 166, 0.1);
    color: #77efbd;
    font-size: 7px;
    font-weight: 900;
    letter-spacing: 0.04em;
    line-height: normal;
  }
}

@media (max-width: 1020px) and (min-width: 901px) {
  .header .logo {
    font-size: 20px;
  }

  .header .logo-img {
    width: 40px;
    height: 40px;
  }

  .header .nav-links {
    gap: 16px;
  }

  .header .nav-links a {
    font-size: 12px;
  }

  .header .header-actions .btn-dashboard {
    min-height: 46px;
    padding: 0 19px;
    font-size: 12px;
  }
}

@media (max-width: 900px) {
  .header,
  .header.scrolled {
    min-height: 87px;
  }

  .header .header-content {
    width: min(1180px, calc(100% - 24px));
    min-height: 86px;
  }

  .header .logo {
    gap: 12px;
    font-size: 20px;
  }

  .header .logo-img {
    width: 40px;
    height: 40px;
  }

  .header .menu-toggle {
    width: 46px;
    height: 46px;
    padding: 0;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.035);
  }

  .header .menu-toggle span {
    width: 19px;
    height: 2px;
  }
}

@media (max-width: 560px) {
  .header,
  .header.scrolled {
    min-height: 79px;
  }

  .header .header-content {
    min-height: 78px;
  }

  .header .logo {
    gap: 8px;
    font-size: 18px;
  }

  .header .logo-img {
    width: 37px;
    height: 37px;
  }
}

/* Mobile parity with /jeux navigation */
@media (max-width: 900px) {
  .header,
  .header.scrolled {
    height: 87px !important;
    min-height: 87px !important;
    padding: 0 !important;
  }

  .header .header-content {
    width: min(1180px, calc(100% - 24px)) !important;
    height: 86px !important;
    min-height: 86px !important;
    margin: 0 auto !important;
    padding: 0 !important;
    gap: 18px !important;
  }

  .header .logo {
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    gap: 12px !important;
    font-size: 20px !important;
  }

  .header .logo-img,
  .header .logo .logo-img {
    width: 40px !important;
    height: 40px !important;
    transform: none !important;
  }

  .header .menu-toggle {
    width: 46px !important;
    height: 46px !important;
    margin: 0 !important;
    padding: 0 !important;
  }
}

@media (max-width: 560px) {
  .header,
  .header.scrolled {
    height: 79px !important;
    min-height: 79px !important;
    padding: 0 !important;
  }

  .header .header-content {
    height: 78px !important;
    min-height: 78px !important;
    gap: 12px !important;
  }

  .header .logo {
    gap: 8px !important;
    font-size: 18px !important;
  }

  .header .logo-img,
  .header .logo .logo-img {
    width: 37px !important;
    height: 37px !important;
    transform: none !important;
  }
}

