/* ============================================================
   GitBook-like theme : SmartAGT Documentation
   ============================================================ */

/* Polices SELF-HÉBERGÉES (zéro dépendance CDN : on-prem / air-gapped).
   Fichiers woff2 dans assets/fonts/. theme.font = false dans mkdocs.yml.

   Répartition alignée sur le site vitrine (smartagt.ai) :
   Inter = corps de texte, Lexend Deca = titres, JetBrains Mono = code.
   Inter est une fonte variable (100-900) ; l'italique est synthétisé par le
   navigateur (le fichier InterVariable-Italic.woff2 n'est pas embarqué). */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/InterVariable.woff2") format("woff2-variations");
}
@font-face {
  font-family: "Lexend Deca";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/lexend-deca-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Lexend Deca";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/lexend-deca-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url("../fonts/jetbrains-mono-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url("../fonts/jetbrains-mono-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ── Variables (mode clair) ─────────────────────────────── */
:root,
[data-md-color-scheme="default"],
[data-md-color-scheme="slate"] {
  /* Corps en Inter, titres en Lexend Deca (--gb-font-display), code en
     JetBrains Mono : même répartition que le site vitrine. */
  --md-text-font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --md-code-font: "JetBrains Mono", ui-monospace, "Consolas", monospace;
  --gb-font-display: "Lexend Deca", "Inter", system-ui, sans-serif;

  /* Thème SmartAGT : theme_seed.py et buildSemantic dans themeLoader.js.
     Les alias Zensical et les composants partagent ces couleurs sémantiques. */
  --color-action-primary: #00BDFF;
  --color-action-primary-text: #FFFFFF;
  --color-action-primary-hover: color-mix(in srgb, var(--color-action-primary) 88%, #000);
  --color-page-background: #FFFFFF;
  --color-surface: #F8FAFC;
  --color-surface-alt: #E8EEF5;
  --color-text-default: #0F172A;
  --color-text-subtle: #475569;
  --color-text-muted: #94A3B8;
  --color-border-default: #E2E8F0;
  --color-hover-surface: #DDE6F2;
  --color-active-surface: #CFDCED;
  --color-border-strong: color-mix(in srgb, var(--color-border-default) 35%, var(--color-text-muted));
  --color-overlay-backdrop: rgba(0, 0, 0, .40);

  /* La recherche native attend des canaux RVB séparés par des espaces. */
  --color-foreground: 15 23 42;
  --color-background: 248 250 252;
  --color-background-subtle: 221 230 242;
  --color-backdrop: 0 0 0;

  /* Palette sombre fixe pour le panneau serveur et les titres de danger. */
  --gb-inverse-background: #0B1220;
  --gb-inverse-surface: #111827;
  --gb-inverse-border: #1E293B;
  --gb-inverse-text: #F8FAFC;
  --gb-inverse-text-subtle: #CBD5F5;
  --gb-brand-rgb: 0, 189, 255;

  --gb-brand: var(--color-action-primary);
  --md-primary-fg-color: var(--color-action-primary);
  --md-primary-fg-color--light: var(--color-action-primary);
  --md-primary-fg-color--dark: var(--color-action-primary-hover);
  --md-primary-bg-color: var(--color-action-primary-text);
  --md-primary-bg-color--light: var(--color-action-primary-text);
  --md-accent-fg-color: var(--color-action-primary);
  --md-accent-fg-color--transparent: rgba(var(--gb-brand-rgb), .1);
  --md-accent-bg-color: var(--color-action-primary-text);
  --md-accent-bg-color--light: var(--color-action-primary-text);

  --md-default-bg-color: var(--color-page-background);
  --md-default-fg-color: var(--color-text-default);
  --md-default-fg-color--light: var(--color-text-subtle);
  --md-default-fg-color--lighter: var(--color-text-muted);
  --md-default-fg-color--lightest: var(--color-border-default);
  --md-typeset-color: var(--color-text-default);
  --md-typeset-a-color: var(--color-action-primary);
  --md-typeset-mark-color: rgba(var(--gb-brand-rgb), .15);
  --md-typeset-table-color: var(--color-border-default);
  --md-typeset-table-color--light: var(--color-surface);

  --gb-sidebar-bg: var(--color-surface);
  --gb-border: var(--color-border-default);
  --gb-active-bg: var(--color-action-primary);
  --gb-active-color: var(--color-action-primary-text);
  --gb-callout-bg: var(--color-surface);
  --gb-warning-border: var(--color-border-strong);

  /* Les commandes restent lisibles avec les encres du produit. */
  --md-code-bg-color: var(--color-surface);
  --md-code-fg-color: var(--color-text-default);
  --md-code-hl-color: rgba(var(--gb-brand-rgb), .15);
  --md-code-hl-color--light: rgba(var(--gb-brand-rgb), .08);
  --md-code-hl-number-color: var(--color-text-default);
  --md-code-hl-special-color: var(--color-text-default);
  --md-code-hl-function-color: var(--color-text-default);
  --md-code-hl-constant-color: var(--color-text-default);
  --md-code-hl-keyword-color: var(--color-text-default);
  --md-code-hl-string-color: var(--color-text-subtle);
  --md-code-hl-name-color: var(--color-text-default);
  --md-code-hl-operator-color: var(--color-text-subtle);
  --md-code-hl-punctuation-color: var(--color-text-subtle);
  --md-code-hl-comment-color: var(--color-text-subtle);
  --md-code-hl-generic-color: var(--color-text-subtle);
  --md-code-hl-variable-color: var(--color-text-default);
}

/* Titres et éléments de navigation en police d'affichage */
.md-typeset h1,
.md-typeset h2,
.md-typeset h3,
.md-typeset h4,
.md-header__topic,
.md-tabs__link,
.md-nav__title {
  font-family: var(--gb-font-display);
}

/* ── Variables (mode sombre) ────────────────────────────── */
[data-md-color-scheme="slate"] {
  --color-action-primary-text: #0B1220;
  --color-page-background: #0B1220;
  --color-surface: #111827;
  --color-surface-alt: #1F2933;
  --color-text-default: #F8FAFC;
  --color-text-subtle: #CBD5F5;
  --color-text-muted: #64748B;
  --color-border-default: #1E293B;
  --color-hover-surface: #2B3A52;
  --color-active-surface: #364A68;
  --color-overlay-backdrop: rgba(0, 0, 0, .55);
  --color-foreground: 248 250 252;
  --color-background: 17 24 39;
  --color-background-subtle: 43 58 82;
}

/* ============================================================
   HEADER
   ============================================================ */
.md-header {
  background-color: var(--md-default-bg-color);
  border-bottom: 1px solid var(--gb-border);
  box-shadow: none;
  color: var(--md-default-fg-color);
}

.md-header__title {
  font-weight: 450;
  font-size: .75rem;
  color: var(--md-default-fg-color--light);
}

/* Recherche */
.md-search__button {
  background-color: var(--color-surface);
  color: var(--color-text-default);
}
.md-search__button:is(:hover, :focus) {
  background-color: var(--color-hover-surface);
  color: var(--color-text-default);
}
.md-search__button::after {
  background: var(--color-page-background);
  color: var(--color-text-subtle);
}
.md-overlay {
  background-color: var(--color-overlay-backdrop);
}
.md-search__input {
  background-color: var(--md-default-bg-color);
  border: 1px solid var(--gb-border);
  border-radius: 8px;
  font-size: .85rem;
}
.md-search__input:focus {
  border-color: var(--md-primary-fg-color);
  box-shadow: 0 0 0 3px rgba(var(--gb-brand-rgb), .1);
}

/* ============================================================
   SIDEBAR GAUCHE
   ============================================================ */
.md-sidebar--primary,
.md-sidebar--primary .md-sidebar__scrollwrap {
  background-color: var(--color-page-background);
}
.md-sidebar--primary .md-sidebar__scrollwrap {
  border-right: 1px solid var(--gb-border);
}

/* Liens nav */
.md-nav__link {
  font-size: .69rem;
  font-weight: 400;
  color: var(--md-default-fg-color--light);
  padding: .28rem .7rem;
  border-radius: 6px;
  transition: background .12s, color .12s;
}
.md-nav__link:hover {
  color: var(--md-default-fg-color);
  background-color: var(--color-hover-surface);
  text-decoration: none;
}

/* Item actif */
.md-nav__link--active {
  font-weight: 600;
  color: var(--gb-active-color) !important;
  background-color: var(--gb-active-bg) !important;
}

/* Titres de section nav (page-level title) */
.md-nav__title {
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--md-default-fg-color--lighter);
  padding: 1.1rem .7rem .25rem;
}

/* ── Sections déroulantes ────────────────────────────────── */
/* Lien de la section (ex : "Présentation", "Installation"…) */
.md-nav__item--nested > .md-nav__link {
  font-size: .69rem;
  font-weight: 600;
  color: var(--md-default-fg-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .32rem .7rem;
  border-radius: 6px;
  cursor: pointer;
}
.md-nav__item--nested > .md-nav__link:hover {
  background-color: var(--color-hover-surface);
}

/* Flèche de rotation */
.md-nav__item--nested > .md-nav__link .md-nav__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  transition: transform .2s ease;
  opacity: .5;
}
/* Section ouverte : flèche plus marquée. Le thème la tourne vers le bas sur ::after, selon l'état
   de la case : aucune rotation ici, qui s'ajouterait à la sienne (flèche vers la gauche) ou
   s'appliquerait à une section active repliée (flèche vers le bas). */
.md-nav__toggle:checked ~ .md-nav__link .md-nav__icon {
  opacity: .8;
}

/* Sous-nav masqué par défaut, visible quand ouvert */
.md-nav__item--nested .md-nav {
  overflow: hidden;
  max-height: 0;
  transition: max-height .25s ease;
}
.md-nav__toggle:checked ~ .md-nav {
  max-height: 2000px;
}

/* Indentation des enfants */
.md-nav__item--nested .md-nav .md-nav__item {
  padding-left: .6rem;
}
.md-nav__item--nested .md-nav .md-nav__link {
  font-size: .69rem;
  font-weight: 400;
  color: var(--md-default-fg-color--light);
  border-left: 2px solid var(--gb-border);
  border-radius: 0 6px 6px 0;
  padding: .25rem .7rem;
}
.md-nav__item--nested .md-nav .md-nav__link:hover {
  border-left-color: var(--md-primary-fg-color);
  color: var(--md-default-fg-color);
  background-color: var(--color-hover-surface);
}
.md-nav__item--nested .md-nav .md-nav__link--active {
  border-left-color: var(--md-primary-fg-color);
  border-radius: 6px;
  color: var(--gb-active-color) !important;
  background-color: var(--gb-active-bg) !important;
  font-weight: 600;
}

/* ============================================================
   CONTENU PRINCIPAL
   ============================================================ */
.md-content {
  min-width: 0;
  max-width: none;
}
.md-content__inner {
  padding: 0 1rem 3rem;
}

/* Les tableaux utilisent la largeur disponible sans allonger les paragraphes. Les encadrés
   prennent la largeur des blocs de code et des onglets, pour aligner les bords des cadres. */
@media screen and (min-width: 1220px) {
  body:not(:has(.docs-home)) .md-grid {
    width: calc(100% - 48px);
    max-width: 1680px;
    margin-inline: auto;
  }
  .md-sidebar--secondary { width: 10rem; }
  .md-typeset > p,
  .md-typeset > ul,
  .md-typeset > ol { max-width: 78ch; }
}
.md-main__inner {
  margin-top: 1.5rem;
}

/* Typographie */
.md-typeset {
  font-size: .78rem;
  line-height: 1.7;
  color: var(--md-default-fg-color);
}

.md-typeset h1 {
  font-size: 1.8rem;
  font-weight: 550;
  letter-spacing: -.045em;
  color: var(--md-default-fg-color);
  margin-bottom: 1.1rem;
  padding-bottom: 0;
  border-bottom: none;
}

.md-typeset h2 {
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -.01em;
  color: var(--md-default-fg-color);
  margin-top: 2.2rem;
  padding-bottom: .5rem;
  border-bottom: 1px solid var(--gb-border);
}

.md-typeset h3 {
  font-size: .95rem;
  font-weight: 600;
  color: var(--md-default-fg-color);
  margin-top: 1.3rem;
}

.md-typeset h4 {
  font-size: .8rem;
  font-weight: 600;
  color: var(--md-default-fg-color--light);
  text-transform: uppercase;
  letter-spacing: .05em;
}

/* Liens */
.md-typeset a {
  color: var(--md-primary-fg-color);
  text-decoration: none;
}
.md-typeset a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Paragraphes */
.md-typeset p {
  color: var(--md-default-fg-color--light);
  line-height: 1.75;
}
/* Variante d'un contenu selon l'OS choisi plus haut dans la page : la barre
   d'onglets est masquée, le libellé lié (content.tabs.link) choisit le panneau. */
.md-typeset .docs-os-follow > .tabbed-set > .tabbed-labels,
.md-typeset .tabbed-set.docs-topo-hidden > .tabbed-labels {
  display: none;
}

/* Sélecteur de topologie en tête de page : onglets liés sans contenu, rendus en
   commande segmentée, ancrée à droite sur la ligne du titre. Les groupes d'onglets de
   topologie de la page suivent le choix, leur barre masquée (extra.js). */
.md-typeset .docs-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .4rem 1.2rem;
  margin-bottom: 1.2rem;
}
.md-typeset .docs-title-row > h1 {
  margin: 0;
}
.md-typeset .docs-topology-switch {
  display: flex;
  margin-left: auto;
}
.md-typeset .docs-topology-switch > .tabbed-set {
  display: inline-flex;
  margin: 0;
  padding: 2px;
  border: 1px solid var(--gb-border);
  border-radius: 8px;
}
.md-typeset .docs-topology-switch > .tabbed-set > .tabbed-labels {
  display: flex;
  gap: 2px;
  box-shadow: none;
  overflow: visible;
}
.md-typeset .docs-topology-switch > .tabbed-set > .tabbed-labels::before {
  display: none;
}
.md-typeset .docs-topology-switch > .tabbed-set > .tabbed-labels > label {
  margin: 0;
  padding: .1rem .55rem;
  border: 0;
  border-radius: 6px;
  line-height: 1.4;
  font-size: .64rem;
  font-weight: 600;
  color: var(--md-default-fg-color);
  transition: color .15s, background-color .15s;
  display: inline-flex;
  align-items: center;
  gap: .3em;
}
/* Icône de la topologie, peinte dans la couleur du texte de l'onglet. */
.md-typeset .docs-topology-switch > .tabbed-set > .tabbed-labels > label[data-topology]::before {
  content: "";
  flex: none;
  width: 1.15em;
  height: 1.15em;
  background-color: currentColor;
  -webkit-mask: var(--docs-topology-icon) center / contain no-repeat;
  mask: var(--docs-topology-icon) center / contain no-repeat;
}
.md-typeset .docs-topology-switch label[data-topology="serveur"] {
  --docs-topology-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='7' rx='2'/%3E%3Crect x='3' y='14' width='18' height='7' rx='2'/%3E%3Cpath d='M7 6.5h.01M7 17.5h.01M11 6.5h6M11 17.5h6'/%3E%3C/svg%3E");
}
.md-typeset .docs-topology-switch label[data-topology="cluster"] {
  --docs-topology-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='9' y='2' width='6' height='6' rx='1.5'/%3E%3Crect x='2' y='16' width='6' height='6' rx='1.5'/%3E%3Crect x='16' y='16' width='6' height='6' rx='1.5'/%3E%3Cpath d='M12 8v4M5 16v-2a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2v2'/%3E%3C/svg%3E");
}
.md-typeset .docs-topology-switch label[data-topology="kubernetes"] {
  --docs-topology-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='8'/%3E%3Ccircle cx='12' cy='12' r='2.5'/%3E%3Cpath d='M12 2v7.5M12 14.5V22M2 12h7.5M14.5 12H22M5 5l5.2 5.2M13.8 13.8 19 19M19 5l-5.2 5.2M10.2 13.8 5 19'/%3E%3C/svg%3E");
}
/* Classe doublée : la règle du thème qui colore l'onglet coché est plus spécifique. */
.md-typeset .docs-topology-switch > .tabbed-set > .tabbed-labels > label.docs-topology-active.docs-topology-active {
  background: var(--md-primary-fg-color);
  color: var(--md-primary-bg-color);
}
.md-typeset .docs-topology-switch > .tabbed-set > .tabbed-labels > label > a {
  display: inline;
  padding: 0;
  line-height: 1.4;
  color: inherit;
}
.md-typeset .docs-topology-switch > .tabbed-set > .tabbed-content {
  display: none;
}
/* Une variante de topologie prend sa hauteur naturelle : la vue affichée ne
   réserve pas la place d'une variante plus longue. */
@media screen {
  .md-typeset .tabbed-set.docs-topo-hidden > .tabbed-content > .tabbed-block {
    display: none;
  }
  .md-typeset .tabbed-set.docs-topo-hidden > input:nth-child(1):checked ~ .tabbed-content > :nth-child(1),
  .md-typeset .tabbed-set.docs-topo-hidden > input:nth-child(2):checked ~ .tabbed-content > :nth-child(2),
  .md-typeset .tabbed-set.docs-topo-hidden > input:nth-child(3):checked ~ .tabbed-content > :nth-child(3) {
    display: block;
  }
}

/* Résultat attendu des procédures, libellé, contenu, chemins et liste de
   constats, marqué par extra.js. */
.md-typeset .docs-result,
.md-typeset .docs-result strong,
.md-typeset .docs-result code {
  color: var(--md-primary-fg-color);
}
.md-typeset p.docs-result:has(+ ul.docs-result, + ol.docs-result) {
  margin-bottom: .2rem;
}
/* Liste de constats resserrée : elle se lit comme un seul bloc. */
.md-typeset :is(ul, ol).docs-result {
  margin-top: 0;
}
.md-typeset :is(ul, ol).docs-result > li {
  margin-bottom: 0;
  line-height: 1.5;
}

/* Listes */
.md-typeset ul li,
.md-typeset ol li {
  margin-bottom: .3rem;
}
.md-typeset ul li::marker {
  color: var(--md-primary-fg-color);
}

/* ============================================================
   CODE
   ============================================================ */
/* Inline */
.md-typeset code {
  background-color: var(--md-code-bg-color);
  color: var(--md-default-fg-color--light);
  border-radius: 4px;
  padding: .15em .4em;
  font-size: .9em;
  font-family: var(--md-code-font);
}

/* Blocs : suivent le thème clair/sombre comme le code inline (cohérence avec le
   reste du site, à l'image des sites de doc logiciels qui adaptent le code au thème).
   Le cadre/arrondi est posé sur pre (pas .highlight) pour que .highlight reste un
   conteneur de positionnement "ouvert" (pas de overflow:hidden), ce qui permet à la
   pastille de langage de flotter à moitié hors du cadre plutôt que d'être coupée. */
.md-typeset .highlight {
  position: relative;
  margin-top: 1.35rem;
}
.md-typeset pre {
  border-radius: 10px;
  box-shadow: none;
  border: 1px solid var(--gb-border);
  overflow: hidden;
}
/* Spécificité égale à celle de ".md-typeset pre code" ci-dessous : cette règle doit
   rester déclarée en dernier pour gagner le bloc (couleur/padding), sans quoi le
   reset de l'inline code (règle .md-typeset code) s'appliquerait à la place. */
.md-typeset pre code {
  background-color: var(--md-code-bg-color);
  color: var(--md-code-fg-color);
  font-size: .85em;
  line-height: 1.7;
  padding: .9rem 1.1rem;
  border-radius: 0;
}

/* Étiquette de langage (bash / PowerShell / cmd / yaml) : pastille flottante à moitié sur
   la bordure supérieure du bloc (pas une barre pleine largeur, pas à l'intérieur).
   Classe ajoutée automatiquement à partir de la langue déclarée sur le fence
   ```bash/```powershell/```bat/```yaml (pymdownx.highlight: pygments_lang_class).
   yaml reçoit la pastille seule, sans invite de commande (section INVITES).
   "bat" est l'alias Pygments du Command Prompt Windows, affiché comme "cmd". */
.md-typeset .highlight.language-bash::before,
.md-typeset .highlight.language-powershell::before,
.md-typeset .highlight.language-bat::before,
.md-typeset .highlight.language-yaml::before {
  position: absolute;
  top: -.6rem;
  left: 1rem;
  z-index: 1;
  padding: .18rem .65rem;
  border-radius: 999px;
  font-family: var(--md-code-font);
  font-size: .62rem;
  font-weight: 600;
  letter-spacing: .03em;
  background-color: var(--md-default-bg-color);
  color: var(--md-primary-fg-color);
  border: 1px solid rgba(var(--gb-brand-rgb), .25);
  box-shadow: 0 1px 2px rgba(0,0,0,.05);
}
.md-typeset .highlight.language-bash::before { content: "bash"; }
.md-typeset .highlight.language-powershell::before { content: "powershell"; }
.md-typeset .highlight.language-bat::before { content: "cmd"; }
.md-typeset .highlight.language-yaml::before { content: "yaml"; }

/* Bouton copier */
.md-clipboard {
  opacity: .55;
  transition: opacity .18s;
}
.md-typeset pre:hover .md-clipboard,
.md-clipboard:focus-visible {
  opacity: 1;
}

/* ============================================================
   ADMONITIONS
   ============================================================ */
/* Note : « i » cerclé, à la place du trombone du thème. */
:root {
  --md-admonition-icon--note: url('data:image/svg+xml;charset=utf-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"/><path d="M12 16v-4"/><path d="M12 8h.01"/></svg>');
}
.md-typeset :is(.admonition, details):where(:not(.question))[class] {
  border: 1px solid var(--gb-border);
  border-left: 3px solid var(--gb-border);
  border-radius: 6px;
  box-shadow: none;
  background: var(--gb-callout-bg);
  color: var(--md-default-fg-color);
  font-size: .73rem;
  padding: 0 1rem;
  margin: 1.2rem 0;
}
.md-typeset :is(.admonition, details):where(:not(.question))[class] > :is(.admonition-title, summary) {
  background: transparent;
  color: var(--md-default-fg-color);
  font-weight: 600;
  font-size: .73rem;
  margin: 0 -1rem;
  padding: .7rem 1rem .25rem 2.1rem;
}
.md-typeset :is(.admonition, details):where(:not(.question))[class] > :is(.admonition-title, summary)::before {
  background-color: var(--md-primary-fg-color);
  left: .85rem;
  top: .76rem;
  width: .85rem;
  height: .85rem;
}
.md-typeset :is(.admonition, details):where(:not(.question))[class] > summary::after {
  color: var(--md-primary-fg-color);
}
/* Titre repliable : icône, texte et chevron centrés sur la même ligne. Le chevron se place par une
   marge et non par transform, que le thème réserve à sa rotation à l'ouverture. */
.md-typeset :is(.admonition, details):where(:not(.question))[class] > :is(.admonition-title, summary):is(summary) {
  padding-bottom: .7rem;
}
.md-typeset :is(.admonition, details):where(:not(.question))[class] > :is(.admonition-title, summary):is(summary)::before {
  top: 50%;
  margin-top: -.425rem;
}
.md-typeset :is(.admonition, details):where(:not(.question))[class] > :is(.admonition-title, summary):is(summary)::after {
  top: 50%;
  margin-top: -.5rem;
  right: .8rem;
}
.md-typeset :is(.admonition, details):where(:not(.question))[class] > p:last-child {
  margin-bottom: .8rem;
}
/* Le niveau d'attention reste lisible sans dépendre d'une couleur d'alerte. */
.md-typeset :is(.admonition, details).warning {
  border-left-color: var(--gb-warning-border);
}
.md-typeset :is(.admonition, details).danger {
  border-color: var(--gb-warning-border);
  border-left: 4px solid var(--gb-inverse-background);
}
.md-typeset :is(.admonition, details).danger > :is(.admonition-title, summary) {
  background: var(--gb-inverse-background);
  color: var(--gb-inverse-text);
  padding-bottom: .65rem;
}
.md-typeset :is(.admonition, details).danger > :is(.admonition-title, summary)::before {
  background-color: var(--gb-brand);
}
/* Les renvois de fin de procédure ne sont pas des messages de réussite. */
.md-typeset .admonition.success {
  border: 0;
  border-top: 1px solid var(--gb-border);
  border-radius: 0;
  background: transparent;
  padding: .25rem 0 0;
  margin-top: 2rem;
}
.md-typeset .admonition.success > .admonition-title {
  margin: 0;
  padding: .7rem 0 0;
  font-size: .64rem;
  color: var(--md-default-fg-color--light);
}
.md-typeset .admonition.success > .admonition-title::before {
  display: none;
}
.md-typeset details.question {
  background: var(--md-default-bg-color);
  border: 1px solid var(--gb-border);
  border-radius: 10px;
  box-shadow: none;
  color: var(--md-default-fg-color--light);
  font-size: .76rem;
  line-height: 1.75;
  padding: 0 1rem;
  margin: .55rem 0;
  overflow: visible;
}
.md-typeset details.question[open] {
  border-color: var(--gb-brand);
}
.md-typeset details.question > summary,
.md-typeset details.question[open] > summary {
  border-radius: 9px;
  background: transparent;
  color: var(--md-default-fg-color);
  font-size: .78rem;
  font-weight: 550;
  margin: 0 -1rem;
  padding: .9rem 2.8rem .9rem 1rem;
  line-height: 1.65;
  text-wrap: pretty;
  cursor: pointer;
}
.md-typeset details.question > summary:hover {
  background: var(--color-hover-surface);
}
.md-typeset details.question > summary::before {
  display: none;
}
.md-typeset details.question > summary::after {
  top: 1.05rem;
  right: 1rem;
  width: 1rem;
  height: 1rem;
  color: var(--gb-brand);
  background-color: transparent;
  background-image: linear-gradient(currentColor, currentColor), linear-gradient(currentColor, currentColor);
  background-position: center;
  background-size: 65% 2px, 2px 65%;
  background-repeat: no-repeat;
  mask-image: none;
  -webkit-mask-image: none;
  transform: none;
  transition: none;
}
.md-typeset details.question[open] > summary::after {
  background-size: 65% 2px, 2px 0;
  transform: none;
}
.md-typeset details.question[open] > summary + * {
  border-top: 1px solid var(--gb-border);
  padding-top: .8rem;
  margin-top: 0;
}
.md-typeset details.question > :last-child:not(summary) {
  margin-bottom: 1rem;
}

/* ============================================================
   TABLEAUX
   ============================================================ */
.md-typeset table:not([class]) {
  border: 1px solid var(--gb-border);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: none;
  font-size: .92em;
}
.md-typeset table:not([class]) th {
  background-color: var(--gb-sidebar-bg);
  font-weight: 600;
  font-size: 1em;
  color: var(--md-default-fg-color);
  padding: .7rem .65rem;
  text-align: left;
  line-height: 1.55;
  border-bottom: 1px solid var(--gb-border);
}
.md-typeset table:not([class]) td {
  font-size: 1em;
  padding: .65rem .65rem;
  text-align: left;
  line-height: 1.55;
  border-top: 1px solid var(--gb-border);
}
/* Zébrage : une ligne sur deux teintée (cohérence avec l'exemple de référence) */
/* Les colonnes nommées gardent leurs libellés, les descriptions utilisent le reste. */
.md-typeset table:has(th.docs-key) { display: table; width: 100%; table-layout: auto; }
.md-typeset th.docs-key { width: 1%; white-space: nowrap; }
.md-typeset table:has(th.docs-key:nth-child(1)) tr > :nth-child(1),
.md-typeset table:has(th.docs-key:nth-child(2)) tr > :nth-child(2),
.md-typeset table:has(th.docs-key:nth-child(3)) tr > :nth-child(3),
.md-typeset table:has(th.docs-key:nth-child(4)) tr > :nth-child(4) { white-space: nowrap; overflow-wrap: normal; word-break: normal; }
.md-typeset table:has(th.docs-key:nth-child(1)) tr > :nth-child(1) :is(code, a),
.md-typeset table:has(th.docs-key:nth-child(2)) tr > :nth-child(2) :is(code, a),
.md-typeset table:has(th.docs-key:nth-child(3)) tr > :nth-child(3) :is(code, a),
.md-typeset table:has(th.docs-key:nth-child(4)) tr > :nth-child(4) :is(code, a) { white-space: inherit; overflow-wrap: normal; word-break: normal; }
.md-typeset table tbody tr:nth-child(even) td {
  background-color: var(--gb-sidebar-bg);
}
.md-typeset table tr:hover td {
  background-color: var(--color-hover-surface);
}
/* Responsabilités : le symbole se lit seul, l'aide native donne le détail au survol, au clic ou au clavier. */
.md-typeset .docs-duties .md-typeset__scrollwrap { margin: 0; overflow: visible; }
.md-typeset .docs-duties .md-typeset__table { display: block; margin: 0; padding: 0; }
.md-typeset .docs-duties table:not([class]) { display: table; width: 100%; overflow: visible; }
.md-typeset .docs-duties table:not([class]) :is(th, td) { vertical-align: middle; }
.md-typeset .docs-duties table:not([class]) tr > :not(:first-child) { width: 6.5rem; text-align: center; }
.md-typeset .docs-duties thead th:first-child { border-top-left-radius: 7px; }
.md-typeset .docs-duties thead th:last-child { border-top-right-radius: 7px; }
.md-typeset .docs-duties tbody tr:last-child td:first-child { border-bottom-left-radius: 7px; }
.md-typeset .docs-duties tbody tr:last-child td:last-child { border-bottom-right-radius: 7px; }
.md-typeset .docs-duties .arch-tool-help { position: relative; display: inline-block; margin: 0; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; font-size: inherit; vertical-align: middle; }
.md-typeset .docs-duties table:not([class]) details.arch-tool-help > summary { display: inline-block; min-height: 0; margin: 0; padding: .1rem .25rem; border: 0; background: none; list-style: none; cursor: help; white-space: nowrap; }
.md-typeset .docs-duties table:not([class]) details.arch-tool-help > summary::before,
.md-typeset .docs-duties table:not([class]) details.arch-tool-help > summary::after { display: none; }
.md-typeset .docs-duties .arch-help-content { right: 0; left: auto; width: min(17rem, 72vw); text-align: left; pointer-events: none; }
.md-typeset .docs-duties .docs-duty-icon { display: block; flex: none; width: 1rem; height: 1rem; fill: none; stroke: var(--color-action-primary); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.md-typeset .docs-duties .docs-duties-legend { display: flex; flex-wrap: wrap; gap: .3rem 1rem; align-items: center; margin-top: .6rem; color: var(--color-text-subtle); font-size: .85em; }
.md-typeset .docs-duties .docs-duties-legend span { display: inline-flex; gap: .3rem; align-items: center; }
/* Sur petit écran, l'aide s'ancre à la ligne pour rester dans la page, et les symboles laissent la place au sujet. */
@media screen and (max-width: 44.9375em) {
  .md-typeset .docs-duties table:not([class]) tr > :not(:first-child) { width: 1%; min-width: 0; padding-inline: .35rem; }
  .md-typeset .docs-duties tr { position: relative; }
  .md-typeset .docs-duties .arch-tool-help { position: static; }
  .md-typeset .docs-duties .arch-help-content { top: 100%; right: 0; left: 0; width: auto; }
}
/* Liste des procédures : pleine largeur, alignée sur le RACI, les libellés peuvent revenir à la ligne sur petit écran. */
.md-typeset .docs-procedures .md-typeset__table { display: block; }
.md-typeset .docs-procedures table:not([class]) { display: table; width: 100%; }
.md-typeset .docs-procedures table:not([class]) th:first-child { width: 35%; }
/* Tableau d'exploitation allégé : bordure seule, fond de page, sans zébrage ni survol. */
.md-typeset .docs-ops table:not([class]) th,
.md-typeset .docs-ops table tbody tr td,
.md-typeset .docs-ops table tr:hover td {
  background-color: var(--md-default-bg-color);
}
.md-typeset .docs-ops table:not([class]) th {
  font-weight: 600;
}
.md-typeset .docs-ops .md-typeset__table {
  display: block;
}
.md-typeset .docs-ops table:not([class]) {
  display: table;
  width: 100%;
}

/* ============================================================
   TOC DROITE
   ============================================================ */
.md-sidebar--secondary .md-nav__link {
  font-size: .68rem;
  color: var(--md-default-fg-color--light);
  padding: .22rem .5rem;
  border-left: 2px solid transparent;
  border-radius: 0;
  background: transparent !important;
  transition: border-color .12s, color .12s;
}
.md-sidebar--secondary .md-nav__link--active {
  border-left-color: var(--md-primary-fg-color);
  color: var(--md-primary-fg-color) !important;
  font-weight: 500;
}
.md-sidebar--secondary .md-nav__title {
  font-size: .58rem;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--md-default-fg-color--lighter);
}

/* ============================================================
   NAVIGATION PRÉCÉDENT / SUIVANT
   ============================================================ */
.md-footer__inner {
  background-color: var(--md-default-bg-color);
  border-top: 1px solid var(--gb-border);
  padding: .25rem 0;
}
.md-footer__link {
  border: none;
  margin: .25rem .4rem;
  padding: .3rem .6rem;
  transition: color .18s;
  color: var(--md-default-fg-color);
}
.md-footer__link:hover {
  color: var(--md-primary-fg-color);
}
.md-footer__title {
  font-weight: 600;
  font-size: .72rem;
  color: var(--md-default-fg-color);
}
.md-footer__direction {
  font-size: .62rem;
  color: var(--md-default-fg-color--light);
  margin-bottom: .1rem;
}

/* Footer bas */
.md-footer {
  background-color: var(--md-default-bg-color);
  border-top: 1px solid var(--gb-border);
  color: var(--md-default-fg-color--light);
  font-size: .8rem;
}
.md-footer-meta {
  background-color: var(--color-surface);
}

/* ============================================================
   SCROLLBAR discrète
   ============================================================ */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--color-border-strong); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: var(--color-text-muted); }

