/* Navigation commune aux outils Bar Profit Lab.
   Chargée après la feuille de style de chaque outil ; s'appuie sur leurs variables. */

.tool-nav {
  border-top: 1px solid var(--rule);
}
.tool-nav-inner {
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
  gap: clamp(18px, 3vw, 36px);
}
.tool-nav a {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  padding-block: 10px 9px;
  font-family: var(--mono);
  font-size: 11.5px;
  line-height: 1.2;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--muted);
  transition: color .2s var(--ease);
}
.tool-nav a + a::before {
  content: "";
  position: absolute;
  left: calc(clamp(18px, 3vw, 36px) / -2);
  top: 50%;
  width: 1px;
  height: 14px;
  translate: 0 -50%;
  background: var(--rule-strong);
}
.tool-nav .tn-no { color: var(--orange-deep, var(--orange)); }
.tool-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease);
}
.tool-nav a:hover { color: var(--forest-deep); }
.tool-nav a:hover::after { transform: scaleX(.35); }
.tool-nav a[aria-current="page"] {
  color: var(--forest-deep);
  font-weight: 600;
}
.tool-nav a[aria-current="page"]::after { transform: scaleX(1); }
.tool-nav a:focus-visible {
  outline: 2px solid var(--forest);
  outline-offset: -2px;
}

/* Le masthead collant est plus haut avec la bande : on garde les ancres visibles. */
html { scroll-padding-top: 160px; }

@media (max-width: 560px) {
  .tool-nav-inner { justify-content: space-between; }
  .tool-nav .tn-no { display: none; }
  .tool-nav a { font-size: 11px; letter-spacing: .1em; padding-block: 11px 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .tool-nav a, .tool-nav a::after { transition: none; }
}

@media print {
  .tool-nav { display: none; }
}
