/* ============================================================
   AIBD Assistance Services — Design Aviation v2
   Couleur principale : Bleu Aviation #005B99
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  /* ── Palette Aviation ── */
  --avi:        #005B99;   /* Bleu aviation principal */
  --avi-dark:   #003F6B;   /* Bleu foncé */
  --avi-deeper: #00294A;   /* Bleu très foncé (header) */
  --avi-mid:    #0077C8;   /* Bleu moyen */
  --avi-light:  #E8F4FD;   /* Bleu très clair bg */
  --avi-border: #B3D9F2;   /* Bleu clair border */

  --gold:       #C9A84C;   /* Or AIBD */
  --gold-light: #F5E9C4;
  --gold-bg:    rgba(201,168,76,0.12);

  --green:      #1A7A4A;
  --green-bg:   #E8F5EE;
  --red:        #C0392B;
  --red-bg:     #FDECEA;
  --orange:     #D35400;
  --orange-bg:  #FEF0E7;

  --gray-50:    #F8FAFC;
  --gray-100:   #F1F5F9;
  --gray-200:   #E2E8F0;
  --gray-300:   #CBD5E1;
  --gray-400:   #94A3B8;
  --gray-500:   #64748B;
  --gray-700:   #334155;
  --gray-900:   #0F172A;

  --text:       #0F172A;
  --text-2:     #334155;
  --text-3:     #64748B;
  --border:     #E2E8F0;

  --radius:     8px;
  --radius-lg:  14px;
  --radius-xl:  20px;

  --shadow-sm:  0 1px 3px rgba(0,91,153,0.08);
  --shadow:     0 2px 8px rgba(0,91,153,0.10);
  --shadow-md:  0 8px 24px rgba(0,91,153,0.14);
  --shadow-lg:  0 20px 48px rgba(0,91,153,0.18);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 14px;
  color: var(--text);
  background: var(--gray-100);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* ══════════════════════════════════════════════════════════
   LOGIN PAGE
══════════════════════════════════════════════════════════ */
.login-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--avi-deeper) 0%, var(--avi-dark) 40%, var(--avi) 100%);
  position: relative;
  overflow: hidden;
}

/* Décoration fond — pistes/cercles aviation */
.login-body::before {
  content: '';
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.05);
  top: -200px; right: -200px;
  pointer-events: none;
}
.login-body::after {
  content: '';
  position: absolute;
  width: 400px; height: 400px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.05);
  bottom: -150px; left: -150px;
  pointer-events: none;
}

.login-wrap { width: 100%; max-width: 440px; padding: 24px; position: relative; z-index: 1; }

.login-card {
  background: #fff;
  border-radius: var(--radius-xl);
  padding: 0;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

/* Bande haute bleue avec logo */
.login-top {
  background: linear-gradient(135deg, var(--avi-deeper), var(--avi-dark));
  padding: 32px 36px 28px;
  text-align: center;
  position: relative;
}
.login-top::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  height: 20px;
  background: #fff;
  border-radius: 20px 20px 0 0;
}

.login-logo-img {
  height: 70px;
  width: auto;
  object-fit: contain;
  display: block;
  margin: 0 auto 16px;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.3));
}

