/* Feuille de style unique de pulseforimpact.com — implémente 05-docs/charte_graphique.md.
   Source : 01-code/site_assets/site.css, copiée vers /assets/ du build par
   site_layout.copy_site_assets(). Règle centrale de la charte : une couleur ne porte jamais
   deux significations (bleu = cadre, ambre = signal ponctuel, couleurs d'axe = axes). */

/* ---------- Polices (hébergées sur le VPS, licence OFL — fonts/LICENSE-OFL.txt) ---------- */
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(fonts/ibm-plex-sans-latin-400-normal.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: "IBM Plex Sans"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(fonts/ibm-plex-sans-latin-ext-400-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 500; font-display: swap;
  src: url(fonts/ibm-plex-sans-latin-500-normal.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: "IBM Plex Sans"; font-style: normal; font-weight: 500; font-display: swap;
  src: url(fonts/ibm-plex-sans-latin-ext-500-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
/* Serif italique : réservée EXCLUSIVEMENT aux citations factuelles sourcées (charte §2). */
@font-face { font-family: "IBM Plex Serif"; font-style: italic; font-weight: 400; font-display: swap;
  src: url(fonts/ibm-plex-serif-latin-400-italic.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: "IBM Plex Serif"; font-style: italic; font-weight: 400; font-display: swap;
  src: url(fonts/ibm-plex-serif-latin-ext-400-italic.woff2) format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }

/* ---------- Jetons (charte §4) ---------- */
:root {
  /* 4.1 Institutionnel — cadre, jamais de contenu factuel */
  --inst-bg: #E6F1FB;
  --inst-border: #B5D4F4;
  --inst-strong: #0C447C;
  --inst-strong-hover: #0A3862;
  --link: #185FA5;
  /* 4.2 Signal — nouveauté, alerte ponctuelle ; jamais fond de page ni bouton */
  --signal-bg: #FAEEDA;
  --signal-border: #FAC775;
  --signal-text: #633806;
  --signal-text-2: #854F0B;
  /* 4.3 Neutres */
  --bg: #F4F3EF;
  --surface: #FFFFFF;
  --row-hover: #FAFAF8;
  --border: #E4E2D9;
  --text: #141413;
  --text-2: #5F5E5A;
  /* Texte atténué (source, méta, fil d'Ariane) — foncé depuis #888780 (3,25:1) pour
     atteindre 4,5:1 (WCAG AA) sur le fond de page : 4,67:1 sur #F4F3EF, 5,18:1 sur blanc. */
  --text-3: #6E6D68;
  /* 4.5 Taille du groupe */
  --size-grande-bg: #EDEBE3;  --size-grande-fg: #57564F;
  --size-mega-bg:   #D3D1C7;  --size-mega-fg:   #2C2C2A;
  --size-giga-bg:   #57564F;  --size-giga-fg:   #FFFFFF;   /* 7,37:1 */

  --font-sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-quote: "IBM Plex Serif", Georgia, serif;
  --radius: 12px;
  --gutter: 1.5rem;
}

/* 4.4 Axes de notation — usage exclusif. Une classe .axis-XXX pose les trois valeurs de
   l'axe ; .axis-badge / .axis-dot / .fact-analysis__label les consomment. */
.axis-HUM { --axis-dot: #D85A30; --axis-bg: #F5C4B3; --axis-fg: #712B13; }
.axis-FIN { --axis-dot: #F5A623; --axis-bg: #FCE1B0; --axis-fg: #6B4400; }
.axis-GOV { --axis-dot: #7F77DD; --axis-bg: #CECBF6; --axis-fg: #3C3489; }
.axis-COM { --axis-dot: #E0368B; --axis-bg: #F9C3E0; --axis-fg: #7A1052; }
.axis-ENV { --axis-dot: #1D9E75; --axis-bg: #9FE1CB; --axis-fg: #085041; }

/* ---------- Base ---------- */
html { background: var(--bg); overflow-x: clip; }
body {
  font-family: var(--font-sans); font-size: 16px; line-height: 1.65; color: var(--text);
  background: var(--bg);
  /* Largeur de lecture conservée (860px ; 760px sur les articles/fiches, 700px sur les
     news — surchargée en ligne par ces pages). */
  max-width: 860px; margin: 0 auto; padding: 0 var(--gutter) 3rem;
}
a { color: var(--link); text-decoration: none; }
a:hover { color: var(--inst-strong); text-decoration: underline; }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--link); outline-offset: 2px;
}
/* Champ actif : un seul liseré (bordure bleue épaissie), pas de contour décalé en plus —
   le contour à 2 px de distance dessinait un double trait autour du champ. */
input:focus, input:focus-visible, textarea:focus, textarea:focus-visible, select:focus {
  outline: none; border-color: var(--link); box-shadow: 0 0 0 1px var(--link);
}
h1, h2, h3, h4 { font-weight: 500; color: var(--text); line-height: 1.3; }
/* Titres de page et de section en bleu institutionnel : c'est de la structure (le « cadre »
   de la charte §4.1), pas du contenu factuel. Les titres de cartes (fait, news, fiche) restent
   en noir — ils portent un contenu. */
h1, h2, h3 { color: var(--inst-strong); }
.fact-card h3, .card h2, .news-card h3 { color: var(--text); }
h1 { font-size: 28px; margin: 1.6rem 0 .4rem; }
h2 { font-size: 20px; margin: 2.2rem 0 .6rem; padding-top: 1.2rem; border-top: 1px solid var(--border); }
h3 { font-size: 17px; margin: 1.4rem 0 .3rem; }
h4 { font-size: 16px; margin: 1rem 0 .2rem; }
strong { font-weight: 500; }
blockquote { border-left: 3px solid var(--border); margin: 1rem 0; padding: .2rem 1rem; color: var(--text-2); }
hr { border: none; border-top: 1px solid var(--border); }

.intro, .subtitle { color: var(--text-2); }
.byline, .card-date, .owner-type, .owner-pct, p.footnote, .brand-count, .count, .source {
  color: var(--text-3);
}
.byline { font-size: 13px; margin-bottom: 1.5rem; }
.byline a, p.footnote a, .source a { color: var(--text-3); text-decoration: underline; }
p.footnote { font-size: 12px; margin-top: 1rem; }
.owner-type, .owner-pct { font-size: 12px; }
.owner-relation { display: block; font-size: 12px; color: var(--text-2); }

/* ---------- Bandeau (charte §6.1) ---------- */
/* Pleine largeur sans changer la structure des pages : le bandeau déborde de la colonne de
   lecture (marges négatives) tout en gardant son contenu aligné sur elle (padding). */
.site-header {
  margin: 0 calc(50% - 50vw) 0; padding: 16px calc(50vw - 50%) 14px;
  background: var(--inst-bg); border-bottom: 1px solid var(--inst-border);
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 10px 16px;
}
.site-header .site-logo { font-size: 19px; font-weight: 500; color: var(--inst-strong); text-decoration: none; }
.site-menu { display: contents; }
.site-nav { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 20px; font-size: 13px; }
.site-nav a { color: var(--link); }
.site-nav a.btn { margin-left: auto; }
.site-search { grid-column: 2; grid-row: 1; display: flex; gap: 8px; }
.site-search input {
  font: inherit; font-size: 13px; color: var(--text); background: var(--surface);
  border: 1px solid var(--inst-border); border-radius: 8px; padding: 6px 10px; width: 180px;
}
.menu-toggle { display: none; }

/* ---------- Boutons (charte §7) ---------- */
.btn {
  display: inline-block; font-family: var(--font-sans); font-weight: 500; font-size: 14px; line-height: 1.4;
  border-radius: 8px; padding: 10px 20px; border: 1px solid transparent; cursor: pointer; text-decoration: none;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--inst-strong); color: #FFFFFF; }
.btn-primary:hover, a.btn-primary:hover { background: var(--inst-strong-hover); color: #FFFFFF; }
.btn-secondary { background: transparent; color: var(--inst-strong); border-color: var(--inst-strong); }
.btn-secondary:hover { background: var(--inst-bg); color: var(--inst-strong); }
.btn:disabled, .btn[aria-disabled="true"] { background: var(--border); color: var(--text-3); border-color: transparent; cursor: not-allowed; }
.btn-nav { padding: 8px 16px; font-size: 13px; }
.site-nav a.btn-primary { color: #FFFFFF; }
.site-nav a.btn-secondary { color: var(--inst-strong); }
/* Bouton de recherche : état « secondaire (survol) » de la maquette (4e bouton). */
.btn-search { background: var(--inst-bg); color: var(--inst-strong); border-color: var(--inst-strong); padding: 6px 14px; font-size: 13px; }
.btn-search:hover { background: var(--inst-border); }

/* ---------- Fil d'Ariane (charte §6.6) ---------- */
.breadcrumb { font-size: 12px; color: var(--text-3); margin: 14px 0 0; }
.breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 6px; }
.breadcrumb li + li::before { content: "→"; margin-right: 6px; }
.breadcrumb a { color: var(--text-3); }
.breadcrumb [aria-current="page"] { color: var(--text); }
.breadcrumb + h1 { margin-top: .6rem; }

/* ---------- Tableau de marques (charte §6.5) ---------- */
.table-scroll {
  overflow-x: auto; margin-bottom: 1rem;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
}
table.brands { width: 100%; border-collapse: collapse; }
table.brands th {
  text-align: left; font-weight: 500; font-size: 12px; color: var(--text-3);
  padding: 10px 16px; border-bottom: 1px solid var(--border); white-space: nowrap; background: var(--surface);
}
table.brands td { font-size: 14px; padding: 12px 16px; border-bottom: 1px solid var(--border); background: var(--surface); vertical-align: top; }
table.brands tbody tr:last-child td { border-bottom: none; }
table.brands tbody tr:hover td { background: var(--row-hover); }
/* Première colonne fixe : garde le repère « Marque » pendant le défilement horizontal. */
table.brands th:first-child, table.brands td:first-child { position: sticky; left: 0; z-index: 1; }
.th-sort {
  font: inherit; color: inherit; background: none; border: none; padding: 0; cursor: pointer;
  display: inline-flex; align-items: center; gap: 3px; white-space: nowrap;
}
.th-sort:hover { color: var(--inst-strong); }
.th-sort .arrow { font-size: 10px; color: var(--link); min-width: 1ch; }

/* Taille du groupe (charte §4.5) : TPE/PME/ETI et « non documenté » en texte simple,
   Grande/Méga/Giga en badge de gris croissant. Même taille de police partout. */
.size { font-size: 12px; }
.size--plain { color: var(--text-2); }
.size--none { color: var(--text-3); }
.size-badge { display: inline-block; padding: 2px 9px; border-radius: 20px; line-height: 1.5; white-space: nowrap; }
.size-detail { display: block; font-size: 12px; color: var(--text-3); margin-top: 2px; }
.size--grande { background: var(--size-grande-bg); color: var(--size-grande-fg); }
.size--mega { background: var(--size-mega-bg); color: var(--size-mega-fg); }
.size--giga { background: var(--size-giga-bg); color: var(--size-giga-fg); }

/* Liens de pied de page produit (« ← Autres produits · Rejoindre la discussion ») : même taille
   que les noms de marques du tableau, pas celle du corps de texte. */
.page-links { font-size: 14px; margin: 1rem 0; }

/* ---------- Annuaire du guide des marques ---------- */
.page-intro { color: var(--text-2); margin: 1.2rem 0 2.2rem; }
.page-intro p { margin: 0 0 .8rem; }
.page-intro h2 { color: var(--text-2); font-size: 15px; border-top: none; padding-top: 0; margin: 1.4rem 0 .4rem; }
ul.zone-list { list-style: none; padding: 0; }
ul.zone-list li { display: flex; align-items: center; gap: .5rem; padding: .2rem 0; }
ul.zone-list .brand-count { font-size: 12px; }
.thumb-icon { flex-shrink: 0; width: 20px; height: 20px; opacity: .85; }
h2.zone-heading { border-top: none; margin-top: 1.5rem; }
/* colonnes CSS (pas grid) : `columns` laisse le navigateur équilibrer les deux colonnes en
   continu, un département long ne force pas la hauteur de son voisin. */
.brand-groups { column-count: 2; column-gap: 3rem; }
.brand-group { break-inside: avoid; margin-bottom: 1.8rem; }
.brand-group h3 { border-top: 1px solid var(--border); padding-top: 1rem; margin: 0 0 .6rem; font-size: 15px; }
.brand-group h4 { color: var(--text-2); font-size: 13px; margin: 1rem 0 .2rem; }

/* ---------- Badges d'axe (charte §6.2) ---------- */
.axis-badge {
  display: inline-block; border-radius: 20px; font-size: 12px; font-weight: 500; line-height: 1.5;
  padding: 2px 10px; background: var(--axis-bg); color: var(--axis-fg); white-space: nowrap;
}
.axis-badge a { color: inherit; }
.axis-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--axis-dot); }

/* ---------- Carte de fait (charte §6.3) ---------- */
.fact-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; margin: 0 0 16px; }
.fact-card__head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-bottom: 10px; }
.fact-card__head h3 { margin: 0; font-size: 15px; }
.fact-quote { font-family: var(--font-quote); font-style: italic; font-size: 17px; line-height: 1.7; color: var(--text); margin: 0 0 8px; padding: 0; border: none; }
.fact-source { font-size: 12px; color: var(--text-3); margin: 0 0 16px; }
.fact-analyses { border-top: 1px solid var(--border); }
.fact-analysis { padding-top: 14px; }
.fact-analysis + .fact-analysis { margin-top: 4px; }
.fact-analysis__label {
  font-size: 11px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase;
  color: var(--axis-fg); margin: 0 0 6px; padding: 0; border: none; line-height: 1.4;
}
.fact-analysis p { font-size: 15px; line-height: 1.7; color: var(--text-2); margin: 0; }

/* ---------- Cartes statistiques (charte §6.7) — styles prévus, pas encore affichées ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 1.5rem 0; }
.stat-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 24px; }
.stat-card__label { font-size: 12px; color: var(--text-3); margin: 0 0 6px; }
.stat-card__value { font-size: 32px; font-weight: 500; color: var(--text); line-height: 1.2; margin: 0; }
/* Ambre réservé au seul compteur « nouveautés ». */
.stat-card--new { background: var(--signal-bg); border-color: var(--signal-border); }
.stat-card--new .stat-card__label { color: var(--signal-text-2); }
.stat-card--new .stat-card__value { color: var(--signal-text); }

/* ---------- Cartes de listes (actualités, entreprises, produits) ---------- */
nav.rubriques { margin-bottom: 2rem; font-size: 13px; color: var(--text-2); }
nav.rubriques .nav-section { margin: .3rem 0; }
nav.rubriques a { margin-right: .7rem; }
.card-grid { display: flex; flex-direction: column; gap: 16px; }
.card-grid.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.card, .news-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 20px; }
.card-date { font-size: 12px; margin: 0 0 .3rem; }
.card h2 { margin: 0 0 .2rem; font-size: 16px; border-top: none; padding-top: 0; }
.card h2 a, .news-card h3 a { color: var(--text); }
.card h2 a:hover, .news-card h3 a:hover { color: var(--inst-strong); }
.card-subtitle { color: var(--text-2); font-weight: 500; margin: 0 0 .5rem; }
.card-excerpt { margin: 0 0 .6rem; }
.card-more { font-weight: 500; white-space: nowrap; }
.card-tags { font-size: 12px; }
.tag { display: inline-block; background: var(--bg); border: 1px solid var(--border); border-radius: 20px; padding: 1px 9px; margin: 0 .3rem .3rem 0; }
.tag a { color: var(--text-2); }
.tag.axis-badge { border-color: transparent; background: var(--axis-bg); }
.tag.axis-badge a { color: var(--axis-fg); }
ul.entity-list { list-style: none; padding: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
ul.entity-list li { padding: 10px 16px; border-bottom: 1px solid var(--border); }
ul.entity-list li:last-child { border-bottom: none; }
ul.entity-list a { font-weight: 500; }
ul.entity-list .count { font-size: 12px; margin-left: .4rem; }
.news-section { margin-bottom: 2rem; }
.news-section h2 { margin-bottom: .8rem; }
.news-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: .5rem; }
.news-card h3 { margin: 0 0 .3rem; font-size: 15px; }

/* ---------- Articles et fiches ---------- */
sup.src a { font-weight: 500; }
sup.pulse-note { cursor: help; color: var(--link); border-bottom: 1px dotted var(--link); font-style: normal; margin-left: 2px; }
#sources ol { padding-left: 1.4rem; }
#sources li { margin: .6rem 0; }
#sources a { word-break: break-all; }
.pulse-footer { margin-top: 3rem; padding-top: 1rem; border-top: 1px solid var(--border); font-size: 12px; color: var(--text-3); text-align: center; }
.pulse-footer p { margin: .2rem 0; }
.corps { font-size: 15px; margin: 1.2rem 0; }
.appel { font-weight: 500; margin: 1.2rem 0; }
.liens a { display: inline-block; margin-right: 1rem; }
.source { font-size: 13px; margin-top: 2rem; border-top: 1px solid var(--border); padding-top: 1rem; }

/* ---------- Formulaires (contact) ---------- */
label { display: block; font-weight: 500; margin: 1rem 0 .3rem; }
.site-search label { position: absolute; width: 1px; height: 1px; margin: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
form input[type=text], form input[type=email], form textarea {
  width: 100%; box-sizing: border-box; padding: 9px 11px; font: inherit; color: var(--text);
  background: var(--surface); border: 1px solid var(--border); border-radius: 8px;
}
textarea { resize: vertical; min-height: 140px; }
.honeypot { position: absolute; left: -9999px; top: -9999px; }
#contact-form .btn { margin-top: 1.2rem; }
#status { margin-top: 1rem; font-weight: 500; }
/* Jamais une couleur d'axe (réservées aux axes, charte §4.4) : bleu institutionnel pour la
   confirmation, ambre « signal » pour l'erreur. */
#status.ok { color: var(--inst-strong); }
#status.err { color: var(--signal-text); background: var(--signal-bg); border: 1px solid var(--signal-border); border-radius: 8px; padding: 8px 12px; }

/* ---------- Recherche (Pagefind) : on garde pagefind-ui.css pour la mise en page et on ne
   surcharge que ses variables — recopier ses règles casserait à chaque mise à jour. ---------- */
#pulse-search-full { font-size: 15px; }
#pulse-search-full .pagefind-ui {
  --pagefind-ui-scale: .9;
  --pagefind-ui-primary: var(--link);
  --pagefind-ui-text: var(--text);
  --pagefind-ui-background: var(--surface);
  --pagefind-ui-border: var(--border);
  --pagefind-ui-tag: var(--bg);
  --pagefind-ui-border-width: 1px;
  --pagefind-ui-border-radius: 8px;
  --pagefind-ui-font: var(--font-sans);
}
#pulse-search-full .pagefind-ui__form { margin-bottom: 1.5rem; }
#pulse-search-full .pagefind-ui__result-link { color: var(--link); }
#pulse-search-full mark { background: var(--inst-bg); color: var(--inst-strong); }

/* ---------- Sommaire sticky (site_layout.render_toc_layout) ---------- */
body.has-toc { max-width: 1000px; }
.toc-layout { display: flex; align-items: flex-start; gap: 2.2rem; }
.toc-nav { position: sticky; top: 1.2rem; flex: 0 0 200px; align-self: flex-start; max-height: calc(100vh - 2.4rem); overflow-y: auto; }
.toc-nav ul, .toc-index ul { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--border); }
.toc-nav li, .toc-index li { margin: 0; }
.toc-nav a, .toc-index a {
  display: block; padding: .35rem .8rem; color: var(--text-2); text-decoration: none; font-size: 13px; line-height: 1.3;
  border-left: 2px solid transparent; margin-left: -2px; border-radius: 3px;
}
.toc-nav a:hover, .toc-index a:hover { color: var(--inst-strong); text-decoration: underline; }
.toc-nav a.toc-active { color: var(--inst-strong); border-left-color: var(--link); font-weight: 500; }
.toc-scroll { flex: 1 1 auto; min-width: 0; scroll-snap-type: y proximity; }
.toc-section { scroll-snap-align: start; min-height: 100vh; box-sizing: border-box; padding-bottom: .5rem; }

/* ---------- Sommaire de page dense (site_layout.render_toc_index) ---------- */
body.has-toc-index { max-width: 1180px; }
.toc-index-layout { display: flex; align-items: flex-start; gap: 2.2rem; }
.toc-index { position: sticky; top: 1.2rem; flex: 0 0 220px; align-self: flex-start; max-height: calc(100vh - 2.4rem); overflow-y: auto; }
.toc-index a { padding: .3rem .7rem; font-size: 12px; }
.toc-index :where(li.toc-idx-lvl3) a { padding-left: 1.3rem; }
.toc-index :where(li.toc-idx-lvl4) a { padding-left: 2rem; color: var(--text-3); }
.toc-index-content { flex: 1 1 auto; min-width: 0; }
/* Ancre cliquée près de la fin de page : cet espace (invisible en lecture normale) laisse
   les derniers titres remonter en haut d'écran. */
.toc-index-spacer { min-height: 65vh; }
@media (max-width: 860px) {
  .toc-index-layout { display: block; }
  .toc-index { position: static; max-height: none; width: 100%; margin-bottom: 1.5rem; border-bottom: 1px solid var(--border); padding-bottom: .8rem; }
  .toc-index ul { display: flex; flex-wrap: wrap; gap: .4rem; border-left: none; }
  .toc-index a { border-left: none; padding: .3rem .6rem; background: var(--surface); border: 1px solid var(--border); border-radius: 20px; }
  .toc-index li.toc-idx-lvl3 a, .toc-index li.toc-idx-lvl4 a { padding-left: .6rem; }
}

/* ---------- Responsive (charte §8) ---------- */
@media (max-width: 1023px) {
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 780px) {
  .toc-layout { flex-direction: column; }
  .toc-nav { position: static; max-height: none; width: 100%; border-bottom: 1px solid var(--border); padding-bottom: .6rem; margin-bottom: 1rem; }
  .toc-nav ul { display: flex; flex-wrap: wrap; gap: .4rem; border-left: none; }
  .toc-nav a { border-left: none; padding: .3rem .6rem; background: var(--surface); border: 1px solid var(--border); border-radius: 20px; }
}
@media (max-width: 767px) {
  :root { --gutter: 20px; }
  h1 { font-size: 24px; }
  .site-header { grid-template-columns: 1fr auto; padding-top: 12px; padding-bottom: 12px; }
  .menu-toggle {
    display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px;
    font-size: 20px; color: var(--inst-strong); background: transparent; border: 1px solid var(--inst-border);
    border-radius: 8px; cursor: pointer;
  }
  /* Menu replié derrière ☰ ; sans JavaScript il reste déplié (html sans classe .js). */
  .js .site-menu { display: none; }
  .site-menu, .js .site-header.is-open .site-menu {
    display: flex; flex-direction: column; gap: 12px; grid-column: 1 / -1; padding: 6px 0 4px;
  }
  .site-nav { flex-direction: column; align-items: flex-start; gap: 10px; font-size: 15px; }
  .site-nav a.btn { margin-left: 0; }
  .site-search { width: 100%; }
  .site-search input { flex: 1; width: auto; }
  html:not(.js) .menu-toggle { display: none; }

  .card-grid.two-col, .news-grid, .stat-grid { grid-template-columns: 1fr; }
  .brand-groups { column-count: 1; }
  /* Chips de l'annuaire : une seule ligne qui défile plutôt que dix lignes empilées. */
  .toc-index ul { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; }
  .toc-index li { flex: 0 0 auto; }
  .toc-index a { white-space: nowrap; }
  /* Tableau : jamais converti en cartes (perte du tri comparatif) — il défile. */
  table.brands { min-width: 620px; }
  table.brands td:first-child, table.brands th:first-child { box-shadow: inset -1px 0 0 var(--border); }
  /* Fil d'Ariane : premier et dernier niveau seulement, « … » entre les deux. */
  .breadcrumb li:not(:first-child):not(:last-child) { display: none; }
  .breadcrumb li:last-child:not(:nth-child(2))::before { content: "→ … →"; }
}
