/* ===== Style global ===== */
body {
  margin: 0;
  font-family: 'Poppins', sans-serif;
  background: #f5f8ff;
  color: #333;
  font-size: 15px;
}

/* ===== Header ===== */
.top-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: #f8f9fa;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 24px;
  border-bottom: 2px solid #ccc;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.header-left .logo {
  font-size: 24px;
  font-weight: bold;
  color: #4a90e2;
}

.header-center h1 {
  margin: 0;
  font-size: 1.6em;
  text-align: center;
  color: #333;
}

.header-right .logout-btn {
  background-color: #e74c3c;
  color: #fff;
  padding: 8px 14px;
  text-decoration: none;
  border-radius: 6px;
  font-weight: bold;
  transition: background-color 0.2s ease;
}

.header-right .logout-btn:hover {
  background-color: #c0392b;
}

/* ===== Dashboard layout ===== */
.dashboard {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: 20px;
  padding: 30px;
}

/* ===== Colonnes ===== */
.left-column, .center-column, .right-column {
  background: #ffffff;
  border-radius: 12px;
  padding: 16px 20px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.02);
  border: 1px solid #e2e8f0;
}

/* ===== Bandeaux (conteneurs internes) ===== */
.dashboard-band {
  background: #fff;
  border-radius: 12px;
  padding: 16px 20px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.03);
  border: 1px solid #e6e6e6;
}

.dashboard-band h3 {
  margin-top: 0;
  font-size: 17px;
  color: #444;
  font-weight: 600;
  border-bottom: 1px solid #eee;
  padding-bottom: 8px;
  margin-bottom: 12px;
}

/* ===== Cartes ===== */
.cards {
  display: flex;
  flex-direction: row;
  gap: 16px;
  margin-top: 10px;
}

.card {
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 500;
  color: white;
  text-align: center;
  transition: all 0.2s ease;
  box-shadow: none;
  opacity: 0.95;
}

.card:hover {
  transform: translateY(-3px);
  opacity: 1;
}

.card.blue { background: #3b82f6; }
.card.purple { background: #8b5cf6; }
.card.green { background: #10b981; }

/* ===== Notifications ===== */
.notifications ul {
  list-style-type: disc;
  padding-left: 20px;
  margin: 0;
  color: #666;
}

.notifications li {
  margin-bottom: 6px;
}

/* ===== Login ===== */
.login-page {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background: #f0f4ff;
}

.login-container {
  background: white;
  padding: 30px;
  border-radius: 16px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  width: 100%;
  max-width: 400px;
}

.login-container h2 {
  text-align: center;
  margin-bottom: 20px;
}

.login-container label {
  display: block;
  margin: 10px 0 5px;
  font-weight: bold;
}

.login-container input {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 8px;
}

.login-container button {
  margin-top: 20px;
  width: 100%;
  padding: 12px;
  background: #4a90e2;
  border: none;
  color: white;
  font-weight: bold;
  border-radius: 8px;
  cursor: pointer;
}

.login-container button:hover {
  background: #357ac9;
}

.error {
  color: red;
  margin-top: 10px;
  text-align: center;
}

/* ===== Responsive ===== */
@media (max-width: 992px) {
  .dashboard {
    grid-template-columns: 1fr;
  }

  .cards {
    flex-direction: column;
  }

  .card {
    width: 100%;
  }
}

.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 500;
  color: white;
  background-color: #777;
}

/* ===== Badge ===== */
.badge-blue {
  background-color: #3b82f6;
}
.badge-green {
  background-color: #10b981;
}
.badge-purple {
  background-color: #8b5cf6;
}
.badge-red {
  background-color: #e74c3c;
}

/* ===== Form ajouter eval ===== */
.form-eval {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 30px;
}

.form-eval label {
  font-weight: 500;
  margin-bottom: 4px;
  display: block;
  color: #333;
}

.form-eval input[type="text"],
.form-eval input[type="date"],
.form-eval select {
  width: 100%;
  padding: 8px 12px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 14px;
}

.form-eval input[type="checkbox"] {
  margin-right: 8px;
}

.form-section {
  background: white;
  border-radius: 16px;
  padding: 20px 30px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  max-width: 800px;
  margin: auto;
}

.form-actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-start;
  margin-top: 20px;
}

.form-actions button {
  padding: 12px 20px;
  background-color: #27ae60;
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.2s ease;
}

.form-actions button:hover {
  background-color: #219150;
}

@media (max-width: 768px) {
  .form-eval {
    grid-template-columns: 1fr;
  }
}


