/* ============================================================
   navbar.css
   ============================================================ */

nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: 88px;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(0, 180, 160, 0.1);
  transition: box-shadow 0.3s;
}

nav.scrolled {
  box-shadow: 0 2px 24px rgba(14, 17, 23, 0.08);
}

.nav-logo {
  display: flex;
}

.nav-logo-img {
  height: 70px;
  width: auto;
  display: block;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 0px;
  height: 100%;
  align-items: stretch;
}

.nav-links li { display: flex; }

.nav-links a {
  display: flex;
  align-items: center;
  font-size: 0.98rem;
  font-weight: 400;
  color: #4a5568;
  padding: 0 24px;
  border-left: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(194, 183, 183, 0.15);
  position: relative;
  overflow: hidden;
  transition: color 0.2s, background 0.2s;
}

.nav-links li:last-child a {
  border-right: 1px solid rgba(0, 0, 0, 0.08);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: var(--teal);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s;
}

.nav-links a:hover {
  color: var(--ink);
  background: rgba(0, 180, 160, 0.08);
}

.nav-links a:hover::after { transform: scaleX(1); }

.nav-links a.active {
  color: var(--teal);
  font-weight: 500;
  background: rgba(0, 180, 160, 0.06);
}

/* ── BURGER ── */
.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── RESPONSIVE ── */
@media (max-width: 820px) {
  nav { padding: 0 20px; }

  .burger { display: flex; }

  .nav-links {
    display: none;
    position: fixed;
    top: 88px;
    left: 0; right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(14px);
    flex-direction: column;
    height: auto;
    border-bottom: 1px solid rgba(0, 180, 160, 0.1);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  }

  .nav-links.open { display: flex; }

  .nav-links li { width: 100%; }

  .nav-links a {
    border-left: none;
    border-right: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    padding: 16px 24px;
    font-size: 0.95rem;
    width: 100%;
    justify-content: flex-end;   /* ← ajouté : pousse le texte à droite */
    text-align: right;            /* ← ajouté */
  }

  .nav-links li:last-child a { border-right: none; }
}
