/* =========================================================
   CAP SUR LA 6ᵉ · EXTRAIT GRATUIT — Styles
   Recréation fidèle du handoff design (design_handoff_extrait_decouverte_capsur6e)
   ========================================================= */
:root {
  --paper: #faf3e3;
  --paper-2: #f6ecd4;
  --paper-3: #efe1c0;
  --paper-shadow: #e8d9b8;

  /* Palette Semaine 1 (terracotta · village de la mémoire) */
  --s1: #c9541f;
  --s1-soft: #e08a5a;
  --s1-light: #f5d7c3;
  --s1-line: #d68b60;
  --s1-dark: #b3491a;
  --s1-ribbon-notch: #a56242;
  --s1-shadow: rgba(201,84,31,.35);

  /* Kaya (bleu profond) */
  --kaya: #3a7ba8;
  --kaya-soft: #7fb0cf;
  --kaya-tint: #eaf3f7;
  --kaya-line: #b7d4e3;

  --green-soft: #7d9968;
  --green-tint: #edf2e4;

  --ink: #4b2e19;
  --ink-2: #6b4a2b;
  --ink-3: #8a6a45;
  --ink-soft: #a4886a;

  --success: #6b7c3a;
  --success-soft: #d9e0b8;
  --error: #b8493e;
  --error-soft: #f3d6ce;
  --gold: #d4a24a;
  --gold-soft: #f4dfb0;

  /* Semaines (pour cartes du sommaire) */
  --w1: #c9541f;
  --w2: #3a7ba8;
  --w3: #8a3a2e;
  --w4: #4a8fa8;
  --w5: #c25e5a;
  --w6: #b58326;

  --font-title: "Playfair Display", "Iowan Old Style", Georgia, serif;
  --font-body:  "Nunito", -apple-system, "Segoe UI", sans-serif;

  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-xl: 32px;
  --shadow-1: 0 1px 2px rgba(75,46,25,.05), 0 6px 22px rgba(75,46,25,.06);
  --shadow-2: 0 2px 6px rgba(75,46,25,.08), 0 14px 40px rgba(75,46,25,.10);

  --nav-h: 64px;
  --foot-h: 68px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
}

.app {
  min-height: 100vh;
  background:
    radial-gradient(ellipse at top left, var(--paper-2), transparent 60%),
    radial-gradient(ellipse at bottom right, var(--paper-3), transparent 55%),
    var(--paper);
  display: flex;
  flex-direction: column;
}

/* =========================
   TOPBAR
   ========================= */
.topbar {
  height: var(--nav-h);
  background: rgba(250, 243, 227, 0.92);
  backdrop-filter: blur(12px) saturate(1.1);
  -webkit-backdrop-filter: blur(12px) saturate(1.1);
  border-bottom: 1.5px solid var(--paper-3);
  display: flex;
  align-items: center;
  padding: 0 24px;
  gap: 20px;
  position: sticky;
  top: 0;
  z-index: 20;
  flex-shrink: 0;
}
.topbar .brand {
  font-family: var(--font-title);
  font-style: italic;
  font-weight: 700;
  color: var(--ink);
  font-size: 17px;
  letter-spacing: .5px;
}
.topbar .brand .sup { color: var(--s1); font-size: 20px; font-weight: 800; }
.topbar .brand-mini {
  font-size: 11px;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 700;
  margin-left: 10px;
  padding: 3px 10px;
  background: var(--gold-soft);
  border-radius: 999px;
}
.topbar .spacer { flex: 1; }
.topbar .step-indicator {
  display: flex;
  gap: 6px;
  align-items: center;
  font-size: 12px;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 700;
}
.topbar .step-dots {
  display: flex;
  gap: 5px;
}
.topbar .step-dots .d {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(75,46,25,.15);
  transition: all .3s;
}
.topbar .step-dots .d.active { background: var(--s1); transform: scale(1.3); }
.topbar .step-dots .d.done { background: var(--gold); }

/* =========================
   STAGE + ARTBOARD
   ========================= */
.stage {
  flex: 1;
  padding: 24px 24px 32px;
  display: flex;
  justify-content: center;
  overflow-x: hidden;
}
.artboard {
  width: 100%;
  max-width: 1120px;
  background: #fdf9ea;
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-2);
  padding: 44px 56px 52px;
  position: relative;
}
.artboard::before,
.artboard::after {
  content: '';
  position: absolute;
  top: 14px;
  width: 60px;
  height: 60px;
  background-image:
    linear-gradient(var(--ink-soft) 0 0),
    linear-gradient(var(--ink-soft) 0 0),
    linear-gradient(var(--ink-soft) 0 0);
  background-repeat: no-repeat;
  background-position: 0 20px, 0 30px, 0 40px;
  background-size: 26px 1.5px, 20px 1.5px, 14px 1.5px;
  opacity: .35;
}
.artboard::before { left: 14px; }
.artboard::after  { right: 14px; transform: scaleX(-1); }

/* =========================
   FOOTNAV
   ========================= */
