/* 🌸 COREEN APP — KAWAII MAX 🌸 */

:root {
  --rose: #ff8fbd;
  --rose-clair: #ffe4f0;
  --violet: #ad96f8;
  --violet-clair: #eee9ff;
  --bleu: #8edcff;
  --bleu-clair: #e8f8ff;
  --menthe: #a9ead4;
  --jaune: #ffe28a;
  --texte: #594761;
}


/* ☁️ FOND */

body {
  color: var(--texte);

  background:
    radial-gradient(circle at 10% 15%,
      rgba(255,170,210,.35),
      transparent 180px),

    radial-gradient(circle at 90% 30%,
      rgba(140,220,255,.30),
      transparent 200px),

    radial-gradient(circle at 20% 80%,
      rgba(190,170,255,.25),
      transparent 200px),

    linear-gradient(
      145deg,
      #fff8fc,
      #fff0f7 40%,
      #f4f1ff 70%,
      #effaff
    );

  min-height: 100vh;
}


/* 🇰🇷 HEADER */

header {
  background: rgba(255,255,255,.90);

  border-bottom: 3px solid #ffd6e7;

  box-shadow:
    0 5px 20px rgba(130,90,150,.08);
}


/* 🐰 ACCUEIL */

.welcome {
  position: relative;
  overflow: hidden;

  border: 4px solid white;
  border-radius: 34px;

  background:
    linear-gradient(
      135deg,
      #ffd1e4,
      #eee3ff 52%,
      #dff5ff
    );

  box-shadow:
    0 10px 30px rgba(130,90,150,.15);
}


.welcome::before {
  content: "🐰";

  position: absolute;

  right: 30px;
  bottom: -12px;

  display: flex;
  align-items: center;
  justify-content: center;

  width: 105px;
  height: 105px;

  border-radius: 50%;

  background: rgba(255,255,255,.60);

  font-size: 65px;
}


.welcome::after {
  content: "🌸  ✨  ♡";

  position: absolute;

  right: 35px;
  top: 18px;

  font-size: 22px;
}


.welcome h1 {
  color: #6e5078;

  text-shadow:
    0 3px white;

  font-weight: 900;
}


.welcome p {
  color: #826e8b;

  font-weight: 700;
}


/* ⭐ PROGRESSION */

.progress-card {
  position: relative;

  background: rgba(255,255,255,.94);

  border: 3px solid #eee4ff;
  border-radius: 28px;

  box-shadow:
    0 8px 24px rgba(120,90,140,.12);
}


.progress-card::after {
  content: "⭐";

  position: absolute;

  right: 18px;
  top: -17px;

  font-size: 34px;
}


#progressFill {
  background:
    linear-gradient(
      90deg,
      var(--rose),
      var(--violet),
      var(--bleu)
    );

  border-radius: 999px;
}


/* 🌸 TITRE LEÇONS */

#lessonsTitle {
  text-align: center;

  color: #6e5678;

  font-weight: 900;
}


#lessonsTitle::before {
  content: "🌸 ";
}


#lessonsTitle::after {
  content: " 🌸";
}


/* 🍬 CARTES LEÇONS */

.lesson-card {
  position: relative;
  overflow: hidden;

  border: 3px solid white;
  border-radius: 27px;

  background:
    linear-gradient(
      145deg,
      white,
      #fff0f6
    );

  box-shadow:
    0 7px 0 rgba(120,90,140,.05),
    0 12px 25px rgba(120,90,140,.12);

  transition:
    transform .15s ease,
    box-shadow .15s ease;
}


.lesson-card:nth-child(4n + 2) {
  background:
    linear-gradient(
      145deg,
      white,
      #f0ebff
    );
}


.lesson-card:nth-child(4n + 3) {
  background:
    linear-gradient(
      145deg,
      white,
      #e9f9ff
    );
}


.lesson-card:nth-child(4n) {
  background:
    linear-gradient(
      145deg,
      white,
      #ecfff8
    );
}


.lesson-card::after {
  content: "♡";

  position: absolute;

  right: 12px;
  bottom: -12px;

  color: rgba(255,120,180,.22);

  font-size: 72px;

  transform: rotate(-15deg);
}


.lesson-card:hover {
  transform:
    translateY(-5px) rotate(-.5deg);
}


.lesson-card:active {
  transform: scale(.97);
}


