@charset "UTF-8";

/**
 * 05-navigation.css
 * ------------------------------------------------------------------
 * Barre de navigation principale, logo, liens, bouton burger
 * et drawer mobile.
 * ------------------------------------------------------------------
 */

/* ============================================================
   Barre de navigation
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--brand-pink);
  border-bottom: 1px solid rgb(0 0 0 / 0.05);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
}

/* ------ Logo ------ */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}

.nav-logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--ink);
  position: relative;
  flex-shrink: 0;
}

.nav-logo-mark::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 18px;
  height: 1.5px;
  background: var(--bg);
  transform: translate(-50%, -50%) rotate(-25deg);
}

.nav-logo-mark::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 7px;
  height: 7px;
  background: var(--magenta);
  border-radius: 50%;
  transform: translate(2px, -6px);
}

.nav-logo-text {
  font-family: var(--font-display);
  font-size: 24px;
  letter-spacing: -0.01em;
  line-height: 1;
}

.nav-logo-text small {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  display: block;
  margin-top: 3px;
  font-style: normal;
}

/* ------ Liens ------ */
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  padding: 10px 16px;
  border-radius: var(--r-pill);
  font-size: 14px;
  color: var(--ink-soft);
  text-decoration: none;
  border: none;
  background: none;
  cursor: pointer;
  transition:
    background var(--t-fast),
    color var(--t-fast);
  font-family: inherit;
}

.nav-link:hover {
  background: var(--bg-alt);
  color: var(--ink);
}

.nav-link.active {
  background: var(--ink);
  color: var(--bg);
}

/* ------ Variantes thématiques de la barre ------ */
.nav .nav-link {
  color: rgb(14, 23, 38, 0.85);
}

.nav .nav-link.active {
  background: transparent;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 6px;
}

.nav .nav-link:hover {
  background: rgb(255, 255, 255, 0.25);
  color: var(--ink);
}

.nav-links .btn-magenta {
  background: var(--accent-magenta);
  color: #fff;
}

.nav-links .btn-magenta:hover {
  background: #b9216a;
}

.nav-links .btn-magenta.active {
  background: var(--accent-magenta);
  color: #fff;
  text-decoration: none;
}

.nav .nav-logo-text {
  color: var(--ink);
}

.nav .nav-logo-mark {
  background: var(--ink);
}

.nav-cta {
  margin-left: 8px;
}

/* ============================================================
   Burger mobile + drawer
   ============================================================ */
.nav-burger {
  display: none;
  background: var(--bg);
  border: 1px solid rgb(0, 0, 0, 0.12);
  width: 44px;
  height: 44px;
  border-radius: var(--r-pill);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  color: var(--ink);
}

.nav-drawer-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgb(14, 23, 38, 0.45);
  z-index: 80;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t-base);
}

/* ============================================================
   Variante simple — un seul lien + CTA, pas de drawer mobile.
   Conserve les liens visibles en ligne sur toutes les largeurs.
   ============================================================ */
.nav-simple .nav-logo-btn {
  display: inline-flex;
  text-decoration: none;
  align-items: center;
}

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

@media (max-width: 900px) {
  .nav-simple .nav-burger {
    display: none;
  }

  .nav-simple .nav-links {
    position: static;
    width: auto;
    background: transparent;
    box-shadow: none;
    padding: 0;
    flex-direction: row !important;
    align-items: center !important;
    gap: 12px;
    z-index: auto;
    transform: none;
    transition: none;
    overflow: visible;
  }

  .nav-simple .nav-links .nav-link {
    padding: 10px 14px !important;
    font-size: 14px !important;
  }

  .nav-simple .nav-links .nav-cta {
    margin-left: 0 !important;
    margin-top: 0 !important;
  }
}

@media (max-width: 480px) {
  .nav-simple .nav-inner {
    gap: 12px;
    flex-wrap: wrap;
  }
}

/* ============================================================
   Padding du header au format mobile
   ============================================================ */
@media (max-width: 720px) {
  .nav {
    padding: 5px;
  }
}
