@charset "UTF-8";
/* ============================================================
   SunuCommunauté — Feuille de style unique
   Thème : #38B6FF (bleu En Avant) · #2D3436 (encre) · #FCFCFC (papier)
   Exprimé en OKLCH pour des dégradés de teinte perceptuellement réguliers.
   ============================================================ */

/* ---------- 1. Jetons ---------- */
:root {
  /* Bleu de marque #38B6FF */
  --bleu-050: oklch(97.5% 0.018 240);
  --bleu-100: oklch(93.5% 0.042 240);
  --bleu-200: oklch(88%   0.075 240);
  --bleu-400: oklch(79%   0.120 240);
  --bleu-500: oklch(74%   0.145 240);      /* #38B6FF */
  --bleu-600: oklch(64%   0.155 243);
  --bleu-700: oklch(53%   0.145 246);
  --bleu-900: oklch(36%   0.110 250);

  /* Encre #2D3436 + neutres teintés vers le bleu (jamais de gris pur) */
  --encre:    oklch(28%   0.012 235);      /* #2D3436 */
  --encre-2:  oklch(43%   0.014 238);
  --encre-3:  oklch(58%   0.013 240);
  --encre-4:  oklch(72%   0.010 240);
  --trait:    oklch(89%   0.008 240);
  --trait-2:  oklch(94.5% 0.006 240);

  /* Surfaces */
  --papier:   oklch(98.6% 0.003 240);      /* #FCFCFC */
  --surface:  oklch(99.6% 0.002 240);
  --surface-2:oklch(97%   0.005 240);

  /* Sémantiques */
  --ok:       oklch(60%   0.135 152);
  --ok-bg:    oklch(96%   0.038 152);
  --alerte:   oklch(72%   0.150 72);
  --alerte-bg:oklch(96.5% 0.045 78);
  --danger:   oklch(56%   0.180 26);
  --danger-bg:oklch(96%   0.035 26);

  /* Espacements — base 4pt, rythme calé sur la hauteur de ligne (24px) */
  --e1: 4px;  --e2: 8px;  --e3: 12px; --e4: 16px;
  --e5: 24px; --e6: 32px; --e7: 48px; --e8: 64px; --e9: 96px;

  /* Rayons */
  --r-s: 6px; --r-m: 10px; --r-l: 16px; --r-xl: 24px; --r-pill: 999px;

  /* Élévation (discrète) */
  --ombre-s: 0 1px 2px oklch(28% 0.02 240 / .06);
  --ombre-m: 0 2px 4px oklch(28% 0.02 240 / .05), 0 8px 20px oklch(28% 0.02 240 / .06);
  --ombre-l: 0 4px 8px oklch(28% 0.02 240 / .06), 0 24px 48px oklch(28% 0.03 240 / .10);

  /* Courbes */
  --sortie: cubic-bezier(.22,1,.36,1);
  --entree: cubic-bezier(.7,0,.84,0);

  /* Typographie */
  --titre: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --texte: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Consolas, monospace;

  --z-menu: 40; --z-fixe: 60; --z-voile: 80; --z-modale: 90; --z-toast: 100;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  font-family: var(--texte);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--encre);
  background: var(--papier);
  -webkit-font-smoothing: antialiased;
  font-optical-sizing: auto;
  min-height: 100vh;
}

h1, h2, h3, h4 { font-family: var(--titre); font-weight: 700; line-height: 1.15; text-wrap: balance; letter-spacing: -.02em; }
h1 { font-size: clamp(1.75rem, 1.2rem + 2.4vw, 2.6rem); }
h2 { font-size: clamp(1.35rem, 1.1rem + 1.1vw, 1.75rem); }
h3 { font-size: 1.15rem; }
p  { text-wrap: pretty; }
a  { color: var(--bleu-700); text-decoration-thickness: 1px; text-underline-offset: 2px; }
img, svg { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--bleu-400); outline-offset: 2px; border-radius: var(--r-s); }
::selection { background: var(--bleu-200); }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.num { font-variant-numeric: tabular-nums; }
.sigle { text-transform: uppercase; letter-spacing: .1em; font-size: .75rem; font-weight: 600; }

/* ============================================================
   2. PARTIE PUBLIQUE — mobile first, couleur assumée
   ============================================================ */
.public { display: grid; grid-template-columns: 1fr; min-height: 100vh; }

.vitrine {
  position: relative;
  background:
    radial-gradient(120% 90% at 15% 0%, var(--bleu-400) 0%, var(--bleu-600) 45%, var(--bleu-900) 100%);
  color: var(--papier);
  padding: var(--e5) var(--e4) var(--e6);
  overflow: hidden;
  isolation: isolate;
}
.vitrine::after {           /* trame de fond discrète, rappel du drapeau */
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .10;
  background-image: repeating-linear-gradient(115deg, oklch(100% 0 0 / .8) 0 2px, transparent 2px 14px);
}
.vitrine__marque { display: flex; align-items: center; gap: var(--e3); }
.vitrine__logo {
  width: 56px; height: 56px; border-radius: 14px; object-fit: cover; flex: none;
  background: var(--bleu-500); box-shadow: var(--ombre-m);
}
.vitrine__nom { font-family: var(--titre); font-size: 1.3rem; font-weight: 800; letter-spacing: -.03em; }
.vitrine__nom span { color: oklch(100% 0 0 / .72); font-weight: 500; }
.vitrine__sigle { color: oklch(100% 0 0 / .8); }

.vitrine__accroche { margin-top: var(--e6); max-width: 22ch; }
.vitrine__accroche h1 { font-size: clamp(2rem, 1.4rem + 4vw, 3.4rem); font-weight: 800; }
.vitrine__slogan {
  margin-top: var(--e3); font-size: 1.0625rem; line-height: 1.55;
  color: oklch(100% 0 0 / .85); max-width: 34ch;
}
/* Portrait cliquable : ouvre l'affiche en grand */
.vitrine__president {
  display: flex; align-items: center; gap: var(--e3); margin-top: var(--e5);
  width: 100%; text-align: left; padding: var(--e2); margin-left: calc(var(--e2) * -1);
  background: none; border: 0; border-radius: var(--r-l); cursor: zoom-in; color: inherit; font: inherit;
  transition: background .2s var(--sortie);
}
.vitrine__president:hover { background: oklch(100% 0 0 / .10); }
.vitrine__president img {
  width: 64px; height: 64px; border-radius: var(--r-pill); object-fit: cover; object-position: 62% 22%;
  border: 2px solid oklch(100% 0 0 / .6); flex: none;
  transition: transform .3s var(--sortie), border-color .2s var(--sortie);
}
.vitrine__president:hover img { transform: scale(1.06); border-color: var(--papier); }
.vitrine__president p { font-size: .875rem; color: oklch(100% 0 0 / .78); }
.vitrine__president strong { display: block; color: var(--papier); font-size: 1rem; }
.vitrine__loupe {
  display: inline-flex; align-items: center; gap: 5px; margin-top: 3px;
  font-size: .6875rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 700;
  color: var(--papier); border-bottom: 1px solid oklch(100% 0 0 / .45); padding-bottom: 1px;
}
.vitrine__loupe::before { content: "⤢"; font-size: .8125rem; }

