/* =============================================================
   PHARE — Design system v0 (wireframes)
   ============================================================= */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700&family=JetBrains+Mono:wght@400;500&display=swap');

/* ---------- Reset minimal ------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
a { color: inherit; }
input, textarea, select { font: inherit; color: inherit; }
ul, ol { padding: 0; margin: 0; list-style: none; }
h1, h2, h3, h4, h5, h6, p { margin: 0; }

/* ---------- Tokens — Phare v3 « Indigo Citoyen » -------------- */
/* Palette cool + clean + un seul accent chaud (corail) pour l'impact.
   Inspirations : Linear (indigo profond), Stripe (corail pop), gov.uk (clarté). */
:root {
  /* Encre & neutres — indigo nuit, plus moderne que bleu marine */
  --encre: #0F1429;
  --encre-80: #2A3050;
  --encre-60: rgba(15, 20, 41, 0.62);
  --encre-30: rgba(15, 20, 41, 0.22);
  --brume: #F8F9FB;       /* fond global, perle ultra clean */
  --brume-soft: #FFFFFF;  /* cards blanc pur */
  --pierre: #E5E8F0;      /* bordures cool, neutre froid */
  --pierre-2: #C8CDD9;
  --pierre-fonce: #6B7186;

  /* Accent PRIMAIRE — indigo vif (remplace l'orange/corail) */
  /* Ce token reste nommé --braise pour ne pas casser tout le CSS existant */
  --braise: #4F46E5;        /* indigo électrique */
  --braise-fonce: #4338CA;
  --braise-tint: #EEF0FA;

  /* Accent SECONDAIRE chaud — corail pour KPI, impact, "Soutenir" alternatif */
  --soleil: #FF6B47;        /* corail pop, réservé aux highlights */
  --soleil-fonce: #E5512E;
  --soleil-tint: #FFE5DD;

  /* Succès / environnement — emerald franc */
  --mousse: #10B981;
  --mousse-tint: #D1FAE5;

  /* Tertiaire — ambre pour KPI alternatifs / warnings */
  --lavande: #F59E0B;
  --lavande-tint: #FEF3C7;

  /* Alerte / modération — rouge franc */
  --alerte: #DC2626;
  --alerte-tint: #FECACA;
  --or: #F59E0B;  /* alias rétro-compat */

  /* Catégories — point coloré uniquement */
  --cat-agri:   #5B8C5A;
  --cat-cult:   #B85A8E;
  --cat-env:    #2E8C7B;
  --cat-fisc:   #8B5CF6;
  --cat-fp:     #4A7BA8;
  --cat-fin:    #C8923A;
  --cat-infra:  #A66A3A;
  --cat-sante:  #D14A6F;
  --cat-soc:    #E8743B;
  --cat-secu:   #5A6B8C;
  --cat-edu:    #4F9B7E;

  /* Typographie — Plus Jakarta Sans : géométrique, friendly, plus de caractère que Inter/Manrope */
  --font-ui: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-display: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  /* Tailles */
  --text-xs: 12px;
  --text-sm: 14px;
  --text-base: 17px;
  --text-md: 19px;
  --text-lg: 22px;
  --text-xl: 28px;
  --text-2xl: 36px;
  --text-3xl: 48px;
  --text-4xl: 64px;

  /* Spacing 4/8 grid */
  --s-1: 4px;  --s-2: 8px;  --s-3: 12px; --s-4: 16px;
  --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px;

  /* Radius — un poil plus arrondis pour donner du moelleux */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;

  /* Élévation — soft shadows cool */
  --sh-card: 0 1px 2px rgba(15, 20, 41, 0.04), 0 4px 12px -4px rgba(15, 20, 41, 0.06);
  --sh-hover: 0 12px 32px -10px rgba(79, 70, 229, 0.18), 0 4px 12px -4px rgba(15, 20, 41, 0.08);
  --sh-popover: 0 20px 56px -14px rgba(15, 20, 41, 0.2);

  /* Conteneur */
  --container: 1240px;

  /* Transitions */
  --t-fast: 120ms ease-out;
  --t-med: 180ms ease-out;
}

/* ---------- Base ---------------------------------------------- */
html { height: 100%; }
body {
  font-family: var(--font-ui);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--encre);
  background: var(--brume);
  /* Sticky footer : la grille verticale fait que <main> grandit pour combler la viewport,
     et <footer> reste toujours en bas — y compris quand le contenu est court. */
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1 0 auto; }
.site-footer { flex-shrink: 0; }

h1, h2, h3 { font-family: var(--font-display); letter-spacing: -0.01em; line-height: 1.15; font-weight: 600; }
h1 { font-size: var(--text-3xl); }
h2 { font-size: var(--text-2xl); }
h3 { font-size: var(--text-xl); }
h4 { font-family: var(--font-ui); font-size: var(--text-md); font-weight: 600; line-height: 1.3; }

a { color: var(--encre); text-decoration: underline; text-decoration-color: var(--pierre-2); text-decoration-thickness: 1.5px; text-underline-offset: 3px; transition: text-decoration-color var(--t-fast); }
a:hover { text-decoration-color: var(--braise); }

:focus-visible { outline: 2.5px solid var(--braise); outline-offset: 2px; border-radius: 4px; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--s-6); }
@media (max-width: 768px) { .container { padding: 0 var(--s-4); } }

/* ---------- Header / Nav -------------------------------------- */
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--encre); color: var(--brume); padding: var(--s-3) var(--s-4); z-index: 1000; }
.skip-link:focus { left: var(--s-4); top: var(--s-4); }

.site-banner {
  background: var(--encre);
  color: var(--brume);
  font-size: var(--text-xs);
  padding: 8px 0;
  text-align: center;
  letter-spacing: 0.02em;
}
.site-banner strong { color: var(--braise); font-weight: 600; }

