body {
  background-color: rgb(231, 231, 231);
}

/* Conteneur du profil dans la navbar */
.navbar {
  background-color: #575757;
}

.navbar-profile {
  position: relative;
}

/* En-tête cliquable du profil */
.profile-header {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.image-status {
  position: relative;
  /* positionnement du point vert en absolu */
}

.profile-picture {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid white;
  position: relative;
}

.profile-picture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Le point vert est positionné en bas à droite de l’image */
.status-dot {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 10px;
  height: 10px;
  background-color: #00cc00;
  border-radius: 50%;
  border: 2px solid white;
}


.text-info {
  display: flex;
  flex-direction: column;
}

.name {
  font-weight: bold;
  font-size: 0.95rem;
}

.role {
  font-size: 0.75rem;
}

.chevron {
  font-size: 1.2rem;
  transition: transform 0.3s ease;
  position: relative;
  bottom: 9px;
  color: white;
}

.chevron.rotate {
  transform: rotate(180deg);
}

/* Dropdown stylisé */
.dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 10px;
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  padding: 1rem;
  width: 220px;
  display: none;
  animation: fadeIn 0.3s ease;
  z-index: 999;
}

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

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.dropdown .title {
  text-align: center;
  font-weight: bold;
  font-size: 0.8rem;
  margin-bottom: 4px;
}

.dropdown .avatar {
  width: 60px;
  height: 60px;
  margin: 0 auto;
  border-radius: 50%;
  background-color: black;
  display: flex;
  justify-content: center;
  align-items: center;
}

.dropdown .fullname {
  text-align: center;
  font-weight: bold;
  margin-top: 10px;
}

.dropdown .field {
  text-align: center;
  font-size: 0.9rem;
  color: #555;
  margin-top: 4px;
}

.buttons {
  display: flex;
  justify-content: space-between;
  margin-top: 12px;
}

.buttons button {
  flex: 1;
  margin: 0 4px;
  padding: 6px;
  font-size: 0.7rem;
  border: none;
  border-radius: 20px;
  background-color: black;
  color: white;
  cursor: pointer;
}

.buttons button:hover {
  background-color: #222;
}

@media (max-width: 500px) {
  .navbar {
    flex-direction: column;
    align-items: flex-start;
  }
}

/*Fond-écran des listes de cours*/
.bg-custom {
  margin-top: 86px;
}

/* Style général des listes de cours */
.course-card {
  /* border-radius: 12px;  coins arrondis */
  font-weight: 600;  /* texte en semi-gras */
  color: #facc15;  /* couleur du texte */
  background-color: #3b3b3b;  /* couleur du fond*/
  display: flex;  /* permet de centrer le contenu */
  flex-direction: column;  /* empile l’icône et le texte verticalement */
  justify-content: center;  /* centre verticalement */
  align-items: start;  /* centre horizontalement */
  text-align: start; /* aligne le texte au centre */
  padding: 20px;  /* espace intérieur */
  width: 100%;  /* occupe toute la largeur de sa colonne */
  height: 100px;  /* garde une forme carrée (hauteur = largeur) */
  overflow: hidden;
}

/* Style de l’icône dans chaque carte */
.icon {
  font-size: 2rem;
  /* taille de l’icône */
  margin-bottom: 10px;
  /* espace entre icône et texte */
}

/*Style des textes*/
/* Titre du texte */
.course-title {
  font-size: 1.2rem; /*taille du texte*/
  line-height: 19px;
  margin-bottom: 10px;
}

/*Nombre et texte*/
.course-count {
  font-size: 0.95rem;
  color: #ffffff;
  /*couleur du texte*/
}

/* Marge intérieure entre les cartes pour les espacer */
.course-wrapper {
  padding: 10px;
}

/*Responsive mobile*/
@media(max-width:767px) {
  .course-card {
    height: 70px; /*taille de la hauteur*/
    padding: 10px;
  }

  .course-title {
    font-size: 0.8rem;
    line-height: 12px;
    margin-bottom: 8px;
  }

  .course-count {
    font-size: 0.7rem;
    line-height: 14px;
  }
}

@media(max-width:568px) {
  .course-title {
    font-size: 0.7rem;
  }
  .course-count{
    font-size: 0.6rem;
  }
}

/*Responsive tablette*/
@media(min-width:768px) and (max-width:1024px) {
  .course-card {
    height: 70px;
    padding: 10px;
  }

  .course-title {
    font-size: 0.92rem;
    line-height: 16px;
    margin-bottom: 8px;
  }

  .course-count {
    font-size: 0.8rem;
    line-height: 14px;
  }
}