/* ============================================================
   STEPS (guide pas-à-pas : ol li dans .steps)
   ============================================================ */
.md-typeset .steps > ol {
  list-style: none;
  counter-reset: step-counter;
  margin: 1.5rem 0 2rem;
  padding: 0;
}

.md-typeset .steps > ol > li {
  counter-increment: step-counter;
  position: relative;
  padding: 0 0 2rem 3.4rem;
  margin: 0;
}

/* Ligne verticale entre les étapes */
.md-typeset .steps > ol > li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: .95rem;
  top: 2.2rem;
  bottom: 0;
  width: 2px;
  background-color: var(--gb-border);
}

/* Cercle numéroté */
.md-typeset .steps > ol > li::before {
  content: counter(step-counter);
  position: absolute;
  left: 0;
  top: .1rem;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background-color: var(--md-primary-fg-color);
  color: var(--color-action-primary-text);
  font-size: .75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

/* Premier paragraphe (titre en gras) */
.md-typeset .steps > ol > li > p:first-child {
  font-weight: 600;
  font-size: .9rem;
  margin-top: .2rem;
  margin-bottom: .5rem;
  line-height: 1.4;
}

/* Paragraphes et listes dans une étape */
.md-typeset .steps > ol > li p,
.md-typeset .steps > ol > li ul,
.md-typeset .steps > ol > li ol {
  font-size: .8125rem;
  margin-top: .3rem;
}

/* Blocs de code dans une étape */
.md-typeset .steps > ol > li pre {
  margin-top: .6rem;
}

/* ============================================================
   ARCH-FLOW (diagramme d'architecture : cartes à icône + connecteurs)
   ============================================================ */
.md-typeset .arch-flow {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 26rem;
  margin: 1.8rem auto 2.2rem;
}

/* Point d'entrée (ex. "Utilisateurs / Front-end client") : ligne simple, sans cadre */
.md-typeset .arch-flow__entry {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  color: var(--md-default-fg-color--light);
  font-size: .85em;
  font-weight: 500;
}

/* Pastille icône (réutilisée pour les cartes et le point d'entrée) */
.md-typeset .arch-flow__icon {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 9px;
  background-color: rgba(var(--gb-brand-rgb), .09);
  color: var(--md-primary-fg-color);
}
.md-typeset .arch-flow__icon svg {
  width: 1.05rem;
  height: 1.05rem;
}
.md-typeset .arch-flow__entry .arch-flow__icon {
  width: 1.5rem;
  height: 1.5rem;
  background-color: transparent;
  color: var(--md-default-fg-color--light);
}
.md-typeset .arch-flow__entry .arch-flow__icon svg {
  width: 1.05rem;
  height: 1.05rem;
}

/* Carte de composant (BFF / Backend / PostgreSQL…) : icône + libellés, alignés à gauche */
.md-typeset .arch-flow__node {
  display: flex;
  align-items: center;
  gap: .9rem;
  width: 100%;
  background-color: var(--gb-sidebar-bg);
  border: 1px solid var(--gb-border);
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 4px 12px rgba(0,0,0,.04);
  padding: .8rem 1.1rem;
  text-align: left;
}
.md-typeset .arch-flow__text {
  display: flex;
  flex-direction: column;
  gap: .15rem;
  min-width: 0;
}
.md-typeset .arch-flow__node strong {
  font-size: .95rem;
  font-weight: 600;
  color: var(--md-default-fg-color);
}
.md-typeset .arch-flow__node small {
  font-size: .76em;
  color: var(--md-default-fg-color--light);
}

/* Connecteur entre deux cartes : ligne verticale + badge de port/protocole + flèche */
.md-typeset .arch-flow__connector {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .2rem;
  min-height: 2.7rem;
  position: relative;
}
.md-typeset .arch-flow__connector::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 6px;
  left: 50%;
  width: 2px;
  background-color: var(--gb-border);
}
/* Pointe de flèche en bas du connecteur, dans la couleur de marque */
.md-typeset .arch-flow__connector::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 0;
  transform: translateX(-50%);
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid var(--md-primary-fg-color);
  opacity: .55;
}
.md-typeset .arch-flow__connector code {
  position: relative;
  z-index: 1;
  background-color: rgba(var(--gb-brand-rgb), .08);
  color: var(--md-primary-fg-color);
  border: 1px solid rgba(var(--gb-brand-rgb), .18);
  font-size: .78em;
  white-space: nowrap;
}
.md-typeset .arch-flow__connector small {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  background-color: var(--md-default-bg-color);
  padding: 0 .3rem;
  font-size: .72em;
  color: var(--md-default-fg-color--light);
}
.md-typeset .arch-flow__connector small svg {
  flex: 0 0 auto;
  width: .95em;
  height: .95em;
}

