@font-face {
  font-family: 'Akira Expanded';
  src: url('../fonts/AkiraExpanded.otf') format('opentype');
}

body {
  margin: 0;
  background: #0d0d0d;
  font-family: 'Bakbak One', sans-serif;
  color: #f1f1f1;
  overflow: hidden;
}

canvas#graphiste-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -2;
}

#floating-words {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: -1;
}

.word {
  position: absolute;
  font-family: 'Bakbak One', sans-serif;
  font-size: 1.2rem;
  font-weight: bold;
  opacity: 0;
  transform: scale(0.6) rotate(0deg);
  filter: blur(5px);
  animation: fadeWord 6s ease-in-out forwards;
  text-shadow: 0 0 10px rgba(255, 46, 81, 0.3);
  transition: transform 0.5s ease-out, filter 0.5s ease-out;
}

@keyframes fadeWord {
  0% { opacity: 0; transform: scale(0.6); filter: blur(5px); }
  20% { opacity: 0.8; transform: scale(1); filter: blur(0); }
  60% { opacity: 0.5; }
  100% { opacity: 0; transform: scale(1.1) translateY(-20px); filter: blur(1px); }
}

#flashMessage {
  transition: opacity 1s ease, transform 1s ease;
}

.navbar {
  font-family: 'Akira Expanded', sans-serif;
  color: #841a1a;
  background: transparent;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 40px;
  font-size: 35px;
  letter-spacing: 2px;
  text-shadow: 3px 3px 6px rgba(0, 0, 0, 1.6);
  position: relative;
}

.navbar a {
  color: #841a1a;
  text-decoration: none;
  transition: color 0.3s ease;
}

.navbar a:hover {
  color: white;
}

.navbar a.active {
  color: white;
  pointer-events: none;
  cursor: default;
}

.burger {
  display: none;
  font-size: 2.2rem;
  cursor: pointer;
  color: #841a1a;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.mobile-menu {
  display: none;
}

.mobile-menu.show {
  display: flex;
  flex-direction: column;
  background-color: #1e1d1d;
  position: absolute;
  top: 70px;
  left: 0;
  width: 100%;
  text-align: center;
  z-index: 9;
}

.mobile-menu a {
  padding: 15px 0;
  text-decoration: none;
  font-size: 1.8rem;
  color: #841a1a;
}

.mobile-menu a:hover {
  color: white;
}

@media (max-width: 800px) {
  .navbar .nav-left,
  .navbar .nav-center,
  .navbar .nav-right {
    display: none;
  }
  .burger {
    display: block;
  }
}

.main-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: calc(100vh - 100px);
  padding: 20px;
}

h1 {
  color: #841a1a;
  font-size: 3rem;
  margin-top: 5px;
  margin-bottom: 40px;
  text-shadow: 2px 2px 5px black;
}

form {
  background-color: #2c2b2b;
  padding: 30px;
  border: 2px solid #841a1a;
  border-radius: 12px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
  width: 100%;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

input {
  padding: 12px;
  border: none;
  border-radius: 5px;
  font-size: 1rem;
}

button {
  background: transparent;
  border: 2px solid #841a1a;
  color: white;
  font-family: 'Bakbak One', sans-serif;
  padding: 10px;
  font-size: 1rem;
  cursor: pointer;
  transition: 0.3s ease;
}

button:hover {
  background-color: white;
  color: #841a1a;
}

a {
  color: white;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #841a1a;
}

.message {
  margin-top: 15px;
  color: #ff4d4d;
}
