


/* 📦 Conteneur principal de la liste de tous les fantomes */.fantome-liste {
  max-width: 1200px;
  margin: 3rem auto;
  padding: 0 2rem;
  color: #dbdbdb;
}

/* 📦 Conteneur principal de la liste de tous les fantomes */.fantome-liste h1 {
  font-family: 'OctoberCrow', cursive;
  text-align: center;
  font-size: 3rem;
  margin-bottom: 2rem;
  color: #1cce5b;
  padding: 1rem;
  font-weight: lighter;
  padding-top: 60px;
  text-shadow: 0 0 10px #1cce5b;

}

.grid-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

/* 🪞 Carte individuelle d’un fantome sur la grille */.ghost-card {
  background: #110024;
  border: 1px solid #1cce5b;
  border-radius: 10px;
  text-align: center;
  padding: 1rem;
  cursor: pointer;
  transition: transform 0.3s ease;
  z-index: 1;
      position: relative;
  overflow: hidden;
  border: 1px solid;
border-image: linear-gradient(to right, #090013, #1cce5b, #090013) 1;


}

/* 🪞 Carte individuelle d’un fantome sur la grille */.ghost-card:hover {
  transform: scale(1.03);
  background-color: #110024;
}

/* 🪞 Carte individuelle d’un fantome sur la grille */.ghost-card img {
  position: relative;
  width: 100%;
  border-radius: 10px;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
  border: 1px solid;
border-image: linear-gradient(to right, #090013, #1cce5b, #090013) 1;
}

/* 🪞 Carte individuelle d’un fantome sur la grille */.ghost-card h3 {
  color: #1cce5b;
  margin-bottom: 0.5rem;
  font-weight: lighter;
  font-family: 'OctoberCrow', cursive;
  font-size: 2rem;
    text-shadow: 0 0 10px #1cce5b;
}

/* 🪞 Carte individuelle d’un fantome sur la grille */.ghost-card .proof-icons {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  border: 1px solid;
border-image: linear-gradient(to right, #090013, #1cce5b, #090013) 1;
}


/* 🪞 Carte individuelle d’un fantome sur la grille */.ghost-card.with-particles {
  position: relative;
  overflow: hidden;
  z-index: 1;
}

/* 🪞 Carte individuelle d’un fantome sur la grille */.ghost-card .particles-floating {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;  
}

/* 🪞 Carte individuelle d’un fantome sur la grille */.ghost-card .particles-floating .particle {
  position: absolute;
  width: 5px;
  height: 5px;
  background-color: #1cce5b;
  border-radius: 50%;
  opacity: 0.4;
  animation: floatParticle ease-in-out infinite;
}



/* === Preuves animees tier 1, 2, 3 === */

/* 🔍 Ensemble d’icones de preuves pour un fantome */.proof-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  margin-top: 16px;
}

/* 🎯 Conteneur d'une preuve avec effet tournant */.proof-wrapper {
  position: relative;
  width: 80px !important;
  height: 80px !important;
  flex-shrink: 0;
    cursor: pointer;

}

/* 🎯 Conteneur d'une preuve avec effet tournant */.proof-wrapper .proof-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 80px;
  height: 80px;
  object-fit: contain;
  z-index: 2;
}


/* 🎯 Conteneur d'une preuve avec effet tournant */.proof-wrapper .proof-circle {
  position: absolute;
  top: 0;
  left: 0;
  width: 80px;
  height: 80px;
  z-index: 1;
  animation: spin 8s linear infinite;
  pointer-events: none;
  background-color: #1cce5a59;
  border-radius: 50px;
}











/* === PAGE FANTOME === */


/* === Titre emoji + nom === */
/* 🧠 Titre + emoji du fantome en haut de page individuelle */.ghost-header-title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-top: 50px;
}

/* 🧠 Titre + emoji du fantome en haut de page individuelle */.ghost-header-title img {
  width: 80px;
  height: 80px;
}

/* 🧠 Titre + emoji du fantome en haut de page individuelle */.ghost-header-title h1 {
  font-size: 3rem;
  color: #1cce5b;
  margin: 0;
  font-family: 'OctoberCrow', cursive;
  font-weight: lighter;
  text-shadow: 0 0 10px #1cce5b;
}


.image-container img:hover {
  transform: scale(1.02);
}

.page-fantome {
  max-width: 1300px;
  margin: 4rem auto;
  padding: 0 2rem;
  color: #dbdbdb;
}

