@charset "UTF-8";
/*!
 * Info Ops France — feuille de style principale.
 * Dérivée du thème Hugo "zozo", Copyright (c) 2019 varkai, licence MIT.
 * Voir LICENSE-zozo à la racine du dépôt.
 */

/* ==========================================================================
   Principes
   - Mise en page de publication de recherche : en-tête affirmé, surtitre
     rouge, titre, chapeau, signature.
   - Une police, IBM Plex Sans (fonts.css), hébergée sur le site.
   - Trois largeurs : --wrap (en-tête, accueil, pied), --wide (figures,
     graphiques, tableaux), --text-col (texte courant, ~70 signes).
   - Les capitales sont réservées aux étiquettes (surtitre, intitulés).
   - Un seul filet, sous la navigation. Partout ailleurs, ce sont l'espace,
     la graisse et les fonds teintés qui séparent les blocs.
   ========================================================================== */

:root {
  color-scheme: light;
  --bg: #fbfaf8;
  --panel: #f1efea;
  --ink: #141414;
  --text: #222222;
  --muted: #5a5a5a;
  --faint: #6b6b6b;   /* 5,1:1 sur --bg, 4,6:1 sur --panel (WCAG AA) */
  --rule: #dad7d0;
  --rule-strong: #141414;
  --accent: #c0182b;
  --accent-ink: #9a1222;
  --focus: #0a5fd6;

  --sans: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
  --mono: Menlo, Monaco, Consolas, "Liberation Mono", monospace;

  --wrap: 68rem;
  --wide: 50rem;
  --text-col: 40rem;
  --gutter: 32px;
}

/* Thème sombre.
   Deux déclencheurs : la préférence système, et le choix explicite du
   lecteur (attribut data-theme posé sur <html> par le sélecteur).
   Le :not([data-theme="light"]) permet au choix explicite « clair » de
   l'emporter sur un système réglé en sombre. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #121417;
    --panel: #1b1e23;
    --ink: #f2f2f2;
    --text: #dedede;
    --muted: #a6abb2;
    --faint: #868c95;
    --rule: #2e333a;
    --rule-strong: #e6e6e6;
    --accent: #ff5a66;
    --accent-ink: #ff8a92;
    --focus: #7cb0ff;
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #121417;
  --panel: #1b1e23;
  --ink: #f2f2f2;
  --text: #dedede;
  --muted: #a6abb2;
  --faint: #868c95;
  --rule: #2e333a;
  --rule-strong: #e6e6e6;
  --accent: #ff5a66;
  --accent-ink: #ff8a92;
  --focus: #7cb0ff;
}

/* Base -------------------------------------------------------------------- */

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

html {
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
}

a { color: inherit; text-decoration: none; transition: color 0.15s linear; }
a:hover { color: var(--accent); }

h1, h2, h3, h4 {
  font-family: var(--sans);
  color: var(--ink);
  text-wrap: balance;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; }

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Logo en SVG inline (partials/logo-svg.html), dessiné en currentColor :
   il prend la couleur de l'encre dans les deux thèmes. */
.site_logo { display: block; height: 54px; width: auto; color: var(--ink); }
.site_title:hover .site_logo { color: var(--ink); }

