@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url("../vendor/inter-latin-ext.260c81a4759b.woff2") format('woff2');
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --primary: #FF7E5F;
  --primary-dark: #E06B4F;
  --primary-light: #FFB399;
  --secondary: #4ECDC4;
  --success: #6BCB77;
  --warning: #FFD93D;
  --danger: #FF6B6B;
  --info: #6EC6FF;
  --dark: #2D3436;
  --gray: #636E72;
  --gray-light: #B2BEC3;
  --bg: #FFF8F0;
  --bg-card: #FFFFFF;
  --sidebar-bg: #2C3E50;
  --sidebar-hover: #34495E;
  --sidebar-active: #FF7E5F;
  --shadow: 0 2px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
  --radius: 12px;
  --radius-sm: 8px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Inter', -apple-system, sans-serif;
  background: var(--bg);
  color: var(--dark);
  line-height: 1.6;
  min-height: 100vh;
}

a { color: var(--primary); text-decoration: none; }

/* SIDEBAR */
.sidebar {
  position: fixed;
  left: 0;
  top: 0;
  width: 270px;
  height: 100vh;
  background: var(--sidebar-bg);
  z-index: 1000;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.sidebar-header {
  padding: 6px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 10px;
}
.logo-img {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  margin-bottom: 1px;
}
.logo-title {
  font-size: 12px;
  font-weight: 700;
  color: white;
  letter-spacing: 0.5px;
  line-height: 1.2;
}
.logo-subtitle {
  font-size: 10px;
  color: var(--gray-light);
  font-weight: 400;
  letter-spacing: 0.3px;
}
.sidebar-close {
  display: none;
  background: none;
  border: none;
  color: var(--gray-light);
  font-size: 20px;
  cursor: pointer;
}

.sidebar-nav { flex: 1; overflow-y: auto; padding: 4px 0; }

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  margin: 6px 12px;
  background: rgba(255,255,255,0.05);
  border-radius: var(--radius-sm);
}
.sidebar-user-bottom {
  margin: 2px 12px;
  padding: 10px 20px;
  background: rgba(0,0,0,0.15);
  border-radius: var(--radius-sm);
}
.user-logout {
  margin-left: auto;
  color: var(--gray-light);
  font-size: 16px;
  opacity: 0.6;
  transition: opacity 0.2s;
}
.user-logout:hover { opacity: 1; color: var(--danger); }
.user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  color: white;
}
.user-name { font-size: 12px; font-weight: 600; color: white; display: block; }
.user-role { font-size: 10px; color: var(--gray-light); }

.sidebar-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px 4px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gray-light);
  opacity: 0.5;
  cursor: pointer;
  user-select: none;
  transition: opacity 0.2s;
}
.sidebar-section:hover { opacity: 0.9; }
.sidebar-section i {
  font-size: 11px;
  transition: transform 0.3s ease;
  opacity: 0.6;
}
.sidebar-section.collapsed i { transform: rotate(-90deg); }

