:root {
  --nuit: #1a1410;
  --nuit-2: #241b15;
  --papier: #faf3e7;
  --encre: #1a1410;
  --orange: #ff8a3d;
  --orange-fonce: #d85c13;
  --cyan: #58d9f6;
  --jaune: #e7ff67;
  --rose: #ff6584;
  --gris: #6e7182;
  --ligne: rgba(250, 243, 231, .075);
  --ombre: 0 22px 55px rgba(8, 5, 3, .34);
  --rayon: 26px;
  color-scheme: light;
}

* { box-sizing: border-box; }

html {
  min-height: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    linear-gradient(var(--ligne) 1px, transparent 1px),
    linear-gradient(90deg, var(--ligne) 1px, transparent 1px),
    radial-gradient(circle at 10% 5%, rgba(88, 217, 246, .11), transparent 28rem),
    radial-gradient(circle at 92% 3%, rgba(255, 138, 61, .22), transparent 29rem),
    var(--nuit);
  background-size: 32px 32px, 32px 32px, auto, auto, auto;
  color: var(--papier);
  font-family: "Roboto", Arial, Helvetica, sans-serif;
  font-size: 17px;
  line-height: 1.45;
}

a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
a:focus-visible, button:focus-visible { outline: 4px solid var(--jaune); outline-offset: 4px; }

.shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0 56px;
}

.topbar {
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.logo {
  display: inline-flex;
  align-items: baseline;
  text-decoration: none;
  font-size: 30px;
  font-weight: 900;
  letter-spacing: -.06em;
}

.logo-dot { color: var(--orange); }
.top-actions { display: flex; align-items: center; gap: 12px; }

.noz-pill, .level-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 14px;
  border: 1px solid rgba(255,140,66,.26);
  border-radius: 999px;
  background: rgba(36,27,21,.82);
  font-size: 16px;
  font-weight: 800;
}

.noz-brain { font-size: 19px; }
.hero { padding: 54px 0 32px; }

.eyebrow {
  margin: 0 0 10px;
  color: var(--orange);
  font-size: 16px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

h1 {
  max-width: 800px;
  margin: 0;
  font-size: clamp(42px, 8vw, 78px);
  line-height: .98;
  letter-spacing: -.055em;
}

.hero p:last-child {
  max-width: 620px;
  margin: 20px 0 0;
  color: rgba(255,255,255,.72);
  font-size: clamp(17px, 2vw, 21px);
}

.levels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-top: 26px;
}

.level-card {
  position: relative;
  min-height: 300px;
  padding: 30px;
  overflow: hidden;
  border-radius: var(--rayon);
  color: var(--encre);
  text-decoration: none;
  box-shadow: var(--ombre);
  transition: transform .2s ease, box-shadow .2s ease;
}

.level-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 28px 70px rgba(7,9,22,.38);
}

