body.login-page {
  margin: 0;
  padding: 0;
  background-color: #ffffff;
  font-family: 'Segoe UI', sans-serif;
  display: flex;
  justify-content: center;
  align-items: start;
  height: 100vh;
}

.login-container {
  margin-top: 60px;
  background-color: #ffffff;
  border: 1px solid #ddd;
  padding: 40px 50px;
  border-radius: 6px;
  width: 480px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

h2 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 15px;
  color: #111;
}

label {
  display: block;
  font-size: 15px;
  margin-top: 15px;
  margin-bottom: 6px;
  color: #111;
}

input[type="text"],
input[type="password"] {
  width: 100%;
  padding: 12px;
  background-color: #f3f3f3;
  border: none;
  border-bottom: 2px solid black;
  font-size: 15px;
  border-radius: 4px;
  box-sizing: border-box;
}

.btn {
  width: 100%;
  padding: 12px;
  background-color: #00008b;
  color: white;
  font-size: 16px;
  font-weight: bold;
  border: none;
  border-radius: 0px;
  cursor: pointer;
  margin-top: 20px;
}

.btn:hover {
  background-color: #000070;
}

.separator {
  text-align: center;
  position: relative;
  margin: 40px 0;
  font-size: 15px;
  color: #666;
}

.separator::before,
.separator::after {
  content: "";
  position: absolute;
  height: 1px;
  background-color: #ccc;
  width: 40%;
  top: 50%;
}

.separator::before {
  left: 0;
}

.separator::after {
  right: 0;
}

.show-password {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  font-size: 14px;
  color: #111;
}











.error {
  color: #ff4d4d;
  margin-top: 10px;
}
.dashboard-page {
    display: flex;
    height: 100vh;
  }

/* ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ */
/* SIDEBAR DEPLIÉE */

.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 5cm;
  background-color: #38406e;
  color: white;
  padding: 10px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 15px;
  justify-content: flex-start;
  z-index: 1000;
}

.sidebar #user-info {
  font-weight: bold;
  margin-bottom: 20px;
  text-transform: uppercase;
  font-size: 14px;
}

.sidebar button {
  background: none;
  border: none;
  color: white;
  padding: 0;
  margin: 0;
  width: 100%;
  text-align: left;
  cursor: pointer;
}

.sidebar button .btn-inner {
  display: inline-flex;
  align-items: center;
  background-color: #2f2f2f;
  padding: 8px 12px;
  border-radius: 6px;
  transition: background-color 0.2s;
}

.sidebar button:hover .btn-inner {
  background-color: #3a3a3a;
}

.sidebar .sidebar-icon {
  width: 18px;
  height: 18px;
  vertical-align: middle;
  margin-right: 8px;
}

.sidebar #menu-toggle {
  text-align: center;
  font-size: 20px;
  font-weight: bold;
  cursor: pointer;
}

#notif-dot {
  position: absolute;
  top: 6px;
  left: 26px;
  width: 10px;
  height: 10px;
  background-color: red;
  border-radius: 50%;
  display: none;
  z-index: 2;
}

#user-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-right: 5px;
  margin-bottom: 20px;
  text-transform: uppercase;
  font-size: 14px;
}

#user-header img:hover {
  filter: brightness(1.2);
}



/* ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ */
/* SIDEBAR REPLIÉE */

.sidebar.collapsed {
  width: 2cm;
  align-items: center;
  padding: 20px 5px;
}

.sidebar.collapsed button {
  text-align: center;
  padding: 10px 0;
}

.sidebar.collapsed #user-info {
  display: none;
}

.sidebar.collapsed #menu-toggle {
  text-align: center;
}

.sidebar.collapsed div[id$='submenu'] {
  display: none !important; /* cache tous les sous-menus */
}

/* ░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ */
/* CONTENU PRINCIPAL */

