body {
background: #0d0d0d;
  color: white;
  font-family: 'Bakbak One', sans-serif;
  margin: 0;
  padding: 0;
}

@font-face {
  font-family: 'Akira';
  src: url('../fonts/AkiraExpanded.otf') format('opentype');
}

h1 {
  color: #841a1a;
  text-align: center;
  margin-top: 30px;
  text-shadow: 2px 2px 5px black;
}

.navbar {
  font-family: 'Akira', sans-serif;
  color: #841a1a;
  background: transparent;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  min-height: 20px;
  font-size: 35px;
  letter-spacing: 2px;
  position: relative;
  z-index: 10;
  overflow: visible;
  text-shadow: 3px 3px 6px rgba(0, 0, 0, 1.6);
}


.navbar a {
  color: #841a1a;
  text-decoration: none;
  transition: color 0.3s ease;
}

.navbar a:hover {
  color: white;
}

.navbar a.active,
.mobile-menu a.active {
  color: white;
  pointer-events: none;
  cursor: default;
  text-shadow: none;
}

.burger {
  display: none;
  font-size: 2.2rem;
  cursor: pointer;
  color: #841a1a;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.mobile-menu {
  display: none;
  flex-direction: column;
  background-color: #1e1d1d;
  position: absolute;
  top: 80px;
  left: 0;
  width: 100%;
  text-align: center;
  z-index: 9;
}

.mobile-menu a {
  padding: 15px 0;
  text-decoration: none;
  border-top: 1px solid #333;
  font-family: 'Akira Expanded', sans-serif;
  font-size: 2rem;
  color: #841a1a;
}

.mobile-menu a:hover {
  background-color: #333;
  color: white;
}

@media (max-width: 800px) {
  .nav-left,
  .nav-center,
  .nav-right {
    display: none;
  }

  .burger {
    display: block;
  }

  .mobile-menu.show {
    display: flex;
  }
}

.ajout-trace-btn {
  text-align: center;
  margin: 20px 0;
}

.ajout-trace-btn a {
  padding: 10px 20px;
  background-color: #841a1a;
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-family: 'Bakbak One', sans-serif;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.ajout-trace-btn a:hover {
  background-color: white;
  color: #841a1a;
}

.toggle-button {
  display: block;
  margin: 20px auto;
  padding: 10px 20px;
  background: transparent;
  border: 2px solid #841a1a;
  color: white;
  font-family: 'Bakbak One', sans-serif;
  font-size: 1rem;
  cursor: pointer;
  transition: 0.3s ease;
}

.toggle-button:hover {
  background-color: white;
  color: #841a1a;
}

.filtre-form {
  background-color: #2c2b2b;
  border: 2px solid #841a1a;
  border-radius: 12px;
  padding: 20px;
  width: 90%;
  max-width: 1000px;
  margin: 0 auto 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
}

.filtre-form select,
.filtre-form input {
  padding: 12px;
  font-size: 1rem;
  border: none;
  border-radius: 5px;
  width: 180px;
}

.filtre-form button {
  background: transparent;
  border: 2px solid #841a1a;
  color: white;
  font-family: 'Bakbak One', sans-serif;
  padding: 10px 20px;
  font-size: 1rem;
  cursor: pointer;
  transition: 0.3s ease;
}

.filtre-form button:hover {
  background-color: white;
  color: #841a1a;
}

.trace-container {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
  padding: 30px;
}

.trace-card {
  background-color: #2c2b2b;
  border: 2px solid #841a1a;
  border-radius: 12px;
  padding: 20px;
  width: 300px;
  color: white;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
}

.trace-card h3 {
  color: #841a1a;
  margin-bottom: 10px;
  text-shadow: 2px 2px 5px black;
}

.trace-card a {
  color: #841a1a;
  text-decoration: none;
}

.trace-card a:hover {
  color: white;
}

.hidden {
  display: none !important;
}





    .trace-container { display: flex; flex-wrap: wrap; gap: 20px; }
    .trace-card {
      flex: 1 1 calc(33.333% - 20px);
      background: #2c2b2b;
      padding: 15px;
      border-radius: 8px;
      color: white;
      box-sizing: border-box;
      text-decoration: none;
      display: block;
      transition: all 0.4s ease;
    }
    .trace-card:hover {
      background: white;
      color: #2c2b2b;
      transform: scale(1.03);
    }
    .carousel {
      position: relative;
      width: 100%;
      overflow: hidden;
      max-height: 180px;
    }
    .carousel-slide {
      display: none;
      width: 100%;
      max-height: 180px;
      object-fit: contain;
    }
    .carousel-slide.active {
      display: block;
    }
    .carousel-nav {
      text-align: center;
      margin-top: 5px;
    }
    .carousel-nav span {
      display: inline-block;
      width: 10px;
      height: 10px;
      margin: 0 5px;
      background: #ccc;
      border-radius: 50%;
      cursor: pointer;
    }
    .carousel-nav .active {
      background: #841a1a;
    }
    @media (max-width: 768px) {
      .trace-card { flex: 1 1 calc(50% - 20px); }
    }
    @media (max-width: 480px) {
      .trace-card { flex: 1 1 100%; }
    }
    .hidden { display: none; }
