/* ==========================================================================
   Section Vidéos — 2 colonnes : corporate + clip musical
   ========================================================================== */

.section-videos {
  position: relative;
  padding: 8vh 6vw 4vh;
  background-color: transparent;
  z-index: 40;
  overflow: hidden;
}

.section-videos::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    #043a4a 0%,
    #065364 50%,
    #043a4a 100%
  );
  opacity: 0.9;
  z-index: 0;
}

.section-videos__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4vw;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.section-videos__col {
  display: flex;
  flex-direction: column;
  gap: 1.2em;
}

.section-videos__col:nth-child(2) {
  margin-top: 60px;
}

.section-videos__title {
  font-family: var(--font-titre);
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  color: #fff;
  font-weight: 400;
  margin: 0;
  text-align: center;
}

.section-videos__player {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  overflow: hidden;
  background: #0a1a25;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}

/* Poster — thumbnail + play */
.section-videos__player--poster {
  cursor: pointer;
}

.section-videos__preview {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.section-videos__play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  transition: transform 0.3s ease, opacity 0.3s ease;
  opacity: 0.7;
  z-index: 2;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.5));
}

.section-videos__player--poster:hover .section-videos__play {
  transform: translate(-50%, -50%) scale(1.15);
  opacity: 1;
}

/* ──────────────────────────────────────────────
   Overlay Vidéo 2emotion
   ────────────────────────────────────────────── */

.overlay-video {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.overlay-video.is-open {
  opacity: 1;
  pointer-events: auto;
}

.overlay-video__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
}

.overlay-video__wrap {
  position: relative;
  z-index: 1;
  transform: scale(0.9);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Paysage (16:9) — par défaut */
.overlay-video__wrap--landscape {
  width: 80vw;
  max-width: 1100px;
  aspect-ratio: 16 / 9;
}

/* Portrait (9:16) */
.overlay-video__wrap--portrait {
  height: 80vh;
  max-height: 800px;
  aspect-ratio: 9 / 16;
}

.overlay-video.is-open .overlay-video__wrap {
  transform: scale(1);
}

.overlay-video__player {
  width: 100%;
  height: 100%;
  border-radius: 8px;
  overflow: hidden;
}

.overlay-video__player iframe,
.overlay-video__player video {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.overlay-video__close {
  position: absolute;
  top: -2.5rem;
  right: 0;
  background: none;
  border: none;
  font-size: 2rem;
  line-height: 1;
  color: #fff;
  cursor: pointer;
  transition: color 0.3s, transform 0.3s;
}

.overlay-video__close:hover {
  color: #E6105D;
  transform: rotate(90deg);
}

/* ──────────────────────────────────────────────
   Décos SVG
   ────────────────────────────────────────────── */

.section-videos__deco {
  position: absolute;
  pointer-events: none;
  z-index: 1;
  will-change: transform;
}

.section-videos__deco--rond {
  top: -8%;
  left: -5%;
  width: 180px;
  opacity: 0.4;
}

.section-videos__deco--gouttes {
  bottom: -5%;
  right: 8%;
  width: 120px;
  opacity: 0.35;
}

.section-videos__deco--brush {
  top: 50%;
  right: -6%;
  width: 160px;
  opacity: 0.25;
  transform: translateY(-50%) rotate(15deg);
}

.section-videos__deco--immeuble {
  bottom: 5%;
  left: 12%;
  width: 80px;
  opacity: 0.2;
}

.section-videos__deco--visage {
  top: 10%;
  right: 3%;
  width: 100px;
  opacity: 0.15;
  filter: brightness(0) invert(1);
}

/* 10 ans — centré en bas, le footer le recouvre partiellement */
.section-videos__10ans {
  position: relative;
  display: block;
  margin: 4vh auto -4vw;
  width: clamp(300px, 35vw, 500px);
  height: auto;
  z-index: 2;
}

/* Responsive */
@media (max-width: 768px) {
  .section-videos {
    padding: 5vh 5vw 6vh;
  }

  .section-videos__grid {
    grid-template-columns: 1fr;
    gap: 4vh;
  }

  .section-videos__deco {
    display: none;
  }
}
