*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: white;
    height: 100%;
  

}
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #2C3695;
  padding: 10px;
  top: 0;
  left: 0;
  width: 100%;
  overflow: hidden; 
}

.mobile-menu > .nav-item {
  position: relative;
  border-top: 2px solid black; 
  padding-top: 10px;
  margin-top: 10px;
  width: calc(100% - 80px); 
  margin-left: 15px; 
  margin-right: 15px; 
  text-align: center;
}

.mobile-menu > .nav-item:first-child {
  border-top: none; 
}

.nav-item {
  color: white;
  text-decoration: none;
  margin: 0 15px;
  font-size: 1.2rem;
}
.nav-item.active {
    text-decoration: underline;
}


.profile img {
  height: 40px;
  width: 40px;
}
.logo img {
  height: 40px;
  margin-right: 20px;
}

.logo {
  flex: 1;
}

.burger-menu,
.profile {
  margin-left: auto; 
  display: flex;
  align-items: center;
}

.burger-menu {
  margin-right: 10px; 
  cursor: pointer;
  flex-direction: column;
}

.burger-menu .line {
  width: 25px;
  height: 3px;
  background-color: white;
  margin: 4px 0;
}

.close-menu {
  display: none;
  font-size: 34px;
  color: black;
  cursor: pointer;
  z-index: 2;
  background: #FFFFFF;
  text-align: end;
  padding-right: 50px;
  padding-top: 13px;
}

.mobile-menu.visible .close-menu {
  display: block; 
}

.burger-menu.open .line {
  background-color: transparent; 
}


.burger-menu.open {
  display: none;
}

/* Menu mobile */
.mobile-menu {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: fixed;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #FFFFFF;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1;
}

/* Liens du menu */
.mobile-menu a {
  color: rgb(0, 0, 0);
  text-decoration: none;
  font-size: 25px;
  margin: 15px 0;
}

/* Classes pour afficher le menu */
.mobile-menu.visible {
  opacity: 1;
  visibility: visible;
}

.nav-links {
  display: none;
}

.burger-menu {
  display: flex;
}

/* Sous-menu caché par défaut */
.submenu {
  display: none; 
  position: relative;
  width: 100%;
  background-color: #464C7B; 
  color: white;
  z-index: 999;
  transition: opacity 0.3s ease, visibility 0s 0.3s;
  padding: 10px 0; 
}

.submenu .submenu-container {
  width: calc(100% - 30px); 
  margin-left: 15px;
  margin-right: 15px;
}

.submenu.visible {
  display: block; 
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s ease, visibility 0s;
}
/* Liens dans le sous-menu */
.submenu a {
  font-size: 20px;
  margin: 10px 0;
  display: block;
  padding-left: 0;
  padding-bottom: 10px;
  text-align: center;
  border-bottom: 2px solid white;
}


.submenu a:last-child {
  border-bottom: none;
}

/* Sous-menu visible */
.submenu.visible {
  display: block;  
  visibility: visible;  
  opacity: 1; 
  transition: opacity 0.3s ease, visibility 0s; /
}

.submenu.visible a {
  color: white;
}


.submenu.visible a {
  color: white;
}

.mobile-menu a[href="javascript:void(0)"][onclick="toggleSubMenu('cours')"] {
  border-top: none;
}


  
  
.cours h1 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 20px;
}
.liens-container {
  text-align: center;
  margin-bottom: 30px;
  margin-top: 30px;
}

.liens-container a {
  margin: 0 30px;
  text-decoration: none;
  font-size: 18px;
  color: #2C3695;
}

.liens-container a:hover {
  text-decoration: underline;
}
.carte-cours {
    display: grid;
    grid-template-columns: 1fr;;
    gap: 20px;
    padding: 0 10px; 
}

.carte {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #2C3695;
    border-radius: 20px;
    overflow: hidden;
    width: 100%; 
    max-width: 1200px; 
    height: 214px;
    margin: 0 auto; 
    border: none;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}
.carte-link {
  text-decoration: none;
}
.carte img {
    width: 100%;
    height: 60%; 
    object-fit: cover; 
    display: block; 
    margin: 0 auto; 
    background-color: white;
}

.titre-cours {
    padding: 10px;
    color: white;
    height: 27%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}


.titre-cours h2 {
    font-size: 1.3rem;
    margin: 5px 0;
    font-weight: bold;
}

