body {
  margin: 0;
  padding: 20px;
  font-family: 'Inter', sans-serif;
  background: #2c1810;
  min-height: 100vh;
  color: #2c1810;
}

#wrap {
  margin: 0 auto;
  width: 90%;
  max-width: 1200px;
  background: #f8e7c9;
  border-radius: 12px;
  box-shadow: 
    0 0 25px rgba(0, 0, 0, 0.5),
    inset 0 0 60px rgba(139, 69, 19, 0.2);
  padding: 3rem;
  margin-top: 2rem;
  position: relative;
  border: 3px solid #8B4513;
  background-image: url('parchemin2.jpeg');
  background-blend-mode: overlay;
}

#wrap::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(244, 220, 149, 0.4) 0%,
    rgba(244, 220, 149, 0.1) 50%,
    rgba(244, 220, 149, 0.4) 100%
  );
  pointer-events: none;
  border-radius: 8px;
  opacity: 0.8;
}

#nerf-button {
  position: absolute;
  top: 40px;
  left: 40px;
  z-index: 10;
}

#nerf-button a {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  color: #2c1810;
  text-decoration: none;
  background: rgba(244, 220, 149, 0.9);
  border-radius: 8px;
  transition: all 0.3s ease;
  border: 2px solid #8B4513;
  font-weight: 600;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
}

#nerf-button a:hover {
  background: rgba(244, 220, 149, 1);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

#header {
  text-align: center;
  padding: 2rem 0;
  position: relative;
  margin-bottom: 2rem;
  background: rgba(244, 220, 149, 0.3);
  border-radius: 12px;
  box-shadow: inset 0 0 20px rgba(139, 69, 19, 0.1);
}

#header h1 {
  font-family: 'Poppins', sans-serif;
  font-size: 2.5rem;
  color: #2c1810;
  margin: 0;
  padding: 1rem 0;
  text-shadow: 2px 2px 4px rgba(139, 69, 19, 0.2);
}

#nav {
  margin: 2rem 0;
}

#nav ul {
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: center;
  gap: 1rem;
}

#nav li {
  list-style: none;
}

#nav li a {
  display: inline-block;
  padding: 0.8rem 1.5rem;
  color: #2c1810;
  text-decoration: none;
  background: rgba(244, 220, 149, 0.9);
  border-radius: 8px;
  transition: all 0.3s ease;
  border: 2px solid #8B4513;
  font-weight: 600;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
}

#nav li a:hover {
  background: rgba(244, 220, 149, 1);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.right {
  width: 90%;
  max-width: 800px;
  margin: 0 auto;
  background: rgba(244, 220, 149, 0.3);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: inset 0 0 20px rgba(139, 69, 19, 0.1);
}

.right h4 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.8rem;
  color: #2c1810;
  text-align: center;
  margin: 2rem 0;
  position: relative;
  padding-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(139, 69, 19, 0.2);
}

.right h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 2px;
  background: rgba(139, 69, 19, 0.5);
  border-radius: 2px;
}

.right ul {
  padding: 0;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.right li {
  list-style: none;
}

.right li a {
  display: block;
  padding: 1rem 1.5rem;
  color: #2c1810;
  text-decoration: none;
  background: rgba(244, 220, 149, 0.9);
  border-radius: 8px;
  transition: all 0.3s ease;
  border: 2px solid rgba(139, 69, 19, 0.3);
  height: 100%;
  font-weight: 500;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);

  /* Ajouts pour le retour à la ligne */
  word-wrap: break-word;
  white-space: normal;
  max-width: 100%; /* ou une valeur fixe comme 300px */
}

.right li a:hover {
  background: rgba(244, 220, 149, 1);
  transform: translateX(5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  border-color: #8B4513;
}

#searchBar {
  width: 100%;
  max-width: 500px;
  padding: 1rem 1.5rem;
  margin: 2rem auto;
  display: block;
  background: rgba(244, 220, 149, 0.9);
  border: 2px solid #8B4513;
  border-radius: 8px;
  color: #2c1810;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.1);
}

#searchBar::placeholder {
  color: rgba(44, 24, 16, 0.6);
}

#searchBar:focus {
  outline: none;
  background: rgba(244, 220, 149, 1);
  box-shadow: 0 0 0 3px rgba(139, 69, 19, 0.2);
}

@media (max-width: 768px) {
  #wrap {
    width: 95%;
    padding: 2rem 1rem;
    margin-top: 1rem;
  }

  #header h1 {
    font-size: 2rem;
  }

  .right ul {
    grid-template-columns: 1fr;
  }

  #nav li a {
    padding: 0.6rem 1rem;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.right li {
  animation: fadeIn 0.3s ease forwards;
  opacity: 0;
}

.right li:nth-child(n) {
  animation-delay: calc(0.1s * var(--i));
}