.site-header {
  background: var(--brume);
  border-bottom: 1px solid var(--pierre);
  position: sticky; top: 0;
  z-index: 100;
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--s-4) var(--s-6);
  max-width: var(--container); margin: 0 auto;
  gap: var(--s-5);
}
.brand { display: flex; align-items: center; gap: var(--s-3); text-decoration: none; }
.brand__mark { width: 36px; height: 36px; }
.brand__name { font-family: var(--font-display); font-weight: 600; font-size: 24px; letter-spacing: -0.02em; }
.brand__tag { font-size: var(--text-xs); color: var(--encre-60); display: block; line-height: 1.2; }

.main-nav { display: flex; gap: var(--s-5); align-items: center; }
.main-nav a {
  text-decoration: none; font-weight: 500; font-size: var(--text-sm);
  color: var(--encre); padding: var(--s-2) 0; position: relative;
}
.main-nav a:hover { color: var(--braise); }
.main-nav a.is-active::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -19px; height: 2px; background: var(--braise);
}

.nav-actions { display: flex; gap: var(--s-3); align-items: center; }

@media (max-width: 900px) {
  .main-nav { display: none; }
}

/* ---------- Boutons ------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  padding: 10px 18px; border-radius: var(--r-sm);
  font-weight: 500; font-size: var(--text-sm);
  text-decoration: none; transition: all var(--t-fast);
  border: 1px solid transparent; white-space: nowrap;
}
.btn--primary {
  background: var(--braise); color: white; border-color: var(--braise);
  box-shadow: 0 4px 12px -4px rgba(79, 70, 229, 0.4);
  font-weight: 600;
}
.btn--primary:hover {
  background: var(--braise-fonce); border-color: var(--braise-fonce);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px -6px rgba(79, 70, 229, 0.55);
}
.btn--secondary { background: var(--brume); color: var(--encre); border-color: var(--encre); }
.btn--secondary:hover { background: var(--encre); color: var(--brume); }
.btn--ghost { background: transparent; color: var(--encre); border-color: var(--pierre-2); }
.btn--ghost:hover { background: var(--pierre); }
.btn--lg { padding: 14px 28px; font-size: var(--text-base); border-radius: var(--r-md); }
.btn--block { width: 100%; }
.btn--icon { padding: 10px; }

/* ---------- Badges & tags ------------------------------------- */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: var(--text-xs); font-weight: 500;
  padding: 4px 10px; border-radius: 999px;
  background: var(--brume-soft); color: var(--encre);
  border: 1px solid var(--pierre);
  text-decoration: none;
}
.badge:hover { border-color: var(--encre); }
.badge__dot { width: 8px; height: 8px; border-radius: 999px; background: var(--encre); flex-shrink: 0; }
.badge--portee { background: var(--encre); color: var(--brume); border-color: var(--encre); }
.badge--portee:hover { background: var(--encre-80); color: var(--brume); }

.cat-agri  .badge__dot, .badge.cat-agri  .badge__dot  { background: var(--cat-agri); }
.cat-cult  .badge__dot, .badge.cat-cult  .badge__dot  { background: var(--cat-cult); }
.cat-env   .badge__dot, .badge.cat-env   .badge__dot  { background: var(--cat-env); }
.cat-fisc  .badge__dot, .badge.cat-fisc  .badge__dot  { background: var(--cat-fisc); }
.cat-fp    .badge__dot, .badge.cat-fp    .badge__dot  { background: var(--cat-fp); }
.cat-fin   .badge__dot, .badge.cat-fin   .badge__dot  { background: var(--cat-fin); }
.cat-infra .badge__dot, .badge.cat-infra .badge__dot  { background: var(--cat-infra); }
.cat-sante .badge__dot, .badge.cat-sante .badge__dot  { background: var(--cat-sante); }
.cat-soc   .badge__dot, .badge.cat-soc   .badge__dot  { background: var(--cat-soc); }
.cat-secu  .badge__dot, .badge.cat-secu  .badge__dot  { background: var(--cat-secu); }
.cat-edu   .badge__dot, .badge.cat-edu   .badge__dot  { background: var(--cat-edu); }

.pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: var(--text-xs); font-weight: 500;
  padding: 6px 12px; border-radius: 999px;
  background: var(--mousse-tint); color: var(--mousse);
  border: 1px solid transparent;
}
.pill--braise { background: var(--braise-tint); color: var(--braise-fonce); }
.pill--alerte { background: var(--alerte-tint); color: var(--alerte); }
.pill--neutre { background: var(--pierre); color: var(--encre); }

/* ---------- Hero ---------------------------------------------- */
.hero {
  position: relative; overflow: hidden;
  padding: var(--s-9) 0 var(--s-8);
  background:
    radial-gradient(ellipse 50% 70% at 85% 0%, var(--soleil-tint) 0%, transparent 55%),
    radial-gradient(ellipse 60% 70% at 15% 100%, var(--braise-tint) 0%, transparent 55%),
    var(--brume);
}
.hero__decor {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
}
.hero__inner { position: relative; z-index: 1; max-width: 760px; }
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: var(--s-2);
  font-size: var(--text-sm); font-weight: 600; color: var(--soleil-fonce);
  padding: 6px 12px; background: var(--soleil-tint); border-radius: 999px;
  margin-bottom: var(--s-5);
  border: 1px solid rgba(255, 107, 71, 0.2);
}
.hero__title { font-size: clamp(40px, 5vw, var(--text-4xl)); line-height: 1.05; margin-bottom: var(--s-5); }
.hero__title em { font-style: italic; color: var(--soleil); font-weight: 700; }
.hero__lead { font-size: var(--text-md); color: var(--encre-80); max-width: 600px; margin-bottom: var(--s-6); }
.hero__ctas { display: flex; gap: var(--s-3); flex-wrap: wrap; }
.hero__meta {
  margin-top: var(--s-7); padding-top: var(--s-5);
  border-top: 1px solid var(--pierre);
  display: flex; gap: var(--s-6); flex-wrap: wrap;
  font-size: var(--text-sm); color: var(--encre-80);
}
.hero__meta strong { color: var(--encre); font-weight: 600; }

