/* ==========================================================================
   Les Lumières d'Ukraine — feuille de style unique, sans dépendance externe
   (ni framework, ni police distante, ni CDN : rien ne part chez un tiers).
   Idée directrice : la « lumière » du logo. Le disque jaune est LE seul accent fort ;
   le reste reste plat, sobre et lisible.
   ========================================================================== */

:root {
  --night: #1b1f3b;
  --night-2: #2a2f57;
  --lamp: #ffd200;
  --lamp-deep: #e6bc00;
  --sky: #0a6cc4;
  --sky-dark: #085499;
  --ink: #1d2030;
  --muted: #565c72;
  --line: #dadde6;
  --paper: #f7f8fa;
  --white: #fff;
  --danger: #b3261e;
  --ok: #1b7a3e;

  --font-ui: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --font-read: Georgia, "Iowan Old Style", "Palatino Linotype", "Noto Serif", serif;
  --radius: 6px;
  --maxw: 72rem;
  --read: 40rem;
  --header-h: 4.25rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 1rem); }
body {
  margin: 0;
  font: 1.0625rem/1.6 var(--font-ui);
  color: var(--ink);
  background: var(--paper);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1 0 auto; }
img, svg, video { max-width: 100%; height: auto; }
a { color: var(--sky); text-underline-offset: 0.18em; }
a:hover { color: var(--sky-dark); }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; }
.on-dark :focus-visible, .site-footer :focus-visible, .hero :focus-visible, .drawer-head :focus-visible { outline-color: var(--lamp); }

h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 0.6em; color: var(--night); letter-spacing: -0.015em; }
h1 { font-size: clamp(2rem, 1.2rem + 3.4vw, 3.25rem); font-weight: 800; letter-spacing: -0.025em; line-height: 1.08; }
h2 { font-size: clamp(1.5rem, 1.15rem + 1.4vw, 2.05rem); font-weight: 750; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 38rem; }
.muted { color: var(--muted); }
.small { font-size: 0.9rem; }
.center { text-align: center; }