/* Surtitre : le seul usage courant des capitales. */
.kicker {
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.kicker a:hover { color: var(--accent-ink); }

.standfirst {
  margin: 0;
  font-size: 1.25rem;
  line-height: 1.5;
  color: var(--text);
}

.byline {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: 7px;
  font-size: 14.5px;
  color: var(--muted);
}

.byline strong { color: var(--ink); font-weight: 600; }
.byline > span { white-space: nowrap; }
.byline_sep { color: var(--faint); }

/* En-tête ----------------------------------------------------------------- */

.masthead { padding-top: 28px; }

.mh_top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.tools {
  display: flex;
  align-items: center;
  gap: 16px;
}

.tools a,
.tools button {
  display: inline-flex;
  align-items: center;
  color: var(--muted);
  font-size: 18px;
  line-height: 1;
}

.tools a:hover,
.tools button:hover { color: var(--ink); }

.theme_toggle {
  background: none;
  border: 0;
  padding: 0;
  margin: 0;
  cursor: pointer;
  font: inherit;
}

.theme_toggle[hidden] { display: none !important; }

/* L'icône affichée indique le thème vers lequel on bascule :
   lune en thème clair, soleil en thème sombre. */
.theme_icon { display: none; }
.theme_toggle[data-state="light"] .theme_icon_moon { display: inline-flex; }
.theme_toggle[data-state="dark"] .theme_icon_sun { display: inline-flex; }

.site_nav {
  margin-top: 18px;
  border-bottom: 1px solid var(--rule);
}

.site_nav ul {
  display: flex;
  gap: 30px;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: none;
}

.site_nav ul::-webkit-scrollbar { display: none; }

.site_nav a {
  display: block;
  padding: 10px 0 12px;
  margin-bottom: -1px;
  font-size: 15px;
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
  border-bottom: 2px solid transparent;
}

.site_nav a:hover { color: var(--ink); }

.site_nav a[aria-current] {
  color: var(--ink);
  border-bottom-color: var(--accent);
}

/* Contenu ----------------------------------------------------------------- */

.content { padding-bottom: 0; }

.epigraph {
  margin: 22px 0 0;
  padding: 0;
  border: 0;
}

.epigraph p {
  margin: 0;
  font-size: 15px;
  font-style: italic;
  line-height: 1.5;
  color: var(--muted);
}

/* L'attribution reprend la police de la citation. */
.epigraph cite {
  font: inherit;
  color: inherit;
  white-space: nowrap;
}

.page_head {
  max-width: var(--wide);
  padding: 48px 0 8px;
}

.page_heading {
  margin: 0 0 14px;
  font-size: 2.25rem;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.page_head .standfirst {
  max-width: var(--text-col);
  font-size: 1.125rem;
  color: var(--muted);
}

.page_intro { max-width: var(--text-col); margin-top: 16px; }

/* Accueil : article à la une ---------------------------------------------- */

.lead {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 48px;
  align-items: start;
  padding: 40px 0 0;
}

.lead_title {
  margin: 12px 0 18px;
  font-size: 2.25rem;
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.01em;
}

.lead .standfirst { margin-bottom: 20px; }

.lead_image img {
  display: block;
  width: 100%;
  height: auto;
}

.sec_head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin: 88px 0 8px;
}

.sec_head h2 { margin: 0; font-size: 1.125rem; font-weight: 600; }
.sec_head a { font-size: 14px; color: var(--muted); }
.sec_head a:hover { color: var(--accent); }

/* Listes d'articles ------------------------------------------------------- */

.items {
  margin: 0;
  padding: 0;
  list-style: none;
}

.item {
  display: grid;
  grid-template-columns: 9rem 1fr 7.5rem;
  gap: 32px;
  padding: 24px 0;
}

.item > time {
  padding-top: 1px;
  font-size: 14px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.item_nothumb { grid-template-columns: 9rem 1fr; }

.item_body { grid-column: 2; }

.item_title {
  margin: 6px 0 8px;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.3;
}

.item_stand {
  margin: 0;
  max-width: var(--text-col);
  line-height: 1.55;
  color: var(--muted);
}

.item_thumb { grid-column: 3; }

.item_thumb img {
  display: block;
  width: 100%;
  height: auto;   /* l'attribut height de l'<img> ne doit pas s'imposer */
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 40px;
  font-size: 15px;
  font-weight: 500;
}

.pagination_status {
  color: var(--faint);
  font-weight: 400;
  font-variant-numeric: tabular-nums;
}

/* Archive ----------------------------------------------------------------- */

.archive { max-width: var(--wide); }

.archive_title {
  margin: 48px 0 6px;
  font-size: 1.125rem;
  font-weight: 600;
}

.listing {
  margin: 0;
  padding: 0;
  list-style: none;
}

.listing_post {
  display: flex;
  align-items: baseline;
  gap: 24px;
  padding: 8px 0;
  line-height: 1.4;
}

.listing_post a { flex: 1; color: var(--ink); }
.listing_post a:hover { color: var(--accent); }

.listing_post time {
  flex: none;
  font-size: 14px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

/* Tags -------------------------------------------------------------------- */

.page_tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: var(--wide);
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.page_tags li {
  background: var(--panel);
  padding: 6px 12px;
  font-size: 15px;
}

.page_tags .terms_count {
  margin-left: 4px;
  font-size: 13px;
  color: var(--faint);
  font-variant-numeric: tabular-nums;
}

/* Article ----------------------------------------------------------------- */

/* Article : la colonne de texte (--text-col) est centrée sur la page et
   tout s'aligne sur elle (en-tête, texte, tableaux). Les graphiques
   débordent également des deux côtés jusqu'à --wide ; les captures
   flottantes débordent dans la marge de droite. */
.art_head {
  max-width: var(--text-col);
  margin: 0 auto;
  padding-top: 52px;
}

.art_head h1 {
  margin: 14px 0 20px;
  font-size: 2.5rem;
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.012em;
}

.art_head .standfirst {
  max-width: var(--text-col);
  margin-bottom: 22px;
  font-size: 1.3rem;
}



/* La couverture est souvent une capture Telegram : elle reste à la
   largeur du texte, comme un document cité, pas comme une illustration. */
.cover {
  max-width: var(--text-col);
  margin: 40px auto 0;
}

.cover img { display: block; width: 100%; height: auto; }

.cover figcaption {
  margin-top: 10px;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--muted);
}

.cover figcaption p { margin: 0; }

/* Corps de texte ---------------------------------------------------------- */

.post_content {
  max-width: var(--text-col);
  margin: 48px auto 0;
  font-size: 1.0625rem;
  line-height: 1.68;
  color: var(--text);
}

.markdown { overflow-wrap: break-word; }

.markdown p { margin: 0 0 1.15em; }

.markdown a {
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

.markdown h2,
.markdown h3,
.markdown h4 {
  font-weight: 600;
  clear: both;   /* jamais à côté d'une figure flottante */
}

.markdown h2 {
  margin: 2.4em 0 0.7em;
  font-size: 1.55rem;
  line-height: 1.25;
}

.markdown h3 {
  margin: 2em 0 0.45em;
  font-size: 1.15rem;
  line-height: 1.35;
}

.markdown h2 + h3 { margin-top: 1.1em; }

.markdown h4 {
  margin: 1.6em 0 0.4em;
  font-size: 1rem;
  line-height: 1.4;
}

.markdown > :first-child { margin-top: 0; }

.markdown ul,
.markdown ol {
  margin: 0 0 1.15em;
  padding-left: 1.2em;
}

.markdown li { margin-bottom: 0.45em; }
.markdown li::marker { color: var(--faint); }
.markdown li > ul,
.markdown li > ol { margin: 0.45em 0 0; }

.markdown strong,
.markdown b { font-weight: 600; color: var(--ink); }

.markdown em { font-style: italic; }

.markdown blockquote {
  margin: 1.75em 0;
  padding: 0 0 0 1.25em;
  border-left: 2px solid var(--rule);
  color: var(--muted);
}

.markdown blockquote p { white-space: pre-line; }
.markdown blockquote p:last-child { margin-bottom: 0; }

.markdown hr {
  border: 0;
  margin: 2.4em 0;
}

.markdown code,
.markdown pre {
  font-family: var(--mono);
  font-size: 0.875em;
  background: var(--panel);
}

.markdown code { padding: 0.1em 0.3em; }

.markdown pre {
  margin: 0 0 1.15em;
  padding: 16px;
  overflow: auto;
  white-space: pre;
}

.markdown pre code { padding: 0; background: none; }

/* Toutes les illustrations d'un article occupent la même largeur —
   celle de la colonne de texte — quelle que soit leur taille source. */
.markdown img {
  display: block;
  width: 100%;
  height: auto;
  margin: 1.5em 0;
}

/* « En bref » : bloc des points clés, sur fond teinté. Le titre et la
   liste qui le suit forment un seul panneau. */
.markdown h2#en-bref {
  margin: 0;
  padding: 24px 28px 10px;
  background: var(--panel);
  color: var(--accent);
  font-size: 12.5px;
  line-height: 1.4;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.markdown h2#en-bref + ul {
  margin: 0 0 2.2em;
  padding: 0 28px 14px calc(28px + 1.2em);
  background: var(--panel);
  font-size: 1rem;
  line-height: 1.55;
}

.markdown h2#en-bref + ul li { margin-bottom: 12px; }
.markdown h2#en-bref + ul li::marker { color: var(--accent); }

/* « Tonalité : mixte » (transformé dans single.html). */
.markdown p.tone {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  margin: 0 0 1.1em;
  line-height: 1.3;
}

.tone_label {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
}

.tone_value {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
}

/* Graphiques et figures pleine largeur : débordent de 5rem de chaque
   côté. Les tableaux restent à la largeur du texte. */
@media (min-width: 880px) {
  .post_content > .courbes,
  .post_content > .fig:not(.fig_float) {
    margin-left: calc((var(--text-col) - var(--wide)) / 2);
    margin-right: calc((var(--text-col) - var(--wide)) / 2);
  }
}

/* Tableaux : filets horizontaux, chiffres alignés. */
.table_wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 2em 0;
}

.post_content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
  line-height: 1.45;
  font-variant-numeric: tabular-nums;
}