.titre-cours h3 {
    font-size: 0.8rem;
    color: #ccc;
    margin: 0;
}
.nav-links {
  display: none;
}
.logo-mobile {
  display: block;
}

.logo-desktop {
  display: none;
}
.titre-ressource {
  text-align: center;
  color: black;
  font-size: 2rem;
  margin-top: 20px;
}

.rubrique {
  border: 2px solid #2C3695;
  border-radius: 5px;
  padding: 20px;
  margin: 20px auto;
  width: 80%;
  background-color: white;
  position: relative;
}
.rubrique h2 {
  background-color: #2C3695;
  color: white;
  border-radius: 10px;
  padding: 5px 45px;
}
.rubrique-titre {
  position: absolute;
  top: -15px;
  left: -3px;
  background-color: white;
  color: #2C3695;
  padding: 0 10px;
  font-size: 1rem;
}
.rubrique_detailcours {
  background-color: #2C3695;
  padding: 15px;
  border-radius: 15px;
  display: flex;
  margin-bottom: 10px;
  transition: all 0.3s ease;
}
.logo_detailcours {
  display: flex;
  justify-content: center;
  align-items: center;
}
.rubrique-header {
  display: flex;
  margin-bottom: 10px;
}
.rubrique-header h3 {
  margin-bottom: 0;
}
.arrow-down {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  margin-bottom: 2px;
}
.detailcours-link {
  margin-left: 15px;
  font-size: 1.2rem;
  color: white;
  cursor: pointer;
}

.detailcours-container {
  padding: 10px;
  border-radius: 15px; 
  width: 100%;
  background-color: transparent; 
  margin-top: 10px;
  transition: all 0.3s ease;
  box-sizing: border-box; 
}


.detailcours-content {
  padding: 10px;
  border-radius: 10px;
  margin-top: 10px;
  display: none;
  background-color: white;
  transition: all 0.3s ease;
}


.white-background {
  background-color: rgb(255, 255, 255) !important;
  color: black;
  border-radius: 15px;
  
}


.blue-title {
  background-color: blue;
  color: white;
  text-align: center;

}

.border-blue {
  border: 2px solid blue; 
}
.btn-retour {
  display: inline-flex;
  align-items: center; 
  color: rgb(0, 0, 0);
    padding: 10px 15px;
  border-radius: 5px;
  text-decoration: none;
  font-size: 1rem;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-retour .arrow {
  font-size: 1.5rem;
  margin-right: 8px;
  margin-top: -4px;
}

.btn-retour:hover {

  transform: translateX(-3px); /
}
.header_detailcours {
  display: flex;
  justify-content: flex-start;
  padding: 10px;
}


.travailafaire h1 {
  text-align: center;
  color: black;
  margin: 20px 0;
}

.titre_travail {
  font-size: 1.8rem;
  font-weight: bold;
  margin-bottom: 10px;
}

.containeur_travail {
  border: 2px solid #2C3695;
  padding: 20px;
  margin: 0 10px;
  border-radius: 27px;
  position: relative;
  margin-bottom: 50px;
}

.containeur_travail h2 {
  background-color: #2C3695;
  color: white;
  border-radius: 426px;
  padding: 8px;
}

.date_travail {
  position: absolute;
  top: -32px; 
  right: 5%; 
  color: #2C3695;
  padding: 0.5em 1em;
  font-size: 0.6rem;
  border-radius: 5px;
}

.contenu_travail {
  color: #333;
  font-size: 1.3rem;
}

.deposertravail {
  text-align: right;
  margin-top: 20px;
}

.deposertravail button {
  background-color: #2C3695;
  color: white;
  border: none;
  padding-left: 10px;
  border-radius: 45px;
  cursor: pointer;
  padding-right: 10px;
  font-size: 12px;
}

.deposertravail button:hover {
  background-color: #2C3695;
}
.bloc_bleu {
  display: none;
}
  .popup-container {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8); 
    justify-content: center;
    align-items: center;
}

.popup {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    width: 90%;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    position: relative;
}

.popup h3 {
    margin-bottom: 20px;
    font-size: 1.5rem;
}

.popup input[type="file"] {
    margin-top: 10px;
    font-size: 1rem;
}

.popup button {
    margin-top: 15px;
    padding: 10px 20px;
    background-color: #2C3695;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
}

