/* Characters panel toggle */
.toggle-btn {
  position: fixed;
  top: 15px;
  left: 15px;
  z-index: 1001;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 10px;
  font-family: "ExposureTrial", sans-serif;
  display: none;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
  opacity: 0;
}

.toggle-btn.visible {
  display: flex;
  opacity: 1;
  transition: opacity 0.5s ease;
}

.toggle-btn:hover {
  transform: scale(1.1);
}

.toggle-svg {
  width: 16px;
  height: 16px;
  display: block;
  transition: transform 0.3s ease;
}

.toggle-btn.active .toggle-svg {
  transform: rotate(180deg);
}

/* Characters panel */
.characters-panel {
  position: fixed;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: #fff;
  z-index: 1000;
  transform: translateX(-100%);
  transition: transform 0.6s ease-in-out;
  overflow-y: auto;
  font-family: "ExposureTrial", system-ui, -apple-system, Segoe UI, Roboto,
    sans-serif;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
  display: grid;
  place-items: center;
}

.characters-panel:not(.hidden) {
  transform: translateX(0);
}

.characters-content {
  padding: 2rem;
  text-align: center;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.characters-title {
  margin: 0 0 1.2rem 0;
  color: rgb(200, 0, 0);
  font-weight: 400;
  font-size: clamp(24px, 8vw, 48px);
  line-height: 1.05;
  text-align: center;
}

.characters-panel ul {
  list-style: none;
  margin: 0;
  padding: 0;
  text-align: center;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.characters-panel .nom {
  font-weight: bold;
  list-style: none;
  margin: 0;
  padding: 0;
  color: #000;
  font-size: clamp(18px, 5vw, 28px);
  margin-top: 30px;
  text-align: center;
}

.characters-panel .role {
  font-size: clamp(15px, 2vw, 20px);
  list-style: none;
  color: gray;
  font-style: italic;
  text-align: center;
}

/* Améliorations pour mobile */
@media (max-width: 700px) {
  .toggle-btn {
    top: 10px;
    left: 10px;
    padding: 8px;
  }

  .toggle-svg {
    width: 14px;
    height: 14px;
  }

  .characters-panel {
    width: 100vw;
    place-items: start center;
    padding-top: 1rem;
  }

  .characters-content {
    padding: 0.5rem 1rem 1.5rem 1rem;
    width: 90%;
    max-width: 100%;
    justify-content: flex-start;
    padding-top: 3rem;
  }

  .characters-title {
    font-size: clamp(28px, 10vw, 60px);
    margin-bottom: 1rem;
    margin-top: 0;
  }

  .characters-panel .nom {
    font-size: clamp(18px, 6vw, 32px);
    margin-top: 20px;
  }

  .characters-panel .role {
    font-size: clamp(14px, 3vw, 22px);
  }
}
