/* ============================
   MXBZH - NAVBAR FLOTTANTE
   ============================ */

.floating-navbar {
  position: fixed;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  background: #ffffff;
  border-radius: 50px;
  padding: 10px 20px 10px 24px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  gap: 32px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.4s ease;
}

.floating-navbar:hover {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  transform: translateX(-50%) translateY(-1px);
}

/* Navbar scrolled */
.floating-navbar.scrolled {
  background: #ffffff;
  border: 1px solid rgba(15, 74, 163, 0.12);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1), 0 1px 3px rgba(0, 0, 0, 0.06);
}

.floating-navbar.scrolled:hover {
  background: #ffffff;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.15);
}

.floating-navbar.scrolled .floating-nav-link {
  color: #4b5563;
}

.floating-navbar.scrolled .floating-nav-link:hover {
  color: #0f4aa3;
}

.floating-navbar.scrolled .floating-nav-link.active {
  color: #0f4aa3;
}

/* Logo */
.floating-navbar-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
  transition: all 0.3s ease;
  margin-right: 12px;
}

.floating-navbar-logo:hover {
  transform: scale(1.02);
}

/* Logo Image */
.navbar-logo-img {
  height: 15px;
  width: auto;
  display: block;
}

.logo-text {
  font-family: 'Sora', sans-serif;
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.logo-mx {
  color: #111827;
}

.logo-bzh {
  color: #1e3a5f;
  font-weight: 800;
}

.floating-navbar-brand {
  display: none;
}

/* Navigation Links */
.floating-nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.floating-nav-link {
  display: flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 20px;
  text-decoration: none;
  color: #374151;
  font-family: 'Sora', sans-serif;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  transition: all 0.2s ease;
  position: relative;
}

.floating-nav-link:hover {
  color: #0f4aa3;
}

.floating-nav-link.active {
  color: #0f4aa3;
  font-weight: 700;
}

/* CTA Button */
.floating-nav-cta {
  display: flex;
  align-items: center;
  padding: 8px 18px;
  border-radius: 20px;
  text-decoration: none;
  color: #ffffff !important;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  background: linear-gradient(135deg, #0f4aa3 0%, #1a67e3 100%);
  box-shadow: 0 2px 8px rgba(15, 74, 163, 0.25);
  margin-left: 8px;
  transition: all 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  letter-spacing: -0.01em;
}

.floating-nav-cta:hover {
  background: linear-gradient(135deg, #1a67e3 0%, #2a7aff 100%);
  box-shadow: 0 4px 12px rgba(15, 74, 163, 0.35);
  transform: translateY(-1px);
}

/* Profile Button (ancien) */
.floating-nav-profile {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, #0f4aa3 0%, #1a67e3 100%);
  border: none;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow: 0 2px 8px rgba(15, 74, 163, 0.25);
  margin-left: 8px;
}

.floating-nav-profile:hover {
  background: linear-gradient(135deg, #1a67e3 0%, #2a7aff 100%);
  box-shadow: 0 4px 12px rgba(15, 74, 163, 0.35);
  transform: translateY(-1px) scale(1.05);
}

.floating-nav-profile svg {
  width: 18px;
  height: 18px;
  color: white;
}

/* Account Button (connecté) - Nom + pastille verte */
.floating-nav-account {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px 9px 18px;
  border-radius: 50px;
  background: linear-gradient(135deg, #1e3a5f 0%, #16213e 100%);
  border: none;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  box-shadow: 0 2px 12px rgba(22, 33, 62, 0.35);
  margin-left: 8px;
}

.floating-nav-account:hover {
  background: linear-gradient(135deg, #243b5c 0%, #1a2744 100%);
  box-shadow: 0 4px 16px rgba(22, 33, 62, 0.45);
  transform: translateY(-1px);
}

.floating-nav-account .account-name {
  color: #ffffff;
  font-family: 'Sora', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.floating-nav-account .account-status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.6);
  flex-shrink: 0;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {

  0%,
  100% {
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.6);
  }

  50% {
    box-shadow: 0 0 12px rgba(34, 197, 94, 0.9);
  }
}

/* Auth Button (Connexion) - Style moderne bleu gradient */
.floating-nav-auth {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid rgba(148, 163, 184, 0.2);
  color: #1e293b;
  font-family: 'Sora', sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
  box-shadow:
    0 4px 12px rgba(59, 130, 246, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
}

.floating-nav-auth::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.floating-nav-auth:hover::before {
  left: 100%;
}

.floating-nav-auth:hover {
  background: #f1f5f9;
  border-color: rgba(59, 130, 246, 0.5);
  color: #0f4aa3;
  transform: translateY(-2px);
  box-shadow:
    0 4px 12px rgba(15, 74, 163, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.floating-nav-auth:active {
  transform: translateY(0);
}

.floating-nav-auth svg {
  width: 16px;
  height: 16px;
  position: relative;
  z-index: 1;
}

/* Auth CTA Button (Voir les terrains) */
.floating-nav-auth-cta {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  border-radius: 50px;
  background: linear-gradient(135deg, #1e3a5f 0%, #2d4a6f 100%);
  border: none;
  color: #ffffff;
  font-family: 'Sora', sans-serif;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  box-shadow: 0 4px 15px rgba(30, 58, 95, 0.4);
  text-decoration: none;
}

.floating-nav-auth-cta:hover {
  background: linear-gradient(135deg, #162d4d 0%, #1e3a5f 100%);
  box-shadow: 0 6px 20px rgba(30, 58, 95, 0.5);
  transform: translateY(-2px);
  color: #ffffff;
}

.floating-nav-auth-cta svg {
  width: 15px;
  height: 15px;
}

/* Auth buttons container */
.floating-nav-auth-group {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: 8px;
}

/* Mobile Toggle */
.floating-nav-toggle {
  display: none;
  background: none;
  border: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
}

.floating-nav-toggle span {
  width: 22px;
  height: 2px;
  background: #0d1117;
  transition: all 0.3s ease;
  border-radius: 2px;
}

/* Progress bar */
.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: rgba(15, 74, 163, 0.1);
  z-index: 1001;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.progress-bar.visible {
  opacity: 1;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #0f4aa3, #1a67e3);
  transition: width 0.1s ease;
}