.login-logo-fallback {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gold);
  color: var(--avi-deeper);
  font-size: 16px;
  font-weight: 800;
  padding: 10px 20px;
  border-radius: 10px;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.login-top-title {
  color: rgba(255,255,255,0.5);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Corps du formulaire */
.login-body-form { padding: 28px 36px 32px; }

.login-title { font-size: 20px; font-weight: 700; color: var(--avi-deeper); margin-bottom: 4px; }
.login-sub   { color: var(--text-3); font-size: 13px; margin-bottom: 24px; }

.login-form .form-group { margin-bottom: 16px; }

.login-form label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-2);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.login-form input {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  font-family: inherit;
  color: var(--text);
  background: var(--gray-50);
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.login-form input:focus {
  outline: none;
  border-color: var(--avi);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(0,91,153,0.12);
}

.btn-login {
  width: 100%;
  padding: 13px;
  background: linear-gradient(135deg, var(--avi-dark), var(--avi));
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  margin-top: 8px;
  letter-spacing: 0.02em;
  transition: opacity .15s, transform .1s, box-shadow .15s;
  box-shadow: 0 4px 14px rgba(0,91,153,0.35);
}
.btn-login:hover  { opacity: 0.92; transform: translateY(-1px); box-shadow: 0 6px 20px rgba(0,91,153,0.4); }
.btn-login:active { transform: translateY(0); }

.login-roles {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.login-copy {
  color: rgba(255,255,255,0.3);
  font-size: 12px;
  text-align: center;
  margin-top: 20px;
}

/* ══════════════════════════════════════════════════════════
   HEADER
══════════════════════════════════════════════════════════ */
.app-header {
  background: linear-gradient(to right, var(--avi-deeper), var(--avi-dark));
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,0.2);
}
.header-inner {
  width: 100%; max-width: 1400px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
}
.header-left  { display: flex; align-items: center; gap: 14px; }
.header-logo  { height: 44px; width: auto; object-fit: contain; flex-shrink: 0; }
.header-divider { width: 1px; height: 28px; background: rgba(255,255,255,0.15); }
.header-titles { display: flex; flex-direction: column; }
.header-app   { color: #fff; font-size: 14px; font-weight: 700; letter-spacing: 0.01em; }
.header-sub   { color: rgba(255,255,255,0.45); font-size: 11px; }
.header-right { display: flex; align-items: center; gap: 12px; }
.header-date  { color: rgba(255,255,255,0.4); font-size: 11.5px; }

.user-pill {
  display: flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.12);
  padding: 5px 12px 5px 6px;
  border-radius: 24px;
  cursor: default;
  transition: background .15s;
}
.user-pill:hover { background: rgba(255,255,255,0.15); }
.user-avatar {
  width: 28px; height: 28px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), #E8B84B);
  color: var(--avi-deeper);
  font-size: 10px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}
.user-name  { color: #fff; font-size: 13px; font-weight: 500; }
.btn-logout {
  color: rgba(255,255,255,0.5); font-size: 18px;
  text-decoration: none; padding: 6px;
  border-radius: 8px;
  transition: color .15s, background .15s;
  display: flex; align-items: center;
}
.btn-logout:hover { color: #fff; background: rgba(255,255,255,0.1); }

/* ══════════════════════════════════════════════════════════
   NAVIGATION
══════════════════════════════════════════════════════════ */
.app-nav {
  background: var(--avi-dark);
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.nav-inner {
  max-width: 1400px; margin: 0 auto;
  padding: 0 20px;
  display: flex; gap: 2px;
  overflow-x: auto;
}
.nav-link {
  display: flex; align-items: center; gap: 7px;
  color: rgba(255,255,255,0.5);
  font-size: 12.5px; font-weight: 500;
  padding: 11px 14px;
  text-decoration: none;
  border-bottom: 2.5px solid transparent;
  transition: color .15s, border-color .15s;
  white-space: nowrap;
}
.nav-link:hover  { color: rgba(255,255,255,0.85); }
.nav-link.active { color: #fff; border-bottom-color: var(--gold); }
.nav-icon { font-size: 14px; }

/* ══════════════════════════════════════════════════════════
   MAIN & FOOTER
══════════════════════════════════════════════════════════ */
.app-main { max-width: 1400px; margin: 0 auto; padding: 24px 20px; }

.app-footer {
  text-align: center; padding: 16px;
  color: var(--text-3); font-size: 12px;
  border-top: 1px solid var(--border);
  margin-top: 40px;
  background: var(--gray-50);
}

/* ══════════════════════════════════════════════════════════
   PAGE HEADER
══════════════════════════════════════════════════════════ */
.page-header {
  display: flex; align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 22px;
  flex-wrap: wrap; gap: 12px;
}
.page-title {
  font-size: 21px; font-weight: 800;
  color: var(--avi-deeper);
  letter-spacing: -0.02em;
}
.page-sub { color: var(--text-3); font-size: 13px; margin-top: 2px; }
.page-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* ══════════════════════════════════════════════════════════
   ALERTS
══════════════════════════════════════════════════════════ */
.alert {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px;
  border-radius: var(--radius);
  margin-bottom: 16px;
  font-size: 13px;
  border-left: 3px solid;
  font-weight: 500;
}
.alert-success { background: var(--green-bg); color: var(--green); border-left-color: var(--green); }
.alert-danger  { background: var(--red-bg);   color: var(--red);   border-left-color: var(--red); }
.alert-warn    { background: var(--orange-bg);color: var(--orange);border-left-color: var(--orange); }
.alert-info    { background: var(--avi-light);color: var(--avi);   border-left-color: var(--avi); }

/* ══════════════════════════════════════════════════════════
   METRIC GRID
══════════════════════════════════════════════════════════ */
.metric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}
.metric-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px 16px 14px;
  position: relative;
  overflow: hidden;
  transition: transform .15s, box-shadow .15s;
  box-shadow: var(--shadow-sm);
}
.metric-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }

/* Accent strip haut */
.metric-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--avi);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.metric-card.highlight::before  { background: var(--gold); }
.metric-card.highlight-blue::before { background: var(--avi-mid); }
.metric-card.success::before    { background: var(--green); }
.metric-card.danger::before     { background: var(--red); }
.metric-card.warn::before       { background: var(--orange); }

