/* Import police manga */
@import url("https://fonts.googleapis.com/css2?family=Bangers&display=swap");

/* Body */
body {
  background: radial-gradient(circle at top, #1e293b, #020617);
  color: #f8fafc;
  font-family: "Bangers", cursive;
  margin: 0;
  padding: 0;
}

/* Hero Section */
section.py-5.text-center.container {
  padding: 100px 20px;
  color: white;
  text-shadow: 2px 2px #000;
}

section.py-5.text-center.container h1 {
  font-size: 3rem;
  font-weight: bold;
}

section.py-5.text-center.container p.lead {
  font-size: 1.25rem;
  margin: 10px 0;
}

/* Bouton Hero */
section.py-5.text-center.container .btn {
  background: linear-gradient(45deg, #ff6a00, #ff0000);
  border-radius: 12px;
  color: white;
  font-weight: bold;
  padding: 12px 25px;
  font-size: 1.1rem;
  transition: 0.3s;
  box-shadow: 0 5px 0 #b91c1c;
}

section.py-5.text-center.container .btn:hover {
  transform: scale(1.05) translateY(-2px);
  box-shadow: 0 7px 0 #7f1d1d;
}

/* Séries cards */
.album.py-5.bg-body-tertiary {
  background: #020617;
}

.card {
  background: #1e293b;
  border-radius: 16px;
  border: 2px solid transparent;
  color: white;
  transition: 0.3s;
  cursor: pointer;
}

.card:hover {
  transform: scale(1.05) translateY(-5px);
  border-color: #ff6a00;
  box-shadow: 0 15px 30px rgba(255, 106, 0, 0.4);
}

/* Card images */
.img-serie {
  width: 100%;
  height: 250px;
  border-radius: 12px;
  transition: 0.3s;
}

.img-serie:hover {
  transform: scale(1.03);
}

/* Card text */
.card-body p.card-text {
  font-weight: bold;
  font-size: 1.2rem;
  text-align: center;
  color: #f8fafc;
}

/* Navbar */
.navbar {
  background: linear-gradient(90deg, #020617, #1e293b);
  border-bottom: 2px solid #ff6a00;
}

.navbar .nav-link {
  color: white !important;
  font-weight: 600;
}

.navbar .nav-link:hover {
  color: #ff6a00 !important;
}

/* Footer */
footer.py-5 {
  background: #1e293b;
  color: white;
  text-align: center;
}

/* Form-check quiz */
.form-check {
  background: #334155;
  border-radius: 10px;
  margin-bottom: 10px;
  transition: 0.2s;
  cursor: pointer;
  padding-left: 0;
}

.form-check-label {
  display: block;
  width: 100%;
  padding: 15px;
  color: white;
  transition: 0.2s;
}

.form-check-label:hover {
  background: linear-gradient(45deg, #ff6a00, #ff0000);
}

.form-check-input {
  position: absolute; /* hors du flux */
  opacity: 0; /* invisible */
  width: 0; /* pas de largeur */
  height: 0; /* pas de hauteur */
  margin: 0;
  pointer-events: auto; /* IMPORTANT pour que le label puisse le sélectionner */
}

.form-check-label {
  display: block;
  width: 100%;
  padding: 15px;
  border-radius: 10px;
  cursor: pointer;
  background: #334155;
  color: white;
  transition: 0.2s;
}

.form-check-input:checked + .form-check-label {
  background: linear-gradient(45deg, #ff6a00, #ff0000);
  font-weight: bold;
}

.question {
  background: #1e293b;
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 20px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
  transition: transform 0.2s ease;
}
.question:hover {
  transform: translateY(-3px);
}

/* Question container */
.form-check,
.question {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Texte des questions */
.question p.fw-bold {
  color: whitesmoke;
  font-size: 1.3rem; /* taille lisible */
  font-weight: bold;
  text-align: center;
  margin-bottom: 15px;
  text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.2); /* léger glow pour style manga */
  font-family: "Bangers", cursive; /* si tu veux garder le style manga */
}

@media (max-width: 768px) {
  .form-check,
  .question {
    max-width: 100%;
  }
}

/* Bonne réponse */
.answer-correct {
  background: linear-gradient(45deg, #16a34a, #22c55e) !important;
  color: white !important;
  border: 2px solid #15803d;
  box-shadow: 0 0 15px rgba(34, 197, 94, 0.8);
  transform: none;
}

.answer-correct::after {
  content: " ✔";
  font-weight: bold;
}

/* Mauvaise réponse */
.answer-wrong {
  background: linear-gradient(45deg, #dc2626, #ef4444) !important;
  color: white !important;
  border: 2px solid #991b1b;
  box-shadow: 0 0 15px rgba(239, 68, 68, 0.8);
  transform: none;
}

.answer-wrong::after {
  content: " ✖";
  font-weight: bold;
}

/* Supprime hover & clic en mode résultat */
.quiz-result .form-check-label {
  pointer-events: none;
  cursor: default;
}

.quiz-result .form-check-label:hover {
  background: inherit;
  color: inherit;
  transform: none;
  box-shadow: none;
}

/* Animation pop */
@keyframes pop {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

.answer-correct,
.answer-wrong {
  animation: pop 0.3s ease;
}

.hero-section {
  position: relative;
  min-height: 500px;
  background: linear-gradient(
    135deg,
    rgba(255, 106, 0, 0.6),
    rgba(255, 69, 0, 0.3)
  );
  color: white;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.hero-image {
  width: 100%;
  max-width: 500px;
  height: auto;
  object-fit: contain;
  display: block;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 0 15px rgba(255, 106, 0, 0.6)); /* glow orange */
}

.hero-image::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100px; /* zone de fondu */
  height: 100%;
  background: linear-gradient(
    to right,
    rgba(30, 41, 59, 1),
    rgba(30, 41, 59, 0)
  ); /* fond section vers transparent */
}

.hero-section .hero-content {
  position: relative;
  z-index: 2;
}

@media (max-width: 992px) {
  .hero-image {
    display: none;
  }
}

.hero-btn {
  background: #ff6a00;
  color: white;
  border-radius: 10px;
  padding: 12px 30px;
  font-weight: bold;
  transition: 0.3s;
}

.hero-btn:hover {
  background: #ff4500;
  transform: scale(1.05);
}

.hero-content {
  padding-right: 50px; /* espace pour l'image à droite */
}

/* Titre section */
.section-title {
  font-family: "Bangers", cursive;
  font-size: 2.5rem;
  color: #ff6a00;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

/* Card série */
.card-series {
  background: #1e293b;
  border-radius: 16px;
  border: 2px solid transparent;
  transition: 0.3s;
  cursor: pointer;
  overflow: hidden;
  position: relative;
}

/* Image série */
.card-series .img-serie {
  width: 100%;
  height: 250px;
  border-radius: 12px;
  transition: 0.3s;
}

/* Card texte */
.card-series .card-body p.card-text {
  font-weight: bold;
  font-size: 1.2rem;
  color: #f8fafc;
  text-align: center;
  margin: 10px 0;
}

/* Hover effet manga pop */
.card-series:hover {
  transform: scale(1.05) translateY(-5px);
  border-color: #ff6a00;
  box-shadow: 0 15px 30px rgba(255, 106, 0, 0.5);
}

/* Hover image */
.card-series:hover .img-serie {
  transform: scale(1.08) rotate(0.5deg);
  box-shadow: 0 10px 20px rgba(255, 106, 0, 0.4);
}

/* Mobile responsive */
@media (max-width: 768px) {
  .card-series .img-serie {
    height: 200px;
  }
}

.btn {
  background: linear-gradient(45deg, #ff6a00, #ff0000);
  border-radius: 12px;
  color: white;
  font-weight: bold;
  padding: 12px 25px;
  font-size: 1.1rem;
  transition: 0.2s; /* transition rapide pour réactivité */
  box-shadow: 0 5px 0 #b91c1c;
  cursor: pointer;
}

/* Hover pour effet léger */
.btn:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 7px 0 #7f1d1d;
}

/* Effet “appui” au clic */
.btn:active {
  transform: translateY(2px) scale(0.98); /* descend légèrement et rétrécit */
  box-shadow: 0 2px 0 #7f1d1d; /* ombre plus courte */
}

.disabled {
  pointer-events: none;
  cursor: not-allowed;
}

.navbar-logo{
  width: 50px;
  height: 50px;
}