/* Le texte des cellules doit pouvoir revenir à la ligne : avec nowrap,
   une seule cellule un peu longue élargissait le tableau au-delà de la
   page. Les colonnes courtes (nombres) tiennent sur une ligne d'elles-mêmes. */
.post_content th,
.post_content td {
  padding: 6px 16px 6px 0;
  text-align: left;
  vertical-align: top;
  white-space: normal;
}

.post_content th {
  padding-top: 0;
  font-weight: 600;
  color: var(--ink);
  border-bottom: 1px solid var(--rule);
}

.post_content tbody tr:first-child td { padding-top: 12px; }

.post_content th:last-child,
.post_content td:last-child { padding-right: 0; }

/* Première colonne : c'est l'entrée de lecture, on la garde d'un bloc. */
.post_content td:first-child { white-space: nowrap; }

/* Figures ----------------------------------------------------------------- */

.fig { margin: 2em 0; }

.fig img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0;
}

.fig figcaption,
.courbes figcaption {
  margin-top: 10px;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--muted);
}

.fig_caption { display: block; }

.fig_source {
  display: block;
  margin-top: 2px;
  color: var(--faint);
}

.post_content > .fig_float {
  width: 18rem;
  max-width: 18rem;
  margin: 0.35em 0 1.25em;
}