.metric-card .metric-label {
  font-size: 10.5px; font-weight: 700;
  color: var(--text-3);
  text-transform: uppercase; letter-spacing: 0.06em;
  margin-bottom: 8px;
}
.metric-card .metric-value { font-size: 28px; font-weight: 800; color: var(--avi-deeper); line-height: 1.1; }
.metric-card .metric-sub   { font-size: 11px; color: var(--text-3); margin-top: 4px; }
.metric-card .metric-icon  { font-size: 26px; color: var(--gray-200); position: absolute; right: 12px; top: 14px; }

.metric-card.highlight      .metric-value { color: var(--gold); }
.metric-card.highlight-blue .metric-value { color: var(--avi-mid); }
.metric-card.success        .metric-value { color: var(--green); }
.metric-card.danger         .metric-value { color: var(--red); }
.metric-card.warn           .metric-value { color: var(--orange); }

.metric-badge { position: absolute; top: 12px; right: 10px; font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 10px; }
.badge-danger.metric-badge { background: var(--red-bg); color: var(--red); }

/* ══════════════════════════════════════════════════════════
   CARDS
══════════════════════════════════════════════════════════ */
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}
.card-head {
  display: flex; align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.card-title {
  font-size: 14px; font-weight: 700;
  color: var(--avi-deeper);
  display: flex; align-items: center; gap: 8px;
}
.card-active-dot {
  border-left: 3px solid var(--green);
  background: linear-gradient(to right, rgba(26,122,74,.03), #fff 80%);
}

/* ══════════════════════════════════════════════════════════
   GRID LAYOUTS
══════════════════════════════════════════════════════════ */
.grid-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 18px; }
@media (max-width: 768px) { .grid-2col { grid-template-columns: 1fr; } }

/* ══════════════════════════════════════════════════════════
   GAUGES
══════════════════════════════════════════════════════════ */
.gauge-list  { display: flex; flex-direction: column; gap: 13px; }
.gauge-row   { display: flex; align-items: center; gap: 10px; }
.gauge-label { font-size: 12px; font-weight: 500; color: var(--text-2); min-width: 110px; }
.gauge-track { flex: 1; height: 8px; background: var(--gray-200); border-radius: 4px; overflow: hidden; }
.gauge-fill  { height: 100%; border-radius: 4px; transition: width .5s cubic-bezier(.4,0,.2,1); }
.gauge-val   { font-size: 12px; font-weight: 700; color: var(--text); min-width: 55px; text-align: right; }
.fill-gold   { background: linear-gradient(to right, var(--gold), #E8B84B); }
.fill-blue   { background: linear-gradient(to right, var(--avi), var(--avi-mid)); }
.fill-green  { background: linear-gradient(to right, var(--green), #28A865); }
.fill-red    { background: linear-gradient(to right, var(--red), #E74C3C); }
.fill-orange { background: linear-gradient(to right, var(--orange), #E67E22); }

/* ══════════════════════════════════════════════════════════
   DOTATION BANNER (passage)
══════════════════════════════════════════════════════════ */
.dotation-banner {
  background: linear-gradient(135deg, var(--avi-deeper), var(--avi-dark));
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-md);
}
.db-title  { color: rgba(255,255,255,0.65); font-size: 13px; font-weight: 500; display: flex; align-items: center; gap: 8px; margin-bottom: 16px; }
.db-icon   { font-size: 18px; color: var(--gold); }
.db-metrics{ display: flex; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
.db-metric { display: flex; flex-direction: column; align-items: center; padding: 0 24px; flex: 1; min-width: 100px; }
.db-sep    { width: 1px; height: 40px; background: rgba(255,255,255,0.12); }
.db-val    { font-size: 30px; font-weight: 800; color: #fff; line-height: 1.1; }
.db-val.gold { color: var(--gold); }
.db-val.blue { color: #7ABFEF; }
.db-label  { font-size: 10.5px; color: rgba(255,255,255,0.45); margin-top: 3px; text-transform: uppercase; letter-spacing: .05em; }
.db-sub    { font-size: 11px; color: rgba(255,255,255,0.3); margin-top: 1px; }
.db-bars   { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 14px; }
.db-bars .gauge-label { color: rgba(255,255,255,0.5); min-width: 40px; }
.db-bars .gauge-track { background: rgba(255,255,255,0.12); }
.db-bars .gauge-val   { color: rgba(255,255,255,0.7); }

/* ══════════════════════════════════════════════════════════
   INFO BAR
══════════════════════════════════════════════════════════ */
.info-bar {
  display: flex; gap: 0; flex-wrap: wrap;
  background: linear-gradient(135deg, var(--avi-deeper), var(--avi-dark));
  border-radius: var(--radius-lg);
  padding: 14px 20px;
  margin-bottom: 18px;
  box-shadow: var(--shadow);
}
.info-bar-item { display: flex; flex-direction: column; gap: 2px; padding: 0 20px; border-right: 1px solid rgba(255,255,255,0.1); }
.info-bar-item:first-child { padding-left: 0; }
.info-bar-item:last-child  { border-right: none; }
.ib-label { font-size: 10.5px; color: rgba(255,255,255,0.4); text-transform: uppercase; letter-spacing: .05em; }
.ib-val   { font-size: 15px; font-weight: 700; color: #fff; }
.text-gold { color: var(--gold) !important; }
.text-blue { color: #7ABFEF !important; }

/* ══════════════════════════════════════════════════════════
   STAT CARDS
══════════════════════════════════════════════════════════ */
.stat-box { text-align: center; padding: 24px; }
.stat-box.highlight { border-top: 3px solid var(--gold); }
.stat-box.highlight-blue { border-top: 3px solid var(--avi); }
.stat-label { font-size: 11px; color: var(--text-3); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 8px; font-weight: 600; }
.stat-big   { font-size: 42px; font-weight: 800; color: var(--avi-deeper); letter-spacing: -0.03em; }
.stat-sub   { font-size: 13px; color: var(--text-3); margin-top: 4px; }
.badge-danger-inline { display: inline-block; margin-top: 8px; font-size: 11px; color: var(--red); background: var(--red-bg); padding: 3px 10px; border-radius: 10px; font-weight: 600; }

/* ══════════════════════════════════════════════════════════
   STAT ROWS
══════════════════════════════════════════════════════════ */
.stat-row { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--gray-200); font-size: 13px; }
.stat-row:last-child { border-bottom: none; }
.stat-key  { color: var(--text-3); font-weight: 500; }
.stat-val  { font-weight: 700; color: var(--text); }
.text-green  { color: var(--green) !important; }
.text-red    { color: var(--red) !important; }
.text-orange { color: var(--orange) !important; }
.divider { border: none; border-top: 1px solid var(--border); margin: 12px 0; }

/* ══════════════════════════════════════════════════════════
   FORMS
══════════════════════════════════════════════════════════ */
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
@media (max-width: 600px) { .form-grid-2 { grid-template-columns: 1fr; } }
.form-group { display: flex; flex-direction: column; gap: 5px; }
.form-group label { font-size: 11.5px; font-weight: 600; color: var(--text-2); text-transform: uppercase; letter-spacing: 0.04em; }
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; padding: 10px 13px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 13.5px; color: var(--text);
  background: var(--gray-50);
  font-family: inherit;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--avi);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(0,91,153,0.1);
}
.form-group textarea { resize: vertical; min-height: 68px; }
.form-hint { font-size: 11px; color: var(--text-3); }
.form-section-title {
  font-size: 11px; font-weight: 700; color: var(--avi-dark);
  text-transform: uppercase; letter-spacing: .06em;
  border-top: 1px solid var(--border);
  padding-top: 14px; margin: 14px 0 10px;
}
.req { color: var(--red); }

/* ══════════════════════════════════════════════════════════
   BUTTONS
══════════════════════════════════════════════════════════ */
.btn-primary {
  background: linear-gradient(135deg, var(--avi-dark), var(--avi));
  color: #fff; border: none;
  border-radius: var(--radius);
  padding: 10px 20px;
  font-size: 13px; font-weight: 700;
  font-family: inherit; cursor: pointer;
  display: inline-flex; align-items: center; gap: 7px;
  transition: opacity .15s, transform .1s, box-shadow .15s;
  box-shadow: 0 3px 10px rgba(0,91,153,0.3);
  letter-spacing: 0.01em;
}
.btn-primary:hover  { opacity: 0.9; transform: translateY(-1px); box-shadow: 0 5px 16px rgba(0,91,153,0.35); }
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
  background: #fff; color: var(--text-2);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 9px 15px;
  font-size: 12.5px; font-weight: 600;
  font-family: inherit; cursor: pointer;
  text-decoration: none;
  display: inline-flex; align-items: center; gap: 6px;
  transition: all .15s;
}
.btn-secondary:hover { background: var(--avi-light); border-color: var(--avi-border); color: var(--avi); }

.btn-danger {
  background: var(--red); color: #fff;
  border: none; border-radius: var(--radius);
  padding: 8px 15px;
  font-size: 12.5px; font-weight: 700;
  font-family: inherit; cursor: pointer;
  transition: opacity .15s;
}
.btn-danger:hover { opacity: 0.88; }

.btn-filter {
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.6);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 20px; padding: 6px 15px;
  font-size: 12px; font-weight: 600;
  cursor: pointer; text-decoration: none;
  transition: all .15s;
}
.btn-filter:hover  { background: rgba(255,255,255,0.15); color: #fff; }
.btn-filter.active { background: var(--gold); color: var(--avi-deeper); border-color: var(--gold); }

.btn-xs {
  padding: 4px 10px; font-size: 11px; font-weight: 600;
  border-radius: 6px; cursor: pointer; font-family: inherit;
  border: 1.5px solid var(--border); background: #fff; color: var(--text-2);
  transition: all .15s;
}
.btn-xs.btn-warn    { border-color: var(--orange); color: var(--orange); }
.btn-xs.btn-success { border-color: var(--green);  color: var(--green);  }
.btn-xs.btn-primary { background: var(--avi); color: #fff; border-color: var(--avi); }

/* ══════════════════════════════════════════════════════════
   BADGES
══════════════════════════════════════════════════════════ */
.badge { display: inline-flex; align-items: center; font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 10px; letter-spacing: 0.02em; }
.badge-cab    { background: rgba(201,168,76,.15); color: #7A5C10; }
.badge-tag    { background: var(--avi-light); color: var(--avi); }
.badge-green  { background: var(--green-bg); color: var(--green); }
.badge-gray   { background: var(--gray-200); color: var(--gray-500); }
.badge-danger { background: var(--red-bg); color: var(--red); }
.badge-warn   { background: var(--orange-bg); color: var(--orange); }

/* ══════════════════════════════════════════════════════════
   ROLE TAGS
══════════════════════════════════════════════════════════ */
.role-tag { display: inline-flex; align-items: center; font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 10px; }
.role-admin      { background: rgba(201,168,76,.2); color: #7A5C10; }
.role-magasinier { background: var(--avi-light); color: var(--avi-dark); }
.role-passage    { background: var(--green-bg); color: var(--green); }

/* Badges rôle page login */
.role-badge { display: inline-flex; align-items: center; padding: 4px 11px; border-radius: 10px; font-size: 11px; font-weight: 700; }
.role-admin       { background: rgba(201,168,76,.15); color: #7A5C10; }
.role-magasinier  { background: var(--avi-light); color: var(--avi-dark); }
.role-passage     { background: var(--green-bg); color: var(--green); }

/* ══════════════════════════════════════════════════════════
   TABLES
══════════════════════════════════════════════════════════ */
.table-wrap { overflow-x: auto; border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; }
th {
  text-align: left; font-size: 10.5px; font-weight: 700;
  color: var(--text-3); text-transform: uppercase; letter-spacing: .05em;
  padding: 9px 13px; border-bottom: 2px solid var(--border);
  background: var(--gray-50); white-space: nowrap;
}
td { padding: 10px 13px; border-bottom: 1px solid var(--gray-200); font-size: 13px; color: var(--text); vertical-align: middle; }
tr:last-child td { border-bottom: none; }
tr:hover td { background: var(--avi-light); }
.td-num   { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.td-obs   { color: var(--text-3); font-size: 12px; max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.td-empty { color: var(--text-3); text-align: center; padding: 32px; font-style: italic; }
.row-inactive td { opacity: .45; }
code { font-family: 'SF Mono', monospace; background: var(--gray-100); padding: 2px 6px; border-radius: 4px; font-size: 12px; color: var(--avi); }

/* ══════════════════════════════════════════════════════════
   DOTATION PROGRESS (page dotation.php)
══════════════════════════════════════════════════════════ */
.dot-progress-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.dp-label { font-size: 10.5px; color: var(--text-3); text-transform: uppercase; letter-spacing: .05em; font-weight: 600; }
.dp-val   { font-size: 26px; font-weight: 800; color: var(--avi-deeper); }
.dp-sub   { font-size: 12px; color: var(--text-3); margin-top: 4px; }

/* ══════════════════════════════════════════════════════════
   ROLES INFO (page utilisateurs)
══════════════════════════════════════════════════════════ */
.roles-grid { display: flex; flex-direction: column; gap: 14px; }
.role-info  { display: flex; align-items: flex-start; gap: 10px; }
.role-info p { font-size: 12px; color: var(--text-2); line-height: 1.5; }

/* Mini barre perf */
.mini-bar  { width: 100px; height: 6px; background: var(--gray-200); border-radius: 3px; overflow: hidden; }
.mini-fill { height: 100%; background: linear-gradient(to right, var(--avi), var(--avi-mid)); border-radius: 3px; }

/* ══════════════════════════════════════════════════════════
   EMPTY STATE
══════════════════════════════════════════════════════════ */
.empty-state { text-align: center; padding: 52px 20px; color: var(--text-3); }
.empty-icon  { font-size: 52px; margin-bottom: 16px; opacity: 0.35; }
.empty-state h3 { font-size: 17px; font-weight: 700; color: var(--text-2); margin-bottom: 8px; }
.empty-state p  { font-size: 13px; max-width: 360px; margin: 0 auto; }

/* ══════════════════════════════════════════════════════════
   DIVERS
══════════════════════════════════════════════════════════ */
.label-hint { font-size: 10px; color: var(--text-3); font-weight: 400; margin-left: 4px; }
canvas { display: block; }