.sidebar button {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.sidebar:not(.collapsed) button {
  max-width: 4.5cm;
}


.main-content {
  margin-left: 5cm;
  padding-top: 40px;
  padding: 20px;
  box-sizing: border-box;
  background-color: #f0f0f0;
  color: #111;
  overflow-y: auto;
}

.main-content.collapsed {
  margin-left: 2cm;
}
.sidebar.collapsed div[id$='submenu'] {
  display: none !important;
}
.sidebar.collapsed div[id$='submenu'] {
  display: none !important;
}

  
  .sidebar button {
    background: none;
    color: white;
    border: none;
    text-align: left;
    padding: 10px;
    font-size: 15px;
    cursor: pointer;
    transition: background 0.2s;
  }
  .sidebar button {
    display: block;
    width: 100%;
    text-align: left;
  }
  
  
  .sidebar button:hover {
    background-color: #333;
  }
  
  .main-content {
    flex-grow: 1;
    padding: 30px;
    background-color: #f0f0f0;
    color: #111;
    overflow-y: auto;
  }
  body {
    margin-top: 50px; /* pour ne pas que le bandeau masque le haut */
  }
/* === Messagerie === */

.messagerie-page {
  display: flex;
  height: 100vh;
  margin: 0;
  font-family: "Segoe UI", sans-serif;
  background-color: #f6f7fb;
}

.messagerie-container {
  display: flex;
  width: 100%;
}

/* === Barre latérale === */
.sidebar-messages {
  width: 230px;
  background-color: #2f3542;
  color: white;
  padding: 20px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sidebar-messages h3 {
  margin-bottom: 10px;
  font-size: 18px;
}

.sidebar-messages button {
  background: none;
  border: none;
  color: white;
  text-align: left;
  padding: 10px;
  cursor: pointer;
  font-size: 15px;
  border-radius: 4px;
}

.sidebar-messages button:hover {
  background-color: #57606f;
}

.compose-btn {
  margin-top: 20px;
  background-color: #2e345a !important;
  color: white !important;
  font-weight: bold;
}

/* === Zone principale === */
.messages-main {
  flex-grow: 1;
  padding: 20px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  height: 100vh; /* Ajouté */
}


#messages-list {
  background: white;
  border-radius: 6px;
  padding: 10px;
  overflow-y: auto;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
  flex-grow: 1; /* utilise tout l'espace */
}


#message-view {
  background: white;
  border-radius: 6px;
  padding: 20px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
  min-height: 200px;
}

/* === Pop-up rédaction === */
.popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.4);
  display: flex;
  justify-content: center;
  align-items: center;
}

.popup-content {
  background: white;
  padding: 20px;
  border-radius: 8px;
  width: 400px;
  max-width: 90%;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.popup-content h2 {
  margin-top: 0;
}

.popup-content input,
.popup-content textarea {
  width: 100%;
  padding: 10px;
  margin-top: 8px;
  margin-bottom: 12px;
  border-radius: 5px;
  border: 1px solid #ccc;
  font-size: 14px;
}

.popup-buttons {
  display: flex;
  justify-content: space-between;
}

#suggestions {
  background: #fff;
  border: 1px solid #ccc;
  border-top: none;
  position: relative;
  z-index: 10;
  max-height: 150px;
  overflow-y: auto;
}

#suggestions div {
  padding: 8px;
  cursor: pointer;
}

#suggestions div:hover {
  background-color: #eee;
}
body {
  margin: 0;
  font-family: "Segoe UI", sans-serif;
  background-color: #f6f7fb;
}

/* --- MESSAGERIE --- */
.messagerie-container {
  display: flex;
  width: 100%;
  height: 100vh; /* S'étend sur toute la hauteur de l'écran */
  overflow: hidden;
}

.sidebar-messages {
  width: 220px;
  background-color: #2f3542;
  color: white;
  padding: 20px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 100vh; /* S'étend aussi sur toute la hauteur */
  overflow-y: auto; /* Scroll si nécessaire */
}

