/* =========================================
   PORTFOLIO / MÉDIAS (portfolio.html)
   ========================================= */

/* --- Grille photos --- */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 40px;
}

.portfolio-item {
  position: relative; overflow: hidden;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0,0,0,0.2);
  transition: transform 0.2s; cursor: pointer;
}

.portfolio-item:hover {
  transform: scale(1.02);
  border-color: rgba(255, 255, 255, 0.3);
}

.portfolio-item img {
  width: 100%; height: 300px;
  object-fit: cover; display: block;
}

.portfolio-caption {
  padding: 10px; text-align: center;
  font-size: 0.9rem; color: rgba(255,255,255,0.8);
  background: rgba(0,0,0,0.6);
}

/* Bouton téléchargement */
.download-btn {
  position: absolute;
  top: 10px; right: 10px;
  background: rgba(0, 0, 0, 0.55);
  color: white;
  border-radius: 50%;
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease, background 0.2s ease;
  z-index: 10;
}

.download-btn svg { width: 18px; height: 18px; }
.download-btn:hover { background: rgba(0, 0, 0, 0.8); }
.portfolio-item:hover .download-btn { opacity: 1; }

/* Masquer le bouton download dans la lightbox */
.lightbox .download-btn { display: none; }

/* --- Lightbox --- */
.lightbox {
  display: none; position: fixed;
  z-index: 9999; padding-top: 50px;
  left: 0; top: 0; width: 100%; height: 100%;
  background-color: rgba(0,0,0,0.9);
  backdrop-filter: blur(5px);
  overflow: auto;
}

.lightbox-content {
  margin: auto; display: block;
  width: 80%; max-width: 1000px; max-height: 80vh;
  object-fit: contain; border-radius: 4px;
  animation: zoomIn 0.3s;
}

@keyframes zoomIn {
  from { transform: scale(0.8); opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}

#caption-text {
  margin: auto; display: block;
  width: 80%; text-align: center;
  color: #ccc; padding: 10px 0; font-size: 1.2rem;
}

.close-btn, .nav-btn {
  position: absolute; color: #f1f1f1;
  font-weight: bold; cursor: pointer;
  user-select: none; z-index: 10001;
}

.close-btn { top: 20px; right: 35px; font-size: 40px; }
.nav-btn { top: 50%; font-size: 30px; padding: 16px; background: rgba(0,0,0,0.5); margin-top: -50px; }
.next-btn { right: 20px; }
.prev-btn { left: 20px; }

/* --- Vidéos --- */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 24px;
}

.video-placeholder {
  position: relative; height: 250px;
  border-radius: 12px; overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #000; cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}

.video-placeholder:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.4);
}

.video-placeholder img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  opacity: 0.8; transition: opacity 0.3s;
}

.video-placeholder:hover img { opacity: 0.6; }

.play-icon {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-size: 48px; color: rgba(255, 255, 255, 0.9);
  pointer-events: none;
}

.video-overlay {
  position: absolute; bottom: 0; left: 0; width: 100%;
  padding: 15px;
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
  color: #fff; text-align: center;
}

/* --- Presse --- */
.press-list {
  display: flex; flex-direction: column;
  gap: 12px; max-width: 860px; margin: 0 auto;
}

.press-item {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  column-gap: 20px;
  align-items: center;
  padding: 18px 24px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  text-decoration: none; color: inherit;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.press-item:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateX(4px);
}

.press-meta {
  grid-column: 1; grid-row: 1;
  display: flex; align-items: center;
  gap: 14px; margin-bottom: 6px;
}

.press-source {
  font-size: 0.75rem; text-transform: uppercase;
  letter-spacing: 1.5px; color: rgba(255, 255, 255, 0.5); font-weight: 600;
}

.press-date {
  font-size: 0.75rem; color: rgba(255, 255, 255, 0.35);
  padding-left: 14px; border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.press-title {
  grid-column: 1; grid-row: 2;
  font-size: 1rem; color: rgba(255, 255, 255, 0.9);
  font-style: italic; line-height: 1.4;
}

.press-arrow {
  grid-column: 2; grid-row: 1 / 3;
  display: flex; align-items: center;
  color: rgba(255, 255, 255, 0.3);
  transition: color 0.2s ease, transform 0.2s ease;
}

.press-arrow svg { width: 20px; height: 20px; }

.press-item:hover .press-arrow {
  color: rgba(255, 255, 255, 0.9);
  transform: translateX(4px);
}

/* Responsive */
@media (max-width: 768px) {
  .portfolio-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .video-grid { grid-template-columns: 1fr; }
  .video-placeholder { height: 200px; }
  .lightbox-content { width: 100%; }
  .nav-btn { padding: 10px; font-size: 20px; }
  .press-item { padding: 14px 16px; }
  .press-title { font-size: 0.9rem; }
}