.container { width: min(100% - 2.5rem, var(--maxw)); margin-inline: auto; }
.narrow { width: min(100% - 2.5rem, var(--read)); margin-inline: auto; }
.section { padding-block: clamp(2.25rem, 5vw, 4rem); }
.section-tight { padding-block: clamp(1.5rem, 3vw, 2.5rem); }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.5rem 1.5rem; margin-bottom: 1.25rem; }
.section-head h2 { margin: 0; }
.stack > * + * { margin-top: 1rem; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.skip-link { position: absolute; left: 0.75rem; top: -4rem; z-index: 200; background: var(--lamp); color: var(--night); padding: 0.6rem 1rem; border-radius: var(--radius); font-weight: 700; }
.skip-link:focus { top: 0.75rem; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 2.75rem; padding: 0.55rem 1.15rem;
  font: inherit; font-weight: 700; line-height: 1.2; text-decoration: none; text-align: center;
  border: 2px solid transparent; border-radius: var(--radius); cursor: pointer;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}
.btn-lamp { background: var(--lamp); color: var(--night); }
.btn-lamp:hover { background: var(--lamp-deep); color: var(--night); }
.btn-dark { background: var(--night); color: var(--white); }
.btn-dark:hover { background: var(--night-2); color: var(--white); }
.btn-line { border-color: currentColor; color: var(--night); background: transparent; }
.btn-line:hover { background: var(--night); border-color: var(--night); color: var(--white); }
.on-dark .btn-line, .hero .btn-line { color: var(--white); }
.on-dark .btn-line:hover, .hero .btn-line:hover { background: var(--white); border-color: var(--white); color: var(--night); }
.btn-danger { background: var(--danger); color: var(--white); }
.btn-danger:hover { background: #8f1e18; color: var(--white); }
.btn-small { min-height: 2.25rem; padding: 0.3rem 0.8rem; font-size: 0.92rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.link-button { background: none; border: 0; padding: 0; font: inherit; color: var(--sky); text-decoration: underline; cursor: pointer; }

/* ---------- En-tête ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--white); border-bottom: 3px solid var(--lamp); }
.header-row { display: flex; align-items: center; gap: 1rem; min-height: var(--header-h); }
.brand { display: flex; align-items: center; flex: 0 0 auto; }
.brand img { display: block; height: 2.75rem; width: auto; }
.nav-toggle {
  margin-left: auto; display: inline-flex; align-items: center; gap: 0.5rem;
  min-height: 2.75rem; min-width: 2.75rem; padding: 0 0.6rem;
  background: transparent; border: 2px solid var(--night); border-radius: var(--radius);
  color: var(--night); font: inherit; font-weight: 700; cursor: pointer;
}
.burger { display: grid; gap: 4px; width: 1.25rem; }
.burger span { display: block; height: 2px; background: currentColor; border-radius: 1px; }

.site-nav {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 130;
  width: min(86vw, 22.5rem); background: var(--white);
  transform: translateX(100%); visibility: hidden;
  transition: transform 0.25s ease, visibility 0s linear 0.25s;
  display: flex; flex-direction: column; overflow-y: auto; overscroll-behavior: contain;
  box-shadow: -12px 0 32px rgba(27, 31, 59, 0.25);
}
.site-nav.is-open { transform: none; visibility: visible; transition: transform 0.25s ease; }
.scrim { position: fixed; inset: 0; z-index: 120; background: rgba(27, 31, 59, 0.55); }
.scrim[hidden] { display: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 0.9rem 1.25rem; background: var(--night); color: var(--white); font-weight: 700; }
.drawer-close { background: transparent; border: 2px solid var(--white); color: var(--white); border-radius: var(--radius); min-width: 2.5rem; min-height: 2.5rem; font-size: 1.4rem; line-height: 1; cursor: pointer; }
.nav-links { list-style: none; margin: 0; padding: 0.5rem 0; }
.nav-links a { display: block; padding: 0.95rem 1.25rem; color: var(--night); font-weight: 650; font-size: 1.1rem; text-decoration: none; border-bottom: 1px solid var(--line); }
.nav-links a[aria-current="page"] { box-shadow: inset 5px 0 0 var(--lamp); background: var(--paper); }
.nav-actions { padding: 1.25rem; display: grid; gap: 1rem; margin-top: auto; }
.lang { display: flex; gap: 0.4rem; }
.lang a { flex: 1; text-align: center; padding: 0.45rem 0.6rem; border: 2px solid var(--line); border-radius: var(--radius); color: var(--night); font-weight: 700; text-decoration: none; }
.lang a[aria-current="true"] { background: var(--night); border-color: var(--night); color: var(--white); }
.account-trigger { display: none; }
.account-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.25rem; }
.account-list a, .account-list button { display: block; width: 100%; text-align: left; padding: 0.55rem 0; color: var(--night); font: inherit; font-weight: 600; text-decoration: none; background: none; border: 0; cursor: pointer; }
.account-name { font-size: 0.85rem; color: var(--muted); margin: 0 0 0.25rem; }
.login-link { font-weight: 700; color: var(--night); }

@media (min-width: 62rem) {
  .nav-toggle, .drawer-head, .scrim { display: none !important; }
  .site-nav {
    position: static; transform: none; visibility: visible; width: auto; flex: 1;
    flex-direction: row; align-items: center; background: transparent; box-shadow: none;
    overflow: visible; transition: none;
  }
  .nav-links { display: flex; gap: 0.15rem; padding: 0; margin-left: 1rem; }
  .nav-links a { padding: 0.5rem 0.8rem; border: 0; border-radius: var(--radius); font-size: 1rem; }
  .nav-links a:hover { background: var(--paper); }
  .nav-links a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--lamp); background: transparent; border-radius: 0; }
  .nav-actions { display: flex; align-items: center; gap: 0.9rem; padding: 0; margin: 0 0 0 auto; }
  .lang a { flex: none; padding: 0.25rem 0.55rem; border-width: 1px; font-size: 0.9rem; }
  .account { position: relative; }
  .account-trigger { display: inline-flex; align-items: center; gap: 0.4rem; min-height: 2.5rem; padding: 0 0.6rem; background: transparent; border: 2px solid var(--line); border-radius: var(--radius); color: var(--night); font: inherit; font-weight: 650; cursor: pointer; }
  .account-trigger[aria-expanded="true"] { border-color: var(--night); }
  .account-panel { position: absolute; right: 0; top: calc(100% + 0.5rem); min-width: 15rem; padding: 0.9rem 1.1rem; background: var(--white); border: 1px solid var(--line); border-top: 3px solid var(--lamp); border-radius: var(--radius); box-shadow: 0 12px 28px rgba(27, 31, 59, 0.18); }
  .account-panel[hidden] { display: none; }
  .js .account-panel { display: block; }
  .js .account-panel[hidden] { display: none; }
}
@media (max-width: 61.99rem) {
  .account-panel[hidden] { display: block; }   /* dans le tiroir mobile : toujours déplié */
}
.no-js .site-nav { position: static; transform: none; visibility: visible; width: auto; box-shadow: none; }
.no-js .nav-toggle, .no-js .drawer-head { display: none; }
.no-js .account-panel[hidden] { display: block; }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--night); color: #d6d9ea; margin-top: 4rem; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--lamp); }
.footer-grid { display: grid; gap: 2rem; padding-block: 3rem 2rem; grid-template-columns: 1fr; }
@media (min-width: 40rem) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 62rem) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.3fr; } }
.footer-brand img { height: 3rem; width: auto; display: block; margin-bottom: 1rem; }
.footer-title { font-size: 1rem; font-weight: 700; color: var(--white); margin: 0 0 0.75rem; }
.footer-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.45rem; }
.footer-list a { text-decoration: none; }
.footer-list a:hover { text-decoration: underline; }
.footer-address { font-style: normal; display: grid; gap: 0.35rem; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.15); padding-block: 1.1rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 2rem; font-size: 0.88rem; color: #aab0cc; }

