/* =============================
   BASE
============================= */
html {
  scroll-behavior: smooth;
}

:target {
  scroll-margin-top: 100px;
}

/* =============================
   FOND PRINCIPAL
============================= */
body.fond-salle-education-physique {
  min-height: 100dvh;

  background-image: url("../images/fonds/fond_salle_education_physique.webp");
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;

  background-attachment: fixed;
  background-color: #000;

  overflow-x: hidden;
  color: #fff;
}

/* =============================
   CONTENEUR PRINCIPAL
============================= */
.content_salle_education_physique {
  width: 92%;
  max-width: 1200px;

  margin: 1.5rem auto;
  padding: 1.2rem;

  display: flex;
  flex-direction: column;
  gap: 1.5rem;

  background: linear-gradient(
    180deg,
    rgba(255,255,255,0.02),
    rgba(0,0,0,0.04)
  );

  border-radius: 8px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.6);
}

/* =============================
   LISTE PERSONNAGES
============================= */
.liste-personnages {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* =============================
   CARTE PERSONNAGE
============================= */
.personnage {
  display: flex;
  flex-direction: column;
  align-items: center;

  gap: 1rem;

  padding: 1rem;

  background: rgba(0, 0, 0, 0.3);
  border-radius: 8px;

  box-shadow: 0 4px 15px rgba(0,0,0,0.6);
}

/* 💻 DESKTOP */
@media (min-width: 769px) {
  .personnage {
    flex-direction: row;
    align-items: flex-start;
  }
}

/* =============================
   IMAGE
============================= */
.perso-img {
  width: 100%;
  max-width: 160px;
  height: auto;

  border-radius: 6px;
  object-fit: cover;

  box-shadow: 0 0 10px rgba(0,0,0,0.6);
}

/* DESKTOP */
@media (min-width: 769px) {
  .perso-img {
    max-width: 200px;
  }
}

/* =============================
   CARTE TEXTE
============================= */
.perso-carte {
  width: 100%;
  flex: 1;

  padding: 1rem;

  border-radius: 10px;
  border: 2px solid rgba(255,255,255,0.2);

  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(3px);

  box-shadow: 0 0 12px rgba(0,0,0,0.6);
}

/* =============================
   TITRE
============================= */
.perso-carte h2 {
  margin-top: 0;

  text-transform: uppercase;
  letter-spacing: 1.2px;

  font-size: 1.2rem;

  border-bottom: 1px solid rgba(255,255,255,0.3);
  padding-bottom: .4rem;
}

/* DESKTOP */
@media (min-width: 769px) {
  .perso-carte h2 {
    font-size: 1.6rem;
  }
}

/* =============================
   TEXTE
============================= */
.perso-carte ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.perso-carte ul li {
  margin: .45rem 0;
  font-size: 0.95rem;
  line-height: 1.5;
}

@media (min-width: 769px) {
  .perso-carte ul li {
    font-size: 1.05rem;
  }
}

.perso-carte strong {
  color: #e0e0e0;
}

/* =============================
   HALO
============================= */
.explorateur-halo {
  cursor: pointer;
  position: relative;

  box-shadow:
    0 0 18px rgba(255, 160, 60, 0.85),
    0 0 40px rgba(255, 140, 40, 0.65),
    0 0 90px rgba(255, 120, 30, 0.45);

  animation: halo-lantern-pulse 5.5s ease-in-out infinite;
  transition: transform 0.3s ease;
}

.explorateur-halo:hover {
  transform: scale(1.03);
}

@keyframes halo-lantern-pulse {
  0%, 100% {
    box-shadow:
      0 0 18px rgba(255, 160, 60, 0.85),
      0 0 40px rgba(255, 140, 40, 0.65),
      0 0 90px rgba(255, 120, 30, 0.45);
  }
  50% {
    box-shadow:
      0 0 26px rgba(255, 180, 80, 0.95),
      0 0 55px rgba(255, 150, 60, 0.75),
      0 0 120px rgba(255, 130, 40, 0.6);
  }
}

/* =============================
   OVERLAY
============================= */
.wanted-overlay {
  position: fixed;
  inset: 0;

  background: rgba(0, 0, 0, 0.85);

  display: flex;
  justify-content: center;
  align-items: center;

  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;

  z-index: 9999;
}

.wanted-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.wanted-image {
  max-width: 90%;
  max-height: 90%;

  object-fit: contain;

  box-shadow: 0 0 40px rgba(0,0,0,0.8);
  border-radius: 4px;

  cursor: pointer;
}