/* project.css — styles spécifiques projet R&D */

.project-hero-content {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
}

/* Logos partenaires en flex */
.partners-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.partners-logos img {
  height: 60px;
  object-fit: contain;
  opacity: 0.8;
  transition: all 0.2s ease;
}

.partners-logos img:hover {
  opacity: 1;
  transform: translateY(-2px);
}

/* Publications style scientifique */
.pub-item {
  border-left: 4px solid var(--accent);
}

.pub-title {
  font-weight: 700;
}

.pub-authors {
  font-style: italic;
}

.pub-desc {
  opacity: 0.8;
}

/* Responsive */
@media (max-width: 900px) {
  .project-hero-content {
    grid-template-columns: 1fr;
  }
}




/* SCROLL ARROW */
.scroll-down {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 2rem;
  color: var(--white);
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%,100% {transform: translate(-50%,0);} 
  50% {transform: translate(-50%,10px);} 
}

/* CONTENT */
  .project-info-section {
  padding: 7rem 3rem;
  background: var(--dark-bg);
}

.container-project-info {
  max-width: 1100px;
  margin: auto;
  padding: 80px 20px;
  color: var(--white);
}

.project-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px,1fr));
  gap: 20px;
  margin-bottom: 60px;
}

.info-card {
  background: var(--dark-bg2);
  padding: 20px;
  border-radius: var(--r);
  border: 1px solid var(--dark-border);
}

.info-card span {
  display: block;
  color: var(--dark-muted);
  font-size: 0.9rem;
  margin-bottom: 5px;
}

/* GALLERY LIGHT SECTION */
.gallery-expansion {
  display: flex;
  height: 80vh;
  background: var(--off-white);
  overflow: hidden;
}

/* PANELS */
.panel {
  flex: 1;
  position: relative;
  cursor: pointer;
  background-size: cover;
  background-position: center;
  transition: flex 0.6s cubic-bezier(.77,0,.18,1);
  display: flex;
  align-items: flex-end;
  padding: 30px;
}

/* OVERLAY */
.panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(21,30,45,.7), transparent);
  transition: 0.4s;
}

/* TITLE */
.panel h3 {
  position: relative;
  color: var(--white);
  font-size: 1.4rem;
  z-index: 2;
  opacity: 0.8;
  transform: translateY(20px);
  transition: 0.4s;
}

/* ACTIVE STATE */
.panel.active {
  flex: 5;
}

.panel.active h3 {
  opacity: 1;
  transform: translateY(0);
  font-size: 1.8rem;
}

/* HOVER subtil */
.panel:hover::before {
  background: linear-gradient(to top, rgba(21,30,45,.85), transparent);
}

/* MOBILE */
@media (max-width: 768px) {
  .gallery-expansion {
    flex-direction: column;
    height: auto;
  }

  .panel {
    height: 200px;
  }

  .panel.active {
    flex: none;
    height: 300px;
  }
}

/* LIGHTBOX */
.lightbox {
  position: fixed;
  top:0;left:0;
  width:100%;height:100%;
  background: rgba(0,0,0,.9);
  display:none;
  align-items:center;
  justify-content:center;
  z-index:999;
}

.lightbox img {
  max-width:90%;
  max-height:90%;
  border-radius: var(--r);
}




/* VIDEO */

.video-container {
  width: 100%;
  margin: 50px auto;
}

.video-player {
  position: relative;
  width: 80%;
  aspect-ratio: 16/9;
  background: black;
  border-radius: 16px;
  overflow: hidden;
   box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  margin: 50px auto;
}

/* Video */
video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Title */
.video-title {
  position: absolute;
  top: 15px;
  left: 20px;
  color: white;
  font-size: 20px;
  font-weight: 600;
  z-index: 3;
  opacity: 0.9;
}

/* Overlay */
.overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.3);
  backdrop-filter: blur(1px);
  transition: opacity 0.4s ease;
  z-index: 2;
}

.overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.big-play {
  font-size: 60px;
  color: white;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.big-play:hover {
  transform: scale(1.2);
}

/* Controls */
.controls {
  position: absolute;
  bottom: 0;
  width: 100%;
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.video-player:hover .controls {
  opacity: 1;
}

.controls button {
  background: none;
  border: none;
  color: white;
  font-size: 18px;
  cursor: pointer;
}

/* Progress bar */
#progress {
  flex: 1;
  appearance: none;
  height: 4px;
  background: rgba(255,255,255,0.3);
  border-radius: 2px;
  cursor: pointer;
}

#progress::-webkit-slider-thumb {
  appearance: none;
  width: 12px;
  height: 12px;
  background: white;
  border-radius: 50%;
}





/* NAV ULTRA ISOLÉE */
.video-layout {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0px 50px 0px 50px;
}

/* NAV BUTTON BASE */
.video-nav {
  width: 320px;              /* +50% plus gros */
  text-align: center;
  text-decoration: none;
  color: white;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.video-nav img {
  width: 100%;
  border-radius: 14px;
  display: block;
  margin-bottom: 10px;
  transition: transform 0.3s ease;
}

/* TEXTE CENTRÉ SOUS IMAGE */
.video-nav span {
  display: block;
  text-align: center;
  font-size: 16px;
  opacity: 0.9;
}

/* HOVER PREMIUM */
.video-nav:hover {
  transform: scale(1.05);
}

.video-nav:hover img {
  transform: scale(1.03);
}

/* PLAYER reste inchangé */

.overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

/* état caché du big play */
.overlay.is-playing {
  opacity: 0;
  pointer-events: none;
}

/* Responsive */
@media (max-width: 900px) {
  .video-layout {
    flex-direction: column;
    align-items: center;
    padding: 0px 0px 0px 0px;
  }

  /* On garde l’ordre logique */
  .video-nav--left {
    order: 2;
  }

  .video-container {
    order: 1;
  }

  .video-nav--right {
    order: 3;
  }

  /* Boutons plus larges sur mobile */
  .video-nav {
    width: 80%;
    max-width: 400px;
  }

  .video-player {
    width: 95%;
  }

}