/* ============================================================
   e-translate · page /api (doc + tarifs) — complète landing.css
   ============================================================ */

.nav-brand-link { display: flex; align-items: center; gap: 11px; text-decoration: none; color: inherit; }
.nav-links a[aria-current="page"] { color: var(--text); }

.doc-main { max-width: 880px; }
.doc-hero { padding: clamp(32px, 6vw, 64px) 0 24px; text-align: center; }
.doc-hero h1 { font-size: clamp(1.9rem, 5vw, 2.8rem); letter-spacing: -0.02em; margin: 0 0 12px; font-weight: 800; }
.doc-hero .lede { margin: 0 auto; }

/* tabs */
.tabs {
  display: inline-flex;
  gap: 4px;
  padding: 5px;
  margin: 8px 0 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
}
.tab {
  font: inherit; font-size: 0.92rem; font-weight: 600;
  color: var(--text-dim);
  background: transparent;
  border: none;
  padding: 9px 22px;
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.15s, background 0.15s;
}
.tab:hover { color: var(--text); }
.tab.is-active { color: #fff; background: linear-gradient(135deg, var(--accent), var(--accent-2)); }
.tab:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* doc sections */
.doc-section { padding: 26px 0; border-top: 1px solid var(--border); }
.doc-section:first-child { border-top: none; padding-top: 0; }
.doc-section h2 {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  font-size: 1.25rem; letter-spacing: -0.01em; margin: 0 0 14px;
}
.doc-section p { color: var(--text-dim); margin: 0 0 14px; }
.doc-section .note { font-size: 0.88rem; color: var(--text-faint); }
.doc-section code {
  background: var(--surface-2); padding: 1px 6px; border-radius: 6px;
  font-size: 0.86em; color: var(--accent); font-family: var(--mono);
}
.bullets { margin: 0 0 14px; padding-left: 20px; color: var(--text-dim); }
.bullets li { margin: 4px 0; }
.bullets code { color: var(--accent); }

/* code blocks with copy button */
.code { position: relative; margin: 0 0 16px; }
.code pre {
  margin: 0;
  padding: 16px 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow-x: auto;
}
.code pre code {
  background: none; padding: 0; color: var(--text-dim);
  font-size: 0.82rem; line-height: 1.5; font-family: var(--mono);
}
.copy-btn {
  position: absolute; top: 8px; right: 8px;
  font: inherit; font-size: 0.72rem; font-weight: 600;
  color: var(--text-dim);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 4px 10px;
  cursor: pointer;
  opacity: 0; transition: opacity 0.15s, color 0.15s, border-color 0.15s;
}
.code:hover .copy-btn, .copy-btn:focus-visible { opacity: 1; }
.copy-btn:hover { color: var(--accent); border-color: var(--accent); }
.copy-btn.copied { color: var(--success); border-color: var(--success); }

/* parameter / error tables */
.params { width: 100%; border-collapse: collapse; margin: 0 0 16px; font-size: 0.9rem; }
.params th, .params td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--border); }
.params th { color: var(--text-dim); font-weight: 600; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.03em; }
.params td { color: var(--text-dim); }
.params tr:last-child td { border-bottom: none; }

/* pricing */
.pricing-wrap {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 8px;
}
.price-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  display: flex; flex-direction: column;
}
.price-card.featured { border-color: var(--accent); box-shadow: 0 12px 40px rgba(177, 75, 255, 0.18); }
.price-badge {
  position: absolute; top: -11px; left: 24px;
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.03em;
  color: #fff; background: linear-gradient(135deg, var(--accent), var(--accent-2));
  padding: 4px 12px; border-radius: 999px;
}
.price-card h3 { margin: 0 0 10px; font-size: 1.15rem; }
.price { display: flex; align-items: baseline; gap: 6px; margin-bottom: 6px; }
.price .amount { font-size: 2.4rem; font-weight: 800; letter-spacing: -0.02em; }
.price .period { color: var(--text-faint); font-size: 0.95rem; }
.price-sub { color: var(--text-dim); font-size: 0.92rem; margin: 0 0 18px; }
.price-sub strong { color: var(--text); }
.price-feats { list-style: none; margin: 0 0 22px; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.price-feats li { position: relative; padding-left: 26px; color: var(--text-dim); font-size: 0.92rem; }
.price-feats li::before {
  content: ""; position: absolute; left: 0; top: 4px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23b14bff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 11px no-repeat;
}
.price-cta { margin-top: auto; width: 100%; }
.pricing-note { margin-top: 24px; text-align: center; color: var(--text-faint); font-size: 0.9rem; }
.pricing-note a { color: var(--accent); }

@media (max-width: 560px) {
  .tabs { display: flex; width: 100%; }
  .tab { flex: 1; padding: 9px 10px; }
}