/* Visionneuse plein écran */
.visionneuse {
  border: 0; padding: 0; max-width: min(94vw, 620px); width: 100%; max-height: 92vh;
  background: var(--surface); border-radius: var(--r-l); overflow: hidden; box-shadow: var(--ombre-l);
}
.visionneuse::backdrop { background: oklch(20% 0.03 240 / .82); }
.visionneuse[open] { animation: monte .34s var(--sortie) both; }
.visionneuse img { width: 100%; max-height: 76vh; object-fit: contain; background: var(--bleu-500); }
.visionneuse__pied { display: flex; align-items: center; gap: var(--e3); padding: var(--e3) var(--e4); flex-wrap: wrap; }
.visionneuse__pied strong { display: block; font-family: var(--titre); font-size: 1rem; }
.visionneuse__pied span { font-size: .8125rem; color: var(--encre-3); }
.visionneuse__pied button { margin-left: auto; }

.chiffres { display: flex; gap: var(--e5); margin-top: var(--e6); padding-top: var(--e4); border-top: 1px solid oklch(100% 0 0 / .22); }
.chiffres div { line-height: 1.2; }
.chiffres b { font-family: var(--titre); font-size: 1.5rem; display: block; }
.chiffres span { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: oklch(100% 0 0 / .7); }

/* Panneau formulaire */
.adhesion { padding: var(--e6) var(--e4) var(--e8); background: var(--papier); }
.adhesion__entete { max-width: 46ch; margin-bottom: var(--e5); }
.adhesion__entete p { color: var(--encre-2); margin-top: var(--e2); }
.etape { display: inline-flex; align-items: center; gap: var(--e2); color: var(--bleu-700); font-weight: 600; font-size: .8125rem; text-transform: uppercase; letter-spacing: .08em; }
.etape::before { content: ""; width: 22px; height: 2px; background: var(--bleu-500); }

/* ============================================================
   3. FORMULAIRES
   ============================================================ */
.champs { display: grid; gap: var(--e4); }
.champs--2 { grid-template-columns: 1fr; }
@media (min-width: 700px) { .champs--2 { grid-template-columns: 1fr 1fr; } .champs--2 .plein { grid-column: 1 / -1; } }

.champ { display: grid; gap: 6px; }
.champ > label { font-size: .875rem; font-weight: 600; color: var(--encre-2); }
.champ .aide { font-size: .8125rem; color: var(--encre-3); }
.oblig { color: var(--danger); }

.saisie, select.saisie, textarea.saisie {
  width: 100%; padding: 13px var(--e3); background: var(--surface);
  border: 1.5px solid var(--trait); border-radius: var(--r-m);
  transition: border-color .18s var(--sortie), box-shadow .18s var(--sortie), background .18s var(--sortie);
  min-height: 48px;
}
.saisie::placeholder { color: var(--encre-4); }
.saisie:hover { border-color: var(--encre-4); }
.saisie:focus { outline: none; border-color: var(--bleu-500); box-shadow: 0 0 0 4px var(--bleu-100); background: var(--surface); }
.saisie:disabled { background: var(--surface-2); color: var(--encre-3); cursor: not-allowed; }
.saisie[aria-invalid="true"] { border-color: var(--danger); box-shadow: 0 0 0 4px var(--danger-bg); }
.saisie.maj { text-transform: uppercase; }
select.saisie { appearance: none; padding-right: var(--e6);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'><path d='M1 1l6 6 6-6' fill='none' stroke='%232D3436' stroke-width='2' stroke-linecap='round'/></svg>");
  background-repeat: no-repeat; background-position: right var(--e3) center; }
textarea.saisie { min-height: 96px; resize: vertical; line-height: 1.5; }

