/* =========================================================
   Pages de leçon
   ========================================================= */

.lesson-hero {
  background: linear-gradient(135deg, var(--bleu-france), #1e3a8a);
  color: white;
  padding: 70px 0 60px;
}
.lesson-hero .breadcrumb {
  font-size: .9rem;
  color: rgba(255,255,255,.7);
  margin-bottom: 16px;
}
.lesson-hero .breadcrumb a { color: rgba(255,255,255,.85); }
.lesson-hero h1 {
  color: white;
  font-size: clamp(2rem, 4.5vw, 3rem);
  margin-bottom: 8px;
}
.lesson-hero .cn-title {
  color: var(--or);
  font-family: "Noto Serif SC", "Microsoft YaHei", serif;
  font-size: 1.4rem;
  margin-bottom: 20px;
}
.lesson-hero .meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: .95rem;
  color: rgba(255,255,255,.85);
}
.lesson-hero .meta span::before {
  content: "•";
  margin-right: 10px;
  color: var(--or);
}
.lesson-hero .meta span:first-child::before { display: none; }

/* ---------- Sommaire latéral ---------- */
.lesson-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 50px;
  padding: 50px 0 80px;
}
.toc {
  position: sticky;
  top: 80px;
  align-self: start;
  font-size: .92rem;
}
.toc h4 {
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--gris);
  margin-bottom: 12px;
}
.toc ul { list-style: none; }
.toc li { margin-bottom: 8px; }
.toc a {
  color: var(--encre);
  border-left: 2px solid transparent;
  padding-left: 10px;
  display: block;
  transition: all .2s;
}
.toc a:hover, .toc a.active {
  border-left-color: var(--rouge-france);
  color: var(--bleu-france);
}

@media (max-width: 900px) {
  .lesson-layout { grid-template-columns: 1fr; gap: 30px; }
  .toc { position: static; margin-bottom: 20px; }
}

/* ---------- Blocs de section ---------- */
.lesson-section {
  margin-bottom: 56px;
  scroll-margin-top: 80px;
}
.lesson-section .head {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--gris-clair);
}
.lesson-section .head h2 {
  font-size: 1.6rem;
}
.lesson-section .head .cn {
  color: var(--rouge-france);
  font-family: "Noto Serif SC", "Microsoft YaHei", serif;
  font-weight: 500;
}
.lesson-section .head .num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bleu-france);
  color: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: .9rem;
  flex-shrink: 0;
}

/* ---------- Dialogues ---------- */
.dialogue {
  background: white;
  border-radius: var(--rayon);
  box-shadow: var(--ombre);
  padding: 24px 28px;
  margin-bottom: 22px;
  border-left: 4px solid var(--rouge-france);
}
.dialogue .dialogue-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}
.dialogue .dialogue-head h3 {
  font-size: 1.15rem;
  color: var(--bleu-france);
}
.dialogue .lines {
  list-style: none;
}
.dialogue .lines li {
  padding: 8px 0;
  border-bottom: 1px dashed var(--gris-clair);
  display: flex;
  gap: 14px;
}
.dialogue .lines li:last-child { border-bottom: none; }
.dialogue .lines .speaker {
  flex-shrink: 0;
  font-weight: 700;
  color: var(--bleu-clair);
  min-width: 24px;
}
.dialogue .lines .text { flex: 1; }
.dialogue .lines .cn {
  display: block;
  color: var(--gris);
  font-size: .92rem;
  margin-top: 3px;
  font-family: "Noto Sans SC", "Microsoft YaHei", sans-serif;
}

/* Lecteur audio compact */
audio {
  height: 36px;
  outline: none;
}
audio::-webkit-media-controls-panel {
  background: var(--sable);
}

