/* Jolv API documentation — thème Sauge (vert Jolv, neutres teintés), DM Sans / JetBrains Mono. */
:root {
  --bg: #f6f8f7; --bg-elev: #ffffff; --bg-muted: #edf1ef; --bg-zebra: #f3f6f4;
  --fg: #13201b; --fg-2: #3f4e47; --muted: #5b6b64; --line: #d9e2dd; --line-strong: #b9c7c0;
  --primary: #17683c; --primary-hover: #145a34; --primary-soft: rgba(23, 104, 60, 0.10); --on-primary: #ffffff;
  --warning: #b45309; --warning-soft: rgba(245, 158, 11, 0.12); --danger: #b91c1c; --danger-soft: rgba(220, 38, 38, 0.10);
  --code-bg: #0f1714; --code-fg: #e4ebe8; --kbd-bg: #edf1ef;
  --teal: #2dd4bf;
  --font: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-serif: "DM Serif Display", Georgia, serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --radius: 10px; --radius-sm: 8px; --radius-xs: 6px;
  --topbar-h: 60px; --sidebar-w: 272px; --toc-w: 220px; --content-w: 760px;
  --shadow: 0 10px 40px rgba(10, 30, 20, 0.14);
  color-scheme: light;
}
:root[data-theme="dark"] { color-scheme: dark; }
:root[data-theme="dark"], :root[data-theme="system"] { }
@media (prefers-color-scheme: dark) { :root[data-theme="system"] { color-scheme: dark; } }
:root[data-theme="dark"], :root[data-theme="system"].dark-auto {
  --bg: #0f1714; --bg-elev: #17221e; --bg-muted: #1e2b26; --bg-zebra: #141f1a;
  --fg: #e4ebe8; --fg-2: #b4c0ba; --muted: #95a39d; --line: #2a3833; --line-strong: #3b4b44;
  --primary: #33ae81; --primary-hover: #2c9a72; --primary-soft: rgba(51, 174, 129, 0.14); --on-primary: #0f1714;
  --warning: #f59e0b; --warning-soft: rgba(245, 158, 11, 0.14); --danger: #f87171; --danger-soft: rgba(248, 113, 113, 0.12);
  --code-bg: #0a100d; --code-fg: #e4ebe8; --kbd-bg: #1e2b26;
  --shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 15px/1.6 var(--font); font-feature-settings: "ss01"; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
code, kbd, pre { font-family: var(--font-mono); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--bg-elev); padding: 8px 12px; border-radius: var(--radius-xs); }
.skip:focus { left: 8px; z-index: 100; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

/* Barre supérieure */
.topbar { position: sticky; top: 0; z-index: 40; height: var(--topbar-h); display: flex; align-items: center; gap: 16px; padding: 0 20px; background: color-mix(in srgb, var(--bg-elev) 86%, transparent); backdrop-filter: saturate(180%) blur(12px); -webkit-backdrop-filter: saturate(180%) blur(12px); border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: baseline; gap: 8px; color: var(--fg); }
.brand:hover { text-decoration: none; }
.wordmark { font-family: var(--font-serif); font-size: 26px; line-height: 1; letter-spacing: -0.01em; }
.wordmark .dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--teal); margin-left: 2px; vertical-align: baseline; }
.brand-suffix { font-size: 13px; font-weight: 500; color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; }
.search-trigger { display: inline-flex; align-items: center; gap: 10px; height: 36px; padding: 0 12px; min-width: 260px; border: 1px solid var(--line); background: var(--bg); color: var(--muted); border-radius: var(--radius-sm); font: inherit; font-size: 13px; cursor: text; }
.search-trigger:hover { border-color: var(--line-strong); }
.search-trigger span { flex: 1; text-align: left; }
kbd { font-size: 11px; padding: 1px 6px; border-radius: 5px; background: var(--kbd-bg); border: 1px solid var(--line); color: var(--muted); }
.topnav { display: flex; gap: 4px; margin-left: 8px; }
.topnav a { padding: 8px 12px; border-radius: var(--radius-xs); color: var(--fg-2); font-weight: 500; font-size: 14px; }
.topnav a:hover { background: var(--bg-muted); text-decoration: none; }
.topnav a.is-active { color: var(--primary); background: var(--primary-soft); }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.top-link { color: var(--fg-2); font-weight: 500; font-size: 14px; }
.theme-toggle, .menu-toggle { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border: 1px solid var(--line); background: var(--bg-elev); color: var(--fg-2); border-radius: var(--radius-sm); cursor: pointer; }
.theme-toggle:hover, .menu-toggle:hover { border-color: var(--line-strong); color: var(--fg); }
.menu-toggle { display: none; }
.icon-moon { display: none; }
:root[data-theme="dark"] .icon-sun, :root[data-theme="system"].dark-auto .icon-sun { display: none; }
:root[data-theme="dark"] .icon-moon, :root[data-theme="system"].dark-auto .icon-moon { display: inline; }
.btn-primary { display: inline-flex; align-items: center; height: 36px; padding: 0 14px; border-radius: var(--radius-sm); background: var(--primary); color: var(--on-primary); font-weight: 500; font-size: 14px; }
.btn-primary:hover { background: var(--primary-hover); text-decoration: none; }