/* ---------- Frise étapes -------------------------------------- */
.timeline {
  background: var(--brume-soft);
  border-top: 1px solid var(--pierre);
  border-bottom: 1px solid var(--pierre);
  padding: var(--s-6) 0;
}
.timeline__inner { display: flex; gap: var(--s-2); align-items: stretch; position: relative; }
.step {
  flex: 1; min-width: 0;
  padding: var(--s-4); border-radius: var(--r-md);
  background: transparent;
  border-left: 3px solid var(--pierre-2);
  transition: all var(--t-med);
}
.step--past { opacity: 0.6; border-left-color: var(--mousse); }
.step--past .step__title { text-decoration: line-through; text-decoration-color: var(--pierre-2); }
.step--current {
  background: linear-gradient(135deg, var(--soleil-tint) 0%, var(--brume-soft) 100%);
  border-left-color: var(--braise);
  border-left-width: 4px;
  box-shadow: var(--sh-card);
}
.step--future { opacity: 0.55; }
.step__number { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--encre-60); }
.step__title { font-weight: 700; font-size: var(--text-sm); margin: 4px 0; }
.step__dates { font-size: var(--text-xs); color: var(--encre-60); }
.step--current .step__title::after {
  content: 'En cours'; display: inline-block; margin-left: var(--s-2);
  font-family: var(--font-ui); font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.04em;
  color: white; background: var(--braise);
  padding: 3px 8px; border-radius: 999px; vertical-align: middle;
}

/* ---------- KPI ----------------------------------------------- */
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--s-4); }
.kpi {
  background: var(--brume-soft);
  border: 1px solid var(--pierre);
  border-radius: var(--r-lg);
  padding: var(--s-5);
  position: relative;
  overflow: hidden;
}
.kpi::before {
  content: ''; position: absolute; top: -50px; right: -50px;
  width: 140px; height: 140px; border-radius: 50%;
  background: radial-gradient(circle, var(--soleil) 0%, transparent 65%);
  opacity: 0.18;
  pointer-events: none;
}
.kpi__value {
  font-family: var(--font-display); font-size: var(--text-3xl); font-weight: 700;
  line-height: 1; color: var(--encre);
  position: relative;
  letter-spacing: -0.02em;
}
.kpi__value sup { font-size: 0.5em; color: var(--soleil); }
.kpi__label { font-size: var(--text-sm); color: var(--encre-80); margin-top: var(--s-2); position: relative; }
.kpi__trend { font-size: var(--text-xs); color: var(--mousse); margin-top: var(--s-2); display: inline-flex; gap: 4px; align-items: center; position: relative; font-weight: 600; }

/* ---------- Sections ------------------------------------------ */
.section { padding: var(--s-8) 0; }
.section--brume { background: var(--brume-soft); border-top: 1px solid var(--pierre); border-bottom: 1px solid var(--pierre); }
.section--encre { background: var(--encre); color: var(--brume); }
.section--encre h2 { color: var(--brume-soft); }

.section__head { display: flex; justify-content: space-between; align-items: end; gap: var(--s-4); margin-bottom: var(--s-6); flex-wrap: wrap; }
.section__title { font-size: var(--text-2xl); }
.section__lead { color: var(--encre-80); margin-top: var(--s-2); max-width: 600px; }
.section__link { font-size: var(--text-sm); font-weight: 500; text-decoration: none; color: var(--braise); }
.section__link:hover { text-decoration: underline; }

/* ---------- Carte contribution -------------------------------- */
.contrib-card {
  background: var(--brume-soft); border: 1px solid var(--pierre); border-radius: var(--r-lg);
  padding: var(--s-5);
  display: flex; flex-direction: column; gap: var(--s-3);
  transition: all var(--t-med);
  position: relative;
}
.contrib-card:hover { border-color: var(--encre-30); box-shadow: var(--sh-hover); transform: translateY(-2px); }
.contrib-card__head { display: flex; gap: var(--s-2); flex-wrap: wrap; position: relative; z-index: 2; }
.contrib-card__title { font-family: var(--font-display); font-size: var(--text-lg); font-weight: 600; line-height: 1.25; color: var(--encre); }
.contrib-card__title a { color: inherit; text-decoration: none; }
.contrib-card__title a::after { content: ''; position: absolute; inset: 0; z-index: 1; border-radius: var(--r-lg); }
.contrib-card:hover .contrib-card__title a { color: var(--braise); }
.contrib-card__excerpt { font-size: var(--text-sm); color: var(--encre-80); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.contrib-card__meta {
  display: flex; gap: var(--s-3); align-items: center; justify-content: space-between;
  flex-wrap: wrap; row-gap: var(--s-2);  /* pseudos longs : la ligne se replie au lieu de chevaucher */
  font-size: var(--text-sm); color: var(--encre-60);
  margin-top: auto; padding-top: var(--s-4);
  border-top: 1px solid var(--pierre);
  position: relative; z-index: 2;
}
.contrib-card__author-block {
  display: inline-flex; align-items: center; gap: var(--s-2);
  min-width: 0; flex: 1 1 auto;
  max-width: 100%;
}
.contrib-card__author-block .contrib-card__author {
  overflow: hidden; text-overflow: ellipsis; max-width: 14ch;
}
.contrib-card__avatar {
  width: 28px; height: 28px; border-radius: 50%;
  background: linear-gradient(135deg, var(--encre) 0%, var(--encre-80) 100%);
  color: var(--brume);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 11px; font-weight: 600;
  flex-shrink: 0;
}
.contrib-card__author { color: var(--encre); font-weight: 500; text-decoration: none; position: relative; z-index: 2; white-space: nowrap; }
.contrib-card__author:hover { color: var(--braise); }
.contrib-card__date { color: var(--encre-60); font-size: var(--text-xs); white-space: nowrap; }
.contrib-card__stats { display: inline-flex; gap: var(--s-3); flex-shrink: 0; }
.contrib-card__stat { display: inline-flex; align-items: center; gap: 4px; font-size: var(--text-xs); color: var(--encre-60); }
.contrib-card__stat .ph { font-size: 14px; }
.contrib-card__stat--soutien { color: var(--braise-fonce); font-weight: 600; }
.contrib-card__stat--soutien .ph { color: var(--braise); }
@media (max-width: 480px) {
  .contrib-card__meta { flex-direction: column; align-items: flex-start; gap: var(--s-2); }
}

/* ---------- Comment ça marche ---------------------------------- */
.steps-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--s-5); }
.howstep { padding: var(--s-5); position: relative; }
.howstep__num {
  font-family: var(--font-display); font-size: var(--text-3xl); font-weight: 600;
  color: var(--braise); line-height: 1; margin-bottom: var(--s-3);
}
.howstep__title { font-family: var(--font-display); font-size: var(--text-lg); font-weight: 600; margin-bottom: var(--s-2); }
.howstep__text { font-size: var(--text-sm); color: var(--encre-80); }

