/* ============================================================================
   Wikis Créasit — CSS injecté commun (BookStack 26.05.3)
   Identique sur les deux instances. Lit les variables --wk-* déclarées par
   en-tete-wiki-creasit.html ou en-tete-wiki-interne.html.
   Base : commun.css de la passation Claude Design (24/10/2026), sélecteurs relevés
   et corrigés sur 26.05.3 (cf. RELEVE-26.05.3.md). À revérifier à chaque mise à jour.

   Préfixe « html:root » : il donne à une règle la spécificité des règles natives
   « html.dark-mode … » de BookStack, que la feuille doit battre dans les deux thèmes.

   Gabarit HTML de la page d'accueil (éditeur source) :
   <div class="wk-hero"><h1>…</h1><p>…</p>
     <p class="wk-quick"><strong>On nous demande souvent</strong> <a href="…">…</a> <a href="…">…</a></p></div>
   <h2>Par où commencer</h2>
   <div class="wk-cards">
     <a class="wk-card wk-ico-modules" href="…"><strong>Modules et fonctionnalités</strong><span>Une fiche par…</span></a>
   </div>
   <h2>Raccourcis</h2>   (wiki interne)
   <ul class="wk-links"><li><a href="…">Mettre un site en production <small>DÉV.</small></a></li>…</ul>
   Classes wk-ico-* : premiers, modules, assistant, pratiques · systeme, commercial, comptabilite,
   developpement, formation, projet, graphisme, integration, general.
   ============================================================================ */

/* Pictogrammes : jeu au trait (Lucide) posé par le Theme System, dossier icons/ (theme-icones/ du dépôt) ; le trait suit currentColor,
   toute règle qui ne colorait une icône que par « fill » doit aussi poser « color ». */