/* Périmètre "même serveur" : cadre en pointillés avec étiquette flottante sur la
   bordure (même principe que les encarts de périmètre des schémas produit) */
.md-typeset .arch-flow__boundary {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  width: 100%;
  position: relative;
  margin-top: .3rem;
  border: 1.5px dashed var(--gb-border);
  border-radius: 16px;
  padding: 1.5rem 1.1rem 1.1rem;
}
.md-typeset .arch-flow__boundary-label {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: var(--md-default-bg-color);
  padding: 0 .6rem;
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--md-default-fg-color--light);
  white-space: nowrap;
}

/* ============================================================
   TABS : icônes
   ============================================================ */
.md-tabs__link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* Limité aux onglets dont l'icône est définie ci-dessous : un onglet sans
   mask-image afficherait sinon un carré plein (background currentColor). */
.md-tabs__list li:nth-child(-n+4) .md-tabs__link::before {
  content: "";
  display: inline-block;
  width: 13px;
  height: 13px;
  flex-shrink: 0;
  background-color: currentColor;
  -webkit-mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
}

/* Docs : crochets code <> */
.md-tabs__list li:nth-child(1) .md-tabs__link::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='16 18 22 12 16 6'/%3E%3Cpolyline points='8 6 2 12 8 18'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='16 18 22 12 16 6'/%3E%3Cpolyline points='8 6 2 12 8 18'/%3E%3C/svg%3E");
}