.footnav {
  height: var(--foot-h);
  background: rgba(250, 243, 227, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1.5px solid var(--paper-3);
  display: flex;
  align-items: center;
  padding: 0 24px;
  gap: 16px;
  position: sticky;
  bottom: 0;
  z-index: 20;
  flex-shrink: 0;
}
.footnav .center {
  flex: 1;
  text-align: center;
  font-family: var(--font-title);
  font-style: italic;
  color: var(--ink-2);
  font-size: 15px;
}
.footnav .center .cnt {
  color: var(--ink-3);
  font-family: var(--font-body);
  font-style: normal;
  font-size: 13px;
  font-weight: 500;
  margin-left: 4px;
}
.nav-btn {
  padding: 10px 22px;
  border-radius: var(--r-md);
  border: 1.5px solid var(--paper-3);
  background: #fff;
  color: var(--ink-2);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all .2s;
}
.nav-btn:hover:not(:disabled) {
  background: var(--paper-2);
  border-color: var(--s1-line);
}
.nav-btn:disabled { opacity: .35; cursor: not-allowed; }
.nav-btn.primary {
  background: var(--s1);
  color: white;
  border-color: var(--s1);
  box-shadow: 0 2px 10px var(--s1-shadow);
}
.nav-btn.primary:hover:not(:disabled) {
  background: var(--s1-dark);
  border-color: var(--s1-dark);
}

/* =========================
   PAGE HEADER + RUBAN
   ========================= */
.page-header { text-align: center; margin-bottom: 8px; }
.ribbon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 26px;
  background: var(--s1);
  color: white;
  font-weight: 800;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 3px;
  border-radius: 4px;
  position: relative;
  margin-bottom: 14px;
}
.ribbon::before, .ribbon::after {
  content: '';
  position: absolute;
  top: 0;
  width: 12px;
  height: 100%;
  background: var(--s1-ribbon-notch);
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}
.ribbon::before { left: -11px; clip-path: polygon(100% 0, 0 50%, 100% 100%); }
.ribbon::after  { right: -11px; }
.ribbon-large { padding: 12px 36px; font-size: 14px; }

.h-title {
  font-family: var(--font-title);
  font-style: italic;
  font-weight: 800;
  color: var(--ink);
  font-size: 44px;
  line-height: 1.05;
  margin: 8px 0 6px;
}
.h-title.small { font-size: 34px; }
.objective {
  font-family: var(--font-title);
  font-style: italic;
  color: var(--ink-2);
  font-size: 18px;
  margin: 4px auto 0;
  max-width: 720px;
}
.objective .pict {
  vertical-align: -3px;
  margin-right: 6px;
}

/* =========================
   SECTION HEADER
   ========================= */
.section-h {
  font-family: var(--font-title);
  font-style: italic;
  font-weight: 700;
  color: var(--s1);
  font-size: 26px;
  margin: 32px 0 12px;
}
.section-h.blue { color: var(--kaya); }
.section-h .ic { margin-right: 8px; }

/* =========================
   CARDS
   ========================= */
.card {
  background: #fff;
  border: 1.5px solid var(--paper-3);
  border-radius: var(--r-lg);
  padding: 22px 26px;
  box-shadow: var(--shadow-1);
}
.card.tint-kaya {
  background: var(--kaya-tint);
  border-color: var(--kaya-line);
}
.card.tint-gold {
  background: var(--gold-soft);
  border-color: var(--gold);
}
.card.tint-s1 {
  background: var(--s1-light);
  border-color: var(--s1-line);
}

.mot-kaya {
  background: var(--kaya-tint);
  border: 1.5px solid var(--kaya-line);
  border-radius: var(--r-lg);
  padding: 20px 24px;
  position: relative;
}
.mot-kaya h4 {
  font-family: var(--font-title);
  font-style: italic;
  color: var(--kaya);
  font-size: 20px;
  margin: 0 0 8px;
  font-weight: 700;
}
.mot-kaya p {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--ink);
}

/* =========================
   BUTTONS
   ========================= */
.btn-verify {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 30px;
  background: var(--s1);
  color: white;
  border: none;
  border-radius: var(--r-md);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  box-shadow: 0 2px 10px var(--s1-shadow);
  transition: all .2s;
}
.btn-verify:hover:not(:disabled) {
  background: var(--s1-dark);
  transform: translateY(-1px);
}
.btn-verify:disabled { opacity: .4; cursor: not-allowed; }
.btn-verify.gold {
  background: var(--gold);
  color: var(--ink);
  box-shadow: 0 2px 10px rgba(212,162,74,.35);
}
.btn-verify.gold:hover { background: #c69340; box-shadow: 0 4px 14px rgba(212,162,74,.45); }
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 12px 24px;
  background: transparent;
  color: var(--ink-2);
  border: 1.5px solid var(--paper-3);
  border-radius: var(--r-md);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all .2s;
}
.btn-ghost:hover {
  background: var(--paper-2);
  border-color: var(--s1-line);
}

/* =========================
   COVER
   ========================= */