/* ---------- Accueil : le disque « lumière » ---------- */
.hero { position: relative; overflow: hidden; background: var(--night); color: #e8eaf6; }
.hero h1 { color: var(--white); max-width: 15ch; }
.hero-grid { display: grid; gap: 2rem; align-items: center; padding-block: clamp(2.5rem, 6vw, 5rem); }
.hero-copy .lead { color: #c9cde6; }
@media (min-width: 52rem) { .hero-grid { grid-template-columns: 1.15fr 0.85fr; gap: 3rem; } }
.lamp {
  position: relative; display: grid; place-content: center; text-align: center; gap: 0.15rem;
  width: min(100%, 22rem); aspect-ratio: 1; margin-inline: auto; padding: 2.25rem;
  background: var(--lamp); color: var(--night); border-radius: 50%; text-decoration: none;
  box-shadow: 0 0 0 0.9rem rgba(255, 210, 0, 0.16), 0 0 0 1.9rem rgba(255, 210, 0, 0.07);
}
a.lamp:hover { color: var(--night); background: #ffdc33; }
.lamp-day { font-size: clamp(3.6rem, 12vw, 5.5rem); font-weight: 850; line-height: 0.95; letter-spacing: -0.04em; }
.lamp-month { font-size: 1.15rem; font-weight: 750; }
.lamp-title { font-size: 1.02rem; font-weight: 650; line-height: 1.25; margin-top: 0.5rem; }
.lamp-place { font-size: 0.9rem; opacity: 0.85; }
.lamp-empty .lamp-title { font-size: 1.25rem; }

/* ---------- Listes d'événements ---------- */
.event-list { list-style: none; margin: 0; padding: 0; }
.event-row { display: grid; grid-template-columns: 4.5rem 1fr; gap: 1rem 1.25rem; padding: 1.1rem 0; border-top: 1px solid var(--line); align-items: start; }
.event-row:last-child { border-bottom: 1px solid var(--line); }
.date-chip { display: grid; place-items: center; text-align: center; padding: 0.35rem 0; border-left: 4px solid var(--lamp); line-height: 1.05; }
.date-chip b { display: block; font-size: 1.9rem; font-weight: 800; color: var(--night); }
.date-chip span { font-size: 0.82rem; font-weight: 650; color: var(--muted); }
.event-row h3 { margin: 0 0 0.2rem; }
.event-row h3 a { color: var(--night); text-decoration: none; }
.event-row h3 a:hover { text-decoration: underline; }
.event-meta { color: var(--muted); font-size: 0.95rem; margin: 0; }
.event-row.is-past { opacity: 0.8; }

/* ---------- Articles ---------- */
.post-grid { display: grid; gap: 2rem; grid-template-columns: 1fr; }
@media (min-width: 46rem) { .post-grid { grid-template-columns: repeat(3, 1fr); } }
.post-teaser img, .post-row img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); background: var(--line); }
.post-teaser h3 { margin: 0.8rem 0 0.35rem; }
.post-teaser h3 a, .post-row h2 a { color: var(--night); text-decoration: none; }
.post-teaser h3 a:hover, .post-row h2 a:hover { text-decoration: underline; }
.post-meta { color: var(--muted); font-size: 0.9rem; margin: 0 0 0.4rem; }
.post-list { display: grid; }
.post-row { display: grid; gap: 1rem 1.5rem; padding-block: 1.5rem; border-top: 1px solid var(--line); }
@media (min-width: 40rem) { .post-row.has-cover { grid-template-columns: 14rem 1fr; } }
.post-row h2 { font-size: 1.45rem; margin-bottom: 0.3rem; }
.post-row p { margin-bottom: 0; }
.tag { display: inline-block; padding: 0.1rem 0.55rem; border-radius: 99px; background: var(--white); border: 1px solid var(--line); color: var(--night); font-size: 0.82rem; font-weight: 650; text-decoration: none; }
a.tag:hover { border-color: var(--night); }
.tag.is-active { background: var(--night); border-color: var(--night); color: var(--white); }
.tag-row { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.5rem; }

.article-head { padding-block: clamp(2rem, 5vw, 3.5rem) 1.5rem; }
.article-head h1 { max-width: 22ch; }
.article-cover { width: min(100% - 2.5rem, 56rem); margin: 0 auto 2rem; }
.article-cover img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius); }
.prose { font-family: var(--font-read); font-size: 1.16rem; line-height: 1.75; }
.prose h2, .prose h3, .prose h4 { font-family: var(--font-ui); margin: 1.8em 0 0.5em; }
.prose p, .prose ul, .prose ol { margin: 0 0 1.2em; }
.prose a { color: var(--sky); }
.prose blockquote { margin: 1.5em 0; padding: 0.25em 0 0.25em 1.25rem; border-left: 4px solid var(--lamp); color: var(--muted); }
.prose figure { margin: 2em 0; }
.prose figure img { display: block; width: 100%; height: auto; border-radius: var(--radius); }
.prose figcaption { font-family: var(--font-ui); font-size: 0.9rem; color: var(--muted); margin-top: 0.5rem; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.5em 0; }
.preview-banner { background: var(--lamp); color: var(--night); padding: 0.6rem 0; font-weight: 700; text-align: center; }
.breadcrumb { font-size: 0.9rem; color: var(--muted); padding-top: 1.25rem; }
.breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.25rem 0.5rem; }
.breadcrumb li + li::before { content: "/"; margin-right: 0.5rem; color: var(--line); }
.breadcrumb a { color: var(--muted); }