/* Changelog : étoile */
.md-tabs__list li:nth-child(2) .md-tabs__link::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolygon points='12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolygon points='12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2'/%3E%3C/svg%3E");
}

/* Models : couches */
.md-tabs__list li:nth-child(3) .md-tabs__link::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolygon points='12 2 2 7 12 12 22 7 12 2'/%3E%3Cpolyline points='2 17 12 22 22 17'/%3E%3Cpolyline points='2 12 12 17 22 12'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolygon points='12 2 2 7 12 12 22 7 12 2'/%3E%3Cpolyline points='2 17 12 22 22 17'/%3E%3Cpolyline points='2 12 12 17 22 12'/%3E%3C/svg%3E");
}

/* Confidentialité : bouclier */
.md-tabs__list li:nth-child(4) .md-tabs__link::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z'/%3E%3C/svg%3E");
}

/* ============================================================
   SÉLECTEUR DE LANGUE : pastille segmentée FR|EN
   ------------------------------------------------------------
   Le thème rend un menu déroulant (bouton globe + liste flottante).
   On le transforme en pastille toujours visible, EN CSS UNIQUEMENT :
   les liens natifs [hreflang] sont conservés tels quels, donc la
   bascule reste gérée par le bundle du thème (résolution de la page
   équivalente via le sitemap de la langue cible, voir les
   redirections générées par scripts/generate_llms_txt.py). Aucun
   JavaScript ici : rien à réinsérer après navigation instantanée.
   Les libellés courts (FR / EN) viennent de `extra.alternate` dans
   les mkdocs*.yml.
   ============================================================ */

/* Bouton globe : inutile puisque la liste ne se replie plus */
.md-header__option .md-select > .md-header__button {
  display: none;
}

/* Respiration autour de la pastille : ni collée à la recherche, ni au thème */
.md-header__option .md-select {
  margin-inline: .4rem;
}

/* La liste flottante devient une pastille en ligne, toujours affichée */
.md-header__option .md-select .md-select__inner {
  position: static;
  max-height: none;
  opacity: 1;
  transform: none;
  transition: none;
  margin: 0;
  padding: 1px;
  background-color: var(--gb-sidebar-bg);
  border: 1px solid var(--gb-border);
  border-radius: 999px;
  box-shadow: none;
}

/* Flèche du menu déroulant */
.md-header__option .md-select .md-select__inner::after {
  display: none;
}

.md-header__option .md-select__list {
  display: flex;
  gap: 1px;
  overflow: visible;
  border-radius: 0;
}

.md-header__option .md-select__item {
  line-height: 1;
}

[dir] .md-header__option .md-select__link {
  display: block;
  width: auto;
  padding: .15rem .4rem;
  border-radius: 999px;
  font-size: .52rem;
  font-weight: 600;
  letter-spacing: .03em;
  color: var(--md-default-fg-color--light);
  transition: background-color .15s, color .15s;
}

.md-header__option .md-select__link:hover {
  background-color: var(--color-hover-surface);
  color: var(--md-default-fg-color);
}

/* Langue courante mise en avant (lue sur l'attribut lang du document) */
html[lang="fr"] .md-header__option .md-select__link[hreflang="fr"],
html[lang="en"] .md-header__option .md-select__link[hreflang="en"] {
  background-color: var(--gb-brand);
  color: var(--color-action-primary-text);
}

/* ============================================================
   SELF-CHECK (auto-vérification de fin d'étape, distinct de la
   checklist finale avant production : local à une procédure, pas
   global au parcours)
   ============================================================ */
.md-typeset .self-check {
  border: 1px solid var(--gb-border);
  border-left: 3px solid var(--gb-brand);
  border-radius: 6px;
  background-color: var(--gb-callout-bg);
  padding: .9rem 1.1rem .9rem 1rem;
  margin: 1.4rem 0;
}

.md-typeset .self-check__title {
  display: flex;
  align-items: center;
  gap: .45rem;
  font-weight: 600;
  font-size: .8rem;
  color: var(--md-default-fg-color);
  margin-bottom: .5rem;
}
[data-md-color-scheme="slate"] .md-typeset .self-check__title {
  color: var(--md-default-fg-color);
}

.md-typeset .self-check__title::before {
  content: "";
  display: inline-block;
  width: 1.1rem;
  height: 1.1rem;
  flex-shrink: 0;
  background-color: currentColor;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 11l3 3L22 4'/%3E%3Cpath d='M21 12v7a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h11'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 11l3 3L22 4'/%3E%3Cpath d='M21 12v7a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h11'/%3E%3C/svg%3E");
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
}

.md-typeset .self-check .task-list {
  margin: 0;
  padding-left: 1.6rem;
}
.md-typeset .self-check .task-list-item {
  font-size: .8125rem;
  margin: .3rem 0;
}