.cover {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  min-height: 500px;
}
.cover .brand-line {
  font-size: 11px;
  color: var(--s1);
  font-weight: 800;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.cover-title {
  font-family: var(--font-title);
  font-style: italic;
  font-weight: 800;
  color: var(--ink);
  font-size: 68px;
  line-height: 1;
  margin: 0 0 12px;
}
.cover-sub {
  font-family: var(--font-title);
  font-style: italic;
  color: var(--ink-2);
  font-size: 20px;
  line-height: 1.4;
  margin: 0 0 24px;
}
.cover-tag {
  display: inline-flex;
  padding: 6px 16px;
  background: var(--gold-soft);
  color: var(--ink);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.cover-apercu-tag {
  display: inline-flex;
  padding: 5px 14px;
  background: var(--kaya-tint);
  color: var(--kaya);
  border: 1.5px solid var(--kaya-line);
  border-radius: 999px;
  font-family: var(--font-title);
  font-style: italic;
  font-size: 13px;
  font-weight: 700;
  margin-left: 8px;
  margin-bottom: 8px;
}
.cover-cta {
  display: flex;
  gap: 12px;
  margin-top: 26px;
  flex-wrap: wrap;
}
.btn-cover {
  padding: 15px 30px;
  border-radius: var(--r-md);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 16px;
  border: none;
  cursor: pointer;
  transition: all .2s;
}
.btn-cover.primary {
  background: var(--s1);
  color: white;
  box-shadow: 0 4px 14px var(--s1-shadow);
}
.btn-cover.primary:hover { background: var(--s1-dark); transform: translateY(-1px); }
.btn-cover.ghost {
  background: transparent;
  color: var(--ink-2);
  border: 1.5px solid var(--paper-3);
}
.btn-cover.ghost:hover { background: var(--paper-2); border-color: var(--s1-line); }

.cover-illus {
  aspect-ratio: 4/5;
  max-height: 540px;
  border-radius: var(--r-lg);
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow-2);
}

/* =========================
   SOMMAIRE
   ========================= */
.som-carte {
  aspect-ratio: 2 / 1;
  border-radius: var(--r-lg);
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow-2);
  margin-bottom: 24px;
}
.som-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.som-card {
  background: #fff;
  border-radius: var(--r-md);
  padding: 16px 20px;
  border: 1.5px solid var(--paper-3);
  box-shadow: var(--shadow-1);
  display: flex;
  gap: 14px;
  align-items: center;
  position: relative;
  cursor: default;
  transition: all .2s;
  text-align: left;
  width: 100%;
  font: inherit;
  color: inherit;
}
.som-card.unlocked {
  cursor: pointer;
  border-color: var(--s1-line);
  background: var(--s1-light);
}
.som-card.unlocked:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); }
.som-card.locked {
  opacity: .58;
  background: linear-gradient(135deg, #fdf9ea, var(--paper-2));
}
.som-card .pastille {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: white;
  font-family: var(--font-title);
  font-style: italic;
  font-weight: 800;
  font-size: 22px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.som-card .contents {
  flex: 1;
  min-width: 0;
}
.som-card .som-title {
  font-family: var(--font-title);
  font-style: italic;
  font-weight: 700;
  color: var(--ink);
  font-size: 17px;
  margin: 0;
  line-height: 1.15;
}
.som-card .som-desc {
  color: var(--ink-3);
  font-size: 13px;
  margin: 3px 0 0;
  line-height: 1.35;
}
.som-card .lock {
  color: var(--ink-3);
  font-size: 14px;
  opacity: .5;
}
.som-card .accessible {
  position: absolute;
  top: -8px;
  right: 12px;
  background: var(--gold);
  color: var(--ink);
  font-size: 10px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 999px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

/* =========================
   DIAGNOSTIC
   ========================= */
.diag-progress {
  display: flex;
  gap: 8px;
  margin: 20px 0 24px;
  justify-content: center;
}
.diag-progress .seg {
  width: 60px;
  height: 6px;
  border-radius: 3px;
  background: rgba(75,46,25,.15);
}
.diag-progress .seg.done { background: var(--gold); }
.diag-progress .seg.active { background: var(--s1); }

.diag-question {
  background: #fff;
  border-radius: var(--r-lg);
  padding: 32px 40px;
  box-shadow: var(--shadow-1);
  margin: 20px 0;
}
.diag-question .q {
  font-family: var(--font-title);
  font-style: italic;
  font-size: 24px;
  color: var(--ink);
  margin: 0 0 20px;
  line-height: 1.35;
}
.chip-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.chip {
  padding: 10px 20px;
  border-radius: 999px;
  background: #fff;
  border: 1.5px solid var(--paper-3);
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--ink-2);
  cursor: pointer;
  transition: all .15s;
  user-select: none;
}
.chip:hover { border-color: var(--s1-line); background: var(--paper-2); }
.chip.selected {
  background: var(--s1);
  color: white;
  border-color: var(--s1);
}
.chip.big { padding: 14px 28px; font-size: 15px; }

/* =========================
   JOUR — J'observe + KayaCard + exercice
   ========================= */
.day-meta {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 12px;
  color: var(--ink-3);
  font-size: 13px;
}
.day-meta .m {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.day-meta .m::before {
  content: '';
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--s1);
  display: inline-block;
}

.observe-intro {
  font-family: var(--font-title);
  font-style: italic;
  color: var(--ink-2);
  font-size: 17px;
  margin: 8px 0 16px;
}
.observe-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: stretch;
}
.observe-illus {
  border-radius: var(--r-lg);
  background-size: cover;
  background-position: center;
  min-height: 220px;
  box-shadow: var(--shadow-1);
}
.observe-text {
  background: #fff;
  border: 1.5px solid var(--paper-3);
  border-radius: var(--r-lg);
  padding: 22px 24px;
  box-shadow: var(--shadow-1);
  display: flex;
  align-items: center;
}
.observe-text .sent {
  font-family: var(--font-title);
  font-style: italic;
  font-size: 22px;
  line-height: 1.4;
  color: var(--ink);
  margin: 0;
}
.observe-text .sent + .sent { margin-top: 12px; }

.ex-item {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 14px 18px;
  background: #fff;
  border-radius: var(--r-md);
  border: 1.5px solid var(--paper-3);
  margin-top: 10px;
}
.ex-item .n {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--s1);
  color: white;
  font-weight: 800;
  font-size: 14px;
  display: grid;
  place-items: center;
}
.ex-item .sent {
  font-family: var(--font-title);
  font-style: italic;
  color: var(--ink);
  font-size: 17px;
  margin: 0;
  line-height: 1.4;
}
.ex-item .word {
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 4px;
  transition: all .15s;
  border: none;
  background: transparent;
  font: inherit;
  font-style: italic;
  color: inherit;
}
.ex-item .word:disabled { cursor: default; }
.ex-item .word.picked { background: var(--s1); color: white; }
.ex-item .word.correct { background: var(--success); color: white; }
.ex-item .word.wrong { background: var(--error); color: white; opacity: .85; }

