/* =============================================================
   MS Platform 4.0 — Design System
   Compatible : PHP 8.4 / MySQL 8 / IONOS / app.ms-rdc.org
   Couleurs officielles : Bleu (#0b4778) · Rouge (#b71f2a)
   ============================================================= */

/* ---------------------------------------------------------------
   Variables CSS
--------------------------------------------------------------- */
:root {
  /* Couleurs primaires MS */
  --blue:        #0b4778;
  --blue-dark:   #071d35;
  --blue-mid:    #1565a8;
  --blue-light:  #e8f0fb;
  --blue-hover:  #0d5591;
  --red:         #b71f2a;
  --red-light:   #fde6e8;

  /* Neutres */
  --gray-900:  #0f172a;
  --gray-700:  #334155;
  --gray-500:  #64748b;
  --gray-300:  #cbd5e1;
  --gray-200:  #e2e8f0;
  --gray-100:  #f1f5f9;
  --gray-50:   #f8fafc;
  --white:     #ffffff;

  /* Sémantiques */
  --success:       #0b8f4d;
  --success-bg:    #dcfce7;
  --warning:       #b45309;
  --warning-bg:    #fef3c7;
  --danger:        #b71f2a;
  --danger-bg:     #fde6e8;
  --info:          #0369a1;
  --info-bg:       #e0f2fe;
  --muted:         #64748b;

  /* Niveaux de carte */
  --bronze:  #a56220;
  --argent:  #6b7280;
  --gold:    #d97706;
  --platine: #8b5cf6;

  /* Typographie */
  --font:   'Inter', system-ui, -apple-system, Segoe UI, Arial, sans-serif;
  --radius: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  /* Ombres */
  --shadow-sm: 0 1px 3px rgba(9,34,66,.07), 0 1px 2px rgba(9,34,66,.06);
  --shadow:    0 4px 16px rgba(9,34,66,.09), 0 1px 4px rgba(9,34,66,.06);
  --shadow-lg: 0 20px 48px rgba(9,34,66,.13), 0 4px 12px rgba(9,34,66,.08);

  /* Layout */
  --sidebar-w: 270px;
  --topbar-h:  60px;
}

/* ---------------------------------------------------------------
   Reset & Base
--------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 15px; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  background: var(--gray-50);
  color: var(--gray-900);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }
button, input, select, textarea { font-family: inherit; }

/* ---------------------------------------------------------------
   Layout Admin (Sidebar + Main)
--------------------------------------------------------------- */
.layout {
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  min-height: 100vh;
}

/* ---------------------------------------------------------------
   Sidebar
--------------------------------------------------------------- */
.sidebar {
  background: linear-gradient(175deg, var(--blue-dark) 0%, var(--blue) 100%);
  color: #fff;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  scrollbar-width: none;
}
.sidebar::-webkit-scrollbar { display: none; }

.sidebar-header {
  padding: 24px 20px 16px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-ms {
  width: 40px;
  height: 40px;
  background: #fff;
  color: var(--blue);
  font-weight: 900;
  font-size: 1.1rem;
  border-radius: 10px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,.2);
}

.logo-text strong {
  display: block;
  font-size: .85rem;
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
}
.logo-text small {
  font-size: .72rem;
  opacity: .65;
  color: #fff;
}

/* Navigation */
.sidebar-nav {
  flex: 1;
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-section {
  margin-bottom: 8px;
}

.nav-section-label {
  display: block;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.45);
  padding: 10px 8px 4px;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: .875rem;
  font-weight: 500;
  color: rgba(255,255,255,.75);
  transition: background .15s, color .15s;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
}
.nav-link:hover {
  background: rgba(255,255,255,.12);
  color: #fff;
  text-decoration: none;
}
.nav-link.active {
  background: rgba(255,255,255,.18);
  color: #fff;
  font-weight: 700;
}

/* Footer sidebar */
.sidebar-footer {
  padding: 16px;
  border-top: 1px solid rgba(255,255,255,.1);
  display: flex;
  align-items: center;
  gap: 10px;
}

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}

.user-avatar {
  width: 34px;
  height: 34px;
  background: rgba(255,255,255,.2);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: .9rem;
  flex-shrink: 0;
  color: #fff;
}

