@font-face { font-family: "Atkinson Hyperlegible"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/atkinson-400.woff2") format("woff2"); }
@font-face { font-family: "Atkinson Hyperlegible"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/atkinson-700.woff2") format("woff2"); }
@font-face { font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 700 800; font-display: swap; src: url("fonts/bricolage-800.woff2") format("woff2"); }
/* Saint-Paul-lès-Romans Autrement — feuille de style commune
   Colonne de lecture unique (68ch), en-tête sobre, bleu du logo + ocre de la Drôme. */
:root {
  --bg: #f6f7f6;
  --surface: #ffffff;
  --ink: #15232b;
  --muted: #4a5a62;
  --line: #d4dcdf;
  --accent: #1c5d82;       /* bleu du logo */
  --accent-strong: #134563;
  --accent-ink: #ffffff;
  --accent-soft: #e4eef4;
  --ochre: #85550f;
  --ochre-soft: #f4e8d2;
  --opp: #5b3f86;
  --opp-soft: #ece6f5;
  --focus: #c2410c;
  --display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --body: "Atkinson Hyperlegible", Verdana, system-ui, sans-serif;
  --radius: 10px;
  --measure: 68ch;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #10181c; --surface: #172227; --ink: #e7eef0; --muted: #a8b8be; --line: #2b3a41;
    --accent: #7cc0e6; --accent-strong: #a6d6f0; --accent-ink: #0b1a22; --accent-soft: #1b2e39;
    --ochre: #e7b968; --ochre-soft: #2d2517; --opp: #c3a8f0; --opp-soft: #2a2238; --focus: #fb923c;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { scroll-padding-top: 90px; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 1.0625rem; line-height: 1.65; }
img { max-width: 100%; height: auto; }
a { color: var(--accent); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 3px; }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.18; text-wrap: balance; color: var(--ink); }
h1 { font-size: clamp(2rem, 5vw, 3.1rem); font-weight: 800; margin: 0 0 .4em; }
h2 { font-size: clamp(1.45rem, 3vw, 1.9rem); font-weight: 800; margin: 2em 0 .5em; }
h3 { font-size: 1.25rem; font-weight: 700; margin: 1.6em 0 .4em; }
h4 { font-size: 1.08rem; font-weight: 700; margin: 1.4em 0 .3em; }
p, ul, ol, blockquote { margin: 0 0 1em; }
li { margin-bottom: .35em; }

.wrap { max-width: 1120px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 50; background: var(--surface); color: var(--ink); padding: 10px 14px; border-radius: 6px; }
.skip:focus { left: 16px; }

/* En-tête */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 10px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand img { width: 48px; height: 48px; }
.brand span { font-family: var(--display); font-weight: 800; line-height: 1.05; font-size: 1.02rem; }
.brand small { display: block; font-family: var(--body); font-weight: 700; letter-spacing: .18em; font-size: .72rem; color: var(--accent); }
.menu-toggle { display: none; font: inherit; font-weight: 700; background: var(--accent); color: var(--accent-ink); border: 0; border-radius: 8px; padding: 10px 16px; min-height: 44px; cursor: pointer; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 2px; align-items: center; }
.nav li { margin: 0; position: relative; }
.nav a, .nav button { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 8px 12px; border-radius: 8px; font: inherit; font-size: .98rem; color: var(--ink); text-decoration: none; background: none; border: 0; cursor: pointer; }
.nav a:hover, .nav button:hover { background: var(--accent-soft); }
.nav a[aria-current="page"] { color: var(--accent); font-weight: 700; box-shadow: inset 0 -3px 0 var(--accent); border-radius: 8px 8px 0 0; }
.nav .sub { display: none; position: absolute; right: 0; top: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 6px; min-width: 250px; flex-direction: column; align-items: stretch; box-shadow: 0 10px 30px rgb(0 0 0 / .12); }
.nav .sub a { width: 100%; }
.nav button[aria-expanded="true"] + .sub { display: flex; }
.chev { width: .7em; height: .7em; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); }
@media (max-width: 960px) {
  .menu-toggle { display: inline-flex; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--surface); border-bottom: 1px solid var(--line); padding: 8px max(16px, env(safe-area-inset-left, 0px)) 16px; max-height: calc(100vh - 70px); overflow: auto; }
  .nav.open { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; }
  .nav a, .nav button { width: 100%; }
  .nav .sub { position: static; box-shadow: none; border: 0; padding: 0 0 0 16px; min-width: 0; }
}