.helper-toggle {
  background: none;
  border: none;
  color: var(--kaya);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 0;
  margin-top: 10px;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--kaya-line);
}
.helper-toggle:hover { text-decoration-color: var(--kaya); }
.helper-body {
  background: var(--kaya-tint);
  border-left: 3px solid var(--kaya);
  padding: 12px 18px;
  margin: 8px 0 0;
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.5;
}

.actions-row {
  display: flex;
  gap: 12px;
  margin-top: 16px;
  align-items: center;
  flex-wrap: wrap;
}

.day-close {
  background: var(--s1-light);
  border: 1.5px solid var(--s1-line);
  border-radius: var(--r-lg);
  padding: 18px 24px;
  margin-top: 24px;
  display: flex;
  gap: 20px;
  align-items: center;
}
.day-close .kind {
  font-size: 11px;
  color: var(--s1);
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.day-close .msg {
  font-family: var(--font-title);
  font-style: italic;
  color: var(--ink);
  font-size: 16.5px;
  line-height: 1.5;
  margin: 0;
}
.day-close .feather-visual {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
}

/* =========================
   JE RETIENS
   ========================= */
.retiens-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.retiens-item {
  background: #fff;
  border-left: 4px solid var(--s1);
  border-radius: var(--r-sm);
  padding: 16px 20px;
  box-shadow: var(--shadow-1);
}
.retiens-item h5 {
  font-family: var(--font-title);
  font-style: italic;
  font-weight: 700;
  color: var(--s1);
  font-size: 17px;
  margin: 0 0 4px;
}
.retiens-item p {
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.5;
  margin: 0;
}

/* =========================
   COIN DES PARENTS
   ========================= */
.parents-hero {
  background: linear-gradient(135deg, var(--paper-2), #fdf9ea);
  border-radius: var(--r-lg);
  padding: 26px 32px;
  border: 1.5px solid var(--paper-3);
  margin-bottom: 20px;
}
.parents-hero h4 {
  font-family: var(--font-title);
  font-style: italic;
  font-weight: 700;
  color: var(--ink);
  font-size: 24px;
  margin: 0 0 8px;
}
.parents-hero p {
  color: var(--ink-2);
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
}
.parents-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 12px;
}
.parents-card {
  background: #fff;
  border-radius: var(--r-md);
  border: 1.5px solid var(--paper-3);
  padding: 18px 20px;
  box-shadow: var(--shadow-1);
}
.parents-card .p-num {
  color: var(--s1);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.parents-card h5 {
  font-family: var(--font-title);
  font-style: italic;
  color: var(--ink);
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 6px;
  line-height: 1.25;
}
.parents-card p {
  color: var(--ink-2);
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
}

/* =========================
   INVITATION FINALE
   ========================= */
.invitation-hero {
  text-align: center;
  padding: 20px 0;
}
.invitation-bird {
  font-size: 34px;
  margin-bottom: 4px;
}
.invitation-cta {
  background: linear-gradient(135deg, var(--gold-soft), var(--paper-2));
  border: 2px solid var(--gold);
  border-radius: var(--r-lg);
  padding: 34px 40px;
  text-align: center;
  margin-top: 20px;
}
.invitation-cta h3 {
  font-family: var(--font-title);
  font-style: italic;
  font-weight: 800;
  color: var(--ink);
  font-size: 32px;
  margin: 0 0 10px;
}
.invitation-cta p {
  color: var(--ink-2);
  font-size: 17px;
  line-height: 1.55;
  margin: 0 auto 22px;
  max-width: 620px;
}
.invitation-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 24px 0;
  text-align: left;
}
.invit-feat {
  background: rgba(255,255,255,.72);
  border-radius: var(--r-md);
  padding: 14px 16px;
}
.invit-feat .feat-num {
  color: var(--s1);
  font-family: var(--font-title);
  font-style: italic;
  font-weight: 800;
  font-size: 24px;
  line-height: 1;
  margin-bottom: 4px;
}
.invit-feat .feat-lbl {
  color: var(--ink);
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 2px;
}
.invit-feat .feat-sub {
  color: var(--ink-3);
  font-size: 12px;
}

/* =========================
   UTILITAIRES
   ========================= */
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.col { display: flex; flex-direction: column; gap: 8px; }
.text-c { text-align: center; }
.text-muted { color: var(--ink-3); }
.small { font-size: 13.5px; }
.tiny { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; font-weight: 800; }
.tiny.s1 { color: var(--s1); }
.tiny.kaya { color: var(--kaya); }
.grow { flex: 1; }
.italic { font-style: italic; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mb-1 { margin-bottom: 8px; }

.kaya-signature {
  color: var(--kaya);
  text-align: center;
}

/* =========================================================
   PARTIE PROTÉGÉE — Diagnostic complet (10 Q) + Semaine 1 complète
   Réutilise au maximum les tokens et classes ci-dessus.
   ========================================================= */

/* --- Domaines du diagnostic (rapport final) --- */
.domain-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.domain-card {
  background: #fff;
  border: 1.5px solid var(--paper-3);
  border-radius: var(--r-md);
  padding: 14px 16px;
  box-shadow: var(--shadow-1);
}
.domain-card .d-tag { font-size: 11px; font-weight: 800; letter-spacing: 1.5px; }
.domain-card .d-label {
  font-family: var(--font-title); font-style: italic; font-size: 14.5px;
  color: var(--ink); margin: 4px 0;
}
.domain-card .d-score {
  font-family: var(--font-title); font-style: italic; font-weight: 700; font-size: 22px;
}
.domain-card .d-score .over { color: var(--ink-3); font-size: 14px; }

/* --- Bloc "carte" utilitaire pour encadrés Kaya / Défi --- */
.card-kaya, .card-defi {
  border-radius: var(--r-lg);
  padding: 20px 24px;
  margin-top: 18px;
  box-shadow: var(--shadow-1);
}
.card-kaya { background: var(--kaya-tint); border: 1.5px solid var(--kaya-line); }
.card-kaya.tint-gold { background: var(--gold-soft); border-color: var(--gold); }
.card-defi { background: var(--s1-light); border: 1.5px solid var(--s1-line); }
.card-kaya .card-head, .card-defi .card-head {
  display: flex; align-items: center; gap: 8px; margin-bottom: 10px;
}
.card-kaya .card-head .bulb, .card-defi .card-head .star { font-size: 18px; }
.card-defi .card-head { color: var(--s1-dark); font-weight: 800; font-family: var(--font-title); font-style: italic; font-size: 17px; }
.card-kaya p, .card-defi p { margin: 0 0 8px; font-size: 15.5px; line-height: 1.6; color: var(--ink); }
.card-kaya p:last-child, .card-defi p:last-child { margin-bottom: 0; }
.text-kaya { color: var(--kaya); }

/* --- Champ de saisie (Field) --- */
.field {
  width: 100%;
  padding: 10px 14px;
  border-radius: var(--r-sm);
  border: 1.5px solid var(--paper-3);
  background: #fff;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--ink);
  transition: all .15s;
}
.field:focus { outline: none; border-color: var(--s1-line); box-shadow: 0 0 0 3px var(--s1-light); }
.field.correct { border-color: var(--success); background: var(--success-soft); }
.field.wrong { border-color: var(--error); background: var(--error-soft); }
textarea.field { resize: vertical; font-family: var(--font-body); line-height: 1.5; }

/* --- Feedback ligne --- */
.feedback {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px; border-radius: var(--r-sm);
  font-size: 14px; font-weight: 600;
}
.feedback.ok { background: var(--success-soft); color: var(--success); }
.feedback.ko, .feedback.wrong { background: var(--error-soft); color: var(--error); }
.feedback.info { background: var(--kaya-tint); color: var(--kaya); }

/* --- Bloc d'exercice générique --- */
.ex-block {
  background: #fff;
  border: 1.5px solid var(--paper-3);
  border-radius: var(--r-lg);
  padding: 22px 26px;
  margin-top: 18px;
  box-shadow: var(--shadow-1);
}
.ex-block .ex-head {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-title); font-style: italic; font-weight: 700;
  color: var(--s1); font-size: 16px; margin-bottom: 10px;
}
.ex-block .ex-head .num {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--s1); color: #fff; font-size: 13px; font-weight: 800;
  display: grid; place-items: center; font-family: var(--font-body); font-style: normal;
}
.ex-consigne {
  font-family: var(--font-title); font-style: italic; color: var(--ink-2);
  font-size: 16.5px; margin: 0 0 14px; line-height: 1.45;
}
.ex-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.ex-item.simple { grid-template-columns: 30px 1fr; }

