/* ===================== */
/*   VIDEO ACCUEIL       */
/* ===================== */

.hero-video {
  position: relative;
  width: 100%;
  height: calc(100vh - var(--nav-h));   /* plein écran moins la barre de menu */
  overflow: hidden;
}

.hero-video__media 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;
}

/* Voile sombre par-dessus la vidéo */
.hero-video__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;              /* couvre TOUTE la vidéo (le ratio 16/9 laissait un trou) */
  background: rgba(30, 61, 38, 0.3);
  z-index: 2;
}

/* Texte centré sur la vidéo */
.hero-video__content_container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  padding: 0 2rem;
  color: white;
  text-align: center;
  z-index: 3;
}

.hero-video__content_container p {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  color: #ffffff;
  margin: 0;
  letter-spacing: 0.04em;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.4);
}

/* Contrôles son + pause */
.hero-video__controls {
  position: absolute;
  bottom: 28px;
  right: 28px;
  display: flex;
  gap: 12px;
  z-index: 5;
}

.video-ctrl {
  width: 74px;               
  height: 74px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: rgba(30, 61, 38, 0.75);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);    /* Safari/iPhone */
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
}

/* Les icônes SVG suivent la taille du bouton */
.video-ctrl svg {
  width: 26px;
  height: 26px;
}

.video-ctrl:hover {
  background: rgba(141, 198, 63, 0.9);
  border-color: #8dc63f;
  transform: scale(1.08);
}

/* ===================== */
/*      RESPONSIVE       */
/* ===================== */

@media (max-width: 768px) {
  .hero-video {
    height: 60vh;
  }

  .hero-video__controls {
    bottom: 14px;
    right: 14px;
    gap: 10px;
  }

  .video-ctrl {
    width: 44px;             /* 44px = taille tactile minimum recommandée */
    height: 44px;
  }

  .video-ctrl svg {
    width: 20px;
    height: 20px;
  }
}