/* ═══════════════════════════════════════════════════════════════════════
   ALTOS – Surcharges Bootstrap 5 + composants custom
   Police : Inter · Fond : #f8f9fa · Style : Clean SaaS
   ═══════════════════════════════════════════════════════════════════════ */

/* ── 1. Variables & surcharges Bootstrap ──────────────────────────────── */
:root {
  /* Surcharges Bootstrap */
  --bs-font-sans-serif:    'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --bs-body-font-family:   'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --bs-body-bg:            #f8f9fa;
  /* Primary = bleu nuit logo */
  --bs-primary:            #0d2d50;
  --bs-primary-rgb:        13, 45, 80;
  --bs-link-color:         #0d2d50;
  --bs-link-hover-color:   #0a2340;
  /* Secondary = bleu ciel logo */
  --bs-secondary:          #3bbce8;
  --bs-secondary-rgb:      59, 188, 232;
  --bs-border-radius:      .5rem;
  --bs-border-radius-lg:   .75rem;

  /* Variables Altos */
  --primary:       #0d2d50;
  --primary-dark:  #0a2340;
  --primary-light: #e8eef5;
  --secondary:       #3bbce8;
  --secondary-dark:  #1ea8d8;
  --secondary-light: #e0f7fd;
  --success-light: #d1fae5;
  --warning:       #d97706;
  --warning-light: #fef3c7;
  --danger-light:  #fee2e2;
  --info:          #0284c7;
  --info-light:    #e0f2fe;
  --gray-50:  #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --shadow:    0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md: 0 4px 6px rgba(0,0,0,.07), 0 2px 4px rgba(0,0,0,.05);
  --shadow-lg: 0 10px 20px rgba(0,0,0,.1), 0 4px 6px rgba(0,0,0,.05);
  --radius:    .5rem;
  --radius-lg: .75rem;
  --radius-xl: 1rem;
  --sidebar-w: 260px;
  --header-h:  60px;
}

/* ── 2. Base ──────────────────────────────────────────────────────────── */
body {
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
  color: var(--gray-800);
  background: #f8f9fa;
}
a { color: var(--primary); }
a:hover { color: var(--primary-dark); }

/* ── 3. Boutons Altos (primary = navy, secondary = bleu ciel) ─────────── */
.btn-primary {
  --bs-btn-bg:               var(--primary);
  --bs-btn-border-color:     var(--primary);
  --bs-btn-hover-bg:         var(--primary-dark);
  --bs-btn-hover-border-color: var(--primary-dark);
  --bs-btn-active-bg:        var(--primary-dark);
  --bs-btn-color:            #fff;
  --bs-btn-hover-color:      #fff;
  --bs-btn-focus-shadow-rgb: 13, 45, 80;
}
.btn-outline-primary {
  --bs-btn-color:            var(--primary);
  --bs-btn-border-color:     var(--primary);
  --bs-btn-hover-bg:         var(--primary);
  --bs-btn-hover-border-color: var(--primary);
  --bs-btn-hover-color:      #fff;
  --bs-btn-active-bg:        var(--primary-dark);
}
.btn-secondary {
  --bs-btn-bg:               var(--secondary);
  --bs-btn-border-color:     var(--secondary);
  --bs-btn-hover-bg:         var(--secondary-dark);
  --bs-btn-hover-border-color: var(--secondary-dark);
  --bs-btn-active-bg:        var(--secondary-dark);
  --bs-btn-color:            #fff;
  --bs-btn-hover-color:      #fff;
  --bs-btn-focus-shadow-rgb: 59, 188, 232;
}
.btn-outline-secondary {
  --bs-btn-color:            var(--secondary-dark);
  --bs-btn-border-color:     var(--secondary);
  --bs-btn-hover-bg:         var(--secondary);
  --bs-btn-hover-border-color: var(--secondary);
  --bs-btn-hover-color:      #fff;
  --bs-btn-active-bg:        var(--secondary-dark);
}

/* ── 4. Cartes ────────────────────────────────────────────────────────── */
.card {
  border: 1px solid #e9ecef;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 1.25rem;
  margin-bottom: 1rem;
}
/* Annule les styles Bootstrap sur card-header */
.card > .card-header {
  background:    transparent;
  border-bottom: none;
  padding:       0;
  margin-bottom: 1rem;
  display:       flex;
  align-items:   center;
  justify-content: space-between;
  gap:           .5rem;
  border-radius: 0;
  color:         inherit;
}
.card-title    { font-size: 1rem;  font-weight: 600; color: var(--gray-800); margin-bottom: 0; }
.card-subtitle { font-size: .8rem; color: var(--gray-500); margin-top: .15rem; }

