@import url("/assets/wordmark.css");

:root {
  color-scheme: light;
  --docs-header-height: 99px;
  --docs-footer-height: 32px;
  --surface: #fff;
  --surface-subtle: #f7f7f7;
  --surface-hover: #efefef;
  --text: #262626;
  --text-muted: #666;
  --border: #ddd;
  --accent: #262626;
  --accent-subtle: #ececec;
  --action: #2563eb;
  --action-hover: #1d4ed8;
  --action-text: #fff;
  --info: #1e40af;
  --focus: #2563eb;
  --code: #f4f4f4;
  --overlay: rgb(24 24 24 / 35%);
  accent-color: var(--accent);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --surface: #1b1b1b;
  --surface-subtle: #242424;
  --surface-hover: #303030;
  --text: #e8e8e8;
  --text-muted: #aaa;
  --border: #444;
  --accent: #e8e8e8;
  --accent-subtle: #323232;
  --info: #93c5fd;
  --focus: #93c5fd;
  --code: #252525;
  --overlay: rgb(0 0 0 / 60%);
}
* {
  box-sizing: border-box;
}
::selection {
  background: var(--accent);
  color: var(--surface);
}
body {
  margin: 0;
  background: var(--surface);
  color: var(--text);
  font-size: 14px;
  line-height: 1.6;
}
p {
  margin: 0 0 16px;
}
button,
input {
  font: inherit;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  color: inherit;
}
button:disabled {
  cursor: wait;
}
button:focus-visible,
a:focus-visible,
summary:focus-visible,
[tabindex="0"]:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}
input {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 5px;
  background: var(--surface);
  color: var(--text);
  padding: 10px 12px;
}
input:focus,
input:focus-visible {
  border-color: var(--focus);
  outline: none;
  box-shadow: none;
}
input::placeholder {
  color: var(--text-muted);
  opacity: 1;
}
input::-webkit-search-cancel-button {
  filter: grayscale(1);
}
button,
a,
input {
  transition:
    color 100ms ease,
    background-color 100ms ease,
    border-color 100ms ease;
}
button {
  border: 0;
  background: none;
}
button:hover {
  background: var(--surface-hover);
}
kbd {
  font:
    11px ui-monospace,
    SFMono-Regular,
    Consolas,
    monospace;
  color: var(--text-muted);
  white-space: nowrap;
}
.sticky-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--surface);
}
.site-header {
  height: 52px;
  padding: 8px;
  display: flex;
  align-items: center;
  gap: 36px;
}
.brand {
  display: flex;
  align-items: center;
  min-height: 36px;
  gap: 16px;
  font-family: var(--bracten-wordmark-font);
  font-size: var(--bracten-wordmark-size);
  font-weight: var(--bracten-wordmark-weight);
  letter-spacing: var(--bracten-wordmark-tracking);
  line-height: 1;
  white-space: nowrap;
}
.brand span {
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 450;
  letter-spacing: 0;
}
.search-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  width: 328px;
  padding: 8px 12px;
  margin-left: auto;
  background: var(--surface-subtle);
  color: var(--text-muted);
  border-radius: 5px;
  text-align: left;
  font-size: 12px;
}
.search-trigger kbd {
  padding: 2px 4px;
  background: var(--surface);
  border-radius: 3px;
}
.header-links {
  display: flex;
  align-items: center;
  gap: 23px;
  font-size: 12px;
  color: var(--text-muted);
}
.header-links a:hover,
.site-footer a:hover {
  color: var(--accent);
}
.theme-toggle {
  font-size: 12px;
  border-radius: 5px;
  padding: 6px 9px;
}
.audience-bar {
  display: flex;
  align-items: center;
  height: 47px;
  padding: 8px;
  border-bottom: 1px solid var(--border);
  gap: 20px;
}
.audience-bar nav {
  display: flex;
  height: 100%;
  align-items: stretch;
  gap: 26px;
}
.audience-bar :where(nav) a {
  display: flex;
  align-items: center;
  position: relative;
  font-size: 12px;
  color: var(--text-muted);
}
.audience-bar :where(nav) a[aria-current] {
  color: var(--accent);
  font-weight: 600;
}
.audience-bar :where(nav) a[aria-current]::after {
  content: "";
  height: 2px;
  position: absolute;
  bottom: -9px;
  inset-inline: 0;
  background: var(--accent);
}
.version {
  font-size: 11px;
  color: var(--text-muted);
  margin-left: auto;
}
.docs-frame {
  display: grid;
  grid-template-columns: 234px minmax(0, 780px) 184px;
  gap: 42px;
  max-width: 1490px;
  padding: 0 32px;
  margin: 0 auto;
  min-height: calc(100dvh - var(--docs-header-height) - var(--docs-footer-height));
}
.desktop-sidebar {
  position: sticky;
  top: var(--docs-header-height);
  height: calc(100dvh - var(--docs-header-height));
  overflow-y: auto;
  padding: 8px;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}