/* ---------- Actualité card ----------------------------------- */
.news-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--s-5); }
.news-card { background: var(--brume-soft); border: 1px solid var(--pierre); border-radius: var(--r-lg); overflow: hidden; transition: all var(--t-med); text-decoration: none; color: inherit; display: flex; flex-direction: column; }
.news-card:hover { border-color: var(--encre-30); box-shadow: var(--sh-hover); transform: translateY(-2px); }
.news-card__cover {
  height: 140px;  /* compact, ne mange pas la hauteur de carte */
  background: linear-gradient(135deg, var(--encre) 0%, var(--encre-80) 100%);
  position: relative; overflow: hidden; flex-shrink: 0;
}
.news-card__cover svg { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.4; }
.news-card__body { padding: var(--s-5); display: flex; flex-direction: column; gap: var(--s-2); flex: 1; }
.news-card__date { font-size: var(--text-xs); color: var(--encre-60); font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.04em; }
.news-card__title { font-family: var(--font-display); font-size: var(--text-md); font-weight: 600; line-height: 1.3; }

/* ---------- Footer ------------------------------------------- */
.site-footer { background: var(--encre); color: var(--brume); padding: var(--s-8) 0 var(--s-5); margin-top: var(--s-8); }
.site-footer h4 { color: var(--brume); font-size: var(--text-sm); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: var(--s-3); font-weight: 600; }
.site-footer a { color: rgba(245, 242, 236, 0.75); text-decoration: none; font-size: var(--text-sm); }
.site-footer a:hover { color: var(--braise); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap: var(--s-6); margin-bottom: var(--s-6); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-grid ul li { margin-bottom: var(--s-2); }
.footer-brand p { color: rgba(245,242,236,0.7); font-size: var(--text-sm); margin-top: var(--s-3); max-width: 300px; }
.footer-bottom { border-top: 1px solid rgba(245,242,236,0.12); padding-top: var(--s-4); display: flex; justify-content: space-between; gap: var(--s-4); font-size: var(--text-xs); color: rgba(245,242,236,0.6); flex-wrap: wrap; }

/* ---------- Sidebar filtres ----------------------------------- */
.layout-list { display: grid; grid-template-columns: 280px 1fr; gap: var(--s-6); }
@media (max-width: 900px) { .layout-list { grid-template-columns: 1fr; } }
.filters {
  position: sticky; top: 88px;
  max-height: calc(100vh - 110px);
  overflow-y: auto;
  padding-right: var(--s-2);
  /* Scrollbar discrète */
  scrollbar-width: thin;
  scrollbar-color: var(--pierre-2) transparent;
}
.filters::-webkit-scrollbar { width: 6px; }
.filters::-webkit-scrollbar-thumb { background: var(--pierre-2); border-radius: 3px; }
.filters::-webkit-scrollbar-track { background: transparent; }
.filters__group { padding: var(--s-4) 0; border-bottom: 1px solid var(--pierre); }
.filters__group:last-child { border-bottom: 0; }
.filters__title { font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.06em; color: var(--encre-60); font-weight: 600; margin-bottom: var(--s-3); }
.filter-check { display: flex; align-items: center; gap: var(--s-2); padding: 6px 0; font-size: var(--text-sm); cursor: pointer; }
.filter-check input { width: 16px; height: 16px; accent-color: var(--braise); }
.filter-check__count { margin-left: auto; color: var(--encre-60); font-family: var(--font-mono); font-size: var(--text-xs); }

.search-input {
  position: relative;
}
.search-input input {
  width: 100%; padding: 10px 12px 10px 40px; border-radius: var(--r-sm);
  border: 1px solid var(--pierre-2); background: var(--brume-soft); font-size: var(--text-sm);
}
.search-input input:focus { outline: none; border-color: var(--braise); box-shadow: 0 0 0 3px var(--braise-tint); }
.search-input i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--encre-60); font-size: 18px; }

/* ---------- Toolbar liste ------------------------------------- */
.list-toolbar { display: flex; justify-content: space-between; align-items: center; gap: var(--s-3); padding: var(--s-4) 0 var(--s-5); flex-wrap: wrap; }
.list-toolbar__count { font-size: var(--text-sm); color: var(--encre-80); }
.list-toolbar__count strong { font-family: var(--font-mono); color: var(--encre); }
.select-inline {
  font-size: var(--text-sm); padding: 8px 32px 8px 12px;
  border: 1px solid var(--pierre-2); border-radius: var(--r-sm); background: var(--brume-soft);
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%230B1F3A' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
}
.select-inline:focus { outline: none; border-color: var(--braise); }

/* ---------- Pagination ---------------------------------------- */
.pagination { display: flex; gap: var(--s-1); justify-content: center; padding: var(--s-6) 0; }
.pagination a, .pagination span { padding: 8px 14px; border-radius: var(--r-sm); font-size: var(--text-sm); text-decoration: none; border: 1px solid transparent; }
.pagination a { color: var(--encre); }
.pagination a:hover { background: var(--pierre); }
.pagination .is-active { background: var(--encre); color: var(--brume); }
.pagination .ellipsis { color: var(--encre-60); }