.user-info {
  min-width: 0;
  overflow: hidden;
}
.user-info strong {
  display: block;
  font-size: .8rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.user-info small {
  font-size: .7rem;
  color: rgba(255,255,255,.55);
  text-transform: uppercase;
  letter-spacing: .05em;
}

.btn-logout {
  width: 32px;
  height: 32px;
  background: rgba(255,255,255,.1);
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: rgba(255,255,255,.7);
  font-size: 1rem;
  flex-shrink: 0;
  transition: background .15s;
  text-decoration: none;
}
.btn-logout:hover { background: rgba(255,0,0,.25); color: #fff; }

/* ---------------------------------------------------------------
   Main Wrap
--------------------------------------------------------------- */
.main-wrap {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow: hidden;
}

/* ---------------------------------------------------------------
   Topbar
--------------------------------------------------------------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--topbar-h);
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 24px;
  box-shadow: var(--shadow-sm);
}

.topbar-title {
  flex: 1;
  font-size: .95rem;
  font-weight: 600;
  color: var(--gray-700);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.topbar-badge {
  font-size: .75rem;
  font-weight: 600;
  color: var(--muted);
  background: var(--gray-100);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.sidebar-toggle {
  background: none;
  border: none;
  font-size: 1.3rem;
  cursor: pointer;
  color: var(--gray-500);
  display: none;
  padding: 4px;
  border-radius: 6px;
}
.sidebar-toggle:hover { background: var(--gray-100); }

/* ---------------------------------------------------------------
   Main Content
--------------------------------------------------------------- */
.main-content {
  flex: 1;
  padding: 28px 32px;
  max-width: 1400px;
  width: 100%;
}

/* ---------------------------------------------------------------
   Flash Messages
--------------------------------------------------------------- */
.flash {
  margin: 12px 24px 0;
  padding: 14px 18px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .9rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.flash--success { background: var(--success-bg); color: var(--success); border-left: 4px solid var(--success); }
.flash--error   { background: var(--danger-bg);  color: var(--danger);  border-left: 4px solid var(--danger); }
.flash--warning { background: var(--warning-bg); color: var(--warning); border-left: 4px solid var(--warning); }
.flash--info    { background: var(--info-bg);    color: var(--info);    border-left: 4px solid var(--info); }

.flash-close {
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  color: inherit;
  opacity: .6;
  flex-shrink: 0;
  line-height: 1;
  padding: 0;
}
.flash-close:hover { opacity: 1; }

/* Flash global (layout guest) */
.flash-global {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  padding: 14px 24px;
  border-radius: var(--radius);
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  max-width: 480px;
  width: 90%;
  text-align: center;
}
.flash-global--success { background: var(--success-bg); color: var(--success); }
.flash-global--error   { background: var(--danger-bg);  color: var(--danger); }

/* ---------------------------------------------------------------
   KPI Cards
--------------------------------------------------------------- */
.kpi-grid {
  display: grid;
  gap: 18px;
  margin-bottom: 20px;
}
.kpi-grid--4 { grid-template-columns: repeat(4, 1fr); }
.kpi-grid--3 { grid-template-columns: repeat(3, 1fr); }
.kpi-grid--2 { grid-template-columns: repeat(2, 1fr); }

.kpi-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: box-shadow .2s, transform .2s;
}
.kpi-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }

.kpi-card--blue   { border-top: 3px solid var(--blue); }
.kpi-card--green  { border-top: 3px solid var(--success); }
.kpi-card--gold   { border-top: 3px solid var(--gold); }
.kpi-card--purple { border-top: 3px solid var(--platine); }
.kpi-card--red    { border-top: 3px solid var(--red); }

.kpi-icon { font-size: 1.8rem; line-height: 1; }

.kpi-body {}
.kpi-value {
  font-size: 2rem;
  font-weight: 900;
  color: var(--blue-dark);
  line-height: 1;
  letter-spacing: -.03em;
}
.kpi-label {
  font-size: .78rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-top: 4px;
}

.kpi-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
  padding-top: 10px;
  border-top: 1px solid var(--gray-100);
}
.kpi-sub { font-size: .78rem; color: var(--muted); }
.kpi-link {
  font-size: .78rem;
  font-weight: 700;
  color: var(--blue);
  text-decoration: none;
}
.kpi-link:hover { text-decoration: underline; }

/* Niveaux de carte */
.card-level-badge {
  background: var(--white);
  border-radius: var(--radius);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
}
.level-name {
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .1em;
}
.level-count { font-size: 1.4rem; font-weight: 900; }

.card-level-badge--bronze .level-name { color: var(--bronze); }
.card-level-badge--bronze .level-count { color: var(--bronze); }
.card-level-badge--argent .level-name  { color: var(--argent); }
.card-level-badge--argent .level-count { color: var(--argent); }
.card-level-badge--gold .level-name    { color: var(--gold); }
.card-level-badge--gold .level-count   { color: var(--gold); }
.card-level-badge--platine .level-name  { color: var(--platine); }
.card-level-badge--platine .level-count { color: var(--platine); }

/* ---------------------------------------------------------------
   Panels (cartes contenu)
--------------------------------------------------------------- */
.panel {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--gray-100);
}

.panel-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--gray-900);
}