/* --- Chips variantes (ordre, choix, tags) --- */
.chip.placed { background: var(--kaya); color: #fff; border-color: var(--kaya); }
.chip.correct { background: var(--success); color: #fff; border-color: var(--success); }
.chip.wrong { background: var(--error); color: #fff; border-color: var(--error); }
.chip-row.dropzone {
  min-height: 44px; padding: 8px; margin-top: 6px;
  border: 1.5px dashed var(--paper-3); border-radius: var(--r-sm);
}
.chip.tag-sujet { background: var(--error-soft); border-color: var(--error); color: var(--error); cursor: default; }
.chip.tag-verbe { background: var(--kaya-tint); border-color: var(--kaya-line); color: var(--kaya); cursor: default; }
.chip.tag-cmpt { background: var(--paper-2); border-color: var(--paper-3); color: var(--ink-2); cursor: default; }

/* --- Mots cliquables souligner/entourer (ExVerbeSujet, ExSouligner) --- */
.ex-item .w {
  cursor: pointer; padding: 2px 4px; border-radius: 4px; transition: all .15s;
  font: inherit; font-style: italic; color: inherit;
}
.ex-item .w.underline { text-decoration: underline; text-decoration-color: var(--kaya); text-decoration-thickness: 2px; background: var(--kaya-tint); }
.ex-item .w.circle { border: 2px solid var(--error); border-radius: 999px; padding: 2px 8px; background: var(--error-soft); }
.ex-item .w.correct { background: var(--success-soft); color: var(--success); font-weight: 700; }
.ex-item .w.wrong { background: var(--error-soft); color: var(--error); text-decoration: line-through; }

/* --- Semaine 1 · Écran d'ouverture --- */
.week-open { position: relative; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-2); }
.cover-scene { aspect-ratio: 20/8; background-size: cover; background-position: center; }
.week-open .mot-kaya { border-radius: 0; margin: 0; border: none; border-top: 3px solid var(--kaya); }

.program-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 14px;
}
.program-card {
  --pc: var(--s1);
  background: #fff; border: 1.5px solid var(--paper-3); border-radius: var(--r-md);
  padding: 16px 18px; display: flex; align-items: center; gap: 12px; cursor: pointer;
  transition: all .2s; box-shadow: var(--shadow-1);
}
.program-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); border-color: var(--pc); }
.program-card .n {
  width: 34px; height: 34px; border-radius: 50%; background: var(--pc); color: #fff;
  font-family: var(--font-title); font-style: italic; font-weight: 800; font-size: 16px;
  display: grid; place-items: center; flex-shrink: 0;
}
.program-card .lbl { font-size: 14px; font-weight: 600; color: var(--ink); flex: 1; }