.popup .close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: transparent;
    color: black;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

.popup .close-btn:hover {
    color: red;
}

.popup-container.visible {
    display: flex;
}

#addWorkPopup {
  display: none; 
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8); 
  justify-content: center;
  align-items: center;
  z-index: 999;
}

#addWorkPopup.visible {
  display: flex;
}

#addWorkPopup .popup {
  background-color: white;
  padding: 20px;
  border-radius: 10px;
  width: 90%;
  max-width: 400px;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  position: relative;
}

#addWorkPopup .popup h3 {
  margin-bottom: 20px;
  font-size: 1.5rem;
}

#addWorkPopup .popup input,
#addWorkPopup .popup textarea {
  width: 100%;
  padding: 3px;
  margin: 10px 0;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 1rem;
}

#addWorkPopup .popup button {
  margin-top: 15px;
  padding: 10px 20px;
  background-color: #2C3695;
  color: white;
  border: none;
  border-radius: 5px;
  font-size: 1rem;
  cursor: pointer;
}
#addWorkPopup .popup .close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: transparent;
  color: black;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
}

#addWorkPopup .popup .close-btn:hover {
  color: red;
}
.date_echeance {
  font-size: 1rem;
  color: #ff0000;
  margin-top: 18px;
  margin-bottom: 16px;
}

.gestionabsence-bloc {
  flex: 1 1 100%; /* Sur petit écran, les blocs prennent toute la largeur */
  max-width: 100%;
}


/* Style pour les tables */
table {
width: 100%;
border-collapse: collapse;
}

table th, table td {
border: 1px solid #ccc;
padding: 8px;
text-align: left;
}

table th {
background-color: #eee;
}
.desktop_emploidutemps {
  display: none;
}

.professeur-options {
  margin-top: 10px;
  text-align: center;
}

.professeur-options button {
  background-color: #2C3695;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1.2rem;
}

.options {
  display: flex;
  align-items: center;  margin-left: 20px;
  gap: 15px;
  font-size: 1.2rem;
}


.options a {
  text-decoration: none; /* Supprime la ligne sous le lien */
  color: white; /* Hérite la couleur du parent */
}
/* Style principal de la page Modifier Détail Cours */
.modifiercoursdetail-title {
  text-align: center;
  font-size: 2rem;
  color: black;
  margin-bottom: 20px;
}

.modifiercoursdetail-container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  background-color: #f4f4f4;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  width: 80%;
  margin: 0 auto;
}

.modifiercoursdetail-form {
  width: 100%;
  max-width: 600px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.modifiercoursdetail-label {
  font-size: 1.1rem;
  color: #333;
}

.modifiercoursdetail-input,
.modifiercoursdetail-textarea {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 1rem;
  width: 100%;
  box-sizing: border-box;
}

.modifiercoursdetail-input:focus,
.modifiercoursdetail-textarea:focus {
  border-color: #2C3695;
  outline: none;
}

.modifiercoursdetail-btn {
  padding: 12px;
  background-color: #2C3695;
  color: white;
  border: none;
  border-radius: 5px;
  font-size: 1.2rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.modifiercoursdetail-btn:hover {
  background-color: #1e2b73;
}

.absences-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  padding: 20px;
}

.absences-container {
  display: flex;
  gap: 20px;
  justify-content: center;
  align-items: center;
}

.absence-bloc {
  color: white;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  font-size: 1.4rem;
  width: 60%;
  height: 400px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
}


.absence-bloc h2 {
  font-size: 2rem;
  margin-bottom: 20px;
}


.absence-justifiee {
 color: #242d7c;
 border: solid 2px #242d7c;
}

.absence-attente {

  color: rgb(255, 255, 255);
  background-color: #242d7c;
}
.absence-attente a {
    color: white; /* Le lien sera blanc */
    text-decoration: none; /* Pas de soulignement */
}

.absence-attente a:hover {
    text-decoration: underline;
}

.absence-nonjustifiee {
  color: #242d7c;
 border: solid 2px #242d7c;
}
.absences a {
    margin-top:50px;
}
.admin-section-update {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
  margin: 0 auto;
}

.admin-section-update form {
  background-color: #fff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 500px;
  box-sizing: border-box;
}

.admin-section-update form label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
  color: #333;
}

.admin-section-update form input,
.admin-section-update form select {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
}

