body {
  margin: 0;
  min-height: 100vh;
  background-color: #000000;
  background-image: url("../images/88.jpg");
  background-repeat: repeat-x;
  background-size: auto 100%;
  background-position: 0 0;


  animation: defilement 50s linear infinite;
  overflow: hidden; 
  display: flex;
  justify-content: center;
  align-items: center;  
}

@keyframes defilement {
  from {
    background-position: 0 0;
  }
  to {
    background-position: -2000px 0;
  }
}

.h1 {
  color: red;
  font-family: 'MaPolice', sans-serif;
  font-size: 100px;
  text-align: center;
  animation: pulse 2s infinite ease-in-out;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

@font-face {
  font-family: 'MaPolice';
  src: url('fonts/fonts2.otf') format('truetype');
}

/* Bouton Menu */
.menu-btn {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-weight: bold;
  color: red;
  font-family: 'impact', sans-serif;
  font-size: 100px;
  display: block;
  margin: 20px auto;
  animation: pulse 2s infinite ease-in-out;
}

/* Overlay plein écran */
.overlay {
  height: 100%;
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transform: translateY(-100%);
  transition: transform 0.5s ease;
}

.overlay.active {
  transform: translateY(0);
}

/* Bouton fermer */
.close-btn {
  position: absolute;
  top: 20px;
  right: 40px;
  font-size: 50px;
  cursor: pointer;
  color: red;
  transition: 0.3s;
}

.close-btn:hover {
  transform: rotate(90deg);
}

/* Liens du menu */
.overlay-content {
  display: flex;
  flex-direction: column;
  text-align: center;
}

.overlay-content a {
  font-size: 90px;
  text-decoration: none;
  color: red;
  margin: 20px 0;
  transition: 0.3s;
  font-family: 'impact', sans-serif;
  animation: pulse 3s infinite ease-in-out;
}

.overlay-content a:hover {
  color: greenyellow;
}

/* ASCII */
.ascii {
  position: absolute;
  top: 100px;
  left: 100px;
  cursor: grab;
  user-select: none;
  color: greenyellow;
  font-family: monospace;
  font-size: 12px;
  line-height: 10px;
  white-space: pre;
  z-index: 0;
}

/* Texte bas */
.coin-droit {
  position: fixed;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  max-width: 200px;
  text-align: center;
  display: inline-block;
  color: red;
  font-family: Arial, Helvetica, sans-serif;
  background: rgba(0,0,0,0.5);
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 11px;
  z-index: 0;
}

/* ================================= */
/* VERSION MOBILE ADAPTÉE            */
/* ================================= */

@media screen and (max-width: 768px) {

  body {
    background-size: cover;
    animation: defilement 80s linear infinite;
  }

  .h1 {
    font-size: 55px;
  }

  .menu-btn {
    font-size: 55px;
  }

  .overlay-content a {
    font-size: 45px;
    margin: 15px 0;
  }

  .close-btn {
    font-size: 40px;
    right: 20px;
  }

  .ascii {
    font-size: 8px;
    line-height: 8px;
    top: 60px;
    left: 20px;
  }

  .coin-droit {
    max-width: 90%;
    font-size: 10px;
  }
}