/* ---------- Fil d'Ariane -------------------------------------- */
.crumbs { font-size: var(--text-sm); color: var(--encre-60); padding: var(--s-5) 0 0; display: flex; gap: var(--s-2); align-items: center; flex-wrap: wrap; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--braise); }
.crumbs i { font-size: 14px; color: var(--pierre-fonce); }

/* ---------- Fiche contribution -------------------------------- */
.contrib-layout { display: grid; grid-template-columns: 1fr 320px; gap: var(--s-7); padding: var(--s-5) 0 var(--s-8); }
@media (max-width: 1000px) { .contrib-layout { grid-template-columns: 1fr; } }

.contrib-head { display: flex; flex-direction: column; gap: var(--s-3); padding-bottom: var(--s-5); border-bottom: 1px solid var(--pierre); }
.contrib-head__badges { display: flex; gap: var(--s-2); flex-wrap: wrap; }
.contrib-head__title { font-size: var(--text-3xl); }
.contrib-head__meta { display: flex; gap: var(--s-4); font-size: var(--text-sm); color: var(--encre-60); align-items: center; flex-wrap: wrap; }
.contrib-head__author { display: flex; align-items: center; gap: var(--s-2); color: var(--encre); text-decoration: none; font-weight: 500; }
.contrib-head__author:hover { color: var(--braise); }

.contrib-body { padding: var(--s-5) 0; font-size: var(--text-md); line-height: 1.7; max-width: 65ch; }
.contrib-body h2 { font-size: var(--text-xl); margin: var(--s-6) 0 var(--s-3); }
.contrib-body p { margin-bottom: var(--s-4); }
.contrib-body ul { list-style: disc; padding-left: var(--s-5); margin-bottom: var(--s-4); }
.contrib-body li { margin-bottom: var(--s-2); }
.contrib-body blockquote { border-left: 3px solid var(--braise); padding: var(--s-2) var(--s-4); margin: var(--s-5) 0; font-family: var(--font-display); font-style: italic; color: var(--encre-80); background: var(--brume-soft); }

.contrib-meta-block {
  background: var(--brume-soft); border: 1px solid var(--pierre);
  border-radius: var(--r-md); padding: var(--s-4);
  font-size: var(--text-sm); color: var(--encre-80);
  display: flex; flex-direction: column; gap: var(--s-2);
}
.contrib-meta-block dt { font-weight: 500; color: var(--encre); display: inline; }
.contrib-meta-block dd { display: inline; margin: 0; font-family: var(--font-mono); font-size: var(--text-sm); }
.contrib-meta-block .row { display: flex; gap: var(--s-2); align-items: baseline; flex-wrap: wrap; }

.action-bar {
  position: sticky; top: 88px;
  background: var(--brume-soft); border: 1px solid var(--pierre); border-radius: var(--r-lg);
  padding: var(--s-5); display: flex; flex-direction: column; gap: var(--s-3);
}
.action-bar .btn { width: 100%; }
.action-bar__count { display: flex; gap: var(--s-2); align-items: baseline; font-size: var(--text-sm); color: var(--encre-80); }
.action-bar__count strong { font-family: var(--font-display); font-size: var(--text-2xl); font-weight: 600; color: var(--encre); }
.action-bar__divider { height: 1px; background: var(--pierre); margin: var(--s-2) 0; }
.action-bar__row { display: flex; gap: var(--s-2); }
.action-bar__row .btn { flex: 1; }

/* ---------- Commentaires -------------------------------------- */
.comments { border-top: 1px solid var(--pierre); padding-top: var(--s-6); }
.comments__head { display: flex; justify-content: space-between; align-items: center; gap: var(--s-3); margin-bottom: var(--s-5); flex-wrap: wrap; }
.comments__title { font-size: var(--text-xl); }
.comment-form {
  background: var(--brume-soft); border: 1px solid var(--pierre); border-radius: var(--r-md);
  padding: var(--s-4); margin-bottom: var(--s-5);
}
.comment-form textarea { width: 100%; min-height: 80px; border: 1px solid var(--pierre-2); border-radius: var(--r-sm); padding: var(--s-3); resize: vertical; background: white; }
.comment-form textarea:focus { outline: none; border-color: var(--braise); box-shadow: 0 0 0 3px var(--braise-tint); }
.comment-form__foot { display: flex; justify-content: space-between; align-items: center; margin-top: var(--s-3); gap: var(--s-3); }
.comment-form__foot small { font-size: var(--text-xs); color: var(--encre-60); }

.comment { display: flex; gap: var(--s-3); padding: var(--s-4) 0; border-bottom: 1px solid var(--pierre); }
.comment__votes { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 36px; flex-shrink: 0; }
.comment__votes button { width: 28px; height: 28px; border-radius: var(--r-sm); color: var(--encre-60); display: flex; align-items: center; justify-content: center; }
.comment__votes button:hover { background: var(--pierre); color: var(--encre); }
.comment__votes button.is-up:hover, .comment__votes button.is-up.is-active { color: var(--mousse); background: var(--mousse-tint); }
.comment__votes button.is-down:hover, .comment__votes button.is-down.is-active { color: var(--alerte); background: var(--alerte-tint); }
.comment__score { font-family: var(--font-mono); font-size: var(--text-xs); font-weight: 600; }
.comment__body { flex: 1; }
.comment__head { display: flex; gap: var(--s-2); align-items: baseline; font-size: var(--text-sm); margin-bottom: var(--s-2); flex-wrap: wrap; }
.comment__author { font-weight: 600; text-decoration: none; }
.comment__author:hover { color: var(--braise); }
.comment__date { color: var(--encre-60); font-size: var(--text-xs); }
.comment__text { font-size: var(--text-base); line-height: 1.6; }
.comment__actions { display: flex; gap: var(--s-3); margin-top: var(--s-2); font-size: var(--text-xs); color: var(--encre-60); }
.comment__actions button { color: var(--encre-60); }
.comment__actions button:hover { color: var(--braise); }
.comment--reply { margin-left: var(--s-7); border-left: 2px solid var(--pierre); padding-left: var(--s-4); border-bottom: 0; }