/* ============================================================
   BOUTONS (page d'accueil)
   ============================================================ */
.md-typeset .md-button {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  border: 1px solid var(--gb-border);
  border-radius: 8px;
  color: var(--md-default-fg-color);
  font-size: .78rem;
  font-weight: 600;
  padding: .55rem 1.15rem;
  margin: 0 .5rem .6rem 0;
  transition: background-color .15s, color .15s, border-color .15s;
}
.md-typeset .md-button:is(:hover, :focus-visible) {
  background-color: var(--color-hover-surface);
  border-color: var(--color-border-strong);
  color: var(--md-default-fg-color);
  text-decoration: none;
}
.md-typeset .md-button--primary {
  background-color: var(--gb-brand);
  border-color: var(--gb-brand);
  color: var(--color-action-primary-text);
}
.md-typeset .md-button--primary:is(:hover, :focus-visible) {
  background-color: var(--color-action-primary-hover);
  border-color: var(--color-action-primary-hover);
  color: var(--color-action-primary-text);
}
.md-typeset .md-button .twemoji {
  width: 1em;
  height: 1em;
}

/* ============================================================
   GRID CARDS (page d'accueil : "Par où commencer ?")
   ============================================================ */
.md-typeset .grid.cards > ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13.5rem, 1fr));
  gap: 1rem;
  list-style: none;
  margin: 1.6rem 0 2rem;
  padding: 0;
}
.md-typeset .grid.cards > ul > li {
  border: 1px solid var(--gb-border);
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 4px 12px rgba(0,0,0,.04);
  padding: 1.1rem 1.2rem 1.3rem;
  margin: 0;
  transition: border-color .15s, transform .15s, box-shadow .15s;
}
.md-typeset .grid.cards > ul > li:hover {
  border-color: var(--md-primary-fg-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0,0,0,.06), 0 8px 24px rgba(0,0,0,.06);
}
.md-typeset .grid.cards > ul > li > p:first-child {
  display: flex;
  align-items: center;
  gap: .55rem;
  margin-bottom: 0;
}
.md-typeset .grid.cards > ul > li > p:first-child strong {
  font-size: .92rem;
  color: var(--md-default-fg-color);
}
.md-typeset .grid.cards > ul > li > hr {
  border: none;
  border-top: 1px solid var(--gb-border);
  margin: .8rem 0;
}
.md-typeset .grid.cards > ul > li > p:last-child {
  margin-bottom: 0;
}
.md-typeset .grid.cards .twemoji.lg {
  flex-shrink: 0;
  width: 1.6rem;
  height: 1.6rem;
  color: var(--md-primary-fg-color);
}
.md-typeset .grid.cards a {
  font-weight: 600;
  font-size: .8rem;
  display: inline-flex;
  align-items: center;
  gap: .3rem;
}
.md-typeset .grid.cards a .twemoji {
  width: 1.1em;
  height: 1.1em;
}

/* Matrices de flux : colonnes stables et défilement dans une région nommée. */
.md-typeset .docs-flow-table {
  max-width: 100%;
  margin: 1.2rem 0;
  overflow-x: auto;
  overscroll-behavior-x: contain;
}
.docs-flow-table:focus-visible {
  outline: 2px solid var(--color-text-default);
  outline-offset: 3px;
}
.md-typeset .docs-flow-table .md-typeset__scrollwrap {
  margin: 0;
  overflow: visible;
}
.md-typeset .docs-flow-table .md-typeset__table {
  display: block;
  margin: 0;
  padding: 0;
}
.md-typeset .docs-flow-table table {
  display: table;
  width: 100%;
  min-width: 760px;
  margin: 0;
  table-layout: fixed;
}
.md-typeset .docs-flow-table th:nth-child(1) { width: 20%; }
.md-typeset .docs-flow-table th:nth-child(2) { width: 22%; }
.md-typeset .docs-flow-table th:nth-child(3) { width: 18%; }
.md-typeset .docs-flow-table th:nth-child(4) { width: 9%; }
.md-typeset .docs-flow-table th:nth-child(5) { width: 31%; }
.md-typeset .docs-flow-table th,
.md-typeset .docs-flow-table td {
  vertical-align: top;
  overflow-wrap: break-word;
}
.md-typeset .docs-flow-table td:nth-child(4) code { white-space: nowrap; }

/* Scènes d'architecture : composants et fonctions, sans imposer leur hébergement. */
.md-typeset .arch-scene {
  container: architecture / inline-size;
  display: block;
  width: 100%;
  max-width: none;
  margin: 2rem 0;
  color: var(--color-text-default);
  text-align: left;
  font-size: 14px;
  line-height: 1.5;
}
.arch-scene *,
.arch-scene *::before,
.arch-scene *::after { box-sizing: border-box; }
.md-typeset .arch-scene figcaption {
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: none;
  margin: 0 0 20px;
  font-family: var(--gb-font-display);
  font-size: 18px;
  font-style: normal;
  font-weight: 600;
  line-height: 1.4;
  text-align: left;
}
.arch-index {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: none;
  border: 1px solid var(--color-border-default);
  border-radius: 50%;
  color: var(--color-action-primary);
  font: 14px var(--md-code-font);
}
.arch-scene figcaption small { display: block; margin-top: 3px; color: var(--color-text-subtle); font: 14px var(--md-text-font); }
.arch-map { position: relative; width: 100%; isolation: isolate; }
.arch-map--overview { height: 580px; }
.arch-map--functional { height: 560px; }
.arch-map::before {
  content: "";
  position: absolute;
  inset: 2% 8%;
  z-index: -1;
  background: radial-gradient(ellipse at 50% 50%, rgba(var(--gb-brand-rgb), .07), transparent 70%);
  pointer-events: none;
}
.arch-scene .arch-wires { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.arch-wires path { fill: none; stroke: var(--color-action-primary); stroke-width: 1.5; stroke-dasharray: 2 5; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.arch-wires circle { fill: var(--color-action-primary); }
.arch-wires .arch-session-wire { stroke: var(--color-text-muted); }
.arch-scene .arch-icon,
.arch-future .arch-icon { display: block; width: 26px; height: 26px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; color: var(--color-action-primary); }
.arch-endpoint { position: absolute; z-index: 1; display: flex; flex-direction: column; align-items: center; min-width: 0; text-align: center; }
.arch-orbit {
  position: relative;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  flex: none;
  border: 1px solid var(--color-border-default);
  border-radius: 50%;
  background: var(--color-page-background);
  box-shadow: 0 4px 16px rgba(var(--gb-brand-rgb), .08);
}
.arch-orbit--halo::after { content: ""; position: absolute; inset: -9px; border: 1px solid rgba(var(--gb-brand-rgb), .1); border-radius: 50%; }
.arch-endpoint > strong { max-width: 100%; margin-top: 12px; font-size: 15px; font-weight: 650; }
.arch-endpoint > span:not(.arch-orbit):not(.arch-status) { max-width: 100%; margin-top: 4px; color: var(--color-text-subtle); font-size: 14px; }
.arch-eyebrow { color: var(--color-action-primary); font-size: 14px; font-weight: 700; letter-spacing: .035em; text-transform: uppercase; }
.arch-eyebrow::before { content: ""; display: inline-block; width: 5px; height: 5px; margin: 0 7px 2px 0; border-radius: 50%; background: currentColor; }
.arch-core,
.arch-platform {
  position: absolute;
  top: 24px;
  left: 25%;
  width: 48%;
  border: 1px solid var(--color-border-default);
  border-radius: 18px;
  background: var(--color-surface);
  box-shadow: 0 14px 42px -20px rgba(var(--gb-brand-rgb), .22);
}
.arch-core { display: grid; grid-template-rows: 44px auto; height: auto; }
.arch-core-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 16px; }
.arch-core-heading > span:last-child { color: var(--color-text-subtle); font-size: 14px; text-align: right; }
.arch-core-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(2, auto); align-content: start; gap: 10px; padding: 0 14px 12px; }
.arch-unit {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 3px;
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--color-border-default);
  border-radius: 10px;
  background: var(--color-page-background);
}
.arch-unit .arch-icon { width: 20px; height: 20px; margin-bottom: 2px; }
.arch-unit strong { font-size: 15px; font-weight: 650; line-height: 1.3; }
.arch-unit > span { color: var(--color-text-subtle); font-size: 14px; line-height: 1.3; }
.arch-signature { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 10px 16px; border-top: 1px solid color-mix(in srgb, var(--color-border-default) 60%, var(--color-action-primary)); border-radius: 0 0 18px 18px; background: color-mix(in srgb, var(--color-page-background) 70%, transparent); }
.md-typeset .arch-signature img { width: 30px; height: 30px; flex: none; margin: 0; }
.arch-signature strong { display: block; font-family: var(--gb-font-display); font-size: 17px; font-weight: 650; letter-spacing: -.03em; }
.arch-signature span { display: block; color: var(--color-text-subtle); font-size: 14px; line-height: 1.4; }
.arch-web { top: 106px; left: 0; width: 17%; }
.arch-inference { top: 102px; left: 80.8%; width: 19%; }
.arch-records { top: 428px; left: 25%; width: 24%; }
.arch-files { top: 428px; left: 49%; width: 24%; }
.arch-status { display: inline-block; max-width: 100%; padding: 3px 8px; border: 1px solid var(--color-border-default); border-radius: 14px; background: var(--color-surface); color: var(--color-text-subtle); font-size: 14px; line-height: 1.4; }
.arch-endpoint > .arch-status { margin-top: 8px; }
.arch-relation-label { position: absolute; z-index: 2; width: max-content; max-width: 22%; padding: 2px 7px; transform: translateX(-50%); background: var(--color-page-background); color: var(--color-text-subtle); font-size: 14px; text-align: center; }
.arch-session-note { top: 442px; left: 21%; }
.arch-metadata-note { top: 442px; left: 49%; }
.arch-platform { display: grid; grid-template-rows: repeat(3, 120px) 96px 65px; }
.arch-function-band { display: flex; flex-direction: column; justify-content: center; gap: 8px; min-width: 0; padding: 12px 16px; border-bottom: 1px solid var(--color-border-default); }
.arch-capabilities { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; min-width: 0; }
.arch-capabilities > span { max-width: 100%; padding: 3px 9px; border: 1px solid var(--color-border-default); border-radius: 8px; background: var(--color-page-background); color: var(--color-text-default); font-size: 14px; font-weight: 550; line-height: 1.4; }
.md-typeset .arch-function-band p { margin: 0; color: var(--color-text-subtle); font-size: 14px; line-height: 1.4; }
.arch-context { display: flex; flex-direction: column; justify-content: center; gap: 5px; padding: 12px 16px; background: rgba(var(--gb-brand-rgb), .035); }
.arch-context strong { font-size: 15px; font-weight: 650; }
.arch-context > span { color: var(--color-text-subtle); font-size: 14px; line-height: 1.5; }
.arch-people { top: 62px; left: 0; width: 17%; }
.arch-apps { top: 182px; left: 0; width: 17%; }
.arch-admins { top: 302px; left: 0; width: 17%; }
.arch-model-resources { top: 86px; left: 80.8%; width: 19%; }
.arch-business-tools { top: 310px; left: 80.8%; width: 19%; }
.arch-future { display: flex; align-items: center; gap: 18px; margin: 28px 0; padding-top: 20px; border-top: 1px dashed var(--color-border-strong); }
.arch-future .arch-orbit { border-style: dashed; box-shadow: none; }
.arch-future-heading { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; }
.arch-future-heading strong { font-size: 16px; font-weight: 650; }
.md-typeset .arch-future p { margin: 7px 0 0; color: var(--color-text-subtle); font-size: 14px; line-height: 1.6; }
.arch-legend { padding-top: 18px; border-top: 1px solid var(--color-border-default); }
.arch-map--overview + .arch-legend { margin-top: 20px; }
.arch-legend > span { display: flex; align-items: center; gap: 9px; color: var(--color-text-default); font-size: 14px; font-weight: 550; }
.arch-legend i { display: inline-block; width: 22px; border-top: 2px dotted var(--color-action-primary); flex: none; }
.md-typeset .arch-legend p { margin: 7px 0 0; color: var(--color-text-subtle); font-size: 14px; line-height: 1.65; }