.sidebar-messages h3 {
  font-size: 18px;
  margin-bottom: 10px;
}

.sidebar-messages button {
  background: none;
  border: none;
  color: white;
  text-align: left;
  padding: 10px;
  cursor: pointer;
  font-size: 15px;
  border-radius: 4px;
}

.sidebar-messages button:hover {
  background-color: #57606f;
}

.compose-btn {
  margin-top: 20px;
  background-color: #2e345a !important;
  color: white !important;
  font-weight: bold;
}
/* --- CONTENU MESSAGES --- */
.messages-main {
  flex-grow: 1;
  padding: 20px;
  display: flex;
  flex-direction: column;
  height: 100vh; /* S'étend sur toute la hauteur de la page */
  box-sizing: border-box;
}

#messages-list {
  background: white;
  border-radius: 6px;
  padding: 10px;
  flex-grow: 1; /* prend toute la hauteur disponible */
  overflow-y: auto;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
  margin-bottom: 20px;
}

#messages-list div {
  padding: 10px;
  border-bottom: 1px solid #eee;
  cursor: pointer;
}

#messages-list div:hover {
  background-color: #f1f1f1;
}

#message-view {
  background: white;
  border-radius: 6px;
  padding: 20px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
  min-height: 200px;
}


/* --- POP-UP --- */
.popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.4);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.popup-content {
  background: white;
  padding: 20px;
  border-radius: 8px;
  width: 400px;
  max-width: 90%;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.popup-content h2 {
  margin-top: 0;
}

.popup-content input,
.popup-content textarea {
  width: 100%;
  padding: 10px;
  margin-top: 8px;
  margin-bottom: 12px;
  border-radius: 5px;
  border: 1px solid #ccc;
  font-size: 14px;
}

.popup-buttons {
  display: flex;
  justify-content: space-between;
}

#suggestions {
  background: #fff;
  border: 1px solid #ccc;
  border-top: none;
  position: relative;
  z-index: 10;
  max-height: 150px;
  overflow-y: auto;
}

#suggestions div {
  padding: 8px;
  cursor: pointer;
}

#suggestions div:hover {
  background-color: #eee;
}
    

/* Titre */
h2 {
  text-align: left;
  margin-bottom: 20px;
}

.table-devoirs {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
  font-size: 12px; /* RÃ©duction de la taille du texte */
}

.table-devoirs th, .table-devoirs td {
  border: 1px solid #ccc;
  text-align: left;
  padding: 6px 8px; /* RÃ©duction de l'espace */
  white-space: nowrap; /* EmpÃªche le retour Ã  la ligne */
  overflow: hidden;
  text-overflow: ellipsis;
}

.table-devoirs th {
  background: #f5f5f5;
  font-weight: bold;
  text-align: left;
}

.table-devoirs td {
  background: white;
}

/* Centrage du texte dans les colonnes concernÃ©es */
.table-devoirs td:nth-child(2), /* Date */
.table-devoirs td:nth-child(5), /* Coefficient */
.table-devoirs td:nth-child(6)  /* Progression */ {
  text-align: center;
}

/* Style des barres de progression */
.progress-container {
  width: 60px; /* RÃ©duction de la largeur */
  background: #ddd;
  height: 10px;
  border-radius: 3px;
  position: relative;
  display: inline-block;
}

.progress-bar {
  height: 100%;
  background: #333;
  border-radius: 3px;
}

/* Style du texte dans la barre de progression */
.progress-text {
  font-size: 10px;
  font-weight: bold;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
}

/* IcÃ´ne de suppression */
.delete-btn {
  background: none;
  border: none;
  cursor: pointer;
}

.delete-btn img {
  width: 12px; /* Taille rÃ©duite */
  height: 12px;
}


/* RÃ©duction des boutons d'action */
.table-devoirs button {
  padding: 3px 6px;
  font-size: 12px;
}

