/* ------------------------------------------------------------------
   Feuille de style du blog statique, copiée telle quelle en
   `dist/blog/blog.css` par scripts/make-blog.mjs.

   Elle est DÉDIÉE, et ce n'est pas un doublon par paresse : les pages
   d'articles ne chargent aucun JavaScript, donc elles ne peuvent pas
   dépendre du CSS émis par Vite pour l'application (nom haché à chaque
   build, et il suppose que Tailwind a compilé les classes utilisées).
   Toutes les valeurs ci-dessous sont reprises de `src/index.css` : même
   indigo #1F18C0, même rampe de gris, mêmes fontes auto-hébergées. Changer
   la palette reste une opération à deux fichiers, et elles sont voisines.

   L'application est en thème CLAIR par défaut depuis le 2026-04-23, malgré
   des noms de jetons qui sonnent sombre. Ces pages le sont aussi.

   Mobile d'abord : 64 % des impressions du site sont mobiles, et 77 % des
   clics (Search Console, 3 mois au 2026-09-17). Marge latérale de 16 px,
   aucun défilement horizontal, tableaux confinés dans leur propre boîte.
   ------------------------------------------------------------------ */

/* Fontes auto-hébergées, identiques à src/index.css. Le sous-ensemble
   « latin » couvre à lui seul le français. */
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/fonts/bricolage-grotesque-latin.woff2") format("woff2");
  font-weight: 600 800;
  font-style: normal;
  font-display: swap;
  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: "Bricolage Grotesque";
  src: url("/fonts/bricolage-grotesque-latin-ext.woff2") format("woff2");
  font-weight: 600 800;
  font-style: normal;
  font-display: swap;
  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: "Instrument Sans";
  src: url("/fonts/instrument-sans-latin.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
  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: "Instrument Sans";
  src: url("/fonts/instrument-sans-latin-ext.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
  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;
}

:root {
  --accent: #1f18c0;
  --accent-strong: #1913a0;
  --tint: #e3e1ff;
  --soft: #c6c2ff;
  --page: #f8f7fc;
  --surface: #ffffff;
  --hair: #eae9f3;
  --border: #e4e2ef;
  --ink: #08070f;
  --ink-body: #1c1a29;
  --ink-muted: #4a4760;
  /* #777290 donnait 4,29:1 sur --page, sous le seuil AA de 4,5. Celui-ci
     mesure 4,96:1 sur --page et 5,28:1 sur blanc. */
  --ink-faint: #6d6886;
  --display: "Bricolage Grotesque", system-ui, sans-serif;
  --text: "Instrument Sans", system-ui, sans-serif;
  --gutter: 16px;
  --measure: 40rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* L'app est en theme clair ; sans cette declaration, Chrome Android
     inverse la page de son propre chef. */
  color-scheme: light;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--ink-body);
  font-family: var(--text);
  font-size: 1.0625rem;
  line-height: 1.65;
  /* Rien ne doit déborder en largeur de téléphone. */
  overflow-wrap: break-word;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

a:hover {
  color: var(--accent-strong);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* ----- ossature ----- */

.site,
main,
.site-footer {
  max-width: var(--measure);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.site {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
}

.brand img {
  display: block;
  height: 24px;
  width: auto;
}

.site-nav {
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
}

main {
  padding-bottom: 3rem;
}

.crumbs {
  font-size: 0.875rem;
  color: var(--ink-faint);
  margin-bottom: 1.5rem;
}

.crumbs a {
  color: var(--ink-muted);
}

.sep {
  color: var(--ink-faint);
  padding-inline: 0.25rem;
}

.kicker {
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.5rem;
}

h1 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.75rem, 6vw, 2.5rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 0.75rem;
}

.meta {
  font-size: 0.875rem;
  color: var(--ink-faint);
  margin: 0 0 2rem;
}

.lead {
  font-size: 1.125rem;
  color: var(--ink-muted);
  margin: 0 0 2.5rem;
}

/* ----- corps d'article ----- */

.prose h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.375rem, 4.5vw, 1.75rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 2.75rem 0 0.875rem;
  scroll-margin-top: 1rem;
}

.prose h3 {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.125rem;
  line-height: 1.3;
  color: var(--ink);
  margin: 2rem 0 0.625rem;
  scroll-margin-top: 1rem;
}

.prose p {
  margin: 0 0 1.125rem;
}

.prose ul,
.prose ol {
  margin: 0 0 1.25rem;
  padding-left: 1.25rem;
}

.prose li {
  margin-bottom: 0.5rem;
}

.prose strong {
  font-weight: 600;
  color: var(--ink);
}

.prose blockquote {
  margin: 1.75rem 0;
  padding: 1rem 1.125rem;
  border-left: 3px solid var(--soft);
  background: var(--surface);
  border-radius: 0 10px 10px 0;
  color: var(--ink-muted);
}

.prose blockquote p:last-child {
  margin-bottom: 0;
}

.prose hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 2.5rem 0;
}