.admin-section-update form input:focus,
.admin-section-update form select:focus {
  border-color: #2C3695;
  outline: none;
  box-shadow: 0 0 5px rgba(44, 54, 149, 0.5);
}

.admin-section-update form button {
  background-color: #2C3695;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 12px;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.admin-section-update form button:hover {
  background-color: #1e2b73;
}

.admin-section-update header h1 {
  text-align: center;
  color: #2C3695;
  margin-bottom: 20px;
  font-size: 2rem;
}

.edit_user {
  text-align: center;
}
.admin-section {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.user {
  background-color: #fff;
  border-radius: 10px;
  padding: 15px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease-in-out;
}


.user h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.user p {
  margin: 5px 0;
  color: #555;
}

.card-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
}

.card-actions a {
  text-decoration: none;
  color: #2C3695;
  font-weight: bold;
}
.espace_admin {
  text-align: center;
}
.card-actions a:hover {
  text-decoration: underline;
}

.admin-form {
  background-color: #fff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.admin-form label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
}

.admin-form input, .admin-form select, .admin-form button {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 5px;
}

.admin-form button {
  background-color: #2C3695;
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.admin-form button:hover {
  background-color: #1e2b73;
}
  /* Enattente Styles */
  body.enattente {
    background-color: #f4f4f9;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    font-family: 'Arial', sans-serif;
}

.enattente-container {
    text-align: center;
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.enattente-title {
    font-size: 2rem;
    color: #333;
    margin-bottom: 16px;
}

.enattente-message {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 24px;
}

.enattente-animation {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.gear {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #e0e0e0;
    position: relative;
    animation: spin 2s linear infinite;
}

.gear:before, .gear:after {
    content: '';
    position: absolute;
    background-color: #b0b0b0;
    border-radius: 50%;
}

.gear:before {
    width: 12px;
    height: 12px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.gear:after {
    width: 4px;
    height: 4px;
    top: 4px;
    left: 50%;
    transform: translateX(-50%);
}
container-notes {
  max-height: 500px; 
  overflow-y: auto; 
  border: 1px solid #ccc; 
}
.header-notes, .category-title, .detail {
  display: flex;
  justify-content: space-between; 
  padding: 10px;
  background-color: #f0f0f0;
}
.header-item, .detail-item {
  flex: 1; 
  text-align: center;
}
.subjects button {
  width: 100%; 
  text-align: left;
  padding: 10px;
  border: none;
  background-color: #ddd; 
  cursor: pointer; 
}
.details {
  background-color: #eee; 
}
.details .detail:not(:last-child) {
  border-bottom: 1px solid #ccc; 
}
.dashboard {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-gap: 30px;
  min-height: 72vh;
  margin-left: 10px;
  margin-right: 10px;
  color: #2C3695;
  padding-right: 30px;
  padding-left: 30px;
}
.schedule {
  grid-row: span 3;
  grid-column: span 3;
  display: flex;
  flex-direction: column;
  background-color:  #F0F0F0;
  border-radius: 12px;
}
.timetable-image {
  width: 100%;
  height: auto; 
  margin: auto;
}
.elections, .tasks, .grades, .favo, .recent-absences {
  display: flex;
  flex-direction: column;
  padding: 20px;
  border-radius: 12px;
  border: solid 1px #2C3695;
}
.elections {
  grid-row: span 2;
  grid-column: span 3;
}
.tasks {
  grid-column: span 3;
}
.grades {
  grid-column: span 3;
}
.favo {
  grid-column: span 9;
  color: white;
  background-color: #2C3695;
}
.recent-absences {
  grid-column: span 6;
}
.link-favo {
  margin-top: auto;
  margin-right: 0;
  color:white;
}
.dashboard h2 {
  margin-top: 0;
}
.dashboard p {
  margin-top: 0;
}
.grade-row {
  display: flex;
  justify-content: space-between; 
  margin-bottom: 10px; 
}
.subject {
  text-align: left;
}
.score {
  text-align: right; 
  min-width: 50px; 
  color: white;
  background-color: #2C3695;
  padding: 5px;
  border-radius: 6px;
}
.tasks {
  display: flex;
  flex-direction: column;
  padding: 20px;
  color: white;
  background-color: #2C3695;
}
.task-row {
  display: flex;
  justify-content: space-between; 
  margin-bottom: 10px;
}

.task {
  text-align: left; 
}
.details {
  text-align: right; 
  min-width: 50px; 
}
.link-favo {
  align-self: flex-end; 
  margin-top: auto; 
}
.white {
  color: white !important;
}
.welcome {
  text-align: center;
  margin-top: 30px;
}


@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.favorites {
  color: #2C3695;
}




@media (min-width: 1024px) {
  .desktop_layout {
    display: grid;
    grid-template-columns: 30% 65%; 
    gap: 20px; 
    padding: 20px;
    margin-right: 20px; 
    margin-left: 20px;
  }

  .bloc_bleu {
    position: sticky;
    top: 20px;
    background-color: #2C3695;
    color: white;
    padding: 20px;
    border-radius: 15px;
    font-size: 1.2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 400px;
    overflow: hidden;
    box-sizing: border-box;
    margin-right: 40px;
}

.bloc_bleu h2 {
      margin-bottom: 15px;
    text-align: left;
}

.categories {
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
    height: 100%;
    width: 100%;
    text-align: center;
   
}

.categories a {
  color: white;
  border-radius: 10px;
  width: 80%;
  margin: 5px 0;
  font-size: 1.1rem;
  text-align: left;
  transition: background-color 0.3s ease;
  text-decoration: none;
}

.categories a:hover {
  text-decoration: underline;
  cursor: pointer;
}


  .travailafaire {
    margin: 0; 
    font-size: 1.4rem;
  }

  .containeur_travail {
    margin: 0; 
    margin-bottom: 50px;
  }


.desktop_emploidutemps {
  display: block;
}
.mobile_emploidutemps{
  display: none;
}
.admin-list {
  flex-direction: column;
  align-items: center;
}

.user {
  width: 100%;
  max-width: 600px;
}

form {
  width: 100%;
  max-width: 600px;
}
.admin-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-gap: 20px;
  justify-content: center;
  padding: 40px;
}

.admin-section > form {
  grid-column: span 2;
}

.user {
  width: 100%;
}

form button {
  font-size: 1.1rem;
}
.titre_admin {
  text-align: center;
}
.ajouterunutilisateur {
  display: flex;
  justify-content: center;
}
.adduser {
  text-align: center;
  font-size: 1.4rem;
}
}

@media (max-width: 1400px) {
  .dashboard {
    margin-left: 10px;
    margin-right: 10px;
  }
  .schedule {
    grid-row: span 2;
  }
  .favo {
    grid-column: span 12;
  }
}
@media (max-width: 1200px) {
  .dashboard {
    grid-template-columns: repeat(2, 1fr); 
  }
  
  .schedule, .elections, .tasks, .grades, .recent-absences, .favo {
    grid-column: span 1; 
  }
  .timetable-image {
    width: 70%; 
  }
}

@media (max-width: 700px) {
  .dashboard {
    grid-template-columns: repeat(3, 1fr);
  }
  .schedule, .elections, .tasks, .grades {
    grid-column: span 3;
  }
  .favo, .recent-absences {
    grid-column: span 3;
  }
}

@media (min-width: 450px) {
    .carte-cours {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;@media (max-width: 1400px) {
  .dashboard {
    margin-left: 10px;
    margin-right: 10px;
  }
  .schedule {
    grid-row: span 2;
  }
  .favo {
    grid-column: span 12;
  }
}
@media (max-width: 1200px) {
  .dashboard {
    grid-template-columns: repeat(2, 1fr); 
  }
  
  .schedule, .elections, .tasks, .grades, .recent-absences, .favo {
    grid-column: span 1; 
  }
  .timetable-image {
    width: 70%; 
  }
}
@media (max-width: 700px) {
  .dashboard {
    grid-template-columns: repeat(3, 1fr);
  }
  .schedule, .elections, .tasks, .grades {
    grid-column: span 3;
  }
  .favo, .recent-absences {
    grid-column: span 3;
  }
}

    }

    .carte {
        margin: 0; 
    }
}


@media (min-width: 1010px) {
    .carte-cours {
        grid-template-columns: repeat(3, 1fr); 
        gap: 40px; 
        justify-content: center; 
    }

    .carte {
        max-width: 500px; 
        height: 300px; 
        margin: 0 auto; 
    }

    .titre-cours h2 {
        font-size: 1.6rem; 
        margin: 5px 0;
        font-weight: bold;
    }

    .titre-cours h3 {
        font-size: 1rem; 
        color: #ccc;
        margin: 0;
        text-align: left;
}
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #2C3695; 
  padding: 10px;
  top: 0;
  left: 0;
  width: 100%;
  transition: all 0.3s ease; 
}


.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-evenly; 
  gap: 10px; 
  width: 100%; 
  transition: all 0.3s ease;
}


.nav-item:hover {
  text-decoration: underline;
}


.profile {
  flex-shrink: 0; 
  margin-left: 15px;
}

.profile img {
  height: 50px; 
  width: 50px;
  border-radius: 50%;
  border: 1px solid white; 
  margin-right: 20px;
}

.navbar {
  transition: background-color 0.3s ease, padding 0.3s ease;
}


.logo img {
  height: 50px;
  transition: height 0.3s ease; 
}

.logo-mobile, .logo-desktop {
  transition: display 0.3s ease;
}

.logo-mobile {
  display: none;
}
.burger-menu {
  display: none;
}
.logo-desktop {
  display: block;
}
     .gestionabsence-containeur {
      display: flex; 
      flex-wrap: wrap;
      gap: 20px; 
      justify-content: space-between; 
  }
  
  .gestionabsence-bloc {
      flex: 1 1 calc(50% - 20px); 
      max-width: calc(50% - 20px); 
      box-sizing: border-box; 
      border: 1px solid #ccc;
      padding: 15px;
      background-color: #f9f9f9;
      border-radius: 5px;
  }
   .gestionabsence-bloc h2 {
       text-align: center;
   }
  .centered-form {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
}

}
.delete-btn {
    margin-top: 13px;
}

@media (max-width: 1367px) {
  .nav-item {
  font-size: 15px;
  font-weight: 500;
  }
}

@media (max-width: 1170px) {
  .nav-item {
  font-size: 12px;
  font-weight: 500;
  }
  .profile img {
       border: 1px solid white; 
  }
  .logo img {
    height: 34px;
    transition: height 0.3s ease;
  }
  pdp-nav {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    object-fit: cover;
  }
}
@media (max-width: 768px) {
  .gestionabsence-bloc {
flex: 1 1 100%; /* Les blocs prennent toute la largeur en dessous de 768px */
max-width: 100%;
}
}

.logo-bleu {
  width: 220px;
  margin-left: auto;
  margin-right: auto;
  bottom: 60px;
  position: relative;
} 

/* Formulaire */
/* Conteneur principal du formulaire */
.form {
  background: #F3F3F3;
  padding: 2rem;
  border-radius: 55px;
  width: 100%;
  max-width: 500px;
  height: 500px;
  align-items: center;
  justify-content: center;
}

/* Légende */
.form-legend {
  font-size: 1.2rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
  text-align: center;
}

/* Groupe de formulaire */
.form-group {
  margin-bottom: 1.5rem;
  position: relative;
}

/* Champ d'entrée */
.form-input {
  width: 340px;
  height: 38px;
  padding: 0.8rem;
  border-radius: 10px;
  background: #BAB9B9;
  color: black;
  font-size: 0.9rem;
  outline: none;
  display: flex;
  margin-left: auto;
  margin-right: auto;
  border: none;
}

/* Label */
.form-label {
  position: absolute;
  border-radius: 4px;
  top: 0.65rem;
  left: 3.8rem;
  font-weight: 300;
  color: black;
  font-size: 0.9rem;
  pointer-events: none;
  transition: transform 0.3s ease, font-size 0.3s ease, color 0.3s ease;
}

.form-input:focus + .form-label,
.form-input:not(:placeholder-shown) + .form-label {
  transform: translateY(calc(-100% - 0.1rem));
  font-size: 0.85rem;
  background: #BAB9B9;
}

/* Boutons */
.form-button {
  padding: 0.6rem;
  padding-left: 0.9rem;
  padding-right: 0.9rem;
  background: #2C3695;
  color: #ffffff;
  border: none;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 300;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease;
  display: flex;
  margin-left: auto;
  margin-right: auto;
  margin-top: 30px;
  text-decoration: none;
}

.form-button:hover {
  background: #242d7c;
}

/* Icône de l'œil */
.eye-icon {
  position: absolute;
  top: 50%;
  right: 3.7rem;
  transform: translateY(-50%);
  cursor: pointer;
  z-index: 10;
}

.eye-icon img {
  width: 22px;
  padding-top: 5px;
}

.logo-connect {
  width: 120px;
  display: flex;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 40px;
  margin-top: 10px;
  border-radius: 100px;
}

.bis {
  border: 1px solid #242d7c;
  width: 180px;
  margin-bottom: 10px;
}

.two {
  margin-top: 20px;
}

@media (max-width: 600px) {

  .logo-bleu {
    width: 160px;
  } 

.form {
    padding: 1.2rem;
    border-radius: 30px;
    max-width: 92%;
    height: auto;
    box-sizing: border-box;
  }

  .form-legend {
    font-size: 1rem;
    margin-bottom: 1rem;
  }

  .form-group {
    margin-bottom: 1rem;
  }

  .form-input {
    width: 99%;
    padding: 0.6rem;
    border-radius: 8px;
    margin-right: 50px;
    font-size: 0.9em;
    height: 32px;
  }

  .form-label {
    left: 1rem;
    top: 0.5rem;
    font-size: 0.85em;
  }

  .form-input:focus + .form-label,
  .form-input:not(:placeholder-shown) + .form-label {
    transform: translateY(calc(-100% - 0.1rem));
    font-size: 0.8rem;
  }

  .form-button {
    padding: 0.5rem 0.8rem;
    margin-top: 20px;
    font-size: 0.8rem;
    border-radius: 8px;
  }

  .eye-icon {
    right: 0.8rem;
  }

  .eye-icon img {
    width: 20px;
  }

  .logo-connect {
    width: 80px;
    margin-bottom: 20px;
  }
}

.title-profile {
  text-align: center;
  padding-top: 10px;
}

.container-profile {
  font-family: Arial, sans-serif;
  padding: 0 60px 20px 60px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-top: 25px;
  max-width: 1500px;
  margin-left: auto;
  margin-right: auto;
}

.user-info, 
.favorites, 
.absences {
  border: solid 1px #2C3695;
}
.absences_titre{
   text-align: center;
   margin-top:100px;
}
.profile-container {
  background: #fff;
  border-radius: 20px;
  padding-top: 0;
  padding: 0px;
  width: 100%; /* Assurez-vous que le conteneur s'étend sur toute la largeur */
}

.user-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
  background-color: white;
  margin-bottom: 20px;
  width: 100%; /* Utilise toute la largeur disponible */
  border-radius: 20px;
}

