/* ====== BENTO PROJETS ====== */
.projets-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  text-align: center;
}

.projets-list {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.projet {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: transform 0.3s ease;
  width: 120px;
  text-align: center;
}

.projet img {
  width: 70px;
  height: 70px;
  margin-bottom: 8px;
  object-fit: contain;
}

.projet span {
  font-size: 0.9rem;
  font-weight: 500;
}

.projet:hover {
  transform: scale(1.1);
}

/* ====== RESPONSIVE ====== */
@media (max-width: 768px) {
  .projet {
    width: 100px;
  }

  .projet img {
    width: 60px;
    height: 60px;
  }
}

@media (max-width: 480px) {
  .projets-list {
    flex-direction: column;
    gap: 15px;
  }

  .projet {
    width: 100%;
  }
}

/* ====== POPUP ====== */
.popup {
  display: none; /* caché par défaut */
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.6);
  justify-content: center;
  align-items: center;
}

.popup-content {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  width: 90%;
  max-width: 500px;
  position: relative;
  text-align: center;
  animation: scaleIn 0.3s ease;
}

.popup-content h2 {
  margin-bottom: 10px;
}

.popup-content p {
  margin-bottom: 15px;
  white-space: pre-line;
}

.popup-img {
  width: 100%;
  max-height: 250px;
  object-fit: contain;
  border-radius: 8px;
}

.popup-close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Animation */
@keyframes scaleIn {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}
