/*
Theme Name: Kadence Enfant
Theme URI: https://quizeducatif.com
Description: Thème enfant pour Kadence
Author: Amy
Author URI: https://quizeducatif.com
Template: kadence
Version: 1.0
*/

/*
Theme Name: Kadence Enfant
Template: kadence
*/

:root {
  --blue: #71c9f8;
  --yellow: #ffe066;
  --mint: #b9f8d3;
  --pink: #fa9fc1;
  --white: #fff;
  --violet: #a98cf8;
  --shadow: 0 2px 20px rgba(70, 170, 255, 0.08);
  --radius: 18px;
  --transition: 0.25s cubic-bezier(.4,0,.2,1);
  --text: #2a2a44;
}

/* ---- RESET ---- */
body {
  font-family: 'Montserrat', Arial, sans-serif;
  background: #f5faff;
  color: var(--text);
  margin: 0;
  padding: 0;
}

/* ---- HEADER ---- */
header {
  background: linear-gradient(90deg, var(--blue), var(--yellow), var(--mint));
  box-shadow: var(--shadow);
  padding: 10px 5vw;
  text-align: center;
}

header h1 {
  color: var(--text);
  font-size: 1.8em;
  font-weight: 700;
  text-shadow: 0 2px 12px #fff7;
}

/* ---- CATEGORY PAGE ---- */
.quiz-category-container {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
  padding: 40px 20px;
}

.quiz-category {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px 30px;
  width: 260px;
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition);
}

.quiz-category:hover {
  transform: scale(1.04);
  box-shadow: 0 4px 20px rgba(113, 201, 248, 0.25);
}

.quiz-category h2 {
  font-size: 1.4em;
  color: var(--violet);
  margin-bottom: 12px;
}

.quiz-category ul {
  list-style: none;
  padding: 0;
}

.quiz-category a {
  display: inline-block;
  color: var(--text);
  background: var(--mint);
  border-radius: 12px;
  padding: 10px 16px;
  margin-top: 8px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 2px 10px #b9f8d366;
  transition: background var(--transition), transform var(--transition);
}

.quiz-category a:hover {
  background: var(--yellow);
  transform: scale(1.05);
}

/* ---- QUIZ ---- */
.quiz-container {
  max-width: 600px;
  margin: 50px auto;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 35px 25px 45px;
  text-align: center;
  animation: fadeIn 0.6s;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px);}
  to { opacity: 1; transform: translateY(0);}
}

.quiz-question {
  font-size: 1.25em;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text);
}

.quiz-answers {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.quiz-answer-btn {
  background: var(--blue);
  color: #1f1f2a;
  border: none;
  padding: 12px 20px;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
  box-shadow: var(--shadow);
}

.quiz-answer-btn:hover:not([disabled]) {
  background: var(--mint);
  transform: scale(1.03);
}

.quiz-answer-btn.correct {
  background: var(--mint);
  color: #168f2a;
  animation: correctPop 0.4s;
}

.quiz-answer-btn.incorrect {
  background: var(--pink);
  color: #c91010;
  animation: shake 0.35s;
}

@keyframes correctPop {
  0% { transform: scale(1);}
  40% { transform: scale(1.08);}
  100% { transform: scale(1);}
}

@keyframes shake {
  0% { transform: translateX(0);}
  30% { transform: translateX(-7px);}
  60% { transform: translateX(7px);}
  100% { transform: translateX(0);}
}

/* ---- BUTTONS ---- */
.quiz-next-btn, .quiz-restart-btn {
  display: inline-block;
  background: var(--blue);
  color: var(--text);
  font-weight: 700;
  padding: 12px 26px;
  border: none;
  border-radius: var(--radius);
  margin-top: 18px;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
  box-shadow: 0 2px 10px #b9f8d366;
}

.quiz-next-btn:hover, .quiz-restart-btn:hover {
  background: var(--mint);
  transform: scale(1.05);
}

/* ---- SCORE ---- */
.quiz-progress-bar {
  background: #e8faff;
  border-radius: 10px;
  overflow: hidden;
  height: 14px;
  margin: 20px 0;
}

.quiz-progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--blue), var(--yellow), var(--mint));
  width: 0%;
  transition: width 0.5s;
}

.quiz-score {
  margin-top: 16px;
  font-size: 1.1em;
  color: #185a3a;
  font-weight: 600;
}

/* ---- FINAL ---- */
.quiz-final {
  text-align: center;
}

.quiz-final .emoji {
  font-size: 2.3em;
}

.quiz-final .msg {
  font-size: 1.2em;
  color: #185a3a;
  margin: 10px 0 20px;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 600px) {
  .quiz-container {
    padding: 25px 18px;
  }
  .quiz-answer-btn {
    font-size: 0.95em;
  }
}
/* --- STYLE DE LA PAGE CATÉGORIE DE QUIZ --- */

.quizedu-themes {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
  padding: 40px 20px;
}

.quizedu-themes h3 {
  background: #71C9F8;
  color: #fff;
  font-size: 1.4em;
  text-align: center;
  border-radius: 10px;
  padding: 12px 20px;
  width: 100%;
  box-shadow: 0 4px 10px rgba(113, 201, 248, 0.25);
}

/* Les sujets (boutons cliquables) */
.quizedu-themes ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
}

.quizedu-themes li {
  margin: 0;
}

.quizedu-themes a {
  display: inline-block;
  background: #FFE066;
  color: #1f1f2a;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 10px;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: all 0.25s ease;
}

.quizedu-themes a:hover {
  background: #A98CF8;
  color: #fff;
  transform: scale(1.05);
}

/* Petits effets de mouvement */
.quizedu-themes a:active {
  transform: scale(0.95);
}

/* Texte secondaire (ex: le nom du sujet entre parenthèses) */
.quizedu-themes small {
  color: rgba(255,255,255,0.85);
  font-size: 0.85em;
}
.quiz-next-btn {
  background: var(--blue) !important;
  color: var(--text) !important;
}
.quiz-next-btn:hover {
  background: var(--mint) !important;
}