.panel-body { padding: 20px; }

/* Dashboard grid 2 colonnes */
.dashboard-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

/* ---------------------------------------------------------------
   Tables
--------------------------------------------------------------- */
.table-wrap { overflow-x: auto; }

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: .875rem;
}

.table thead tr {
  border-bottom: 2px solid var(--gray-200);
}

.table th {
  text-align: left;
  padding: 10px 16px;
  font-size: .72rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .06em;
  white-space: nowrap;
}

.table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--gray-100);
  color: var(--gray-700);
  vertical-align: middle;
}

.table tbody tr:last-child td { border-bottom: none; }
.table tbody tr:hover td { background: var(--gray-50); }

/* Progress bar (dans la table des provinces) */
.progress-bar-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}
.progress-bar {
  height: 6px;
  background: var(--blue);
  border-radius: var(--radius-full);
  flex: 1;
  max-width: 80px;
  min-width: 4px;
  transition: width .3s;
}
.progress-bar-wrap span { font-size: .72rem; color: var(--muted); white-space: nowrap; }

/* ---------------------------------------------------------------
   Badges
--------------------------------------------------------------- */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .03em;
}
.badge--success { background: var(--success-bg); color: var(--success); }
.badge--danger  { background: var(--danger-bg);  color: var(--danger); }
.badge--warning { background: var(--warning-bg); color: var(--warning); }
.badge--info    { background: var(--info-bg);    color: var(--info); }
.badge--muted   { background: var(--gray-100);   color: var(--muted); }
.badge--pending { background: var(--warning-bg); color: var(--warning); }

/* ---------------------------------------------------------------
   Boutons
--------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--gray-300);
  font-weight: 600;
  font-size: .875rem;
  cursor: pointer;
  text-decoration: none;
  color: var(--gray-700);
  background: var(--white);
  transition: background .15s, border-color .15s, box-shadow .15s, transform .1s;
  white-space: nowrap;
}
.btn:hover { background: var(--gray-50); border-color: var(--gray-400); text-decoration: none; }
.btn:active { transform: scale(.98); }

.btn--primary { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn--primary:hover { background: var(--blue-hover); border-color: var(--blue-hover); }

.btn--danger { background: var(--red); border-color: var(--red); color: #fff; }
.btn--danger:hover { background: #9e1b23; border-color: #9e1b23; }

.btn--success { background: var(--success); border-color: var(--success); color: #fff; }
.btn--success:hover { opacity: .9; }

.btn--sm  { padding: 5px 12px; font-size: .8rem; border-radius: 8px; }
.btn--lg  { padding: 12px 24px; font-size: 1rem; }
.btn--full { width: 100%; }

/* ---------------------------------------------------------------
   Formulaires
--------------------------------------------------------------- */
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field-label {
  font-size: .85rem;
  font-weight: 600;
  color: var(--gray-700);
}

.field-input,
.field select,
.field textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius);
  font-size: .9rem;
  font-family: inherit;
  color: var(--gray-900);
  background: var(--white);
  transition: border-color .15s, box-shadow .15s;
  outline: none;
}
.field-input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(11,71,120,.12);
}
.field-input.error { border-color: var(--red); }

.field-password-wrap { position: relative; }
.field-password-wrap .field-input { padding-right: 44px; }
.field-eye {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  color: var(--muted);
  padding: 0;
  line-height: 1;
}

.field--inline { flex-direction: row; align-items: center; gap: 10px; }

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: .875rem;
  color: var(--gray-700);
}
.checkbox-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--blue);
  cursor: pointer;
}

.form-grid {
  display: grid;
  gap: 16px;
}
.form-grid--2 { grid-template-columns: repeat(2, 1fr); }
.form-grid--3 { grid-template-columns: repeat(3, 1fr); }
.col-span-2   { grid-column: span 2; }
.col-span-3   { grid-column: span 3; }
.col-span-full { grid-column: 1 / -1; }

/* Error messages */
.field-error { font-size: .8rem; color: var(--red); margin-top: 2px; }

/* ---------------------------------------------------------------
   Activité (timeline)
--------------------------------------------------------------- */
.activity-list { padding: 8px 0; }

.activity-item {
  display: flex;
  gap: 14px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--gray-100);
}
.activity-item:last-child { border-bottom: none; }

.activity-dot {
  width: 8px;
  height: 8px;
  background: var(--blue);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 6px;
}

.activity-action { font-size: .875rem; font-weight: 600; color: var(--gray-900); }
.activity-detail { font-size: .8rem; color: var(--muted); margin-top: 2px; }
.activity-meta   { font-size: .75rem; color: var(--gray-300); margin-top: 4px; }