/* Téléphone avec indicatif */
.tel { display: flex; align-items: stretch; border: 1.5px solid var(--trait); border-radius: var(--r-m); background: var(--surface); overflow: hidden; transition: border-color .18s var(--sortie), box-shadow .18s var(--sortie); }
.tel:focus-within { border-color: var(--bleu-500); box-shadow: 0 0 0 4px var(--bleu-100); }
.tel__prefixe { display: flex; align-items: center; gap: 6px; padding: 0 var(--e3); background: var(--surface-2); border-right: 1.5px solid var(--trait); font-weight: 600; color: var(--encre-2); font-variant-numeric: tabular-nums; }
.tel input { flex: 1; border: 0; background: none; padding: 13px var(--e3); min-height: 48px; letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.tel input:focus { outline: none; }
/* Confirmation du numéro : différent / identique */
.tel:has(input[aria-invalid="true"]) { border-color: var(--danger); box-shadow: 0 0 0 4px var(--danger-bg); }
.tel--ok { border-color: var(--ok); }
.aide--erreur { color: var(--danger) !important; font-weight: 600; }
.aide--ok { color: var(--ok) !important; font-weight: 600; }

/* Dépôt d'image CIN */
.depots { display: grid; gap: var(--e3); grid-template-columns: 1fr 1fr; }
@media (max-width: 460px) { .depots { grid-template-columns: 1fr; } }
.depot { position: relative; }
.depot input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.depot__zone {
  display: grid; place-items: center; gap: 6px; text-align: center;
  aspect-ratio: 8 / 5; padding: var(--e3);
  border: 2px dashed var(--bleu-200); border-radius: var(--r-l);
  background: var(--bleu-050); color: var(--bleu-700);
  transition: border-color .2s var(--sortie), background .2s var(--sortie), transform .2s var(--sortie);
  overflow: hidden;
}
.depot:hover .depot__zone, .depot input:focus-visible + .depot__zone { border-color: var(--bleu-500); background: var(--bleu-100); }
.depot--rempli .depot__zone { border-style: solid; border-color: var(--ok); background: var(--surface); padding: 0; }
.depot__zone img { width: 100%; height: 100%; object-fit: cover; }
.depot__icone { width: 26px; height: 26px; stroke: currentColor; fill: none; stroke-width: 1.7; }
.depot__titre { font-weight: 700; font-size: .9375rem; }
.depot__hint { font-size: .75rem; color: var(--encre-3); }
.depot__pastille { position: absolute; top: 8px; right: 8px; z-index: 2; background: var(--ok); color: oklch(99% 0.01 152); font-size: .6875rem; font-weight: 700; padding: 3px 9px; border-radius: var(--r-pill); display: none; }
.depot--rempli .depot__pastille { display: block; }
.depot--travail .depot__zone { border-color: var(--bleu-500); background: var(--bleu-100); }
.depot__poids { position: absolute; bottom: 8px; left: 8px; right: 8px; z-index: 2; background: oklch(28% 0.02 240 / .8); color: var(--papier); font-size: .6875rem; font-variant-numeric: tabular-nums; padding: 3px 8px; border-radius: var(--r-s); text-align: center; display: none; }
.depot--rempli .depot__poids { display: block; }

.consentement { display: flex; gap: var(--e3); align-items: flex-start; padding: var(--e3) 0; }
.consentement input { width: 22px; height: 22px; accent-color: var(--bleu-600); flex: none; margin-top: 2px; }
.consentement label { font-size: .875rem; color: var(--encre-2); }

/* ============================================================
   4. BOUTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--e2);
  min-height: 44px; padding: 11px var(--e4); border: 1.5px solid transparent;
  border-radius: var(--r-m); font-weight: 650; font-size: .9375rem; cursor: pointer;
  text-decoration: none; white-space: nowrap;
  transition: transform .12s var(--sortie), background .15s var(--sortie), box-shadow .15s var(--sortie), border-color .15s var(--sortie), color .15s var(--sortie);
}
.btn:active { transform: translateY(1px); }
.btn[disabled], .btn.charge { opacity: .65; pointer-events: none; }
.btn svg { width: 17px; height: 17px; stroke: currentColor; fill: none; stroke-width: 1.9; }

.btn--primaire { background: var(--bleu-600); color: oklch(99% 0.005 240); box-shadow: var(--ombre-s); }
.btn--primaire:hover { background: var(--bleu-700); box-shadow: var(--ombre-m); }
.btn--encre { background: var(--encre); color: var(--papier); }
.btn--encre:hover { background: oklch(22% 0.014 235); }
.btn--fantome { background: var(--surface); border-color: var(--trait); color: var(--encre-2); }
.btn--fantome:hover { border-color: var(--encre-4); background: var(--surface-2); color: var(--encre); }
.btn--danger { background: var(--danger-bg); color: var(--danger); border-color: oklch(88% 0.06 26); }
.btn--danger:hover { background: var(--danger); color: oklch(98% 0.01 26); border-color: transparent; }
.btn--ok { background: var(--ok-bg); color: var(--ok); border-color: oklch(88% 0.06 152); }
.btn--ok:hover { background: var(--ok); color: oklch(98% 0.01 152); border-color: transparent; }
.btn--bloc { width: 100%; }
.btn--xl { min-height: 54px; font-size: 1.0625rem; padding: var(--e3) var(--e5); border-radius: var(--r-l); }
.btn--petit { min-height: 36px; padding: 6px var(--e3); font-size: .8125rem; border-radius: var(--r-s); }
.btn--icone { min-height: 36px; width: 36px; padding: 0; border-radius: var(--r-s); }

.btn .filateur { width: 16px; height: 16px; border: 2px solid oklch(100% 0 0 / .45); border-top-color: currentColor; border-radius: 50%; animation: tourne .7s linear infinite; display: none; }
.btn.charge .filateur { display: block; }
@keyframes tourne { to { transform: rotate(360deg); } }

.actions { display: flex; flex-wrap: wrap; gap: var(--e2); }

/* ============================================================
   5. ADMIN — coquille
   ============================================================ */
.coque { display: grid; grid-template-columns: 1fr; min-height: 100vh; }
@media (min-width: 1024px) { .coque { grid-template-columns: 264px 1fr; } }

.flanc {
  background: var(--encre); color: oklch(92% 0.01 240);
  display: flex; flex-direction: column; gap: var(--e2);
  padding: var(--e4) var(--e3);
  position: fixed; inset: 0 auto 0 0; width: 264px; z-index: var(--z-menu);
  transform: translateX(-100%); transition: transform .32s var(--sortie);
  overflow-y: auto;
}
.flanc.ouvert { transform: none; box-shadow: var(--ombre-l); }
@media (min-width: 1024px) { .flanc { position: sticky; top: 0; height: 100vh; transform: none; } }

.flanc__marque { display: flex; align-items: center; gap: var(--e3); padding: var(--e2) var(--e2) var(--e4); }
.flanc__marque img { width: 40px; height: 40px; border-radius: 11px; flex: none; }
.flanc__marque b { font-family: var(--titre); font-size: 1.0625rem; letter-spacing: -.02em; display: block; }
.flanc__marque span { font-size: .6875rem; text-transform: uppercase; letter-spacing: .1em; color: oklch(78% 0.02 240); }

.flanc__section { font-size: .6875rem; text-transform: uppercase; letter-spacing: .12em; color: oklch(66% 0.02 240); padding: var(--e4) var(--e2) 6px; font-weight: 600; }
.nav-lien {
  display: flex; align-items: center; gap: var(--e3); padding: 11px var(--e3);
  border-radius: var(--r-m); color: oklch(88% 0.012 240); text-decoration: none; font-weight: 550; font-size: .9375rem;
  transition: background .15s var(--sortie), color .15s var(--sortie);
}
.nav-lien svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.8; flex: none; }
.nav-lien:hover { background: oklch(100% 0 0 / .07); color: var(--papier); }
.nav-lien.actif { background: var(--bleu-600); color: oklch(99% 0.005 240); }
.nav-lien .pastille { margin-left: auto; background: var(--alerte); color: oklch(25% 0.06 72); font-size: .6875rem; font-weight: 700; padding: 1px 8px; border-radius: var(--r-pill); }
.flanc__pied { margin-top: auto; padding-top: var(--e4); border-top: 1px solid oklch(100% 0 0 / .12); }
.flanc__moi { display: flex; align-items: center; gap: var(--e3); padding: var(--e2) var(--e3); }
.avatar { width: 36px; height: 36px; border-radius: var(--r-pill); background: var(--bleu-600); color: oklch(99% 0.005 240); display: grid; place-items: center; font-weight: 700; font-size: .875rem; flex: none; }
.flanc__moi b { font-size: .875rem; display: block; }
.flanc__moi span { font-size: .75rem; color: oklch(72% 0.02 240); }

.voile { position: fixed; inset: 0; background: oklch(28% 0.02 240 / .5); z-index: 30; opacity: 0; pointer-events: none; transition: opacity .25s var(--sortie); }
.voile.visible { opacity: 1; pointer-events: auto; }
@media (min-width: 1024px) { .voile { display: none; } }

