/* V14.1 — navigation commune et accueil mobile de production. */

.topbar,
.site-header {
  align-items: center;
  background: rgba(9, 9, 13, .9);
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 24px;
  justify-content: space-between;
  padding: 15px clamp(18px, 5vw, 76px);
  position: sticky;
  top: 0;
  z-index: 40;
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.topbar nav,
.site-header nav {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 5px 20px;
  justify-content: flex-end;
}

.topbar nav a,
.site-header nav a {
  border-radius: 999px;
  display: inline-flex;
  padding: 8px 2px;
  white-space: nowrap;
}

.topbar nav a.active,
.site-header nav a.active { color: var(--gold); }

.topbar nav button,
.site-header nav button {
  min-height: 40px;
  padding: 9px 15px;
}

a.secondary {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  text-decoration: none;
}

.hero-copy { min-width: 0; }

.quiz-main { padding-top: 48px; }

.hero-auth-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.hero-auth-actions .secondary {
  min-height: 44px;
  padding: 11px 19px;
}

.hero-platform-note {
  color: var(--muted);
  flex-basis: 100%;
  font-size: .78rem;
  margin: 2px 0 0;
}

.hero-discovery {
  display: grid;
  gap: 9px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 24px;
  max-width: 660px;
}

.hero-discovery a {
  align-items: center;
  background: rgba(255, 255, 255, .045);
  border: 1px solid var(--line);
  border-radius: 17px;
  display: grid;
  gap: 3px 11px;
  grid-template-columns: auto 1fr;
  min-width: 0;
  padding: 12px 14px;
  transition: background .2s, border-color .2s, transform .2s;
}

.hero-discovery a:hover {
  background: rgba(242, 184, 75, .08);
  border-color: rgba(242, 184, 75, .35);
  transform: translateY(-2px);
}

.hero-discovery-icon {
  color: var(--gold);
  font-size: 1.25rem;
  grid-row: 1 / 3;
}

.hero-discovery strong { font-size: .88rem; }
.hero-discovery small {
  color: var(--muted);
  font-size: .7rem;
  line-height: 1.25;
}

@media (max-width: 820px) {
  body .topbar nav a,
  body .site-header nav a { display: inline-flex; }

  .topbar,
  .site-header { gap: 14px; }

  .topbar nav,
  .site-header nav { gap: 3px 11px; }

  .topbar nav a,
  .site-header nav a { font-size: .8rem; padding: 7px 2px; }
}

@media (max-width: 620px) {
  .topbar,
  .site-header,
  .member-topbar {
    align-items: center;
    display: grid;
    gap: 7px 12px;
    grid-template-columns: auto minmax(0, 1fr);
    padding: 10px 13px;
    position: sticky;
  }

  .topbar .brand,
  .site-header .brand,
  .member-topbar .brand {
    align-self: center;
    flex: none;
    gap: 8px;
  }

  .topbar .brand img,
  .site-header .brand img,
  .member-topbar .brand img {
    height: 35px;
    width: 35px;
  }

  .topbar .brand span,
  .site-header .brand span,
  .member-topbar .brand span {
    display: inline;
    font-size: .77rem;
    line-height: .95;
    max-width: 68px;
  }

  .topbar nav,
  .site-header nav,
  .member-topbar nav {
    display: flex;
    flex: 1;
    flex-wrap: wrap;
    gap: 0 3px;
    justify-content: flex-end;
    min-width: 0;
    overflow: visible;
    padding: 0;
  }

  .topbar nav a,
  .site-header nav a,
  .member-topbar nav a {
    display: inline-flex;
    flex: 0 0 auto;
    font-size: .71rem;
    line-height: 1;
    padding: 6px 6px;
  }

  .topbar nav button,
  .site-header nav button,
  .member-topbar nav button {
    font-size: .7rem;
    min-height: 30px;
    padding: 6px 9px;
  }

  .topbar nav > button,
  .site-header nav > button,
  .member-topbar nav > button { display: none; }

  .hero {
    gap: 13px;
    padding: 25px 16px 36px;
  }

  .hero h1 {
    font-size: clamp(2.35rem, 12.5vw, 3.15rem);
    line-height: .91;
    margin: 11px 0 16px;
  }

  .hero .lead {
    font-size: .91rem;
    line-height: 1.46;
  }

  .hero-auth-actions { margin-top: 19px; }
  .hero-auth-actions > button { flex: 1 1 145px; }

  .hero-platform-note {
    font-size: .7rem;
    text-align: center;
  }

  .hero-discovery { margin-top: 18px; }

  .hero-discovery a {
    border-radius: 14px;
    gap: 2px 8px;
    padding: 10px;
  }

  .hero-discovery-icon { font-size: 1.05rem; }
  .hero-discovery strong { font-size: .78rem; }
  .hero-discovery small { font-size: .63rem; }

  .hero .mark { display: none; }

  .quiz-main { padding-top: 24px; }

  .universe { padding-top: 31px; }
  .universe .heading > p { margin-top: 6px; }
}

@media (max-width: 380px) {
  .topbar,
  .site-header,
  .member-topbar { gap: 5px 7px; padding-inline: 9px; }

  .topbar .brand span,
  .site-header .brand span,
  .member-topbar .brand span { display: none; }

  .topbar nav a,
  .site-header nav a,
  .member-topbar nav a { font-size: .67rem; padding-inline: 5px; }
}