/* ---------------------------------------------------------------
   Category Chips
--------------------------------------------------------------- */
.category-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 16px 20px;
}

.category-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--blue-light);
  border-radius: var(--radius-full);
  padding: 6px 14px;
}
.category-name { font-size: .8rem; font-weight: 600; color: var(--blue); }
.category-count {
  background: var(--blue);
  color: #fff;
  font-size: .7rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  padding: 2px 7px;
}

/* ---------------------------------------------------------------
   Layout Guest (Login)
--------------------------------------------------------------- */
.guest-body {
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue-mid) 60%, #1e40af 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.guest-wrap {
  width: 100%;
  max-width: 420px;
}

.login-card {
  background: var(--white);
  border-radius: 24px;
  padding: 40px 36px;
  box-shadow: var(--shadow-lg);
}

.login-logo {
  text-align: center;
  margin-bottom: 28px;
}

.login-logo-mark {
  width: 56px;
  height: 56px;
  background: var(--blue);
  color: #fff;
  font-size: 1.3rem;
  font-weight: 900;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  box-shadow: 0 4px 16px rgba(11,71,120,.35);
}

.login-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--blue-dark);
  letter-spacing: -.03em;
  margin-bottom: 4px;
}

.login-sub {
  font-size: .8rem;
  color: var(--muted);
  line-height: 1.5;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.login-footer {
  text-align: center;
  margin-top: 20px;
  font-size: .78rem;
  color: var(--muted);
}

/* ---------------------------------------------------------------
   Error Pages
--------------------------------------------------------------- */
.error-body {
  background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.error-container {
  text-align: center;
  color: #fff;
  max-width: 480px;
}

.error-code {
  font-size: 7rem;
  font-weight: 900;
  letter-spacing: -.05em;
  line-height: 1;
  opacity: .9;
}

.error-title {
  font-size: 1.8rem;
  font-weight: 700;
  margin: 8px 0 16px;
}

.error-desc {
  font-size: 1rem;
  opacity: .75;
  margin-bottom: 28px;
  line-height: 1.6;
}

.error-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------------------------------------------------------------
   Utilitaires
--------------------------------------------------------------- */
.text-muted   { color: var(--muted); }
.text-center  { text-align: center; }
.text-right   { text-align: right; }
.text-mono    { font-family: 'Courier New', monospace; font-size: .85rem; }
.text-success { color: var(--success); }
.text-danger  { color: var(--danger); }
.text-warning { color: var(--warning); }

.mt-4  { margin-top: 14px; }
.mt-6  { margin-top: 20px; }
.mt-8  { margin-top: 28px; }
.mb-4  { margin-bottom: 14px; }
.mb-6  { margin-bottom: 20px; }
.mb-0  { margin-bottom: 0; }

.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2  { gap: 8px; }
.gap-4  { gap: 14px; }

.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }
.fw-900 { font-weight: 900; }

/* ---------------------------------------------------------------
   Responsive
--------------------------------------------------------------- */
@media (max-width: 1100px) {
  .kpi-grid--4 { grid-template-columns: repeat(2, 1fr); }
  .dashboard-grid { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  :root { --sidebar-w: 0px; }

  .layout { grid-template-columns: 1fr; }

  .sidebar {
    position: fixed;
    left: -280px;
    width: 270px;
    z-index: 200;
    transition: left .25s ease;
    height: 100vh;
  }
  .sidebar.open { left: 0; box-shadow: 0 0 40px rgba(0,0,0,.35); }

  .sidebar-toggle { display: flex; }

  .main-content { padding: 20px 16px; }
  .topbar       { padding: 0 16px; }
}

@media (max-width: 600px) {
  .kpi-grid--4,
  .kpi-grid--3,
  .kpi-grid--2 { grid-template-columns: 1fr; }

  .login-card { padding: 28px 20px; }

  .form-grid--2,
  .form-grid--3 { grid-template-columns: 1fr; }
  .col-span-2, .col-span-3 { grid-column: auto; }

  .btn--full-mobile { width: 100%; }
}

/* ---------------------------------------------------------------
   Print
--------------------------------------------------------------- */
@media print {
  .sidebar, .topbar, .btn, .flash, .sidebar-toggle { display: none !important; }
  .layout { display: block; }
  .main-content { padding: 0; }
  .panel { box-shadow: none; border: 1px solid #ddd; }
}

/* ============================================================
   Logo MS — image réelle (remplacement badges texte)
   ============================================================ */

/* Sidebar */
.logo-ms-img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 50%;
  flex-shrink: 0;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,.25);
}

/* Login page */
.login-logo-img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  border-radius: 50%;
  display: block;
  margin: 0 auto 14px;
  box-shadow: 0 4px 16px rgba(11,71,120,.2);
  background: #fff;
}

