/* =========================
   INDEX.CSS — Accueil vidéo
   Vidéo = 80% de la hauteur du viewport (80vh), toujours centrée
   ========================= */

/* --- Police perso (optionnelle) --- */
@font-face {
  font-family: 'pixo';
  src: url('pixo.woff2') format('woff2'),
       url('pixo.ttf') format('truetype');
  font-display: swap;
}

/* --- Reset + base --- */
* { box-sizing: border-box; }
html, body {
  height: 100%;
  margin: 0;
  background: #000;
  color: #fff;
  font-family: "Segoe UI", Helvetica, Arial, sans-serif;
  overflow-x: hidden;
}

/* --- Conteneur plein écran + snap --- */
.scroll-container {
  height: 100vh;
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  background: #000;
}

.scroll-container section {
  height: 100vh;
  scroll-snap-align: start;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #000;
}

/* =========================
   VIDÉO
   - Toujours 80% de la hauteur du viewport
   - Ratio conservé
   ========================= */
#bgVideo {
  height: 80vh;      /* toujours 80% de la hauteur */
  width: auto;       /* conserve le ratio */
  max-width: 100vw;  /* ne dépasse pas en largeur */
  display: block;
  margin: 0 auto;
  background: #000;
}

/* --- NAV fixée (gauche/droite symétrique) --- */
.nav-container {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 64px;
  pointer-events: none;
  z-index: 20;
}

.nav-left, .nav-right {
  position: fixed;
  top: 0;
  height: 64px;
  display: flex;
  align-items: center;
  pointer-events: auto;
  z-index: 21;
}
.nav-left { left: 40px; }
.nav-right { right: 40px; }

/* Effet d’étirement vertical du texte */
.nav-left h2, .nav-right h2 {
  margin: 0;
  transform-origin: center;
  transform: scaleY(4) translateY(10px);
  pointer-events: none;
}

/* Liens nav avec gradient animé */
.nav-left a, .nav-right a {
  text-decoration: none;
  pointer-events: auto;
  background: linear-gradient(270deg, lightyellow, orangered, lightslategrey, orangered);
  background-size: 1000% 1000%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: trippyGradient 1.2s linear infinite;
}
.nav-left a:hover, .nav-right a:hover { border-bottom: 2px solid #fff; }

@keyframes trippyGradient {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}

/* --- Texte bas optionnel --- */
.content {
  position: fixed;
  bottom: 5%;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  z-index: 21;
  pointer-events: none;
}

.glitchy-text {
  font-size: 40px;
  -webkit-text-stroke: 0.3px #fff;
  animation: fontChange 0.6s steps(2) infinite;
}

@keyframes fontChange {
  0%, 50%, 100% { color: orangered; }
  25%, 75%     { color: darkblue; }
}

/* --- Responsive mobile --- */
@media (max-width: 500px) {
  #bgVideo {
    height: 80vh;
    width: auto;
    max-width: 100vw;
  }

  .nav-left  { left: 20px; top: -30px; }
  .nav-right { right: 20px; top: -30px; }

  .nav-left a, .nav-right a { font-size: 15px; }
  .glitchy-text { font-size: 25px; }
}
