body {
  margin: 0;
  padding: 0;
  height: 100vh;
  background: url(images/foret.png);
  overflow: hidden;
  position: relative;
  font-family: 'special', sans-serif;
  color: white;
}
@font-face {
  font-family: 'special';
  src: url('Special/SpecialGothicCondensedOne-Regular.ttf') format('truetype');
}
.buttons {
  display: flex;
  justify-content: center;
  margin-bottom: 40px;
  margin-top: 30px;
  z-index: 5;
  position: relative;
}

.button {
  position: relative;
  font-family: 'special', sans-serif;
  font-size: 1.4em;
  text-decoration: none;
  color: white;
  background: none;
  border: none;
  padding: 10px 30px;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: color 0.3s ease;
}

.button::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: white;
  transition: width 0.3s ease;
}

.button:hover::after {
  width: 100%;
}


/* Créature */
.creature {
  position: absolute;
  bottom: 10%;
  left: 10%;
  width: 250px;
  height: auto;
  z-index: 2;
  animation: avancer 5s ease-out forwards;
}
@keyframes avancer {
  0% {
    transform: scale(1) translate(0, 0);
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    transform: scale(1.8) translate(50px, -30px);
    opacity: 1;
  }
}


/* Talisman */
.talisman {
  position: absolute;
  bottom: 10%;
  left: 50%;
  width: 150px;
  height: auto;
  z-index: 3;
  animation: pulse 2s infinite ease-in-out;
}

/* Texte final */
.texte {
  position: absolute;
  top: 10%;
  left: 10%;
  right: 10%;
  font-size: 1.4em;
  text-align: center;
  line-height: 1.6;
  z-index: 4;
  animation: fadeIn 2s ease-in;
}

.mystere {
  margin-top: 1.5em;
  font-style: italic;
  color: #ccc;
  animation: mystere 6s infinite ease-in-out;
}

/* Brume */
.brume {
  position: fixed;
  top: 0;
  left: 0;
  width: 150%;
  height: 100%;
  background: url('images/brume.png') repeat-x;
  opacity: 0.3;
  z-index: 1;
  animation: drift 60s linear infinite;
}

.brume2 {
  top: auto;
  bottom: 0;
  opacity: 0.2;
  animation: drift 90s linear infinite reverse;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

@keyframes mystere {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

@keyframes drift {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
