/* ═══════════════════════════════════════════════════════════════
   GC PND 2026-2030 — Feuille de styles principale
   Palette : vert émeraude (dominant) + orange CI (accent)
   ═══════════════════════════════════════════════════════════════ */

:root {
  --primary:       #1e7a4e;   /* vert émeraude — couleur dominante */
  --primary-light: #2a9e63;
  --primary-dark:  #155c3a;
  --primary-bg:    #edf7f2;   /* fond vert très pâle */
  --accent:        #e8750a;   /* orange CI — identité nationale    */
  --accent-light:  #f9a03f;
  --success:       #16a34a;
  --warning:       #d97706;
  --danger:        #dc2626;
  --info:          #0284c7;
  --bg:            #f3faf6;   /* fond page légèrement vert         */
  --card-bg:       #ffffff;
  --border:        #c8e6d4;   /* bordures à teinte verte           */
  --border-light:  #e4f3eb;
  --text:          #152b1f;   /* texte sombre à teinte verte       */
  --muted:         #5e7a6a;
  --radius:        8px;
  --shadow:        0 2px 12px rgba(30,122,78,.09);
  --shadow-md:     0 4px 24px rgba(30,122,78,.14);
}

/* ── Reset & Base ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Segoe UI', Arial, sans-serif;
  font-size: 14px;
}

/* ── CI Topbar (bande drapeau) ───────────────────────────────── */
.ci-topbar { display: flex; height: 4px; width: 100%; }
.ci-topbar .flag-orange { flex: 1; background: #F47920; }
.ci-topbar .flag-white  { flex: 1; background: #ffffff; }
.ci-topbar .flag-green  { flex: 1; background: #009A44; }

/* ══════════════════════════════════════════════════════════════
   NAVBAR
══════════════════════════════════════════════════════════════ */
.main-navbar,
.navbar {
  background: transparent !important;
  box-shadow: none;
  padding: 0;
  min-height: 46px;
}

.navbar-col-left   { flex: 1; display: flex; align-items: center; justify-content: flex-start; }
.navbar-col-center { flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; }
.navbar-col-right  { flex: 1; display: flex; align-items: center; justify-content: flex-end;  gap: 5px; }

.navbar-logo-ministere {
  height: 32px; width: auto; object-fit: contain;
  opacity: 1;
}
.navbar-logo-gc {
  height: 28px; width: auto; object-fit: contain;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,.2));
}
.nav-gc-badge {
  background: var(--accent); color: #fff; font-weight: 900; font-size: 12px;
  width: 28px; height: 28px; border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
}
.nav-title { font-size: 12px; font-weight: 700; color: var(--primary); line-height: 1.25; letter-spacing: .1px; }
.nav-sub   { font-size: 9px;  color: var(--muted); line-height: 1; }

.navbar-col-right .btn {
  font-size: 11px; padding: 3px 10px; border-radius: 4px;
  font-weight: 500; letter-spacing: .1px; line-height: 1.4;
}
.navbar-col-right .btn i { font-size: 10px; }

/* Navbar transparente : texte / icônes / boutons en couleur foncée lisible */
.main-navbar .btn-outline-light,
.navbar .btn-outline-light {
  color: var(--primary) !important;
  border-color: var(--primary) !important;
}
.main-navbar .btn-outline-light:hover,
.navbar .btn-outline-light:hover {
  background: var(--primary) !important;
  color: #fff !important;
}

.nav-user-tooltip-wrap { position: relative; display: flex; align-items: center; }
.nav-user-icon-btn {
  width: 26px; height: 26px; padding: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; border-radius: 50%;
}
.nav-user-tooltip {
  display: none; position: absolute; top: calc(100% + 8px); right: 0;
  background: #fff; color: #1a1a1a; border-radius: 8px; min-width: 210px;
  box-shadow: 0 6px 24px rgba(21,92,58,.18); z-index: 9999;
  border: 1px solid var(--border-light); overflow: hidden;
}
.nav-user-tooltip-wrap:hover .nav-user-tooltip,
.nav-user-tooltip-wrap:focus-within .nav-user-tooltip { display: block; }
.nut-header {
  background: var(--primary); color: #fff;
  padding: 7px 12px; font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .6px;
}
.nut-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 6px 12px; border-bottom: 1px solid var(--border-light); font-size: 11px;
}
.nut-row:last-child { border-bottom: none; }
.nut-lbl  { color: var(--muted); font-weight: 500; }
.nut-val  { color: var(--primary); font-weight: 700; text-align: right; max-width: 130px; word-break: break-word; }
.nut-badge {
  background: var(--accent); color: #fff;
  padding: 1px 7px; border-radius: 20px;
  font-size: 9px; letter-spacing: .4px; font-weight: 700;
}