/* Le repli conserve les associations entre acteurs et fonctions dans le même DOM. */
@container architecture (max-width: 740px) {
  .arch-map { height: auto; padding: 16px 0 24px; }
  .arch-map .arch-wires { display: none; }
  .arch-map .arch-endpoint,
  .arch-map .arch-core,
  .arch-map .arch-platform { position: relative; inset: auto; width: 100%; }
  .arch-map--overview { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 20px; }
  .arch-web { grid-column: 1; grid-row: 1; }
  .arch-inference { grid-column: 2; grid-row: 1; }
  .arch-core { grid-column: 1 / -1; grid-row: 2; height: auto; margin-top: 40px; grid-template-rows: auto auto auto; }
  .arch-core::before { content: ""; position: absolute; top: -40px; left: 25%; right: 25%; height: 40px; border-left: 1px dashed var(--color-action-primary); border-right: 1px dashed var(--color-action-primary); }
  .arch-core::after { content: ""; position: absolute; top: 100%; left: 50%; height: 32px; border-left: 1px dashed var(--color-action-primary); }
  .arch-core-heading { min-height: 48px; padding: 12px 14px; }
  .arch-core-grid { grid-template-rows: repeat(2, auto); }
  .arch-unit { padding: 10px; }
  .arch-signature { min-height: 65px; padding: 10px 14px; }
  .arch-data-pair { position: relative; grid-column: 1 / -1; grid-row: 3; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 64px; background: repeating-linear-gradient(90deg, var(--color-text-muted) 0 2px, transparent 2px 5px) center 28px / calc(50% - 56px) 1px no-repeat; }
  .arch-data-pair::before { content: ""; position: absolute; top: -32px; left: 25%; right: 25%; height: 32px; border: 1px dashed var(--color-action-primary); border-bottom: 0; border-radius: 10px 10px 0 0; }
  .arch-relation-label { position: static; justify-self: center; max-width: 100%; margin-top: 14px; padding: 3px 7px; transform: none; }
  .arch-session-note { grid-column: 1; grid-row: 4; }
  .arch-metadata-note { grid-column: 2; grid-row: 4; }
  .arch-map--functional { display: grid; grid-template-columns: minmax(112px, .3fr) minmax(0, .7fr); gap: 14px 18px; }
  .arch-map--functional .arch-audience,
  .arch-map--functional .arch-platform { display: contents; }
  .arch-map--functional .arch-audience > .arch-endpoint { grid-column: 1; align-self: center; }
  .arch-people { grid-row: 1; }
  .arch-apps { grid-row: 2; }
  .arch-admins { grid-row: 3; }
  .arch-map--functional .arch-audience > .arch-endpoint::after { content: ""; position: absolute; top: 28px; left: calc(50% + 28px); right: -18px; z-index: -1; border-top: 1px dashed var(--color-action-primary); }
  .arch-function-band { grid-column: 2; min-height: 132px; padding: 14px 12px; border: 1px solid var(--color-border-default); border-radius: 12px; background: var(--color-surface); }
  .arch-function-band:nth-child(1) { grid-row: 1; }
  .arch-function-band:nth-child(2) { grid-row: 2; }
  .arch-function-band:nth-child(3) { grid-row: 3; }
  .arch-map--functional .arch-context { grid-column: 1 / -1; grid-row: 4; min-height: 84px; margin-top: 6px; border: 1px solid var(--color-border-default); border-radius: 12px 12px 0 0; }
  .arch-map--functional .arch-signature { grid-column: 1 / -1; grid-row: 5; margin-top: -14px; border: 1px solid var(--color-border-default); border-top-color: color-mix(in srgb, var(--color-border-default) 60%, var(--color-action-primary)); }
  .arch-resources { position: relative; grid-column: 1 / -1; grid-row: 6; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 40px; }
  .arch-resources::before { content: ""; position: absolute; top: -26px; left: 25%; right: 25%; height: 26px; border: 1px dashed var(--color-action-primary); border-bottom: 0; border-radius: 10px 10px 0 0; }
  .arch-resources::after { content: ""; position: absolute; top: -54px; left: 50%; height: 28px; border-left: 1px dashed var(--color-action-primary); }
  .arch-resources > .arch-endpoint { grid-row: 1; }
}
@container architecture (max-width: 420px) {
  .arch-map--functional { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .arch-map--functional .arch-audience > .arch-endpoint { display: grid; grid-template-columns: 56px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 16px; align-items: center; text-align: left; }
  .arch-map--functional .arch-audience .arch-orbit { grid-column: 1; grid-row: 1 / 3; }
  .arch-map--functional .arch-audience strong { grid-column: 2; grid-row: 1; align-self: end; margin-top: 0; }
  .arch-map--functional .arch-audience > .arch-endpoint > span:last-child { grid-column: 2; grid-row: 2; align-self: start; }
  .arch-map--functional .arch-audience > .arch-endpoint::after { top: 56px; bottom: -18px; left: 28px; right: auto; border-top: 0; border-left: 1px dashed var(--color-action-primary); }
  .arch-people { grid-row: 1; }
  .arch-apps { grid-row: 3; margin-top: 8px; }
  .arch-admins { grid-row: 5; margin-top: 8px; }
  .arch-function-band { grid-column: 1; min-height: 0; }
  .arch-function-band:nth-child(1) { grid-row: 2; }
  .arch-function-band:nth-child(2) { grid-row: 4; }
  .arch-function-band:nth-child(3) { grid-row: 6; }
  .arch-map--functional .arch-context { grid-row: 7; }
  .arch-map--functional .arch-signature { grid-row: 8; margin-top: -18px; }
  .arch-resources { grid-row: 9; }
}
@media print {
  .md-typeset .docs-flow-table { overflow: visible; }
  .md-typeset .docs-flow-table table { min-width: 0; }
  .arch-scene { break-inside: avoid; }
}

/* ============================================================
   WIDGET DE FEEDBACK (« Cette page vous a-t-elle aidé ? »)
   Inséré par extra.js, uniquement en production (analytics actifs)
   ============================================================ */
.page-feedback {
  margin: 2.5rem 0 0;
  padding: 1rem 1.2rem;
  border: 1px solid var(--gb-border);
  border-radius: 12px;
  background: var(--gb-sidebar-bg);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .8rem;
  font-size: .72rem;
}
.page-feedback__question {
  font-weight: 600;
  color: var(--md-default-fg-color);
  margin: 0;
}
.page-feedback__button {
  border: 1px solid var(--gb-border);
  border-radius: 8px;
  background: var(--md-default-bg-color);
  color: var(--md-default-fg-color);
  font: inherit;
  padding: .35rem .9rem;
  cursor: pointer;
  transition: border-color .15s, background-color .15s;
}
.page-feedback__button:hover {
  border-color: var(--md-primary-fg-color);
  background: var(--color-hover-surface);
}
.page-feedback__thanks {
  color: var(--md-default-fg-color--light);
  margin: 0;
}

/* ── Bouton scindé « Copier la page » + menu (inséré par extra.js) ── */
.page-copy {
  float: right;
  position: relative;
  display: inline-flex;
  margin: 0 0 .6rem 1rem;
}
.page-copy__main,
.page-copy__toggle {
  display: flex;
  align-items: center;
  border: 1px solid var(--gb-border);
  background: var(--md-default-bg-color);
  color: var(--md-default-fg-color--light);
  font: inherit;
  font-size: .62rem;
  padding: .25rem .45rem;
  cursor: pointer;
  transition: border-color .15s, color .15s, background-color .15s;
}
.page-copy__main {
  border-radius: 8px 0 0 8px;
}
/* Icône seule (le libellé est porté par aria-label / title) */
.page-copy__main svg {
  width: .8rem;
  height: .8rem;
  display: block;
}
.page-copy__main--ok {
  color: var(--md-primary-fg-color);
  border-color: var(--md-primary-fg-color);
}
.page-copy__toggle {
  border-radius: 0 8px 8px 0;
  border-left: none;
  padding: .25rem .45rem;
}
.page-copy__main:hover,
.page-copy__toggle:hover {
  border-color: var(--md-primary-fg-color);
  color: var(--md-default-fg-color);
  background: var(--color-hover-surface);
}
.page-copy__menu {
  position: absolute;
  top: calc(100% + .25rem);
  right: 0;
  min-width: 12rem;
  display: flex;
  flex-direction: column;
  padding: .25rem;
  background: var(--md-default-bg-color);
  border: 1px solid var(--gb-border);
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,.08), 0 1px 3px rgba(0,0,0,.06);
  z-index: 10;
}
.page-copy__menu[hidden] {
  display: none;
}
.page-copy__item {
  display: block;
  border: none;
  background: none;
  color: var(--md-default-fg-color);
  font: inherit;
  font-size: .62rem;
  text-align: left;
  padding: .35rem .6rem;
  border-radius: 6px;
  cursor: pointer;
}
.page-copy__item:hover {
  background: var(--color-hover-surface);
  color: var(--md-default-fg-color);
  text-decoration: none;
}
@media print {
  .page-copy,
  .page-feedback {
    display: none;
  }
}