/* ── 5. Badges sémantiques custom ─────────────────────────────────────── */
.badge {
  font-weight: 600;
  font-size: .7rem;
  padding: .25rem .6rem;
  border-radius: 999px;
}
.badge-green  { background: var(--success-light); color: #065f46; }
.badge-blue   { background: var(--info-light);    color: #075985; }
.badge-yellow { background: var(--warning-light); color: #92400e; }
.badge-red    { background: var(--danger-light);  color: #991b1b; }
.badge-orange { background: #ffedd5;              color: #9a3412; }
.badge-purple { background: #ede9fe;              color: #5b21b6; }
.badge-gray   { background: var(--gray-100);      color: var(--gray-600); }

/* ── 6. Layout principal ──────────────────────────────────────────────── */
.layout { display: flex; min-height: 100vh; }

/* ── 7. Sidebar ──────────────────────────────────────────────────────── */
.sidebar {
  width: var(--sidebar-w);
  background: #75bbe457;
  color: var(--gray-600);
  border-right: 1px solid var(--gray-200);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: 1040;
  transform: translateX(-100%);
  transition: transform .25s ease;
  overflow-y: auto;
}
.sidebar.open { transform: translateX(0); }

.sidebar-logo {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--gray-200);
  display: flex; align-items: center; gap: .75rem;
}
.sidebar-logo svg { flex-shrink: 0; }
.sidebar-logo .logo-text  { font-size: 1.25rem; font-weight: 700; color: var(--gray-900); letter-spacing: -.02em; }
.sidebar-logo .logo-sub   { font-size: .65rem; color: var(--gray-400); text-transform: uppercase; letter-spacing: .08em; }

.sidebar-nav { flex: 1; padding: 1rem 0; }

.nav-section-label {
  padding: .5rem 1.5rem .25rem;
  font-size: .65rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .1em;
  color: var(--gray-400);
}

/* Surcharge Bootstrap .nav-link pour la sidebar */
.sidebar .nav-link {
  display: flex; align-items: center; gap: .75rem;
  padding: .65rem 1.5rem;
  color: var(--gray-600);
  font-size: .875rem; font-weight: 500;
  transition: background .15s, color .15s;
  border-radius: 0;
  position: relative;
  text-decoration: none;
}
.sidebar .nav-link:hover  { background: var(--gray-50); color: var(--gray-900); }
.sidebar .nav-link.active { background: var(--primary-light); color: var(--primary); font-weight: 600; }
.sidebar .nav-link.active::before {
  content: '';
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 3px; background: var(--primary); border-radius: 0 2px 2px 0;
}
.nav-icon  { font-size: 1rem; width: 20px; text-align: center; flex-shrink: 0; }
.nav-badge {
  margin-left: auto;
  background: #dc3545; color: #fff;
  font-size: .65rem; font-weight: 700;
  padding: .15rem .45rem;
  border-radius: 999px; min-width: 1.25rem; text-align: center;
}

.sidebar-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--gray-200);
  font-size: .8rem;
}
.sidebar-user { display: flex; align-items: center; gap: .6rem; }
.sidebar-user-link {
  display: flex; align-items: center; gap: .6rem;
  padding: .5rem .6rem;
  margin: 0 -.6rem;
  border-radius: var(--radius);
  text-decoration: none;
  transition: background .15s;
}
.sidebar-user-link:hover { background: var(--gray-100); }
.sidebar-user-link.active { background: var(--primary-light); }
.sidebar-user-chevron { font-size: .7rem; color: var(--gray-400); }
.sidebar-avatar {
  width: 32px; height: 32px;
  background: var(--primary); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .8rem; font-weight: 700; color: #fff; flex-shrink: 0;
}
.sidebar-user-name { font-weight: 600; color: var(--gray-800); font-size: .8rem; }
.sidebar-user-role { color: var(--gray-400); font-size: .7rem; }
.sidebar-logout {
  margin-top: .5rem; display: block;
  color: var(--gray-400); font-size: .75rem; padding: .25rem 0;
  text-decoration: none;
}
.sidebar-logout:hover { color: #dc3545; }

/* ── 8. Topbar mobile ────────────────────────────────────────────────── */
.topbar {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--header-h);
  background: #fff; border-bottom: 1px solid #e9ecef;
  display: flex; align-items: center;
  padding: 0 1rem; z-index: 1030; gap: .75rem;
}
.topbar-brand   { font-weight: 700; font-size: 1.1rem; color: var(--gray-900); flex: 1; }
.topbar-actions { display: flex; align-items: center; gap: .5rem; }
.burger {
  background: none; border: none; cursor: pointer;
  padding: .5rem; color: var(--gray-600);
  font-size: 1.4rem; display: flex; align-items: center;
}
.sidebar-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,.5); z-index: 1039;
}
.sidebar-overlay.show { display: block; }

/* ── 9. Contenu principal ─────────────────────────────────────────────── */
.main-content {
  flex: 1;
  margin-top: var(--header-h);
  padding: 1.25rem 1rem;
  min-height: calc(100vh - var(--header-h));
}

/* ── 10. Page header ──────────────────────────────────────────────────── */
.page-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1.25rem; flex-wrap: wrap; gap: .75rem;
}
.page-title    { font-size: 1.25rem; font-weight: 700; color: var(--gray-900); margin: 0; }
.page-subtitle { font-size: .8rem; color: var(--gray-500); margin: .15rem 0 0; }