.lesson-number {
  display: flex;

  align-items: center;
  justify-content: center;

  border-radius: 17px !important;

  background:
    linear-gradient(
      135deg,
      #ffc0d9,
      #d7ccff
    ) !important;

  color: #684f72 !important;

  box-shadow:
    inset 0 2px rgba(255,255,255,.8),
    0 4px 10px rgba(120,90,140,.12);

  font-weight: 900;
}


.lesson-card strong {
  color: #604b69;

  font-weight: 900;
}


/* 🎓 INTERROGATION */

.exam-card {
  border: 3px solid #cdbfff !important;

  background:
    linear-gradient(
      135deg,
      #ffe8f2,
      #eee8ff,
      #e5f8ff
    ) !important;
}


.exam-card::after {
  content: "🏆";
}


/* 🇰🇷 ÉCRAN LEÇON */

#lessonScreen {
  position: relative;

  border: 4px solid white;
  border-radius: 32px;

  background:
    rgba(255,255,255,.94);

  box-shadow:
    0 10px 30px rgba(120,90,140,.13);
}


#lessonScreen::before {
  content: "🌸 ✨";

  position: absolute;

  right: 20px;
  top: 15px;

  font-size: 23px;
}


.lesson-title {
  display: inline-block;

  padding: 7px 15px;

  border-radius: 999px;

  background:
    linear-gradient(
      135deg,
      #ffe2ef,
      #eee7ff
    );

  color: #8c6797 !important;

  font-weight: 900;
}


/* 🔤 CARTES HANGUL */

.sound-card {
  position: relative;

  border: 3px solid white;
  border-radius: 26px;

  background:
    linear-gradient(
      145deg,
      white,
      #fff0f6
    );

  box-shadow:
    0 6px 18px rgba(110,85,130,.10);
}


.sound-card:nth-child(3n + 2) {
  background:
    linear-gradient(
      145deg,
      white,
      #f1edff
    );
}


.sound-card:nth-child(3n) {
  background:
    linear-gradient(
      145deg,
      white,
      #eaf9ff
    );
}


.sound-card::after {
  content: "✦";

  position: absolute;

  right: 12px;
  top: 8px;

  color: #ff9fc8;

  font-size: 20px;
}


.sound-hangul,
.sound-example {
  color: #584363 !important;

  font-weight: 900 !important;

  text-shadow:
    0 2px white;
}


/* 🔊 AUDIO */

.listen-button {
  min-width: 52px;
  min-height: 52px;

  border: 3px solid white !important;
  border-radius: 18px !important;

  background:
    linear-gradient(
      135deg,
      #ff91bd,
      #ad98f5
    ) !important;

  box-shadow:
    0 5px 0 #d987b0,
    0 8px 15px rgba(140,90,150,.16);

  font-size: 20px;

  transition:
    transform .1s ease;
}


.listen-button:active {
  transform: translateY(4px);

  box-shadow:
    0 1px 0 #d987b0;
}


/* 🎮 QUIZ */

.quiz {
  position: relative;

  border: 3px solid #f0e5f4 !important;
  border-radius: 29px !important;

  background:
    linear-gradient(
      145deg,
      white,
      #fff9fc
    ) !important;

  box-shadow:
    0 8px 22px rgba(110,85,130,.10);
}


.quiz::before {
  content: "✨";

  position: absolute;

  right: 18px;
  top: -17px;

  font-size: 30px;
}


.answer {
  min-height: 58px;

  border: 3px solid #eadff0 !important;
  border-radius: 20px !important;

  background: white !important;

  color: #594762 !important;

  font-weight: 900 !important;

  box-shadow:
    0 5px 0 #eee5f2;

  transition:
    transform .1s ease;
}


.answer:hover {
  border-color: #ffacd0 !important;

  background: #fff0f6 !important;
}


.answer:active {
  transform: translateY(4px);
}


.answer.correct {
  background: #dcf9eb !important;

  border-color: #86dbb1 !important;
}


.answer.wrong {
  background: #ffe2e9 !important;

  border-color: #ff97ab !important;
}


/* 💕 BOUTONS */

.primary-button {
  border: 3px solid white !important;
  border-radius: 20px !important;

  background:
    linear-gradient(
      135deg,
      #ff91bd,
      #ad98f5
    ) !important;

  box-shadow:
    0 5px 0 #d987b0;

  font-weight: 900;
}


.back-button {
  border: 2px solid #eadcf0 !important;
  border-radius: 17px !important;

  background: white !important;

  color: #765f80 !important;

  font-weight: 800;
}


/* 🔄 RESET */

