/* Section des catégories */
.title-abc123 {
  text-align: center;
  padding: 20px 0;
}

.categories-container-def456 {
  display: flex;
  justify-content: center;
  gap: 30px;
}

/* Catégorie individuelle avec image de fond */
.category-item-ghi789 {
  background-color: #ffffff;
  padding: 20px;
  border-radius: 15px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  text-align: center;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  width: 300px;
  height: 200px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  background-image: url("images/category-background.jpg");
  background-size: cover;
  background-position: center;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.category-item-ghi789::after {
  content: "Cliquez pour voir les projets";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 8px 0;
  font-size: 0.9rem;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.category-item-ghi789:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.category-item-ghi789:hover::after {
  transform: translateY(0);
}

.category-item-ghi789 img {
  width: 60px;
  height: 60px;
  margin-bottom: 10px;
}

.category-item-ghi789 h3 {
  font-size: 1.2rem;
  color: #0056b3;
  z-index: 1;
}

/* Grille des projets */
.projects-grid-mno345 {
  padding: 30px 10%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  justify-items: center;
  opacity: 0;
  transition: opacity 0.5s ease, transform 0.5s ease;
  transform-origin: top center;
}

.projects-grid-mno345.hidden {
  opacity: 0;
  transform: scaleY(0.9);
}

.projects-grid-mno345.visible {
  opacity: 1;
  transform: scaleY(1);
}

/* Projet individuel */
.project-item-abc123 {
  background-color: #ffffff;
  padding: 15px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  text-align: center;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  cursor: pointer;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project-item-abc123 h3 {
  font-size: 1.2rem;
  color: #0056b3;
  margin-bottom: 10px;
}

.project-item-abc123:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.project-item-abc123 p {
  color: #4a4a4a;
}

/* Amélioration des popups des projets */
.project-popup-pqr678 {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  backdrop-filter: blur(8px);
}

.popup-content-stu901 {
  background-color: var(--card-bg);
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
  text-align: center;
  position: relative;
  max-width: 800px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  border: 1px solid var(--border-color);
  animation: fadeInScale 0.4s ease forwards;
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.popup-content-stu901 img {
  max-width: 300px;
  height: auto;
  border-radius: 10px;
  margin: 0 auto 20px;
  display: block;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.popup-content-stu901 h3 {
  font-size: 1.8rem;
  color: var(--heading-color);
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.popup-content-stu901 h3:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--sidebar-active);
  border-radius: 2px;
}

.popup-content-stu901 p {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-color);
  text-align: left;
  margin-bottom: 20px;
}

/* Styles pour le mode sombre */
.dark .popup-content-stu901 {
  background-color: var(--card-bg);
  border-color: var(--sidebar-active);
}

.dark .popup-content-stu901 h3 {
  color: var(--heading-color);
}

.dark .popup-content-stu901 p {
  color: var(--text-color);
}

/* Supprimer le pseudo-élément qui ajoute une croix */
.popup-content-stu901:before {
  content: none; /* Désactiver le pseudo-élément */
}

/* Améliorer le style du bouton de fermeture existant */
.popup-content-stu901 .close-btn {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 28px;
  color: var(--text-color);
  cursor: pointer;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border: none;
  z-index: 10;
}

.popup-content-stu901 .close-btn:hover {
  background-color: rgba(0, 0, 0, 0.2);
  color: var(--sidebar-active);
  transform: rotate(90deg);
}

/* Classe cachée */
.hidden {
  display: none;
}

/* Style pour l'image au centre du bloc */
.project-item-abc123 .project-image-xyz456 {
  width: 150px;
  height: 150px;
  margin-bottom: 20px;
  background: url("/mnt/data/image.png") center / contain no-repeat;
  display: block;
  margin: 0 auto;
}

/* Affichage sur hover */
.project-item-abc123:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* Ajouter des styles pour le texte d'instruction */
.project-instruction {
  text-align: center;
  margin-bottom: 30px;
  color: var(--text-color);
  font-size: 1.1rem;
  font-style: italic;
}

/* Améliorer les styles des projets pour indiquer qu'ils sont cliquables */
.project-item-abc123::after {
  content: "Cliquer pour détails";
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: var(--sidebar-active);
  color: white;
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 0.8rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.project-item-abc123:hover::after {
  opacity: 1;
}