.principal { display: flex; flex-direction: column; min-width: 0; }
.barre {
  display: flex; align-items: center; gap: var(--e3);
  padding: var(--e3) var(--e4); background: var(--surface);
  border-bottom: 1px solid var(--trait); position: sticky; top: 0; z-index: var(--z-fixe);
}
.barre h1 { font-size: 1.125rem; letter-spacing: -.01em; }
.barre .fil { font-size: .75rem; color: var(--encre-3); text-transform: uppercase; letter-spacing: .08em; }
.barre__droite { margin-left: auto; display: flex; align-items: center; gap: var(--e2); }
.hamburger { background: none; border: 1.5px solid var(--trait); border-radius: var(--r-s); width: 40px; height: 40px; display: grid; place-items: center; cursor: pointer; flex: none; }
.hamburger svg { width: 20px; height: 20px; stroke: var(--encre); fill: none; stroke-width: 1.9; }
@media (min-width: 1024px) { .hamburger { display: none; } }

.contenu { padding: var(--e5) var(--e4) var(--e9); display: grid; gap: var(--e5); align-content: start; }
@media (min-width: 768px) { .contenu { padding: var(--e6) var(--e6) var(--e9); } }

/* ============================================================
   6. BLOCS, TABLEAUX, FILTRES
   ============================================================ */
.bloc { background: var(--surface); border: 1px solid var(--trait); border-radius: var(--r-l); }
.bloc__tete { display: flex; align-items: center; gap: var(--e3); flex-wrap: wrap; padding: var(--e4) var(--e5); border-bottom: 1px solid var(--trait-2); }
.bloc__tete h2 { font-size: 1.0625rem; }
.bloc__tete .actions { margin-left: auto; }
.bloc__corps { padding: var(--e5); }
.bloc__pied { padding: var(--e3) var(--e5); border-top: 1px solid var(--trait-2); display: flex; align-items: center; gap: var(--e3); flex-wrap: wrap; }

/* Bandeau de statistiques : une bande, pas six cartes clonées */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); background: var(--surface); border: 1px solid var(--trait); border-radius: var(--r-l); overflow: hidden; }
.stat { padding: var(--e4) var(--e5); border-right: 1px solid var(--trait-2); border-bottom: 1px solid var(--trait-2); }
.stat:last-child { border-right: 0; }
.stat dt { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--encre-3); font-weight: 600; }
.stat dd { font-family: var(--titre); font-size: 1.75rem; font-weight: 700; margin-top: 4px; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.stat small { font-size: .8125rem; color: var(--encre-3); font-weight: 500; }
.stat--accent { background: var(--bleu-050); }
.stat--accent dd { color: var(--bleu-700); }

.filtres { display: grid; gap: var(--e3); grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); align-items: end; padding: var(--e4) var(--e5); background: var(--surface-2); border-bottom: 1px solid var(--trait); }
.filtres .champ > label { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--encre-3); }
.filtres .saisie { min-height: 42px; padding: 9px var(--e3); background: var(--surface); }
.filtres__boutons { display: flex; gap: var(--e2); }

.tableau-enveloppe { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.tab { width: 100%; border-collapse: collapse; font-size: .9375rem; }
table.tab th, table.tab td { padding: var(--e3) var(--e4); text-align: left; vertical-align: middle; }
table.tab thead th {
  font-size: .75rem; text-transform: uppercase; letter-spacing: .07em; color: var(--encre-3);
  background: var(--surface-2); border-bottom: 1px solid var(--trait); font-weight: 700; white-space: nowrap; position: sticky; top: 0;
}
table.tab thead th a { color: inherit; text-decoration: none; display: inline-flex; gap: 4px; align-items: center; }
table.tab thead th a:hover { color: var(--bleu-700); }
table.tab tbody tr { border-bottom: 1px solid var(--trait-2); }
table.tab tbody tr:hover { background: var(--bleu-050); }
table.tab tbody tr:last-child { border-bottom: 0; }
table.tab td.num, table.tab th.num { font-variant-numeric: tabular-nums; text-align: right; }
table.tab .principal-cell { font-weight: 650; }
table.tab .secondaire { color: var(--encre-3); font-size: .8125rem; }
table.tab td .actions { justify-content: flex-end; flex-wrap: nowrap; }
.mini-photo { width: 38px; height: 38px; border-radius: var(--r-s); object-fit: cover; border: 1px solid var(--trait); background: var(--surface-2); }

.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: var(--r-pill); font-size: .75rem; font-weight: 650; white-space: nowrap; }
.badge--ok { background: var(--ok-bg); color: oklch(42% 0.11 152); }
.badge--attente { background: var(--alerte-bg); color: oklch(46% 0.11 62); }
.badge--ko { background: var(--danger-bg); color: oklch(45% 0.15 26); }
.badge--neutre { background: var(--surface-2); color: var(--encre-2); }
.badge--info { background: var(--bleu-100); color: var(--bleu-900); }

