/* =====================================================
   IMMIGRATION97 — NAVBAR ULTRA PREMIUM 2026 (COMPACT)
   - Glassmorphism premium
   - Version compacte: moins de hauteur / moins de décalage
   File: static/css/components/navbar-premium-2026.css
===================================================== */

/* =====================================================
   CUSTOM PROPERTIES — Premium Color System
===================================================== */
:root {
  --im97-emerald: #10b981;
  --im97-sky: #0ea5e9;
  --im97-night: #030817;
  --im97-midnight: #0a1628;

  --glass-bg: rgba(10, 22, 40, 0.65);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-glow: rgba(16, 185, 129, 0.12);

  --shadow-nav: 0 8px 32px rgba(3, 8, 23, 0.37),
                0 2px 16px rgba(16, 185, 129, 0.08),
                inset 0 1px 0 rgba(255, 255, 255, 0.05);

  --shadow-button: 0 4px 24px rgba(16, 185, 129, 0.25),
                    0 2px 8px rgba(3, 8, 23, 0.15);

  --shadow-button-hover: 0 8px 40px rgba(16, 185, 129, 0.38),
                          0 4px 16px rgba(14, 165, 233, 0.18);

  --font-display: 'Outfit', 'Manrope', -apple-system, sans-serif;
  --font-body: 'DM Sans', 'General Sans', system-ui, sans-serif;

  --ease-premium: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-smooth: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* =====================================================
   NAVBAR — Glassmorphism Premium
===================================================== */
.c-navbar {
  position: sticky;
  top: 0;
  z-index: 1000;

  background: var(--glass-bg);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);

  border-bottom: 1px solid var(--glass-border);
  box-shadow: var(--shadow-nav);

  transition: all 0.4s var(--ease-smooth);
}

/* Ambient Glow */
.c-navbar::before {
  content: "";
  position: absolute;
  inset: 0;

  background: radial-gradient(
    ellipse 800px 100px at 50% 120%,
    var(--glass-glow),
    transparent
  );

  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
}

.c-navbar:hover::before {
  opacity: 1;
}

/* Premium Border Gradient */
.c-navbar::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;

  width: 100%;
  height: 1px;

  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(16, 185, 129, 0.4) 20%,
    rgba(14, 165, 233, 0.6) 50%,
    rgba(16, 185, 129, 0.4) 80%,
    transparent 100%
  );

  animation: borderFlow 8s ease-in-out infinite;
}

@keyframes borderFlow {
  0%, 100% { opacity: 0.4; transform: translateX(0); }
  50% { opacity: 1; transform: translateX(10px); }
}

/* Scrolled State */
.c-navbar.is-scrolled {
  background: rgba(3, 8, 23, 0.88);
  box-shadow: 0 4px 24px rgba(3, 8, 23, 0.5),
              0 1px 12px rgba(16, 185, 129, 0.12);
}

/* =====================================================
   CONTAINER & LAYOUT (COMPACT)
===================================================== */
.c-navbar__container {
  max-width: 1320px;
  margin-inline: auto;

  /* ✅ compact: réduit la hauteur globale */
  padding: 0.85rem 2.25rem;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2.5rem;
}

/* =====================================================
   LOGO — Premium Hover States (slightly smaller)
===================================================== */
.c-navbar__brand {
  position: relative;
  display: flex;
  align-items: center;

  transition: transform 0.4s var(--ease-premium);
}

.c-navbar__brand img {
  height: 52px; /* ✅ un peu plus petit */
  width: auto;
  display: block;

  filter: drop-shadow(0 4px 12px rgba(16, 185, 129, 0.0));
  transition: all 0.5s var(--ease-smooth);
}

.c-navbar__brand::before {
  content: "";
  position: absolute;
  inset: -12px;

  background: radial-gradient(
    circle,
    rgba(16, 185, 129, 0.15) 0%,
    transparent 70%
  );

  border-radius: 50%;
  opacity: 0;

  transform: scale(0.8);
  transition: all 0.6s var(--ease-premium);
}

.c-navbar__brand:hover::before {
  opacity: 1;
  transform: scale(1);
}

.c-navbar__brand:hover img {
  transform: translateY(-2px) scale(1.03);
  filter: drop-shadow(0 12px 32px rgba(16, 185, 129, 0.3))
          drop-shadow(0 4px 16px rgba(14, 165, 233, 0.2));
}

.c-navbar__brand:active img {
  transform: translateY(0) scale(0.98);
}

/* =====================================================
   NAVIGATION LINKS — Swiss Precision
===================================================== */
.c-navbar__nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.c-nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;

  padding: 0.60rem 1.05rem; /* ✅ compact */
  font-family: var(--font-display);
  font-size: 0.925rem;
  font-weight: 600;
  letter-spacing: 0.01em;

  color: rgba(255, 255, 255, 0.75);
  border-radius: 12px;

  transition: all 0.3s var(--ease-smooth);
}