/* Tableau des devoirs */
#listeDevoirs {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
  background: white;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  overflow: hidden;
}

#listeDevoirs th, #listeDevoirs td {
  border: 1px solid #ddd;
  text-align: center;
  padding: 2px;
  font-size: 14px;
}

#listeDevoirs th {
  background: #f4f4f4;
  color: rgb(56, 48, 128);
  font-weight: bold;
}

/* Alignement du texte dans les cellules */
#listeDevoirs td {
  background: #ffffff;
  vertical-align: middle;
}

/* Colonnes spÃ©cifiques */
.nom-devoir {
  text-align: left;
  padding-left: 10px;
}

.date-devoir {
  width: 120px;
}

.progress-container {
  width: 120px;
  background: #eee;
  height: 10px;
  border-radius: 5px;
  position: relative;
  overflow: hidden;
}

.progress-bar {
  height: 10px;
  background: #555555;
  align-items: center;
  border-radius: 5px;
}

.progress-text {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 12px;
  font-weight: bold;
}

/* Style du bouton âš™ pour l'action */
.action-btn {
  font-size: 20px;
  border: none;
  background: none;
  cursor: pointer;
  color: #007BFF;
  transition: 0.3s;
}

.action-btn:hover {
  color: #0056b3;
}


.delete-btn {
  background-color: #d9534f;
  color: white;
}

.edit-btn {
  background-color: #0275d8;
  color: white;
}

/* Grille des Ã©lÃ¨ves */
#listeEleves {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 15px;
}

/* Style des Ã©lÃ¨ves */
.eleve-row {
  background: white;
  padding: 12px;
  border-radius: 5px;
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 1px solid #ddd;
  width: 180px;
  text-align: center;
  cursor: pointer;
  transition: background 0.3s ease;
}

.eleve-row:hover {
  background-color: #e8f0ff;
}

/* Mise en surbrillance lors de la sÃ©lection */
.eleve-row.active {
  background-color: #007bff;
  color: white;
  border-left: 5px solid #0056b3;
}

/* Zone de saisie de note */
input[type="number"] {
  width: 80px;
  text-align: center;
  font-size: 16px;
  padding: 5px;
  margin-top: 5px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

/* Style du panneau d'Ã©valuation */
.evaluation-grid {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
}

#evaluationPanel {
  width: 35%;
  background: #f8f9fa;
  padding: 15px;
  border-radius: 5px;
  border: 1px solid #ddd;
}

/* SÃ©lection des compÃ©tences */
#competencesContainer {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 10px;
}

#competencesContainer select {
  width: 200px;
  padding: 5px;
  border-radius: 4px;
}

#listeCompetences {
  margin: 0;
  padding: 0;
  list-style: none;
}

#listeCompetences li {
  background: #f0f0f0;
  padding: 5px;
  margin: 2px 0;
  border-radius: 3px;
}

/* Style des couleurs des compÃ©tences */
.competence-color {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  display: inline-block;
  margin-left: 5px;
}

