.bagdes-bg {
  position: fixed;
  inset: 0;
background: url('/assets/images/FONDECRAN13.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%; }
}

/* 🏷️ Conteneur principal pour la liste des badges */.badges-liste {
  padding: 3rem;
  text-align: center;
  margin: 3rem auto;
}

/* 🏷️ Conteneur principal pour la liste des badges */.badges-liste h1 {
  color: #1cce5b;
  margin-top: 1rem;
  font-weight: lighter;
  font-family: 'OctoberCrow', cursive;
  font-size: 3rem;
    text-shadow: 0 0 10px #1cce5b;

}

/* 🧱 Grille responsive contenant les cartes de badges */.grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

/* 🎖️ Carte individuelle de badge animee */.badge-card {
  background-color: #110024;
  padding: 1rem;
  border-radius: 12px;
  border: 1px solid;
  border-image: linear-gradient(to right, #090013, #1cce5b, #090013) 1;
  transition: transform 0.2s ease;
  animation: fadeInUp 0.6s ease forwards;
  opacity: 0;
}

/* ✨ Effet zoom leger au survol du badge */.badge-card:hover {
  transform: scale(1.05);
}

/* 🖼️ Image du badge avec bord arrondi */.badge-card img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  margin-bottom: 0.5rem;
}

/* 📛 Nom du badge affiche sous l’image */.badge-card h3 {
  color: #1cce5b;
  font-size: 1.3rem;
  font-weight: lighter;
  margin: 0.3rem 0;
}

/* 📝 Description courte du badge */.badge-card p {
  color: #ccc;
  font-size: 1rem;
}

/* Animation */
/* 🎞️ Animation pour faire apparaitre chaque carte de badge */@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* 🖼️ Affichage detaille du badge selectionne (zoom central) */.badge-display-container {
  margin-top: 2rem;
  text-align: center;
  display: none;
  animation: fadeIn 0.5s ease;
}

/* 🖼️ Affichage detaille du badge selectionne (zoom central) */.badge-display-container img {
  max-width: 300px;
  width: 100%;
  height: auto;
  border-radius: 10px;
  border: 1px solid;
  border-image: linear-gradient(to right, #090013, #1cce5b, #090013) 1;
  box-shadow: 0 0 10px rgba(28, 206, 91, 0.4);
  margin-bottom: 1.5rem;
}

/* Optionnel : transition douce a l'apparition */
/* 🎬 Animation douce d’apparition du badge selectionne */@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to   { opacity: 1; transform: scale(1); }
}


/* 🔼 Bouton retour en haut positionne en bas a droite */#back-to-top {
  position: fixed;
      bottom: 40px;
      right: 60px;
  background: #1cce5b;
  color: #090013;
  border: none;
  padding: 0.6rem 1rem;
  font-size: 1.2rem;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  z-index: 1000;
  display: none;
  transition: opacity 0.3s ease;
}

/* 🔼 Bouton retour en haut positionne en bas a droite */#back-to-top:focus {
  outline: 2px solid #fff;
  outline-offset: 2px;
}