/* FDE Catalogue Engine — Overrides PicoCSS */

:root {
  --fde-navy: #1A1A2E;
  --fde-dark-blue: #16213E;
  --fde-green: #27AE60;
  --fde-orange: #E67E22;
  --fde-red: #C0392B;
  --fde-blue: #2980B9;
  --fde-bg: #F8F9FF;
  --fde-white: #FFFFFF;
  --fde-gray-100: #F5F5F5;
  --fde-gray-300: #DDDDDD;
  --fde-gray-500: #888888;

  --pico-primary: #1A1A2E;
  --pico-primary-hover: #16213E;
}

/* Header */
.fde-header {
  background: var(--fde-navy);
  padding: 8px 0;
  margin-bottom: 24px;
}
.fde-header nav { margin-bottom: 0; }
.fde-header a { color: rgba(255,255,255,0.7); text-decoration: none; font-size: 14px; }
.fde-header a:hover, .fde-header a.active { color: white; }
.fde-brand { color: white !important; font-size: 18px; }
.fde-header small { color: rgba(255,255,255,0.5); }
.fde-header .outline { border-color: rgba(255,255,255,0.3); color: rgba(255,255,255,0.7); font-size: 12px; padding: 4px 8px; }

/* Badges */
.badge-success, .badge-error, .badge-warning, .badge-info {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: bold;
}
.badge-success { background: var(--fde-green); color: white; }
.badge-error { background: var(--fde-red); color: white; }
.badge-warning { background: var(--fde-orange); color: white; }
.badge-info { background: var(--fde-blue); color: white; }

/* Compteurs */
.counters {
  display: flex;
  gap: 24px;
  justify-content: center;
  margin: 16px 0;
}
.counter { text-align: center; }
.counter-value { display: block; font-size: 32px; font-weight: bold; color: var(--fde-navy); }
.counter-label { font-size: 12px; color: var(--fde-gray-500); }

/* Alertes bandeaux */
.alert-success { background: #E8F5E9; border-left: 4px solid var(--fde-green); padding: 12px 16px; border-radius: 4px; }
.alert-error { background: #FFEBEE; border-left: 4px solid var(--fde-red); padding: 12px 16px; border-radius: 4px; }
.alert-info { background: #E3F2FD; border-left: 4px solid var(--fde-blue); padding: 12px 16px; border-radius: 4px; }

/* Lignes bypassées */
tr.bypassed { opacity: 0.5; }

/* Boutons small */
.small { font-size: 12px; padding: 4px 10px; }

/* Méta */
.meta { font-size: 13px; color: var(--fde-gray-500); }

/* Footer */
footer { margin-top: 48px; text-align: center; color: var(--fde-gray-500); border-top: 1px solid var(--fde-gray-300); padding-top: 16px; }

/* Champ mot de passe avec œil */
.pwd-wrap { position: relative; display: block; }
.pwd-wrap input { padding-right: 44px !important; }
.pwd-toggle {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 18px;
  padding: 4px 8px;
  margin: 0;
  width: auto;
  color: var(--fde-gray-500);
  line-height: 1;
}
.pwd-toggle:hover { color: var(--fde-navy); background: transparent; }
