/* ============================================
   VIDEOS PAGE - Styles
   ============================================ */

/* ---- Page Header (reuse from galerie but with film vibe) ---- */
.page-header {
  position: relative;
  height: 45vh;
  min-height: 340px;
  display: flex;
  align-items: flex-end;
  padding: 0 4rem 4rem;
  overflow: hidden;
}

.page-header-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #0a0a10 0%, #1a1520 40%, #0d0d0d 100%);
}

.page-header-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 60% 40%, rgba(201, 169, 110, 0.07) 0%, transparent 60%),
    radial-gradient(ellipse at 20% 70%, rgba(201, 169, 110, 0.04) 0%, transparent 50%);
}

/* Film strip decoration */
.page-header-bg::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 16px;
  /* Les traits sont maintenant deux fois plus longs */
  background: repeating-linear-gradient(90deg, transparent 0px, transparent 16px, rgba(201, 169, 110, 0.25) 16px, rgba(201, 169, 110, 0.25) 20px);
}

.page-header-content {
  position: relative;
  z-index: 1;
}

.page-subtitle {
  font-size: 0.85rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.1em;
  margin-top: 0.8rem;
}

/* ---- Featured Video Section ---- */
.featured-video-section {
  background: var(--ivory);
  padding: 5rem 4rem;
}

.featured-video-inner {
  max-width: 1300px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 5rem;
  align-items: center;
}

.fv-desc {
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--warm-gray);
  line-height: 1.9;
  margin: 1rem 0 1.5rem;
}

.fv-meta {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-top: 1.5rem;
  padding: 1.2rem;
  background: var(--ivory-dark);
  border-left: 2px solid var(--gold);
}

.fv-meta span {
  font-size: 0.75rem;
  font-weight: 300;
  color: var(--warm-gray);
}

.fv-meta strong {
  font-weight: 500;
  color: var(--charcoal);
}

/* ---- Video Player ---- */
.fv-player {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.25);
  aspect-ratio: 16/9;
}

.video-player {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  cursor: none;
}

/* ---- Custom Video Controls ---- */
.custom-controls {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transition: opacity 0.3s;
}

.custom-controls.hide {
  opacity: 0;
  pointer-events: none;
}

.ctrl-gradient {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 100%);
  pointer-events: none;
}

.ctrl-center {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.ctrl-play-main {
  width: 64px;
  height: 64px;
  border: 2px solid rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: none;
  pointer-events: all;
  transition: all 0.2s;
  backdrop-filter: blur(4px);
}

.ctrl-play-main:hover {
  border-color: var(--gold);
  background: rgba(201, 169, 110, 0.2);
  transform: scale(1.05);
}

.ctrl-play-main svg {
  width: 22px;
  height: 22px;
  color: var(--white);
  margin-left: 3px;
}

.ctrl-play-main .icon-pause {
  margin-left: 0;
}

.ctrl-bottom {
  position: relative;
  z-index: 1;
  padding: 0 0.8rem 0.8rem;
}

.ctrl-progress-wrap {
  margin-bottom: 0.5rem;
}

.ctrl-progress-bg {
  position: relative;
  height: 3px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  cursor: none;
}

.ctrl-progress-fill {
  height: 100%;
  background: var(--gold);
  border-radius: 12px;
  width: 0%;
  pointer-events: none;
  transition: width 0.1s linear;
}

.ctrl-range {
  position: absolute;
  inset: -6px 0;
  width: 100%;
  opacity: 0;
  cursor: none;
  height: 16px;
}

.ctrl-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ctrl-left,
.ctrl-right {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.ctrl-btn {
  background: transparent;
  border: none;
  cursor: none;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.8);
  transition: color 0.2s;
}

.ctrl-btn:hover {
  color: var(--gold-light);
}

.ctrl-btn svg {
  width: 18px;
  height: 18px;
}

.ctrl-volume-wrap {
  display: flex;
  align-items: center;
  gap: 0.2rem;
}

.ctrl-vol-range {
  width: 60px;
  height: 3px;
  appearance: none;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  cursor: none;
  outline: none;
}

.ctrl-vol-range::-webkit-slider-thumb {
  appearance: none;
  width: 10px;
  height: 10px;
  background: var(--gold);
  border-radius: 50%;
}

.ctrl-time {
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.05em;
  font-family: 'Raleway', sans-serif;
  font-weight: 300;
  white-space: nowrap;
  margin-left: 0.3rem;
}

/* ---- Thumbnail Overlay ---- */
.video-thumb-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.3);
  cursor: none;
  transition: opacity 0.3s;
}

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

.play-icon-big {
  width: 72px;
  height: 72px;
  border: 2px solid rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  transition: transform 0.2s, border-color 0.2s;
}

.video-thumb-overlay:hover .play-icon-big {
  transform: scale(1.08);
  border-color: var(--gold);
}

.play-icon-big svg {
  width: 28px;
  height: 28px;
  margin-left: 4px;
}