.fig_float img { width: 100%; }

/* Captures flottantes : leur bord extérieur s'aligne sur celui des
   graphiques, 5rem au-delà de la colonne de texte. */
.fig_float_right {
  float: right;
  margin-left: 2rem !important;
  margin-right: calc((var(--text-col) - var(--wide)) / 2) !important;
}

.fig_float_left {
  float: left;
  margin-right: 2rem !important;
  margin-left: calc((var(--text-col) - var(--wide)) / 2) !important;
}
.fig_float img   { cursor: zoom-in; }

/* Sous 700px le texte n'a plus la place d'habiller une figure : on
   repasse en pleine largeur, dans le flux. */
@media (max-width: 879px) {
  .post_content > .fig_float {
    float: none;
    width: auto;
    max-width: 100% !important;
    margin: 1.5em 0 !important;
  }
}

/* Courbes d'évolution ------------------------------------------------------ */

.courbes {
  margin: 2.2em 0;
  /* Palette catégorielle validée (bande de clarté, chroma, séparation DVC,
     contraste) pour chacun des deux fonds. */
  --s1: #2a78d6; --s2: #eb6834; --s3: #1baf7a; --s4: #eda100;
  --s5: #e87ba4; --s6: #008300; --s7: #4a3aa7;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .courbes {
    --s1: #3987e5; --s2: #d95926; --s3: #199e70; --s4: #c98500;
    --s5: #d55181; --s6: #008300; --s7: #9085e9;
  }
}
:root[data-theme="dark"] .courbes {
  --s1: #3987e5; --s2: #d95926; --s3: #199e70; --s4: #c98500;
  --s5: #d55181; --s6: #008300; --s7: #9085e9;
}

.courbes svg { display: block; width: 100%; height: auto; font-family: var(--sans); }