/* ---------- Sondages ---------- */
.poll { margin: 2.25rem 0; padding: 1.4rem; background: var(--white); border: 1px solid var(--line); border-left: 5px solid var(--lamp); border-radius: var(--radius); font-family: var(--font-ui); }
.poll h3 { margin-top: 0; font-size: 1.2rem; }
.poll-options { border: 0; padding: 0; margin: 0 0 1rem; display: grid; gap: 0.5rem; }
.poll-option { display: flex; align-items: center; gap: 0.7rem; padding: 0.6rem 0.8rem; border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer; }
.poll-option:hover { border-color: var(--night); }
.poll-option input { width: 1.15rem; height: 1.15rem; accent-color: var(--night); }
.poll-result { display: grid; gap: 0.2rem; margin-bottom: 0.8rem; }
.poll-result-line { display: flex; justify-content: space-between; gap: 1rem; font-weight: 600; }
.poll-result.is-mine .poll-result-line::after { content: "✓"; color: var(--ok); }
progress.bar { width: 100%; height: 0.65rem; border: 0; border-radius: 99px; overflow: hidden; background: var(--line); -webkit-appearance: none; appearance: none; }
progress.bar::-webkit-progress-bar { background: var(--line); }
progress.bar::-webkit-progress-value { background: var(--sky); }
progress.bar::-moz-progress-bar { background: var(--sky); }
.poll-note { font-size: 0.9rem; color: var(--muted); margin: 0.5rem 0 0; }