/* ---------- Forms (page dépôt) -------------------------------- */
.form-card {
  background: var(--brume-soft); border: 1px solid var(--pierre);
  border-radius: var(--r-lg); padding: var(--s-7);
}
.field { margin-bottom: var(--s-5); }
.field__label { display: flex; justify-content: space-between; align-items: baseline; font-weight: 600; font-size: var(--text-sm); margin-bottom: var(--s-2); }
.field__hint { font-size: var(--text-xs); color: var(--encre-60); margin-top: var(--s-2); }
.field__count { font-family: var(--font-mono); font-size: var(--text-xs); color: var(--encre-60); }
.field__count.is-warn { color: var(--alerte); }

.input, .select, .textarea {
  width: 100%; padding: 12px 14px; border-radius: var(--r-sm);
  border: 1px solid var(--pierre-2); background: white;
  font-size: var(--text-base); transition: all var(--t-fast);
}
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--braise); box-shadow: 0 0 0 3px var(--braise-tint); }
.textarea { min-height: 240px; resize: vertical; line-height: 1.6; font-family: var(--font-ui); }
.textarea--rich { padding: 0; }
.editor-toolbar { display: flex; gap: 2px; padding: var(--s-2); border-bottom: 1px solid var(--pierre); background: var(--brume); border-top-left-radius: var(--r-sm); border-top-right-radius: var(--r-sm); }
.editor-toolbar button { padding: 6px 8px; border-radius: 4px; color: var(--encre); font-size: 14px; }
.editor-toolbar button:hover { background: var(--pierre); }
.editor-content { padding: var(--s-4); min-height: 240px; }

.attach-zone {
  border: 2px dashed var(--pierre-2); border-radius: var(--r-md); padding: var(--s-5);
  text-align: center; color: var(--encre-60); cursor: pointer;
  transition: all var(--t-fast);
}
.attach-zone:hover { border-color: var(--braise); background: var(--brume-soft); color: var(--encre); }
.attach-zone i { font-size: 28px; }

