.difficultes-liste {
  padding: 3rem;
  text-align: center;
  margin: 3rem auto;
}

.difficultes-liste h1 {
  color: #1cce5b;
  font-weight: lighter;
  font-family: 'OctoberCrow', cursive;
  font-size: 3rem;
  text-shadow: 0 0 10px #1cce5b;
}

.difficultes-liste h3 {
  color: #1cce5b;
  margin-top: 1rem;
  font-weight: lighter;
  font-family: 'LazyDog', cursive;
  font-size: 3rem;
  text-shadow: 0 0 10px #1cce5b;
}

.grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.difficulte-card {
  background-color: #110024;
  padding: 1rem;
  border-radius: 12px;
  transition: transform 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  border: 1px solid;
  border-image: linear-gradient(to right, #090013, #1cce5b, #090013) 1;
  opacity: 0;
  animation: fadeInUp 0.6s ease forwards;
}

.difficulte-card:hover {
  transform: scale(1.05);
}

.difficulte-card img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  border-bottom: 1px solid;
  border-image: linear-gradient(to right, #090013, #1cce5b, #090013) 1;
}

.difficulte-card h3 {
  color: #1cce5b;
  font-size: 2rem;
  margin-top: 0.5rem;
  font-weight: lighter;
}

.difficulte-card table {
  width: 100%;
  margin-top: 0.5rem;
  font-size: 1rem;
  border-collapse: collapse;
}

.difficulte-card td {
  padding: 0.2rem 0.5rem;
  border-bottom: 1px solid #333;
  color: #dbdbdb;
}

.difficulte-card td:first-child {
  font-weight: lighter;
  color: #1cce5b;
  width: 50%;
}

.difficulte-card h4 {
  color: #1cce5b;
  font-size: 1.3rem;
  margin-top: 1rem;
  border-bottom: 1px solid;
  border-image: linear-gradient(to right, #090013, #1cce5b, #090013) 1;
  padding-bottom: 0.3rem;
}

.difficulty-section {
  margin: 0.5rem 0;
  text-align: left;
  padding-left: 0.5rem;
}

.difficulty-section p {
  margin: 0.2rem 0;
  font-size: 1rem;
}


@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media screen and (max-width: 480px) {
  .difficultes-liste {
    padding: 1.5rem;
  }

  .difficultes-liste h2 {
    font-size: 2rem;
  }

  .difficulte-card {
    padding: 0.8rem;
  }

  .difficulte-card h3 {
    font-size: 1.1rem;
  }

  .difficulte-card table {
    font-size: 0.8rem;
  }
}


.difficultes-bg {
  position: fixed;
  inset: 0;
background: url('/assets/images/FONDECRAN3.webp') no-repeat center center;
  background-size: cover;
  z-index: -1;
  animation: fantomeFloat 10s ease-in-out infinite;
  will-change: transform, background-position;
  pointer-events: none;
}

@keyframes fantomeFloat {
  0%   { transform: scale(1); background-position: 50% 50%; }
  50%  { transform: scale(1.05); background-position: 48% 52%; }
  100% { transform: scale(1); background-position: 50% 50%; }
}



