/* =========================================================
   BI-WÔRI — Espace partenaires (tableau de bord et connexion)
   ========================================================= */

.topbar .topbar-area { font-weight: 700; color: var(--green); }

.bw-dash { display: grid; gap: 44px; }
.bw-dash section { display: grid; gap: 14px; }
.bw-dash h2 { font-size: clamp(1.3rem, 2.2vw, 1.7rem); margin: 0; }
.bw-dash h3 { margin: 0 0 10px; }
.bw-small { font-size: .86rem; color: var(--muted); margin: 0; }

.bw-team-bar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px;
  background: var(--ink); color: #D5E1D8; border-radius: var(--radius); padding: 12px 18px; font-size: .9rem;
}
.bw-team-bar strong { color: var(--sun); }
.bw-team-bar a { color: #fff; font-weight: 700; }

.bw-dash-head {
  display: grid; grid-template-columns: 128px 1fr; gap: 28px; align-items: center;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px 30px;
}
.bw-dash-head h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin: 0 0 8px; }
.bw-dash-head p { margin: 0 0 8px; }
.bw-dash-head .eyebrow { margin-bottom: 6px; }
.bw-dash-logo {
  width: 128px; height: 128px; border-radius: 18px; background: var(--surface);
  display: grid; place-items: center; overflow: hidden;
}
.bw-dash-logo img { width: 100%; height: 100%; object-fit: contain; padding: 12px; }
.bw-dash-logo span { font-family: var(--font-head); font-weight: 800; font-size: 3rem; color: var(--ocre); }
.bw-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; color: var(--muted); font-size: .9rem; }
.bw-message { background: var(--surface); border-radius: var(--radius); padding: 14px 18px; color: var(--text); }

.bw-kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.bw-kpi { background: var(--surface); border-radius: var(--radius); padding: 22px 22px 20px; display: grid; gap: 8px; align-content: start; }
.bw-kpi strong { font-family: var(--font-head); font-weight: 800; font-size: 2.3rem; line-height: 1.05; color: var(--ink); }
.bw-kpi .lbl { font-weight: 700; color: var(--ink); line-height: 1.35; }
.bw-kpi .badge { justify-self: start; }
.bw-kpi small { color: var(--muted); font-size: .8rem; line-height: 1.4; }

.bw-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.bw-grid2 > .card { background: #fff; border: 1px solid var(--line); }
.bw-chips-left { justify-content: flex-start; }
a.chip { text-decoration: none; }
a.chip:hover { border-color: var(--ocre); color: var(--ocre-dark); }

.bw-bar { display: grid; grid-template-columns: 56px 1fr 48px; gap: 10px; align-items: center; font-size: .88rem; }
.bw-bar i { display: block; height: 10px; border-radius: 999px; background: linear-gradient(90deg, var(--green) var(--w), var(--surface-2) var(--w)); }
.bw-bar b { text-align: right; font-weight: 700; color: var(--ink); }

.bw-progress { height: 12px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.bw-progress span { display: block; height: 100%; width: var(--w); background: var(--ocre); border-radius: 999px; }
.bw-dash .table-wrap { border: 1px solid var(--line); }
.bw-dash .checklist li { margin-bottom: 8px; }

/* Connexion */
.bw-login {
  max-width: 520px; margin: 0 auto; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 34px 32px; box-shadow: var(--shadow);
}
.bw-login h2 { font-size: 1.5rem; }
.bw-login form p { margin: 0 0 14px; }
.bw-login label { display: block; }
.bw-login input[type="text"], .bw-login input[type="password"] { width: 100%; }
.bw-login .login-remember label { display: flex; gap: 8px; align-items: center; font-weight: 500; }
.bw-login .login-remember input { width: auto; }
.bw-login input[type="submit"] {
  background: var(--ocre); color: #fff; border: 0; border-radius: 999px; padding: 12px 26px;
  font-family: var(--font-head); font-weight: 700; cursor: pointer;
}
.bw-login input[type="submit"]:hover { background: var(--ocre-dark); }

@media (max-width: 760px) {
  .bw-dash-head { grid-template-columns: 1fr; padding: 22px; }
  .bw-dash-logo { width: 96px; height: 96px; }
  .bw-grid2 { grid-template-columns: 1fr; }
  .bw-login { padding: 26px 20px; }
}
