/* =========================================
   Layout CSS pour plateforme_scolaire
   ========================================= */

/* Structure générale */
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Header */
header {
  background-color: #0066cc;
  color: #fff;
  padding: 1rem;
}
header h1 {
  font-size: 1.5rem;
  margin: 0;
}

/* Navigation principale */
nav {
  display: flex;
  gap: 1rem;
}
nav a {
  color: #fff;
  font-weight: 500;
}
nav a:hover {
  text-decoration: underline;
}

/* Layout principal : sidebar + contenu */
.main-layout {
  flex: 1;
  display: flex;
  min-height: 0; /* évite les débordements */
}

/* Sidebar */
.sidebar {
  width: 250px;
  background-color: #f0f0f0;
  padding: 1rem;
  border-right: 1px solid #ddd;
}
.sidebar ul {
  list-style: none;
  padding: 0;
}
.sidebar li {
  margin-bottom: 0.5rem;
}
.sidebar a {
  color: #333;
  text-decoration: none;
}
.sidebar a:hover {
  color: #0066cc;
}

/* Contenu principal */
.content {
  flex: 1;
  padding: 2rem;
  background-color: #fff;
}

/* Footer */
footer {
  background-color: #222;
  color: #fff;
  text-align: center;
  padding: 1rem;
}

/* Utilitaires de layout */
.center {
  display: flex;
  justify-content: center;
  align-items: center;
}

.space-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
