/* Documentation développeur */
body.docs { background: #fff; }
.docs-top { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 14px; height: 56px; padding: 0 24px; background: rgba(255, 255, 255, .9); backdrop-filter: saturate(160%) blur(10px); border-bottom: 1px solid var(--line); }
.docs-tag { font-size: 12.5px; font-weight: 600; color: var(--accent-ink); background: var(--accent-soft); padding: 3px 9px; border-radius: 999px; }
.docs-top-links { margin-left: auto; display: flex; align-items: center; gap: 18px; font-weight: 500; }
.docs-top-links a:not(.btn) { color: var(--ink-2); }
.docs-shell { display: grid; grid-template-columns: 248px minmax(0, 1fr); }
.docs-nav { position: sticky; top: 56px; height: calc(100vh - 56px); overflow-y: auto; padding: 22px 14px 40px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 1px; }
.docs-nav-group { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; padding: 16px 10px 6px; }
.docs-nav-group:first-child { padding-top: 0; }
.docs-nav a { padding: 6px 10px; border-radius: 7px; color: var(--ink-2); font-weight: 500; }
.docs-nav a:hover { background: var(--bg); color: var(--ink); text-decoration: none; }
.docs-nav a.on { background: var(--accent-soft); color: var(--accent-ink); }
.docs-main { max-width: none; margin: 0; padding: 0 0 80px; min-width: 0; }
.doc-intro { padding: 40px 48px 8px; max-width: 760px; }
.doc-crumb { font-size: 12.5px; font-weight: 600; color: var(--accent); margin-bottom: 8px; }
.doc-intro h1 { font-size: 32px; letter-spacing: -0.03em; margin-bottom: 12px; }
.doc-lead { font-size: 16.5px; color: var(--ink-2); line-height: 1.6; }
.doc-toc { display: grid; gap: 2px; margin-top: 20px; border: 1px solid var(--line); border-radius: var(--radius); padding: 8px; }
.doc-toc a { display: flex; align-items: center; gap: 12px; padding: 6px 8px; border-radius: 6px; color: var(--ink); }
.doc-toc a:hover { background: var(--bg); text-decoration: none; }
.doc-toc code, .doc-route code { background: none; border: 0; padding: 0; font-size: 13px; }
.doc-block { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; padding: 36px 48px; border-top: 1px solid var(--line); margin-top: 28px; scroll-margin-top: 56px; }
.doc-block.no-code { grid-template-columns: minmax(0, 760px); }
.doc-text { font-size: 15px; line-height: 1.65; color: var(--ink-2); min-width: 0; }
.doc-text h2 { font-size: 20px; letter-spacing: -0.015em; margin-bottom: 10px; }
.doc-text h2 a { color: var(--ink); }
.doc-text h3 { font-size: 12px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); margin: 24px 0 4px; }
.doc-text ul { padding-left: 20px; margin: 0 0 12px; }
.doc-text li { margin-bottom: 6px; }
.doc-route { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.verb { display: inline-block; font-family: var(--mono); font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 5px; letter-spacing: .03em; min-width: 46px; text-align: center; }
.verb-get { background: #e3f1fd; color: #0b5cad; }
.verb-post { background: var(--ok-soft); color: var(--ok); }
.verb-delete { background: var(--bad-soft); color: var(--bad); }
.doc-params { margin: 0; }
.doc-params dt { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; padding-top: 12px; border-top: 1px solid var(--line); margin-top: 12px; }
.doc-params dt code { font-weight: 600; color: var(--ink); background: none; border: 0; padding: 0; font-size: 13.5px; }
.doc-params .type { font-size: 12.5px; color: var(--muted); }
.doc-params .req { font-size: 11px; font-weight: 600; color: #b25e09; text-transform: uppercase; letter-spacing: .04em; }
.doc-params dd { margin: 4px 0 0; font-size: 14px; }
.doc-table { width: 100%; font-size: 14px; margin: 6px 0 12px; }
.doc-table td { padding: 9px 12px 9px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.doc-table td:first-child { white-space: nowrap; width: 1%; padding-right: 20px; }
.doc-table tr:hover td { background: none; }
.doc-code { position: sticky; top: 76px; align-self: start; display: grid; gap: 14px; min-width: 0; }
.code-card { background: #171c2b; border-radius: 10px; overflow: hidden; box-shadow: var(--shadow-sm); }
.code-card.response { background: #f6f7fb; border: 1px solid var(--line); box-shadow: none; }
.code-head { display: flex; align-items: center; gap: 4px; padding: 6px 8px; background: #20263a; font-size: 12.5px; color: #9aa4bd; }
.code-card.response .code-head { background: #eef0f6; color: var(--muted); padding: 8px 14px; font-weight: 600; }
.code-head button { background: none; border: 0; color: #9aa4bd; font: inherit; font-weight: 600; padding: 5px 10px; border-radius: 6px; cursor: pointer; }
.code-head button:hover { color: #fff; }
.code-head button.copy { margin-left: auto; font-weight: 500; }
html[data-lang=curl] .code-head button[data-set-lang=curl], html[data-lang=node] .code-head button[data-set-lang=node], .code-head button.only { background: #2e3650; color: #fff; }
.code-card pre { margin: 0; padding: 14px 16px; overflow-x: auto; font-family: var(--mono); font-size: 12.5px; line-height: 1.6; color: #dfe4f1; display: none; max-height: 460px; }
.code-card pre code { background: none; border: 0; padding: 0; font-size: inherit; color: inherit; }
.code-card.response pre { color: #2b3350; }
html[data-lang=curl] .code-card pre[data-lang=curl], html[data-lang=node] .code-card pre[data-lang=node], .code-card pre.always { display: block; }
.doc-foot { display: flex; justify-content: space-between; padding: 28px 48px 0; border-top: 1px solid var(--line); margin-top: 28px; font-weight: 600; }
@media (max-width: 1100px) { .doc-block { grid-template-columns: minmax(0, 1fr); gap: 20px; } .doc-code { position: static; } }
@media (max-width: 760px) {
  .docs-shell { grid-template-columns: 1fr; }
  .docs-nav { position: static; height: auto; flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); padding: 10px; }
  .docs-nav-group { display: none; }
  .docs-nav a { white-space: nowrap; }
  .doc-intro, .doc-block, .doc-foot { padding-left: 18px; padding-right: 18px; }
  .docs-top-links a:not(.btn) { display: none; }
}

/* Consigne d'intégration : un long texte à copier d'un bloc */
.code-card.brief pre { white-space: pre-wrap; overflow-wrap: anywhere; max-height: 620px; }
.code-card.brief .code-head span { padding: 8px 14px; color: #aab3cc; font-weight: 600; }