/* ── 11. Stats grid ───────────────────────────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .75rem; margin-bottom: 1rem;
}
.stat-card {
  background: #fff; border: 1px solid #e9ecef;
  border-radius: var(--radius-lg); box-shadow: var(--shadow);
  padding: 1rem; display: flex; flex-direction: column; gap: .25rem;
}
.stat-icon {
  width: 38px; height: 38px; border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; margin-bottom: .5rem;
}
.stat-icon.purple { background: #ede9fe; color: #7c3aed; }
.stat-icon.blue   { background: var(--info-light);    color: var(--info); }
.stat-icon.red    { background: var(--danger-light);  color: #dc3545; }
.stat-icon.green  { background: var(--success-light); color: #198754; }
.stat-value { font-size: 1.5rem; font-weight: 700; color: var(--gray-900); line-height: 1.2; }
.stat-label { font-size: .75rem; color: var(--gray-500); font-weight: 500; }

/* ── 12. Listes d'items ───────────────────────────────────────────────── */
.item-list { list-style: none; padding: 0; margin: 0; }
.item-list li {
  display: flex; align-items: flex-start; gap: .75rem;
  padding: .75rem 0; border-bottom: 1px solid #f3f4f6;
}
.item-list li:last-child { border-bottom: none; }
.item-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--primary-light); color: var(--primary-dark);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: .8rem; flex-shrink: 0;
}
.item-info   { flex: 1; min-width: 0; }
.item-name   { font-weight: 600; font-size: .875rem; color: var(--gray-800); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.item-sub    { font-size: .75rem; color: var(--gray-500); margin-top: .1rem; }
.item-meta   { text-align: right; flex-shrink: 0; }
.item-date   { font-size: .75rem; color: var(--gray-500); }
.item-amount { font-size: .875rem; font-weight: 600; color: var(--gray-800); }

/* ── 13. Leçon cards ──────────────────────────────────────────────────── */
.lecon-card {
  background: #fff; border: 1px solid #e9ecef;
  border-radius: var(--radius-lg); box-shadow: var(--shadow);
  padding: 1rem; margin-bottom: .75rem;
  border-left: 4px solid #e9ecef;
  display: flex; flex-direction: column; gap: .5rem;
}
.lecon-card.prevue      { border-left-color: #0284c7; }
.lecon-card.effectuee   { border-left-color: #198754; }
.lecon-card.annulee     { border-left-color: #dc3545; opacity: .75; }
.lecon-card.en_attente  { border-left-color: var(--warning); }
.lecon-header  { display: flex; align-items: flex-start; justify-content: space-between; gap: .5rem; }
.lecon-eleve   { font-weight: 600; font-size: .9rem; color: var(--gray-800); }
.lecon-meta    { font-size: .75rem; color: var(--gray-500); display: flex; gap: .75rem; flex-wrap: wrap; margin-top: .2rem; }
.lecon-actions { display: flex; gap: .4rem; flex-wrap: wrap; margin-top: .25rem; }

/* ── 14. Grille élèves ────────────────────────────────────────────────── */
.eleves-grid { display: grid; grid-template-columns: 1fr; gap: .75rem; }
.eleve-card {
  background: #fff; border: 1px solid #e9ecef;
  border-radius: var(--radius-lg); box-shadow: var(--shadow);
  padding: 1rem; display: flex; flex-direction: column; gap: .5rem;
  cursor: pointer; text-decoration: none; color: inherit;
  transition: box-shadow .15s, transform .1s;
}
.eleve-card:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); text-decoration: none; color: inherit; }
.eleve-card-header { display: flex; align-items: center; gap: .75rem; }
.eleve-initiales {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--primary-light); color: var(--primary-dark);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: .875rem; flex-shrink: 0;
}
.eleve-nom-complet { font-weight: 600; font-size: .9rem; color: var(--gray-800); }
.eleve-niveau      { font-size: .75rem; color: var(--gray-500); }
.eleve-infos       { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }

/* ── 15. Barre de recherche ───────────────────────────────────────────── */
.search-bar { display: flex; gap: .5rem; margin-bottom: 1rem; flex-wrap: wrap; }
.search-input-wrap { flex: 1; min-width: 200px; position: relative; }
.search-icon {
  position: absolute; left: .75rem; top: 50%; transform: translateY(-50%);
  color: var(--gray-400); font-size: .875rem; pointer-events: none;
}
.search-input-wrap input {
  width: 100%;
  padding: .5rem .875rem .5rem 2.25rem;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  font-size: .875rem; color: var(--gray-800); background: #fff;
}
.search-input-wrap input:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79,70,229,.12);
}