.pagination { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.pagination a, .pagination span { min-width: 36px; height: 36px; display: grid; place-items: center; padding: 0 var(--e2); border-radius: var(--r-s); font-size: .875rem; text-decoration: none; color: var(--encre-2); border: 1px solid var(--trait); font-variant-numeric: tabular-nums; }
.pagination a:hover { border-color: var(--bleu-500); color: var(--bleu-700); }
.pagination .courant { background: var(--encre); color: var(--papier); border-color: var(--encre); font-weight: 700; }
.pagination .inactif { opacity: .4; }
.compteur { font-size: .875rem; color: var(--encre-3); font-variant-numeric: tabular-nums; }

/* États vides / erreurs */
.vide { text-align: center; padding: var(--e8) var(--e4); display: grid; gap: var(--e3); justify-items: center; }
.vide svg { width: 40px; height: 40px; stroke: var(--encre-4); fill: none; stroke-width: 1.5; }
.vide__titre { font-family: var(--titre); font-size: 1.25rem; }
.vide__txt { color: var(--encre-3); max-width: 46ch; }

/* ============================================================
   7. FICHE MEMBRE
   ============================================================ */
.fiche { display: grid; gap: var(--e5); }
@media (min-width: 980px) { .fiche { grid-template-columns: 1.35fr .95fr; align-items: start; } }
.fiche__entete { display: flex; gap: var(--e4); align-items: center; flex-wrap: wrap; }
.fiche__entete .avatar { width: 60px; height: 60px; font-size: 1.25rem; }
.fiche__entete h2 { font-size: 1.5rem; }
.fiche__entete .meta { color: var(--encre-3); font-size: .875rem; }

.paires { display: grid; gap: 0; }
.paire { display: grid; grid-template-columns: 40% 1fr; gap: var(--e3); padding: 11px 0; border-bottom: 1px solid var(--trait-2); }
.paire:last-child { border-bottom: 0; }
.paire dt { font-size: .8125rem; color: var(--encre-3); text-transform: uppercase; letter-spacing: .05em; font-weight: 600; }
.paire dd { font-weight: 550; }

.cin-duo { display: grid; grid-template-columns: 1fr 1fr; gap: var(--e3); }
.cin-vue { display: block; border: 1px solid var(--trait); border-radius: var(--r-m); overflow: hidden; background: var(--surface-2); position: relative; }
.cin-vue img { width: 100%; aspect-ratio: 8/5; object-fit: cover; transition: transform .4s var(--sortie); }
.cin-vue:hover img { transform: scale(1.04); }
.cin-vue figcaption { position: absolute; bottom: 0; left: 0; right: 0; padding: 5px var(--e2); background: oklch(28% 0.02 240 / .78); color: var(--papier); font-size: .6875rem; text-transform: uppercase; letter-spacing: .08em; text-align: center; }

/* Grille des 12 mois de cotisation */
.mois-grille { display: grid; grid-template-columns: repeat(auto-fit, minmax(84px, 1fr)); gap: var(--e2); }
.mois {
  border: 1.5px solid var(--trait); border-radius: var(--r-m); padding: var(--e2) var(--e2) 9px;
  text-align: center; background: var(--surface); display: grid; gap: 2px; position: relative;
  transition: border-color .18s var(--sortie), background .18s var(--sortie);
}
.mois b { font-size: .8125rem; text-transform: uppercase; letter-spacing: .05em; }
.mois span { font-size: .6875rem; color: var(--encre-3); font-variant-numeric: tabular-nums; }
.mois--paye { background: var(--ok-bg); border-color: oklch(86% 0.07 152); }
.mois--paye b { color: oklch(40% 0.11 152); }
.mois--du { background: var(--alerte-bg); border-color: oklch(88% 0.08 78); }
.mois--futur { opacity: .5; }
.mois label { display: flex; align-items: center; justify-content: center; gap: 5px; cursor: pointer; font-size: .8125rem; }
.mois input { width: 18px; height: 18px; accent-color: var(--bleu-600); }

.jauge { height: 8px; border-radius: var(--r-pill); background: var(--surface-2); overflow: hidden; }
.jauge > i { display: block; height: 100%; background: var(--bleu-500); border-radius: inherit; transition: width .6s var(--sortie); }
.jauge--ok > i { background: var(--ok); }

/* Encadré d'information (sans bande latérale colorée) */
.info { display: flex; gap: var(--e3); padding: var(--e3) var(--e4); border: 1px solid var(--bleu-200); background: var(--bleu-050); border-radius: var(--r-m); font-size: .9375rem; color: var(--bleu-900); }
.info svg { width: 19px; height: 19px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; margin-top: 2px; }
.info--alerte { border-color: oklch(88% 0.08 78); background: var(--alerte-bg); color: oklch(40% 0.10 62); }
.info--danger { border-color: oklch(88% 0.06 26); background: var(--danger-bg); color: oklch(43% 0.14 26); }

.onglets { display: flex; gap: var(--e1); border-bottom: 1px solid var(--trait); overflow-x: auto; }
.onglet { padding: var(--e3) var(--e4); border: 0; background: none; cursor: pointer; font-weight: 600; color: var(--encre-3); border-bottom: 2px solid transparent; white-space: nowrap; text-decoration: none; }
.onglet:hover { color: var(--encre); }
.onglet.actif { color: var(--bleu-700); border-bottom-color: var(--bleu-600); }

/* ============================================================
   8. CONNEXION ADMIN
   ============================================================ */
.connexion { min-height: 100vh; display: grid; place-items: center; padding: var(--e5) var(--e4);
  background: radial-gradient(90% 70% at 50% 0%, var(--bleu-050) 0%, var(--papier) 60%); }
.connexion__boite { width: 100%; max-width: 400px; display: grid; gap: var(--e5); }
.connexion__marque { display: grid; justify-items: center; gap: var(--e3); text-align: center; }
.connexion__marque img { width: 68px; height: 68px; border-radius: 18px; box-shadow: var(--ombre-m); }
.connexion__marque h1 { font-size: 1.5rem; }
.connexion__marque p { color: var(--encre-3); font-size: .875rem; }
.connexion form { background: var(--surface); border: 1px solid var(--trait); border-radius: var(--r-l); padding: var(--e5); display: grid; gap: var(--e4); box-shadow: var(--ombre-m); }
.connexion__pied { text-align: center; font-size: .8125rem; color: var(--encre-3); }

/* ============================================================
   8 bis. AGENTS DE TERRAIN
   Registre de paie plutôt que tableau de bord : lignes réglées,
   chiffres tabulaires, points de conduite. Aucun encadré décoratif.
   ============================================================ */

/* ---------- Bandeau posé sur le formulaire d'adhésion ---------- */
.bandeau-agent {
  background: var(--encre); color: oklch(94% 0.008 240);
  border-radius: var(--r-l); overflow: hidden; margin-bottom: var(--e5);
}
.bandeau-agent__tete { display: flex; align-items: center; gap: var(--e3); padding: var(--e3) var(--e4); }
.bandeau-agent__tete .avatar { background: var(--bleu-500); color: var(--encre); font-weight: 800; }
.bandeau-agent__tete b { font-family: var(--titre); font-size: .9375rem; display: block; color: var(--papier); letter-spacing: -.01em; }
.bandeau-agent__tete span { font-size: .75rem; color: oklch(74% 0.02 240); }
.bandeau-agent__tete .btn { margin-left: auto; background: oklch(100% 0 0 / .1); border-color: oklch(100% 0 0 / .22); color: var(--papier); }
.bandeau-agent__tete .btn:hover { background: oklch(100% 0 0 / .18); color: var(--papier); }

.bandeau-agent__chiffres {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid oklch(100% 0 0 / .14);
}
.bandeau-agent__chiffres > div { padding: var(--e3) var(--e4); border-right: 1px solid oklch(100% 0 0 / .1); }
.bandeau-agent__chiffres > div:last-child { border-right: 0; background: oklch(100% 0 0 / .05); }
.bandeau-agent__chiffres dt { font-size: .625rem; text-transform: uppercase; letter-spacing: .11em; color: oklch(72% 0.02 240); font-weight: 700; }
.bandeau-agent__chiffres dd { font-family: var(--titre); font-size: 1.375rem; font-weight: 700; color: var(--papier); font-variant-numeric: tabular-nums; line-height: 1.15; letter-spacing: -.02em; }
.bandeau-agent__chiffres dd small { font-size: .5em; font-weight: 600; letter-spacing: .04em; margin-left: 2px; color: oklch(80% 0.02 240); }

/* Témoin « en poste » */
.temoin { display: inline-flex; align-items: center; gap: 5px; font-size: .625rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; color: var(--bleu-200); }
.temoin::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%; background: oklch(78% 0.16 152);
  box-shadow: 0 0 0 3px oklch(78% 0.16 152 / .22); animation: respire 2.4s ease-in-out infinite;
}
@keyframes respire { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .55; transform: scale(.82); } }