/* Couverture sans colonnes ; navigation rétablie dans les pages du guide. */
.md-sidebar--primary[hidden] {
  display: none;
}
body:has(.docs-home) .md-header label[for="__drawer"] {
  display: none;
}
.md-content:has(.docs-home) {
  max-width: none;
}
.md-content__inner:has(.docs-home) {
  position: relative;
}
.md-content__inner:has(.docs-home) > .page-copy {
  position: absolute;
  top: -.5rem;
  right: 1.6rem;
  float: none;
}
.docs-home {
  padding-top: 1rem;
}
.md-typeset .docs-eyebrow {
  display: flex;
  align-items: center;
  gap: .5rem;
  color: var(--md-default-fg-color--light);
  font-size: .6rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.docs-eyebrow::before {
  content: "";
  width: 1.25rem;
  height: 2px;
  background: var(--gb-brand);
}
.docs-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-sizing: border-box;
  /* Toute la hauteur visible sous l'en-tête : la section suivante n'apparaît qu'au défilement. */
  min-height: calc(100svh - 5.3rem);
  padding: clamp(1.5rem, 5vw, 3.5rem) 0 clamp(5rem, 9vw, 6.5rem);
}
/* Astérisque de renvoi, visible dans les schémas comme dans le texte. */
.md-typeset .docs-mark {
  color: var(--gb-brand);
  font-weight: 700;
}
.md-typeset .docs-hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 1.2rem;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .35rem;
  color: var(--md-default-fg-color--light);
  font-size: .6rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  white-space: nowrap;
  text-decoration: none;
}
.md-typeset .docs-hero__scroll:is(:hover, :focus-visible) {
  color: var(--gb-brand);
}
.docs-hero__chevrons {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.docs-hero__chevrons svg {
  width: 1.1rem;
  height: 1.1rem;
  opacity: 0;
  animation: docs-hero-chevron 1.8s ease-in-out infinite;
}
.docs-hero__chevrons svg + svg {
  margin-top: -.6rem;
  animation-delay: .3s;
}
@keyframes docs-hero-chevron {
  0% { opacity: 0; transform: translateY(-.35rem); }
  40% { opacity: 1; }
  80%, 100% { opacity: 0; transform: translateY(.35rem); }
}
@media (prefers-reduced-motion: reduce) {
  .docs-hero__chevrons svg {
    animation: none;
    opacity: .8;
  }
}
.docs-hero__copy {
  max-width: 49rem;
}
.md-typeset .docs-hero h1 {
  font-size: clamp(2.1rem, 5.3vw, 4.1rem);
  line-height: 1.08;
  font-weight: 550;
  letter-spacing: -.055em;
  margin: 1rem 0 1.1rem;
}
.md-typeset .docs-hero h1 span {
  color: var(--md-primary-fg-color);
}
.md-typeset .docs-hero h1 .docs-hero__logo {
  display: block;
  height: 1.5em;
  width: auto;
}
.docs-hero h1 .headerlink {
  display: none;
}
.md-typeset .docs-hero__lead {
  font-size: .92rem;
  line-height: 1.75;
  max-width: 66ch;
  margin: 0 0 1.6rem;
}
.docs-hero__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .65rem 1rem;
}
.docs-hero__actions > p {
  display: contents;
}
.docs-hero__actions .md-button {
  margin: 0;
  font-size: .7rem;
  padding: .65rem .9rem;
}
.md-typeset .docs-hero__secondary {
  color: var(--md-default-fg-color);
  font-size: .7rem;
  font-weight: 550;
  text-decoration: underline;
  text-decoration-color: var(--gb-border);
  text-underline-offset: .25rem;
}
.md-typeset .docs-hero__platforms {
  font-size: .64rem;
  margin: 1.3rem 0 0;
  color: var(--md-default-fg-color--light);
}

/* Parcours et accès directs. */
.md-typeset .docs-home h2 {
  border: 0;
  margin: 0 0 1.1rem;
  padding: 0;
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: -.03em;
}
.docs-journey {
  padding: 1.8rem 0 2rem;
  border-top: 1px solid var(--gb-border);
}
.docs-journey__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .8rem;
}
.docs-stage {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  border: 1px solid var(--gb-border);
  border-radius: 10px;
  padding: 1.1rem;
  background: var(--md-default-bg-color);
  transition: border-color .18s;
}
.docs-stage:hover {
  border-color: var(--gb-brand);
}
.md-typeset .docs-stage__number {
  display: block;
  color: var(--md-primary-fg-color);
  font-family: var(--md-code-font);
  font-size: .62rem;
  font-weight: 400;
  margin: 0 0 .7rem;
}
.md-typeset .docs-stage h3 {
  margin: 0 0 .45rem;
  font-size: .95rem;
  font-weight: 550;
}
.md-typeset .docs-stage p:not(.docs-stage__number) {
  margin: 0 0 1rem;
  font-size: .71rem;
  line-height: 1.7;
}
.md-typeset .docs-stage a {
  margin-top: auto;
  color: var(--md-default-fg-color);
  font-size: .66rem;
  font-weight: 600;
}
.md-typeset .docs-stage > p:last-child {
  margin: auto 0 0;
}
.docs-stage a .twemoji {
  margin-left: .25rem;
  color: var(--md-primary-fg-color);
}
.docs-resources {
  padding: 1.2rem 0 1.8rem;
}
.docs-resources__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 1.5rem;
}
.md-typeset .docs-resources__grid > p {
  margin: 0;
}
.md-typeset .docs-resources__grid a {
  display: flex;
  align-items: center;
  gap: .7rem;
  border-bottom: 1px solid var(--gb-border);
  padding: .85rem 0;
  color: var(--md-default-fg-color);
  font-size: .72rem;
}
.docs-resources__grid a .twemoji:first-child {
  color: var(--md-primary-fg-color);
}
.docs-resources__grid a .twemoji:last-child {
  margin-left: auto;
  width: .8rem;
  height: .8rem;
}
.docs-support {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  border-left: 3px solid var(--gb-brand);
  background: var(--gb-sidebar-bg);
  padding: 1rem 1.2rem;
}
.md-typeset .docs-support h2 {
  font-size: .82rem;
  margin: 0 0 .3rem;
}
.md-typeset .docs-support p {
  font-size: .68rem;
  margin: 0;
}
.md-typeset .docs-support > p {
  flex-shrink: 0;
}
.md-typeset .docs-support a {
  font-weight: 600;
}
.md-typeset .docs-home__context {
  font-size: .64rem;
  line-height: 1.7;
  margin: 1.2rem 0 0;
}

/* Les versions rythment la lecture ; le sommaire permet de les rejoindre. */
.md-typeset .release-history {
  border-left: 1px solid var(--gb-border);
  margin: 2rem 0 0 .25rem;
  padding-left: 1.25rem;
}
.md-typeset .release-history h2 {
  position: relative;
  border: 0;
  border-top: 1px solid var(--gb-border);
  padding-top: 1.5rem;
  margin: 2.5rem 0 1.2rem;
  color: var(--md-default-fg-color);
  font-family: var(--md-code-font);
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: -.04em;
}
.md-typeset .release-history h2:first-child {
  border-top: 0;
  padding-top: 0;
  margin-top: 0;
}
.md-typeset .release-history h2::before {
  content: "";
  position: absolute;
  top: 2rem;
  left: -1.47rem;
  width: .4rem;
  height: .4rem;
  border-radius: 50%;
  background: var(--gb-brand);
  box-shadow: 0 0 0 5px var(--md-default-bg-color);
}
.md-typeset .release-history h2:first-child::before {
  top: .5rem;
}
.md-typeset .release-history h3 {
  font-size: .79rem;
  margin: 1.2rem 0 .45rem;
}
.md-typeset .release-history ul {
  margin-top: .45rem;
}
body:has(.release-history) .md-nav--secondary > .md-nav__list > .md-nav__item > .md-nav {
  display: none;
}

/* Interactions au clavier et petits écrans. */
a:focus-visible,
button:focus-visible,
summary:focus-visible,
.md-nav__link:focus-visible {
  outline: 2px solid var(--md-primary-fg-color);
  outline-offset: 4px;
}
.md-typeset .tabbed-labels > label {
  color: var(--md-default-fg-color--light);
}
/* Les panneaux partagent la hauteur maximale sans exposer les onglets masqués. */
@media screen {
  .md-typeset .tabbed-alternate > .tabbed-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }
  .md-typeset .tabbed-alternate > .tabbed-content > .tabbed-block {
    display: block;
    grid-area: 1 / 1;
    align-self: start;
    min-width: 0;
    visibility: hidden;
    pointer-events: none;
  }
  /* L’héritage garde invisibles les groupes imbriqués dans un panneau masqué. */
  .md-typeset .tabbed-alternate > input:nth-child(1):checked ~ .tabbed-content > :nth-child(1),
  .md-typeset .tabbed-alternate > input:nth-child(2):checked ~ .tabbed-content > :nth-child(2),
  .md-typeset .tabbed-alternate > input:nth-child(3):checked ~ .tabbed-content > :nth-child(3),
  .md-typeset .tabbed-alternate > input:nth-child(4):checked ~ .tabbed-content > :nth-child(4),
  .md-typeset .tabbed-alternate > input:nth-child(5):checked ~ .tabbed-content > :nth-child(5),
  .md-typeset .tabbed-alternate > input:nth-child(6):checked ~ .tabbed-content > :nth-child(6),
  .md-typeset .tabbed-alternate > input:nth-child(7):checked ~ .tabbed-content > :nth-child(7),
  .md-typeset .tabbed-alternate > input:nth-child(8):checked ~ .tabbed-content > :nth-child(8),
  .md-typeset .tabbed-alternate > input:nth-child(9):checked ~ .tabbed-content > :nth-child(9),
  .md-typeset .tabbed-alternate > input:nth-child(10):checked ~ .tabbed-content > :nth-child(10),
  .md-typeset .tabbed-alternate > input:nth-child(11):checked ~ .tabbed-content > :nth-child(11),
  .md-typeset .tabbed-alternate > input:nth-child(12):checked ~ .tabbed-content > :nth-child(12),
  .md-typeset .tabbed-alternate > input:nth-child(13):checked ~ .tabbed-content > :nth-child(13),
  .md-typeset .tabbed-alternate > input:nth-child(14):checked ~ .tabbed-content > :nth-child(14),
  .md-typeset .tabbed-alternate > input:nth-child(15):checked ~ .tabbed-content > :nth-child(15),
  .md-typeset .tabbed-alternate > input:nth-child(16):checked ~ .tabbed-content > :nth-child(16),
  .md-typeset .tabbed-alternate > input:nth-child(17):checked ~ .tabbed-content > :nth-child(17),
  .md-typeset .tabbed-alternate > input:nth-child(18):checked ~ .tabbed-content > :nth-child(18),
  .md-typeset .tabbed-alternate > input:nth-child(19):checked ~ .tabbed-content > :nth-child(19),
  .md-typeset .tabbed-alternate > input:nth-child(20):checked ~ .tabbed-content > :nth-child(20) {
    visibility: inherit;
    pointer-events: inherit;
  }
}
@media screen and (max-width: 760px) {
  .md-header__button.md-logo { display: flex; margin-right: auto; }
  .md-header__button.md-logo img { width: 5rem; height: auto; }
  .md-header__title { display: none; }
  .md-content__inner { padding: 0 .35rem 2rem; }
  /* Les onglets restent dans la largeur du contenu sur mobile. */
  .md-typeset .tabbed-labels { width: 100%; margin-inline: 0; }
  .md-content__inner:has(.docs-home) > .page-copy { right: .35rem; }
  .md-typeset .docs-hero h1 { font-size: clamp(2rem, 7.2vw, 3rem); }
  .md-typeset .docs-hero__lead { font-size: .83rem; }
  .docs-journey__grid, .docs-resources__grid { grid-template-columns: 1fr; }
  .docs-stage { padding: 1rem; }
  .docs-stage a { margin-top: .25rem; }
  .docs-support { align-items: flex-start; flex-direction: column; gap: .7rem; }
  .md-typeset table:not([class]) th,
  .md-typeset table:not([class]) td { padding: .6rem .7rem; }
}
@media (prefers-reduced-motion: reduce) {
  .md-nav, .md-nav__icon, .docs-stage, .md-button { transition: none !important; }
}
@media print {
  .docs-hero { display: block; }
  .docs-stage, .docs-support { break-inside: avoid; }
}

/* ============================================================
   INVITES DE COMMANDE
   ============================================================ */