.mission-strip {
  background: var(--gold-soft); border: 1.5px solid var(--gold);
  border-radius: var(--r-lg); padding: 18px 24px; text-align: center;
}
.mission-strip h4 { font-family: var(--font-title); font-style: italic; margin: 0 0 6px; color: var(--ink); font-size: 18px; }
.mission-strip p { margin: 0; color: var(--ink-2); font-size: 15px; line-height: 1.5; }

/* --- Jour 1 · comparaison vrai/faux phrase --- */
.observe-two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.observe-card { border-radius: var(--r-lg); padding: 20px 22px; text-align: center; box-shadow: var(--shadow-1); }
.observe-card.ok { background: var(--success-soft); border: 1.5px solid var(--success); }
.observe-card.ko { background: var(--error-soft); border: 1.5px solid var(--error); }
.observe-tag { font-size: 12px; font-weight: 800; letter-spacing: 1px; margin-bottom: 8px; display: block; }
.observe-card.ok .observe-tag { color: var(--success); }
.observe-card.ko .observe-tag { color: var(--error); }
.observe-sent { font-family: var(--font-title); font-style: italic; font-size: 18px; color: var(--ink); }
.observe-caption { text-align: center; color: var(--ink-3); font-size: 13px; font-style: italic; margin-top: 10px; }

