/* ========================================= */
/* PAGE PROJET DÉTAILLÉ   */
/* ========================================= */

.page-project-detail {
  padding-top: 80px !important;
}

.project-detail-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px var(--side);
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.project-detail-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px var(--side);
  display: flex;
  flex-direction: column;
  gap: 20px; 
}

/* EN-TÊTE PROJET */
.project-detail-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;       
  width: 100%;
  margin-bottom: 0 !important; 
}

.project-detail-header h1,
.project-detail-header .project-title {
  margin: 0;
  text-align: left;
}

.project-thumbnails {
  display: flex;
  justify-content: center;
  align-self: center;
  gap: 8px;        
  flex-wrap: wrap;
  width: 100%;
}

/* SÉCURITÉ POUR MOBILE */
@media (max-width: 900px) {
  .project-detail-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }
  .project-thumbnails {
    position: static;
    transform: none; 
  }
}

.thumb {
  width: 50px;
  height: 50px;
  object-fit: cover;
  cursor: pointer;
  opacity: 1; 
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.thumb:not(.active):hover {
  opacity: 0.6;
}

.thumb.active {
  opacity: 0.3; 
  cursor: default;
}

.project-main-display {
  width: 100%;
  display: flex;
  justify-content: center;
}

.project-main-display img,
.project-main-display video {
  width: 100%;
  max-height: 75vh;
  object-fit: contain;
}

/* Adaptation mobile */
@media (max-width: 768px) {
  .project-detail-header {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* BOUTON FERMER PROJET (CROIX) */
.close-project {
  position: fixed;
  top: 75px;
  right: var(--side, 30px);
  font-size: 32px;
  font-weight: 300;
  color: #000;
  text-decoration: none !important;
  z-index: 101;
  line-height: 1;
  transition: opacity 0.2s ease;
}

.close-project:hover {
  opacity: 0.5;
}

.close-project::after {
  display: none !important;
}

/* ANIMATION DE FONDU À L'OUVERTURE (FADE-IN) */
.page-project-detail {
  animation: fadeInPage 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

/* PROTECTION VISUELLE DES MÉDIAS */
img, video {
  -webkit-user-drag: none;
  -khtml-user-drag: none;
  -moz-user-drag: none;
  -o-user-drag: none;
  
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}