* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

html,
body {
  height: 100%;
  overflow: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: none;
  background: #000;
}

.video-container {
  position: fixed;
  inset: 0; /* top:0; right:0; bottom:0; left:0 */
  width: 100vw;
  /* Ordre important : le dernier supporté gagne */
  height: 100vh; /* fallback */
  height: 100svh; /* “small” viewport – stable avec barre d’URL */
  height: 100dvh; /* “dynamic” viewport – suit l’ouverture/fermeture */
  background: #000;
  overflow: hidden;
}

video {
  width: 100%;
  height: 100%;
  object-fit: cover; /* plein écran, peut couper */
  object-position: center;
}

/* OPTION anti-coupe sur écrans très verticaux (ex : 9:19.5, 9:20) */
@media (max-aspect-ratio: 9/16) {
  .video-container {
    background: #000;
  }
  video {
    object-fit: contain; /* montre tout, bandes noires éventuelles */
    background: #000;
  }
}

/* Paysage mobile (garde cover, bon centrage) */
@media (orientation: landscape) and (max-width: 768px) {
  video {
    object-fit: cover;
    object-position: center;
  }
}

/* Gestes : évite double-tap zoom etc. */
@media (max-width: 768px) {
  * {
    touch-action: manipulation;
  }
}

/* iOS Safari : secours safe (min-height pour ne pas écraser dvh) */
@supports (-webkit-touch-callout: none) {
  .video-container {
    min-height: -webkit-fill-available;
  }
  video {
    min-height: -webkit-fill-available;
  }
}

/* (Facultatif) safe areas iPhone (PWA / notch) */
@supports (padding: max(0px)) {
  .video-container {
    padding: max(env(safe-area-inset-top), 0px)
      max(env(safe-area-inset-right), 0px) max(env(safe-area-inset-bottom), 0px)
      max(env(safe-area-inset-left), 0px);
  }
}

/* Navigation Blocks */
.nav-blocks {
  position: fixed;
  top: 72%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  gap: 2rem;
  z-index: 10;
  pointer-events: auto;
}

.nav-block {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 120px;
  height: 60px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
}

.nav-block:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.block-text {
  color: white;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-blocks {
    flex-direction: column;
    gap: 1rem;
    width: 90%;
    max-width: 300px;
  }

  .nav-block {
    width: 100%;
    height: 50px;
  }

  .block-text {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .nav-blocks {
    gap: 0.8rem;
  }

  .nav-block {
    height: 45px;
  }

  .block-text {
    font-size: 0.9rem;
  }
}
