body {
  margin: 0;
  height: 100vh;

  background-image: url("images/88.jpg");
  background-repeat: repeat-x;
  background-size: auto 100%;

  animation: defilement 50s linear infinite;
  overflow:hidden; 
  display: flex;
  justify-content: center; /* centre horizontalement */
  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);   /* taille normale */
  }
  50% {
    transform: scale(1.1); /* agrandit légèrement */
  }
  100% {
    transform: scale(1);   /* revient à la taille normale */
  }
}

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


/* Bouton Menu */
.menu-btn {
  background: none;
  border: none;
  padding: 0;
  font-size: 20px;
  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); /* noir transparent */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transform: translateY(-100%);
  transition: transform 0.5s ease;
}

/* Quand le menu est actif */
.overlay.active {
  transform: translateY(0);
}

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

/* 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;
}

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

.ascii {
  position: absolute;        /* permet de déplacer librement */
  top: 100px;
  left: 100px;
  cursor: grab;              /* effet main ouverte */
  user-select: none;         /* empêche sélection du texte */
  -webkit-user-select: none; /* pour Safari */
  -moz-user-select: none;    /* pour Firefox */
  -ms-user-select: none;     /* pour IE */
  color: greenyellow;            /* rouge ASCII */
  font-family: monospace;    /* tous les caractères alignés */
  font-size: 12px;
  line-height: 10px;
  white-space: pre;
  z-index: 0;
  
}

.coin-droit {
  position: fixed;
  bottom: 10px;

  max-width: 200px;       /* largeur maximale pour plusieurs lignes */
  text-align: center;      /* centre le texte à l’intérieur du bloc */
  display: inline-block;   /* pour que max-width fonctionne correctement */

  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;
  margin-left: center;
  
}










