/* Reset de base */
*,
*::before,
*::after {
  box-sizing: border-box;
}
* {
  margin: 0;
  padding: 0;
}
body, html {
  height: 100%;
  font-family: 'Segoe UI', Arial, Helvetica, sans-serif;
  background: linear-gradient(135deg, #1a1a2e 60%, #16213e 100%);
  color: #fff;
}

/* Header et titres */
header {
  text-align: center;
  padding: 2rem 0 1rem 0;
}
h1 {
  font-size: 2.5rem;
  letter-spacing: 2px;
  color: #e94560;
  margin-bottom: 0.5rem;
}
h3 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

/* Galerie d'images */
.gallery {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin: 2rem 0;
}
.gallery img {
  width: 220px;
  height: 320px;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  border: 3px solid #e94560;
  transition: transform 0.3s;
}
.gallery img:hover {
  transform: scale(1.08);
}

/* Bouton Commencer */
.start-btn {
  display: block;
  margin: 2rem auto;
  padding: 1rem 2.5rem;
  background: #e94560;
  color: #fff;
  font-size: 1.3rem;
  border-radius: 30px;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(233,69,96,0.2);
  transition: background 0.3s;
  text-align: center;
  width: fit-content;
  border: none;
  cursor: pointer;
}
.start-btn:hover {
  background: #f7b267;
  color: #1a1a2e;
}

/* Quiz container */
#app {
  background: #22223b;
  border-radius: 12px;
  padding: 32px;
  box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.2),
    0 8px 10px -6px rgb(0 0 0 / 0.1);
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: min(100%, 500px);
  margin: 2rem auto;
}

/* Boutons quiz */
button {
  outline: none;
  cursor: pointer;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 500;
  padding: 10px 24px;
  border: none;
  color: #fff;
  background-color: #e94560;
  transition: background-color 0.17s ease, color 0.17s ease;
  margin-top: 1rem;
}
button:hover {
  background-color: #f7b267;
  color: #1a1a2e;
}

/* Réponses */
.answers {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
label {
  padding: 12px;
  border: 2px solid #64748b;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 1.1rem;
  background: #23234b;
  color: #fff;
  transition: border-color 0.2s, background 0.2s;
}
label:hover {
  border-color: #e94560;
  background: #2a2a4d;
}
input[type="radio"] {
  accent-color: #e94560;
  width: 20px;
  height: 20px;
}
label:has(:checked) {
  background-color: #e94560;
  color: #fff;
  border-color: #f7b267;
}

/* Progression */
progress {
  width: 100%;
  height: 18px;
  margin-bottom: 1rem;
}

/* Feedback */
.correct {
  background-color: #bbf7d0 !important;
  color: #22223b !important;
}
.incorrect {
  background-color: #fecaca !important;
  color: #22223b !important;
}

/* Fin du quiz */
#app h1 {
  color: #f7b267;
  font-size: 2rem;
  margin-bottom: 1rem;
}
#app h2 {
  color: #e94560;
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

/* Footer */
footer {
  text-align: center;
  padding: 1rem 0;
  font-size: 1rem;
  color: #aaa;
}
/* ...existing code... */

/* Accueil quiz */
.quiz-selection {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin: 2rem 0;
}
.quiz-card {
  background: #23234b;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  padding: 1.5rem;
  width: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.2s;
}
.quiz-card:hover {
  transform: scale(1.04);
}
.quiz-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  font-weight: bold;
  letter-spacing: 2px;
  text-align: center;
  animation: pulse 1.5s infinite;
}
.quiz-title.jujutsu { color: #e94560; }
.quiz-title.demon { color: #f7b267; }
.quiz-title.titans { color: #64748b; }
.quiz-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 1rem;
  border: 2px solid #e94560;
}
.choose-btn {
  background: #e94560;
  color: #fff;
  border: none;
  border-radius: 30px;
  padding: 0.8rem 2rem;
  font-size: 1.1rem;
  cursor: pointer;
  margin-top: 0.5rem;
  transition: background 0.3s;
}
.choose-btn:hover {
  background: #f7b267;
  color: #23234b;
}
@keyframes pulse {
  0% { text-shadow: 0 0 10px #fff2, 0 0 20px #e94560; }
  50% { text-shadow: 0 0 20px #fff5, 0 0 40px #e94560; }
  100% { text-shadow: 0 0 10px #fff2, 0 0 20px #e94560; }
}

/* Responsive accueil */
@media (max-width: 900px) {
  .quiz-selection {
    flex-direction: column;
    align-items: center;
    gap: 2rem;
  }
  .quiz-card {
    width: 95vw;
    max-width: 400px;
  }
}

/* Responsive mobile */
@media (max-width: 700px) {
  header {
    padding: 1rem 0 0.5rem 0;
  }
  h1 {
    font-size: 1.5rem;
  }
  .gallery {
    flex-direction: column;
    gap: 1rem;
    margin: 1rem 0;
    align-items: center;
  }
  .gallery img {
    width: 90vw;
    max-width: 320px;
    height: 180px;
  }
  .start-btn {
    font-size: 1rem;
    padding: 0.8rem 1.5rem;
    margin: 1rem auto;
  }
  #app {
    padding: 16px;
    width: 98vw;
    max-width: 98vw;
    margin: 1rem auto;
  }
  h3 {
    font-size: 1.1rem;
  }
  .answers label {
    font-size: 1rem;
    padding: 8px;
    gap: 10px;
  }
  button {
    font-size: 0.95rem;
    padding: 8px 16px;
  }
  progress {
    height: 12px;
  }
  #app h1 {
    font-size: 1.3rem;
  }
  #app h2 {
    font-size: 1rem;
  }
  footer {
    font-size: 0.9rem;
    padding: 0.5rem 0;
  }
}