/**
 * En-tête et navigation communs — pages publiques Champion FC26.
 * Requiert : --line, --pitch-green, --pitch-green-dim, --chalk, --muted, --chalk-muted (souvent via :root sur chaque page).
 * À charger après les variables locales, avec pub-mobile-nav.css.
 */

.pub-site-header {
  display: flex;
  flex-direction: column;
  gap: clamp(0.85rem, 2vw, 1.15rem);
  margin-bottom: clamp(1rem, 2.5vw, 1.5rem);
  padding-bottom: clamp(0.85rem, 2vw, 1.15rem);
  border-bottom: 1px solid var(--line, rgba(0, 255, 136, 0.18));
}

.pub-site-header__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.25rem;
}

.pub-site-header h1 {
  font-family: "Archivo Black", sans-serif;
  font-size: clamp(1.35rem, 4.2vw, 2.05rem);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.05;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  text-shadow: 0 0 48px rgba(0, 255, 136, 0.12);
  color: var(--chalk, #f5f5f5);
}

.pub-site-header h1 .lucide {
  width: 1.05em;
  height: 1.05em;
  flex-shrink: 0;
  color: var(--pitch-green, #00ff88);
}

.pub-site-header h1 span {
  color: var(--pitch-green, #00ff88);
}

.pub-site-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: clamp(0.68rem, 1.4vw, 0.8rem);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--pitch-green, #00ff88);
  border: 1px solid rgba(0, 255, 136, 0.42);
  padding: 0.4em 0.85em;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(0, 255, 136, 0.1), rgba(0, 0, 0, 0.12));
}

.pub-site-badge .lucide {
  width: 1.05em;
  height: 1.05em;
  flex-shrink: 0;
}

.pub-site-eyebrow {
  font-size: clamp(0.72rem, 1.6vw, 0.88rem);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted, #a8b8b0);
}

.pub-site-header__brand-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  min-width: 0;
}

.pub-site-header__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.65rem;
}

.pub-site-header__actions--home {
  justify-content: flex-end;
}

/* Navigation principale (desktop : flex wrap ; mobile : pub-mobile-nav.css) */
.pub-site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.65rem;
  font-size: clamp(0.82rem, 1.5vw, 0.92rem);
  font-weight: 600;
}

.pub-site-nav a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--pitch-green, #00ff88);
  text-decoration: none;
  padding: 0.48em 0.75em;
  border-radius: 8px;
  border: 1px solid rgba(0, 255, 136, 0.32);
  background: rgba(0, 0, 0, 0.18);
  transition: background 0.15s ease, border-color 0.15s ease;
}

.pub-site-nav a .lucide {
  width: 1em;
  height: 1em;
  flex-shrink: 0;
}

.pub-site-nav a:hover,
.pub-site-nav a:focus-visible {
  background: rgba(0, 255, 136, 0.1);
  border-color: rgba(0, 255, 136, 0.48);
}

.pub-site-nav a:focus-visible {
  outline: 2px solid var(--pitch-green, #00ff88);
  outline-offset: 2px;
}

.pub-site-nav a[aria-current="page"] {
  color: var(--chalk, #f5f5f5);
  border-color: rgba(245, 245, 245, 0.35);
  background: rgba(255, 255, 255, 0.06);
  pointer-events: none;
}

/* Liens rapides (Tableau / Accueil) à droite du titre */
.pub-site-header .link-back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: clamp(0.82rem, 1.55vw, 0.95rem);
  font-weight: 600;
  color: var(--pitch-green, #00ff88);
  text-decoration: none;
  padding: 0.48em 0.85em;
  border-radius: 8px;
  border: 1px solid rgba(0, 255, 136, 0.35);
  background: rgba(0, 0, 0, 0.2);
  transition: background 0.15s ease, border-color 0.15s ease;
}

.pub-site-header .link-back .lucide {
  width: 1em;
  height: 1em;
  flex-shrink: 0;
}

.pub-site-header .link-back:hover,
.pub-site-header .link-back:focus-visible {
  background: rgba(0, 255, 136, 0.1);
  border-color: rgba(0, 255, 136, 0.48);
}

.pub-site-header .link-back:focus-visible {
  outline: 2px solid var(--pitch-green, #00ff88);
  outline-offset: 2px;
}

/* Accueil : statut live + sélecteur champion */
.pub-site-header--home .pub-site-header__row {
  align-items: flex-start;
}

@media (max-width: 768px) {
  .pub-site-header--home {
    position: sticky;
    top: env(safe-area-inset-top, 0px);
    z-index: 30;
    padding: 0.75rem 0.85rem 0.9rem;
    margin-bottom: clamp(0.85rem, 2.5vw, 1.25rem);
    border: 1px solid rgba(0, 255, 136, 0.2);
    border-radius: 14px;
    background: rgba(4, 12, 10, 0.88);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow:
      0 0 0 1px rgba(0, 255, 136, 0.05),
      0 12px 40px rgba(0, 0, 0, 0.45);
  }

  .pub-site-header--home .pub-site-header__actions--home {
    width: 100%;
    justify-content: center;
  }
}