/* ---------- Carte d'agent : identité + relevé de paie ---------- */
.carte-agent {
  background:
    linear-gradient(180deg, oklch(34% 0.03 245) 0%, var(--encre) 62%),
    var(--encre);
  color: var(--papier); border-radius: var(--r-xl); overflow: hidden;
  box-shadow: var(--ombre-l); position: relative; isolation: isolate;
}
.carte-agent::before {          /* trame réglée très discrète, comme un registre */
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .16;
  background-image: repeating-linear-gradient(to bottom, oklch(100% 0 0 / .5) 0 1px, transparent 1px 28px);
}
.carte-agent__id { display: flex; align-items: center; gap: var(--e3); padding: var(--e4) var(--e5) var(--e3); }
.carte-agent__id img { width: 38px; height: 38px; border-radius: 10px; flex: none; }
.carte-agent__id .qui { flex: 1; min-width: 0; }
.carte-agent__id .qui b { font-family: var(--titre); font-size: 1.0625rem; display: block; letter-spacing: -.02em; }
.carte-agent__id .qui span { font-size: .75rem; color: oklch(76% 0.02 240); }
.carte-agent__id .btn { background: oklch(100% 0 0 / .1); border-color: oklch(100% 0 0 / .24); color: var(--papier); }
.carte-agent__id .btn:hover { background: oklch(100% 0 0 / .18); color: var(--papier); }

/* Perforation : sépare l'identité du montant, comme un talon détachable */
.perfo { position: relative; height: 14px; }
.perfo::before {
  content: ""; position: absolute; left: var(--e5); right: var(--e5); top: 50%;
  border-top: 1px dashed oklch(100% 0 0 / .3);
}
.perfo::after {          /* deux encoches, comme un talon détachable */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(circle 7px at 0 50%, var(--papier) 97%, transparent 100%),
    radial-gradient(circle 7px at 100% 50%, var(--papier) 97%, transparent 100%);
}

.carte-agent__paie { padding: var(--e3) var(--e5) var(--e5); }
.carte-agent__cta { display: flex; gap: var(--e3); align-items: center; flex-wrap: wrap; margin-top: var(--e4); }
.carte-agent__cta .btn--primaire { background: var(--bleu-500); color: var(--encre); font-weight: 750; }
.carte-agent__cta .btn--primaire:hover { background: var(--bleu-400); }
.carte-agent__note { font-size: .75rem; color: oklch(74% 0.02 240); max-width: 30ch; }

/* ---------- Lignes de relevé avec points de conduite ---------- */
.releve { display: grid; gap: var(--e1); }
.ligne-paie { display: flex; align-items: baseline; gap: var(--e2); font-size: .875rem; }
.ligne-paie__quoi { color: oklch(78% 0.015 240); }
.ligne-paie__pointille { flex: 1; border-bottom: 1px dotted oklch(100% 0 0 / .28); transform: translateY(-3px); min-width: 12px; }
.ligne-paie__combien { font-variant-numeric: tabular-nums; font-weight: 650; white-space: nowrap; }
.ligne-paie--total { margin-top: var(--e3); padding-top: var(--e3); border-top: 1px solid oklch(100% 0 0 / .24); align-items: flex-end; }
.ligne-paie--total .ligne-paie__quoi { font-size: .6875rem; text-transform: uppercase; letter-spacing: .11em; font-weight: 700; color: oklch(72% 0.02 240); }
.ligne-paie--total .ligne-paie__pointille { display: none; }
.montant-cle {
  margin-left: auto; font-family: var(--titre); font-weight: 800;
  font-size: clamp(2.1rem, 1.4rem + 4.6vw, 3.1rem); line-height: .95;
  letter-spacing: -.035em; font-variant-numeric: tabular-nums;
}
.montant-cle small { font-size: .3em; font-weight: 700; letter-spacing: .06em; margin-left: 5px; vertical-align: .55em; color: oklch(82% 0.02 240); }

/* Version claire du relevé (partie admin) */
.releve--clair .ligne-paie__quoi { color: var(--encre-3); }
.releve--clair .ligne-paie__pointille { border-bottom-color: var(--trait); }
.releve--clair .ligne-paie--total { border-top-color: var(--encre-4); }
.releve--clair .montant-cle { color: var(--encre); }
.releve--clair .montant-cle small { color: var(--encre-3); }
.releve--clair .ligne-paie--du .ligne-paie__combien { color: var(--danger); }

/* ---------- Mesures : rythme asymétrique, aucune boîte clonée ---------- */
.mesures { display: grid; gap: 0; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); border-top: 2px solid var(--encre); }
.mesure { padding: var(--e4) var(--e4) var(--e4) 0; border-right: 1px solid var(--trait); }
.mesure:last-child { border-right: 0; }
.mesure + .mesure { padding-left: var(--e4); }
.mesure dt { font-size: .6875rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; color: var(--encre-3); }
.mesure dd { font-family: var(--titre); font-size: 1.875rem; font-weight: 700; letter-spacing: -.03em; font-variant-numeric: tabular-nums; line-height: 1.1; margin-top: 2px; }
.mesure small { display: block; font-size: .75rem; color: var(--encre-3); margin-top: 2px; }
.mesure small.enligne { display: inline; font-size: .55em; color: inherit; }
.mesure--vedette dd { font-size: 2.75rem; color: var(--bleu-700); }
@media (max-width: 560px) {
  .mesures { grid-template-columns: 1fr 1fr; }
  .mesure { padding: var(--e3) var(--e3) var(--e3) 0; }
  .mesure + .mesure { padding-left: var(--e3); }
  .mesure dd { font-size: 1.5rem; }
  .mesure--vedette dd { font-size: 2rem; }
}