/* Invite affichée devant chaque ligne des blocs de commandes : « $ » en bash,
   « PS> » en PowerShell, « > » en cmd. Chaque ligne est une balise
   <span id="__span-N-M"> (pymdownx.highlight: line_spans) ; l'invite n'existe
   qu'en pseudo-élément, hors du DOM : ni le bouton de copie (innerText) ni une
   sélection à la souris ne la reprennent. Un bloc de commandes ne contient donc
   que des commandes, une par ligne. */
.md-typeset .language-bash code > span[id^="__span"]::before,
.md-typeset .language-powershell code > span[id^="__span"]::before,
.md-typeset .language-bat code > span[id^="__span"]::before {
  color: var(--md-default-fg-color--light);
  -webkit-user-select: none;
  user-select: none;
  pointer-events: none;
}
.md-typeset .language-bash code > span[id^="__span"]::before { content: "$ "; }
.md-typeset .language-powershell code > span[id^="__span"]::before { content: "PS> "; }
.md-typeset .language-bat code > span[id^="__span"]::before { content: "> "; }
/* Sans invite : code des scripts (encadrés « Code du script ») et blocs qui ne
   sont pas une suite de commandes, marqués { .powershell .no-prompt }. */
.md-typeset details.abstract code > span[id^="__span"]::before,
.md-typeset .no-prompt code > span[id^="__span"]::before {
  content: none;
}

/* ============================================================
   ONGLETS À HAUTEUR NATURELLE
   ============================================================ */
/* Exception à la hauteur réservée des groupes d'onglets (« Les panneaux
   partagent la hauteur maximale », plus haut) : dans un conteneur
   <div class="tabs-natural" markdown>, seul le panneau actif occupe la place,
   et le groupe prend sa hauteur. Réservé à la matrice des flux de la page
   Réseau (demande du 23/10/2026). Écran seulement : l'impression reste native. */
@media screen {
  .md-typeset .tabs-natural > .tabbed-alternate > .tabbed-content > .tabbed-block {
    display: none;
  }
  .md-typeset .tabs-natural > .tabbed-alternate > input:nth-child(1):checked ~ .tabbed-content > :nth-child(1),
  .md-typeset .tabs-natural > .tabbed-alternate > input:nth-child(2):checked ~ .tabbed-content > :nth-child(2),
  .md-typeset .tabs-natural > .tabbed-alternate > input:nth-child(3):checked ~ .tabbed-content > :nth-child(3),
  .md-typeset .tabs-natural > .tabbed-alternate > input:nth-child(4):checked ~ .tabbed-content > :nth-child(4),
  .md-typeset .tabs-natural > .tabbed-alternate > input:nth-child(5):checked ~ .tabbed-content > :nth-child(5),
  .md-typeset .tabs-natural > .tabbed-alternate > input:nth-child(6):checked ~ .tabbed-content > :nth-child(6),
  .md-typeset .tabs-natural > .tabbed-alternate > input:nth-child(7):checked ~ .tabbed-content > :nth-child(7),
  .md-typeset .tabs-natural > .tabbed-alternate > input:nth-child(8):checked ~ .tabbed-content > :nth-child(8),
  .md-typeset .tabs-natural > .tabbed-alternate > input:nth-child(9):checked ~ .tabbed-content > :nth-child(9),
  .md-typeset .tabs-natural > .tabbed-alternate > input:nth-child(10):checked ~ .tabbed-content > :nth-child(10),
  .md-typeset .tabs-natural > .tabbed-alternate > input:nth-child(11):checked ~ .tabbed-content > :nth-child(11),
  .md-typeset .tabs-natural > .tabbed-alternate > input:nth-child(12):checked ~ .tabbed-content > :nth-child(12),
  .md-typeset .tabs-natural > .tabbed-alternate > input:nth-child(13):checked ~ .tabbed-content > :nth-child(13),
  .md-typeset .tabs-natural > .tabbed-alternate > input:nth-child(14):checked ~ .tabbed-content > :nth-child(14),
  .md-typeset .tabs-natural > .tabbed-alternate > input:nth-child(15):checked ~ .tabbed-content > :nth-child(15),
  .md-typeset .tabs-natural > .tabbed-alternate > input:nth-child(16):checked ~ .tabbed-content > :nth-child(16),
  .md-typeset .tabs-natural > .tabbed-alternate > input:nth-child(17):checked ~ .tabbed-content > :nth-child(17),
  .md-typeset .tabs-natural > .tabbed-alternate > input:nth-child(18):checked ~ .tabbed-content > :nth-child(18),
  .md-typeset .tabs-natural > .tabbed-alternate > input:nth-child(19):checked ~ .tabbed-content > :nth-child(19),
  .md-typeset .tabs-natural > .tabbed-alternate > input:nth-child(20):checked ~ .tabbed-content > :nth-child(20) {
    display: block;
  }
}

/* Frise des étapes d'une procédure : horizontale, verticale sur téléphone. */
.md-typeset ol.docs-timeline {
  display: grid;
  grid-auto-columns: minmax(0, 1fr);
  grid-auto-flow: column;
  margin: 1.2em 0 1.6em;
  padding: 1rem 0 0;
  list-style: none;
  counter-reset: docs-step;
}

.md-typeset ol.docs-timeline li {
  position: relative;
  margin: 0;
  padding: 2.5rem .4rem 0;
  text-align: center;
  counter-increment: docs-step;
}

.md-typeset ol.docs-timeline li::before {
  content: counter(docs-step);
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 1;
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 50%;
  background: var(--gb-brand);
  color: var(--color-action-primary-text);
  font-size: .8rem;
  font-weight: 700;
  line-height: 1.8rem;
  text-align: center;
  transform: translateX(-50%);
}

.md-typeset ol.docs-timeline li + li::after {
  content: "";
  position: absolute;
  top: calc(.9rem - 1px);
  right: 50%;
  width: 100%;
  height: 2px;
  background: color-mix(in srgb, var(--gb-brand) 35%, transparent);
}

.md-typeset ol.docs-timeline a {
  display: block;
  color: var(--md-default-fg-color);
  font-weight: 600;
}

.md-typeset ol.docs-timeline a:is(:hover, :focus-visible) {
  color: var(--color-action-primary);
  text-decoration: none;
}

.md-typeset ol.docs-timeline a:is(:hover, :focus-visible) small {
  color: inherit;
}

.md-typeset ol.docs-timeline small {
  display: block;
  color: var(--color-text-subtle);
  font-size: .7rem;
  font-weight: 400;
}

@media screen and (max-width: 37.5em) {
  .md-typeset ol.docs-timeline {
    grid-auto-flow: row;
    grid-template-columns: 1fr;
  }

  .md-typeset ol.docs-timeline li {
    padding: .1rem 0 1rem 2.7rem;
    text-align: left;
  }

  .md-typeset ol.docs-timeline li::before {
    left: 0;
    transform: none;
  }

  .md-typeset ol.docs-timeline li + li::after {
    content: none;
  }

  .md-typeset ol.docs-timeline li:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 1.8rem;
    bottom: 0;
    right: auto;
    left: calc(.9rem - 1px);
    width: 2px;
    height: auto;
    background: color-mix(in srgb, var(--gb-brand) 35%, transparent);
  }
}

/* Texte lu par les lecteurs d'écran et l'index de recherche, masqué à l'écran (nom porté par le logo de l'accueil). */
.md-typeset .docs-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Onglets verticaux : une rubrique par élément, toutes à réaliser (unités des services).
   Libellés numérotés empilés à gauche, contenu à droite ; libellés au-dessus sur téléphone. */
.md-typeset .docs-vtabs > .tabbed-set {
  display: grid;
  grid-template-columns: minmax(9rem, max-content) minmax(0, 1fr);
  align-items: start;
  column-gap: 1rem;
  counter-reset: docs-vtab;
}

.md-typeset .docs-vtabs > .tabbed-set > .tabbed-labels {
  grid-column: 1;
  flex-direction: column;
  overflow: visible;
  box-shadow: -.05rem 0 var(--md-default-fg-color--lightest) inset;
}

.md-typeset .docs-vtabs > .tabbed-set > .tabbed-labels::before,
.md-typeset .docs-vtabs > .tabbed-set > .tabbed-control {
  display: none;
}

.md-typeset .docs-vtabs > .tabbed-set > .tabbed-labels > label {
  display: flex;
  align-items: center;
  gap: .6em;
  padding: .55em 1em .55em .2em;
  border-bottom: 0;
  border-right: .1rem solid transparent;
  border-radius: 0;
  counter-increment: docs-vtab;
}

.md-typeset .docs-vtabs > .tabbed-set > .tabbed-labels > label::before {
  content: counter(docs-vtab);
  flex: none;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: color-mix(in srgb, var(--gb-brand) 18%, transparent);
  color: var(--md-default-fg-color);
  font-size: .65rem;
  font-weight: 700;
  line-height: 1.5rem;
  text-align: center;
}

.md-typeset .docs-vtabs > .tabbed-set > input:nth-child(1):checked ~ .tabbed-labels > :nth-child(1),
.md-typeset .docs-vtabs > .tabbed-set > input:nth-child(2):checked ~ .tabbed-labels > :nth-child(2),
.md-typeset .docs-vtabs > .tabbed-set > input:nth-child(3):checked ~ .tabbed-labels > :nth-child(3),
.md-typeset .docs-vtabs > .tabbed-set > input:nth-child(4):checked ~ .tabbed-labels > :nth-child(4),
.md-typeset .docs-vtabs > .tabbed-set > input:nth-child(5):checked ~ .tabbed-labels > :nth-child(5),
.md-typeset .docs-vtabs > .tabbed-set > input:nth-child(6):checked ~ .tabbed-labels > :nth-child(6) {
  border-right-color: var(--gb-brand);
  color: var(--md-default-fg-color);
  font-weight: 600;
}

.md-typeset .docs-vtabs > .tabbed-set > input:nth-child(1):checked ~ .tabbed-labels > :nth-child(1)::before,
.md-typeset .docs-vtabs > .tabbed-set > input:nth-child(2):checked ~ .tabbed-labels > :nth-child(2)::before,
.md-typeset .docs-vtabs > .tabbed-set > input:nth-child(3):checked ~ .tabbed-labels > :nth-child(3)::before,
.md-typeset .docs-vtabs > .tabbed-set > input:nth-child(4):checked ~ .tabbed-labels > :nth-child(4)::before,
.md-typeset .docs-vtabs > .tabbed-set > input:nth-child(5):checked ~ .tabbed-labels > :nth-child(5)::before,
.md-typeset .docs-vtabs > .tabbed-set > input:nth-child(6):checked ~ .tabbed-labels > :nth-child(6)::before {
  background: var(--gb-brand);
  color: var(--color-action-primary-text);
}

.md-typeset .docs-vtabs > .tabbed-set > .tabbed-content {
  grid-column: 2;
}

.md-typeset .docs-vtabs > .tabbed-set > .tabbed-content > .tabbed-block > :first-child {
  margin-top: .55em;
}

@media screen and (max-width: 44.9375em) {
  .md-typeset .docs-vtabs > .tabbed-set {
    grid-template-columns: minmax(0, 1fr);
  }

  .md-typeset .docs-vtabs > .tabbed-set > .tabbed-labels {
    box-shadow: 0 -.05rem var(--md-default-fg-color--lightest) inset;
  }

  .md-typeset .docs-vtabs > .tabbed-set > .tabbed-content {
    grid-column: 1;
  }
}