/* ---- Videos Grid Section ---- */
.videos-section {
  background: var(--charcoal);
  padding: 5rem 4rem;
}

.videos-header {
  text-align: center;
  margin-bottom: 4rem;
}

.videos-header .section-label {
  color: var(--gold);
}

.videos-header .section-title {
  color: var(--white);
}

.videos-grid {
  max-width: 1300px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}

/* ---- Video Card ---- */
.video-card {
  background: var(--charcoal-mid);
  overflow: hidden;
  cursor: none;
  transition: transform var(--transition-fast);
}

.video-card:hover {
  transform: translateY(-2px);
}

.vc-thumb {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  cursor: none;
}

.vc-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
  /* Always visible */
  position: relative;
  z-index: 1;
  /* Above placeholder */
  transition: transform 0.6s;
}


.video-card:hover .vc-thumb img {
  transform: scale(1.04);
}

.vc-thumb-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 0;
  /* Below image */
}

.vc-thumb-placeholder svg {
  width: 80px;
  height: auto;
  opacity: 0.6;
}

.vc-play-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  background: rgba(0, 0, 0, 0);
  transition: background var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-card:hover .vc-play-overlay {
  background: rgba(0, 0, 0, 0.4);
}

.vc-play-btn {
  width: 64px;
  height: 64px;
  border: 2px solid rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.3s, transform 0.3s, border-color 0.3s, background 0.3s;
}

.video-card:hover .vc-play-btn {
  opacity: 1;
  transform: scale(1);
  border-color: var(--gold);
  background: rgba(201, 169, 110, 0.2);
}

.video-card:hover .vc-play-btn:hover {
  transform: scale(1.05);
}

.vc-play-btn svg {
  width: 22px;
  height: 22px;
  color: var(--white);
  margin-left: 3px;
}

.vc-duration {
  position: absolute;
  bottom: 0.6rem;
  right: 0.6rem;
  z-index: 2;
  background: rgba(0, 0, 0, 0.7);
  color: var(--gold);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 0.2rem 0.6rem;
  letter-spacing: 0.05em;
  font-family: 'Raleway', sans-serif;
  border-radius: 3px;
}

.vc-info {
  padding: 1.5rem;
}

.vc-meta-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.6rem;
}

.vc-cat {
  font-size: 0.55rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 400;
}

.vc-date {
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.3);
  font-weight: 300;
}

.vc-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--white);
  margin-bottom: 0.8rem;
}

.vc-title em {
  font-style: italic;
  color: var(--gold-light);
}

.vc-desc {
  font-size: 0.78rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.45);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.vc-location {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.35);
  font-weight: 300;
}

.vc-location svg {
  width: 12px;
  height: 12px;
  stroke: var(--gold);
  flex-shrink: 0;
}

/* ---- Video Modal ---- */
.video-modal {
  position: fixed;
  inset: 0;
  z-index: 6000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.video-modal.open {
  opacity: 1;
  pointer-events: all;
}

.vm-bg {
  position: absolute;
  inset: 0;
  background: rgba(5, 4, 3, 0.97);
  backdrop-filter: blur(12px);
}

.vm-inner {
  position: relative;
  z-index: 1;
  width: min(90vw, 1000px);
}

.vm-close {
  position: absolute;
  top: -3rem;
  right: 0;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: none;
  transition: border-color 0.2s, transform 0.3s;
}

.vm-close:hover {
  border-color: var(--gold);
  transform: rotate(90deg);
}

.vm-close svg {
  width: 18px;
  height: 18px;
  stroke: var(--white);
}

.vm-player-wrap {
  position: relative;
  aspect-ratio: 16/9;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
}

.vm-video {
  width: 100%;
  height: 100%;
  display: block;
  cursor: none;
}

.vm-caption {
  padding: 1.2rem 0.5rem 0;
}

.vm-caption h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  font-weight: 300;
  color: var(--white);
}

.vm-caption p {
  font-size: 0.7rem;
  color: var(--gold);
  letter-spacing: 0.2em;
  margin-top: 0.2rem;
}

/* ---- CTA ---- */
.gallery-cta {
  background: var(--charcoal-mid);
  padding: 3.5rem 4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(201, 169, 110, 0.15);
}

.gallery-cta p {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  font-weight: 300;
  font-style: italic;
  color: var(--white);
}

/* ---- Responsive ---- */
@media (max-width: 1100px) {
  .videos-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .featured-video-section {
    padding: 4rem 2rem;
  }

  .featured-video-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .videos-section {
    padding: 4rem 2rem;
  }

  .page-header {
    padding: 0 2rem 3rem;
  }

  .gallery-cta {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }

  .vm-inner {
    width: 95vw;
  }

  .vm-close {
    top: -2.5rem;
  }
}

@media (max-width: 600px) {
  .videos-grid {
    grid-template-columns: 1fr;
  }

  .ctrl-vol-range {
    width: 40px;
  }
}