/* ==============================================================================
   AksantiNet — Video Lightbox Modal (Piste 1)
   ============================================================================== */

.video-modal {
  border: none;
  padding: 0;
  background: transparent;
  max-width: 920px;
  width: min(94vw, 920px);
  margin: auto;
  border-radius: 20px;
  overflow: visible;
  box-sizing: border-box;
}

.video-modal::backdrop {
  background: rgba(6, 22, 18, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.video-modal-box {
  background: #0a1b17;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 25px 60px -10px rgba(0, 0, 0, 0.8), 0 0 60px rgba(52, 211, 153, 0.18);
  display: flex;
  flex-direction: column;
  animation: videoModalZoom .25s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes videoModalZoom {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.video-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.video-modal-title {
  color: #f2f7f6;
  font-family: var(--h, 'Bricolage Grotesque', sans-serif);
  font-weight: 700;
  font-size: 15px;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: -0.01em;
}

.video-modal-title i {
  color: #34d399;
}

.video-modal-close {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  line-height: 1;
  transition: background .2s, transform .15s, border-color .2s;
}

.video-modal-close:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.3);
  transform: scale(1.06);
}

.video-modal-close:focus-visible {
  outline: 2px solid #34d399;
  outline-offset: 2px;
}

.video-modal-body {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-modal-body iframe,
.video-modal-body video {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  object-fit: contain;
  background: #000;
}

/* Bouton vidéo spécial Hero avec animation pulse */
.akh-btn-video,
.ash-btn-video {
  position: relative;
  border-color: rgba(52, 211, 153, 0.6) !important;
  animation: videoBtnPulse 2.2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, background-color .2s ease;
}

.akh-btn-video i,
.ash-btn-video i {
  color: #34d399;
  display: inline-block;
  animation: playIconPulse 1.8s ease-in-out infinite;
  transition: transform .2s ease, color .2s ease;
}

.akh-btn-video:hover,
.ash-btn-video:hover {
  border-color: #34d399 !important;
  box-shadow: 0 0 22px rgba(52, 211, 153, 0.5) !important;
  transform: translateY(-1px);
}

.akh-btn-video:hover i,
.ash-btn-video:hover i {
  transform: scale(1.25);
  animation-play-state: paused;
}

@keyframes videoBtnPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.65);
  }
  65% {
    box-shadow: 0 0 0 12px rgba(52, 211, 153, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(52, 211, 153, 0);
  }
}

@keyframes playIconPulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.22);
  }
}

@media (prefers-reduced-motion: reduce) {
  .akh-btn-video,
  .ash-btn-video,
  .akh-btn-video i,
  .ash-btn-video i {
    animation: none !important;
  }
}