/* ── 16. Timeline ─────────────────────────────────────────────────────── */
.timeline { position: relative; padding-left: 1.5rem; }
.timeline::before {
  content: ''; position: absolute; left: .4rem; top: 0; bottom: 0;
  width: 2px; background: var(--gray-200);
}
.timeline-item { position: relative; padding-bottom: 1.25rem; }
.timeline-item::before {
  content: ''; position: absolute; left: -1.1rem; top: .35rem;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--primary); border: 2px solid #fff;
  box-shadow: 0 0 0 2px var(--primary);
}
.timeline-date    { font-size: .7rem; color: var(--gray-400); margin-bottom: .25rem; font-weight: 600; text-transform: uppercase; }
.timeline-content { background: var(--gray-50); border-radius: var(--radius); padding: .75rem; font-size: .85rem; }

/* ── 17. Empty state ──────────────────────────────────────────────────── */
.empty-state { text-align: center; padding: 3rem 1rem; color: var(--gray-400); }
.empty-state .empty-icon { font-size: 3rem; margin-bottom: .75rem; }
.empty-state p { font-size: .875rem; }

/* ── 18. Auth ─────────────────────────────────────────────────────────── */
.auth-wrapper {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 1rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}
.auth-card {
  background: #fff; border-radius: var(--radius-xl);
  box-shadow: 0 20px 60px rgba(0,0,0,.2);
  padding: 2rem; width: 100%; max-width: 400px;
}
.auth-logo     { text-align: center; margin-bottom: 1.5rem; }
.logo-text     { font-size: 2rem; font-weight: 800; color: var(--primary); }
.logo-tagline  { font-size: .8rem; color: var(--gray-500); }
.auth-title    { font-size: 1.25rem; font-weight: 700; color: var(--gray-800); margin-bottom: .25rem; }
.auth-subtitle { font-size: .85rem; color: var(--gray-500); margin-bottom: 1.5rem; }