/* Disposition */
.layout { display: grid; grid-template-columns: var(--sidebar-w) minmax(0, 1fr) var(--toc-w); gap: 0; max-width: 1440px; margin: 0 auto; }
.is-wide .layout { grid-template-columns: var(--sidebar-w) minmax(0, 1fr); }
.sidebar { position: sticky; top: var(--topbar-h); height: calc(100vh - var(--topbar-h)); overflow-y: auto; padding: 24px 16px 40px 20px; border-right: 1px solid var(--line); font-size: 14px; }
.nav-group { margin-bottom: 20px; }
.nav-group-title, .nav-divider { font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin: 0 0 6px 10px; }
.nav-divider { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); }
.nav-group ul { list-style: none; margin: 0; padding: 0; }
.nav-group li a { display: block; padding: 6px 10px; border-radius: var(--radius-xs); color: var(--fg-2); line-height: 1.4; }
.nav-group li a:hover { background: var(--bg-muted); color: var(--fg); text-decoration: none; }
.nav-group li a.is-active { background: var(--primary-soft); color: var(--primary); font-weight: 500; }
.content { padding: 40px 48px 64px; min-width: 0; }
.is-wide .content { padding: 40px 40px 64px; }
.toc { position: sticky; top: var(--topbar-h); height: calc(100vh - var(--topbar-h)); overflow-y: auto; padding: 32px 20px 40px 8px; font-size: 13px; }
.toc-title { font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.toc ul { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
.toc li a { display: block; padding: 4px 12px; color: var(--muted); margin-left: -1px; border-left: 1px solid transparent; }
.toc li.toc-l3 a { padding-left: 24px; }
.toc li a:hover { color: var(--fg); text-decoration: none; }
.toc li a.is-active { color: var(--primary); border-left-color: var(--primary); }

/* Prose */
.prose { max-width: var(--content-w); }
.page-header { margin-bottom: 28px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.prose h1 { font-size: 32px; line-height: 1.2; letter-spacing: -0.02em; font-weight: 600; margin: 0 0 8px; }
.lead { font-size: 17px; color: var(--muted); margin: 0; line-height: 1.5; }
.prose h2 { font-size: 22px; letter-spacing: -0.015em; font-weight: 600; margin: 44px 0 14px; padding-top: 4px; }
.prose h3 { font-size: 17px; font-weight: 600; margin: 30px 0 10px; }
.prose h2 .anchor, .prose h3 .anchor { position: absolute; margin-left: -1.1em; color: var(--line-strong); opacity: 0; font-weight: 400; }
.prose h2, .prose h3 { position: relative; }
.prose h2:hover .anchor, .prose h3:hover .anchor { opacity: 1; text-decoration: none; }
.prose p { margin: 0 0 14px; }
.prose ul, .prose ol { padding-left: 22px; margin: 0 0 14px; }
.prose li { margin: 4px 0; }
.prose li > p { margin: 0 0 6px; }
.prose strong { font-weight: 600; }
.prose em { font-style: italic; }
.prose :not(pre) > code { font-size: 0.86em; padding: 1px 6px; border-radius: 5px; background: var(--bg-muted); border: 1px solid var(--line); color: var(--fg); white-space: nowrap; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 32px 0; }
.table-wrap { overflow-x: auto; margin: 0 0 18px; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.prose table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.prose th { text-align: left; font-weight: 500; color: var(--muted); background: var(--bg-elev); padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.prose td { padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose tbody tr:nth-child(even) td { background: var(--bg-zebra); }
.prose tbody tr:last-child td { border-bottom: 0; }
.prose td code { white-space: nowrap; }

/* Code */
.code-block { margin: 0 0 18px; border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--line); background: var(--code-bg); color: var(--code-fg); }
.code-block figcaption { display: flex; align-items: center; justify-content: space-between; padding: 8px 12px; font-size: 12px; color: #95a39d; background: rgba(255, 255, 255, 0.04); border-bottom: 1px solid rgba(255, 255, 255, 0.08); font-family: var(--font); }
.code-block pre { margin: 0; padding: 14px 16px; overflow-x: auto; font-size: 13px; line-height: 1.6; }
.code-block code { background: none; border: 0; padding: 0; white-space: pre; }
.copy { font: inherit; font-size: 12px; color: #95a39d; background: transparent; border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 5px; padding: 2px 8px; cursor: pointer; }
.copy:hover { color: #e4ebe8; border-color: rgba(255, 255, 255, 0.3); }
.copy.is-done { color: #33ae81; border-color: #33ae81; }
.code-group { margin: 0 0 18px; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; background: var(--code-bg); }
.code-group .tab-list { display: flex; gap: 2px; padding: 6px 8px 0; background: rgba(255, 255, 255, 0.04); border-bottom: 1px solid rgba(255, 255, 255, 0.08); overflow-x: auto; }
.code-group .tab { font: inherit; font-size: 12.5px; font-weight: 500; color: #95a39d; background: transparent; border: 0; border-bottom: 2px solid transparent; padding: 6px 10px 8px; cursor: pointer; white-space: nowrap; }
.code-group .tab:hover { color: #e4ebe8; }
.code-group .tab.is-active { color: #e4ebe8; border-bottom-color: #33ae81; }
.code-group .tab-panel { display: none; }
.code-group .tab-panel.is-active { display: block; }
.code-group .code-block { margin: 0; border: 0; border-radius: 0; }
.code-group .code-block figcaption span { display: none; }
.code-group .code-block figcaption { justify-content: flex-end; background: transparent; border: 0; padding: 6px 8px 0; }
.code-group .code-block pre { padding-top: 4px; }
/* highlight.js — palette sobre */
.hljs { color: #e4ebe8; }
.hljs-comment, .hljs-quote { color: #7d8c86; font-style: italic; }
.hljs-keyword, .hljs-selector-tag, .hljs-built_in { color: #8fd3b5; }
.hljs-string, .hljs-attr { color: #c9e3a9; }
.hljs-number, .hljs-literal { color: #f0c987; }
.hljs-title, .hljs-section, .hljs-name { color: #9fd6ff; }
.hljs-variable, .hljs-template-variable { color: #e4ebe8; }
.hljs-meta { color: #95a39d; }

/* Composants */
.callout { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; align-items: start; margin: 0 0 18px; padding: 12px 16px; border: 1px solid var(--line); border-left-width: 3px; border-radius: var(--radius-sm); background: var(--bg-elev); }
.callout-label { font-size: 12px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--primary); padding-top: 3px; }
.callout-body p:last-child { margin-bottom: 0; }
.callout-note, .callout-info, .callout-tip { border-left-color: var(--primary); }
.callout-warning { border-left-color: var(--warning); background: var(--warning-soft); }
.callout-warning .callout-label { color: var(--warning); }
.steps { list-style: none; counter-reset: step; padding: 0; margin: 0 0 24px; }
.step { position: relative; padding: 0 0 24px 44px; border-left: 1px solid var(--line); margin-left: 15px; }
.step:last-child { border-left-color: transparent; padding-bottom: 0; }
.step::before { counter-increment: step; content: counter(step); position: absolute; left: -16px; top: -2px; width: 30px; height: 30px; border-radius: 50%; background: var(--bg-elev); border: 1px solid var(--line-strong); color: var(--fg); font-size: 13px; font-weight: 600; display: flex; align-items: center; justify-content: center; }
.step-title { font-weight: 600; font-size: 16px; margin: 0 0 8px; line-height: 30px; margin-top: -2px; }
.step-body > :last-child { margin-bottom: 0; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin: 0 0 24px; }
.card { display: block; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-elev); color: var(--fg); transition: border-color 0.15s; }
.card:hover { border-color: var(--primary); text-decoration: none; }
.card-title { font-weight: 600; margin-bottom: 4px; }
.card-desc { color: var(--muted); font-size: 14px; }
.accordion { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg-elev); margin: 0 0 10px; }
.accordion summary { cursor: pointer; padding: 12px 16px; font-weight: 500; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: "+"; color: var(--muted); font-size: 18px; }
.accordion[open] summary::after { content: "–"; }
.accordion-body { padding: 0 16px 14px; color: var(--fg-2); }
.accordion-body p:last-child { margin-bottom: 0; }
.update { display: grid; grid-template-columns: 160px 1fr; gap: 24px; padding: 24px 0; border-top: 1px solid var(--line); }
.update:first-of-type { border-top: 0; }
.update-meta { display: flex; flex-direction: column; gap: 4px; }
.update-label { display: inline-block; width: fit-content; font-size: 12px; font-weight: 600; color: var(--primary); background: var(--primary-soft); padding: 2px 10px; border-radius: 999px; }
.update-sub { font-size: 13px; color: var(--muted); font-family: var(--font-mono); }
.update-body > :last-child { margin-bottom: 0; }

/* Pager, pied */
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; max-width: var(--content-w); margin: 48px 0 0; }
.pager a { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-elev); color: var(--fg); }
.pager a:hover { border-color: var(--primary); text-decoration: none; }
.pager a span { font-size: 12px; color: var(--muted); }
.pager-next { text-align: right; align-items: flex-end; }
.foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; max-width: var(--content-w); margin: 40px 0 0; padding-top: 16px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }
.is-wide .foot { display: none; }

/* Statut, « Use Jolv in », prompt d'installation */
.status-line { display: flex; align-items: center; gap: 8px; margin: 18px 0 10px; font-size: 14px; }
.status-label { color: var(--muted); }
.status-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--line-strong); }
.status-line.is-ok .status-dot { background: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.status-line.is-down .status-dot { background: var(--danger); }
.status-text { font-weight: 500; }
.use-in { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 26px; }
.use-in-label { color: var(--muted); font-size: 14px; margin-right: 4px; }
.chip { display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg-elev); color: var(--fg); font-size: 13.5px; font-weight: 500; }
.chip:hover { border-color: var(--primary); text-decoration: none; }
.chip img { width: 14px; height: 14px; display: block; }
:root[data-theme="dark"] .chip img.mono, :root[data-theme="system"].dark-auto .chip img.mono { filter: invert(1) brightness(1.2); }
.chip-glyph { font-family: var(--font-mono); font-size: 11px; color: var(--muted); }
.chip-button { font: inherit; font-size: 13.5px; font-weight: 500; cursor: pointer; }
.chip-button.is-done { border-color: var(--primary); color: var(--primary); }
.agent-prompt { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin: 20px 0 10px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-elev); }
.agent-prompt-title { font-weight: 600; }
.agent-prompt-desc { font-size: 13.5px; color: var(--muted); margin-top: 2px; }
.agent-prompt .btn-primary { border: 0; cursor: pointer; font: inherit; font-weight: 500; font-size: 14px; }
.agent-prompt .btn-primary.is-done { background: var(--primary-hover); }

/* Référence API */
.muted { color: var(--muted); }
.method { display: inline-block; font-family: var(--font-mono); font-size: 11px; font-weight: 600; letter-spacing: 0.04em; color: var(--primary); background: var(--primary-soft); border-radius: 5px; padding: 2px 7px; }
.crumb { font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.crumb span { margin: 0 6px; }
.endpoint-path { display: flex; align-items: center; gap: 10px; margin-top: 14px; padding: 8px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg-elev); font-size: 14px; }
.endpoint-path code { font-size: 13.5px; }
.copy-inline { margin-left: auto; color: var(--muted); border-color: var(--line); }
.copy-inline:hover { color: var(--fg); border-color: var(--line-strong); }
.endpoint-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 460px); gap: 40px; align-items: start; }
.endpoint-main h2:first-child { margin-top: 8px; }
.endpoint-side { position: sticky; top: calc(var(--topbar-h) + 24px); display: flex; flex-direction: column; gap: 18px; }
.side-block { min-width: 0; }
.side-title { font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.endpoint-side .code-group, .endpoint-side .code-block { margin: 0; }
.endpoint-side .code-block pre { max-height: 420px; overflow: auto; }
.fields { list-style: none; margin: 0 0 20px; padding: 0; border-top: 1px solid var(--line); }
.field { padding: 12px 0; border-bottom: 1px solid var(--line); }
.field-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.field-name { font-size: 13.5px; font-weight: 500; background: transparent !important; border: 0 !important; padding: 0 !important; }
.field-type { font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.field-req { font-size: 11px; font-weight: 600; color: var(--danger); text-transform: lowercase; }
.field-opt { font-size: 11px; color: var(--muted); }
.field-desc { margin-top: 4px; color: var(--fg-2); font-size: 14px; }
.field-enum { margin-top: 4px; font-size: 13px; color: var(--muted); }
.field-child { margin-top: 8px; }
.field-child summary { cursor: pointer; font-size: 12.5px; color: var(--primary); list-style: none; }
.field-child summary::-webkit-details-marker { display: none; }
.field-child summary::before { content: "+ "; }
.field-child[open] summary::before { content: "– "; }
.field-child .fields { margin: 8px 0 0 14px; border-top: 0; border-left: 1px solid var(--line); padding-left: 14px; }
.field-child .field:last-child { border-bottom: 0; }
.try-it { border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-elev); padding: 14px 16px; }
.try-auth { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; font-size: 12.5px; }
.btn-outline { display: inline-flex; align-items: center; height: 32px; padding: 0 12px; border: 1px solid var(--primary); border-radius: var(--radius-sm); background: transparent; color: var(--primary); font: inherit; font-size: 13px; font-weight: 500; cursor: pointer; }
.btn-outline:hover { background: var(--primary-soft); }
.try-auth.is-signed .sign-in { display: none; }
.try-auth .sign-out { display: none; }
.try-auth.is-signed .sign-out { display: inline-flex; }
.try-auth.is-signed .try-auth-state { color: var(--primary); }
.try-form { display: flex; flex-direction: column; gap: 10px; }
.try-field { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; color: var(--muted); }
.try-field em { font-style: normal; color: var(--danger); }
.try-field input, .try-field select { font: inherit; font-size: 13px; color: var(--fg); background: var(--bg); border: 1px solid var(--line-strong); border-radius: var(--radius-xs); padding: 7px 10px; }
.try-field input:focus, .try-field select:focus { outline: 2px solid var(--primary); outline-offset: 1px; border-color: transparent; }
.btn-block { justify-content: center; border: 0; cursor: pointer; font: inherit; font-weight: 500; font-size: 14px; }
.btn-block[disabled] { opacity: 0.6; cursor: wait; }
.try-status { margin-top: 10px; font-size: 13px; font-family: var(--font-mono); }
.try-status.is-ok { color: var(--primary); }
.try-status.is-err { color: var(--danger); }
.try-output { margin: 8px 0 0; max-height: 360px; overflow: auto; background: var(--code-bg); color: var(--code-fg); border-radius: var(--radius-sm); padding: 12px; font-size: 12.5px; line-height: 1.5; white-space: pre; }
.try-note { margin: 10px 0 0; font-size: 12px; color: var(--muted); }
.ref-group { margin-top: 36px; }
.ref-group h2 { margin-bottom: 4px; }
.ep-list { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; margin-top: 12px; }
.ep-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px 14px; color: var(--fg); border-bottom: 1px solid var(--line); background: var(--bg-elev); }
.ep-row:last-child { border-bottom: 0; }
.ep-row:hover { background: var(--bg-muted); text-decoration: none; }
.ep-row code { font-size: 13px; background: transparent !important; border: 0 !important; padding: 0 !important; }
.ep-title { font-size: 13px; color: var(--muted); text-align: right; }
@media (max-width: 1180px) { .endpoint-grid { grid-template-columns: minmax(0, 1fr); } .endpoint-side { position: static; } }
@media (max-width: 600px) { .ep-row { grid-template-columns: auto minmax(0, 1fr); } .ep-title { grid-column: 2; text-align: left; } }

/* Recherche */
.search-modal[hidden] { display: none; }
.search-modal { position: fixed; inset: 0; z-index: 60; display: flex; align-items: flex-start; justify-content: center; padding: 12vh 16px 0; }
.search-backdrop { position: absolute; inset: 0; background: rgba(10, 20, 15, 0.45); backdrop-filter: blur(2px); }
.search-box { position: relative; width: 100%; max-width: 640px; background: var(--bg-elev); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); overflow: hidden; }
#search-input { width: 100%; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--fg); padding: 16px 18px; font: inherit; font-size: 16px; outline: none; }
.search-results { list-style: none; margin: 0; padding: 8px; max-height: 50vh; overflow-y: auto; }
.search-results li a { display: block; padding: 10px 12px; border-radius: var(--radius-sm); color: var(--fg); }
.search-results li a:hover, .search-results li.is-selected a { background: var(--primary-soft); text-decoration: none; }
.search-results .r-title { font-weight: 500; }
.search-results .r-crumb { font-size: 12px; color: var(--muted); }
.search-results .r-snippet { font-size: 13px; color: var(--fg-2); margin-top: 2px; }
.search-results mark { background: transparent; color: var(--primary); font-weight: 600; }
.search-empty { padding: 20px; color: var(--muted); text-align: center; }
.search-hint { display: flex; gap: 10px; padding: 8px 14px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }

/* Responsive */
@media (max-width: 1180px) {
  .layout { grid-template-columns: var(--sidebar-w) minmax(0, 1fr); }
  .toc { display: none; }
}
@media (max-width: 900px) {
  .layout, .is-wide .layout { grid-template-columns: minmax(0, 1fr); }
  .prose :not(pre) > code { white-space: normal; overflow-wrap: anywhere; }
  .prose h1, .prose h2, .prose h3, .prose p, .prose li { overflow-wrap: anywhere; }
  .endpoint-path { flex-wrap: wrap; }
  .endpoint-path code { overflow-wrap: anywhere; }
  .endpoint-grid { gap: 28px; }
  .endpoint-side .code-block pre { max-height: 360px; }
  .try-it { padding: 12px; }
  .pager { grid-template-columns: 1fr; }
  .step { padding-left: 34px; margin-left: 12px; }
  .step::before { left: -15px; }
  .callout { padding: 12px 12px 12px 14px; }
  .menu-toggle { display: inline-flex; }
  .sidebar { position: fixed; left: 0; top: var(--topbar-h); width: min(320px, 86vw); height: calc(100vh - var(--topbar-h)); background: var(--bg-elev); transform: translateX(-100%); transition: transform 0.2s; z-index: 50; box-shadow: var(--shadow); }
  .sidebar.is-open { transform: none; }
  .content { padding: 28px 16px 48px; }
  .reference-intro { padding: 24px 16px 4px; }
  .topnav { display: none; }
  .search-trigger { min-width: 0; flex: 1; }
  .search-trigger span, .search-trigger kbd, .top-link { display: none; }
  .brand-suffix { display: none; }
  .update { grid-template-columns: 1fr; gap: 8px; }
}
@media (max-width: 480px) {
  .btn-primary { display: none; }
  .prose h1 { font-size: 26px; }
  .content { padding: 24px 14px 40px; }
  .code-block pre { padding: 12px; font-size: 12.5px; }
  .code-group .tab { padding: 6px 8px 8px; }
  .search-modal { padding: 12px; }
  .search-box { max-width: 100%; }
  .foot { flex-direction: column; gap: 8px; }
}
