/* ================================
   PROJETS SIMPLES - IMAGE + TITRE
================================ */

.projects-grid-modern {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.project-card-modern {
  position: relative;
  background: rgba(21, 25, 50, 0.6);
  border: 1px solid rgba(0, 123, 255, 0.2);
  border-radius: 20px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.project-card-modern:hover {
  transform: translateY(-8px);
  border-color: rgba(0, 212, 255, 0.6);
  box-shadow: 0 15px 40px rgba(0, 123, 255, 0.4);
  background: rgba(21, 25, 50, 0.8);
}

/* Image */
.project-image-modern {
  position: relative;
  height: 200px;
  overflow: hidden;
  background: rgba(10, 14, 39, 0.8);
}

.project-image-modern img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.5s ease;
}

.project-card-modern:hover .project-image-modern img {
  transform: scale(1.05);
}

/* Titre simple */
.project-content-modern {
  padding: 1.5rem;
  text-align: center;
}

.project-content-modern h3 {
  font-size: 1.3rem;
  font-weight: 600;
  color: #ffffff;
  margin: 0;
}

/* Cacher tout le reste */
.project-overlay-modern,
.project-icons,
.project-icon,
.project-header-modern,
.project-category,
.project-content-modern p,
.project-tags-modern {
  display: none !important;
}
/* ================================
   MODAL POPUP PROJET
================================ */

.project-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.project-modal.active {
  opacity: 1;
  pointer-events: all;
}

.project-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
}

.project-modal-content {
  position: relative;
  width: 90%;
  max-width: 800px;
  max-height: 85vh;
  background: linear-gradient(135deg, rgba(21, 25, 50, 0.98) 0%, rgba(10, 14, 39, 0.98) 100%);
  border: 1px solid rgba(0, 212, 255, 0.3);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 50px rgba(0, 123, 255, 0.3);
  animation: modalSlideUp 0.4s ease;
}

@keyframes modalSlideUp {
  from {
    transform: translateY(30px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.project-modal-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: #ffffff;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
}

.project-modal-close:hover {
  background: rgba(255, 0, 0, 0.2);
  border-color: rgba(255, 0, 0, 0.5);
  transform: rotate(90deg);
}

.project-modal-close svg {
  width: 24px;
  height: 24px;
}

.project-modal-body {
  overflow-y: auto;
  max-height: 85vh;
  padding: 2.5rem;
}

/* Scrollbar */
.project-modal-body::-webkit-scrollbar {
  width: 8px;
}

.project-modal-body::-webkit-scrollbar-track {
  background: rgba(10, 14, 39, 0.5);
}

.project-modal-body::-webkit-scrollbar-thumb {
  background: rgba(0, 123, 255, 0.5);
  border-radius: 4px;
}

/* Header modal */
.modal-project-header {
  display: flex;
  gap: 2rem;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-project-image {
  flex-shrink: 0;
  width: 280px;
  height: 200px;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid rgba(0, 123, 255, 0.3);
}

.modal-project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-project-title-area {
  flex: 1;
}

.modal-project-number {
  font-size: 0.85rem;
  color: rgba(0, 212, 255, 0.8);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 0.5rem;
}

.modal-project-title {
  font-size: 2.2rem;
  font-weight: 700;
  margin: 0 0 0.8rem 0;
  color: #ffffff;
}

.modal-project-category {
  font-size: 0.95rem;
  color: #a0aec0;
  margin-bottom: 1rem;
}

.modal-project-links {
  display: flex;
  gap: 1rem;
}

.modal-project-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.3rem;
  background: rgba(0, 123, 255, 0.2);
  border: 1px solid rgba(0, 123, 255, 0.4);
  border-radius: 20px;
  color: #00d4ff;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.modal-project-link.disabled {
  background: rgba(100, 100, 100, 0.2);
  border-color: rgba(100, 100, 100, 0.3);
  color: #666;
  cursor: not-allowed;
  pointer-events: none;
  opacity: 0.5;
}

.modal-project-link:hover {
  background: rgba(0, 123, 255, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(0, 123, 255, 0.4);
}

.modal-project-link svg {
  width: 18px;
  height: 18px;
}

/* Sections du modal */
.modal-section {
  margin-bottom: 2rem;
}

.modal-section-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.modal-section-title svg {
  width: 20px;
  height: 20px;
  color: #00d4ff;
}

.modal-section-content {
  color: #a0aec0;
  line-height: 1.7;
  font-size: 0.95rem;
}

/* Grid technologies */
.modal-tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.modal-tech-item {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.9rem;
  background: rgba(0, 123, 255, 0.1);
  border: 1px solid rgba(0, 123, 255, 0.2);
  border-radius: 12px;
  transition: all 0.3s ease;
}

.modal-tech-item:hover {
  background: rgba(0, 123, 255, 0.2);
  border-color: rgba(0, 212, 255, 0.5);
  transform: translateY(-2px);
}

.modal-tech-icon {
  font-size: 1.5rem;
}

.modal-tech-name {
  font-size: 0.85rem;
  font-weight: 500;
  color: #ffffff;
}

/* Liste features */
.modal-features-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.modal-features-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  color: #a0aec0;
  line-height: 1.5;
  font-size: 0.9rem;
}

.modal-features-list li::before {
  content: '✓';
  color: #10b981;
  font-weight: bold;
  font-size: 1.1rem;
  flex-shrink: 0;
}

/* Responsive */
@media (max-width: 768px) {
  .projects-grid-modern {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .project-image-modern {
    height: 160px;
  }

  .project-content-modern h3 {
    font-size: 1.1rem;
  }

  .project-modal-content {
    width: 95%;
    max-height: 90vh;
  }

  .project-modal-body {
    padding: 2rem 1.5rem;
  }

  .modal-project-header {
    flex-direction: column;
  }

  .modal-project-image {
    width: 100%;
    height: 180px;
  }

  .modal-project-title {
    font-size: 1.8rem;
  }

  .modal-tech-grid {
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  }
}