/* ── 19. FAB ──────────────────────────────────────────────────────────── */
.fab {
  position: fixed; bottom: 1.5rem; right: 1.5rem;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--primary); color: #fff;
  border: none; font-size: 1.4rem; cursor: pointer;
  box-shadow: var(--shadow-lg);
  display: flex; align-items: center; justify-content: center;
  z-index: 50; text-decoration: none;
  transition: background .15s, transform .15s;
}
.fab:hover { background: var(--primary-dark); transform: scale(1.05); text-decoration: none; color: #fff; }

/* ── 20. Formulaires (custom) ─────────────────────────────────────────── */
.form-group  { margin-bottom: 1rem; }
.form-row    { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.form-hint   { font-size: .75rem; color: var(--gray-500); margin-top: .25rem; }
.form-error  { font-size: .75rem; color: #dc3545; margin-top: .25rem; }
.form-label .required { color: #dc3545; margin-left: .15rem; }

/* Surcharge Bootstrap focus */
.form-control:focus,
.form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(79,70,229,.15);
}

/* ── 21. Pagination Bootstrap (couleur primaire) ──────────────────────── */
.pagination .page-link {
  color: var(--primary);
  border-radius: var(--radius) !important;
  margin: 0 2px;
}
.pagination .page-item.active .page-link {
  background-color: var(--primary);
  border-color: var(--primary);
}
.pagination .page-link:focus {
  box-shadow: 0 0 0 3px rgba(79,70,229,.2);
}

/* ── 22. Nav-pills Bootstrap (filtres) ────────────────────────────────── */
.nav-pills .nav-link {
  color: var(--gray-600);
  font-size: .8rem; font-weight: 500;
  padding: .4rem .9rem;
  border-radius: 999px;
}
.nav-pills .nav-link.active,
.nav-pills .show > .nav-link {
  background-color: var(--primary);
  color: #fff;
}
.nav-pills .nav-link:not(.active):hover {
  background: var(--gray-100);
  color: var(--gray-800);
}

/* ── 23. Utilitaires ──────────────────────────────────────────────────── */
.text-muted { color: var(--gray-500) !important; font-size: .8rem; }

/* ── 24. Responsive ───────────────────────────────────────────────────── */
@media (min-width: 768px) {
  .sidebar      { transform: translateX(0); }
  .burger       { display: none; }
  .topbar       { left: var(--sidebar-w); }
  .main-content { margin-left: var(--sidebar-w); padding: 1.5rem 2rem; }
  .stats-grid   { grid-template-columns: repeat(4, 1fr); }
  .eleves-grid  { grid-template-columns: repeat(2, 1fr); }
  .form-row     { gap: 1rem; }
}
@media (min-width: 1024px) {
  .main-content { max-width: 1200px; }
  .eleves-grid  { grid-template-columns: repeat(3, 1fr); }
}

/* ── 25. Kanban – Barre de filtres ───────────────────────────────────────── */
.filtre-bar {
  display: flex; flex-wrap: wrap; align-items: center; gap: .5rem;
  margin-bottom: 1.25rem;
  background: #fff; border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg); box-shadow: var(--shadow);
  padding: .6rem .75rem;
}

/* Champ de recherche */
.filtre-search {
  position: relative; flex: 1; min-width: 180px;
}
.filtre-search-icon {
  position: absolute; left: .65rem; top: 50%; transform: translateY(-50%);
  color: var(--gray-400); font-size: .85rem; pointer-events: none;
}
.filtre-search input {
  width: 100%;
  padding: .4rem .75rem .4rem 2rem;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  font-size: .85rem; color: var(--gray-800); background: var(--gray-50);
  transition: border-color .15s, box-shadow .15s;
}
.filtre-search input:focus {
  outline: none; border-color: var(--primary); background: #fff;
  box-shadow: 0 0 0 3px rgba(13,45,80,.1);
}
.filtre-clear {
  position: absolute; right: .5rem; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer;
  color: var(--gray-400); font-size: .75rem; padding: .15rem .25rem;
  line-height: 1; transition: color .15s;
}
.filtre-clear:hover { color: var(--gray-700); }

/* Selects filtre */
.filtre-select {
  padding: .4rem .7rem;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  font-size: .82rem; color: var(--gray-700); background: var(--gray-50);
  cursor: pointer; transition: border-color .15s;
  min-width: 140px;
}
.filtre-select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(13,45,80,.1); }

/* ── 26. Kanban – Tableau Kanban ─────────────────────────────────────────── */
.kanban-board {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  align-items: start;
}

@media (min-width: 768px) {
  .kanban-board { grid-template-columns: repeat(3, 1fr); }
}

/* Colonnes */
.kanban-col {
  background: var(--gray-50);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  display: flex; flex-direction: column;
  min-height: 200px;
}

.kanban-col-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: .75rem 1rem;
  border-bottom: 1px solid var(--gray-200);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

/* Couleur accent par colonne */
.col-actif   .kanban-col-header { border-top: 3px solid #198754; border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
.col-pause   .kanban-col-header { border-top: 3px solid var(--warning); border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
.col-archive .kanban-col-header { border-top: 3px solid var(--gray-400); border-radius: var(--radius-lg) var(--radius-lg) 0 0; }

.kanban-col-title {
  font-size: .82rem; font-weight: 600;
  color: var(--gray-700); display: flex; align-items: center;
}
.col-actif   .kanban-col-title { color: #166534; }
.col-pause   .kanban-col-title { color: #92400e; }
.col-archive .kanban-col-title { color: var(--gray-500); }

.kanban-col-count {
  font-size: .72rem; font-weight: 700;
  background: var(--gray-200); color: var(--gray-600);
  border-radius: 999px; padding: .1rem .55rem; min-width: 1.5rem; text-align: center;
}
.col-actif   .kanban-col-count { background: #d1fae5; color: #065f46; }
.col-pause   .kanban-col-count { background: var(--warning-light); color: #92400e; }
.col-archive .kanban-col-count { background: var(--gray-100); color: var(--gray-500); }

.kanban-col-body {
  flex: 1; padding: .75rem;
  display: flex; flex-direction: column; gap: .6rem;
  min-height: 100px;
  transition: background .15s;
}
.kanban-col-body.drag-over {
  background: rgba(59,188,232,.07);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  outline: 2px dashed var(--secondary);
  outline-offset: -4px;
}

/* ── 27. Kanban – Cartes ─────────────────────────────────────────────────── */
.kanban-card {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  position: relative;
  cursor: grab;
  transition: box-shadow .15s, transform .1s, opacity .15s;
  overflow: hidden;
}
.kanban-card:hover { box-shadow: var(--shadow-md); }
.kanban-card.is-dragging { opacity: .55; transform: rotate(1.5deg) scale(1.02); cursor: grabbing; box-shadow: var(--shadow-lg); }

/* Lien qui couvre la carte */
.kanban-card-link {
  display: block; padding: .75rem;
  text-decoration: none; color: inherit;
}
.kanban-card-link:hover { text-decoration: none; color: inherit; }

/* Partie haute : avatar + infos + badge */
.kanban-card-top {
  display: flex; align-items: center; gap: .6rem;
  margin-bottom: .5rem;
}
.kanban-initiales {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .78rem; font-weight: 700; flex-shrink: 0;
}
.kanban-card-info { flex: 1; min-width: 0; }
.kanban-card-nom  { font-size: .875rem; font-weight: 600; color: var(--gray-900); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kanban-card-niveau { font-size: .72rem; color: var(--gray-500); margin-top: .1rem; }

/* Badges matière + tarif */
.kanban-card-badges { display: flex; gap: .35rem; flex-wrap: wrap; margin-bottom: .5rem; }

/* Pied : séances + téléphone */
.kanban-card-footer {
  display: flex; justify-content: space-between; align-items: center;
  font-size: .72rem; color: var(--gray-500);
  border-top: 1px solid var(--gray-100); padding-top: .4rem; margin-top: .25rem;
  gap: .5rem;
}
.kanban-card-footer span { display: flex; align-items: center; gap: .2rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Poignée drag (visible au survol) */
.kanban-drag-handle {
  position: absolute; top: 50%; right: .4rem; transform: translateY(-50%);
  color: var(--gray-300); font-size: 1rem;
  opacity: 0; transition: opacity .15s;
  pointer-events: none;
}
.kanban-card:hover .kanban-drag-handle { opacity: 1; }

/* ── 28. Kanban – État vide ──────────────────────────────────────────────── */
.kanban-empty {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 2rem 1rem; gap: .5rem;
  color: var(--gray-300); font-size: .8rem; text-align: center;
}
.kanban-empty i { font-size: 1.75rem; }

/* ── 29. Toast Altos ─────────────────────────────────────────────────────── */
.toast-altos {
  position: fixed; bottom: 5rem; right: 1.5rem;
  background: #fff; border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  padding: .7rem 1.1rem; font-size: .85rem; font-weight: 500;
  display: flex; align-items: center; gap: .5rem;
  z-index: 9999;
  transform: translateY(1rem); opacity: 0;
  transition: transform .25s ease, opacity .25s ease;
  pointer-events: none; max-width: 300px;
}
.toast-altos.show { transform: translateY(0); opacity: 1; }
.toast-success { border-left: 3px solid #198754; color: #166534; }
.toast-success i { color: #198754; }
.toast-danger  { border-left: 3px solid #dc3545; color: #991b1b; }
.toast-danger  i { color: #dc3545; }