.cb_grid  { stroke: var(--rule); stroke-width: 1; }
.cb_line  { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.cb_dot   { stroke: var(--bg); stroke-width: 2; }
.cb_hit   { fill: none; }   /* zone d'infobulle seulement, aucun effet visuel */

/* Unités SVG : le graphique (900 de large) est réduit à ~800 px, d'où
   13 plutôt que 11 pour garder des étiquettes lisibles. */
.cb_ytick { fill: var(--faint); font-size: 13px; text-anchor: end; }
.cb_unit  { fill: var(--faint); font-size: 13px; }
.cb_xtick { fill: var(--faint); font-size: 13px; text-anchor: middle; }

/* Titre de figure (graphique) et légende de tableau : même style. */
.fig_title,
.post_content table caption {
  margin: 0 0 14px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  text-align: left;
  color: var(--ink);
}

.post_content table caption { caption-side: top; }
.post_content table caption p { margin: 0; }

.cb_s1 { stroke: var(--s1); } .cb_s1.cb_dot { fill: var(--s1); }
.cb_s2 { stroke: var(--s2); } .cb_s2.cb_dot { fill: var(--s2); }
.cb_s3 { stroke: var(--s3); } .cb_s3.cb_dot { fill: var(--s3); }
.cb_s4 { stroke: var(--s4); } .cb_s4.cb_dot { fill: var(--s4); }
.cb_s5 { stroke: var(--s5); } .cb_s5.cb_dot { fill: var(--s5); }
.cb_s6 { stroke: var(--s6); } .cb_s6.cb_dot { fill: var(--s6); }
.cb_s7 { stroke: var(--s7); } .cb_s7.cb_dot { fill: var(--s7); }

.cb_legend {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--muted);
}

.cb_legend li { display: inline-flex; align-items: center; gap: 7px; margin: 0; }

/* Total sur la période, à côté du libellé : évite de lire le pic quotidien
   comme s'il était le volume total. */
.cb_total { color: var(--faint); font-variant-numeric: tabular-nums; }

.cb_swatch {
  width: 10px;
  height: 10px;
  border-radius: 50%;   /* reprend la forme des points du graphique */
  flex: none;
}
.cb_swatch.cb_s1 { background: var(--s1); } .cb_swatch.cb_s2 { background: var(--s2); }
.cb_swatch.cb_s3 { background: var(--s3); } .cb_swatch.cb_s4 { background: var(--s4); }
.cb_swatch.cb_s5 { background: var(--s5); } .cb_swatch.cb_s6 { background: var(--s6); }
.cb_swatch.cb_s7 { background: var(--s7); }

/* Méthodologie / provenance des données ---------------------------------- */

.methodology {
  clear: both;
  margin: 3.5em 0 0;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--muted);
}

.markdown .methodology_title {
  margin: 0 0 8px;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.methodology_body p { margin: 0 0 0.6em; }
.methodology_body p:last-child { margin-bottom: 0; }
.methodology strong { color: inherit; font-weight: 600; }

/* Pied d'article ---------------------------------------------------------- */

.art_tags {
  max-width: var(--text-col);
  margin: 20px auto 0;
  font-size: 14px;
  color: var(--faint);
}

.art_tags a { color: var(--muted); }
.art_tags a:hover { color: var(--accent); }
.art_tags a + a::before { content: "·"; margin-right: 6px; color: var(--faint); }

.post_nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  max-width: var(--text-col);
  margin: 56px auto 0;
}

.post_nav a {
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: var(--ink);
}

.post_nav_label {
  font-size: 13px;
  color: var(--muted);
}

.post_nav_title {
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.35;
}

.post_nav a:hover .post_nav_label { color: var(--accent); }

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

.post_nav_next {
  grid-column: 2;
  align-items: flex-end;
  text-align: right;
}

/* Soutien ------------------------------------------------------------------ */

.support_line {
  max-width: var(--text-col);
  margin: 36px auto 0;
  font-size: 15px;
  color: var(--muted);
}

.support_line a {
  color: var(--ink);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 0.2em;
}

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

.markdown .support_list {
  list-style: none;
  padding: 0;
  margin: 1.5em 0;
}

.markdown .support_list li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
  padding: 12px 16px;
  margin-bottom: 8px;
  background: var(--panel);
}

.markdown .support_list li::marker { content: ""; }
.markdown .support_list a { font-weight: 600; }
.support_note { font-size: 14px; color: var(--muted); }
.support_coin { font-weight: 600; color: var(--ink); }

.support_addr {
  flex-basis: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.support_addr code { overflow-wrap: anywhere; }

.copy_btn {
  flex: none;
  padding: 4px 10px;
  border: 1px solid var(--rule);
  background: var(--bg);
  color: var(--ink);
  font: 500 13px var(--sans);
  cursor: pointer;
}

.copy_btn:hover { border-color: var(--ink); }

.footer_legal a { color: var(--muted); }
.footer_legal a:hover { color: var(--accent); }

/* Pied de page ------------------------------------------------------------ */

.footer { margin-top: 56px; }

.footer_legal {
  margin: 0;
  padding: 24px 0 40px;
  font-size: 13px;
  text-align: center;
  color: var(--faint);
}

/* Retour en haut ---------------------------------------------------------- */

.back_to_top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 38px;
  height: 38px;
  display: none;
  align-items: center;
  justify-content: center;
  background: var(--panel);
  color: var(--muted);
  font-size: 18px;
}