/* --- Jour 2 · bulles de dialogue types de phrases --- */
.observe-bubbles { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.bubble {
  background: #fff; border: 2px solid var(--paper-3); border-radius: 999px;
  padding: 10px 20px; font-family: var(--font-title); font-style: italic; font-size: 16px;
  box-shadow: var(--shadow-1);
}

/* --- Jour 3 · groupe nominal (étals du marché) --- */
.gn-showcase { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.gn-card {
  background: #fff; border: 1.5px solid var(--paper-3); border-radius: var(--r-lg);
  padding: 20px; text-align: center; box-shadow: var(--shadow-1);
  display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; align-items: baseline;
  position: relative; padding-bottom: 32px;
}
.gn-showcase .gn-det { color: var(--kaya); font-family: var(--font-title); font-style: italic; font-size: 17px; }
.gn-showcase .gn-adj { color: var(--success); font-family: var(--font-title); font-style: italic; font-size: 17px; }
.gn-showcase .gn-nom { color: var(--s1); font-weight: 800; font-family: var(--font-title); font-style: italic; font-size: 19px; }
.gn-caption {
  position: absolute; bottom: 10px; left: 0; right: 0; text-align: center;
  font-size: 12px; color: var(--ink-3); font-style: italic;
}

/* --- Jour 4 · sujet/verbe --- */
.sv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.sv-item {
  background: #fff; border: 1.5px solid var(--paper-3); border-radius: var(--r-md);
  padding: 16px; text-align: center; display: flex; align-items: center; justify-content: center;
  gap: 8px; box-shadow: var(--shadow-1);
}
.sv-arrow { color: var(--ink-3); }

/* --- Jour 5 · singulier/pluriel --- */
.sp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.sp-card { background: #fff; border: 1.5px solid var(--paper-3); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-1); }
.sp-label {
  font-size: 11px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase;
  color: var(--ink-3); padding: 10px 16px 0;
}
.sp-illus { aspect-ratio: 16/10; background-size: cover; background-position: center; margin-top: 6px; }
.sp-sent { padding: 12px 16px 16px; font-family: var(--font-title); font-style: italic; font-size: 16px; color: var(--ink); margin: 0; line-height: 1.5; }

/* --- Bandeau meta jour + motivation --- */
.meta { display: flex; gap: 10px; justify-content: center; margin-top: 10px; flex-wrap: wrap; }
.chip-meta {
  background: var(--paper-2); color: var(--ink-2); font-size: 12px; font-weight: 600;
  padding: 5px 14px; border-radius: 999px;
}
.day-motivation { text-align: center; color: var(--ink-3); font-size: 13.5px; font-style: italic; margin: 8px 0 0; }
.day-motivation .b { margin-right: 4px; }

/* --- Mission de la semaine (lettre) --- */
.mission-step {
  --step-color: var(--s1);
  display: flex; gap: 16px; align-items: flex-start;
  background: #fff; border: 1.5px solid var(--paper-3); border-radius: var(--r-lg);
  padding: 20px 24px; box-shadow: var(--shadow-1);
}
.mission-step-icon {
  width: 46px; height: 46px; border-radius: 50%; background: var(--step-color);
  display: grid; place-items: center; flex-shrink: 0;
}
.mission-step-body { flex: 1; }
.mission-step-head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; flex-wrap: wrap; }
.mission-step-n { font-size: 11px; font-weight: 800; letter-spacing: 1.5px; color: var(--step-color); }
.mission-step-title { font-family: var(--font-title); font-style: italic; margin: 0; font-size: 18px; color: var(--ink); }
.mission-step-say { color: var(--ink-3); font-size: 14px; margin: 0 0 10px; }

/* --- Plumes (progrès de la semaine) --- */
.plumes-row { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; }
.plume-btn {
  background: var(--paper-2); border: 1.5px solid var(--paper-3); border-radius: var(--r-md);
  display: grid; place-items: center; cursor: pointer; transition: all .2s; padding: 0;
}
.plume-btn:hover { border-color: var(--gold); }
.plume {
  width: 30px; height: 45px;
  background: rgba(75,46,25,.15);
  clip-path: polygon(50% 0%, 90% 20%, 100% 60%, 65% 100%, 35% 100%, 0% 60%, 10% 20%);
  transition: background .2s;
}
.plume.done { background: var(--gold); }

/* --- Checklist réussites --- */
.checkl { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.checkl li {
  display: flex; align-items: center; gap: 12px; cursor: pointer;
  padding: 8px 4px; border-radius: var(--r-sm); transition: background .15s;
}
.checkl li:hover { background: var(--paper-2); }
.checkl .box {
  width: 20px; height: 20px; border-radius: 5px; border: 2px solid var(--paper-3); flex-shrink: 0;
  transition: all .15s; position: relative;
}
.checkl li.on .box { background: var(--success); border-color: var(--success); }
.checkl li.on .box::after {
  content: '✓'; position: absolute; inset: 0; color: #fff; font-size: 13px;
  display: grid; place-items: center; font-weight: 800;
}
.checkl .lbl { font-size: 14.5px; color: var(--ink-2); }
.checkl li.on .lbl { color: var(--ink-3); text-decoration: line-through; }

/* --- Bloc dépliable (coin des parents en clôture) --- */
.disclose {
  border: 1.5px solid var(--paper-3); border-radius: var(--r-md); overflow: hidden; background: #fff;
}
.disclose summary {
  padding: 14px 18px; cursor: pointer; font-weight: 700; color: var(--ink-2);
  font-family: var(--font-body); list-style: none; display: flex; align-items: center; gap: 8px;
}
.disclose summary::-webkit-details-marker { display: none; }
.disclose[open] summary { background: var(--paper-2); }
.disclose .body { padding: 4px 18px 16px; color: var(--ink-2); font-size: 14.5px; line-height: 1.6; }
.disclose .body ul { margin: 0; padding-left: 20px; }
.disclose .body li { margin-bottom: 6px; }

/* --- Conseil du professeur --- */
.card-conseil {
  background: linear-gradient(135deg, var(--paper-2), #fdf9ea);
  border: 1.5px solid var(--gold); border-radius: var(--r-lg);
  padding: 26px 30px; box-shadow: var(--shadow-1);
}
.card-conseil h4 { font-family: var(--font-title); font-style: italic; margin: 0 0 12px; font-size: 19px; color: var(--ink); }
.card-conseil .body p { margin: 0 0 12px; font-size: 15.5px; line-height: 1.6; color: var(--ink-2); }
.card-conseil .body p:last-child { margin-bottom: 0; }

.tint-green { background: var(--green-tint); border-color: var(--green-soft); }
.card-title { font-family: var(--font-title); font-style: italic; font-weight: 700; }

/* Responsive : partie protégée */
@media (max-width: 900px) {
  .domain-grid { grid-template-columns: repeat(2, 1fr); }
  .program-grid { grid-template-columns: 1fr; }
  .gn-showcase { grid-template-columns: 1fr; }
  .sv-grid { grid-template-columns: 1fr; }
  .sp-grid { grid-template-columns: 1fr; }
  .observe-two { grid-template-columns: 1fr; }
  .mission-step { flex-direction: column; }
}

/* Responsive tablette/desktop */
@media (max-width: 900px) {
  .cover { grid-template-columns: 1fr; gap: 24px; }
  .cover-illus { max-height: 380px; aspect-ratio: 16/10; order: -1; }
  .observe-grid { grid-template-columns: 1fr; }
  .som-grid { grid-template-columns: repeat(2, 1fr); }
  .parents-grid { grid-template-columns: 1fr; }
  .invitation-features { grid-template-columns: 1fr; }
  .artboard { padding: 30px 24px 36px; }
  .cover-title { font-size: 48px; }
  .h-title { font-size: 32px; }
}
@media (max-width: 560px) {
  .som-grid { grid-template-columns: 1fr; }
  .stage { padding: 12px; }
  .topbar {
    height: auto;
    min-height: var(--nav-h);
    padding: 10px 14px;
    gap: 6px 10px;
    flex-wrap: wrap;
  }
  .topbar .brand { font-size: 15px; }
  .topbar .brand-mini { margin-left: 0; }
  .topbar .step-indicator { order: 3; width: 100%; justify-content: flex-end; }
  .footnav { padding: 0 14px; }
  .footnav .center { font-size: 13px; }
  .nav-btn { padding: 9px 14px; font-size: 13px; }
  .cover-title { font-size: 40px; }
  .h-title { font-size: 26px; }
  .diag-question { padding: 22px 20px; }
  .diag-question .q { font-size: 19px; }
}

/* ==========================================================
   Pages /acces et /admin (hors app.js — HTML + CSS statiques)
   ========================================================== */
.access-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: var(--paper);
}
.access-card {
  width: 100%;
  max-width: 420px;
  background: var(--paper-2);
  border: 1px solid var(--paper-shadow);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-2);
  padding: 32px 30px;
  text-align: center;
}
.access-title {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 30px;
  color: var(--ink);
}
.access-title .sup { color: var(--s1); font-style: italic; }
.access-sub { color: var(--ink-3); font-size: 14px; margin: 8px 0 20px; }
.access-input {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px;
  border: 1px solid var(--s1-line);
  border-radius: var(--r-md);
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
  letter-spacing: .5px;
  margin-top: 8px;
}
.access-input:focus { outline: none; border-color: var(--s1); box-shadow: 0 0 0 3px var(--s1-light); }
.access-error { color: var(--error); font-size: 13px; margin-top: 12px; }
.access-help { font-size: 13px; color: var(--ink-3); margin-top: 18px; }
.access-help a { color: var(--kaya); font-weight: 700; text-decoration: none; }
.access-help a:hover { text-decoration: underline; }

.admin-wrap { max-width: 960px; margin: 0 auto; padding: 32px 20px 60px; }
.admin-title { font-family: var(--font-title); font-size: 26px; color: var(--ink); margin-bottom: 20px; }
.admin-card {
  background: var(--paper-2);
  border: 1px solid var(--paper-shadow);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-1);
  padding: 22px 24px;
  margin-bottom: 20px;
}
.admin-h2 { font-family: var(--font-title); font-size: 18px; color: var(--ink); margin: 6px 0 12px; }
.admin-form-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.admin-form-row .access-input { width: auto; flex: 1 1 160px; margin-top: 0; }
.admin-new-code { margin-top: 12px; font-weight: 700; color: var(--success); }
.admin-table { width: 100%; border-collapse: collapse; margin-top: 10px; font-size: 13px; }
.admin-table th, .admin-table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--paper-shadow); }
.admin-table .mono { font-family: monospace; letter-spacing: .5px; }
.tag-ok { color: var(--success); font-weight: 700; }
.tag-ko { color: var(--error); font-weight: 700; }
.btn-ghost.small { padding: 5px 10px; font-size: 12px; }