.callout {
  display: flex; gap: var(--s-3); padding: var(--s-4);
  border-radius: var(--r-md); border: 1px solid var(--pierre);
  background: var(--brume); margin-bottom: var(--s-5);
  font-size: var(--text-sm);
}
.callout--info { background: #EAF1F8; border-color: #CFDEEC; color: #1B4060; }
.callout--success { background: var(--mousse-tint); border-color: #B7D6C3; color: #2A5C44; }
.callout--warn { background: #FBF1D9; border-color: #E8D7A3; color: #6E5618; }
.callout i { font-size: 22px; flex-shrink: 0; }
.callout strong { display: block; margin-bottom: 2px; }

/* ---------- Profil utilisateur -------------------------------- */
.profile-head {
  display: grid; grid-template-columns: auto 1fr auto; gap: var(--s-5);
  padding: var(--s-7) 0; align-items: center;
}
@media (max-width: 768px) {
  .profile-head { grid-template-columns: auto 1fr; }
  .profile-head__actions { grid-column: 1 / -1; }
}
.avatar { width: 88px; height: 88px; border-radius: 50%; background: linear-gradient(135deg, var(--braise) 0%, var(--or) 100%); display: flex; align-items: center; justify-content: center; color: white; font-family: var(--font-display); font-size: 32px; font-weight: 600; flex-shrink: 0; }
.avatar--sm { width: 32px; height: 32px; font-size: 13px; }
.profile-head__name { font-size: var(--text-2xl); font-family: var(--font-display); margin-bottom: 4px; }
.profile-head__sub { font-size: var(--text-sm); color: var(--encre-60); }
.profile-head__actions { display: flex; gap: var(--s-2); }

.profile-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: var(--s-4); padding: var(--s-5) 0; border-top: 1px solid var(--pierre); border-bottom: 1px solid var(--pierre); }
.profile-stats__item { text-align: center; }
.profile-stats__value { font-family: var(--font-display); font-size: var(--text-2xl); font-weight: 600; line-height: 1; }
.profile-stats__label { font-size: var(--text-xs); color: var(--encre-60); text-transform: uppercase; letter-spacing: 0.04em; margin-top: var(--s-1); }

.tabs { display: flex; gap: var(--s-5); border-bottom: 1px solid var(--pierre); margin: var(--s-6) 0 var(--s-5); }
.tabs button { padding: var(--s-3) 0; font-size: var(--text-sm); font-weight: 500; color: var(--encre-60); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs button.is-active { color: var(--encre); border-bottom-color: var(--braise); }
.tabs button:hover { color: var(--encre); }

.activity { display: flex; flex-direction: column; gap: 0; }
.activity__item { display: grid; grid-template-columns: 36px 1fr auto; gap: var(--s-4); padding: var(--s-4) 0; border-bottom: 1px solid var(--pierre); align-items: start; }
.activity__icon { width: 32px; height: 32px; border-radius: 50%; background: var(--brume-soft); border: 1px solid var(--pierre); display: flex; align-items: center; justify-content: center; color: var(--encre-60); }
.activity__icon i { font-size: 16px; }
.activity__title { font-size: var(--text-base); }
.activity__title strong a { text-decoration: none; }
.activity__title strong a:hover { color: var(--braise); }
.activity__date { font-size: var(--text-xs); color: var(--encre-60); white-space: nowrap; font-family: var(--font-mono); }

/* ---------- Rapport bloc ------------------------------------- */
.reports-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-5); }
@media (max-width: 768px) { .reports-grid { grid-template-columns: 1fr; } }
.report-card {
  background: var(--brume-soft); border: 1px solid var(--pierre); border-radius: var(--r-lg);
  padding: var(--s-5); display: flex; gap: var(--s-4); align-items: start;
  text-decoration: none; color: inherit; transition: all var(--t-med);
}
.report-card:hover { border-color: var(--encre-30); box-shadow: var(--sh-hover); transform: translateY(-2px); }
.report-card__icon { width: 56px; height: 56px; border-radius: var(--r-sm); background: var(--encre); color: var(--brume); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.report-card__icon i { font-size: 24px; }
.report-card__body h3 { font-size: var(--text-md); margin-bottom: var(--s-1); }
.report-card__body p { font-size: var(--text-sm); color: var(--encre-80); margin-bottom: var(--s-2); }
.report-card__link { font-size: var(--text-xs); color: var(--braise); font-weight: 600; }

/* ---------- Utility ------------------------------------------- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-5); }
@media (max-width: 768px) { .grid-2 { grid-template-columns: 1fr; } }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: var(--s-5); }
.text-mono { font-family: var(--font-mono); }
.text-display { font-family: var(--font-display); }
.text-muted { color: var(--encre-60); }
.text-center { text-align: center; }
.divider { height: 1px; background: var(--pierre); margin: var(--s-6) 0; }
.spacer-sm { height: var(--s-3); }
.spacer { height: var(--s-5); }
.spacer-lg { height: var(--s-7); }

/* Phosphor icon size helper */
.ph { font-size: 18px; line-height: 1; vertical-align: middle; }

/* Alpine.js — masque les blocs x-cloak avant l'init pour éviter le flash */
[x-cloak] { display: none !important; }

/* Onglets dashboard : grille de cartes */
.dashboard-tab { display: grid; gap: var(--s-3); }

/* =============================================================
   LOGO PHARE v2 — version vectorielle commune
   ============================================================= */
.brand__mark { width: 40px; height: 40px; flex-shrink: 0; }
/* Le faisceau du phare reste chaud (corail/soleil) — un phare ne luit pas en bleu.
   La base indigo + faisceau corail crée la signature visuelle distinctive. */
.brand__mark .lh-base   { fill: var(--encre); }
.brand__mark .lh-beam   { stroke: var(--soleil); stroke-width: 4; stroke-linecap: round; }
.brand__mark .lh-glow   { stroke: var(--soleil); stroke-width: 1.5; stroke-linecap: round; opacity: 0.35; fill: none; }
.brand__mark .lh-light  { fill: var(--brume); }
/* Variante dark (footer, bandeau Encre) */
.brand--on-dark .lh-base { fill: var(--brume); }
.brand--on-dark .lh-light { fill: var(--encre); }

/* =============================================================
   PASSE DESIGN — améliorations transverses
   ============================================================= */

/* Avatar des cartes contribution : aligné avec le profile-head (gradient chaud) pour cohérence
   visuelle. Petite taille = subtil ; grande taille = chaleureux. */
.contrib-card__avatar {
  background: linear-gradient(135deg, var(--braise) 0%, var(--or) 100%);
}

/* Carte : hover plus prononcé sur le titre pour signaler le clic (la carte entière est cliquable
   via stretched-link, mais le visiteur lit d'abord le titre). */
.contrib-card { border: 1px solid var(--pierre); }
.contrib-card:hover { border-color: var(--braise); }

/* KPI : valeur encore plus grande sur desktop pour l'effet "chiffre clé". */
@media (min-width: 900px) {
  .kpi__value { font-size: 56px; }
}

/* Thread commentaires : layout plus aéré, votes en barre horizontale en bas plutôt que colonne
   gauche (Reddit-style un peu daté). On garde la fonctionnalité, on allège la forme. */
.comment { gap: var(--s-4); padding: var(--s-5) 0; }
.comment__votes {
  flex-direction: row;
  min-width: auto;
  gap: var(--s-1);
  order: 99; /* on relègue les votes en bas à droite via flex order */
  align-self: flex-start;
  margin-left: auto;
}
.comment__votes button { width: 32px; height: 32px; border-radius: var(--r-sm); }
.comment__score { font-size: var(--text-sm); padding: 0 var(--s-2); }
@media (min-width: 768px) {
  .comment__body { flex: 1 1 auto; }
}

/* Animation signature : pulse Braise sur clic Soutenir (cf. design system).
   Déclenchée par data-attribute, sans JS. */
@keyframes phare-pulse {
  0%   { transform: scale(1);    box-shadow: 0 0 0 0 rgba(232, 85, 44, 0.45); }
  60%  { transform: scale(1.03); box-shadow: 0 0 0 12px rgba(232, 85, 44, 0); }
  100% { transform: scale(1);    box-shadow: 0 0 0 0 rgba(232, 85, 44, 0); }
}
.btn--primary[data-pulse]:active { animation: phare-pulse 0.45s ease-out; }

/* Focus accessible : padding négatif géré pour rester visible sur les badges et liens en ligne */
.badge:focus-visible,
.contrib-card__author:focus-visible,
.btn:focus-visible {
  outline-offset: 3px;
}

/* Mobile breakpoints manquants : layouts grids principaux passent en simple colonne ≤ 900 px */
@media (max-width: 900px) {
  .contrib-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .layout-list { grid-template-columns: 1fr; }
  .filters { position: static; }
}
@media (max-width: 640px) {
  .footer-grid { grid-template-columns: 1fr; }
  .grid-2, .grid-3, .reports-grid, .news-grid, .steps-3,
  .kpi-grid, .profile-stats { grid-template-columns: 1fr; }
  .hero { padding: var(--s-7) 0 var(--s-6); }
  .hero__title { font-size: 36px; }
  .timeline__inner { flex-direction: column; gap: var(--s-2); }
  .step { border-left-width: 4px; }
  .site-header__inner { padding: var(--s-3); gap: var(--s-3); }
  .brand__tag { display: none; }
  .nav-actions .btn--primary { padding: 8px 14px; font-size: var(--text-xs); }
}

/* Réduction des animations pour les utilisateurs qui le demandent (accessibilité) */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Sticky banner / header — hauteurs précises pour les position:sticky des sidebars */
.site-banner + .site-header { top: 0; }

/* Pill 'Auteur' sur commentaires : un peu plus de respiration */
.comment__head .pill { margin-left: var(--s-1); }

/* =============================================================
   NAV MOBILE — burger + tiroir
   ============================================================= */
.nav-burger {
  display: none;
  width: 40px; height: 40px; border-radius: var(--r-sm);
  align-items: center; justify-content: center;
  color: var(--encre);
}
.nav-burger:hover { background: var(--pierre); }
.nav-burger .ph { font-size: 22px; }

.mobile-nav {
  display: none;
  flex-direction: column;
  background: var(--brume-soft);
  border-top: 1px solid var(--pierre);
  padding: var(--s-3) var(--s-4) var(--s-4);
}
.mobile-nav a {
  padding: var(--s-3) var(--s-2);
  text-decoration: none;
  font-weight: 500;
  font-size: var(--text-md);
  border-bottom: 1px solid var(--pierre);
}
.mobile-nav a:last-child { border-bottom: 0; }
.mobile-nav a:hover { color: var(--braise); }

.show-on-mobile { display: none; }

@media (max-width: 900px) {
  .nav-burger { display: inline-flex; }
  .mobile-nav { display: flex; }
  .hide-on-mobile { display: none; }
  .show-on-mobile { display: inline; }
}

/* =============================================================
   FORMULAIRE — Choix du type d'auteur (radio cards)
   ============================================================= */
.kind-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--s-3);
  margin-top: var(--s-2);
}
.kind-card {
  display: flex; flex-direction: column; align-items: flex-start; gap: var(--s-2);
  padding: var(--s-4);
  border: 2px solid var(--pierre-2);
  border-radius: var(--r-md);
  cursor: pointer;
  background: white;
  transition: all var(--t-fast);
  position: relative;
}
.kind-card:hover { border-color: var(--encre-30); }
.kind-card.is-active {
  border-color: var(--braise);
  background: var(--braise-tint);
}
.kind-card input[type="radio"] {
  position: absolute; opacity: 0; pointer-events: none;
}
.kind-card__icon {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--brume-soft);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--encre); font-size: 20px;
}
.kind-card.is-active .kind-card__icon {
  background: var(--braise);
  color: white;
}
.kind-card__label {
  font-weight: 500; font-size: var(--text-sm); color: var(--encre);
  line-height: 1.3;
}

