/* =============================================
   Navigation — glassmorphism
   AI Data Leaders Summit
   ============================================= */

/* ── Base ──────────────────────────────────── */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  /* État initial : quasi invisible sur le hero foncé */
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  transition:
    background  350ms ease,
    border-color 350ms ease,
    box-shadow  350ms ease;
}

/* ── Scrolled : verre foncé plus dense ─────── */
.site-nav.is-scrolled {
  background: rgba(8,5,28,0.72);
  backdrop-filter: blur(28px) saturate(160%);
  -webkit-backdrop-filter: blur(28px) saturate(160%);
  border-bottom-color: rgba(255,255,255,0.10);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.05),
    0 4px 32px rgba(0,0,0,0.28);
}

/* ── Pages à hero clair (ex. À propos) : nav BLANCHE dès le chargement ── */
.page-light-hero .site-nav {
  background: rgba(255,255,255,0.86);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border-bottom: 1px solid rgba(32,32,32,0.08);
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}
.page-light-hero .nav__link {
  color: rgba(32,32,32,0.66);
}
.page-light-hero .nav__link:hover {
  color: #202020;
  background: rgba(32,32,32,0.06);
}
.page-light-hero .nav__link.is-active {
  color: #202020;
  background: rgba(32,32,32,0.08);
}
.page-light-hero .nav__btn-outline {
  color: #202020;
  border-color: rgba(32,32,32,0.22);
  background: rgba(32,32,32,0.04);
}
.page-light-hero .nav__btn-outline:hover {
  color: #000;
  background: rgba(32,32,32,0.08);
  border-color: rgba(32,32,32,0.42);
}
.page-light-hero .nav__mobile-toggle { color: rgba(32,32,32,0.8); }
.page-light-hero .nav__mobile-toggle:hover { color: #000; }
.page-light-hero .nav__mobile-menu {
  background: rgba(255,255,255,0.97);
  border-top-color: rgba(32,32,32,0.08);
}
.page-light-hero .nav__mobile-link {
  color: rgba(32,32,32,0.7);
  border-bottom-color: rgba(32,32,32,0.06);
}
.page-light-hero .nav__mobile-link:hover {
  color: #202020;
  background: rgba(32,32,32,0.05);
}

/* ── Inner ─────────────────────────────────── */
.nav__inner {
  max-width: 1280px;
  margin: 0 auto;
  height: 60px;
  display: flex;
  align-items: center;
  padding: 0 32px;
  gap: 0;
}

/* ── Logo ──────────────────────────────────── */
.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: 40px;
  flex-shrink: 0;
  text-decoration: none;
  cursor: pointer;
  opacity: 0.9;
  transition: opacity 150ms ease;
}
.nav__logo:hover { opacity: 1; }
.nav__logo img { height: 30px; }

/* ── Links ─────────────────────────────────── */
.nav__links {
  display: flex;
  gap: 2px;
  flex: 1;
}

.nav__link {
  font-family: 'DM Sans', sans-serif;
  font-size: 13.5px;
  font-weight: 500;
  color: rgba(255,255,255,0.62);
  padding: 6px 12px;
  border-radius: 7px;
  text-decoration: none;
  background: transparent;
  border: none;
  white-space: nowrap;
  letter-spacing: -0.1px;
  cursor: pointer;
  transition: color 150ms ease, background 150ms ease;
}
.nav__link:hover {
  color: rgba(255,255,255,0.95);
  background: rgba(255,255,255,0.08);
}
.nav__link.is-active {
  color: #ffffff;
  background: rgba(255,255,255,0.10);
}

/* ── Actions ───────────────────────────────── */
.nav__actions {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-left: auto;
}

.nav__btn-outline {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.88);
  padding: 0 18px;
  border-radius: 9999px;
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.07);
  height: 36px;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  letter-spacing: -0.1px;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease;
}
.nav__btn-outline:hover {
  background: rgba(255,255,255,0.14);
  border-color: rgba(255,255,255,0.45);
  color: #ffffff;
}

.nav__btn-primary {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: #202020;
  padding: 0 18px;
  border-radius: 9999px;
  border: none;
  background: #FCDB16;
  height: 36px;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  letter-spacing: -0.1px;
  transition: filter 150ms ease, transform 150ms ease;
}
.nav__btn-primary:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

/* ── Mobile toggle ─────────────────────────── */
.nav__mobile-toggle {
  display: none;
  background: none;
  border: none;
  padding: 8px;
  color: rgba(255,255,255,0.8);
  margin-left: auto;
  cursor: pointer;
  transition: color 150ms ease;
}
.nav__mobile-toggle:hover { color: #ffffff; }

/* ── Mobile menu ───────────────────────────── */
.nav__mobile-menu {
  display: none;
  flex-direction: column;
  background: rgba(8,5,28,0.92);
  backdrop-filter: blur(28px) saturate(160%);
  -webkit-backdrop-filter: blur(28px) saturate(160%);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 12px 24px 20px;
  gap: 2px;
}
.nav__mobile-menu.is-open { display: flex; }

.nav__mobile-link {
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: rgba(255,255,255,0.7);
  padding: 12px 8px;
  border: none;
  background: none;
  text-align: left;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  text-decoration: none;
  border-radius: 6px;
  cursor: pointer;
  transition: color 150ms ease, background 150ms ease, padding-left 150ms ease;
}
.nav__mobile-link:last-child { border-bottom: none; }
.nav__mobile-link:hover {
  color: #ffffff;
  background: rgba(255,255,255,0.07);
  padding-left: 16px;
}

/* ── Responsive ────────────────────────────── */
@media (max-width: 900px) {
  .nav__links  { display: none; }
  .nav__actions { display: none; }
  .nav__mobile-toggle { display: flex; }
}
