/* SIGMVP-PCT — thème « barre latérale rouge » aligné sur l'emblème du Parti */
:root {
  --brand: #b3171c;          /* rouge de la barre latérale */
  --brand-dark: #8f1216;
  --brand-ink: #a3151a;      /* rouge pour texte et liens sur fond clair */
  --brand-soft: #fdecec;
  --gold: #d6b43c;
  --amber: #b7791f;
  --amber-soft: #fef3c7;
  --amber-ink: #92400e;
  --green: #2f6f3e;
  --green-soft: #e3f3e6;
  --danger: #b91c1c;
  --danger-soft: #fee2e2;
  --ink: #111827;
  --ink-2: #374151;
  --muted: #6b7280;
  --bg: #f4f5f7;
  --card: #ffffff;
  --card-2: #f3f4f6;
  --line: #e5e7eb;
  --field: #ffffff;
  --field-line: #d1d5db;
  --shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 1px 3px rgba(16, 24, 40, .05);
  --radius: 12px;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --side-w: 264px;
  color-scheme: light;
  font-size: 16px;
}
:root[data-theme="dark"] {
  --brand: #8f1418; --brand-dark: #6e0f12; --brand-ink: #f08a8a; --brand-soft: #3a1416;
  --amber: #d69e2e; --amber-soft: #3b2a10; --amber-ink: #f6c56b;
  --green: #7cc48b; --green-soft: #183223; --danger: #f87171; --danger-soft: #3d1717;
  --ink: #f3f4f6; --ink-2: #d1d5db; --muted: #9ca3af; --bg: #111317; --card: #1b1e24; --card-2: #23272e;
  --line: #2e333b; --field: #15181d; --field-line: #3a4049; --shadow: 0 1px 2px rgba(0, 0, 0, .4);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --brand: #8f1418; --brand-dark: #6e0f12; --brand-ink: #f08a8a; --brand-soft: #3a1416;
    --amber: #d69e2e; --amber-soft: #3b2a10; --amber-ink: #f6c56b;
    --green: #7cc48b; --green-soft: #183223; --danger: #f87171; --danger-soft: #3d1717;
    --ink: #f3f4f6; --ink-2: #d1d5db; --muted: #9ca3af; --bg: #111317; --card: #1b1e24; --card-2: #23272e;
    --line: #2e333b; --field: #15181d; --field-line: #3a4049; --shadow: 0 1px 2px rgba(0, 0, 0, .4);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: var(--brand-ink); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 2px; }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: 1.6rem; font-weight: 700; }
h2 { font-size: 1.05rem; font-weight: 700; margin-top: 1.2em; }
.card > h2:first-child { margin-top: 0; }
p { margin: 0 0 .8em; }
small, .small { font-size: .85rem; }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); letter-spacing: .01em; }
.big { font-size: 1.05rem; }
.prewrap { white-space: pre-wrap; }
.doc { max-width: 75ch; font-size: 1.02rem; line-height: 1.7; }
.nowrap { white-space: nowrap; }
.icon { width: 20px; height: 20px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Ossature : barre latérale + contenu ---------- */
.app { display: grid; grid-template-columns: var(--side-w) 1fr; min-height: 100vh; }
.sidebar { position: sticky; top: 0; height: 100vh; background: var(--brand); color: #fff; display: flex; flex-direction: column; overflow-y: auto; }
.side-brand { display: flex; align-items: center; gap: .7rem; padding: 1.1rem 1.1rem 1rem; border-bottom: 1px solid rgba(255, 255, 255, .14); }
.side-brand a { display: flex; align-items: center; gap: .7rem; color: #fff; text-decoration: none; min-width: 0; }
.side-brand img { width: 40px; height: 40px; border-radius: 50%; box-shadow: 0 0 0 2px rgba(255, 255, 255, .85); flex: none; }
.side-brand strong { display: block; font-size: 1rem; letter-spacing: .02em; }
.side-brand small { display: block; font-size: .8rem; opacity: .85; white-space: nowrap; }
.theme-toggle { margin-left: auto; background: transparent; border: 0; color: #fff; padding: .35rem; border-radius: 8px; cursor: pointer; display: inline-flex; }
.theme-toggle:hover { background: rgba(255, 255, 255, .12); }
.side-nav { padding: .7rem .75rem 1rem; flex: 1; }
.side-section { font-size: .78rem; opacity: .8; padding: .9rem .6rem .35rem; }
.side-nav a { display: flex; align-items: center; gap: .75rem; padding: .55rem .7rem; border-radius: 8px; color: #fff; font-weight: 500; font-size: .97rem; text-decoration: none; }
.side-nav a:hover { background: rgba(255, 255, 255, .12); text-decoration: none; }
.side-nav a[aria-current="page"] { background: #fff; color: var(--brand); box-shadow: 0 1px 3px rgba(0, 0, 0, .15); }
:root[data-theme="dark"] .side-nav a[aria-current="page"] { background: rgba(255, 255, 255, .92); color: #8f1418; }
.side-nav .count { margin-left: auto; background: rgba(255, 255, 255, .22); border-radius: 999px; padding: 0 .5rem; font-size: .75rem; }
.side-nav a[aria-current="page"] .count { background: var(--brand-soft); }
.side-user { margin: .75rem; padding: .7rem .8rem; background: var(--brand-dark); border-radius: 10px; display: flex; align-items: center; gap: .7rem; }
.side-user .who { min-width: 0; flex: 1; line-height: 1.25; }
.side-user .who strong { display: block; font-size: .92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-user .who small { opacity: .85; font-size: .78rem; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-user button { background: transparent; border: 0; color: #fff; cursor: pointer; padding: .3rem; border-radius: 6px; display: inline-flex; }
.side-user button:hover { background: rgba(255, 255, 255, .14); }
.avatar { width: 38px; height: 38px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: .82rem; font-weight: 600; background: var(--card-2); color: var(--ink-2); flex: none; }
.side-user .avatar { background: #fff; color: var(--ink); }

.main { min-width: 0; display: flex; flex-direction: column; }
.page { width: 100%; max-width: 1180px; padding: 1.75rem 2rem 3rem; flex: 1; }
.foot { max-width: 1180px; padding: 1rem 2rem 2rem; color: var(--muted); font-size: .78rem; }
.env { display: inline-block; margin-left: .6rem; padding: 0 .5rem; background: var(--amber-soft); color: var(--amber-ink); border-radius: 999px; }
.mobilebar { display: none; }
.scrim { display: none; }

/* ---------- En-têtes de page ---------- */
.greet { color: var(--muted); font-size: .92rem; margin: 0 0 .1rem; }
.pagehead { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.25rem; }
.pagehead p { max-width: 75ch; color: var(--muted); }
.pagehead .muted { color: var(--muted); }
.subhead { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin: .2rem 0 1.4rem; color: var(--muted); font-size: 1.02rem; }
.scope-select { display: flex; align-items: center; gap: .6rem; font-size: .9rem; color: var(--muted); }
.scope-select select { min-width: 15rem; font-weight: 500; color: var(--ink); }
.actions, .actionbar { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.actionbar { margin: 0 0 1rem; }
.crumbs { font-size: .85rem; color: var(--muted); margin-bottom: .5rem; }

/* ---------- Cartes ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.15rem 1.25rem; margin-bottom: 1.25rem; box-shadow: var(--shadow); }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1.25rem; }
.grid2 > .card { margin-bottom: 0; }
.grid2 + .card, .grid2 + .grid2 { margin-top: 1.25rem; }
.split { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(280px, 1fr); gap: 1.25rem; align-items: start; }

/* Cartes indicateurs : la bordure ambre signale ce qui demande une action */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.05rem 1.15rem; box-shadow: var(--shadow); min-height: 9.5rem; }
.stat.base { background: var(--card-2); }
.stat.attn { border-left: 3px solid var(--amber); }
.stat .lbl { font-size: .9rem; color: var(--ink-2); }
.stat .val { font-size: 1.85rem; font-weight: 700; line-height: 1.2; margin: .15rem 0 .5rem; letter-spacing: -.02em; }
.stat .sub { font-size: .85rem; color: var(--muted); }
.stat a { color: inherit; }

/* Ancienne grille d'indicateurs (autres écrans) */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1rem; margin-bottom: 1.25rem; }
.kpi { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: .9rem 1rem; display: flex; flex-direction: column; box-shadow: var(--shadow); }
.kpi-n { font-size: 1.5rem; font-weight: 700; line-height: 1.2; }
.kpi-l { color: var(--muted); font-size: .85rem; }
.kpi.warn { border-left: 3px solid var(--amber); }
.bignum { font-size: 1.9rem; font-weight: 700; margin: 0; }
.bignum small { font-size: .85rem; font-weight: 400; color: var(--muted); }

/* Listes en cartes (À traiter, Dernières adhésions, Raccourcis) */
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 1.25rem; overflow: hidden; }
.panel > h2 { margin: 0; padding: 1rem 1.25rem; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
.panel .empty { padding: 1rem 1.25rem; color: var(--muted); margin: 0; }
.rows { list-style: none; margin: 0; padding: 0; }
.rows li + li { border-top: 1px solid var(--line); }
.row-link { display: flex; align-items: center; gap: .9rem; padding: .9rem 1.25rem; color: var(--ink); text-decoration: none; }
.row-link:hover { background: var(--card-2); text-decoration: none; }
.row-ico { width: 36px; height: 36px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; background: var(--amber-soft); color: var(--amber); flex: none; }
.row-ico.neutral { background: var(--card-2); color: var(--ink-2); }
.row-body { flex: 1; min-width: 0; }
.row-body strong { display: block; font-weight: 600; }
.row-body small { color: var(--muted); display: block; }
.row-link .chev { color: var(--muted); }

/* Pastilles */
.badge-dot { display: inline-flex; align-items: center; gap: .35rem; padding: .12rem .6rem; border-radius: 999px; font-size: .78rem; font-weight: 500; white-space: nowrap; }
.badge-dot::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge-alert { background: var(--danger-soft); color: var(--danger); }
.badge-wait { background: var(--amber-soft); color: var(--amber-ink); }
.badge-ok { background: var(--green-soft); color: var(--green); }
.tag { display: inline-block; font-size: .72rem; padding: .05rem .45rem; border-radius: 6px; color: var(--muted); background: var(--card-2); vertical-align: middle; }
.tag.big { font-size: .82rem; }
.pill { display: inline-block; font-size: .76rem; font-weight: 500; padding: .1rem .55rem; border-radius: 999px; background: var(--card-2); color: var(--ink-2); white-space: nowrap; }
.pill-a_jour { background: var(--green-soft); color: var(--green); }
.pill-en_retard, .pill-warn { background: var(--amber-soft); color: var(--amber-ink); }
.pill-defaillant { background: var(--danger-soft); color: var(--danger); }
.rg { display: inline-block; font-family: var(--mono); font-size: .7rem; padding: 0 .4rem; border-radius: 4px; background: var(--ink); color: var(--card); }
.state { font-size: .86rem; }
.state-ratifiee { color: var(--green); font-weight: 600; }
.state-rejetee { color: var(--danger); font-weight: 600; }
.badge { display: inline-block; margin-left: .3rem; min-width: 1.3rem; padding: 0 .4rem; border-radius: 999px; background: var(--brand); color: #fff; font-size: .72rem; text-align: center; }

.todo { display: flex; flex-direction: column; gap: .5rem; margin-bottom: 1.25rem; }
.todo-item { display: block; padding: .75rem 1rem; background: var(--amber-soft); border-left: 3px solid var(--amber); border-radius: 8px; color: var(--ink); }

/* ---------- Tableaux ---------- */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.table th { text-align: left; font-weight: 600; color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .03em; border-bottom: 1px solid var(--line); padding: .6rem .6rem; }
.table td { border-bottom: 1px solid var(--line); padding: .65rem .6rem; vertical-align: top; }
.table.compact td { padding: .4rem .5rem; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: var(--card-2); }
.num { text-align: right; white-space: nowrap; }
.row-warn td { background: var(--amber-soft); }
.row-new td { background: var(--brand-soft); }
.card.table-wrap { padding: .3rem .7rem; }

.steps { list-style: none; display: flex; margin: 0 0 1rem; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--card); box-shadow: var(--shadow); }
.steps li { flex: 1; padding: .6rem .6rem; font-size: .85rem; text-align: center; color: var(--muted); border-right: 1px solid var(--line); }
.steps li:last-child { border-right: 0; }
.steps li.done { background: var(--green-soft); color: var(--green); }
.steps li.current { background: var(--brand); color: #fff; font-weight: 600; }
.steps li.rejected { background: var(--danger-soft); color: var(--danger); }

.tree { list-style: none; margin: 0; padding: 0; }
.tree li { padding: .4rem 0; border-bottom: 1px solid var(--line); }
.tree li:last-child { border-bottom: 0; }
.d0 { padding-left: 0 !important; } .d1 { padding-left: 1.4rem !important; } .d2 { padding-left: 2.8rem !important; }
.d3 { padding-left: 4.2rem !important; } .d4 { padding-left: 5.6rem !important; } .d5 { padding-left: 7rem !important; } .d6 { padding-left: 8.4rem !important; }
.tree .lvl-national > a, .tree .lvl-federation > a { font-weight: 600; }

.dl { display: grid; grid-template-columns: max-content 1fr; gap: .35rem 1rem; margin: 0 0 1rem; }
.dl dt { color: var(--muted); font-size: .9rem; }
.dl dd { margin: 0; }
.plain { list-style: none; margin: 0 0 .5rem; padding: 0; }
.plain li { padding: .45rem 0; border-bottom: 1px solid var(--line); }
.plain li:last-child { border-bottom: 0; }
.alerts { list-style: none; padding: 0; margin: 0 0 1rem; }
.alerts li { padding: .45rem 0; border-bottom: 1px solid var(--line); font-size: .92rem; }
.timeline { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--line); }
.timeline li { padding: .3rem 0 .7rem 1rem; position: relative; }
.timeline li::before { content: ""; position: absolute; left: -6px; top: .65rem; width: 10px; height: 10px; border-radius: 50%; background: var(--card); border: 2px solid var(--brand); }
.timeline time { color: var(--muted); font-size: .85rem; margin-right: .3rem; }
.notifs { list-style: none; padding: 0; margin: 0; }
.notifs li { padding: .7rem 0; border-bottom: 1px solid var(--line); }
.notifs li.unread { border-left: 3px solid var(--brand); padding-left: .8rem; }
.notifs time { color: var(--muted); font-size: .8rem; display: block; }

/* ---------- Formulaires ---------- */
.form { display: flex; flex-direction: column; gap: .85rem; }
.form.narrow { max-width: 460px; }
.grid-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: .95rem 1.1rem; }
.grid-form .full { grid-column: 1 / -1; }
label { display: flex; flex-direction: column; gap: .3rem; font-size: .88rem; font-weight: 500; color: var(--ink-2); }
label small { font-weight: 400; color: var(--muted); }
label.check { flex-direction: row; align-items: center; gap: .45rem; font-weight: 400; }
input, select, textarea { font: inherit; font-size: .97rem; padding: .55rem .75rem; border: 1px solid var(--field-line); border-radius: 8px; background: var(--field); color: var(--ink); min-height: 2.6rem; }
textarea { min-height: auto; resize: vertical; }
input:focus, select:focus, textarea:focus, button:focus-visible, a:focus-visible { outline: 3px solid rgba(179, 23, 28, .25); outline-offset: 1px; border-color: var(--brand); }
input[type="checkbox"] { min-height: auto; width: 1.05rem; height: 1.05rem; accent-color: var(--brand); }
.inline-form { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.inline-form input, .inline-form select { min-height: 2.2rem; padding: .3rem .55rem; font-size: .9rem; }
.w-xs { width: 4.5rem; } .w-s { width: 9rem; }
.inline { display: inline; }
.filters { display: flex; flex-wrap: wrap; gap: .5rem; align-items: flex-end; margin-bottom: 1rem; }
.filters input, .filters select { min-width: 11rem; }
details summary { cursor: pointer; }
.inline-details { display: inline-block; vertical-align: top; }
.inline-details[open] { display: block; margin-top: .4rem; padding: .8rem; background: var(--card-2); border-radius: 8px; }
.inline-details summary { list-style: none; }
.inline-details summary::-webkit-details-marker { display: none; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; padding: .5rem 1rem; min-height: 2.5rem; font: inherit; font-size: .93rem; font-weight: 500; border: 1px solid var(--field-line); border-radius: 8px; background: var(--card); color: var(--ink); text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--card-2); text-decoration: none; color: var(--ink); }
.btn-primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); color: #fff; }
.btn-danger { color: var(--danger); border-color: var(--danger); }
.btn-ghost { border-color: transparent; background: transparent; }
.btn-small { padding: .25rem .65rem; min-height: 2rem; font-size: .85rem; }
.linklike { background: none; border: 0; padding: 0; color: var(--brand-ink); cursor: pointer; font: inherit; }

.flash { padding: .75rem 1rem; border-radius: 8px; margin-bottom: 1rem; border-left: 3px solid; background: var(--card); color: var(--ink); }
.flash-success { border-color: var(--green); background: var(--green-soft); }
.flash-danger { border-color: var(--danger); background: var(--danger-soft); }
.flash-warning { border-color: var(--amber); background: var(--amber-soft); }
.flash-info { border-color: #3b82f6; background: rgba(59, 130, 246, .12); }

.pager { display: flex; gap: .3rem; margin-top: 1rem; }
.pager a { padding: .3rem .75rem; border: 1px solid var(--line); border-radius: 8px; background: var(--card); }
.pager a[aria-current="page"] { background: var(--brand); color: #fff; border-color: var(--brand); }

.error-page { max-width: 40rem; margin: 3rem auto; text-align: center; }
.error-code { font-size: 4rem; font-weight: 700; color: var(--brand-ink); margin: 0; }

.receipt { max-width: 34rem; margin: 0 auto; }
.receipt header { display: flex; align-items: center; gap: .8rem; padding-bottom: .8rem; margin-bottom: 1rem; border-bottom: 2px solid var(--brand); }
.receipt .right { margin-left: auto; text-align: right; }
.brand-logo { width: 44px; height: 44px; flex: none; display: block; border-radius: 50%; }
.receipt .brand-logo { width: 56px; height: 56px; }

/* ---------- Connexion ---------- */
body.guest { background: var(--bg); }
.guest-wrap { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; }
.guest-side { background: var(--brand); color: #fff; padding: 3rem; display: flex; flex-direction: column; justify-content: flex-end; }
.guest-side h1 { font-size: clamp(2.1rem, 4.5vw, 3.3rem); color: #fff; margin: 1.5rem 0 1rem; letter-spacing: -.02em; }
.guest-side p { max-width: 40ch; opacity: .92; }
.guest-side .small { opacity: .75; margin-top: 1rem; }
.brand-logo.big { width: 112px; height: 112px; box-shadow: 0 0 0 4px rgba(255, 255, 255, .9), 0 10px 30px rgba(0, 0, 0, .25); }
.guest-form { padding: 3rem; display: flex; flex-direction: column; justify-content: center; max-width: 30rem; width: 100%; }

/* ---------- Mobile ---------- */
@media (max-width: 900px) {
  .app { grid-template-columns: 1fr; }
  .mobilebar { display: flex; align-items: center; gap: .7rem; position: sticky; top: 0; z-index: 20; padding: .65rem 1rem; background: var(--brand); color: #fff; }
  .mobilebar img { width: 34px; height: 34px; border-radius: 50%; box-shadow: 0 0 0 2px rgba(255, 255, 255, .85); }
  .mobilebar strong { flex: 1; }
  .mobilebar button { background: rgba(255, 255, 255, .15); color: #fff; border: 0; border-radius: 8px; padding: .45rem .8rem; font: inherit; cursor: pointer; }
  .sidebar { position: fixed; z-index: 30; inset: 0 auto 0 0; width: min(86vw, 300px); transform: translateX(-100%); transition: transform .2s ease; box-shadow: 0 0 40px rgba(0, 0, 0, .35); }
  .sidebar.open { transform: none; }
  .scrim { display: none; position: fixed; inset: 0; z-index: 25; background: rgba(0, 0, 0, .4); }
  .scrim.on { display: block; }
  .page { padding: 1.1rem .9rem 2rem; }
  .foot { padding: 1rem .9rem 2rem; }
  .split { grid-template-columns: 1fr; }
  .steps { flex-direction: column; }
  .steps li { border-right: 0; border-bottom: 1px solid var(--line); text-align: left; }
  .guest-wrap { grid-template-columns: 1fr; }
  .guest-side { padding: 2rem 1.5rem; }
  .guest-form { padding: 2rem 1.5rem; }
  .dl { grid-template-columns: 1fr; gap: 0; }
  .dl dd { margin-bottom: .5rem; }
  .scope-select select { min-width: 0; }
}
@media (prefers-reduced-motion: reduce) { .sidebar { transition: none; } }
@media print {
  .sidebar, .mobilebar, .foot, .noprint, .flash { display: none !important; }
  .app { display: block; }
  body, .card { background: #fff; border: 0; box-shadow: none; }
}
a.stat { display: block; color: var(--ink); text-decoration: none; }
a.stat:hover { border-color: var(--field-line); text-decoration: none; }
.scope-select label { flex-direction: row; font-weight: 400; color: var(--muted); }
.stat .val { font-size: clamp(1.45rem, 2.1vw, 1.85rem); white-space: nowrap; }
.side-brand small { font-size: .76rem; }
@media (max-width: 900px) { .stat { min-height: 0; } .stats { grid-template-columns: 1fr 1fr; } .stat .val { white-space: normal; } }
@media (max-width: 480px) { .stats { grid-template-columns: 1fr; } }
.stat .val { white-space: normal; }
.stat .val .unit { font-size: .62em; font-weight: 600; color: var(--ink-2); }
.mt-s { margin-top: .6rem; }
.w-l { min-width: 16rem; }
.sig-preview { max-height: 70px; max-width: 220px; background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 4px; vertical-align: middle; }
/* Fiche d'adhésion */
.fiche-form .card h2 { display: flex; align-items: center; gap: .6rem; }
.step-n { display: inline-flex; align-items: center; justify-content: center; width: 1.7rem; height: 1.7rem; border-radius: 50%; background: var(--brand); color: #fff; font-size: .85rem; flex: none; }
fieldset.choice { border: 0; padding: 0; margin: 0 0 .9rem; display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; align-items: center; }
fieldset.choice legend { width: 100%; font-size: .88rem; font-weight: 500; color: var(--ink-2); margin-bottom: .35rem; padding: 0; }
.fiche-form > .card > label { margin-bottom: .9rem; }
.js-show-if[hidden] { display: none !important; }
.photo-id { width: 110px; height: 140px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); background: var(--card-2); }

/* ---------- Fiche d'adhésion imprimable (format A4) ---------- */
.print-body { background: #e9eaee; color: #000; }
.print-toolbar { display: flex; gap: .5rem; justify-content: center; padding: 1rem; }
.sheet { width: 210mm; min-height: 297mm; margin: 0 auto 2rem; padding: 14mm 18mm 12mm; background: #fff; color: #000; font-family: Arial, "Helvetica Neue", Helvetica, sans-serif; font-size: 11pt; box-shadow: 0 2px 12px rgba(0, 0, 0, .15); display: flex; flex-direction: column; }
.sheet-head { display: grid; grid-template-columns: 1fr 100px 1fr; align-items: start; gap: 6mm; }
.sheet-left, .sheet-right { display: flex; flex-direction: column; align-items: center; text-align: center; font-size: 9pt; line-height: 1.35; }
.sheet-left strong, .sheet-right strong { font-weight: 700; }
.sheet .dash { font-size: 7pt; line-height: 1; letter-spacing: -1px; }
.sheet-logo { text-align: center; }
.sheet-logo img { width: 84px; height: 84px; object-fit: contain; }
.union-logo { width: 64px; height: 64px; object-fit: contain; border-radius: 10px; background: #fff; flex: none; }
.union-head { display: flex; align-items: center; gap: 14px; }
.union-band .union-head h2 { margin: 0; }
.devise { margin: 4mm 0 0; font-family: "Brush Script MT", "Lucida Handwriting", "Segoe Script", cursive; font-size: 17pt; line-height: 1.25; font-style: italic; }
.sheet-title { text-align: center; font-size: 13pt; font-weight: 700; text-decoration: underline; margin: 10mm 0 3mm; letter-spacing: 0; line-height: 1.3; color: #000; }
.sheet-title span { text-decoration: none; display: inline-block; }
.sheet-lines p { margin: 0; min-height: 8.6mm; padding-top: 2.6mm; border-bottom: 1px dotted #000; font-size: 11pt; }
.sheet-lines b { font-weight: 400; }
.sheet-lines .two { display: grid; grid-template-columns: 1.6fr 1fr; gap: 4mm; border-bottom: 0; }
.sheet-lines .two > span { border-bottom: 1px dotted #000; display: block; }
.fv { font-family: "Courier New", Courier, monospace; font-weight: 700; font-size: 10.5pt; }
.sheet-sign { text-align: right; margin: 6mm 20mm 0 0; }
.sheet-foot { margin-top: auto; padding-top: 14mm; font-size: 9pt; display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; }
.sheet-foot p { margin: 0; }
.sheet-ref { color: #555; font-size: 8pt; }
@media print {
  @page { size: A4; margin: 0; }
  .print-body { background: #fff; }
  .sheet { box-shadow: none; margin: 0; }
}
@media (max-width: 820px) { .sheet { width: 100%; min-height: 0; padding: 6mm; } .sheet-head { grid-template-columns: 1fr 70px 1fr; gap: 2mm; } .sheet-logo img { width: 64px; height: 64px; } }
.fiche-grid { display: grid; grid-template-columns: 130px 1fr; gap: 1.2rem; align-items: start; }
.photo-empty { display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: .85rem; }
@media (max-width: 600px) { .fiche-grid { grid-template-columns: 1fr; } }
.sheet-lines .pieces { display: flex; flex-wrap: wrap; gap: 1mm 5mm; align-items: baseline; }
.sheet-lines .pieces .box { white-space: nowrap; }
.scroll-box { max-height: 420px; overflow-y: auto; border: 1px solid var(--line); border-radius: 8px; margin: .5rem 0; }
.js-filter { width: 100%; max-width: 26rem; }

/* ---------- Carte de membre (format ISO 85,6 × 54 mm) ---------- */
.pcards { display: flex; flex-wrap: wrap; gap: 1.25rem; justify-content: center; }
.pcard { position: relative; margin: 0; width: 100%; max-width: 470px; aspect-ratio: 85.6 / 54; border-radius: 4.5% / 7%; overflow: hidden; background: #fff; color: #111; box-shadow: 0 6px 22px rgba(0, 0, 0, .18); container-type: inline-size; font-family: Arial, "Helvetica Neue", Helvetica, sans-serif; border: 1px solid #ddd; }
.pcard > * { position: absolute; }
.pc-bg { inset: 0; width: 100%; height: 100%; }
.pc-watermark { left: 33%; top: 34%; width: 30%; opacity: .08; }
.pc-logo { left: 4%; top: 5%; width: 15%; border-radius: 50%; }
.pc-title { left: 20.5%; top: 8.5%; font-family: "Times New Roman", Georgia, serif; font-weight: 700; font-size: 3.9cqw; color: #c71f1c; white-space: nowrap; }
.pc-devise { left: 20.5%; width: 58%; top: 17.5%; text-align: center; font-style: italic; font-size: 2.2cqw; color: #222; }
.pc-kind { left: 20.5%; width: 58%; top: 24.5%; text-align: center; font-weight: 700; font-size: 4.4cqw; color: #2f7d32; letter-spacing: .02em; }
.pc-matricule { left: 20.5%; width: 58%; top: 33.5%; text-align: center; font-weight: 700; font-size: 3.3cqw; color: #c71f1c; text-decoration: underline; text-underline-offset: 3px; }
.pc-photo { left: 5%; top: 42%; width: 20%; height: 42%; border: 2px solid #111; border-radius: 6% / 4%; display: flex; align-items: center; justify-content: center; font-size: 1.9cqw; color: #666; background: #fafafa; overflow: hidden; }
.pc-photo img { width: 100%; height: 100%; object-fit: cover; }
.pc-fields { left: 29%; top: 42.5%; width: 54%; margin: 0; display: grid; grid-template-columns: auto 1fr; gap: .25cqw 2cqw; align-items: baseline; }
.pc-fields dt { color: #c71f1c; font-size: 2.3cqw; }
.pc-fields dd { margin: 0; font-weight: 700; font-size: 2.6cqw; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pc-meta { left: 27%; top: 6%; width: 66%; margin: 0; display: grid; grid-template-columns: auto 1fr; gap: .8cqw 5cqw; }
.pc-meta dt { color: #c71f1c; font-size: 2.3cqw; }
.pc-meta dd { margin: 0; font-weight: 700; font-size: 2.6cqw; }
.pc-qr { left: 4.5%; top: 27%; width: 18%; text-align: center; font-size: 1.6cqw; color: #555; }
.pc-qr img { width: 100%; display: block; margin-bottom: .6cqw; }
.pc-signtitle { left: 42%; width: 52%; top: 31%; text-align: center; font-weight: 700; font-size: 2.8cqw; }
.pc-stamp { left: 45%; top: 37.5%; width: 13.5%; aspect-ratio: 1; border: 1.5px dashed #888; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.6cqw; color: #888; overflow: hidden; }
.pc-stamp img { width: 100%; height: 100%; object-fit: contain; }
.pc-signature { left: 63%; top: 38%; width: 26%; height: 19%; display: flex; align-items: center; justify-content: center; font-size: 1.8cqw; color: #aaa; font-style: italic; }
.pc-signature img { max-width: 100%; max-height: 100%; object-fit: contain; }
.pc-signname { left: 42%; width: 52%; top: 59%; text-align: center; font-weight: 700; font-size: 2.8cqw; }
.pc-dates { left: 4.5%; right: 4.5%; top: 66%; display: flex; justify-content: space-between; font-size: 2cqw; }
.pc-dates b { color: #c71f1c; font-weight: 400; }
.pc-contact { left: 5%; right: 5%; top: 71.5%; text-align: center; font-size: 1.9cqw; }
.pc-legal { left: 8%; right: 8%; top: 75.5%; text-align: center; font-size: 1.7cqw; font-weight: 700; color: #c71f1c; line-height: 1.25; }
.pc-band { left: 4%; right: 4%; bottom: 4%; display: flex; justify-content: space-between; align-items: center; color: #fff; font-size: 2.2cqw; }
.pc-band span:first-child { font-weight: 700; font-style: italic; }
.pcard-note { text-align: center; color: var(--muted); font-size: .85rem; margin: .8rem 0 0; }
@media print { .pcard { box-shadow: none; border: 0; } }

/* ---------- Tableau de bord « Chiffres » ---------- */
.stats-filters { display: flex; flex-wrap: wrap; gap: .8rem 1rem; align-items: flex-end; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: .9rem 1rem; margin-bottom: 1rem; box-shadow: var(--shadow); }
.stats-filters select { min-width: 12rem; }
.seg { display: inline-flex; border: 1px solid var(--field-line); border-radius: 8px; overflow: hidden; padding: 0; margin: 0; }
.seg label { flex-direction: row; gap: 0; }
.seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.seg span { display: inline-block; padding: .55rem .9rem; cursor: pointer; font-size: .9rem; color: var(--ink-2); background: var(--field); }
.seg label + label span { border-left: 1px solid var(--field-line); }
.seg input:checked + span { background: var(--brand); color: #fff; }
.seg input:focus-visible + span { outline: 3px solid rgba(179, 23, 28, .3); }
.tabs { display: flex; gap: .3rem; border-bottom: 1px solid var(--line); margin-bottom: 1.2rem; overflow-x: auto; }
.tab { display: inline-flex; align-items: center; gap: .45rem; padding: .7rem 1rem; border: 0; background: none; color: var(--muted); font: inherit; font-weight: 600; cursor: pointer; border-bottom: 3px solid transparent; white-space: nowrap; }
.tab[aria-selected="true"] { color: var(--brand-ink); border-bottom-color: var(--brand); }
.kpi-row .stat { min-height: 0; }
.val.is-h { color: #2f6f3e; } .val.is-f { color: #b7861a; } .val.is-ok { color: var(--green); } .val.is-warn { color: var(--amber); } .val.is-bad { color: var(--danger); }
.chart-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem; box-shadow: var(--shadow); min-width: 0; }
.chart-card.wide { margin-bottom: 1.25rem; }
.chart-card h2 { margin: 0 0 .8rem; font-size: 1rem; }
.chart-card h2 small { font-weight: 400; font-size: .8rem; }
.chart-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); gap: 1.25rem; margin-bottom: 1.25rem; }
.chart-card.span2 { grid-column: 1 / -1; }
.chart { min-height: 120px; display: flex; flex-direction: column; align-items: center; }
.chart > svg { display: block; max-width: 100%; overflow: visible; }
.js-stats { transition: opacity .2s; }
.js-stats.is-loading { opacity: .45; pointer-events: none; }
.ch-empty { color: var(--muted); padding: 2.5rem 0; margin: 0; text-align: center; }
.ch-legend { display: flex; flex-wrap: wrap; gap: .4rem 1rem; justify-content: center; font-size: .82rem; color: var(--ink-2); margin-top: .5rem; }
.ch-legend i, .ch-tip i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: .35rem; vertical-align: -1px; }
.ch-legend-col { flex-direction: column; align-items: flex-start; gap: .3rem; width: 100%; max-width: 280px; }
.ch-legend-col b { margin-left: auto; } .ch-legend-col span { display: flex; align-items: center; gap: .3rem; width: 100%; } .ch-legend-col em { color: var(--muted); font-style: normal; min-width: 3.6rem; text-align: right; }
.ch-tip { position: fixed; z-index: 100; display: none; pointer-events: none; background: #111827; color: #f9fafb; font-size: .8rem; line-height: 1.5; padding: .5rem .7rem; border-radius: 8px; box-shadow: 0 8px 24px rgba(0, 0, 0, .25); max-width: 260px; }
.ch-tip-sum { color: #d1d5db; } .ch-tip-hint { color: #fca5a5; font-style: italic; }
.ch-hit { cursor: default; } .ch-click { cursor: pointer; }
.ch-hit:hover + rect, .ch-click:focus { outline: none; }
.ch-bar { transform-box: fill-box; transform-origin: bottom; animation: chGrow .55s cubic-bezier(.2, .8, .2, 1) both; }
.ch-hbar { transform-box: fill-box; transform-origin: center; animation: chFade .5s ease both; }
.ch-slice { animation: chFade .5s ease both; transition: opacity .15s; } .ch-slice:hover { opacity: .85; }
.ch-line { stroke-dasharray: 2000; stroke-dashoffset: 2000; animation: chDraw 1.1s ease forwards; }
.ch-area { animation: chFade .9s ease both; }
@keyframes chGrow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes chFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes chDraw { to { stroke-dashoffset: 0; } }
.ch-rank { width: 100%; display: flex; flex-direction: column; gap: .45rem; }
.ch-rank-row { display: grid; grid-template-columns: minmax(120px, 46%) 1fr 4.2rem; align-items: center; gap: .7rem; width: 100%; background: none; border: 0; padding: .15rem 0; font: inherit; color: var(--ink); text-align: left; }
button.ch-rank-row { cursor: pointer; border-radius: 6px; } button.ch-rank-row:hover { background: var(--card-2); }
.ch-rank-label { font-size: .86rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ch-rank-track { height: 12px; background: var(--card-2); border-radius: 999px; overflow: hidden; }
.ch-rank-fill { display: block; height: 100%; border-radius: 999px; transform-origin: left; animation: chGrowX .7s cubic-bezier(.2, .8, .2, 1) both; }
.ch-rank-val { font-size: .86rem; font-weight: 600; text-align: right; }
@keyframes chGrowX { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (prefers-reduced-motion: reduce) { .ch-bar, .ch-hbar, .ch-slice, .ch-line, .ch-area, .ch-rank-fill { animation: none; stroke-dashoffset: 0; } }
@media print { .chart-card { break-inside: avoid; box-shadow: none; } .js-stats.is-loading { opacity: 1; } }
.h3 { font-size: .95rem; margin: 1rem 0 .4rem; }
.releve-taux { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; margin-top: .8rem; }
.releve-chip { background: var(--card-2); border-radius: 999px; padding: .35rem .9rem; font-size: .86rem; }

/* ---------- Synthèse de l'accueil ---------- */
.synth { margin-bottom: 1.5rem; }
.synth-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; margin-bottom: .8rem; }
.synth-head h2 { margin: 0; font-size: 1.15rem; }
.synth-head p { margin: .2rem 0 0; }
.synth-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.45fr) minmax(0, 1fr); gap: 1rem; }
.synth-releve { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem; }
.synth-releve .trio { display: flex; flex-wrap: wrap; gap: 1rem 2.2rem; flex: 1; }
.synth-releve .trio div { flex: 1 1 200px; min-width: 0; } .synth-releve .trio b { display: block; font-size: 1.5rem; line-height: 1.2; }
.synth-releve .trio span { font-size: .84rem; color: var(--muted); }
@media (max-width: 1100px) { .synth-grid { grid-template-columns: 1fr 1fr; } .synth-gauge { grid-column: 1 / -1; } }
@media (max-width: 700px) { .synth-grid { grid-template-columns: 1fr; } }
.synth-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem; box-shadow: var(--shadow); min-width: 0; }
.synth-gauge { display: flex; gap: 1rem; align-items: center; }
.gauge { width: 118px; height: 118px; flex: none; }
.gauge-track { fill: none; stroke: var(--card-2); stroke-width: 12; }
.gauge-val { fill: none; stroke-width: 12; stroke-linecap: round; animation: gaugeIn 1s ease both; }
.gauge-bon { stroke: var(--green); } .gauge-moyen { stroke: var(--amber); } .gauge-faible { stroke: var(--danger); } .gauge-na { stroke: var(--muted); }
.gauge-num { font-size: 30px; font-weight: 700; fill: var(--ink); } .gauge-lbl { font-size: 10px; fill: var(--muted); }
@keyframes gaugeIn { from { stroke-dasharray: 0 400; } }
.dims { list-style: none; margin: .6rem 0 0; padding: 0; display: flex; flex-direction: column; gap: .55rem; }
.dims li { display: grid; grid-template-columns: minmax(0, 1fr) 80px 3.8rem; align-items: center; gap: .5rem; font-size: .86rem; }
.dim-lbl small { display: block; color: var(--muted); font-size: .74rem; }
.dims b { text-align: right; } .dim-bon { color: var(--green); } .dim-moyen { color: var(--amber); } .dim-faible { color: var(--danger); } .dim-na { color: var(--muted); }
meter { width: 100%; height: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .5rem; }
.chip { background: var(--card-2); border-radius: 999px; padding: .25rem .7rem; font-size: .82rem; }
.chip em { font-style: normal; color: var(--amber-ink); }
.d-block { display: block; }
.spark { width: 100%; height: 64px; margin-top: .3rem; }
.spark-line { fill: none; stroke: var(--brand); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.spark-axis { display: flex; justify-content: space-between; font-size: .72rem; color: var(--muted); }
.small-list li { font-size: .88rem; }
.table.sante td { vertical-align: middle; }
.mini-bar { display: inline-block; width: 60px; vertical-align: middle; }
.score { display: inline-flex; align-items: center; justify-content: center; min-width: 2.6rem; padding: .15rem .5rem; border-radius: 999px; font-weight: 700; font-size: .85rem; }
.score-bon { background: var(--green-soft); color: var(--green); } .score-moyen { background: var(--amber-soft); color: var(--amber-ink); } .score-faible { background: var(--danger-soft); color: var(--danger); } .score-na { background: var(--card-2); color: var(--muted); }

/* ---------- Mobilisations ---------- */
.mob-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 1rem; }
.mob-card { display: flex; gap: 1rem; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; color: var(--ink); box-shadow: var(--shadow); text-decoration: none; }
.mob-card:hover { border-color: var(--field-line); text-decoration: none; }
.mob-date { flex: none; width: 3.6rem; text-align: center; background: var(--brand); color: #fff; border-radius: 10px; padding: .4rem 0; align-self: flex-start; }
.mob-date b { display: block; font-size: 1.5rem; line-height: 1.1; } .mob-date span { font-size: .78rem; }
.mob-body { min-width: 0; display: flex; flex-direction: column; gap: .25rem; }
.mob-body strong { font-size: 1.02rem; }
.mob-progress { display: grid; grid-template-columns: 1fr; gap: .2rem; margin-top: .3rem; font-size: .84rem; }
.mob-tree td { vertical-align: middle; }
.row-sel td { background: var(--amber-soft); }
.focus { border-left: 3px solid var(--brand); }
.focus-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; margin-top: .8rem; }
.focus-box { background: var(--card-2); border-radius: 10px; padding: .9rem; gap: .55rem; }
.focus-box strong { font-size: .95rem; }
.js-show-benef[hidden] { display: none !important; }
.mob-tree td:nth-child(8), .table.sante td:nth-child(6) { white-space: nowrap; }
.fin-flow { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .5rem; }
.fin-flow > div { background: var(--card-2); border-radius: 10px; padding: .6rem .8rem; display: flex; flex-direction: column; }
.fin-flow span { font-size: .78rem; color: var(--muted); } .fin-flow b { font-size: 1.15rem; } .fin-flow small { font-size: .74rem; color: var(--muted); }
.fin-flow .fin-pool { background: var(--amber-soft); } .fin-flow .fin-neg b { color: var(--danger); }
div.focus-box { display: flex; flex-direction: column; gap: .55rem; } .focus-box .table td { vertical-align: middle; }
.ext { border-left: 3px solid var(--amber); }
.circuit { list-style: none; margin: .8rem 0 1rem; padding: 0 0 0 .4rem; border-left: 2px solid var(--line); }
.circuit li { position: relative; padding: 0 0 .8rem 1.1rem; display: flex; gap: .5rem; }
.circuit li p { margin: .25rem 0 0; font-size: .9rem; }
.et-dot { position: absolute; left: -.52rem; top: .3rem; width: .85rem; height: .85rem; border-radius: 50%; background: var(--card); border: 2px solid var(--muted); }
.et-approbation .et-dot, .et-rapport_accepte .et-dot, .et-rapport_transmis .et-dot { border-color: var(--green); background: var(--green-soft); }
.et-rejet .et-dot, .et-rapport_renvoye .et-dot { border-color: var(--danger); background: var(--danger-soft); }
.et-eclaircissement .et-dot, .et-point_etape .et-dot { border-color: var(--amber); background: var(--amber-soft); }
.ext-rapport { grid-column: 1 / -1; }
.interim-tag { margin: .3rem 0; font-size: .86rem; }

/* ---------- Documents imprimables ---------- */
.print-options { display: flex; flex-wrap: wrap; gap: .6rem; align-items: flex-end; justify-content: center; margin: 0 auto 1rem; max-width: 210mm; }
.sheet-list { min-height: 0; }
.sheet-summary { text-align: center; margin: 0 0 4mm; font-size: 10pt; }
.ptable { width: 100%; border-collapse: collapse; font-size: 9pt; color: #000; }
.ptable th { background: #b3171c; color: #fff; text-align: left; padding: 1.6mm 1.4mm; font-weight: 700; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.ptable td { border-bottom: .2mm solid #bbb; padding: 1.2mm 1.4mm; vertical-align: top; }
.ptable .pgroup td { background: #f3e3e3; font-weight: 700; border-bottom: .3mm solid #b3171c; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.ptable.kv td:first-child { width: 42%; color: #444; }
.ptable thead { display: table-header-group; }
.ptable tr { break-inside: avoid; }
.sheet-signature { margin: 10mm 0 0 auto; width: 75mm; text-align: center; font-size: 10.5pt; break-inside: avoid; }
.sheet-signature p { margin: 1mm 0; }
.sign-space { height: 22mm; }
.sheet-trace { margin-top: auto; padding-top: 6mm; font-size: 7.5pt; color: #666; text-align: center; border-top: .2mm solid #ccc; }
.ps-head { display: flex; gap: 6mm; align-items: center; margin-bottom: 4mm; }
.ps-gauge { width: 30mm; height: 30mm; flex: none; }
.ps-h2 { font-size: 11pt; margin: 4mm 0 2mm; color: #000; }
.pbar-svg { width: 18mm; height: 2.2mm; vertical-align: middle; }
.sec-chart { width: 100%; height: 160px; }
.sec-ok { fill: var(--green); } .sec-ko { fill: var(--danger); } .sec-lbl { font-size: 9px; fill: var(--muted); }
.sw-ok { background: var(--green); } .sw-ko { background: var(--danger); }
.card-print .pcards { flex-direction: column; align-items: center; }
@media print { .card-print .pcard { width: 85.6mm; max-width: none; box-shadow: none; border: .2mm solid #ccc; break-inside: avoid; margin: 0 auto 6mm; } }
.qr-box { display: block; width: 100%; aspect-ratio: 1; margin-bottom: .6cqw; }
.qr-box svg { width: 100%; height: 100%; display: block; }
.verif { text-align: center; padding: 1.5rem 1rem; border-radius: var(--radius); }
.verif-icone { font-size: 3.2rem; margin: 0; line-height: 1; }
.verif-ok { background: var(--green-soft); } .verif-ok .verif-icone, .verif-ok h2 { color: var(--green); }
.verif-ko { background: var(--danger-soft); } .verif-ko .verif-icone, .verif-ko h2 { color: var(--danger); }
.verif-nom { font-size: 1.4rem; font-weight: 700; margin: .4rem 0; }

/* ---------- Pointage ---------- */
.pt-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 1.25rem; align-items: start; }
@media (max-width: 900px) { .pt-grid { grid-template-columns: 1fr; } }
.pt-video { position: relative; background: #111; border-radius: 12px; aspect-ratio: 4 / 3; overflow: hidden; display: none; }
.pt-live .pt-video { display: block; }
.pt-video video { width: 100%; height: 100%; object-fit: cover; }
.pt-cible { position: absolute; inset: 18%; border: 3px solid rgba(255, 255, 255, .85); border-radius: 14px; box-shadow: 0 0 0 999px rgba(0, 0, 0, .25); }
.pt-flash { margin-top: 1rem; padding: 1rem; border-radius: 12px; font-size: 1.05rem; min-height: 3.6rem; background: var(--card-2); }
.pt-flash strong { font-size: 1.25rem; }
.pt-ok { background: var(--green-soft); color: var(--green); } .pt-deja { background: var(--amber-soft); color: var(--amber-ink); } .pt-ko { background: var(--danger-soft); color: var(--danger); }
.pt-count { display: inline-flex; min-width: 2.2rem; justify-content: center; padding: 0 .5rem; border-radius: 999px; background: var(--brand); color: #fff; font-size: .9rem; }
.pt-list { max-height: 560px; overflow-y: auto; }
.pt-new { animation: chFade .6s ease both; background: var(--green-soft); border-radius: 6px; padding-left: .5rem; }
.pt-results { list-style: none; padding: 0; margin: .3rem 0 0; }
.pt-result { width: 100%; text-align: left; background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: .5rem .7rem; margin-bottom: .3rem; cursor: pointer; font: inherit; color: var(--ink); }
.pt-result:hover { background: var(--card-2); }
.row-done td { opacity: .65; }
.btn-wa { background: #1f9d55; border-color: #1f9d55; color: #fff; } .btn-wa:hover { background: #17834a; color: #fff; }
.mb { margin-bottom: 1rem; }
.pt-scan .inline-form .w-l { flex: 1; } .pt-search .w-l { width: 100%; }
.cle-bar { width: 100%; height: 18px; border-radius: 6px; margin-top: .6rem; }
.sw-fed { background: #b3171c; } .sw-com { background: #c9971f; } .sw-sec { background: #2f6f3e; } .sw-cel { background: #3b6fd8; } .sw-nat { background: #9ca3af; }
.ps-cols { gap: 4mm; margin: 4mm 0; }

/* ---------- Boutique ---------- */
.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 1rem; }
.shop-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.shop-img { aspect-ratio: 4 / 3; background: var(--card-2); display: flex; align-items: center; justify-content: center; }
.shop-img img { width: 100%; height: 100%; object-fit: cover; }
.shop-img .shop-placeholder { width: 40%; height: auto; opacity: .35; object-fit: contain; }
.shop-body { padding: .8rem; display: flex; flex-direction: column; gap: .3rem; }
.shop-prix { font-size: 1.15rem; font-weight: 700; color: var(--brand-ink); }
.shop-qty { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .3rem; }
.shop-qty label { flex-direction: column; font-size: .75rem; gap: .1rem; }
.shop-qty input { width: 3.6rem; }
.shop-bar { position: sticky; bottom: 0; z-index: 5; display: flex; flex-wrap: wrap; align-items: center; gap: .8rem; justify-content: flex-end; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: .8rem 1rem; margin-top: 1rem; box-shadow: var(--shadow); }
.shop-bar b { font-size: 1.3rem; color: var(--brand-ink); }
.planche .pcards { flex-direction: row; flex-wrap: nowrap; gap: 4mm; justify-content: center; }
@media print {
  .planche-ligne { break-inside: avoid; margin-bottom: 3mm; }
  .planche-ligne:nth-child(5n) { break-after: page; }
  .planche .pcard { width: 85.6mm; max-width: none; box-shadow: none; border: .2mm dashed #999; }
}
.req-interne { background: var(--amber-soft); border-radius: 8px; padding: .4rem .6rem; }
.sync-bar { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1.2rem; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: .8rem 1rem; margin-bottom: 1rem; box-shadow: var(--shadow); }
.sync-bar .btn { margin-left: auto; }
.sync-etat { font-weight: 700; padding: .2rem .7rem; border-radius: 999px; }
.sync-etat.en-ligne { background: var(--green-soft); color: var(--green); } .sync-etat.hors-ligne { background: var(--amber-soft); color: var(--amber-ink); }
.app-qr { max-width: 220px; margin: .5rem auto 1rem; padding: 10px; background: #fff; border-radius: 12px; }
.etapes { list-style: none; margin: .6rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .6rem; }
.etapes li { display: flex; gap: .6rem; align-items: flex-start; flex: 1 1 220px; background: var(--card-2); border-radius: 10px; padding: .6rem .8rem; }
.etape-n { flex: none; width: 1.8rem; height: 1.8rem; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; background: var(--card); border: 2px solid var(--line); }
.etapes li.fait { background: var(--green-soft); } .etapes li.fait .etape-n { background: var(--green); border-color: var(--green); color: #fff; }
.acte-table input.w-s { width: 9rem; } .acte-table td { vertical-align: middle; }
.champ-alerte { border-color: var(--danger) !important; }
.fiches-acces { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 10px; }
.fiche-acces { display: flex; gap: 10px; border: 1px dashed var(--field-line); border-radius: 10px; padding: 10px; background: var(--card); break-inside: avoid; }
.fiche-acces dl { display: grid; grid-template-columns: auto 1fr; gap: 2px 8px; margin: 6px 0; font-size: .85rem; } .fiche-acces dt { color: var(--muted); }
@media print { .fiches-acces { grid-template-columns: 1fr 1fr; } .fiche-acces { border-color: #888; } }
.ligne-ajout td { background: var(--card-2); }
.cot-syn { display: grid; grid-template-columns: 1fr 62mm; gap: 5mm; align-items: center; margin-bottom: 3mm; }
.cot-graph { width: 62mm; height: 40mm; }
.ptable td.mono { white-space: nowrap; font-size: 8pt; }

/* ---------- En-tête officiel sur toute page imprimée ---------- */
.print-only { display: none; }
@media print {
  .print-only { display: block; }
  .print-entete { margin: 0 0 6mm; color: #000; }
  .print-entete .sheet-title { font-size: 14pt; margin: 4mm 0 2mm; }
  .print-pied { margin-top: 8mm; color: #000; }
  .main .page { padding: 10mm 12mm; max-width: none; }
  .chart-card, .card, .panel, .stat { break-inside: avoid; }
  @page { size: A4; margin: 8mm; }
}
@media print { * { -webkit-print-color-adjust: exact; print-color-adjust: exact; } }

/* ---------- Vue d'ensemble des cotisations ---------- */
.cot-vue { margin-bottom: 1.5rem; }
.cot-vue-head { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; align-items: flex-end; margin-bottom: .6rem; }
.cot-vue-head h2 { margin: 0; }
.cot-vue-ctrl { display: flex; gap: .8rem; flex-wrap: wrap; }
.cot-vue.is-loading { opacity: .5; pointer-events: none; }
.cot-vue-outils { display: flex; flex-wrap: wrap; gap: .6rem 1rem; align-items: flex-end; margin: .4rem 0 .6rem; }
.cot-vue-outils .tabs { margin: 0; border: 0; flex: 1; }
.cv-table td { vertical-align: middle; }
.cv-nom { white-space: nowrap; }
.cv-p1 .cv-nom { padding-left: 1.4rem; } .cv-p2 .cv-nom { padding-left: 2.6rem; } .cv-p3 .cv-nom { padding-left: 3.8rem; } .cv-p4 .cv-nom, .cv-p5 .cv-nom { padding-left: 5rem; }
.cv-p0 { font-weight: 700; background: var(--card-2); }
.cv-tog { border: 0; background: none; cursor: pointer; width: 1.4rem; font-size: .9rem; color: var(--muted); }
.cv-tog-vide { display: inline-block; width: 1.4rem; }
.cv-pct { font-weight: 600; font-size: .85rem; }
.cv-spark { width: 72px; height: 20px; } .cv-spark polyline { fill: none; stroke: var(--brand); stroke-width: 1.5; }
.cv-parent { font-weight: 400; }
.cv-membres { border-left: 3px solid var(--brand); } .cv-membres.is-loading { opacity: .5; }
.sheet-left-long strong { font-size: 8.5pt; } .sheet-left-long .dash { line-height: .9; }
.cab-droits { border-top: 1px solid var(--line); padding-top: .8rem; margin-top: .8rem; }
.cab-qui { margin-bottom: .4rem; }
.seg-sm span { padding: .3rem .6rem; font-size: .8rem; }
.cab-moi { border-left: 3px solid var(--green); }
.etapes-reunion { display: flex; gap: .4rem; list-style: none; padding: 0; margin: 0 0 1rem; flex-wrap: wrap; }
.etapes-reunion li { flex: 1; min-width: 150px; display: flex; gap: .5rem; align-items: center; padding: .55rem .8rem; border-radius: 10px; background: var(--card-2); color: var(--muted); font-size: .88rem; }
.etapes-reunion li span { display: inline-flex; width: 1.6rem; height: 1.6rem; border-radius: 50%; align-items: center; justify-content: center; background: var(--line); font-weight: 700; color: var(--ink); }
.etapes-reunion li.fait { background: var(--green-soft); color: var(--green); } .etapes-reunion li.fait span { background: var(--green); color: #fff; }
.etapes-reunion li.encours { background: var(--amber-soft); color: var(--amber-ink); font-weight: 600; } .etapes-reunion li.encours span { background: var(--amber); color: #fff; }
.odj { margin: .3rem 0 1rem 1.2rem; } .odj li { margin: .25rem 0; }
.mb-search { display: flex; gap: .6rem; padding: .8rem; margin-bottom: 1rem; }
.mb-search input { flex: 1; font-size: 1rem; }
.cascade-niveaux { display: flex; flex-wrap: wrap; gap: .6rem 1rem; margin-bottom: .8rem; }
.cascade-niveaux label { display: flex; flex-direction: column; font-size: .8rem; color: var(--muted); min-width: 200px; }
.stat.skel { min-height: 92px; background: linear-gradient(90deg, var(--card-2) 25%, var(--card) 50%, var(--card-2) 75%); background-size: 200% 100%; animation: skel 1.4s infinite; }
@keyframes skel { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .stat.skel { animation: none; } }
.acte-signature { margin-top: 1rem; border-top: 1px solid var(--line); padding-top: .8rem; }
.sig-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: .7rem; }
.sig-case { border: 1px solid var(--line); border-radius: 10px; padding: .7rem; display: flex; flex-direction: column; gap: .25rem; background: var(--card-2); }
.sig-case.ok { border-color: var(--green); background: var(--green-soft); }
.sig-case.moi { border-color: var(--brand); box-shadow: 0 0 0 2px color-mix(in srgb, var(--brand) 20%, transparent); }
.acte .acte-auteur { font-weight: 700; margin: 4mm 0 2mm; }
.acte .acte-visas { list-style: square; margin: 0 0 2mm 6mm; } .acte .acte-visas li { margin: 1.5mm 0; }
.acte .acte-odj { margin: 2mm 0 3mm 10mm; } .acte .acte-odj li { margin: 1mm 0; }
.acte .acte-fait { text-align: right; margin: 6mm 0 4mm; }
.acte .acte-signatures { display: grid; grid-template-columns: 1fr 1fr; gap: 8mm 12mm; margin-top: 4mm; }
.acte .acte-sig p { margin: 1mm 0; } .acte .acte-sig-elec { font-size: 8pt; color: #1f5f32; border: 1px solid #9cc5a6; border-radius: 4px; padding: 1.5mm 2mm; display: inline-block; }
.acte .acte-sig-attente { font-size: 8pt; color: #999; font-style: italic; min-height: 14mm; }
.acte .acte-filigrane { text-align: center; color: #b91c1c; font-weight: 700; letter-spacing: .1em; border: 1px dashed #b91c1c; padding: 1.5mm; }
.aud-item { display: grid; grid-template-columns: auto 1fr auto; gap: .4rem 1rem; align-items: start; padding: .7rem 0; border-top: 1px solid var(--line); }
.aud-item:first-of-type { border-top: 0; }
section .aud-item > form, section .aud-item > details { grid-column: 1 / -1; }
.aud-heure { font-weight: 800; font-size: 1.05rem; display: flex; flex-direction: column; min-width: 56px; } .aud-heure small { font-weight: 400; color: var(--muted); font-size: .8rem; }
.aud-jour { margin: 1rem 0 .2rem; color: var(--brand); }
.aud-programmee { background: var(--amber-soft); border-radius: 8px; padding-left: .5rem; }
.ac-zone { position: relative; display: block; }
.ac-liste { position: absolute; z-index: 30; left: 0; right: 0; top: 100%; margin: 2px 0 0; padding: 4px; list-style: none; background: var(--card); border: 1px solid var(--field-line); border-radius: 10px; box-shadow: 0 8px 24px rgba(0,0,0,.12); max-height: 300px; overflow: auto; }
.ac-liste li { padding: .55rem .7rem; border-radius: 8px; cursor: pointer; font-size: .95rem; }
.ac-liste li:hover, .ac-liste li.actif { background: var(--brand-soft, #fde8e8); }
.ac-liste li small { color: var(--muted); }
.ac-liste li.vide { color: var(--muted); cursor: default; }
.ac-choix { display: block; color: var(--green); margin-top: .25rem; font-weight: 600; }
.int-candidats { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: .5rem; }
.int-candidats legend { font-weight: 600; margin-bottom: .4rem; }
.int-cand { display: flex; gap: .6rem; align-items: flex-start; padding: .65rem .75rem; border: 1px solid var(--field-line); border-radius: 10px; cursor: pointer; background: var(--card); }
.int-cand:has(input:checked) { border-color: var(--brand); background: var(--brand-soft, #fde8e8); }
.int-cand span { display: flex; flex-direction: column; } .int-cand small { color: var(--muted); }
.int-cand[hidden] { display: none; }
.form label.int-cand, .grid-form label.int-cand { flex-direction: row; align-items: flex-start; gap: .65rem; }
label.int-cand input[type=radio] { width: auto; margin-top: .25rem; flex: none; }
.login-ou { display: flex; align-items: center; gap: .8rem; color: var(--muted); margin: 1rem 0; } .login-ou::before, .login-ou::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
.btn-carte { width: 100%; justify-content: center; }
.carte-scan { position: relative; display: flex; flex-direction: column; align-items: center; gap: .6rem; padding: 1rem; border: 1px dashed var(--field-line); border-radius: 14px; margin-bottom: 1rem; background: var(--card-2); }
.carte-scan video { width: 100%; max-width: 360px; border-radius: 12px; }
.carte-scan.lu { border-color: var(--green); background: var(--green-soft); }
.carte-cadre { display: none; }
.pin-champ { font-size: 1.6rem; letter-spacing: .5em; text-align: center; max-width: 220px; }
.btn-lien { background: none; border: 0; color: var(--brand); text-decoration: underline; cursor: pointer; padding: 0; font: inherit; }
.pc-code { font-family: ui-monospace, monospace; font-size: 6.5pt; letter-spacing: .05em; }
.cc-affecter { flex-wrap: wrap; gap: .6rem; align-items: center; }
.acte .cc-fed { margin: 3mm 0 1mm; text-decoration: underline; } .acte .cc-com { margin: 1mm 0 0 6mm; font-style: italic; }
.badge-deces { display: inline-block; font-size: .78rem; color: #4b5563; background: #e5e7eb; border-radius: 999px; padding: .05rem .5rem; margin-left: .3rem; }
.ligne-deces td { color: var(--muted); }
.union-logo.mini { width: 24px; height: 24px; border-radius: 4px; vertical-align: middle; }

/* Cartes de membre des unions catégorielles (FMC, OFC) — design de l'union */
.ucard { font-family: "Noto Serif", Georgia, "Times New Roman", serif; }
.uc-watermark { left: 40%; top: 33%; width: 30%; height: 48%; object-fit: contain; opacity: .09; }
.uc-logo { left: 6.5%; top: 9.5%; width: 13.5%; height: 17%; object-fit: contain; }
.uc-title { left: 21%; width: 63%; top: 9.5%; text-align: center; font-weight: 700; font-size: 4.25cqw; color: #e0141b; white-space: nowrap; letter-spacing: .01em; }
.uc-devise { left: 21%; width: 63%; top: 18.5%; text-align: center; font-weight: 700; font-size: 1.85cqw; color: #111; }
.uc-kind { left: 21%; width: 63%; top: 24%; text-align: center; font-weight: 700; font-size: 5cqw; color: #3c8a1e; }
.uc-matricule { left: 21%; width: 63%; top: 33%; text-align: center; font-weight: 700; font-size: 3.4cqw; color: #e0141b; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.uc-photo { left: 6.5%; top: 37%; width: 15.5%; height: 31%; border: 3px solid #111; border-radius: 8% / 6%; display: flex; align-items: center; justify-content: center; font-size: 1.9cqw; color: #777; background: #fafafa; overflow: hidden; font-family: Arial, sans-serif; }
.uc-photo img { width: 100%; height: 100%; object-fit: cover; }
.uc-qr { left: 9.5%; top: 71.5%; width: 9.5%; background: #fff; padding: .4cqw; }
.uc-qr img, .uc-qr .qr-box, .uc-qr svg { display: block; width: 100%; height: auto; }
.uc-fields { left: 25%; top: 40%; width: 60%; margin: 0; display: grid; grid-template-columns: auto 1fr; gap: .15cqw 1.4cqw; align-items: baseline; }
.uc-fields dt { color: #e0141b; font-size: 2.75cqw; white-space: nowrap; }
.uc-fields dd { margin: 0; font-weight: 700; font-size: 2.75cqw; color: #111; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.uc-signtitle { left: 20%; width: 60%; top: 6%; text-align: center; font-weight: 700; font-size: 3cqw; }
.uc-stamp { left: 34%; top: 13%; width: 15%; aspect-ratio: 1; display: flex; align-items: center; justify-content: center; font-size: 1.6cqw; color: #999; border: 1.5px dashed #aaa; border-radius: 50%; overflow: hidden; }
.uc-stamp img { width: 100%; height: 100%; object-fit: contain; }
.uc-stamp:has(img), .uc-signature:has(img) { border: 0; }
.uc-signature { left: 47%; top: 15%; width: 22%; height: 18%; display: flex; align-items: center; justify-content: center; font-size: 1.8cqw; color: #aaa; font-style: italic; }
.uc-signature img { max-width: 100%; max-height: 100%; object-fit: contain; }
.uc-signname { left: 20%; width: 60%; top: 38%; text-align: center; font-weight: 700; font-size: 3cqw; }
.uc-dates { left: 6%; right: 6%; top: 48%; display: flex; justify-content: space-between; font-size: 2.55cqw; font-weight: 700; }
.uc-dates b { font-weight: 700; }
.uc-meta { left: 6%; right: 6%; top: 56%; display: flex; justify-content: center; flex-wrap: wrap; gap: .3cqw 2.4cqw; font-size: 1.75cqw; color: #333; font-family: Arial, sans-serif; }
.uc-legal { left: 9%; right: 9%; top: 63%; text-align: center; font-size: 2.3cqw; font-weight: 700; color: #e0141b; line-height: 1.25; }
.uc-contact { left: 5%; right: 5%; top: 75%; text-align: center; font-size: 2cqw; }
.uc-site { right: 8%; bottom: 6.5%; color: #fff; font-weight: 700; font-size: 3.3cqw; }

.uc-fields dd.uc-qualite { white-space: normal; font-size: 2.35cqw; line-height: 1.12; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }

/* Carte OFC — charte du logo : rouge #DA1319, rouge profond #A80104, vert palme #376931, or #FADA13, blanc */
.uc-vtitle { display: none; }
.ucard-ofc .uc-watermark { display: none; }
.ucard-ofc .uc-logo { left: 3.6%; top: 3.2%; width: 15.5%; height: 24.5%; object-fit: cover; border-radius: 50%; box-shadow: 0 0 0 .5cqw #FADA13, 0 .6cqw 1.6cqw rgba(0,0,0,.25); background: #DA1319; }
.ucard-ofc .uc-title { left: 21%; width: 74%; top: 5.6%; color: #fff; font-size: 3.55cqw; letter-spacing: .03em; }
.ucard-ofc .uc-devise { left: 21%; width: 74%; top: 12.6%; color: #fff; font-style: italic; font-weight: 400; font-size: 1.85cqw; }
.ucard-ofc .uc-kind { left: 21%; width: 74%; top: 25.5%; color: #376931; font-size: 4.6cqw; letter-spacing: .04em; }
.ucard-ofc .uc-matricule { left: 21%; width: 74%; top: 33.5%; color: #DA1319; font-size: 3.2cqw; text-decoration-color: #FADA13; text-decoration-thickness: .5cqw; }
.ucard-ofc .uc-photo { left: 5%; top: 31.5%; width: 15.5%; height: 31%; border: .45cqw solid #DA1319; box-shadow: 0 0 0 .35cqw #FADA13; border-radius: 10% / 7%; }
.ucard-ofc .uc-qr { left: 8%; top: 66.5%; width: 9.5%; outline: .3cqw solid #376931; }
.ucard-ofc .uc-fields { left: 25%; top: 41.5%; width: 66%; }
.ucard-ofc .uc-fields dt { color: #A80104; }
.ucard-ofc .uc-fields dd { color: #1d1d1d; }
.ucard-ofc .uc-vtitle { display: block; left: 0; right: 0; top: 1.4%; text-align: center; color: #fff; font-weight: 700; font-size: 2.2cqw; letter-spacing: .12em; }
.ucard-ofc .uc-signtitle { top: 14%; color: #A80104; }
.ucard-ofc .uc-stamp { top: 20.5%; }
.ucard-ofc .uc-signature { top: 22%; }
.ucard-ofc .uc-signname { top: 44%; }
.ucard-ofc .uc-dates { top: 52.5%; }
.ucard-ofc .uc-dates b { color: #A80104; }
.ucard-ofc .uc-meta { top: 59.5%; }
.ucard-ofc .uc-legal { top: 65%; color: #DA1319; }
.ucard-ofc .uc-contact { top: 76%; color: #376931; font-weight: 700; }
.ucard-ofc .uc-site { right: auto; left: 0; width: 100%; text-align: center; bottom: 7.5%; font-size: 2.8cqw; letter-spacing: .05em; }

/* Choix de l'espace (Parti ou union) */
.espace-choix { max-width: 760px; margin: 0 auto; text-align: center; }
.espace-choix h1 { font-size: 1.5rem; margin-bottom: .4rem; }
.espace-cartes { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; margin: 1.5rem 0; }
.espace-carte { display: flex; flex-direction: column; align-items: center; gap: .5rem; padding: 1.5rem 1rem; border: 2px solid var(--border, #ddd); border-radius: 14px; background: var(--card, #fff); color: inherit; cursor: pointer; font: inherit; transition: transform .12s, border-color .12s, box-shadow .12s; }
.espace-carte:hover, .espace-carte:focus-visible { border-color: #b3171c; transform: translateY(-2px); box-shadow: 0 8px 22px rgba(0,0,0,.12); outline: none; }
.espace-carte.actif { border-color: #b3171c; }
.espace-carte img { width: 136px; height: 96px; object-fit: contain; border-radius: 6px; }
.espace-carte strong { font-size: 1.35rem; }
.espace-carte span { color: var(--muted, #666); font-size: .95rem; }
.side-espace { display: flex; align-items: center; gap: .4rem; margin: .4rem .8rem 0; padding: .35rem .6rem; border-radius: 8px; background: rgba(255,255,255,.14); color: #fff; font-size: .82rem; text-decoration: none; }
.side-espace:hover { background: rgba(255,255,255,.24); }
.side-brand img { object-fit: contain; border-radius: 50%; background: #fff; }
.side-brand img.logo-union, .mobilebar img.logo-union { border-radius: 4px; background: transparent; width: 56px; height: 40px; object-fit: cover; box-shadow: 0 0 0 2px rgba(255, 255, 255, .85); }
.mobilebar img.logo-union { width: 42px; height: 30px; }

/* ===== v1.41 — Tableau de bord de pilotage ===== */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }
.cockpit-hero { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; flex-wrap: wrap;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%); color: #fff; border-radius: 16px;
  padding: 1.4rem 1.6rem; margin-bottom: 1.25rem; box-shadow: 0 10px 30px rgba(143, 18, 22, .22); position: relative; overflow: hidden; }
.cockpit-hero::after { content: ""; position: absolute; right: -60px; top: -60px; width: 260px; height: 260px; border-radius: 50%;
  background: radial-gradient(circle, rgba(214, 180, 60, .28), transparent 70%); pointer-events: none; }
.cockpit-hero h1 { color: #fff; margin: .1rem 0 .3rem; font-size: 1.75rem; letter-spacing: -.02em; }
.cockpit-hero .greet, .cockpit-hero .greet .muted { color: rgba(255, 255, 255, .82); }
.org-tag { display: inline-block; vertical-align: middle; font-size: .72rem; font-weight: 700; letter-spacing: .08em; padding: .18rem .55rem;
  border-radius: 6px; background: var(--gold); color: #3b2b00; margin-left: .4rem; }
.ressort { display: flex; align-items: center; gap: .4rem; margin: 0 0 .9rem; font-weight: 500; color: rgba(255, 255, 255, .95); }
.ressort .icon { width: 18px; height: 18px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.hero-actions .btn { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .28); color: #fff; }
.hero-actions .btn:hover { background: rgba(255, 255, 255, .24); }
.hero-actions select { background: #fff; color: var(--ink); border-radius: 8px; min-height: 2rem; max-width: 22rem; }
.ch-right { display: flex; align-items: center; gap: 1.1rem; background: rgba(255, 255, 255, .96); color: var(--ink); border-radius: 14px; padding: .8rem 1.1rem; position: relative; z-index: 1; }
:root[data-theme="dark"] .ch-right { background: var(--card); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .ch-right { background: var(--card); } }
.hero-dims { list-style: none; margin: 0; padding: 0; display: grid; gap: .3rem; min-width: 230px; }
.hero-dims li { display: grid; grid-template-columns: 6.5rem 1fr 3rem; align-items: center; gap: .5rem; font-size: .84rem; }
.hero-dims meter { width: 100%; height: .5rem; }
.hero-dims b { text-align: right; }
.hero-dims .hero-verdict { display: block; margin-top: .2rem; }

.flash-critique { display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; padding: .75rem 1rem; margin-bottom: 1.25rem; border-radius: 12px;
  background: var(--danger-soft); color: var(--danger); border: 1px solid rgba(185, 28, 28, .3); animation: pulseIn .6s ease both; }
.flash-critique span { flex: 1; color: var(--ink); } .flash-critique a { font-weight: 600; color: var(--danger); }

.kpi-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1rem; margin-bottom: 1.25rem; }
.ktile { display: flex; flex-direction: column; gap: .2rem; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: .95rem 1rem .8rem; box-shadow: var(--shadow); color: var(--ink); position: relative; transition: transform .15s, box-shadow .15s; min-width: 0; }
.ktile:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(16, 24, 40, .1); text-decoration: none; }
.ktile::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 3px; border-radius: 0 3px 3px 0; background: var(--brand); }
.ktile.k-alert::before { background: var(--danger); }
.k-lbl { display: flex; align-items: center; gap: .35rem; font-size: .8rem; color: var(--muted); font-weight: 500; }
.k-lbl .icon { width: 15px; height: 15px; }
.k-val { font-size: 1.65rem; font-weight: 700; letter-spacing: -.02em; line-height: 1.15; }
.k-alert .k-val { color: var(--danger); }
.k-sub { font-size: .78rem; color: var(--muted); min-height: 2.2em; }
.k-sub .up { color: var(--green); }
.k-meter { width: 100%; height: .45rem; margin-top: auto; }
.kspark { width: 100%; height: 34px; margin-top: auto; }
.kspark polyline { fill: none; stroke: var(--brand); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.kspark circle { fill: var(--brand); }
.kspark.gold polyline { stroke: var(--gold); } .kspark.gold circle { fill: var(--gold); }
.kspark.green polyline { stroke: var(--green); } .kspark.green circle { fill: var(--green); }

.alert-center { padding: 0 0 .4rem; }
.ac-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: 1rem 1.25rem .6rem; }
.ac-head h2 { display: flex; align-items: center; gap: .45rem; margin: 0; }
.ac-filters { display: flex; gap: .4rem; flex-wrap: wrap; }
.alert-center .empty { padding: .5rem 1.25rem 1rem; display: flex; gap: .5rem; align-items: center; color: var(--green); }

.profil-duo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: .5rem; align-items: center; }
.profil-duo .ch-donut { display: block; margin: 0 auto; }
.dash-bottom { display: grid; grid-template-columns: 1.2fr 1fr .9fr; gap: 1.25rem; align-items: start; }
.count-pill { display: inline-block; font-size: .75rem; padding: .05rem .5rem; border-radius: 999px; background: var(--brand); color: #fff; vertical-align: 2px; margin-left: .3rem; }
.quick { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; padding: .3rem 1.1rem 1.1rem; }
.quick-btn { display: flex; flex-direction: column; align-items: flex-start; gap: .4rem; padding: .75rem; border-radius: 10px; background: var(--card-2);
  color: var(--ink); font-size: .85rem; font-weight: 500; border: 1px solid transparent; transition: border-color .15s, background .15s; }
.quick-btn:hover { border-color: var(--brand); background: var(--brand-soft); text-decoration: none; }
.quick-btn .icon { width: 20px; height: 20px; color: var(--brand-ink); }
@keyframes pulseIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@media (max-width: 1280px) { .kpi-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .dash-bottom { grid-template-columns: 1fr 1fr; } }
@media (max-width: 900px) { .ch-right { width: 100%; } .hero-dims { flex: 1; min-width: 0; } .dash-bottom { grid-template-columns: 1fr; } .profil-duo { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .kpi-grid { grid-template-columns: 1fr 1fr; } .cockpit-hero { padding: 1.1rem; } }
@media print { .cockpit-hero { background: none; color: var(--ink); box-shadow: none; } .cockpit-hero h1, .ressort { color: var(--ink); } .hero-actions, .ac-toggle, .ac-tools, .ac-act, .ac-plus { display: none; } .ac-corps[hidden] { display: none; } }
.chart-card.span-2c { grid-column: span 2; }
@media (max-width: 1100px) { .chart-card.span-2c { grid-column: 1 / -1; } }
.profil-duo .ch-legend-col { max-width: none; font-size: .78rem; } .profil-duo .ch-legend-col b { white-space: nowrap; }
/* v1.42 — membres par instance et par catégorie */
.par-instance { padding-bottom: .8rem; }
.pi-ligne { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; padding: .45rem 0; border-top: 1px solid var(--line); }
.pi-ligne:first-of-type { border-top: 0; }
.pi-ech { flex: 0 0 8.5rem; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.chip-link { display: inline-block; padding: .28rem .7rem; border-radius: 999px; border: 1px solid var(--brand); color: var(--brand-ink); font-size: .84rem; background: var(--card); }
.chip-link:hover { background: var(--brand); color: #fff; text-decoration: none; }
.chip-soft { border-color: var(--line); color: var(--ink-2); background: var(--card-2); }
@media (max-width: 600px) { .pi-ech { flex-basis: 100%; } }
/* v1.43 — demandes d'accès entre organisations */
.acces-list { list-style: none; margin: 0; padding: 0; }
.acces-item { padding: .9rem 0; border-top: 1px solid var(--line); }
.acces-item:first-child { border-top: 0; }
.acces-head { display: flex; flex-wrap: wrap; gap: .4rem; align-items: baseline; }
.acces-decision { margin-top: .5rem; padding: .75rem; background: var(--card-2); border-radius: 10px; }
.btn-row { display: flex; gap: .5rem; flex-wrap: wrap; }
.pill-acces-en_attente { background: var(--amber-soft); color: var(--amber-ink); }
.pill-acces-accordee { background: rgba(47, 111, 62, .14); color: var(--green); }
.pill-acces-refusee, .pill-acces-revoquee { background: var(--danger-soft); color: var(--danger); }
.pill-acces-annulee, .pill-acces-expiree { background: var(--card-2); color: var(--muted); }
/* v1.44 — adhésion aux unions : emblème sur la fiche et le formulaire */
.sheet-logo img.rect { width: auto; height: 64px; max-width: 120px; object-fit: contain; }
.form-emblem { height: 40px; width: 40px; object-fit: contain; vertical-align: middle; margin-right: .3rem; border-radius: 50%; }
.form-emblem.rect { width: auto; max-width: 64px; border-radius: 3px; }
.cond-form { display: flex; flex-wrap: wrap; gap: .6rem; align-items: flex-end; }
.cond-form label { display: flex; flex-direction: column; font-size: .85rem; gap: .2rem; }
.cond-form input { width: 6rem; }
/* v1.48 — boutiques des unions : emblème de l'union apposé sur les articles */
.shop-img { position: relative; }
.shop-img .shop-logo-badge { position: absolute; right: 8px; bottom: 8px; width: 42px; height: 42px; object-fit: contain; background: #fff; border-radius: 50%;
  padding: 3px; box-shadow: 0 2px 8px rgba(0, 0, 0, .25); }
.shop-img .shop-logo-badge.rect { width: auto; max-width: 64px; height: 36px; border-radius: 4px; }
.shop-img .shop-placeholder.rect { width: 55%; height: auto; object-fit: contain; }
/* v1.48.2 — emblème rectangulaire (drapeau de la FMC) : jamais recadré en rond */
.union-logo.rect { width: 92px; height: 64px; border-radius: 4px; background: transparent; }
.union-logo.mini.rect { width: 34px; height: 24px; border-radius: 2px; }
.brand-logo.union-logo.rect { width: 80px; height: 56px; }
.form-emblem.rect { height: 40px; width: 56px; max-width: none; border-radius: 3px; object-fit: contain; }
/* v1.49 — photos chargées à la demande */
.photo-lazy { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .3rem; cursor: pointer; font: inherit;
  color: var(--muted); font-size: .8rem; text-align: center; padding: .4rem; border: 1px dashed var(--line); background: var(--card-2); width: 100%; height: 100%; }
.photo-lazy:hover { color: var(--brand-ink); border-color: var(--brand); }
.photo-lazy .icon { width: 28px; height: 28px; }
.photo-lazy small { font-size: .6rem; opacity: .8; }
.photo-lazy.is-loading { opacity: .6; cursor: progress; }
.photo-lazy.is-error::after { content: "Photo indisponible"; color: var(--danger); font-size: .7rem; }
button.photo-id.photo-lazy { width: 110px; height: 140px; border-radius: 8px; }
.pc-photo .photo-lazy, .uc-photo .photo-lazy { border: 0; background: transparent; font-size: 7pt; color: #777; }
.pc-photo .photo-lazy small, .uc-photo .photo-lazy small { font-size: 5.5pt; }
.sheet-photo { float: right; width: 35mm; height: 45mm; margin: 0 0 3mm 5mm; border: 1px solid #000; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.sheet-photo img { width: 100%; height: 100%; object-fit: cover; }
.sheet-photo-vide { font-size: 9pt; color: #555; }
/* v1.50 — direction de la structure sur le tableau de bord */
.direction-panel { padding: 0 1.25rem .9rem; }
.dp-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: 1rem 0 .4rem; }
.dp-head h2 { display: flex; align-items: center; gap: .45rem; margin: 0; }
.dp-organe { border-top: 1px solid var(--line); padding: .6rem 0; }
.dp-organe summary { cursor: pointer; }
.dp-grid { list-style: none; margin: .6rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: .6rem; }
.dp-poste { background: var(--card-2); border-radius: 10px; padding: .55rem .75rem; display: flex; flex-direction: column; gap: .15rem; min-width: 0; }
.dp-poste.is-vacant { background: transparent; border: 1px dashed var(--line); }
.dp-fonction { font-size: .76rem; color: var(--muted); line-height: 1.25; }
.dp-nom { font-weight: 600; color: var(--ink); }
.dp-instances { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; margin: .8rem 0 0; }
.dp-instances > .icon { width: 18px; height: 18px; color: var(--muted); }
.dp-poste .badge-dot { align-self: flex-start; }
/* v1.51 — centre d'alertes : synthèse, liste à la demande */
.ac-head { padding-bottom: .4rem; }
.ac-synth { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .6rem; padding: .2rem 1.25rem .8rem; }
.ac-tile { font: inherit; text-align: left; display: flex; flex-direction: column; gap: .15rem; padding: .75rem .9rem; border-radius: 12px; border: 1px solid var(--line); background: var(--card-2); color: var(--ink); cursor: pointer; position: relative; transition: border-color .15s, box-shadow .15s; }
.ac-tile:hover:not(:disabled) { border-color: var(--ink-2); }
.ac-tile:disabled { opacity: .5; cursor: default; }
.ac-tile.is-on { box-shadow: 0 0 0 2px var(--ink) inset; }
.ac-t-n { font-size: 1.9rem; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.ac-t-l { display: flex; align-items: center; gap: .35rem; font-size: .8rem; color: var(--ink-2); }
.ac-t-l .icon { width: 15px; height: 15px; }
.ac-t-critique { border-left: 4px solid var(--danger); } .ac-t-critique .ac-t-n { color: var(--danger); }
.ac-t-important { border-left: 4px solid var(--amber); } .ac-t-important .ac-t-n { color: var(--amber-ink); }
.ac-t-info { border-left: 4px solid #1f5fa8; } .ac-t-info .ac-t-n { color: #1f5fa8; }
.ac-t-critique.is-hot { background: var(--danger-soft); }
.ac-cats { display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; padding: 0 1.25rem .9rem; }
.ac-cat-f { font: inherit; font-size: .78rem; padding: .22rem .6rem; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--ink-2); cursor: pointer; }
.ac-cat-f b { margin-left: .2rem; color: var(--ink); }
.ac-cat-f.has-crit { border-color: var(--danger); } .ac-cat-f.has-crit b { color: var(--danger); }
.ac-cat-f.is-on { background: var(--ink); border-color: var(--ink); color: var(--card); } .ac-cat-f.is-on b { color: inherit; }
.ac-corps { border-top: 1px solid var(--line); }
.ac-tools { display: flex; gap: .7rem; align-items: center; flex-wrap: wrap; padding: .8rem 1.25rem .4rem; }
.ac-search { flex: 1 1 260px; max-width: 420px; }
.ac-tools .btn { margin-left: auto; }
.ac-item { display: block; padding: 0 0 0 .9rem; border-top: 1px solid var(--line); }
.ac-item::before { top: .7rem; bottom: auto; height: 1.3rem; }
.ac-item > details > summary { list-style: none; }
.ac-item > details > summary::-webkit-details-marker { display: none; }
.ac-ligne { display: flex; align-items: center; gap: .6rem; padding: .6rem 0; cursor: pointer; min-width: 0; }
.ac-ligne .ac-badge { flex: none; }
.ac-ligne .ac-cat { flex: none; max-width: 12rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ac-ligne .ac-titre { margin: 0; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.ac-nb { flex: none; font-size: .72rem; font-weight: 600; min-width: 1.5rem; text-align: center; padding: .05rem .4rem; border-radius: 999px; background: var(--card-2); color: var(--ink-2); }
.ac-chev { flex: none; width: 8px; height: 8px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); margin: 0 .3rem 3px; transition: transform .15s; }
.ac-item details[open] .ac-chev { transform: rotate(-135deg); margin-bottom: -3px; }
.ac-item details[open] .ac-titre { white-space: normal; }
.ac-body { padding: 0 0 .9rem; }
.ac-body .ac-el { list-style: disc; margin: .45rem 0 0; padding-left: 1.2rem; font-size: .84rem; max-height: 16rem; overflow: auto; }
.ac-body .ac-act { flex-direction: row; align-items: center; justify-content: flex-start; margin-top: .6rem; }
.ac-sep { list-style: none; padding: .9rem 0 .4rem; font-weight: 600; font-size: .9rem; border-top: 1px solid var(--line); }
.ac-vide { padding: .4rem 1.25rem 1rem; margin: 0; }
.ac-plus { padding: .4rem 1.25rem .4rem; text-align: center; }
@media (max-width: 700px) {
  .ac-synth { grid-template-columns: 1fr 1fr; }
  .ac-ligne { flex-wrap: wrap; gap: .35rem .5rem; }
  .ac-ligne .ac-titre { flex-basis: 100%; order: 3; white-space: normal; }
}
.js-ac [hidden] { display: none !important; }
.ac-list { list-style: none; margin: 0; padding: 0 1.25rem; }
.ac-item { position: relative; }
.ac-item::before { content: ""; position: absolute; left: 0; width: 4px; border-radius: 4px; background: var(--muted); }
.ac-item.ac-critique::before { background: var(--danger); } .ac-item.ac-important::before { background: var(--amber); } .ac-item.ac-info::before { background: #1f5fa8; }
.ac-cat { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.ac-titre { color: var(--ink); }
.ac-det { margin: 0; font-size: .86rem; color: var(--ink-2); }
.ac-el small { color: var(--muted); margin-left: .35rem; }
.ac-act { display: flex; gap: .4rem; }
.ac-badge { font-size: .72rem; font-weight: 600; padding: .1rem .55rem; border-radius: 999px; background: var(--card-2); color: var(--ink-2); }
.ac-critique .ac-badge { background: var(--danger-soft); color: var(--danger); }
.ac-important .ac-badge { background: var(--amber-soft); color: var(--amber-ink); }
.ac-info .ac-badge { background: #e3edf9; color: #1f5fa8; }
/* v1.52 — centre d'alertes, présentation de nouvelle génération */
.alert-center { overflow: hidden; padding: 0; }
.alert-center .ac-head { padding: 1.1rem 1.25rem; margin-bottom: 1rem; background: linear-gradient(120deg, #1d1f27 0%, #2a1416 55%, var(--brand-dark) 100%); color: #fff; }
.ac-title { display: flex; align-items: center; gap: .8rem; }
.ac-title h2 { margin: 0; color: #fff; font-size: 1.1rem; letter-spacing: .01em; }
.ac-sous { margin: .1rem 0 0; font-size: .8rem; color: rgba(255,255,255,.68); }
.ac-title-ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(255,255,255,.12); box-shadow: inset 0 0 0 1px rgba(255,255,255,.18); }
.ac-title-ico .icon { width: 20px; height: 20px; color: #fff; }
.ac-head .ac-toggle { background: #fff; color: #1d1f27; border: 0; font-weight: 600; border-radius: 999px; padding: .45rem 1rem; box-shadow: 0 4px 14px rgba(0,0,0,.25); }
.ac-head .ac-toggle:hover { background: #f3f4f6; }
.alert-center .empty { padding: 0 1.25rem 1.1rem; }

.ac-synth { gap: .75rem; padding: 0 1.25rem .9rem; }
.ac-tile { --c: #475569; --s: #f1f5f9; gap: .45rem; padding: .85rem 1rem .8rem; border: 1px solid var(--line); border-left: 1px solid var(--line); border-radius: 14px;
  background: linear-gradient(180deg, var(--card) 0%, var(--card-2) 100%); box-shadow: 0 1px 2px rgba(16,24,40,.05); transition: transform .15s, box-shadow .15s, border-color .15s; }
.ac-tile:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 10px 24px -10px rgba(16,24,40,.25); border-color: var(--c); }
.ac-tile.is-on { box-shadow: 0 0 0 2px var(--c), 0 10px 24px -12px rgba(16,24,40,.3); border-color: var(--c); }
.ac-t-tout { --c: var(--ink); --s: var(--card-2); } .ac-t-critique { --c: var(--danger); --s: var(--danger-soft); }
.ac-t-important { --c: var(--amber); --s: var(--amber-soft); } .ac-t-info { --c: var(--info, #1f5fa8); --s: var(--info-soft, #e3edf9); }
.ac-t-top { display: flex; align-items: center; gap: .55rem; }
.ac-t-ico { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--s); color: var(--c); flex: none; }
.ac-t-ico .icon { width: 16px; height: 16px; }
.ac-tile .ac-t-l { font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.ac-tile .ac-t-n { font-size: 2.1rem; font-weight: 800; letter-spacing: -.02em; color: var(--c); }
.ac-t-tout .ac-t-n { color: var(--ink); }
.ac-t-bar { display: block; height: 6px; border-radius: 99px; background: var(--s); overflow: hidden; }
.ac-t-bar i { display: block; height: 100%; width: 0; border-radius: 99px; background: var(--c); transition: width .6s ease; }
.ac-dist { display: flex; height: 6px; border-radius: 99px; overflow: hidden; gap: 2px; background: var(--card-2); }
.ac-dist i { display: block; flex: 1 1 0; } .ac-dist .d-critique { background: var(--danger); } .ac-dist .d-important { background: var(--amber); } .ac-dist .d-info { background: #1f5fa8; }
.ac-tile.ac-t-critique.is-hot { background: linear-gradient(180deg, var(--card) 0%, var(--danger-soft) 100%); border-color: color-mix(in srgb, var(--danger) 40%, transparent); }
.ac-tile.is-hot .ac-t-ico { animation: acPulse 2s ease-out infinite; }
@keyframes acPulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--danger) 45%, transparent); } 70% { box-shadow: 0 0 0 10px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
@media (prefers-reduced-motion: reduce) { .ac-tile.is-hot .ac-t-ico { animation: none; } .ac-tile, .ac-t-bar i { transition: none; } }

.ac-cats { gap: .45rem; padding: 0 1.25rem 1.1rem; }
.ac-cat-f { display: inline-flex; align-items: center; gap: .4rem; padding: .32rem .75rem; font-size: .8rem; font-weight: 500; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--ink-2); box-shadow: 0 1px 2px rgba(16,24,40,.04); transition: background .15s, border-color .15s; }
.ac-cat-f:hover { border-color: var(--ink-2); background: var(--card-2); }
.ac-dot { width: 7px; height: 7px; border-radius: 50%; background: #94a3b8; flex: none; }
.ac-cat-f.has-crit { border-color: color-mix(in srgb, var(--danger) 45%, transparent); background: color-mix(in srgb, var(--danger-soft) 55%, var(--card)); }
.ac-cat-f.has-crit .ac-dot { background: var(--danger); }
.ac-cat-f b { font-weight: 700; padding: 0 .4rem; border-radius: 99px; background: var(--card-2); font-size: .74rem; color: var(--ink); }
.ac-cat-f.has-crit b { background: var(--danger); color: #fff; }
.ac-cat-f.is-on { background: #1d1f27; border-color: #1d1f27; color: #fff; } .ac-cat-f.is-on b { background: rgba(255,255,255,.18); color: #fff; }
.ac-corps { background: var(--card-2); border-top: 1px solid var(--line); }
.ac-tools { padding: .9rem 1.25rem .6rem; }
.ac-search { border-radius: 999px; padding-left: 1rem; background: var(--card); }
.ac-list { padding: 0 1.25rem; display: flex; flex-direction: column; gap: .45rem; }
.ac-item { border-top: 0; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 0 .9rem 0 1.1rem; overflow: hidden; transition: box-shadow .15s; }
.ac-item:hover { box-shadow: 0 6px 18px -10px rgba(16,24,40,.3); }
.ac-item::before { top: 0; bottom: 0; height: auto; border-radius: 0; }
.ac-sep { border: 0; padding: .8rem 0 .2rem; }
.ac-plus { padding: .8rem 1.25rem 1rem; }
.ac-head .ac-toggle[aria-expanded="false"] .js-ac-lib::after { content: " →"; }
@media (max-width: 700px) { .alert-center .ac-head { flex-direction: column; align-items: flex-start; } }
:root[data-theme="dark"] .ac-t-info, :root[data-theme="dark"] .ac-info .ac-badge { --info: #6ea8ec; --info-soft: #172a42; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .ac-t-info, :root:not([data-theme="light"]) .ac-info .ac-badge { --info: #6ea8ec; --info-soft: #172a42; } }
.ac-info .ac-badge { background: var(--info-soft, #e3edf9); color: var(--info, #1f5fa8); }
