/* Session plein écran (exercices) */
/* Leçon (plein écran) */
.lesson { position: fixed; inset: 0; z-index: 30; background: var(--bg); display: flex; flex-direction: column;
  padding: calc(env(safe-area-inset-top) + 8px) 16px 0; animation: sheetUp .45s var(--spring); }
.lesson-top { display: flex; align-items: center; gap: 10px; max-width: 560px; width: 100%; margin: 0 auto; }
.lesson-top .btn-icon { color: var(--muted-fg); background: none; margin-left: -10px; }
.bar { flex: 1; height: 10px; border-radius: 999px; background: var(--muted); overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; border-radius: 999px; background: linear-gradient(90deg, var(--indigo), var(--blue)); transition: width .5s var(--spring); }
.lesson-count { font-size: 15px; color: var(--muted-fg); font-variant-numeric: tabular-nums; min-width: 40px; text-align: right; }
.lesson-body { flex: 1; overflow-y: auto; max-width: 560px; width: 100%; margin: 0 auto; padding: 20px 0 16px; }
.lesson-foot { max-width: 560px; width: calc(100% + 32px); margin: 0 -16px; align-self: center; padding: 14px 16px calc(env(safe-area-inset-bottom) + 14px);
  transition: background .25s; border-radius: 28px 28px 0 0; }
@media (min-width: 592px) { .lesson-foot { width: 100%; margin: 0 auto; } }
.lesson-foot.ok { background: rgba(52,199,89,.16); }
.lesson-foot.ko { background: rgba(255,59,48,.13); }
.fb { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 12px; }
.fb > svg.lucide { width: 28px; height: 28px; margin-top: 1px; }
.lesson-foot.ok .fb > svg.lucide, .lesson-foot.ok .fb-t { color: var(--green-text); }
.lesson-foot.ko .fb > svg.lucide, .lesson-foot.ko .fb-t { color: var(--red-text); }
.fb-t { font-size: 20px; font-weight: 700; letter-spacing: -.3px; }
.fb-d { font-size: 15px; margin-top: 2px; overflow-wrap: anywhere; }
.lesson-foot.ok .btn-primary { background: #1f7a37; }
.lesson-foot.ko .btn-primary { background: #d70015; }
html[data-dark] .lesson-foot.ok .btn-primary { background: #30d158; color: #000; }
html[data-dark] .lesson-foot.ko .btn-primary { background: #d70015; }
.q-label { font-size: 15px; font-weight: 600; color: var(--muted-fg); margin: 0 4px 10px; display: flex; align-items: center; gap: 6px; }
.q-label svg.lucide { width: 18px; height: 18px; }
.q-big { font-size: 30px; font-weight: 700; letter-spacing: -.6px; line-height: 1.15; margin: 0 4px 22px; overflow-wrap: anywhere; display: flex; align-items: center; gap: 10px; }
.q-sent { font-size: 22px; font-weight: 600; letter-spacing: -.3px; line-height: 1.35; margin: 0 4px 22px; overflow-wrap: anywhere; }
.blank { display: inline-block; min-width: 70px; border-bottom: 3px solid var(--blue); margin: 0 2px; color: var(--blue-text); }
.opts { display: flex; flex-direction: column; gap: 10px; }
.opt { display: flex; align-items: center; min-height: 56px; padding: 12px 16px; border: 0; border-radius: 18px; background: var(--card); font-size: 17px; font-weight: 500;
  text-align: left; cursor: pointer; box-shadow: inset 0 0 0 1.5px transparent; transition: transform .3s var(--spring), box-shadow .2s, background .2s; overflow-wrap: anywhere; }
.opt:active { transform: scale(.97); }
.opt.ok { box-shadow: inset 0 0 0 2px var(--green); background: rgba(52,199,89,.14); }
.opt.ko { box-shadow: inset 0 0 0 2px var(--red); background: rgba(255,59,48,.1); }
.opt.dim2 { opacity: .5; }
.opts.done .opt { pointer-events: none; }
.listen { display: flex; justify-content: center; align-items: center; gap: 16px; margin: 6px 0 26px; }
.listen .play { width: 96px; height: 96px; border-radius: 50%; border: 0; background: linear-gradient(135deg, var(--indigo), var(--blue)); color: #fff; display: grid; place-items: center; cursor: pointer;
  box-shadow: 0 10px 24px -8px rgba(0,113,227,.6); transition: transform .3s var(--spring); }
.listen .play:active { transform: scale(.92); }
.listen .play svg.lucide { width: 40px; height: 40px; }
.listen .slow { width: 56px; height: 56px; border-radius: 50%; border: 0; background: var(--card); color: var(--blue-text); display: grid; place-items: center; cursor: pointer; }
.intro { background: var(--card); border-radius: 26px; padding: 22px 18px; }
.tag { display: inline-flex; align-items: center; gap: 4px; height: 26px; padding: 0 10px; border-radius: 999px; font-size: 13px; font-weight: 600;
  background: rgba(88,86,214,.14); color: var(--indigo); margin-bottom: 12px; }
html[data-dark] .tag { color: #9f9dff; }
.tag svg.lucide { width: 14px; height: 14px; }
.intro .fr { font-size: 20px; color: var(--muted-fg); margin: 6px 0 16px; font-weight: 500; }
.ex { display: flex; gap: 8px; align-items: flex-start; border-top: .5px solid var(--sep); padding-top: 14px; font-size: 17px; }
.ex mark { background: none; color: var(--blue-text); font-weight: 600; }
.ex .say { margin: -10px -10px -10px auto; }
.end { text-align: center; padding-top: 12px; }
.end .medal { width: 96px; height: 96px; margin: 0 auto 16px; border-radius: 50%; display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, var(--orange), var(--pink)); box-shadow: 0 12px 28px -10px rgba(255,45,85,.6); animation: pop .6s var(--spring); }
.end .medal svg.lucide { width: 46px; height: 46px; }
@keyframes pop { from { transform: scale(.4); opacity: 0; } }
.end h2 { font-size: 28px; letter-spacing: -.6px; margin: 0 0 6px; }
.end p { color: var(--muted-fg); margin: 0 0 22px; }
.end .tiles .tile { text-align: left; }

.rule { margin: 4px 0 16px; padding-left: 20px; font-size: 17px; }
.rule li + li { margin-top: 8px; }
.intro .ex + .ex { margin-top: 12px; }
.stars.big { justify-content: center; gap: 6px; margin: 4px 0 16px; }
.stars.big svg.lucide { width: 44px; height: 44px; }
.end .medal.fail { background: linear-gradient(135deg, #8e8e93, #636366); box-shadow: none; }