/* Couleurs pour les Ã©valuations */
.color-0 { background: #d3d3d3; } /* Gris clair */
.color-1 { background: #d9534f; } /* Rouge foncÃ© */
.color-2 { background: #f7b2b7; } /* Rose clair */
.color-3 { background: #28a745; } /* Vert cactus */
.color-4 { background: #17a2b8; } /* Bleu ciel */

/* Zone d'affichage des statistiques */
.statistiques {
  display: flex;
  justify-content: space-around;
  margin-top: 20px;
  background: #f9f9f9;
  padding: 10px;
  border-radius: 5px;
  border: 1px solid #ddd;
}

.statistiques p {
  margin: 0;
  font-weight: bold;
}

/* Style de la popup d'erreur pour la saisie des notes */
.popup {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: white;
  padding: 15px;
  border-radius: 5px;
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.3);
  z-index: 9999;
  text-align: center;
}

.popup p {
  margin: 0;
  font-weight: bold;
}

.popup button {
  margin-top: 10px;
  background: #d9534f;
  color: white;
}
/* Style de la case note dans l'affichage des Ã©lÃ¨ves */
.note-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: white;
  border: 1px solid #ccc;
  padding: 5px;
  width: 40px;
  text-align: center;
  font-weight: bold;
  font-size: 16px;
}

.note-box hr {
  width: 80%;
  border: 0.5px solid black;
  margin: 2px 0;
}

/* Affichage de la couleur des compÃ©tences */
.competence-indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 5px;
}
.competence-container {
  margin-top: 10px;
  padding: 5px;
  background: #f5f5f5;
  border-radius: 5px;
}

.competence-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 5px;
}

.competence-select {
  padding: 5px;
  border-radius: 5px;
  border: 1px solid #ccc;
  cursor: pointer;
}
#competencesEvaluation {
  margin-top: 10px;
  padding: 10px;
  background: #f5f5f5;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
}

.competence-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px;
}

.competence-select {
  padding: 5px;
  border-radius: 5px;
  border: 1px solid #ccc;
  cursor: pointer;
  width: 50%;
}
.edit-btn, .delete-btn {
  margin-left: 10px;
  padding: 5px 10px;
  font-size: 14px;
  border-radius: 5px;
  cursor: pointer;
}
.edit-btn {
  background-color: #f0ad4e;
  color: white;
}
.delete-btn {
  background-color: #d9534f;
  color: white;
}
.top-menu {
  background: #34495e;
  padding: 10px 0;
  text-align: center;
}

.top-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: center;
}

.top-menu ul li {
  margin: 0 15px;
}

.top-menu ul li a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  font-size: 16px;
  padding: 10px 15px;
  transition: background 0.3s;
}
#admin-suggestions {
  max-height: 200px;
  overflow-y: auto;
  width: 90%;
  box-shadow: 0px 2px 8px rgba(0,0,0,0.2);
}
#admin-suggestions > div:hover {
  background-color: #4285F4 !important;
  color: white;
}#admin-topbar input::placeholder {
  color: #aaa;
  font-size: 13px;
}
.admin-search-bar {
  display: none;
}

body.admin-connected .admin-search-bar {
  display: block;
}


#interface-vie-scolaire {
  margin-top: 60px; /* adapte selon hauteur de ta barre */
}
#interface-vie-scolaire {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 100px; /* adapte selon la hauteur de ta barre de recherche */
  width: 100%;
}

.absence-ligne {
  width: 50%;
  max-width: 1100px;
  margin-bottom: 15px;
  background: #f6f8f9;
  border-radius: 80px;
  display: flex;
  align-items: center;
  padding: 500px 20px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.message-item {
  padding: 12px 16px;
  border-bottom: 1px solid #ddd;
  cursor: pointer;
  transition: background-color 0.2s ease;
  font-family: 'Segoe UI', sans-serif;
}

.message-item:hover {
  background-color: #f2f2f2;
}

.message-item.unread {
  font-weight: bold;
  background-color: #fff8e1;
}
.message-item {
  padding: 12px 16px;
  border-bottom: 1px solid #ddd;
  cursor: pointer;
  transition: background-color 0.2s ease;
  font-family: 'Segoe UI', sans-serif;
}

.message-item:hover {
  background-color: #f2f2f2;
}

.message-item.unread {
  font-weight: bold;
  background-color: #fff8e1;
}
.message-item {
  padding: 12px 16px;
  border-bottom: 1px solid #ddd;
  cursor: pointer;
  transition: background-color 0.2s ease;
  font-family: 'Segoe UI', sans-serif;
}

.message-item:hover {
  background-color: #f2f2f2;
}

.message-item.unread {
  font-weight: bold;
  background-color: #fff8e1;
}
#suggestions {
  position: absolute;
  background: white;
  border: 1px solid #ccc;
  max-height: 180px;
  overflow-y: auto;
  z-index: 1000;
  width: 300px;
}
/* Conteneur global de la messagerie */
#messagerie-container {
  display: flex;
  height: 100vh; /* Prend toute la hauteur visible de la fenêtre */
  background-color: #f2f4f8;
  font-family: 'Segoe UI', sans-serif;
  overflow: hidden; /* Empêche débordements horizontaux */
}
/* Conteneur global de la messagerie */
#messagerie-container {
  display: flex;
  height: 100vh; /* toute la hauteur de la fenêtre */
  background-color: #f2f4f8;
  font-family: 'Segoe UI', sans-serif;
}