.header-fantome h2 {
  text-align: center;
  font-size: 3rem;
  font-family: 'OctoberCrow', cursive;
  font-weight: lighter;
  color: #1cce5b;
  padding: 1rem;
    text-shadow: 0 0 10px #1cce5b;

}

/* Grille : image + stats/sounds */
/* 🧱 Grille principale : image a gauche / stats a droite */.layout-fantome {
  display: grid;
  grid-template-columns: 70% 30%;
  gap: 2rem;
  margin-top: 2rem;
}

/* === COLONNE GAUCHE === */
.col-gauche {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.image-container {
  position: relative;

}

.image-container img {
  width: 70%;
  border-radius: 20px;
box-shadow: 0 0px 15px #1cce5b;

}

/* Preuves sur l'image */
.proofs-on-image {
  position: absolute;
  top: 0%;
  right: 50px;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.proofs-on-image img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  padding: 0.3rem;

}




/* === BLOCS TEXTE COMPORTEMENTS ETC === */
/* 📄 Bloc de texte : comportement, particularites, identification */.section-texte {
background: #110024d9;
backdrop-filter: blur(4px);

  padding: 1rem 1.5rem;
  border-radius: 10px;
border: 1px solid;
border-image: linear-gradient(to right, #090013, #1cce5b, #090013) 1;

}
/* 📄 Bloc de texte : comportement, particularites, identification */.section-texte h3 {
  margin-bottom: 0.8rem;
  color: #1cce5b;
  font-size: 1.3rem;
  font-weight: lighter;
  border-bottom: 1px solid #1cce5b40;
  padding-bottom: 0.3rem;
}
/* 📄 Bloc de texte : comportement, particularites, identification */.section-texte ul {
  list-style: disc;
  padding-left: 1.5rem;
  line-height: 1.6;
}

/* === COLONNE DROITE === */
.col-droite {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

/* === STATS MODERNES DYNAMIQUES === */
/* 📊 Bloc lateral des statistiques dynamiques du fantome */.fantome-stats-modern {
background: #110024d9;
backdrop-filter: blur(4px);

  padding: 1.5rem;
  border-radius: 12px;
border: 1px solid;
border-image: linear-gradient(to right, #090013, #1cce5b, #090013) 1;

  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
/* 📊 Bloc lateral des statistiques dynamiques du fantome */.fantome-stats-modern h3 {
  text-align: center;
  color: #1cce5b;
  font-size: 1.3rem;
  font-weight: lighter;
  margin-bottom: 0.5rem;
  border-bottom: 1px solid #1cce5b60;
  padding-bottom: 0.4rem;
}
.stats-values {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.stat-box {
  background: #110024;
  padding: 0.6rem 1rem;
  border-radius: 8px;
border: 1px solid;
border-image: linear-gradient(to right, #090013, #1cce5b, #090013) 1;

}
.stat-box .label {
  font-size: 1rem;
  color: #dbdbdb;
}
.stat-box .value {
  font-size: 1.3rem;
  color: #1cce5b;
}


.stat-box audio.stat-audio {
  margin-top: 0.5rem;
  width: 100%;
  background-color: #110024;
  border-radius: 50px;
  outline: none;
  border: 1px solid #1cce5b;
  box-shadow: 0 0px 15px #1cce5b;

}

.stat-box audio.stat-audio:hover {
  transform: scale(1.02);
}

.stat-box audio::-webkit-media-controls-panel {
  background-color: #110024;
  border-radius: 6px;
}

.stat-box audio::-webkit-media-controls-play-button {
  filter: invert(40%) sepia(100%) saturate(500%) hue-rotate(90deg);
}

/* 🌿 Personnalisation verte du lecteur audio */
audio.stat-audio::-webkit-media-controls-panel {
  background-color: #110024;
  border-radius: 6px;
}

audio.stat-audio::-webkit-media-controls-play-button,
audio.stat-audio::-webkit-media-controls-mute-button,
audio.stat-audio::-webkit-media-controls-volume-slider,
audio.stat-audio::-webkit-media-controls-timeline,
audio.stat-audio::-webkit-media-controls-current-time-display,
audio.stat-audio::-webkit-media-controls-time-remaining-display {
  filter: invert(40%) sepia(100%) saturate(500%) hue-rotate(90deg);
}

/* Texte vert (temps actuel, duree, volume) */
audio.stat-audio::-webkit-media-controls-time-remaining-display,
audio.stat-audio::-webkit-media-controls-current-time-display {
  color: #1cce5b !important;
  font-weight: bold;
}






/* === Seuil de chasse === */
/* ⚡ Indicateur du seuil de chasse (barre coloree) */.stat-seuil {
  margin-bottom: 1rem;

}

/* ⚡ Indicateur du seuil de chasse (barre coloree) */.stat-seuil .label {
  display: flex;
  align-items: center;
  font-weight: bold;
  margin-bottom: 0.3rem;
  gap: 0.4rem;
  color: #ffffffcc;
}

/* ⚡ Indicateur du seuil de chasse (barre coloree) */.stat-seuil .label::before {
  content: "⚡";
  font-size: 1rem;
  color: #1cce5b;
}

.seuil-bar {
  background: #222;
  border-radius: 4px;
  height: 20px;
  overflow: hidden;
  position: relative;
    border: 1px solid;
border-image: linear-gradient(to right, #090013, #1cce5b, #090013) 1;
}

.seuil-fill {
  height: 100%;
  line-height: 20px;
  text-align: right;
  padding-right: 8px;
  color: white;
  font-size: 0.9rem;
  font-weight: bold;
  transition: width 1s ease;
  background: linear-gradient(90deg, #1cce5b, #0e9b40);
}

.seuil-fill.low {
  background: linear-gradient(90deg, #ff5f5f, #a30000);
}

.seuil-fill.mid {
  background: linear-gradient(90deg, #ffc107, #cc8a00);
}






/* Remarque */
/* 💬 Bloc de remarque supplementaire avec image */.stat-note {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-style: italic;
  color: #dbdbdb;
  background: #110024;
border: 1px solid;
border-image: linear-gradient(to right, #090013, #1cce5b, #090013) 1;
  padding: 0.6rem 1rem;
  border-radius: 8px;
}
/* 💬 Bloc de remarque supplementaire avec image */.stat-note img {
  width: 68px;
  height: 68px;
}

/* 💬 Bloc de remarque supplementaire avec image */.stat-note img:hover {
  transform: scale(1.05);
}





/* === PARTICULES FLOTTANTES === */

.with-particles {
  position: relative;
  z-index: 1;
}

/* ✨ Particules animees en fond de carte ou bloc */.particles-floating {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}
/* ✨ Particules animees en fond de carte ou bloc */.particles-floating .particle {
  position: absolute;
  width: 6px;
  height: 6px;
  background-color: #1cce5b;
  border-radius: 50%;
  opacity: 0.5;
  animation: floatParticle ease-in-out infinite;
}

@keyframes floatParticle {
  0% {
    transform: translate(0, 0) scale(var(--scale));
    opacity: 0.4;
  }
  50% {
    transform: translate(var(--x), var(--y)) scale(var(--scale));
    opacity: 0.9;
  }
  100% {
    transform: translate(0, 0) scale(var(--scale));
    opacity: 0.4;
  }
}






.fantomes-bg {
  position: fixed;
  inset: 0;
background: url('/assets/images/FONDECRAN1.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;
}

.fantomes-24-bg {
  position: fixed;
  inset: 0;
background: url('/assets/images/FONDECRAN2.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%; }
}







/* === RESPONSIVE pour fantomes.html === */
/* 📱 Responsive mobile : reorganise les cartes / stats / blocs */@media (max-width: 768px) {
  .grid-container {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

/* 🪞 Carte individuelle d’un fantome sur la grille */  .ghost-card {
    padding: 1rem 0.5rem;
  }

  .grid-container img:hover {
    transform: scale(1.02);
  }

/* 🪞 Carte individuelle d’un fantome sur la grille */  .ghost-card img {
    width: 90%;
    margin: 0 auto 1rem;
  }

/* 🪞 Carte individuelle d’un fantome sur la grille */  .ghost-card .proof-icons img {
    width: 80px;
    height: 80px;
  }
}


/* === RESPONSIVE pour esprit.html === */
/* 📱 Responsive mobile : reorganise les cartes / stats / blocs */@media (max-width: 768px) {
/* 🧱 Grille principale : image a gauche / stats a droite */  .layout-fantome {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .col-gauche, .col-droite {
    gap: 1.5rem;
  }

  .image-container {
    transform: none;
  }

  .image-container img {
    width: 100%;
    max-width: 100%;
  }

  .proofs-on-image {
    position: static;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 0.6rem;
    margin-top: 1rem;
    flex-wrap: wrap;
  }

/* 🎯 Conteneur d'une preuve avec effet tournant */  .proofs-on-image .proof-wrapper {
    width: 80px;
    height: 80px;
    position: relative;
    flex-shrink: 0;
  }

  .proofs-on-image .proof-img,
  .proofs-on-image .proof-circle {
    width: 80px;
    height: 80px;
    position: absolute;
    top: 0;
    left: 0;
    object-fit: contain;
  }

  .proofs-on-image .proof-circle {
    z-index: 1;
    animation: spin 8s linear infinite;
    pointer-events: none;
  }

  .proofs-on-image .proof-img {
    z-index: 2;

  }



/* 🧠 Titre + emoji du fantome en haut de page individuelle */  .ghost-header-title {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    text-align: center;
  }

/* 🧠 Titre + emoji du fantome en haut de page individuelle */  .ghost-header-title img {
    width: 120px;
    height: 120px;
  }

/* 🧠 Titre + emoji du fantome en haut de page individuelle */  .ghost-header-title h2 {
    font-size: 3rem;
  }

/* 📄 Bloc de texte : comportement, particularites, identification */  .section-texte h3 {
    font-size: 1.3rem;
  }

/* 📄 Bloc de texte : comportement, particularites, identification */  .section-texte {
    padding: 1rem;
    font-size: 1rem;
  }

/* 📊 Bloc lateral des statistiques dynamiques du fantome */  .fantome-stats-modern h3 {
    font-size: 1.3rem;
  }

  .stat-box .value {
    font-size: 1.3rem;
  }

  .stat-box .label {
    font-size: 1rem;
  }

/* ⚡ Indicateur du seuil de chasse (barre coloree) */.stat-seuil .label {
  font-size: 1rem;
}

/* 💬 Bloc de remarque supplementaire avec image */  .stat-note {
    flex-direction: column;
    text-align: center;
    gap: 0.4rem;
  }

/* 💬 Bloc de remarque supplementaire avec image */  .stat-note img {
    width: 80px;
    height: 80px;
  }

/* 💬 Bloc de remarque supplementaire avec image */  .stat-note span {
    font-size: 1rem;
  }
}




/* 🔼 Bouton Retour en Haut pour la page fantomes */#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 pour la page fantomes */#back-to-top:focus {
  outline: 2px solid #fff;
  outline-offset: 2px;
}








.illustration-images img {
  width: 250px;
  height: 150px;
  object-fit: cover;
  border: 1px solid;
  border-image: linear-gradient(to right, #090013, #1cce5b, #090013) 1;
  border-radius: 6px;
  transition: transform 0.3s ease;
  cursor: pointer;
}

.illustration-images img:hover {
  transform: scale(1.1);
  box-shadow: 0 0 10px #1cce5b88;
}

.illustration-item {
  position: relative;
  display: inline-block;
  border-radius: 6px;
  overflow: hidden;
}

.illustration-item img {
  display: block;
  width: 100%;
  height: 160px;
  object-fit: cover;
  border: 1px solid;
  border-image: linear-gradient(to right, #090013, #1cce5b, #090013) 1;
  border-radius: 6px;
  transition: transform 0.3s ease;
}

.illustration-item img:hover {
  transform: scale(1.1);
  box-shadow: 0 0 10px #1cce5b88;
}

.illustration-overlay-title {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #090013;
  color: #1cce5b;
  font-family: 'LazyDog', cursive;
  font-size: 1rem;
  text-align: center;
  padding: 4px 0;
  z-index: 2;
  border: 1px solid;
  border-image: linear-gradient(to right, #090013, #1cce5b, #090013) 1;
}



.modal-equipement {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(9, 0, 19, 0.9);
  align-items: center;
  justify-content: center;
}

.modal-equipement-content {
  max-width: 600px;
  height: auto;
  border: 1px solid;
  border-image: linear-gradient(to right, #090013, #1cce5b, #090013) 1;
  border-radius: 10px;
  object-fit: cover;
  background-color: transparent;
  animation: zoomIn 0.3s ease;
}

.modal-equipement-close {
  position: absolute;
  top: 30px;
  right: 40px;
  color: #1cce5b;
  font-size: 2.5rem;
  font-weight: bold;
  cursor: pointer;
  background: none;
  border: none;
}

@keyframes zoomIn {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}
