:root {
  --blue: #1f4e99;
  --navy: #0f2f6b;
  --navy-dark: #0b2250;
  --btn: #2a5ca8;
  --btn-hover: #1f4a8a;
  --gold: #c9a878;
  --ink: #1b1b1b;
  --muted: #565c65;
  --line: #dfe1e2;
  --bg: #fff;
  --tint: #f4f5f7;
  --amber: #ffc72c;
  --amber-dark: #6b4a00;
  --serif: "Playfair Display", "Iowan Old Style", Georgia, "Times New Roman", serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 70px; }
body {
  margin: 0; color: var(--ink); background: var(--bg);
  font-family: "Source Sans 3", "Source Sans Pro", -apple-system, "Segoe UI", Arial, sans-serif;
  font-size: 18px; line-height: 1.5;
}
a { color: var(--btn); }
h1, h2, h3 { text-wrap: balance; font-family: var(--serif); font-weight: 600; line-height: 1.2; margin: 0; }
p { margin: 0; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 860px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; left: -999px; top: 0; background: #fff; padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }
:focus-visible { outline: 3px solid #2491ff; outline-offset: 2px; }

/* ---------- Bandeau RP (clair, sobre, mais lisible) ---------- */
.rp-banner { background: #fff; color: #000; font-size: 12.5px; border-bottom: 1px solid var(--line); }
.rp-banner-inner { display: flex; align-items: center; min-height: 26px; padding-top: 3px; padding-bottom: 3px; }
.rp-arrow { flex: none; width: 15px; height: 8px; margin-right: 8px; color: #000; transition: transform .25s ease; }
/* Bandeau déplié (« En savoir plus ») : la flèche pivote vers le bas. */
.rp-banner.is-open .rp-arrow { transform: rotate(90deg); }
/* Zone cliquable autour de la flèche, un peu plus grande que le dessin. */
.rp-arrow-btn { flex: none; display: flex; align-items: center; background: none; border: 0; padding: 6px 4px; margin: -6px 4px -6px -4px; color: inherit; cursor: pointer; }
.rp-arrow-btn .rp-arrow { margin-right: 0; }
@media (prefers-reduced-motion: reduce) { .rp-arrow { transition: none; } }
.rp-banner p { line-height: 1.25; }
.rp-banner strong { color: #000; font-weight: 700; }
.rp-banner-inner p { flex: 1; }
.lang { position: relative; flex: none; margin-left: 16px; }
.lang-btn { display: flex; align-items: center; gap: 6px; height: 20px; padding: 0 6px 0 7px; font: inherit; font-size: 12.5px; background: #fff; border: 1px solid #c3c8cf; border-radius: 4px; color: #000; cursor: pointer; transition: border-color .15s, background .15s; }
.lang-btn:hover, .lang-btn[aria-expanded=true] { background: var(--tint); border-color: #8d95a0; }
.flag { width: 14px; height: 9.33px; display: block; flex: none; border-radius: 1.5px; box-shadow: 0 0 0 .5px rgba(0,0,0,.25); }
.chev { width: 7px; height: 4px; flex: none; transition: transform .15s; }
.lang-btn[aria-expanded=true] .chev { transform: rotate(180deg); }
.lang-menu { position: absolute; right: 0; top: calc(100% + 6px); z-index: 40; min-width: 130px; background: #fff; border: 1px solid var(--line); border-radius: 6px; box-shadow: 0 8px 24px rgba(15,47,107,.14); padding: 4px; }
.lang-menu[hidden] { display: none; }
.lang-menu button { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; background: none; border: 0; border-radius: 4px; padding: 6px 8px; font: inherit; font-size: 12.5px; color: var(--ink); text-align: left; cursor: pointer; }
.lang-menu button:hover { background: var(--tint); }
.lang-menu button[aria-checked=true] { font-weight: 700; }
.linklike { background: none; border: 0; padding: 0; margin-left: 6px; font: inherit; font-weight: 600; color: #000; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.rp-details { background: #fafbfc; border-top: 1px solid var(--line); font-size: 14px; padding: 10px 0 14px; }
.rp-details ul { margin: 0; padding-left: 22px; }
.rp-details li { margin: 4px 0; }

/* ---------- En-tête bleu, fin ---------- */
.top { background: linear-gradient(180deg, #235aae, var(--blue)); color: #fff; }
.top-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 68px; }
.logo { display: flex; align-items: center; gap: 14px; color: #fff; text-decoration: none; flex: none; }
.seal { width: 46px; height: 46px; display: block; filter: drop-shadow(0 1px 2px rgba(0,0,0,.25)); }
.logo-name { display: flex; flex-direction: column; gap: 3px; white-space: nowrap; }
.brand-title { font-family: "Source Sans 3", "Source Sans Pro", -apple-system, "Segoe UI", Arial, sans-serif; font-weight: 600; font-size: 15px; letter-spacing: .04em; text-transform: uppercase; line-height: 1.05; }
.brand-sub { font-family: "Jost", "Helvetica Neue", Arial, sans-serif; font-weight: 300; font-size: 9.5px; letter-spacing: .16em; text-transform: uppercase; line-height: 1; opacity: .75; }
.tools { display: flex; align-items: center; gap: 12px; }
.top-links { display: flex; align-items: center; gap: 4px; margin-right: 8px; }
.top-links a { color: #fff; text-decoration: none; font-weight: 600; font-size: 14px; padding: 6px 10px; border-radius: 6px; transition: background .15s; }
.top-links a:hover { background: rgba(255,255,255,.14); }
.search { display: flex; }
.search input { width: 170px; height: 36px; border: 1px solid rgba(255,255,255,.55); border-right: 0; border-radius: 6px 0 0 6px; padding: 0 12px; font: inherit; font-size: 14px; background: #fff; color: var(--ink); }
.search button { width: 40px; height: 36px; border: 1px solid rgba(255,255,255,.55); background: #fff; color: var(--navy); border-radius: 0 6px 6px 0; cursor: pointer; padding: 0; }
.search svg { width: 18px; height: 18px; }
.signin { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 36px; color: #fff; border: 1px solid rgba(255,255,255,.55); border-radius: 6px; transition: background .15s, border-color .15s, color .15s; }
.signin svg { width: 22px; height: 22px; }
.signin:hover, .signin[aria-expanded=true] { background: #fff; border-color: #fff; color: var(--navy); }
button.signin { position: relative; background: none; padding: 0; cursor: pointer; font: inherit; }
.acc-dot { position: absolute; top: 5px; right: 5px; width: 7px; height: 7px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 2px var(--blue); }
.acc-dot[hidden] { display: none; }
/* Notifications : pastille rouge avec le nombre de non lues sur le bouton du compte (app.js). */
.acc-badge { position: absolute; top: -8px; right: -8px; z-index: 1; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px;
  background: #e5262b; color: #fff; font: 800 11.5px/20px "Source Sans 3", sans-serif; text-align: center; box-shadow: 0 0 0 2px var(--blue), 0 3px 8px rgba(0,0,0,.35); }
.acc-badge[hidden] { display: none; }
.acc-badge::after { content: ""; position: absolute; inset: 0; border-radius: inherit; border: 2px solid #ff6b6f; opacity: 0; pointer-events: none; }
.acc-badge.pop { animation: notif-pop .6s cubic-bezier(.34,1.8,.64,1); }
.acc-badge.pop::after { animation: notif-ring 1.6s ease-out .3s 3; }
@keyframes notif-pop { 0% { transform: scale(0); } 100% { transform: scale(1); } }
@keyframes notif-ring { 0% { opacity: .9; transform: scale(1); } 100% { opacity: 0; transform: scale(2.4); } }
.signin.has-notif { border-color: #ff9a9d; }
/* Connexion avec Discord (fenêtre de connexion, app.js). */
#auth-form[hidden], .auth .auth-switch[hidden], .auth-dc[hidden], .auth-dc [hidden], .auth-dc-who[hidden] { display: none !important; }
.auth-dc { display: grid; gap: 10px; margin: 4px 0 14px; }
.auth-dc-btn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; font: inherit; font-weight: 700; font-size: 16px; padding: 12px 18px; }
.auth-dc-btn svg { width: 22px; height: 22px; flex: none; }
.auth-or { display: flex; align-items: center; gap: 12px; margin: 2px 0 0; color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: .08em; }
.auth-or::before, .auth-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.auth-dc-only { margin: 0; font-size: 14px; color: #3b4048; line-height: 1.45; }
.auth-dc-kicker { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); text-align: center; }
/* Comptes Discord : la connexion avec Discord est mise en avant. */
.auth-dc.only { padding: 18px 16px 16px; border-radius: 12px; background: linear-gradient(180deg, #f1f2ff, #fff); border: 1px solid #d9dcfb; }
.auth-dc.only .auth-dc-btn { font-size: 17px; padding: 15px 18px; box-shadow: 0 10px 24px rgba(88,101,242,.35); }
.auth-dc.only .auth-dc-btn:hover { box-shadow: 0 14px 30px rgba(88,101,242,.45); }
.auth-dc.only .auth-dc-only { text-align: center; font-size: 13.5px; }
.auth-gov-note { margin: 0 0 12px; padding: 9px 12px; border-radius: 8px; background: #f3f5f9; border-left: 3px solid var(--navy); font-size: 13.5px; color: #3b4048; }
.auth-gov-note[hidden], #auth .auth-note[hidden] { display: none; }
/* Comptes Discord : entreprise choisie parmi celles rattachées par l'IRS. */
.decl-form select.js-linked-co { width: 100%; }
.biz-card.biz-linked { display: grid; gap: 4px; }
.biz-card.biz-linked .biz-head { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; width: 100%; background: none; border: 0; padding: 0; font: inherit; text-align: left; cursor: pointer; color: inherit; }
.biz-card.biz-linked .biz-head strong { font-family: var(--serif); font-size: 18px; color: var(--navy); }
.biz-card.biz-linked .biz-head span { font-size: 14px; color: var(--muted); grid-column: 1; }
.biz-card.biz-linked .biz-edit { grid-row: 1 / span 2; grid-column: 2; align-self: center; font-style: normal; font-size: 14px; font-weight: 600; color: var(--btn); }
.biz-card.biz-linked .biz-head:hover .biz-edit { text-decoration: underline; }
.biz-card.biz-linked .biz-head[aria-expanded=true] .biz-edit { visibility: hidden; }
.biz-card.biz-linked .biz-body { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.biz-card.biz-linked .biz-body[hidden] { display: none; }
.linked-co-note { margin: 6px 0 0; font-size: 13px; color: var(--muted); }
.decl-form.linked-off { opacity: .5; filter: grayscale(1); pointer-events: none; user-select: none; }
.linked-off-note { margin: 0 0 16px; padding: 12px 14px; border-radius: 8px; background: #fdf3e3; border-left: 4px solid var(--gold); color: #5b4a26; font-size: 15px; }
.linked-off-note[hidden] { display: none; }
.linked-co-note.none { padding: 10px 12px; border-radius: 8px; background: #fdf3e3; border-left: 3px solid var(--gold); color: #5b4a26; font-size: 14px; }
.auth-dc-who { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; padding: 10px 12px; border-radius: 8px; background: #eef0fe; color: #2c3487; font-size: 14px; }
.auth-dc-who svg { width: 22px; height: 22px; flex: none; color: #5865f2; }
/* Liste dans le menu du compte. */
.acc-menu:has(.acc-notifs:not([hidden])) { width: min(350px, calc(100vw - 24px)); }
.acc-notifs { margin: 0 0 4px; padding-bottom: 4px; border-bottom: 1px solid var(--line); }
.acc-cos { margin: 0 0 4px; padding-bottom: 4px; border-bottom: 1px solid var(--line); }
.acc-cos[hidden] { display: none; }
.acc-menu a.acc-co { display: grid; gap: 1px; }
.acc-co span { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.acc-co strong { color: var(--navy); }
.ent-pick { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.ent-pick[hidden] { display: none; }
.ent-pick a { padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; color: var(--navy); font-weight: 600; font-size: 15px; }
.ent-pick a[aria-current=page] { background: var(--navy); border-color: var(--navy); color: #fff; }
#ent-pay .co-remun-pick { margin: 6px 0 10px; }

.acc-notifs-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 4px 10px 6px; }
.acc-notifs-head strong { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.acc-menu .acc-notifs-all { width: auto; padding: 2px 6px; font-size: 12.5px; color: var(--btn); font-weight: 600; }
.acc-notifs-list { max-height: min(340px, 50vh); overflow-y: auto; overscroll-behavior: contain; }
.acc-menu a.acc-notif { display: grid; gap: 2px; padding: 9px 10px 9px 14px; margin: 2px 0; border-left: 3px solid transparent; border-radius: 4px; }
.acc-menu a.acc-notif.unread { background: #fdf1f1; border-left-color: #e5262b; }
.acc-menu a.acc-notif.unread:hover { background: #fbe4e4; }
.acc-notif-t { font-weight: 700; font-size: 14px; color: var(--navy); }
.acc-notif.unread .acc-notif-t::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: #e5262b; vertical-align: 1px; }
.acc-notif-b { font-size: 13px; color: #3b4048; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.acc-notif-b code { font-size: 12px; }
.acc-notif-d { font-size: 11.5px; color: var(--muted); }
.acc-notifs-none { margin: 0; padding: 8px 10px 10px; font-size: 13.5px; color: var(--muted); }
/* Message d'arrivée quand il y a de nouvelles notifications. */
.notif-toast { position: fixed; top: 86px; right: 20px; z-index: 65; display: flex; align-items: center; gap: 12px; max-width: min(380px, calc(100vw - 32px)); padding: 12px 14px;
  background: #fff; color: var(--ink); border-radius: 10px; border-left: 4px solid #e5262b; box-shadow: 0 14px 36px rgba(11,34,80,.28); animation: toast-in .5s cubic-bezier(.16,1,.3,1); }
.notif-toast.out { opacity: 0; transform: translateX(24px); transition: opacity .35s, transform .35s; }
.notif-toast-ico { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: #fdecec; color: #e5262b; }
.notif-toast-ico svg { width: 20px; height: 20px; }
.notif-toast > span:nth-child(2) { display: grid; gap: 1px; font-size: 14px; min-width: 0; }
.notif-toast-sub { font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.notif-toast .btn { flex: none; }
@keyframes toast-in { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: none; } }
@media (max-width: 640px) { .notif-toast { top: auto; bottom: 88px; right: 16px; left: 16px; max-width: none; } }

/* ---------- Menu du compte ---------- */
.account { position: relative; }
.acc-menu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 40; min-width: 200px; background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: 6px; box-shadow: 0 8px 24px rgba(15,47,107,.18); padding: 4px; }
.acc-menu[hidden], .acc-menu [hidden] { display: none; }
.acc-menu button, .acc-menu a { display: block; text-decoration: none; width: 100%; background: none; border: 0; border-radius: 4px; padding: 8px 10px; font: inherit; font-size: 14px; color: var(--ink); text-align: left; cursor: pointer; }
.acc-menu button:hover, .acc-menu a:hover { background: var(--tint); }
.acc-who { display: flex; flex-direction: column; padding: 8px 10px 10px; margin-bottom: 4px; border-bottom: 1px solid var(--line); font-size: 14px; line-height: 1.3; }
.acc-who span { color: var(--muted); font-size: 13px; }
.acc-role { align-self: flex-start; margin-top: 6px; font-style: normal; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--navy); background: #e6edf8; border-radius: 3px; padding: 2px 6px; }
.acc-role[hidden] { display: none; }

/* ---------- Fenêtre de connexion ---------- */
.auth { width: min(420px, calc(100vw - 32px)); border: 0; border-radius: 10px; padding: 28px; box-shadow: 0 24px 60px rgba(11,34,80,.35); color: var(--ink); }
.auth::backdrop { background: rgba(11,34,80,.45); backdrop-filter: blur(2px); }
.auth-x { position: absolute; top: 12px; right: 12px; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; background: none; border: 0; border-radius: 6px; color: var(--muted); cursor: pointer; }
.auth-x:hover { background: var(--tint); color: var(--ink); }
.auth-x svg { width: 14px; height: 14px; }
.auth-head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.auth-head h2 { font-size: 24px; }
.auth-note { font-size: 13px; color: var(--muted); background: var(--tint); border-radius: 6px; padding: 8px 10px; margin-bottom: 16px; }
#auth-form label { display: block; margin-bottom: 12px; }
#auth-form label[hidden], #auth-form p[hidden], #auth-form div[hidden] { display: none; }
.f-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
#auth-form label > span:not(.pw-field) { display: block; font-size: 14px; font-weight: 600; margin-bottom: 4px; }
#auth-form input { width: 100%; height: 40px; border: 1px solid #c3c8cf; border-radius: 6px; padding: 0 12px; font: inherit; font-size: 15px; }
#auth-form select { width: 100%; height: 40px; border: 1px solid #c3c8cf; border-radius: 6px; padding: 0 8px; font: inherit; font-size: 15px; background: #fff; color: var(--ink); }
#auth-form select:focus { outline: none; border-color: var(--btn); box-shadow: 0 0 0 3px rgba(42,92,168,.2); }
#auth-form select:disabled, .decl-form select:disabled { background: #f3f4f6; color: var(--muted); }
#auth-form input:focus { outline: none; border-color: var(--btn); box-shadow: 0 0 0 3px rgba(42,92,168,.2); }
.auth-hint { font-size: 12.5px; color: var(--muted); margin: -4px 0 12px; }
.auth-hint.f-setup { margin: 0 0 12px; color: var(--ink); background: #e6edf8; border-radius: 6px; padding: 8px 10px; font-size: 13px; }
.auth-err { font-size: 14px; color: #b50909; background: #fdecec; border-radius: 6px; padding: 8px 10px; margin-bottom: 12px; }
.auth-submit { width: 100%; cursor: pointer; font: inherit; font-weight: 700; margin-top: 4px; }
.auth-switch { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px 10px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.auth-switch .btn { font: inherit; font-size: 14px; font-weight: 700; padding: 7px 16px; cursor: pointer; }
.auth-submit:disabled { opacity: .6; cursor: wait; }
.search-msg { font-size: 13px; color: #dbe6f7; padding-bottom: 8px; }

/* ---------- Barre de navigation ---------- */
.navbar { background: var(--navy); position: sticky; top: 0; z-index: 20; box-shadow: 0 2px 6px rgba(0,0,0,.18); }
.navbar-inner { display: flex; align-items: center; min-height: 40px; }
.menu { display: flex; margin-left: -13px; }
.menu a { position: relative; display: flex; align-items: center; height: 40px; padding: 0 13px; color: #fff; text-decoration: none; font-weight: 600; font-size: 14px; }
.menu a::after { content: ""; position: absolute; left: 13px; right: 13px; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: var(--gold); transform: scaleX(0); transition: transform .18s ease; }
.menu a:hover::after, .menu a:focus-visible::after { transform: scaleX(1); }
.menu a.m-only { display: none; }
.burger { display: none; align-items: center; gap: 0; background: none; border: 0; padding: 10px 0; cursor: pointer; color: #fff; }
.burger span { display: block; width: 22px; height: 2px; background: #fff; border-radius: 2px; }
.burger { flex-direction: column; align-items: flex-start; }

/* ---------- Barre collée (au défilement) ---------- */
.nav-logo, .nav-search { display: none; }
.nav-logo { align-items: center; gap: 8px; margin-right: 18px; color: #fff; text-decoration: none; flex: none; }
.nav-logo img { width: 24px; height: 24px; display: block; }
.nav-logo span { font-weight: 600; font-size: 15px; letter-spacing: .06em; }
.nav-search { margin-left: auto; }
.nav-search input { width: 150px; height: 28px; font-size: 13px; }
.nav-search button { width: 32px; height: 28px; }
.nav-search svg { width: 15px; height: 15px; }
.navbar.stuck .nav-logo, .navbar.stuck .nav-search { display: flex; animation: nav-in .2s ease; }
.navbar.stuck .menu { margin-left: 0; }
@keyframes nav-in { from { opacity: 0; transform: translateY(-3px); } to { opacity: 1; transform: none; } }

/* ---------- Hero ---------- */
.hero { background: linear-gradient(#fafafa, #f0f0f0); overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1fr 1fr 360px; gap: 24px; align-items: center; padding-top: 56px; padding-bottom: 56px; }
.hero h1 { font-size: 50px; font-weight: 600; letter-spacing: -.3px; line-height: 1.15; margin-bottom: 24px; }
.hero-lead { font-size: 20px; margin-bottom: 20px; max-width: 460px; }
.checks { list-style: none; padding: 0; margin: 0 0 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; max-width: 420px; font-weight: 600; font-size: 17px; }
.checks li { display: flex; align-items: center; gap: 8px; }
.checks svg { width: 20px; height: 20px; color: var(--navy); flex: none; }
.btn { display: inline-block; background: var(--btn); color: #fff; font-weight: 700; font-size: 17px; text-decoration: none; padding: 12px 22px; border-radius: 4px; border: 2px solid var(--btn); }
.btn:hover { background: var(--btn-hover); border-color: var(--btn-hover); }
.btn-outline { background: #fff; color: var(--btn); }
/* Boutons à contour : au survol, ils se remplissent de la couleur de leur bordure. */
.btn-outline:hover, .btn-outline:focus-visible { background: var(--btn); border-color: var(--btn); color: #fff; }
.hero-note { margin-top: 12px; font-size: 14px; color: var(--muted); }
.hero-art svg { width: 100%; max-width: 360px; display: block; margin: 0 auto; }
.app-card { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 24px; text-align: center; box-shadow: 0 4px 16px rgba(0,0,0,.06); }
.app-card h2 { font-size: 23px; font-weight: 600; margin-bottom: 10px; }
.app-card p { font-size: 15px; color: var(--muted); margin-bottom: 18px; }
.phone { width: 210px; margin: 0 auto 18px; background: #111; border-radius: 30px; padding: 8px; }
.phone-screen { background: var(--blue); border-radius: 23px; padding: 30px 16px 18px; color: #fff; }
.phone-logo { display: flex; align-items: center; justify-content: center; gap: 8px; font-family: var(--serif); font-weight: 600; font-size: 26px; letter-spacing: 1px; margin-bottom: 20px; }
.phone-logo img { width: 34px; height: 34px; }
.phone-logo em { font-style: normal; background: #fff; color: var(--navy); font-size: 13px; padding: 2px 6px; border-radius: 3px; }
.phone-btn { border: 1.5px solid #fff; border-radius: 20px; font-size: 12px; font-weight: 700; padding: 8px 6px; }
.phone-btn.solid { background: #fff; color: var(--blue); }
.phone-or { font-size: 11px; margin: 7px 0; }
.phone-rp { margin-top: 20px; background: var(--amber); color: #1b1300; font-size: 9px; font-weight: 900; letter-spacing: .5px; padding: 4px; border-radius: 3px; }

/* ---------- Bandeau d'aide ---------- */
.help-strip { border-bottom: 1px solid var(--line); }
.help-strip-inner { display: grid; grid-template-columns: 1fr 2fr; gap: 24px; align-items: center; padding-top: 32px; padding-bottom: 32px; }
.help-strip h2 { font-size: 27px; font-weight: 600; padding-left: 20px; border-left: 4px solid var(--gold); }
.help-strip p { margin-bottom: 8px; }
.help-strip a { font-weight: 700; }

/* ---------- Sections ---------- */
.section { padding: 64px 0; }
.section.tint { background: var(--tint); }
.section-title { text-align: center; font-size: 34px; font-weight: 600; margin-bottom: 40px; }
.section-title::after { content: ""; display: block; width: 72px; height: 4px; background: var(--gold); margin: 14px auto 0; transform-origin: 50% 50%; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.card { display: block; background: var(--tint); border: 1px solid var(--line); border-radius: 8px; padding: 28px; text-decoration: none; color: var(--ink); transition: background-color .2s, border-color .2s, color .2s, box-shadow .2s, transform .2s; }
/* Survol (et focus clavier) : la carte passe en bleu, texte et icône en blanc, sans soulignement. */
.card:hover, .card:focus-visible { background: var(--btn); border-color: var(--btn); color: #fff; box-shadow: 0 10px 24px rgba(15,47,107,.28); transform: translateY(-2px); }
.card:hover p, .card:focus-visible p, .card:hover .ci, .card:focus-visible .ci { color: #fff; }
.card:hover .ci, .card:focus-visible .ci { --ci-inner: var(--btn); }  /* détails de l'icône en bleu sur fond blanc */
.card p, .card .ci { transition: color .2s, transform .25s var(--ease-out, ease); }
.ci { width: 34px; height: 34px; color: var(--btn); margin-bottom: 12px; }
.card h3 { font-size: 22px; font-weight: 600; margin-bottom: 8px; }
.card p { font-size: 17px; color: #33373d; }

/* ---------- Onglets + accordéon ---------- */
.tabs { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px 28px; border-bottom: 2px solid var(--line); max-width: 780px; margin: 0 auto 28px; }
.tabs button { background: none; border: 0; border-bottom: 3px solid transparent; margin-bottom: -2px; font: inherit; font-size: 16px; font-weight: 600; color: var(--btn); padding: 10px 2px; cursor: pointer; }
.tabs button[aria-selected=true] { color: var(--ink); font-weight: 700; border-bottom-color: var(--navy); }
.panel { max-width: 780px; margin: 0 auto; border: 1px solid var(--line); background: #fff; }
.panel[hidden] { display: none; }
details { border-top: 1px solid var(--line); }
details:first-child { border-top: 0; }
summary { list-style: none; cursor: pointer; font-weight: 700; font-size: 18px; padding: 15px 20px 15px 52px; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::before { content: ""; position: absolute; left: 22px; top: 50%; width: 9px; height: 9px; border-right: 3px solid var(--btn); border-bottom: 3px solid var(--btn); transform: translateY(-70%) rotate(45deg); transition: transform .15s; }
details[open] summary::before { transform: translateY(-30%) rotate(-135deg); }
summary:hover { background: var(--tint); }
details p { padding: 0 20px 18px 52px; color: #33373d; font-size: 17px; }

/* ---------- Actualités ---------- */
.news { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.news article { border-top: 4px solid var(--navy); padding-top: 16px; }
.news time { display: block; font-size: 14px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 6px; }
.news h3 { font-size: 21px; margin-bottom: 8px; }
.news p { font-size: 16px; color: #33373d; }

/* ---------- Encart À propos ---------- */
.notice { display: flex; gap: 20px; background: #fff8dd; border: 2px solid #e0a800; border-left-width: 10px; border-radius: 6px; padding: 28px; }
.notice .ico { flex: none; width: 44px; height: 44px; color: var(--amber); filter: drop-shadow(0 0 0 #1b1300); }
.notice h2 { font-size: 30px; margin-bottom: 12px; }
.notice p { margin-bottom: 12px; }
.notice ul { margin: 0; padding-left: 22px; }
.notice li { margin: 6px 0; }

/* ---------- Pied de page ---------- */
.footer { background: var(--navy); color: rgba(255,255,255,.8); font-size: 13px; line-height: 1.5; }
.footer a { color: rgba(255,255,255,.92); text-decoration: none; transition: color .15s; }
.footer a:hover { color: #fff; }
.footer-main { display: flex; align-items: center; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap; padding: 22px 0 18px; }
.footer-brand { display: flex; align-items: center; gap: 12px; color: #fff; }
.footer-brand .seal { width: 32px; height: 32px; }
.footer-brand .brand-title { font-size: 13px; }
.footer-brand .brand-sub { font-size: 8.5px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 4px 22px; font-size: 13.5px; font-weight: 600; }
.footer-legal { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px 32px; padding: 14px 0 20px; border-top: 1px solid rgba(255,255,255,.18); font-size: 12px; }
.footer-legal p { max-width: 760px; }
.footer-legal strong { color: rgba(255,255,255,.9); font-weight: 600; }
.footer-copy { flex: none; white-space: nowrap; }
.footer-copy span { margin: 0 6px; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .hero-inner { grid-template-columns: 1fr 340px; }
  .hero-art { display: none; }
}
@media (max-width: 1100px) {
  .search input { width: 130px; }
}
@media (max-width: 980px) {
  .burger { display: flex; flex-direction: row; align-items: center; gap: 10px; font-weight: 600; }
  .burger span { display: none; }
  .burger::before { content: ""; width: 22px; height: 14px; background: linear-gradient(#fff 0 2px, transparent 2px 6px, #fff 6px 8px, transparent 8px 12px, #fff 12px 14px); }
  .burger em { font-style: normal; font-size: 16px; }
  .navbar-inner { flex-wrap: wrap; padding-top: 2px; }
  .menu { display: none; width: 100%; flex-direction: column; padding-bottom: 6px; margin-left: 0; }
  .menu.open { display: flex; }
  .menu a { height: auto; border-bottom: 1px solid rgba(255,255,255,.15); padding: 12px 2px; font-size: 15px; }
  .menu a::after { display: none; }
  .search, .navbar.stuck .nav-search { display: none; }
  .top-links { display: none; }
  .nav-logo { order: -1; }
  .menu a.m-only { display: flex; }
}
@media (max-width: 860px) {
  body { font-size: 17px; }
  .hero-inner { grid-template-columns: 1fr; padding-top: 36px; padding-bottom: 36px; }
  .hero h1 { font-size: 36px; }
  .cards, .news { grid-template-columns: 1fr; }
  .help-strip-inner { grid-template-columns: 1fr; }
  .footer-legal { flex-direction: column; }
  .help-strip h2 { font-size: 24px; }
  .notice { flex-direction: column; padding: 20px; }
  .section { padding: 44px 0; }
  .section-title { font-size: 28px; }
  .tabs { gap: 2px 16px; }
  .rp-banner-inner { align-items: flex-start; }
}
@media (max-width: 520px) {
  .seal { width: 38px; height: 38px; }
  .logo { gap: 10px; }
  .brand-title { font-size: 13px; letter-spacing: .03em; }
  .brand-sub { font-size: 8px; letter-spacing: .12em; }
}

/* ---------- Pages intérieures ---------- */
.page-hero { background: linear-gradient(#fafafa, #f0f0f0); border-bottom: 1px solid var(--line); padding: 36px 0 40px; }
.crumbs { display: flex; gap: 8px; font-size: 14px; color: var(--muted); margin-bottom: 14px; }
.crumbs a { color: var(--btn); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.page-hero h1 { font-size: 44px; margin-bottom: 12px; }
.page-lead { font-size: 20px; color: #33373d; max-width: 680px; }
.page-layout { display: grid; grid-template-columns: 220px 1fr; gap: 56px; padding-top: 48px; padding-bottom: 72px; align-items: start; }
.toc { position: sticky; top: 64px; font-size: 15px; }
/* Menu latéral collé : il défile seul quand il est plus haut que l'écran, sans entraîner la page. */
@media (min-width: 861px) {
  .toc { max-height: calc(100vh - 80px); overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; padding-right: 6px; }
  /* Barre de défilement invisible (le menu défile toujours à la molette, au doigt et au clavier). */
  .toc { scrollbar-width: none; -ms-overflow-style: none; }
  .toc::-webkit-scrollbar { display: none; }
}
.toc-title { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.toc ol a { display: block; padding: 6px 0 6px 14px; margin-left: -2px; border-left: 2px solid transparent; color: var(--ink); text-decoration: none; }
.toc ol a:hover { color: var(--btn); border-left-color: var(--gold); }
.toc ol a[aria-current]:not([aria-current=false]) { color: var(--navy); font-weight: 700; border-left-color: var(--navy); background: linear-gradient(90deg, #eef2f8, transparent); }
.toc ol a { transition: color .15s, border-color .15s, background-color .15s; }
.prose { max-width: 760px; }
.prose section { margin-bottom: 56px; scroll-margin-top: 64px; }
.prose h2 { font-size: 32px; margin-bottom: 16px; }
.prose h3 { font-size: 20px; margin-bottom: 4px; }
.prose p { margin-bottom: 14px; }
.prose ul { padding-left: 22px; margin: 0 0 14px; }
.prose li { margin: 6px 0; }
.kicker { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); margin-bottom: 8px !important; }
.fiction-note { font-size: 15px; background: #e6edf8; border-radius: 6px; padding: 10px 14px; }
.timeline { list-style: none; margin: 24px 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 96px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.timeline li { display: grid; grid-template-columns: 80px 1fr; gap: 34px; margin-bottom: 22px; position: relative; }
.timeline li::before { content: ""; position: absolute; left: 91px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 2px solid var(--navy); }
.t-year { font-weight: 700; color: var(--navy); font-size: 15px; text-align: right; padding-top: 1px; }
.timeline p { margin: 0; color: #33373d; font-size: 17px; }
.seal-fig { display: flex; gap: 28px; align-items: flex-start; margin: 0; }
.seal-fig img { flex: none; width: 160px; height: 160px; }
.mission-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.mission { background: var(--tint); border: 1px solid var(--line); border-top: 3px solid var(--navy); border-radius: 6px; padding: 18px; }
.mission p { margin: 0; font-size: 16px; color: #33373d; }
.top-links a[aria-current=page] { background: rgba(255,255,255,.14); }
@media (max-width: 860px) {
  .page-hero h1 { font-size: 34px; }
  .page-layout { grid-template-columns: 1fr; gap: 24px; padding-top: 28px; }
  .toc { position: static; }
  .seal-fig { flex-direction: column; }
  .mission-grid { grid-template-columns: 1fr; }
  .timeline::before { left: 7px; }
  .timeline li { grid-template-columns: 1fr; gap: 2px; padding-left: 30px; }
  .timeline li::before { left: 2px; }
  .t-year { text-align: left; }
}

/* ---------- Photos ---------- */
.photo-hero { position: relative; overflow: hidden; background: var(--navy); border-bottom: 0; padding: 72px 0 80px; color: #fff; }
.photo-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.photo-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11,34,80,.92) 0%, rgba(11,34,80,.7) 45%, rgba(11,34,80,.2) 100%); }
.photo-hero .wrap { position: relative; z-index: 1; }
.photo-hero .crumbs, .photo-hero .crumbs a { color: rgba(255,255,255,.85); }
.photo-hero .page-lead { color: rgba(255,255,255,.9); }
.photo { margin: 24px 0 28px; }
.photo img { display: block; width: 100%; height: auto; border-radius: 10px; }
.photo figcaption { margin-top: 8px; font-size: 14px; color: var(--muted); font-style: italic; }
.photo.right { float: right; width: 42%; margin: 4px 0 16px 28px; }
.photo.wide img { aspect-ratio: 16 / 7; object-fit: cover; }
.photo.banner img { aspect-ratio: 16 / 6; object-fit: cover; object-position: center 60%; }
.prose section::after { content: ""; display: block; clear: both; }
.fig-side { display: grid; grid-template-columns: 1fr 280px; gap: 28px; align-items: center; margin-bottom: 8px; }
.fig-side .photo { margin: 0; }
.fig-side .photo img { aspect-ratio: 4 / 3; object-fit: cover; }
.places { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.place { position: relative; margin: 0; border-radius: 10px; overflow: hidden; aspect-ratio: 4 / 5; }
.place img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.place:hover img { transform: scale(1.04); }
.place figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 16px 14px; background: linear-gradient(transparent, rgba(11,34,80,.9)); color: #fff; display: flex; flex-direction: column; }
.place strong { font-family: var(--serif); font-size: 21px; font-weight: 600; }
.place span { font-size: 14px; opacity: .85; }
.mission { padding: 0; overflow: hidden; }
.mission img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.mission h3, .mission p { padding: 0 18px; }
.mission h3 { margin-top: 14px; }
.mission p { padding-bottom: 18px; }
.credits { font-size: 13px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 14px; }
@media (max-width: 860px) {
  .photo.right { float: none; width: 100%; margin: 16px 0; }
  .fig-side { grid-template-columns: 1fr; }
  .places { grid-template-columns: 1fr; }
  .place { aspect-ratio: 16 / 9; }
  .photo-hero::after { background: rgba(11,34,80,.78); }
}
.photo-hero .page-hero-inner { grid-template-columns: 1fr; }
.photo-hero .page-hero-inner > div { max-width: 640px; }

/* ---------- Bandeau RP défilant (au-dessus du pied de page) ---------- */
.rp-ticker { background: var(--amber); color: #1b1300; overflow: hidden; font-size: 13px; line-height: 1; border-top: 1px solid #e0a800; }
.rp-ticker-track { display: flex; width: max-content; animation: rp-scroll 40s linear infinite; }
.rp-ticker:hover .rp-ticker-track { animation-play-state: paused; }
.rp-ticker-seq { display: flex; align-items: center; flex: none; padding: 8px 0; }
.rp-ticker-seq span { white-space: nowrap; }
.rp-ticker-seq strong { font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.rp-ticker-seq i { font-style: normal; margin: 0 22px; opacity: .6; }
@keyframes rp-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .rp-ticker-track { animation: none; width: auto; }
  .rp-ticker-seq { flex-wrap: wrap; white-space: normal; padding: 8px 24px; }
  .rp-ticker-seq + .rp-ticker-seq { display: none; }
}

/* ---------- Page Actualités ---------- */
.news-filters { display: flex; flex-direction: column; border-left: 2px solid var(--line); }
.news-filters button { display: flex; justify-content: space-between; align-items: center; gap: 8px; width: 100%; background: none; border: 0; border-left: 2px solid transparent; margin-left: -2px; padding: 7px 0 7px 14px; font: inherit; font-size: 15px; color: var(--ink); text-align: left; cursor: pointer; }
.news-filters button:hover { color: var(--btn); border-left-color: var(--gold); }
.news-filters button[aria-pressed=true] { color: var(--navy); font-weight: 700; border-left-color: var(--navy); }
.news-filters span { font-size: 12px; font-weight: 600; color: var(--muted); background: var(--tint); border-radius: 999px; padding: 1px 8px; }
.news-feed { min-width: 0; }
.news-meta { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.tag { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--navy); background: #e6edf8; border-radius: 3px; padding: 3px 7px; }
.news-body details { margin-top: 10px; }
.news-body summary { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; font-weight: 700; font-size: 15px; color: var(--btn); list-style: none; }
.news-body summary::-webkit-details-marker { display: none; }
.news-body summary::after { content: "→"; transition: transform .15s; }
.news-body details[open] summary::after { transform: rotate(90deg); }
.news-body details[open] summary { margin-bottom: 8px; }
.news-body details p { color: #33373d; }
.news-feature { display: grid; grid-template-columns: 1.15fr 1fr; background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; margin-bottom: 32px; box-shadow: 0 6px 24px rgba(15,47,107,.08); }
.news-feature img { width: 100%; height: 100%; min-height: 320px; object-fit: cover; display: block; }
.news-feature .news-body { padding: 28px 30px; align-self: center; }
.news-feature h2 { font-size: 30px; margin-bottom: 12px; }
.news-feature p { font-size: 17px; }
.news-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.news-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s; }
.news-card:hover { box-shadow: 0 8px 24px rgba(15,47,107,.12); transform: translateY(-2px); }
.news-card img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.news-card .news-body { padding: 18px 20px 20px; }
.news-card h3 { font-size: 21px; margin-bottom: 8px; }
.news-card p { font-size: 16px; }
.news-feed [hidden] { display: none; }
.news-empty { padding: 40px 0; text-align: center; color: var(--muted); }
.news-feed .credits { margin-top: 40px; }
.news-all { text-align: center; margin-top: 32px; }
:target.news-card, :target.news-feature { outline: 3px solid var(--gold); outline-offset: 3px; }
@media (max-width: 860px) {
  .news-filters { flex-direction: row; flex-wrap: wrap; gap: 6px; border-left: 0; }
  .news-filters button { width: auto; margin: 0; border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; }
  .news-filters button[aria-pressed=true] { background: var(--navy); color: #fff; border-color: var(--navy); }
  .news-filters button[aria-pressed=true] span { background: rgba(255,255,255,.2); color: #fff; }
  .news-feature { grid-template-columns: 1fr; }
  .news-feature img { min-height: 0; aspect-ratio: 16 / 9; height: auto; }
  .news-feature .news-body { padding: 20px; }
  .news-feature h2 { font-size: 24px; }
  .news-grid { grid-template-columns: 1fr; }
}

/* ---------- Page Déclarer ---------- */
.decl-info { margin-top: 28px; padding: 16px; background: var(--tint); border: 1px solid var(--line); border-radius: 10px; font-size: 14px; }
.decl-info p { margin-bottom: 6px; }
.decl-info-note { color: var(--muted); font-size: 13px; margin: 8px 0 0 !important; }
.decl-main { min-width: 0; max-width: 820px; }
.decl-main [hidden] { display: none !important; }
.decl-login { text-align: center; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 44px 32px; box-shadow: 0 6px 24px rgba(15,47,107,.08); }
.decl-login svg { width: 56px; height: 56px; margin-bottom: 12px; }
.decl-login h2 { font-size: 28px; margin-bottom: 10px; }
.decl-login p { color: #33373d; max-width: 520px; margin: 0 auto 22px; }
.decl-login-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.decl-login-actions .btn { cursor: pointer; font: inherit; font-weight: 700; }
.decl-form fieldset { border: 1px solid var(--line); border-radius: 12px; padding: 22px 24px 8px; margin: 0 0 20px; background: #fff; scroll-margin-top: 64px; }
.decl-form legend { display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: 22px; font-weight: 600; padding: 0 8px; margin-left: -8px; }
.step { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: var(--navy); color: #fff; font-family: "Source Sans 3", sans-serif; font-size: 14px; font-weight: 700; }
.optional { font-family: "Source Sans 3", sans-serif; font-style: normal; font-size: 13px; font-weight: 400; color: var(--muted); }
.f-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.f-grid .f-wide { grid-column: 1 / -1; }
.decl-form label { display: block; margin-bottom: 16px; }
.decl-form label > span:first-child { display: block; font-size: 15px; font-weight: 600; margin-bottom: 6px; }
.decl-form input, .decl-form select, .decl-form textarea { width: 100%; height: 44px; border: 1px solid #c3c8cf; border-radius: 6px; padding: 0 12px; font: inherit; font-size: 16px; background: #fff; color: var(--ink); }
.decl-form textarea { height: auto; padding: 10px 12px; resize: vertical; }
.decl-form input:focus, .decl-form select:focus, .decl-form textarea:focus { outline: none; border-color: var(--btn); box-shadow: 0 0 0 3px rgba(42,92,168,.2); }
.decl-form small { display: block; margin-top: 5px; font-size: 13px; color: var(--muted); }
.money { position: relative; display: block; }
.money input { padding-right: 34px; text-align: right; font-variant-numeric: tabular-nums; }
.money em { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-style: normal; color: var(--muted); font-weight: 600; }
.decl-summary { background: var(--tint); border: 1px solid var(--line); border-radius: 10px; padding: 8px 18px; margin: 4px 0 18px; font-variant-numeric: tabular-nums; }
.decl-summary .row { display: flex; justify-content: space-between; padding: 8px 0; font-size: 16px; }
.decl-summary .row + .row { border-top: 1px dashed var(--line); }
.decl-summary .minus strong { color: #565c65; font-weight: 600; }
.decl-summary .total { border-top: 1px solid #aab4c4 !important; font-weight: 700; }
.decl-summary .due { font-size: 20px; }
.decl-summary .due strong { color: var(--navy); font-family: var(--serif); font-size: 26px; }
.neg { color: #b50909 !important; }
.certify { display: flex !important; gap: 10px; align-items: flex-start; font-size: 15px; }
.certify input { width: 18px; height: 18px; margin-top: 2px; flex: none; }
.certify span { font-weight: 400 !important; margin: 0 !important; }
.decl-submit { width: 100%; font: inherit; font-weight: 700; font-size: 17px; cursor: pointer; margin-bottom: 16px; }
.decl-submit:disabled { opacity: .6; cursor: wait; }
.decl-done { display: flex; gap: 18px; align-items: flex-start; background: #eef8f1; border: 1px solid #b7dfc3; border-left: 6px solid #1f7a3f; border-radius: 10px; padding: 22px 24px; margin-bottom: 28px; outline: none; scroll-margin-top: 64px; }
.decl-done svg { width: 44px; height: 44px; flex: none; }
.decl-done h2 { font-size: 26px; margin-bottom: 6px; }
.decl-done p { margin-bottom: 8px; }
.decl-done .btn { font: inherit; font-weight: 700; cursor: pointer; margin-top: 6px; }
.muted { color: var(--muted); }
.decl-history { margin-top: 36px; scroll-margin-top: 64px; }
.decl-history h2 { font-size: 28px; margin-bottom: 14px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; }
.decl-history table { width: 100%; border-collapse: collapse; font-size: 15px; font-variant-numeric: tabular-nums; }
.decl-history th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); background: var(--tint); padding: 10px 10px; }
.decl-history td { padding: 10px 10px; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
.decl-history td.num, .decl-history th.num { white-space: nowrap; }
/* Historique des déclarations : jamais de défilement horizontal ; sur petit écran, chaque ligne devient une fiche. */
.decl-history .table-wrap { overflow-x: visible; }
@media (max-width: 760px) {
  .decl-history thead { display: none; }
  .decl-history table, .decl-history tbody { display: block; }
  .decl-history tr { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; padding: 12px 14px; border-top: 1px solid var(--line); }
  .decl-history tr:first-child { border-top: 0; }
  .decl-history td { display: grid; gap: 1px; padding: 0; border: 0; white-space: normal; text-align: left !important; }
  .decl-history td::before { content: attr(data-label); font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
  .decl-history tr.note-row { display: block; padding-top: 0; border-top: 0; }
  .decl-history tr.note-row td::before { content: none; }
}
.decl-history .num { text-align: right; }
.decl-history code { font-size: 13px; color: var(--navy); }
.status { font-size: 12px; font-weight: 700; color: #1f4e99; background: #e6edf8; border-radius: 3px; padding: 2px 7px; }
@media (max-width: 860px) {
  .f-grid { grid-template-columns: 1fr; }
  .decl-form fieldset { padding: 18px 16px 4px; }
  .decl-info { display: none; }
}
.menu a[aria-current=page]::after { transform: scaleX(1); }

/* ---------- Statuts des déclarations ---------- */
.status.s-deposee { color: #1f4e99; background: #e6edf8; }
.status.s-validee { color: #6b4a00; background: #fff3c4; }
.status.s-payee { color: #1f7a3f; background: #e3f4e8; }
.status.s-refusee { color: #b50909; background: #fdecec; }
.note-row td { white-space: normal !important; font-size: 14px; background: #fafbfc; color: #33373d; border-top: 0 !important; padding-top: 0 !important; }

/* ---------- Espace d'administration ---------- */
.adm-hero { padding: 44px 0 48px; }
.adm-tabs { display: flex; flex-direction: column; border-left: 2px solid var(--line); }
.adm-tabs a { display: flex; justify-content: space-between; align-items: center; padding: 8px 0 8px 14px; margin-left: -2px; border-left: 2px solid transparent; color: var(--ink); text-decoration: none; font-size: 15px; }
.adm-tabs a[hidden] { display: none; }
.adm-tabs a:hover { color: var(--btn); border-left-color: var(--gold); }
.adm-tabs a[aria-current=page] { color: var(--navy); font-weight: 700; border-left-color: var(--navy); }
.adm-badge { font-size: 12px; font-weight: 700; color: #fff; background: #b50909; border-radius: 999px; padding: 1px 8px; }
.adm-badge[hidden] { display: none; }
.adm-main { min-width: 0; }
.adm-main [hidden] { display: none !important; }
.adm-panel h2 { font-size: 30px; margin-bottom: 6px; }
.adm-sub { font-size: 20px; margin: 28px 0 12px; }
.adm-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.adm-head .btn { font: inherit; font-weight: 700; cursor: pointer; }
.adm-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 18px; }
.stat { background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--navy); border-radius: 10px; padding: 14px 16px; }
.stat.warn { border-top-color: var(--gold); }
.stat span { display: block; font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.stat strong { font-family: var(--serif); font-size: 26px; font-weight: 600; color: var(--navy); font-variant-numeric: tabular-nums; }
.adm-table { width: 100%; border-collapse: collapse; font-size: 14.5px; font-variant-numeric: tabular-nums; }
.adm-table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); background: var(--tint); padding: 10px 10px; }
.adm-table td { padding: 10px 10px; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
.adm-table code { overflow-wrap: normal; word-break: normal; }
.adm-table .status, .adm-table .tag { white-space: nowrap; }
/* Tableaux de l'administration : tout tient dans la largeur, jamais de défilement horizontal. Seuls les montants
   restent sur une ligne ; sous 1100 px, chaque ligne devient une fiche (étiquettes posées par espace.js). */
.adm-table td.num { white-space: nowrap; overflow-wrap: normal; }
.adm-main .table-wrap { overflow-x: visible; }
@media (max-width: 1100px) {
  .adm-main .adm-table thead { display: none; }
  .adm-main .adm-table, .adm-main .adm-table tbody, .adm-main .adm-table tfoot { display: block; }
  .adm-main .adm-table tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 14px; padding: 12px 14px; border-top: 1px solid var(--line); }
  .adm-main .adm-table tbody tr:first-child { border-top: 0; }
  .adm-main .adm-table td { display: grid; gap: 1px; padding: 0; border: 0; text-align: left !important; white-space: normal; }
  .adm-main .adm-table td[data-label]::before { content: attr(data-label); font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
  .adm-main .adm-table td[colspan] { grid-column: 1 / -1; }
  .adm-main .adm-table tr.note-row { padding-top: 0; border-top: 0; }
}
.adm-table .num { text-align: right; }
.adm-table code { font-size: 12.5px; color: var(--navy); }
.adm-filters { display: flex; flex-wrap: wrap; gap: 12px; margin: 16px 0 8px; }
.adm-filters label { display: flex; flex-direction: column; font-size: 13px; font-weight: 600; gap: 4px; }
.adm-filters .grow { flex: 1; min-width: 200px; }
.adm-filters select, .adm-filters input { height: 38px; border: 1px solid #c3c8cf; border-radius: 6px; padding: 0 10px; font: inherit; font-size: 15px; background: #fff; }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; font-size: 14px; font-weight: 700; color: var(--btn); cursor: pointer; text-decoration: none; }
.linkbtn:hover { text-decoration: underline; }
.linkbtn.danger { color: #b50909; }
.adm-news { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; }
.adm-news-item { display: grid; grid-template-columns: 120px 1fr auto; gap: 16px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 12px; }
.adm-news-item img { width: 120px; height: 80px; object-fit: cover; border-radius: 6px; display: block; }
.adm-news-item h3 { font-size: 18px; margin-bottom: 4px; }
.adm-news-item p.muted { font-size: 14px; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.adm-news-item .news-meta { margin-bottom: 4px; }
.tag.gold { color: #6b4a00; background: #fff3c4; }
/* Compte staff : consultation seule */
.adm-readonly-note { display: flex; gap: 12px; align-items: flex-start; background: #eef2f8; border: 1px solid #c9d5e8; border-left: 4px solid var(--navy); border-radius: 8px; padding: 12px 16px; margin: 0 0 22px; font-size: 15px; color: #1d2a44; }
.adm-readonly-note[hidden] { display: none; }
.adm-readonly-note svg { flex: none; width: 22px; height: 22px; color: var(--navy); margin-top: 1px; }
.adm-readonly :is([data-pay], [data-late], [data-del], [data-vis], [data-edit], [data-reset], [data-inst], [data-add], [data-add-tier], [data-tier-remove], [data-tax-remove], [data-tax-restore], #news-new, #staff-new, #inst-settings-btn, .adm-user-actions),
.adm-readonly :is(#dd-form, #id-form, #rd-form, #fd-form, #nd-form, #rate-form, #tax-form, #deadline-form, #notif-form, #struct-form) button:not([type=button]) { display: none !important; }
.adm-readonly #struct-form input { pointer-events: none; }
.role-pick select { font: inherit; font-size: 14px; padding: 4px 8px; border: 1px solid var(--line); border-radius: 6px; background: #fff; color: var(--ink); }
.adm-user-actions { display: inline-flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.reset-code { display: flex; align-items: center; gap: 14px; margin: 14px 0; }
.reset-code code { font-size: 26px; font-weight: 700; letter-spacing: .12em; color: var(--navy); background: var(--tint); border: 1px dashed #9fb0c8; border-radius: 8px; padding: 10px 16px; user-select: all; }
.tag.muted-tag { color: #4a4f57; background: #e8eaed; }
.tag.ok-tag { color: #1f5f34; background: #e7f4ec; }
/* Actualités : téléversement d'image et Discord */
.photo-upload { display: flex !important; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 10px 0 0 !important; cursor: pointer; }
.photo-upload input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.photo-upload input:focus-visible + .linkbtn { outline: 3px solid #2491ff; outline-offset: 2px; }
.photo-upload em { font-size: 12.5px; }
.photo-up-msg { margin: 6px 0 0; }
.photo-opt .photo-tag { position: absolute; left: 6px; bottom: 6px; padding: 1px 6px; border-radius: 4px; background: rgba(15,47,107,.85); color: #fff; font-size: 10.5px; font-weight: 700; pointer-events: none; }
.news-dc { margin: 4px 0 0; color: #4752c4; font-weight: 600; }
.news-dc::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 50%; background: #5865f2; vertical-align: middle; }
.dc-state { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 12px; font-size: 14.5px; }
.dc-state code { font-size: 13px; overflow-wrap: anywhere; }
.dc-row .grow { flex: 1; min-width: 0; }
.dc-row input { width: 100%; }
.adm-news-item.is-hidden { background: #f6f7f9; border-style: dashed; }
.adm-news-item.is-hidden img, .adm-news-item.is-hidden h3, .adm-news-item.is-hidden p.muted { opacity: .55; }
.adm-actions { display: flex; flex-direction: column; gap: 6px; align-items: flex-end; }
.adm-card { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 22px 24px; margin-top: 16px; max-width: 560px; }
.adm-card h3 { font-size: 20px; margin-bottom: 6px; }
.adm-card .muted { font-size: 14px; margin-bottom: 14px; }
.adm-inline { display: flex; gap: 12px; align-items: center; }
.struct-form { display: grid; gap: 12px; max-width: 640px; }
.struct-opt { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--line); border-left: 4px solid #1f7a3f; border-radius: 10px; background: #fff; cursor: pointer; }
.struct-opt.off { border-left-color: #b50909; background: #fdf6f6; }
.struct-opt input { flex: none; width: 22px; height: 22px; accent-color: #1f7a3f; }
.struct-opt span { display: grid; gap: 2px; flex: 1; }
.struct-opt small { color: var(--muted); font-size: 13px; }
.struct-state { flex: none; font-style: normal; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; background: #e3f4e8; color: #1f7a3f; }
.struct-opt.off .struct-state { background: #fdecec; color: #b50909; }
.struct-opt.neutral-off { border-left-color: #9aa3b2; }
.struct-opt.neutral-off .struct-state { background: #eef0f4; color: #5b6472; }
.struct-sub { margin: 10px 0 0; font-size: 18px; }
.struct-opt small strong { color: inherit; }
.adm-head-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.btn-aplus { background: linear-gradient(135deg, #c9a878, #e8cf9c); border-color: #c9a878; color: #3b2a07; }
.btn-aplus:hover { background: linear-gradient(135deg, #b8955f, #dcbf86); border-color: #b8955f; color: #2a1d04; }
.btn-aplus:disabled { background: #eef0f4; border-color: #d5d9e0; color: #8a929e; cursor: not-allowed; box-shadow: none; transform: none; translate: none; }
.btn-aplus:disabled::after { display: none; }
.adm-readonly #company-new { display: none !important; }
.co-dialog { width: min(560px, calc(100vw - 24px)); }
.co-sub { margin: 14px 0 6px; font-size: 17px; }
.co-hint { margin: -4px 0 8px; }
.co-known { margin: 0 0 10px; padding: 8px 12px; border-radius: 8px; background: #eef0fe; color: #2c3487; font-size: 13.5px; }
.co-dialog .f-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.co-dialog [hidden] { display: none !important; }
.reg-members { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.reg-chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 4px 3px 10px; border-radius: 999px; background: #eef0fe; color: #2c3487; font-size: 13px; font-weight: 600; }
.reg-chip em { font-style: normal; font-weight: 400; color: #5b63a8; }
.reg-chip.wait { background: #f3f5f9; color: #3b4048; }
.reg-chip.wait em { color: var(--muted); }
.reg-x { border: 0; background: none; cursor: pointer; width: 20px; height: 20px; border-radius: 50%; color: inherit; font-size: 15px; line-height: 1; }
.reg-x:hover { background: rgba(0,0,0,.08); }
.reg-add { display: flex; gap: 6px; }
.reg-add input { flex: 1; min-width: 0; font: inherit; font-size: 14px; padding: 5px 8px; border: 1px solid #c3c8cf; border-radius: 6px; }
.adm-readonly .reg-add, .adm-readonly .reg-x, .adm-readonly #reg-form, .adm-readonly #reg-import, .adm-readonly [data-reg-edit]:not(.reg-name), .adm-readonly [data-reg-rm] { display: none !important; }
.reg-table .reg-name { font-weight: 700; font-size: 1em; color: var(--navy); text-align: left; }
.reg-table .reg-name:hover { text-decoration: underline; }
.adm-readonly .reg-table .reg-name { pointer-events: none; color: inherit; text-decoration: none; }
.notif-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; margin: 10px 0 14px; }
.notif-grid label { display: flex; flex-direction: column; gap: 4px; font-size: 14px; font-weight: 600; }
.notif-grid label.wide { grid-column: 1 / -1; }
.notif-grid label[hidden] { display: none; }
.notif-grid label.check { flex-direction: row; align-items: center; gap: 8px; font-weight: 400; }
.notif-grid label.check input { width: 18px; height: 18px; padding: 0; margin: 0; }
.notif-grid label.check:has(input:disabled) { opacity: .6; }
.notif-grid input, .notif-grid select, .notif-grid textarea { font: inherit; font-weight: 400; font-size: 15px; padding: 9px 10px; border: 1px solid #c3c8cf; border-radius: 6px; background: #fff; }
@media (max-width: 700px) { .notif-grid { grid-template-columns: 1fr; } }
.adm-inline .btn { font: inherit; font-weight: 700; cursor: pointer; }
.money.pct { width: 130px; }
.money.pct input { width: 100%; height: 42px; border: 1px solid #c3c8cf; border-radius: 6px; padding: 0 30px 0 12px; font: inherit; font-size: 16px; text-align: right; }
.adm-msg { margin-top: 12px; font-size: 14px; border-radius: 6px; padding: 8px 10px; }
.adm-msg.ok { color: #1f7a3f; background: #e3f4e8; }
.adm-msg.err { color: #b50909; background: #fdecec; }
.adm-dialog { width: min(560px, calc(100vw - 32px)); }
.adm-dialog.wide { width: min(760px, calc(100vw - 32px)); }
.adm-dialog h2 { font-size: 24px; margin: 0 40px 16px 0; }
.adm-dialog form label { display: block; margin-bottom: 12px; }
.adm-dialog form label > span { display: block; font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.adm-dialog input:not([type=checkbox]):not([type=radio]), .adm-dialog select, .adm-dialog textarea { width: 100%; min-height: 40px; border: 1px solid #c3c8cf; border-radius: 6px; padding: 8px 12px; font: inherit; font-size: 15px; background: #fff; }
.adm-dialog textarea { resize: vertical; }
.adm-dialog [hidden] { display: none !important; }
.adm-dl { display: grid; grid-template-columns: 150px 1fr; gap: 6px 14px; margin: 0 0 18px; font-size: 15px; padding: 14px; background: var(--tint); border-radius: 8px; }
.adm-dl dt { color: var(--muted); }
.adm-dl dd { margin: 0; }
.photo-pick { border: 0; padding: 0; margin: 0 0 12px; }
.photo-pick legend { font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.photo-pick > div { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.photo-opt { position: relative; margin: 0 !important; cursor: pointer; }
.photo-opt input { position: absolute; opacity: 0; }
.photo-opt img { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 6px; border: 3px solid transparent; }
.photo-opt input:checked + img { border-color: var(--navy); }
.photo-opt input:focus-visible + img { outline: 3px solid #2491ff; }
@media (max-width: 860px) {
  .adm-tabs { flex-direction: row; flex-wrap: wrap; gap: 6px; border-left: 0; }
  .adm-tabs a { border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; margin: 0; gap: 6px; }
  .adm-tabs a[aria-current=page] { background: var(--navy); color: #fff; border-color: var(--navy); }
  .adm-stats { grid-template-columns: 1fr 1fr; }
  .adm-news-item { grid-template-columns: 80px 1fr; }
  .adm-news-item img { width: 80px; height: 60px; }
  .adm-actions { grid-column: 1 / -1; flex-direction: row; justify-content: flex-end; gap: 16px; }
  .photo-pick > div { grid-template-columns: repeat(4, 1fr); }
  .adm-dl { grid-template-columns: 1fr; }
  .adm-dl dt { margin-top: 6px; }
}

.base-pick { border: 0; padding: 0; margin: 0 0 16px; display: flex; flex-direction: column; gap: 8px; }
.base-pick legend, .base-pick-label { font-size: 14px; font-weight: 700; margin-bottom: 6px; }
.base-pick label { display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; cursor: pointer; }
.base-pick label:has(input:checked) { border-color: var(--navy); background: #f3f6fb; }
.base-pick input { margin-top: 3px; width: 16px; height: 16px; flex: none; }
.base-pick strong { display: block; font-size: 15px; }
.base-pick small { display: block; font-size: 13px; color: var(--muted); }
.small { font-size: 12.5px; }

/* ---------- Page Demander une échéance ---------- */
.pick-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.pick { display: flex !important; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; cursor: pointer; margin: 0 !important; }
.pick:has(input:checked) { border-color: var(--navy); background: #f3f6fb; }
.pick input { width: 18px !important; height: 18px !important; flex: none; }
.pick > span { flex: 1; display: flex; flex-direction: column; font-weight: 400 !important; margin: 0 !important; }
.pick > span .muted { font-size: 13.5px; }
.pick em { font-style: normal; font-weight: 700; color: var(--navy); font-variant-numeric: tabular-nums; }
.decl-summary.plan .row.total { border-top: 0 !important; }
.decl-summary.plan .js-plan .row { border-top: 1px dashed var(--line); }
.inst-list { display: flex; flex-direction: column; gap: 12px; }
.inst-item { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; }
.inst-item header { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; margin-bottom: 6px; }
.inst-item p { margin: 4px 0; font-size: 15px; }
.inst-note { background: var(--tint); border-radius: 6px; padding: 8px 10px; }
.status.s-en_attente { color: #1f4e99; background: #e6edf8; }
.status.s-acceptee { color: #1f7a3f; background: #e3f4e8; }

/* ---------- Paiements (espace admin) ---------- */
.stat.danger { border-top-color: #b50909; }
.stat.danger strong { color: #b50909; }
.pay-totals { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 8px 0 16px; }
.pay-totals > div { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--navy); border-radius: 8px; padding: 10px 14px; }
.pay-totals .late { border-left-color: #b50909; }
.debt-table td a { color: inherit; text-decoration: none; }
.debt-table td a:hover strong { text-decoration: underline; }
.debt-late { color: #b50909; }
.pay-totals .ok { border-left-color: #1f7a3f; }
.pay-totals span { display: block; font-size: 13px; color: var(--muted); }
.pay-totals strong { font-size: 20px; font-variant-numeric: tabular-nums; }
.pay-totals .late strong { color: #b50909; }
.pay-totals .ok strong { color: #1f7a3f; }
.status.s-a_payer { color: #1f4e99; background: #e6edf8; }
.status.s-en_retard { color: #b50909; background: #fdecec; }
.status.s-paye { color: #1f7a3f; background: #e3f4e8; }
.row-late td { background: #fff8f8; }
.btn-small { font: inherit; font-size: 13px; font-weight: 700; padding: 5px 10px; cursor: pointer; white-space: nowrap; }
@media (max-width: 860px) { .pay-totals { grid-template-columns: 1fr; } }
.adm-dl dd a { word-break: break-all; }

/* ---------- Remboursements ---------- */
.pick em small { display: block; font-size: 11px; font-weight: 600; color: var(--muted); text-align: right; text-transform: uppercase; letter-spacing: .04em; }
.js-all { margin: -4px 0 16px; }
.status.s-accordee { color: #6b4a00; background: #fff3c4; }
.status.s-rembourse { color: #1f7a3f; background: #e3f4e8; }

/* ---------- Tableau de bord lisible ---------- */
.adm-hint { font-size: 14px; color: var(--muted); margin: -6px 0 12px; }
.adm-stats + .adm-sub { margin-top: 32px; }
a.stat { display: block; text-decoration: none; color: inherit; transition: box-shadow .15s, transform .15s; }
a.stat:hover { box-shadow: 0 6px 18px rgba(15,47,107,.12); transform: translateY(-1px); }
.stat small { display: block; font-size: 12.5px; color: var(--muted); margin-top: 4px; line-height: 1.35; }
.stat.ok { border-top-color: #1f7a3f; }
.stat.ok strong { color: #1f7a3f; }
.stat.is-zero { border-top-color: var(--line); }
.stat.is-zero strong { color: var(--muted); }
.muted-stat strong { font-size: 22px; }
.adm-ok { font-size: 14px; color: #1f7a3f; background: #e3f4e8; border-radius: 6px; padding: 8px 12px; margin-bottom: 12px; }
.adm-ok[hidden] { display: none; }
.adm-stats:has(> :nth-child(4):last-child) { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1100px) { .adm-stats:has(> :nth-child(4):last-child) { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Page de recherche ---------- */
.search-big { display: flex; max-width: 640px; margin-top: 16px; }
.search-big input { flex: 1; height: 48px; border: 0; border-radius: 8px 0 0 8px; padding: 0 16px; font: inherit; font-size: 17px; color: var(--ink); }
.search-big button { height: 48px; border: 0; border-radius: 0 8px 8px 0; padding: 0 22px; background: var(--amber); color: #1b1300; font: inherit; font-weight: 700; cursor: pointer; }
.search-big button:hover { background: #ffd24d; }
.search-page { max-width: 860px; padding-top: 32px; padding-bottom: 72px; }
.search-count { color: var(--muted); margin-bottom: 18px; }
.search-count strong { color: var(--ink); }
.search-results { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.search-result { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 16px 20px; }
.search-result h2 { font-size: 21px; margin-bottom: 6px; }
.search-result h2 a { color: var(--navy); text-decoration: none; }
.search-result h2 a:hover { text-decoration: underline; }
.search-result p:last-child { font-size: 15.5px; color: #33373d; }
.search-result mark { background: #fff3c4; color: inherit; border-radius: 2px; padding: 0 1px; }
.search-empty { background: var(--tint); border-radius: 10px; padding: 18px 22px; }
.search-empty ul { margin: 8px 0 0; padding-left: 20px; }
.search-empty li { margin: 4px 0; }

/* Barres de recherche : largeur fixe et un seul halo autour du champ et de la loupe. */
.search { border-radius: 6px; transition: box-shadow .15s; }
.search input:focus, .search input:focus-visible, .search button:focus-visible { outline: none; }
.search:focus-within { box-shadow: 0 0 0 3px rgba(255, 199, 44, .6); }
.search input::-webkit-search-cancel-button { cursor: pointer; }

/* ---------- Code des affaires ---------- */
.law-toc ol { counter-reset: none; }
.law-toc ol a { display: flex; gap: 10px; align-items: baseline; font-size: 14.5px; line-height: 1.3; }
.law-toc ol a span { flex: none; min-width: 22px; font-weight: 700; color: var(--navy); font-variant-numeric: tabular-nums; }
.law-toc { max-height: calc(100vh - 90px); overflow-y: auto; }
.law { min-width: 0; max-width: 820px; }
.law [hidden] { display: none !important; }
.law-tools { position: sticky; top: 40px; z-index: 5; background: #fff; padding: 10px 0 12px; margin-bottom: 8px; border-bottom: 1px solid var(--line); }
.law-tools input { width: 100%; height: 44px; border: 1px solid #c3c8cf; border-radius: 8px; padding: 0 14px; font: inherit; font-size: 16px; }
.law-tools input:focus { outline: none; border-color: var(--btn); box-shadow: 0 0 0 3px rgba(42,92,168,.2); }
.law-tools p { margin-top: 6px; }
.law-chapter { margin: 36px 0 12px; scroll-margin-top: 110px; }
.law-chapter h2 { font-size: 28px; margin-bottom: 16px; padding-bottom: 10px; border-bottom: 3px solid var(--gold); }
.law-chapter h2 .kicker { display: block; margin-bottom: 4px !important; }
.law-article { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--navy); border-radius: 8px; padding: 16px 20px; margin-bottom: 12px; scroll-margin-top: 110px; }
.law-article:target { border-left-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,168,120,.35); }
.law-article h3, .law-article h4 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; font-family: var(--serif); font-weight: 600; font-size: 18px; line-height: 1.3; margin: 0 0 8px; }
.law-title { font-family: "Source Sans 3", sans-serif; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--navy); margin: 24px 0 10px; padding-left: 10px; border-left: 3px solid var(--gold); }
.art-num { color: var(--navy); }
.law-article h3 .tag { font-family: "Source Sans 3", sans-serif; align-self: center; }
.law-article p { font-size: 16px; color: #2b2f35; margin-bottom: 8px; }
.law-article p:last-child { margin-bottom: 0; }
.law-article ul { margin: 0 0 8px; padding-left: 22px; }
.law-article li { font-size: 16px; color: #2b2f35; margin: 3px 0; }
/* Articles insérés par une proposition de loi adoptée (espace gouvernement) */
.law-adopted { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; background: #eaf7ef; border: 1px solid #bfe3cc; color: #1f6b3e;
  font-size: 11px; font-weight: 700; letter-spacing: .02em; text-transform: none; vertical-align: 1px; }
.law-article .pl-art-table { margin: 6px 0 12px; }
.law-article .pl-art-table table { width: 100%; border-collapse: collapse; font-size: 15px; font-variant-numeric: tabular-nums; }
.law-article .pl-art-table th { padding: 8px 10px; background: #eef2f8; color: var(--navy); font-size: 12.5px; font-weight: 700; text-align: left; border-bottom: 2px solid var(--navy); }
.law-article .pl-art-table td { padding: 7px 10px; border-bottom: 1px solid var(--line); color: #2b2f35; }
.law-article .pl-art-table .num { text-align: right; white-space: nowrap; }
@media (max-width: 760px) {
  .law-article .pl-art-table thead { display: none; }
  .law-article .pl-art-table tr { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--line); padding: 6px 0; }
  .law-article .pl-art-table td { border: 0; padding: 2px 4px; }
  .law-article .pl-art-table td:first-child { grid-column: 1 / -1; font-weight: 600; }
  .law-article .pl-art-table td.num { text-align: left; }
  .law-article .pl-art-table td.num::before { content: attr(data-label); display: block; font-size: 11.5px; color: var(--muted); }
}
.law-empty { padding: 30px 0; text-align: center; color: var(--muted); }
.law-signature { margin-top: 28px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 14px; font-style: italic; color: var(--muted); }
@media (max-width: 860px) { .law-toc { max-height: none; } .law-tools { top: 0; } }

/* ---------- Mot de passe : bouton « œil » ---------- */
.pw-field { position: relative; display: block; }
.pw-field input { padding-right: 44px !important; }
.pw-toggle { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 36px; height: 34px; display: flex; align-items: center; justify-content: center; background: none; border: 0; border-radius: 6px; color: var(--muted); cursor: pointer; }
.pw-toggle:hover { color: var(--navy); background: var(--tint); }
.pw-toggle:focus-visible { outline: 2px solid var(--btn); outline-offset: 0; }
.pw-toggle svg { width: 20px; height: 20px; }
.pw-toggle[aria-pressed=true] { color: var(--navy); }

/* ---------- Liens dans les textes ---------- */
.law-article a, .news-body details a { color: var(--btn); font-weight: 600; overflow-wrap: anywhere; }
.art-link { text-decoration: underline; text-decoration-style: dotted; text-underline-offset: 3px; }
.art-link:hover { text-decoration-style: solid; }

/* ---------- Page Aide ---------- */
.help { min-width: 0; max-width: 820px; }
.help [hidden] { display: none !important; }
.help-quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 18px; }
.help-link { display: flex; flex-direction: column; gap: 2px; background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--navy); border-radius: 10px; padding: 12px 14px; text-decoration: none; color: var(--ink); transition: box-shadow .15s, transform .15s; }
.help-link:hover { box-shadow: 0 6px 18px rgba(15,47,107,.12); transform: translateY(-1px); }
.help-link strong { color: var(--navy); font-size: 15.5px; }
.help-link span { font-size: 13px; color: var(--muted); }
.help-topic { margin: 30px 0 8px; scroll-margin-top: 110px; }
.help-topic h2 { font-size: 26px; margin-bottom: 12px; padding-bottom: 8px; border-bottom: 3px solid var(--gold); }
.help-topic h2 .kicker { display: block; margin-bottom: 4px !important; }
.help-topic details { background: #fff; border: 1px solid var(--line); border-radius: 8px; margin-bottom: 8px; }
.help-topic summary { padding: 13px 18px 13px 46px; font-size: 16.5px; }
.help-topic summary::before { left: 18px; }
.help-topic details p { padding: 0 18px 12px 46px; font-size: 16px; }
.help-topic details a { color: var(--btn); font-weight: 600; }
.help-rates { margin: 0 18px 12px 64px; padding: 0; }
.help-rates li { font-size: 15.5px; margin: 3px 0; }
.help-contact { background: var(--tint); border: 1px solid var(--line); border-left: 4px solid var(--navy); border-radius: 8px; padding: 16px 18px; }
.help-contact p { margin-bottom: 8px; }
.help-contact p:last-child { margin-bottom: 0; }
@media (max-width: 860px) { .help-quick { grid-template-columns: 1fr 1fr; } }

/* ---------- Signaler une fraude ---------- */
.fraud-warning { background: #fdecec; border: 1px solid #f3c2c2; border-left: 5px solid #b50909; border-radius: 8px; padding: 12px 16px; margin-bottom: 20px; font-size: 15px; color: #5a1010; }
.fraud-types .pick { align-items: flex-start; }
.fraud-types .pick input { margin-top: 3px; }
.fraud-types .pick > span .muted { display: block; margin-top: 2px; font-size: 14px; line-height: 1.4; }
.status.s-f-nouveau { color: #b50909; background: #fdecec; }
.status.s-f-en_cours { color: #6b4a00; background: #fff3c4; }
.status.s-f-traite { color: #1f7a3f; background: #e3f4e8; }
.status.s-f-classe { color: #565c65; background: #eef0f3; }

/* ---------- Pages légales ---------- */
.legal section { margin-bottom: 40px; }
.legal h2 { font-size: 28px; }
.legal p, .legal li { font-size: 16.5px; color: #2b2f35; }
.legal a { color: var(--btn); font-weight: 600; }
.legal-callout { background: #fff8dd; border: 1px solid #f0d78a; border-left: 5px solid #e0a800; border-radius: 8px; padding: 14px 18px; margin-bottom: 16px; }
.legal-callout p { margin: 0; color: #3b2d00; }
.legal-address { font-style: normal; background: var(--tint); border: 1px solid var(--line); border-radius: 8px; padding: 14px 18px; line-height: 1.6; }
.legal-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.legal-table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); background: var(--tint); padding: 10px 12px; }
.legal-table td { padding: 11px 12px; border-top: 1px solid var(--line); vertical-align: top; line-height: 1.45; }
.legal-table td:first-child { font-weight: 700; width: 22%; }
.legal-table code { font-size: 13.5px; color: var(--navy); }
.legal .table-wrap { margin: 14px 0 12px; }

/* Liens légaux du pied de page */
.footer-legal-links { display: flex; flex-wrap: wrap; gap: 6px 20px; padding: 12px 0 18px; border-top: 1px solid rgba(255,255,255,.12); font-size: 12.5px; }
.footer-legal-links a, .footer-legal-links button { color: rgba(255,255,255,.75); text-decoration: none; background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }
.footer-legal-links a:hover, .footer-legal-links button:hover { color: #fff; text-decoration: underline; }

/* Information sur les cookies */
.cookie-banner { position: fixed; left: 20px; bottom: 20px; z-index: 60; width: min(440px, calc(100vw - 40px)); background: #fff; color: var(--ink); border-radius: 12px; border-top: 4px solid var(--navy); box-shadow: 0 16px 48px rgba(11,34,80,.28); animation: cookie-in .3s ease; }
.cookie-banner[hidden] { display: none; }
.cookie-inner { display: flex; gap: 14px; padding: 18px 20px 16px; }
.cookie-icon { flex: none; width: 40px; height: 40px; border-radius: 50%; background: #e6edf8; display: flex; align-items: center; justify-content: center; }
.cookie-icon svg { width: 22px; height: 22px; fill: none; stroke: var(--navy); stroke-width: 1.6; stroke-linejoin: round; }
.cookie-icon circle { fill: var(--navy); stroke: none; }
.cookie-body h2 { font-size: 20px; margin-bottom: 4px; }
.cookie-body p { font-size: 14.5px; color: #33373d; line-height: 1.45; }
.cookie-actions { display: flex; align-items: center; gap: 16px; margin-top: 12px; }
.cookie-actions .btn { padding: 8px 20px; font-size: 14.5px; }
@keyframes cookie-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (max-width: 520px) { .cookie-banner { left: 10px; right: 10px; bottom: 10px; width: auto; } }
@media (prefers-reduced-motion: reduce) { .cookie-banner { animation: none; } }

/* ---------- Taux par secteur (paramètres) et exemption (Déclarer) ---------- */
.adm-card.wide-card { max-width: 860px; }
.rates-table .wrap-cell { white-space: normal; line-height: 1.4; }
.rates-table .money.pct { width: 96px; display: inline-block; }
.rates-table .money.pct input { height: 36px; }
.exemption-box { margin: 4px 0 16px; background: var(--tint); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; }
.exemption-box:has(input:checked) { background: #fff8dd; border-color: #f0d78a; }
.exemption-box a { color: var(--btn); }

/* ---------- Date limite (paramètres et encadré Déclarer) ---------- */
.deadline-pick { align-items: flex-end; flex-wrap: wrap; }
.deadline-pick label { display: flex; flex-direction: column; gap: 4px; font-size: 14px; font-weight: 600; }
.deadline-pick select, .deadline-pick input { height: 42px; border: 1px solid #c3c8cf; border-radius: 6px; padding: 0 10px; font: inherit; font-size: 16px; background: #fff; }
.deadline-preview { margin-top: 10px; }
.decl-info-sub { margin-top: 14px; }

/* ---------- Page d'accueil ---------- */
.home-hero { position: relative; overflow: hidden; background: var(--navy); color: #fff; }
.home-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 45%; }
.home-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11,34,80,.94) 0%, rgba(11,34,80,.78) 48%, rgba(11,34,80,.35) 100%); }
.home-hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 380px; gap: 48px; align-items: center; padding-top: 72px; padding-bottom: 80px; }
.home-hero .eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: 13px; font-weight: 700; color: var(--amber); margin-bottom: 14px; }
.home-hero h1 { font-size: 50px; line-height: 1.12; margin-bottom: 18px; }
.home-lead { font-size: 20px; color: rgba(255,255,255,.9); max-width: 600px; margin-bottom: 28px; }
.home-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-gold { background: var(--amber); border-color: var(--amber); color: #1b1300; }
.btn-gold:hover { background: #ffd24d; border-color: #ffd24d; }
.btn-light { background: transparent; border-color: rgba(255,255,255,.85); color: #fff; }
.btn-light:hover, .btn-light:focus-visible { background: #fff; border-color: #fff; color: var(--navy); }
/* Prochaine date limite, en ticket : trait de découpe pointillé avec deux encoches (masque, --cut posé par
   accueil.js), talon avec code-barres et numéro. Il sort « imprimé » à l'arrivée puis s'incline vers la souris
   (app.js), avec un reflet doré qui suit le curseur. */
.deadline-card { color: var(--ink); filter: drop-shadow(0 18px 28px rgba(0,0,0,.3)); transform-origin: 50% 0; }
.deadline-ticket { position: relative; overflow: hidden; border-radius: 12px; border-top: 5px solid var(--amber); padding: 24px 24px 18px;
  background: linear-gradient(180deg, #fff 0%, #fff 60%, #fbf8f1 100%);
  -webkit-mask: radial-gradient(circle 12px at 0 var(--cut, 64%), transparent 11.5px, #000 12px), radial-gradient(circle 12px at 100% var(--cut, 64%), transparent 11.5px, #000 12px);
  -webkit-mask-composite: source-in; mask: radial-gradient(circle 12px at 0 var(--cut, 64%), transparent 11.5px, #000 12px), radial-gradient(circle 12px at 100% var(--cut, 64%), transparent 11.5px, #000 12px);
  mask-composite: intersect; }
/* Reflet doré « feuille d'or » qui suit la souris pendant l'inclinaison. */
.deadline-ticket::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .35s;
  background: linear-gradient(105deg, transparent calc(var(--tx, 50%) - 28%), rgba(255,236,190,.45) calc(var(--tx, 50%) - 6%), rgba(255,255,255,.6) var(--tx, 50%), rgba(201,168,120,.3) calc(var(--tx, 50%) + 8%), transparent calc(var(--tx, 50%) + 26%)); }
.deadline-card.tilting .deadline-ticket::after { opacity: 1; }
.deadline-card.tilt.tilting { box-shadow: none !important; }
/* Changement de semaine (accueil.js) : l'ancien ticket, tamponné puis coupé en deux, laisse place au nouveau. */
.deadline-card { position: relative; }
.tk-hidden { visibility: hidden; }
.tk-stage { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.tk-piece { position: absolute; left: 0; top: 0; width: 100%; transform-origin: 50% 60%; will-change: transform; filter: drop-shadow(0 14px 22px rgba(0,0,0,.28)); }
.tk-half { position: absolute; left: 0; top: 0; width: 100%; margin: 0; }
/* Changement de semaine : plus d'ombre sur la carte pendant la découpe (chaque moitié porte la sienne). */
.deadline-card.tk-split { filter: none; }
/* Tentative au clic : la carte entière se tord (calque à part, rien n'est redessiné). */
.deadline-card.tk-playing { will-change: transform; }
.tk-clickable { cursor: pointer; }
/* Bulle de rappel, posée à côté de la carte (à gauche ; au-dessus sur téléphone) par accueil.js. */
.tk-bubble { position: absolute; z-index: 5; width: max-content; max-width: 250px; padding: 10px 16px; border-radius: 12px; pointer-events: none;
  background: #0b2250; color: #fff; text-align: center; font-size: 13px; line-height: 1.35; box-shadow: 0 10px 24px rgba(0,0,0,.3); translate: -100% -50%; }
.tk-bubble strong { display: block; font-size: 15px; color: var(--amber); margin-bottom: 2px; }
.tk-bubble::after { content: ""; position: absolute; left: 100%; top: 50%; margin-top: -8px; border: 8px solid transparent; border-left-color: #0b2250; }
.tk-bubble.below { translate: -50% -100%; }
.tk-bubble.below::after { left: 50%; top: 100%; margin: 0 0 0 -8px; border-left-color: transparent; border-top-color: #0b2250; }
.tk-stamp { position: absolute; left: 50%; top: 30%; z-index: 4; opacity: 0; padding: 6px 14px; border: 3px solid #b3261e; border-radius: 6px; background: rgba(255,255,255,.55);
  color: #b3261e; font-weight: 800; font-size: 17px; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; transform: translate(-50%, -50%) rotate(-14deg); }
.tk-slot { position: absolute; left: -10px; right: -10px; top: -12px; height: 12px; border-radius: 7px; opacity: 0;
  background: linear-gradient(#061430, #1d3f80); box-shadow: inset 0 3px 5px rgba(0,0,0,.7), 0 1px 0 rgba(255,255,255,.25); }
.tk-badge { position: absolute; left: 50%; top: -20px; z-index: 4; opacity: 0; padding: 7px 16px; border-radius: 999px; white-space: nowrap;
  background: var(--gold); color: #0b2250; font-weight: 800; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; box-shadow: 0 8px 20px rgba(0,0,0,.3); transform: translate(-50%, 0); }
.ticket-code { position: relative; overflow: hidden; }
.tk-beam { position: absolute; top: -4px; bottom: -4px; width: 8%; background: linear-gradient(90deg, transparent, rgba(230,30,30,.9), transparent); }
.ticket-perf { display: block; height: 0; margin: 2px -24px 0; border-top: 2px dashed #cfd5df; }
.ticket-serial { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 14px 0 0; padding-top: 12px; border-top: 1px solid var(--line);
  font: 600 11px/1 ui-monospace, "SFMono-Regular", Menlo, monospace; letter-spacing: .12em; color: var(--muted); text-transform: uppercase; }
.ticket-code { flex: none; width: 118px; height: 26px; opacity: .85;
  background: repeating-linear-gradient(90deg, var(--navy) 0 2px, transparent 2px 3px, var(--navy) 3px 4px, transparent 4px 7px, var(--navy) 7px 10px, transparent 10px 11px, var(--navy) 11px 12px, transparent 12px 15px); }
.deadline-kicker { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.deadline-date { font-family: var(--serif); font-size: 26px; font-weight: 600; color: var(--navy); line-height: 1.2; margin-bottom: 8px; }
.deadline-date::first-letter { text-transform: uppercase; }
.deadline-what { font-size: 15px; color: #33373d; margin-bottom: 10px; }
.deadline-left { display: inline-block; font-size: 13px; font-weight: 700; color: #1f4e99; background: #e6edf8; border-radius: 999px; padding: 3px 10px; margin-bottom: 16px; }
.deadline-left.urgent { color: #b50909; background: #fdecec; }
.deadline-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 0 14px; padding: 14px 0 12px; }
.deadline-facts dt { font-size: 12px; color: var(--muted); }
.deadline-facts dd { margin: 2px 0 0; font-size: 15px; font-weight: 700; color: var(--ink); }
.deadline-link { font-weight: 700; color: var(--btn); text-decoration: none; }
.deadline-link:hover { text-decoration: underline; }

.home-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.home-steps li { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 22px 20px 20px; }
.home-step-n { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 700; margin-bottom: 12px; }
.home-steps h3 { font-size: 20px; margin-bottom: 8px; }
.home-steps p { font-size: 15.5px; color: #33373d; margin-bottom: 12px; }
.home-steps a { font-weight: 700; font-size: 15px; color: var(--btn); text-decoration: none; }
.home-steps a::after { content: " →"; }
.home-steps a:hover { text-decoration: underline; }

.home-facts { background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 55%, #1a4a91 100%); color: #fff; padding: 44px 0 48px; border-top: 3px solid var(--amber); }
.home-facts-title { font-family: "Source Sans 3", sans-serif; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.7); text-align: center; margin-bottom: 26px; }
.home-facts-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); }
.home-facts-list li { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 4px 18px; }
.home-facts-list li + li { border-left: 1px solid rgba(255,255,255,.16); }
.fact-ico { display: flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 50%; background: rgba(255,255,255,.1); box-shadow: inset 0 0 0 1px rgba(255,255,255,.18); margin-bottom: 12px; }
.fact-ico svg { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.fact-label { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--amber); margin-bottom: 4px; }
.home-facts .fact-value { display: block; font-family: "Source Sans 3", sans-serif; font-size: 23px; font-weight: 700; line-height: 1.2; color: #fff; font-variant-numeric: lining-nums tabular-nums; white-space: nowrap; margin-bottom: 6px; }
.fact-desc { font-size: 14px; line-height: 1.4; color: rgba(255,255,255,.78); max-width: 190px; }
.fact-desc a { color: #fff; text-decoration: underline; text-underline-offset: 2px; white-space: nowrap; }

.home-news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.home-news { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; text-decoration: none; color: var(--ink); transition: box-shadow .2s, transform .2s; }
.home-news:hover { box-shadow: 0 8px 24px rgba(15,47,107,.12); transform: translateY(-2px); }
.home-news img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.home-news .news-meta { margin: 16px 18px 6px; }
.home-news strong { font-family: var(--serif); font-size: 20px; font-weight: 600; line-height: 1.25; margin: 0 18px 8px; color: var(--navy); }
.home-news-excerpt { font-size: 15px; color: #33373d; margin: 0 18px 18px; }

.home-cta { background: linear-gradient(180deg, #235aae, var(--blue)); color: #fff; }
.home-cta-inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; padding-top: 40px; padding-bottom: 40px; }
.home-cta h2 { font-size: 32px; margin-bottom: 6px; }
.home-cta p { color: rgba(255,255,255,.88); }

@media (max-width: 1080px) {
  .home-hero-inner { grid-template-columns: 1fr 340px; gap: 32px; }
  .home-hero h1 { font-size: 42px; }
  .home-steps { grid-template-columns: 1fr 1fr; }
  .home-facts-list { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 28px; }
  .home-facts-list li:nth-child(4) { border-left: 0; }
}
@media (max-width: 860px) {
  .home-hero-inner { grid-template-columns: 1fr; padding-top: 44px; padding-bottom: 48px; }
  .home-hero h1 { font-size: 34px; }
  .home-hero::after { background: rgba(11,34,80,.84); }
  .home-news-grid, .home-steps { grid-template-columns: 1fr; }
  .home-facts-list { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 26px; }
  .home-facts-list li { border-left: 0 !important; padding: 4px 8px; }
  .home-facts .fact-value { white-space: normal; font-size: 20px; }
  .home-facts-list li:last-child { grid-column: 1 / -1; }
}

/* Éditeur d'actualité : version anglaise facultative */
.nd-en { border: 1px solid var(--line); border-radius: 8px; padding: 10px 14px; margin: 4px 0 14px; background: #fafbfc; }
.nd-en summary { cursor: pointer; font-weight: 600; font-size: 15px; }
.nd-en[open] summary { margin-bottom: 10px; }

/* Code des affaires : téléchargement du PDF */
.pdf-dl { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin: 22px 0 0; }
.pdf-dl .btn { display: inline-flex; align-items: center; gap: 9px; }
.pdf-dl svg { width: 18px; height: 18px; flex: none; }
.pdf-dl span { font-size: 14px; color: rgba(255,255,255,.8); }
/* Bouton ⟳ (accès complet) : carré, à droite du téléchargement */
.pdf-dl .code-refresh { width: 46px; align-self: stretch; justify-content: center; padding-left: 0; padding-right: 0; }
.pdf-dl .code-refresh[hidden] { display: none; }
.pdf-dl .code-refresh svg { width: 20px; height: 20px; }
.pdf-dl .code-refresh.spinning svg { animation: code-spin 1s linear infinite; }
.pdf-dl .code-refresh:disabled { opacity: .75; cursor: progress; }
@keyframes code-spin { to { transform: rotate(360deg); } }
.code-refresh-msg { margin: 12px 0 0; font-size: 14.5px; color: #fff; background: rgba(255,255,255,.12); border-left: 3px solid var(--gold); padding: 8px 12px; border-radius: 4px; max-width: 720px; }
.code-refresh-msg.ok { border-left-color: #6fd08c; }
.code-refresh-msg.err { border-left-color: #ff8a80; }
.code-refresh-msg[hidden] { display: none; }

/* Page « Mon compte » */
.form-ok { color: #1f7a3f; background: #eef8f1; border: 1px solid #b7dfc3; border-radius: 6px; padding: 8px 12px; font-size: 15px; margin: 0 0 14px; }
.form-ok[hidden] { display: none; }
#password-form { margin-top: 4px; }

/* ==========================================================================
   Animations (discrètes, désactivées si l'appareil demande moins de mouvement)
   ========================================================================== */
:root { --ease-out: cubic-bezier(.22, .61, .36, 1); }

/* Apparition au défilement : app.js ajoute .reveal puis .in quand l'élément entre à l'écran
   (--d : léger décalage entre les éléments d'une même rangée). Sans script : tout est visible. */
.reveal { opacity: 0; transform: translateY(36px);
  transition: opacity .8s var(--ease-out), transform 1s cubic-bezier(.16,1,.3,1); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }
.reveal.from-l { transform: translateX(-40px); }
.reveal.from-r { transform: translateX(40px); }
.reveal.from-l.in, .reveal.from-r.in { transform: none; }
@media print { .reveal { opacity: 1 !important; transform: none !important; } }

/* Grands titres de page et accueil : entrée au chargement. */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes slide-left { from { opacity: 0; transform: translateX(26px); } to { opacity: 1; transform: none; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes drop-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@keyframes pop-in { from { opacity: 0; transform: translateY(8px) scale(.97); } to { opacity: 1; transform: none; } }
.home-hero-text > *, .page-hero-inner > div > * { animation: rise .7s var(--ease-out) both; }
.home-hero-text > :nth-child(2), .page-hero-inner > div > :nth-child(2) { animation-delay: .08s; }
.home-hero-text > :nth-child(3), .page-hero-inner > div > :nth-child(3) { animation-delay: .16s; }
.home-hero-text > :nth-child(4), .page-hero-inner > div > :nth-child(4) { animation-delay: .24s; }
/* Le ticket sort « imprimé » : il descend en se dévoilant de haut en bas, se balance puis se pose. */
.deadline-card { animation: ticket-in 1.3s cubic-bezier(.16,1,.3,1) .35s backwards; }
@keyframes ticket-in {
  0% { opacity: 0; transform: translateY(-40px) rotate(-5deg); clip-path: inset(0 0 100% 0 round 12px); }
  45% { opacity: 1; transform: translateY(6px) rotate(1.6deg); clip-path: inset(0 0 0 0 round 12px); }
  70% { transform: translateY(-2px) rotate(-.6deg); clip-path: inset(0 0 0 0 round 12px); }
  100% { transform: none; clip-path: inset(0 0 0 0 round 12px); } }
/* Puis le talon se signale d'un petit « clic » de poinçon sur le trait de découpe. */
.ticket-perf { animation: perf-in .9s cubic-bezier(.16,1,.3,1) 1.3s backwards; transform-origin: 0 50%; }
@keyframes perf-in { from { transform: scaleX(0); } to { transform: none; } }
html.intro-on .ticket-perf { animation-play-state: paused; }
.home-hero-img, .photo-hero-img { animation: hero-zoom 3s cubic-bezier(.16,1,.3,1) backwards; }
@keyframes hero-zoom { from { transform: scale(1.22); opacity: .35; } to { transform: scale(1); opacity: 1; } }

/* Bandeau « En savoir plus », menus déroulants, menu mobile. */
.rp-details:not([hidden]) { animation: drop-in .28s var(--ease-out); }
.lang-menu:not([hidden]), .acc-menu:not([hidden]) { animation: drop-in .18s var(--ease-out); transform-origin: top right; }
.chev { transition: transform .2s var(--ease-out); }
.lang-btn[aria-expanded=true] .chev { transform: rotate(180deg); }
@media (max-width: 860px) { .menu.open { animation: drop-in .22s var(--ease-out); } }

/* Fenêtres (connexion, administration) : fond qui s'assombrit, fenêtre qui s'avance. */
dialog[open] { animation: pop-in .25s var(--ease-out); }
dialog[open]::backdrop { animation: fade-in .25s ease; }

/* Questions de l'aide, « Lire la suite » : le contenu apparaît en douceur. */
details[open] > :not(summary) { animation: drop-in .3s var(--ease-out); }
summary { transition: background-color .15s; }

/* Boutons et cartes. */
.btn { transition: background-color .15s, border-color .15s, color .15s, transform .12s, box-shadow .15s; }
.btn:active { transform: translateY(1px); }
.btn-gold:hover { box-shadow: 0 6px 16px rgba(0,0,0,.18); }
.ci { transition: transform .25s var(--ease-out), color .2s; }
.card:hover .ci { transform: translateY(-2px) scale(1.08); }
.fact-ico { transition: transform .3s var(--ease-out); }
.home-facts-list li:hover .fact-ico { transform: scale(1.1) rotate(-4deg); }
.news-card img, .home-news img { transition: transform .5s var(--ease-out); }
.news-card:hover img, .home-news:hover img { transform: scale(1.04); }
.home-steps li { transition: box-shadow .2s, transform .2s; }
.home-steps li:hover { box-shadow: 0 8px 22px rgba(15,47,107,.1); transform: translateY(-2px); }
.home-step-n { transition: transform .3s var(--ease-out); }
.home-steps li:hover .home-step-n { transform: scale(1.1); }

/* Messages : une erreur secoue légèrement, un succès apparaît et sa coche se dessine. */
@keyframes nudge { 0%, 100% { transform: none; } 20%, 60% { transform: translateX(-4px); } 40%, 80% { transform: translateX(4px); } }
.auth-err:not([hidden]) { animation: nudge .35s ease; }
.form-ok:not([hidden]), .code-refresh-msg:not([hidden]) { animation: drop-in .3s var(--ease-out); }
.decl-done:not([hidden]) { animation: pop-in .4s var(--ease-out); }
.decl-done:not([hidden]) svg path { stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw .5s .25s ease forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
/* Date limite à moins de 24 h : pulsation lente. */
.deadline-left.urgent { animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(181,9,9,.35); } 50% { box-shadow: 0 0 0 6px rgba(181,9,9,0); } }

/* ---------- Petits détails animés (app.js : barre de lecture, ondes des boutons, chiffres, flèches, haut de page) ---------- */
/* Barre de lecture : fine ligne dorée en haut de l'écran, qui avance avec le défilement. */
.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 70; pointer-events: none; transform-origin: 0 50%; transform: scaleX(var(--p, 0));
  background: linear-gradient(90deg, var(--gold), #f3d9a4, var(--gold)); will-change: transform; }
/* Boutons : reflet qui traverse au survol, onde au clic. */
.btn { position: relative; overflow: hidden; isolation: isolate; }
.btn::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; transform: translateX(-120%) skewX(-18deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.32), transparent); }
.btn:hover::after { transform: translateX(120%) skewX(-18deg); transition: transform .7s var(--ease-out); }
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 14px rgba(15,47,107,.18); }
.btn:active { transform: translateY(1px); box-shadow: none; }
.ripple { position: absolute; z-index: -1; border-radius: 50%; pointer-events: none; background: rgba(255,255,255,.45); transform: scale(0); animation: ripple .6s var(--ease-out) forwards; }
.btn-outline .ripple, .btn-light .ripple { background: rgba(42,92,168,.25); }
@keyframes ripple { to { transform: scale(1); opacity: 0; } }
/* Sceau du logo : léger tour sur lui-même au survol. */
/* Titre des pages : un trait doré se dessine sous le titre. */
.page-hero h1::after { content: ""; display: block; width: 64px; height: 3px; margin-top: 14px; border-radius: 3px; background: var(--gold); transform-origin: 0 50%; animation: line-grow .8s var(--ease-out) .45s both; }
@keyframes line-grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
/* Flèches « → » des liens et boutons : elles avancent au survol. */
.arr { display: inline-block; transition: transform .25s var(--ease-out); }
a:hover > .arr, button:hover > .arr, a:focus-visible > .arr { transform: translateX(4px); }
/* Lignes des tableaux et entreprises de l'annuaire : arrivée en cascade. */
@keyframes row-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.table-wrap tbody tr, .dir-list .dir-row, .md-item { animation: row-in .4s var(--ease-out) backwards; }
.table-wrap tbody tr:nth-child(2), .dir-list .dir-row:nth-child(2), .md-item:nth-child(2) { animation-delay: .03s; }
.table-wrap tbody tr:nth-child(3), .dir-list .dir-row:nth-child(3), .md-item:nth-child(3) { animation-delay: .06s; }
.table-wrap tbody tr:nth-child(4), .dir-list .dir-row:nth-child(4), .md-item:nth-child(4) { animation-delay: .09s; }
.table-wrap tbody tr:nth-child(5), .dir-list .dir-row:nth-child(5), .md-item:nth-child(5) { animation-delay: .12s; }
.table-wrap tbody tr:nth-child(6), .dir-list .dir-row:nth-child(6) { animation-delay: .15s; }
.table-wrap tbody tr:nth-child(7), .dir-list .dir-row:nth-child(7) { animation-delay: .18s; }
.table-wrap tbody tr:nth-child(8), .dir-list .dir-row:nth-child(8) { animation-delay: .21s; }
.table-wrap tbody tr:nth-child(n+9), .dir-list .dir-row:nth-child(n+9) { animation-delay: .24s; }
/* Au-delà des premières lignes, pas d'animation : les longs tableaux s'affichent d'un coup, sans ralentir. */
.table-wrap tbody tr:nth-child(n+16), .dir-list .dir-row:nth-child(n+25) { animation: none; }
.table-wrap tbody tr { transition: background-color .15s; }
.table-wrap tbody tr:hover { background-color: rgba(42,92,168,.04); }
.dir-list.bubbles .dir-row { transition: border-color .15s, box-shadow .2s, transform .25s var(--ease-out); }
.dir-list.bubbles .dir-row:hover { transform: translateY(-4px) rotate(-.4deg); }
/* Pastilles de statut, compteurs du menu : petite apparition. */
@keyframes badge-pop { 0% { transform: scale(.6); opacity: 0; } 70% { transform: scale(1.12); } 100% { transform: scale(1); opacity: 1; } }
.adm-badge:not([hidden]) { display: inline-block; animation: badge-pop .45s var(--ease-out) .3s both; }
/* Sommaires, pied de page, fil d'Ariane : les liens glissent légèrement. */
.toc ol a { transition: color .15s, border-color .15s, background-color .15s, padding-left .2s var(--ease-out); }
.toc ol a:hover { padding-left: 18px; }
.footer li > a { display: inline-block; transition: color .15s, transform .2s var(--ease-out); }
.footer li > a:hover { transform: translateX(3px); }
.crumbs a { transition: opacity .15s; }
.crumbs a:hover { opacity: .8; }
/* Champs : le contour s'allume en douceur ; cases à cocher qui rebondissent. */
input, select, textarea { transition: border-color .15s, box-shadow .2s; }
input[type=checkbox]:checked, input[type=radio]:checked { animation: badge-pop .3s var(--ease-out); }
/* Images : apparition en fondu une fois chargées. */
img.img-wait { opacity: 0; }
img.img-in { transition: opacity .5s ease; }
/* Sélection de texte aux couleurs du site. */
::selection { background: rgba(201,168,120,.45); color: inherit; }
/* Retour en haut de page. */
.to-top { position: fixed; right: 28px; bottom: 96px; z-index: 57; width: 42px; height: 42px; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center;
  background: var(--navy); color: #fff; box-shadow: 0 6px 18px rgba(11,34,80,.3); opacity: 0; transform: translateY(12px) scale(.9); pointer-events: none;
  transition: opacity .25s, transform .3s var(--ease-out), background-color .15s; }
.to-top.on { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--btn); transform: translateY(-3px); }
.to-top svg { width: 18px; height: 18px; }
@media (max-width: 860px) { .to-top { display: none; } }
@media print { .scroll-progress, .to-top { display: none; } }

/* ---------- Grand spectacle (app.js : « Grand spectacle ») ----------
   Seulement transform et opacity (calculés par la carte graphique) : rien ne se repeint en continu, aucun flou. */
/* En-tête : le bandeau, la barre bleue et le menu tombent en place après l'écran d'accueil. */
@keyframes hdr-in { from { opacity: 0; transform: translateY(-100%); } to { opacity: 1; transform: none; } }
.rp-banner { animation: hdr-in .7s cubic-bezier(.16,1,.3,1) .05s backwards; }
header.top { animation: hdr-in .8s cubic-bezier(.16,1,.3,1) .15s backwards; }
.navbar { animation: hdr-in .8s cubic-bezier(.16,1,.3,1) .28s backwards; }
.top .seal { animation: seal-in .9s cubic-bezier(.16,1,.3,1) .4s backwards; }
@keyframes seal-in { from { opacity: 0; transform: scale(.85); } to { opacity: 1; transform: none; } }
html.intro-on .top .seal { animation-play-state: paused; }
@media (min-width: 861px) {
  .menu > * { animation: menu-in .6s cubic-bezier(.16,1,.3,1) backwards; animation-delay: calc(.45s + var(--mi, 0) * .06s); }
  html.intro-on .menu > * { animation-play-state: paused; }
}
@keyframes menu-in { from { opacity: 0; transform: translateY(-14px) scale(.9); } to { opacity: 1; transform: none; } }
/* Grand titre : les mots s'assemblent un par un. */
.hero-word { display: inline-block; white-space: pre; transform-origin: 50% 100%; animation: hero-word 1s cubic-bezier(.16,1,.3,1) backwards; animation-delay: calc(.25s + var(--wi) * .08s); }
@keyframes hero-word { 0% { opacity: 0; transform: translateY(40%); } 100% { opacity: 1; transform: none; } }
.home-hero h1, .page-hero h1 { perspective: 800px; }
/* Héros sur photo : halo doux qui suit la souris (un calque déplacé, jamais repeint). */
.hero-glow { position: absolute; left: 0; top: 0; width: 640px; height: 640px; margin: -320px 0 0 -320px; z-index: 1; pointer-events: none; opacity: 0; transition: opacity .5s;
  border-radius: 50%; background: radial-gradient(closest-side, rgba(255,214,128,.2), rgba(255,214,128,.06) 55%, transparent); will-change: transform; }
.hero-glow.on { opacity: 1; }
.home-hero-inner, .page-hero-inner { position: relative; z-index: 2; }
/* Indication « faites défiler » sous l'accueil. */
.scroll-cue { position: absolute; left: 50%; bottom: 18px; z-index: 2; width: 24px; height: 38px; margin-left: -12px; border: 2px solid rgba(255,255,255,.55); border-radius: 14px; pointer-events: none;
  animation: fade-in .8s ease 1.6s backwards; }
.scroll-cue::before { content: ""; position: absolute; left: 50%; top: 7px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--gold); animation: cue 1.8s cubic-bezier(.6,0,.4,1) infinite; }
@keyframes cue { 0% { transform: none; opacity: 1; } 70% { transform: translateY(14px); opacity: 0; } 100% { transform: none; opacity: 0; } }
html.intro-on .scroll-cue { animation-play-state: paused; }
@media (max-width: 860px) { .scroll-cue { display: none; } }
/* Cartes : inclinaison 3D qui suit la souris. */
.tilt { transition: transform .6s cubic-bezier(.16,1,.3,1), box-shadow .4s !important; }
.tilt.tilting { transition: transform .15s ease-out, box-shadow .3s !important; box-shadow: 0 20px 40px rgba(15,47,107,.2) !important; will-change: transform; }
/* Boutons aimantés (attirés par la souris). */
.btn { translate: var(--bx, 0px) var(--by, 0px); transition: background-color .15s, border-color .15s, color .15s, transform .12s, box-shadow .15s, translate .35s cubic-bezier(.16,1,.3,1); }
/* Onde dorée au clic. */
.click-wave { position: fixed; z-index: 2000; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%; pointer-events: none;
  border: 2px solid rgba(201,168,120,.85); animation: click-wave .55s cubic-bezier(.16,1,.3,1) forwards; }
@keyframes click-wave { from { transform: scale(.2); opacity: 1; } to { transform: scale(1.4); opacity: 0; } }
/* Changement de page : la page s'efface, la suivante arrive. */
main { animation: page-in .7s cubic-bezier(.16,1,.3,1) backwards; }
@keyframes page-in { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
html.leaving main, html.leaving .footer, html.leaving .rp-ticker { opacity: 0; transform: translateY(-12px); transition: opacity .15s ease, transform .15s ease; }
/* Titres de section : un trait doré se dessine quand ils apparaissent. */
.section-title.in::after, .prose > section > h2.in::after { animation: line-grow .9s var(--ease-out) .2s backwards; }
/* Photos des pages : elles se dévoilent de gauche à droite en apparaissant. */
.prose figure.reveal img { clip-path: inset(0 100% 0 0); }
.prose figure.reveal.in img { clip-path: inset(0 0 0 0); transition: clip-path 1.2s cubic-bezier(.77,0,.18,1) .15s; }
/* Liens du texte : le soulignement s'éloigne et se dore au survol. */
.prose a, .page-lead a, .decl-info a { text-underline-offset: 3px; transition: text-underline-offset .2s, text-decoration-color .2s, color .15s; }
.prose a:hover, .page-lead a:hover, .decl-info a:hover { text-underline-offset: 5px; text-decoration-color: var(--gold); }
/* Défilement doux vers les ancres (sommaires). */
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .hero-glow, .click-wave, .scroll-cue { display: none; } .hero-word { animation: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Écran d'accueil (une fois par visite ; voir _partials/header.html) ----------
   Sobre : la vue de Los Santos en fond, le sceau et le nom en fondu, puis « Faites défiler pour entrer ».
   Le défilement du visiteur fait avancer --p (0 → 1) : le texte remonte et s'efface, la photo se rapproche et
   s'éclaircit, puis la scène s'efface sur le site (dont l'accueil reprend la même photo). */
.intro { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; overflow: hidden; color: #fff; text-align: center; background: #061430;
  opacity: clamp(0, calc(2 - var(--p, 0) * 2), 1); }   /* seconde moitié du défilement : fondu sur le site */
.intro[hidden] { display: none; }
html.intro-on, html.intro-lock { overflow: hidden; }
.intro-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 45%; z-index: 0;
  animation: intro-photo 2.4s cubic-bezier(.16,1,.3,1) backwards; scale: calc(1.12 - var(--p, 0) * .12); }
.intro-veil { position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(ellipse at 50% 45%, rgba(11,34,80,.55) 0%, rgba(8,26,63,.82) 60%, rgba(6,20,48,.92) 100%); opacity: calc(1 - var(--p, 0) * .55); }
.intro-inner { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; padding: 24px;
  opacity: calc(1 - var(--p, 0) * 2); translate: 0 calc(var(--p, 0) * -70px); }
.intro-seal { position: relative; width: 132px; height: 132px; animation: intro-in 1.1s cubic-bezier(.16,1,.3,1) .2s backwards; }
.intro-seal img { width: 132px; height: 132px; display: block; filter: drop-shadow(0 10px 28px rgba(0,0,0,.5)); }
.intro-agency { margin: 30px 0 8px; font-weight: 600; font-size: 17px; letter-spacing: .32em; text-transform: uppercase; padding-left: .32em; animation: intro-in 1s cubic-bezier(.16,1,.3,1) .55s backwards; }
.intro-sub { margin: 0; font-family: 'Jost', 'Source Sans 3', sans-serif; font-weight: 300; font-size: 15px; letter-spacing: .08em; color: #d6deef; animation: intro-in 1s cubic-bezier(.16,1,.3,1) .75s backwards; }
.intro-bar { display: block; width: 56px; height: 2px; margin-top: 24px; background: var(--gold); border-radius: 2px; transform-origin: 50% 50%; animation: line-grow .9s cubic-bezier(.16,1,.3,1) .95s backwards; }
/* « Faites défiler pour entrer » : apparaît une fois le nom affiché. */
.intro-hint { display: block; margin-top: 54px; }
.intro-hint-in { display: inline-flex; flex-direction: column; align-items: center; gap: 12px; font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: #e6dcc6; opacity: 0; }
.intro-ready .intro-hint-in { animation: intro-in .9s cubic-bezier(.16,1,.3,1) forwards; }
.intro-mouse { position: relative; width: 24px; height: 38px; border: 2px solid rgba(230,220,198,.75); border-radius: 14px; }
.intro-mouse::before { content: ""; position: absolute; left: 50%; top: 7px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 2px; background: var(--gold); animation: cue 2s cubic-bezier(.6,0,.4,1) infinite; }
@media (hover: none) { .intro-mouse { width: 18px; height: 18px; border: 0; border-left: 2px solid rgba(230,220,198,.75); border-top: 2px solid rgba(230,220,198,.75); border-radius: 0; rotate: 45deg; margin-top: 8px; } .intro-mouse::before { display: none; } }
/* Fin : la scène s'efface sur le site. */
.intro.intro-done { pointer-events: none; animation: intro-out .9s ease forwards; }
@keyframes intro-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes intro-photo { from { opacity: 0; } to { opacity: 1; } }
@keyframes intro-out { to { opacity: 0; visibility: hidden; } }
/* Pendant l'écran d'accueil, les animations d'entrée de la page attendent. */
html.intro-on .home-hero-text > *, html.intro-on .page-hero-inner > div > *, html.intro-on .deadline-card,
html.intro-on .home-hero-img, html.intro-on .photo-hero-img, html.intro-on .hero-word, html.intro-on .page-hero h1::after,
html.intro-on .navbar, html.intro-on header.top, html.intro-on .rp-banner, html.intro-on main { animation-play-state: paused; }
@media (max-width: 520px) { .intro-agency { font-size: 14px; letter-spacing: .22em; padding-left: .22em; } .intro-sub { font-size: 14px; } }

/* ---------- Assistant (bouton robot en bas à droite ; assistant.js) ---------- */
.assist { position: fixed; right: 20px; bottom: 20px; z-index: 58; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; pointer-events: none; }
.assist[hidden] { display: none; }
.assist > * { pointer-events: auto; }
.assist-fab { width: 60px; height: 60px; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center; color: #fff;
  background: radial-gradient(circle at 35% 30%, #2a5ca8, var(--navy) 70%); box-shadow: 0 10px 26px rgba(11,34,80,.4), 0 0 0 3px rgba(201,168,120,.55);
  transition: transform .2s var(--ease-out), box-shadow .2s; animation: assist-arrive .6s var(--ease-out) .4s both; }
.assist-fab svg { width: 34px; height: 34px; --robot-face: var(--navy); }
.assist-fab:hover, .assist-fab:focus-visible { transform: translateY(-3px) scale(1.05); box-shadow: 0 14px 30px rgba(11,34,80,.45), 0 0 0 4px var(--gold); }
.assist-fab:hover .assist-eye { animation: assist-blink .5s ease; transform-origin: center; transform-box: fill-box; }
.assist.open .assist-fab { transform: scale(.9); }
@keyframes assist-arrive { from { opacity: 0; transform: translateY(20px) scale(.8); } to { opacity: 1; transform: none; } }
@keyframes assist-blink { 0%, 100% { transform: none; } 50% { transform: scaleY(.15); } }
html.intro-on .assist-fab { animation-play-state: paused; }

.assist-panel { width: min(370px, calc(100vw - 32px)); height: min(540px, calc(100vh - 120px)); background: #fff; color: var(--ink); border-radius: 16px; overflow: hidden;
  display: flex; flex-direction: column; box-shadow: 0 24px 60px rgba(11,34,80,.35); border: 1px solid var(--line); transform-origin: bottom right; animation: assist-open .25s var(--ease-out); }
.assist-panel[hidden] { display: none; }
@keyframes assist-open { from { opacity: 0; transform: translateY(10px) scale(.96); } to { opacity: 1; transform: none; } }
.assist-head { display: flex; align-items: center; gap: 10px; padding: 12px 10px 12px 14px; background: linear-gradient(135deg, var(--navy), #1f4e99); color: #fff; }
.assist-head div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.assist-head strong { font-size: 16px; }
.assist-head span { font-size: 12px; color: #cbd5ec; }
.assist-avatar { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.14); display: grid; place-items: center; flex: none; }
.assist-avatar svg { width: 26px; height: 26px; color: #fff; --robot-face: #1f4e99; }
.assist-icon { width: 32px; height: 32px; border: 0; border-radius: 8px; background: transparent; color: #fff; cursor: pointer; display: grid; place-items: center; flex: none; transition: background .15s; }
.assist-icon:hover { background: rgba(255,255,255,.16); }
.assist-icon svg { width: 16px; height: 16px; }
.assist-log { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; background: #f6f8fb; overscroll-behavior: contain; }
.assist-msg { max-width: 88%; padding: 10px 12px; border-radius: 14px; font-size: 14.5px; line-height: 1.45; }
.assist-msg.new { animation: pop-in .25s var(--ease-out); }
.assist-msg p { margin: 0 0 6px; }
.assist-msg p:last-child { margin-bottom: 0; }
.assist-msg ul { margin: 4px 0 6px; padding-left: 18px; }
.assist-msg li { margin: 2px 0; }
.assist-msg a { color: var(--btn); font-weight: 600; }
.assist-msg.bot { align-self: flex-start; background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.assist-msg.me { align-self: flex-end; background: var(--btn); color: #fff; border-bottom-right-radius: 4px; }
.assist-q { font-weight: 700; color: var(--navy); }
.assist-more { font-size: 13.5px; }
.assist-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.assist-chips button { font: inherit; font-size: 13px; padding: 6px 10px; border-radius: 10px; border: 1px solid #b9c7e0; background: #eef3fb; color: var(--navy); cursor: pointer; transition: background .15s, border-color .15s; text-align: left; }
.assist-chips button:hover { background: var(--btn); border-color: var(--btn); color: #fff; }
.assist-msg.typing { display: flex; gap: 4px; padding: 12px 14px; }
.assist-msg.typing span { width: 7px; height: 7px; border-radius: 50%; background: #8d97a8; animation: assist-dot 1s infinite ease-in-out; }
.assist-msg.typing span:nth-child(2) { animation-delay: .15s; }
.assist-msg.typing span:nth-child(3) { animation-delay: .3s; }
@keyframes assist-dot { 0%, 80%, 100% { transform: translateY(0); opacity: .5; } 40% { transform: translateY(-4px); opacity: 1; } }
.assist-form { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--line); background: #fff; }
.assist-form input { flex: 1; min-width: 0; font: inherit; font-size: 15px; padding: 9px 12px; border: 1px solid #c3c9d3; border-radius: 14px; }  /* même arrondi que les bulles */
.assist-form input:focus { outline: 2px solid var(--btn); outline-offset: 0; border-color: var(--btn); }
.assist-form button { width: 40px; height: 40px; flex: none; border: 0; border-radius: 14px; background: var(--btn); color: #fff; cursor: pointer; display: grid; place-items: center; transition: background .15s, transform .12s; }
.assist-form button:hover { background: var(--navy); }
.assist-form button:active { transform: scale(.94); }
.assist-form button svg { width: 18px; height: 18px; }
@media (max-width: 520px) {
  .assist { right: 12px; bottom: 12px; }
  .assist-panel { width: calc(100vw - 24px); height: min(70vh, 540px); }
  .assist-fab { width: 54px; height: 54px; }
}
@media print { .assist { display: none !important; } }

/* ---------- Carte de San Andreas (maps.irs-rp.com ; carte/carte.js) ---------- */
.map-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 28px; padding-top: 32px; padding-bottom: 48px; align-items: start; }
.map-side { position: sticky; top: 64px; }
.map-search input { width: 100%; font: inherit; font-size: 15px; padding: 10px 12px; border: 1px solid #c3c9d3; border-radius: 8px; }
.map-search input:focus { outline: 2px solid var(--btn); border-color: var(--btn); }
.map-info { margin: 16px 0 22px; padding: 16px; background: var(--tint); border: 1px solid var(--line); border-left: 4px solid var(--navy); border-radius: 8px; min-height: 96px; }
.map-info.flash { animation: drop-in .3s var(--ease-out); }
.map-info h2 { font-size: 22px; margin: 2px 0 6px; }
.map-info p { margin: 0; font-size: 14.5px; }
.map-kicker { font-size: 12px !important; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-dark, #9c7b45); }
.map-legend { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 6px; }
.map-legend button { width: 100%; display: flex; align-items: center; gap: 10px; font: inherit; font-size: 15px; text-align: left; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; cursor: pointer; transition: border-color .15s, background .15s; }
.map-legend button:hover { border-color: var(--btn); }
.map-legend button[aria-pressed=true] { border-color: var(--navy); background: #eef3fb; font-weight: 700; }
.map-legend em { margin-left: auto; font-style: normal; font-size: 13px; color: var(--muted); }
.map-legend .sw { width: 16px; height: 16px; border-radius: 4px; border: 1px solid rgba(0,0,0,.15); flex: none; }
.map-note { font-size: 13px; color: var(--muted); margin: 0; }
.map-box { position: relative; height: min(78vh, 820px); min-height: 460px; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: #a9c6e4; box-shadow: 0 10px 30px rgba(15,47,107,.12); touch-action: none; cursor: grab; }
.map-box.dragging { cursor: grabbing; }
.map-svg { width: 100%; height: 100%; display: block; user-select: none; -webkit-user-select: none; }
.map-svg .sea { fill: #9fc0e2; }
.map-svg .shore { fill: #b7d2ec; }
.map-svg .cty { stroke: none; }
/* Eau intérieure de la même teinte que le bord de mer : aucune démarcation à l'embouchure. */
.map-svg .water { fill: #b7d2ec; stroke: none; }
.map-svg .coast { fill: none; stroke: #5f86b3; stroke-width: 1.4; stroke-linecap: round; vector-effect: non-scaling-stroke; }
/* Pas de traits de limite : les quartiers se distinguent par leur nuance (--f). */
.map-svg .d { fill: var(--f); stroke: none; cursor: pointer; transition: fill .15s, opacity .2s; }
/* Routes relevées (calque « Routes », masqué tant que la case n'est pas cochée). */
.map-svg .roads { display: none; pointer-events: none; }
.map-svg.show-roads .roads { display: inline; }
.map-svg .roads path { fill: none; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
/* Calques « Limites de quartiers » et « Relief », masqués tant que la case n'est pas cochée. */
.map-svg .dlimits, .map-svg .relief { display: none; pointer-events: none; }
.map-svg.show-dlimits .dlimits, .map-svg.show-relief .relief { display: inline; }
.map-svg .dlimits { fill: none; stroke: #7d8696; stroke-opacity: .55; stroke-width: .6; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.map-svg .relief image { opacity: .85; }
.map-svg .contour { fill: none; stroke: #7a6245; stroke-opacity: .3; stroke-width: .6; vector-effect: non-scaling-stroke; }
.map-svg .contour.major { stroke-opacity: .5; stroke-width: .9; }
.map-svg .road-c { stroke: #b59a6a; stroke-width: 1.1; stroke-dasharray: 3 3; }
.map-box.loading { cursor: progress; }
.map-svg .road-r.casing, .map-svg .casing > .road-r { stroke: #9aa6b8; stroke-width: 2.6; }
/* Niveau de détail : réseau simplifié de loin, carreaux détaillés de près (une fois chargés). */
.map-svg .roads .near { display: none; }
.map-svg:not(.roads-far) .roads.detail-ready .near { display: inline; }
.map-svg:not(.roads-far) .roads.detail-ready .far { display: none; }
.map-svg .roads .far .road-r { stroke: #fff; stroke-width: 1.2; }
.map-svg.moving .roads .casing, .map-svg.moving .contour { display: none; }
.map-svg .road-r { stroke: #fff; stroke-width: 1.3; }
.map-svg .road-a.casing, .map-svg .casing > .road-a { stroke: #c08a2c; stroke-width: 3.8; }
.map-svg .road-a { stroke: #f7d27e; stroke-width: 2.2; }
.map-layers { display: grid; gap: 6px; margin: 0 0 20px; }
.map-layer { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 15px; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; cursor: pointer; transition: border-color .15s; }
.map-layer:hover { border-color: var(--btn); }
.map-layer input { width: 16px; height: 16px; margin: 0; accent-color: var(--navy); cursor: pointer; }
.map-layer .sw-dlim { width: 22px; height: 0; border-top: 1px solid #8a93a3; }
.map-layer .sw-relief { width: 22px; height: 12px; border-radius: 3px; background: linear-gradient(135deg, #fff 0 30%, #b9ad98 60%, #6f6352); }
.map-layer .sw-road { width: 22px; height: 6px; border-radius: 3px; background: #fff; box-shadow: 0 0 0 1.5px #9aa6b8; }
.map-svg .limit { fill: none; stroke: #0f2f6b; stroke-opacity: .28; stroke-width: 1; stroke-linejoin: round; vector-effect: non-scaling-stroke; pointer-events: none; }
.map-svg .d:hover { fill: color-mix(in srgb, var(--f), #2a5ca8 28%); }
.map-svg .d.sel { fill: color-mix(in srgb, var(--f), #1f4e99 40%); stroke: var(--gold); stroke-width: 3; vector-effect: non-scaling-stroke; }
.map-svg[data-only=ls] .d:not(.d-ls), .map-svg[data-only=lsc] .d:not(.d-lsc), .map-svg[data-only=blaine] .d:not(.d-blaine), .map-svg[data-only=base] .d:not(.d-base), .map-svg[data-only=cayo] .d:not(.d-cayo) { fill: color-mix(in srgb, var(--f), #fff 65%); }
.map-svg .scale path { stroke: #0f2f6b; stroke-width: 2; vector-effect: non-scaling-stroke; fill: none; }
.map-svg .scale text { font: 700 calc(var(--k, 8) * 12px) 'Source Sans 3', sans-serif; fill: #0f2f6b; text-anchor: middle; }
.map-svg .lbl { font: 600 calc(var(--k, 8) * 12px) 'Source Sans 3', sans-serif; fill: #1d2a44; text-anchor: middle; dominant-baseline: middle; paint-order: stroke; stroke: rgba(255,255,255,.85); stroke-width: calc(var(--k, 8) * 3px); pointer-events: none; }
.map-svg .lbl.major { font-size: calc(var(--k, 8) * 13.5px); font-weight: 700; }
.map-svg .lbl.water { fill: #1c4486; fill-opacity: .42; font-size: calc(var(--k, 8) * 11px); font-style: italic; font-weight: 500; stroke: none; letter-spacing: .08em; }
/* Noms des quartiers : seulement en zoomant (les grands d'abord), ou au survol / à la sélection. */
.map-svg.zoom-far .lbl:not(.water), .map-svg.zoom-mid .lbl.minor { display: none; }
.map-svg .lbl.hov, .map-svg .lbl.sel { fill: #0b2250; font-weight: 800; }
.map-svg.zoom-far .lbl.hov, .map-svg.zoom-far .lbl.sel, .map-svg.zoom-mid .lbl.minor.hov, .map-svg.zoom-mid .lbl.minor.sel { display: inline; }
.map-svg .compass circle { fill: rgba(255,255,255,.85); stroke: #6f8fb3; stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.map-svg .compass path { fill: var(--navy); }
.map-svg .compass text { font: 700 220px 'Source Sans 3', sans-serif; fill: var(--navy); text-anchor: middle; }
.map-tip { position: absolute; left: 0; top: 0; pointer-events: none; background: var(--navy); color: #fff; padding: 6px 10px; border-radius: 8px; font-size: 14px; box-shadow: 0 6px 16px rgba(0,0,0,.2); display: flex; flex-direction: column; white-space: nowrap; }
.map-tip[hidden] { display: none; }
.map-tip span { font-size: 12px; color: #cbd5ec; }
.map-ctrl { position: absolute; right: 12px; top: 12px; display: flex; flex-direction: column; gap: 6px; }
.map-ctrl button { width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line); background: #fff; color: var(--navy); font: 700 20px/1 'Source Sans 3', sans-serif; cursor: pointer; display: grid; place-items: center; box-shadow: 0 2px 8px rgba(0,0,0,.12); transition: background .15s, color .15s, border-color .15s; }
.map-ctrl button:hover { background: var(--btn); border-color: var(--btn); color: #fff; }
.map-ctrl svg { width: 18px; height: 18px; }
@media (max-width: 860px) {
  .map-layout { grid-template-columns: 1fr; gap: 16px; padding-top: 20px; }
  .map-side { position: static; order: 2; }
  .map-box { height: 70vh; min-height: 380px; }
}

/* ---------- Administration : cartographie (toile des déclarations) ---------- */
.graph-show { display: flex; align-items: flex-end; gap: 14px; border: 0; margin: 0; padding: 0; font-size: 14px; }
.graph-show legend { font-size: 13px; font-weight: 600; padding: 0; margin-bottom: 8px; }
.graph-show label { display: flex; flex-direction: row; align-items: center; gap: 6px; height: 38px; font-weight: 400; font-size: 14px; }
.graph-show input { width: 16px; height: 16px; accent-color: var(--navy); }
.graph-wrap { position: relative; height: min(72vh, 720px); min-height: 420px; margin-top: 12px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden;
  background: radial-gradient(circle at 1px 1px, #d9dee7 1px, transparent 1.2px) 0 0 / 22px 22px, #f7f9fc; }
.graph-wrap:fullscreen { height: 100vh; border-radius: 0; }
.graph-canvas { display: block; width: 100%; height: 100%; cursor: grab; touch-action: none; }
.graph-tools { position: absolute; top: 12px; right: 12px; display: flex; flex-direction: column; gap: 6px; }
.graph-tools button { width: 36px; height: 36px; border-radius: 8px; border: 1px solid var(--line); background: #fff; color: var(--navy); font: 700 20px/1 'Source Sans 3', sans-serif; cursor: pointer; display: grid; place-items: center; box-shadow: 0 2px 8px rgba(0,0,0,.1); transition: background .15s, color .15s, border-color .15s; }
.graph-tools button:hover { background: var(--btn); border-color: var(--btn); color: #fff; }
.graph-tools svg { width: 18px; height: 18px; }
.graph-legend { position: absolute; left: 12px; bottom: 12px; list-style: none; margin: 0; padding: 8px 12px; display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; background: rgba(255,255,255,.92); border: 1px solid var(--line); border-radius: 8px; }
.graph-legend li { display: flex; align-items: center; gap: 6px; }
.gl { display: inline-block; flex: none; width: 12px; height: 12px; }
.gl-person { border-radius: 50%; background: #0f2f6b; }
.gl-company { border-radius: 3px; background: #2a5ca8; height: 10px; }
.gl-sector { background: #c9a227; transform: rotate(45deg) scale(.85); }
.gl-city { background: #6b7a90; clip-path: polygon(25% 5%, 75% 5%, 100% 50%, 75% 95%, 25% 95%, 0 50%); }
.gl-fraud { background: #c62828; clip-path: polygon(50% 0, 100% 95%, 0 95%); }
.graph-info { position: absolute; top: 12px; left: 12px; width: min(340px, calc(100% - 80px)); max-height: calc(100% - 70px); overflow: auto; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; box-shadow: 0 10px 30px rgba(15,47,107,.16); font-size: 14px; }
.graph-info h3 { font-size: 20px; margin: 2px 26px 10px 0; line-height: 1.2; }
.graph-info h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin: 14px 0 6px; }
.graph-info dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; margin: 0; }
.graph-info dt { color: var(--muted); }
.graph-info dd { margin: 0; font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.graph-kind { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 0; }
.graph-close { position: absolute; top: 8px; right: 8px; width: 30px; height: 30px; border: 0; border-radius: 6px; background: none; font-size: 22px; line-height: 1; color: var(--muted); cursor: pointer; }
.graph-close:hover { background: var(--tint); color: var(--ink); }
.graph-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.graph-links li { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.graph-links .muted { font-size: 12px; white-space: nowrap; }
.graph-chip { display: flex; align-items: center; gap: 7px; min-width: 0; background: none; border: 0; padding: 3px 4px; margin-left: -4px; border-radius: 5px; font: inherit; font-weight: 600; color: var(--btn); text-align: left; cursor: pointer; }
.graph-chip:hover { background: var(--tint); }
.graph-alert { background: #fff8dd; border: 1px solid #f0d78a; border-radius: 6px; padding: 6px 10px; font-weight: 600; margin: 0 0 10px; }
.graph-empty { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; padding: 24px; text-align: center; color: var(--muted); pointer-events: none; }
.graph-empty[hidden] { display: none; }
@media (max-width: 700px) {
  .graph-info { top: auto; bottom: 12px; max-height: 55%; width: calc(100% - 24px); }
  .graph-legend { display: none; }
}

/* ---------- Administration : score des entreprises (A+ à F-) ---------- */
.grade { display: inline-grid; place-items: center; min-width: 38px; height: 30px; padding: 0 6px; border-radius: 7px; font: 800 15px/1 'Source Sans 3', sans-serif; color: #fff; letter-spacing: .02em; }
/* A+ (dossier validé par l'IRS) : en or, comme le bouton « Passer en A+ » et l'annuaire. */
.g-ap { background: linear-gradient(135deg, #a8792a, #f1d48a 50%, #b8862b); color: #3b2a07; box-shadow: 0 0 0 1px #c9a878 inset; }
.g-a { background: #1e8e4e; } .g-b { background: #6aa84f; } .g-c { background: #c9a227; color: #1b1300; }
.g-d { background: #e69138; } .g-e { background: #d9622b; } .g-f { background: #c0392b; } .g-fm { background: #6e1414; }
.score-dist { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 8px; margin: 14px 0 16px; }
.score-tile { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 4px; background: #fff; border: 1px solid var(--line); border-radius: 10px; font: inherit; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.score-tile b { font-size: 20px; line-height: 1; }
.score-tile span:last-child { font-size: 12px; color: var(--muted); }
.score-tile:hover, .score-tile.on { border-color: var(--navy); box-shadow: 0 0 0 2px rgba(15,47,107,.15); }
.score-bar { width: 110px; height: 8px; border-radius: 4px; background: #e6e9ef; overflow: hidden; margin-bottom: 3px; }
.score-bar i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, #c0392b, #e69138 35%, #c9a227 55%, #1e8e4e 85%); background-size: 110px 100%; }
.score-table .neg, .score-lines .neg { color: #b50909; font-weight: 700; }
.score-lines .pos { color: #1e7a45; font-weight: 700; }
.score-table .small, .score-dialog .small { font-size: 13px; }
.score-rules { margin-top: 20px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.score-rules summary { font-size: 16px; }
.score-rules > div { padding: 0 20px 16px; font-size: 15px; }
.score-rules ul { margin: 6px 0 10px; padding-left: 20px; }
.score-rules .grade { min-width: 30px; height: 24px; font-size: 13px; }
.score-dialog { width: min(520px, calc(100vw - 32px)); }
.score-dialog h2 { font-size: 26px; margin: 2px 0 12px; }
.score-head { display: flex; align-items: center; gap: 12px; margin: 0 0 12px; line-height: 1.3; }
.score-head .grade { min-width: 52px; height: 44px; font-size: 22px; border-radius: 10px; }
.score-lines { margin: 8px 0 12px; font-size: 14.5px; }
.score-lines tfoot td { font-weight: 800; border-top: 2px solid var(--line); }
.score-ok { font-weight: 700; color: #1e7a45; }
.graph-info .score-head .grade { min-width: 40px; height: 34px; font-size: 17px; }
@media (max-width: 800px) { .score-dist { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ---------- Administration : graphique (statistiques par semaine) ---------- */
.chart-check { flex-direction: row !important; align-items: center; align-self: flex-end; height: 38px; gap: 8px !important; font-weight: 400 !important; font-size: 15px !important; }
.chart-check input { width: 16px; height: 16px !important; accent-color: var(--navy); }
.chart-layout { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 16px; margin-top: 12px; align-items: start; }
.chart-legend { position: sticky; top: 70px; max-height: calc(100vh - 90px); overflow: auto; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.chart-legend-head { display: flex; align-items: baseline; gap: 8px; margin-bottom: 4px; font-size: 14px; }
.chart-legend-head .linkbtn { margin-left: auto; font-size: 13px; }
.chart-group { border: 0; padding: 0; margin: 12px 0 0; }
.chart-group legend { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: 0; margin-bottom: 4px; }
.chart-item { display: flex; align-items: center; gap: 8px; padding: 4px 6px; margin: 0 -6px; border-radius: 6px; font-size: 14px; line-height: 1.25; cursor: pointer; }
.chart-item:hover { background: var(--tint); }
.chart-item input { width: 15px; height: 15px; margin: 0; flex: none; accent-color: var(--navy); }
.chart-item i { width: 12px; height: 12px; border-radius: 3px; flex: none; }
.chart-item span { flex: 1; }
.chart-item em { font-style: normal; font-size: 11px; color: var(--muted); border: 1px solid var(--line); border-radius: 4px; padding: 0 4px; }
.chart-area { min-width: 0; }
.chart-empty { display: grid; place-items: center; min-height: 320px; margin: 0; border: 1px dashed #c3c8cf; border-radius: 12px; color: var(--muted); background: #fafbfc; text-align: center; padding: 20px; }
.chart-empty[hidden] { display: none; }
.chart-box { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px 8px; margin-bottom: 14px; }
.chart-title { font-weight: 700; font-size: 14px; margin: 0 0 6px; }
.chart-canvas { position: relative; height: 300px; }
.chart-canvas canvas { display: block; width: 100%; height: 100%; cursor: crosshair; }
.chart-tip { position: absolute; top: 8px; z-index: 2; min-width: 180px; max-width: 320px; background: var(--navy); color: #fff; border-radius: 8px; padding: 8px 10px; font-size: 13px; display: grid; gap: 3px; pointer-events: none; box-shadow: 0 6px 16px rgba(0,0,0,.2); }
.chart-tip span { display: flex; align-items: center; gap: 6px; }
.chart-tip span b { margin-left: auto; padding-left: 10px; }
.chart-tip i { width: 10px; height: 10px; border-radius: 2px; flex: none; }
@media (max-width: 900px) { .chart-layout { grid-template-columns: 1fr; } .chart-legend { position: static; max-height: 360px; } }
.chart-checks { display: flex; flex-wrap: wrap; gap: 4px 14px; align-self: flex-end; }
.chart-title .muted { font-weight: 400; font-size: 13px; }
.chart-box-totals .chart-canvas { height: 320px; }
.chart-totals { list-style: none; margin: 10px 0 4px; padding: 0; display: grid; gap: 4px; font-size: 14px; }
.chart-totals li { display: grid; grid-template-columns: 12px 1fr auto 64px; align-items: center; gap: 8px; }
.chart-totals i { width: 12px; height: 12px; border-radius: 3px; }
.chart-totals b { font-variant-numeric: tabular-nums; }
.chart-totals em { font-style: normal; color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; }

/* ---------- Simulateur d'impôt ---------- */
.sim-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 40px; padding-top: 48px; padding-bottom: 72px; align-items: start; }
.sim-note { font-size: 14px; color: var(--muted); margin: -4px 0 14px; }
.sim-note a, .sim-excluded a, .sim-foot a { color: var(--btn); }
.sim-rates { display: flex; flex-wrap: wrap; gap: 6px; margin: -4px 0 16px; }
.sim-rates span { font-size: 13px; padding: 4px 9px; border: 1px solid var(--line); border-radius: 99px; background: var(--tint); cursor: pointer; user-select: none; }
.sim-rates span:hover { border-color: var(--btn); }
.sim-rates span.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.sim-rates b { font-variant-numeric: tabular-nums; }
.sim-subtotal { display: flex; justify-content: space-between; padding: 10px 14px; margin: 0 0 14px; background: var(--tint); border-radius: 8px; font-variant-numeric: tabular-nums; }
.sim-excluded { margin-bottom: 16px; font-size: 14px; }
.sim-excluded summary { cursor: pointer; color: var(--btn); font-weight: 600; }
.sim-excluded p { margin: 8px 0 0; color: #33373d; }
.sim-warn { margin: -4px 0 16px; padding: 8px 12px; border-radius: 8px; background: #fdecec; color: #8a1010; font-size: 14px; }
.sim-compare { margin-bottom: 18px; }
.sim-compare table { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.sim-compare th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); background: var(--tint); padding: 8px 12px; }
.sim-compare td { padding: 7px 12px; border-top: 1px solid var(--line); }
.sim-compare .num { text-align: right; white-space: nowrap; }
.sim-compare tr.on td { background: #eef2f8; font-weight: 700; }
.sim-reset { font: inherit; font-weight: 700; cursor: pointer; }
.sim-result { position: sticky; top: 64px; }
.sim-card { background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--gold); border-radius: 12px; padding: 22px 22px 18px; box-shadow: 0 6px 24px rgba(15,47,107,.08); }
.sim-kicker { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.sim-tax { font-family: var(--serif); font-size: 44px; line-height: 1.1; color: var(--navy); font-variant-numeric: tabular-nums; margin-bottom: 4px; }
.sim-rate { font-size: 14px; color: var(--muted); margin-bottom: 16px; }
.sim-bar { display: flex; height: 14px; border-radius: 99px; overflow: hidden; background: var(--tint); margin-bottom: 10px; }
.sim-bar span { flex: 0 1 0; transition: flex-grow .25s; }
.sim-bar.empty span { flex-grow: 0 !important; }
.b-exp { background: #8a94a6; } .b-pay { background: #c9a878; } .b-tax { background: #0f2f6b; } .b-net { background: #2f8f57; }
.sim-legend { list-style: none; margin: 0 0 16px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 4px 14px; font-size: 13px; }
.sim-legend li { display: flex; align-items: center; gap: 6px; }
.sim-legend i { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.sim-legend strong { margin-left: auto; font-variant-numeric: tabular-nums; }
.sim-card .decl-summary { margin-bottom: 14px; }
.sim-card .decl-summary .row { font-size: 15px; padding: 6px 0; }
.sim-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0 0 12px; }
.sim-facts div { background: var(--tint); border-radius: 8px; padding: 8px 10px; }
.sim-facts dt { font-size: 12px; color: var(--muted); }
.sim-facts dd { margin: 2px 0 0; font-weight: 700; font-variant-numeric: tabular-nums; }
.sim-foot { font-size: 12px; color: var(--muted); margin-bottom: 14px; }
.sim-go { display: block; text-align: center; font-weight: 700; }
@media (max-width: 960px) {
  .sim-layout { grid-template-columns: 1fr; gap: 24px; padding-top: 28px; }
  .sim-result { position: static; }
  .sim-tax { font-size: 36px; }
}
.deadline-sim { display: block; margin-top: 6px; font-weight: 600; font-size: 14px; color: var(--muted); }
/* Barre collée : liens resserrés pour tenir sur une ligne avec le logo et la recherche. */
.menu a { white-space: nowrap; }
@media (max-width: 1240px) {
  .navbar.stuck .menu a { padding: 0 8px; font-size: 13.5px; }
  .navbar.stuck .menu a::after { left: 8px; right: 8px; }
  .navbar.stuck .nav-logo { margin-right: 8px; }
  .navbar.stuck .nav-search input { width: 110px; }
}
.sim-form, .sim-form fieldset { min-width: 0; }
.sim-mobile { display: none; }
@media (max-width: 960px) {
  .sim-mobile { position: fixed; left: 12px; right: 84px; bottom: 12px; z-index: 40; display: flex; justify-content: space-between; align-items: center; gap: 10px;
    padding: 10px 16px; border-radius: 12px; background: var(--navy); color: #fff; text-decoration: none; box-shadow: 0 6px 20px rgba(0,0,0,.25); font-size: 14px; }
  .sim-mobile strong { font-family: var(--serif); font-size: 20px; font-variant-numeric: tabular-nums; }
  .sim-mobile[hidden] { display: none; }
}

/* ---------- Page d'une actualité ---------- */
.article-hero { position: relative; overflow: hidden; background: var(--navy); color: #fff; min-height: min(62vh, 560px); display: flex; align-items: flex-end; }
.article-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.article-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,34,80,.15) 0%, rgba(11,34,80,.35) 45%, rgba(11,34,80,.92) 100%); }
.article-hero-inner { position: relative; z-index: 1; padding-top: 120px; padding-bottom: 40px; width: 100%; }
.article-hero .crumbs, .article-hero .crumbs a { color: rgba(255,255,255,.85); }
.article-hero .news-meta { color: rgba(255,255,255,.9); }
.article-hero .tag { background: var(--gold); color: var(--navy-dark); }
.article-hero h1 { color: #fff; font-size: clamp(32px, 4.6vw, 54px); line-height: 1.1; max-width: 900px; text-wrap: balance; }
.article-layout { padding-top: 44px; padding-bottom: 64px; }
.article-main { max-width: 760px; margin: 0 auto; }
.article-lead { font-size: 21px; line-height: 1.55; color: var(--ink); font-weight: 600; margin-bottom: 22px; }
.article-body p { font-size: 18px; line-height: 1.7; color: #2b2f35; margin-bottom: 18px; }
.article-body a { color: var(--btn); word-break: break-word; }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; margin: 28px 0 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.share-title { font-size: 13px; color: var(--muted); margin-right: 2px; }
.share-btn { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border: 1px solid var(--line); border-radius: 99px; background: #fff; font: inherit; font-size: 13px; font-weight: 600; color: #3d434b; cursor: pointer; transition: border-color .15s, color .15s; }
.share-btn:hover { border-color: var(--btn); color: var(--btn); }
.share-btn[hidden] { display: none; }
.share svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.share svg .fill { fill: currentColor; stroke: none; }
.share-link { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; background: #fff; border: 1px solid var(--line); color: #565c65; transition: background .15s, color .15s, border-color .15s; }
.share-link:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.share-discord:hover { background: #5865f2; border-color: #5865f2; }
.share-done { flex-basis: 100%; font-size: 13px; color: #1f7a3f; font-weight: 600; }
.share-done[hidden] { display: none; }
.article-credit { font-size: 13px; color: var(--muted); }
.article-credit a { color: inherit; }
.article-back { display: inline-block; margin-top: 18px; font-weight: 700; color: var(--btn); text-decoration: none; }
.article-back:hover { text-decoration: underline; }
/* Liste des actualités : cartes cliquables vers la page de l'article. */
.news-img { display: block; overflow: hidden; }
.news-img img { transition: transform .4s ease; }
.news-card:hover .news-img img, .news-feature:hover .news-img img { transform: scale(1.03); }
.news-feature .news-img { height: 100%; }
.news-body h2 a, .news-body h3 a { color: inherit; text-decoration: none; }
.news-body h2 a:hover, .news-body h3 a:hover { color: var(--btn); }
.news-actions { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.news-more { display: inline-block; font-weight: 700; font-size: 15px; color: var(--btn); text-decoration: none; }
.news-copy { display: inline-flex; align-items: center; gap: 6px; height: 30px; min-width: 30px; justify-content: center; padding: 0 7px; border: 1px solid var(--line); border-radius: 99px; background: #fff; color: #565c65; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; transition: border-color .15s, color .15s, background .15s; }
.news-copy:hover { border-color: var(--btn); color: var(--btn); }
.news-copy svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.news-copy span:empty { display: none; }
.news-copy.ok { background: #e3f4e8; border-color: #1f7a3f; color: #1f7a3f; padding: 0 10px; }
.news-more:hover { text-decoration: underline; }
@media (max-width: 700px) {
  .article-hero { min-height: 420px; }
  .article-hero-inner { padding-top: 90px; padding-bottom: 28px; }
  .article-lead { font-size: 19px; }
  .article-body p { font-size: 17px; }
}
.share-done a { color: var(--btn); margin-left: 4px; }

/* ---------- Page 404 ---------- */
.nf { background: linear-gradient(180deg, #f4f6fa 0%, #fff 70%); }
.nf-inner { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 64px; align-items: center; padding-top: 72px; padding-bottom: 96px; }
.nf-kicker { font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-dark, #9c7b45); margin-bottom: 10px; }
.nf h1 { font-size: clamp(34px, 4.4vw, 50px); color: var(--navy); margin-bottom: 16px; }
.nf-lead { font-size: 19px; line-height: 1.55; color: #33373d; max-width: 560px; margin-bottom: 28px; }
.nf-search { display: flex; gap: 8px; max-width: 560px; margin-bottom: 18px; }
.nf-search input { flex: 1; min-width: 0; height: 48px; border: 1px solid #c3c8cf; border-radius: 6px; padding: 0 14px; font: inherit; font-size: 16px; }
.nf-search input:focus { outline: none; border-color: var(--btn); box-shadow: 0 0 0 3px rgba(42,92,168,.2); }
.nf-search .btn { font: inherit; font-weight: 700; cursor: pointer; padding: 0 20px; }
.nf-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 36px; }
.nf-links-title { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.nf-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.nf-links a { display: inline-block; padding: 6px 14px; border: 1px solid var(--line); border-radius: 99px; background: #fff; color: var(--navy); font-weight: 600; font-size: 15px; text-decoration: none; transition: border-color .15s, color .15s; }
.nf-links a:hover { border-color: var(--btn); color: var(--btn); }
.nf-file { display: flex; justify-content: center; }
.nf-card { position: relative; width: 100%; max-width: 380px; background: #fff; border: 1px solid var(--line); border-top: 5px solid var(--navy); border-radius: 10px; padding: 26px 28px 30px; box-shadow: 0 18px 40px rgba(15,47,107,.12); transform: rotate(-2deg); }
.nf-card::before { content: ""; position: absolute; inset: 10px -10px -10px 10px; background: #eef1f6; border: 1px solid var(--line); border-radius: 10px; z-index: -1; transform: rotate(4deg); }
.nf-card-head { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; border-bottom: 1px dashed var(--line); }
.nf-card-head strong { display: block; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--navy); }
.nf-card-head span { font-size: 13px; color: var(--muted); }
.nf-code { font-family: var(--serif); font-weight: 700; font-size: 104px; line-height: 1; color: var(--navy); margin: 18px 0 14px; letter-spacing: .02em; }
.nf-card dl { margin: 0; }
.nf-card dl div { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-top: 1px solid #eef0f3; font-size: 14px; }
.nf-card dt { color: var(--muted); }
.nf-card dd { margin: 0; font-weight: 600; color: var(--ink); text-align: right; }
.nf-stamp { position: absolute; right: 18px; top: 104px; padding: 6px 14px; border: 3px solid #b3261e; border-radius: 6px; color: #b3261e; font-weight: 800; font-size: 20px; letter-spacing: .14em; text-transform: uppercase; transform: rotate(-14deg); opacity: .82; mix-blend-mode: multiply; }
@media (max-width: 860px) {
  .nf-inner { grid-template-columns: 1fr; gap: 40px; padding-top: 40px; padding-bottom: 64px; }
  .nf-file { padding: 0 12px; }
  .nf-card { max-width: 300px; padding: 20px 22px 24px; }
  .nf-code { font-size: 76px; }
  .nf-stamp { top: 82px; font-size: 16px; }
  .nf-search { flex-direction: column; }
  .nf-search input { flex: none; }
  .nf-search .btn { height: 46px; }
}

/* ---------- Administration : comptes (tableau sans défilement horizontal) ---------- */
.users-table { table-layout: fixed; }
.users-table th, .users-table td { white-space: normal; overflow-wrap: anywhere; vertical-align: top; }
.users-table th { padding: 10px 10px; }
.users-table td { padding: 12px 10px; }
.users-table .acc-who strong { display: block; color: var(--navy); }
.users-table .acc-who .muted { display: block; font-size: 13.5px; }
.users-table .tag { display: inline-block; width: fit-content; margin-top: 4px; }
.users-table .role-pick select { width: 100%; }
.users-table .acc-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.users-table .acc-actions .linkbtn { font-size: 13px; text-align: right; overflow-wrap: normal; }
.users-table .place-none { color: var(--muted); font-style: italic; }
.decl-form [hidden] { display: none !important; }
.js-owner-note { background: var(--tint); color: var(--ink); margin: 0 0 14px; }

/* ---------- Administration : Impôts ---------- */
.tax-table { table-layout: fixed; margin-bottom: 8px; }
.tax-table td { white-space: normal; vertical-align: top; }
.tax-table .tax-name { width: 100%; height: 36px; border: 1px solid #c3c8cf; border-radius: 6px; padding: 0 10px; font: inherit; font-weight: 600; }
.tax-table .tax-name:disabled { background: transparent; border-color: transparent; padding: 0; color: var(--muted); text-decoration: line-through; }
.tax-table .money.pct input { width: 100%; height: 36px; }
.tax-table .money.adj em { font-size: 12px; }
/* Seuil d'un palier de salariés : « sal. » plus large que « % », le chiffre s'arrête avant. */
.tax-table .money.tier em { font-size: 12px; right: 10px; }
.tax-table .money.tier input { padding-right: 44px; }
.tax-table .money.adj input { padding-right: 36px; }
.tax-tr { margin-top: 4px; font-size: 13px; }
.tax-tr summary { display: inline-block; padding: 0; font-size: 12.5px; font-weight: 600; color: var(--btn); width: fit-content; }
.tax-tr summary::before { display: none; }
.tax-tr summary:hover { background: none; text-decoration: underline; }
.tax-tr input { display: block; width: 100%; height: 32px; margin-top: 6px; border: 1px solid #c3c8cf; border-radius: 6px; padding: 0 10px; font: inherit; font-size: 14px; }
.tax-off td { background: #fafafa; }
.tax-fixed td { background: var(--tint); }
.tax-fixed .small { display: block; }
.tax-add { margin: 2px 0 8px; }
.tax-h { margin-top: 28px; }
.tax-save { margin-top: 20px; }
.tax-example-pick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
.tax-example-pick label span { display: block; font-size: 13px; font-weight: 600; margin-bottom: 4px; }
.tax-example-pick select { width: 100%; height: 38px; border: 1px solid #c3c8cf; border-radius: 6px; padding: 0 8px; font: inherit; background: #fff; }
.tax-example-result { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 12px; margin: 0; padding: 14px 16px; background: var(--tint); border-radius: 8px; font-size: 20px; font-variant-numeric: tabular-nums; }
.tax-example-result small { font-size: 12px; color: var(--muted); margin-left: 3px; }
.tax-example-result b { color: var(--gold-dark, #9c7b45); }
.tax-example-result strong { font-family: var(--serif); font-size: 26px; color: var(--navy); }
@media (max-width: 760px) { .tax-example-pick { grid-template-columns: 1fr; } }
.tax-example-pick { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tax-example-pick input { width: 100%; height: 38px; border: 1px solid #c3c8cf; border-radius: 6px; padding: 0 8px; font: inherit; background: #fff; }
@media (max-width: 1000px) { .tax-example-pick { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .tax-example-pick { grid-template-columns: 1fr; } }
/* Impôts : mini header, un gros bouton par type d'impôt */
.tax-nav { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 22px; }
.tax-nav > button { flex: 1 1 150px; }
#impots { container-type: inline-size; }
@container (max-width: 820px) { .tax-nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@container (max-width: 540px) { .tax-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@container (max-width: 340px) { .tax-nav { grid-template-columns: 1fr; } }
.tax-nav button { display: flex; align-items: center; gap: 10px; min-height: 76px; padding: 12px; border: 1px solid var(--line); border-top: 3px solid var(--line); border-radius: 10px;
  background: #fff; color: var(--ink); font: inherit; text-align: left; cursor: pointer; transition: border-color .15s, background .15s, box-shadow .15s; }
.tax-nav button:hover { border-color: #b8c3d6; border-top-color: var(--gold); background: #fafbfd; }
.tax-nav button:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }
.tax-nav button[aria-pressed="true"] { border-color: var(--navy); border-top-color: var(--gold); background: #f3f6fb; box-shadow: 0 2px 8px rgba(15, 47, 107, .12); }
.tax-nav svg { flex: none; width: 34px; height: 34px; padding: 7px; border-radius: 50%; background: #eef2f8; color: var(--navy); }
.tax-nav button[aria-pressed="true"] svg { background: var(--navy); color: #fff; }
.tax-nav span { min-width: 0; }
.tax-nav strong { display: block; font-size: 15px; line-height: 1.25; color: var(--navy); }
.tax-nav small { display: block; margin-top: 3px; font-size: 12.5px; line-height: 1.3; color: var(--muted); }
.tax-sec[hidden], #tax-form[hidden] { display: none !important; }

/* Menu de l'administration en groupes (suivi, analyse, communication, réglages) */
.adm-nav .adm-group { margin: 22px 0 8px; }
.adm-nav .adm-group:first-child { margin-top: 0; }
@media (max-width: 860px) { .adm-nav .adm-group { margin: 14px 0 6px; } }
/* Groupes rétractables : le titre ouvre ou referme ses onglets (tous refermés à l'arrivée) */
.adm-nav button.adm-group { display: flex; align-items: center; gap: 8px; width: 100%; background: none; border: 0; padding: 4px 0; font-family: inherit; font-size: 12px; font-weight: 700; line-height: inherit; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; text-align: left; color: var(--muted); }
.adm-nav button.adm-group:first-of-type { margin-top: 0; }
.adm-nav button.adm-group::after { content: ""; margin-left: auto; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); transition: transform .2s var(--ease-out, ease); opacity: .6; }
.adm-nav button.adm-group[aria-expanded=true]::after { transform: rotate(45deg); }
.adm-nav button.adm-group:hover { color: var(--btn); }
.adm-nav button.adm-group[aria-expanded=true] .adm-group-badge { display: none; }
.adm-tabs[hidden] { display: none !important; }

/* ---------- Carte : zones de l'IRS ---------- */
.map-svg .zones, .map-svg .hq { pointer-events: none; }
.sw-zone { width: 22px; height: 16px; border-radius: 3px; flex: none; border: 1.5px solid var(--zc);
  background: repeating-linear-gradient(45deg, var(--zc) 0 3px, color-mix(in srgb, var(--zc) 14%, #fff) 3px 7px); }
.sw-zone.plain { background: color-mix(in srgb, var(--zc) 45%, #fff); }
.map-zone-tag { display: flex; align-items: center; gap: 8px; margin: 8px 0 0; font-size: 14px; font-weight: 600; }

/* ---------- Administration : Maps ---------- */
.mz-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; align-items: start; margin-top: 16px; }
.mz-map { position: relative; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #9fc0e2; }
.mz-svg { height: min(70vh, 640px); cursor: grab; touch-action: none; }
.mz-svg.dragging { cursor: grabbing; }
.mz-svg > p { padding: 20px; background: #fff; margin: 0; }
.mz-svg .map-svg .d:hover { fill: color-mix(in srgb, var(--f), #2a5ca8 28%); }
.mz-svg .zones { pointer-events: none; }
.mz-svg .zones .active path { stroke-width: 3; }
.mz-ctrl { position: absolute; top: 10px; right: 10px; z-index: 2; display: flex; flex-direction: column; gap: 4px; }
.mz-ctrl button { width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 8px; background: #fff; font-size: 18px; font-weight: 700; color: var(--navy); cursor: pointer; }
.mz-hover { margin: 0; padding: 8px 12px; background: #fff; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--muted); min-height: 36px; }
.mz-hover strong { color: var(--navy); }
.mz-side { display: grid; gap: 12px; }
.mz-modes { display: inline-flex; gap: 4px; padding: 4px; margin: 0 0 12px; background: var(--tint); border: 1px solid var(--line); border-radius: 10px; }
.mz-modes button { border: 0; background: none; padding: 7px 14px; border-radius: 7px; font: inherit; font-size: 14.5px; font-weight: 600; color: var(--muted); cursor: pointer; }
.mz-modes button[aria-selected=true] { background: #fff; color: var(--navy); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.mz-layer.mz-fixed { cursor: default; }
.mz-none { border: 1px dashed var(--line); border-radius: 10px; padding: 12px; font-size: 13.5px; }
.mz-none strong { display: block; margin-bottom: 6px; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.mz-layer { border: 1px solid var(--line); border-left: 6px solid var(--zc); border-radius: 10px; padding: 12px; background: #fff; cursor: pointer; }
.mz-layer.on { box-shadow: 0 0 0 2px var(--btn); }
.mz-layer-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.mz-layer.on .mz-layer-head { color: var(--btn); }
.mz-layer input[type=text] { width: 100%; height: 34px; border: 1px solid #c3c8cf; border-radius: 6px; padding: 0 10px; font: inherit; font-size: 14px; }
.mz-row { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.mz-row input[type=color] { width: 40px; height: 34px; padding: 2px; border: 1px solid #c3c8cf; border-radius: 6px; background: #fff; cursor: pointer; }
.mz-row .mz-hex { width: 96px !important; font-family: ui-monospace, monospace; text-transform: uppercase; }
.mz-row label { display: flex; align-items: center; gap: 6px; font-size: 14px; margin: 0; cursor: pointer; }
.mz-chips { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 10px; }
.mz-chips button { border: 1px solid var(--line); border-radius: 99px; background: var(--tint); padding: 2px 8px; font: inherit; font-size: 12.5px; cursor: pointer; }
.mz-chips button:hover { border-color: #b50909; color: #b50909; text-decoration: line-through; }
.mz-chips .muted { font-size: 13px; }
.mz-layer .tax-tr input { height: 30px; }
.mz-find span { display: block; font-size: 13px; font-weight: 600; margin-bottom: 4px; }
.mz-find input { width: 100%; height: 36px; border: 1px solid #c3c8cf; border-radius: 6px; padding: 0 10px; font: inherit; }
.mz-save { width: 100%; font: inherit; font-weight: 700; cursor: pointer; }
.adm-readonly :is(#mz-new, #mz-save, .mz-find, [data-mz-del]) { display: none !important; }
@media (max-width: 1100px) { .mz-layout { grid-template-columns: 1fr; } .mz-svg { height: 60vh; } }

/* ---------- Carte : bâtiments (calque de la légende, décoché par défaut) ---------- */
.map-svg .buildings { display: none; pointer-events: none; }
.map-svg.show-buildings .buildings { display: inline; }
.map-svg .buildings path { fill: #b9c0cc; fill-opacity: .9; stroke: #8a93a3; stroke-width: .5; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.map-svg.moving .buildings path { stroke: none; }
.map-layer .sw-bld { width: 22px; height: 14px; border-radius: 2px; background: #b9c0cc; box-shadow: inset 0 0 0 1px #8a93a3; }

/* ---------- Menu : sous-menu au survol (Code des affaires → Formes juridiques, Secteurs d'activité) ---------- */
.menu-drop { position: relative; display: flex; }
.menu-drop > a::before { content: ""; order: 2; width: 0; height: 0; margin-left: 6px; border: 4px solid transparent; border-top-color: currentColor; border-bottom: 0; opacity: .7; }
.menu-sub { position: absolute; top: 100%; left: 0; z-index: 30; min-width: 210px; padding: 6px 0; background: var(--navy-dark); border-radius: 0 0 8px 8px;
  display: flex; flex-direction: column; box-shadow: 0 10px 24px rgba(0,0,0,.25); opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity .15s, transform .15s, visibility .15s; }
.menu-drop:hover .menu-sub, .menu-drop:focus-within .menu-sub { opacity: 1; visibility: visible; transform: none; }
.menu .menu-sub a { height: auto; padding: 10px 16px; white-space: nowrap; }
.menu .menu-sub a::after { left: 16px; right: auto; width: 24px; }
@media (max-width: 980px) {
  .menu-drop { flex-direction: column; }
  .menu-drop > a::before { display: none; }
  .menu-sub { position: static; min-width: 0; padding: 0; background: none; box-shadow: none; opacity: 1; visibility: visible; transform: none; }
  .menu .menu-sub a { padding: 10px 2px 10px 18px; font-size: 14px; }
}

/* ---------- Page Formes juridiques ---------- */
.lf-page { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; align-items: start; padding-top: 48px; padding-bottom: 72px; }
.lf-grid { display: grid; gap: 18px; }
.lf-card { background: #fff; border: 1px solid var(--line); border-left: 5px solid var(--navy); border-radius: 12px; padding: 22px 24px; scroll-margin-top: 70px; }
.lf-card h2 { font-size: 24px; color: var(--navy); margin-bottom: 10px; }
.lf-card p { margin: 0 0 12px; line-height: 1.6; color: #33373d; }
.lf-adj { display: flex; align-items: center; gap: 12px; margin: 0 !important; padding: 10px 14px; background: var(--tint); border-radius: 8px; font-size: 14.5px; }
.lf-adj strong { font-family: var(--serif); font-size: 20px; color: var(--navy); min-width: 44px; }
.lf-adj.up strong { color: #b3261e; }
.lf-adj.down strong { color: #1f7a3f; }
.lf-how { position: sticky; top: 70px; background: var(--tint); border: 1px solid var(--line); border-top: 4px solid var(--gold); border-radius: 12px; padding: 22px; }
.lf-how h2 { font-size: 22px; margin-bottom: 10px; }
.lf-how p { font-size: 15px; line-height: 1.55; }
.lf-links { display: grid; gap: 10px; margin-top: 14px; }
.lf-links .btn { text-align: center; font-size: 15px; }
.lf-art { font-weight: 700; color: var(--btn); text-decoration: none; font-size: 14.5px; }
.lf-art:hover { text-decoration: underline; }
@media (max-width: 960px) { .lf-page { grid-template-columns: 1fr; padding-top: 28px; } .lf-how { position: static; } }

/* ---------- Page Secteurs d'activité (reprend la mise en page des Formes juridiques) ---------- */
.sa-card.sa-other { border-left-color: var(--gold); background: var(--tint); }
.sa-ex { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 12px; }
.sa-ex > span { font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #6b7280; }
.sa-ex ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.sa-ex li { padding: 5px 12px; border-radius: 999px; background: #eef2f9; color: var(--navy); font-size: 14px; font-weight: 600; }
.sa-ex li::first-letter { text-transform: uppercase; }
.sa-other .sa-ex li { background: #fff; }

/* ---------- Page Sièges sociaux ---------- */
.hq-card { border-left-color: var(--hq); }
.hq-card h2 { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.hq-card h2 small { margin-left: auto; font-family: var(--sans, inherit); font-size: 13px; font-weight: 600; color: #6b7280; }
.hq-dot { width: 14px; height: 14px; border-radius: 50%; background: var(--hq); flex: none; }
.hq-card h3 { font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: #6b7280; margin: 14px 0 8px; }
.hq-list { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.hq-list a { display: inline-block; padding: 4px 11px; border-radius: 999px; background: color-mix(in srgb, var(--hq) 12%, #fff); border: 1px solid color-mix(in srgb, var(--hq) 30%, #fff);
  color: #1d2733; font-size: 14px; font-weight: 600; text-decoration: none; }
.hq-list a:hover { border-color: var(--hq); }
.hq-none { margin: 4px 0 0; font-size: 14.5px; color: #4b5563; }
.map-hq-key { display: grid; gap: 4px; margin: -2px 0 4px 36px; padding: 0; list-style: none; font-size: 14px; }
.map-hq-key[hidden] { display: none; }
.map-hq-key li { display: flex; align-items: center; gap: 8px; }
.map-hq-key i { width: 12px; height: 12px; border-radius: 3px; background: var(--hq); opacity: .8; }
.map-layer .sw-hq { width: 22px; height: 14px; border-radius: 3px; background: conic-gradient(#2f6fd6 0 25%, #e09a2a 0 50%, #3f9a4a 0 75%, #8a5cc7 0); }
.map-hq-tag { display: flex; align-items: center; gap: 8px; margin: 8px 0 0; font-size: 14px; font-weight: 600; }
.map-hq-tag i { width: 12px; height: 12px; border-radius: 50%; background: var(--hq); }
.tax-tr textarea { display: block; width: 100%; margin-top: 6px; border: 1px solid #c3c8cf; border-radius: 6px; padding: 6px 10px; font: inherit; font-size: 14px; resize: vertical; }

/* ---------- Mon compte : fiche d'entreprise (comptes joueurs) ---------- */
.co-sheet { margin-bottom: 28px; }
.co-sheet > h2 { font-size: 28px; margin-bottom: 4px; }
.co-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; margin-top: 16px; overflow: hidden; }
.co-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; background: var(--tint); border-bottom: 1px solid var(--line); }
.co-head h3 { font-size: 24px; color: var(--navy); margin: 0 0 2px; }
.co-head p { margin: 0; font-size: 14px; color: #4b5563; }
.co-head .co-last { font-size: 13px; color: var(--muted); margin-top: 2px; }
.co-grade { flex: none; display: grid; place-items: center; width: 92px; height: 92px; border-radius: 50%; background: var(--gc, #6b7280); color: #fff; text-align: center; box-shadow: 0 0 0 5px color-mix(in srgb, var(--gc, #6b7280) 22%, transparent); }
.co-grade b { font-family: var(--serif); font-size: 36px; line-height: 1; margin-top: 12px; }
.co-grade span { font-size: 12px; font-weight: 600; opacity: .9; margin-bottom: 14px; }
.co-grade.g-ap { background: linear-gradient(135deg, #a8792a, #f1d48a 50%, #b8862b); color: #3b2a07; box-shadow: 0 0 0 5px rgba(201,168,120,.4), 0 6px 18px rgba(184,134,43,.4); }
.g-ap, .g-a { --gc: #1f7a3f; } .g-b { --gc: #4f9a3a; } .g-c { --gc: #c9a227; } .g-d { --gc: #d9822b; } .g-e { --gc: #cf5c2a; } .g-f { --gc: #b3261e; } .g-fm { --gc: #7a1712; }
.co-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0; }
.co-body > section { padding: 18px 22px; min-width: 0; }
.co-body > section + section { border-left: 1px solid var(--line); }
.co-body h4 { font-size: 13px; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; }
.co-due { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 0; }
.co-due span { font-weight: 600; }
.co-due strong { font-family: var(--serif); font-size: 32px; color: var(--navy); }
.co-due.zero strong { color: #1f7a3f; }
.co-when { font-size: 14px; color: #4b5563; margin: 6px 0 0; }
.co-alert { margin: 10px 0 0; padding: 8px 12px; border-radius: 8px; background: #fdecea; color: #8a1c14; font-size: 14px; font-weight: 600; }
.co-pays { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; }
.co-pay { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 12px; border: 1px solid var(--line); border-left: 4px solid #c9a227; border-radius: 8px; font-size: 14px; }
.co-pay.late { border-left-color: #b3261e; } .co-pay.later { border-left-color: #9aa6b8; }
.co-pay div { min-width: 0; display: grid; }
.co-pay div span { font-size: 12.5px; color: var(--muted); overflow-wrap: anywhere; }
.co-pay em { flex: none; font-style: normal; font-size: 12.5px; font-weight: 700; color: #6b5a12; }
.co-pay.late em { color: #b3261e; } .co-pay.later em { color: var(--muted); }
.co-ok { margin: 0 0 10px; padding: 8px 12px; border-radius: 8px; background: #e7f4ec; color: #1f5f34; font-size: 14px; font-weight: 600; }
.co-lines { width: 100%; border-collapse: collapse; font-size: 14px; }
.co-lines td { padding: 6px 0; border-bottom: 1px solid var(--line); }
.co-lines .num { text-align: right; font-weight: 700; white-space: nowrap; padding-left: 10px; }
.co-lines .pos { color: #1f7a3f; } .co-lines .neg { color: #b3261e; }
.co-lines tfoot td { border-bottom: 0; font-weight: 700; padding-top: 8px; }
.co-scale { display: flex; gap: 4px; list-style: none; margin: 14px 0 0; padding: 0; }
.co-scale li { flex: 1; display: grid; text-align: center; padding: 5px 0; border-radius: 6px; background: color-mix(in srgb, var(--gc) 14%, #fff); color: var(--gc); font-size: 11px; }
.co-scale li b { font-size: 14px; }
.co-scale li.on { background: var(--gc); color: #fff; }
.co-tip { font-size: 13.5px; color: #4b5563; margin: 12px 0 0; }
.co-empty { padding: 20px; border: 1px dashed var(--line); border-radius: 12px; margin-top: 14px; }
.co-empty p { margin: 0 0 12px; }
@media (max-width: 760px) {
  .co-body { grid-template-columns: 1fr; }
  .co-body > section + section { border-left: 0; border-top: 1px solid var(--line); }
  .co-head { padding: 16px; } .co-body > section { padding: 16px; }
  .co-grade { width: 74px; height: 74px; } .co-grade b { font-size: 28px; margin-top: 8px; } .co-grade span { margin-bottom: 10px; }
}

/* Déclarer : informations reprises de la dernière déclaration */
.decl-reuse { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: 0 0 14px; padding: 10px 14px; border-radius: 8px; background: #eef3fb; border: 1px solid #cdd9ee; font-size: 14px; }
.decl-reuse button { border: 0; background: none; padding: 0; font: inherit; font-weight: 700; color: var(--btn); cursor: pointer; text-decoration: underline; }

/* ---------- Annuaire des entreprises ---------- */
.dir-page { padding-top: 36px; padding-bottom: 72px; }
.dir-tools { display: grid; grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)); gap: 10px; align-items: center; padding: 16px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 6px 18px rgba(15,47,107,.06); }
.dir-q { position: relative; display: block; margin: 0; }
.dir-q svg { position: absolute; left: 12px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); color: var(--muted); }
.dir-q input { width: 100%; height: 44px; padding: 0 12px 0 38px; border: 1px solid #c3c8cf; border-radius: 8px; font: inherit; }
.dir-tools select { width: 100%; min-width: 0; height: 44px; border: 1px solid #c3c8cf; border-radius: 8px; padding: 0 10px; font: inherit; font-size: 14.5px; background: #fff; }
.dir-active { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; margin: 0; font-size: 14.5px; cursor: pointer; }
.dir-active input { width: 16px; height: 16px; accent-color: var(--navy); }
.dir-count { font-weight: 700; color: var(--navy); }
.dir-hint { margin: 18px 0 0; font-size: 15px; }
.dir-empty { margin: 14px 0 0; }
.dir-list { display: grid; gap: 8px; }
.dir-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name state" "meta state"; align-items: center; gap: 2px 14px; padding: 12px 16px; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--navy); border-radius: 10px; text-decoration: none; color: inherit; transition: border-color .15s, box-shadow .15s; }
.dir-row:hover, .dir-row:focus-visible { border-color: var(--btn); box-shadow: 0 4px 14px rgba(15,47,107,.1); }
.dir-row strong { grid-area: name; font-family: var(--serif); font-size: 19px; color: var(--navy); overflow-wrap: anywhere; }
.dir-row > span:not(.dir-state):not(.audit-flag) { grid-area: meta; font-size: 13.5px; color: var(--muted); }
.dir-row .dir-state { grid-area: state; }
/* Annuaire : entreprises en A+ (dossier validé par l'IRS), mises en avant en or. */
.aplus-badge { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; vertical-align: 3px; font: 800 12px/1.6 "Source Sans 3", sans-serif; letter-spacing: .04em;
  background: linear-gradient(135deg, #c9a878, #f1dcaa 55%, #c9a878); color: #3b2a07; box-shadow: 0 1px 0 rgba(255,255,255,.5) inset, 0 1px 3px rgba(122,92,30,.35); }
.dir-row.aplus, .dir-list.bubbles .dir-row.aplus { border: 1px solid #c9a878; border-left: 4px solid #b8955f; background: linear-gradient(135deg, #f3dfb0 0%, #fbf0d6 45%, #fffaf0 70%, #efd59f 100%); box-shadow: 0 6px 18px rgba(184,149,95,.35); }
.dir-row.aplus strong { color: #6b4e14; }
/* Note de l'entreprise dans la liste de l'annuaire (pastille de couleur ; or pour A+). */
.dir-grade { min-width: 30px; height: 22px; margin-left: 6px; padding: 0 6px; border-radius: 6px; font-size: 12.5px; vertical-align: 3px; }
.dir-row.aplus:hover, .dir-row.aplus:focus-visible { border-color: #c9a878; box-shadow: 0 8px 22px rgba(201,168,120,.4); }
.dir-list.bubbles .dir-row.aplus { border-top: 4px solid #b8955f; }
.dir-row.aplus > span:not(.dir-state):not(.audit-flag) { color: #6e5a33; }
.dir-full.aplus { border-top: 5px solid #c9a878; }
.aplus-banner { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; padding: 10px 14px; border-radius: 10px; font-weight: 700; color: #5a4210;
  background: linear-gradient(135deg, #f6e7c4, #fffaf0 60%, #f1dcaa); border: 1px solid #e0c590; }
.aplus-banner .aplus-badge { margin-left: 0; font-size: 14px; }
.dir-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 18px 0 10px; }
.dir-bar .dir-count { margin: 0; }
.dir-bar[hidden], .dir-list[hidden] { display: none; }
.dir-view { display: inline-flex; gap: 3px; padding: 3px; background: var(--tint); border: 1px solid var(--line); border-radius: 9px; }
.dir-view button { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; padding: 6px 12px; border-radius: 7px; font: inherit; font-size: 14px; font-weight: 600; color: var(--muted); cursor: pointer; }
.dir-view button svg { width: 15px; height: 15px; }
.dir-view button[aria-pressed=true] { background: #fff; color: var(--navy); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
/* Résultats en bulles : cartes rectangulaires aux coins arrondis */
.dir-list.bubbles { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.dir-list.bubbles .dir-row { display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 8px; min-height: 130px; padding: 16px 18px;
  border: 1px solid var(--line); border-top: 4px solid var(--navy); border-radius: 16px; background: linear-gradient(180deg, #fff 0, #f5f8fd 100%); }
.dir-list.bubbles .dir-row:hover, .dir-list.bubbles .dir-row:focus-visible { border-color: var(--btn); border-top-color: var(--navy); box-shadow: 0 8px 22px rgba(15,47,107,.13); transform: translateY(-1px); }
.dir-list.bubbles .dir-row strong { font-size: 19px; line-height: 1.2; }
.dir-list.bubbles .dir-row > span:not(.dir-state):not(.audit-flag) { font-size: 13px; line-height: 1.35; }
.dir-list.bubbles .dir-state { margin-top: auto; }
@media (max-width: 560px) {
  .dir-list.bubbles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .dir-list.bubbles .dir-row { min-height: 0; padding: 12px; gap: 6px; border-radius: 14px; }
  .dir-list.bubbles .dir-row strong { font-size: 15px; }
  .dir-list.bubbles .dir-row > span:not(.dir-state):not(.audit-flag) { font-size: 11.5px; }
  .dir-list.bubbles .dir-state { font-size: 11px; padding: 2px 8px; }
}
.dir-state { flex: none; display: inline-block; padding: 3px 9px; border-radius: 999px; background: #e7f4ec; color: #1f5f34; font-size: 12px; font-weight: 700; }
.dir-state.off { background: #eef0f3; color: #6b7280; }
.dir-sheet { margin-top: 20px; }
.dir-back { border: 0; background: none; padding: 0; margin-bottom: 12px; font: inherit; font-weight: 700; color: var(--btn); cursor: pointer; }
.dir-back:hover { text-decoration: underline; }
.dir-full { background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.dir-full .co-head h2 { font-size: 30px; color: var(--navy); margin: 0 0 6px; overflow-wrap: anywhere; }
.dir-full-body { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); }
.dir-full-body > section { padding: 18px 22px; min-width: 0; }
.dir-full-body > section + section { border-left: 1px solid var(--line); }
.dir-full-body h3 { font-size: 13px; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; }
.dir-full-body h3:not(:first-child) { margin-top: 20px; }
.dir-dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0; font-size: 14.5px; }
.dir-dl dt { color: var(--muted); }
.dir-dl dd { margin: 0; font-weight: 600; text-align: right; }
.dir-owners { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.dir-owners li { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.dir-owners li::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: #0f2f6b; }
.dir-small { font-size: 13px; margin: 8px 0 0; }
.dir-graph { position: relative; border: 1px solid var(--line); border-radius: 10px; background: #f7f9fc; overflow: hidden; }
.dir-graph svg { display: block; width: 100%; height: 440px; cursor: grab; touch-action: none; user-select: none; }
.dir-graph svg.dragging { cursor: grabbing; }
.dir-graph .n { cursor: move; }
.dir-graph-tools { position: absolute; top: 10px; right: 10px; display: flex; flex-direction: column; gap: 6px; }
.dir-graph-tools button { width: 34px; height: 34px; border-radius: 8px; border: 1px solid var(--line); background: #fff; color: var(--navy); font: 700 19px/1 'Source Sans 3', sans-serif; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.1); }
.dir-graph-tools button:hover { background: var(--btn); border-color: var(--btn); color: #fff; }
.dir-graph line { stroke: #b9c3d3; stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.dir-graph line.l-sector, .dir-graph line.l-city { stroke-dasharray: 4 4; }
.dir-graph .n circle { stroke: #fff; stroke-width: 2; vector-effect: non-scaling-stroke; }
.dir-graph .n text { font: 600 var(--fs, 12px) 'Source Sans 3', sans-serif; text-anchor: middle; fill: #1d2733; paint-order: stroke; stroke: #f7f9fc; stroke-width: 4px; vector-effect: non-scaling-stroke; }
.dir-graph .n-company circle { fill: #2a5ca8; } .dir-graph .n-person circle { fill: #0f2f6b; }
.dir-graph .n-sector circle { fill: #c9a227; } .dir-graph .n-city circle { fill: #6b7a90; }
.dir-graph .n-sector text, .dir-graph .n-city text { font-weight: 400; fill: #4b5563; font-size: calc(var(--fs, 12px) * .92); }
.dir-graph .center circle { fill: #0f2f6b; stroke: #c9a878; stroke-width: 4; }
.dir-graph .center text { font-size: calc(var(--fs, 12px) * 1.2); font-weight: 700; }
.dir-graph .link { cursor: pointer; }
.dir-graph .link:hover circle, .dir-graph .link:focus circle { stroke: #c9a878; stroke-width: 3; }
.dir-graph .link:focus { outline: none; }
.dir-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; list-style: none; margin: 10px 0 0; padding: 0; font-size: 13px; }
.dir-legend li { display: flex; align-items: center; gap: 6px; }
.dir-legend i { width: 11px; height: 11px; border-radius: 50%; }
.dir-legend .k-company { background: #2a5ca8; } .dir-legend .k-person { background: #0f2f6b; } .dir-legend .k-sector { background: #c9a227; } .dir-legend .k-city { background: #6b7a90; }
@media (max-width: 860px) { .dir-full-body { grid-template-columns: 1fr; } .dir-full-body > section + section { border-left: 0; border-top: 1px solid var(--line); } }
.dir-note { margin-top: 24px; font-size: 14px; }
@media (max-width: 860px) { .dir-tools { grid-template-columns: 1fr 1fr; } .dir-q { grid-column: 1 / -1; } }
@media (max-width: 520px) { .dir-tools { grid-template-columns: 1fr; } }

/* Carte : entreprises du quartier sélectionné */
.map-cos { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.map-cos-title { margin: 0 0 8px; font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.map-cos-title span { display: inline-block; min-width: 20px; padding: 0 6px; margin-left: 4px; border-radius: 999px; background: var(--navy); color: #fff; text-align: center; letter-spacing: 0; }
.map-cos ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; max-height: 260px; overflow: auto; }
.map-cos li { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.map-cos li a { display: grid; min-width: 0; text-decoration: none; color: inherit; }
.map-cos li a strong { color: var(--navy); font-size: 14.5px; overflow-wrap: anywhere; }
.map-cos li a:hover strong { text-decoration: underline; }
.map-cos li a span { font-size: 12.5px; color: var(--muted); }
.map-cos li em { flex: none; font-style: normal; font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 999px; background: #e7f4ec; color: #1f5f34; }
.map-cos li em.off { background: #eef0f3; color: #6b7280; }
.map-cos .muted { margin: 0; font-size: 13.5px; }

/* ---------- Administration : procédures internes ---------- */
.proc { max-width: 920px; }
.proc-kicker { margin: 0 0 4px; font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--gold, #a8874f); }
.proc h2 { margin-bottom: 8px; }
.proc-lead { font-size: 16.5px; line-height: 1.55; color: #33373d; margin: 0 0 14px; }
.proc-law { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 16px; }
.proc-law a { padding: 2px 9px; border-radius: 999px; background: #eef3fb; border: 1px solid #cdd9ee; color: var(--navy); font-size: 12.5px; font-weight: 700; text-decoration: none; }
.proc-law a:hover { border-color: var(--btn); }
.proc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; margin: 0 0 16px; }
.proc-grid.two { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); }
.proc-card { background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--navy); border-radius: 12px; padding: 14px 16px; }
.proc-card h3, .proc-box h3 { font-size: 17px; margin: 0 0 8px; color: var(--navy); }
.proc-card p { margin: 0 0 8px; font-size: 14.5px; line-height: 1.5; }
.proc-card .proc-law { margin: 6px 0 0; }
.proc-h { font-size: 15px; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); margin: 18px 0 8px; }
.proc-steps { margin: 0 0 16px; padding: 0; list-style: none; counter-reset: st; display: grid; gap: 8px; }
.proc-steps > li { counter-increment: st; position: relative; padding: 10px 14px 10px 50px; background: #fff; border: 1px solid var(--line); border-radius: 10px; font-size: 14.5px; line-height: 1.5; }
.proc-steps > li::before { content: counter(st); position: absolute; left: 12px; top: 9px; width: 26px; height: 26px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 700; font-size: 13px; display: grid; place-items: center; }
.proc-steps ul { margin: 6px 0 0; padding-left: 18px; }
.proc-card .proc-steps > li { padding: 8px 10px 8px 40px; font-size: 14px; }
.proc-card .proc-steps > li::before { left: 9px; top: 8px; width: 22px; height: 22px; font-size: 12px; }
.proc-table { margin: 0 0 16px; width: 100%; table-layout: fixed; }
.proc-table th, .proc-table td { white-space: normal; overflow-wrap: anywhere; }
.proc-table th:first-child { width: 22%; }
.proc-table td { vertical-align: top; font-size: 14px; }
.proc-box { background: var(--tint); border: 1px solid var(--line); border-left: 5px solid var(--navy); border-radius: 10px; padding: 14px 16px; margin: 0 0 16px; }
.proc-box.warn { border-left-color: #b3261e; background: #fdf3f2; }
.proc-box.warn h3 { color: #8a1c14; }
.proc-box ul { margin: 0; padding-left: 18px; font-size: 14.5px; line-height: 1.55; }
.proc-box p { margin: 0 0 6px; font-size: 14.5px; line-height: 1.5; }
.proc-box blockquote { margin: 8px 0 0; padding: 10px 14px; background: #fff; border: 1px dashed #b9c3d3; border-radius: 8px; font-size: 14px; font-style: italic; color: #33373d; }
.proc-note { font-size: 13.5px; color: var(--muted); margin: 0 0 12px; }

/* ---------- Administration : onglet Entreprises ---------- */
.tag.warn-tag { color: #8a1c14; background: #fdecea; }
.co-table .co-row { cursor: pointer; }
.co-table th, .co-table td, .co-detail-table td { white-space: normal; }
.co-table td.num, .co-table th.num { white-space: nowrap; }
.co-table .co-row:hover td, .co-table .co-row:focus-visible td { background: #f3f6fb; }
.co-mini { display: inline-grid; place-items: center; min-width: 30px; height: 26px; padding: 0 6px; border-radius: 7px; background: var(--gc, #6b7280); color: #fff; font-weight: 700; font-size: 13px; }
.co-back { margin-bottom: 10px; font-weight: 700; }
.co-dhead { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 14px; }
.co-dhead h2 { margin: 0 0 6px; }
.co-dtags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 6px; }
.co-kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; margin-bottom: 14px; }
.co-kpis > div { display: grid; gap: 2px; padding: 12px 14px; background: #fff; border: 1px solid var(--line); border-radius: 10px; }
.co-kpis span { font-size: 12.5px; color: var(--muted); }
.co-kpis strong { font-family: var(--serif); font-size: 22px; color: var(--navy); font-variant-numeric: tabular-nums; }
.co-kpis strong.pos { color: #1f7a3f; }
.co-kpis em { font-style: normal; font-size: 12.5px; font-weight: 700; }
.co-kpis .neg, .co-table .neg, .co-detail-table .neg { color: #b3261e; }
.co-dgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 14px; margin-bottom: 14px; }
.co-dgrid > .adm-card, .co-section { margin: 0; min-width: 0; max-width: none; }
.co-section { margin-bottom: 14px; }
.co-owners { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.co-owners li { display: grid; gap: 2px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.co-owners li:last-child { border-bottom: 0; padding-bottom: 0; }
.co-detail-table { font-size: 13.5px; }
.co-detail-table td { vertical-align: top; }

/* ---------- Actions de l'IRS sur une entreprise ---------- */
.btn-danger { background: #b3261e; border-color: #b3261e; color: #fff; }
.btn-danger:hover { background: #8a1c14; border-color: #8a1c14; }
.status.s-classe { color: #4a4f57; background: #e8eaed; }
.tag.audit-tag, .audit-flag { color: #fff; background: #b3261e; }
.co-audit { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; padding: 9px 14px; border-radius: 8px; background: #b3261e; color: #fff; font-weight: 700; font-size: 14.5px; }
.co-audit::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 3px rgba(255,255,255,.3); }
.co-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; padding: 12px; background: var(--tint); border: 1px solid var(--line); border-radius: 10px; }
.co-actions .btn { font-size: 14.5px; padding: 9px 16px; }
.co-timeline { list-style: none; margin: 0; padding: 0 0 0 18px; border-left: 3px solid var(--line); display: grid; gap: 12px; }
.co-timeline li { position: relative; }
.co-timeline li::before { content: ""; position: absolute; left: -26px; top: 4px; width: 13px; height: 13px; border-radius: 50%; background: #9aa6b8; border: 3px solid #fff; }
.co-timeline li.k-avertissement::before, .co-timeline li.k-majoration::before { background: #d9822b; }
.co-timeline li.k-mise_en_demeure::before, .co-timeline li.k-sanction::before, .co-timeline li.k-controle_debut::before { background: #b3261e; }
.co-timeline li.k-controle_fin::before { background: #1f7a3f; }
.co-tl-head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 0 0 4px; }
.co-tl-msg { margin: 0; white-space: pre-line; font-size: 14px; color: #33373d; }
.co-tl-btns { display: flex; gap: 14px; margin: 6px 0 0; }
#co-act-dialog textarea { font: inherit; font-size: 14px; }
/* Bandeau « En contrôle fiscal » : annuaire et Mon compte */
.audit-flag { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 6px; font-size: 12px; font-weight: 700; letter-spacing: .02em; }
.audit-flag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #fff; }
.dir-row { grid-template-areas: "name state" "meta state" "flag state"; }
.dir-row .audit-flag { grid-area: flag; justify-self: start; margin-top: 4px; }
.dir-list.bubbles .dir-row .audit-flag { margin: 0; }
.dir-full .audit-banner, .co-card .audit-banner { display: flex; align-items: center; gap: 8px; margin: 0; padding: 8px 22px; background: #b3261e; color: #fff; font-weight: 700; font-size: 14px; }
.dir-full .audit-banner::before, .co-card .audit-banner::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #fff; }
/* Mon compte : courrier de l'IRS */
.co-mail { padding: 18px 22px; border-top: 1px solid var(--line); }
.co-mail h4 { font-size: 13px; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; }
.co-mail ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.co-mail li { padding: 10px 14px; border: 1px solid var(--line); border-left: 4px solid #9aa6b8; border-radius: 8px; background: #fff; }
.co-mail li.k-avertissement, .co-mail li.k-majoration { border-left-color: #d9822b; }
.co-mail li.k-mise_en_demeure, .co-mail li.k-sanction, .co-mail li.k-controle_debut { border-left-color: #b3261e; }
.co-mail li.k-controle_fin { border-left-color: #1f7a3f; }
.co-mail .mail-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 0 0 4px; }
.co-mail .mail-head span { font-size: 12.5px; color: var(--muted); }
.co-mail .mail-msg { margin: 0; white-space: pre-line; font-size: 14px; color: #33373d; }

/* ---------- Hub des déclarations (/declarations) ---------- */
.hub-page { padding-top: 40px; padding-bottom: 72px; }
.hub-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.hub-card { display: flex; flex-direction: column; gap: 10px; background: #fff; border: 1px solid var(--line); border-top: 5px solid var(--navy); border-radius: 14px; padding: 24px 26px; box-shadow: 0 8px 24px rgba(15,47,107,.06); }
.hub-card.acc { border-top-color: var(--gold); }
.hub-icon svg { width: 52px; height: 52px; }
.hub-card h2 { font-size: 26px; color: var(--navy); margin: 0; }
.hub-card p { margin: 0; line-height: 1.55; color: #33373d; }
.hub-card ul { margin: 0; padding-left: 18px; color: #4b5563; font-size: 14.5px; line-height: 1.6; }
.hub-card .btn { margin-top: auto; align-self: flex-start; }
.hub-order { margin-top: 32px; }
.hub-order h2, .hub-more h2 { font-size: 22px; margin-bottom: 12px; }
.hub-order ol { list-style: none; margin: 0; padding: 0; counter-reset: h; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.hub-order li { counter-increment: h; position: relative; display: grid; gap: 2px; padding: 14px 16px 14px 56px; background: var(--tint); border: 1px solid var(--line); border-radius: 10px; }
.hub-order li::before { content: counter(h); position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 700; display: grid; place-items: center; }
.hub-order li span { font-size: 14px; color: #4b5563; }
.hub-more { margin-top: 28px; }
.hub-more div { display: flex; flex-wrap: wrap; gap: 10px; }
.hub-more a { padding: 9px 14px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--navy); font-weight: 600; text-decoration: none; font-size: 14.5px; }
.hub-more a:hover { border-color: var(--btn); }

/* ---------- Déclaration de comptabilité (/comptabilite) ---------- */
.cpt-done-btns { display: flex; flex-wrap: wrap; gap: 10px; }


/* ---------- Administration : rapports internes ---------- */
.rap-mine { flex-direction: row !important; align-items: center; gap: 6px !important; align-self: flex-end; height: 38px; font-weight: 400 !important; }
.rap-mine input { width: 16px; height: 16px; accent-color: var(--navy); }
.rap-doc { background: #fff; border: 1px solid var(--line); border-top: 5px solid var(--navy); border-radius: 12px; padding: 20px 24px; }
.rap-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 10px; }
.rap-head h2 { margin: 0 0 4px; }
.rap-meta { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; margin: 0 0 14px; font-size: 14px; }
.rap-meta dt { color: var(--muted); }
.rap-meta dd { margin: 0; }
.rap-body { white-space: pre-wrap; font-size: 15px; line-height: 1.6; padding-top: 14px; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
.rap-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 14px; }
#rap-dialog textarea { font: 14px/1.5 'Source Sans 3', sans-serif; }
.co-sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }

.rap-dc { margin: -2px 0 10px; font-size: 13px; color: #4752c4; font-weight: 600; }
.rap-dc::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 50%; background: #5865f2; vertical-align: middle; }

/* Actualités : texte surligné (==…==) et barre de mise en forme de l'administration */
mark { background: #fbe39b; color: inherit; padding: 0 3px; border-radius: 3px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.fmt-bar { display: inline-flex; gap: 6px; margin: 2px 0 6px; }
.fmt-bar button { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border: 1px solid var(--line); border-radius: 6px; background: #fff; font: inherit; font-size: 13px; font-weight: 600; color: var(--navy); cursor: pointer; }
.fmt-bar button:hover { border-color: var(--btn); }
.fmt-bar mark { padding: 0 4px; }
.fmt-bar { flex-wrap: wrap; }
/* Wiki interne (admin) */
.wiki .adm-head { align-items: flex-end; flex-wrap: wrap; }
.wiki .adm-head h2 { margin: 0; }
.wiki-actions { display: flex; align-items: center; gap: 10px; }
.dc-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.nd-actions { display: flex; gap: 10px; }
.nd-actions .auth-submit { flex: 1; }
.nd-actions .auth-submit[hidden] { display: none; }
.co-remun { margin: 14px 0; }
.co-remun-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-bottom: 8px; }
.co-remun-head h3 { margin: 0; }
.co-remun p { margin: 6px 0; font-size: 15px; }
.co-remun-pick { display: inline-flex; gap: 3px; padding: 3px; border-radius: 10px; background: #eef1f6; border: 1px solid var(--line); }
.co-remun-pick button { padding: 6px 16px; border: 0; border-radius: 7px; background: transparent; color: var(--navy); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.co-remun-pick button[aria-checked="true"] { background: var(--navy); color: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); }
.co-remun-pick button:disabled { cursor: default; }
#ent-pay .co-remun-pick button:disabled:not([aria-checked="true"]) { opacity: .5; cursor: not-allowed; }
.co-remun-pick button:not([aria-checked="true"]):not(:disabled):hover { background: #dfe5ef; }
.co-remun-hist { margin-top: 6px; font-size: 13.5px; }
.co-remun-hist ul { margin: 6px 0 0; padding-left: 18px; }
.wiki-actions .linkbtn:disabled { opacity: .35; cursor: default; }
.wiki-text { max-width: 820px; font-size: 15.5px; line-height: 1.6; }
.wiki-text h3 { font-size: 21px; color: var(--navy); margin: 26px 0 8px; padding-bottom: 6px; border-bottom: 2px solid var(--line); }
.wiki-text h4 { font-size: 17px; color: var(--navy); margin: 20px 0 6px; }
.wiki-text h5 { font-size: 15px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin: 16px 0 6px; }
.wiki-text p { margin: 0 0 12px; }
.wiki-text ul, .wiki-text ol { margin: 0 0 12px; padding-left: 22px; }
.wiki-text li { margin: 3px 0; }
.wiki-text blockquote { margin: 0 0 14px; padding: 10px 14px; background: #f3f6fb; border-left: 4px solid var(--navy); border-radius: 0 8px 8px 0; }
.wiki-text hr { border: 0; border-top: 1px solid var(--line); margin: 20px 0; }
.wiki-text code { padding: 1px 5px; border-radius: 4px; background: #eef1f5; font-size: 13.5px; }
.wiki-text .table-wrap { margin: 0 0 14px; overflow-x: auto; }
.wiki-table { border-collapse: collapse; min-width: 100%; font-size: 14.5px; background: #fff; }
.wiki-table th, .wiki-table td { padding: 8px 12px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.wiki-table thead th { background: var(--navy); color: #fff; font-weight: 700; }
.wiki-table tbody tr:nth-child(even) td { background: #f6f8fb; }
.wiki-form { display: grid; gap: 12px; max-width: 820px; }
.wiki-form label { display: grid; gap: 4px; font-weight: 600; font-size: 14px; }
.wiki-form input, .wiki-form textarea { font: inherit; font-weight: 400; font-size: 15px; padding: 9px 10px; border: 1px solid #c3c8cf; border-radius: 6px; background: #fff; }
.wiki-form textarea { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13.5px; line-height: 1.5; resize: vertical; }
.wiki-preview { padding: 14px 18px; border: 1px dashed var(--line); border-radius: 10px; }
.adm-tabs a.wiki-new-link { color: var(--muted); font-style: italic; }
.adm-readonly .wiki-new-link { display: none; }

/* Carte : les calques décoratifs laissent passer survol et clic vers les quartiers. */
.map-svg .sea, .map-svg .shore, .map-svg .base, .map-svg .water, .map-svg .coast, .map-svg .limit, .map-svg .labels,
.map-svg .compass, .map-svg .scale, .map-svg .dlimits, .map-svg .roads, .map-svg .relief, .map-svg .buildings { pointer-events: none; }

/* Mon compte : liaison Discord (bouton aux couleurs de Discord, carte du compte lié). */
.dc-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 6px; }
.btn-discord { display: inline-flex; align-items: center; gap: 10px; background: #5865f2; border-color: #5865f2; color: #fff; text-decoration: none; }
.btn-discord:hover, .btn-discord:focus-visible { background: #4752c4; border-color: #4752c4; color: #fff; }
.btn-discord .dc-logo { width: 22px; height: 22px; flex: none; }
.dc-card { display: flex; align-items: center; gap: 14px; padding: 14px 16px; margin: 4px 0 14px; border: 1px solid var(--line); border-left: 4px solid #5865f2; border-radius: 10px; background: var(--bg); }
.dc-avatar { width: 56px; height: 56px; border-radius: 50%; flex: none; background: #e3e5fc; object-fit: cover; }
.dc-card > div { display: flex; flex-direction: column; min-width: 0; }
.dc-card strong { font-size: 17px; overflow-wrap: anywhere; }
.dc-card span { color: var(--muted); overflow-wrap: anywhere; }
.dc-card small { color: var(--muted); font-size: 13px; margin-top: 2px; }
.dc-steps { margin: 0 0 12px; padding-left: 20px; }
.dc-steps li { margin-bottom: 4px; }
.dc-redirect { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 12px; font-size: 14.5px; }
.dc-redirect span { font-weight: 600; }
.dc-redirect code { font-size: 13px; overflow-wrap: anywhere; background: var(--tint); padding: 3px 6px; border-radius: 4px; }
/* Rappel « Liez votre compte Discord » (à la connexion). */
.dc-remind { text-align: center; }
.dc-remind-logo { width: 64px; height: 64px; margin: 4px auto 14px; border-radius: 50%; background: #5865f2; color: #fff; display: flex; align-items: center; justify-content: center; }
.dc-remind-logo svg { width: 36px; height: 36px; }
.dc-remind h2 { font-size: 24px; margin-bottom: 10px; }
.dc-remind p { color: var(--muted); font-size: 15px; margin-bottom: 18px; }
.dc-remind .btn-discord { width: 100%; justify-content: center; font-weight: 700; }
.dc-remind .btn-discord svg { width: 22px; height: 22px; flex: none; }
.dc-later { margin-top: 10px; background: none; border: 0; font: inherit; font-size: 14px; color: var(--muted); cursor: pointer; text-decoration: underline; padding: 6px; }
.dc-later:hover { color: var(--ink); }
/* Administration › Comptes : tableau qui tient dans la page, colonne d'actions comprise. */
.users-table .acc-act { padding-right: 12px; }
.users-table .acc-actions { align-items: stretch; }
.users-table .acc-actions .linkbtn { text-align: left; white-space: nowrap; }
.users-table th small { font-size: 11px; text-transform: none; letter-spacing: 0; }
.users-table .acc-contact { font-size: 13.5px; }
.users-table .acc-contact > span, .users-table .acc-contact > code { display: block; }
.users-table .acc-contact code { font-size: 12.5px; margin-top: 2px; overflow-wrap: anywhere; word-break: break-all; }
.users-table .acc-who strong { overflow-wrap: anywhere; }
.dc-badge { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; margin-left: 4px; vertical-align: -4px; border-radius: 50%; background: #5865f2; color: #fff; }
.dc-badge svg { width: 13px; height: 13px; }

/* Paiements : actions empilées ; Échéances : versements réellement appliqués. */
.pay-actions { display: inline-flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.pay-actions .linkbtn { font-size: 13px; white-space: nowrap; }
.inst-schedule { list-style: none; margin: 0 0 6px; padding: 0; display: grid; gap: 4px; }
.inst-schedule li { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center; padding: 4px 8px; background: var(--tint); border-radius: 6px; font-size: 14px; }

/* Échéances › Paramètres : champ du pourcentage (hors des règles des intitulés de fenêtre). */
.is-pct { position: relative; width: 160px; margin: 0 0 10px; }
#is-form .is-pct input { width: 100%; height: 44px; border: 1px solid #c3c8cf; border-radius: 6px; padding: 0 34px 0 12px; font: inherit; font-size: 18px; font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.is-pct em { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-style: normal; font-weight: 700; color: var(--muted); }
/* En-tête : sous-menu « À propos › Transparence » (survol ou focus). */
.top-drop { position: relative; display: flex; }
.top-sub { position: absolute; top: calc(100% + 6px); right: 0; z-index: 40; min-width: 180px; padding: 6px; background: var(--navy-dark); border-radius: 8px; box-shadow: 0 12px 30px rgba(11,34,80,.35);
  opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity .15s, transform .15s, visibility .15s; }
.top-drop::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 8px; }
.top-drop:hover .top-sub, .top-drop:focus-within .top-sub { opacity: 1; visibility: visible; transform: none; }
.top-sub a { display: block; white-space: nowrap; }
.hub-card.vat { border-top-color: #3f9a4a; }
.tag.vat-tag { color: #1d5e2a; background: #e3f3e6; }
.tag.vat-tag { color: #1d5e2a; background: #e3f3e6; }
/* Mon compte › Informations de mes entreprises : une fiche par entreprise. */
.biz-list { display: grid; gap: 14px; margin: 14px 0; }
.biz-card { border: 1px solid var(--line); border-left: 4px solid var(--navy); border-radius: 8px; padding: 14px 16px; background: #fff; }
.biz-card .f-grid { margin-bottom: 6px; }
.biz-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 6px; }
.biz-actions .linkbtn { font-size: 14px; }
/* Comptes Gouvernement : déclarations grisées (liens, cartes de la page Déclarations, formulaires). */
a.gov-off { opacity: .45; cursor: not-allowed; filter: grayscale(1); }
.hub-card:has(a.gov-off) { opacity: .55; filter: grayscale(1); }
/* Paramètres structurels : liens vers une déclaration suspendue (app.js, structLock) et page d'avis. */
a.struct-off { opacity: .45; cursor: not-allowed; filter: grayscale(1); }
.hub-card:has(a.struct-off) { opacity: .55; filter: grayscale(1); }
.suspend-page { padding: 56px 0 72px; background: linear-gradient(#f7f8fb, #fff); }
.suspend-card { max-width: 620px; margin: 0 auto; padding: 36px 32px 30px; text-align: center; background: #fff; border: 1px solid var(--line); border-top: 5px solid var(--gold); border-radius: 14px; box-shadow: 0 14px 40px rgba(15,47,107,.1); }
.suspend-ico svg { width: 64px; height: 64px; }
.suspend-kicker { margin: 14px 0 4px; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.suspend-card h1 { font-size: 32px; margin-bottom: 12px; }
.suspend-card p { margin: 0 auto 12px; max-width: 500px; }
.suspend-btns { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 20px !important; }
body[data-suspended="impot"] .k-tva, body[data-suspended="tva"] .k-impot { display: none; }
.gov-off-form { opacity: .5; filter: grayscale(1); pointer-events: none; user-select: none; }
.gov-lock-note { margin-bottom: 14px; }
/* Mes demandes : une fiche par demande, couleur selon la décision de l'IRS. */
.md-page { max-width: 900px; padding-top: 32px; padding-bottom: 56px; }
.md-section { margin-bottom: 36px; }
.md-section h2 { font-size: 26px; margin-bottom: 12px; }
.md-list { display: grid; gap: 12px; }
.md-item { border: 1px solid var(--line); border-left: 4px solid #b9c3d3; border-radius: 8px; padding: 14px 16px; background: #fff; }
.md-item.s-acceptee, .md-item.s-accordee, .md-item.s-rembourse { border-left-color: #1f7a3f; }
.md-item.s-refusee { border-left-color: #b50909; }
.md-item header { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.md-item header div { display: flex; flex-direction: column; min-width: 0; }
.md-item header strong { color: var(--navy); font-size: 17px; overflow-wrap: anywhere; }
.md-figures { display: flex; flex-wrap: wrap; gap: 6px 24px; margin: 10px 0 6px; }
.md-figures dt { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.md-figures dd { margin: 0; }
.md-reason { color: #33373d; font-size: 15px; margin: 6px 0; }
.md-note { background: var(--tint); border-radius: 6px; padding: 8px 10px; margin: 8px 0 6px; font-size: 15px; }
/* Page « Demander » : couleur de chaque type de demande. */
.hub-card.inst { border-top-color: var(--gold); }
.hub-card.ref { border-top-color: #3f9a4a; }
.hub-card.fund { border-top-color: #8a5cc7; }
.hub-more p { margin: 0; color: #33373d; }
.fd-del { margin: 14px 0 0; text-align: center; }
.adm-readonly .js-fd-delete { display: none !important; }
.decl-form label[hidden] { display: none !important; }
/* Demandes sans déclaration (déclarations suspendues) : le formulaire libre remplace celui de la page */
.decl-main.free-mode > :not(.free-request) { display: none !important; }
.free-requests .decl-side > :not(.free-info) { display: none !important; }
.free-request .decl-form + .fr-mine, .free-request .sim-warn + .fr-mine, .free-request .decl-done + .fr-mine { margin-top: 28px; }
/* Administration › Subventions : types proposés */
.adm-panel .sub-h { font-family: var(--serif); font-size: 19px; color: var(--navy); margin: 26px 0 6px; }
.sub-types { list-style: none; margin: 10px 0 12px; padding: 0; display: grid; gap: 8px; }
.sub-types li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 14px; border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: 8px; background: #fff; }
.sub-types li.muted { border-left-color: var(--line); }
.sub-types li div { display: grid; gap: 2px; }
.sub-type-form { align-items: flex-end; }
.sub-type-form .sub-desc { flex: 1 1 280px; }
.creq[hidden] { display: none; }
.adm-readonly :is(#sub-type-form, [data-sub-del]), .adm-readonly #cq-form button:not([type=button]) { display: none !important; }

/* Bouton « Mode sombre » du pied de page */
.theme-toggle { display: inline-flex; align-items: center; gap: 6px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.28); color: rgba(255,255,255,.92); border-radius: 999px; padding: 3px 11px 3px 9px; font: inherit; font-weight: 600; cursor: pointer; transition: background .15s, border-color .15s; vertical-align: middle; }
.theme-toggle:hover { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.5); color: #fff; }
.theme-ico { width: 13px; height: 13px; }
.theme-ico .sun, html[data-theme="dark"] .theme-ico .moon { display: none; }
html[data-theme="dark"] .theme-ico .sun { display: inline; }

/* Code des affaires : articles adoptés ajoutés dans un titre existant (repère « adoptée le … ») */
.law-adopted-note { margin: 22px 0 8px; }
.law-adopted-note .law-adopted { margin-left: 0; }
/* Historique du Code */
.law-history { margin: -6px 0 12px; font-size: 13.5px; text-align: right; }
.law-history a { color: var(--muted); }
.law-article h4 { cursor: text; }
.ch-body { max-width: 920px; padding-top: 24px; padding-bottom: 48px; }
.ch-body h2 { font-size: 24px; margin: 30px 0 12px; }
.ch-start, .ch-legend { color: var(--muted); font-size: 15px; }
.ch-item, .ch-article { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--navy); border-radius: 8px; padding: 14px 18px; margin-bottom: 12px; scroll-margin-top: 110px; }
.ch-article:target { border-left-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,168,120,.35); }
.ch-item header { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.ch-ref, .ch-article h3 a { font-family: var(--serif); font-weight: 600; font-size: 17px; color: var(--navy); text-decoration: none; }
.ch-article h3 { margin: 0 0 8px; font-size: 17px; }
.ch-kind { padding: 1px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; background: #eef3fb; color: var(--navy); }
.ch-modification { background: #fdf3e1; color: #8a5a00; }
.ch-abrogation { background: #fbe9e7; color: #a12a1b; }
.ch-vigueur { background: #e6f4ea; color: #1e6b34; }
.ch-meta { margin: 6px 0; font-size: 13.5px; color: var(--muted); }
.ch-text { font-size: 15px; line-height: 1.55; }
.ch-body del, .ch-legend del { background: #fbe1de; color: #8f1d12; text-decoration: line-through; padding: 0 2px; border-radius: 3px; }
.ch-body ins, .ch-legend ins { background: #dff3e4; color: #145a2a; text-decoration: none; padding: 0 2px; border-radius: 3px; }
.ch-versions { margin: 0; padding-left: 0; list-style: none; display: grid; gap: 10px; }
.ch-versions li { padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: #fafbfd; }
.ch-versions li.ch-current { background: #fff; border-color: #b9d3c1; }

/* Rôle IRS : Paramètres et Paramètres structurels en consultation seule */
.adm-settings-locked :is(#parametres, #parametres-structurels) :is(button:not([type=button]), .js-dc-remove, .js-dco-remove) { display: none !important; }
.adm-settings-locked #struct-form input { pointer-events: none; }

/* Registre : webhook Discord du salon de chaque entreprise */
.reg-hook { display: grid; gap: 4px; margin-top: 8px; font-size: 13px; }
.reg-hook code { font-size: 12px; }
.reg-hook-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.reg-hook-row input { flex: 1 1 220px; min-width: 0; padding: 5px 8px; font-size: 13px; border: 1px solid var(--line); border-radius: 6px; }
.adm-readonly .reg-hook-row { display: none !important; }

/* Fiche entreprise (administration) : IBAN, comptabilité, contrats de travail */
.co-bank { display: flex; flex-wrap: wrap; gap: 10px 28px; margin: 12px 0 0; }
.co-bank div { display: grid; gap: 2px; }
.co-bank dt { font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.co-bank dd { margin: 0; font-size: 15px; }
.co-bank code { font-size: 14px; }
/* Page « Entreprise » : contrats de travail des salariés, une bulle par salarié (35 emplacements par défaut) */
.emp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; margin: 14px 0 16px; }
.emp-card { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 18px 10px 14px; min-height: 178px; border: 1px solid var(--line); border-radius: 18px; background: #fff; font: inherit; color: var(--ink); text-align: center; cursor: pointer; transition: transform .15s, box-shadow .15s, border-color .15s; }
a.emp-card { text-decoration: none; }
.emp-card:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(15, 47, 107, .12); border-color: #b9c6dc; }
.emp-card strong { font-size: 15px; line-height: 1.25; color: var(--navy); overflow-wrap: anywhere; }
.emp-card small { font-size: 12.5px; color: var(--muted); }
.emp-card .emp-iban { font-family: ui-monospace, Menlo, monospace; font-size: 12px; }
.emp-card .emp-doc { margin-top: auto; padding: 3px 10px; border-radius: 999px; background: #eaf3ec; color: #1d6b3a; font-size: 11.5px; font-weight: 700; }
.emp-avatar { display: grid; place-items: center; width: 72px; height: 72px; flex: none; margin-bottom: 6px; border-radius: 50%; overflow: hidden; background: linear-gradient(135deg, #1f4e99, #0f2f6b); color: #fff; box-shadow: 0 0 0 3px #fff, 0 0 0 4px var(--gold); }
.emp-avatar img { width: 100%; height: 100%; object-fit: cover; }
.emp-avatar b { font-family: var(--serif); font-size: 26px; letter-spacing: .02em; }
.emp-avatar svg { width: 28px; height: 28px; }
.emp-card.emp-empty { border: 2px dashed #cfd8e6; background: #f8fafd; box-shadow: none; }
.emp-card.emp-empty .emp-avatar { background: #eef2f8; color: #8a9bb8; box-shadow: none; }
.emp-card.emp-empty strong { color: #6b7a93; font-weight: 600; }
.emp-card.emp-empty:hover { border-color: var(--btn); background: #f1f5fc; }
.emp-card.emp-empty:hover .emp-avatar { color: var(--btn); }
.emp-card .emp-nodoc { background: #f1f3f6; color: #6b7a93; }
.emp-card.emp-static { cursor: default; }
.emp-card.emp-static:hover { transform: none; box-shadow: none; border-color: var(--line); }
.emp-type { padding: 2px 10px; border-radius: 999px; background: #eef1f6; color: #4a5a75; font-size: 11.5px; font-weight: 700; letter-spacing: .03em; }
.emp-type.t-cdi { background: #e6eefb; color: #1f4e99; }
.emp-type.t-cdd { background: #fbf1df; color: #8a5a12; }
.emp-type.t-benevole { background: #efe9f8; color: #5b3d91; }
.emp-types { border: 0; padding: 0; margin: 0; min-width: 0; }
.emp-types legend { font-size: 14px; font-weight: 600; margin-bottom: 6px; padding: 0; }
.emp-types div { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px; border-radius: 12px; background: #eef1f6; border: 1px solid var(--line); }
.emp-types label { position: relative; display: flex !important; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 8px 10px; border-radius: 9px; cursor: pointer; font-size: 15px; font-weight: 600; color: #4a5a75; transition: background .15s, color .15s, box-shadow .15s; }
.emp-types label:hover { background: #e2e8f2; color: var(--navy); }
.emp-types input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.emp-types label span::before { content: ""; display: inline-block; width: 16px; height: 16px; margin-right: 8px; vertical-align: -3px; border-radius: 50%; border: 2px solid #a7b3c7; background: #fff; transition: border-color .15s, background .15s, box-shadow .15s; }
.emp-types label:has(input:checked) { background: var(--navy); color: #fff; box-shadow: 0 2px 6px rgba(15, 47, 107, .3); }
.emp-types label:has(input:checked) span::before { border-color: #fff; background: var(--gold); box-shadow: inset 0 0 0 3px var(--navy); }
.emp-types label:has(input:focus-visible) { outline: 2px solid var(--btn); outline-offset: 2px; }
#emp-form .certify { align-items: center; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: #f8fafd; cursor: pointer; transition: border-color .15s, background .15s; }
#emp-form .certify:has(input:checked) { border-color: #9fc3a8; background: #eef7f0; }
#emp-form .certify input { appearance: none; -webkit-appearance: none; display: grid; place-items: center; width: 22px; height: 22px; margin: 0; border: 2px solid #a7b3c7; border-radius: 6px; background: #fff; cursor: pointer; transition: background .15s, border-color .15s; }
#emp-form .certify input::after { content: ""; width: 6px; height: 11px; margin-top: -2px; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg) scale(0); transition: transform .15s; }
#emp-form .certify input:checked { background: #1d6b3a; border-color: #1d6b3a; }
#emp-form .certify input:checked::after { transform: rotate(45deg) scale(1); }
#emp-form .certify input:focus-visible { outline: 2px solid var(--btn); outline-offset: 2px; }
@media (max-width: 420px) { .emp-types div { grid-template-columns: 1fr; } }
.emp-num { position: absolute; top: 8px; right: 12px; font-size: 11px; font-weight: 700; color: #a3b0c5; }
.co-staff .emp-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.emp-dialog { width: min(560px, calc(100vw - 32px)); }
.emp-dialog form { display: grid; gap: 12px; }
#emp-form label:not(.certify):not(.emp-photo-pick) { display: block; }
#emp-form label:not(.certify):not(.emp-photo-pick) > span { display: block; font-size: 14px; font-weight: 600; margin-bottom: 4px; }
#emp-form input:not([type=checkbox]):not([type=file]) { width: 100%; height: 40px; border: 1px solid #c3c8cf; border-radius: 6px; padding: 0 12px; font: inherit; font-size: 15px; background: #fff; color: var(--ink); }
#emp-form input:focus { outline: none; border-color: var(--btn); box-shadow: 0 0 0 3px rgba(42,92,168,.2); }
#emp-form .f-row { gap: 12px; }
#emp-form .emp-photo-edit small { font-size: 13px; }
.emp-photo-edit { display: flex; gap: 16px; align-items: center; }
.emp-photo-edit > div { display: grid; gap: 6px; justify-items: start; }
.emp-photo-label { font-weight: 600; font-size: 15px; }
.emp-photo-pick { cursor: pointer; }
.emp-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.emp-actions [hidden] { display: none; }
.acc-ent-note { margin: 0 0 20px; padding: 12px 16px; border-left: 4px solid var(--navy); border-radius: 8px; background: #eef2f8; color: #1d2a44; }
.ent-sheet { margin-bottom: 28px; }
@media (max-width: 520px) { .emp-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; } .emp-card { min-height: 160px; } .emp-avatar { width: 60px; height: 60px; } }

/* Cabinets d'avocats (page Entreprise) : demandes d'accès aux contrats, entreprises clientes. */
.law-list { display: grid; gap: 10px; margin-top: 12px; }
.law-card { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding: 12px 16px; border: 1px solid #dfe5ee; border-left: 4px solid #9aa8bf; border-radius: 10px; background: #fff; }
.law-card > div:first-child { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.law-card .law-st { font-size: 13px; font-weight: 600; color: #4a5a75; }
.law-card.st-pending { border-left-color: #c9a878; background: #fffaf2; }
.law-card.st-accepted { border-left-color: #2e8b57; }
.law-card.st-accepted .law-st { color: #23744a; }
.law-card.st-refused .law-st, .law-card.st-revoked .law-st { color: #a33a2f; }
.law-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.law-ask { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 14px; margin: 12px 0 4px; }
.law-ask label { flex: 1 1 260px; display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 15px; }
.ent-for { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin: 0 0 14px; padding: 12px 16px; border-left: 4px solid #c9a878; border-radius: 8px; background: #fffaf2; }
.ent-for p { margin: 0; }
.ent-for[hidden], .law-card [hidden] { display: none; }
.emp-card .emp-firm { font-size: 12px; color: #8a6a35; font-weight: 600; }
.co-law-title { margin: 22px 0 8px; font-size: 16px; }
.co-law { margin: 0; padding-left: 20px; }
.co-law li { margin: 4px 0; }
#ent-form select:disabled { background: #f1f3f6; color: #4a5a75; cursor: not-allowed; }
#ent-form label small.muted { font-size: 12.5px; font-weight: 400; }

/* Lignes lettrées (a., b., c.…) des lois finance, dans le Code et sur la page de la loi. */
.law-line { margin: 4px 0; padding-left: 2em; text-indent: -2em; }
.law-letter { display: inline-block; width: 2em; text-indent: 0; font-weight: 700; color: var(--navy); }

/* Déclaration d'après le registre : la fiche de l'entreprise remplace forme, siège et secteur. */
.decl-registry .js-co-field { display: none; }
.decl-co-card { padding: 14px 16px; border: 1px solid #dfe5ee; border-left: 4px solid var(--navy); border-radius: 10px; background: #f6f8fb; }
.decl-co-card[hidden] { display: none; }
.decl-co-h { margin: 0 0 8px; font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #4a5a75; }
.decl-co-card dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 8px 18px; margin: 0; }
.decl-co-card dt { font-size: 12.5px; color: #6b7a93; }
.decl-co-card dd { margin: 2px 0 0; font-weight: 600; color: #1d2a44; }
.decl-co-note { margin: 10px 0 0; font-size: 13px; color: #5b6475; }

/* Déclaration, dons et mécénats : provenance des fonds. */
.don-src { padding: 14px 16px; border: 1px solid #eadfca; border-left: 4px solid #c9a878; border-radius: 10px; background: #fffaf2; display: grid; gap: 12px; }
.don-src[hidden], .don-src [hidden] { display: none; }
.don-src-h { margin: 0; font-weight: 700; color: #1d2a44; }
.don-kinds { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border: 1px solid #e6dcc8; border-radius: 10px; background: #fff; justify-self: start; }
.don-kinds label { position: relative; display: block; margin: 0; cursor: pointer; }
.don-kinds input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.don-kinds span { display: block; padding: 7px 16px; border-radius: 7px; font-weight: 600; font-size: 14.5px; color: #4a5a75; }
.don-kinds input:checked + span { background: var(--navy); color: #fff; }
.don-kinds input:focus-visible + span { outline: 2px solid var(--navy); outline-offset: 2px; }

/* Administration : registre des déclarations, dépenses des institutions, agents de l'IRS. */
.dl-filters input[type=date] { min-width: 150px; }
.dl-filters .btn { align-self: flex-end; }
.tag.dl-impot { background: #e6edf8; color: #1f4e99; }
.tag.dl-comptabilite { background: #eef6ea; color: #2f6b2a; }
.tag.dl-tva { background: #fbf1e3; color: #8a6a35; }
.dl-table td { vertical-align: top; }
.js-dl-more { margin-top: 12px; }
.ie-list { display: grid; gap: 18px; margin-top: 14px; }
.ie-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin-bottom: 10px; }
.ie-head h3 { margin: 0; }
.ie-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.ie-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px 24px; }
.ie-block h4 { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin: 0 0 8px; padding-bottom: 6px; border-bottom: 2px solid #e6edf8; font-size: 15px; }
.ie-sum { padding: 2px 10px; border-radius: 999px; background: var(--navy); color: #fff; font-size: 13.5px; font-variant-numeric: tabular-nums; }
.ie-table { margin: 0; }
.ie-table td { padding-top: 7px; padding-bottom: 7px; }
.ie-freq { border: 0; padding: 0; margin: 0; }

#ag-form, #ie-form { display: grid; gap: 14px; }
#ag-form label, #ie-form label:not(.emp-types label) { display: block; }
#ag-form label > span, #ie-form label > span:first-child { display: block; font-size: 14px; font-weight: 600; margin-bottom: 4px; }
#ag-form input, #ag-form select, #ie-form input:not([type=radio]) { width: 100%; height: 40px; border: 1px solid #c3c8cf; border-radius: 6px; padding: 0 12px; font: inherit; font-size: 15px; background: #fff; color: var(--ink); }
#ag-form small { display: block; margin-top: 4px; font-size: 12.5px; }
#ag-form .f-row, #ie-form .f-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
#ie-form .money { display: flex; align-items: center; gap: 6px; }
#ie-form .money em { font-style: normal; color: var(--muted); }
.ie-freq div { grid-template-columns: repeat(2, 1fr); }
#ie-form .emp-types label { display: flex !important; }
@media (max-width: 520px) { #ag-form .f-row, #ie-form .f-row { grid-template-columns: 1fr; } }

/* Administration, Comptes : agents de l'IRS (fiches). */
.ag-card { margin: 20px 0 26px; padding: 22px 24px; border: 1px solid var(--line); border-radius: 14px; background: linear-gradient(180deg, #f6f8fc 0%, #fff 140px); }
.ag-top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px 24px; margin-bottom: 18px; }
.ag-top > div:first-child { flex: 1 1 380px; }
.ag-top h3 { margin: 0 0 6px; font-size: 22px; }
.ag-top .muted { margin: 0; font-size: 14px; }
.ag-kicker { margin: 0 0 2px; font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #a8874f; }
.ag-stats { display: flex; flex-wrap: wrap; gap: 8px; }
.ag-stat { min-width: 86px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; text-align: center; }
.ag-stat strong { display: block; font-size: 20px; line-height: 1.1; color: var(--navy); }
.ag-stat span { font-size: 12px; color: var(--muted); }
.ag-stat.ag-admin strong { color: #9b2c22; }
.ag-stat.ag-staff strong { color: #4a5a75; }
.ag-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.ag-item { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 16px; border: 1px solid var(--line); border-top: 4px solid #1f4e99; border-radius: 12px; background: #fff; box-shadow: 0 1px 2px rgba(15, 47, 107, .05); }
.ag-item.ag-admin { border-top-color: #9b2c22; }
.ag-item.ag-staff { border-top-color: #9aa8bf; }
.ag-id { display: flex; align-items: center; gap: 12px; }
.ag-avatar { position: relative; flex: none; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: linear-gradient(135deg, #0f2f6b, #1f4e99); color: #fff; }
.ag-avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.ag-avatar b { font-size: 19px; letter-spacing: .03em; }
.ag-dot { position: absolute; right: 1px; bottom: 1px; width: 14px; height: 14px; border: 2.5px solid #fff; border-radius: 50%; background: #b7c0cf; }
.ag-dot.on { background: #2e9b5a; }
.ag-dot.recent { background: #c9a878; }
.ag-grade { margin: 0 0 2px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #a8874f; }
.ag-id h4 { margin: 0; font-size: 18px; line-height: 1.2; color: #1d2a44; }
.ag-id h4 span { font-weight: 700; letter-spacing: .02em; }
.ag-access { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 0; }
.ag-pill { padding: 3px 11px; border-radius: 999px; background: #e6edf8; color: #1f4e99; font-size: 12.5px; font-weight: 700; }
.ag-admin .ag-pill { background: #fbe9e7; color: #9b2c22; }
.ag-staff .ag-pill { background: #f1f3f6; color: #4a5a75; }
.ag-access small { font-size: 12.5px; color: var(--muted); }
.ag-facts { display: grid; gap: 8px; margin: 0; padding-top: 10px; border-top: 1px solid #eef1f6; }
.ag-facts > div { display: grid; grid-template-columns: 70px 1fr; gap: 8px; }
.ag-facts dt { font-size: 12.5px; color: var(--muted); }
.ag-facts dd { margin: 0; font-size: 14px; font-weight: 600; color: #1d2a44; min-width: 0; overflow-wrap: anywhere; }
.ag-facts small { display: block; font-weight: 400; font-size: 12px; color: var(--muted); }
.ag-seen.on { color: #23744a; }
.ag-seen.never { color: var(--muted); font-weight: 400; }
.ag-edit { align-self: flex-start; margin-top: auto; }
.ag-add { align-items: center; justify-content: center; text-align: center; min-height: 220px; border: 2px dashed #c3cde0; border-top-width: 2px; background: #f8fafd; color: #1f4e99; font: inherit; cursor: pointer; transition: border-color .15s, background .15s; }
.ag-add:hover, .ag-add:focus-visible { border-color: #1f4e99; background: #eef3fb; }
.ag-add small { color: var(--muted); font-size: 13px; }
.ag-plus { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: #e6edf8; }
.ag-plus svg { width: 24px; height: 24px; }
.ag-empty { margin: 0; }

/* Page Entreprise : catégorie « Cabinets d'avocats » dans le menu et au-dessus de ses sections. */
.toc .toc-cat > span { display: block; padding: 12px 0 4px 14px; font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #a8874f; }
.toc .toc-cat ol { margin-left: 14px; border-left: 2px solid #eadfca; }
.toc .toc-cat ol a { font-size: 14.5px; }
.decl-form legend:has(.ent-cat) { flex-wrap: wrap; }
.ent-cat { display: block; flex-basis: 100%; width: 100%; margin-bottom: 4px; font-family: "Source Sans 3", sans-serif; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #a8874f; }

.lf-person { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 3px 10px; border-radius: 999px; margin-bottom: 10px; }
.lf-person-morale { background: #e6edf8; color: var(--navy); }
.lf-person-physique { background: #f6eedf; color: #7a5a1c; }
.lf-legend { background: #f7f8fa; border: 1px solid var(--line); border-radius: 12px; padding: 18px 22px; }
.lf-legend p { margin: 0 0 10px; line-height: 1.6; color: #33373d; }
.lf-legend p:last-child { margin-bottom: 0; }
.lf-legend .lf-person { margin: 0 6px 0 0; }
.tax-person { display: block; margin-top: 6px; font-size: 13px; }

.emp-pdf { display: grid; gap: 6px; margin: 0 0 14px; }
.emp-pdf-label { font-weight: 600; font-size: 14px; }
.emp-pdf-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.emp-pdf-row a { font-weight: 600; }
.emp-pdf-pick { cursor: pointer; }

button.status.dl-toggle { cursor: pointer; border: 0; font: inherit; }
button.status.dl-toggle:hover { filter: brightness(.95); text-decoration: underline; }
.dl-sheet-dialog { max-width: 560px; }
.dls-kicker { margin: 0 0 4px; color: var(--muted, #5b6270); font-size: 14px; }
.dls-status { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 6px 0 14px; }
.dls-total { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 2px 12px; background: #f3f6fb; border-radius: 10px; padding: 12px 16px; margin-bottom: 14px; }
.dls-total strong { font-size: 24px; color: var(--navy); }
.dls-total small { grid-column: 1 / -1; color: #5b6270; }
.dls-h { font-size: 15px; margin: 14px 0 6px; }
.dls-exp { list-style: none; margin: 0; padding: 0; }
.dls-exp li { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.dls-note { margin: 0; white-space: pre-wrap; font-size: 14px; }
.dls-links { margin: 16px 0 0; font-weight: 600; }

/* Paragraphes numérotés (I., II.…) : numéro en marge, texte aligné même sur plusieurs lignes ; un peu d'air entre paragraphes. */
.law-para { margin: 12px 0 6px; padding-left: 2.6em; text-indent: -2.6em; }
.law-para:first-of-type { margin-top: 4px; }
.law-num { display: inline-block; width: 2.6em; text-indent: 0; font-weight: 700; color: var(--navy); }
/* Liste lettrée d'un paragraphe numéroté : décalée à droite des chiffres romains, la lettre sous le texte du paragraphe. */
.law-para ~ .law-line { padding-left: 4.8em; text-indent: -2em; margin: 3px 0; }

.dc-events { border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px 6px; margin: 12px 0; }
.dc-events legend { font-weight: 700; font-size: 14px; padding: 0 6px; }
.dc-events-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 6px 18px; }
.dc-event { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; line-height: 1.4; cursor: pointer; }
.dc-event input { margin-top: 3px; }
.dc-events-all { margin: 8px 0 4px; font-size: 13px; }

.news-stats { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; margin: 4px 0 0; }
.news-stats .news-dc { margin: 0; }
.news-views { display: inline-flex; align-items: center; gap: 5px; font-weight: 700; color: var(--navy); }
.news-views svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.decl-late { margin: 0 0 22px; padding: 18px 22px; border-radius: 10px; background: #c81e1e; color: #fff; border: 2px solid #8a1010; box-shadow: 0 4px 14px rgba(200, 30, 30, .25); }
.decl-late strong { display: block; font-size: 22px; letter-spacing: .02em; text-transform: uppercase; margin-bottom: 6px; }
.decl-late p { margin: 0; font-size: 15.5px; line-height: 1.5; color: #fff; }
.decl-late b { color: #fff; }
.decl-late-done { margin: 12px 0; padding: 12px 16px; }
.decl-late-done strong { font-size: 17px; }

.dls-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0 6px; }
.btn-danger-outline { background: transparent; border: 1px solid #b3261e; color: #b3261e; }
.btn-danger-outline:hover { background: #fdecec; }
.dls-form { display: grid; gap: 12px; }
.dls-form label.check { display: flex; align-items: center; gap: 8px; font-weight: 500; }
.dls-form label.check input { width: auto; margin: 0; }

.dl-row-acts { display: inline-flex; flex-wrap: wrap; gap: 4px 10px; }
.dl-row-acts .neg { color: #b3261e; }

.ob-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin: 8px 0 14px; }
.ob-bar p { margin: 0; }
.ob-bar-acts { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ob-list { display: grid; gap: 14px; margin-bottom: 22px; }
.ob-h { margin: 26px 0 10px; font-size: 18px; }
.ob-card { border: 1px solid #dfe3ea; border-radius: 10px; padding: 14px 16px; background: #fff; }
.ob-card header { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 10px; }
.ob-embed { border-left: 4px solid #0f2f6b; background: #f4f5f8; border-radius: 4px; padding: 10px 14px; font-size: 14px; line-height: 1.5; }
.ob-ping { margin: 0 0 6px; color: #5865f2; font-weight: 600; font-size: 13px; }
.ob-title { display: block; font-size: 15.5px; margin-bottom: 4px; }
.ob-desc { margin: 0 0 8px; }
.ob-h2 { display: block; font-size: 16px; margin: 2px 0; }
.ob-quote { display: block; border-left: 3px solid #b9bfca; padding-left: 8px; }
.ob-fields { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 8px 14px; margin: 0; }
.ob-fields .wide { grid-column: 1 / -1; }
.ob-fields dt { font-weight: 700; font-size: 13px; }
.ob-fields dd { margin: 0; }
.ob-acts { display: flex; gap: 8px; margin: 12px 0 0; }

/* Guide de déclaration (impots.irs-rp.com/guide) : feuille de route, sommaire collant, étapes numérotées,
   formulaire du jeu reproduit en HTML (.gd-mock, sombre dans les deux thèmes), encadrés, exemples, catégories. */
.gd-ico { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.gd-road-wrap { margin-top: -34px; position: relative; z-index: 2; }
.gd-road { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; list-style: none; margin: 0; padding: 0; counter-reset: none; }
.gd-road a { position: relative; display: grid; gap: 6px; height: 100%; padding: 18px 18px 16px; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: 0 8px 24px rgba(15, 47, 107, .08); color: inherit; text-decoration: none; transition: transform .15s, box-shadow .15s, border-color .15s; }
.gd-road a:hover { transform: translateY(-2px); border-color: var(--gold); box-shadow: 0 12px 28px rgba(15, 47, 107, .14); }
.gd-road .gd-ico { width: 28px; height: 28px; color: var(--navy); }
.gd-road-n { position: absolute; top: 14px; right: 16px; font: 700 30px/1 "Playfair Display", Georgia, serif; color: #e6dcc8; }
.gd-road strong { font-size: 16px; line-height: 1.3; color: var(--navy); }
.gd-road small { font-size: 13.5px; line-height: 1.4; color: var(--muted); }
.gd-body { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 36px; align-items: start; padding-top: 34px; padding-bottom: 56px; }
.gd-toc { position: sticky; top: 72px; }
.gd-toc-h { margin: 0 0 10px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--navy); }
.gd-toc ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.gd-toc a { display: block; padding: 6px 0 6px 14px; margin-left: -2px; border-left: 2px solid transparent; color: #2b2f35; text-decoration: none; font-size: 14.5px; line-height: 1.35; }
.gd-toc a span { display: block; font-size: 11.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.gd-toc a:hover { border-left-color: var(--gold); color: var(--navy); }
.gd-steps { display: grid; gap: 30px; }
.gd-step { padding: 28px 32px 30px; border: 1px solid var(--line); border-radius: 16px; background: #fff; scroll-margin-top: 80px; box-shadow: 0 2px 10px rgba(15, 47, 107, .04); }
.gd-step-head { display: flex; gap: 18px; align-items: flex-start; margin: 0 0 18px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.gd-step-n { flex: none; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: var(--navy); color: #fff; font: 700 26px/1 "Playfair Display", Georgia, serif; box-shadow: inset 0 0 0 3px var(--gold); }
.gd-num { margin: 2px 0 2px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #8a6a3a; }
.gd-step h2 { margin: 0; font-size: 27px; line-height: 1.2; }
.gd-short { margin: 6px 0 0 !important; font-size: 15.5px !important; color: var(--muted) !important; }
.gd-step h3 { margin: 26px 0 10px; font-size: 19px; }
.gd-step p { margin: 0 0 12px; font-size: 16.5px; line-height: 1.6; color: #2b2f35; }
.gd-tr { font-weight: 400; color: var(--muted); }
/* Formulaire du jeu reproduit : sombre, comme dans le jeu. */
.gd-mock { margin: 20px 0 22px; padding: 18px; max-width: 560px; border-radius: 16px; background: radial-gradient(120% 90% at 100% 0, #4a0b10 0, #120607 55%, #050505 100%); color: #f2f2f2; font-size: 14.5px; box-shadow: 0 10px 28px rgba(10, 10, 20, .25); }
.gd-mock figcaption { margin: 0 0 10px; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #e0b4b8; }
.gd-mock-h { margin: 12px 0 8px !important; font-size: 13px !important; font-weight: 700; color: #a9a9ad !important; }
.gd-mock-card { margin: 0 0 10px; border-radius: 14px; background: rgba(38, 38, 42, .92); overflow: hidden; }
.gd-mock-row { display: flex; justify-content: space-between; gap: 16px; padding: 11px 16px; border-top: 1px solid rgba(255, 255, 255, .08); }
.gd-mock-row:first-child { border-top: 0; }
.gd-mock-row em { font-style: normal; color: #bdbdc2; text-align: right; }
.gd-mock-row.act { font-weight: 600; }
.gd-mock-row.area { display: block; }
.gd-mock-row.area em { display: block; margin-top: 6px; text-align: left; line-height: 1.45; }
.gd-mock-row.del { color: #ff6b75; }
/* Champs à remplir. */
.gd-fields { display: grid; gap: 10px; list-style: none; margin: 4px 0 8px; padding: 0; }
.gd-fields li { padding: 12px 16px; border: 1px solid var(--line); border-radius: 12px; background: #fafbfc; }
.gd-field-h { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 4px; color: var(--navy); }
.gd-fields p { margin: 0 !important; font-size: 15.5px !important; }
.gd-fields.grid { grid-template-columns: 1fr 1fr; }
.gd-fields.grid li:last-child:nth-child(odd) { grid-column: 1 / -1; }
.gd-badge { padding: 2px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 700; letter-spacing: .03em; }
.gd-badge.req { background: #fde8e8; color: #a10d0d; }
.gd-badge.opt { background: #e8f0fb; color: #1d4f99; }
/* Encadrés. */
.gd-call { display: flex; gap: 14px; margin: 20px 0; padding: 16px 18px; border-radius: 12px; }
.gd-call .gd-ico { width: 26px; height: 26px; }
.gd-call p { margin: 0 !important; }
.gd-call-h { display: block; margin-bottom: 4px; font-size: 12.5px; letter-spacing: .07em; text-transform: uppercase; }
.gd-call.warn { border: 1px solid #ecc0c0; border-left: 6px solid #b50909; background: #fdf3f3; }
.gd-call.warn .gd-ico, .gd-call.warn .gd-call-h { color: #b50909; }
.gd-call.tip { border: 1px solid #c9d6ea; border-left: 6px solid var(--navy); background: #f2f6fc; }
.gd-call.tip .gd-ico, .gd-call.tip .gd-call-h { color: var(--navy); }
/* Exemples à éviter / bien. */
.gd-compare { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 12px; margin: 18px 0; }
.gd-ex { display: flex; gap: 12px; padding: 14px 16px; border-radius: 12px; }
.gd-ex .gd-ico { width: 24px; height: 24px; }
.gd-ex strong { display: block; font-size: 12.5px; letter-spacing: .07em; text-transform: uppercase; }
.gd-ex p { margin: 4px 0 0 !important; font-size: 15.5px !important; font-style: italic; }
.gd-ex.bad { background: #fdf3f3; border: 1px solid #ecc0c0; }
.gd-ex.bad .gd-ico, .gd-ex.bad strong { color: #b50909; }
.gd-ex.good { background: #eff8f1; border: 1px solid #b9dcc3; }
.gd-ex.good .gd-ico, .gd-ex.good strong { color: #1f7a3f; }
/* Catégories. */
.gd-cats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 6px 0 0; }
.gd-cat { display: flex; gap: 12px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: #fafbfc; }
.gd-cat-ico { width: 38px; height: 38px; padding: 8px; border-radius: 10px; background: #fff; color: var(--navy); box-shadow: inset 0 0 0 1px #e6dcc8; }
.gd-cat dt { margin: 0 0 4px; font-weight: 700; color: var(--navy); }
.gd-cat dd { margin: 0; font-size: 15px; line-height: 1.5; color: #2b2f35; }
.gd-cat:last-child:nth-child(odd) { grid-column: 1 / -1; }
/* Calcul. */
.gd-formula { display: grid; gap: 10px; margin: 6px 0 10px; }
.gd-formula p { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 !important; }
.gd-chip { padding: 7px 14px; border-radius: 10px; background: #f2f6fc; border: 1px solid #c9d6ea; font-weight: 700; color: var(--navy); font-size: 15px; }
.gd-chip:last-child { background: var(--navy); border-color: var(--navy); color: #fff; }
.gd-op { font-size: 20px; font-weight: 700; color: #8a6a3a; }
/* Liste de vérification. */
.gd-check { display: grid; gap: 8px; list-style: none; margin: 4px 0 0; padding: 0; }
.gd-check li { display: flex; gap: 10px; align-items: flex-start; padding: 10px 14px; border-radius: 10px; background: #eff8f1; font-size: 15.5px; line-height: 1.45; }
.gd-check .gd-ico { color: #1f7a3f; }
@media (max-width: 980px) {
  .gd-road { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .gd-body { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .gd-toc { display: none; }
  .gd-step { padding: 20px 18px 22px; }
  .gd-step h2 { font-size: 23px; }
  .gd-step-n { width: 44px; height: 44px; font-size: 21px; }
  .gd-cats, .gd-compare, .gd-fields.grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 520px) {
  .gd-road { grid-template-columns: minmax(0, 1fr); }
  .gd-road-wrap { margin-top: -20px; }
}

/* ==== MODE SOMBRE : bloc généré par tools/dark/gen.py, ne pas modifier à la main ==== */
:where(html[data-theme="dark"]) a { color: var(--btn-fg); }
:where(html[data-theme="dark"]) .skip { background: #1b1b1b; }
:where(html[data-theme="dark"]) .rp-banner { background: #1b1b1b; color: #f7f7f7; }
:where(html[data-theme="dark"]) .rp-arrow { color: #f7f7f7; }
:where(html[data-theme="dark"]) .rp-banner strong { color: #f7f7f7; }
:where(html[data-theme="dark"]) .lang-btn { background: #1b1b1b; border: 1px solid #474a4f; color: #f7f7f7; }
:where(html[data-theme="dark"]) .lang-menu { background: #1b1b1b; }
:where(html[data-theme="dark"]) .linklike { color: #f7f7f7; }
:where(html[data-theme="dark"]) .rp-details { background: #1a1e23; }
:where(html[data-theme="dark"]) .search input { background: #1b1b1b; }
:where(html[data-theme="dark"]) .search button { background: #1b1b1b; color: var(--navy-fg); }
:where(html[data-theme="dark"]) .signin:hover, :where(html[data-theme="dark"]) .signin[aria-expanded=true] { background: #1b1b1b; border-color: #363636; color: var(--navy-fg); }
:where(html[data-theme="dark"]) .acc-badge::after { border: 2px solid #7d2a2c; }
:where(html[data-theme="dark"]) .signin.has-notif { border-color: #6f2527; }
:where(html[data-theme="dark"]) .auth-dc-only { color: #b9bec6; }
:where(html[data-theme="dark"]) .auth-dc.only { background: linear-gradient(180deg, #0f1133, #1b1b1b); border: 1px solid #252957; }
:where(html[data-theme="dark"]) .auth-gov-note { background: #1c2129; color: #b9bec6; }
:where(html[data-theme="dark"]) .biz-card.biz-linked .biz-head strong { color: var(--navy-fg); }
:where(html[data-theme="dark"]) .biz-card.biz-linked .biz-edit { color: var(--btn-fg); }
:where(html[data-theme="dark"]) .linked-off-note { background: #3b2d15; color: #dacaa7; }
:where(html[data-theme="dark"]) .linked-co-note.none { background: #3b2d15; color: #dacaa7; }
:where(html[data-theme="dark"]) .auth-dc-who { background: #121634; color: #8188d6; }
:where(html[data-theme="dark"]) .acc-co strong { color: var(--navy-fg); }
:where(html[data-theme="dark"]) .ent-pick a { color: var(--navy-fg); }
:where(html[data-theme="dark"]) .acc-menu .acc-notifs-all { color: var(--btn-fg); }
:where(html[data-theme="dark"]) .acc-menu a.acc-notif.unread { background: #301414; }
:where(html[data-theme="dark"]) .acc-menu a.acc-notif.unread:hover { background: #391818; }
:where(html[data-theme="dark"]) .acc-notif-t { color: var(--navy-fg); }
:where(html[data-theme="dark"]) .acc-notif-b { color: #b9bec6; }
:where(html[data-theme="dark"]) .notif-toast { background: #1b1b1b; }
:where(html[data-theme="dark"]) .notif-toast-ico { background: #341414; }
:where(html[data-theme="dark"]) .acc-menu { background: #1b1b1b; }
:where(html[data-theme="dark"]) .acc-role { color: var(--navy-fg); background: #1c2636; }
:where(html[data-theme="dark"]) #auth-form input { border: 1px solid #474a4f; }
:where(html[data-theme="dark"]) #auth-form select { border: 1px solid #474a4f; background: #1b1b1b; }
:where(html[data-theme="dark"]) #auth-form select:disabled, :where(html[data-theme="dark"]) .decl-form select:disabled { background: #212327; }
:where(html[data-theme="dark"]) .auth-hint.f-setup { background: #1c2636; }
:where(html[data-theme="dark"]) .auth-err { color: #e96464; background: #341414; }
:where(html[data-theme="dark"]) .burger span { background: #1b1b1b; }
:where(html[data-theme="dark"]) .hero { background: linear-gradient(#1f1f1f, #282828); }
:where(html[data-theme="dark"]) .checks svg { color: var(--navy-fg); }
:where(html[data-theme="dark"]) .btn-outline { background: #1b1b1b; color: var(--btn-fg); }
:where(html[data-theme="dark"]) .app-card { background: #1b1b1b; }
:where(html[data-theme="dark"]) .phone-logo em { background: #1b1b1b; color: var(--navy-fg); }
:where(html[data-theme="dark"]) .phone-btn { border: 1.5px solid #363636; }
:where(html[data-theme="dark"]) .phone-btn.solid { background: #1b1b1b; color: var(--blue-fg); }
:where(html[data-theme="dark"]) .ci { color: var(--btn-fg); }
:where(html[data-theme="dark"]) .card p { color: #c3c7cd; }
:where(html[data-theme="dark"]) .tabs button { color: var(--btn-fg); }
:where(html[data-theme="dark"]) .panel { background: #1b1b1b; }
:where(html[data-theme="dark"]) details p { color: #c3c7cd; }
:where(html[data-theme="dark"]) .news p { color: #c3c7cd; }
:where(html[data-theme="dark"]) .notice { background: #413813; }
@media (max-width: 980px) {
  :where(html[data-theme="dark"]) .burger::before { background: linear-gradient(#1b1b1b 0 2px, transparent 2px 6px, #1b1b1b 6px 8px, transparent 8px 12px, #1b1b1b 12px 14px); }
}
:where(html[data-theme="dark"]) .page-hero { background: linear-gradient(#1f1f1f, #282828); }
:where(html[data-theme="dark"]) .crumbs a { color: var(--btn-fg); }
:where(html[data-theme="dark"]) .page-lead { color: #c3c7cd; }
:where(html[data-theme="dark"]) .toc ol a:hover { color: var(--btn-fg); }
:where(html[data-theme="dark"]) .toc ol a[aria-current]:not([aria-current=false]) { color: var(--navy-fg); background: linear-gradient(90deg, #1d242e, transparent); }
:where(html[data-theme="dark"]) .fiction-note { background: #1c2636; }
:where(html[data-theme="dark"]) .timeline li::before { background: #1b1b1b; }
:where(html[data-theme="dark"]) .t-year { color: var(--navy-fg); }
:where(html[data-theme="dark"]) .timeline p { color: #c3c7cd; }
:where(html[data-theme="dark"]) .mission p { color: #c3c7cd; }
:where(html[data-theme="dark"]) .news-filters button:hover { color: var(--btn-fg); }
:where(html[data-theme="dark"]) .news-filters button[aria-pressed=true] { color: var(--navy-fg); }
:where(html[data-theme="dark"]) .tag { color: var(--navy-fg); background: #1c2636; }
:where(html[data-theme="dark"]) .news-body summary { color: var(--btn-fg); }
:where(html[data-theme="dark"]) .news-body details p { color: #c3c7cd; }
:where(html[data-theme="dark"]) .news-feature { background: #1b1b1b; }
:where(html[data-theme="dark"]) .news-card { background: #1b1b1b; }
:where(html[data-theme="dark"]) .decl-login { background: #1b1b1b; }
:where(html[data-theme="dark"]) .decl-login p { color: #c3c7cd; }
:where(html[data-theme="dark"]) .decl-form fieldset { background: #1b1b1b; }
:where(html[data-theme="dark"]) .decl-form input, :where(html[data-theme="dark"]) .decl-form select, :where(html[data-theme="dark"]) .decl-form textarea { border: 1px solid #474a4f; background: #1b1b1b; }
:where(html[data-theme="dark"]) .decl-summary .minus strong { color: #a1a6af; }
:where(html[data-theme="dark"]) .decl-summary .total { border-top: 1px solid #4b515a !important; }
:where(html[data-theme="dark"]) .decl-summary .due strong { color: var(--navy-fg); }
:where(html[data-theme="dark"]) .neg { color: #e96464 !important; }
:where(html[data-theme="dark"]) .decl-done { background: #1d2e22; border: 1px solid #3c5945; }
:where(html[data-theme="dark"]) .decl-history code { color: var(--navy-fg); }
:where(html[data-theme="dark"]) .status { color: #709ce2; background: #1c2636; }
:where(html[data-theme="dark"]) .status.s-deposee { color: #709ce2; background: #1c2636; }
:where(html[data-theme="dark"]) .status.s-validee { color: #f2d9a2; background: #534718; }
:where(html[data-theme="dark"]) .status.s-payee { color: #8be2aa; background: #223728; }
:where(html[data-theme="dark"]) .status.s-refusee { color: #e96464; background: #341414; }
:where(html[data-theme="dark"]) .note-row td { background: #1a1e23; color: #c3c7cd; }
:where(html[data-theme="dark"]) .adm-tabs a:hover { color: var(--btn-fg); }
:where(html[data-theme="dark"]) .adm-tabs a[aria-current=page] { color: var(--navy-fg); }
:where(html[data-theme="dark"]) .stat { background: #1b1b1b; }
:where(html[data-theme="dark"]) .stat strong { color: var(--navy-fg); }
:where(html[data-theme="dark"]) .adm-table code { color: var(--navy-fg); }
:where(html[data-theme="dark"]) .adm-filters select, :where(html[data-theme="dark"]) .adm-filters input { border: 1px solid #474a4f; background: #1b1b1b; }
:where(html[data-theme="dark"]) .linkbtn { color: var(--btn-fg); }
:where(html[data-theme="dark"]) .linkbtn.danger { color: #e96464; }
:where(html[data-theme="dark"]) .adm-news-item { background: #1b1b1b; }
:where(html[data-theme="dark"]) .tag.gold { color: #f2d9a2; background: #534718; }
:where(html[data-theme="dark"]) .adm-readonly-note { background: #1d242e; border: 1px solid #374253; color: #bac8e2; }
:where(html[data-theme="dark"]) .adm-readonly-note svg { color: var(--navy-fg); }
:where(html[data-theme="dark"]) .role-pick select { background: #1b1b1b; }
:where(html[data-theme="dark"]) .reset-code code { color: var(--navy-fg); border: 1px dashed #48525f; }
:where(html[data-theme="dark"]) .tag.muted-tag { color: #adb2b9; background: #2a2d30; }
:where(html[data-theme="dark"]) .tag.ok-tag { color: #a3e1b7; background: #223329; }
:where(html[data-theme="dark"]) .adm-news-item.is-hidden { background: #1e2025; }
:where(html[data-theme="dark"]) .adm-card { background: #1b1b1b; }
:where(html[data-theme="dark"]) .struct-opt { background: #1b1b1b; }
:where(html[data-theme="dark"]) .struct-opt.off { background: #2b1515; }
:where(html[data-theme="dark"]) .struct-opt input { accent-color: #8be2aa; }
:where(html[data-theme="dark"]) .struct-state { background: #223728; color: #8be2aa; }
:where(html[data-theme="dark"]) .struct-opt.off .struct-state { background: #341414; color: #e96464; }
:where(html[data-theme="dark"]) .struct-opt.neutral-off .struct-state { background: #23262c; color: #969eab; }
:where(html[data-theme="dark"]) .btn-aplus:disabled { background: #23262c; border-color: #3f4349; }
:where(html[data-theme="dark"]) .co-known { background: #121634; color: #8188d6; }
:where(html[data-theme="dark"]) .reg-chip { background: #121634; color: #8188d6; }
:where(html[data-theme="dark"]) .reg-chip.wait { background: #1c2129; color: #b9bec6; }
:where(html[data-theme="dark"]) .reg-add input { border: 1px solid #474a4f; }
:where(html[data-theme="dark"]) .reg-table .reg-name { color: var(--navy-fg); }
:where(html[data-theme="dark"]) .notif-grid input, :where(html[data-theme="dark"]) .notif-grid select, :where(html[data-theme="dark"]) .notif-grid textarea { border: 1px solid #474a4f; background: #1b1b1b; }
:where(html[data-theme="dark"]) .money.pct input { border: 1px solid #474a4f; }
:where(html[data-theme="dark"]) .adm-msg.ok { color: #8be2aa; background: #223728; }
:where(html[data-theme="dark"]) .adm-msg.err { color: #e96464; background: #341414; }
:where(html[data-theme="dark"]) .adm-dialog input:not([type=checkbox]):not([type=radio]), :where(html[data-theme="dark"]) .adm-dialog select, :where(html[data-theme="dark"]) .adm-dialog textarea { border: 1px solid #474a4f; background: #1b1b1b; }
:where(html[data-theme="dark"]) .base-pick label:has(input:checked) { background: #19202b; }
:where(html[data-theme="dark"]) .pick:has(input:checked) { background: #19202b; }
:where(html[data-theme="dark"]) .pick em { color: var(--navy-fg); }
:where(html[data-theme="dark"]) .inst-item { background: #1b1b1b; }
:where(html[data-theme="dark"]) .status.s-en_attente { color: #709ce2; background: #1c2636; }
:where(html[data-theme="dark"]) .status.s-acceptee { color: #8be2aa; background: #223728; }
:where(html[data-theme="dark"]) .stat.danger strong { color: #e96464; }
:where(html[data-theme="dark"]) .pay-totals > div { background: #1b1b1b; }
:where(html[data-theme="dark"]) .debt-late { color: #e96464; }
:where(html[data-theme="dark"]) .pay-totals .late strong { color: #e96464; }
:where(html[data-theme="dark"]) .pay-totals .ok strong { color: #8be2aa; }
:where(html[data-theme="dark"]) .status.s-a_payer { color: #709ce2; background: #1c2636; }
:where(html[data-theme="dark"]) .status.s-en_retard { color: #e96464; background: #341414; }
:where(html[data-theme="dark"]) .status.s-paye { color: #8be2aa; background: #223728; }
:where(html[data-theme="dark"]) .row-late td { background: #2e0d0d; }
:where(html[data-theme="dark"]) .status.s-accordee { color: #f2d9a2; background: #534718; }
:where(html[data-theme="dark"]) .status.s-rembourse { color: #8be2aa; background: #223728; }
:where(html[data-theme="dark"]) .stat.ok strong { color: #8be2aa; }
:where(html[data-theme="dark"]) .adm-ok { color: #8be2aa; background: #223728; }
:where(html[data-theme="dark"]) .search-result { background: #1b1b1b; }
:where(html[data-theme="dark"]) .search-result h2 a { color: var(--navy-fg); }
:where(html[data-theme="dark"]) .search-result p:last-child { color: #c3c7cd; }
:where(html[data-theme="dark"]) .search-result mark { background: #534718; }
:where(html[data-theme="dark"]) .law-toc ol a span { color: var(--navy-fg); }
:where(html[data-theme="dark"]) .law-tools { background: #1b1b1b; }
:where(html[data-theme="dark"]) .law-tools input { border: 1px solid #474a4f; }
:where(html[data-theme="dark"]) .law-article { background: #1b1b1b; }
:where(html[data-theme="dark"]) .law-title { color: var(--navy-fg); }
:where(html[data-theme="dark"]) .art-num { color: var(--navy-fg); }
:where(html[data-theme="dark"]) .law-article p { color: #caced4; }
:where(html[data-theme="dark"]) .law-article li { color: #caced4; }
:where(html[data-theme="dark"]) .law-adopted { background: #1e3226; border: 1px solid #3a5644; color: #98e1b6; }
:where(html[data-theme="dark"]) .law-article .pl-art-table th { background: #1d242e; color: var(--navy-fg); }
:where(html[data-theme="dark"]) .law-article .pl-art-table td { color: #caced4; }
:where(html[data-theme="dark"]) .pw-toggle:hover { color: var(--navy-fg); }
:where(html[data-theme="dark"]) .pw-toggle[aria-pressed=true] { color: var(--navy-fg); }
:where(html[data-theme="dark"]) .law-article a, :where(html[data-theme="dark"]) .news-body details a { color: var(--btn-fg); }
:where(html[data-theme="dark"]) .help-link { background: #1b1b1b; }
:where(html[data-theme="dark"]) .help-link strong { color: var(--navy-fg); }
:where(html[data-theme="dark"]) .help-topic details { background: #1b1b1b; }
:where(html[data-theme="dark"]) .help-topic details a { color: var(--btn-fg); }
:where(html[data-theme="dark"]) .fraud-warning { background: #341414; border: 1px solid #5b2d2d; color: #efa6a6; }
:where(html[data-theme="dark"]) .status.s-f-nouveau { color: #e96464; background: #341414; }
:where(html[data-theme="dark"]) .status.s-f-en_cours { color: #f2d9a2; background: #534718; }
:where(html[data-theme="dark"]) .status.s-f-traite { color: #8be2aa; background: #223728; }
:where(html[data-theme="dark"]) .status.s-f-classe { color: #a1a6af; background: #24272c; }
:where(html[data-theme="dark"]) .legal p, :where(html[data-theme="dark"]) .legal li { color: #caced4; }
:where(html[data-theme="dark"]) .legal a { color: var(--btn-fg); }
:where(html[data-theme="dark"]) .legal-callout { background: #413813; border: 1px solid #6f6031; }
:where(html[data-theme="dark"]) .legal-callout p { color: #f7ebc6; }
:where(html[data-theme="dark"]) .legal-table code { color: var(--navy-fg); }
:where(html[data-theme="dark"]) .cookie-banner { background: #1b1b1b; }
:where(html[data-theme="dark"]) .cookie-icon { background: #1c2636; }
:where(html[data-theme="dark"]) .cookie-icon circle { fill: var(--navy-fg); }
:where(html[data-theme="dark"]) .cookie-body p { color: #c3c7cd; }
:where(html[data-theme="dark"]) .exemption-box:has(input:checked) { background: #413813; border-color: #6f6031; }
:where(html[data-theme="dark"]) .exemption-box a { color: var(--btn-fg); }
:where(html[data-theme="dark"]) .deadline-pick select, :where(html[data-theme="dark"]) .deadline-pick input { border: 1px solid #474a4f; background: #1b1b1b; }
:where(html[data-theme="dark"]) .btn-light { border-color: rgba(54, 54, 54, 0.85); }
:where(html[data-theme="dark"]) .btn-light:hover, :where(html[data-theme="dark"]) .btn-light:focus-visible { background: #1b1b1b; border-color: #363636; color: var(--navy-fg); }
:where(html[data-theme="dark"]) .deadline-ticket { background: linear-gradient(180deg, #1b1b1b 0%, #1b1b1b 60%, #2e2718 100%); }
:where(html[data-theme="dark"]) .deadline-ticket::after { background: linear-gradient(105deg, transparent calc(var(--tx, 50%) - 28%), rgba(87, 69, 25, 0.45) calc(var(--tx, 50%) - 6%), rgba(27, 27, 27, 0.6) var(--tx, 50%), rgba(201,168,120,.3) calc(var(--tx, 50%) + 8%), transparent calc(var(--tx, 50%) + 26%)); }
:where(html[data-theme="dark"]) .tk-stamp { color: #e3615a; }
:where(html[data-theme="dark"]) .tk-slot { box-shadow: inset 0 3px 5px rgba(0,0,0,.7), 0 1px 0 rgba(41, 41, 41, 0.25); }
:where(html[data-theme="dark"]) .ticket-perf { border-top: 2px dashed #3f444d; }
:where(html[data-theme="dark"]) .deadline-date { color: var(--navy-fg); }
:where(html[data-theme="dark"]) .deadline-what { color: #c3c7cd; }
:where(html[data-theme="dark"]) .deadline-left { color: #709ce2; background: #1c2636; }
:where(html[data-theme="dark"]) .deadline-left.urgent { color: #e96464; background: #341414; }
:where(html[data-theme="dark"]) .deadline-link { color: var(--btn-fg); }
:where(html[data-theme="dark"]) .home-steps li { background: #1b1b1b; }
:where(html[data-theme="dark"]) .home-steps p { color: #c3c7cd; }
:where(html[data-theme="dark"]) .home-steps a { color: var(--btn-fg); }
:where(html[data-theme="dark"]) .fact-ico { box-shadow: inset 0 0 0 1px rgba(41, 41, 41, 0.18); }
:where(html[data-theme="dark"]) .fact-ico svg { stroke: #363636; }
:where(html[data-theme="dark"]) .home-news { background: #1b1b1b; }
:where(html[data-theme="dark"]) .home-news strong { color: var(--navy-fg); }
:where(html[data-theme="dark"]) .home-news-excerpt { color: #c3c7cd; }
:where(html[data-theme="dark"]) .nd-en { background: #1a1e23; }
:where(html[data-theme="dark"]) .code-refresh-msg.err { border-left-color: #762e27; }
:where(html[data-theme="dark"]) .form-ok { color: #8be2aa; background: #1d2e22; border: 1px solid #3c5945; }
:where(html[data-theme="dark"]) .intro-mouse { border: 2px solid rgba(84, 75, 56, 0.75); }
@media (hover: none) {
  :where(html[data-theme="dark"]) .intro-mouse { border-left: 2px solid rgba(84, 75, 56, 0.75); border-top: 2px solid rgba(84, 75, 56, 0.75); }
}
:where(html[data-theme="dark"]) .assist-panel { background: #1b1b1b; }
:where(html[data-theme="dark"]) .assist-log { background: #1a1f28; }
:where(html[data-theme="dark"]) .assist-msg a { color: var(--btn-fg); }
:where(html[data-theme="dark"]) .assist-msg.bot { background: #1b1b1b; }
:where(html[data-theme="dark"]) .assist-q { color: var(--navy-fg); }
:where(html[data-theme="dark"]) .assist-chips button { border: 1px solid #3c4658; background: #182131; color: var(--navy-fg); }
:where(html[data-theme="dark"]) .assist-msg.typing span { background: #464b53; }
:where(html[data-theme="dark"]) .assist-form { background: #1b1b1b; }
:where(html[data-theme="dark"]) .assist-form input { border: 1px solid #454950; }
:where(html[data-theme="dark"]) .map-search input { border: 1px solid #454950; }
:where(html[data-theme="dark"]) .map-kicker { color: var(--gold-dark, #c0a170); }
:where(html[data-theme="dark"]) .map-legend button { background: #1b1b1b; }
:where(html[data-theme="dark"]) .map-legend button[aria-pressed=true] { background: #182131; }
:where(html[data-theme="dark"]) .map-layer { background: #1b1b1b; }
:where(html[data-theme="dark"]) .map-layer input { accent-color: var(--navy-fg); }
:where(html[data-theme="dark"]) .map-layer .sw-relief { background: linear-gradient(135deg, #1b1b1b 0 30%, #554f44 60%, #6f6352); }
:where(html[data-theme="dark"]) .map-layer .sw-road { background: #1b1b1b; }
:where(html[data-theme="dark"]) .map-ctrl button { background: #1b1b1b; color: var(--navy-fg); }
:where(html[data-theme="dark"]) .graph-show input { accent-color: var(--navy-fg); }
:where(html[data-theme="dark"]) .graph-wrap { background: radial-gradient(circle at 1px 1px, #30353d 1px, transparent 1.2px) 0 0 / 22px 22px, #181e28; }
:where(html[data-theme="dark"]) .graph-tools button { background: #1b1b1b; color: var(--navy-fg); }
:where(html[data-theme="dark"]) .graph-legend { background: rgba(27, 27, 27, 0.92); }
:where(html[data-theme="dark"]) .graph-info { background: #1b1b1b; }
:where(html[data-theme="dark"]) .graph-chip { color: var(--btn-fg); }
:where(html[data-theme="dark"]) .graph-alert { background: #413813; border: 1px solid #6f6031; }
:where(html[data-theme="dark"]) .score-tile { background: #1b1b1b; }
:where(html[data-theme="dark"]) .score-bar { background: #282b33; }
:where(html[data-theme="dark"]) .score-table .neg, :where(html[data-theme="dark"]) .score-lines .neg { color: #e96464; }
:where(html[data-theme="dark"]) .score-lines .pos { color: #8be2b0; }
:where(html[data-theme="dark"]) .score-rules { background: #1b1b1b; }
:where(html[data-theme="dark"]) .score-ok { color: #8be2b0; }
:where(html[data-theme="dark"]) .chart-check input { accent-color: var(--navy-fg); }
:where(html[data-theme="dark"]) .chart-legend { background: #1b1b1b; }
:where(html[data-theme="dark"]) .chart-item input { accent-color: var(--navy-fg); }
:where(html[data-theme="dark"]) .chart-empty { border: 1px dashed #474a4f; background: #1a1e23; }
:where(html[data-theme="dark"]) .chart-box { background: #1b1b1b; }
:where(html[data-theme="dark"]) .sim-note a, :where(html[data-theme="dark"]) .sim-excluded a, :where(html[data-theme="dark"]) .sim-foot a { color: var(--btn-fg); }
:where(html[data-theme="dark"]) .sim-excluded summary { color: var(--btn-fg); }
:where(html[data-theme="dark"]) .sim-excluded p { color: #c3c7cd; }
:where(html[data-theme="dark"]) .sim-warn { background: #341414; color: #ed7f7f; }
:where(html[data-theme="dark"]) .sim-compare tr.on td { background: #1d242e; }
:where(html[data-theme="dark"]) .sim-card { background: #1b1b1b; }
:where(html[data-theme="dark"]) .sim-tax { color: var(--navy-fg); }
:where(html[data-theme="dark"]) .article-body p { color: #caced4; }
:where(html[data-theme="dark"]) .article-body a { color: var(--btn-fg); }
:where(html[data-theme="dark"]) .share-btn { background: #1b1b1b; color: #b7bdc4; }
:where(html[data-theme="dark"]) .share-btn:hover { color: var(--btn-fg); }
:where(html[data-theme="dark"]) .share-link { background: #1b1b1b; color: #a1a6af; }
:where(html[data-theme="dark"]) .share-done { color: #8be2aa; }
:where(html[data-theme="dark"]) .article-back { color: var(--btn-fg); }
:where(html[data-theme="dark"]) .news-body h2 a:hover, :where(html[data-theme="dark"]) .news-body h3 a:hover { color: var(--btn-fg); }
:where(html[data-theme="dark"]) .news-more { color: var(--btn-fg); }
:where(html[data-theme="dark"]) .news-copy { background: #1b1b1b; color: #a1a6af; }
:where(html[data-theme="dark"]) .news-copy:hover { color: var(--btn-fg); }
:where(html[data-theme="dark"]) .news-copy.ok { background: #223728; color: #8be2aa; }
:where(html[data-theme="dark"]) .share-done a { color: var(--btn-fg); }
:where(html[data-theme="dark"]) .nf { background: linear-gradient(180deg, #1b2029 0%, #1b1b1b 70%); }
:where(html[data-theme="dark"]) .nf-kicker { color: var(--gold-dark, #c0a170); }
:where(html[data-theme="dark"]) .nf h1 { color: var(--navy-fg); }
:where(html[data-theme="dark"]) .nf-lead { color: #c3c7cd; }
:where(html[data-theme="dark"]) .nf-search input { border: 1px solid #474a4f; }
:where(html[data-theme="dark"]) .nf-links a { background: #1b1b1b; color: var(--navy-fg); }
:where(html[data-theme="dark"]) .nf-links a:hover { color: var(--btn-fg); }
:where(html[data-theme="dark"]) .nf-card { background: #1b1b1b; }
:where(html[data-theme="dark"]) .nf-card::before { background: #20252d; }
:where(html[data-theme="dark"]) .nf-card-head strong { color: var(--navy-fg); }
:where(html[data-theme="dark"]) .nf-code { color: var(--navy-fg); }
:where(html[data-theme="dark"]) .nf-card dl div { border-top: 1px solid #363a40; }
:where(html[data-theme="dark"]) .nf-stamp { color: #e3615a; }
:where(html[data-theme="dark"]) .users-table .acc-who strong { color: var(--navy-fg); }
:where(html[data-theme="dark"]) .tax-table .tax-name { border: 1px solid #474a4f; }
:where(html[data-theme="dark"]) .tax-tr summary { color: var(--btn-fg); }
:where(html[data-theme="dark"]) .tax-tr input { border: 1px solid #474a4f; }
:where(html[data-theme="dark"]) .tax-off td { background: #1f1f1f; }
:where(html[data-theme="dark"]) .tax-example-pick select { border: 1px solid #474a4f; background: #1b1b1b; }
:where(html[data-theme="dark"]) .tax-example-result b { color: var(--gold-dark, #c0a170); }
:where(html[data-theme="dark"]) .tax-example-result strong { color: var(--navy-fg); }
:where(html[data-theme="dark"]) .tax-example-pick input { border: 1px solid #474a4f; background: #1b1b1b; }
:where(html[data-theme="dark"]) .tax-nav button { background: #1b1b1b; }
:where(html[data-theme="dark"]) .tax-nav button:hover { border-color: #424956; background: #171c25; }
:where(html[data-theme="dark"]) .tax-nav button[aria-pressed="true"] { background: #19202b; }
:where(html[data-theme="dark"]) .tax-nav svg { background: #1d242e; color: var(--navy-fg); }
:where(html[data-theme="dark"]) .tax-nav strong { color: var(--navy-fg); }
:where(html[data-theme="dark"]) .adm-nav button.adm-group:hover { color: var(--btn-fg); }
:where(html[data-theme="dark"]) .sw-zone { background: repeating-linear-gradient(45deg, var(--zc) 0 3px, color-mix(in srgb, var(--zc) 14%, #1b1b1b) 3px 7px); }
:where(html[data-theme="dark"]) .sw-zone.plain { background: color-mix(in srgb, var(--zc) 45%, #1b1b1b); }
:where(html[data-theme="dark"]) .mz-svg > p { background: #1b1b1b; }
:where(html[data-theme="dark"]) .mz-ctrl button { background: #1b1b1b; color: var(--navy-fg); }
:where(html[data-theme="dark"]) .mz-hover { background: #1b1b1b; }
:where(html[data-theme="dark"]) .mz-hover strong { color: var(--navy-fg); }
:where(html[data-theme="dark"]) .mz-modes button[aria-selected=true] { background: #1b1b1b; color: var(--navy-fg); }
:where(html[data-theme="dark"]) .mz-layer { background: #1b1b1b; }
:where(html[data-theme="dark"]) .mz-layer.on .mz-layer-head { color: var(--btn-fg); }
:where(html[data-theme="dark"]) .mz-layer input[type=text] { border: 1px solid #474a4f; }
:where(html[data-theme="dark"]) .mz-row input[type=color] { border: 1px solid #474a4f; background: #1b1b1b; }
:where(html[data-theme="dark"]) .mz-chips button:hover { color: #e96464; }
:where(html[data-theme="dark"]) .mz-find input { border: 1px solid #474a4f; }
:where(html[data-theme="dark"]) .map-layer .sw-bld { background: #454b54; }
:where(html[data-theme="dark"]) .lf-card { background: #1b1b1b; }
:where(html[data-theme="dark"]) .lf-card h2 { color: var(--navy-fg); }
:where(html[data-theme="dark"]) .lf-card p { color: #c3c7cd; }
:where(html[data-theme="dark"]) .lf-adj strong { color: var(--navy-fg); }
:where(html[data-theme="dark"]) .lf-adj.up strong { color: #e3615a; }
:where(html[data-theme="dark"]) .lf-adj.down strong { color: #8be2aa; }
:where(html[data-theme="dark"]) .lf-art { color: var(--btn-fg); }
:where(html[data-theme="dark"]) .sa-ex > span { color: #8a909d; }
:where(html[data-theme="dark"]) .sa-ex li { background: #1b222f; color: var(--navy-fg); }
:where(html[data-theme="dark"]) .sa-other .sa-ex li { background: #1b1b1b; }
:where(html[data-theme="dark"]) .hq-card h2 small { color: #8a909d; }
:where(html[data-theme="dark"]) .hq-card h3 { color: #8a909d; }
:where(html[data-theme="dark"]) .hq-list a { background: color-mix(in srgb, var(--hq) 12%, #1b1b1b); border: 1px solid color-mix(in srgb, var(--hq) 30%, #363636); color: #cad4e1; }
:where(html[data-theme="dark"]) .hq-none { color: #a2acb9; }
:where(html[data-theme="dark"]) .tax-tr textarea { border: 1px solid #474a4f; }
:where(html[data-theme="dark"]) .co-card { background: #1b1b1b; }
:where(html[data-theme="dark"]) .co-head h3 { color: var(--navy-fg); }
:where(html[data-theme="dark"]) .co-head p { color: #a2acb9; }
:where(html[data-theme="dark"]) .co-due strong { color: var(--navy-fg); }
:where(html[data-theme="dark"]) .co-due.zero strong { color: #8be2aa; }
:where(html[data-theme="dark"]) .co-when { color: #a2acb9; }
:where(html[data-theme="dark"]) .co-alert { background: #361814; color: #ec847c; }
:where(html[data-theme="dark"]) .co-pay em { color: #eddd97; }
:where(html[data-theme="dark"]) .co-pay.late em { color: #e3615a; }
:where(html[data-theme="dark"]) .co-ok { background: #223329; color: #a3e1b7; }
:where(html[data-theme="dark"]) .co-lines .pos { color: #8be2aa; }
:where(html[data-theme="dark"]) .co-lines .neg { color: #e3615a; }
:where(html[data-theme="dark"]) .co-scale li { background: color-mix(in srgb, var(--gc) 14%, #1b1b1b); }
:where(html[data-theme="dark"]) .co-tip { color: #a2acb9; }
:where(html[data-theme="dark"]) .decl-reuse { background: #182131; border: 1px solid #323e53; }
:where(html[data-theme="dark"]) .decl-reuse button { color: var(--btn-fg); }
:where(html[data-theme="dark"]) .dir-tools { background: #1b1b1b; }
:where(html[data-theme="dark"]) .dir-q input { border: 1px solid #474a4f; }
:where(html[data-theme="dark"]) .dir-tools select { border: 1px solid #474a4f; background: #1b1b1b; }
:where(html[data-theme="dark"]) .dir-active input { accent-color: var(--navy-fg); }
:where(html[data-theme="dark"]) .dir-count { color: var(--navy-fg); }
:where(html[data-theme="dark"]) .dir-row { background: #1b1b1b; }
:where(html[data-theme="dark"]) .dir-row strong { color: var(--navy-fg); }
:where(html[data-theme="dark"]) .aplus-badge { background: linear-gradient(135deg, #c9a878, #63532b 55%, #c9a878); box-shadow: 0 1px 0 rgba(41, 41, 41, 0.5) inset, 0 1px 3px rgba(122,92,30,.35); }
:where(html[data-theme="dark"]) .dir-row.aplus, :where(html[data-theme="dark"]) .dir-list.bubbles .dir-row.aplus { background: linear-gradient(135deg, #5f4f28 0%, #44381a 45%, #34280f 70%, #efd59f 100%); }
:where(html[data-theme="dark"]) .dir-row.aplus strong { color: #eccf97; }
:where(html[data-theme="dark"]) .dir-row.aplus > span:not(.dir-state):not(.audit-flag) { color: #cfbc97; }
:where(html[data-theme="dark"]) .aplus-banner { color: #efd7a6; background: linear-gradient(135deg, #514322, #34280f 60%, #63532b); border: 1px solid #69593b; }
:where(html[data-theme="dark"]) .dir-view button[aria-pressed=true] { background: #1b1b1b; color: var(--navy-fg); }
:where(html[data-theme="dark"]) .dir-list.bubbles .dir-row { background: linear-gradient(180deg, #1b1b1b 0, #141d2c 100%); }
:where(html[data-theme="dark"]) .dir-state { background: #223329; color: #a3e1b7; }
:where(html[data-theme="dark"]) .dir-state.off { background: #24272c; color: #8a909d; }
:where(html[data-theme="dark"]) .dir-back { color: var(--btn-fg); }
:where(html[data-theme="dark"]) .dir-full { background: #1b1b1b; }
:where(html[data-theme="dark"]) .dir-full .co-head h2 { color: var(--navy-fg); }
:where(html[data-theme="dark"]) .dir-graph { background: #181e28; }
:where(html[data-theme="dark"]) .dir-graph-tools button { background: #1b1b1b; color: var(--navy-fg); }
:where(html[data-theme="dark"]) .dir-graph line { stroke: #444a55; }
:where(html[data-theme="dark"]) .dir-graph .n circle { stroke: #363636; }
:where(html[data-theme="dark"]) .dir-graph .n text { fill: #cad4e1; stroke: #2b3544; }
:where(html[data-theme="dark"]) .dir-graph .n-company circle { fill: #6492d8; }
:where(html[data-theme="dark"]) .dir-graph .n-person circle { fill: #97b6f0; }
:where(html[data-theme="dark"]) .dir-graph .n-sector circle { fill: #dbb847; }
:where(html[data-theme="dark"]) .dir-graph .n-city circle { fill: #7c899e; }
:where(html[data-theme="dark"]) .dir-graph .n-sector text, :where(html[data-theme="dark"]) .dir-graph .n-city text { fill: #a2acb9; }
:where(html[data-theme="dark"]) .dir-graph .center circle { fill: #97b6f0; }
:where(html[data-theme="dark"]) .map-cos li { background: #1b1b1b; }
:where(html[data-theme="dark"]) .map-cos li a strong { color: var(--navy-fg); }
:where(html[data-theme="dark"]) .map-cos li em { background: #223329; color: #a3e1b7; }
:where(html[data-theme="dark"]) .map-cos li em.off { background: #24272c; color: #8a909d; }
:where(html[data-theme="dark"]) .proc-kicker { color: var(--gold, #b79966); }
:where(html[data-theme="dark"]) .proc-lead { color: #c3c7cd; }
:where(html[data-theme="dark"]) .proc-law a { background: #182131; border: 1px solid #323e53; color: var(--navy-fg); }
:where(html[data-theme="dark"]) .proc-card { background: #1b1b1b; }
:where(html[data-theme="dark"]) .proc-card h3, :where(html[data-theme="dark"]) .proc-box h3 { color: var(--navy-fg); }
:where(html[data-theme="dark"]) .proc-steps > li { background: #1b1b1b; }
:where(html[data-theme="dark"]) .proc-box.warn { background: #2f1614; }
:where(html[data-theme="dark"]) .proc-box.warn h3 { color: #ec847c; }
:where(html[data-theme="dark"]) .proc-box blockquote { background: #1b1b1b; border: 1px dashed #444a55; color: #c3c7cd; }
:where(html[data-theme="dark"]) .tag.warn-tag { color: #ec847c; background: #361814; }
:where(html[data-theme="dark"]) .co-table .co-row:hover td, :where(html[data-theme="dark"]) .co-table .co-row:focus-visible td { background: #19202b; }
:where(html[data-theme="dark"]) .co-kpis > div { background: #1b1b1b; }
:where(html[data-theme="dark"]) .co-kpis strong { color: var(--navy-fg); }
:where(html[data-theme="dark"]) .co-kpis strong.pos { color: #8be2aa; }
:where(html[data-theme="dark"]) .co-kpis .neg, :where(html[data-theme="dark"]) .co-table .neg, :where(html[data-theme="dark"]) .co-detail-table .neg { color: #e3615a; }
:where(html[data-theme="dark"]) .status.s-classe { color: #adb2b9; background: #2a2d30; }
:where(html[data-theme="dark"]) .co-audit::before { background: #1b1b1b; box-shadow: 0 0 0 3px rgba(41, 41, 41, 0.3); }
:where(html[data-theme="dark"]) .co-timeline li::before { background: #444b55; border: 3px solid #363636; }
:where(html[data-theme="dark"]) .co-tl-msg { color: #c3c7cd; }
:where(html[data-theme="dark"]) .audit-flag::before { background: #1b1b1b; }
:where(html[data-theme="dark"]) .dir-full .audit-banner::before, :where(html[data-theme="dark"]) .co-card .audit-banner::before { background: #1b1b1b; }
:where(html[data-theme="dark"]) .co-mail li { background: #1b1b1b; }
:where(html[data-theme="dark"]) .co-mail .mail-msg { color: #c3c7cd; }
:where(html[data-theme="dark"]) .hub-card { background: #1b1b1b; }
:where(html[data-theme="dark"]) .hub-card h2 { color: var(--navy-fg); }
:where(html[data-theme="dark"]) .hub-card p { color: #c3c7cd; }
:where(html[data-theme="dark"]) .hub-card ul { color: #a2acb9; }
:where(html[data-theme="dark"]) .hub-order li span { color: #a2acb9; }
:where(html[data-theme="dark"]) .hub-more a { background: #1b1b1b; color: var(--navy-fg); }
:where(html[data-theme="dark"]) .rap-mine input { accent-color: var(--navy-fg); }
:where(html[data-theme="dark"]) .rap-doc { background: #1b1b1b; }
:where(html[data-theme="dark"]) .fmt-bar button { background: #1b1b1b; color: var(--navy-fg); }
:where(html[data-theme="dark"]) .co-remun-pick { background: #20252d; }
:where(html[data-theme="dark"]) .co-remun-pick button { color: var(--navy-fg); }
:where(html[data-theme="dark"]) .co-remun-pick button:not([aria-checked="true"]):not(:disabled):hover { background: #282e39; }
:where(html[data-theme="dark"]) .wiki-text h3 { color: var(--navy-fg); }
:where(html[data-theme="dark"]) .wiki-text h4 { color: var(--navy-fg); }
:where(html[data-theme="dark"]) .wiki-text blockquote { background: #19202b; }
:where(html[data-theme="dark"]) .wiki-text code { background: #21262c; }
:where(html[data-theme="dark"]) .wiki-table { background: #1b1b1b; }
:where(html[data-theme="dark"]) .wiki-table tbody tr:nth-child(even) td { background: #1a1f28; }
:where(html[data-theme="dark"]) .wiki-form input, :where(html[data-theme="dark"]) .wiki-form textarea { border: 1px solid #474a4f; background: #1b1b1b; }
:where(html[data-theme="dark"]) .dc-avatar { background: #171a3b; }
:where(html[data-theme="dark"]) #is-form .is-pct input { border: 1px solid #474a4f; }
:where(html[data-theme="dark"]) .tag.vat-tag { color: #a3e3b0; background: #233727; }
:where(html[data-theme="dark"]) .tag.vat-tag { color: #a3e3b0; background: #233727; }
:where(html[data-theme="dark"]) .biz-card { background: #1b1b1b; }
:where(html[data-theme="dark"]) .suspend-page { background: linear-gradient(#1a1d26, #1b1b1b); }
:where(html[data-theme="dark"]) .suspend-card { background: #1b1b1b; }
:where(html[data-theme="dark"]) .md-item { border-left: 4px solid #444a55; background: #1b1b1b; }
:where(html[data-theme="dark"]) .md-item header strong { color: var(--navy-fg); }
:where(html[data-theme="dark"]) .md-reason { color: #c3c7cd; }
:where(html[data-theme="dark"]) .hub-more p { color: #c3c7cd; }
:where(html[data-theme="dark"]) .adm-panel .sub-h { color: var(--navy-fg); }
:where(html[data-theme="dark"]) .sub-types li { background: #1b1b1b; }
:where(html[data-theme="dark"]) .ch-item, :where(html[data-theme="dark"]) .ch-article { background: #1b1b1b; }
:where(html[data-theme="dark"]) .ch-ref, :where(html[data-theme="dark"]) .ch-article h3 a { color: var(--navy-fg); }
:where(html[data-theme="dark"]) .ch-kind { background: #182131; color: var(--navy-fg); }
:where(html[data-theme="dark"]) .ch-modification { background: #3d2f15; color: #eecc8b; }
:where(html[data-theme="dark"]) .ch-abrogation { background: #371b18; color: #e67769; }
:where(html[data-theme="dark"]) .ch-vigueur { background: #223427; color: #98e2ad; }
:where(html[data-theme="dark"]) .ch-body del, :where(html[data-theme="dark"]) .ch-legend del { background: #3e1d19; color: #ec847a; }
:where(html[data-theme="dark"]) .ch-body ins, :where(html[data-theme="dark"]) .ch-legend ins { background: #233a29; color: #a6ebbc; }
:where(html[data-theme="dark"]) .ch-versions li { background: #171c25; }
:where(html[data-theme="dark"]) .ch-versions li.ch-current { background: #1b1b1b; border-color: #445549; }
:where(html[data-theme="dark"]) .emp-card { background: #1b1b1b; }
:where(html[data-theme="dark"]) .emp-card:hover { border-color: #3e4757; }
:where(html[data-theme="dark"]) .emp-card strong { color: var(--navy-fg); }
:where(html[data-theme="dark"]) .emp-card .emp-doc { background: #233026; color: #98e3b4; }
:where(html[data-theme="dark"]) .emp-avatar { box-shadow: 0 0 0 3px #292929, 0 0 0 4px var(--gold); }
:where(html[data-theme="dark"]) .emp-card.emp-empty { border: 2px dashed #39424f; background: #151d28; }
:where(html[data-theme="dark"]) .emp-card.emp-empty .emp-avatar { background: #1d242e; }
:where(html[data-theme="dark"]) .emp-card.emp-empty strong { color: #79879e; }
:where(html[data-theme="dark"]) .emp-card.emp-empty:hover { background: #161f2f; }
:where(html[data-theme="dark"]) .emp-card.emp-empty:hover .emp-avatar { color: var(--btn-fg); }
:where(html[data-theme="dark"]) .emp-card .emp-nodoc { background: #21242a; color: #79879e; }
:where(html[data-theme="dark"]) .emp-type { background: #20252d; color: #92a1ba; }
:where(html[data-theme="dark"]) .emp-type.t-cdi { background: #182438; color: #709ce2; }
:where(html[data-theme="dark"]) .emp-type.t-cdd { background: #3d3019; color: #edc07e; }
:where(html[data-theme="dark"]) .emp-type.t-benevole { background: #261c33; color: #9579c7; }
:where(html[data-theme="dark"]) .emp-types div { background: #20252d; }
:where(html[data-theme="dark"]) .emp-types label { color: #92a1ba; }
:where(html[data-theme="dark"]) .emp-types label:hover { background: #242b37; color: var(--navy-fg); }
:where(html[data-theme="dark"]) .emp-types label span::before { border: 2px solid #49505c; background: #1b1b1b; }
:where(html[data-theme="dark"]) .emp-types label:has(input:checked) span::before { border-color: #363636; }
:where(html[data-theme="dark"]) #emp-form .certify { background: #151d28; }
:where(html[data-theme="dark"]) #emp-form .certify:has(input:checked) { background: #1e2e22; }
:where(html[data-theme="dark"]) #emp-form .certify input { border: 2px solid #49505c; background: #1b1b1b; }
:where(html[data-theme="dark"]) #emp-form .certify input::after { border: solid #363636; }
:where(html[data-theme="dark"]) #emp-form input:not([type=checkbox]):not([type=file]) { border: 1px solid #474a4f; background: #1b1b1b; }
:where(html[data-theme="dark"]) .acc-ent-note { background: #1d242e; color: #bac8e2; }
:where(html[data-theme="dark"]) .law-card { border: 1px solid #363d49; background: #1b1b1b; }
:where(html[data-theme="dark"]) .law-card .law-st { color: #92a1ba; }
:where(html[data-theme="dark"]) .law-card.st-pending { background: #33250f; }
:where(html[data-theme="dark"]) .law-card.st-accepted .law-st { color: #91deb6; }
:where(html[data-theme="dark"]) .law-card.st-refused .law-st, :where(html[data-theme="dark"]) .law-card.st-revoked .law-st { color: #d47369; }
:where(html[data-theme="dark"]) .ent-for { background: #33250f; }
:where(html[data-theme="dark"]) .emp-card .emp-firm { color: #ceb07f; }
:where(html[data-theme="dark"]) #ent-form select:disabled { background: #21242a; color: #92a1ba; }
:where(html[data-theme="dark"]) .law-letter { color: var(--navy-fg); }
:where(html[data-theme="dark"]) .decl-co-card { border: 1px solid #363d49; background: #1a1f28; }
:where(html[data-theme="dark"]) .decl-co-h { color: #92a1ba; }
:where(html[data-theme="dark"]) .decl-co-card dt { color: #79879e; }
:where(html[data-theme="dark"]) .decl-co-card dd { color: #bac8e2; }
:where(html[data-theme="dark"]) .decl-co-note { color: #939bab; }
:where(html[data-theme="dark"]) .don-src { border: 1px solid #534936; background: #33250f; }
:where(html[data-theme="dark"]) .don-src-h { color: #bac8e2; }
:where(html[data-theme="dark"]) .don-kinds { border: 1px solid #534a39; background: #1b1b1b; }
:where(html[data-theme="dark"]) .don-kinds span { color: #92a1ba; }
:where(html[data-theme="dark"]) .tag.dl-impot { background: #1c2636; color: #709ce2; }
:where(html[data-theme="dark"]) .tag.dl-comptabilite { background: #25311f; color: #9ed799; }
:where(html[data-theme="dark"]) .tag.dl-tva { background: #3a2c18; color: #ceb07f; }
:where(html[data-theme="dark"]) .ie-block h4 { border-bottom: 2px solid #2b384d; }
:where(html[data-theme="dark"]) #ag-form input, :where(html[data-theme="dark"]) #ag-form select, :where(html[data-theme="dark"]) #ie-form input:not([type=radio]) { border: 1px solid #474a4f; background: #1b1b1b; }
:where(html[data-theme="dark"]) .ag-card { background: linear-gradient(180deg, #171d29 0%, #1b1b1b 140px); }
:where(html[data-theme="dark"]) .ag-kicker { color: #b79966; }
:where(html[data-theme="dark"]) .ag-stat { background: #1b1b1b; }
:where(html[data-theme="dark"]) .ag-stat strong { color: var(--navy-fg); }
:where(html[data-theme="dark"]) .ag-stat.ag-admin strong { color: #df786f; }
:where(html[data-theme="dark"]) .ag-stat.ag-staff strong { color: #92a1ba; }
:where(html[data-theme="dark"]) .ag-item { background: #1b1b1b; }
:where(html[data-theme="dark"]) .ag-dot { border: 2.5px solid #363636; background: #434a56; }
:where(html[data-theme="dark"]) .ag-grade { color: #b79966; }
:where(html[data-theme="dark"]) .ag-id h4 { color: #bac8e2; }
:where(html[data-theme="dark"]) .ag-pill { background: #1c2636; color: #709ce2; }
:where(html[data-theme="dark"]) .ag-admin .ag-pill { background: #371b18; color: #df786f; }
:where(html[data-theme="dark"]) .ag-staff .ag-pill { background: #21242a; color: #92a1ba; }
:where(html[data-theme="dark"]) .ag-facts { border-top: 1px solid #323844; }
:where(html[data-theme="dark"]) .ag-facts dd { color: #bac8e2; }
:where(html[data-theme="dark"]) .ag-seen.on { color: #91deb6; }
:where(html[data-theme="dark"]) .ag-add { border: 2px dashed #3c4453; background: #151d28; color: #709ce2; }
:where(html[data-theme="dark"]) .ag-add:hover, :where(html[data-theme="dark"]) .ag-add:focus-visible { background: #182131; }
:where(html[data-theme="dark"]) .ag-plus { background: #1c2636; }
:where(html[data-theme="dark"]) .toc .toc-cat > span { color: #b79966; }
:where(html[data-theme="dark"]) .toc .toc-cat ol { border-left: 2px solid #534936; }
:where(html[data-theme="dark"]) .ent-cat { color: #b79966; }
:where(html[data-theme="dark"]) .lf-person-morale { background: #1c2636; color: var(--navy-fg); }
:where(html[data-theme="dark"]) .lf-person-physique { background: #3b311f; color: #e4c68b; }
:where(html[data-theme="dark"]) .lf-legend { background: #1c1f25; }
:where(html[data-theme="dark"]) .lf-legend p { color: #c3c7cd; }
:where(html[data-theme="dark"]) .dls-kicker { color: var(--muted, #979eab); }
:where(html[data-theme="dark"]) .dls-total { background: #19202b; }
:where(html[data-theme="dark"]) .dls-total strong { color: var(--navy-fg); }
:where(html[data-theme="dark"]) .dls-total small { color: #979eab; }
:where(html[data-theme="dark"]) .law-num { color: var(--navy-fg); }
:where(html[data-theme="dark"]) .news-views { color: var(--navy-fg); }
:where(html[data-theme="dark"]) .btn-danger-outline { color: #e3615a; }
:where(html[data-theme="dark"]) .btn-danger-outline:hover { background: #341414; }
:where(html[data-theme="dark"]) .dl-row-acts .neg { color: #e3615a; }
:where(html[data-theme="dark"]) .ob-card { border: 1px solid #393e47; background: #1b1b1b; }
:where(html[data-theme="dark"]) .ob-embed { background: #1f2127; }
:where(html[data-theme="dark"]) .ob-quote { border-left: 3px solid #494d54; }
:where(html[data-theme="dark"]) .gd-road a { background: #1b1b1b; }
:where(html[data-theme="dark"]) .gd-road .gd-ico { color: var(--navy-fg); }
:where(html[data-theme="dark"]) .gd-road strong { color: var(--navy-fg); }
:where(html[data-theme="dark"]) .gd-toc-h { color: var(--navy-fg); }
:where(html[data-theme="dark"]) .gd-toc a { color: #caced4; }
:where(html[data-theme="dark"]) .gd-toc a:hover { color: var(--navy-fg); }
:where(html[data-theme="dark"]) .gd-step { background: #1b1b1b; }
:where(html[data-theme="dark"]) .gd-num { color: #c9ab7f; }
:where(html[data-theme="dark"]) .gd-step p { color: #caced4; }
:where(html[data-theme="dark"]) .gd-fields li { background: #1a1e23; }
:where(html[data-theme="dark"]) .gd-field-h { color: var(--navy-fg); }
:where(html[data-theme="dark"]) .gd-badge.req { background: #381414; color: #eb7070; }
:where(html[data-theme="dark"]) .gd-badge.opt { background: #182536; color: #709fe4; }
:where(html[data-theme="dark"]) .gd-call.warn { border: 1px solid #593333; background: #2e1414; }
:where(html[data-theme="dark"]) .gd-call.warn .gd-ico, :where(html[data-theme="dark"]) .gd-call.warn .gd-call-h { color: #e96464; }
:where(html[data-theme="dark"]) .gd-call.tip { border: 1px solid #354154; background: #16202e; }
:where(html[data-theme="dark"]) .gd-call.tip .gd-ico, :where(html[data-theme="dark"]) .gd-call.tip .gd-call-h { color: var(--navy-fg); }
:where(html[data-theme="dark"]) .gd-ex.bad { background: #2e1414; border: 1px solid #593333; }
:where(html[data-theme="dark"]) .gd-ex.bad .gd-ico, :where(html[data-theme="dark"]) .gd-ex.bad strong { color: #e96464; }
:where(html[data-theme="dark"]) .gd-ex.good { background: #1d2d21; border: 1px solid #3e5745; }
:where(html[data-theme="dark"]) .gd-ex.good .gd-ico, :where(html[data-theme="dark"]) .gd-ex.good strong { color: #8be2aa; }
:where(html[data-theme="dark"]) .gd-cat { background: #1a1e23; }
:where(html[data-theme="dark"]) .gd-cat-ico { background: #1b1b1b; color: var(--navy-fg); box-shadow: inset 0 0 0 1px #302b21; }
:where(html[data-theme="dark"]) .gd-cat dt { color: var(--navy-fg); }
:where(html[data-theme="dark"]) .gd-cat dd { color: #caced4; }
:where(html[data-theme="dark"]) .gd-chip { background: #16202e; border: 1px solid #354154; color: var(--navy-fg); }
:where(html[data-theme="dark"]) .gd-op { color: #c9ab7f; }
:where(html[data-theme="dark"]) .gd-check li { background: #1d2d21; }
:where(html[data-theme="dark"]) .gd-check .gd-ico { color: #8be2aa; }
/* Retouches du mode sombre (recopiées par tools/dark/gen.py à la fin du bloc généré) */
html[data-theme="dark"] {
  color-scheme: dark;
  --ink: #e4e7ec; --muted: #a7afba; --line: #323944; --bg: #12151a; --tint: #191d24;
  --navy-fg: #a9c2ef; --navy-dark-fg: #9db7e6; --blue-fg: #8fb0ea; --btn-fg: #8fb3f0; --btn-hover-fg: #b6cef7; --amber-dark-fg: #f0c869;
  --ink-bg: #262b33; --muted-bg: #3b414b;
}
html[data-theme="dark"] .photo-hero-img { filter: brightness(.8); }
html[data-theme="dark"] img:not([src$=".svg"]):not(.photo-hero-img) { filter: brightness(.92); }
/* Passage d'un thème à l'autre : fondu bref des couleurs */
html.theme-switching *, html.theme-switching *::before, html.theme-switching *::after { transition: background-color .3s, color .3s, border-color .3s !important; }
/* Icônes dessinées dans les pages (attributs fill/stroke, que le générateur ne voit pas) : fonds pâles assombris,
   traits bleu marine éclaircis. La carte et les drapeaux gardent leurs couleurs. */
html[data-theme="dark"] svg:not(.map-svg) [fill="#e6edf8"] { fill: #1d2a42; }
html[data-theme="dark"] svg:not(.map-svg) [fill="#fdf3e3"] { fill: #3a2f1c; }
html[data-theme="dark"] svg:not(.map-svg) [stroke="#1f4e99"] { stroke: #86a9e6; }
html[data-theme="dark"] svg:not(.map-svg) [fill="#1f4e99"] { fill: #4f7fd0; }
html[data-theme="dark"] svg:not(.map-svg) [stroke="#0f2f6b"] { stroke: #a9c2ef; }
html[data-theme="dark"] svg:not(.map-svg) [fill="#0f2f6b"] { fill: #8fb0ea; }
/* Bandeau jaune « site fictif » : un ton moins éblouissant sur fond sombre */
html[data-theme="dark"] .rp-ticker { background: #d4a21f; border-top-color: #b8890f; }
/* Cartes (publique et admin) : version sombre par inversion des clartés (mêmes teintes), légende accordée */
html[data-theme="dark"] :is(.map-box, .mz-map, .map-legend .sw) { filter: invert(.9) hue-rotate(180deg) saturate(.85) brightness(1.05); }
/* Surlignage (recherche, éditeur d'actualités, Code) */
html[data-theme="dark"] mark { background: #5a4a14; color: inherit; }
/* Échelle des notes (Mon compte) : lettres éclaircies dans leur couleur, la note atteinte reste pleine */
html[data-theme="dark"] .co-scale li { color: color-mix(in srgb, var(--gc) 45%, #fff); }
html[data-theme="dark"] .co-scale li.g-ap { color: #e8cf9c; }
html[data-theme="dark"] .co-scale li.on { color: #fff; }
html[data-theme="dark"] .co-scale li.on.g-ap { color: #3b2a07; }
/* ==== FIN DU MODE SOMBRE ==== */