/* Liste des messages (gauche) */
#messages-list {
  flex: 1;
  background: #fff;
  border-right: 1px solid #ccc;
  overflow-y: auto;
}

/* Affichage du message sélectionné (droite) */
#message-view {
  flex: 2;
  padding: 30px;
  background: #f9f9f9;
  overflow-y: auto;
  box-sizing: border-box;
}

.message-item:hover {
  background: #f5faff;
}

.message-item.unread {
  background: #e8f0fe;
}

/* Étiquette interne/institution */
.message-item span {
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 12px;
  background-color: #eef5ff;
  color: #00529b;
  margin-left: 10px;
}


/* Vue du message */
#message-view h4 {
  font-size: 18px;
  margin-bottom: 10px;
}

#message-view .sender-info {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

#message-view .sender-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: #0d47a1;
  color: white;
  font-size: 18px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 15px;
}

#message-view .sender-name {
  font-weight: bold;
  font-size: 16px;
}

#message-view .sender-role {
  font-size: 13px;
  color: gray;
}

#message-view .message-content {
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 20px;
  line-height: 1.6;
}

#message-view button {
  background-color: #1976d2;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  margin-top: 20px;
  cursor: pointer;
}

#message-view button:hover {
  background-color: #0d47a1;
}
#onglets-messagerie {
  display: flex;
  border-bottom: 1px solid #ddd;
  background-color: #f2f4f8;
}

.onglet-message {
  padding: 14px 28px;
  cursor: pointer;
  font-weight: 500;
  color: #333;
  border-bottom: 3px solid transparent;
  transition: all 0.2s;
}

.onglet-message:hover {
  background-color: #eaf1fb;
}

.onglet-message.actif {
  background-color: #ffffff;
  border-bottom: 3px solid #1976d2;
  font-weight: bold;
}
#onglets-messagerie {
  display: flex;
  border-bottom: 1px solid #ddd;
  background-color: #f2f4f8;
}

.onglet-message {
  padding: 14px 28px;
  cursor: pointer;
  font-weight: 500;
  color: #333;
  border-bottom: 3px solid transparent;
  transition: all 0.2s;
}

.onglet-message:hover {
  background-color: #eaf1fb;
}

.onglet-message.actif {
  background-color: #ffffff;
  border-bottom: 3px solid #1976d2;
  font-weight: bold;
}

#messagerie-container {
  display: flex;
  height: calc(100vh - 140px); /* ou ajuste selon ta mise en page */
  background-color: #f2f4f8;
  font-family: 'Segoe UI', sans-serif;
}

#messages-list {
  flex: 1;
  background: #fff;
  border-right: 1px solid #ccc;
  overflow-y: auto;
}

#message-view {
  flex: 2;
  padding: 30px;
  background: #f9f9f9;
  overflow-y: auto;
}
#onglets-messagerie {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #ddd;
  background-color: #f2f4f8;
  padding: 0 20px;
  height: 52px;
}

.onglets-groupe {
  display: flex;
}

.onglet-message {
  padding: 14px 28px;
  cursor: pointer;
  font-weight: 500;
  color: #333;
  border-bottom: 3px solid transparent;
  border-radius: 0; /* ✅ pas de coins arrondis */
  transition: all 0.2s;
}