/* ---- Polices auto-hébergées (aucun appel tiers) ---- */
@font-face{font-family:'Figtree';font-style:normal;font-weight:400 800;font-display:swap;src:url(/uploads/creasit/fonts/figtree-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:'Figtree';font-style:normal;font-weight:400 800;font-display:swap;src:url(/uploads/creasit/fonts/figtree-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1E00-1E9F,U+20A0-20AB,U+20AD-20C0,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:'JetBrains Mono';font-style:normal;font-weight:400 700;font-display:swap;src:url(/uploads/creasit/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+2000-206F,U+20AC,U+2122,U+2212,U+FEFF,U+FFFD}
@font-face{font-family:'JetBrains Mono';font-style:normal;font-weight:400 700;font-display:swap;src:url(/uploads/creasit/fonts/jetbrains-mono-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+1E00-1E9F,U+20A0-20C0,U+2C60-2C7F,U+A720-A7FF}

/* ---- Socle (valeurs de tokens/themes.css, tokens/states.css) ---- */
:root{
  --cs-canvas:#F7F6F3;--cs-surface:#FFFFFF;--cs-sunken:#E2E5E9;
  --cs-ink:#011C2F;--cs-muted:#4A5560;--cs-line:#E2E5E9;--cs-line-strong:#6B7785;
  --cs-r-xs:4px;--cs-r-badge:7px;--cs-r-sm:10px;--cs-r-md:14px;--cs-r-full:999px;
  --cs-pop:0 8px 28px rgba(1,28,47,.18);
  --code-surface:#0A1722;--code-ink:#C9CFDD;--code-faint:#5C6478;--code-line:#3A4358;--code-key:#9DB4FF;--code-val:#A8E6B0;--code-var:#7FDBC7;--code-note:#7B87A0;--code-bright:#F7F6F3;
  --ink-pen:#E5484D;
  /* variables natives que l'écran Personnalisation n'expose pas */
  --color-positive:var(--wk-ok);--color-negative:var(--wk-err);--color-info:var(--wk-info);--color-warning:var(--wk-warn);
  --font-body:'Figtree',-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif;
  --font-heading:var(--font-body);
  --font-code:'JetBrains Mono',ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
  /* pictogrammes au trait (masques) */
  --wk-i-info:url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2024%2024'%20fill%3D'none'%20stroke%3D'%23000'%20stroke-width%3D'2'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%3E%3Ccircle%20cx%3D'12'%20cy%3D'12'%20r%3D'10'%2F%3E%3Cpath%20d%3D'M12%2016v-4M12%208h.01'%2F%3E%3C%2Fsvg%3E");
  --wk-i-ok:url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2024%2024'%20fill%3D'none'%20stroke%3D'%23000'%20stroke-width%3D'2'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%3E%3Ccircle%20cx%3D'12'%20cy%3D'12'%20r%3D'10'%2F%3E%3Cpath%20d%3D'm9%2012%202%202%204-4'%2F%3E%3C%2Fsvg%3E");
  --wk-i-warn:url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2024%2024'%20fill%3D'none'%20stroke%3D'%23000'%20stroke-width%3D'2'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%3E%3Cpath%20d%3D'M10.3%203.9%201.8%2018a2%202%200%200%200%201.7%203h17a2%202%200%200%200%201.7-3L13.7%203.9a2%202%200%200%200-3.4%200ZM12%209v4M12%2017h.01'%2F%3E%3C%2Fsvg%3E");
  --wk-i-err:url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2024%2024'%20fill%3D'none'%20stroke%3D'%23000'%20stroke-width%3D'2'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%3E%3Ccircle%20cx%3D'12'%20cy%3D'12'%20r%3D'10'%2F%3E%3Cpath%20d%3D'M12%208v4M12%2016h.01'%2F%3E%3C%2Fsvg%3E");
  --wk-i-chevron:url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2024%2024'%20fill%3D'none'%20stroke%3D'%23000'%20stroke-width%3D'2'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%3E%3Cpath%20d%3D'm9%2018%206-6-6-6'%2F%3E%3C%2Fsvg%3E");
  --wk-i-chevron-muted:url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2024%2024'%20fill%3D'none'%20stroke%3D'%238793A0'%20stroke-width%3D'2'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%3E%3Cpath%20d%3D'm9%2018%206-6-6-6'%2F%3E%3C%2Fsvg%3E");
  --wk-i-search:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27%23000%27%20stroke-width%3D%272%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Ccircle%20cx%3D%2711%27%20cy%3D%2711%27%20r%3D%277%27%2F%3E%3Cpath%20d%3D%27m20%2020-3.5-3.5%27%2F%3E%3C%2Fsvg%3E");
  --wk-i-library:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27%23000%27%20stroke-width%3D%272%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%27m16%206%204%2014%27%2F%3E%3Cpath%20d%3D%27M12%206v14%27%2F%3E%3Cpath%20d%3D%27M8%208v12%27%2F%3E%3Cpath%20d%3D%27M4%204v16%27%2F%3E%3C%2Fsvg%3E");
  --wk-i-book:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27%23000%27%20stroke-width%3D%272%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%27M4%2019.5v-15A2.5%202.5%200%200%201%206.5%202H20v20H6.5a2.5%202.5%200%200%201%200-5H20%27%2F%3E%3C%2Fsvg%3E");
  --wk-i-sliders:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27%23000%27%20stroke-width%3D%272%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%27M4%2021v-7M4%2010V3M12%2021v-9M12%208V3M20%2021v-5M20%2012V3M1%2014h6M9%208h6M17%2016h6%27%2F%3E%3C%2Fsvg%3E");
  --wk-i-user:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27%23000%27%20stroke-width%3D%272%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Ccircle%20cx%3D%2712%27%20cy%3D%278%27%20r%3D%274%27%2F%3E%3Cpath%20d%3D%27M4%2021a8%208%200%200%201%2016%200%27%2F%3E%3C%2Fsvg%3E");
  --wk-i-chevron-down:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27%23000%27%20stroke-width%3D%272%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%27m6%209%206%206%206-6%27%2F%3E%3C%2Fsvg%3E");
  --wk-i-login:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27%23000%27%20stroke-width%3D%272%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%27M15%203h4a2%202%200%200%201%202%202v14a2%202%200%200%201-2%202h-4%27%2F%3E%3Cpath%20d%3D%27m10%2017%205-5-5-5%27%2F%3E%3Cpath%20d%3D%27M15%2012H3%27%2F%3E%3C%2Fsvg%3E");
  --wk-i-star:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27%23000%27%20stroke-width%3D%272%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%27m12%202%203.1%206.3%206.9%201-5%204.9%201.2%206.8L12%2017.8%205.8%2021l1.2-6.8-5-4.9%206.9-1Z%27%2F%3E%3C%2Fsvg%3E");
  --wk-i-moon:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27%23000%27%20stroke-width%3D%272%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%27M12%203a6%206%200%200%200%209%209%209%209%200%201%201-9-9Z%27%2F%3E%3C%2Fsvg%3E");
  --wk-i-sun:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27%23000%27%20stroke-width%3D%272%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Ccircle%20cx%3D%2712%27%20cy%3D%2712%27%20r%3D%274%27%2F%3E%3Cpath%20d%3D%27M12%202v2M12%2020v2M4.93%204.93l1.41%201.41M17.66%2017.66l1.41%201.41M2%2012h2M20%2012h2M6.34%2017.66l-1.41%201.41M19.07%204.93l-1.41%201.41%27%2F%3E%3C%2Fsvg%3E");
  --wk-i-logout:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27%23000%27%20stroke-width%3D%272%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%27M9%2021H5a2%202%200%200%201-2-2V5a2%202%200%200%201%202-2h4%27%2F%3E%3Cpath%20d%3D%27m16%2017%205-5-5-5%27%2F%3E%3Cpath%20d%3D%27M21%2012H9%27%2F%3E%3C%2Fsvg%3E");
  --wk-i-plus:url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%2024%2024%27%20fill%3D%27none%27%20stroke%3D%27%23000%27%20stroke-width%3D%272%27%20stroke-linecap%3D%27round%27%20stroke-linejoin%3D%27round%27%3E%3Cpath%20d%3D%27M5%2012h14%27%2F%3E%3Cpath%20d%3D%27M12%205v14%27%2F%3E%3C%2Fsvg%3E");
  --wk-ico-premiers:url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2024%2024'%20fill%3D'none'%20stroke%3D'%23000'%20stroke-width%3D'2'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%3E%3Cpath%20d%3D'M5%203l14%209-14%209V3z'%2F%3E%3C%2Fsvg%3E");
  --wk-ico-modules:url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2024%2024'%20fill%3D'none'%20stroke%3D'%23000'%20stroke-width%3D'2'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%3E%3Cpath%20d%3D'M3%203h7v7H3zM14%203h7v7h-7zM3%2014h7v7H3zM14%2014h7v7h-7z'%2F%3E%3C%2Fsvg%3E");
  --wk-ico-assistant:url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2024%2024'%20fill%3D'none'%20stroke%3D'%23000'%20stroke-width%3D'2'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%3E%3Cpath%20d%3D'M21%2015a2%202%200%200%201-2%202H7l-4%204V5a2%202%200%200%201%202-2h14a2%202%200%200%201%202%202z'%2F%3E%3C%2Fsvg%3E");
  --wk-ico-pratiques:url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2024%2024'%20fill%3D'none'%20stroke%3D'%23000'%20stroke-width%3D'2'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%3E%3Cpath%20d%3D'M12%202a10%2010%200%201%200%200%2020%2010%2010%200%200%200%200-20ZM9%2012l2%202%204-4'%2F%3E%3C%2Fsvg%3E");
  --wk-ico-systeme:url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2024%2024'%20fill%3D'none'%20stroke%3D'%23000'%20stroke-width%3D'2'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%3E%3Cpath%20d%3D'M2%204h20v6H2zM2%2014h20v6H2zM6%207h.01M6%2017h.01'%2F%3E%3C%2Fsvg%3E");
  --wk-ico-commercial:url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2024%2024'%20fill%3D'none'%20stroke%3D'%23000'%20stroke-width%3D'2'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%3E%3Cpath%20d%3D'M3%207h18v13H3zM8%207V5a2%202%200%200%201%202-2h4a2%202%200%200%201%202%202v2M3%2013h18'%2F%3E%3C%2Fsvg%3E");
  --wk-ico-comptabilite:url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2024%2024'%20fill%3D'none'%20stroke%3D'%23000'%20stroke-width%3D'2'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%3E%3Cpath%20d%3D'M5%202h14v20H5zM8%206h8M8%2011h.01M12%2011h.01M16%2011h.01M8%2015h.01M12%2015h.01M16%2015h.01M8%2019h8'%2F%3E%3C%2Fsvg%3E");
  --wk-ico-developpement:url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2024%2024'%20fill%3D'none'%20stroke%3D'%23000'%20stroke-width%3D'2'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%3E%3Cpath%20d%3D'm16%2018%206-6-6-6M8%206l-6%206%206%206'%2F%3E%3C%2Fsvg%3E");
  --wk-ico-formation:url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2024%2024'%20fill%3D'none'%20stroke%3D'%23000'%20stroke-width%3D'2'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%3E%3Cpath%20d%3D'M22%2010%2012%205%202%2010l10%205%2010-5ZM6%2012v5c3%202%209%202%2012%200v-5'%2F%3E%3C%2Fsvg%3E");
  --wk-ico-projet:url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2024%2024'%20fill%3D'none'%20stroke%3D'%23000'%20stroke-width%3D'2'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%3E%3Cpath%20d%3D'M3%205h18v16H3zM16%203v4M8%203v4M3%2010h18M9%2015l2%202%204-4'%2F%3E%3C%2Fsvg%3E");
  --wk-ico-graphisme:url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2024%2024'%20fill%3D'none'%20stroke%3D'%23000'%20stroke-width%3D'2'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%3E%3Cpath%20d%3D'M12%202a10%2010%200%200%200%200%2020c1.1%200%202-.9%202-2%200-1.1.9-2%202-2h2.4A5.6%205.6%200%200%200%2022%209.8C22%205.5%2017.5%202%2012%202ZM7.5%2010.5h.01M10.5%207h.01M15%207.5h.01'%2F%3E%3C%2Fsvg%3E");
  --wk-ico-integration:url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2024%2024'%20fill%3D'none'%20stroke%3D'%23000'%20stroke-width%3D'2'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%3E%3Cpath%20d%3D'M3%203h18v18H3zM3%209h18M9%2021V9'%2F%3E%3C%2Fsvg%3E");
  --wk-ico-general:url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2024%2024'%20fill%3D'none'%20stroke%3D'%23000'%20stroke-width%3D'2'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%3E%3Cpath%20d%3D'M12%202a10%2010%200%201%200%200%2020%2010%2010%200%200%200%200-20ZM12%2016v-4M12%208h.01'%2F%3E%3C%2Fsvg%3E");
  --wk-i-page:url("data:image/svg+xml,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20viewBox%3D'0%200%2024%2024'%20fill%3D'none'%20stroke%3D'%23000'%20stroke-width%3D'2'%20stroke-linecap%3D'round'%20stroke-linejoin%3D'round'%3E%3Cpath%20d%3D'M14%202H6a2%202%200%200%200-2%202v16a2%202%200%200%200%202%202h12a2%202%200%200%200%202-2V8z'%2F%3E%3Cpath%20d%3D'M14%202v6h6'%2F%3E%3C%2Fsvg%3E");
}
html.dark-mode{
  --cs-canvas:#0A1722;--cs-surface:#102232;--cs-sunken:#011C2F;
  --cs-ink:#F7F6F3;--cs-muted:#A3AEBA;--cs-line:#1D3447;--cs-line-strong:#8793A0;
  --cs-pop:0 8px 28px rgba(0,0,0,.5);
}

/* ---- Base ---- */
html:root{background-color:var(--cs-canvas)}
html:root body{font-family:var(--font-body);color:var(--cs-ink);background-color:var(--cs-canvas);background-image:var(--wk-canvas-texture);background-size:22px 22px}
/* iframe de l'éditeur visuel (TinyMCE recharge ce HTML d'en-tête) : la zone de rédaction est la surface de la carte, sans grille */
html:root:has(body.mce-content-body),html:root body.mce-content-body{background-color:var(--cs-surface);background-image:none}
html:root :is(h1,h2,h3,h4,h5,h6){color:var(--cs-ink)}
/* .text-muted est en !important natif (#575757 / #888 en sombre, 4,57:1 sur la surface) : couleur secondaire du socle */
html:root .text-muted{color:var(--cs-muted)!important}
html:root .card{background:var(--cs-surface);border:1px solid var(--cs-line);border-radius:var(--cs-r-md);box-shadow:none}
html:root :is(a,button,input,select,textarea,summary,[tabindex]):focus-visible{outline:2px solid var(--wk-focus);outline-offset:-2px;box-shadow:inset 0 0 0 9999px color-mix(in srgb,var(--wk-focus) 8%,transparent)}
html:root .button{border-radius:var(--cs-r-full);font-weight:700;text-transform:none}
html:root .button:not(.outline){background:var(--wk-accent);color:var(--wk-on-accent);border-color:transparent;fill:var(--wk-on-accent)}
html:root .button:not(.outline):hover{background:color-mix(in srgb,var(--wk-accent) 84%,var(--wk-accent-deep));color:var(--wk-on-accent)}
html:root .button.outline{border-color:var(--cs-line-strong);color:var(--cs-ink);background:var(--cs-surface)}
html:root .button.outline:hover{border-color:var(--wk-focus);color:var(--cs-ink)}
html:root .button:focus{filter:none}
html:root :is(input[type=text],input[type=email],input[type=password],input[type=search],input[type=date],select,textarea):not(#header input){border-radius:var(--cs-r-sm);border-color:var(--cs-line-strong);background-color:var(--cs-surface);color:var(--cs-ink)}
html:root input[type=checkbox],html:root input[type=radio]{accent-color:var(--wk-accent-deep);width:20px;height:20px}
html:root .custom-checkbox{width:22px;height:22px;border-radius:5px;border-color:var(--cs-line-strong);color:var(--wk-accent-deep);fill:var(--wk-accent-deep)}

/* ---- En-tête ---- */
html:root #header{background:var(--wk-header-bg)!important;color:var(--wk-header-ink);border-bottom:1px solid var(--wk-header-line);box-shadow:none}
html:root #header{--wk-focus:var(--wk-header-focus,var(--wk-link))}
html:root #header *{outline-color:var(--wk-focus)}
html:root #header .links a,html:root #header .user-name,html:root #header .mobile-menu-toggle{color:var(--wk-header-ink);fill:var(--wk-header-ink);border-radius:var(--cs-r-full);font-weight:600}
html:root #header .links a{min-height:38px;display:inline-flex;align-items:center;padding:0 14px}
html:root #header .links a:hover,html:root #header .user-name:hover{background:color-mix(in srgb,var(--wk-header-ink) 9%,transparent)}
html:root #header .search-box input{width:320px;height:38px;background:var(--wk-header-field);border:1px solid var(--wk-header-field-line);border-radius:var(--cs-r-full);color:var(--wk-header-ink)}
html:root #header .search-box input::placeholder{color:var(--wk-header-muted);opacity:1}
html:root #header-search-box-button{color:var(--wk-header-muted);opacity:1;top:10px}
html:root #header .search-box.search-active:focus-within input{background:var(--cs-surface);color:var(--cs-ink);border-color:var(--cs-line)}
html:root #header .avatar{border-radius:50%}
/* visiteur non connecté : « Se connecter » en pilule accent */
html:root #header .links a[href$="/login"]{background:var(--wk-accent);color:var(--wk-on-accent);fill:var(--wk-on-accent);font-weight:700;padding:0 18px}
html:root #header .links a[href$="/login"]:hover{background:color-mix(in srgb,var(--wk-accent) 84%,var(--wk-accent-deep))}
/* en-tête de la planche : recherche juste après le logo, pilule 320 × 38, pictogrammes au trait (masques, currentColor) */
@media screen and (min-width:1001px){
  html:root #header.grid{grid-template-columns:auto minmax(160px,320px) minmax(max-content,1fr);column-gap:56px}
  html:root #header>.flex-container-column{align-items:stretch}
  html:root #header .search-box,html:root #header .search-box input{width:100%;max-width:none}
}
html:root #header .search-box input{padding-inline-start:40px;font-size:14px}
html:root #header-search-box-button{inset-inline-start:15px;top:11px;width:16px;height:16px}
html:root #header-search-box-button svg{display:none}
html:root #header-search-box-button::before{content:"";display:block;width:16px;height:16px;background:currentColor;-webkit-mask:var(--wk-i-search) center/contain no-repeat;mask:var(--wk-i-search) center/contain no-repeat}
html:root #header .links a{gap:8px}
html:root #header .links a>svg{display:none}
html:root #header .links a::before{content:"";width:18px;height:18px;flex:none;background:currentColor;-webkit-mask:var(--wk-i,none) center/contain no-repeat;mask:var(--wk-i,none) center/contain no-repeat}
html:root #header .links a[href$="/search"]{--wk-i:var(--wk-i-search)}
html:root #header .links a[href$="/shelves"]{--wk-i:var(--wk-i-library)}
html:root #header .links a[href$="/books"]{--wk-i:var(--wk-i-book)}
html:root #header .links a[href$="/settings"]{--wk-i:var(--wk-i-sliders)}
html:root #header .links a[href$="/login"]{--wk-i:var(--wk-i-login)}
html:root #header .links a[href$="/register"]{--wk-i:var(--wk-i-user)}
/* compte : avatar par défaut remplacé par la pastille de la planche (un avatar téléversé reste affiché), chevron au trait */
html:root #header .user-name{position:relative;gap:8px;padding:5px 12px 5px 5px;margin:0}
html:root #header .user-name>svg{display:none}
html:root #header .user-name>.name{padding:0;display:inline-flex;align-items:center;gap:6px}
html:root #header .user-name>.name::after{content:"";width:16px;height:16px;background:currentColor;-webkit-mask:var(--wk-i-chevron-down) center/contain no-repeat;mask:var(--wk-i-chevron-down) center/contain no-repeat}
html:root #header .avatar{width:34px;height:34px}
html:root #header .user-name:has(>.avatar[src$="/user_avatar.png"])>.avatar{display:none}
html:root #header .user-name:has(>.avatar[src$="/user_avatar.png"])::before{content:"";width:34px;height:34px;flex:none;border-radius:50%;background:color-mix(in srgb,var(--wk-header-ink) 14%,transparent)}
html:root #header .user-name:has(>.avatar[src$="/user_avatar.png"])::after{content:"";position:absolute;left:14px;top:50%;width:16px;height:16px;margin-top:-8px;background:currentColor;-webkit-mask:var(--wk-i-user) center/contain no-repeat;mask:var(--wk-i-user) center/contain no-repeat}
/* menu du compte */
html:root .dropdown-menu{background:var(--cs-surface);border:1px solid var(--cs-line);border-radius:var(--cs-r-md);box-shadow:var(--cs-pop);padding:6px}
html:root .dropdown-menu :is(a,button){border-radius:var(--cs-r-sm);min-height:38px;color:var(--cs-ink);fill:var(--cs-muted)}
html:root .dropdown-menu :is(a,button):hover{background:color-mix(in srgb,var(--cs-ink) 7%,transparent);color:var(--cs-ink)}
html:root .dropdown-menu hr{border-color:var(--cs-line);background:var(--cs-line)}
html:root #header .dropdown-menu a[data-shortcut="profile_view"]{display:none}
html:root #header .dropdown-menu .icon-item{gap:12px}
html:root #header .dropdown-menu .icon-item>svg,html:root #header .dropdown-menu .icon-item>span:first-child:has(>svg){display:none}
html:root #header .dropdown-menu button.icon-item{display:flex;align-items:center;width:100%}
html:root #header .dropdown-menu .icon-item::before{content:"";width:17px;height:17px;flex:none;background:var(--cs-muted);-webkit-mask:var(--wk-i,none) center/contain no-repeat;mask:var(--wk-i,none) center/contain no-repeat}
html:root #header .dropdown-menu a[href$="/favourites"]{--wk-i:var(--wk-i-star)}
html:root #header .dropdown-menu a[href$="/my-account"]{--wk-i:var(--wk-i-user)}
html:root #header .dropdown-menu form[action$="toggle-dark-mode"] .icon-item{--wk-i:var(--wk-i-moon)}
html:root.dark-mode #header .dropdown-menu form[action$="toggle-dark-mode"] .icon-item{--wk-i:var(--wk-i-sun)}
html:root #header .dropdown-menu form[action$="/logout"] .icon-item{--wk-i:var(--wk-i-logout)}

/* ---- Trois colonnes ---- */
@media screen and (min-width:1401px){
  html:root .tri-layout-container{grid-template-columns:236px minmax(0,1fr) 212px;column-gap:var(--wk-gap,32px)}
  /* page lue : la carte épouse la mesure de lecture (≈ 75 caractères), les colonnes latérales prennent le reste */
  html:root .tri-layout-container:has(#page-details){grid-template-columns:minmax(236px,1fr) minmax(0,var(--wk-page-max,720px)) minmax(212px,1fr)}
}
/* BookStack estompe les colonnes latérales (opacité .6 / .75) : on les rend lisibles, contrastes mesurés à 1 */
html:root .tri-layout-left-contents>*,html:root .tri-layout-right-contents>*{opacity:1}
html:root :is(.tri-layout-left,.tri-layout-right) h5,html:root .card-title,html:root #search-system h5,html:root #search-system form h6{font-family:var(--wk-meta-font);font-size:11px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--cs-muted)}
/* Détails (révision, auteurs, dates) */
html:root .entity-meta{font-family:var(--wk-meta-font);font-size:13px;color:var(--cs-muted)}
html:root .entity-meta a{color:var(--wk-link);text-decoration:underline;text-underline-offset:3px}
html:root .entity-meta .entity-meta-item{color:var(--cs-muted);fill:var(--cs-muted)}
/* « Créé » : BookStack y met l'étoile des favoris, la planche un « + » */
html:root .entity-meta-item svg[data-icon="star"]>g{display:none}
html:root .entity-meta-item svg[data-icon="star"]{background:currentColor;-webkit-mask:var(--wk-i-plus) center/contain no-repeat;mask:var(--wk-i-plus) center/contain no-repeat}
/* Actions : liste de gestes, plus de pastilles rondes ni de couleur de lien */
html:root .tri-layout-right .icon-list-item,html:root .tri-layout-left .icon-list-item{color:var(--cs-ink)!important;fill:var(--cs-muted)!important;border-radius:var(--cs-r-sm);min-height:36px;padding:6px 12px;gap:12px}
html:root .tri-layout-right .icon-list-item:hover,html:root .tri-layout-left .icon-list-item:hover{background:color-mix(in srgb,var(--cs-ink) 7%,transparent)}
html:root .tri-layout-right .icon-list-item>span:first-child{background:none;flex-basis:auto;width:auto;height:auto}
/* pastille ronde native (span:first-child::after, currentColor à 20 %) : retirée partout (D14) ; les pastilles voulues sont posées en fond */
html:root .icon-list-item>span:first-child::after{display:none}
/* pictogrammes au trait à 16 px dans les colonnes (planche) : à 13 px, le trait de 2 paraît plein */
html:root :is(.tri-layout-right,.tri-layout-left) .icon-list-item svg.svg-icon,html:root .entity-meta .svg-icon{font-size:16px;bottom:0}
/* geste principal en bouton accent : « Éditer » sur une page (#page-details), « Nouveau … » sur une étagère / un pôle */
html:root .tri-layout-right:has(#page-details) .icon-list-item[data-shortcut="edit"],html:root .tri-layout-right .icon-list-item[href$="/create-book"]{background:var(--wk-accent);color:var(--wk-on-accent)!important;fill:var(--wk-on-accent)!important;justify-content:center;border-radius:var(--cs-r-full);font-weight:700;min-height:40px;margin-bottom:8px}
html:root .tri-layout-right:has(#page-details) .icon-list-item[data-shortcut="edit"]>span:last-child,html:root .tri-layout-right .icon-list-item[href$="/create-book"]>span:last-child{flex:none}
html:root .tri-layout-right:has(#page-details) .icon-list-item[data-shortcut="edit"]:hover,html:root .tri-layout-right .icon-list-item[href$="/create-book"]:hover{background:color-mix(in srgb,var(--wk-accent) 84%,var(--wk-accent-deep))}
html:root .tri-layout-right .icon-list-item[data-shortcut="delete"]{color:var(--wk-err)!important;fill:var(--wk-err)!important}
html:root .tri-layout-right hr{background:var(--cs-line)!important;height:1px;border:0}
/* Étiquettes : classement du socle */
html:root .tag-item{display:inline-flex;align-items:stretch;flex-wrap:nowrap;border:1px solid var(--cs-line);border-radius:var(--cs-r-badge);background:var(--cs-surface);font-family:var(--wk-tag-font);font-size:12px;min-height:26px;overflow:hidden;max-width:100%;flex-wrap:wrap}
html:root .tag-item:hover{border-color:var(--wk-focus)}
html:root .tag-item :is(a,span){padding:3px 8px;color:var(--cs-ink);display:inline-flex;align-items:center}
html:root .tag-item .tag-name{background:var(--cs-sunken)}
html:root .tag-item .tag-name :is(a,span){color:var(--cs-muted)}
html:root .tag-item .tag-value{background:var(--cs-surface);border-inline-start:1px solid var(--cs-line)}
html:root .tag-item .tag-value :is(a,span){font-weight:700;color:var(--cs-ink)}
html:root .tag-item svg{display:none}
html:root .tag-item a:hover{background:color-mix(in srgb,var(--wk-focus) 9%,transparent)}
/* éditeur : barre du haut (la barre d'outils TinyMCE n'est pas touchée) */
html:root .page-edit-toolbar{background:var(--cs-surface);border-bottom:1px solid var(--cs-line)}
html:root .page-edit-toolbar .icon-list-item{color:var(--cs-ink)!important;fill:var(--cs-muted)!important;border-radius:var(--cs-r-full)}
html:root .page-edit-toolbar #save-button{background:var(--wk-accent);color:var(--wk-on-accent)!important;fill:var(--wk-on-accent)!important;border-radius:var(--cs-r-full);font-weight:700;padding:6px 18px}
html:root .page-edit-toolbar #save-button:hover{background:color-mix(in srgb,var(--wk-accent) 84%,var(--wk-accent-deep))}
html:root .page-editor input#name{font-family:var(--font-body);font-size:var(--wk-h1);font-weight:800;letter-spacing:-.022em;color:var(--cs-ink);background:var(--cs-surface);border:0;border-bottom:1px solid var(--cs-line);border-radius:0;padding:14px 24px}
/* éditeur Markdown : source en JetBrains Mono, titres en gras */
html:root .markdown-editor-wrap .cm-editor{font-family:var(--font-code)}
html:root .markdown-editor-wrap .wk-tok-key{color:var(--cs-ink);font-weight:700}
html:root .markdown-editor-wrap :is(.wk-tok-val,.wk-tok-var){color:var(--wk-link)}
html:root .markdown-editor-wrap .wk-tok-note{color:var(--cs-muted)}
html:root .markdown-editor-wrap .wk-tok-bright{font-weight:700}
/* Sommaire de la page : un rail, l'élément courant à la couleur du lien */
html:root .sidebar-page-nav::after{background-color:var(--cs-line)}
html:root .sidebar-page-nav li{font-size:13.5px}
html:root .sidebar-page-nav a{color:var(--cs-muted);text-decoration:none}
html:root .sidebar-page-nav a:hover{color:var(--cs-ink)}
html:root .sidebar-page-nav .current-heading{font-weight:400}
html:root .sidebar-page-nav .current-heading a{color:var(--cs-ink);font-weight:700}
html:root .sidebar-page-nav .sidebar-page-nav-bullet{left:0;top:2px;bottom:2px;width:2px;height:auto;border-radius:0;box-shadow:none;background-color:transparent!important}
html:root .sidebar-page-nav li.current-heading .sidebar-page-nav-bullet{background-color:var(--wk-link)!important}
/* Arbre du livre : pictogramme coloré, libellé à l'encre, sans liseré ; élément courant sur fond de surface */
html:root .book-tree .sidebar-page-list .entity-list-item{color:var(--cs-ink);border-radius:var(--cs-r-sm);background-clip:border-box;padding:0 10px;min-height:34px}
html:root .book-tree .sidebar-page-list .entity-list-item .icon{width:auto;height:auto;align-self:center;opacity:1;background:none}
html:root .book-tree .sidebar-page-list .entity-list-item .icon::after{display:none}
html:root .book-tree .sidebar-page-list .entity-list-item .icon svg{display:inline-block}
html:root .book-tree .sidebar-page-list .entity-list-item .entity-list-item-name{font-size:13.5px;font-weight:500}
html:root .book-tree .sidebar-page-list .entity-list-item:hover{background:color-mix(in srgb,var(--cs-ink) 6%,transparent)}
html:root .book-tree .sidebar-page-list .entity-list-item.selected{background:var(--cs-surface);box-shadow:0 0 0 1px var(--cs-line) inset}
html:root .book-tree .sidebar-page-list .entity-list-item.selected .entity-list-item-name{font-weight:700}
html:root .book-tree .sidebar-page-list .chapter-contents-toggle{color:var(--cs-muted)}
/* Fil d'Ariane : à l'encre, la couleur ne reste que sur la pastille */
html:root .breadcrumbs{opacity:1}
html:root .breadcrumbs .icon-list-item{font-weight:600;border-radius:var(--cs-r-full)}
html:root .breadcrumbs .icon-list-item>span:last-child{color:var(--cs-muted)}
html:root .breadcrumbs>.icon-list-item:last-child>span:last-child{color:var(--cs-ink)}
html:root .breadcrumbs .icon-list-item>span:first-child{display:inline-flex;align-items:center;justify-content:center;width:26px;height:26px;border-radius:50%;background:var(--cs-sunken);color:var(--cs-muted);fill:var(--cs-muted)}
html:root .breadcrumbs>.icon-list-item:last-child>span:first-child{background:color-mix(in srgb,var(--wk-accent) 24%,var(--cs-surface));color:var(--cs-ink);fill:var(--cs-ink)}
html:root .breadcrumbs .icon-list-item>span:first-child svg{margin:0}
html:root .breadcrumbs .separator{fill:var(--cs-line-strong)}

/* ---- Contenu de page ---- */
html:root .content-wrap.card{padding:40px 48px}
/* titres d'étagère, de livre, de chapitre, de liste : le H1 natif, très grand et maigre, est resserré */
html:root .content-wrap.card h1{font-size:var(--wk-h1);line-height:1.15;font-weight:800;letter-spacing:-.022em;color:var(--cs-ink)}
html:root .content-wrap.card>p.text-muted,html:root .content-wrap.card .book-content>p.text-muted{font-size:calc(var(--wk-read) + 1px)}
html:root .page-content{font-size:var(--wk-read);line-height:var(--wk-read-line);color:var(--cs-ink)}
html:root .page-content :is(p,ul,ol,blockquote,h1,h2,h3,h4,h5,h6){max-width:var(--wk-measure)}
html:root .page-content :is(h1,h2,h3,h4){color:var(--cs-ink);font-family:var(--font-body)}
html:root .page-content h1{font-size:var(--wk-h1);line-height:1.15;font-weight:800;letter-spacing:-.022em;margin-top:0}
html:root .page-content h2{font-size:var(--wk-h2);line-height:1.25;font-weight:700;letter-spacing:-.012em;margin-top:1.6em}
html:root .page-content h3{font-size:var(--wk-h3);line-height:1.3;font-weight:700}
html:root .page-content h4{font-size:var(--wk-h4);line-height:1.35;font-weight:700}
html:root .page-content a{color:var(--wk-link);text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:3px}
html:root .page-content a:hover{text-decoration-thickness:2px}
html:root .page-content blockquote{border-left:3px solid var(--cs-line-strong);background:none;padding:2px 0 2px 18px}
html:root .page-content blockquote::before{content:none}
html:root .page-content code:not(pre code){font-family:var(--font-code);font-size:.86em;padding:.1em .4em;border-radius:var(--cs-r-xs);background:var(--cs-sunken);border:1px solid var(--cs-line);color:var(--cs-ink)}
html:root .page-content table{border-collapse:separate;border-spacing:0;border:1px solid var(--cs-line);border-radius:var(--cs-r-sm);overflow:hidden}
html:root .page-content table:not([style*="width"]){width:100%}
html:root .page-content table :is(td,th){border:0;border-bottom:1px solid var(--cs-line);padding:10px 14px;text-align:start;vertical-align:top}
html:root .page-content table tr:last-child td{border-bottom:0}
html:root .page-content table :is(thead tr,tr:first-child:has(th)){background:var(--cs-sunken)}
html:root .page-content table th{font-weight:700}
html:root .page-content table tbody td:first-child{font-weight:600}
/* valeurs machine d'un tableau, en chasse fixe : classe wk-mono posée dans l'éditeur source (planche §03) */
html:root .page-content .wk-mono{font-family:var(--font-code);font-size:.92em}
@media (max-width:700px){html:root .page-content table{display:block;overflow-x:auto}html:root .page-content table :is(td,th){white-space:nowrap}}
html:root .page-content img{border:1px solid var(--cs-line);border-radius:var(--cs-r-sm)}
html:root .page-content details{border:1px solid var(--cs-line);border-radius:var(--cs-r-sm);background:none;overflow:hidden}
html:root .page-content details > summary{min-height:48px;display:flex;align-items:center;gap:10px;padding:10px 16px;font-weight:700;cursor:pointer;background:none;list-style:none;color:var(--cs-ink)}
html:root .page-content details > summary::-webkit-details-marker{display:none}
html:root .page-content details > summary::before{content:"";width:16px;height:16px;flex:none;background:currentColor;-webkit-mask:var(--wk-i-chevron) center/contain no-repeat;mask:var(--wk-i-chevron) center/contain no-repeat;transition:transform .2s}
html:root .page-content details[open] > summary::before{transform:rotate(90deg)}
html:root .page-content details > summary:hover{background:color-mix(in srgb,var(--cs-ink) 5%,transparent)}
html:root .page-content details > :not(summary){padding-inline:16px}
/* Encadrés : fond 9 %, filet 32 %, plus de liseré gauche ; pictogramme au trait recoloré */
html:root .page-content .callout{border:1px solid color-mix(in srgb,var(--wk-c) 32%,var(--cs-surface));border-radius:var(--cs-r-sm);background:color-mix(in srgb,var(--wk-c) 9%,var(--cs-surface));color:var(--cs-ink);padding:14px 16px 14px 46px}
html:root .page-content .callout::before{background:var(--wk-c-fg);-webkit-mask:var(--wk-c-i) center/contain no-repeat;mask:var(--wk-c-i) center/contain no-repeat;width:18px;height:18px;left:16px;inset-inline-start:16px;top:16px;margin-top:0;opacity:1}
html:root .page-content .callout,html:root .page-content .callout.info{--wk-c:var(--wk-info-tint);--wk-c-fg:var(--wk-info);--wk-c-i:var(--wk-i-info)}
html:root .page-content .callout.success{--wk-c:var(--wk-ok-tint);--wk-c-fg:var(--wk-ok);--wk-c-i:var(--wk-i-ok)}
html:root .page-content .callout.warning{--wk-c:var(--wk-warn-tint);--wk-c-fg:var(--wk-warn);--wk-c-i:var(--wk-i-warn);background:color-mix(in srgb,var(--wk-c) 11%,var(--cs-surface))}
html:root .page-content .callout.danger{--wk-c:var(--wk-err-tint);--wk-c-fg:var(--wk-err);--wk-c-i:var(--wk-i-err)}
html:root .page-content .callout :is(a,strong){color:inherit}
/* Blocs de code : îlot sombre fixe ; jetons colorés par habillage.js (événement library-cm6::configure-theme) */
html:root .page-content pre,html:root .page-content .cm-editor{background:var(--code-surface)!important;color:var(--code-ink);border:0;border-radius:var(--cs-r-sm);font-family:var(--font-code);font-size:13px;line-height:1.7}
html:root .page-content .cm-editor .cm-scroller{padding:10px 0}
html:root .page-content .cm-editor .cm-line{color:var(--code-ink)}
html:root .page-content .cm-gutters{background:transparent!important;color:var(--code-faint);border:0}
html:root .page-content .cm-activeLine,html:root .page-content .cm-activeLineGutter{background:transparent}
html:root .page-content .cm-editor ::selection,html:root .page-content .cm-editor .cm-selectionBackground{background:#264F78!important}
html:root .page-content .cm-copy-button{top:8px;inset-inline-end:8px;width:auto;height:30px;padding:0 10px;gap:6px;background:var(--code-surface);border:1px solid var(--code-line);border-radius:var(--cs-r-full);color:var(--code-bright);opacity:0}
html:root .page-content .cm-editor:hover .cm-copy-button,html:root .page-content .cm-copy-button:focus-visible{opacity:1;pointer-events:all}
html:root .page-content .cm-copy-button:focus-visible{outline:2px solid var(--code-bright)!important;outline-offset:-4px}
html:root .page-content .cm-copy-button.success{background:var(--wk-ok);color:#fff}
/* focus clavier jamais retiré : CodeMirror et les onglets de commentaires le suppriment nativement */
html:root .page-content .cm-editor.cm-focused{outline:2px solid var(--code-bright);outline-offset:-2px}
html:root .comments-container [role="tab"]:focus-visible{outline:2px solid var(--wk-focus)!important;outline-offset:-2px}
html:root .page-content .wk-tok-key{color:var(--code-key)}
html:root .page-content .wk-tok-val{color:var(--code-val)}
html:root .page-content .wk-tok-var{color:var(--code-var)}
html:root .page-content .wk-tok-note{color:var(--code-note);font-style:italic}
html:root .page-content .wk-tok-ink{color:var(--code-ink)}
html:root .page-content .wk-tok-bright{color:var(--code-bright);font-weight:700}
/* Précédent / Suivant en cartes */
html:root #sibling-navigation{padding:0;gap:16px}
html:root #sibling-navigation a{display:block;background:var(--cs-surface);border:1px solid var(--cs-line);border-radius:var(--cs-r-md);padding:10px 16px 12px;color:var(--cs-ink)}
html:root #sibling-navigation a:hover{border-color:var(--wk-focus)}
html:root #sibling-navigation a .text-muted{padding:0;font-size:12px}
html:root #sibling-navigation>div:first-child a .text-muted::before{content:"← "}
html:root #sibling-navigation>div:last-child a .text-muted::after{content:" →"}
html:root #sibling-navigation a .icon-list-item{padding:2px 0;font-weight:700;color:var(--cs-ink)}
/* Commentaires en fil (filet de 2 px qui relie la réponse) */
html:root .comments-container [role="tablist"] button{color:var(--cs-muted);font-weight:600;border-bottom-color:transparent}
html:root .comments-container [role="tablist"] button[aria-selected="true"]{color:var(--cs-ink);border-bottom-color:var(--wk-link)}
html:root .comment-box{border:1px solid var(--cs-line);border-radius:var(--cs-r-md);background:var(--cs-surface);overflow:hidden}
html:root .comment-box .header{border-bottom:0;padding:10px 14px 0;color:var(--cs-muted)}
html:root .comment-box .header .text-muted{color:var(--cs-muted);opacity:1}
html:root .comment-box .content{padding:2px 14px 12px}
html:root .comment-box .content :is(p,ul,ol){font-size:15px;color:var(--cs-ink)}
html:root .comment-branch-children{border-color:var(--cs-line)}

/* ---- Listes ---- */
html:root .entity-list-item:not(.no-hover):hover{background:color-mix(in srgb,var(--cs-ink) 6%,transparent)}
html:root .entity-list-item .entity-list-item-name{color:var(--cs-ink);font-weight:600}
html:root .entity-item-snippet p{color:var(--cs-muted)}
/* pastille de niveau au lieu du liseré (contenu d'un livre, recherche, listes compactes) */
html:root :is(.book-contents,.entity-list):not(.sidebar-page-list) .entity-list-item>.icon{width:34px;height:34px;flex:none;align-self:flex-start;display:inline-flex;align-items:center;justify-content:center;border-radius:50%;background:color-mix(in srgb,currentColor 13%,transparent);opacity:1}
html:root :is(.book-contents,.entity-list):not(.sidebar-page-list) .entity-list-item>.icon::after{display:none}
html:root :is(.book-contents,.entity-list):not(.sidebar-page-list) .entity-list-item>.icon svg{display:inline-block;margin:0;font-size:16px}
html:root .entity-list.compact .entity-list-item>.icon{width:28px;height:28px}
html:root .book-contents .entity-list-item{border-bottom:1px solid var(--cs-line);border-radius:0}
html:root .book-contents .entity-list-item-name{font-size:16px;font-weight:700}
/* sous-dossiers : liste des pages dans un bloc enfoncé, bouton « n pages » en pilule */
html:root .entity-list-item+.chapter-expansion{padding:0 16px 14px 66px;border-bottom:1px solid var(--cs-line)}
html:root .entity-list-item+.chapter-expansion>.icon{display:none}
html:root .entity-list-item+.chapter-expansion .chapter-contents-toggle{width:auto;display:inline-flex;align-items:center;gap:4px;min-height:30px;padding:0 12px;border:1px solid var(--cs-line-strong);border-radius:var(--cs-r-full);color:var(--cs-ink);font-weight:600;font-size:13px}
html:root .entity-list-item+.chapter-expansion .chapter-contents-toggle:hover{border-color:var(--wk-focus);background:none}
html:root .entity-list-item.has-children{border-bottom:0}
html:root .chapter-contents-list .entity-list-item-children{background:var(--cs-sunken);border-radius:var(--cs-r-sm);margin-top:10px;padding:6px}
html:root .chapter-contents-list .entity-list-item{border:0;border-radius:var(--cs-r-sm);padding:6px 12px;gap:10px}
html:root .chapter-contents-list .entity-list-item>.icon{width:auto;height:auto;background:none;align-self:center}
html:root .chapter-contents-list .entity-list-item>.icon svg{font-size:15px}
html:root .chapter-contents-list .entity-list-item-name{font-size:14px;font-weight:500}
html:root .chapter-contents-list .entity-item-snippet{display:none}
html:root .entity-list-item.draft .entity-list-item-name::after{content:"brouillon";display:inline-flex;align-items:center;height:20px;margin-inline-start:8px;vertical-align:2px;border:1px dashed var(--cs-line-strong);border-radius:var(--cs-r-full);padding:0 8px;font-size:11.5px;font-weight:600;color:var(--cs-muted);background:none}
/* grille : bande teintée de 54 px sans couverture, image au ratio natif sinon */
html:root .grid-card{border:1px solid var(--cs-line);border-radius:var(--cs-r-md);box-shadow:none;overflow:hidden;background:var(--cs-surface);color:var(--cs-ink)}
html:root .grid-card:hover{border-color:var(--wk-focus);box-shadow:none;color:var(--cs-ink)}
html:root .grid-card:hover .featured-image-container{opacity:1}
html:root .grid-card .featured-image-container-wrap.bg-book{--wk-lvl:var(--color-book)}
html:root .grid-card .featured-image-container-wrap.bg-bookshelf{--wk-lvl:var(--color-bookshelf)}
html:root .grid-card .featured-image-container-wrap:is(.bg-book,.bg-bookshelf):not(:has(.featured-image-container[style*="url"])){height:54px;min-height:0;background-color:color-mix(in srgb,var(--wk-lvl) 13%,var(--cs-surface))}
html:root .grid-card .featured-image-container-wrap:not(:has(.featured-image-container[style*="url"])) .featured-image-container{display:none}
html:root .grid-card .featured-image-container-wrap:not(:has(.featured-image-container[style*="url"]))>svg{position:absolute;left:16px;top:12px;width:30px;height:30px;padding:7px;border-radius:9px;background:var(--cs-surface);fill:var(--wk-lvl);color:var(--wk-lvl);margin:0;bottom:auto;opacity:1}
html:root .grid-card .grid-card-content{padding:16px 18px 6px}
html:root .grid-card .grid-card-content h2{font-size:16px;font-weight:700;line-height:1.3;color:var(--cs-ink)}
html:root .grid-card .grid-card-content p{font-size:13.5px;line-height:1.45;color:var(--cs-muted)}
html:root .grid-card .grid-card-footer{padding:6px 18px 16px;font-family:var(--wk-meta-font);color:var(--cs-muted)}
html:root .grid-card .grid-card-footer p{font-size:12px}
html:root .grid-card .grid-card-footer p:first-child:not(:last-child){display:none}
html:root .grid-card .grid-card-footer svg{display:none}
/* vue liste : vignette 56 × 40, teintée sans couverture (BookStack y pose un GIF transparent) */
html:root .entity-list-item-image{width:56px;height:40px;min-width:56px;flex:none;border-radius:8px;background-size:cover;background-position:center}
html:root .entity-list-item-image.bg-book{--wk-lvl:var(--color-book)}
html:root .entity-list-item-image.bg-bookshelf{--wk-lvl:var(--color-bookshelf)}
html:root .entity-list-item-image[style*="data:image/gif"]{background-color:color-mix(in srgb,var(--wk-lvl) 13%,var(--cs-surface))}
html:root .entity-list-item-image svg{fill:var(--wk-lvl);color:var(--wk-lvl);font-size:18px;margin:0}
html:root .entity-list-item-image:not([style*="data:image/gif"]) svg{display:none}
/* vue liste (étagères, livres) : vignette contre le titre, pictogramme centré (BookStack le pose en bas à gauche), ligne resserrée */
html:root .entity-list-item-image{margin-inline-end:0;display:flex;align-items:center;justify-content:center}
html:root .entity-list-item-image .svg-icon{position:static;font-size:18px;margin:0}
html:root .entity-list>.entity-list-item:has(>.entity-list-item-image){gap:16px;padding:14px 12px;align-items:center}
html:root .entity-list-item:has(>.entity-list-item-image) .content{padding-block:0}
html:root .entity-list-item:has(>.entity-list-item-image) .entity-list-item-name{font-size:16px;font-weight:700;line-height:1.3;margin:0}
html:root .entity-list-item:has(>.entity-list-item-image) .entity-item-snippet p{margin:2px 0 0;font-size:13.5px}
/* dossiers d'un pôle (vue liste) : pilules sous le titre, au lieu de barres grises pleine largeur */
html:root .entity-shelf-books{display:flex;flex-wrap:wrap;gap:6px;padding:0 12px 14px 84px;background:none}
html:root .entity-shelf-books>div{min-width:0}
html:root .entity-shelf-books:not(:has(a)){display:none}
/* filets entre les éléments d'une liste (hr natif, gris fixe) */
html:root .content-wrap .entity-list>hr{margin:0;border:0;height:1px;background:var(--cs-line)}
html:root .entity-chip{display:inline-flex;align-items:center;gap:6px;height:28px;padding:0 12px;border-radius:var(--cs-r-full);background:var(--cs-sunken);color:var(--cs-ink)!important;fill:var(--cs-muted)!important;opacity:1;font-size:13px;font-weight:600;max-width:100%}
html:root .entity-chip::after{display:none}
html:root .entity-chip svg{font-size:14px;margin:0;color:var(--cs-muted);flex:none}
html:root .entity-chip:hover{background:color-mix(in srgb,var(--cs-ink) 12%,var(--cs-sunken));text-decoration:none}
@media (max-width:600px){html:root .entity-shelf-books{padding-inline-start:12px}}
/* recherche : pastille, terme surligné ET gras */
html:root #search-system .entity-item-snippet strong,html:root mark{background:var(--wk-mark);color:inherit;font-weight:700;border-radius:3px;padding:0 2px}
html:root #search-system .entity-item-snippet>span:first-child{color:var(--cs-muted)!important;font-size:13px}
html:root #search-system label.checkbox{display:flex;align-items:center;gap:8px;min-height:34px;color:var(--cs-ink)}
html:root #search-system .entity-list-item{border-bottom:1px solid var(--cs-line);border-radius:0}

/* ---- Connexion (wiki créasit) ---- */
html:root #login-form input:not([type=checkbox]){height:44px}
html:root #login-form .grid.half{display:flex;flex-direction:column;align-items:stretch;gap:16px}
html:root #login-form .grid.half>*{text-align:start;margin:0}
html:root #login-form .button{width:100%;min-height:44px}
html:root .container.very-small .card .list-heading{font-size:var(--wk-h1);font-weight:800;letter-spacing:-.022em}
/* 404 : « Retour à l'accueil » en bouton accent */
html:root .card.px-l.pb-l.pt-l .text-right>.button.outline{background:var(--wk-accent);color:var(--wk-on-accent);border-color:transparent}
html:root .card.px-l.pb-l.pt-l .list-heading{font-size:var(--wk-h1);font-weight:800;letter-spacing:-.022em}
html:root .container.mt-l>.card.px-l.pb-l.pt-l:first-child .list-heading::before{content:"ERREUR 404";display:block;margin-bottom:6px;font-family:var(--font-code);font-size:11px;font-weight:600;letter-spacing:.08em;color:var(--cs-muted)}
html:root .container.mt-l>.card.px-l.pb-l.pt-l:first-child h5{font-size:16px;font-weight:700;color:var(--cs-ink);margin:2px 0 4px;text-transform:none;letter-spacing:0}
html:root .card.px-l.pb-l.pt-l .text-right>.button.outline::before{content:"← "}
/* connexion : « Mot de passe oublié ? » sur la ligne du libellé, casse « Se connecter », phrases de la planche (variables du wiki créasit) */
html:root #login-form .form-group:has(>.small.mt-s){display:grid;grid-template-columns:1fr auto;align-items:baseline;column-gap:12px}
html:root #login-form .form-group:has(>.small.mt-s)>input{grid-column:1/-1}
html:root #login-form .form-group>.small.mt-s{grid-column:2;grid-row:1;margin:0;font-size:13px}
html:root #login-form .form-group>.small.mt-s a{text-decoration:underline;text-underline-offset:3px}
html:root .card:has(#login-form) .list-heading,html:root #login-form .button{text-transform:lowercase}
html:root .card:has(#login-form) .list-heading::first-letter,html:root #login-form .button::first-letter{text-transform:uppercase}
html:root .card:has(#login-form) .list-heading::after{content:var(--wk-login-lead,none);display:block;margin-top:6px;font-size:14px;font-weight:400;letter-spacing:0;text-transform:none;color:var(--cs-muted)}
html:root .container.very-small:has(#login-form)::after{content:var(--wk-login-note,none);display:block;max-width:360px;margin:16px auto 0;text-align:center;font-size:13px;line-height:1.5;color:var(--cs-muted)}
/* connexion par GitLab (équipe Créasit, wiki créasit) : bouton contour pleine largeur, contenu centré comme « Se connecter » */
html:root .card:has(#login-form) a[id^="social-login-"]{width:100%;min-height:44px;justify-content:center}

/* ---- Mobile ---- */
@media screen and (max-width:1000px){
  html:root .tri-layout-mobile-tabs{background:var(--cs-canvas);border:0;box-shadow:none;padding:10px 16px}
  html:root .tri-layout-mobile-tabs>div,html:root .tri-layout-mobile-tabs .grid{background:var(--cs-sunken);border-radius:var(--cs-r-full);padding:3px;gap:0}
  html:root .tri-layout-mobile-tab{border:0!important;border-radius:var(--cs-r-full);min-height:38px;font-weight:600;background:transparent;color:var(--cs-muted)!important;transition:background-color .28s}
  html:root .tri-layout-mobile-tab[aria-selected=true]{background:var(--cs-surface);color:var(--cs-ink)!important}
  html:root .content-wrap.card{border-radius:0;border-left:0;border-right:0;padding:24px 20px}
  html:root #header .links a,html:root #header .mobile-menu-toggle{min-height:44px}
  /* fil d'Ariane réduit au parent : les autres niveaux restent dans le DOM (lecteurs d'écran) */
  html:root .tri-layout-middle .breadcrumbs>*:not(:nth-last-child(3)){position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
  html:root .tri-layout-middle .breadcrumbs>:nth-last-child(3)::before{content:"‹";font-size:20px;color:var(--cs-muted);margin-inline-end:6px}
  html:root .tri-layout-middle .breadcrumbs>:nth-last-child(3)>span+span{display:inline}
}

/* ---- Accueil éditorial (classes posées dans la page) ---- */
html:root .page-content:has(.wk-hero) #bkmrk-page-title{display:none}
html:root .tri-layout-left:has(#recently-updated-pages) #recent-activity{display:none}
html:root .page-content .wk-hero h1{font-size:calc(var(--wk-h1) + 6px);letter-spacing:-.025em;margin-bottom:.35em}
html:root .page-content .wk-hero > p:not(.wk-quick){font-size:calc(var(--wk-read) + 1px);color:var(--cs-muted)}
html:root .page-content .wk-quick{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
html:root .page-content .wk-quick strong{font-size:13.5px;margin-inline-end:4px}
html:root .page-content .wk-quick a{display:inline-flex;align-items:center;min-height:34px;padding:0 14px;border-radius:var(--cs-r-full);background:color-mix(in srgb,var(--wk-accent) 16%,var(--cs-surface));border:1px solid color-mix(in srgb,var(--wk-accent) 45%,var(--cs-surface));color:var(--cs-ink);text-decoration:none;font-weight:600}
html:root .page-content .wk-quick a:hover{border-color:var(--wk-focus)}
html:root .page-content .wk-cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(var(--wk-card-min,220px),1fr));gap:12px;max-width:none;margin-bottom:1.6em}
html:root .page-content .wk-card{position:relative;display:flex;flex-direction:column;gap:6px;padding:16px;border:1px solid var(--cs-line);border-radius:var(--cs-r-md);color:var(--cs-ink);text-decoration:none;background:var(--cs-surface)}
html:root .page-content .wk-card:hover{border-color:var(--wk-focus)}
html:root .page-content .wk-card strong{font-size:15.5px;line-height:1.3}
html:root .page-content .wk-card span{color:var(--cs-muted);font-size:13.5px;line-height:1.45}
html:root .page-content .wk-card small{position:absolute;top:22px;right:16px;font-family:var(--font-code);font-size:12px;color:var(--cs-muted)}
html:root .page-content .wk-card::before{content:"";width:36px;height:36px;border-radius:11px;background:color-mix(in srgb,var(--wk-accent) 18%,transparent);margin-bottom:4px}
/* pictogrammes : masque SVG par classe wk-ico-<nom>, à l'accent du wiki — pastille en accent 18 %, pictogramme en couleur de lien (v2, 25/10) */
html:root .page-content .wk-card::after{content:"";position:absolute;top:24px;left:24px;width:20px;height:20px;background:var(--wk-link);-webkit-mask:var(--wk-ico) center/contain no-repeat;mask:var(--wk-ico) center/contain no-repeat}
html:root .page-content .wk-card:not([class*="wk-ico-"])::after{display:none}
/* client : premiers · modules · assistant · pratiques — interne : les neuf pôles */
.wk-ico-premiers{--wk-ico:var(--wk-ico-premiers)}
.wk-ico-modules{--wk-ico:var(--wk-ico-modules)}
.wk-ico-assistant{--wk-ico:var(--wk-ico-assistant)}
.wk-ico-pratiques{--wk-ico:var(--wk-ico-pratiques)}
.wk-ico-systeme{--wk-ico:var(--wk-ico-systeme)}
.wk-ico-commercial{--wk-ico:var(--wk-ico-commercial)}
.wk-ico-comptabilite{--wk-ico:var(--wk-ico-comptabilite)}
.wk-ico-developpement{--wk-ico:var(--wk-ico-developpement)}
.wk-ico-formation{--wk-ico:var(--wk-ico-formation)}
.wk-ico-projet{--wk-ico:var(--wk-ico-projet)}
.wk-ico-graphisme{--wk-ico:var(--wk-ico-graphisme)}
.wk-ico-integration{--wk-ico:var(--wk-ico-integration)}
.wk-ico-general{--wk-ico:var(--wk-ico-general)}
html:root .page-content .wk-links{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:0 24px;max-width:none;padding:0;list-style:none}
html:root .page-content .wk-links li{margin:0;border-top:1px solid var(--cs-line)}
html:root .page-content .wk-links li:nth-last-child(-n+2){border-bottom:1px solid var(--cs-line)}
html:root .page-content .wk-links a{display:flex;align-items:center;gap:10px;min-height:44px;color:var(--cs-ink);text-decoration:none;font-weight:600}
html:root .page-content .wk-links a::before{content:"";width:16px;height:16px;flex:none;background:var(--color-page);-webkit-mask:var(--wk-i-page) center/contain no-repeat;mask:var(--wk-i-page) center/contain no-repeat}
html:root .page-content .wk-links a small{margin-inline-start:auto;white-space:nowrap;font-family:var(--font-code);font-size:11px;font-weight:500;letter-spacing:.06em;color:var(--cs-muted)}
html:root .page-content .wk-links a:hover{color:var(--wk-link);text-decoration:underline}

/* accueil en mobile : cartes en lignes compactes (après les règles de bureau, qu'elles remplacent) */
@media screen and (max-width:1000px){
  html:root .page-content .wk-cards{grid-template-columns:1fr;gap:10px}
  html:root .page-content .wk-card{display:grid;grid-template-columns:36px 1fr;column-gap:14px;row-gap:2px;align-items:center;padding:12px 14px;text-align:start}
  html:root .page-content .wk-card::before{grid-row:1 / span 2;grid-column:1;margin:0}
  html:root .page-content .wk-card::after{top:50%;left:22px;margin-top:-10px}
  html:root .page-content .wk-card :is(strong,span){grid-column:2}
  html:root .page-content .wk-card small{display:none}
  html:root .page-content .wk-card{padding-inline-end:36px;background:var(--cs-surface) var(--wk-i-chevron-muted) no-repeat right 12px center/16px}
}

/* ---- Pictogramme par pôle (QUESTIONS 8, option B, décidée par Alexis le 26/10) ----
   Repéré par l'adresse du pôle (/shelves/<slug>) : renommer un pôle lui fait perdre son pictogramme
   jusqu'à la mise à jour de cette liste. Pastille sur l'accent 18 %, pictogramme en couleur de lien, comme l'accueil. */
a[href$="/shelves/administration-systeme"]{--wk-ico:var(--wk-ico-systeme)}
a[href$="/shelves/commercial"]{--wk-ico:var(--wk-ico-commercial)}
a[href$="/shelves/comptabilite"]{--wk-ico:var(--wk-ico-comptabilite)}
a[href$="/shelves/developpement"]{--wk-ico:var(--wk-ico-developpement)}
a[href$="/shelves/formation-et-assistance"]{--wk-ico:var(--wk-ico-formation)}
a[href$="/shelves/gestion-de-projet"]{--wk-ico:var(--wk-ico-projet)}
a[href$="/shelves/graphisme"]{--wk-ico:var(--wk-ico-graphisme)}
a[href$="/shelves/integration"]{--wk-ico:var(--wk-ico-integration)}
a[href$="/shelves/general"]{--wk-ico:var(--wk-ico-general)}
a[href$="/shelves/chatbot-ia"]{--wk-ico:var(--wk-ico-assistant)}
/* grille : bande teintée par l'accent, pictogramme posé sur la pastille blanche */
html:root a.grid-card:is([href$="/shelves/administration-systeme"],[href$="/shelves/commercial"],[href$="/shelves/comptabilite"],[href$="/shelves/developpement"],[href$="/shelves/formation-et-assistance"],[href$="/shelves/gestion-de-projet"],[href$="/shelves/graphisme"],[href$="/shelves/integration"],[href$="/shelves/general"],[href$="/shelves/chatbot-ia"]) .featured-image-container-wrap:not(:has(.featured-image-container[style*="url"])){background-color:color-mix(in srgb,var(--wk-accent) 18%,var(--cs-surface))}
html:root a.grid-card:is([href$="/shelves/administration-systeme"],[href$="/shelves/commercial"],[href$="/shelves/comptabilite"],[href$="/shelves/developpement"],[href$="/shelves/formation-et-assistance"],[href$="/shelves/gestion-de-projet"],[href$="/shelves/graphisme"],[href$="/shelves/integration"],[href$="/shelves/general"],[href$="/shelves/chatbot-ia"]) .featured-image-container-wrap:not(:has(.featured-image-container[style*="url"]))>svg>g{display:none}
html:root a.grid-card:is([href$="/shelves/administration-systeme"],[href$="/shelves/commercial"],[href$="/shelves/comptabilite"],[href$="/shelves/developpement"],[href$="/shelves/formation-et-assistance"],[href$="/shelves/gestion-de-projet"],[href$="/shelves/graphisme"],[href$="/shelves/integration"],[href$="/shelves/general"],[href$="/shelves/chatbot-ia"]) .featured-image-container-wrap:not(:has(.featured-image-container[style*="url"]))::after{content:"";position:absolute;left:23px;top:19px;width:16px;height:16px;background:var(--wk-link);-webkit-mask:var(--wk-ico) center/contain no-repeat;mask:var(--wk-ico) center/contain no-repeat}
/* listes, colonnes, recherche : pastille accent + pictogramme */
html:root a.entity-list-item:is([href$="/shelves/administration-systeme"],[href$="/shelves/commercial"],[href$="/shelves/comptabilite"],[href$="/shelves/developpement"],[href$="/shelves/formation-et-assistance"],[href$="/shelves/gestion-de-projet"],[href$="/shelves/graphisme"],[href$="/shelves/integration"],[href$="/shelves/general"],[href$="/shelves/chatbot-ia"])>.icon,html:root a.entity-list-item:is([href$="/shelves/administration-systeme"],[href$="/shelves/commercial"],[href$="/shelves/comptabilite"],[href$="/shelves/developpement"],[href$="/shelves/formation-et-assistance"],[href$="/shelves/gestion-de-projet"],[href$="/shelves/graphisme"],[href$="/shelves/integration"],[href$="/shelves/general"],[href$="/shelves/chatbot-ia"])>.entity-list-item-image[style*="data:image/gif"]{background:color-mix(in srgb,var(--wk-accent) 18%,var(--cs-surface))}
html:root a:is([href$="/shelves/administration-systeme"],[href$="/shelves/commercial"],[href$="/shelves/comptabilite"],[href$="/shelves/developpement"],[href$="/shelves/formation-et-assistance"],[href$="/shelves/gestion-de-projet"],[href$="/shelves/graphisme"],[href$="/shelves/integration"],[href$="/shelves/general"],[href$="/shelves/chatbot-ia"]) svg.svg-icon[data-icon="bookshelf"]>g{display:none}
html:root a:is([href$="/shelves/administration-systeme"],[href$="/shelves/commercial"],[href$="/shelves/comptabilite"],[href$="/shelves/developpement"],[href$="/shelves/formation-et-assistance"],[href$="/shelves/gestion-de-projet"],[href$="/shelves/graphisme"],[href$="/shelves/integration"],[href$="/shelves/general"],[href$="/shelves/chatbot-ia"]) svg.svg-icon[data-icon="bookshelf"]{background:var(--wk-link);-webkit-mask:var(--wk-ico) center/contain no-repeat;mask:var(--wk-ico) center/contain no-repeat}
/* fil d'Ariane : la pastille du pôle passe sur l'accent */
html:root .breadcrumbs a.icon-list-item:is([href$="/shelves/administration-systeme"],[href$="/shelves/commercial"],[href$="/shelves/comptabilite"],[href$="/shelves/developpement"],[href$="/shelves/formation-et-assistance"],[href$="/shelves/gestion-de-projet"],[href$="/shelves/graphisme"],[href$="/shelves/integration"],[href$="/shelves/general"],[href$="/shelves/chatbot-ia"])>span:first-child{background:color-mix(in srgb,var(--wk-accent) 18%,var(--cs-surface))}

/* ---- Gestionnaire d'images (« Sélectionner une image ») ----
   Grille native : carrés jointifs à 3 px, sans bord ni fond. Des captures à fond blanc, recadrées au centre, s'y fondent
   les unes dans les autres : on croit voir des vignettes de hauteurs différentes qui se chevauchent. Tuiles cernées sur le canevas. */
html:root .image-manager-list{gap:10px;padding:12px;background:var(--cs-canvas)}
html:root .image-manager-list .image{border:1px solid var(--cs-line);border-radius:var(--cs-r-sm);background:var(--cs-surface)}
html:root .image-manager-list .image img{height:100%}
html:root .image-manager-list .image.selected{outline:2px solid var(--wk-focus);outline-offset:2px;border-radius:var(--cs-r-sm);transform:none;background:var(--cs-surface)}
/* « Téléverser une image » : texte de 0,8 rem dans la barre de titre, à côté de la croix. Pilule claire, l'élément le plus visible
   de la barre. Couleurs fixes : la barre garde la couleur de l'application dans les deux thèmes (#011C2F, #C22A55). */
html:root .image-manager .popup-header>button:not(.popup-header-close){display:inline-flex;align-items:center;gap:6px;align-self:center;flex:none;margin:0 6px 0 0;padding:4px 16px;border-radius:var(--cs-r-full);background:#FFF;color:#011C2F;fill:#011C2F;font-size:14px;font-weight:700;line-height:20px;white-space:nowrap}
/* sur mobile, c'est le titre qui cède (points de suspension), pas la pilule */
html:root .image-manager .popup-header .popup-title{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
html:root .image-manager .popup-header>button:not(.popup-header-close):hover{background:#E2E5E9}
html:root .image-manager .popup-header>button:not(.popup-header-close):focus-visible{outline:2px solid #FFF;outline-offset:2px;box-shadow:none}
html:root .image-manager .popup-header>button:not(.popup-header-close) svg{width:16px;height:16px;margin:0;color:currentColor;fill:currentColor}

/* ---- Pied des fenêtres (image, lien, code) ----
   Natif : 40 px de haut, sans marge, fond teinté de la couleur de l'application, bouton carré collé dans le coin. Les boutons
   de l'habillage étant des pilules, la pilule touchait le bord droit et le bas. Pied en surface, filet en haut, et de l'air ;
   la hauteur minimale évite un saut quand le bouton « Sélectionner l'image » apparaît (caché tant que rien n'est choisi). */
html:root .popup-footer{height:auto;min-height:61px;padding:10px 12px;align-items:center;background:var(--cs-surface);border-top:1px solid var(--cs-line)}
html:root .popup-footer .button{margin:0;min-height:40px;padding:8px 22px}

/* ---- GIF (habillage.js) ---- */
.wk-gif{position:relative;display:inline-block;max-width:100%;vertical-align:top}
.wk-gif-still{display:none;position:absolute;inset:0;width:100%;height:100%;border-radius:var(--cs-r-sm)}
.wk-gif.is-paused .wk-gif-still{display:block}
.wk-gif-btn{position:absolute;left:10px;bottom:10px;display:inline-flex;align-items:center;gap:7px;min-height:34px;padding:0 14px 0 12px;border:0;border-radius:var(--cs-r-full);background:#011C2F;color:#F7F6F3;font:600 13px/1 var(--font-body);cursor:pointer;box-shadow:0 1px 3px rgba(1,28,47,.3)}
.wk-gif-btn::before{content:"";width:0;height:0;border-style:solid;border-width:6px 0 6px 10px;border-color:transparent transparent transparent currentColor}
.wk-gif:not(.is-paused) .wk-gif-btn::before{width:10px;height:12px;border:0;border-left:3px solid;border-right:3px solid;box-sizing:border-box}
html:root .wk-gif-btn:focus-visible{outline:2px solid #F7F6F3;outline-offset:-4px}

/* ---- Mouvement ----
   Durées quasi nulles et non « none » : BookStack attend animationend / transitionend pour masquer une fenêtre fermée
   (sinon elle reste invisible par-dessus la page et bloque les clics) ou retirer un téléversement, et ses vignettes
   d'images (.anim.fadeIn) partent d'une opacité 0 que seule la fin de l'animation lève. */
@media (prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.01ms!important;animation-delay:0s!important;animation-iteration-count:1!important;transition-duration:.01ms!important;transition-delay:0s!important}}