/* ---------- Bande annuelle : 12 mois d'intensité ---------- */
.bande-annee { display: grid; grid-template-columns: repeat(12, 1fr); gap: 5px; }
.bande-annee__mois { display: grid; gap: 4px; justify-items: center; }
.bande-annee__case {
  width: 100%; aspect-ratio: 1; border-radius: var(--r-s); display: grid; place-items: center;
  font-size: .6875rem; font-weight: 700; font-variant-numeric: tabular-nums;
  background: var(--surface-2); color: var(--encre-4); border: 1px solid var(--trait-2);
  transition: transform .18s var(--sortie);
}
.bande-annee__case:hover { transform: translateY(-2px); }
.bande-annee__case[data-n="1"] { background: var(--bleu-050); color: var(--bleu-900); border-color: var(--bleu-100); }
.bande-annee__case[data-n="2"] { background: var(--bleu-100); color: var(--bleu-900); border-color: var(--bleu-200); }
.bande-annee__case[data-n="3"] { background: var(--bleu-400); color: oklch(99% 0.005 240); border-color: transparent; }
.bande-annee__case[data-n="4"] { background: var(--bleu-700); color: oklch(99% 0.005 240); border-color: transparent; }
.bande-annee__case--futur { opacity: .4; }
.bande-annee__mois span { font-size: .625rem; text-transform: uppercase; letter-spacing: .05em; color: var(--encre-3); font-weight: 600; }
.bande-legende { display: flex; align-items: center; gap: 6px; font-size: .6875rem; color: var(--encre-3); margin-top: var(--e3); }
.bande-legende i { width: 13px; height: 13px; border-radius: 3px; display: inline-block; border: 1px solid var(--trait-2); }

/* ---------- Piste : mini histogramme dans un tableau ---------- */
.piste { display: inline-flex; align-items: flex-end; gap: 3px; height: 26px; }
.piste i { width: 6px; min-height: 2px; border-radius: 2px; background: var(--bleu-400); display: block; }
.piste i.zero { background: var(--trait); }
.piste i.pic { background: var(--encre); }

/* ---------- Classement des agents ---------- */
.tab--classement td.rang, .tab--classement th.rang { width: 1%; padding-right: 0; }
.tab--classement .rang b {
  font-family: var(--titre); font-size: 1.0625rem; font-weight: 700; color: var(--encre-4);
  font-variant-numeric: tabular-nums;
}
.tab--classement tr:first-child .rang b { color: var(--bleu-700); }
.identite { display: flex; align-items: center; gap: var(--e3); }
.identite .avatar { width: 34px; height: 34px; font-size: .8125rem; background: var(--bleu-100); color: var(--bleu-900); }
.identite b { font-weight: 650; display: block; }
.identite span { font-size: .75rem; color: var(--encre-3); }

/* ---------- Synthèse du réseau ---------- */
.synthese-reseau { display: grid; gap: var(--e5); }
@media (min-width: 900px) { .synthese-reseau { grid-template-columns: 1fr 1.1fr; align-items: start; } }

/* Histogramme sobre, sans bibliothèque */
.histo { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: var(--e2); align-items: end; height: 168px; }
.histo__col { display: grid; grid-template-rows: auto 1fr auto; gap: 6px; height: 100%; justify-items: center; }
.histo__col b { font-size: .8125rem; font-variant-numeric: tabular-nums; color: var(--encre-2); }
.histo__col i {
  width: 100%; max-width: 42px; align-self: end; border-radius: var(--r-s) var(--r-s) 2px 2px;
  background: var(--bleu-400); transition: background .18s var(--sortie), transform .18s var(--sortie);
  transform-origin: bottom;
}
.histo__col:hover i { background: var(--encre); }
.histo__col span { font-size: .6875rem; text-transform: uppercase; letter-spacing: .06em; color: var(--encre-3); font-weight: 600; }

/* ---------- Volet repliable (formulaires secondaires) ---------- */
.volet { padding: 0; }
.volet__tete {
  display: flex; align-items: center; gap: var(--e3); padding: var(--e4) var(--e5);
  cursor: pointer; list-style: none; user-select: none;
}
.volet__tete::-webkit-details-marker { display: none; }
.volet__titre { font-family: var(--titre); font-size: 1.0625rem; font-weight: 700; letter-spacing: -.01em; }
.volet__aide { font-size: .8125rem; color: var(--encre-3); }
@media (max-width: 620px) { .volet__aide { display: none; } }
.volet__chevron {
  margin-left: auto; width: 30px; height: 30px; border-radius: var(--r-s); flex: none;
  display: grid; place-items: center; background: var(--surface-2); color: var(--encre-2);
  font-weight: 700; transition: transform .28s var(--sortie), background .18s var(--sortie);
}
.volet__tete:hover .volet__chevron { background: var(--bleu-100); color: var(--bleu-900); }
.volet[open] .volet__chevron { transform: rotate(45deg); }
.volet[open] .volet__tete { border-bottom: 1px solid var(--trait-2); }

/* ---------- Bordereau de versement ---------- */
.bordereau { border: 1px solid var(--trait); border-radius: var(--r-l); background: var(--surface); overflow: hidden; }
.bordereau__tete {
  background: var(--encre); color: var(--papier); padding: var(--e3) var(--e4);
  display: flex; align-items: center; gap: var(--e3);
}
.bordereau__tete h2 { font-size: 1rem; color: var(--papier); }
.bordereau__tete .sigle { margin-left: auto; color: oklch(76% 0.02 240); }
.bordereau__corps { padding: var(--e4); display: grid; gap: var(--e4); }
.bordereau__pied { padding: var(--e3) var(--e4); border-top: 1px dashed var(--trait); display: flex; align-items: center; gap: var(--e3); flex-wrap: wrap; }
.bordereau__somme {
  display: flex; align-items: flex-end; justify-content: space-between; gap: var(--e3);
  padding: var(--e3) var(--e4); background: var(--bleu-050); border: 1px solid var(--bleu-100); border-radius: var(--r-m);
}
.bordereau__somme span { font-size: .6875rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; color: var(--bleu-900); }
.bordereau__somme b { font-family: var(--titre); font-size: 1.75rem; font-weight: 800; letter-spacing: -.03em; color: var(--bleu-900); font-variant-numeric: tabular-nums; line-height: 1; }

/* ---------- Espace de l'agent ---------- */
.espace-agent { background: var(--papier); }
.espace-agent__haut { padding: var(--e4) var(--e4) 0; max-width: 1080px; margin-inline: auto; }
.agent-corps { padding: var(--e5) var(--e4) var(--e9); display: grid; gap: var(--e5); max-width: 1080px; margin-inline: auto; }
@media (min-width: 768px) {
  .espace-agent__haut { padding: var(--e6) var(--e6) 0; }
  .agent-corps { padding: var(--e5) var(--e6) var(--e9); }
}
.agent-duo { display: grid; gap: var(--e5); }
@media (min-width: 900px) { .agent-duo { grid-template-columns: 1.25fr .85fr; align-items: start; } }