/* Bandeau de page */
.page-head { background: var(--accent); color: var(--accent-ink); }
.page-head .wrap { padding-block: 40px 34px; }
.page-head h1 { color: var(--accent-ink); margin: 0; max-width: 24ch; }
.page-head p { margin: 12px 0 0; max-width: 62ch; font-size: 1.1rem; }
.eyebrow { display: block; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; margin-bottom: 10px; opacity: .92; }
.page-head a { color: var(--accent-ink); }

main { padding-block: 36px 64px; }

/* Lecture longue avec sommaire */
.reading { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; }
@media (min-width: 1000px) { .reading.has-toc { grid-template-columns: 260px minmax(0, 1fr); } }
.toc { align-self: start; position: sticky; top: 90px; font-size: .93rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; max-height: calc(100vh - 110px); overflow: auto; }
.toc h2 { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 8px; color: var(--muted); font-family: var(--body); }
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.toc li { margin: 0; }
.toc a { display: block; padding: 5px 8px; border-radius: 6px; text-decoration: none; color: var(--ink); line-height: 1.35; }
.toc a:hover { background: var(--accent-soft); }
.toc .lvl3 a { padding-left: 20px; font-size: .9em; color: var(--muted); }
@media (max-width: 999px) { .toc { position: static; max-height: none; } }
.prose { max-width: var(--measure); min-width: 0; }
.prose > :first-child { margin-top: 0; }
.prose h2 { padding-top: .2em; border-top: 2px solid var(--line); padding-top: 1em; }
.prose blockquote { border-left: 4px solid var(--ochre); background: var(--ochre-soft); padding: 14px 18px; border-radius: 0 var(--radius) var(--radius) 0; }
.prose blockquote p:last-child { margin-bottom: 0; }
.prose .lead { font-size: 1.15rem; }
.to-top { display: inline-block; margin-top: 32px; }

/* Cartes génériques */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; list-style: none; padding: 0; margin: 0; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; display: grid; gap: 8px; align-content: start; min-width: 0; position: relative; }
.card h3 { margin: 0; font-size: 1.2rem; }
.card h3 a { text-decoration: none; color: var(--ink); }
.card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.card:hover { border-color: var(--accent); }
.card:focus-within { outline: 3px solid var(--focus); outline-offset: 2px; }
.card h3 a:focus-visible { outline: none; }
.card p { margin: 0; color: var(--muted); }
.meta { font-size: .9rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 12px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0; }
.tags li { margin: 0; font-size: .8rem; font-weight: 700; padding: 2px 10px; border-radius: 999px; background: var(--ochre-soft); color: var(--ochre); }

/* Accueil */
.hero { background: var(--surface); border-bottom: 1px solid var(--line); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; align-items: center; padding-block: 44px; }
@media (min-width: 820px) { .hero .wrap { grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); } }
.hero h1 { font-size: clamp(1.6rem, 6.4vw, 4.2rem); margin: 0; color: var(--accent-strong); }
.hero h1 .nowrap { white-space: nowrap; color: inherit; display: inline; letter-spacing: 0; }
.hero h1 span:not(.nowrap) { display: block; color: var(--accent); letter-spacing: .06em; }
.hero p { font-size: 1.15rem; max-width: 52ch; margin: 16px 0 0; }
.hero img { justify-self: center; width: min(320px, 70vw); }
.section-title { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 8px; margin: 48px 0 16px; }
.section-title h2 { margin: 0; }

/* Équipe */
.team { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 24px 16px; list-style: none; padding: 0; margin: 0; }
.team li { margin: 0; text-align: center; }
.team img { width: 100%; max-width: 200px; aspect-ratio: 1; border-radius: 50%; }

/* Boutons et filtres */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; padding: 0; list-style: none; }
.chips li { margin: 0; }
.chips button { font: inherit; font-size: .95rem; padding: 8px 14px; min-height: 44px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; }
.chips button:hover { border-color: var(--accent); }
.chips button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); font-weight: 700; }
.btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 10px 18px; border-radius: 8px; font: inherit; font-weight: 700; background: var(--accent); color: var(--accent-ink); border: 0; text-decoration: none; cursor: pointer; }
.btn.ghost { background: transparent; color: var(--accent); border: 1.5px solid var(--accent); }