.onglet-message:hover {
  background-color: #eaf1fb;
}

.onglet-message.actif {
  background-color: #ffffff;
  border-bottom: 3px solid #1976d2;
  font-weight: bold;
}

#btn-rediger {
  background: #1976d2;
  color: white;
  border: none;
  padding: 10px 18px;
  font-size: 14px;
  cursor: pointer;
  margin-right: 10px;
  border-radius: 0; /* ✅ coins carrés */
  transition: background 0.2s;
}

#btn-rediger:hover {
  background: #0d47a1;
}

/* ==== NOTIFICATIONS ==== */
#notification-zone {
  position: fixed;
  top: 20px;
  right: 30px;
  width: 340px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.inline-notification {
  background-color: #d4edda;
  color: #155724;
  border-left: 6px solid #28a745;
  padding: 12px 16px;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
  font-size: 14px;
  animation: fadeIn 0.3s ease-out;
  overflow: hidden;
}

/* ==== ANIMATION ==== */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.inline-notification small {
  font-size: 12px;
  color: #0c502d;
}

.inline-notification .progress-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 4px;
  background-color: #28a745;
  animation: shrinkBar linear forwards;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes shrinkBar {
  from { width: 100%; }
  to { width: 0%; }
}

.inline-notification.error {
  background-color: #f8d7da;
  color: #721c24;
  border-left: 6px solid #dc3545;
}

.inline-notification.error .progress-bar {
  background-color: #dc3545;
}

.bandeau-confirmation {
  position: fixed;
  top: 20px;
  right: 20px;
  background-color: #4CAF50;
  color: white;
  padding: 14px 20px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  font-weight: bold;
  z-index: 9999;
  animation: fadeOut 4s forwards;
}

@keyframes fadeOut {
  0% { opacity: 1; }
  80% { opacity: 1; }
  100% { opacity: 0; transform: translateY(-10px); }
}


.bandeau-confirmation {
  position: fixed;
  top: 20px;
  right: 20px;
  background-color: #4CAF50;
  color: white;
  padding: 12px 18px;
  border-radius: 10px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.3);
  font-weight: bold;
  z-index: 9999;
  animation: fadeOut 4s forwards;
}

@keyframes fadeOut {
  0%, 80% { opacity: 1; }
  100% { opacity: 0; transform: translateY(-10px); }
}



























.interface-enseignant {
  display: flex;
  flex-direction: row;
  padding: 20px;
}

.seance-liste {
  width: 250px;
  margin-right: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.seance-rect {
  padding: 10px;
  background: #f0f0f0;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.2s;
}
.seance-rect:hover {
  background: #e0e0e0;
}

.appel-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  background-color: #f9f9f9;
  border-bottom: 1px solid #ddd;
}

#notif-appel {
  display: none;
  margin: 0 20px 10px;
  color: green;
  font-weight: bold;
}

.appel-table {
  margin: 20px;
  border-collapse: collapse;
  width: 100%;
}

.appel-row {
  display: grid;
  grid-template-columns: 2fr repeat(6, 1fr) 3fr 2fr 1fr;
  align-items: center;
  padding: 6px 0;
  border-bottom: 1px solid #ddd;
}

.appel-row.header {
  font-weight: bold;
  background: #f3f3f3;
}

.appel-row.tous {
  background: #f9f9f9;
  font-weight: bold;
}

.case, .case-global {
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  transition: background 0.2s;
}

.case.selected {
  background: #0078d4;
  color: white;
  font-weight: bold;
}

.case:hover {
  background: #e0e0e0;
}

.detail-absence {
  font-size: 0.9em;
  color: #444;
}

.commentaire {
  width: 90%;
  padding: 4px;
}

.supprimer-ligne {
  cursor: pointer;
  color: red;
  font-size: 18px;
  text-align: center;
}