/* ---------- Vocabulaire ---------- */
.vocab-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: var(--rayon);
  overflow: hidden;
  box-shadow: var(--ombre);
}
.vocab-table th, .vocab-table td {
  padding: 10px 16px;
  text-align: left;
  border-bottom: 1px solid var(--gris-clair);
}
.vocab-table th {
  background: var(--sable);
  color: var(--bleu-france);
  font-weight: 600;
  font-size: .9rem;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.vocab-table tbody tr:hover { background: #fafafa; }
.vocab-table .fr { font-weight: 600; color: var(--encre); }
.vocab-table .gram {
  color: var(--gris);
  font-style: italic;
  font-size: .88rem;
}
.vocab-table .cn { color: var(--rouge-france); font-family: "Noto Sans SC", sans-serif; }

/* ---------- Grammaire ---------- */
.grammar-box {
  background: white;
  border-radius: var(--rayon);
  padding: 24px 28px;
  margin-bottom: 20px;
  box-shadow: var(--ombre);
  border-top: 3px solid var(--bleu-clair);
}
.grammar-box h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
  color: var(--bleu-france);
}
.grammar-box h3 .cn {
  color: var(--rouge-france);
  font-size: 1rem;
  margin-left: 8px;
  font-family: "Noto Serif SC", serif;
  font-weight: 500;
}
.grammar-box p { margin-bottom: 12px; }
.grammar-box .note {
  background: var(--sable);
  border-left: 4px solid var(--or);
  padding: 12px 16px;
  border-radius: 6px;
  margin: 14px 0;
  font-size: .95rem;
}
.grammar-box .note strong { color: var(--bleu-france); }

.conj-table {
  width: 100%;
  border-collapse: collapse;
  margin: 14px 0;
  background: var(--crème);
  border-radius: 8px;
  overflow: hidden;
}
.conj-table caption {
  padding: 8px;
  font-weight: 700;
  background: var(--bleu-france);
  color: white;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.05rem;
}
.conj-table td {
  padding: 8px 14px;
  border-bottom: 1px solid var(--gris-clair);
}
.conj-table td:first-child {
  color: var(--gris);
  font-style: italic;
  width: 40%;
}
.conj-table td:last-child { font-weight: 600; color: var(--bleu-france); }

ul.exemples {
  list-style: none;
  margin: 12px 0;
}
ul.exemples li {
  padding: 6px 0 6px 22px;
  position: relative;
}
ul.exemples li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--rouge-france);
  font-weight: 700;
}

