/* Reset */
html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow: hidden;
  background-color: black;
}


body::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  --gap: 5em;
  --line: 1px;
  --color: rgba(255, 255, 255, 0.2);
  background-image: 
      linear-gradient(
          -90deg,
          transparent calc(var(--gap) - var(--line)),
          var(--color) calc(var(--gap) - var(--line) + 1px),
          var(--color) var(--gap)
      ),
      linear-gradient(
          0deg,
          transparent calc(var(--gap) - var(--line)),
          var(--color) calc(var(--gap) - var(--line) + 1px),
          var(--color) var(--gap)
      );
  background-size: var(--gap) var(--gap);
  opacity: 0;
  animation: scrollGrid 200s linear infinite;
  transition: opacity 2s ease;
  z-index: 0;
}

body.show-background::before {
  opacity: 1;
}

@keyframes scrollGrid {
  0% { background-position: 0 0; }
  100% { background-position: 100px 100px; }
}

/* Nouveau background avec le style de Uiverse.io */
.container {
  width: 100%;
  height: 100vh;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 1;
  text-align: center;
}

.intro-video {
  position: absolute;
  width: 50.1%;
  height: 50.1%;
  margin-left: 31.5px;
  object-fit: contain;
  background: black;
  z-index: 10;
}


/* Pour que ton texte/logo/bouton soit au-dessus */
header, .content {
  position: relative;
  z-index: 1;
}

/* Header */
header {
  text-align: center;
  padding: 150px 0 10px 0;
}

header h1 {
  color: #663185; /* Violet lumineux */
  font-size: 64px;
  margin: 0;
}

/* Contenu principal */
.content {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 2;
}

/* Logo */
.logo {
  display: none;
  width: 527.2px;
  height: auto;
  margin-bottom: 107px;
  z-index: 2;
}

.logo {
  opacity: 0.8;
  z-index: 11;
  transition: opacity 0.92s ease-in-out;
}

.content {
  opacity: 0;
  transition: opacity 2s ease-in-out;
}

.logo.visible, .content.visible {
  opacity: 1;
  z-index: 2;
}

/* Nouveau bouton avec style "primary-button" */
.cta {
  display: flex;
  padding: 11px 33px;
  text-decoration: none;
  font-size: 25px;
  color: white;
  background: #663185;
  transition: 1s;
  box-shadow: 6px 6px 0 black;
  transform: skewX(-15deg);
  border: none;
  cursor: pointer;
}

.cta:focus {
  outline: none;
}

.cta:hover {
  transition: 0.5s;
  box-shadow: 10px 10px 0 #96389f;
}

.cta .second {
  transition: 0.5s;
  margin-right: 0px;
}

.cta:hover .second {
  transition: 0.5s;
  margin-right: 45px;
}

.span {
  transform: skewX(15deg);
  font-family: "Rowdies", sans-serif;
  font-weight: bold;
}

.second {
  width: 20px;
  margin-left: 30px;
  position: relative;
  top: 12%;
}

.one {
  transition: 0.4s;
  transform: translateX(-60%);
}

.two {
  transition: 0.5s;
  transform: translateX(-30%);
}

.cta:hover .three {
  animation: color_anim 1s infinite 0.2s;
}

.cta:hover .one {
  transform: translateX(0%);
  animation: color_anim 1s infinite 0.6s;
}

.cta:hover .two {
  transform: translateX(0%);
  animation: color_anim 1s infinite 0.4s;
}

@keyframes color_anim {
  0% {
    fill: white;
  }

  50% {
    fill: #96389f;
  }

  100% {
    fill: white;
  }
}


@media (max-width: 768px) {

  .intro-video {
    width: 120%;
    height: auto;
    margin-left: 0;
    top: 500;
    left: -100;
    transform: none;
  }

  .container {
    justify-content: center;
    padding-top: 20px;
  }

  header {
      padding: 80px 20px 20px 20px;
  }

  header h1 {
      font-size: 36px;
      padding: 0 10px;
  }

  .logo {
      width: 70vw;
      margin-top: 50px;
      margin-right: 20px;
  }

  .cta {
      font-size: 18px;
      padding: 10px 25px;
  }

  .second {
      margin-left: 20px;
      width: 16px;
  }

  .content {
      padding: 0 15px;
      text-align: center;
  }
}