.c-nav-link::before {
  content: "";
  position: absolute;
  inset: 0;

  background: rgba(255, 255, 255, 0.05);
  border-radius: 12px;

  opacity: 0;
  transform: scale(0.9);

  transition: all 0.3s var(--ease-premium);
}

.c-nav-link:hover::before {
  opacity: 1;
  transform: scale(1);
}

.c-nav-link::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 6px;

  width: 0;
  height: 2px;

  background: linear-gradient(90deg, var(--im97-emerald), var(--im97-sky));
  border-radius: 999px;
  box-shadow: 0 2px 12px rgba(16, 185, 129, 0.5);

  transform: translateX(-50%);
  transition: width 0.4s var(--ease-premium);
}

.c-nav-link:hover {
  color: #ffffff;
  transform: translateY(-1px);
}

.c-nav-link:hover::after {
  width: calc(100% - 24px);
}

.c-nav-link:active { transform: translateY(0); }

.c-nav-link.is-active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
}

.c-nav-link.is-active::after {
  width: calc(100% - 24px);
}

/* =====================================================
   ACTIONS — Premium Button System (COMPACT)
===================================================== */
.c-navbar__actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Button Base */
.c-navbar__actions .c-btn {
  position: relative;

  /* ✅ compact */
  min-height: 42px;
  padding: 0 1.25rem;

  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.01em;

  border-radius: 14px;

  transition: all 0.35s var(--ease-smooth);
  overflow: hidden;
}

.c-navbar__actions .c-btn::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.6s ease;
}

.c-navbar__actions .c-btn:hover::before { left: 100%; }

/* Outline */
.c-navbar__actions .c-btn--outline {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.15), rgba(59, 130, 246, 0.12));
  border: 1.5px solid rgba(14, 165, 233, 0.35);
  color: #e0f2fe;

  box-shadow: 0 4px 18px rgba(14, 165, 233, 0.15),
              inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.c-navbar__actions .c-btn--outline:hover {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.25), rgba(59, 130, 246, 0.22));
  border-color: rgba(14, 165, 233, 0.6);

  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(14, 165, 233, 0.28),
              0 4px 14px rgba(14, 165, 233, 0.18);
}

.c-navbar__actions .c-btn--outline:active { transform: translateY(0); }

/* Primary */
.c-navbar__actions .c-btn--primary {
  background: linear-gradient(135deg, #16a34a, #15803d);
  border: none;
  color: #ffffff;

  box-shadow: 0 6px 22px rgba(22, 163, 74, 0.25),
              0 2px 10px rgba(3, 8, 23, 0.25);
}

.c-navbar__actions .c-btn--primary:hover {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(22, 163, 74, 0.38),
              0 4px 18px rgba(14, 165, 233, 0.12);
}

.c-navbar__actions .c-btn--primary:active { transform: translateY(-1px); }

/* =====================================================
   RESPONSIVE
===================================================== */
@media (max-width: 1024px) {
  .c-navbar__container {
    padding: 0.75rem 1.4rem;
    gap: 2rem;
  }

  .c-navbar__brand img { height: 46px; }

  .c-nav-link {
    padding: 0.5rem 0.875rem;
    font-size: 0.875rem;
  }

  .c-navbar__actions .c-btn {
    min-height: 40px;
    padding: 0 1.1rem;
    font-size: 0.875rem;
  }
}

@media (max-width: 768px) {
  .c-navbar__container { padding: 0.7rem 1.1rem; }

  .c-navbar__brand img { height: 44px; }

  .c-navbar__nav {
    flex-direction: column;
    gap: 0.5rem;
  }

  .c-nav-link {
    width: 100%;
    justify-content: center;
    padding: 0.625rem 1rem;
  }

  .c-navbar__actions {
    flex-direction: column;
    width: 100%;
    gap: 0.5rem;
  }

  .c-navbar__actions .c-btn {
    width: 100%;
    justify-content: center;
  }
}

/* =====================================================
   ACCESSIBILITY
===================================================== */
.c-nav-link:focus-visible,
.c-btn:focus-visible {
  outline: 2px solid var(--im97-emerald);
  outline-offset: 4px;
}

@media (prefers-reduced-motion: reduce) {
  .c-navbar,
  .c-navbar::before,
  .c-navbar::after,
  .c-navbar__brand,
  .c-navbar__brand img,
  .c-navbar__brand::before,
  .c-nav-link,
  .c-nav-link::before,
  .c-nav-link::after,
  .c-btn,
  .c-btn::before,
  .c-btn::after {
    animation: none !important;
    transition: none !important;
  }
}
