/* =========================================================================
   IRADA VENTURE — Plateforme Comités de sélection — app.css
   ========================================================================= */

/* ---------- Layout admin ---------- */
.app-shell { min-height: 100vh; display: flex; flex-direction: column; }

.topbar {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--color-border);
  display: flex; align-items: center; gap: 16px;
  padding: 0 clamp(16px, 3vw, 28px);
}
.topbar .brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; color: var(--color-navy); }
.topbar .brand img { height: 34px; width: auto; }
.topbar .spacer { flex: 1; }
.topbar .who { font-size: var(--fs-sm); color: var(--color-text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar .who strong { color: var(--color-navy); }
@media (max-width: 640px) { .topbar .who { display: none; } } /* petit écran : barre allégée */

.layout { flex: 1; display: grid; grid-template-columns: 248px 1fr; }
.sidebar {
  background: var(--color-surface); border-right: 1px solid var(--color-border);
  padding: 20px 14px; display: flex; flex-direction: column; gap: 4px;
}
.sidebar a {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 14px; border-radius: var(--radius-sm);
  color: var(--color-navy); font-weight: 600; font-size: var(--fs-sm);
  transition: background var(--t-fast), color var(--t-fast);
}
.sidebar a:hover { background: var(--color-primary-50); }
.sidebar a.active { background: var(--color-primary-50); color: var(--color-primary); }
.sidebar a svg { width: 18px; height: 18px; flex: 0 0 18px; }
.sidebar .sb-section { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .1em; color: var(--color-text-muted); margin: 16px 14px 6px; font-weight: 700; }

.main { padding: clamp(18px, 3vw, 34px); min-width: 0; }
.page-head { display: flex; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.page-head .titles { flex: 1; min-width: 0; }
.page-head h1 { margin-bottom: 4px; }
.page-head .sub { color: var(--color-text-muted); font-size: var(--fs-sm); }
.page-head .actions { display: flex; gap: 10px; flex-wrap: wrap; }
.breadcrumb { font-size: var(--fs-xs); color: var(--color-text-muted); margin-bottom: 10px; }
.breadcrumb a { color: var(--color-text-muted); }
.breadcrumb a:hover { color: var(--color-primary); }

@media (max-width: 880px) {
  .layout { grid-template-columns: 1fr; }
  .sidebar {
    position: fixed; inset: var(--header-h) 0 0 0; z-index: 40;
    transform: translateX(-100%); transition: transform var(--t-base) var(--ease-out);
    width: 260px; box-shadow: var(--shadow-xl);
  }
  .sidebar.open { transform: none; }
  .nav-burger { display: inline-flex !important; }
}
.nav-burger { display: none; width: 42px; height: 42px; border-radius: 10px; background: var(--color-primary-50); color: var(--color-primary); align-items: center; justify-content: center; }

/* ---------- Cartes ---------- */
.card {
  background: var(--color-surface); border: 1px solid var(--color-border);
  border-radius: var(--radius-lg); padding: clamp(18px, 2.4vw, 26px);
  box-shadow: var(--shadow-sm);
}
.card + .card { margin-top: 18px; }
.card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.card-head h2, .card-head h3 { margin: 0; }
.card-head .spacer { flex: 1; }
.grid-cards { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.muted { color: var(--color-text-muted); }
.small { font-size: var(--fs-sm); }
.xsmall { font-size: var(--fs-xs); }
.mt-1{margin-top:8px}.mt-2{margin-top:16px}.mt-3{margin-top:24px}.mb-2{margin-bottom:16px}
.flex{display:flex}.flex-wrap{flex-wrap:wrap}.items-center{align-items:center}.gap-1{gap:8px}.gap-2{gap:16px}.spacer{flex:1}
.text-right{text-align:right}.text-center{text-align:center}

/* Carte tuile (liste programmes/comités) */
.tile { display: block; }
.tile h3 { margin-bottom: 6px; }
.tile .meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; font-size: var(--fs-xs); color: var(--color-text-muted); }
.tile:hover { border-color: var(--color-primary); box-shadow: var(--shadow-md); }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius-md); border: 1px solid var(--color-border); }
table.tbl { width: 100%; border-collapse: collapse; background: #fff; font-size: var(--fs-sm); }
table.tbl th, table.tbl td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--color-border); vertical-align: middle; }
table.tbl th { background: #F4F5FF; font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .06em; color: var(--color-text-muted); font-weight: 700; }
table.tbl tr:last-child td { border-bottom: 0; }
/* Lignes zébrées (mod v8-5) : lecture des longues listes plus confortable. */
table.tbl tbody tr:nth-child(even) td { background: #FBFCFF; }
table.tbl tbody tr:hover td { background: #F4F6FF; }
table.tbl td.num, table.tbl th.num { text-align: right; font-variant-numeric: tabular-nums; }

/* ---------- Formulaires ---------- */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label { font-size: var(--fs-xs); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--color-navy); }
.field .hint { font-size: var(--fs-xs); color: var(--color-text-muted); font-weight: 400; text-transform: none; letter-spacing: 0; }
.field input, .field textarea, .field select {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md); background: var(--color-bg); color: var(--color-text);
  font-size: var(--fs-base); transition: border-color var(--t-base), box-shadow var(--t-base), background var(--t-base);
}
.field textarea { resize: vertical; min-height: 96px; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: 0; border-color: var(--color-primary); background: #fff; box-shadow: 0 0 0 4px rgba(92,101,245,.12);
}
.field.invalid input, .field.invalid textarea, .field.invalid select { border-color: #E5484D; box-shadow: 0 0 0 4px rgba(229,72,77,.12); }
.field .err { color: #E5484D; font-size: var(--fs-xs); }
.form-row { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .form-row.two { grid-template-columns: 1fr 1fr; } .form-row.three { grid-template-columns: 1fr 1fr 1fr; } }
.checkline { display: flex; align-items: center; gap: 10px; }
.checkline input { width: auto; }

/* ---------- États de chargement (mod v8-5) ----------
   Tout bouton .is-loading est désactivé par JS, son libellé devient « En cours… »
   et un petit anneau tourne devant : plus jamais de doute « est-ce que ça a planté ? ». */
.btn.is-loading { pointer-events: none; opacity: .8; }
.btn.is-loading::before {
  content: ""; flex: 0 0 auto; width: 1em; height: 1em; border-radius: 50%;
  border: 2px solid currentColor; border-top-color: transparent;
  animation: btnspin .8s linear infinite;
}
@keyframes btnspin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .btn.is-loading::before { animation: none; } }

/* ---------- État vide (mod v8-5) : constat + action pour y remédier ---------- */
.empty-state { text-align: center; padding: 30px 18px; color: var(--color-text-muted); }
.empty-state .es-ico { font-size: 30px; line-height: 1; margin-bottom: 8px; }
.empty-state p { margin: 0 0 14px; font-size: var(--fs-sm); }

/* ---------- Alertes ---------- */
.alert { padding: 12px 16px; border-radius: var(--radius-md); font-size: var(--fs-sm); margin-bottom: 16px; border: 1px solid transparent; }
.alert-success { background: var(--color-success-bg); color: var(--color-success); border-color: var(--color-success-bd); }
.alert-danger  { background: var(--color-danger-bg);  color: var(--color-danger);  border-color: var(--color-danger-bd); }
.alert-warn    { background: var(--color-warn-bg);    color: var(--color-warn);    border-color: var(--color-warn-bd); }
.alert-info    { background: var(--color-primary-50); color: var(--color-primary-700); border-color: #D6DBFF; }

/* ---------- Auth / install (carte centrée) ---------- */
.auth-wrap { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: var(--gradient-hero); }
.auth-card { width: 100%; max-width: 440px; background: #fff; border-radius: var(--radius-xl); padding: clamp(26px, 5vw, 40px); box-shadow: var(--shadow-xl); }
/* Champs ≥ 16px sur les cartes plein écran (connexion + rejoindre la séance sur téléphone) :
   évite le zoom involontaire d'iOS au focus (mod v8-5). */
.auth-card input, .auth-card select, .auth-card textarea { font-size: 16px; }
.auth-card .logo { height: 40px; margin-bottom: 22px; }
.auth-card h1 { margin-bottom: 6px; }
.auth-card .sub { color: var(--color-text-muted); font-size: var(--fs-sm); margin-bottom: 22px; }
.install-steps { display: flex; gap: 8px; margin-bottom: 24px; }
.install-steps .step { flex: 1; height: 6px; border-radius: 3px; background: var(--color-border); }
.install-steps .step.done { background: var(--color-primary); }
.check-list { list-style: none; }
.check-list li { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--color-border); font-size: var(--fs-sm); }
.check-list .ok { color: var(--color-success); font-weight: 800; }
.check-list .ko { color: var(--color-danger); font-weight: 800; }

/* =========================================================================
   JURY — écran de notation mobile-first
   ========================================================================= */
.jury-body { background: var(--color-bg); }
/* Champs de saisie ≥ 16px sur l'écran jury : iOS ne zoome plus au focus (mod v8-5). */
.jury-body input, .jury-body textarea, .jury-body select { font-size: 16px; }
.jury-top {
  position: sticky; top: 0; z-index: 30; background: #fff; border-bottom: 1px solid var(--color-border);
  padding: 10px 16px; padding-top: calc(10px + env(safe-area-inset-top, 0px));
  display: flex; align-items: center; gap: 12px;
}
.jury-top .who { font-size: var(--fs-xs); color: var(--color-text-muted); }
.jury-top .who strong { display:block; color: var(--color-navy); font-size: var(--fs-sm); }
.jury-progress { height: 6px; background: var(--color-border); border-radius: 3px; overflow: hidden; flex: 1; }
.jury-progress > span { display: block; height: 100%; background: var(--gradient-primary); transition: width var(--t-base); }
.jury-wrap { max-width: 720px; margin: 0 auto; padding: 16px;
  padding-bottom: calc(120px + env(safe-area-inset-bottom, 0px)); }

.cand-card { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: 18px 18px 6px; box-shadow: var(--shadow-sm); margin-bottom: 16px; }
.cand-card .ref { font-size: var(--fs-xs); color: var(--color-primary); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.cand-card h2 { margin: 4px 0 8px; }
.cand-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: var(--fs-sm); color: var(--color-text-muted); margin-bottom: 8px; }
.cand-meta b { color: var(--color-navy); font-weight: 700; }

.crit {
  background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-md);
  padding: 16px; margin-bottom: 14px;
}
.crit.scored { border-color: var(--color-primary); }
.crit .grp-label { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .08em; color: var(--color-text-muted); font-weight: 700; margin-bottom: 4px; }
.crit h3 { font-size: var(--fs-base); margin-bottom: 4px; }
.crit .ptmax { font-size: var(--fs-xs); color: var(--color-text-muted); }
/* Cible tactile ≥ 44 px (utilisé debout, en séance). */
.crit .explain-toggle { font-size: var(--fs-xs); color: var(--color-primary); font-weight: 700; background: none; padding: 10px 8px 10px 0; min-height: 44px; display: inline-flex; align-items: center; gap: 4px; }
.crit .explain { max-height: 0; overflow: hidden; transition: max-height var(--t-base) var(--ease-out); }
.crit .explain.open { max-height: 320px; overflow-y: auto; }
.crit .explain p { font-size: var(--fs-sm); color: var(--color-text); background: var(--color-primary-50); padding: 12px; border-radius: var(--radius-sm); margin: 8px 0; }

/* Pavé de notes tactile */
.score-pad { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.score-pad button {
  min-width: 48px; min-height: 48px; padding: 0 10px;
  border-radius: var(--radius-md); border: 1.5px solid var(--color-border);
  background: #fff; font-weight: 800; font-size: var(--fs-lg); color: var(--color-navy);
  transition: transform var(--t-fast), border-color var(--t-fast), background var(--t-fast);
}
.score-pad button:hover { border-color: var(--color-primary); }
.score-pad button.sel { background: var(--gradient-primary); color: #fff; border-color: transparent; box-shadow: var(--shadow-glow); transform: translateY(-1px); }
.score-pad button.zero.sel { background: var(--gradient-warm); }
.bareme-opts { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.bareme-opts button {
  text-align: left; padding: 14px 16px; border-radius: var(--radius-md);
  border: 1.5px solid var(--color-border); background: #fff; font-weight: 600;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.bareme-opts button .v { font-weight: 800; color: var(--color-primary); }
.bareme-opts button.sel { border-color: var(--color-primary); background: var(--color-primary-50); }
.crit .comment { margin-top: 12px; }
.crit .comment textarea { width: 100%; border: 1.5px solid var(--color-border); border-radius: var(--radius-sm); padding: 10px; font-size: var(--fs-sm); min-height: 56px; background: var(--color-bg); }
.crit .subtotal { font-size: var(--fs-sm); font-weight: 700; color: var(--color-primary); margin-top: 8px; }

.jury-footer {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 35;
  background: #fff; border-top: 1px solid var(--color-border); box-shadow: 0 -6px 20px rgba(11,20,55,.08);
  padding: 12px 16px;
  /* iPhone à encoche : la barre ne passe jamais sous la barre système (mod v8-5). */
  padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  display: flex; align-items: center; gap: 12px;
}
/* ---------- Corbeille & zone sensible (v12) ---------- */
.danger-card { border-color: #F3C9CB; }
.danger-card .card-head h3 { color: var(--color-danger, #B2363B); }

.danger-zone {
  background: #FDF3F3; border: 1px solid #F3C9CB; border-radius: var(--radius-sm, 10px);
  padding: 14px 16px;
}
.danger-zone .dz-title { font-weight: 800; color: #B2363B; margin: 0 0 6px; }
.danger-zone .dz-detail { font-size: var(--fs-sm); color: #7A2A2E; margin: 0 0 10px; }
.danger-zone .dz-label { display: block; font-size: var(--fs-sm); font-weight: 600; margin-bottom: 6px; }
.danger-zone .dz-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.danger-zone .dz-row input[type="text"] { flex: 1; min-width: 220px; }
.danger-zone button[disabled] { opacity: .5; cursor: not-allowed; }

/* Bandeau d'erreur d'envoi côté juré (correctif urgence) : visible au-dessus de la
   barre du bas, pour que le juré sache pourquoi « Soumettre » n'a pas abouti. */
.submit-error {
  position: fixed; left: 12px; right: 12px; z-index: 36;
  bottom: calc(76px + env(safe-area-inset-bottom, 0px));
  background: #B2363B; color: #fff; font-weight: 700; font-size: 15px; line-height: 1.4;
  padding: 12px 14px; border-radius: 12px; box-shadow: var(--shadow-xl);
}
.submit-error[hidden] { display: none; }

.jury-footer .total { font-weight: 800; font-size: var(--fs-lg); color: var(--color-navy); }
.jury-footer .total small { display: block; font-size: var(--fs-xs); color: var(--color-text-muted); font-weight: 600; }
.jury-footer .spacer { flex: 1; }
.jury-footer #submit-btn { white-space: nowrap; flex: 0 0 auto; min-height: 48px; }
.jury-footer .btn { min-height: 44px; } /* cible tactile (« Modifier mes réponses » incl.) */

/* Mod 3 : barre collante du candidat en cours (téléphone jury). */
.cand-sticky {
  position: sticky; top: 0; z-index: 31;
  background: var(--gradient-primary); color: #fff;
  padding: 8px 16px; padding-top: calc(8px + env(safe-area-inset-top, 0px));
  display: flex; align-items: baseline; gap: 8px;
  box-shadow: var(--shadow-sm);
}
.cand-sticky .ref { font-size: var(--fs-xs); font-weight: 700; letter-spacing: .06em; opacity: .85; text-transform: uppercase; flex: 0 0 auto; }
.cand-sticky .nm { font-size: var(--fs-base); font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* Mini indicateur d'autosave dans la barre collante : l'état d'enregistrement reste
   visible même quand on a défilé loin (la barre du haut est alors recouverte). */
.cand-sticky .save-mini { margin-left: auto; flex: 0 0 auto; font-size: var(--fs-xs);
  font-weight: 700; align-self: center; padding: 3px 10px; border-radius: var(--radius-pill);
  background: rgba(255,255,255,.2); color: #fff; }
.cand-sticky .save-mini.saving { background: rgba(255,194,75,.9); color: #4A3000; }
.cand-sticky .save-mini.offline { background: rgba(255,107,114,.95); color: #fff; }

/* Mod 2 : barre du bas responsive — le bouton « Évaluer » reste entièrement visible ≤ 480px. */
@media (max-width: 480px) {
  .jury-footer { flex-wrap: wrap; gap: 8px 10px; padding: 10px 12px;
    padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px)); }
  .jury-footer .spacer { display: none; }
  .jury-footer .total { flex: 0 0 auto; margin-right: auto; font-size: var(--fs-base); }
  .jury-footer #elim-badge { flex: 0 0 auto; }
  .jury-footer #submit-btn { flex: 1 1 100%; order: 9; }
  .jury-wrap { padding-bottom: calc(140px + env(safe-area-inset-bottom, 0px)); }
}

/* Indicateur d'autosave LISIBLE (mod v8-5) : pastille colorée selon l'état,
   pas seulement un point de 8 px. aria-live côté HTML pour les lecteurs d'écran. */
.save-pill { font-size: var(--fs-xs); font-weight: 700; color: var(--color-success);
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px;
  border-radius: var(--radius-pill); background: var(--color-success-bg);
  border: 1px solid var(--color-success-bd); white-space: nowrap; }
.save-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--color-success); }
.save-pill.saving { color: var(--color-warn); background: var(--color-warn-bg); border-color: var(--color-warn-bd); }
.save-pill.saving .dot { background: var(--color-warn); }
.save-pill.offline { color: var(--color-danger); background: var(--color-danger-bg); border-color: var(--color-danger-bd); }
.save-pill.offline .dot { background: var(--color-danger); }

.waiting-screen { text-align: center; padding: 18vh 20px; }
.waiting-screen .spin { width: 46px; height: 46px; border: 4px solid var(--color-border); border-top-color: var(--color-primary); border-radius: 50%; margin: 0 auto 20px; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.conflict-bar { display:flex; align-items:center; gap:10px; background: var(--color-warn-bg); border:1px solid var(--color-warn-bd); color: var(--color-warn); border-radius: var(--radius-md); padding: 10px 14px; margin-bottom: 14px; font-size: var(--fs-sm); }

/* =========================================================================
   LIVE (suivi admin)
   ========================================================================= */
.live-grid { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 980px) { .live-grid { grid-template-columns: 1.3fr .7fr; } }
.live-stat { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px,1fr)); gap: 12px; }
.live-stat .s { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: 14px; text-align: center; }
.live-stat .s .n { font-size: var(--fs-2xl); font-weight: 800; color: var(--color-navy); }
.live-stat .s .l { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .08em; color: var(--color-text-muted); }
.voter-list { display: flex; flex-direction: column; gap: 8px; }
.voter { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--color-border); border-radius: var(--radius-md); background: #fff; }
.voter .nm { flex: 1; min-width: 0; }
.voter .nm b { display: block; font-size: var(--fs-sm); }
.voter .nm span { font-size: var(--fs-xs); color: var(--color-text-muted); }
.voter .sc { font-weight: 800; font-variant-numeric: tabular-nums; }
.voter.voted { border-color: var(--color-success-bd); }
.voter.pending { opacity: .7; }
.voter.outlier { border-color: var(--color-warn-bd); background: var(--color-warn-bg); }
.dot-state { width: 10px; height: 10px; border-radius: 50%; }
.dot-voted { background: var(--color-success); }
.dot-pending { background: var(--color-border-strong); }

.decision-box { text-align: center; padding: 18px; border-radius: var(--radius-lg); border: 1px solid var(--color-border); background:#fff; }
.decision-box .big { font-size: clamp(2rem, 1rem+4vw, 3rem); font-weight: 800; line-height: 1; }
/* Mod 4 : moyenne globale dominante, min/max secondaires et discrets. */
.decision-box .big.dominant { font-size: clamp(2.8rem, 1.4rem+6vw, 4.4rem); color: var(--color-primary-700); }
.decision-box .vs { font-size: var(--fs-sm); color: var(--color-text-muted); }
.decision-box .minmax-line { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; margin-top: 8px; font-size: var(--fs-xs); color: var(--color-text-muted); }
.decision-box .minmax-line strong { color: var(--color-navy); font-variant-numeric: tabular-nums; }

/* Sélecteur de candidat (rail) */
.cand-rail { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; }
.cand-rail button { flex: 0 0 auto; padding: 8px 14px; border-radius: var(--radius-pill); border: 1.5px solid var(--color-border); background:#fff; font-size: var(--fs-sm); font-weight: 600; }
.cand-rail button.current { background: var(--gradient-primary); color:#fff; border-color: transparent; }
.cand-rail button.done { border-color: var(--color-success-bd); }
/* Rail coloré selon la décision (mod v7-5). */
.cand-rail button.dec-admis { border-color: var(--color-success-bd); background: var(--color-success-bg); color: var(--color-success); }
.cand-rail button.dec-refuse { border-color: var(--color-danger-bd); background: var(--color-danger-bg); color: var(--color-danger); }
.cand-rail button.dec-attente { border-color: var(--color-border-strong); background: #F1F3FA; color: var(--color-text-muted); }
.rail-legend-admin { display: flex; flex-wrap: wrap; gap: 14px; }
.rail-legend-admin span { display: inline-flex; align-items: center; gap: 6px; }
.rail-legend-admin .lg-dot { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }

/* KPI compacts du suivi en direct (mod v7-6). */
.live-kpis { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.live-kpis .lk { flex: 1 1 120px; text-align: center; background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: 10px 8px; }
.live-kpis .lk .n { font-size: var(--fs-xl); font-weight: 800; color: var(--color-primary-700); font-variant-numeric: tabular-nums; }
.live-kpis .lk .l { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .05em; color: var(--color-text-muted); }

/* Juré en cours de modification (mod v7-1). */
.voter.editing { border-color: var(--color-warn-bd); background: var(--color-warn-bg); box-shadow: inset 3px 0 0 var(--color-warn); }
.editing-pulse { animation: editPulse 1.2s ease-in-out infinite; }
@keyframes editPulse { 0%,100% { opacity: 1; } 50% { opacity: .45; } }
.btn-attention { background: linear-gradient(120deg, #F0A020, #E8801A) !important; color: #fff !important; }
@media (prefers-reduced-motion: reduce) { .editing-pulse { animation: none !important; } }

/* Constructeur de grille */
.grid-builder .crit-node { border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: 14px; margin-bottom: 12px; background: #fff; }
.grid-builder .crit-node.groupe { background: #F7F8FF; }
.grid-builder .sub { margin-left: 18px; border-left: 3px solid var(--color-primary-50); padding-left: 12px; }
.grid-builder .total-check { font-weight: 700; }
.grid-builder .total-check.ok { color: var(--color-success); }
.grid-builder .total-check.ko { color: var(--color-danger); }

.pin-display { font-size: var(--fs-2xl); font-weight: 800; letter-spacing: .2em; color: var(--color-primary); }

@media print { .no-print { display: none !important; } }


/* Réordonnancement DnD (candidats + critères de grille) */
.gb-dragging{opacity:.5;background:var(--color-primary-50)!important}
.gb-handle:active{cursor:grabbing}
@media (prefers-reduced-motion: reduce){.gb-dragging{opacity:1}}
