/* ============================================================
   Tableau de bord du praticien
   Palette encre/papier ACUPUNK, fontes Cormorant Garamond + DM Sans.
   ============================================================ */

.dashboard {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  margin: 1rem 0 3rem;
}

/* ---------- Bloc 1 : salutation ---------- */
.dashboard__head {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  border-bottom: 1px solid rgba(42, 37, 32, 0.12);
  padding-bottom: 1.25rem;
}

.dashboard__hello {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  font-weight: 500;
  color: #2a2520;
  letter-spacing: -0.01em;
  margin: 0;
  line-height: 1.15;
}

.dashboard__date {
  font-size: 1rem;
  color: #6b6359;
  font-style: italic;
}

/* ---------- Bloc 2 : statistiques ---------- */
.dashboard__stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}

.dashboard .stat-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.4rem;
  padding: 1.4rem 1.5rem;
  background: #ffffff;
  border: 1px solid rgba(42, 37, 32, 0.08);
  border-left: 3px solid #b8860b;
  border-radius: 6px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

.dashboard .stat-card__value {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 2.6rem;
  font-weight: 600;
  line-height: 1;
  color: #2a2520;
}

.dashboard .stat-card__label {
  font-size: 0.92rem;
  color: #6b6359;
  letter-spacing: 0.02em;
}

/* ---------- Section : titres communs ---------- */
.dashboard .section-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.45rem;
  font-weight: 500;
  color: #2a2520;
  margin: 0 0 0.75rem;
  letter-spacing: -0.005em;
}

.dashboard .section-sub {
  font-size: 0.88rem;
  margin: -0.5rem 0 0.9rem;
}

/* ---------- Bloc 3 : actions rapides ---------- */
.dashboard__actions { /* simple conteneur */ }

.dashboard .actions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.85rem;
}

.dashboard .action-tile {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1rem 1.2rem;
  background: #ffffff;
  border: 1px solid rgba(42, 37, 32, 0.1);
  border-radius: 6px;
  color: #2a2520;
  text-decoration: none;
  transition: all 0.15s ease;
}

.dashboard .action-tile:hover {
  border-color: #b8860b;
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(184, 134, 11, 0.08);
}

.dashboard .action-tile__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(184, 134, 11, 0.1);
  color: #b8860b;
  font-weight: 700;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.dashboard .action-tile__label {
  font-size: 0.98rem;
  font-weight: 500;
}

.dashboard .action-tile--primary {
  background: #2a2520;
  color: #f7f3ec;
  border-color: #2a2520;
}

.dashboard .action-tile--primary:hover {
  background: #1a1612;
  border-color: #1a1612;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
}

.dashboard .action-tile--primary .action-tile__icon {
  background: rgba(247, 243, 236, 0.15);
  color: #f7f3ec;
}

/* ---------- Blocs 4 et 5 : 2 colonnes activite ---------- */
.dashboard__columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

@media (max-width: 800px) {
  .dashboard__columns {
    grid-template-columns: 1fr;
  }
}

.dashboard__col {
  background: #ffffff;
  border: 1px solid rgba(42, 37, 32, 0.08);
  border-radius: 6px;
  padding: 1.5rem 1.6rem;
}

/* ---------- Liste d'activite (seances, patients) ---------- */
.dashboard .recent-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.dashboard .recent-list__item {
  border-bottom: 1px solid rgba(42, 37, 32, 0.06);
}

.dashboard .recent-list__item:last-child {
  border-bottom: none;
}

.dashboard .recent-list__link {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem;
  padding: 0.7rem 0;
  color: #2a2520;
  text-decoration: none;
  transition: color 0.15s ease;
}

.dashboard .recent-list__link:hover {
  color: #b8860b;
}

.dashboard .recent-list__date {
  font-family: 'DM Sans', system-ui, sans-serif;
  font-variant-numeric: tabular-nums;
  font-size: 0.85rem;
  color: #6b6359;
  min-width: 5.5rem;
}

.dashboard .recent-list__name {
  font-weight: 500;
  font-size: 1rem;
}

.dashboard .recent-list__meta {
  font-size: 0.88rem;
}

/* ---------- Etats vides ---------- */
.dashboard .empty-state {
  padding: 1rem 0;
  font-size: 0.95rem;
}

.dashboard .empty-state a {
  color: #b8860b;
  text-decoration: underline;
}

/* ---------- Helper general ---------- */
.dashboard .muted {
  color: #6b6359;
}
