/* ==========================================================================
   Correctifs de mise en page (chargés en dernier)
   ========================================================================== */

/* Contenu des bulles de messagerie */
.msg-bubble .msg-text {
  white-space: pre-wrap;
  word-wrap: break-word;
}
.msg-bubble {
  white-space: normal !important;
}

/* Tableau de bord assistante : cartes statistiques */
.stats-grid-modern {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.stat-card-modern {
  background: #fff;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 4px 16px color-mix(in srgb, var(--ink-700) 6%, transparent);
  border: 1px solid #F1F5F9;
}
.stat-card-header-modern {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.stat-card-title-modern {
  font-size: .85rem;
  font-weight: 600;
  color: #6B7280;
  text-transform: uppercase;
  letter-spacing: .03em;
}
.stat-card-icon-modern {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: #fff;
  background: var(--theme-primary-dark, var(--ok-600));
}
.stat-card-icon-parent { background: var(--brand-500); }
.stat-card-icon-admin { background: var(--ink-400); }
.stat-card-value-modern {
  font-size: 2rem;
  font-weight: 800;
  color: var(--ink-700);
  line-height: 1.1;
}
.stat-card-label-modern {
  font-size: .85rem;
  color: #6B7280;
  margin-top: 4px;
}
.header-modern {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}
.badge-modern {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: .85rem;
  font-weight: 600;
  background: #fff;
  box-shadow: 0 2px 8px color-mix(in srgb, var(--ink-700) 6%, transparent);
}
