:root {
  --bt-blue: #2C314E;
  --bt-blue-light: #424975;
  --bt-orange: #e8792c;
  --bt-bg: #f7f7f8;
  --bt-green: #2e8b57;
  --bt-red: #c0392b;
  --bt-gray: #6c757d;
}

body {
  background-color: var(--bt-bg);
  font-family: 'Segoe UI', Roboto, Arial, sans-serif;
  overflow-x: hidden;
}

/* --- Navbar --- */
.navbar-bt {
  background-color: var(--bt-blue);
}
.navbar-bt .navbar-brand {
  font-weight: 700;
  color: #fff !important;
  letter-spacing: .5px;
  display: flex;
  align-items: center;
  gap: .5rem;
  min-width: 0;
  flex: 1 1 auto;
}
.navbar-bt .navbar-brand span.marque-texte {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}
.navbar-brand-logo {
  height: 30px;
  width: auto;
  display: block;
  flex-shrink: 0;
}
@media (max-width: 420px) {
  .navbar-bt .navbar-brand {
    font-size: .95rem;
  }
}
.navbar-bt .nav-link {
  color: #d9e6f2 !important;
}
.navbar-bt .nav-link.active,
.navbar-bt .nav-link:hover {
  color: #fff !important;
  font-weight: 600;
}

/* --- Cards / KPI --- */
.kpi-card {
  border: none;
  border-radius: .75rem;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
  padding: 1.25rem;
}
.kpi-card .kpi-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--bt-blue);
}
.kpi-card .kpi-label {
  color: var(--bt-gray);
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .04em;
}

/* --- Badges de statut --- */
.badge-statut {
  padding: .4em .7em;
  font-weight: 600;
  border-radius: .5rem;
}
.statut-nouvelle    { background:#e2e8f0; color:#334155; }
.statut-publiee     { background:#dbeafe; color:#1e40af; }
.statut-attribuee   { background:#fef3c7; color:#92400e; }
.statut-en_cours    { background:#fde68a; color:#78350f; }
.statut-terminee    { background:#d1fae5; color:#065f46; }
.statut-validee     { background:#bbf7d0; color:#065f46; font-weight:700; }
.statut-annulee     { background:#fee2e2; color:#991b1b; }

/* --- Boutons --- */
.btn-bt-primary {
  background-color: var(--bt-blue);
  border-color: var(--bt-blue);
  color: #fff;
}
.btn-bt-primary:hover {
  background-color: var(--bt-blue-light);
  border-color: var(--bt-blue-light);
  color: #fff;
}
.btn-bt-orange {
  background-color: var(--bt-orange);
  border-color: var(--bt-orange);
  color: #fff;
}
.btn-bt-orange:hover {
  background-color: #cf6a1f;
  border-color: #cf6a1f;
  color: #fff;
}

/* --- Cartes mission --- */
.mission-card {
  border: 1px solid #e5e9ef;
  border-radius: .75rem;
  background: #fff;
  transition: box-shadow .15s ease;
}
.mission-card:hover {
  box-shadow: 0 4px 14px rgba(0,0,0,.08);
}
.mission-ref {
  font-family: 'Courier New', monospace;
  font-weight: 700;
  color: var(--bt-blue);
}

/* --- Table responsive --- */
.table-bt thead {
  background-color: var(--bt-blue);
  color: #fff;
}

/* --- Login --- */
.login-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--bt-blue) 0%, var(--bt-blue-light) 100%);
}
.login-card {
  border: none;
  border-radius: 1rem;
  box-shadow: 0 10px 40px rgba(0,0,0,.25);
  max-width: 420px;
  width: 100%;
}
.login-card-logo {
  display: block;
  max-width: 260px;
  height: auto;
  margin: 0 auto 1rem;
}

@media (max-width: 576px) {
  .kpi-value { font-size: 1.5rem; }
}

/* --- Checklist de force du mot de passe --- */
.password-checklist {
  list-style: none;
  padding: 0;
  margin: .5rem 0 1rem;
  font-size: .85rem;
}
.password-checklist li {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .15rem 0;
  color: var(--bt-gray);
  transition: color .15s ease;
}
.password-checklist li::before {
  content: "○";
  display: inline-flex;
  width: 1.1em;
  color: #cbd5e1;
}
.password-checklist li.rule-ok {
  color: var(--bt-green);
  font-weight: 600;
}
.password-checklist li.rule-ok::before {
  content: "✓";
  color: var(--bt-green);
}
.input-mismatch {
  border-color: var(--bt-red) !important;
  background-color: #fef2f2;
}

/* --- Surlignage d'un élément ciblé par une notification --- */
@keyframes surlignagePulse {
  0%   { box-shadow: 0 0 0 0 rgba(232, 121, 44, .55); }
  70%  { box-shadow: 0 0 0 12px rgba(232, 121, 44, 0); }
  100% { box-shadow: 0 0 0 0 rgba(232, 121, 44, 0); }
}
.notif-surligne {
  border: 2px solid var(--bt-orange) !important;
  border-radius: .75rem;
  animation: surlignagePulse 1.4s ease-out 2;
}

/* ------------------------------------------------------------
   Thème Espace Chauffeur — les deux couleurs de marque sont
   inversées par rapport à l'admin (navbar orange / accent marine)
   afin de distinguer immédiatement les deux interfaces d'un
   coup d'œil, sans sortir de la charte graphique.
   ------------------------------------------------------------ */
.theme-chauffeur {
  --bt-blue: #0d9488;
  --bt-blue-light: #14b8a6;
}