.reset-button {
  border: 2px dashed #e7bdd2 !important;

  border-radius: 20px !important;

  background:
    rgba(255,255,255,.7) !important;

  color: #a17791 !important;

  box-shadow: none !important;
}


/* 🎉 FEEDBACK */

#feedback {
  border: 3px solid white;

  border-radius: 999px;

  background:
    linear-gradient(
      135deg,
      #ffddeb,
      #ebe5ff
    );

  color: #70577a;

  font-weight: 900;
}


/* 📱 IPHONE / IPAD */

@media (max-width: 700px) {

  .welcome {
    padding-bottom: 95px;
    border-radius: 27px;
  }

  .welcome::before {
    width: 80px;
    height: 80px;

    right: 15px;

    font-size: 50px;
  }

  .welcome::after {
    right: 15px;
    font-size: 16px;
  }

  .lesson-card {
    border-radius: 23px;
  }

  #lessonScreen {
    border-radius: 25px;
  }

  .sound-grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }

  .answer {
    min-height: 62px;
    font-size: 22px;
  }

}


/* 📱 PETITS ÉCRANS */

@media (max-width: 380px) {

  .sound-grid {
    grid-template-columns: 1fr;
  }

}


/* ✨ ACCESSIBILITÉ */

button:focus-visible {
  outline: 4px solid var(--bleu);
  outline-offset: 3px;
}


@media (hover: none) {

  .lesson-card:hover {
    transform: none;
  }

}


@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    transition: none !important;
  }
/* ==========================================================

   🌱🌸 BLOCS DU PARCOURS

   ========================================================== */

.course-block {

  margin: 34px 0 48px;

}

.course-block-header {

  display: flex;

  align-items: center;

  gap: 16px;

  margin-bottom: 18px;

  padding: 18px 22px;

  border: 3px solid white;

  border-radius: 26px;

  background:

    linear-gradient(

      135deg,

      #fff0f6,

      #f0ebff,

      #eaf9ff

    );

  box-shadow:

    0 8px 22px rgba(120,90,140,.10);

}

.course-block-icon {

  display: flex;

  align-items: center;

  justify-content: center;

  width: 62px;

  height: 62px;

  flex-shrink: 0;

  border-radius: 22px;

  background: white;

  font-size: 34px;

  box-shadow:

    0 5px 14px rgba(120,90,140,.10);

}

.course-block-number {

  color: #b0789a;

  font-size: 12px;

  font-weight: 900;

  letter-spacing: 1.5px;

}

.course-block-header h2 {

  margin: 3px 0;

  color: #614d6b;

}

.course-block-header p {

  margin: 0;

  color: #907d98;

  font-weight: 700;

}

.course-block-lessons {

  display: grid;

  gap: 14px;

}

.block-coming-soon {

  padding: 25px;

  border: 3px dashed #e8c9dc;

  border-radius: 24px;

  background: rgba(255,255,255,.65);

  color: #9a7890;

  text-align: center;

  font-weight: 800;

}
/* 🌸 BLOCS DÉPLIABLES */

.course-block-header {
  width: 100%;
  cursor: pointer;
  text-align: left;
  color: inherit;
  font: inherit;
}

.course-block-info {
  flex: 1;
  min-width: 0;
}

.course-block-toggle {
  margin-left: auto;

  display: flex;
  align-items: center;
  justify-content: center;

  width: 44px;
  height: 44px;

  flex-shrink: 0;

  border-radius: 50%;

  background: white;

  color: #a078b0;

  font-size: 32px;
  font-weight: 900;

  box-shadow:
    0 4px 12px rgba(120,90,140,.12);
}

.course-block-lessons {
  margin-top: 16px;
}

.course-block-lessons.hidden {
  display: none;
}
/* ==========================================================

   CARTES DE PARCOURS

   ========================================================== */

.course-block {

  margin: 14px 0;

}

.course-block-header {

  box-sizing: border-box;

  width: 100%;

  display: flex;

  align-items: center;

  gap: 18px;

  padding: 22px 26px;

  border: 2px solid rgba(214, 190, 255, .8);

  border-radius: 28px;

  background:

    linear-gradient(

      135deg,

      #fff7fc 0%,

      #f7efff 55%,

      #eef7ff 100%

    );

  box-shadow:

    0 8px 20px rgba(108, 83, 130, .10);

  cursor: pointer;

  text-align: left;

  appearance: none;

  -webkit-appearance: none;

  transition:

    transform .18s ease,

    box-shadow .18s ease;

}

