/* partner_docs.css — Habillage du Markdown de la documentation API
   (/partenaire/documentation, cf. partner_docs.py). Reprend la charte du
   reste de l'appli plutôt qu'un style de doc générique : mêmes couleurs
   (#0d1117/#161b22/#30363d/#e6edf3/#8b949e/#ff5b47), même motif "carte"
   que .team-pilot-row/.menu-card (fond #161b22, bordure #30363d,
   ombre légère, survol qui tire vers l'accent), même style de lien de nav
   que .home-sidebar-link (fond accent en survol, léger décalage). h1/h2/h3
   héritent déjà de la police Barlow Condensed posée globalement (cf.
   style.css:17), pas besoin de la redéclarer ici. */

.partner-docs-markdown h1 {
    font-size: 26px;
    margin: 0 0 18px;
    color: #e6edf3;
    border-bottom: 1px solid #30363d;
    padding-bottom: 14px;
}

.partner-docs-markdown h2 {
    font-size: 19px;
    margin: 40px 0 14px;
    color: #e6edf3;
    border-bottom: 1px solid #30363d;
    padding-bottom: 8px;
}

.partner-docs-markdown h3 {
    font-size: 15px;
    margin: 24px 0 8px;
    color: #ff5b47;
}

.partner-docs-markdown p,
.partner-docs-markdown li {
    color: #8b949e;
    line-height: 1.65;
    font-size: 13.5px;
}

.partner-docs-markdown strong {
    color: #e6edf3;
}

.partner-docs-markdown a {
    color: #ff5b47;
    text-decoration: none;
    transition: color 0.15s;
}

.partner-docs-markdown a:hover {
    text-decoration: underline;
}

.partner-docs-markdown ul,
.partner-docs-markdown ol {
    margin: 8px 0 14px;
    padding-left: 22px;
}

.partner-docs-markdown li {
    margin-bottom: 6px;
}

/* Sommaire : même motif que la nav latérale (.home-sidebar-link) - fond
   teinté accent au survol + léger décalage, pas une puce de liste. */
.partner-docs-markdown ul:first-of-type {
    list-style: none;
    padding-left: 0;
    margin: 4px 0 8px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.partner-docs-markdown ul:first-of-type li {
    margin-bottom: 0;
}
.partner-docs-markdown ul:first-of-type a {
    display: block;
    padding: 8px 12px;
    border-radius: 8px;
    color: #e6edf3;
    font-weight: 600;
    font-size: 13.5px;
    transition: background 0.15s, padding-left 0.15s;
}
.partner-docs-markdown ul:first-of-type a:hover {
    background: rgba(255, 91, 71, 0.10);
    padding-left: 16px;
    text-decoration: none;
}

/* Code inline (noms de champs entre backticks) — "chip" surélevé du fond
   de page, même logique que les badges/pastilles utilisés ailleurs. */
.partner-docs-markdown code {
    background-color: #161b22;
    border: 1px solid #30363d;
    border-radius: 4px;
    padding: 2px 6px;
    font-family: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
    font-size: 12px;
    color: #e6edf3;
    white-space: nowrap;
}

/* Blocs de code (exemples curl/JSON) — motif carte (.team-pilot-row) :
   fond #161b22, bordure #30363d, ombre légère, coins arrondis 12px. */
.partner-docs-markdown pre {
    background-color: #161b22;
    border: 1px solid #30363d;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    padding: 16px 18px;
    overflow-x: auto;
    margin: 14px 0 18px;
}

.partner-docs-markdown pre code {
    background: none;
    border: none;
    padding: 0;
    white-space: pre;
    font-size: 12.5px;
    line-height: 1.6;
    color: #e6edf3;
}

/* Tables (conventions, endpoints, codes d'erreur) — même carte, coins
   arrondis reportés sur le conteneur pour rester nets malgré l'overflow-x. */
.partner-docs-markdown table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12.5px;
    display: block;
    overflow-x: auto;
    margin: 14px 0 20px;
    border: 1px solid #30363d;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.partner-docs-markdown th {
    text-align: left;
    padding: 10px 14px;
    color: #8b949e;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.04em;
    background: #0d1117;
    border-bottom: 1px solid #30363d;
    white-space: nowrap;
}

.partner-docs-markdown td {
    padding: 9px 14px;
    border-bottom: 1px solid #21262d;
    color: #e6edf3;
    vertical-align: top;
}

.partner-docs-markdown tr:last-child td {
    border-bottom: none;
}

.partner-docs-markdown tbody tr {
    transition: background 0.15s;
}

.partner-docs-markdown tbody tr:hover td {
    background-color: rgba(255, 91, 71, 0.06);
}

.partner-docs-markdown td:first-child,
.partner-docs-markdown td:nth-child(2) {
    font-family: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
    font-size: 12px;
    white-space: nowrap;
}

.partner-docs-markdown hr {
    border: none;
    border-top: 1px solid #30363d;
    margin: 36px 0;
}