/* ---------- Formulaires ---------- */
.panel { background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--lamp); border-radius: var(--radius); padding: clamp(1.25rem, 3vw, 2rem); }
.auth { width: min(100% - 2.5rem, 30rem); margin: clamp(2rem, 6vw, 4rem) auto; }
.auth-wide { width: min(100% - 2.5rem, 40rem); }
.auth h1 { font-size: 1.9rem; margin-bottom: 0.4rem; }
.auth .lead { font-size: 1.02rem; }
.field { margin-bottom: 1.1rem; }
.field label, .field legend { display: block; font-weight: 650; margin-bottom: 0.3rem; }
.field input[type="text"], .field input[type="email"], .field input[type="password"], .field input[type="tel"], .field input[type="url"],
.field input[type="date"], .field input[type="number"], .field input[type="datetime-local"], .field input[type="file"], .field input[type="search"],
.field select, .field textarea, .input {
  width: 100%; min-height: 2.9rem; padding: 0.55rem 0.75rem; font: inherit; color: var(--ink);
  background: var(--white); border: 1.5px solid #b9bed0; border-radius: var(--radius);
}
.field textarea { min-height: 7rem; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus, .input:focus { border-color: var(--sky); outline: 3px solid rgba(10, 108, 196, 0.25); outline-offset: 0; }
.field-check { display: flex; align-items: flex-start; gap: 0.6rem; }
.field-check input { margin-top: 0.3rem; width: 1.1rem; height: 1.1rem; accent-color: var(--night); }
.field-check label { font-weight: 500; margin: 0; }
.field-help { color: var(--muted); font-size: 0.9rem; margin: 0.3rem 0 0; }
.field-error, .form-errors { color: var(--danger); font-size: 0.93rem; margin: 0.3rem 0 0; font-weight: 600; list-style: none; padding: 0; }
.form-errors { background: #fdeceb; border-left: 4px solid var(--danger); padding: 0.6rem 0.9rem; margin: 0 0 1rem; }
.field.has-error input, .field.has-error textarea, .field.has-error select { border-color: var(--danger); }
.code-input { font-size: 2rem !important; letter-spacing: 0.4em; text-align: center; max-width: 13rem; font-variant-numeric: tabular-nums; }
.captcha { margin: 0.5rem 0 1.25rem; min-height: 4rem; }
.divider { display: flex; align-items: center; gap: 1rem; color: var(--muted); margin: 1.4rem 0; font-size: 0.92rem; }
.divider::before, .divider::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
.btn-google { width: 100%; background: var(--white); border-color: #b9bed0; color: var(--ink); }
.btn-google:hover { border-color: var(--night); background: var(--paper); color: var(--ink); }
.btn-block { width: 100%; }
.auth-links { margin-top: 1.25rem; display: grid; gap: 0.4rem; font-size: 0.95rem; }

.flashes { margin-top: 1.25rem; display: grid; gap: 0.6rem; }
.flash { padding: 0.75rem 1rem; background: var(--white); border: 1px solid var(--line); border-left: 5px solid var(--sky); border-radius: var(--radius); font-weight: 550; }
.flash-success { border-left-color: var(--ok); }
.flash-error { border-left-color: var(--danger); }
.flash-warning { border-left-color: var(--lamp-deep); }

/* ---------- Pages d'information ---------- */
.page-head { background: var(--night); color: #d6d9ea; padding-block: clamp(2rem, 5vw, 3.25rem); }
.page-head h1 { color: var(--white); margin: 0 0 0.4rem; }
.page-head p { margin: 0; max-width: 40rem; }
.cols { display: grid; gap: 2rem 3rem; }
@media (min-width: 52rem) { .cols-2 { grid-template-columns: 1fr 1fr; } .cols-sidebar { grid-template-columns: 1fr 20rem; } }
.facts { display: grid; gap: 1.4rem; }
.fact h3 { margin-bottom: 0.2rem; }
.fact p { margin: 0; }
.activity-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.activity-list li { padding: 1rem 0; border-top: 1px solid var(--line); display: grid; gap: 0.15rem; }
.activity-list li:last-child { border-bottom: 1px solid var(--line); }
.activity-list b { color: var(--night); }
.cta-band { background: var(--lamp); color: var(--night); }
.cta-band h2 { margin-bottom: 0.4rem; }
.cta-band .btn-dark:hover { background: var(--night-2); }
.cta-grid { display: grid; gap: 1.25rem; align-items: center; }
@media (min-width: 46rem) { .cta-grid { grid-template-columns: 1fr auto; } }
.map-frame { width: 100%; height: 22rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--line); display: block; }
.widget-frame { width: 100%; min-height: 46rem; border: 0; background: var(--white); border-radius: var(--radius); }
.dl { display: grid; grid-template-columns: max-content 1fr; gap: 0.5rem 1.5rem; margin: 0; }
.dl dt { color: var(--muted); font-weight: 600; }
.dl dd { margin: 0; overflow-wrap: anywhere; }
.badge { display: inline-block; padding: 0.1rem 0.55rem; border-radius: 99px; font-size: 0.8rem; font-weight: 700; background: var(--paper); border: 1px solid var(--line); color: var(--night); }
.badge-ok { background: #e6f4ea; border-color: #b5dfc2; color: #11602d; }
.badge-warn { background: #fff4cc; border-color: #f1d35a; color: #5d4a00; }
.badge-bad { background: #fdeceb; border-color: #f0b4af; color: #8f1e18; }
.empty { padding: 2.5rem 1rem; text-align: center; color: var(--muted); border: 1px dashed #b9bed0; border-radius: var(--radius); background: var(--white); }

.pagination { display: flex; flex-wrap: wrap; gap: 0.5rem; justify-content: center; align-items: center; margin-top: 2rem; }
.pagination a, .pagination span { min-width: 2.5rem; padding: 0.45rem 0.75rem; text-align: center; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); color: var(--night); text-decoration: none; font-weight: 650; }
.pagination .is-current { background: var(--night); border-color: var(--night); color: var(--white); }

/* ---------- Back-office (rédaction + admin) ---------- */
.admin-wrap { display: grid; gap: 1.5rem 2.5rem; padding-block: 2rem; }
@media (min-width: 62rem) { .admin-wrap { grid-template-columns: 14.5rem 1fr; align-items: start; } }
.admin-nav { display: flex; flex-wrap: wrap; gap: 0.4rem; }
@media (min-width: 62rem) { .admin-nav { flex-direction: column; flex-wrap: nowrap; gap: 0; position: sticky; top: calc(var(--header-h) + 1.5rem); } }
.admin-nav a { padding: 0.6rem 0.85rem; border-radius: var(--radius); color: var(--night); text-decoration: none; font-weight: 650; border: 1px solid var(--line); background: var(--white); }
@media (min-width: 62rem) { .admin-nav a { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; } }
.admin-nav a[aria-current="page"] { background: var(--night); border-color: var(--night); color: var(--white); }
.admin-nav small { display: block; font-weight: 500; color: inherit; opacity: 0.75; }
.admin-title { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem; margin-bottom: 1.25rem; }
.admin-title h1 { font-size: 1.9rem; margin: 0; }
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr)); gap: 1rem; margin-bottom: 2rem; }
.stat { padding: 0.9rem 0 0.9rem 1rem; border-left: 4px solid var(--lamp); }
.stat b { display: block; font-size: 2rem; font-weight: 800; line-height: 1; color: var(--night); }
.stat span { color: var(--muted); font-size: 0.9rem; }
.table-wrap { overflow-x: auto; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.table { width: 100%; border-collapse: collapse; min-width: 38rem; }
.table th, .table td { padding: 0.7rem 0.9rem; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table th { font-size: 0.85rem; color: var(--muted); font-weight: 700; background: var(--paper); white-space: nowrap; }
.table tr:last-child td { border-bottom: 0; }
.table td.actions { white-space: nowrap; text-align: right; }
.filters { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: end; margin-bottom: 1.25rem; }
.filters .field { margin: 0; flex: 1 1 11rem; }
.inline-form { display: inline; }
.box { padding: 1.25rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 1.5rem; }
.box h2 { font-size: 1.2rem; margin-bottom: 0.75rem; }
.box-danger { border-left: 5px solid var(--danger); }
.secret { display: block; font: 700 1.5rem/1.3 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: 0.06em; padding: 1rem; background: var(--night); color: var(--lamp); border-radius: var(--radius); user-select: all; overflow-wrap: anywhere; }
.check-list { display: grid; gap: 0.4rem; margin-bottom: 1rem; }

.media-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(10.5rem, 1fr)); }
.media-item { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 0.5rem; display: grid; gap: 0.4rem; font-size: 0.88rem; }
.media-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px; }

/* éditeur d'articles à blocs */
.editor-bar { position: sticky; bottom: 0; z-index: 40; display: flex; flex-wrap: wrap; gap: 0.6rem; padding: 0.8rem 0; background: var(--paper); border-top: 1px solid var(--line); margin-top: 1.5rem; }
.block { background: var(--white); border: 1px solid var(--line); border-left: 5px solid var(--sky); border-radius: var(--radius); padding: 1rem; margin-bottom: 1rem; }
.block[data-type="image"] { border-left-color: var(--lamp-deep); }
.block[data-type="poll"] { border-left-color: var(--ok); }
.block-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin-bottom: 0.75rem; }
.block-bar .block-type { font-weight: 750; color: var(--night); margin-right: auto; }
.block-bar button { min-height: 2.25rem; min-width: 2.25rem; padding: 0 0.6rem; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer; font: inherit; }
.block-bar button:hover { border-color: var(--night); }
.block-part[hidden] { display: none; }
.add-bar { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 1rem 0 2rem; }
.upload-box { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: end; padding: 1rem; background: var(--white); border: 1px dashed #b9bed0; border-radius: var(--radius); margin-bottom: 1.5rem; }
.upload-box .field { margin: 0; flex: 1 1 14rem; }
.upload-status { font-size: 0.92rem; font-weight: 600; flex-basis: 100%; margin: 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
@media print {
  .site-header, .site-footer, .nav-toggle, .poll form, .cta-band, .editor-bar { display: none !important; }
  body { background: #fff; }
}

/* ---------- compléments ---------- */
body.nav-open { overflow: hidden; }
.no-js .account-panel { position: static; box-shadow: none; border: 0; padding: 0; }
.js-only { display: none; }
.js .js-only { display: block; }
.preview-banner a { color: var(--night); }
.text-right { text-align: right; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-2 { margin-top: 2rem; }
.prose-ui h2 { margin-top: 2.2rem; }
.prose-ui h2:first-child { margin-top: 0; }
.prose-ui ul:not(.activity-list), .prose-ui ol:not(.activity-list) { padding-left: 1.3rem; }
.prose-ui .activity-list { margin-bottom: 1rem; }
.prose-ui ol.activity-list { counter-reset: n; }
.prose-ui ol.activity-list li { counter-increment: n; }
.prose-ui ol.activity-list b::before { content: counter(n) ". "; color: var(--sky); }
address.addr { font-style: normal; }
.center p.lead { margin-inline: auto; }

@media (min-width: 52rem) { .facts { grid-template-columns: repeat(3, 1fr); } }