.sidebar-submenu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 7px 20px;
  margin: 1px 10px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 500;
  color: rgba(255,255,255,0.7);
  transition: var(--transition);
}
.sidebar-link i {
  width: 18px;
  text-align: center;
  font-size: 13px;
}
.sidebar-link .fa-baby { color: #FF7E5F; }
.sidebar-link .fa-child { color: #4ECDC4; }
.sidebar-link .fa-file { color: #6EC6FF; }
.sidebar-link .fa-notes-medical { color: #FF6B6B; }
.sidebar-link .fa-stethoscope { color: #6EC6FF; }
.sidebar-link .fa-school { color: #6BCB77; }
.sidebar-link .fa-wallet { color: #FFD93D; }
.sidebar-link .fa-sign-out-alt { color: #95A5A6; }
.sidebar-link .fa-id-card { color: #4ECDC4; }
.sidebar-link .fa-id-badge { color: #6EC6FF; }
.sidebar-link .fa-folder-open { color: #FFD93D; }
.sidebar-link .fa-file-signature { color: #6BCB77; }
.sidebar-link .fa-hand-holding-usd { color: #FF7E5F; }
.sidebar-link .fa-gift { color: #FF6B6B; }
.sidebar-link .fa-money-bill { color: #6BCB77; }
.sidebar-link .fa-user-tag { color: #A29BFE; }
.sidebar-link .fa-credit-card { color: #4ECDC4; }
.sidebar-link .fa-receipt { color: #FF7E5F; }
.sidebar-link .fa-exchange-alt { color: #6EC6FF; }
.sidebar-link .fa-plus-circle { color: #6BCB77; }
.sidebar-link .fa-tags { color: #FFD93D; }
.sidebar-link .fa-file-contract { color: #A29BFE; }
.sidebar-link .fa-file-invoice { color: #4ECDC4; }
.sidebar-link .fa-box { color: #FF7E5F; }
.sidebar-link .fa-chalkboard { color: #6BCB77; }
.sidebar-link .fa-book { color: #6EC6FF; }
.sidebar-link .fa-calendar-alt { color: #FF7E5F; }
.sidebar-link .fa-star { color: #FFD93D; }
.sidebar-link .fa-chart-bar { color: #6BCB77; }
.sidebar-link .fa-clock { color: #A29BFE; }
.sidebar-link .fa-boxes { color: #FF7E5F; }
.sidebar-link .fa-warehouse { color: #95A5A6; }
.sidebar-link .fa-utensils { color: #FF6B6B; }
.sidebar-link .fa-utensil-spoon { color: #FFD93D; }
.sidebar-link .fa-calendar-week { color: #6EC6FF; }
.sidebar-link .fa-shopping-cart { color: #6BCB77; }
.sidebar-link .fa-calendar-day { color: #FF7E5F; }
.sidebar-link .fa-tasks { color: #6BCB77; }
.sidebar-link .fa-images { color: #A29BFE; }
.sidebar-link .fa-gamepad { color: #FF6B6B; }
.sidebar-link .fa-cogs { color: #95A5A6; }
.sidebar-link .fa-calendar-times { color: #FF6B6B; }
.sidebar-link .fa-user-clock { color: #6EC6FF; }
.sidebar-link .fa-info-circle { color: #6EC6FF; }
.sidebar-link .fa-user-shield { color: #A29BFE; }
.sidebar-link .fa-users-cog { color: #6BCB77; }
.sidebar-link .fa-layer-group { color: #4ECDC4; }
.sidebar-link .fa-sitemap { color: #FF7E5F; }
.sidebar-link .fa-venus-mars { color: #FF6B6B; }
.sidebar-link .fa-briefcase { color: #95A5A6; }
.sidebar-link .fa-bus { color: #FFD93D; }
.sidebar-link .fa-map-marker-alt { color: #FF7E5F; }
.sidebar-link .fa-calendar-minus { color: #FF6B6B; }
.sidebar-link .fa-clipboard { color: #6EC6FF; }
.sidebar-link .fa-dice { color: #A29BFE; }
.sidebar-link .fa-glass-cheers { color: #FF6B6B; }
.sidebar-link .fa-calculator { color: #6BCB77; }

.stat-card .fa-baby { color: #FF7E5F; }
.stat-card .fa-id-badge { color: #6EC6FF; }
.stat-card .fa-school { color: #6BCB77; }
.stat-card .fa-credit-card { color: #4ECDC4; }
.stat-card .fa-receipt { color: #FF7E5F; }
.stat-card .fa-calendar-times { color: #FF6B6B; }
.stat-card .fa-utensils { color: #FFD93D; }
.stat-card .fa-money-bill { color: #6BCB77; }
.stat-card .fa-male { color: #6EC6FF; }
.stat-card .fa-female { color: #FF6B6B; }

.topbar-left .fa-home { color: #FF7E5F; }
.topbar-left .fa-bars { color: #6EC6FF; }
.topbar-right .fa-sign-out-alt { color: #FF6B6B; }

.connexion-logo .fa-baby { color: #FF7E5F; }
.sidebar-link:hover {
  background: var(--sidebar-hover);
  color: white;
}
.sidebar-link.active {
  background: var(--sidebar-active);
  color: white;
  font-weight: 600;
}

/* MAIN CONTENT */
.main {
  margin-left: 270px;
  min-height: 100vh;
  transition: var(--transition);
}
.sidebar.closed { transform: translateX(-100%); }
.main.expanded { margin-left: 0; }

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  background: white;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 100;
  height: 45px;
}
.topbar-left { display: flex; align-items: center; gap: 16px; }
.menu-toggle {
  background: none;
  border: 1px solid rgba(0,0,0,0.08);
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 14px;
  color: var(--gray);
  transition: var(--transition);
}
.menu-toggle:hover { background: var(--bg); color: var(--dark); }
.topbar-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--dark);
}
.topbar-right { display: flex; align-items: center; gap: 12px; }

.breadcrumb-bar {
  background: #fff;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  padding: 6px 20px;
  font-size: 12px;
}
.breadcrumb {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 6px;
  margin: 0;
  padding: 0;
}
.breadcrumb li { display: inline-flex; align-items: center; gap: 6px; }
.breadcrumb li:not(:last-child)::after {
  content: '\203A';
  color: var(--gray-light);
  margin-left: 6px;
}
.breadcrumb a { color: var(--primary); }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb li.active { color: var(--gray); font-weight: 500; }

/* BATCH ACTIONS */
.batch-bar {
  display: none;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  background: var(--danger);
  color: white;
  border-radius: var(--radius-sm);
  font-size: 12px;
  margin-bottom: 12px;
}
.batch-bar.active { display: flex; }
.batch-bar .batch-count { font-weight: 700; }
.batch-bar button {
  background: rgba(255,255,255,0.2);
  border: none;
  color: white;
  padding: 4px 10px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 12px;
}
.batch-bar button:hover { background: rgba(255,255,255,0.35); }
.batch-check { cursor: pointer; width: 16px; height: 16px; }

/* TABLE SORT */
table th.sortable {
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}
table th.sortable:hover {
  background: rgba(255, 126, 95, 0.08);
}
table th .sort-icon {
  font-size: 10px;
  margin-left: 4px;
  opacity: 0.5;
}

.page-content {
  padding: 24px 30px;
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
}
.btn-primary { background: var(--primary); color: white; }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: 0 4px 15px rgba(255,126,95,0.3); }
.btn-secondary { background: #95A5A6; color: white; }
.btn-secondary:hover { background: #7F8C8D; color: white; }
.btn-success { background: var(--success); color: white; }
.btn-success:hover { background: #5AB565; transform: translateY(-1px); box-shadow: 0 4px 15px rgba(107,203,119,0.3); }
.btn-warning { background: var(--warning); color: #2D3436; }
.btn-warning:hover { background: #F5C518; transform: translateY(-1px); }
.btn-danger { background: var(--danger); color: white; }
.btn-danger:hover { background: #E05555; transform: translateY(-1px); box-shadow: 0 4px 15px rgba(255,107,107,0.3); }
.btn-info { background: var(--info); color: white; }
.btn-info:hover { background: #5BA3E6; transform: translateY(-1px); }
.btn-sm { padding: 6px 14px; font-size: 12px; }
.btn-xs { padding: 4px 10px; font-size: 11px; border-radius: 6px; }

/* CARDS */
.card-table {
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  margin-bottom: 24px;
}
.card-table-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  gap: 12px;
  flex-wrap: wrap;
}
.card-table-header h3 {
  font-size: 16px;
  font-weight: 700;
}
.interrupteur-box {
  border: 1px solid #000;
  border-radius: var(--radius-sm);
  padding: 0 12px;
  background: white;
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 38px;
  box-sizing: border-box;
}
.interrupteur-box label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex-wrap: nowrap;
  white-space: nowrap;
  margin: 0;
  text-transform: none;
  letter-spacing: normal;
  color: var(--dark);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.interrupteur-box input[type="checkbox"] {
  -webkit-appearance: none;
  appearance: none;
  width: 30px;
  height: 17px;
  border-radius: 9px;
  background: #d1d5db;
  position: relative;
  cursor: pointer;
  transition: background 0.2s ease;
  flex: 0 0 auto;
  margin: 0;
  padding: 0;
  border: none;
  outline: none;
  vertical-align: middle;
}
.interrupteur-box input[type="checkbox"]::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: white;
  box-shadow: 0 1px 3px rgba(0,0,0,0.25);
  transition: left 0.2s ease;
}
.interrupteur-box input[type="checkbox"]:checked {
  background: var(--primary);
}
.interrupteur-box input[type="checkbox"]:checked::after {
  left: 15px;
}
.interrupteurs-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.interrupteur-box.interrupteur-compact {
  min-height: 40px;
}
.interrupteur-box.interrupteur-compact input[type="checkbox"] {
  width: 26px;
  height: 15px;
  border-radius: 8px;
}
.interrupteur-box.interrupteur-compact input[type="checkbox"]::after {
  width: 11px;
  height: 11px;
}
.interrupteur-box.interrupteur-compact input[type="checkbox"]:checked::after {
  left: 13px;
}
.table-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.search-input {
  padding: 9px 14px;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: var(--radius-sm);
  font-size: 13px;
  min-width: 220px;
  outline: none;
  transition: var(--transition);
  font-family: inherit;
}
.search-input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(255,126,95,0.1); }

/* TABLES */
.table-wrap { overflow-x: auto; }
table {
  width: 100%;
  border-collapse: collapse;
}
thead { background: var(--bg); }
th {
  padding: 5px 6px;
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--gray);
  white-space: nowrap;
}
td {
  padding: 5px 6px;
  font-size: 12px;
  border-bottom: 1px dashed rgba(0,0,0,0.1);
  vertical-align: middle;
}
tbody tr:hover { background: rgba(255,126,95,0.03); }
tbody tr { height: auto; }
tbody tr:last-child td { border-bottom: none; }

.actions-cell { display: flex; gap: 6px; flex-wrap: wrap; }

/* BADGES */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 5px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 600;
}
.badge-success { background: #E8F8F5; color: var(--success); }
.badge-danger { background: #FDEDEC; color: var(--danger); }
.badge-info { background: #EBF5FB; color: var(--info); }
.badge-warning { background: #FEF9E7; color: #F39C12; }
.badge-secondary { background: #EAECEE; color: #7F8C8D; }

/* STATS CARDS */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-bottom: 28px;
}
.stat-card {
  background: white;
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}
.stat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 14px;
}
.stat-number { font-size: 28px; font-weight: 800; margin-bottom: 2px; }
.stat-label { font-size: 13px; color: var(--gray); font-weight: 500; }
.stat-sub { font-size: 12px; color: var(--gray); margin-top: 4px; }
.stat-bar { height: 4px; background: #eee; border-radius: 2px; margin-top: 8px; overflow: hidden; }
.stat-bar-fill { height: 100%; border-radius: 2px; background: var(--warning); transition: width .6s ease; }
.stat-accent {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  border-radius: 0 0 var(--radius) var(--radius);
}

/* GRID */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}
@media (max-width: 900px) { .grid-2 { grid-template-columns: 1fr; } }

/* MODALS */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.2s ease;
}
.modal-overlay.active { display: flex; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

.modal {
  background: white;
  border-radius: var(--radius);
  width: 90%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  animation: slideUp 0.25s ease;
}
.modal.modal-lg { max-width: 800px; }
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.modal-header h2 { font-size: 17px; font-weight: 700; }
.modal-close {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--gray);
  line-height: 1;
  padding: 4px;
}
.modal-close:hover { color: var(--danger); }
.modal-body { padding: 22px 24px; }
.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 16px 24px;
  border-top: 1px solid rgba(0,0,0,0.06);
}

/* FORMS */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.form-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}
.form-grid .full { grid-column: 1 / -1; }
.form-group { margin-bottom: 0; }
.form-group label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--gray);
  margin-bottom: 5px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: var(--radius-sm);
  font-size: 13px;
  outline: none;
  transition: var(--transition);
  font-family: inherit;
  background: var(--bg);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255,126,95,0.08);
  background: white;
}
.form-group textarea { min-height: 80px; resize: vertical; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
.form-row-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 16px;
}
@media (max-width: 600px) { .form-row, .form-row-3, .form-grid { grid-template-columns: 1fr; } }

/* FORM ERRORS */
.form-group.has-error input,
.form-group.has-error select,
.form-group.has-error textarea { border-color: var(--danger); }
.field-error { font-size: 11px; color: var(--danger); margin-top: 2px; }

/* FILE UPLOAD */
.file-upload { display: flex; flex-direction: column; gap: 8px; }
.file-current {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; color: var(--primary);
}
.file-current i { font-size: 14px; }
.file-input-wrap {
  position: relative; display: flex; align-items: center; gap: 10px;
  padding: 10px 14px; border: 2px dashed var(--primary-light);
  border-radius: var(--radius-sm); background: rgba(255,126,95,0.04);
  cursor: pointer; transition: var(--transition);
}
.file-input-wrap:hover { border-color: var(--primary); background: rgba(255,126,95,0.08); }
.file-input-wrap i { font-size: 20px; color: var(--primary); }
.file-input-wrap span { font-size: 12px; color: var(--gray); }
.file-input-wrap input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }

/* EMPTY STATE */
.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: var(--gray-light);
}
.empty-icon { font-size: 48px; margin-bottom: 12px; }
.empty-state p { font-size: 14px; }

/* CONFIRM */
.confirm-box { text-align: center; padding: 20px; }
.confirm-box p { font-size: 15px; margin-bottom: 20px; }
.btn-group { display: flex; gap: 10px; justify-content: center; }

/* DASHBOARD QUICK ACTIONS */
.quick-actions {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
  margin-top: 8px;
}
.quick-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px;
  background: var(--bg);
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  color: var(--dark);
  transition: var(--transition);
  text-align: center;
}
.quick-action i { font-size: 22px; color: var(--primary); }
.quick-action:hover { background: var(--primary); color: white; transform: translateY(-2px); }
.quick-action:hover i { color: white; }

/* CONNEXION PAGE */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #FF7E5F 0%, #4ECDC4 100%);
  padding: 20px;
}
.login-box {
  background: white;
  border-radius: 20px;
  padding: 48px 40px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.login-logo {
  text-align: center;
  margin-bottom: 32px;
}
.login-logo .logo-icon {
  margin: 0 auto 12px;
  width: 56px;
  height: 56px;
  font-size: 18px;
}
.login-logo h1 { font-size: 22px; font-weight: 800; }
.login-logo p { font-size: 13px; color: var(--gray); }
.login-box .form-group { margin-bottom: 18px; }
.login-box .form-group label { font-size: 13px; color: var(--dark); text-transform: none; }
.login-box .form-group input { background: var(--bg); padding: 12px 16px; font-size: 14px; }
.login-box .btn { width: 100%; padding: 12px; font-size: 15px; justify-content: center; margin-top: 8px; }

/* DASHBOARD HEADER */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
}
.header h1 { font-size: 22px; font-weight: 800; }

/* RESPONSIVE */
@media (max-width: 768px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .sidebar-close { display: block; }
  .sidebar-overlay.active { display: block; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.5); z-index: 999; }
  .main { margin-left: 0; }
  .page-content { padding: 16px; }
  .topbar { padding: 12px 16px; }
  .cards-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .cards-grid { grid-template-columns: 1fr; }
}

/* Tabs */
.tabs { display:flex; gap:0; margin-bottom:0; border-bottom:2px solid var(--light); }
.tab { padding:10px 18px; font-size:13px; font-weight:500; color:var(--gray); text-decoration:none; border-bottom:2px solid transparent; margin-bottom:-2px; transition:all .2s; }
.tab:hover { color:var(--primary); background:var(--bg); }
.tab.active { color:var(--primary); border-bottom-color:var(--primary); }

/* Progress bar */
.progress-bar { height:18px; border-radius:4px; overflow:hidden; background:var(--bg); }
.progress-bar > div { height:100%; line-height:18px; color:#fff; font-size:11px; text-align:center; transition:width .3s; }

/* Form inline */
.form-inline { display:flex; gap:8px; align-items:center; flex-wrap:wrap; }

/* Dash stat variant */
.dash-stat{background:white;border-radius:12px;padding:20px;box-shadow:0 1px 4px rgba(0,0,0,.08);display:flex;align-items:center;gap:16px}
.dash-stat .stat-icon{width:48px;height:48px;border-radius:12px;display:flex;align-items:center;justify-content:center;font-size:20px;flex-shrink:0}
.dash-stat .stat-body{flex:1;min-width:0}
.dash-stat .stat-number{font-size:26px;font-weight:700;line-height:1.2}
.dash-stat .stat-label{font-size:13px;font-weight:500;margin-top:2px}
.dash-stat .stat-sub{font-size:11px;margin-top:2px}
.card-bg-primary{background:#eef2ff;border-left:4px solid #6366f1}
.card-bg-primary .stat-number,.card-bg-primary .stat-label{color:#4338ca}
.card-bg-success{background:#ecfdf5;border-left:4px solid #10b981}
.card-bg-success .stat-number,.card-bg-success .stat-label{color:#047857}
.card-bg-info{background:#eff6ff;border-left:4px solid #3b82f6}
.card-bg-info .stat-number,.card-bg-info .stat-label{color:#1d4ed8}
.card-bg-warning{background:#fffbeb;border-left:4px solid #f59e0b}
.card-bg-warning .stat-number,.card-bg-warning .stat-label{color:#b45309}
.card-bg-danger{background:#fef2f2;border-left:4px solid #ef4444}
.card-bg-danger .stat-number,.card-bg-danger .stat-label{color:#b91c1c}
.card-bg-purple{background:#f5f3ff;border-left:4px solid #8b5cf6}
.card-bg-purple .stat-number,.card-bg-purple .stat-label{color:#6d28d9}
.card-bg-teal{background:#f0fdfa;border-left:4px solid #14b8a6}
.card-bg-teal .stat-number,.card-bg-teal .stat-label{color:#0f766e}
.card-bg-pink{background:#fdf2f8;border-left:4px solid #ec4899}
.card-bg-pink .stat-number,.card-bg-pink .stat-label{color:#be185d}
.card-bg-chart{background:#f8fafc;border:1px solid #e2e8f0;border-radius:12px;padding:16px}
