/* Triple-D Tools — navigation galerie éditoriale (indépendante du thème) */
.tdpn[hidden] { display: none !important; }
.tdpn {
  --tdpn-ink: #e8e2d8;
  --tdpn-accent: #6e8f7a;
  display: flex;
  align-items: center;
  gap: 22px;
  width: 100%;
  margin: 0 0 16px;
  color: var(--tdpn-ink);
  font-family: inherit;
}
.tdpn--right { justify-content: flex-end; }
.tdpn--left { justify-content: flex-start; }
.tdpn--center { justify-content: center; }
.tdpn-counter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: 'Bahnschrift Condensed', 'Bahnschrift', sans-serif;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: .17em;
  line-height: 1;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.tdpn-line {
  display: block;
  width: 33px;
  height: 1px;
  background: currentColor;
  opacity: .66;
}
.tdpn-buttons { display: inline-flex; align-items: center; gap: 10px; }
.tdpn-arrow {
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 47px;
  height: 47px;
  min-width: 47px;
  min-height: 47px;
  border: 1px solid rgba(232, 226, 216, .62);
  border-radius: 50%;
  background: transparent;
  color: var(--tdpn-ink);
  padding: 0;
  cursor: pointer;
  box-shadow: none;
  transition: border-color .2s ease, color .2s ease, background .2s ease, transform .2s ease;
}
.tdpn-arrow svg { display: block; width: 19px; height: 19px; }
.tdpn-arrow:not(:disabled):hover {
  background: var(--tdpn-accent);
  border-color: var(--tdpn-accent);
  color: #fff;
  transform: translateY(-2px);
}
.tdpn-arrow:not(:disabled):focus-visible {
  outline: 2px solid var(--tdpn-accent);
  outline-offset: 3px;
}
.tdpn-arrow:disabled { opacity: .32; cursor: default; }
.tdpn.tdpn--loading .tdpn-arrow { pointer-events: none; }

/* La pagination native reste dans le HTML : seule la grille associée est masquée visuellement. */
.w-grid.tdpn-grid-enhanced > nav.pagination.navigation { display: none !important; }

@media (max-width: 767px) {
  .tdpn { gap: 14px; margin-bottom: 12px; }
  .tdpn-counter { font-size: 11px; gap: 7px; }
  .tdpn-line { width: 23px; }
  .tdpn-buttons { gap: 8px; }
  .tdpn-arrow { width: 40px; height: 40px; min-width: 40px; min-height: 40px; }
  .tdpn-arrow svg { width: 17px; height: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  .tdpn-arrow { transition: none; }
}