.favorites, .absences {
  padding: 0 0 15px 20px;
  border-radius: 20px;
  width: 49%; /* Chacun prend environ la moitié de l'espace disponible */
  box-sizing: border-box; /* Inclut padding dans le calcul de la largeur */
  margin-bottom: 20px;
}

.absences {
  background-color: #2C3695;
  color: white;
}

@media (max-width: 768px) {
  .favorites, .absences {
      width: 100%; /* Sur les petits écrans, chaque section prend toute la largeur */
  }
}

.avatar-button, .logout-button {
  background-color: #2C3695;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
}

.avatar-button span {
  font-size: 0.8em;
}

.status {
  height: 10px;
  width: 10px;
  border-radius: 50%;
  display: inline-block;
}

.user-role {
  font-size: 0.6em;
}

.link-abs {
  color: white;
  display: flex;
  justify-content: flex-end;
  margin-right: 20px;
}

.link-fav {
    color:#2C3695;
  display: flex;
  justify-content: flex-end;
}

.pdp {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  object-fit: cover;
}
.pdp-nav {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
}

.connexion {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  min-height: 100vh;
}

.elections {
  padding: 0;
  background-color: #2C3695;
}

.elections h2 {
  color: white;
  margin-top: 10px; /* Espacement au-dessus du titre */
  padding-left: 20px;
}

.elections p {
  color: white;
  font-size: 16px; /* Taille de la police pour le paragraphe */
  padding-left: 20px;
  padding-right: 10px;
}

.election-image {
  width: 100%; /* Largeur complète pour l'image */
  height: auto; /* Hauteur automatique pour garder le ratio */
}

.img-inline {
  display: inline-block;
}

.fav {
  width: 60px;
  margin-right: 20px;
}

.a {
      margin-right: 20px;
  margin-top: 4px;
}