/* Onima V5 : documentation pour les assistants (onima.ch/docs/, onima.ch/en/docs/). Chargé après landing.css et
   legal.css : il n'ajoute que les blocs propres à la doc (sous-navigation, étapes, tableaux, blocs de code avec bouton
   Copier, cartes d'exemples). Thème clair seulement, aucun style en ligne (CSP). Les pages anglaises n'ont pas
   landing.js : leur en-tête reste dans sa forme sans JavaScript (landing.css), sans bouton de menu. */

.doc-nav { margin: 26px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.doc-nav a {
  display: inline-flex; align-items: center; padding: 8px 14px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .22); color: rgba(255, 255, 255, .86);
  font-size: 14px; font-weight: 600; text-decoration: none;
}
.doc-nav a:hover { border-color: rgba(255, 255, 255, .6); color: #fff; }
.doc-nav a[aria-current="page"] { background: rgba(255, 255, 255, .14); border-color: transparent; color: #fff; }

/* Encadré d'appel : le compte gratuit, en tête de page */
.doc-appel {
  margin: 0 0 8px; padding: 20px 22px; border-radius: var(--radius-sm);
  background: var(--green-tint); border: 1px solid #cfe9c7;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px;
}
.doc-appel p { margin: 0 !important; color: var(--ink) !important; font-size: 16px !important; }
.doc-appel strong { display: block; font-size: 17.5px; color: var(--titre); }
.texte .doc-appel .bouton { color: #fff; text-decoration: none; font-weight: 700; }

/* Listes à puces du texte (landing.css retire les puces de toutes les listes) */
.texte ul:not(.labels):not(.pied__legal) { list-style: disc; }

/* Étapes numérotées */
.texte ol.etapes { counter-reset: etape; list-style: none; margin: 0 0 16px; padding: 0; }
.texte ol.etapes > li { counter-increment: etape; position: relative; padding-left: 44px; margin: 0 0 14px; }
.texte ol.etapes > li::before {
  content: counter(etape); position: absolute; left: 0; top: 1px;
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: var(--green-bouton); color: #fff; font-size: 14px; font-weight: 800;
}

.texte h3 { margin: 22px 0 8px; font-size: 16.5px; line-height: 1.35; font-weight: 800; color: var(--titre); }
.texte code {
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: .9em;
  background: #f1f3f2; border: 1px solid var(--line); border-radius: 6px; padding: 1px 5px; color: var(--ink);
  overflow-wrap: anywhere;
}

/* Blocs de code avec bouton Copier (docs.js) */
.code { position: relative; min-width: 0; margin: 10px 0 18px; }
.code pre {
  margin: 0; padding: 44px 18px 16px; overflow-x: auto; border-radius: var(--radius-sm);
  background: var(--navy-2); color: #e7edf3; font-size: 13.5px; line-height: 1.6;
}
.code pre code { background: none; border: 0; padding: 0; color: inherit; font-size: inherit; overflow-wrap: normal; white-space: pre; }
.code__etiquette {
  display: block; margin: 0 0 6px; font-size: 12px; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--ink-faint);
}
.code__copier {
  position: absolute; top: 8px; right: 8px; padding: 5px 10px; border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .08);
  color: #fff; font: 600 12.5px var(--font); cursor: pointer;
}
.code__etiquette ~ .code__copier { top: 30px; }
.code__copier:hover { background: rgba(255, 255, 255, .18); }
.code__copier:focus-visible { outline: 2px solid var(--green-soft); outline-offset: 2px; }

/* Tableaux */
.tableau { margin: 10px 0 18px; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.tableau table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.tableau th, .tableau td { padding: 10px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); color: var(--ink-2); }
.tableau th { background: var(--bg); font-size: 13px; font-weight: 700; color: var(--ink); }
.tableau tr:last-child td { border-bottom: 0; }
.tableau td:first-child { white-space: nowrap; }
.tableau code { overflow-wrap: normal; white-space: nowrap; }

/* Exemples de demandes */
.exemples-doc { margin: 12px 0 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.exemple-doc { min-width: 0; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px 18px 6px; background: #fff; }
.exemple-doc h3 { margin-top: 0; }
.exemple-doc blockquote {
  margin: 0 0 10px; padding: 10px 14px; border-left: 3px solid var(--green); background: var(--green-tint);
  border-radius: 0 8px 8px 0; color: var(--ink); font-size: 15.5px;
}

/* Questions fréquentes */
.faq dt { margin: 16px 0 4px; font-weight: 700; color: var(--ink); font-size: 15.5px; }
.faq dd { margin: 0 0 8px; color: var(--ink-2); font-size: 15.5px; line-height: 1.6; }

@media (max-width: 720px) {
  .doc-appel { padding: 16px; }
  .code pre { font-size: 12.5px; padding: 42px 14px 14px; }
  .texte ol.etapes > li { padding-left: 40px; }
}

@media print {
  .code__copier, .doc-nav { display: none; }
  .code pre { background: #f4f4f4; color: #000; }
}