.course-block-header:hover {

  transform: translateY(-2px);

  box-shadow:

    0 11px 25px rgba(108, 83, 130, .15);

}

.course-block-info {

  flex: 1;

}

.course-block-header h2 {

  margin: 0 0 5px;

  color: #59465f;

  font-size: 22px;

  font-weight: 900;

}

.course-block-header p {

  margin: 0;

  color: #89778e;

  font-size: 15px;

  font-weight: 650;

}

.course-block-toggle {

  display: flex;

  align-items: center;

  justify-content: center;

  width: 42px;

  height: 42px;

  flex-shrink: 0;

  border-radius: 50%;

  background: rgba(255,255,255,.85);

  color: #9d7aad;

  font-size: 29px;

  font-weight: 900;

  box-shadow:

    0 4px 12px rgba(100,70,120,.10);

}

.course-block-lessons {

  margin-top: 15px;

  padding: 0 8px;

}

.course-block-lessons.hidden {

  display: none;

}
/* 🌸 Blocs vraiment arrondis / capsules */

.course-block-header {
  border-radius: 999px !important;
  padding: 20px 28px !important;

  border: 3px solid rgba(255, 255, 255, .95) !important;

  background:
    linear-gradient(
      135deg,
      #ffe5f2 0%,
      #f3e7ff 50%,
      #e6f4ff 100%
    ) !important;

  box-shadow:
    0 7px 20px rgba(110, 80, 130, .12) !important;
}

.course-block-header h2 {
  margin: 0 0 4px !important;
}

.course-block-toggle {
  border-radius: 50% !important;
}
}
/* ==========================================================
   🌸 DESIGN FINAL DES BLOCS DE COURS
   ========================================================== */

.course-block {
  width: 100%;
  margin: 18px 0 26px !important;
}

.course-block-header {
  box-sizing: border-box !important;
  width: 100% !important;

  display: flex !important;
  align-items: center !important;

  padding: 20px 24px !important;

  border: 2px solid rgba(225, 207, 240, .9) !important;
  border-radius: 24px !important;

  background:
    linear-gradient(
      135deg,
      #fff4fa 0%,
      #f7efff 55%,
      #edf7ff 100%
    ) !important;

  box-shadow:
    0 7px 18px rgba(100, 75, 120, .10) !important;

  appearance: none !important;
  -webkit-appearance: none !important;

  cursor: pointer;
  text-align: left !important;
}

.course-block-info {
  flex: 1 !important;
  min-width: 0;
}

.course-block-header h2 {
  margin: 0 0 5px !important;

  color: #59465f !important;

  font-size: 21px !important;
  font-weight: 900 !important;
}

.course-block-header p {
  margin: 0 !important;

  color: #8c7b91 !important;

  font-size: 14px !important;
  font-weight: 700 !important;
}

.course-block-toggle {
  width: 42px !important;
  height: 42px !important;

  margin-left: 18px !important;

  display: flex !important;
  align-items: center !important;
  justify-content: center !important;

  flex-shrink: 0;

  border-radius: 50% !important;

  background: rgba(255, 255, 255, .85) !important;

  color: #9c79ac !important;

  font-size: 28px !important;

  box-shadow:
    0 4px 10px rgba(100, 70, 120, .10) !important;
}

.course-block-lessons {
  margin-top: 14px !important;
  padding: 0 8px !important;
}

.course-block-lessons.hidden {
  display: none !important;
}


/* 🌸 Espace entre les cartes de leçon */
.course-block-lessons {
  display: grid !important;
  gap: 14px !important;
}


/* 🌸 Rapprocher les blocs de cours */
.course-block {
  margin-top: 12px !important;
  margin-bottom: 12px !important;
}


/* ===== INTRODUCTIONS DES LEÇONS ===== */

#lessonContent > p,
#lessonContent .lesson-intro p {
  line-height: 1.55;
  margin-top: 0;
  margin-bottom: 12px;
}

#lessonContent > p:last-child,
#lessonContent .lesson-intro p:last-child {
  margin-bottom: 0;
}


/* Petite liste dans les introductions */
.lesson-checklist {
  display: grid;
  gap: 6px;
  line-height: 1.35 !important;
}

.lesson-checklist span {
  display: block;
}


/* Petite liste dans les introductions */
.lesson-checklist {
  display: grid;
  gap: 6px;
  line-height: 1.35 !important;
}

.lesson-checklist span {
  display: block;
}


/* Espace sous le bouton Écouter dans les quiz */
.quiz > .listen-button {
  margin-bottom: 18px !important;
}