/* Contact */
.contact-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: grid; gap: 14px; max-width: 640px; }
.contact-box .addr { font-size: 1.25rem; font-weight: 700; overflow-wrap: anywhere; }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.status { min-height: 1.5em; margin: 0; color: var(--muted); }

/* Article */
.article-head .meta { color: var(--accent-ink); opacity: .92; margin-top: 12px; }
.article-head .tags li { background: rgb(255 255 255 / .16); color: var(--accent-ink); }
.post-nav { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 40px; padding-top: 20px; border-top: 2px solid var(--line); }

/* Pied de page */
.site-footer { background: var(--surface); border-top: 1px solid var(--line); }
.site-footer .wrap { padding-block: 28px; display: grid; gap: 14px; font-size: .95rem; color: var(--muted); }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; }
.site-footer li { margin: 0; }
.site-footer a { color: var(--ink); }

@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
.team-elus { grid-template-columns: repeat(auto-fit, minmax(240px, 340px)); gap: 32px; }
.team-elus .member { display: grid; gap: 6px; align-content: start; justify-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 20px; }
.team-elus img { max-width: 240px; }
.team-elus h2 { margin: 10px 0 0; font-size: 1.4rem; }
.team-elus p { margin: 0; }

/* Contacts et infos utiles */
.infos { display: grid; gap: 28px; }
.urgence { background: #8f1d1d; color: #fff; border-radius: var(--radius); padding: 24px; display: grid; gap: 16px; }
.urgence h2 { color: #fff; margin: 0; border: 0; padding: 0; }
.urg-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.urg-grid li { margin: 0; }
.urg-grid a { display: grid; gap: 2px; min-height: 100%; padding: 12px 14px; border-radius: 8px; background: rgb(255 255 255 / .12); color: #fff; text-decoration: none; }
.urg-grid a:hover { background: rgb(255 255 255 / .22); }
.urg-grid b { font-family: var(--display); font-size: 1.9rem; line-height: 1; }
.urg-grid span { font-size: .88rem; line-height: 1.3; }
.urgence a { color: #fff; }
.urgence :focus-visible { outline-color: #ffd28a; }
.more summary { cursor: pointer; font-weight: 700; min-height: 44px; display: flex; align-items: center; }
.more .kv { margin-top: 10px; }
.urgence .kv dt { color: #ffe3e3; }
.finder { display: grid; gap: 8px; max-width: 640px; }
.finder label { font-weight: 700; }
.finder input { font: inherit; padding: 12px 14px; min-height: 48px; border: 2px solid var(--muted); border-radius: 8px; background: var(--surface); color: var(--ink); }
.finder input:focus { border-color: var(--accent); }
.jump .chips { margin: 0; }
.jump a { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 14px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); text-decoration: none; font-size: .95rem; }
.jump a:hover { border-color: var(--accent); }
.blocks { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); gap: 20px; align-items: start; }
.block { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; min-width: 0; }
.block h2 { margin: 0 0 14px; font-size: 1.5rem; }
.block h3 { margin: 22px 0 8px; font-size: 1.1rem; }
.block ul { padding-left: 1.2em; }
.kv { margin: 0; display: grid; gap: 10px; }
.kv dt { font-size: .82rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.kv dd { margin: -6px 0 0; overflow-wrap: anywhere; }
.note { background: var(--ochre-soft); border-left: 4px solid var(--ochre); padding: 10px 14px; border-radius: 0 8px 8px 0; font-size: .95rem; margin: 14px 0; }
.sources { color: var(--muted); max-width: var(--measure); }
.sources h2 { font-size: 1.2rem; margin: 0 0 6px; }

.hero-ctas .btn { min-width: 230px; justify-content: center; font-size: 1.1rem; padding: 14px 24px; }
.team-elus h2 a { color: var(--ink); }
.presentation { scroll-margin-top: 90px; }

.next-council { background: var(--accent-soft); border: 1px solid var(--accent); border-radius: var(--radius); padding: 18px 20px; margin: 0 0 1.5em; }
.prose .next-council h2 { border: 0; padding: 0; margin: 0 0 6px; font-size: 1.3rem; }
.next-council summary { cursor: pointer; font-weight: 700; min-height: 44px; display: flex; align-items: center; }
.next-council ul { margin-top: 8px; }
.table-scroll { overflow-x: auto; margin: 0 0 1.2em; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.prose table { border-collapse: collapse; width: 100%; min-width: 520px; font-size: .95rem; }
.prose th, .prose td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose thead th { font-size: .82rem; color: var(--muted); }
.prose tbody tr:last-child td { border-bottom: 0; }
.prose .cr-grid { grid-template-columns: minmax(0, 1fr); margin-bottom: 1.5em; }
.prose .cr-grid h3 { margin: 0; }
.prose .cr-grid .tags, .prose .cr-grid ul { padding-left: 0; }
.notes { font-size: .9rem; color: var(--muted); padding-left: 1.4em; }
.notes li { margin-bottom: .5em; }
.doc-list { list-style: none; padding: 0; display: grid; gap: 10px; }
.doc-list li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: baseline; }
.doc-list a { font-weight: 700; }
.ri-row { border-top: 2px solid var(--line); padding-top: 18px; margin-top: 26px; }
.prose .ri-row h3 { margin: 0 0 12px; }
.ri-cols { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
@media (min-width: 720px) { .ri-cols { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.ri-cols > div { border-radius: var(--radius); padding: 14px 16px; }
.ri-cols p { margin: 0; }
.prose .ri-cols h4 { margin: 0 0 6px; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; }
.ri-voted { background: var(--surface); border: 1px solid var(--line); }
.ri-ours { background: var(--accent-soft); border: 1px solid var(--accent); }
.prose .ri-ours h4 { color: var(--accent); }
.ri-impact { margin: 12px 0 0; }
/* Accès rapide aux documents (page Règlement intérieur) */
.acces-rapide { background: var(--accent-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 16px; margin: 0 0 24px; }
.acces-rapide ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; }
.acces-rapide a { font-weight: 600; }
table caption { text-align: left; font-weight: 600; padding: 0 0 8px; }
tbody th[scope="row"] { text-align: left; font-weight: 600; vertical-align: top; }
/* Formulaire de signalement */
.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; }
#signalement form { display: grid; gap: 16px; max-width: 640px; }
.fld label { display: block; font-weight: 600; margin-bottom: 6px; }
.fld input, .fld select, .fld textarea { width: 100%; font: inherit; padding: 10px 12px; border: 1px solid var(--muted); border-radius: 8px; background: var(--surface); color: var(--ink); }
.fld textarea { resize: vertical; }
.fld [aria-invalid="true"] { border-color: var(--focus); border-width: 2px; }
.fld-check { display: grid; grid-template-columns: auto 1fr; gap: 6px 10px; align-items: start; }
.fld-check input { width: 22px; height: 22px; margin-top: 2px; }
.fld-check label { font-weight: 400; margin: 0; }
.fld-check .err, .fld-check .help { grid-column: 1 / -1; }
.req { color: var(--focus); }
.err { color: var(--focus); font-weight: 600; margin: 6px 0 0; }
.help { color: var(--muted); font-size: .95rem; margin: 6px 0 0; }
.merci { background: var(--accent-soft); border-radius: var(--radius); padding: 16px 20px; }
#signalement .btn { justify-self: start; }
#signalement .btn[disabled] { opacity: .6; cursor: progress; }
/* Quiz */
#quiz fieldset { border: 0; padding: 0; margin: 0; }
#quiz legend { font-family: var(--display); font-size: 1.25rem; font-weight: 700; margin-bottom: 12px; }
.qprog { color: var(--muted); font-size: .95rem; margin: 0 0 12px; }
.qopts { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 8px; }
.qopt { display: flex; gap: 10px; align-items: center; padding: 12px 14px; border: 1px solid var(--muted); border-radius: 8px; background: var(--surface); cursor: pointer; min-height: 44px; }
.qopt input { width: 20px; height: 20px; flex: none; }
.qopt.ok { border: 2px solid #2e7d32; background: #e8f5e9; color: #1b4d1f; }
.qopt.ko { border: 2px solid var(--focus); }
.qfb { border-radius: var(--radius); padding: 12px 16px; margin: 0 0 16px; background: var(--accent-soft); }
.qfb.good { border-left: 4px solid #2e7d32; }
.qfb.bad { border-left: 4px solid var(--focus); }
.qnav { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; }
.qnav .btn[disabled] { opacity: .5; cursor: default; }
.qscore { font-family: var(--display); font-size: 2.5rem; font-weight: 800; margin: 0; color: var(--accent); }
/* Accessibilité : barre « Écouter la page » et encart d'information */
.a11y-bar { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 10px 14px; margin-top: 18px; }
.ecoute { display: flex; flex-wrap: wrap; gap: 8px; }
.ecoute-btn, .a11y-badge { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 16px; border-radius: 999px; font: inherit; font-size: .98rem; font-weight: 700; cursor: pointer; }
.page-head .ecoute-btn, .page-head .a11y-badge { background: var(--surface); color: var(--accent-strong); border: 2px solid var(--surface); }
.page-head .a11y-badge { background: transparent; color: var(--accent-ink); border-color: var(--accent-ink); }
.hero .ecoute-btn { background: var(--accent); color: var(--accent-ink); border: 2px solid var(--accent); }
.hero .a11y-badge { background: var(--surface); color: var(--accent); border: 2px solid var(--accent); }
.page-head .a11y-bar :focus-visible { outline-color: #ffd28a; }
.ecoute-btn[hidden] { display: none; }
.a11y-info { position: relative; }
.a11y-panel { position: absolute; z-index: 20; top: calc(100% + 8px); left: 0; width: min(440px, calc(100vw - 32px)); background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 10px 30px rgb(0 0 0 / .18); padding: 16px 18px; font-size: .97rem; opacity: 0; transform: translateY(-6px); transition: opacity .25s ease, transform .25s ease; }
.a11y-panel.open { opacity: 1; transform: none; }
.a11y-panel ul { margin: 0 0 10px; padding-left: 1.2em; }
.a11y-panel p { margin: 0; }
.page-head .a11y-panel a, .a11y-panel a { color: var(--accent); }
.ecoute-en-cours { background: var(--ochre-soft); box-shadow: 0 0 0 4px var(--ochre-soft); border-radius: 4px; }
.page-head .ecoute-en-cours { background: rgb(255 255 255 / .18); box-shadow: 0 0 0 4px rgb(255 255 255 / .18); }
.qmark { margin-left: auto; font-size: .9rem; font-weight: 700; white-space: nowrap; }
.ecoute.flottant { position: fixed; z-index: 40; left: max(16px, env(safe-area-inset-left, 0px)); bottom: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 6px; box-shadow: 0 8px 24px rgb(0 0 0 / .2); }
.page-head .ecoute.flottant .ecoute-btn, .hero .ecoute.flottant .ecoute-btn { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.ecoute.flottant .ecoute-btn:focus-visible { outline-color: var(--focus); }
@media (prefers-reduced-motion: reduce) { .a11y-panel { transition: none; transform: none; } }

/* Où vont vos impôts */
.bud-chiffres { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.bud-chiffres li { margin: 0; background: var(--accent-soft); border-radius: var(--radius); padding: 14px 16px; display: grid; gap: 4px; }
.bud-chiffres b { font-family: var(--display); font-size: 1.6rem; line-height: 1.1; color: var(--accent-strong); }
.bud-flux { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; }
.bud-etape { position: relative; display: grid; grid-template-columns: 44px 1fr; gap: 14px; margin: 0; padding-bottom: 22px; }
.bud-etape:not(:last-child)::before { content: ""; position: absolute; left: 21px; top: 44px; bottom: 0; border-left: 3px solid var(--accent); }
.bud-etape:not(:last-child)::after { content: ""; position: absolute; left: 15px; bottom: 2px; border: 8px solid transparent; border-top: 10px solid var(--accent); border-bottom: 0; }
.bud-num { width: 44px; height: 44px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: 1.2rem; }
.bud-etape h3 { margin: 6px 0 4px; }
.bud-etape p { margin: 0; }
.bud-barres { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.bud-barres li { margin: 0; display: grid; grid-template-columns: minmax(150px, 230px) 1fr; gap: 4px 14px; align-items: center; }
.bud-lib { font-weight: 700; }
.bud-barre { display: flex; align-items: center; gap: 10px; min-width: 0; }
.bud-barre::before { content: ""; flex: none; height: 18px; width: calc(var(--v) * 0.75%); max-width: calc(100% - 7.5em); min-width: 4px; background: var(--accent); border-radius: 4px; }
.bud-barre span { font-weight: 700; white-space: nowrap; }
.bud-ex { grid-column: 2; color: var(--muted); font-size: .93rem; }
.bud-dette .bud-barre::before { background: var(--ochre); }
.bud-lexique dt { font-weight: 700; margin-top: 10px; }
.bud-lexique dd { margin: 2px 0 0; }
@media (max-width: 560px) { .bud-barres li { grid-template-columns: 1fr; } .bud-ex { grid-column: 1; } }

/* Agenda */
.ag-mois { font-size: 1.35rem; margin: 1.4em 0 .5em; }
.ag-liste { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.ag-item { margin: 0; background: var(--surface); border: 1px solid var(--line); border-left: 5px solid var(--accent); border-radius: var(--radius); padding: 16px 18px; }
.ag-item h3 { margin: 2px 0 6px; font-size: 1.12rem; }
.ag-item p { margin: 0 0 6px; }
.ag-quand { font-weight: 700; color: var(--accent-strong); }
.ag-ou { color: var(--muted); }
.ag-tag { display: inline-block; font-size: .8rem; font-weight: 700; padding: 1px 9px; border-radius: 999px; background: var(--ochre-soft); color: var(--ochre); margin-right: 4px; }
.ag-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin-top: 10px !important; }
.ag-actions a { min-height: 44px; display: inline-flex; align-items: center; }
.bud-calcul { list-style: none; padding: 0; margin: 0 0 1em; display: grid; gap: 8px; counter-reset: c; }
.bud-calcul li { margin: 0; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; background: var(--accent-soft); border-radius: 8px; padding: 12px 16px; counter-increment: c; }
.bud-calcul .bud-op::before { content: counter(c) ". "; font-weight: 700; }
.bud-calcul .bud-val { font-weight: 700; color: var(--accent-strong); white-space: nowrap; }
.bud-calcul li:last-child { border: 2px solid var(--accent); }
.bud-propos { border-left: 5px solid var(--opp); }

/* Menu en rubriques et plan du site */
.nav button.is-current { color: var(--accent); font-weight: 700; box-shadow: inset 0 -3px 0 var(--accent); border-radius: 8px 8px 0 0; }
.nav > ul > li:nth-child(-n+2) > .sub { right: auto; left: 0; }
.site-footer .plan { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 18px 24px; }
.site-footer .plan h2 { font-size: .95rem; margin: 0 0 6px; color: var(--ink); font-family: var(--body); }
.site-footer .plan ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.site-footer .plan li { margin: 0; }

/* Pauline, assistante virtuelle */
.pl-launch { position: fixed; z-index: 45; right: max(16px, env(safe-area-inset-right, 0px)); bottom: 76px; display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 6px 18px 6px 6px; border: 2px solid var(--surface); border-radius: 999px; background: var(--accent); color: var(--accent-ink); font: inherit; font-size: 1rem; cursor: pointer; box-shadow: 0 8px 24px rgb(0 0 0 / .25); }
.pl-launch.pl-on { background: var(--accent-strong); }
.pl-launch:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.pl-av { flex: none; display: grid; place-items: center; width: 40px; height: 40px; object-fit: cover; border: 2px solid var(--surface); border-radius: 50%; background: var(--ochre-soft); color: var(--ochre); font-family: var(--display); font-weight: 800; font-size: 1.2rem; }
.pl-panel { position: fixed; z-index: 46; right: max(16px, env(safe-area-inset-right, 0px)); bottom: 140px; width: min(400px, calc(100vw - 32px)); max-height: min(620px, calc(100vh - 170px)); display: flex; flex-direction: column; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 16px 40px rgb(0 0 0 / .28); overflow: hidden; }
.pl-panel[hidden] { display: none; }
.pl-head { display: flex; align-items: center; gap: 10px; padding: 12px 12px 12px 14px; background: var(--accent); color: var(--accent-ink); }
.pl-head > div { flex: 1; min-width: 0; }
.pl-title { margin: 0; font-family: var(--display); font-weight: 800; font-size: 1.15rem; color: var(--accent-ink); }
.pl-sub { margin: 0; font-size: .85rem; opacity: .92; }
.pl-voice, .pl-close { min-height: 44px; min-width: 44px; border: 2px solid var(--accent-ink); border-radius: 999px; background: transparent; color: var(--accent-ink); font: inherit; font-size: .88rem; font-weight: 700; padding: 0 12px; cursor: pointer; }
.pl-close { font-size: 1.5rem; line-height: 1; padding: 0; }
.pl-head :focus-visible { outline-color: #ffd28a; }
.pl-note { margin: 0; padding: 8px 14px; font-size: .85rem; color: var(--muted); background: var(--ochre-soft); }
.pl-log { position: relative; flex: 1; overflow-y: auto; padding: 12px 14px; display: grid; gap: 10px; align-content: start; }
.pl-msg p { margin: 0 0 6px; }
.pl-msg ul { margin: 0 0 6px; padding-left: 1.2em; }
.pl-bot { background: var(--accent-soft); border-radius: 4px 14px 14px 14px; padding: 10px 12px; max-width: 95%; }
.pl-me { justify-self: end; background: var(--accent); color: var(--accent-ink); border-radius: 14px 4px 14px 14px; padding: 8px 12px; max-width: 85%; }
.pl-src { font-size: .82rem; font-weight: 700; color: var(--muted); }
.pl-wait { color: var(--muted); font-style: italic; }
.pl-links { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.pl-links a { display: inline-flex; align-items: center; min-height: 36px; font-weight: 700; }
.pl-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.pl-chips button, .pl-say { min-height: 40px; padding: 6px 12px; border: 1.5px solid var(--accent); border-radius: 999px; background: var(--surface); color: var(--accent); font: inherit; font-size: .9rem; font-weight: 700; cursor: pointer; }
.pl-say { margin-top: 6px; }
.pl-form { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--line); }
.pl-form input { flex: 1; min-width: 0; min-height: 46px; padding: 8px 12px; border: 2px solid var(--muted); border-radius: 10px; font: inherit; background: var(--surface); color: var(--ink); }
.pl-send { min-height: 46px; padding: 0 14px; border: 0; border-radius: 10px; background: var(--accent); color: var(--accent-ink); font: inherit; font-weight: 700; cursor: pointer; }
@media (max-width: 560px) { .pl-lt { display: none; } .pl-launch { padding: 6px; } .pl-panel { bottom: 136px; max-height: calc(100vh - 160px); } }

/* Animations : entrée en douceur et apparition au défilement (désactivées si l'utilisateur réduit les animations) */
@media (prefers-reduced-motion: no-preference) {
  @keyframes rv-up { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
  @keyframes rv-logo { 0% { opacity: 0; transform: scale(.82) rotate(-10deg); } 60% { opacity: 1; transform: scale(1.03) rotate(1deg); } 100% { opacity: 1; transform: none; } }
  .hero img { animation: rv-logo 1.1s cubic-bezier(.2,.8,.2,1) .15s both; }
  .hero h1 .nowrap { display: inline-block; animation: rv-up .7s cubic-bezier(.2,.8,.2,1) .1s both; }
  .hero h1 span:not(.nowrap) { animation: rv-up .7s cubic-bezier(.2,.8,.2,1) .28s both; }
  .hero .wrap > div > p, .hero-ctas { animation: rv-up .7s cubic-bezier(.2,.8,.2,1) .45s both; }
  .hero-ctas { animation-delay: .6s; }
  .page-head .eyebrow, .page-head h1, .page-head h1 + p, .page-head .meta { animation: rv-up .65s cubic-bezier(.2,.8,.2,1) both; }
  .page-head h1 { animation-delay: .08s; }
  .page-head h1 + p, .page-head .meta { animation-delay: .18s; }
  .rv { opacity: 0; transform: translateY(26px); transition: opacity .7s cubic-bezier(.2,.8,.2,1), transform .7s cubic-bezier(.2,.8,.2,1); transition-delay: var(--rv-d, 0s); }
  .rv.rv-in { opacity: 1; transform: none; }
  .bud-barres li.rv .bud-barre::before { transform: scaleX(0); transform-origin: left center; transition: transform 1s cubic-bezier(.2,.8,.2,1) calc(var(--rv-d, 0s) + .25s); }
  .bud-barres li.rv-in .bud-barre::before { transform: scaleX(1); }
  .card { transition: opacity .7s cubic-bezier(.2,.8,.2,1), transform .5s cubic-bezier(.2,.8,.2,1), box-shadow .25s ease, border-color .25s ease; transition-delay: var(--rv-d, 0s); }
  .card:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgb(0 0 0 / .12); }
}
@media (prefers-reduced-motion: no-preference) {
  @keyframes pl-in { from { opacity: 0; transform: translateY(30px) scale(.9); } to { opacity: 1; transform: none; } }
  @keyframes pl-ring { 0% { opacity: .85; transform: scale(.96); } 100% { opacity: 0; transform: scale(1.3); } }
  .pl-launch { animation: pl-in .6s cubic-bezier(.2,.8,.2,1) 1.2s both; }
  .pl-launch::after { content: ""; position: absolute; inset: -5px; border-radius: 999px; border: 3px solid var(--ochre); opacity: 0; pointer-events: none; animation: pl-ring 1.6s ease-out 2.2s 3; }
  .pl-launch:hover .pl-av { transform: scale(1.08); }
  .pl-av { transition: transform .25s ease; }
  .pl-panel:not([hidden]) { animation: rv-up .35s cubic-bezier(.2,.8,.2,1) both; }
}
/* Articles épinglés */
.card .pin-badge{display:inline-block;margin:0 0 .4rem;padding:.1em .6em;border:1px solid currentColor;border-radius:999px;font-size:.78rem;font-weight:700;letter-spacing:.04em;text-transform:uppercase}

/* Lettre du samedi : formulaire Brevo et bandeau d'invitation */
.lettre-form .sib-form { padding: 0; background: none; font-family: var(--body); text-align: left; }
.lettre-form #sib-container { max-width: none; background: none; border: 0; padding: 0; text-align: left; }
.lettre-form .sib-form-block, .lettre-form .form__entry { padding: 0; margin: 0 0 1rem; }
.lettre-form .entry__label { display: block; font-weight: 700; margin: 0 0 .35rem; font-family: var(--body); font-size: 1rem; color: var(--ink); }
.lettre-form input.input { width: 100%; max-width: 28rem; font: inherit; padding: .65rem .75rem; border: 1px solid var(--muted); border-radius: var(--radius); background: var(--surface); color: var(--ink); }
.lettre-form .entry__specification { color: var(--muted); font-size: .92rem; margin: .3rem 0 0; }
.lettre-form .entry__error { color: #9b1c1c; font-size: .95rem; }
.lettre-optin { display: flex; gap: .6rem; align-items: flex-start; cursor: pointer; font-family: var(--body); color: var(--ink); }
.lettre-form .lettre-optin .input_replaced { position: static !important; opacity: 1 !important; clip: auto !important; appearance: auto; -webkit-appearance: checkbox; width: 1.25rem; height: 1.25rem; margin: .15rem 0 0; flex: none; }
.lettre-form .lettre-optin .checkbox { display: none !important; }
.lettre-form .sib-form-block__button { font: inherit; cursor: pointer; }
.lettre-form .input--hidden { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.lettre-msg { display: none; padding: .8rem 1rem; border-radius: var(--radius); margin: 0 0 1rem; border: 1px solid; font-family: var(--body); font-size: 1rem; max-width: none; }
.lettre-msg--ok { background: #e7faf0; color: #085229; border-color: #13ce66; }
.lettre-msg--err { background: #ffeded; color: #661d1d; border-color: #ff4949; }
.lettre-cta { background: var(--accent-soft); border-top: 1px solid var(--line); padding: 1.75rem 0; margin-top: 2.5rem; }
.lettre-cta .wrap { display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; justify-content: space-between; }
.lettre-cta h2 { margin: 0 0 .3rem; font-family: var(--display); font-size: 1.35rem; color: var(--ink); }
.lettre-cta p { margin: 0; max-width: 52ch; color: var(--ink); }