/* Un tableau large défile DANS sa boîte, jamais avec la page. */
.table-wrap {
  overflow-x: auto;
  margin: 1.5rem 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
}

table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.9375rem;
}

th,
td {
  text-align: left;
  padding: 0.625rem 0.75rem;
  border-bottom: 1px solid var(--hair);
  vertical-align: top;
}

thead th {
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.8125rem;
  letter-spacing: 0.01em;
  color: var(--ink);
  background: var(--page);
  /* `white-space: nowrap` imposait 407px de plancher a la table et amputait
     la 3e colonne jusqu'a 414px de large, sans aucune affordance de
     defilement. Un en-tete sur deux lignes tient partout. */
}

tbody tr:last-child td {
  border-bottom: 0;
}

/* ----- appel à l'action ----- */

.cta {
  margin-top: 3rem;
  padding: 1.5rem;
  border-radius: 16px;
  background: var(--accent);
  color: #dcd9ff;
}

.cta-kicker {
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #b4afee;
  margin: 0 0 0.5rem;
}

.cta-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.375rem;
  line-height: 1.2;
  color: #ffffff;
  margin: 0 0 0.625rem;
}

.cta-body {
  margin: 0 0 1.25rem;
  font-size: 1rem;
}

.cta-button {
  display: inline-block;
  background: #ffffff;
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  /* Cible tactile confortable au pouce. */
  min-height: 44px;
  line-height: 1.6;
}

.cta-button:hover {
  background: var(--tint);
  color: var(--accent-strong);
}

/* Le lisere global est indigo ; sur le pave indigo du bloc d'appel a l'action
   il disparait (1,00:1) et le seul element de conversion de la page se
   traverse a l'aveugle au clavier. Blanc sur #1F18C0 : 10,77:1. */
.cta :focus-visible {
  outline-color: #ffffff;
}

/* ----- index ----- */

.silo {
  margin-top: 3rem;
  scroll-margin-top: 1rem;
}

.silo h2 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.5rem;
  line-height: 1.2;
  color: var(--ink);
  margin: 0 0 0.5rem;
}

.silo-blurb {
  color: var(--ink-muted);
  margin: 0 0 1.5rem;
}

.cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.125rem;
}

.card-link {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.125rem;
  line-height: 1.25;
  color: var(--ink);
  text-decoration: none;
  display: block;
  margin-bottom: 0.5rem;
}

.card-link:hover {
  color: var(--accent);
}

.card-desc {
  margin: 0 0 0.625rem;
  color: var(--ink-muted);
  font-size: 0.9375rem;
}

.card-meta {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--ink-faint);
}

.empty {
  color: var(--ink-muted);
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: 14px;
  padding: 1.125rem;
  margin: 0;
}

.silo-landing {
  margin: 1rem 0 0;
  font-size: 0.9375rem;
  font-weight: 600;
}

/* ----- pied de page ----- */

.site-footer {
  border-top: 1px solid var(--border);
  padding-block: 2rem 3rem;
}

.footer-links {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem 1.25rem;
  font-size: 0.9375rem;
}

.footer-legal {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--ink-faint);
}

@media (min-width: 48rem) {
  :root {
    --gutter: 24px;
  }

  body {
    font-size: 1.125rem;
  }

  main {
    padding-bottom: 4rem;
  }

  .cta {
    padding: 2rem;
  }
}
