/* ============================================================
   STYLE 1 : SIGNATURE GALLERY (Cadre Blanc / Galerie)
   ============================================================ */
.video-signature-card {
  position: relative;
  height: 400px;
  border-radius: 50px;
  overflow: hidden;
  border: 12px solid white;
  box-shadow: 0 25px 50px rgba(0,0,0,0.1);
  transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
  background: #000;
  cursor: pointer;
  display: block;
  text-decoration: none;
}

.video-signature-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
  transition: 1.2s ease;
}

.video-signature-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 60%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.play-btn-signature {
  width: 70px;
  height: 70px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border: 2px solid white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 20px;
  transition: 0.4s;
}

.video-signature-card h3 {
  color: white;
  font-size: 18px;
  font-weight: 700;
  position: absolute;
  bottom: 35px;
  left: 35px;
  right: 35px;
  text-align: center;
  margin: 0;
}

.video-signature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 40px 80px rgba(59, 70, 255, 0.15);
}

.video-signature-card:hover img {
  transform: scale(1.1);
  opacity: 1;
}

.video-signature-card:hover .play-btn-signature {
  background: #3B46FF;
  border-color: #3B46FF;
}

/* ============================================================
   STYLE 2 : CINEMATIC THEATER (Luxe & Clair)
   ============================================================ */
.video-card-v2 {
  position: relative;
  height: 400px;
  border-radius: 40px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 15px 35px rgba(0,0,0,0.1);
  transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  cursor: pointer;
  display: block;
  text-decoration: none;
}

.video-card-v2 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.8;
  transition: all 0.8s ease;
}

.play-btn-glass {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 24px;
  z-index: 5;
  transition: all 0.4s ease;
}

.video-duration {
  position: absolute;
  top: 30px;
  right: 30px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(5px);
  color: white;
  padding: 4px 12px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
  z-index: 4;
}

.video-info-v2 {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 40px 30px;
  background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 100%);
  color: white;
  z-index: 4;
}

.video-cat-v2 {
  color: #27ae60;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.video-info-v2 h3 {
    margin: 10px 0 0 0 !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    color: white;
    line-height: 1.2;
}

.line-growth {
  width: 40px;
  height: 3px;
  background: #27ae60;
  margin-top: 15px;
  transition: width 0.5s ease;
}

.video-card-v2:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 30px 60px rgba(59, 70, 255, 0.2);
}

.video-card-v2:hover img {
  opacity: 1;
  transform: scale(1.1);
}

.video-card-v2:hover .play-btn-glass {
  background: #3B46FF;
  border-color: #3B46FF;
  transform: translate(-50%, -50%) scale(1.1);
}

.video-card-v2:hover .line-growth {
  width: 100%;
}

/* ============================================================
   STYLE 3 : MODERN MINIMALIST (Clean Grid)
   ============================================================ */
.video-minimal-card {
  background: white;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.03);
  border: 1px solid rgba(0,0,0,0.05);
  transition: all 0.4s ease;
  height: 100%;
  display: block;
  text-decoration: none;
  cursor: pointer;
}

.minimal-thumb {
  height: 230px;
  position: relative;
  overflow: hidden;
  background: #000;
}

.minimal-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 0.6s ease;
}

.play-btn-mini {
  position: absolute;
  bottom: 20px;
  right: 20px;
  width: 45px;
  height: 45px;
  background: #3B46FF;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 20px rgba(59, 70, 255, 0.3);
  transition: 0.3s;
}

.minimal-content {
  padding: 25px;
}

.minimal-content h3 {
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.4;
  margin: 0;
}

.video-minimal-card:hover {
  transform: translateY(-10px);
  border-color: #3B46FF;
}

.video-minimal-card:hover .minimal-thumb img {
  transform: scale(1.1);
  opacity: 0.8;
}

.video-minimal-card:hover .play-btn-mini {
  transform: scale(1.2);
  background: #27ae60;
}

/* ============================================================
   MODAL VIDEO POPUP
   ============================================================ */
/**
 * Magnific Popup - Style amélioré pour vidéos
 */