.back_to_top.is_visible { display: flex; }
.back_to_top:hover { color: var(--ink); }

/* Recherche --------------------------------------------------------------- */

.search-container { padding: 48px 0 40px; max-width: var(--wide); }

.search_noscript { color: var(--muted); font-size: 15px; }

:root {
  --pagefind-ui-scale: 0.9;
  --pagefind-ui-primary: var(--accent);
  --pagefind-ui-text: var(--text);
  --pagefind-ui-background: var(--bg);
  --pagefind-ui-border: var(--rule);
  --pagefind-ui-tag: var(--panel);
  --pagefind-ui-border-width: 1px;
  --pagefind-ui-border-radius: 0;
  --pagefind-ui-font: var(--sans);
}

.pagefind-ui__search-input { font-size: 1rem !important; }
.pagefind-ui__result-link { color: var(--ink) !important; }
.pagefind-ui__result-link:hover { color: var(--accent) !important; }

/* 404 --------------------------------------------------------------------- */

.not_found { padding: 52px 0 20px; max-width: var(--wide); }

.not_found_code {
  margin: 0;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.not_found h1 {
  margin: 10px 0 12px;
  font-size: 2.25rem;
  font-weight: 600;
  line-height: 1.15;
}

.not_found_hint { margin: 0 0 32px; font-size: 1.125rem; color: var(--muted); }

.not_found a.home_link {
  display: inline-block;
  margin-top: 32px;
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 0.2em;
}

/* Accessibilité ----------------------------------------------------------- */

/* Lien d'évitement : invisible jusqu'à ce qu'il reçoive le focus clavier. */
.skip_link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--ink);
  color: var(--bg);
  font-size: 15px;
  font-weight: 600;
}

.skip_link:focus { top: 12px; color: var(--bg); }

.sr_only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Icônes SVG inline ------------------------------------------------------- */

.icon {
  display: inline-block;
  vertical-align: -0.125em;
  flex: none;
}

/* Mobile ------------------------------------------------------------------ */

@media (max-width: 760px) {
  :root { --gutter: 18px; }

  .masthead { padding-top: 16px; }
  .masthead .site_logo { height: 40px; }
  .tools { gap: 13px; }
  .tools a, .tools button { font-size: 17px; }
  .site_nav { margin-top: 14px; }
  .site_nav ul { gap: 18px; }

  .lead { grid-template-columns: 1fr; gap: 22px; padding-top: 28px; }
  .lead_image { order: -1; }
  .lead_title,
  .art_head h1,
  .page_heading,
  .not_found h1 { font-size: 1.75rem; }
  .standfirst,
  .art_head .standfirst { font-size: 1.125rem; }

  .item { grid-template-columns: 1fr; gap: 4px; padding: 18px 0; }
  .sec_head { margin-top: 56px; }
  .item_body { grid-column: 1; }
  .item_thumb { display: none; }

  .art_head { padding-top: 32px; }
  .page_head { padding-top: 32px; }

  .post_content { margin-top: 32px; }
  .markdown h2#en-bref { padding: 20px 18px 8px; }
  .markdown h2#en-bref + ul { padding: 0 18px 12px calc(18px + 1.2em); }

  .post_nav { grid-template-columns: 1fr; gap: 14px; }
  .post_nav_next { grid-column: 1; align-items: flex-start; text-align: left; }


  .post_content th,
  .post_content td { padding: 8px 12px 8px 0; }

  .back_to_top { display: none !important; }
}

@media (max-width: 420px) {
  .tools { gap: 11px; }
  .site_nav ul { gap: 15px; }
  .site_nav a { font-size: 14px; }
}

/* Impression -------------------------------------------------------------- */

@media print {
  .tools, .site_nav, .back_to_top, .post_nav, .pagination { display: none !important; }
  body { background: #fff; }
  .wrap { max-width: none; padding: 0; }
  .markdown a { text-decoration: none; }
}
