/**
 * WP Pro Video Header - Styles CSS
 */

/* ============================================
   CONTENEUR PRINCIPAL
   ============================================ */
.wpvh-video-header {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  background-color: #1a1a2e;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

/* ============================================
   VIDÉO
   ============================================ */
.wpvh-video {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
  z-index: 1;
}

/* ============================================
   OVERLAY
   ============================================ */
.wpvh-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 2;
  pointer-events: none;
}

/* ============================================
   NAVIGATION EN HAUT
   ============================================ */
.wpvh-top-nav {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  padding: 1rem 2rem;
}

.wpvh-nav-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */
.wpvh-logo {
  flex-shrink: 0;
}

.wpvh-logo a {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.wpvh-logo img {
  max-height: 50px;
  width: auto;
}

.wpvh-site-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
  text-decoration: none;
}

.wpvh-site-title:hover {
  color: #e0e0e0;
}

/* Menu */
.wpvh-menu {
  flex: 1;
  display: flex;
  justify-content: center;
}

.wpvh-menu-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 2rem;
}

.wpvh-menu-list li {
  position: relative;
}

.wpvh-menu-list a {
  color: #ffffff;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.5rem 0;
  transition: color 0.3s ease;
}

.wpvh-menu-list a:hover,
.wpvh-menu-list .current-menu-item > a {
  color: #64b5f6;
}

/* Sous-menu */
.wpvh-menu-list .sub-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(26, 26, 46, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 8px;
  padding: 0.75rem 0;
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.wpvh-menu-list li:hover > .sub-menu {
  opacity: 1;
  visibility: visible;
}

.wpvh-menu-list .sub-menu li {
  display: block;
}

.wpvh-menu-list .sub-menu a {
  display: block;
  padding: 0.5rem 1.5rem;
  font-size: 0.9rem;
}

/* Bouton menu mobile */
.wpvh-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 24px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 20;
}

.wpvh-menu-toggle span {
  width: 100%;
  height: 3px;
  background: #ffffff;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* ============================================
   CONTENU CENTRAL
   ============================================ */
.wpvh-content {
  position: relative;
  z-index: 5;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
  padding: 2rem;
  text-align: center;
  color: #ffffff;
}

.wpvh-hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 1rem 0;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  letter-spacing: -0.02em;
}

.wpvh-hero-subtitle {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.85);
  margin: 0 0 2.5rem 0;
  max-width: 600px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

/* ============================================
   CHAMP DE RECHERCHE
   ============================================ */
.wpvh-search-container {
  width: 100%;
  max-width: 600px;
  margin-top: 1rem;
}

.wpvh-search-form {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.wpvh-search-form:focus-within {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 0 30px rgba(255, 255, 255, 0.1);
}

.wpvh-search-input {
  flex: 1;
  padding: 1rem 1.5rem;
  border: none;
  background: transparent;
  color: #ffffff;
  font-size: 1rem;
  outline: none;
}

.wpvh-search-input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.wpvh-search-btn {
  padding: 1rem 1.5rem;
  background: transparent;
  border: none;
  color: #ffffff;
  cursor: pointer;
  transition: all 0.3s ease;
}

.wpvh-search-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.wpvh-search-btn svg {
  display: block;
}

/* ============================================
   INDICATEUR DE SCROLL
   ============================================ */
.wpvh-scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  color: rgba(255, 255, 255, 0.7);
  animation: wpvhBounce 2s infinite;
  cursor: pointer;
}

@keyframes wpvhBounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-10px);
  }
  60% {
    transform: translateX(-50%) translateY(-5px);
  }
}

/* ============================================
   RESPONSIVE - TABLETTE
   ============================================ */
@media (max-width: 1024px) {
  .wpvh-hero-title {
    font-size: 2.5rem;
  }

  .wpvh-menu-list {
    gap: 1.5rem;
  }

  .wpvh-menu-list a {
    font-size: 0.9rem;
  }
}

/* ============================================
   RESPONSIVE - MOBILE
   ============================================ */
@media (max-width: 768px) {
  .wpvh-video-header {
    height: 100vh;
    min-height: 500px;
  }

  /* Masquer la vidéo sur mobile par défaut (géré par JS) */
  .wpvh-video-header.wpvh-mobile-image .wpvh-video {
    display: none;
  }

  .wpvh-video-header.wpvh-mobile-none {
    display: none;
  }

  /* Navigation mobile */
  .wpvh-top-nav {
    padding: 1rem;
  }

  .wpvh-menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(26, 26, 46, 0.98);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
  }

  .wpvh-menu.wpvh-menu-open {
    opacity: 1;
    visibility: visible;
  }

  .wpvh-menu-list {
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
  }

  .wpvh-menu-list a {
    font-size: 1.25rem;
  }

  .wpvh-menu-list .sub-menu {
    position: static;
    transform: none;
    background: transparent;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    padding: 0.5rem 0 0 0;
  }

  .wpvh-menu-toggle {
    display: flex;
  }

  .wpvh-menu-toggle.wpvh-menu-toggle-open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .wpvh-menu-toggle.wpvh-menu-toggle-open span:nth-child(2) {
    opacity: 0;
  }

  .wpvh-menu-toggle.wpvh-menu-toggle-open span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
  }

  /* Contenu mobile */
  .wpvh-content {
    padding: 1.5rem;
  }

  .wpvh-hero-title {
    font-size: 2rem;
  }

  .wpvh-hero-subtitle {
    font-size: 1rem;
  }

  .wpvh-search-container {
    max-width: 100%;
  }

  .wpvh-search-input {
    padding: 0.875rem 1.25rem;
    font-size: 0.95rem;
  }

  .wpvh-scroll-indicator {
    bottom: 1.5rem;
  }
}

/* ============================================
   ANIMATIONS
   ============================================ */
.wpvh-video-header.wpvh-loaded .wpvh-content {
  animation: wpvhFadeIn 0.8s ease-out forwards;
}

.wpvh-video-header.wpvh-loaded .wpvh-top-nav {
  animation: wpvhSlideDown 0.6s ease-out forwards;
}

@keyframes wpvhFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes wpvhSlideDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================
   MODE REMPLACEMENT (target_selector)
   ============================================ */
.wpvh-replaced {
  display: none !important;
}
