/* Back Office Camille — charte navy/jaune */
:root {
  --vtc-navy: #07276b;
  --vtc-yellow: #ffd70d;
  --vtc-gray: #f5f6f8;
  --vtc-text: #1a1a2e;
  --vtc-muted: #4a5568;
  --radius: 12px;
  --shadow: 0 4px 24px rgba(7, 39, 107, .10);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--vtc-gray);
  color: var(--vtc-text);
  line-height: 1.5;
}

/* Login */
.login-screen {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--vtc-navy) 0%, #0a3a9e 100%);
}
.login-card {
  background: #fff; padding: 40px; border-radius: var(--radius);
  box-shadow: var(--shadow); width: 340px; text-align: center;
}
.login-logo { font-size: 48px; margin-bottom: 8px; }
.login-card h1 { color: var(--vtc-navy); margin-bottom: 4px; }
.login-sub { color: var(--vtc-muted); font-size: 14px; margin-bottom: 20px; }
.login-card input {
  width: 100%; padding: 12px; border: 2px solid #e2e8f0; border-radius: 8px;
  font-size: 15px; margin-bottom: 12px;
}
.login-card input:focus { outline: none; border-color: var(--vtc-navy); }
.login-error { color: #dc2626; font-size: 13px; margin-top: 10px; min-height: 18px; }

/* Boutons */
.vtc-btn {
  background: var(--vtc-navy); color: #fff; border: none; padding: 12px 20px;
  border-radius: 8px; font-size: 15px; font-weight: 600; cursor: pointer;
  transition: background .2s;
}
.vtc-btn:hover { background: #0a3a9e; }
.vtc-btn:focus-visible { outline: 3px solid var(--vtc-yellow); outline-offset: 2px; }

/* App */
.app { min-height: 100vh; }
.topbar {
  background: var(--vtc-navy); color: #fff; display: flex; align-items: center;
  padding: 0 20px; height: 60px; position: sticky; top: 0; z-index: 10;
  box-shadow: var(--shadow);
}
.topbar-brand { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 18px; margin-right: 30px; }
.brand-icon { font-size: 22px; }
.topbar-nav { display: flex; gap: 4px; flex: 1; overflow-x: auto; }
.nav-btn {
  background: transparent; color: #cbd5e1; border: none; padding: 10px 14px;
  border-radius: 8px; cursor: pointer; font-size: 14px; font-weight: 500;
  white-space: nowrap; transition: all .2s;
}
.nav-btn:hover { background: rgba(255,255,255,.1); color: #fff; }
.nav-btn.active { background: var(--vtc-yellow); color: var(--vtc-navy); font-weight: 700; }
.logout-btn {
  background: transparent; color: #cbd5e1; border: 1px solid #334155;
  padding: 8px 14px; border-radius: 8px; cursor: pointer; font-size: 13px;
}
.logout-btn:hover { color: #fff; border-color: #64748b; }

/* Content */
.content { max-width: 1100px; margin: 0 auto; padding: 30px 20px; }
.tab { display: none; }
.tab.active { display: block; }
.tab h2 { color: var(--vtc-navy); margin-bottom: 20px; font-size: 24px; }

/* Dashboard */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-bottom: 20px; }
.stat-card {
  background: #fff; border-radius: var(--radius); padding: 20px;
  box-shadow: var(--shadow); border-top: 4px solid var(--vtc-yellow);
}
.stat-card h3 { color: var(--vtc-navy); margin-bottom: 12px; font-size: 16px; }
.stat-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.stat-row span { color: var(--vtc-muted); font-size: 13px; }
.stat-input {
  width: 90px; padding: 6px 8px; border: 1px solid #e2e8f0; border-radius: 6px;
  text-align: right; font-size: 14px;
}

/* Formulaires */
.form-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.form-row input, .form-row select {
  padding: 10px 12px; border: 2px solid #e2e8f0; border-radius: 8px; font-size: 14px;
  flex: 1; min-width: 140px;
}
.form-row input:focus, .form-row select:focus { outline: none; border-color: var(--vtc-navy); }

/* Listes */
.list { display: flex; flex-direction: column; gap: 10px; }
.list-item {
  background: #fff; border-radius: var(--radius); padding: 16px 20px;
  box-shadow: var(--shadow); display: flex; justify-content: space-between;
  align-items: center; gap: 12px; flex-wrap: wrap;
}
.list-item .li-main { flex: 1; min-width: 200px; }
.list-item .li-title { font-weight: 600; color: var(--vtc-navy); }
.list-item .li-sub { color: var(--vtc-muted); font-size: 13px; }
.badge {
  display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 12px;
  font-weight: 600; background: var(--vtc-gray); color: var(--vtc-muted);
}
.badge.Repéré { background: #e0e7ff; color: #3730a3; }
.badge.Postulé { background: #fef3c7; color: #92400e; }
.badge.Relancé { background: #cffafe; color: #155e75; }
.badge.Entretien { background: #d1fae5; color: #065f46; }
.badge.Refus { background: #fee2e2; color: #991b1b; }
.badge.Accepté { background: #d1fae5; color: #065f46; }
.li-actions { display: flex; gap: 6px; }
.li-actions select { padding: 5px 8px; border: 1px solid #e2e8f0; border-radius: 6px; font-size: 13px; }
.li-actions button {
  background: transparent; border: 1px solid #e2e8f0; border-radius: 6px;
  padding: 5px 10px; cursor: pointer; font-size: 13px; color: var(--vtc-muted);
}
.li-actions button:hover { border-color: #dc2626; color: #dc2626; }
.li-actions a {
  background: var(--vtc-navy); color: #fff; text-decoration: none; border-radius: 6px;
  padding: 5px 10px; font-size: 13px;
}

.empty { color: var(--vtc-muted); text-align: center; padding: 30px; font-style: italic; }
