/* ---------------------------------------
   GLOBAL
-----------------------------------------*/
html, body {
  margin: 0;
  padding: 0;
  background: black;
  height: 100%;
  width: 100%;
  overflow: hidden;
  -webkit-touch-callout: none;
}

/* ---------------------------------------
   VIDÉO FULLSCREEN — FIX iPHONE & DESKTOP
-----------------------------------------*/
video {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw !important;
  height: 100vh !important;
  object-fit: cover;
  background: black;
  display: block;
  z-index: 1;
}

@supports (-webkit-touch-callout: none) {
  video {
    height: 100vh;
    min-height: -webkit-fill-available;
  }
}

/* ---------------------------------------
   MESSAGE SONORE CENTRÉ
-----------------------------------------*/
#sound-hint {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0,0,0,0.7);
  padding: 20px 32px;
  color: white;
  border-radius: 14px;
  font-size: 28px;
  font-weight: 500;
  max-width: 80%;
  text-align: center;
  z-index: 99999;
  opacity: 1;
  backdrop-filter: blur(5px);
  transition: opacity 2s ease-in-out;
}

#sound-hint.fade-out {
  opacity: 0;
  pointer-events: none;
}

/* ---------------------------------------
   iPHONE ADAPTATION
-----------------------------------------*/
@media (max-width: 600px) {
  #sound-hint {
    font-size: 22px;
    padding: 16px 24px;
    max-width: 85%;
  }
}

@supports(padding: max(0px)) {
  #sound-hint {
    top: calc(50% - env(safe-area-inset-top) / 2);
  }
}