/* Legacy selectors */
.brand-emblem {
  background: var(--accent); color: #fff; font-weight: 900; font-size: 11px;
  width: 28px; height: 28px; border-radius: 6px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.brand-title { font-size: 12px; font-weight: 700; color: var(--primary); line-height: 1.2; }
.brand-sub   { font-size: 9px; color: var(--muted); line-height: 1; }
.user-badge  { display: flex; align-items: center; gap: 6px; }
.user-type-badge {
  background: var(--accent); color: #fff; font-size: 9px; font-weight: 700;
  padding: 1px 7px; border-radius: 20px; letter-spacing: .4px;
}
.user-name { color: var(--primary); font-size: 11px; font-weight: 500; }

/* ── Page wrapper ─────────────────────────────────────────────── */
.page-wrapper { min-height: calc(100vh - 50px); }
.page-title   { font-size: 20px; font-weight: 700; color: var(--primary); }

/* ══════════════════════════════════════════════════════════════
   LOGIN
══════════════════════════════════════════════════════════════ */
/* ── Connexion : style institutionnel SIGOBE ── */
.login-body { margin: 0; font-family: 'Jost', system-ui, -apple-system, sans-serif; }
.login-shell { display: flex; min-height: 100vh; position: relative; }
/* Halo orange tout autour de la page (effet lumineux qui respire) */
.login-shell::after {
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 50;
  box-shadow: inset 0 0 80px 6px rgba(247,148,30,.28);
  animation: loginGlow 4s ease-in-out infinite;
}
@keyframes loginGlow {
  0%, 100% { box-shadow: inset 0 0 70px 4px rgba(247,148,30,.20); }
  50%      { box-shadow: inset 0 0 120px 14px rgba(247,148,30,.42); }
}
@media (prefers-reduced-motion: reduce) {
  .login-shell::after { animation: none; }
}

/* Panneau gauche (sombre) */
.login-brand {
  flex: 0 0 52%; position: relative; display: flex; flex-direction: column;
  color: #fff; padding: 26px 64px 46px; overflow: hidden;
  background: linear-gradient(160deg, #262b33 0%, #16181d 58%, #0d0e11 100%);
}
.login-brand::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at 85% 12%, rgba(232,133,31,.10) 0, transparent 46%);
}
.brand-top, .brand-body, .brand-rule { position: relative; z-index: 1; }
.brand-top { display: flex; align-items: center; gap: 18px; }
.brand-logos { display: flex; gap: 12px; }
.brand-chip {
  width: 132px; height: 132px; background: transparent;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.7); font-size: 48px;
}
.brand-chip img { max-width: 128px; max-height: 128px; object-fit: contain; }
.brand-org-1 { font-size: 10px; font-weight: 400; letter-spacing: .6px; opacity: .8; }
.brand-org-2 { font-size: 12px; font-weight: 600; letter-spacing: .8px; margin-top: 2px; }
.brand-rule { height: 1px; background: rgba(255,255,255,.16); margin: 8px 0 0; }

