/* ============================================================
   Navigation — pattern DCR adapté TC
   ============================================================ */

.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 130;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px clamp(20px, 4vw, 48px);
  background: linear-gradient(180deg,
    rgba(0, 0, 0, 0.85) 0%,
    rgba(0, 0, 0, 0.55) 50%,
    rgba(0, 0, 0, 0.20) 85%,
    transparent 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  color: var(--paper);
  transition: padding 250ms var(--ease);
}
.site-nav.is-scrolled { padding-top: 18px; padding-bottom: 18px; }


.ts-logo {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: currentColor;
  text-decoration: none;
}
.ts-logo .ts-mono {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 38px;
  line-height: 1;
  letter-spacing: 0.04em;
  padding-left: 0.04em;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7), 0 2px 12px rgba(0, 0, 0, 0.5);
}
.ts-logo .ts-div {
  width: 1px;
  height: 34px;
  background: currentColor;
  opacity: 0.35;
}
.ts-logo .ts-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.ts-logo .ts-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding-left: 0.28em;
  white-space: nowrap;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 1), 0 2px 12px rgba(0, 0, 0, 0.85);
}
.ts-logo .ts-tag {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding-left: 0.32em;
  white-space: nowrap;
  opacity: 0.75;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 1);
}


/* ─── Groupe droite : liens + CTA ─── */
.nav-right {
  display: flex;
  align-items: center;
  gap: clamp(6px, 0.75vw, 10px);
  flex-wrap: nowrap;
}


/* ─── Liens de nav : pills sur fond noir translucide (DCR pattern) ─── */
.nav-link {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.075em;
  text-transform: uppercase;
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--r-full);
  padding: 8px 13px;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
  transition: color 160ms var(--ease), background 160ms var(--ease), border-color 160ms var(--ease);
  white-space: nowrap;
  text-decoration: none;
}
.nav-link:hover,
.nav-link[aria-current="page"] {
  color: #fff;
  background: rgba(0, 0, 0, 0.5);
  border-color: rgba(255, 255, 255, 0.45);
}


/* ─── CTA principal : pill blanche avec box-shadow carré (brutalist DCR) ─── */
.nav-cta {
  background: var(--paper);
  color: var(--signal);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 13px;
  padding: 8px 18px;
  border-radius: var(--r-full);
  border: 2px solid var(--paper);
  box-shadow: 3px 3px 0 0 var(--ink);
  transition: transform 200ms var(--ease), box-shadow 200ms var(--ease);
  white-space: nowrap;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.nav-cta:hover {
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 0 var(--gold);
}
.nav-cta .arrow {
  display: inline-block;
  transition: transform 250ms var(--ease);
}
.nav-cta:hover .arrow { transform: translateX(3px); }


/* ─── Burger mobile (pill blanche + shadow-pop) ─── */
.burger {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--paper);
  border-radius: var(--r-full);
  background: var(--paper);
  color: var(--ink);
  box-shadow: 3px 3px 0 0 var(--ink);
  cursor: pointer;
  transition: transform 200ms var(--ease), box-shadow 200ms var(--ease);
}
.burger:hover {
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0 0 var(--ink);
}
.burger span {
  position: relative;
  width: 16px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}
.burger span::before,
.burger span::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}
.burger span::before { top: -6px; }
.burger span::after  { top: 6px;  }


/* ─── Responsive ─── */
@media (max-width: 900px) {
  .nav-right .nav-link { display: none; }
  .nav-right { margin-left: auto; }
  .burger { display: inline-flex; }
  .ts-logo .ts-mono { font-size: 32px; }
  .ts-logo .ts-div  { height: 28px; }
  .ts-logo .ts-tag  { display: none; }
}
@media (max-width: 560px) {
  .site-nav {
    gap: 10px;
    padding: 16px;
  }
  .ts-logo { gap: 10px; }
  .ts-logo .ts-name {
    max-width: 13ch;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: 0.18em;
    padding-left: 0.18em;
  }
  .nav-cta .cta-label { display: none; }
  .nav-cta { padding: 8px 12px; }
  .burger {
    width: 40px;
    height: 40px;
  }
}