/* Overlay Background */
.mfp-bg {
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(10px);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mfp-ready .mfp-bg {
  opacity: 1;
}

.mfp-removing .mfp-bg {
  opacity: 0;
}

/* Container */
.mfp-wrap {
  z-index: 10000;
}

.mfp-container {
  padding: 20px;
}

/* Content Wrapper */
.mfp-content {
  max-width: 1200px;
  margin: 0 auto;
}

.mfp-iframe-holder {
  padding: 0;
}

.mfp-iframe-holder .mfp-content {
  max-width: 1000px;
  line-height: 0;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.mfp-iframe-scaler {
  width: 100%;
  height: 0;
  overflow: hidden;
  padding-top: 56.25%; /* 16:9 ratio */
  position: relative;
  border-radius: 20px;
  background: #000;
}

.mfp-iframe-scaler iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 20px;
}

/* Close Button */
.mfp-close {
  width: 50px;
  height: 50px;
  line-height: 50px;
  position: fixed;
  right: 20px;
  top: 20px;
  text-decoration: none;
  text-align: center;
  opacity: 1;
  padding: 0;
  color: #fff;
  font-style: normal;
  font-size: 28px;
  font-family: Arial, Baskerville, monospace;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  z-index: 10001;
}

.mfp-close:hover {
  background: rgba(231, 76, 60, 0.9);
  border-color: rgba(231, 76, 60, 1);
  transform: rotate(90deg) scale(1.1);
  box-shadow: 0 10px 25px rgba(231, 76, 60, 0.3);
}

.mfp-close:active {
  transform: rotate(90deg) scale(0.95);
}

/* Arrow Navigation (si plusieurs vidéos) */
.mfp-arrow {
  position: fixed;
  top: 50%;
  margin-top: -40px;
  width: 60px;
  height: 80px;
  opacity: 1;
  cursor: pointer;
  display: block;
  border: 0;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  transition: all 0.3s ease;
}

.mfp-arrow:hover {
  background: rgba(59, 70, 255, 0.9);
  transform: scale(1.1);
}

.mfp-arrow:active {
  transform: scale(0.95);
}

.mfp-arrow-left {
  left: 20px;
}

.mfp-arrow-right {
  right: 20px;
}

.mfp-arrow:before,
.mfp-arrow:after {
  content: '';
  display: block;
  width: 0;
  height: 0;
  position: absolute;
  left: 0;
  top: 0;
  margin-top: 28px;
  margin-left: 23px;
  border: medium inset transparent;
}

.mfp-arrow:before {
  border-top-width: 12px;
  border-bottom-width: 12px;
  opacity: 0.7;
}

.mfp-arrow-left:before {
  border-right: 17px solid #fff;
}

.mfp-arrow-right:before {
  border-left: 17px solid #fff;
}

/* Animation d'entrée */
.mfp-zoom-in .mfp-content {
  opacity: 0;
  transition: all 0.3s ease-in-out;
  transform: scale(0.8);
}

.mfp-zoom-in.mfp-ready .mfp-content {
  opacity: 1;
  transform: scale(1);
}

.mfp-zoom-in.mfp-removing .mfp-content {
  transform: scale(0.8);
  opacity: 0;
}

/* Compteur (si plusieurs vidéos) */
.mfp-counter {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  padding: 8px 20px;
  border-radius: 20px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  font-family: 'Plus Jakarta Sans', sans-serif;
}

/* Loading spinner */
.mfp-preloader {
  color: #fff;
  position: fixed;
  top: 50%;
  left: 50%;
  width: 50px;
  height: 50px;
  margin: -25px 0 0 -25px;
  text-align: center;
  z-index: 10002;
}

.mfp-preloader:after {
  content: '';
  display: block;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 4px solid rgba(255, 255, 255, 0.2);
  border-top-color: #3B46FF;
  animation: mfp-rotate 1s linear infinite;
}

@keyframes mfp-rotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Responsive */
@media screen and (max-width: 900px) {
  .mfp-iframe-scaler {
    padding-top: 75%; /* 4:3 ratio pour mobile */
  }
  
  .mfp-close {
    right: 10px;
    top: 10px;
    width: 45px;
    height: 45px;
    line-height: 45px;
    font-size: 24px;
  }
  
  .mfp-arrow {
    width: 50px;
    height: 70px;
  }
  
  .mfp-arrow-left {
    left: 10px;
  }
  
  .mfp-arrow-right {
    right: 10px;
  }
}

@media screen and (max-width: 600px) {
  .mfp-container {
    padding: 10px;
  }
  
  .mfp-iframe-holder .mfp-content {
    border-radius: 12px;
  }
  
  .mfp-iframe-scaler {
    border-radius: 12px;
    padding-top: 56.25%;
  }
  
  .mfp-counter {
    top: 10px;
    font-size: 12px;
    padding: 6px 16px;
  }
}

/* Titre de la vidéo (optionnel) */
.mfp-title {
  text-align: center;
  padding: 20px 0 0;
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

/* Effect de focus pour accessibilité */
.mfp-close:focus,
.mfp-arrow:focus {
  outline: 2px solid #3B46FF;
  outline-offset: 2px;
}