.chapter-nav {
  margin-inline: -8px;
}
.chapter-nav .nav-group + .nav-group {
  margin-top: 25px;
}
.chapter-nav h2 {
  margin: 0 0 8px 8px;
  font-size: 11px;
  font-weight: 650;
  color: var(--text);
}
.chapter-nav ul,
.toc ul,
.mobile-toc ul,
.search-results {
  padding: 0;
  margin: 0;
  list-style: none;
}
.chapter-nav a {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
  padding: 7px 8px;
  border-radius: 4px;
}
.chapter-nav a:hover {
  color: var(--text);
  background: var(--surface-subtle);
}
.chapter-nav a[aria-current="page"] {
  color: var(--accent);
  font-weight: 600;
  background: var(--accent-subtle);
}
.article-column {
  min-width: 0;
  padding: 35px 0 68px;
  outline: none;
}
.breadcrumbs {
  color: var(--text-muted);
  font-size: 11px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 26px;
}
.breadcrumbs a:hover {
  color: var(--accent);
}
.article-header {
  margin-bottom: 36px;
}
h1 {
  font-size: 31px;
  line-height: 1.22;
  font-weight: 650;
  letter-spacing: -1px;
  margin: 0 0 16px;
}
.article-header > p {
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-muted);
  margin: 0;
  max-width: 640px;
}
.prose-section {
  margin: 0 0 36px;
}
.prose-section h2 {
  font-size: 19px;
  line-height: 1.4;
  font-weight: 620;
  letter-spacing: -0.3px;
  margin: 0 0 15px;
  scroll-margin-top: calc(var(--docs-header-height) + 24px);
}
.prose-section :where(h2) a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.prose-section :where(h2 a) span {
  opacity: 0;
  color: var(--text-muted);
  font-size: 15px;
}
.prose-section :where(h2 a:hover) span,
.prose-section :where(h2 a:focus-visible) span {
  opacity: 1;
}
.prose-section p,
.prose-section li {
  font-size: 14px;
  line-height: 1.8;
}
.prose-section a:not(h2 a) {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: color-mix(in srgb, var(--accent) 35%, transparent);
}
.prose-section a:hover {
  text-decoration-color: var(--accent);
}
.prose-list,
.steps {
  padding-left: 24px;
  margin: 16px 0 20px;
}
.prose-list li,
.steps li {
  padding-left: 6px;
  margin-bottom: 10px;
}
.steps li::marker {
  color: var(--accent);
  font-size: 12px;
  font-weight: 650;
}
.note {
  margin: 24px 0;
  padding: 18px 20px;
  background: color-mix(in srgb, var(--info) 9%, var(--surface));
  color: var(--info);
  border-radius: 5px;
}
.note strong {
  display: block;
  font-size: 12px;
  font-weight: 650;
  margin-bottom: 5px;
  color: inherit;
}
.note p {
  font-size: 13px;
  margin: 0;
  line-height: 1.75;
}
code {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.88em;
  overflow-wrap: anywhere;
}
p code,
td code,
li code {
  background: var(--code);
  padding: 2px 4px;
  border-radius: 3px;
}
.code-block {
  background: var(--code);
  border-radius: 5px;
  margin: 18px 0 22px;
  overflow: hidden;
}
.code-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px 0 17px;
  color: var(--text-muted);
  font-size: 11px;
}
.code-bar button {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  min-height: 28px;
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 3px;
  color: var(--text-muted);
}
pre {
  padding: 12px 17px 19px;
  margin: 0;
  overflow: auto;
  tab-size: 2;
  font-size: 12px;
  line-height: 1.8;
}
pre code {
  font-size: inherit;
  overflow-wrap: normal;
}
.table-scroll {
  width: 100%;
  overflow: auto;
  margin: 20px 0;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  text-align: left;
}
th,
td {
  padding: 13px 12px 13px 0;
  vertical-align: top;
  border-bottom: 1px solid var(--border);
  line-height: 1.7;
}
thead th {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 600;
  padding-top: 0;
}
tbody th {
  font-weight: 550;
  width: 31%;
  min-width: 120px;
}
tbody tr:last-child > * {
  border-bottom: 0;
}
.toc {
  position: sticky;
  top: calc(var(--docs-header-height) + 35px);
  height: fit-content;
  padding: 8px;
}
.toc > p {
  margin: 0 0 11px;
  font-size: 11px;
  font-weight: 650;
}
.toc :where(li) a {
  display: block;
  padding: 6px 0;
  color: var(--text-muted);
  font-size: 11px;
  line-height: 1.6;
}
.toc :where(li) a:hover,
.toc :where(li) a[aria-current] {
  color: var(--accent);
}
.toc-source {
  display: block;
  font-size: 11px;
  margin-top: 28px;
  color: var(--text-muted);
}
.source-hint {
  display: block;
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 4px;
}
.article-meta {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: var(--text-muted);
  font-size: 11px;
  padding-top: 14px;
  margin-top: 34px;
}
.article-meta a:hover {
  color: var(--accent);
}
.pagination {
  margin-top: 30px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.pagination a {
  display: flex;
  flex-direction: column;
  padding: 15px 17px;
  background: var(--surface-subtle);
  border-radius: 4px;
}
.pagination a:hover {
  background: var(--surface-hover);
}
.pagination span {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 5px;
}
.pagination strong {
  font-size: 12px;
  font-weight: 550;
}
.pagination .next-page {
  text-align: right;
}
.site-footer {
  width: 100%;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: var(--text-muted);
  font-size: 10px;
}
.site-footer nav {
  display: flex;
  align-items: center;
  gap: 23px;
  flex-wrap: wrap;
}
.mobile-menu-toggle,
.mobile-toc {
  display: none;
}
.muted {
  color: var(--text-muted);
}
.empty-state {
  padding: 24px 0 44px;
}
.empty-state h2 {
  font-size: 20px;
}
.primary-link {
  display: inline-block;
  background: var(--action);
  color: var(--action-text);
  padding: 9px 14px;
  border-radius: 5px;
  margin-right: 12px;
  font-size: 12px;
}
.primary-link:hover,
.page-search button:hover {
  background: var(--action-hover);
  color: var(--action-text);
}
.text-button {
  padding: 8px 10px;
  border-radius: 5px;
  font-size: 12px;
  color: var(--text-muted);
}
dialog {
  color: var(--text);
  background: var(--surface);
  border: 0;
  border-radius: 8px;
  padding: 0;
}
dialog::backdrop {
  background: var(--overlay);
}
body:has(dialog[open]) {
  overflow: hidden;
}
.search-dialog {
  width: min(640px, calc(100vw - 32px));
  max-height: min(740px, calc(100dvh - 64px));
  margin-top: min(12vh, 100px);
  box-shadow: 0 14px 50px rgb(0 0 0 / 12%);
}
.dialog-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 18px 20px 15px;
}
.dialog-heading h2 {
  font-size: 13px;
  margin: 0;
  font-weight: 600;
}
.dialog-heading button {
  display: flex;
  gap: 9px;
  align-items: center;
  color: var(--text-muted);
  font-size: 11px;
  padding: 5px 8px;
  border-radius: 3px;
}
.search-dialog form {
  padding: 0 20px;
}
.search-dialog input {
  font-size: 14px;
}
.search-status {
  font-size: 12px;
  color: var(--text-muted);
  margin: 16px 20px;
}
.search-results {
  padding: 0 8px 8px;
}
.search-results a {
  display: flex;
  flex-direction: column;
  padding: 13px 12px;
  border-radius: 4px;
  margin-bottom: 4px;
}
.search-results a:hover,
.search-results a:focus {
  background: var(--surface-subtle);
}
.search-results strong {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 5px;
}
.search-results a > span {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.7;
}
.search-results .result-group {
  color: var(--accent);
  font-size: 10px;
  margin-bottom: 4px;
}
.search-help {
  display: flex;
  gap: 20px;
  padding: 12px 20px;
  color: var(--text-muted);
  font-size: 10px;
  position: sticky;
  bottom: 0;
  background: var(--surface-subtle);
}
.search-help kbd {
  margin-right: 4px;
}
.search-loading {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 16px 20px;
  font-size: 12px;
  color: var(--text-muted);
}
[hidden] {
  display: none;
}
.spinner {
  display: inline-block;
  width: 13px;
  height: 13px;
  border: 2px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.page-search {
  margin-bottom: 26px;
}
.page-search label {
  display: block;
  font-size: 12px;
  margin-bottom: 7px;
}
.page-search div {
  display: flex;
  gap: 10px;
}
.page-search button {
  background: var(--action);
  color: var(--action-text);
  border-radius: 5px;
  padding: 8px 15px;
  font-size: 12px;
}
.api-route {
  scroll-margin-top: calc(var(--docs-header-height) + 24px);
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}
.api-route:last-child {
  border-bottom: 0;
}
.api-heading {
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.api-heading code {
  font-size: 12px;
  word-break: break-word;
}
.method {
  color: var(--accent);
  font:
    10px ui-monospace,
    SFMono-Regular,
    Consolas,
    monospace;
  min-width: 28px;
  font-weight: 700;
}
.api-route p {
  margin: 7px 0 4px;
  font-size: 12px;
}
.api-permission {
  color: var(--text-muted);
  font:
    10px ui-monospace,
    SFMono-Regular,
    Consolas,
    monospace;
}
.sr-only {
  position: absolute;
  height: 1px;
  width: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip-link {
  position: fixed;
  top: -80px;
  left: 20px;
  z-index: 40;
  background: var(--accent);
  color: var(--surface);
  padding: 10px 14px;
  border-radius: 4px;
}
.skip-link:focus {
  top: 10px;
}
.noscript-note {
  background: var(--surface-subtle);
  padding: 15px 32px;
  font-size: 12px;
}
.noscript-note a {
  text-decoration: underline;
}
@media (min-width: 1600px) {
  .docs-frame {
    gap: 62px;
  }
}
@media (max-width: 1199px) {
  .docs-frame {
    grid-template-columns: 220px minmax(0, 760px);
    gap: 34px;
  }
  .toc {
    display: none;
  }
  .mobile-toc {
    display: block;
    margin: -8px 0 30px;
    background: var(--surface-subtle);
    padding: 12px 15px;
    border-radius: 5px;
  }
  .mobile-toc summary {
    font-size: 12px;
    cursor: pointer;
    color: var(--text-muted);
  }
  .mobile-toc ul {
    margin-top: 12px;
  }
  .mobile-toc a {
    display: block;
    padding: 6px 0;
    font-size: 12px;
    color: var(--text-muted);
  }
  .site-header {
    gap: 22px;
  }
  .search-trigger {
    width: 276px;
  }
  .brand span {
    display: none;
  }
}
@media (max-width: 820px) {
  .site-header {
    gap: 15px;
  }
  .header-links {
    gap: 8px;
  }
  .header-links > a {
    display: none;
  }
  .search-trigger {
    width: auto;
    flex: 1;
    max-width: 260px;
    font-size: 11px;
    gap: 12px;
  }
  .audience-bar nav {
    gap: 20px;
  }
  .audience-bar .version {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
    margin-left: auto;
    color: var(--text-muted);
    font-size: 11px;
    border-radius: 4px;
    padding: 6px;
  }
  .desktop-sidebar {
    display: none;
  }
  .docs-frame {
    display: block;
    padding: 0 24px;
    max-width: 760px;
  }
  .article-column {
    padding-top: 27px;
    padding-bottom: 38px;
  }
  .breadcrumbs {
    margin-bottom: 22px;
  }
  h1 {
    font-size: 29px;
  }
  .article-header > p {
    font-size: 15px;
  }
  .navigation-dialog {
    width: min(340px, calc(100vw - 36px));
    height: 100dvh;
    max-height: none;
    margin: 0;
    border-radius: 0;
    padding: 8px;
  }
  .navigation-dialog .dialog-heading {
    padding: 0 0 8px;
  }
  .navigation-dialog .chapter-nav {
    padding: 0;
  }
  .navigation-dialog .chapter-nav a {
    padding: 10px 8px;
    font-size: 13px;
  }
  .site-footer {
    align-items: flex-start;
    font-size: 10px;
  }
  .site-footer nav {
    gap: 8px 16px;
    justify-content: flex-end;
  }
}
@media (max-width: 480px) {
  :root {
    --docs-header-height: 99px;
    --docs-footer-height: 58px;
  }
  .site-header {
    height: 52px;
    gap: 11px;
  }
  .search-trigger {
    flex: none;
    margin-left: auto;
    width: 86px;
    padding: 7px 10px;
    font-size: 0;
  }
  .search-trigger span::after {
    content: "Rechercher";
    font-size: 11px;
  }
  .search-trigger kbd {
    display: none;
  }
  .theme-toggle {
    padding: 7px;
    font-size: 11px;
  }
  .audience-bar :where(nav) a {
    font-size: 11px;
  }
  .audience-bar nav {
    gap: 18px;
  }
  .docs-frame {
    padding: 0 20px;
  }
  h1 {
    font-size: 27px;
    letter-spacing: -0.7px;
  }
  .prose-section h2 {
    font-size: 18px;
  }
  .article-header {
    margin-bottom: 31px;
  }
  .prose-section p,
  .prose-section li {
    font-size: 13px;
  }
  .note {
    padding: 16px;
  }
  .note p {
    font-size: 12px;
  }
  .pagination {
    gap: 12px;
  }
  .pagination a {
    padding: 12px;
  }
  .pagination strong {
    font-size: 11px;
  }
  .article-meta {
    flex-direction: column;
    gap: 7px;
  }
  .site-footer {
    flex-direction: column;
    gap: 10px;
  }
  .site-footer nav {
    justify-content: flex-start;
  }
  .search-help {
    gap: 13px;
    padding: 11px 16px;
    font-size: 9px;
  }
  .search-dialog {
    margin-top: 16px;
    max-height: calc(100dvh - 32px);
  }
  .dialog-heading {
    padding: 16px;
  }
  .search-dialog form {
    padding: 0 16px;
  }
  .dialog-heading h2 {
    font-size: 12px;
  }
  .dialog-heading kbd {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  button,
  a,
  input {
    transition: none;
  }
  .spinner {
    animation: none;
  }
}
@media print {
  .sticky-header,
  .desktop-sidebar,
  .toc,
  .site-footer,
  .pagination,
  .article-meta,
  .mobile-toc,
  .code-bar button {
    display: none;
  }
  .docs-frame {
    display: block;
    max-width: none;
    padding: 0;
  }
  .article-column {
    padding: 0;
  }
  .prose-section {
    break-inside: avoid;
  }
}