/* =============================================================
   HERO — chiffre vivant "cette semaine" (insp. make.org)
   ============================================================= */
.hero { position: relative; }
.hero__live {
  position: absolute; right: var(--s-6); top: 50%; transform: translateY(-50%);
  background: var(--encre); color: var(--brume);
  border-radius: var(--r-xl);
  padding: var(--s-5) var(--s-6);
  text-align: center;
  box-shadow: 0 12px 28px -8px rgba(11,31,58,0.25);
  z-index: 2;
  max-width: 220px;
}
.hero__live__num {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: 700;
  color: var(--braise);
  line-height: 1;
  margin-bottom: var(--s-2);
}
.hero__live__label {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: rgba(245,242,236,0.85);
  line-height: 1.3;
}
@media (max-width: 1100px) {
  .hero__live { display: none; }
}

/* =============================================================
   AUDIENCE CARDS — section tripartite (citoyen / éco / asso)
   ============================================================= */
.audience-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--s-5);
}
.audience-card {
  background: var(--brume-soft);
  border: 1px solid var(--pierre);
  border-radius: var(--r-lg);
  padding: var(--s-6);
  display: flex; flex-direction: column; gap: var(--s-3);
  transition: all var(--t-med);
  position: relative;
}
.audience-card:hover {
  border-color: var(--encre-30);
  box-shadow: var(--sh-hover);
  transform: translateY(-2px);
}
.audience-card__icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 28px;
  margin-bottom: var(--s-2);
}
.audience-card--citizen .audience-card__icon {
  background: var(--braise-tint); color: var(--braise-fonce);
}
.audience-card--economic .audience-card__icon {
  background: var(--soleil-tint); color: var(--soleil-fonce);
}
.audience-card--associative .audience-card__icon {
  background: var(--lavande-tint); color: var(--lavande);
}
.audience-card__title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--encre);
}
.audience-card__lead {
  font-size: var(--text-sm);
  color: var(--encre-80);
  flex: 1 1 auto;
}
.audience-card__count {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--encre-60);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding-top: var(--s-3);
  border-top: 1px dashed var(--pierre);
}
.audience-card__link {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--braise);
  text-decoration: none;
}
.audience-card__link:hover { text-decoration: underline; }

/* =============================================================
   TOPIC GRID — 11 thématiques cliquables (insp. Grandes Causes make.org)
   ============================================================= */
.topic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--s-3);
}
.topic-card {
  display: flex; align-items: center; gap: var(--s-3);
  padding: var(--s-4);
  background: white;
  border: 1px solid var(--pierre);
  border-radius: var(--r-md);
  text-decoration: none;
  color: var(--encre);
  transition: all var(--t-fast);
}
.topic-card:hover {
  border-color: var(--encre);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px -8px rgba(11,31,58,0.15);
}
.topic-card__dot {
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--encre);
  flex-shrink: 0;
}
.topic-card.cat-agri  .topic-card__dot { background: var(--cat-agri); }
.topic-card.cat-cult  .topic-card__dot { background: var(--cat-cult); }
.topic-card.cat-env   .topic-card__dot { background: var(--cat-env); }
.topic-card.cat-fisc  .topic-card__dot { background: var(--cat-fisc); }
.topic-card.cat-fp    .topic-card__dot { background: var(--cat-fp); }
.topic-card.cat-fin   .topic-card__dot { background: var(--cat-fin); }
.topic-card.cat-infra .topic-card__dot { background: var(--cat-infra); }
.topic-card.cat-sante .topic-card__dot { background: var(--cat-sante); }
.topic-card.cat-soc   .topic-card__dot { background: var(--cat-soc); }
.topic-card.cat-secu  .topic-card__dot { background: var(--cat-secu); }
.topic-card.cat-edu   .topic-card__dot { background: var(--cat-edu); }
.topic-card__name {
  font-size: var(--text-sm);
  font-weight: 500;
  flex: 1 1 auto;
}
.topic-card__count {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--encre-60);
  background: var(--brume);
  padding: 2px 8px;
  border-radius: 999px;
}