.brand-body { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.brand-emblem {
  width: auto; max-width: 340px; height: auto; max-height: 120px;
  object-fit: contain; margin-bottom: 30px;
  background: #fff; border-radius: 12px; padding: 14px 18px;
}
.brand-welcome {
  font-size: 46px; font-weight: 300; line-height: 1.18; margin: 0; color: #fff;
}
.brand-app {
  font-size: 38px; font-weight: 500; color: #e8851f; margin: 6px 0 0;
  letter-spacing: .5px;
}
.brand-foot {
  position: relative; z-index: 1; font-size: 14px; font-weight: 500;
  color: rgba(255,255,255,.65); letter-spacing: .5px; margin-top: 12px;
}

/* Panneau droit (formulaire) */
.login-panel {
  flex: 1; display: flex; flex-direction: column; background: #fff;
}
.login-area {
  flex: 1; display: flex; flex-direction: column; justify-content: center;
  width: 100%; max-width: 420px; margin: 0 auto; padding: 48px 48px 28px;
}
.login-head { display: flex; align-items: center; gap: 14px; margin-bottom: 34px; }
.login-head-logo { width: 50px; height: 50px; object-fit: contain; }
.gc-badge-fallback {
  background: #e8851f; color: #fff; font-weight: 700; font-size: 16px;
  width: 50px; height: 50px; border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
}
.login-head-title { font-size: 19px; font-weight: 600; color: #1c2127; }
.login-head-sub   { font-size: 13px; font-style: italic; color: #9aa1ab; margin-top: 2px; }

.sg-field {
  position: relative; border: 1px solid #e3e3e3; border-radius: 8px;
  padding: 9px 16px; margin-bottom: 16px; transition: border-color .15s, box-shadow .15s;
}
.sg-field:focus-within { border-color: #e8851f; box-shadow: 0 0 0 3px rgba(232,133,31,.16); }
.sg-field label {
  display: block; font-size: 12px; color: #9aa1ab; margin-bottom: 2px;
}
.sg-field input {
  width: 100%; border: none; outline: none; background: transparent;
  font-size: 15px; color: #1c2127; padding: 0; font-family: inherit;
}
.sg-field input::placeholder { color: #c2c7ce; }
.sg-field-btn {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  border: none; background: transparent; color: #9aa1ab;
  width: 32px; height: 32px; border-radius: 6px; cursor: pointer;
}
.sg-field-btn:hover { background: #f1f2f4; color: #5f6b7c; }
.sg-btn {
  width: 100%; height: 56px; margin-top: 8px;
  background: #111418; color: #fff; border: none; border-radius: 6px;
  font-family: inherit; font-size: 15px; font-weight: 500;
  text-transform: uppercase; letter-spacing: 3px;
  transition: background .2s, transform .05s;
}
.sg-btn:hover  { background: #000; }
.sg-btn:active { transform: translateY(1px); }
.login-pwdhint {
  margin-top: 14px; font-size: 12.5px; color: #6b7682; text-align: center; line-height: 1.45;
}
.login-pwdhint strong { color: #e8851f; font-weight: 700; }
.sg-band {
  background: linear-gradient(90deg, #1e7a4e, #155c3a);
  color: #fff; text-align: center; font-size: 13px;
  padding: 16px 24px;
}
.sg-band strong { font-weight: 600; }

@media (max-width: 900px) {
  .login-shell { flex-direction: column; }
  .login-brand { flex: none; padding: 32px 28px; }
  .brand-body  { padding: 28px 0 6px; }
  .brand-emblem { width: 64px; height: 64px; margin-bottom: 18px; }
  .brand-welcome { font-size: 30px; }
  .brand-app { font-size: 26px; }
  .login-area { padding: 36px 28px 24px; }
}

/* ══════════════════════════════════════════════════════════════
   LISTE DES PROJETS
══════════════════════════════════════════════════════════════ */
.filter-card {
  background: #e8f5ee; border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 8px 14px;
  border: 1px solid var(--border);
}
/* Variante orange clair (liste des opportunités) */
.filter-card.filter-card-opp {
  background: #fdf1e3; border-color: #f5d9b8;
}
.filter-label {
  font-size: 10px; font-weight: 600; color: var(--muted);
  text-transform: uppercase; letter-spacing: .4px;
  display: block; margin-bottom: 2px;
}
/* Barre de recherche/filtres compacte (projets & opportunités) */
.filter-card .row { --bs-gutter-y: .5rem; }
.filter-card .form-control,
.filter-card .form-select {
  padding: 4px 10px; font-size: 13px; min-height: 0; height: 32px;
}

.table-card {
  background: var(--card-bg); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: visible;
  border: 1px solid var(--border-light);
}
/* En-tête figé au défilement de la page */
.table-card .table-responsive { overflow: visible; }
@media (max-width: 991px) {
  .table-card .table-responsive { overflow-x: auto; }
}
.project-table thead th {
  background: var(--primary); color: #fff;
  font-size: 12px; font-weight: 600;
  text-transform: none; letter-spacing: .2px;
  border: none; padding: 10px 12px; white-space: nowrap;
  position: sticky; top: 0; z-index: 5;
}
/* Cellule Nature : valeur affichée entièrement (pas de troncature) */
.project-table td.nature-cell { overflow: visible; white-space: nowrap; }
.project-table tbody tr { transition: background .15s; }
.project-table tbody tr:hover { background: var(--primary-bg); }
.project-table td {
  padding: 7px 12px; border-color: var(--border-light);
  vertical-align: middle; font-size: 12px;
}
.project-title-cell { font-size: 11px; line-height: 1.35; max-width: 340px; }

.ref-badge {
  background: var(--primary-bg); color: var(--primary);
  font-size: 11px; font-weight: 700;
  padding: 2px 7px; border-radius: 4px;
  font-family: monospace; white-space: nowrap;
  border: 1px solid var(--border);
}

/* Pilier dots */
.pilier-dot {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 50%;
  font-size: 10px; font-weight: 800; color: #fff;
}
.pilier-1 { background: #1e7a4e; }
.pilier-2 { background: #0369a1; }
.pilier-3 { background: #b45309; }
.pilier-4 { background: #7c3aed; }
.pilier-5 { background: #0e7490; }
.pilier-6 { background: #9f1239; }

/* Statut badges */
.statut-badge {
  font-size: 10px; font-weight: 600; padding: 2px 8px;
  border-radius: 20px; white-space: nowrap; display: inline-block;
}
.statut-en { background: #dcfce7; color: #15803d; }
.statut-id { background: #fef9c3; color: #a16207; }
.statut-mo { background: #dbeafe; color: #1d4ed8; }
.statut-ét { background: #fce7f3; color: #9d174d; }
.statut-no { background: #ede9fe; color: #6d28d9; }

/* Nature badges */
.nature-badge {
  font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 4px;
}
.nature-public   { background: #dbeafe; color: #1d4ed8; }
.nature-privé    { background: #fce7f3; color: #9d174d; }
.nature-ppp      { background: #dcfce7; color: #15803d; }
.nature-bailleur { background: #fef3c7; color: #b45309; }

.empty-state { padding: 56px; text-align: center; }

/* Légende piliers */
.pilier-legend { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.legend-item   { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--muted); }
.legend-text   { max-width: 240px; }

/* ══════════════════════════════════════════════════════════════
   FICHE PROJET
══════════════════════════════════════════════════════════════ */
.fiche-section {
  background: var(--card-bg); border-radius: var(--radius);
  box-shadow: var(--shadow); margin-bottom: 14px;
  overflow: hidden; border: 1px solid var(--border-light);
}
.section-header {
  display: flex; align-items: center; gap: 10px;
  background: var(--primary); padding: 10px 18px;
}
.section-num {
  background: rgba(255,255,255,.2); color: #fff;
  font-size: 10px; font-weight: 800; padding: 2px 7px;
  border-radius: 20px; letter-spacing: 1px; flex-shrink: 0;
}
.section-title { color: #fff; font-size: 13px; font-weight: 700; letter-spacing: .2px; }
.section-body  { padding: 18px; }

/* Dynamic rows */
.dynamic-row .dyn-num {
  background: transparent; border: none; color: var(--primary);
  font-weight: 700; min-width: 28px; font-size: 13px;
  display: flex; align-items: flex-start; justify-content: center;
  padding: 7px 6px 0 0;
}

/* Check cards */
.check-card {
  border: 2px solid var(--border); border-radius: 8px;
  padding: 10px 14px; cursor: pointer; transition: all .18s;
}
.check-card:hover { border-color: var(--primary); background: var(--primary-bg); }
.check-card.checked { border-color: var(--data-blue); background: var(--data-blue-bg); }
.check-card.checked .form-check-label { color: var(--data-blue); font-weight: 700; }
/* Variante simple sans bordure, compacte (R11, R14) */
.checks-plain .check-card {
  display: inline-block; border: none; border-radius: 0;
  padding: 3px 0; background: transparent;
}
.checks-plain .check-card:hover,
.checks-plain .check-card.checked { background: transparent; border: none; }

/* Priority cards */
.priority-card {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  border: 2px solid var(--border); border-radius: 10px;
  padding: 18px 10px; cursor: pointer; transition: all .18s;
  text-align: center; user-select: none;
}
.priority-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.priority-card.selected.priority-danger,
.priority-card.selected.priority-warning,
.priority-card.selected.priority-info  { border-color: var(--data-blue); background: var(--data-blue-bg); color: var(--data-blue); }
.priority-num   { font-size: 30px; font-weight: 900; color: #ccc; line-height: 1; }
.priority-icon  { color: #ccc; }
.priority-label { font-size: 12px; font-weight: 600; color: var(--muted); }
.priority-card.selected .priority-num   { color: inherit; }
.priority-card.selected .priority-icon  { color: inherit; }
.priority-card.selected .priority-label { color: inherit; }

/* Info banner */
.info-banner {
  background: #e0f2fe; border-left: 3px solid var(--info);
  border-radius: 4px; padding: 9px 13px;
  font-size: 12px; color: #075985;
  display: flex; align-items: center;
}

/* Chronogramme */
.chrono-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.chrono-table th {
  background: var(--primary); color: #fff;
  padding: 9px 10px; text-align: center; font-size: 11px;
}
.chrono-table th:first-child { text-align: left; }
.chrono-table td {
  border: 1px solid var(--border); padding: 7px 10px;
  text-align: center; background: #fff;
}
.chrono-table td:first-child { text-align: left; font-weight: 600; background: var(--primary-bg); }
.chrono-table td label { margin: 0; cursor: pointer; display: flex; justify-content: center; align-items: center; }
.chrono-table input[type="checkbox"] {
  appearance: none; -webkit-appearance: none;
  width: 18px; height: 18px; flex-shrink: 0;
  border: 2px solid var(--border); border-radius: 4px;
  background: #fff; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .15s, border-color .15s;
}
.chrono-table input[type="checkbox"]:checked {
  background: var(--primary); border-color: var(--primary);
}
.chrono-table input[type="checkbox"]:checked::after {
  content: '✓'; color: #fff; font-size: 12px; font-weight: 700;
  display: block; text-align: center; line-height: 1;
}
.chrono-table input[type="checkbox"]:hover { border-color: var(--primary); }

/* Form controls */
.form-control:focus, .form-select:focus {
  border-color: var(--primary); box-shadow: 0 0 0 3px rgba(30,122,78,.13);
}
.form-label.required::after { content: ' *'; color: var(--danger); }
.form-label { font-size: 13px; font-weight: 700; color: #374151; margin-bottom: 4px; }
.form-control, .form-select { color: #1565c0; }

/* Bootstrap btn-primary override → vert */
.btn-primary {
  background-color: var(--primary) !important;
  border-color: var(--primary) !important;
}
.btn-primary:hover, .btn-primary:focus {
  background-color: var(--primary-dark) !important;
  border-color: var(--primary-dark) !important;
}
.btn-outline-primary {
  color: var(--primary) !important;
  border-color: var(--primary) !important;
}
.btn-outline-primary:hover {
  background-color: var(--primary) !important;
  border-color: var(--primary) !important;
  color: #fff !important;
}

/* Intitulé header */
.fiche-intitule {
  background: var(--card-bg); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 14px 18px;
  border-left: 5px solid var(--accent);
  border: 1px solid var(--border-light);
  border-left: 5px solid var(--accent);
}
.intitule-label {
  font-size: 11px; font-weight: 800; letter-spacing: 1.5px;
  color: var(--primary); text-transform: uppercase;
  display: block; margin-bottom: 6px;
}

/* Zones multiples */
.zone-row {
  background: var(--primary-bg); border: 1px solid var(--border);
  border-radius: 8px; padding: 12px 14px; margin-bottom: 8px;
}
.zone-row-header {
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px;
}
.zone-row-num {
  font-size: 11px; font-weight: 700; color: var(--primary);
  text-transform: uppercase; letter-spacing: .5px;
}
.zone-del-btn { padding: 2px 8px; font-size: 11px; }

/* PND multi-tags */
.pnd-group {
  background: var(--primary-bg); border: 1px solid var(--border);
  border-radius: 8px; padding: 12px 14px;
}
.pnd-type-badge {
  font-size: 9px; font-weight: 700; padding: 2px 6px;
  border-radius: 4px; text-transform: uppercase;
  letter-spacing: .5px; margin-right: 4px;
}
.pnd-type-badge.effet   { background: #dbeafe; color: #1d4ed8; }
.pnd-type-badge.produit { background: #dcfce7; color: #15803d; }
.pnd-type-badge.action  { background: #fef3c7; color: #b45309; }

.pnd-tags-container {
  display: flex; flex-wrap: wrap; gap: 7px;
  min-height: 30px; padding: 5px 0;
}
.pnd-chip {
  display: inline-flex; align-items: center; gap: 5px;
  border-radius: 6px; padding: 4px 9px; font-size: 12px;
  border: 1px solid transparent; max-width: 400px;
}
.pnd-chip-effet   { background: #dbeafe; border-color: #93c5fd; color: #1d4ed8; }
.pnd-chip-produit { background: #dcfce7; border-color: #86efac; color: #15803d; }
.pnd-chip-action  { background: #fef3c7; border-color: #fcd34d; color: #b45309; }
.pnd-chip-code    { font-weight: 800; font-size: 11px; white-space: nowrap; }
.pnd-chip-label   { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pnd-chip-del {
  background: none; border: none; cursor: pointer;
  font-size: 15px; line-height: 1; opacity: .55; padding: 0 2px; flex-shrink: 0;
}
.pnd-chip-del:hover { opacity: 1; }

/* Instance chips */
.instance-chip {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--primary-bg); border: 1px solid var(--border);
  border-radius: 6px; padding: 4px 9px; font-size: 12px;
  color: var(--primary); max-width: 100%;
}
.instance-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.instance-chip-del {
  background: none; border: none; cursor: pointer;
  font-size: 15px; line-height: 1; opacity: .45; padding: 0 2px; flex-shrink: 0;
}
.instance-chip-del:hover { opacity: 1; color: var(--danger); }

/* Mobilisation groupes */
.mobilisation-group { border-radius: 8px; padding: 12px 14px; height: 100%; }
.mobilisation-group.acquis    { background: #f0fdf4; border: 1px solid #bbf7d0; }
.mobilisation-group.rechercher{ background: #fffbeb; border: 1px solid #fde68a; }
.mobil-header {
  font-size: 12px; font-weight: 700; margin-bottom: 8px;
  padding-bottom: 7px; border-bottom: 1px solid rgba(0,0,0,.07);
}
.mobilisation-group.acquis     .mobil-header { color: #15803d; }
.mobilisation-group.rechercher .mobil-header { color: #b45309; }

@media (max-width: 768px) {
  .page-title    { font-size: 17px; }
  .fiche-section { margin-bottom: 10px; }
  .section-body  { padding: 13px; }
  .zone-row      { padding: 10px; }
}

/* ── Tablette (768-900px) : colonne gauche plus étroite ── */
@media (max-width: 900px) and (min-width: 768px) {
  .fiche-tbl .rub-hd { width: 160px; min-width: 140px; padding: 10px 12px; }
  .fiche-tbl .rub-bd { padding: 12px 14px; }
  .rub-lbl { font-size: 11px; }
}

/* ── Responsive : tableau principal des rubriques ── */
@media (max-width: 767px) {
  /* Sortir du mode tableau : empiler les colonnes */
  .fiche-tbl,
  .fiche-tbl tbody { display: block; }

  .fiche-tbl tr.rub-row {
    display: flex;
    flex-direction: column;
    margin-bottom: 10px;
    border: 2px solid #8ebfaa;
    border-radius: 8px;
    overflow: hidden;
  }

  /* Cellules en bloc plein-largeur, sans bordure individuelle */
  .fiche-tbl td {
    display: block;
    width: 100%;
    border: none !important;
  }

  /* Colonne de gauche (numéro + libellé) sur toute la largeur */
  .fiche-tbl .rub-hd {
    width: 100%;
    min-width: unset;
    border-bottom: 2px solid #8ebfaa !important;
    padding: 10px 14px;
  }

  .fiche-tbl .rub-bd { padding: 12px 14px; }

  /* En-tête de page : titre + boutons s'empilent sur mobile */
  .page-header-bar {
    flex-direction: column;
    align-items: flex-start !important;
    gap: 10px;
  }
  .page-header-bar .btn-toolbar { flex-wrap: wrap; }

  /* Chronogramme : défilement horizontal */
  .chrono-responsive { overflow-x: auto; -webkit-overflow-scrolling: touch; }
}

/* ══════════════════════════════════════════════════════════════
   ADMIN — Gestion des utilisateurs
══════════════════════════════════════════════════════════════ */
.admin-type-badge {
  display: inline-block; font-size: 10px; font-weight: 700;
  padding: 2px 8px; border-radius: 20px; letter-spacing: .4px; white-space: nowrap;
}
.admin-type-cgall { background: var(--primary-bg); color: var(--primary); border: 1px solid var(--border); }
.admin-type-cp    { background: #dcfce7; color: #15803d; border: 1px solid #86efac; }
.admin-type-cs    { background: #fef3c7; color: #b45309; border: 1px solid #fcd34d; }

.pwd-status-badge {
  display: inline-flex; align-items: center; font-size: 11px; font-weight: 600;
  padding: 2px 8px; border-radius: 20px; white-space: nowrap;
}
.pwd-ok      { background: #dcfce7; color: #15803d; }
.pwd-default { background: #fef9c3; color: #a16207; }

.acces-pill {
  display: inline-block; font-size: 11px; font-family: monospace;
  background: var(--primary-bg); color: var(--primary);
  border: 1px solid var(--border); border-radius: 4px;
  padding: 2px 6px; max-width: 210px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: middle;
}

.admin-action-btn {
  width: 30px; height: 30px; padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
}

.admin-flag-badge {
  display: inline-flex; align-items: center; font-size: 11px; font-weight: 700;
  padding: 2px 8px; border-radius: 20px; white-space: nowrap;
  background: var(--primary-bg); color: var(--primary); border: 1px solid var(--border);
}

.statut-compte {
  display: inline-flex; align-items: center; font-size: 11px; font-weight: 700;
  padding: 2px 8px; border-radius: 20px; white-space: nowrap;
}
.statut-compte.actif    { background: #dcfce7; color: #15803d; }
.statut-compte.suspendu { background: #fef2f2; color: #dc2626; }

/* ══════════════════════════════════════════════════════════════
   IMPORT fiche Word
══════════════════════════════════════════════════════════════ */
.upload-zone {
  border: 2px dashed var(--border); border-radius: 12px;
  padding: 44px 28px; text-align: center; cursor: pointer;
  transition: border-color .2s, background .2s;
  background: var(--primary-bg);
}
.upload-zone:hover, .upload-zone.drag-over {
  border-color: var(--primary); background: #d1f0e0;
}
.upload-zone.has-file { border-color: var(--success); background: #f0fdf4; }
.upload-icon     { font-size: 44px; color: var(--primary); margin-bottom: 10px; }
.upload-title    { font-size: 15px; font-weight: 700; color: var(--primary); margin-bottom: 3px; }
.upload-sub      { font-size: 13px; color: var(--muted); }
.upload-filename { font-size: 13px; font-weight: 600; color: var(--success); }

/* Stepper (legacy) */
.import-stepper {
  display: flex; align-items: center; gap: 0;
  background: var(--card-bg); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 18px 26px;
}
.import-step { display: flex; flex-direction: column; align-items: center; gap: 5px; flex-shrink: 0; }
.step-circle {
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700;
  background: #e2e8f0; color: #94a3b8; transition: all .25s;
}
.import-step.active .step-circle { background: var(--primary); color: #fff; }
.import-step.done   .step-circle { background: var(--success);  color: #fff; }
.step-label {
  font-size: 11px; font-weight: 600; color: var(--muted);
  white-space: nowrap; text-align: center;
}
.import-step.active .step-label { color: var(--primary); }
.import-step.done   .step-label { color: var(--success); }
.step-line { flex: 1; height: 2px; background: #e2e8f0; margin: 0 10px; margin-bottom: 16px; }
.step-line.done { background: var(--success); }


/* ── Justification du texte dans toutes les zones de contenu ── */
.info-val, .info-v, .text-zone, .zone-item,
textarea, .form-control { text-align: justify; }

/* ══════════════════════════════════════════════════════════════
   DONNÉES SAISIES / SÉLECTIONNÉES / COCHÉES → BLEU
   Toutes pages sauf impression (print.html n'importe pas main.css)
   ══════════════════════════════════════════════════════════════ */
:root {
  --data-blue:    #1565c0;
  --data-blue-bg: #e8f0fe;
}

/* Inputs / textareas / selects avec une valeur saisie (classe .hv ajoutée par JS) */
.form-control.hv,
.form-select.hv  { color: var(--data-blue); }

/* Labels de checkbox / radio cochées (R15, etc.) */
.form-check-input:checked ~ .form-check-label { color: var(--data-blue); font-weight: 600; }