.level-card.sixieme { background: linear-gradient(145deg, #baf4ff, var(--cyan)); }
.level-card.cinquieme { background: linear-gradient(145deg, #ffd2a8, var(--orange)); }

.level-number {
  display: block;
  font-size: clamp(70px, 10vw, 118px);
  line-height: .85;
  font-weight: 900;
  letter-spacing: -.08em;
}

.level-current {
  display: block;
  max-width: 70%;
  margin-top: 30px;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.2;
}

.level-cta { position: absolute; left: 30px; bottom: 28px; font-weight: 900; }

.level-card::after {
  content: '';
  position: absolute;
  width: 180px;
  height: 180px;
  right: -48px;
  top: -48px;
  border: 22px solid rgba(17,20,38,.1);
  border-radius: 50%;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  margin-top: 12px;
  color: rgba(255,255,255,.68);
  font-size: 16px;
}

.breadcrumbs a { padding: 9px 0; font-weight: 800; text-decoration: none; }
.breadcrumbs a:hover { color: white; }
.page-head { padding: 42px 0 28px; }

.chapter-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  height: 36px;
  padding: 0 13px;
  border-radius: 999px;
  background: var(--cyan);
  color: var(--encre);
  font-weight: 900;
}

.niveau-5e .chapter-index { background: var(--orange); }
.page-head h1 { margin-top: 18px; font-size: clamp(40px, 7vw, 70px); }
.page-head p { max-width: 650px; margin: 16px 0 0; color: rgba(255,255,255,.7); font-size: 19px; }

.current-card {
  position: relative;
  display: block;
  padding: 34px;
  overflow: hidden;
  border-radius: var(--rayon);
  background: linear-gradient(140deg, #baf4ff, var(--cyan));
  color: var(--encre);
  text-decoration: none;
  box-shadow: var(--ombre);
}

.niveau-5e .current-card { background: linear-gradient(140deg, #ffd2a8, var(--orange)); }
.current-label { font-size: 16px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }

.current-card h2 {
  max-width: 720px;
  margin: 14px 0 8px;
  font-size: clamp(30px, 5vw, 52px);
  line-height: 1;
  letter-spacing: -.04em;
}

.current-card p { max-width: 650px; margin: 0 0 42px; font-size: 18px; }
.current-cta { font-weight: 900; }
.current-card::after { content: '→'; position: absolute; right: 30px; bottom: 24px; font-size: 48px; font-weight: 900; }
.section-title { margin: 38px 0 16px; font-size: 20px; }

.chapter-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.chapter-card {
  min-height: 155px;
  padding: 22px;
  border: 1px solid rgba(250,243,231,.15);
  border-radius: 20px;
  background: rgba(36,27,21,.86);
  text-decoration: none;
  transition: background .18s ease, transform .18s ease;
}

.chapter-card:hover { background: rgba(255,255,255,.12); transform: translateY(-3px); }
.chapter-card .mini-num { color: var(--cyan); font-size: 16px; font-weight: 900; }
.niveau-5e .chapter-card .mini-num { color: var(--orange); }
.chapter-card h3 { margin: 22px 0 0; font-size: 20px; line-height: 1.15; }

.practice-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  min-height: 92px;
  margin: 0 0 18px;
  padding: 18px 22px;
  border: 1px solid rgba(255,140,66,.42);
  border-radius: 22px;
  background: linear-gradient(115deg, rgba(255,140,66,.18), rgba(36,27,21,.96) 52%);
  color: #fff;
  text-decoration: none;
  transition: transform .18s ease, background .18s ease;
}

.practice-card:hover { background: linear-gradient(115deg, rgba(255,140,66,.26), rgba(48,35,27,.98) 52%); transform: translateY(-2px); }
.practice-icon {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border-radius: 17px;
  background: var(--orange);
  color: var(--encre);
  font-size: 27px;
  box-shadow: 0 8px 22px rgba(255,140,66,.24);
}
.niveau-5e .practice-icon { background: var(--orange); }
.auto-mark {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  width: 34px;
  height: 34px;
  align-items: center;
  justify-items: center;
  line-height: 1;
}
.auto-mark b { font-size: 16px; font-weight: 950; }
.practice-copy strong { display: block; font-size: 21px; }
.practice-copy small { display: block; margin-top: 3px; color: rgba(255,255,255,.84); font-size: 16px; }
.practice-arrow { font-size: 30px; font-weight: 900; }

.docs-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.doc-card {
  display: flex;
  min-height: 245px;
  padding: 24px;
  flex-direction: column;
  border-radius: 24px;
  background: linear-gradient(155deg, #fffaf1, var(--papier));
  color: var(--encre);
  text-decoration: none;
  box-shadow: var(--ombre);
  transition: transform .2s ease;
}

.doc-card:hover { transform: translateY(-5px); }

.doc-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 17px;
  background: #dff8ff;
  color: #087b98;
  font-size: 25px;
  font-weight: 900;
}

.niveau-5e .doc-icon { background: #fff0e3; color: var(--orange-fonce); }
.doc-card h2 { margin: 30px 0 4px; font-size: 26px; letter-spacing: -.025em; }
.doc-card p { margin: 0; color: var(--gris); }
.doc-cta { margin-top: auto; padding-top: 26px; font-weight: 900; }

.review-cta {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  min-height: 112px;
  margin-top: 18px;
  padding: 22px 24px;
  border-radius: 24px;
  background: var(--jaune);
  color: var(--encre);
  text-decoration: none;
  box-shadow: var(--ombre);
}

.review-icon {
  display: flex;
  width: 58px;
  height: 58px;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  background: var(--encre);
  color: var(--jaune);
  font-size: 27px;
}

.review-cta h2 { margin: 0; font-size: 23px; }
.review-cta p { margin: 3px 0 0; color: #53562d; }
.review-arrow { font-size: 32px; font-weight: 900; }
.empty { padding: 30px; border: 1px solid rgba(255,255,255,.14); border-radius: 22px; color: rgba(255,255,255,.72); }

.review-shell {
  width: min(680px, calc(100% - 28px));
  margin: 0 auto;
  padding: 16px 0 42px;
}

.review-top {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  min-height: 58px;
}

.review-back { justify-self: start; padding: 10px 0; color: rgba(255,255,255,.78); font-weight: 900; text-decoration: none; }
.review-title { font-size: 16px; font-weight: 900; }
.review-stats { display: flex; align-items: center; justify-self: end; gap: 8px; }
.music-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 40px;
  padding: 8px 13px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 999px;
  background: rgba(255,255,255,.07);
  color: #fff;
  font: inherit;
  font-size: 16px;
  font-weight: 850;
  cursor: pointer;
}
.music-toggle[aria-pressed="true"] {
  border-color: rgba(225,255,89,.72);
  background: rgba(225,255,89,.16);
}
.mastery-caption {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 7px;
  color: rgba(255,255,255,.72);
  font-size: 16px;
  font-weight: 850;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.mastery-caption strong { color: #fff; }
.mastery-caption strong { display: flex; align-items: baseline; gap: 7px; }
.mastery-device { color: rgba(255,255,255,.82); font-size: 16px; font-weight: 700; letter-spacing: 0; text-transform: none; }
.progress-track { height: 8px; overflow: hidden; margin: 7px 0 22px; border-radius: 99px; background: rgba(255,255,255,.1); }
.progress-bar { width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--orange), var(--jaune)); transition: width .28s ease; }

.flashcard {
  position: relative;
  min-height: 470px;
  padding: 28px;
  overflow: hidden;
  border-radius: 28px;
  background: var(--papier);
  color: var(--encre);
  box-shadow: var(--ombre);
  display: flex;
  flex-direction: column;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--gris);
  font-size: 16px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.question {
  margin: 70px auto 24px;
  max-width: 560px;
  font-size: clamp(25px, 5vw, 36px);
  font-weight: 900;
  line-height: 1.18;
  text-align: center;
}

.card-visual {
  width: auto;
  max-width: min(100%, 520px);
  max-height: 250px;
  margin: 0 auto 24px;
  border-radius: 14px;
  object-fit: contain;
}

.card-visual[hidden] { display: none; }

.math-inline {
  display: inline;
  padding: 0 .08em;
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 600;
  white-space: normal;
}

.math-inline sup,
.math-inline sub {
  font-size: .68em;
  line-height: 1;
}

.math-underline {
  text-decoration: underline;
  text-decoration-thickness: .08em;
  text-underline-offset: .12em;
}

.math-fraction {
  display: inline-grid;
  grid-template-rows: auto auto;
  align-items: center;
  margin: 0 .12em;
  vertical-align: middle;
  line-height: 1.05;
  text-align: center;
}

.math-fraction > span:first-child {
  padding: 0 .2em .08em;
  border-bottom: .075em solid currentColor;
}

.math-fraction > span:last-child { padding: .08em .2em 0; }

.math-root { display: inline-flex; align-items: stretch; }
.math-root > span {
  padding: .02em .08em 0;
  border-top: .075em solid currentColor;
}

.draft-zone {
  width: min(100%, 520px);
  margin: 0 auto 18px;
}

.draft-toggle {
  display: block;
  margin: 0 auto;
  padding: 9px 14px;
  border: 1px solid #c9cbd5;
  border-radius: 999px;
  background: #f2f3f7;
  color: #4e5263;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
}

.draft-panel { margin-top: 10px; }
.draft-panel[hidden] { display: none; }
.draft-panel label {
  display: block;
  margin-bottom: 6px;
  color: var(--gris);
  font-size: 16px;
  font-weight: 800;
}

.draft-panel textarea {
  width: 100%;
  min-height: 72px;
  resize: vertical;
  padding: 12px 14px;
  border: 2px solid #d7d9e1;
  border-radius: 14px;
  background: #fff;
  color: var(--encre);
  font: inherit;
  font-size: 17px;
  line-height: 1.35;
}

.draft-panel textarea:focus {
  border-color: var(--cyan);
  outline: 3px solid rgba(66, 213, 246, .22);
}

.answer {
  margin: 2px auto 24px;
  max-width: 560px;
  overflow-wrap: break-word;
  color: #075f78;
  font-size: clamp(22px, 4vw, 30px);
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
}

.question .hl,
.answer .hl {
  padding: 0 .12em;
  border-radius: .2em;
  background: rgba(66, 213, 246, .28);
}

.question .txt-red,
.answer .txt-red { color: #a81836; }
.question .txt-underline,
.answer .txt-underline { text-decoration: underline; text-decoration-thickness: .08em; text-underline-offset: .12em; }
.question .txt-blue,
.answer .txt-blue { color: #086981; }
.question .txt-yellow,
.answer .txt-yellow { color: #705800; }
.question .txt-small,
.answer .txt-small { font-size: .82em; }
.question .txt-large,
.answer .txt-large { font-size: 1.2em; }

.method-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(100%, 420px);
  min-height: 48px;
  margin: 0 auto 18px;
  padding: 10px 16px;
  border: 2px solid #075f78;
  border-radius: 14px;
  color: #075f78;
  font-weight: 900;
  text-align: center;
  text-decoration: none;
}

.method-link[hidden] { display: none; }

.method-section { margin-top: 30px; }
.method-grid { display: grid; gap: 12px; }
.method-card {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 84px;
  padding: 16px 18px;
  border: 1px solid rgba(255,140,66,.26);
  border-radius: 20px;
  background: rgba(36,27,21,.88);
  color: #fff;
  text-decoration: none;
  transition: transform .2s ease, background .2s ease;
}

.method-card:hover { transform: translateY(-2px); background: rgba(255,255,255,.13); }
.method-play {
  display: grid;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  place-items: center;
  border-radius: 15px;
  background: var(--jaune);
  color: var(--encre);
  font-size: 18px;
}
.method-card strong { display: block; font-size: 18px; }
.method-card small { display: block; margin-top: 4px; color: rgba(255,255,255,.84); font-size: 16px; }

.card-actions { display: flex; gap: 12px; margin-top: auto; }
.flashcard.draft-open .card-actions { margin-top: 16px; }
.action-btn { min-height: 58px; flex: 1; border: 0; border-radius: 17px; cursor: pointer; font-weight: 900; }
.reveal { background: var(--orange); color: var(--encre); }
.retry { background: #ffe7eb; color: #9b1731; }
.known { background: #dff9a1; color: #344109; }

.feedback-pop {
  position: absolute;
  inset: 0;
  z-index: 4;
  padding: 28px;
  background: linear-gradient(150deg, #dff9a1, var(--jaune));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.feedback-pop[hidden] {
  display: none;
}

.feedback-pop.retry-pop { background: linear-gradient(150deg, #ffe4e9, #ff9bb0); }

.feedback-pop.compact-pop {
  inset: 18px 18px auto;
  min-height: 0;
  padding: 12px 18px;
  border: 1px solid rgba(17, 22, 43, .08);
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(17, 22, 43, .18);
  flex-direction: row;
  justify-content: center;
}

.feedback-pop.success-pop { background: linear-gradient(135deg, #efffc8, var(--jaune)); }
.feedback-pop.compact-pop img { display: none; }
.feedback-pop.compact-pop strong { margin: 0; font-size: 20px; letter-spacing: -.02em; }
.feedback-pop.compact-pop span { margin: 0 0 0 9px; font-size: 16px; }

.feedback-pop img {
  width: min(76%, 330px);
  max-height: 250px;
  object-fit: contain;
  filter: drop-shadow(0 14px 24px rgba(0,0,0,.22));
}

.feedback-pop strong { margin-top: 14px; font-size: clamp(34px, 8vw, 54px); line-height: 1; letter-spacing: -.04em; }
.feedback-pop span { margin-top: 8px; font-weight: 800; }
.finish { justify-content: center; align-items: center; text-align: center; }
.finish img { width: min(72%, 300px); max-height: 220px; object-fit: contain; }
.finish h1 { margin-top: 16px; font-size: clamp(38px, 8vw, 58px); }
.finish p { color: var(--gris); }
.finish .finish-advice { margin: 12px 0 0; color: #344109; font-weight: 900; }
.mastery-score {
  display: flex;
  flex-direction: column;
  margin: 8px 0 2px;
  padding: 14px 28px;
  border-radius: 20px;
  background: #efffc8;
}
.mastery-score strong { color: #075f78; font-size: clamp(36px, 8vw, 52px); line-height: 1; }
.mastery-score span { margin-top: 5px; color: #4e5263; font-size: 16px; font-weight: 850; }
.finish-actions { display: flex; gap: 12px; width: 100%; margin-top: 18px; }

.finish-actions a, .finish-actions button {
  flex: 1;
  min-height: 56px;
  padding: 15px;
  border: 0;
  border-radius: 17px;
  background: var(--orange);
  color: var(--encre);
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}

.finish-actions a { display: flex; align-items: center; justify-content: center; background: #e9eaf0; }

.update-toast {
  visibility: hidden;
  position: fixed;
  left: 50%;
  bottom: 18px;
  z-index: 30;
  transform: translate(-50%, 130%);
  padding: 11px 16px;
  border-radius: 999px;
  background: var(--jaune);
  color: var(--encre);
  font-size: 16px;
  font-weight: 900;
  transition: transform .25s ease;
}

.update-toast.show { visibility: visible; transform: translate(-50%, 0); }

.site-footer {
  display: flex;
  justify-content: center;
  padding: 42px 0 28px;
  text-align: center;
}

.site-footer a {
  color: rgba(255,255,255,.78);
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
}

.site-footer a:hover,
.site-footer a:focus-visible { color: #fff; text-decoration: underline; }

@media (max-width: 780px) {
  .shell { width: min(100% - 24px, 620px); padding-top: 12px; }
  .topbar { min-height: 54px; }
  .logo { font-size: 27px; }
  .hero { padding: 34px 0 18px; }
  .levels, .docs-grid, .chapter-grid { grid-template-columns: 1fr; }
  .level-card { min-height: 248px; padding: 24px; }
  .level-current { margin-top: 22px; }
  .level-cta { left: 24px; bottom: 23px; }
  .page-head { padding: 30px 0 22px; }
  .current-card { padding: 27px; }
  .doc-card { min-height: 195px; }
  .review-cta { grid-template-columns: auto 1fr; }
  .review-arrow { display: none; }
  .practice-card { grid-template-columns: auto 1fr; }
  .practice-arrow { display: none; }
}

@media (max-width: 480px) {
  body { background-size: 26px 26px, 26px 26px, auto, auto, auto; }
  .noz-pill { padding: 7px 10px; }
  .noz-pill .label { display: none; }
  .hero p:last-child { font-size: 17px; }
  .level-card { min-height: 224px; }
  .level-number { font-size: 76px; }
  .level-current { max-width: 78%; font-size: 18px; }
  .breadcrumbs { overflow-x: auto; white-space: nowrap; }
  .current-card::after { font-size: 38px; }
  .review-shell { padding-top: 8px; }
  .review-top { grid-template-columns: 1fr auto; }
  .review-title { display: none; }
  .music-toggle { width: 40px; padding: 7px 9px; justify-content: center; }
  .music-label { display: none; }
  .flashcard { min-height: calc(100vh - 112px); min-height: calc(100svh - 112px); padding: 22px; border-radius: 24px; }
  .question { margin-top: 52px; }
  .flashcard.draft-open { min-height: 0; }
  .flashcard.draft-open .question { margin-top: 20px; }
  .answer { font-size: clamp(18px, 5.4vw, 24px); }
  .card-actions { flex-direction: column; }
  .feedback-pop:not(.compact-pop) {
    position: fixed;
    inset: 0;
    z-index: 100;
    min-height: 100vh;
    min-height: 100svh;
    padding: max(28px, env(safe-area-inset-top)) 24px max(28px, env(safe-area-inset-bottom));
  }
  .feedback-pop.compact-pop { inset: 14px 14px auto; }
  .finish-actions { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
}

/* Catalogue commun : niveaux présents et futurs, matières et espaces vides. */
.levels{grid-template-columns:repeat(auto-fit,minmax(min(100%,250px),1fr));}
.level-card{background:var(--level-color,#d4dbea);min-height:260px;display:flex;flex-direction:column;gap:22px;}
.level-current{max-width:none;margin:0;font-size:18px;}
.level-cta{position:static;margin-top:auto;}
.level-number{font-size:clamp(2rem,4vw,2.8rem);line-height:1.1;letter-spacing:-.04em;overflow-wrap:anywhere;}
.catalog-level-2de .current-card,.current-card{background:var(--level-color,#8de5f4);}
.chapter-index,.practice-icon{background:var(--level-color,#8de5f4);color:#171410;}
.subject-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr));gap:20px;}
.subject-card{display:flex;flex-direction:column;min-height:190px;border:2px solid var(--level-color,#d4dbea);border-radius:24px;padding:26px;color:var(--text,#fff8ec);text-decoration:none;overflow-wrap:anywhere;}
.subject-card h2{font-size:1.5rem;margin:0 0 12px;}
.subject-card p{flex:1;margin:0 0 20px;}
.subject-card span{font-weight:800;}
.subject-card:hover,.subject-card:focus-visible{background:#ffffff12;}
.reading-entry{display:flex;flex-wrap:wrap;gap:12px;justify-content:space-between;background:#b5ebda;color:#171410;padding:24px;border-radius:22px;margin-top:26px;text-decoration:none;}
.reading-entry strong{font-size:1.25rem;}
.breadcrumbs{flex-wrap:wrap;}
.level-card:focus-visible,.reading-entry:focus-visible{outline:3px solid #fff;outline-offset:5px;}

/* Retours explicites, accessibles au doigt sur téléphone. */
.breadcrumbs a,.review-back{display:inline-flex;align-items:center;justify-content:center;min-height:52px;padding:12px 20px;border:2px solid rgba(255,255,255,.45);border-radius:16px;background:#fff8ec;color:#201710;font-size:18px;font-weight:850;text-decoration:none;line-height:1.25;}
.breadcrumbs{gap:12px;margin-bottom:22px;}
.breadcrumbs a:hover,.review-back:hover{background:#e7ff67;}
.breadcrumbs a:focus-visible,.review-back:focus-visible{outline:3px solid #e7ff67;outline-offset:4px;}
.review-navigation{margin:12px 0 20px;}
@media(max-width:600px){.breadcrumbs a{flex:1;min-width:120px;}.review-back{padding:10px 16px;font-size:17px;}.breadcrumbs>span{flex-basis:100%;}}