/* ==========================================================
   Semaine 2 — classes manquantes (observation d'une scène,
   couleur de texte terracotta pour libellés courts)
   ========================================================== */
.text-s1 { color: var(--s1); }
.observe-scene {
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-1);
}
.observe-scene-img {
  width: 100%;
  background-size: cover;
  background-position: center;
}

/* ——— Frise ethnique horizontale (Diplôme) ——— */
.frieze {
  height: 14px; margin: 8px 0;
  background:
    linear-gradient(90deg,
      var(--s1) 0 5%, transparent 5% 8%,
      var(--gold) 8% 13%, transparent 13% 16%,
      var(--kaya) 16% 20%, transparent 20% 23%,
      var(--success) 23% 28%, transparent 28% 31%,
      var(--s1) 31% 36%, transparent 36% 39%,
      var(--gold) 39% 44%, transparent 44% 47%,
      var(--kaya) 47% 51%, transparent 51% 54%,
      var(--success) 54% 59%, transparent 59% 62%,
      var(--s1) 62% 67%, transparent 67% 70%,
      var(--gold) 70% 75%, transparent 75% 78%,
      var(--kaya) 78% 82%, transparent 82% 85%,
      var(--success) 85% 90%, transparent 90% 93%,
      var(--s1) 93% 98%, transparent 98% 100%);
  opacity: .35;
  clip-path: polygon(0 30%, 5% 30%, 5% 0, 10% 0, 10% 30%, 100% 30%, 100% 70%, 10% 70%, 10% 100%, 5% 100%, 5% 70%, 0 70%);
}

/* ——— Impression (Diplôme) ——— */
@media print {
  .print-hide { display: none !important; }
  .topbar, .footnav { display: none !important; }
  body { background: #fff !important; }
}

/* ——— Hub de choix de matière (Français / Maths) ——— */
.hub-wrap {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  background: var(--paper);
}
.hub-header { text-align: center; margin-bottom: 36px; }
.hub-title {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 38px;
  color: var(--ink);
  margin: 0 0 8px;
}
.hub-title .sup { color: var(--s1); font-style: italic; }
.hub-sub { color: var(--ink-3); font-size: 16px; margin: 0; }

.hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  width: 100%;
  max-width: 720px;
}
.hub-card {
  background: var(--paper-2);
  border: 1.5px solid var(--paper-shadow);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-2);
  padding: 32px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform .15s ease, box-shadow .15s ease;
}
.hub-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-3, 0 10px 24px rgba(0,0,0,.12)); }
.hub-card-fr { border-color: var(--s1-line); }
.hub-card-math { border-color: var(--kaya-line); }
.hub-card-icon { font-size: 44px; margin-bottom: 12px; }
.hub-card-title {
  font-family: var(--font-title);
  font-size: 22px;
  color: var(--ink);
  margin: 0 0 10px;
}
.hub-card-text { color: var(--ink-3); font-size: 14px; margin: 0 0 20px; min-height: 42px; }
.hub-card-btn { width: 100%; box-sizing: border-box; text-decoration: none; display: inline-block; text-align: center; }
.hub-card-link {
  display: block;
  margin-top: 12px;
  font-size: 13px;
  color: var(--kaya);
  font-weight: 700;
  text-decoration: none;
}
.hub-card-link:hover { text-decoration: underline; }

.hub-footer { margin-top: 36px; font-size: 13px; color: var(--ink-3); text-align: center; }
.hub-footer a { color: var(--kaya); font-weight: 700; text-decoration: none; }
.hub-footer a:hover { text-decoration: underline; }
