/* =====================================================================
   Lois guinéennes — feuille de style unique, sans police externe
   (pensée pour le mobile et les connexions faibles)
   ===================================================================== */
:root {
  --paper: #f6f3ec;
  --surface: #ffffff;
  --surface-2: #fbf9f4;
  --ink: #1c1917;
  --ink-2: #44403c;
  --muted: #6f675c;
  --line: #e4ddcf;
  --line-strong: #cfc6b4;
  --forest: #14532d;
  --forest-2: #1d6b3d;
  --forest-soft: #e5efe7;
  --forest-ink: #0f3d21;
  --red: #b4111f;
  --red-soft: #fbe9ea;
  --gold: #d9a300;
  --gold-soft: #fbf3d6;
  --blue-soft: #e8eef8;
  --blue: #1e40af;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow: 0 1px 2px rgba(28, 25, 23, .06), 0 4px 16px rgba(28, 25, 23, .05);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", Ubuntu, Arial, sans-serif;
  --reader-size: 1.0625rem;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #151412;
    --surface: #1e1c19;
    --surface-2: #23211d;
    --ink: #f2efe8;
    --ink-2: #d6d0c4;
    --muted: #a69e90;
    --line: #34312b;
    --line-strong: #4a463e;
    --forest: #4ade80;
    --forest-2: #86efac;
    --forest-soft: #16301f;
    --forest-ink: #bbf7d0;
    --red: #f87171;
    --red-soft: #3a1618;
    --gold: #facc15;
    --gold-soft: #33290b;
    --blue-soft: #172036;
    --blue: #93b4ff;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font: 400 1rem/1.6 var(--sans);
  color: var(--ink);
  background: var(--paper);
  padding-bottom: 72px; /* barre mobile */
}
@media (min-width: 900px) { body { padding-bottom: 0; } }
img, svg, video { max-width: 100%; }
a { color: var(--forest); text-underline-offset: 2px; }
a:hover { color: var(--forest-2); }
h1, h2, h3, h4 { font-family: var(--serif); line-height: 1.2; margin: 0 0 .5em; color: var(--ink); font-weight: 600; }
h1 { font-size: clamp(1.7rem, 4.5vw, 2.5rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.3rem, 3vw, 1.65rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 1.5rem 0; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--forest); color: #fff; padding: .5rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.center { text-align: center; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: .5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; } .mt-4 { margin-top: 2.5rem; }
.mb-0 { margin-bottom: 0; } .mb-2 { margin-bottom: 1rem; } .mb-3 { margin-bottom: 1.5rem; }
[hidden] { display: none !important; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.container--narrow { max-width: 760px; }
.container--mid { max-width: 940px; }
.section { padding: 2rem 0; }
@media (min-width: 900px) { .section { padding: 3rem 0; } }

.ico { width: 1.25em; height: 1.25em; flex: none; vertical-align: -.25em; }
.ico--sm { width: 1em; height: 1em; vertical-align: -.15em; }
.ico--lg { width: 1.75em; height: 1.75em; }

/* ---------------------------------------------------------------- Bandeau urgences */
.emergency { background: #1c1917; color: #f5f0e6; font-size: .8125rem; }
.emergency__in { display: flex; align-items: center; gap: .25rem 1rem; flex-wrap: wrap; min-height: 36px; padding-top: 4px; padding-bottom: 4px; }
.emergency a { color: #f5f0e6; text-decoration: none; white-space: nowrap; }
.emergency a strong { color: #fcd116; font-variant-numeric: tabular-nums; }
.emergency a:hover { text-decoration: underline; }
.emergency__label { font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: .72rem; color: #fca5a5; }
.emergency__report { margin-left: auto; font-weight: 600; }
@media (max-width: 600px) { .emergency__report { display: none; } }

/* ---------------------------------------------------------------- En-tête */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30; }
.site-header__in { display: flex; align-items: center; gap: 1rem; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; color: var(--ink); flex: none; }
.brand__mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: var(--forest); color: #fff; position: relative; overflow: hidden; }
.brand__mark::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: linear-gradient(90deg, #ce1126 33.3%, #fcd116 33.3% 66.6%, #009460 66.6%); }
.brand__name { font-family: var(--serif); font-size: 1.2rem; font-weight: 700; letter-spacing: -.01em; }
.brand__name em { font-style: italic; font-weight: 500; color: var(--forest); }
.nav { display: none; gap: .25rem; }
.nav a { white-space: nowrap; color: var(--ink-2); text-decoration: none; padding: .5rem .7rem; border-radius: 8px; font-weight: 500; font-size: .95rem; }
.nav a:hover { background: var(--surface-2); color: var(--ink); }
.nav a[aria-current] { color: var(--forest); background: var(--forest-soft); }
@media (min-width: 1040px) { .nav { display: flex; } }
.header-actions { display: flex; align-items: center; gap: .5rem; margin-left: auto; }
.header-search { display: none; position: relative; }
.header-search input { width: 260px; padding: .55rem 2.4rem .55rem .85rem; border: 1px solid var(--line); border-radius: 999px; background: var(--surface-2); font: inherit; font-size: .9rem; color: var(--ink); }
.header-search button { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); border: 0; background: transparent; color: var(--muted); padding: .4rem; cursor: pointer; }
@media (min-width: 760px) { .header-search { display: block; } }
@media (max-width: 1180px) and (min-width: 760px) { .header-search input { width: 200px; } }
.hide-sm { display: none !important; }
@media (min-width: 640px) { .hide-sm { display: inline-flex !important; } }

.bell { position: relative; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: var(--ink-2); }
.bell:hover { background: var(--surface-2); color: var(--ink); }
.bell__count { position: absolute; top: 3px; right: 1px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--red); color: #fff; font-size: .7rem; font-weight: 700; display: grid; place-items: center; }
.menu { position: relative; }
.menu summary { list-style: none; cursor: pointer; border-radius: 50%; }
.menu summary::-webkit-details-marker { display: none; }
.menu__panel { position: absolute; right: 0; top: calc(100% + 8px); width: 250px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 12px 32px rgba(0,0,0,.12); padding: .4rem; z-index: 50; }
.menu__panel a, .menu__panel button { display: flex; gap: .6rem; align-items: center; width: 100%; padding: .6rem .7rem; border-radius: 8px; color: var(--ink); text-decoration: none; background: none; border: 0; font: inherit; font-size: .925rem; cursor: pointer; text-align: left; }
.menu__panel a:hover, .menu__panel button:hover { background: var(--surface-2); }
.menu__who { padding: .5rem .7rem .7rem; border-bottom: 1px solid var(--line); margin: 0 0 .3rem; }
.menu__who span { display: block; font-size: .8rem; color: var(--muted); }
.avatar { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--forest-soft); color: var(--forest-ink); font-weight: 700; font-size: .95rem; flex: none; overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar--sm { width: 36px; height: 36px; font-size: .8rem; }
.avatar--lg { width: 88px; height: 88px; font-size: 1.6rem; }

/* ---------------------------------------------------------------- Boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; padding: .7rem 1.1rem; border-radius: var(--radius); border: 1px solid transparent; font: inherit; font-weight: 600; font-size: .95rem; line-height: 1.2; text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s, color .15s; white-space: nowrap; }
.btn--sm { padding: .5rem .8rem; font-size: .875rem; }
.btn--lg { padding: .9rem 1.4rem; font-size: 1.05rem; }
.btn--block { width: 100%; }
.btn--primary { background: var(--forest); color: #fff; }
.btn--primary:hover { background: var(--forest-2); color: #fff; }
@media (prefers-color-scheme: dark) { .btn--primary, .btn--primary:hover { color: #0b1f12; } }
.btn--secondary { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.btn--secondary:hover { border-color: var(--ink-2); color: var(--ink); }
.btn--ghost { background: transparent; color: var(--ink-2); }
.btn--ghost:hover { background: var(--surface-2); color: var(--ink); }
.btn--alert { background: var(--red); color: #fff; }
.btn--alert:hover { background: #8f0d18; color: #fff; }
.btn--danger { background: transparent; color: var(--red); border-color: color-mix(in srgb, var(--red) 40%, transparent); }
.btn--danger:hover { background: var(--red-soft); color: var(--red); }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.btn-row { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.link-btn { background: none; border: 0; padding: 0; color: var(--forest); font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }

/* ---------------------------------------------------------------- Alertes */
.flashes { margin-top: 1rem; display: grid; gap: .5rem; }
.alert { padding: .8rem 1rem; border-radius: var(--radius); border: 1px solid; font-size: .95rem; }
.alert--success { background: var(--forest-soft); border-color: color-mix(in srgb, var(--forest) 30%, transparent); color: var(--forest-ink); }
.alert--error { background: var(--red-soft); border-color: color-mix(in srgb, var(--red) 30%, transparent); color: var(--red); }
.alert--info { background: var(--blue-soft); border-color: color-mix(in srgb, var(--blue) 25%, transparent); color: var(--blue); }
.alert--warn { background: var(--gold-soft); border-color: color-mix(in srgb, var(--gold) 45%, transparent); color: var(--ink); }
.alert--dev { background: #1c1917; color: #fcd116; border-color: #1c1917; font-family: ui-monospace, monospace; font-size: .85rem; }
.notice { display: flex; gap: .75rem; padding: 1rem; border-radius: var(--radius); background: var(--surface-2); border: 1px dashed var(--line-strong); font-size: .9rem; color: var(--ink-2); }
.notice .ico { color: var(--muted); margin-top: .15rem; }
.notice p:last-child { margin-bottom: 0; }

/* ---------------------------------------------------------------- Cartes, grilles */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.25rem; }
@media (min-width: 700px) { .card { padding: 1.5rem; } }
.card--flat { box-shadow: none; }
.card__title { font-size: 1.1rem; margin-bottom: .75rem; }
.card + .card { margin-top: 1rem; }
.grid { display: grid; gap: 1rem; }
@media (min-width: 640px) { .grid--2 { grid-template-columns: repeat(2, 1fr); } .grid--3 { grid-template-columns: repeat(2, 1fr); } .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } .grid--4 { grid-template-columns: repeat(4, 1fr); } }
.layout-side { display: grid; gap: 1.5rem; }
@media (min-width: 960px) { .layout-side { grid-template-columns: minmax(0, 1fr) 320px; align-items: start; } .layout-side--left { grid-template-columns: 260px minmax(0, 1fr); } }
.sticky { position: sticky; top: 84px; }

.badge { display: inline-flex; align-items: center; gap: .3rem; padding: .15rem .55rem; border-radius: 999px; font-size: .75rem; font-weight: 600; background: var(--surface-2); border: 1px solid var(--line); color: var(--ink-2); white-space: nowrap; }
.badge--green { background: var(--forest-soft); border-color: transparent; color: var(--forest-ink); }
.badge--red { background: var(--red-soft); border-color: transparent; color: var(--red); }
.badge--gold { background: var(--gold-soft); border-color: transparent; color: #7a5a00; }
@media (prefers-color-scheme: dark) { .badge--gold { color: var(--gold); } }
.badge--blue { background: var(--blue-soft); border-color: transparent; color: var(--blue); }
.verified { color: var(--forest); display: inline-flex; align-items: center; gap: .2rem; font-size: .8rem; font-weight: 700; }

/* ---------------------------------------------------------------- Accueil */
.hero { background: var(--forest); color: #f3f7f2; position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background:
  radial-gradient(circle at 85% 20%, rgba(252, 209, 22, .16), transparent 40%),
  repeating-linear-gradient(135deg, rgba(255,255,255,.035) 0 2px, transparent 2px 18px); }
.hero__in { position: relative; padding: 2.5rem 16px 2.75rem; }
@media (min-width: 900px) { .hero__in { padding: 4rem 16px 4.25rem; display: grid; grid-template-columns: 1.25fr .75fr; gap: 3rem; align-items: center; } }
.hero h1 { color: #fff; font-size: clamp(1.9rem, 5vw, 3rem); max-width: 18ch; }
.hero h1 em { color: #fcd116; font-style: italic; font-weight: 500; }
.hero__lead { font-size: 1.1rem; color: #d7e6d9; max-width: 52ch; }
.hero-search { display: flex; background: #fff; border-radius: 14px; padding: 6px; margin-top: 1.5rem; max-width: 620px; box-shadow: 0 10px 30px rgba(0,0,0,.18); }
.hero-search input { flex: 1; min-width: 0; border: 0; padding: .75rem .9rem; font: inherit; font-size: 1.05rem; color: #1c1917; background: transparent; }
.hero-search input:focus { outline: none; }
.hero-search .btn { border-radius: 10px; }
.hero__hints { margin-top: .75rem; font-size: .875rem; color: #bcd4c0; }
.hero__hints a { color: #fff; }
.hero-card { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); border-radius: var(--radius-lg); padding: 1.4rem; margin-top: 2rem; backdrop-filter: blur(2px); }
@media (min-width: 900px) { .hero-card { margin-top: 0; } }
.hero-card h2 { color: #fff; font-size: 1.25rem; }
.hero-card p { color: #d7e6d9; font-size: .95rem; }
.hero-card .btn--alert { width: 100%; }
.hero-card__links { display: flex; justify-content: space-between; margin-top: .9rem; font-size: .875rem; }
.hero-card__links a { color: #fff; }

.pillars { display: grid; gap: 1rem; margin-top: -1.5rem; position: relative; z-index: 2; }
@media (min-width: 760px) { .pillars { grid-template-columns: repeat(3, 1fr); } }
.pillar { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.25rem; display: flex; gap: .9rem; text-decoration: none; color: var(--ink); box-shadow: var(--shadow); }
.pillar:hover { border-color: var(--line-strong); color: var(--ink); }
.pillar__ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--forest-soft); color: var(--forest); flex: none; }
.pillar--alert .pillar__ico { background: var(--red-soft); color: var(--red); }
.pillar--gold .pillar__ico { background: var(--gold-soft); color: #8a6500; }
.pillar h3 { margin: 0 0 .2rem; font-size: 1.05rem; }
.pillar p { margin: 0; font-size: .9rem; color: var(--muted); }

.section-head { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.eyebrow { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--forest); margin: 0 0 .35rem; }

.catgrid { display: grid; gap: .6rem; grid-template-columns: 1fr; }
@media (min-width: 560px) { .catgrid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .catgrid { grid-template-columns: repeat(3, 1fr); } }
.cat { display: flex; align-items: center; gap: .85rem; padding: .9rem 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); }
.cat:hover { border-color: var(--forest); color: var(--ink); }
.cat__num { font-family: var(--serif); font-size: 1.05rem; font-weight: 700; color: var(--forest); min-width: 2ch; font-variant-numeric: tabular-nums; }
.cat__name { font-weight: 600; line-height: 1.3; }
.cat__count { margin-left: auto; font-size: .8rem; color: var(--muted); white-space: nowrap; }

/* ---------------------------------------------------------------- Liste des textes */
.text-list { display: grid; gap: .75rem; }
.text-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem; position: relative; }
.text-item:hover { border-color: var(--line-strong); }
.text-item__meta { display: flex; flex-wrap: wrap; gap: .35rem .75rem; align-items: center; font-size: .8rem; color: var(--muted); margin-bottom: .35rem; }
.text-item__title { font-family: var(--serif); font-size: 1.12rem; font-weight: 600; margin: 0 0 .35rem; line-height: 1.3; }
.text-item__title a { color: var(--ink); text-decoration: none; }
.text-item__title a::after { content: ""; position: absolute; inset: 0; }
.text-item__title a:hover { color: var(--forest); }
.text-item__summary { color: var(--ink-2); font-size: .925rem; margin: 0; }
.text-item__stats { display: flex; gap: 1rem; margin-top: .6rem; font-size: .8rem; color: var(--muted); }
.text-item__stats span { display: inline-flex; gap: .3rem; align-items: center; }

.filters { display: grid; gap: .9rem; }
.filters h2 { font-size: 1rem; font-family: var(--sans); font-weight: 700; margin: 0; }
.filter-links { display: grid; gap: .1rem; }
.filter-links a { display: flex; justify-content: space-between; padding: .4rem .6rem; border-radius: 8px; color: var(--ink-2); text-decoration: none; font-size: .9rem; }
.filter-links a:hover { background: var(--surface-2); }
.filter-links a[aria-current] { background: var(--forest-soft); color: var(--forest-ink); font-weight: 600; }
.toolbar { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.toolbar select { width: auto; }
.result-count { font-size: .9rem; color: var(--muted); }

.article-hits { display: grid; gap: .6rem; margin-bottom: 1.5rem; }
.article-hit { border-left: 3px solid var(--gold); background: var(--surface); padding: .8rem 1rem; border-radius: 0 var(--radius) var(--radius) 0; }
.article-hit strong { font-family: var(--serif); }

/* ---------------------------------------------------------------- Page d'un texte */
.doc-head { padding: 1.75rem 0 1.25rem; border-bottom: 1px solid var(--line); background: var(--surface); }
.crumbs { font-size: .825rem; color: var(--muted); margin-bottom: .75rem; display: flex; flex-wrap: wrap; gap: .35rem; }
.crumbs a { color: var(--muted); }
.doc-head h1 { max-width: 30ch; }
.doc-meta { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; font-size: .9rem; color: var(--ink-2); }
.doc-meta dt { color: var(--muted); font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; }
.doc-meta dd { margin: 0; font-weight: 600; }
.doc-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.25rem; }
.action { display: inline-flex; align-items: center; gap: .4rem; padding: .55rem .85rem; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); font: inherit; font-size: .9rem; font-weight: 500; cursor: pointer; text-decoration: none; }
.action:hover { border-color: var(--ink-2); color: var(--ink); }
.action[aria-pressed="true"] { background: var(--forest-soft); border-color: var(--forest); color: var(--forest-ink); }
.action--like[aria-pressed="true"] { background: var(--red-soft); border-color: var(--red); color: var(--red); }
.action__n { font-variant-numeric: tabular-nums; color: var(--muted); }
.action[aria-pressed="true"] .action__n { color: inherit; }

.retain { background: var(--gold-soft); border: 1px solid color-mix(in srgb, var(--gold) 35%, transparent); border-radius: var(--radius-lg); padding: 1.25rem 1.35rem; }
.retain h2 { font-size: 1.15rem; display: flex; align-items: center; gap: .5rem; }
.retain :last-child { margin-bottom: 0; }

.tabs { display: flex; gap: .25rem; border-bottom: 1px solid var(--line); margin: 1.75rem 0 1.25rem; overflow-x: auto; scrollbar-width: none; }
.tabs a, .tabs button { padding: .7rem 1rem; border: 0; background: none; font: inherit; font-weight: 600; color: var(--muted); text-decoration: none; border-bottom: 2px solid transparent; margin-bottom: -1px; cursor: pointer; white-space: nowrap; }
.tabs a[aria-current], .tabs button[aria-selected="true"] { color: var(--forest); border-color: var(--forest); }

.reader-tools { display: flex; align-items: center; gap: .5rem; margin-bottom: 1rem; font-size: .875rem; color: var(--muted); flex-wrap: wrap; }
.reader-tools button { border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); border-radius: 8px; padding: .3rem .6rem; font: inherit; cursor: pointer; min-width: 36px; }
.reader { font-family: var(--serif); font-size: var(--reader-size); line-height: 1.75; color: var(--ink); max-width: 70ch; }
.reader h2, .reader h3 { font-family: var(--serif); margin-top: 1.5em; }
.reader blockquote { margin: 1rem 0; padding: .5rem 1rem; border-left: 3px solid var(--line-strong); color: var(--ink-2); }
.reading-mode .site-header, .reading-mode .emergency, .reading-mode .site-footer, .reading-mode .doc-aside, .reading-mode .bottom-nav { display: none; }
.reading-mode .layout-side { grid-template-columns: 1fr; }
.reading-mode .reader { margin: 0 auto; }

.art { padding: 1.1rem 0; border-bottom: 1px solid var(--line); scroll-margin-top: 90px; }
.art:first-child { padding-top: 0; }
.art__num { font-family: var(--sans); font-weight: 700; font-size: .85rem; letter-spacing: .04em; text-transform: uppercase; color: var(--forest); margin-bottom: .35rem; display: flex; align-items: center; gap: .5rem; }
.art__num a { color: var(--muted); text-decoration: none; font-weight: 400; }
.art__body { font-family: var(--serif); font-size: var(--reader-size); line-height: 1.75; }
.art__explain { margin-top: .6rem; font-family: var(--sans); font-size: .9rem; background: var(--forest-soft); border-radius: 10px; padding: .75rem .9rem; color: var(--forest-ink); }
.art__explain strong { display: block; font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: .2rem; }

.pdf-viewer { background: #525659; border-radius: var(--radius); padding: 12px; max-height: 80vh; overflow: auto; }
.pdf-viewer canvas { display: block; margin: 0 auto 12px; background: #fff; max-width: 100%; height: auto !important; box-shadow: 0 2px 8px rgba(0,0,0,.3); }
.pdf-viewer__status { color: #eee; text-align: center; padding: 2rem; font-size: .9rem; }

.locked { text-align: center; padding: 2rem 1.25rem; border: 1px dashed var(--line-strong); border-radius: var(--radius-lg); background: var(--surface-2); }
.locked .ico { width: 2rem; height: 2rem; color: var(--forest); }

.share-panel { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: .5rem; }
.share-panel a, .share-panel button { justify-content: flex-start; }

/* ---------------------------------------------------------------- Commentaires */
.comments { display: grid; gap: 1rem; }
.comment { display: flex; gap: .75rem; }
.comment__body { flex: 1; min-width: 0; }
.comment__head { display: flex; flex-wrap: wrap; gap: .25rem .6rem; align-items: baseline; font-size: .875rem; }
.comment__head strong { font-size: .925rem; }
.comment__text { margin: .25rem 0 .35rem; overflow-wrap: anywhere; }
.comment__actions { display: flex; gap: .9rem; font-size: .8rem; }
.comment__actions button, .comment__actions summary { background: none; border: 0; padding: 0; color: var(--muted); font: inherit; cursor: pointer; list-style: none; }
.comment__actions button:hover, .comment__actions summary:hover { color: var(--ink); }
.comment__replies { margin-top: .9rem; padding-left: 1rem; border-left: 2px solid var(--line); display: grid; gap: .9rem; }
.comment--pending { opacity: .7; }
.comment-form textarea { min-height: 90px; }

/* ---------------------------------------------------------------- Formulaires */
.form { display: grid; gap: 1.1rem; }
.form-row { display: grid; gap: 1.1rem; }
@media (min-width: 640px) { .form-row--2 { grid-template-columns: 1fr 1fr; } .form-row--3 { grid-template-columns: repeat(3, 1fr); } }
.field { display: grid; gap: .35rem; }
.field > label, .label { font-weight: 600; font-size: .925rem; }
.field .hint { font-size: .825rem; color: var(--muted); margin: 0; }
.req { color: var(--red); }
input:not([type]), input[type=text], input[type=email], input[type=tel], input[type=password], input[type=search], input[type=number], input[type=date], input[type=datetime-local], input[type=url], select, textarea {
  width: 100%; padding: .7rem .8rem; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--surface); color: var(--ink); font: inherit; font-size: 1rem;
}
textarea { min-height: 120px; resize: vertical; line-height: 1.5; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--forest); box-shadow: 0 0 0 3px color-mix(in srgb, var(--forest) 18%, transparent); }
.input-code { font-size: 1.6rem !important; letter-spacing: .5em; text-align: center; font-variant-numeric: tabular-nums; max-width: 260px; }
.check { display: flex; gap: .6rem; align-items: flex-start; font-size: .95rem; cursor: pointer; }
.check input { width: 1.15rem; height: 1.15rem; margin-top: .2rem; accent-color: var(--forest); flex: none; }
.choice-cards { display: grid; gap: .6rem; }
@media (min-width: 640px) { .choice-cards { grid-template-columns: 1fr 1fr; } }
.choice { display: flex; gap: .75rem; padding: 1rem; border: 2px solid var(--line); border-radius: var(--radius); cursor: pointer; background: var(--surface); }
.choice:has(input:checked) { border-color: var(--forest); background: var(--forest-soft); }
.choice input { accent-color: var(--forest); width: 1.15rem; height: 1.15rem; margin-top: .2rem; flex: none; }
.choice strong { display: block; }
.choice span { font-size: .875rem; color: var(--muted); }
.danger-toggle { border: 2px solid color-mix(in srgb, var(--red) 40%, transparent); background: var(--red-soft); border-radius: var(--radius); padding: 1rem; }
.danger-toggle .check { color: var(--red); font-weight: 600; }
.danger-numbers { margin-top: .75rem; display: flex; flex-wrap: wrap; gap: .5rem; }
.danger-numbers a { background: var(--red); color: #fff; padding: .55rem .9rem; border-radius: 10px; text-decoration: none; font-weight: 700; }
.dropzone { border: 2px dashed var(--line-strong); border-radius: var(--radius); padding: 1.25rem; text-align: center; background: var(--surface-2); }
.dropzone input[type=file] { display: block; margin: .5rem auto 0; max-width: 100%; }
.file-list { list-style: none; padding: 0; margin: .6rem 0 0; display: grid; gap: .35rem; text-align: left; font-size: .875rem; }
.file-list li { display: flex; gap: .5rem; align-items: center; padding: .4rem .6rem; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; }
.file-list li span:last-child { margin-left: auto; color: var(--muted); }
.honey { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.form-actions { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.auth-wrap { max-width: 480px; margin: 2rem auto 3rem; }
.auth-wrap--wide { max-width: 720px; }
.auth-foot { text-align: center; margin-top: 1.25rem; font-size: .925rem; }
fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; margin: 0; }
legend { font-weight: 700; padding: 0 .35rem; }
.pro-fields { display: grid; gap: 1.1rem; }

/* ---------------------------------------------------------------- Signalement */
.report-hero { background: #1c1917; color: #f5f0e6; padding: 2rem 0; }
.report-hero h1 { color: #fff; }
.report-hero p { color: #d6cfc2; max-width: 60ch; }
.safety { display: grid; gap: .6rem; }
@media (min-width: 760px) { .safety { grid-template-columns: repeat(3, 1fr); } }
.safety__item { display: flex; gap: .6rem; font-size: .875rem; color: #d6cfc2; }
.safety__item .ico { color: #86efac; margin-top: .1rem; }
.steps { counter-reset: step; display: grid; gap: 1.25rem; }
.step { position: relative; padding-left: 2.75rem; }
.step::before { counter-increment: step; content: counter(step); position: absolute; left: 0; top: 0; width: 2rem; height: 2rem; border-radius: 50%; background: var(--forest); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: .9rem; }
@media (prefers-color-scheme: dark) { .step::before { color: #0b1f12; } }
.step h2 { font-size: 1.1rem; font-family: var(--sans); font-weight: 700; margin-bottom: .75rem; padding-top: .2rem; }
.code-box { text-align: center; padding: 1.5rem; border-radius: var(--radius-lg); background: var(--surface); border: 2px solid var(--forest); }
.code-box__code { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: clamp(1.6rem, 6vw, 2.4rem); font-weight: 700; letter-spacing: .08em; color: var(--forest); margin: .25rem 0 1rem; user-select: all; }
.code-box__pass { font-family: ui-monospace, monospace; font-size: 1.25rem; font-weight: 600; user-select: all; }
.code-box dt { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.code-box dd { margin: 0; }

.status-track { display: flex; gap: 0; margin: 1rem 0; overflow-x: auto; padding-bottom: .25rem; }
.status-track__step { flex: 1; min-width: 90px; text-align: center; font-size: .78rem; color: var(--muted); position: relative; padding-top: 1.6rem; }
.status-track__step::before { content: ""; position: absolute; top: .45rem; left: 50%; width: .9rem; height: .9rem; transform: translateX(-50%); border-radius: 50%; background: var(--line-strong); z-index: 1; }
.status-track__step::after { content: ""; position: absolute; top: .8rem; left: 0; right: 0; height: 2px; background: var(--line); }
.status-track__step.is-done { color: var(--forest-ink); font-weight: 600; }
.status-track__step.is-done::before { background: var(--forest); }
.status-track__step.is-done::after { background: var(--forest); }
.status-track__step.is-current::before { box-shadow: 0 0 0 4px color-mix(in srgb, var(--forest) 25%, transparent); }
.status-track--rejected .is-current::before { background: var(--red); }

.timeline { list-style: none; padding: 0; margin: 0; display: grid; gap: .9rem; }
.timeline li { display: grid; grid-template-columns: auto 1fr; gap: .75rem; font-size: .9rem; }
.timeline__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--forest); margin-top: .45rem; }
.timeline time { display: block; font-size: .78rem; color: var(--muted); }

.chat { display: grid; gap: .75rem; max-height: 520px; overflow-y: auto; padding: .25rem; }
.msg { max-width: 85%; padding: .7rem .9rem; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); font-size: .925rem; overflow-wrap: anywhere; }
.msg--me { margin-left: auto; background: var(--forest-soft); border-color: transparent; color: var(--forest-ink); }
.msg__meta { display: block; font-size: .72rem; color: var(--muted); margin-top: .3rem; }
.msg__files { margin-top: .4rem; display: grid; gap: .2rem; font-size: .85rem; }
.chat-form { display: grid; gap: .5rem; margin-top: 1rem; }

/* ---------------------------------------------------------------- Annuaire */
.pro-card { display: flex; gap: 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.1rem; position: relative; }
.pro-card:hover { border-color: var(--line-strong); }
.pro-card h3 { margin: 0 0 .15rem; font-size: 1.05rem; }
.pro-card h3 a { color: var(--ink); text-decoration: none; }
.pro-card h3 a::after { content: ""; position: absolute; inset: 0; }
.pro-card__role { font-size: .875rem; color: var(--muted); margin: 0 0 .5rem; }
.tags { display: flex; flex-wrap: wrap; gap: .3rem; }
.stars { color: var(--gold); display: inline-flex; gap: 1px; vertical-align: -.15em; }
.stars .ico { width: 1rem; height: 1rem; }
.stars .off { color: var(--line-strong); }
.rating-input { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: .2rem; }
.rating-input input { position: absolute; opacity: 0; width: 1px; }
.rating-input label { cursor: pointer; color: var(--line-strong); font-size: 1.6rem; line-height: 1; }
.rating-input input:checked ~ label, .rating-input label:hover, .rating-input label:hover ~ label { color: var(--gold); }
.map { height: 460px; border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--surface-2); }
.profile-head { display: flex; gap: 1.25rem; align-items: center; flex-wrap: wrap; }

/* ---------------------------------------------------------------- Espace membre / pro / admin */
.dash-head { padding: 1.75rem 0 1rem; }
.side-nav { display: grid; gap: .15rem; }
.side-nav a { display: flex; align-items: center; gap: .6rem; padding: .6rem .75rem; border-radius: 10px; color: var(--ink-2); text-decoration: none; font-size: .925rem; font-weight: 500; }
.side-nav a:hover { background: var(--surface); }
.side-nav a[aria-current] { background: var(--surface); color: var(--forest); font-weight: 700; box-shadow: inset 3px 0 0 var(--forest); }
.side-nav__h { font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); padding: .9rem .75rem .3rem; font-weight: 700; }
.side-nav .count { margin-left: auto; background: var(--red); color: #fff; font-size: .7rem; padding: .05rem .45rem; border-radius: 999px; font-weight: 700; }
@media (max-width: 959px) {
  .side-nav { grid-auto-flow: column; overflow-x: auto; grid-auto-columns: max-content; padding-bottom: .4rem; border-bottom: 1px solid var(--line); margin-bottom: .5rem; }
  .side-nav__h { display: none; }
  .side-nav a[aria-current] { box-shadow: inset 0 -2px 0 var(--forest); }
}
.stats { display: grid; gap: .75rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1rem 1.1rem; }
.stat__label { font-size: .8rem; color: var(--muted); margin: 0; }
.stat__value { font-family: var(--serif); font-size: 1.85rem; font-weight: 700; line-height: 1.15; margin: .15rem 0 0; font-variant-numeric: tabular-nums; }
.stat__sub { font-size: .78rem; color: var(--muted); }
.stat--alert .stat__value { color: var(--red); }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.table th, .table td { text-align: left; padding: .7rem .85rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); background: var(--surface-2); font-weight: 700; white-space: nowrap; }
.table tr:last-child td { border-bottom: 0; }
.table tr:hover td { background: var(--surface-2); }
.table td.num, .table th.num { text-align: right; font-variant-numeric: tabular-nums; }
.table .actions { white-space: nowrap; text-align: right; }
.table form { display: inline; }
.row-urgent td:first-child { box-shadow: inset 4px 0 0 var(--red); }
.row-high td:first-child { box-shadow: inset 4px 0 0 var(--gold); }

.bars { display: grid; gap: .5rem; }
.bar { display: grid; grid-template-columns: minmax(110px, 38%) 1fr auto; gap: .6rem; align-items: center; font-size: .85rem; }
.bar__track { height: 10px; background: var(--surface-2); border-radius: 5px; overflow: hidden; border: 1px solid var(--line); }
.bar__fill { height: 100%; background: var(--forest); border-radius: 5px; }
.bar__fill.w0{width:0}.bar__fill.w5{width:5%}.bar__fill.w10{width:10%}.bar__fill.w15{width:15%}.bar__fill.w20{width:20%}.bar__fill.w25{width:25%}.bar__fill.w30{width:30%}.bar__fill.w35{width:35%}.bar__fill.w40{width:40%}.bar__fill.w45{width:45%}.bar__fill.w50{width:50%}.bar__fill.w55{width:55%}.bar__fill.w60{width:60%}.bar__fill.w65{width:65%}.bar__fill.w70{width:70%}.bar__fill.w75{width:75%}.bar__fill.w80{width:80%}.bar__fill.w85{width:85%}.bar__fill.w90{width:90%}.bar__fill.w95{width:95%}.bar__fill.w100{width:100%}
.bar__n { font-variant-numeric: tabular-nums; color: var(--muted); }

.notif-list { display: grid; }
.notif { display: flex; gap: .85rem; padding: .9rem 1rem; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); background: var(--surface); }
.notif:first-child { border-radius: var(--radius) var(--radius) 0 0; }
.notif:last-child { border-bottom: 0; border-radius: 0 0 var(--radius) var(--radius); }
.notif--unread { background: var(--forest-soft); }
.notif__ico { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); color: var(--forest); flex: none; }
.notif time { display: block; font-size: .78rem; color: var(--muted); }

.empty { text-align: center; padding: 2.5rem 1rem; color: var(--muted); }
.empty .ico { width: 2.5rem; height: 2.5rem; color: var(--line-strong); margin-bottom: .5rem; }

.pagination { display: flex; gap: .35rem; justify-content: center; margin-top: 1.5rem; flex-wrap: wrap; }
.pagination a, .pagination span { min-width: 40px; height: 40px; display: grid; place-items: center; padding: 0 .6rem; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); text-decoration: none; color: var(--ink); font-size: .9rem; }
.pagination [aria-current] { background: var(--forest); color: #fff; border-color: var(--forest); }

.prose { max-width: 72ch; }
.prose h2 { margin-top: 1.75rem; }
.prose h3 { margin-top: 1.25rem; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li { margin-bottom: .35rem; }
.prose blockquote { margin: 1rem 0; padding: .75rem 1rem; border-left: 3px solid var(--gold); background: var(--gold-soft); border-radius: 0 10px 10px 0; }

.lexicon { display: grid; gap: 0; }
.lexicon dt { font-family: var(--serif); font-weight: 700; font-size: 1.08rem; padding-top: 1rem; }
.lexicon dd { margin: .25rem 0 0; padding-bottom: 1rem; border-bottom: 1px solid var(--line); color: var(--ink-2); }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 0 1.1rem; }
.faq details + details { margin-top: .6rem; }
.faq summary { padding: 1rem 0; font-weight: 600; cursor: pointer; }
.faq details[open] summary { border-bottom: 1px solid var(--line); margin-bottom: .75rem; }

.guide-card { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.25rem; text-decoration: none; color: var(--ink); }
.guide-card:hover { border-color: var(--forest); color: var(--ink); }
.guide-card h3 { margin-bottom: .35rem; }
.guide-card p { margin: 0; font-size: .9rem; color: var(--muted); }

.err-page { text-align: center; padding: 4rem 1rem; }
.err-page__code { font-family: var(--serif); font-size: 4.5rem; font-weight: 700; color: var(--line-strong); line-height: 1; }

/* ---------------------------------------------------------------- Pied de page */
.site-footer { background: var(--surface); border-top: 1px solid var(--line); margin-top: 3rem; padding-top: 2.5rem; font-size: .925rem; }
.site-footer__grid { display: grid; gap: 1.75rem; }
@media (min-width: 760px) { .site-footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.site-footer__grid a { display: block; color: var(--ink-2); text-decoration: none; padding: .2rem 0; }
.site-footer__grid a:hover { color: var(--forest); }
.site-footer__grid .brand { display: inline-flex; margin-bottom: .75rem; }
.site-footer__h { font-family: var(--sans); font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: .6rem; }
.site-footer__legal { font-size: .8rem; color: var(--muted); border-top: 1px solid var(--line); margin: 2rem 0 0; padding: 1.25rem 0; }
.flagline { height: 5px; background: linear-gradient(90deg, #ce1126 33.3%, #fcd116 33.3% 66.6%, #009460 66.6%); }

/* ---------------------------------------------------------------- Barre mobile */
.bottom-nav { position: fixed; bottom: 0; left: 0; right: 0; z-index: 40; display: grid; grid-template-columns: repeat(5, 1fr); background: var(--surface); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
.bottom-nav a { display: grid; justify-items: center; gap: 2px; padding: .5rem .25rem .45rem; font-size: .68rem; font-weight: 600; color: var(--muted); text-decoration: none; }
.bottom-nav a[aria-current] { color: var(--forest); }
.bottom-nav .ico { width: 1.4rem; height: 1.4rem; }
.bottom-nav__alert { color: var(--red) !important; }
@media (min-width: 900px) { .bottom-nav { display: none; } }

/* ---------------------------------------------------------------- Impression (rapport police) */
@media print {
  .emergency, .site-header, .site-footer, .bottom-nav, .no-print, .flashes { display: none !important; }
  body { background: #fff; padding: 0; color: #000; }
  .card { border: 0; padding: 0; }
  a { color: #000; text-decoration: none; }
}

/* ---------------------------------------------------------------- Utilitaires (pas de style en ligne : CSP stricte) */
.eyebrow--gold { color: #fcd116; }
.section--flush { padding-top: 0 !important; }
.rank-list { margin: 0; padding-left: 1.1rem; display: grid; gap: .6rem; }
.cta-card { display: grid; gap: 1rem; align-items: center; }
@media (min-width: 760px) { .cta-card { grid-template-columns: 1fr auto; } }
.btn-row--center { justify-content: center; }
.h-small { font-size: 1.05rem; font-family: var(--sans); font-weight: 700; }
.toast { position: fixed; left: 50%; bottom: 88px; transform: translateX(-50%); background: #1c1917; color: #fff; padding: .65rem 1rem; border-radius: 10px; font-size: .9rem; z-index: 100; box-shadow: 0 8px 24px rgba(0,0,0,.25); transition: opacity .4s; }
.toast--out { opacity: 0; }
@media (min-width: 900px) { .toast { bottom: 24px; } }
.input-short { max-width: 120px; }
.file-list li.is-error { border-color: var(--red); color: var(--red); }
.file-card { border: 1px solid var(--line); border-radius: var(--radius); padding: .75rem; background: var(--surface-2); display: grid; gap: .4rem; }
.file-card img, .file-card video { width: 100%; max-height: 260px; object-fit: contain; background: #000; border-radius: 8px; }
.file-card audio { width: 100%; }
.print-page .doc-aside { display: none; }
.input-medium { max-width: 280px; }

/* =====================================================================
   v2 — Pages des codes : lecture d'article, sommaire, interactions
   ===================================================================== */
.read-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60; pointer-events: none; }
.read-progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #ce1126, #fcd116, #009460); transition: width .1s linear; }

.law-head { background: var(--surface); border-bottom: 1px solid var(--line); padding: 1.5rem 0 1.4rem; }
.law-head__row { display: flex; gap: 1rem; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; }
.law-head__code { font-size: .85rem; font-weight: 600; color: var(--forest); margin: 0 0 .35rem; display: flex; align-items: center; gap: .35rem; }
.law-head__code a { color: inherit; text-decoration: none; }
.law-head__code a:hover { text-decoration: underline; }
.law-head__title { font-size: clamp(2rem, 6vw, 3.2rem); margin: 0 0 .6rem; letter-spacing: -.02em; }
.law-head__title--text { font-size: clamp(1.7rem, 4.5vw, 2.6rem); max-width: 26ch; }
.law-head__title--part { font-size: clamp(1.35rem, 3.5vw, 2rem); max-width: 40ch; line-height: 1.25; }
.law-head__meta { display: flex; flex-direction: column; align-items: flex-end; gap: .4rem; }
@media (max-width: 640px) { .law-head__meta { flex-direction: row; align-items: center; } }
.law-path { list-style: none; padding: 0; margin: 0; display: grid; gap: .2rem; font-size: .85rem; }
.law-path li { color: var(--muted); padding-left: calc(var(--d, 0) * .9rem); }
.law-path li:nth-child(2) { --d: 1; } .law-path li:nth-child(3) { --d: 2; } .law-path li:nth-child(4) { --d: 3; } .law-path li:nth-child(5) { --d: 4; }
.law-path li::before { content: "└ "; color: var(--line-strong); }
.law-path li:first-child::before { content: ""; }
.law-path a { color: var(--ink-2); text-decoration: none; }
.law-path a:hover { color: var(--forest); text-decoration: underline; }

.law-layout { display: grid; gap: 1.5rem; padding-top: 1.5rem; padding-bottom: 1rem; }
@media (min-width: 1000px) { .law-layout { grid-template-columns: minmax(0, 1fr) 300px; align-items: start; } .law-aside { position: sticky; top: 84px; } }
.law-main { min-width: 0; display: grid; gap: 1.25rem; align-content: start; }

.law-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.law-card__bar { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .7rem 1rem .7rem 1.25rem; border-bottom: 1px solid var(--line); background: var(--surface-2); flex-wrap: wrap; }
.law-card__label { font-family: var(--sans); font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--forest); }
.law-card__tools { display: flex; gap: .35rem; flex-wrap: wrap; }
.tool { border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); border-radius: 8px; padding: .3rem .6rem; font: inherit; font-size: .82rem; cursor: pointer; display: inline-flex; gap: .3rem; align-items: center; min-height: 34px; }
.tool:hover { border-color: var(--ink-2); color: var(--ink); }
.law-text { font-family: var(--serif); font-size: var(--reader-size); line-height: 1.85; color: var(--ink); padding: 1.4rem 1.25rem .4rem; overflow-wrap: anywhere; }
@media (min-width: 700px) { .law-text { padding: 2rem 2.25rem .6rem; font-size: calc(var(--reader-size) + .06rem); } }
.law-text p { margin: 0 0 1em; }
.art .law-text, .art__body.law-text { padding: 0; }
.noteref { font-family: var(--sans); font-size: .75em; font-weight: 700; text-decoration: none; color: var(--forest); background: var(--forest-soft); border-radius: 6px; padding: 0 .3em; vertical-align: .15em; }
.law-notes { margin: 0 1.25rem 1.25rem; padding: 1rem 1.1rem; border-radius: 12px; background: var(--gold-soft); border: 1px solid color-mix(in srgb, var(--gold) 35%, transparent); font-size: .88rem; }
@media (min-width: 700px) { .law-notes { margin: 0 2.25rem 1.5rem; } }
.law-notes h2 { font-family: var(--sans); font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: .5rem; color: var(--ink-2); }
.law-notes ol { margin: 0; padding-left: 1.4rem; display: grid; gap: .4rem; }
.law-notes li { font-style: italic; }
.law-notes a { text-decoration: none; font-style: normal; }
.law-notes--inline { margin: .5rem 0 0; }
.law-card .art__explain { margin: 0 1.25rem 1.25rem; }
.law-source { font-size: .78rem; color: var(--muted); padding: 0 1.25rem 1.2rem; margin: 0; }
@media (min-width: 700px) { .law-source { padding: 0 2.25rem 1.5rem; } .law-card .art__explain { margin: 0 2.25rem 1.5rem; } }

/* Interactions */
.engage { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1rem; display: grid; gap: .9rem; }
.engage__row { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.stars-form { display: inline-flex; align-items: center; gap: .55rem; flex-wrap: wrap; }
.stars-input { border: 0; padding: 0; margin: 0; display: inline-flex; flex-direction: row-reverse; }
.stars-input input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.stars-input label { font-size: 1.65rem; line-height: 1; color: var(--line-strong); cursor: pointer; padding: 0 .08rem; transition: transform .1s, color .1s; }
.stars-input label:hover, .stars-input label:hover ~ label, .stars-input input:checked ~ label { color: #e8a800; }
.stars-input label:hover { transform: scale(1.15); }
.stars-input input:focus-visible + label { outline: 3px solid var(--gold); border-radius: 4px; }
.stars-meta { font-size: .85rem; color: var(--muted); }
.action--share { margin-left: auto; }
@media (max-width: 560px) { .action--share { margin-left: 0; } }
.share-row { display: flex; flex-wrap: wrap; gap: .45rem; padding-top: .8rem; border-top: 1px solid var(--line); }
.share-btn { display: inline-flex; align-items: center; gap: .45rem; padding: .45rem .75rem .45rem .45rem; border-radius: 999px; border: 1px solid var(--line); background: var(--surface-2); color: var(--ink); text-decoration: none; font: inherit; font-size: .84rem; font-weight: 600; cursor: pointer; }
.share-btn:hover { border-color: var(--ink-2); color: var(--ink); }
.share-btn__ico { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: .8rem; color: #fff; background: #57534e; font-family: var(--sans); }
.share-btn--fb .share-btn__ico { background: #1877f2; }
.share-btn--wa .share-btn__ico { background: #25d366; }
.share-btn--ms .share-btn__ico { background: linear-gradient(135deg, #0099ff, #a033ff 60%, #ff5c87); }
.share-btn--li .share-btn__ico { background: #0a66c2; font-size: .72rem; }
.share-btn--tg .share-btn__ico { background: #229ed9; }
.share-btn--x .share-btn__ico { background: #000; }
.share-btn--em .share-btn__ico { background: var(--forest); }
@media (min-width: 900px) { [data-mobile-only] { display: none; } }

.pager { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.pager__link { display: grid; gap: .15rem; padding: .9rem 1rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); text-decoration: none; color: var(--ink); min-width: 0; }
.pager__link:hover { border-color: var(--forest); color: var(--ink); }
.pager__link span { font-size: .78rem; color: var(--muted); }
.pager__link strong { font-family: var(--serif); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pager__link--next { text-align: right; grid-column: 2; }

/* Bloc « Agir » */
.act { background: linear-gradient(160deg, var(--forest) 0%, #0f3d21 100%); color: #e9f2eb; border-radius: var(--radius-lg); padding: 1.4rem; position: relative; overflow: hidden; }
.act::after { content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, rgba(252, 209, 22, .18), transparent 70%); }
.act .eyebrow { color: #fcd116; }
.act h2 { color: #fff; font-size: clamp(1.2rem, 3vw, 1.5rem); }
.act .muted { color: #bcd4c0; }
.act__grid { display: grid; gap: .6rem; grid-template-columns: 1fr; margin-top: 1rem; position: relative; z-index: 1; }
@media (min-width: 560px) { .act__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .act__grid { grid-template-columns: repeat(3, 1fr); } }
.act-card { display: grid; grid-template-columns: auto 1fr; gap: .1rem .7rem; padding: .85rem .9rem; border-radius: 12px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); color: #fff; text-decoration: none; transition: background .15s, transform .15s; }
.act-card:hover { background: rgba(255,255,255,.15); color: #fff; transform: translateY(-1px); }
.act-card__ico { grid-row: span 2; width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: rgba(255,255,255,.12); }
.act-card strong { font-size: .95rem; }
.act-card span:last-child { font-size: .8rem; color: #c9dccc; line-height: 1.4; }
.act-card--alert { background: #b4111f; border-color: #d23a46; }
.act-card--alert:hover { background: #c81424; }
.act-card--dark { background: rgba(0,0,0,.25); }
@media (prefers-color-scheme: dark) { .act { background: linear-gradient(160deg, #123d24, #0b2416); } }

/* Sommaire */
.toc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: .5rem; }
.toc__list { list-style: none; margin: 0; padding: 0; }
.toc__list--root > .toc__item { border-bottom: 1px solid var(--line); }
.toc__list--root > .toc__item:last-child { border-bottom: 0; }
.toc__item details > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: .5rem; padding: .75rem .6rem; border-radius: 10px; }
.toc__item details > summary::-webkit-details-marker { display: none; }
.toc__item details > summary::before { content: ""; width: .55rem; height: .55rem; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(-45deg); transition: transform .15s; flex: none; margin-right: .2rem; }
.toc__item details[open] > summary::before { transform: rotate(45deg); }
.toc__item details > summary:hover { background: var(--surface-2); }
.toc__row { display: flex; align-items: baseline; gap: .5rem; padding: .55rem .6rem; }
.toc__link { color: var(--ink); text-decoration: none; font-weight: 600; flex: 1; min-width: 0; }
.toc__link:hover { color: var(--forest); text-decoration: underline; }
.toc__item--l1 > details > summary .toc__link, .toc__item--l1 > .toc__row .toc__link { font-family: var(--serif); font-size: 1.08rem; }
.toc__item--l3 .toc__link, .toc__item--l4 .toc__link { font-weight: 500; font-size: .93rem; }
.toc__count { font-size: .75rem; color: var(--muted); white-space: nowrap; }
.toc__list .toc__list { padding-left: 1.2rem; border-left: 2px solid var(--line); margin: 0 0 .5rem 1rem; }
.toc__range { display: block; font-size: .78rem; color: var(--muted); padding: 0 .6rem .45rem; }
.toc__list--flat { display: grid; gap: .25rem; padding: 0 0 .5rem 1.6rem !important; font-size: .88rem; }
.toc__list--flat a { color: var(--ink-2); }
.toc--compact { margin-bottom: 1rem; }

.toc-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1rem; margin-top: 1rem; }
.toc-box__h { font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin: 0 0 .35rem; }
.toc-box__title { display: block; font-family: var(--serif); font-weight: 700; color: var(--ink); text-decoration: none; line-height: 1.3; margin-bottom: .6rem; }
.toc-box__list { list-style: none; margin: 0; padding: 0; display: grid; gap: .1rem; max-height: 46vh; overflow-y: auto; }
.toc-box__list a { display: block; padding: .3rem .5rem; border-radius: 6px; color: var(--ink-2); text-decoration: none; font-size: .88rem; }
.toc-box__list a:hover { background: var(--surface-2); }
.toc-box__list a[aria-current] { background: var(--forest-soft); color: var(--forest-ink); font-weight: 700; }
.toc-box__list--parts a { font-size: .82rem; line-height: 1.35; }
.law-search { position: relative; }
.law-search input { padding-right: 2.6rem; border-radius: 999px; }
.law-search button { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: 0; background: transparent; color: var(--muted); padding: .4rem; cursor: pointer; }

.part-body .art { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.15rem; margin-bottom: .75rem; }
.part-body .art__num { justify-content: space-between; flex-wrap: wrap; }
.part-body .art__num a:first-child { color: var(--forest); text-decoration: none; font-weight: 800; }
.art__open { font-size: .78rem; font-weight: 600; text-transform: none; letter-spacing: 0; }
.part-h { font-family: var(--serif); margin: 1.75rem 0 .8rem; padding-top: .5rem; border-top: 2px solid var(--line); scroll-margin-top: 90px; }
.part-h--l3 { font-size: 1.15rem; } .part-h--l4 { font-size: 1.02rem; color: var(--ink-2); } .part-h--l5 { font-size: .95rem; font-style: italic; color: var(--ink-2); border-top: 0; }
.comments-block { scroll-margin-top: 90px; }
@media print { .engage, .act, .comments-block, .pager, .law-aside, .read-progress, .law-card__tools { display: none !important; } .law-card { box-shadow: none; border: 0; } }
.share-row.is-highlight { outline: 3px solid var(--gold); outline-offset: 4px; border-radius: 10px; }

/* Alerte SOS et caméra */
.sos { background: linear-gradient(160deg, #7f0d18, #b4111f 55%, #c81e2b); color: #fff; border-radius: var(--radius-lg); padding: 1.25rem; margin-bottom: 1.5rem; box-shadow: 0 10px 30px rgba(180, 17, 31, .25); }
.sos__head { display: flex; gap: 1rem; align-items: flex-start; }
.sos__head h2 { color: #fff; margin-bottom: .3rem; }
.sos__head p { color: #fde2e4; margin: 0; }
.sos__pulse { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.15); flex: none; animation: sosPulse 1.8s ease-out infinite; }
@keyframes sosPulse { 0% { box-shadow: 0 0 0 0 rgba(255,255,255,.45); } 70% { box-shadow: 0 0 0 16px rgba(255,255,255,0); } 100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); } }
@media (prefers-reduced-motion: reduce) { .sos__pulse { animation: none; } }
.sos .danger-numbers a { background: #fff; color: #9b0e1a; }
.sos__panel { margin-top: 1rem; }
.sos__panel > summary { list-style: none; background: #fff; color: #9b0e1a; }
.sos__panel > summary::-webkit-details-marker { display: none; }
.sos__panel > summary:hover { background: #fde2e4; color: #7f0d18; }
.sos__panel .form { background: var(--surface); color: var(--ink); border-radius: var(--radius); padding: 1rem; }
.sos__geo { display: grid; gap: .5rem; padding: .9rem; border: 2px dashed var(--line-strong); border-radius: var(--radius); }
.sos__geo.is-ok { border-style: solid; border-color: var(--forest); background: var(--forest-soft); }
.sos__recipients { display: grid; gap: .45rem; }
@media (min-width: 640px) { .sos__recipients { grid-template-columns: 1fr 1fr; } }
.camera__stage { margin-top: .6rem; display: grid; gap: .6rem; }
.camera__video { width: 100%; max-height: 60vh; background: #000; border-radius: var(--radius); object-fit: cover; }
.camera__thumbs { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .5rem; }
.camera__thumb { width: 72px; height: 72px; object-fit: cover; border-radius: 8px; border: 2px solid var(--forest); }

/* =====================================================================
   Tableaux de bord sécurisés, dossiers, forum
   ===================================================================== */
.dash-top { background: #10261a; color: #e3efe6; padding: 1.6rem 0 0; }
.dash-top h1 { color: #fff; }
.dash-top h1 code { font-size: .85em; }
.dash-top__sub { color: #a9c6b0; font-size: .9rem; }
.dash-nav { display: flex; gap: .2rem; flex-wrap: nowrap; overflow-x: auto; margin-top: 1.1rem; scrollbar-width: none; align-items: center; }
.dash-nav a, .dash-nav button { color: #cfe1d4; text-decoration: none; padding: .7rem .9rem; border-radius: 10px 10px 0 0; font-size: .9rem; font-weight: 600; white-space: nowrap; display: inline-flex; gap: .4rem; align-items: center; background: none; border: 0; font-family: inherit; cursor: pointer; }
.dash-nav a:hover, .dash-nav button:hover { color: #fff; background: rgba(255,255,255,.06); }
.dash-nav a[aria-current] { background: var(--paper); color: var(--forest); }
.dash-nav .count { background: #ce1126; color: #fff; font-size: .7rem; padding: .05rem .45rem; border-radius: 999px; }
.dash-nav__sep { width: 1px; height: 22px; background: rgba(255,255,255,.2); margin: 0 .4rem; flex: none; }
.dash-nav__lock { margin-left: auto; }
.dash-notice { display: flex; gap: .8rem; padding: 1rem 1.1rem; border-radius: var(--radius); background: var(--blue-soft); border: 1px solid color-mix(in srgb, var(--blue) 25%, transparent); margin-bottom: 1.25rem; }
.dash-notice .ico { color: var(--blue); margin-top: .2rem; }
.dash-notice .prose p:last-child { margin-bottom: 0; }

.gate { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.6rem; box-shadow: var(--shadow); text-align: center; }
.gate .form { text-align: left; }
.gate__ico { width: 64px; height: 64px; border-radius: 50%; background: var(--forest-soft); color: var(--forest); display: grid; place-items: center; margin: 0 auto .8rem; }
.input-code-wide { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 1.05rem !important; letter-spacing: .06em; text-transform: uppercase; text-align: center; }

.case-list { display: grid; gap: .6rem; }
.case-row { display: grid; gap: .8rem; padding: 1rem 1.1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); position: relative; }
.case-row:hover { border-color: var(--forest); color: var(--ink); }
@media (min-width: 760px) { .case-row { grid-template-columns: minmax(0, 1fr) 210px; align-items: center; } }
.case-row--urgent { box-shadow: inset 4px 0 0 #ce1126; }
.case-row--high { box-shadow: inset 4px 0 0 var(--gold); }
.case-row--done { opacity: .82; }
.case-row__top { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; margin-bottom: .25rem; }
.case-row__title { display: block; font-family: var(--serif); font-size: 1.05rem; }
.case-row__meta { display: block; font-size: .8rem; color: var(--muted); margin-top: .15rem; }
.case-row__state { display: grid; gap: .3rem; }
.case-row__status { font-size: .82rem; font-weight: 700; }
.progress { display: block; height: 8px; border-radius: 99px; background: var(--surface-2); border: 1px solid var(--line); overflow: hidden; }
.progress--lg { height: 12px; margin-top: .5rem; }
.progress__bar { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #ce1126, #fcd116 50%, #009460); }
.progress__bar--grey { background: var(--line-strong); }
.progress__bar.w0{width:0}.progress__bar.w5{width:5%}.progress__bar.w10{width:10%}.progress__bar.w15{width:15%}.progress__bar.w20{width:20%}.progress__bar.w25{width:25%}.progress__bar.w30{width:30%}.progress__bar.w35{width:35%}.progress__bar.w40{width:40%}.progress__bar.w45{width:45%}.progress__bar.w50{width:50%}.progress__bar.w55{width:55%}.progress__bar.w60{width:60%}.progress__bar.w65{width:65%}.progress__bar.w70{width:70%}.progress__bar.w75{width:75%}.progress__bar.w80{width:80%}.progress__bar.w85{width:85%}.progress__bar.w90{width:90%}.progress__bar.w95{width:95%}.progress__bar.w100{width:100%}

.case-summary__grid { display: grid; gap: .9rem; grid-template-columns: 1fr 1fr; }
@media (min-width: 900px) { .case-summary__grid { grid-template-columns: repeat(4, 1fr); } }
.label-sm { display: block; font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; margin-bottom: .2rem; }
.veracity--confirmed { color: var(--forest); } .veracity--partial { color: #a77d00; } .veracity--false { color: var(--red); } .veracity--unverified, .veracity--inconclusive { color: var(--muted); }

.sos-board { background: var(--red-soft); border: 2px solid color-mix(in srgb, var(--red) 45%, transparent); border-radius: var(--radius-lg); padding: 1rem 1.1rem; margin-bottom: 1.25rem; }
.sos-board h2 { font-size: 1.05rem; color: var(--red); font-family: var(--sans); font-weight: 800; display: flex; gap: .4rem; align-items: center; }
.sos-item { display: grid; gap: .7rem; padding: .8rem 0; border-top: 1px solid color-mix(in srgb, var(--red) 25%, transparent); font-size: .92rem; }
.sos-item:first-of-type { border-top: 0; }
@media (min-width: 760px) { .sos-item { grid-template-columns: 1fr auto; align-items: center; } }

.thread-list { display: grid; gap: .5rem; }
.thread { display: grid; gap: .25rem; padding: .9rem 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); }
.thread:hover { border-color: var(--forest); color: var(--ink); }
.thread--unread { box-shadow: inset 4px 0 0 var(--forest); }
.thread--unread .thread__title { font-weight: 800; }
.thread__title { font-weight: 600; }
.thread__meta { font-size: .8rem; color: var(--muted); }
.forum-posts { display: grid; gap: .8rem; margin-bottom: 1rem; }
.fpost { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1rem 1.1rem; }
.fpost--me { border-color: color-mix(in srgb, var(--forest) 40%, transparent); background: color-mix(in srgb, var(--forest-soft) 45%, var(--surface)); }
.fpost__head { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-bottom: .5rem; }
.fpost__body { overflow-wrap: anywhere; }
.page-dash .site-footer { margin-top: 1rem; }

/* Accueil : article du jour et code en vedette */
.spotlight { display: grid; gap: 1rem; }
@media (min-width: 960px) { .spotlight { grid-template-columns: 1.5fr 1fr; align-items: stretch; } }
.daily { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.5rem; box-shadow: var(--shadow); display: grid; gap: .6rem; align-content: start; position: relative; overflow: hidden; }
.daily::before { content: "«"; position: absolute; right: 1rem; top: -1.5rem; font-family: var(--serif); font-size: 9rem; color: var(--forest-soft); line-height: 1; pointer-events: none; }
.daily h2 { margin: 0; position: relative; }
.daily h2 a { color: var(--ink); text-decoration: none; }
.daily h2 a:hover { color: var(--forest); }
.daily__code { font-size: .95rem; font-weight: 500; color: var(--muted); }
.daily__text { margin: .2rem 0 .6rem; font-family: var(--serif); font-size: 1.12rem; line-height: 1.75; border-left: 3px solid var(--gold); padding-left: 1rem; position: relative; }
.code-card { background: linear-gradient(165deg, #14532d, #0f3d21); color: #e3efe6; border-radius: var(--radius-lg); padding: 1.5rem; display: grid; gap: .5rem; align-content: start; }
.code-card h2 { margin: 0; } .code-card h2 a { color: #fff; text-decoration: none; }
.code-card__n { color: #bcd4c0; font-size: .92rem; margin: 0; }
.code-card__books { list-style: none; padding: 0; margin: .4rem 0 .8rem; display: grid; gap: .3rem; font-size: .88rem; }
.code-card__books a { color: #fff; text-decoration: none; opacity: .9; }
.code-card__books a:hover { opacity: 1; text-decoration: underline; }
.code-card .btn--secondary { background: #fff; border-color: #fff; color: var(--forest); }
@media (prefers-color-scheme: dark) { .daily::before { color: #1f3a28; } }

/* ----------------------------------------------------------------
   Refonte Lois Guinéennes — inspiration maquette vert & blanc
   Couleurs lumineuses, hiérarchie claire, interactions accessibles.
----------------------------------------------------------------- */
:root {
  --forest: #08784e;
  --forest-ink: #07563e;
  --forest-soft: #e6f5ed;
  --surface: #ffffff;
  --surface-2: #f5faf7;
  --ink: #103b31;
  --ink-2: #355b51;
  --muted: #648078;
  --line: #dcebe3;
  --line-strong: #a9d4bd;
  --shadow: 0 8px 26px rgba(9, 74, 49, .07);
  --radius: 14px;
  --radius-lg: 20px;
}
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { background: #fbfdfb; color: var(--ink); }
.site-header { background: rgba(255,255,255,.94); border-bottom-color: #e5eee8; box-shadow: 0 3px 18px rgba(9,74,49,.035); backdrop-filter: blur(14px); }
.site-header__in { min-height: 76px; }
.brand__mark { border-radius: 50%; background: linear-gradient(145deg,#0a8757,#07563e); box-shadow: 0 5px 14px rgba(8,120,78,.18); }
.brand__name { color: #07563e; letter-spacing: -.035em; }
.nav a { border-radius: 999px; transition: background .2s ease, color .2s ease, transform .2s ease; }
.nav a:hover { background: var(--forest-soft); color: var(--forest-ink); transform: translateY(-1px); }
.nav a[aria-current] { background: var(--forest); color: white; }
.btn { border-radius: 999px; transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(8,120,78,.16); }
.btn--primary { background: linear-gradient(135deg,#098557,#076743); border-color: #08784e; }

.hero { color: var(--ink); background: linear-gradient(105deg,#f1fbf5 0%,#fff 48%,#e4f5eb 100%); }
.hero::before { background: radial-gradient(ellipse at 84% 20%,rgba(13,151,94,.12),transparent 38%), radial-gradient(ellipse at 0% 100%,rgba(10,135,87,.10),transparent 35%); }
.hero__in { padding-top: 3rem; padding-bottom: 3.25rem; }
@media (min-width: 900px) { .hero__in { grid-template-columns: 1.15fr .85fr; gap: 3.5rem; padding-top: 4rem; padding-bottom: 4rem; } }
.hero h1 { color: #064b39; font-family: var(--sans); font-weight: 800; letter-spacing: -.045em; line-height: 1.04; font-size: clamp(2.25rem,5vw,3.65rem); }
.hero h1 em { color: #078454; font-style: normal; font-weight: 800; }
.hero .eyebrow, .hero .eyebrow--gold { display: inline-flex; align-items: center; gap: .5rem; color: #08784e; background: #e0f4e8; border: 1px solid #c6e8d4; border-radius: 999px; padding: .42rem .8rem; letter-spacing: .055em; }
.hero__lead { color: #41675b; max-width: 58ch; line-height: 1.7; }
.hero-search { border: 1px solid #b9ddc8; border-radius: 16px; padding: 6px; box-shadow: 0 12px 32px rgba(9,74,49,.10); }
.hero-search input { color: #183e32; }
.hero-search input::placeholder { color: #82988e; }
.hero__hints { color: #658278; }
.hero__hints a { color: #08784e; text-decoration: none; border-bottom: 1px solid #b9ddc8; }
.hero__hints a:hover { color: #064b39; border-color: currentColor; }
.hero-card { margin-top: 1.5rem; background: rgba(255,255,255,.88); border: 1px solid #d5e9dd; border-radius: 22px; box-shadow: 0 18px 48px rgba(8,78,51,.10); padding: clamp(1.25rem,3vw,2rem); backdrop-filter: blur(10px); }
.hero-card h2 { color: #07563e; }
.hero-card p { color: #557368; line-height: 1.65; }
.hero-card .btn--alert { background: #08784e; border-color: #08784e; color: #fff; }
.hero-card__links { gap: 1rem; flex-wrap: wrap; }
.hero-card__links a { color: #08784e; text-decoration: none; }
.hero-card__links a:hover { text-decoration: underline; }
.pillars { margin-top: -1.15rem; gap: 1rem; }
.pillar { border-radius: 18px; padding: 1.25rem; box-shadow: 0 8px 25px rgba(9,74,49,.06); transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease; }
.pillar:hover { transform: translateY(-4px); border-color: #a9d4bd; box-shadow: 0 14px 30px rgba(9,74,49,.10); }
.pillar__ico { width: 50px; height: 50px; border-radius: 50%; background: #08784e; color: white; }
.pillar--gold .pillar__ico { background: #e3f4e9; color: #08784e; }
.pillar--alert .pillar__ico { background: #e3f4e9; color: #08784e; }
.section { padding-top: clamp(2.25rem,5vw,4rem); padding-bottom: clamp(2.25rem,5vw,4rem); }
.section-head { margin-bottom: 1.5rem; }
.section-head h2 { color: #07563e; letter-spacing: -.025em; }
.eyebrow { letter-spacing: .09em; }
.cat { border-radius: 14px; padding: 1rem 1.1rem; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.cat:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #9ccfb3; }
.card, .text-item, .guide-card, .daily, .code-card { border-color: #e0ece5; border-radius: 17px; box-shadow: 0 5px 20px rgba(9,74,49,.035); }
.text-item { transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease; }
.text-item:hover { border-color: #a9d4bd; transform: translateY(-2px); box-shadow: 0 9px 24px rgba(9,74,49,.07); }
.guide-card { transition: transform .22s ease, box-shadow .22s ease; }
.guide-card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(9,74,49,.09); }
.cta-card { background: linear-gradient(120deg,#eff9f3,#fff); border-color: #d4e9dc; }
:focus-visible { outline: 3px solid #49b984; outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* =====================================================================
   v3 — Refonte visuelle « vert institutionnel + drapeau »
   Couche ajoutée en fin de fichier : elle redéfinit les couleurs et
   les composants sans toucher aux règles précédentes.
   ===================================================================== */
@font-face { font-family: "Outfit"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/outfit-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Outfit"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/outfit-latin-700-normal.woff2") format("woff2"); }

:root {
  --paper: #f5f9f6;
  --surface: #ffffff;
  --surface-2: #f1f7f3;
  --ink: #12261c;
  --ink-2: #3e5248;
  --muted: #6f8178;
  --line: #e1ebe5;
  --line-strong: #c9d9cf;
  --forest: #0b5d3b;
  --forest-2: #0f7a4c;
  --forest-soft: #e3f2ea;
  --forest-ink: #063d27;
  --forest-dark: #063d27;
  --red: #ce1126;
  --red-soft: #fde8ea;
  --gold: #e0b100;
  --gold-soft: #fff7d6;
  --flag-red: #ce1126;
  --flag-yellow: #fcd116;
  --flag-green: #009460;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow: 0 1px 2px rgba(6, 61, 39, .05), 0 6px 22px rgba(6, 61, 39, .07);
  --shadow-lg: 0 18px 48px rgba(6, 61, 39, .14);
  --serif: "Outfit", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --title: "Outfit", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color-scheme: light;
}
/* Le nouveau design est clair : on neutralise l'ancien mode sombre */
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #f5f9f6; --surface: #ffffff; --surface-2: #f1f7f3; --ink: #12261c; --ink-2: #3e5248; --muted: #6f8178;
    --line: #e1ebe5; --line-strong: #c9d9cf; --forest: #0b5d3b; --forest-2: #0f7a4c; --forest-soft: #e3f2ea; --forest-ink: #063d27;
    --red: #ce1126; --red-soft: #fde8ea; --gold: #e0b100; --gold-soft: #fff7d6; --blue-soft: #e8eef8; --blue: #1e40af;
    --shadow: 0 1px 2px rgba(6, 61, 39, .05), 0 6px 22px rgba(6, 61, 39, .07);
    color-scheme: light;
  }
  .btn--primary, .btn--primary:hover, .step::before { color: #fff; }
  .badge--gold { color: #7a5a00; }
}

body { background: var(--paper); }
h1, h2, h3, h4 { font-family: var(--title); font-weight: 700; color: var(--forest-dark); letter-spacing: -.01em; }
h3 { font-weight: 600; }
.container { max-width: 1240px; padding: 0 20px; }
.eyebrow { color: var(--forest-2); letter-spacing: .12em; }
.more { display: inline-flex; align-items: center; gap: .35rem; font-weight: 600; font-size: .9rem; color: var(--forest); text-decoration: none; white-space: nowrap; }
.more:hover .ico { transform: translateX(3px); }
.more .ico { transition: transform .2s; }

/* ---------- Boutons ---------- */
.btn { border-radius: 12px; transition: background .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s; }
.btn--pill { border-radius: 999px; padding-left: 1.25rem; padding-right: 1.25rem; }
.btn--primary { background: var(--forest); color: #fff; }
.btn--primary:hover { background: var(--forest-dark); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow); }
.btn--alert { background: var(--flag-red); }
.btn--alert:hover { background: #a90e1f; transform: translateY(-1px); }
.btn--outline { background: #fff; color: var(--forest); border: 1.5px solid var(--forest); }
.btn--outline:hover { background: var(--forest-soft); color: var(--forest); }
.btn--secondary { border-color: var(--forest); color: var(--forest); }
.btn--secondary:hover { background: var(--forest-soft); border-color: var(--forest); color: var(--forest); }
.btn--light { background: #fff; color: var(--forest-dark); }
.btn--light:hover { background: var(--flag-yellow); color: var(--forest-dark); }
.btn--gold { background: var(--flag-yellow); color: var(--forest-dark); }
.btn--gold:hover { background: #ffe14d; color: var(--forest-dark); }

/* ---------- Bandeau urgences + bande drapeau ---------- */
.emergency { background: var(--forest-dark); color: #cfe6d9; }
.emergency a { color: #fff; }
.emergency__label { color: var(--flag-yellow); }
.flagline { height: 4px; background: linear-gradient(90deg, var(--flag-red) 0 33.3%, var(--flag-yellow) 33.3% 66.6%, var(--flag-green) 66.6%); }

/* ---------- En-tête ---------- */
.site-header { background: rgba(255,255,255,.97); border-bottom: 1px solid var(--line); box-shadow: 0 1px 0 rgba(6,61,39,.02); }
@supports (backdrop-filter: blur(8px)) { .site-header { background: rgba(255,255,255,.9); backdrop-filter: blur(10px); } }
.site-header__in { min-height: 76px; gap: 1.25rem; }
.brand { gap: .7rem; }
.brand__mark { width: 46px; height: 46px; border-radius: 14px; background: var(--forest); }
.brand__mark .ico { width: 26px; height: 26px; }
.brand__text { display: grid; line-height: 1.1; }
.brand__name { font-family: var(--title); font-size: 1.35rem; font-weight: 700; color: var(--forest-dark); }
.brand__tag { font-size: .8rem; color: var(--ink-2); margin-top: 2px; }
.nav { gap: .15rem; margin: 0 auto; }
.nav a { border-radius: 999px; padding: .55rem .9rem; font-size: .92rem; color: var(--ink); }
.nav a:hover { background: var(--forest-soft); color: var(--forest); }
.nav a[aria-current] { background: var(--forest); color: #fff; }
@media (min-width: 1040px) { .nav { display: none; } }
@media (min-width: 1120px) { .nav { display: flex; } }
@media (max-width: 1320px) and (min-width: 1120px) { .nav a { padding: .5rem .65rem; font-size: .88rem; } .brand__tag { display: none; } }
.header-actions { margin-left: auto; gap: .55rem; }
.nav + .header-actions { margin-left: 0; }
.icon-btn { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; color: var(--ink); background: #fff; flex: none; }
.icon-btn:hover { border-color: var(--forest-2); color: var(--forest); }
.bell { border: 1px solid var(--line); background: #fff; }
.bell__count { background: var(--flag-red); border: 2px solid #fff; }
@media (min-width: 1120px) and (max-width: 1400px) { .hide-lg { display: none !important; } }
@media (max-width: 520px) {
  .brand__tag { display: none; }
  .brand__name { font-size: 1.12rem; }
  .brand__mark { width: 40px; height: 40px; }
  .header-actions .btn--pill span { display: none; }
  .header-actions .btn--pill { padding: .6rem .7rem; }
}

/* ---------- Accueil : hero ---------- */
.hero { background:
    radial-gradient(1100px 480px at 88% 10%, rgba(252,209,22,.20), transparent 60%),
    radial-gradient(800px 460px at 0% 100%, rgba(0,148,96,.12), transparent 60%),
    linear-gradient(180deg, #f2faf5 0%, #e4f3ea 100%);
  color: var(--ink); }
.hero::before { display: none; }
.hero__in { padding: 2.5rem 20px 4rem; }
@media (min-width: 960px) { .hero__in { display: grid; grid-template-columns: 1.05fr .95fr; gap: 2.5rem; align-items: center; padding: 3.5rem 20px 5rem; } }
.country-pill { display: inline-flex; align-items: center; gap: .6rem; background: var(--forest); color: #fff; padding: .3rem .9rem .3rem .3rem; border-radius: 999px; font-size: .75rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; margin: 0; }
.mini-flag { display: inline-flex; width: 30px; height: 20px; border-radius: 6px; overflow: hidden; }
.mini-flag i { flex: 1; }
.mini-flag i:nth-child(1) { background: var(--flag-red); }
.mini-flag i:nth-child(2) { background: var(--flag-yellow); }
.mini-flag i:nth-child(3) { background: var(--flag-green); }
.hero h1 { color: var(--forest-dark); font-size: clamp(2.1rem, 5.2vw, 3.6rem); line-height: 1.05; margin: 1.1rem 0 1rem; max-width: 14ch; letter-spacing: -.025em; }
.hero h1 em { color: var(--forest-2); font-style: normal; font-weight: 700; background: linear-gradient(transparent 68%, rgba(252,209,22,.55) 68% 88%, transparent 88%); }
.hero__lead { color: var(--ink-2); font-size: 1.12rem; max-width: 50ch; }
.hero-search { align-items: center; border-radius: 999px; padding: 6px 6px 6px 18px; margin-top: 1.6rem; max-width: 620px; box-shadow: var(--shadow-lg); border: 1.5px solid transparent; }
.hero-search:focus-within { border-color: var(--forest-2); }
.hero-search__ico { color: var(--muted); width: 1.2rem; height: 1.2rem; }
.hero-search input { font-size: 1rem; }
.hero-search .btn { padding: .85rem 1.6rem; }
.hero__hints { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; margin-top: 1rem; color: var(--ink-2); font-size: .85rem; }
.hero__hints-label { display: inline-flex; align-items: center; gap: .3rem; font-weight: 600; color: var(--ink); margin-right: .2rem; }
.hero__hints-label .ico { color: var(--gold); fill: var(--flag-yellow); }
.chip { display: inline-block; padding: .3rem .8rem; border-radius: 999px; background: rgba(255,255,255,.9); border: 1px solid var(--line); color: var(--ink) !important; text-decoration: none; font-weight: 500; transition: .15s; }
.chip:hover { border-color: var(--forest-2); color: var(--forest) !important; background: #fff; }
.hero__stats { display: flex; gap: 2rem; margin-top: 2rem; }
.hero__stats strong { display: block; font-family: var(--title); font-size: 1.8rem; color: var(--forest-dark); line-height: 1; }
.hero__stats span { font-size: .8rem; color: var(--ink-2); }
.hero__visual { position: relative; margin-top: 2rem; }
@media (min-width: 960px) { .hero__visual { margin-top: 0; } }
.hero__visual img { display: block; width: 100%; height: auto; }
.hero__quote { position: absolute; top: -.5rem; left: 0; margin: 0; font-family: var(--title); font-weight: 600; font-style: italic; font-size: clamp(1.1rem, 2.2vw, 1.6rem); line-height: 1.15; color: var(--forest); transform: rotate(-5deg); z-index: 2; }
.float-card { position: absolute; display: flex; gap: .7rem; align-items: center; background: #fff; border-radius: 16px; padding: .7rem .9rem; box-shadow: var(--shadow-lg); font-size: .8rem; }
.float-card strong { display: block; font-size: .875rem; color: var(--ink); }
.float-card small { color: var(--muted); }
.float-card__ico { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--forest-soft); color: var(--forest); flex: none; }
.float-card__ico--red { background: var(--red-soft); color: var(--flag-red); }
.float-card--a { left: 0; bottom: 18%; }
.float-card--b { right: 0; bottom: -4%; }
@media (max-width: 560px) { .float-card { display: none; } .hero__quote { font-size: 1rem; } }

/* ---------- Accueil : cartes d'accès rapide ---------- */
.quick-grid { display: grid; gap: .9rem; margin-top: -2.4rem; position: relative; z-index: 3; grid-template-columns: 1fr; }
@media (min-width: 560px) { .quick-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .quick-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1180px) { .quick-grid { grid-template-columns: repeat(5, 1fr); } }
.quick-card { position: relative; display: flex; gap: .9rem; align-items: flex-start; padding: 1.15rem 1.15rem 1.6rem; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); text-decoration: none; color: var(--ink); transition: transform .2s, box-shadow .2s, border-color .2s; }
.quick-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--forest-soft); color: var(--ink); }
.quick-card__ico { width: 50px; height: 50px; border-radius: 50%; background: var(--forest); color: #fff; display: grid; place-items: center; flex: none; }
.quick-card__ico .ico { width: 24px; height: 24px; }
.quick-card--alert .quick-card__ico { background: var(--flag-red); }
.quick-card__txt { min-width: 0; padding-right: .5rem; }
.quick-card__txt strong { display: block; font-family: var(--title); font-size: 1rem; color: var(--ink); line-height: 1.25; }
.quick-card__txt small { display: block; font-size: .8rem; color: var(--ink-2); margin-top: .2rem; line-height: 1.4; }
.quick-card__arrow { position: absolute; right: 14px; bottom: 12px; color: var(--forest-2); transition: transform .2s; }
.quick-card:hover .quick-card__arrow { transform: translateX(4px); }

/* ---------- Accueil : grille principale ---------- */
.home-grid { display: grid; gap: 1.25rem; align-items: start; }
@media (min-width: 760px) { .home-grid { grid-template-columns: 1fr 1fr; } .home-grid > .panel:first-child { grid-column: 1 / -1; } }
@media (min-width: 1180px) { .home-grid { grid-template-columns: 1.75fr 1fr 1.1fr; } .home-grid > .panel:first-child { grid-column: auto; } }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: 0 1px 2px rgba(6,61,39,.04); overflow: hidden; }
.panel__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.1rem 1.25rem; border-bottom: 1px solid var(--line); }
.panel__head h2 { display: flex; align-items: center; gap: .7rem; margin: 0; font-size: 1.2rem; }
.panel__ico { width: 38px; height: 38px; border-radius: 11px; background: var(--forest-soft); color: var(--forest); display: grid; place-items: center; flex: none; }
.recent { list-style: none; margin: 0; padding: .4rem .75rem; }
.recent__row { display: grid; grid-template-columns: 1fr auto; gap: .35rem .75rem; align-items: center; padding: .85rem .5rem; border-bottom: 1px solid var(--line); border-radius: 12px; }
.recent__row:last-child { border-bottom: 0; }
.recent__row:hover { background: var(--surface-2); }
.recent__row .tag { grid-column: 1 / -1; }
@media (min-width: 640px) { .recent__row { grid-template-columns: 140px minmax(0, 1fr) auto auto; } .recent__row .tag { grid-column: auto; } }
.recent__title { font-weight: 600; color: var(--ink); text-decoration: none; font-size: .93rem; line-height: 1.35; }
.recent__title:hover { color: var(--forest); }
.recent__title small { display: block; font-weight: 400; font-size: .78rem; color: var(--muted); margin-top: 2px; }
.recent__date { font-size: .8rem; color: var(--muted); white-space: nowrap; }
.dl { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; color: var(--forest); background: #fff; transition: .15s; }
.dl:hover { background: var(--forest); border-color: var(--forest); color: #fff; }
.tag { display: inline-flex; align-items: center; justify-content: center; width: fit-content; max-width: 100%; padding: .3rem .7rem; border-radius: 999px; font-size: .72rem; font-weight: 700; background: var(--forest); color: #fff; line-height: 1.2; text-align: center; }
.tag--red { background: #9b1c2c; }
.tag--blue { background: #1d5b8f; }
.tag--brown { background: #6b4d12; }
.tag--violet { background: #5b3b8c; }

.library { display: flex; flex-direction: column; }
.library__cover { position: relative; aspect-ratio: 16 / 11; background: linear-gradient(140deg, #edf7f1, #cfe7da); display: grid; place-items: center; }
.library__book { width: 140px; height: 186px; border-radius: 4px 10px 10px 4px; background: linear-gradient(90deg, #063d27 0 10px, #0b5d3b 10px); box-shadow: 14px 16px 30px rgba(6,61,39,.35), inset -6px 0 0 rgba(0,0,0,.15); color: #e9c76a; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .6rem; transform: rotate(-4deg); padding: 0 12px; text-align: center; }
.library__book b { font-family: Georgia, "Times New Roman", serif; font-weight: 400; font-size: 1rem; letter-spacing: .12em; line-height: 1.25; }
.library__book .ico { width: 30px; height: 30px; }
.library__stack { position: absolute; left: 22px; bottom: 20px; display: grid; gap: 3px; }
.library__stack i { display: block; height: 12px; border-radius: 3px; background: #0a4f33; }
.library__stack i:nth-child(1) { width: 96px; background: #c9a64a; }
.library__stack i:nth-child(2) { width: 108px; }
.library__stack i:nth-child(3) { width: 90px; background: #18935d; }
.library__body { padding: 1.3rem; }
.library__body h2 { font-size: 1.3rem; margin-bottom: .5rem; }
.library__body h2 a { color: var(--forest-dark); text-decoration: none; }
.library__body p { color: var(--ink-2); font-size: .9rem; }

.news { list-style: none; margin: 0; padding: .3rem 1rem .6rem; }
.news__item { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: .8rem; align-items: center; padding: .75rem 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.news li:last-child .news__item { border-bottom: 0; }
.news__item strong { display: block; font-size: .875rem; line-height: 1.35; font-weight: 600; }
.news__item:hover strong { color: var(--forest); }
.news__item time { font-size: .75rem; color: var(--muted); }
.news__item > .ico { color: var(--forest-2); }
.news__thumb { width: 64px; height: 50px; border-radius: 10px; display: grid; place-items: center; color: #fff; }
.news__thumb--0 { background: linear-gradient(90deg, var(--flag-red) 0 33.3%, var(--flag-yellow) 33.3% 66.6%, var(--flag-green) 66.6%); }
.news__thumb--0 .ico { color: #fff; filter: drop-shadow(0 1px 2px rgba(0,0,0,.4)); }
.news__thumb--1 { background: linear-gradient(135deg, #7a4a24, #3b2414); }
.news__thumb--2 { background: linear-gradient(135deg, #5f9fc2, #2f6b8a); }
.home-grid__side { display: grid; gap: 1.25rem; }
.help-card { position: relative; overflow: hidden; border-radius: var(--radius-lg); padding: 1.3rem; background: linear-gradient(135deg, var(--forest), var(--forest-dark)); color: #dcefe4; }
.help-card::after { content: ""; position: absolute; right: -50px; top: -50px; width: 170px; height: 170px; border-radius: 50%; background: rgba(252,209,22,.16); }
.help-card h2 { color: #fff; font-size: 1.15rem; margin: .6rem 0 .3rem; }
.help-card p { font-size: .875rem; margin-bottom: 1rem; }
.help-card__ico { width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,.14); display: grid; place-items: center; color: var(--flag-yellow); }

/* Article du jour */
.daily { background: #fff; border: 1px solid var(--line); border-left: 5px solid var(--flag-yellow); border-radius: var(--radius-lg); padding: 1.4rem 1.5rem; }
.daily h2 a { color: var(--forest-dark); }
.daily__text { font-family: Georgia, "Times New Roman", serif; }

/* Catégories avec icônes */
.catgrid { gap: .9rem; }
@media (min-width: 1100px) { .catgrid { grid-template-columns: repeat(4, 1fr); } }
.cat { border-radius: 16px; padding: 1rem 1.1rem; gap: .9rem; transition: transform .2s, box-shadow .2s, border-color .2s; }
.cat:hover { border-color: var(--forest-2); box-shadow: var(--shadow); transform: translateY(-2px); }
.cat__ico { width: 44px; height: 44px; border-radius: 12px; background: var(--forest-soft); color: var(--forest); display: grid; place-items: center; flex: none; }
.cat__num { color: var(--forest-2); font-family: var(--title); }
.catgrid--icons .cat__name { display: grid; font-size: .93rem; }
.catgrid--icons .cat__count { margin: 2px 0 0; font-weight: 400; }

/* Bandeau signalement */
.report-band { position: relative; overflow: hidden; display: grid; gap: 1.25rem; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.6rem 1.6rem 1.6rem 2rem; box-shadow: var(--shadow); }
.report-band::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: linear-gradient(180deg, var(--flag-red), var(--flag-yellow), var(--flag-green)); }
@media (min-width: 900px) { .report-band { grid-template-columns: auto 1fr auto; gap: 1.75rem; } }
.report-band__ico { width: 64px; height: 64px; border-radius: 18px; background: var(--red-soft); color: var(--flag-red); display: grid; place-items: center; }
.report-band__ico .ico { width: 32px; height: 32px; }
.report-band h2 { font-size: 1.35rem; margin-bottom: .35rem; }
.report-band p { color: var(--ink-2); margin: 0; }
.report-band__actions { display: flex; flex-wrap: wrap; gap: .6rem; }
@media (min-width: 900px) { .report-band__actions { flex-direction: column; } }

/* Fiches pratiques, CTA */
.guide-card { border-radius: 18px; transition: transform .2s, box-shadow .2s, border-color .2s; }
.guide-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--forest-2); }
.guide-card__ico { width: 40px; height: 40px; border-radius: 12px; background: var(--gold-soft); color: #8a6500; display: grid; place-items: center; margin-bottom: .8rem; }
.cta-card { border-radius: var(--radius-lg); background: linear-gradient(135deg, #fff, #f1f8f4); }

/* Bandeau des engagements */
.features { background: var(--forest-soft); border-top: 1px solid var(--line); margin-top: 3rem; margin-bottom: -3rem; }
.features__in { display: grid; gap: 1.1rem; grid-template-columns: repeat(2, 1fr); padding-top: 1.6rem; padding-bottom: 1.6rem; }
@media (min-width: 900px) { .features__in { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1180px) { .features__in { grid-template-columns: repeat(5, 1fr) 1.2fr; gap: 0; align-items: center; } .feature { padding: 0 1rem; border-right: 1px solid #c4dccf; } }
.feature { display: flex; align-items: center; gap: .7rem; font-size: .8rem; color: var(--ink-2); line-height: 1.35; }
.feature .ico { width: 32px; height: 32px; color: var(--forest); flex: none; }
.feature strong { display: block; color: var(--ink); font-size: .85rem; }
.features__sign { display: none; margin: 0; font-family: var(--title); font-style: italic; font-weight: 600; font-size: 1.25rem; color: var(--forest); text-align: right; line-height: 1.15; transform: rotate(-3deg); }
.features__sign small { font-size: .9rem; font-weight: 600; }
@media (min-width: 1180px) { .features__sign { display: block; } }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--forest-dark); color: #b9d4c5; border-top: 0; padding-top: 3rem; }
.site-footer__grid a { color: #b9d4c5; }
.site-footer__grid a:hover { color: #fff; }
@media (min-width: 760px) { .site-footer__grid { grid-template-columns: 1.4fr 1fr 1fr 1fr 1.2fr; } }
@media (min-width: 760px) and (max-width: 1000px) { .site-footer__grid { grid-template-columns: 1fr 1fr 1fr; } }
.site-footer__h { color: #fff; font-family: var(--title); font-size: .95rem; text-transform: none; letter-spacing: 0; }
.site-footer .brand__name { color: #fff; }
.site-footer .brand__tag { color: #9fc3b0; }
.site-footer .brand__mark { background: rgba(255,255,255,.08); color: var(--flag-yellow); }
.site-footer__grid .brand { display: inline-flex; }
.site-footer__about { font-size: .875rem; color: #b9d4c5; margin: .2rem 0 1rem; }
.site-footer__social { display: inline-grid !important; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.08); color: #fff !important; }
.site-footer__social:hover { background: var(--flag-yellow); color: var(--forest-dark) !important; }
.site-footer__grid .btn { display: inline-flex; padding: .55rem .9rem; }
.site-footer__legal { color: #8fb3a0; border-top-color: rgba(255,255,255,.1); }

/* ---------- Composants partagés par toutes les pages ---------- */
.card { border-radius: var(--radius-lg); box-shadow: 0 1px 2px rgba(6,61,39,.04); }
.pillar, .pro-card, .text-item, .stat { border-radius: 16px; }
.text-item { transition: box-shadow .2s, border-color .2s; }
.text-item:hover { border-color: var(--forest-soft); box-shadow: var(--shadow); }
.text-item__title, .law-head__title, .doc-head h1 { font-family: var(--title); }
.text-item__title a:hover { color: var(--forest); }
.badge--green { background: var(--forest-soft); color: var(--forest-ink); }
.doc-head, .law-head, .dash-head { background: linear-gradient(180deg, #eef7f2, #e3f2ea); border-bottom: 1px solid var(--line); }
.report-hero { background: linear-gradient(135deg, var(--forest), var(--forest-dark)); }
.retain { background: linear-gradient(135deg, #fffbea, #fff4c9); border-color: #f3e2a0; }
.filter-links a { border-radius: 10px; }
.filter-links a[aria-current] { background: var(--forest); color: #fff; }
.pagination a, .pagination span { border-radius: 12px; }
.action { transition: border-color .15s, background .15s; }
.action:hover { border-color: var(--forest-2); color: var(--forest); }
.side-nav a[aria-current] { color: var(--forest); }
.table th { background: var(--surface-2); }
.bottom-nav a[aria-current] { color: var(--forest); }
input:focus, select:focus, textarea:focus { border-color: var(--forest-2); box-shadow: 0 0 0 4px rgba(15,122,76,.12); }
.auth-wrap .card { box-shadow: var(--shadow); }
.input-code { border-radius: 14px; font-family: var(--title); }
:focus-visible { outline-color: var(--flag-yellow); }
.site-footer__grid a.btn--gold, .site-footer__grid a.btn--gold:hover { color: var(--forest-dark); }