/* Bouton flottant : enchaîner les inscriptions sur le terrain */
.agent-flottant {
  position: fixed; right: var(--e4); bottom: var(--e4); z-index: var(--z-fixe);
  display: inline-flex; align-items: center; gap: var(--e2);
  padding: var(--e3) var(--e5); border-radius: var(--r-pill);
  background: var(--bleu-600); color: oklch(99% 0.005 240); text-decoration: none;
  font-weight: 700; box-shadow: var(--ombre-l);
  transition: transform .18s var(--sortie), background .18s var(--sortie);
}
.agent-flottant svg { width: 18px; height: 18px; }
.agent-flottant:hover { background: var(--bleu-700); transform: translateY(-2px); }
@media (min-width: 900px) { .agent-flottant { display: none; } }

/* ---------- Doublons ---------- */
.paire--doublon dd { color: var(--danger); font-weight: 700; }
.duo-doublon { display: grid; gap: var(--e2); }
.duo-doublon a { font-weight: 650; }

@media print {
  .carte-agent { background: #fff !important; color: #000 !important; box-shadow: none; border: 1pt solid #000; }
  .carte-agent::before, .perfo::after { display: none; }
  .ligne-paie__quoi { color: #000 !important; }
  .ligne-paie__pointille { border-bottom-color: #999 !important; }
  .montant-cle small { color: #333 !important; }
  .bandeau-agent, .agent-flottant, .carte-agent__cta { display: none !important; }
  .bordereau__tete { background: #eee !important; color: #000 !important; }
  .bordereau__tete h2 { color: #000 !important; }
}

/* ============================================================
   9. ANIMATIONS
   ============================================================ */
.apparait { animation: monte .5s var(--sortie) both; animation-delay: calc(var(--i, 0) * 45ms); }
@keyframes monte { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }

/* ============================================================
   10. IMPRESSION
   ============================================================ */
@media print {
  @page { size: A4 landscape; margin: 12mm; }
  .flanc, .barre, .filtres, .voile, .actions, .pagination, .no-print, .hamburger { display: none !important; }
  body { background: #fff; font-size: 11pt; }
  .coque, .contenu, .bloc { display: block; padding: 0; margin: 0; border: 0; box-shadow: none; }
  .bloc { break-inside: auto; }
  table.tab { font-size: 9.5pt; width: 100%; }
  table.tab thead { display: table-header-group; }
  table.tab thead th { background: #f0f0f0 !important; color: #000; border-bottom: 1pt solid #000; position: static; }
  table.tab tbody tr { border-bottom: .5pt solid #bbb; break-inside: avoid; }
  .entete-impression { display: block !important; }
  a[href]::after { content: ""; }
  .badge { border: .5pt solid #999; }
}
/* ---------- Liste des membres : pagination et tableau ---------- */
/* Le contenu ne s'élargit plus avec un tableau large : seul le tableau défile. */
.contenu { grid-template-columns: minmax(0, 1fr); }
.contenu > * { min-width: 0; }
.liste-tete { display: flex; align-items: center; gap: var(--e3); flex-wrap: wrap; padding: var(--e3) var(--e5); border-bottom: 1px solid var(--trait-2); }
.liste-tete .compteur strong, .bloc__pied .compteur strong { color: var(--encre); font-weight: 700; }
.pagination { flex-wrap: wrap; }
.pagination .pagination__ellipse { border-color: transparent; min-width: 20px; padding: 0; color: var(--encre-4); }
.pagination a:focus-visible { outline: 2px solid var(--bleu-500); outline-offset: 2px; }
.saut-page { display: inline-flex; align-items: center; gap: var(--e2); font-size: .875rem; color: var(--encre-3); margin-left: auto; }
.saut-page .saisie { width: 76px; min-height: 36px; padding: 4px var(--e2); text-align: center; }
.saut-page + .pagination { margin-left: 0; }

.tableau-enveloppe--membres { max-height: 72vh; overflow: auto; }
.tableau-enveloppe--membres thead th { z-index: 2; box-shadow: inset 0 -1px 0 var(--trait); }
table.tab--membres { font-size: .9rem; }
table.tab--membres th, table.tab--membres td { padding: 10px var(--e3); }
table.tab--membres tbody tr:nth-child(even) { background: var(--surface-2); }
table.tab--membres tbody tr:hover { background: var(--bleu-050); }
table.tab--membres tbody tr:hover td:first-child { box-shadow: inset 3px 0 0 var(--bleu-500); }
table.tab--membres .col-rang { width: 1%; color: var(--encre-4); font-size: .8125rem; padding-right: 0; }
table.tab--membres .nowrap { white-space: nowrap; }
.membre-cell { display: flex; align-items: center; gap: var(--e3); min-width: 220px; }
.membre-cell__photo { flex: none; }
.membre-cell__photo .mini-photo { display: block; transition: transform .2s var(--sortie); }
.membre-cell__photo:hover .mini-photo { transform: scale(1.08); }
.membre-cell__texte { min-width: 0; }
.membre-cell .secondaire { white-space: nowrap; }
.membre-cell .principal-cell { color: var(--encre); text-decoration: none; }
.membre-cell .principal-cell:hover { color: var(--bleu-700); text-decoration: underline; }
.membre-cell .code { font-family: var(--mono); font-size: .75rem; letter-spacing: .02em; }
.initiales { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--bleu-100); color: var(--bleu-900); font-weight: 750; font-size: .8125rem; letter-spacing: .03em; }
.lien-tel { text-decoration: none; color: var(--encre-2); }
.lien-tel:hover { color: var(--bleu-700); text-decoration: underline; }
.pastille-num { display: inline-grid; place-items: center; min-width: 26px; height: 22px; padding: 0 6px; border-radius: var(--r-pill); background: var(--surface-2); color: var(--encre-3); font-size: .75rem; font-weight: 700; }
.pastille-num--ok { background: var(--ok-bg); color: oklch(42% 0.11 152); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
@media (max-width: 640px) {
  .liste-tete, .bloc__pied { padding: var(--e3) var(--e4); }
  .liste-tete .pagination { margin-left: 0; }
  .saut-page { margin-left: 0; }
  .tableau-enveloppe--membres { max-height: none; }
}
@media print {
  .liste-tete, .saut-page { display: none !important; }
  .tableau-enveloppe--membres { max-height: none; overflow: visible; }
  table.tab--membres tbody tr:nth-child(even) { background: #f7f7f7 !important; }
  .initiales { border: .5pt solid #999; background: #fff !important; }
}

.entete-impression { display: none; }
.entete-impression__ligne { display: flex; align-items: center; gap: 12px; border-bottom: 2pt solid var(--encre); padding-bottom: 8px; margin-bottom: 12px; }
.entete-impression img { width: 46px; height: 46px; }
.entete-impression h1 { font-size: 15pt; }
.entete-impression p { font-size: 9pt; }