/* ---------- Encadré « Savoir dire » ---------- */
.savoir-dire {
  background: linear-gradient(135deg, #fdf2f8, #fef3c7);
  border-radius: var(--rayon);
  padding: 24px 28px;
  margin-bottom: 20px;
}
.savoir-dire h3 { margin-bottom: 12px; }
.savoir-dire .acte {
  margin-bottom: 14px;
}
.savoir-dire .acte h4 {
  color: var(--rouge-france);
  font-size: 1rem;
  margin-bottom: 4px;
  font-family: "Noto Sans SC", sans-serif;
  font-weight: 700;
}
.savoir-dire .acte ul {
  list-style: none;
  padding-left: 14px;
}
.savoir-dire .acte li {
  padding: 3px 0;
  border-left: 2px solid var(--rouge-france);
  padding-left: 12px;
  margin-left: 0;
}

/* ---------- Exercices ---------- */
.exercise {
  background: white;
  border-radius: var(--rayon);
  padding: 22px 26px;
  margin-bottom: 18px;
  box-shadow: var(--ombre);
  border-left: 4px solid var(--bleu-clair);
}
.exercise h3 {
  font-size: 1.1rem;
  margin-bottom: 4px;
}
.exercise .consigne {
  color: var(--gris);
  font-size: .95rem;
  margin-bottom: 14px;
}
.exercise ol, .exercise ul {
  padding-left: 22px;
}
.exercise ol li, .exercise ul li {
  padding: 6px 0;
}
.exercise .blank {
  display: inline-block;
  min-width: 60px;
  border-bottom: 2px solid var(--bleu-clair);
  padding: 0 6px;
  margin: 0 3px;
  color: var(--bleu-clair);
  font-weight: 600;
}

/* ---------- Navigation entre leçons ---------- */
.lesson-nav {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 24px 0 50px;
  border-top: 1px solid var(--gris-clair);
}
.lesson-nav a {
  flex: 1;
  padding: 18px 22px;
  background: white;
  border-radius: var(--rayon);
  box-shadow: var(--ombre);
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: transform .2s;
}
.lesson-nav a:hover { transform: translateY(-2px); }
.lesson-nav a.next { text-align: right; }
.lesson-nav .label {
  font-size: .8rem;
  color: var(--gris);
  text-transform: uppercase;
  letter-spacing: .06em;
}
.lesson-nav .title { font-weight: 600; color: var(--bleu-france); }
.lesson-nav a.disabled {
  opacity: .4;
  pointer-events: none;
}

/* ---------- Exercices interactifs ---------- */
.ex-input {
  font-family: inherit;
  font-size: inherit;
  padding: 6px 12px;
  border: 2px solid var(--gris-clair);
  border-bottom: 2px solid var(--bleu-clair);
  border-radius: 6px;
  background: white;
  color: var(--bleu-france);
  font-weight: 600;
  min-width: 90px;
  transition: border-color .15s, background .15s;
}
.ex-input:focus {
  outline: none;
  border-color: var(--bleu-clair);
  background: #f0f7ff;
}
.ex-input.is-correct {
  border-color: #10b981;
  background: #d1fae5;
  color: #065f46;
}
.ex-input.is-incorrect {
  border-color: #ef4444;
  background: #fee2e2;
  color: #991b1b;
}
.ex-input.is-pending {
  border-color: var(--or);
  background: #fef3c7;
}

/* select */
select.ex-input {
  cursor: pointer;
  padding: 6px 28px 6px 12px;
}

.ex-hint {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 10px;
  background: #d1fae5;
  color: #065f46;
  border-radius: 999px;
  font-size: .85rem;
  font-weight: 600;
}

/* Radios stylisés */
.ex-radio-group {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 4px 0;
}
.ex-radio-group label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: white;
  border: 2px solid var(--gris-clair);
  border-radius: 999px;
  cursor: pointer;
  font-weight: 500;
  transition: all .15s;
  user-select: none;
}
.ex-radio-group label:hover {
  border-color: var(--bleu-clair);
}
.ex-radio-group label.is-correct {
  background: #d1fae5;
  border-color: #10b981;
  color: #065f46;
}
.ex-radio-group label.is-incorrect {
  background: #fee2e2;
  border-color: #ef4444;
  color: #991b1b;
}
.ex-radio-group label.is-revealed {
  background: #fef3c7;
  border-color: var(--or);
  color: #92400e;
  font-weight: 700;
}
.ex-radio-group label.is-revealed::after {
  content: " ✓";
  color: #10b981;
  font-weight: 800;
}
.ex-radio { accent-color: var(--bleu-clair); }

/* Boutons */
.ex-controls {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px dashed var(--gris-clair);
}

/* Reset complet — neutralise tout le styling natif des <button> */
.ex-btn {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border: 1.5px solid transparent;
  border-radius: 10px;
  font-family: inherit;
  font-size: .92rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: .01em;
  cursor: pointer;
  user-select: none;
  text-decoration: none;
  background-image: none;
  background-clip: padding-box;
  transition: transform .12s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease, color .15s ease;
  white-space: nowrap;
}
.ex-btn:focus-visible {
  outline: 2px solid var(--bleu-clair);
  outline-offset: 2px;
}
.ex-btn:hover  { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,.08); }
.ex-btn:active { transform: translateY(0); box-shadow: none; }

.ex-btn .ex-ico {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  stroke-width: 2.2;
}
.ex-btn .ex-cn {
  font-weight: 500;
  opacity: .65;
  font-family: "Noto Sans SC", sans-serif;
  font-size: .85em;
  margin-left: 2px;
}

/* Primaire — Vérifier */
.btn-check {
  background: var(--bleu-france);
  color: white;
  border-color: var(--bleu-france);
  box-shadow: 0 2px 6px rgba(0, 38, 84, .25);
}
.btn-check:hover {
  background: var(--bleu-clair);
  border-color: var(--bleu-clair);
  color: white;
  box-shadow: 0 6px 16px rgba(37, 99, 235, .3);
}
.btn-check .ex-cn { color: rgba(255,255,255,.75); opacity: 1; }

