@import url("ROOT.css");
/* --------------------------------------------------------------- */
/* ------------------------- Index.html -------------------------- */
/* --------------------------------------------------------------- */
/* Séparation de l'écran entre Sidebar à gauche et Contenu à droite */
body {
  display: flex;
  margin: 0;
  height: 100vh;
  overflow: hidden;
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: 'Roboto', sans-serif;
}
/* ==================== SIDEBAR ==================== */
aside#sidebar {
  width: 260px;
  background-color: var(--surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  height: 100vh;
  box-shadow: 2px 0 10px rgba(0,0,0,0.2);
  z-index: 10;
}
aside#sidebar nav {
  flex-grow: 1;
  padding: 20px 0;
  overflow-y: auto;
}
.category-title a {
  display: flex;
  align-items: center;
  padding: 12px 20px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  gap: 12px;
  transition: all 0.2s ease;
}
.category-title a:hover {
  background-color: var(--bg-dark);
  color: var(--primary);
  border-left: 4px solid var(--primary);
  padding-left: 16px; /* Compense la bordure pour que le texte ne bouge pas */
}
.sidebar-footer {
  padding: 20px;
  border-top: 1px solid var(--border);
  text-align: center;
}
.btn-footer {
  display: inline-block;
  margin-top: 10px;
  padding: 10px 20px;
  background-color: var(--primary);
  color: #fff;
  text-decoration: none;
  border-radius: var(--radius);
  font-weight: bold;
  transition: background-color 0.2s;
}
.btn-footer:hover {
  background-color: #2563EB;
}
/* ==================== CONTENU PRINCIPAL ==================== */
.main-content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow-y: auto; /* Permet de scroller uniquement dans cette zone */
  padding: 40px;
  box-sizing: border-box;
}
.main-header {
  display: flex;
  align-items: center;
  gap: 15px;
  font-size: 2rem;
  font-weight: bold;
  color: var(--text-main);
  margin-bottom: 5px;
}
.main-header img {
  width: 50px;
  border-radius: var(--radius);
}
.main-title {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 40px;
}
/* ==================== GRILLE DU DASHBOARD ==================== */
.dashboard-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 colonnes de taille égale */
  gap: 25px;
}
.dashboard-col {
  display: flex;
  flex-direction: column;
  gap: 25px;
}
.main-grid-title {
  font-size: 1.25rem;
  margin-bottom: 10px;
  color: var(--text-main);
}
.index-card {
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s;
}
.index-card:hover {
  transform: translateY(-2px);
}
.index-card p {
  color: var(--text-muted);
  line-height: 1.6;
  font-size: 0.95rem;
}