/* Styles pour la section des personnages de l'utilisateur */
.home-section-characters {
  padding: 2rem 0;
  margin-top: 2rem;
  background: transparent;
  width: 90%;
  max-width: 90%;
  margin-left: auto;
  margin-right: auto;
  position: relative;
}

/* Titre de la section */
.section-title-container {
  text-align: center;
  margin-bottom: 2rem;
}

.section-title {
  color: white;
  font-size: 2.2rem;
  font-weight: 600;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  margin: 0;
  display: inline-block;
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 3px;
  background: linear-gradient(90deg, #7c3aed, #a78bfa);
  border-radius: 3px;
}

.slider-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin: 0 auto 2rem;
}

.characters-slider-wrapper {
  position: relative;
  overflow: hidden;
  width: 100%;
}

.characters-container {
  display: flex;
  gap: 2rem;
  padding: 1rem 0;
  transition: transform 0.5s ease;
  flex-wrap: nowrap;
  justify-content: flex-start;
  width: 100%;
}

.character-card {
  background: transparent;
  min-width: 120px;
  max-width: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: visible;
}

.character-card:hover {
  transform: translateY(-8px);
}

.character-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  transition: all 0.3s ease;
  background-color: rgba(124, 58, 237, 0.2);
}

.character-card:hover .character-avatar {
  transform: scale(1.08);
  border-color: white;
  box-shadow: 0 8px 25px rgba(124, 58, 237, 0.5);
}

.character-info {
  margin-top: 0.6rem;
  text-align: center;
  width: 100%;
}

.character-name {
  font-weight: 600;
  color: white;
  font-size: 1.1rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
  transition: all 0.3s ease;
}

.character-card:hover .character-name {
  transform: scale(1.05);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.character-role {
  display: none;
}

.create-character-card {
  background: transparent;
}

.create-character-card .plus-icon {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: rgba(124, 58, 237, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 3rem;
  font-weight: bold;
  transition: all 0.4s ease;
  border: 3px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.create-character-card:hover .plus-icon {
  transform: rotate(90deg) scale(1.08);
  background: rgba(124, 58, 237, 0.5);
  border-color: white;
  box-shadow: 0 8px 25px rgba(124, 58, 237, 0.5);
}

.create-character-text {
  font-weight: 600;
  color: white;
  font-size: 1.1rem;
  text-align: center;
  margin-top: 0.6rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
  transition: all 0.3s ease;
}

.create-character-card:hover .create-character-text {
  transform: scale(1.05);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

/* Styles pour le conteneur d'informations des personnages */
.character-info {
  margin-top: 0;
  text-align: center;
  width: 100%;
  background: transparent;
}

/* Styles pour les flu00e8ches de navigation */
.slider-arrow {
  background: rgba(0, 0, 0, 0.5);
  border: 2px solid rgba(255, 255, 255, 0.8);
  width: 60px;
  height: 55px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: white;
  font-size: 2rem;
  transition: all 0.3s ease;
  position: relative;
  z-index: 30;
  opacity: 1;
  margin: 0 15px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
  padding: 0;
  line-height: 1;
}

.slider-arrow:hover {
  transform: scale(1.1);
  background: rgba(0, 0, 0, 0.7);
  border-color: white;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

.slider-arrow:focus {
  outline: none;
}

.slider-arrow i {
  display: none;
}

/* Style pour les indicateurs de pagination */
.slider-pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 20px;
}

.pagination-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: all 0.2s ease;
}

.pagination-dot.active {
  background: white;
  transform: scale(1.2);
}

.characters-loading {
  text-align: center;
  color: white;
  font-style: italic;
  padding: 1.5rem;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}
