/* Header component styles for LesJeuxLesPlusGagnants */

.lj-header {
  position: relative;
  z-index: 40;
  box-shadow: var(--shadow-xs);
}

/* 18+ age warning banner */
.lj-header__age-banner {
  background: linear-gradient(90deg, #5e080f 0%, var(--color-primary) 35%, #8b111b 100%);
  color: #fff;
  font-size: var(--font-size-sm);
}

.lj-header__age-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding-block: 0.4rem;
}

.lj-header__age-pill {
  min-width: 2.1rem;
  min-height: 2.1rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.7);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.8rem;
  background: rgba(0, 0, 0, 0.15);
}

.lj-header__age-text {
  margin: 0;
  color: #ffeef0;
}

.lj-header__age-link {
  font-size: var(--font-size-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

/* Main header bar */
.lj-header__main {
  backdrop-filter: blur(16px);
  background: linear-gradient(180deg, rgba(5, 9, 20, 0.96), rgba(5, 9, 20, 0.9));
  border-bottom: 1px solid rgba(151, 163, 207, 0.24);
}

.lj-header__main-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding-block: var(--space-3);
}

/* Branding */
.lj-header__brand {
  display: flex;
  align-items: center;
}

.lj-header__logo-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
}

.lj-header__logo-mark {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: radial-gradient(circle at 20% 0, rgba(240, 201, 106, 0.7) 0, rgba(211, 33, 44, 0.95) 36%, #050914 82%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.55);
  position: relative;
  overflow: hidden;
}

.lj-header__logo-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff 0, #ffe7a6 38%, #f0c96a 70%, #f23442 100%);
}

.lj-header__brand-text {
  display: flex;
  flex-direction: column;
}

.lj-header__brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.95rem;
}

.lj-header__brand-tagline {
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
}

/* Navigation */
.lj-header__nav {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.lj-header__nav-list {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.lj-header__nav-link {
  position: relative;
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  padding-block: 0.15rem;
}

.lj-header__nav-link::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: -0.25rem;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--transition-base);
}

.lj-header__nav-link:hover,
.lj-header__nav-link:focus-visible {
  color: var(--gray-50);
}

.lj-header__nav-link:hover::after,
.lj-header__nav-link:focus-visible::after {
  transform: scaleX(1);
}

.lj-header__cta-wrapper {
  display: flex;
}

.lj-header__cta {
  font-size: 0.7rem;
  padding-inline: 1.1rem;
  padding-block: 0.45rem;
}

/* Mobile menu toggle */
.lj-header__menu-toggle {
  display: none;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-text);
  border-radius: var(--radius-full);
  padding: 0.4rem 0.75rem;
  border: 1px solid rgba(151, 163, 207, 0.45);
  background: rgba(10, 15, 30, 0.8);
  cursor: pointer;
}

.lj-header__menu-toggle:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.lj-header__menu-toggle-box {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
}

.lj-header__menu-toggle-line {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: var(--gray-100);
  transition: transform var(--transition-base), opacity var(--transition-base), translate var(--transition-base);
}

.lj-header__menu-label {
  font-size: var(--font-size-xs);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

/* Menu open state */
.lj-header__menu-toggle.is-active .lj-header__menu-toggle-line:nth-child(1) {
  transform: rotate(45deg) translate(3px, 3px);
}

.lj-header__menu-toggle.is-active .lj-header__menu-toggle-line:nth-child(2) {
  opacity: 0;
}

.lj-header__menu-toggle.is-active .lj-header__menu-toggle-line:nth-child(3) {
  transform: rotate(-45deg) translate(3px, -3px);
}

/* Responsive */
@media (max-width: 880px) {
  .lj-header__main-inner {
    padding-block: var(--space-2);
  }

  .lj-header__age-text {
    font-size: var(--font-size-xs);
  }

  .lj-header__brand-tagline {
    display: none;
  }

  .lj-header__menu-toggle {
    display: inline-flex;
  }

  .lj-header__nav {
    position: absolute;
    inset-inline: 0;
    top: 100%;
    margin-top: 0.25rem;
    background: radial-gradient(circle at top, rgba(14, 20, 42, 0.98), rgba(5, 9, 20, 0.98));
    border-bottom: 1px solid rgba(151, 163, 207, 0.3);
    box-shadow: var(--shadow-sm);
    flex-direction: column;
    align-items: stretch;
    padding: 0.75rem 1rem 1rem;
    max-height: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: max-height var(--transition-slow), opacity var(--transition-base), transform var(--transition-base), visibility var(--transition-base);
  }

  .lj-header__nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .lj-header__cta-wrapper {
    margin-top: 0.5rem;
  }

  .lj-header__nav.is-open {
    max-height: 260px;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
}

@media (max-width: 600px) {
  .lj-header__age-banner-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (min-width: 881px) {
  .lj-header__nav {
    position: static;
    max-height: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    background: transparent;
    border-bottom: none;
    box-shadow: none;
    padding: 0;
  }
}