/* Secondaire — Voir la réponse */
.btn-solve {
  background: white;
  color: var(--bleu-france);
  border-color: var(--bleu-france);
}
.btn-solve:hover {
  background: var(--sable);
  border-color: var(--bleu-france);
  color: var(--bleu-france);
}

/* Tertiaire — Réinitialiser */
.btn-reset {
  background: transparent;
  color: var(--gris);
  border-color: var(--gris-clair);
}
.btn-reset:hover {
  background: #fafafa;
  color: var(--encre);
  border-color: var(--gris);
}

@media (max-width: 600px) {
  .ex-btn {
    padding: 9px 14px;
    font-size: .88rem;
  }
  .ex-btn .ex-cn { display: none; }
}

/* Résultat */
.ex-result {
  margin-left: auto;
  padding: 8px 14px;
  border-radius: 8px;
  font-weight: 600;
  font-size: .92rem;
  min-height: 1.2em;
}
.ex-result.is-correct {
  background: #d1fae5;
  color: #065f46;
}
.ex-result.is-incorrect {
  background: #fee2e2;
  color: #991b1b;
}
.ex-result.is-partial {
  background: #fef3c7;
  color: #92400e;
}
.ex-result.is-pending {
  background: #fef3c7;
  color: #92400e;
}
.ex-result.is-revealed {
  background: var(--sable);
  color: var(--bleu-france);
}

@media (max-width: 600px) {
  .ex-result { margin-left: 0; width: 100%; text-align: center; }
}

/* ---------- Phonétique : tableaux IPA ---------- */
.ipa {
  font-family: "Charis SIL", "Doulos SIL", "Lucida Sans Unicode", "DejaVu Sans", sans-serif;
  font-weight: 600;
  color: var(--bleu-clair);
  font-size: 1.1em;
}

.alphabet-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px;
  margin: 16px 0;
}
.alphabet-grid .letter {
  background: white;
  border-radius: 10px;
  padding: 14px 8px;
  text-align: center;
  box-shadow: var(--ombre);
  transition: transform .15s;
}
.alphabet-grid .letter:hover { transform: translateY(-2px); }
.alphabet-grid .letter .glyph {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--bleu-france);
  display: block;
}
.alphabet-grid .letter .glyph small {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--gris);
  margin-left: 3px;
}
.alphabet-grid .letter .ipa-line {
  font-size: 1rem;
  color: var(--rouge-france);
  margin-top: 4px;
}

table.rules {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: var(--rayon);
  overflow: hidden;
  box-shadow: var(--ombre);
  margin: 12px 0;
  font-size: .95rem;
}
table.rules th {
  background: var(--bleu-france);
  color: white;
  text-align: left;
  padding: 10px 14px;
  font-size: .88rem;
  text-transform: uppercase;
  letter-spacing: .04em;
}
table.rules td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--gris-clair);
  vertical-align: top;
}
table.rules tr:last-child td { border-bottom: none; }
table.rules td:first-child {
  width: 70px;
  text-align: center;
  background: var(--sable);
  font-weight: 700;
  color: var(--bleu-clair);
  font-size: 1.1rem;
}
table.rules .examples {
  font-style: italic;
  color: var(--encre);
}
table.rules .examples strong { color: var(--rouge-france); font-style: normal; }

/* Tableau de nombres */
table.numbers {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: var(--rayon);
  overflow: hidden;
  box-shadow: var(--ombre);
  margin: 12px 0;
}
table.numbers th, table.numbers td {
  padding: 8px 14px;
  border-bottom: 1px solid var(--gris-clair);
}
table.numbers th {
  background: var(--sable);
  color: var(--bleu-france);
  text-align: left;
  font-size: .85rem;
}
table.numbers td:first-child {
  font-weight: 700;
  color: var(--rouge-france);
  width: 60px;
}

