/* ═══════════════════════════════════════════
   CABINET KANY — navbar.css
═══════════════════════════════════════════ */

nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  padding: 0 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 90px;
  background: rgba(15, 21, 53, 0.97);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(201, 168, 76, 0.18);
  transition: height 0.3s ease, background 0.3s ease;
  will-change: height;
  transform: translateZ(0); /* Force GPU — évite le flicker */
  -webkit-transform: translateZ(0);
}
nav.scrolled { height: 68px; }

/* ── LOGO ── */
/* NOTE: Logo actuel sur fond blanc — remplacer logo_kany.jpg
   par logo_kany.png (fond transparent) avant mise en ligne.
   Supprimer aussi .logo-wrap et son background blanc. */
.logo-wrap {
  display: flex;
  align-items: center;
  gap: 0;
  background: rgba(255, 255, 255, 0.95);
  padding: 4px 16px 4px 8px;
  border: 1px solid rgba(201, 168, 76, 0.3);
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
}
.logo-wrap:hover { border-color: var(--gold); }
.logo-wrap img {
  height: 60px;
  width: auto;
  display: block;
  object-fit: contain;
}

/* ── LIENS NAV ── */
.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
}
.nav-links a {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 500;
  transition: color 0.2s;
  position: relative;
  cursor: pointer;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.3s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--gold); }
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

/* ── BOUTON CTA ── */
.nav-cta {
  padding: 9px 22px !important;
  border: 1px solid var(--gold) !important;
  color: var(--gold) !important;
}
.nav-cta:hover {
  background: var(--gold) !important;
  color: var(--navy-dark) !important;
}
.nav-cta::after { display: none !important; }

/* ── MENU MOBILE ── */
.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}
.nav-burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--gold);
  transition: var(--transition);
}
.nav-burger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.nav-mobile {
  display: none;
  position: fixed;
  top: 72px;
  left: 0;
  width: 100%;
  background: rgba(10, 16, 42, 0.99);
  padding: 16px 5% 24px;
  flex-direction: column;
  gap: 0;
  border-bottom: 1px solid rgba(201, 168, 76, 0.2);
  z-index: 998;
  max-height: calc(100vh - 72px);
  overflow-y: auto;
  /* Animation slide down */
  transform: translateY(-8px);
  opacity: 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-mobile.open {
  display: flex;
  transform: translateY(0);
  opacity: 1;
}
.nav-mobile a {
  color: rgba(255, 255, 255, 0.75);
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 500;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: color 0.2s, padding-left 0.2s;
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-mobile a:hover {
  color: var(--gold);
  padding-left: 8px;
}
/* Icônes dans le menu mobile */
.nav-mobile a::before {
  content: '›';
  color: var(--gold);
  font-size: 16px;
  opacity: 0;
  transition: opacity 0.2s;
}
.nav-mobile a:hover::before { opacity: 1; }
/* Dernier lien = Contact en or */
.nav-mobile a:last-child {
  margin-top: 12px;
  padding: 13px 20px;
  background: rgba(201, 168, 76, 0.12);
  border: 1px solid rgba(201, 168, 76, 0.3);
  color: var(--gold);
  text-align: center;
  justify-content: center;
  border-bottom: 1px solid rgba(201, 168, 76, 0.3);
}
.nav-mobile a:last-child:hover {
  background: var(--gold);
  color: var(--navy-dark);
  padding-left: 20px;
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .nav-links { gap: 20px; }
}
@media (max-width: 768px) {
  nav { padding: 0 4%; }
  .nav-links { display: none; }
  .nav-burger { display: flex; }
}