/* ---------- Pages Bonus (fin d'unité) ---------- */
body.bonus-page { background: #fef8ee; }
.bonus-hero {
  background:
    radial-gradient(circle at 80% 30%, rgba(239, 65, 53, .25), transparent 50%),
    radial-gradient(circle at 20% 70%, rgba(201, 161, 74, .25), transparent 50%),
    linear-gradient(135deg, #92400e, #78350f);
  color: white;
  padding: 70px 0 60px;
}
.bonus-hero h1 { color: white; font-size: clamp(2rem, 4.5vw, 2.8rem); margin-bottom: 8px; }
.bonus-hero .badge-bonus {
  display: inline-block; background: var(--or); color: #422006;
  font-weight: 700; padding: 5px 14px; border-radius: 999px;
  font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 16px;
}
.bonus-hero .badge-soon {
  background: rgba(255, 255, 255, .15);
  color: white;
  border: 1px dashed rgba(255, 255, 255, .4);
}
.bonus-hero .cn-title { color: #fde68a; font-family: "Noto Serif SC", serif; font-size: 1.3rem; margin-bottom: 18px; }
.bonus-hero .meta { display: flex; flex-wrap: wrap; gap: 18px; font-size: .95rem; color: rgba(255,255,255,.85); }
.bonus-hero .meta span::before { content: "•"; margin-right: 10px; color: var(--or); }
.bonus-hero .meta span:first-child::before { display: none; }
.bonus-hero .breadcrumb { font-size: .9rem; color: rgba(255,255,255,.7); margin-bottom: 16px; }
.bonus-hero .breadcrumb a { color: rgba(255,255,255,.85); }

.scene { background: white; border-radius: var(--rayon); padding: 24px 28px; margin: 24px 0; box-shadow: var(--ombre); border-left: 5px solid var(--or); }
.scene-intro { font-style: italic; color: var(--encre); line-height: 1.7; background: #fef3c7; padding: 16px 22px; border-radius: 10px; margin-bottom: 20px; border-left: 4px solid var(--or); }
.scene-intro .cn { display: block; color: var(--gris); font-size: .9rem; margin-top: 6px; font-style: normal; }

.characters { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin: 20px 0; }
.character { background: #fff7ed; border-radius: 12px; padding: 16px; text-align: center; border: 2px solid #fed7aa; }
.character .avatar { width: 72px; height: 72px; margin: 0 auto 10px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: "Noto Serif SC", serif; font-size: 2rem; color: white; font-weight: 700; }
.character.olivier .avatar { background: linear-gradient(135deg, var(--bleu-france), var(--bleu-clair)); }
.character.bailu .avatar { background: linear-gradient(135deg, var(--rouge-france), #ec4899); }
.character.liushishi .avatar { background: linear-gradient(135deg, #c9a14a, #f59e0b); }
.character.yangmi .avatar { background: linear-gradient(135deg, #be185d, #ec4899); }
.character.nini .avatar { background: linear-gradient(135deg, #7c3aed, #a855f7); }
.character.songyi .avatar { background: linear-gradient(135deg, #0891b2, #06b6d4); }
.character.dilraba .avatar { background: linear-gradient(135deg, #dc2626, #f87171); }
.character.liyitong .avatar { background: linear-gradient(135deg, #059669, #34d399); }
.character.zhangjiani .avatar { background: linear-gradient(135deg, #d97706, #fbbf24); }
.character.wujinyan .avatar { background: linear-gradient(135deg, #7e22ce, #c084fc); }
.character.zhangjingyi .avatar { background: linear-gradient(135deg, #be185d, #f472b6); }
.character.mengziyi .avatar { background: linear-gradient(135deg, #4338ca, #818cf8); }
.character.wangchuran .avatar { background: linear-gradient(135deg, #b45309, #fbbf24); }
.character.pengxiaoran .avatar { background: linear-gradient(135deg, #1e40af, #60a5fa); }
.character.zhongyating .avatar { background: linear-gradient(135deg, #166534, #4ade80); }
.character.vendeur .avatar { background: linear-gradient(135deg, #c9a14a, #f59e0b); }
.character h4 { color: var(--bleu-france); font-size: 1.05rem; font-family: "Playfair Display", serif; margin-bottom: 4px; }
.character .desc { font-size: .88rem; color: var(--gris); line-height: 1.5; }

.new-word { background: #fef3c7; padding: 1px 6px; border-radius: 4px; border-bottom: 2px solid var(--or); font-weight: 600; }
.new-words-box { background: linear-gradient(135deg, #fef3c7, #fde68a); border-radius: var(--rayon); padding: 22px 26px; margin: 24px 0; border: 2px solid var(--or); }
.new-words-box h3 { color: #78350f; font-family: "Playfair Display", serif; margin-bottom: 12px; }
.new-words-box ul { list-style: none; padding-left: 0; }
.new-words-box li { padding: 10px 0; border-bottom: 1px dashed #d97706; display: flex; flex-wrap: wrap; gap: 12px; align-items: baseline; }
.new-words-box li:last-child { border-bottom: none; }
.new-words-box .fr { font-weight: 700; color: #78350f; font-size: 1.1rem; min-width: 130px; }
.new-words-box .gram { color: var(--gris); font-style: italic; font-size: .88rem; }
.new-words-box .cn { color: var(--rouge-france); font-family: "Noto Sans SC", sans-serif; }
.new-words-box .ex { width: 100%; color: var(--encre); font-size: .92rem; padding-left: 18px; border-left: 2px solid #d97706; }

.culture-card { background: white; border-radius: var(--rayon); padding: 22px 26px; margin: 24px 0; box-shadow: var(--ombre); border-left: 4px solid var(--bleu-clair); }
.culture-card h3 { color: var(--bleu-france); margin-bottom: 10px; }

/* Avis "à venir" pour bonus en préparation */
.coming-soon-banner {
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  border-radius: var(--rayon);
  padding: 24px 28px;
  margin: 24px 0;
  border: 2px dashed var(--or);
  text-align: center;
}
.coming-soon-banner h3 {
  color: #78350f;
  font-family: "Playfair Display", serif;
  margin-bottom: 8px;
  font-size: 1.3rem;
}
.coming-soon-banner p {
  color: #92400e;
  font-size: .95rem;
  line-height: 1.6;
  max-width: 620px;
  margin: 0 auto;
}

.preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin: 18px 0;
}
.preview-card {
  background: white;
  border-radius: 10px;
  padding: 14px 18px;
  box-shadow: var(--ombre);
  border-top: 3px solid var(--bleu-clair);
}
.preview-card h4 {
  color: var(--bleu-france);
  font-family: "Playfair Display", serif;
  font-size: .98rem;
  margin-bottom: 6px;
}
.preview-card p { font-size: .9rem; color: var(--encre); line-height: 1.55; }

/* ---------- Page A1 (liste leçons) ---------- */
.unit {
  margin-bottom: 50px;
}
.unit-header {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--rouge-france);
}
.unit-header h2 { font-size: 1.4rem; }
.unit-header .cn {
  color: var(--rouge-france);
  font-family: "Noto Serif SC", serif;
  font-weight: 500;
}
.lessons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}
.lesson-card {
  background: white;
  padding: 18px 22px;
  border-radius: var(--rayon);
  box-shadow: var(--ombre);
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: transform .2s, box-shadow .2s;
  text-decoration: none;
  color: inherit;
  border-top: 3px solid var(--gris-clair);
}
.lesson-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--ombre-fort);
  border-top-color: var(--bleu-clair);
  color: inherit;
}
.lesson-card.dispo { border-top-color: var(--rouge-france); }
.lesson-card.bientot { opacity: .55; pointer-events: none; }
.lesson-card .num {
  font-size: .8rem;
  color: var(--gris);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 700;
}
.lesson-card h3 { font-size: 1.1rem; color: var(--bleu-france); }
.lesson-card .cn {
  color: var(--rouge-france);
  font-family: "Noto Serif SC", serif;
  font-size: .95rem;
}
