/* ============================================================
   E-LEARN LANGUAGE ACADEMY (ELA) — Design system
   Palette: emerald #0B6B4F / forest #063D2C / cream #FAF6EC / gold #C9A227
   Type: Oranienbaum (display serif) · Archivo Black (brand) · Quattrocento Sans (body)
   ============================================================ */

:root {
  --emerald: #0B6B4F;
  --emerald-deep: #095540;
  --emerald-50: #EDF5F1;
  --emerald-100: #D7E9E0;
  --emerald-200: #A9D2C0;
  --emerald-600: #0B6B4F;
  --emerald-700: #095540;
  --emerald-800: #07402F;
  --forest: #063D2C;
  --forest-deep: #042B1F;
  --forest-ink: #03190F;
  --cream: #FAF6EC;
  --cream-soft: #F3EEDC;
  --cream-warm: #FBF7EF;
  --cream-bright: #FFFDF6;
  --gold: #C9A227;
  --gold-soft: #E8D48A;
  --gold-deep: #A9851B;
  --gold-vivid: #E2AC2B;
  --ink: #122019;
  --ink-soft: #22362D;
  --muted: #5A6B62;
  --muted-2: #7C8B83;
  --line: rgba(6, 61, 44, 0.14);
  --line-soft: rgba(6, 61, 44, 0.08);
  --accent-german: #C9A227;
  --accent-mandarin: #C0372F;
  --accent-english: #1E3A5F;
  --accent-arabic: #0F766E;
  --accent-russian: #2D4F8F;
  --radius: 10px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --font-display: 'Playfair Display', 'Oranienbaum', 'Noto Sans Arabic', serif;
  --font-brand: 'Archivo Black', 'Noto Sans Arabic', sans-serif;
  --font-body: 'Quattrocento Sans', 'Noto Sans Arabic', 'Noto Sans SC', sans-serif;
  /* Ombres douces multicouches */
  --shadow-sm: 0 1px 2px rgba(6, 61, 44, 0.06), 0 2px 8px rgba(6, 61, 44, 0.05);
  --shadow-md: 0 2px 4px rgba(6, 61, 44, 0.06), 0 8px 24px rgba(6, 61, 44, 0.08);
  --shadow-lg: 0 4px 8px rgba(6, 61, 44, 0.08), 0 16px 40px rgba(6, 61, 44, 0.12);
  --shadow-gold: 0 6px 20px rgba(201, 162, 39, 0.28);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

[dir="rtl"] body, [dir="rtl"] .nav, [dir="rtl"] .footer { font-family: 'Noto Sans Arabic', var(--font-body); }

::selection { background: var(--gold); color: var(--forest); }

/* ---------- Announcement bar ---------- */
.announce {
  background: var(--forest);
  color: var(--cream);
  text-align: center;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.55rem 1rem;
}
.announce span { opacity: 0.92; }

/* ---------- Navigation ---------- */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.1rem clamp(1.25rem, 4vw, 3.5rem);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: rgba(250, 246, 236, 0.92);
  backdrop-filter: blur(8px);
  z-index: 50;
}
.nav-brand { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; color: var(--forest); }
.nav-name { font-family: var(--font-brand); font-size: 0.95rem; letter-spacing: 0.02em; }
.nav-name em { font-family: var(--font-display); font-style: italic; font-weight: 400; font-size: 1.05rem; color: var(--emerald); }
.nav-links { display: flex; gap: 1.8rem; }
.nav-links a {
  color: var(--ink); text-decoration: none; font-size: 0.95rem;
  border-bottom: 2px solid transparent; padding-bottom: 2px;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--emerald); border-bottom-color: var(--gold); }
.nav-links a[hidden] { display: none !important; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; color: var(--forest); padding: 0.4rem; }
.nav-right { display: flex; align-items: center; gap: 1rem; }
.lang-switch { display: flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.lang-btn {
  border: none; background: transparent; padding: 0.3rem 0.7rem; cursor: pointer;
  font-family: var(--font-body); font-size: 0.8rem; color: var(--muted);
  transition: background 0.15s ease, color 0.15s ease;
}
.lang-btn.active { background: var(--emerald); color: var(--cream); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  border-radius: 999px; padding: 0.85rem 1.9rem;
  font-family: var(--font-body); font-size: 0.95rem; font-weight: 700;
  text-decoration: none; cursor: pointer; border: 1.5px solid var(--forest);
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.btn-solid { background: var(--forest); color: var(--cream); }
.btn-solid:hover { background: var(--emerald); border-color: var(--emerald); transform: translateY(-1px); }
.btn-outline { background: transparent; color: var(--forest); }
.btn-outline:hover { background: rgba(6, 61, 44, 0.06); }
.btn-nav { padding: 0.55rem 1.3rem; font-size: 0.88rem; }
.btn-gold { background: var(--gold); border-color: var(--gold); color: var(--forest); }
.btn-gold:hover { background: var(--forest); border-color: var(--forest); color: var(--cream); }
.btn .arrow { transition: transform 0.2s ease; }
.btn:hover .arrow { transform: translateX(4px); }
[dir="rtl"] .btn:hover .arrow { transform: translateX(-4px) scaleX(-1); }
[dir="rtl"] .btn .arrow { transform: scaleX(-1); }

/* ---------- Editorial shared ---------- */
.section { padding: clamp(4rem, 9vw, 8rem) clamp(1.25rem, 5vw, 5rem); max-width: 1280px; margin: 0 auto; }
.section-label {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-size: 0.78rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--emerald); margin-bottom: 1.4rem;
}
.section-label::before { content: ""; width: 34px; height: 1.5px; background: var(--gold); }
.section-title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2.5rem, 5.5vw, 4.6rem); line-height: 1.04;
  color: var(--forest); letter-spacing: -0.015em;
}
.section-title em { font-style: italic; color: var(--emerald); }
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ---------- Hero ---------- */
.hero {
  background: var(--forest-ink);
  color: var(--cream);
  padding: clamp(4rem, 9vw, 8rem) clamp(1.25rem, 5vw, 5rem) clamp(4rem, 8vw, 7rem);
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(60% 55% at 82% -5%, rgba(226, 172, 43, 0.16), transparent 70%);
}
.hero-inner {
  position: relative; z-index: 1;
  max-width: 1280px; margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 3rem; align-items: center;
}
.hero-kicker {
  font-size: 0.82rem; letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--gold-vivid); margin-bottom: 1.6rem; display: flex; align-items: center; gap: 0.8rem;
}
.hero-kicker::before { content: ""; width: 44px; height: 1.5px; background: var(--gold-vivid); }
.hero h1 {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(3rem, 8.5vw, 5.5rem); line-height: 1.02; letter-spacing: -0.02em;
  color: var(--cream); text-transform: uppercase;
}
.hero h1 em { font-style: italic; color: var(--gold-vivid); }
.hero h1 .gold { color: var(--gold-vivid); font-style: italic; }
.hero-side p { font-size: 1.15rem; color: rgba(250, 246, 236, 0.82); max-width: 36ch; margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; }
.hero .btn-outline { color: var(--cream); border-color: rgba(250, 246, 236, 0.55); }
.hero .btn-outline:hover { background: rgba(250, 246, 236, 0.1); border-color: var(--cream); color: var(--cream); }
.hero-langs {
  margin-top: 2.6rem; display: flex; flex-wrap: wrap; gap: 0.5rem 1.4rem;
  font-family: var(--font-display); font-size: 1.25rem; color: var(--cream);
}
.hero-langs span { opacity: 0.8; }
.hero-langs .sep { color: var(--gold-vivid); opacity: 1; }

/* ---------- Academies (editorial index) ---------- */
.academies { border-top: 1px solid var(--line); }
.academy-row {
  display: grid; grid-template-columns: 3.2rem minmax(0, 1.2fr) minmax(0, 1.6fr) auto;
  gap: 1.5rem; align-items: baseline;
  padding: 2rem 0; border-bottom: 1px solid var(--line);
  text-decoration: none; color: inherit;
  transition: background 0.15s ease;
}
.academy-row:hover { background: rgba(11, 107, 79, 0.04); }
.academy-num { font-size: 0.85rem; color: var(--muted); letter-spacing: 0.1em; }
.academy-name { font-family: var(--font-display); font-size: clamp(1.7rem, 3.2vw, 2.6rem); color: var(--forest); line-height: 1.05; }
.academy-name .native { font-size: 0.65em; color: var(--muted); margin-inline-start: 0.6rem; }
.academy-desc { color: var(--muted); font-size: 0.98rem; max-width: 46ch; }
.academy-status {
  font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 0.35rem 0.9rem; border-radius: 999px; white-space: nowrap;
}
.status-open { background: var(--emerald); color: var(--cream); }
.status-soon { border: 1px solid var(--line); color: var(--muted); }
.academy-bar { width: 100%; height: 3px; margin-top: 0.9rem; grid-column: 1 / -1; opacity: 0.85; }

/* ---------- Mission (asymmetric two columns) ---------- */
.mission { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.mission-body { padding-top: 0.8rem; }
.mission-body p { color: var(--muted); font-size: 1.06rem; margin-bottom: 1.3rem; max-width: 52ch; }
.mission-body strong { color: var(--forest); }
.mission-list { list-style: none; margin-top: 1.8rem; }
.mission-list li {
  display: flex; gap: 0.9rem; align-items: baseline;
  padding: 0.85rem 0; border-top: 1px solid var(--line); color: var(--ink); font-size: 1rem;
}
.mission-list li svg { flex: 0 0 auto; transform: translateY(2px); }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; margin-top: 3rem; }
.step { border-top: 2px solid var(--forest); padding-top: 1.4rem; }
.step-num { font-family: var(--font-display); font-style: italic; font-size: 2.6rem; color: var(--gold); line-height: 1; }
.step h3 { font-family: var(--font-display); font-weight: 400; font-size: 1.5rem; color: var(--forest); margin: 0.7rem 0 0.5rem; }
.step p { color: var(--muted); font-size: 0.96rem; }

/* ---------- Pricing (editorial table) ---------- */
.pricing-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1.5rem; margin-bottom: 3rem; }
.price-table { width: 100%; border-collapse: collapse; }
.price-table th, .price-table td { text-align: start; padding: 1.3rem 1rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
.price-table thead th {
  font-size: 0.76rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); font-weight: 700;
}
.price-tier { font-family: var(--font-display); font-size: 1.6rem; color: var(--forest); }
.price-tier small { display: block; font-family: var(--font-body); font-size: 0.8rem; color: var(--muted); letter-spacing: 0.04em; margin-top: 0.25rem; }
.price-amount { font-family: var(--font-brand); font-size: 1.15rem; color: var(--forest); white-space: nowrap; }
.price-amount small { font-family: var(--font-body); font-weight: 400; color: var(--muted); font-size: 0.78rem; display: block; }
.price-save { color: var(--emerald); font-size: 0.85rem; font-weight: 700; white-space: nowrap; }
.price-row-popular { background: rgba(201, 162, 39, 0.08); }
.price-popular-tag {
  display: inline-block; background: var(--gold); color: var(--forest);
  font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 700;
  padding: 0.2rem 0.7rem; border-radius: 999px; margin-inline-start: 0.8rem; vertical-align: middle;
}
.pricing-note {
  margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between;
  border: 1.5px solid var(--emerald); border-radius: var(--radius); padding: 1.4rem 1.8rem;
}
.pricing-note p { color: var(--forest); font-size: 1rem; max-width: 60ch; }
.pricing-note strong { color: var(--emerald); }

/* ---------- Referral strip ---------- */
.referral { background: var(--forest); color: var(--cream); border-radius: 0; }
.referral .section { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 3rem; align-items: center; }
.referral .section-title { color: var(--cream); }
.referral .section-title em { color: var(--gold); }
.referral p { color: rgba(250, 246, 236, 0.75); margin-top: 1.2rem; max-width: 48ch; }
.referral-figure { font-family: var(--font-brand); font-size: clamp(3.5rem, 8vw, 6rem); color: var(--gold); line-height: 1; text-align: end; }
.referral-figure small { display: block; font-family: var(--font-body); font-size: 0.9rem; color: rgba(250,246,236,0.75); letter-spacing: 0.1em; text-transform: uppercase; margin-top: 0.6rem; }

/* ---------- Forms (register / login) ---------- */
.auth-wrap { max-width: 640px; margin: 0 auto; padding: clamp(3rem, 7vw, 5.5rem) 1.25rem; }
.auth-title { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.2rem, 5vw, 3.4rem); color: var(--forest); line-height: 1.05; margin-bottom: 0.8rem; }
.auth-sub { color: var(--muted); margin-bottom: 2.6rem; }
.auth-steps { display: flex; gap: 0.5rem; margin-bottom: 2.2rem; }
.auth-steps span { height: 3px; flex: 1; background: var(--line); border-radius: 2px; }
.auth-steps span.done { background: var(--gold); }
.choice-grid { display: grid; gap: 0.8rem; margin-bottom: 2rem; }
.choice {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  border: 1.5px solid var(--line); border-radius: var(--radius);
  background: transparent; padding: 1.1rem 1.4rem; cursor: pointer; text-align: start;
  font-family: var(--font-body); font-size: 1rem; color: var(--ink);
  transition: border-color 0.15s ease, background 0.15s ease;
  width: 100%;
}
.choice:hover { border-color: var(--emerald); }
.choice.selected { border-color: var(--emerald); background: rgba(11, 107, 79, 0.06); }
.choice.disabled { opacity: 0.45; cursor: not-allowed; }
.choice-name { font-family: var(--font-display); font-size: 1.3rem; color: var(--forest); }
.choice-tag { font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.choice-tag.open { color: var(--emerald); font-weight: 700; }
.field { margin-bottom: 1.2rem; }
.field label { display: block; font-size: 0.85rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.45rem; }
.field input {
  width: 100%; border: 1.5px solid var(--line); border-radius: var(--radius);
  background: #fff; padding: 0.9rem 1.1rem; font-family: var(--font-body); font-size: 1rem; color: var(--ink);
}
.field input:focus { outline: none; border-color: var(--emerald); }
.form-hint { font-size: 0.85rem; color: var(--muted); margin-top: 0.4rem; }
.form-error { color: #B3261E; font-size: 0.9rem; margin: 0.8rem 0; display: none; }
.form-error.show { display: block; }
.auth-alt { margin-top: 1.8rem; font-size: 0.95rem; color: var(--muted); }
.auth-alt a { color: var(--emerald); }
.setup-banner {
  border: 1.5px dashed var(--gold); border-radius: var(--radius);
  padding: 1rem 1.3rem; font-size: 0.9rem; color: var(--forest);
  background: rgba(201, 162, 39, 0.08); margin-bottom: 1.6rem;
}

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); margin-top: 2rem; }
.footer-grid {
  max-width: 1280px; margin: 0 auto;
  padding: 3.5rem clamp(1.25rem, 5vw, 5rem) 2.5rem;
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2.5rem;
}
.footer-tag { color: var(--muted); font-size: 0.95rem; margin-top: 1rem; max-width: 30ch; }
.footer-domain { font-family: var(--font-brand); color: var(--emerald); font-size: 0.9rem; margin-top: 0.8rem; }
.footer-col h4 { font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--forest); margin-bottom: 1rem; }
.footer-col a { display: block; color: var(--muted); text-decoration: none; font-size: 0.92rem; padding: 0.25rem 0; }
.footer-col a:hover { color: var(--emerald); }
.footer-legal {
  max-width: 1280px; margin: 0 auto; padding: 1.4rem clamp(1.25rem, 5vw, 5rem);
  border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.6rem;
  font-size: 0.82rem; color: var(--muted);
}

/* ---------- Logo emblem ---------- */
.nav-logo svg { display: block; height: 40px; width: 40px; }
.footer-logo svg { height: 52px; width: 52px; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; align-items: start; }
  .mission { grid-template-columns: 1fr; }
  .referral .section { grid-template-columns: 1fr; }
  .referral-figure { text-align: start; }
  .steps { grid-template-columns: 1fr; gap: 1.8rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .academy-grid { grid-template-columns: 1fr 1fr; }
  .academy-row { grid-template-columns: 2.2rem minmax(0,1fr); }
  .academy-desc, .academy-status { grid-column: 2; }
  .academy-status { justify-self: start; }
}
@media (max-width: 720px) {
  .academy-grid { grid-template-columns: 1fr; }
  .nav { flex-wrap: wrap; }
  .nav-brand { flex: 1 1 auto; }
  .nav-toggle { display: inline-flex; }
  .nav-right { margin-inline-start: auto; }
  .nav-links {
    display: none;
    flex-basis: 100%;
    flex-direction: column;
    gap: 0.2rem;
    padding: 0.7rem 0;
    border-top: 1px solid var(--line);
  }
  .nav.open .nav-links { display: flex; }
  .nav-links a { padding: 0.55rem 0; }
  .price-scroll { overflow-x: auto; }
  .price-table { min-width: 640px; }
}

/* ---------- Learning Assistant (chat) ---------- */
.assistant-wrap { max-width: 760px; }
.chat {
  display: flex; flex-direction: column; gap: 0.85rem;
  margin: 1.5rem 0; padding: 1rem 0.25rem;
  max-height: 56vh; overflow-y: auto;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.msg {
  max-width: 82%; padding: 0.8rem 1.1rem; border-radius: 16px;
  line-height: 1.55; white-space: pre-wrap; word-wrap: break-word; font-size: 0.98rem;
}
.msg.user { align-self: flex-end; background: var(--forest); color: var(--cream); border-bottom-right-radius: 4px; }
.msg.assistant { align-self: flex-start; background: #fff; border: 1px solid var(--line); color: var(--ink); border-bottom-left-radius: 4px; }
.msg.typing { display: flex; align-items: center; gap: 0.5rem; }
.chat-input { display: flex; gap: 0.6rem; }
.chat-input input {
  flex: 1; border: 1.5px solid var(--line); border-radius: var(--radius);
  background: #fff; padding: 0.9rem 1.1rem; font-family: var(--font-body); font-size: 1rem; color: var(--ink);
}
.chat-input input:focus { outline: none; border-color: var(--emerald); }
.spinner { animation: spin 0.9s linear infinite; color: var(--emerald); }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 720px) {
  .msg { max-width: 92%; }
  .chat-input { flex-direction: column; }
}

/* ---------- Dashboard ---------- */
.tx-list { list-style: none; margin-top: 0.8rem; }
.tx-list li {
  display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; align-items: center;
  padding: 0.8rem 0; border-bottom: 1px solid var(--line); font-size: 0.95rem;
}
.tx-list li span:first-child { flex: 1 1 12rem; }

/* ---------- Legal pages ---------- */
.legal { max-width: 860px; }
.legal-meta { color: var(--muted); margin-top: 0.5rem; font-size: 0.85rem; letter-spacing: 0.04em; }
.legal-body {
  margin-top: 2.2rem;
  background: #fff; border: 1px solid var(--line-soft); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); padding: clamp(1.6rem, 4vw, 3rem);
}
.legal-body h3 { font-family: var(--font-display); font-weight: 400; font-size: 1.45rem; color: var(--forest); margin: 2rem 0 0.6rem; }
.legal-body h3:first-child { margin-top: 0; }
.legal-body p { color: var(--muted); margin-bottom: 1rem; }
.legal-body ul { list-style: none; margin: 0 0 1rem; }
.legal-body li { padding: 0.4rem 0; padding-inline-start: 1.2rem; position: relative; color: var(--ink); }
.legal-body li::before { content: ""; position: absolute; inset-inline-start: 0; top: 0.85em; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.legal-body .price-table { margin: 1rem 0 1.5rem; max-width: 560px; }
.legal-body a { color: var(--emerald); }

/* ---------- Checkout terms + footer legal links ---------- */
.checkout-terms { font-size: 0.82rem; color: var(--muted); margin-top: 0.5rem; }
.checkout-terms a { color: var(--emerald); }
.footer-legal-links { display: flex; gap: 1.2rem; flex-wrap: wrap; }
.footer-legal-links a { color: var(--emerald); text-decoration: none; }
.footer-legal-links a:hover { color: var(--forest); }

/* ---------- Teacher area ---------- */
.teacher-wrap { max-width: 760px; }
.teacher-card { background: #fff; border: 1px solid var(--line-soft); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); padding: 1.5rem 1.6rem; margin-bottom: 1.2rem; }
.teacher-card-title { font-family: var(--font-display); font-weight: 400; font-size: 1.35rem; color: var(--forest); margin-bottom: 1rem; }
.field textarea, .field select {
  width: 100%; border: 1.5px solid var(--line); border-radius: var(--radius);
  background: #fff; padding: 0.9rem 1.1rem; font-family: var(--font-body); font-size: 1rem; color: var(--ink);
}
.field textarea:focus, .field select:focus { outline: none; border-color: var(--emerald); }
.quiz-q { border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.2rem; margin-bottom: 1rem; }
.quiz-q label { display: block; font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin: 0.5rem 0 0.35rem; }
.quiz-q input, .quiz-q select {
  width: 100%; border: 1.5px solid var(--line); border-radius: var(--radius);
  background: #fff; padding: 0.6rem 0.8rem; font-family: var(--font-body); font-size: 0.95rem; color: var(--ink);
}
.q-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; }
@media (max-width: 720px) { .q-opts { grid-template-columns: 1fr; } }

/* ---------- Student learning module ---------- */
.lesson-content {
  white-space: pre-wrap; line-height: 1.7; color: var(--ink);
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.2rem 1.4rem; margin: 1rem 0 1.5rem;
}
.quiz-q .q-label { text-transform: none; letter-spacing: 0; font-size: 1.05rem; color: var(--ink); }

/* ---------- Course / lesson (réplique FA) ---------- */
.lesson-video { margin: 1rem 0 1.5rem; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.lesson-video video { width: 100%; display: block; aspect-ratio: 16/9; background: #000; }

/* ============================================================
   PREMIUM LAYER � �l�vation du design system
   ============================================================ */

/* ---------- Accessibilit� : focus visible ---------- */
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 4px; }

/* ---------- Cartes ---------- */
.card {
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 1.6rem 1.7rem;
}
.card-hover { transition: box-shadow 0.22s var(--ease), transform 0.22s var(--ease); }
.card-hover:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.card-gold { border: 1.5px solid var(--gold); box-shadow: var(--shadow-gold); }

/* ---------- Badges ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 700;
  padding: 0.28rem 0.8rem; border-radius: 999px; white-space: nowrap;
}
.badge-emerald { background: var(--emerald-100); color: var(--emerald-800); }
.badge-gold { background: rgba(201, 162, 39, 0.16); color: var(--gold-deep); }
.badge-red { background: rgba(179, 38, 30, 0.1); color: #B3261E; }
.badge-muted { background: var(--cream-soft); color: var(--muted); }
.badge-forest { background: var(--forest); color: var(--cream); }

/* ---------- Champs premium (focus ring dor�) ---------- */
.field input, .field textarea, .field select, .chat-input input, .quiz-q input, .quiz-q select {
  transition: border-color 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.field input:focus, .field textarea:focus, .field select:focus,
.chat-input input:focus, .quiz-q input:focus, .quiz-q select:focus {
  outline: none; border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.18);
}

/* ---------- Skeleton de chargement ---------- */
.skeleton {
  background: linear-gradient(90deg, var(--cream-soft) 25%, #fff 50%, var(--cream-soft) 75%);
  background-size: 200% 100%; animation: shimmer 1.4s infinite;
  border-radius: var(--radius); min-height: 1rem;
}
.skeleton-card { height: 120px; border-radius: var(--radius-lg); }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- Barre de progression ---------- */
.progress-track { height: 8px; border-radius: 999px; background: var(--cream-soft); overflow: hidden; }
.progress-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--emerald), var(--gold)); transition: width 0.4s var(--ease); }

/* ---------- Anneau de progression (acad�mie) ---------- */
.ring {
  --p: 0; --sz: 74px;
  position: relative;
  width: var(--sz); height: var(--sz); border-radius: 50%;
  background: conic-gradient(var(--gold) calc(var(--p) * 1%), var(--cream-soft) 0);
  display: grid; place-items: center; flex: 0 0 auto;
}
.ring::before { content: ""; position: absolute; inset: 7px; border-radius: 50%; background: #fff; }
.ring span { position: relative; z-index: 1; font-family: var(--font-brand); font-size: 0.82rem; color: var(--forest); }
.ring-wrap { display: inline-grid; place-items: center; }

/* ---------- Dashboard : grille + stats ---------- */
.dash-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.2rem; margin-top: 1.6rem; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 0.9rem; }
.stat-card { background: #fff; border: 1px solid var(--line-soft); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); padding: 1.1rem 1.2rem; text-align: center; }
.stat-value { font-family: var(--font-brand); font-size: 1.5rem; color: var(--forest); line-height: 1; }
.stat-value.gold { color: var(--gold-deep); }
.stat-label { font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-top: 0.4rem; }

/* ---------- En-t�te dashboard ---------- */
.greeting { font-family: var(--font-display); font-weight: 400; font-size: clamp(2rem, 4.5vw, 3rem); color: var(--forest); line-height: 1.08; }
.greeting em { font-style: italic; color: var(--emerald); }

/* ---------- Carte � Reprendre � ---------- */
.resume-card {
  position: relative; overflow: hidden; color: var(--cream);
  background: linear-gradient(135deg, var(--forest) 0%, var(--emerald) 100%);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-md); padding: 1.7rem 1.8rem;
}
.resume-card .section-label { color: var(--gold-soft); margin-bottom: 0.6rem; }
.resume-card h3 { font-family: var(--font-display); font-weight: 400; font-size: 1.5rem; color: var(--cream); }
.resume-card p { color: rgba(250, 246, 236, 0.82); margin-top: 0.4rem; }

/* ---------- Code de parrainage ---------- */
.referral-code {
  display: flex; align-items: center; justify-content: space-between; gap: 0.8rem;
  background: var(--cream-soft); border: 1px dashed var(--gold);
  border-radius: var(--radius-lg); padding: 0.9rem 1.1rem;
}
.referral-code .code { font-family: var(--font-brand); font-size: 1.3rem; letter-spacing: 0.06em; color: var(--forest); }

/* ---------- �tats vides ---------- */
.empty-state { text-align: center; padding: 2.4rem 1.2rem; }
.empty-state .icon { color: var(--gold); margin-bottom: 0.8rem; }
.empty-state h3 { font-family: var(--font-display); font-weight: 400; font-size: 1.4rem; color: var(--forest); }
.empty-state p { color: var(--muted); margin: 0.4rem auto 1.2rem; max-width: 40ch; }

/* ---------- Quiz : progression + options + r�sultat ---------- */
.quiz-progress { display: flex; align-items: center; gap: 0.8rem; margin-bottom: 1.2rem; }
.quiz-progress .count { font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.quiz-opt {
  display: flex; align-items: center; gap: 0.9rem; width: 100%;
  border: 1.5px solid var(--line); border-radius: var(--radius-lg);
  background: #fff; padding: 1rem 1.2rem; cursor: pointer; text-align: start;
  font-family: var(--font-body); font-size: 1rem; color: var(--ink);
  transition: border-color 0.18s var(--ease), background 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.quiz-opt:hover { border-color: var(--emerald); box-shadow: var(--shadow-sm); }
.quiz-opt .letter {
  flex: 0 0 auto; width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; background: var(--cream-soft); color: var(--forest);
  font-weight: 700; font-size: 0.85rem;
}
.quiz-opt.selected { border-color: var(--gold); background: rgba(201, 162, 39, 0.08); }
.quiz-opt.selected .letter { background: var(--gold); color: var(--forest); }
.quiz-opt.correct { border-color: var(--emerald); background: var(--emerald-50); }
.quiz-opt.correct .letter { background: var(--emerald); color: var(--cream); }
.quiz-opt.incorrect { border-color: #E2B4B0; background: rgba(179, 38, 30, 0.06); }
.quiz-opt.incorrect .letter { background: #B3261E; color: #fff; }

.quiz-result-score {
  font-family: var(--font-brand); font-size: clamp(3.5rem, 9vw, 6rem);
  line-height: 1; color: var(--forest); text-align: center; margin: 0.6rem 0;
}
.quiz-result-score.gold { color: var(--gold-deep); }
.quiz-result-score .score span { font-size: 0.35em; color: var(--muted); letter-spacing: 0.02em; font-family: var(--font-body); }

/* ---------- Navigation : �l�vation au scroll ---------- */
.nav { transition: box-shadow 0.25s var(--ease), background 0.25s var(--ease), backdrop-filter 0.25s var(--ease); }
.nav.scrolled { box-shadow: var(--shadow-md); background: rgba(250, 246, 236, 0.86); backdrop-filter: blur(18px) saturate(1.15); }

/* ---------- Cartes acad�mies ---------- */
.academy-card {
  display: block; text-decoration: none; color: inherit;
  background: #fff; border: 1px solid var(--line-soft); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); padding: 1.5rem 1.6rem;
  transition: box-shadow 0.22s var(--ease), transform 0.22s var(--ease);
}
.academy-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.academy-card .top { display: flex; align-items: baseline; justify-content: space-between; gap: 0.8rem; margin-bottom: 0.5rem; }
.academy-card .native { font-size: 0.8rem; color: var(--muted); margin-inline-start: 0.5rem; }

/* ---------- FAQ accord�on ---------- */
.faq-item { border: 1px solid var(--line-soft); border-radius: var(--radius-lg); background: #fff; margin-bottom: 0.8rem; overflow: hidden; }
.faq-q { width: 100%; text-align: start; background: none; border: none; cursor: pointer; padding: 1.1rem 1.3rem; font-family: var(--font-body); font-size: 1rem; font-weight: 700; color: var(--forest); display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq-a { padding: 0 1.3rem 1.1rem; color: var(--muted); font-size: 0.95rem; display: none; }
.faq-item.open .faq-a { display: block; }
.faq-q .chev { transition: transform 0.2s var(--ease); color: var(--gold); }
.faq-item.open .chev { transform: rotate(180deg); }

/* ---------- Boutons : �tats ---------- */
.btn:active { transform: translateY(0) scale(0.98); }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; pointer-events: none; }
.btn-sm { padding: 0.5rem 1.1rem; font-size: 0.85rem; }

/* ---------- RTL : ic�nes directionnelles ---------- */
[dir="rtl"] .btn .arrow { transform: scaleX(-1); }
[dir="rtl"] .quiz-opt .letter, [dir="rtl"] .ring span { direction: ltr; }

/* ============================================================
   LIFTING VISUEL — sections sombres, bandes or, cartes acad�mies
   ============================================================ */

/* Sections sombres (rythme altern�) */
.section-dark {
  background: var(--forest-ink);
  color: var(--cream);
  padding: clamp(4rem, 9vw, 7rem) clamp(1.25rem, 5vw, 5rem);
}
.section-dark .inner { max-width: 1280px; margin: 0 auto; }
.section-dark .section-title { color: var(--cream); }
.section-dark .section-title em { color: var(--gold-vivid); }
.section-dark .section-label { color: var(--gold-vivid); }
.section-dark .section-label::before { background: var(--gold-vivid); }
.section-dark p { color: rgba(250, 246, 236, 0.82); }

/* Bande or (transition forte) */
.band-gold {
  background: linear-gradient(100deg, var(--gold-vivid) 0%, var(--gold) 100%);
  padding: 2.2rem clamp(1.25rem, 5vw, 5rem);
}
.band-gold .inner {
  max-width: 1280px; margin: 0 auto;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem;
}
.band-gold p { color: var(--forest-ink); font-family: var(--font-display); font-weight: 700; font-size: clamp(1.3rem, 3vw, 2rem); line-height: 1.2; }
.band-gold .stat { font-family: var(--font-brand); color: var(--forest-ink); font-size: 1.4rem; }

/* Grille des 5 cartes acad�mies */
.academy-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; margin-top: 3rem;
}
.academy-grid .academy-card { margin: 0; }
.academy-card {
  display: flex; flex-direction: column; text-decoration: none; color: inherit;
  background: #fff; border: 1px solid var(--line-soft); border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm); padding: 2rem 1.8rem; position: relative; overflow: hidden;
  transition: box-shadow 0.24s var(--ease), transform 0.24s var(--ease);
}
.academy-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 5px; background: var(--accent, var(--gold)); }
.academy-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.academy-card .num { font-family: var(--font-brand); font-size: 0.8rem; letter-spacing: 0.14em; color: var(--muted); }
.academy-card .name { font-family: var(--font-display); font-weight: 800; font-size: 1.9rem; color: var(--forest); line-height: 1.05; margin: 0.5rem 0 0.15rem; }
.academy-card .name .native { font-family: var(--font-body); font-weight: 400; font-size: 1rem; color: var(--muted); margin-inline-start: 0.5rem; }
.academy-card .desc { color: var(--muted); font-size: 0.94rem; margin-top: 0.6rem; flex: 1; }
.academy-card .status { margin-top: 1.1rem; }

/* Image humaine (fixed ratio, pas de CLS) */
.human-img {
  width: 100%; border-radius: var(--radius-xl); overflow: hidden; background: var(--cream-soft);
  box-shadow: var(--shadow-md);
}
.human-img img { display: block; width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.human-img.wide img { aspect-ratio: 21 / 8; }

/* Section exp�rience (texte + image) */
.experience-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

/* T�moignages */
.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; margin-top: 3rem; }
.testimonial {
  background: #fff; border: 1px solid var(--line-soft); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); padding: 1.8rem 1.7rem;
}
.testimonial .quote { font-family: var(--font-display); font-size: 1.15rem; color: var(--forest); line-height: 1.4; }
.testimonial .quote::before { content: "\201C"; color: var(--gold); font-size: 2.4rem; line-height: 0; vertical-align: -0.35em; margin-inline-end: 0.1rem; }
.testimonial .who { margin-top: 1.2rem; font-size: 0.85rem; letter-spacing: 0.04em; color: var(--muted); }

/* CTA final sombre tr�s fort */
.final-cta {
  background: var(--forest-ink); color: var(--cream);
  padding: clamp(4rem, 10vw, 8rem) clamp(1.25rem, 5vw, 5rem); text-align: center;
  position: relative; overflow: hidden;
}
.final-cta::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(50% 50% at 50% 0%, rgba(226, 172, 43, 0.18), transparent 70%);
}
.final-cta .inner { position: relative; z-index: 1; max-width: 860px; margin: 0 auto; }
.final-cta .section-title { color: var(--cream); margin-bottom: 1rem; }
.final-cta .section-title em { color: var(--gold-vivid); }
.final-cta p { color: rgba(250, 246, 236, 0.82); font-size: 1.1rem; margin-bottom: 2rem; }
.final-cta .hero-actions { justify-content: center; }

/* CTA or vif (contraste AA sur fond sombre) */
.btn-gold-vivid { background: var(--gold-vivid); border-color: var(--gold-vivid); color: var(--forest-ink); }
.btn-gold-vivid:hover { background: var(--cream); border-color: var(--cream); color: var(--forest-ink); }

/* Responsive lifting */
@media (max-width: 960px) {
  .experience-grid { grid-template-columns: 1fr; }
  .testimonial-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   DASHBOARD — structure inspirée de Francophone Academy (peau ELA)
   ============================================================ */

/* Teintes icônes (sur palette vert/crème/or) */
.tint-emerald { background: var(--emerald-100); color: var(--emerald-800); }
.tint-gold     { background: rgba(226, 172, 43, 0.18); color: var(--gold-deep); }
.tint-forest   { background: var(--forest); color: var(--cream); }
.tint-muted    { background: var(--cream-soft); color: var(--muted); }

/* En-tête dashboard : salutation + pills */
.dash-header-row {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 1.2rem; flex-wrap: wrap; margin-bottom: 1.6rem;
}
.dash-header-row h1 { margin: 0; }
.dash-subtitle { color: var(--muted); font-size: 0.95rem; margin-top: 0.3rem; }
.dash-pills { display: flex; gap: 0.7rem; flex-wrap: wrap; }
.dash-pill {
  display: inline-flex; align-items: center; gap: 0.55rem;
  background: #fff; border: 1px solid var(--line-soft); border-radius: var(--radius);
  padding: 0.5rem 0.9rem; font-size: 0.8rem; color: var(--muted);
  box-shadow: var(--shadow-sm);
}
.dash-pill strong { font-size: 0.9rem; color: var(--forest); }
.dash-pill svg { color: var(--gold-deep); }

/* Grille de stat cards (4 tuiles icône) */
.dash-stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1rem; margin-bottom: 1.2rem;
}
.dash-stat-card {
  background: #fff; border: 1px solid var(--line-soft); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); padding: 1.2rem 1.3rem;
}
.dash-stat-icon {
  width: 44px; height: 44px; border-radius: var(--radius);
  display: inline-flex; align-items: center; justify-content: center; margin-bottom: 0.8rem;
}
.dash-stat-label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 0.25rem; }
.dash-stat-value { font-family: var(--font-display); font-weight: 700; font-size: 1.9rem; color: var(--forest); line-height: 1.05; }
.dash-stat-hint { font-size: 0.78rem; color: var(--muted); margin-top: 0.3rem; }
.dash-stat-card .progress-track { margin-top: 0.7rem; }

/* Ligne plan/abonnement sous les stats */
.dash-plan-line {
  display: flex; align-items: center; gap: 0.7rem; flex-wrap: wrap;
  margin: -0.3rem 0 1.4rem; font-size: 0.85rem; color: var(--muted);
}

/* Bandeau upgrade (non abonné) */
.upgrade-banner {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap;
  background: linear-gradient(135deg, var(--forest) 0%, var(--emerald) 100%);
  color: var(--cream); border-radius: var(--radius-lg); padding: 1.4rem 1.6rem; margin-bottom: 1.6rem;
}
.upgrade-banner h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; margin-bottom: 0.2rem; }
.upgrade-banner p { color: rgba(250, 246, 236, 0.82); font-size: 0.88rem; max-width: 52ch; }
.upgrade-banner .btn { flex-shrink: 0; }

/* Disposition 2 colonnes (2fr / 1fr) */
.dash-two-col {
  display: grid; grid-template-columns: 2fr 1fr; gap: 1.2rem; align-items: start; margin-bottom: 1.2rem;
}
.dash-two-col .dashboard-section { margin-bottom: 0; }

/* Sections dashboard */
.dashboard-section { margin-bottom: 1.2rem; }
.dashboard-section-header {
  display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.8rem;
}
.dashboard-section-title { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; color: var(--forest); }
.dashboard-section-link { font-size: 0.85rem; color: var(--emerald); text-decoration: none; display: inline-flex; align-items: center; gap: 0.3rem; }
.dashboard-section-link:hover { color: var(--forest); }

/* Continue Learning : carte hero */
.continue-hero {
  display: flex; gap: 1.2rem; background: #fff; border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); padding: 1.4rem; align-items: stretch;
}
.continue-thumb {
  flex: 0 0 150px; min-height: 140px; border-radius: var(--radius);
  background: linear-gradient(135deg, var(--emerald) 0%, var(--forest) 60%, var(--gold) 130%);
  display: flex; align-items: center; justify-content: center; color: #fff;
}
.continue-empty .continue-thumb { background: var(--emerald-100); color: var(--emerald-800); }
.continue-play {
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(255,255,255,0.94); color: var(--emerald);
  display: flex; align-items: center; justify-content: center; box-shadow: var(--shadow-md);
}
.continue-body { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.continue-body h4 { font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; color: var(--forest); margin: 0.3rem 0; }
.continue-body p { color: var(--muted); font-size: 0.88rem; }
.continue-body .btn { align-self: flex-start; margin-top: 0.8rem; }
.continue-body .progress-track { margin: 0.7rem 0; }

/* Live class mini carte */
.live-mini { background: #fff; border: 1px solid var(--line-soft); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); padding: 1.3rem; }
.live-mini-empty { text-align: center; color: var(--muted); font-size: 0.88rem; padding: 1.6rem 1rem; }
.live-mini-empty .dash-stat-icon { margin: 0 auto 0.6rem; }
.live-mini-top { display: flex; gap: 0.9rem; align-items: flex-start; }
.live-date {
  flex: 0 0 60px; text-align: center;
  background: var(--emerald-50); border: 1px solid var(--emerald-100); border-radius: var(--radius); padding: 0.5rem 0;
}
.live-date-day { display: block; font-family: var(--font-display); font-weight: 700; font-size: 1.6rem; color: var(--emerald); line-height: 1; }
.live-date-month { display: block; font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--emerald); }
.live-info h4 { font-size: 1rem; font-weight: 700; color: var(--forest); margin: 0.15rem 0; }
.live-info p { font-size: 0.8rem; color: var(--muted); display: flex; align-items: center; gap: 0.35rem; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold-vivid); display: inline-block; animation: pulse 1.6s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.3; } }
.live-teacher {
  display: flex; align-items: center; gap: 0.7rem; margin-top: 0.9rem; padding-top: 0.9rem;
  border-top: 1px solid var(--line-soft); font-size: 0.85rem; color: var(--forest);
}
.live-teacher small { color: var(--muted); }
.live-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--emerald); color: var(--cream);
  display: flex; align-items: center; justify-content: center; font-weight: 700;
}
.live-mini .btn-full { width: 100%; margin-top: 0.9rem; }

/* Achievements : grille de badges (on/off) */
.ach-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.8rem; }
.ach-badge {
  background: #fff; border: 1px solid var(--line-soft); border-radius: var(--radius-lg);
  padding: 1rem 0.9rem; text-align: center; transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.ach-badge .dash-stat-icon { margin: 0 auto 0.5rem; }
.ach-badge strong { display: block; font-size: 0.85rem; color: var(--forest); }
.ach-badge small { color: var(--muted); font-size: 0.72rem; }
.ach-on:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.ach-off { opacity: 0.45; filter: grayscale(0.6); }

/* Quick actions : tuiles */
.quick-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.9rem; }
.action-tile {
  background: #fff; border: 1px solid var(--line-soft); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); padding: 1.2rem 1rem; text-align: center;
  text-decoration: none; color: inherit; display: block; transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.action-tile .dash-stat-icon { margin: 0 auto 0.6rem; }
.action-tile:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.action-title { font-weight: 700; font-size: 0.88rem; color: var(--forest); }
.action-sub { font-size: 0.74rem; color: var(--muted); margin-top: 0.15rem; }

/* Tableau quiz récents */
.dash-table-wrap { overflow-x: auto; border: 1px solid var(--line-soft); border-radius: var(--radius-lg); background: #fff; }
.dash-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.dash-table th { text-align: start; padding: 0.8rem 1rem; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); border-bottom: 1px solid var(--line-soft); }
.dash-table td { padding: 0.8rem 1rem; border-bottom: 1px solid var(--line-soft); color: var(--ink); }
.dash-table tr:last-child td { border-bottom: none; }
.dash-table tr:hover td { background: var(--cream-soft); }

/* Responsive dashboard */
@media (max-width: 1000px) {
  .dash-stats-grid { grid-template-columns: repeat(2, 1fr); }
  .dash-two-col { grid-template-columns: 1fr; }
  .quick-grid { grid-template-columns: repeat(2, 1fr); }
  .ach-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .dash-stats-grid { grid-template-columns: 1fr; }
  .quick-grid { grid-template-columns: 1fr; }
  .continue-hero { flex-direction: column; }
  .continue-thumb { flex-basis: 110px; }
}

/* ============================================================
   DASHBOARD — refonte présentation (hero, journey, plan, tutor, refer)
   ============================================================ */

/* 1. HERO : salutation + grande progression + prochaine étape */
.dash-hero {
  display: flex; justify-content: space-between; align-items: center; gap: 2rem; flex-wrap: wrap;
  background: linear-gradient(135deg, var(--forest-ink) 0%, var(--forest) 55%, var(--emerald) 100%);
  color: var(--cream); border-radius: var(--radius-xl); padding: 2.2rem 2.4rem;
  margin-bottom: 1.4rem; position: relative; overflow: hidden; box-shadow: var(--shadow-lg);
}
.dash-hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(50% 60% at 85% 0%, rgba(226, 172, 43, 0.18), transparent 70%); }
.dash-hero-text { position: relative; z-index: 1; }
.dash-hero .greeting { color: var(--cream); font-size: clamp(2.2rem, 5vw, 3.4rem); }
.dash-hero .greeting em { color: var(--gold-vivid); }
.dash-hero-sub { color: rgba(250, 246, 236, 0.82); font-size: 1.05rem; margin-top: 0.4rem; max-width: 46ch; }
.dash-hero-next { margin-top: 1.5rem; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.dash-hero-next .next-label { font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-vivid); }
.dash-hero-ring { position: relative; z-index: 1; text-align: center; }
.dash-hero .ring { --sz: 122px; background: conic-gradient(var(--gold-vivid) calc(var(--p) * 1%), rgba(250, 246, 236, 0.14) 0); }
.dash-hero .ring::before { background: var(--forest); }
.dash-hero .ring span { color: var(--cream); font-size: 1.05rem; }
.dash-hero .ring-caption { margin-top: 0.6rem; font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(250, 246, 236, 0.7); }

/* 2. Continue your journey : carte focale */
.journey-card {
  background: #fff; border: 1px solid var(--line-soft); border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm); padding: 1.7rem 1.9rem; position: relative; overflow: hidden;
}
.journey-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 5px; background: linear-gradient(90deg, var(--gold-vivid), var(--gold)); }
.journey-meta { display: flex; flex-wrap: wrap; gap: 0.5rem 0.7rem; align-items: center; margin-bottom: 0.7rem; }
.journey-title { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.5rem, 3vw, 1.9rem); color: var(--forest); line-height: 1.1; }
.journey-sub { color: var(--muted); margin-top: 0.4rem; font-size: 0.95rem; }
.journey-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; align-items: center; }

/* 3. Progress : anneau dans la stat card */
.dash-stat-ring { display: flex; justify-content: center; margin-bottom: 0.6rem; }
.dash-stat-card .ring { --sz: 54px; }
.dash-stat-card .ring span { font-size: 0.66rem; }

/* 7. Meet your language tutor : grande carte premium */
.tutor-card {
  background: linear-gradient(135deg, var(--forest) 0%, var(--emerald) 100%);
  color: var(--cream); border-radius: var(--radius-xl); padding: 2rem 2.2rem;
  position: relative; overflow: hidden; box-shadow: var(--shadow-lg);
}
.tutor-card::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(50% 60% at 90% 0%, rgba(226, 172, 43, 0.2), transparent 70%); }
.tutor-card h3 { font-family: var(--font-display); font-weight: 800; font-size: 1.8rem; color: var(--cream); position: relative; z-index: 1; }
.tutor-card p { color: rgba(250, 246, 236, 0.85); margin-top: 0.5rem; max-width: 52ch; position: relative; z-index: 1; }
.tutor-card .btn { margin-top: 1.3rem; position: relative; z-index: 1; }

/* 8. Refer & earn : carte marketing */
.refer-card { background: #fff; border: 1px dashed var(--gold); border-radius: var(--radius-xl); padding: 1.6rem 1.8rem; }

/* 5. Live classes : état aspirationnel */
.live-aspiration { text-align: center; padding: 1.6rem 1rem; }

/* Panneau admin : conteneur large pour les tables */
.admin-wrap { max-width: 980px; }

/* ============================================================
   ADMIN — refonte visuelle (back-office)
   ============================================================ */

/* Barre admin (back-office) */
.admin-header {
  display: flex; flex-wrap: wrap; align-items: center; gap: 1rem;
  background: var(--forest-ink); color: var(--cream);
  border-radius: var(--radius-lg); padding: 0.9rem 1.2rem; margin-bottom: 1.4rem;
}
.admin-brand { font-family: var(--font-brand); letter-spacing: 0.04em; font-size: 0.95rem; color: var(--cream); display: inline-flex; align-items: center; gap: 0.5rem; }
.admin-brand .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold-vivid); display: inline-block; }
.admin-nav { display: flex; flex-wrap: wrap; gap: 0.3rem; margin-inline-start: auto; }
.admin-nav button {
  background: none; border: none; cursor: pointer; color: rgba(250, 246, 236, 0.72);
  font-family: var(--font-body); font-size: 0.85rem; padding: 0.35rem 0.75rem; border-radius: 999px;
  transition: background 0.15s ease, color 0.15s ease;
}
.admin-nav button:hover { background: rgba(250, 246, 236, 0.1); color: var(--cream); }
.admin-header .admin-right { display: flex; align-items: center; gap: 0.8rem; }
.admin-header .view-site { color: var(--gold-vivid); text-decoration: none; font-size: 0.85rem; white-space: nowrap; }
.admin-profile { display: flex; align-items: center; gap: 0.5rem; font-size: 0.85rem; color: rgba(250, 246, 236, 0.85); }
.admin-profile .admin-avatar {
  width: 30px; height: 30px; border-radius: 50%; background: var(--emerald); color: var(--cream);
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.85rem;
}

/* Hero admin */
.admin-hero { margin-bottom: 1.6rem; }
.admin-hero h1 { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.8rem, 4vw, 2.6rem); color: var(--forest); line-height: 1.1; margin: 0; }
.admin-hero .admin-hero-sub { color: var(--muted); font-size: 1rem; margin-top: 0.3rem; }

/* KPI cards */
.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: 1.2rem; }
.kpi-card {
  background: #fff; border: 1px solid var(--line-soft); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); padding: 1.2rem 1.3rem;
}
.kpi-card .dash-stat-value { font-size: clamp(2rem, 3vw, 2.6rem); }
.kpi-card .dash-stat-hint { margin-top: 0.4rem; }
.kpi-revenue { border: 1.5px solid var(--gold); box-shadow: var(--shadow-gold); background: linear-gradient(135deg, #fff 0%, var(--cream-warm) 100%); }
.kpi-revenue .dash-stat-value { font-size: clamp(2.2rem, 3.5vw, 3rem); color: var(--gold-deep); }
.kpi-revenue .dash-stat-label { color: var(--gold-deep); }

/* Revenue analytics */
.rev-panel { background: #fff; border: 1px solid var(--line-soft); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); padding: 1.4rem 1.5rem; }
.rev-chart { width: 100%; height: auto; display: block; }
.rev-total { font-family: var(--font-display); font-weight: 800; font-size: clamp(2.4rem, 5vw, 3.4rem); color: var(--forest); line-height: 1; }
.rev-compare { font-size: 0.85rem; color: var(--emerald); font-weight: 700; margin-top: 0.3rem; }

/* Academy overview */
.acad-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1rem; }
.acad-stat {
  background: #fff; border: 1px solid var(--line-soft); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); padding: 1.1rem 1.2rem; position: relative; overflow: hidden;
}
.acad-stat::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--accent, var(--gold)); }
.acad-name { font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; color: var(--forest); }
.acad-native { font-size: 0.8rem; color: var(--muted); margin-bottom: 0.7rem; }
.acad-rows { display: flex; flex-direction: column; gap: 0.35rem; }
.acad-rows > div { display: flex; justify-content: space-between; align-items: baseline; font-size: 0.85rem; }
.acad-rows span { color: var(--muted); }
.acad-rows strong { color: var(--forest); font-family: var(--font-brand); font-size: 0.95rem; }

/* Content Center */
.content-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.content-stat { background: #fff; border: 1px solid var(--line-soft); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); padding: 1rem 1.1rem; text-align: center; }
.content-stat .num { font-family: var(--font-display); font-weight: 800; font-size: 1.8rem; color: var(--forest); }
.content-stat .lbl { font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-top: 0.2rem; }

/* Quick actions admin */
.admin-quick { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.4rem; }
.admin-quick a { flex: 1 1 160px; }

/* Responsive */
@media (max-width: 900px) {
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .content-stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .kpi-grid { grid-template-columns: 1fr; }
  .content-stats { grid-template-columns: 1fr 1fr; }
  .admin-header { flex-direction: column; align-items: flex-start; }
  .admin-nav { margin-inline-start: 0; }
}

/* ============================================================
   ADMIN — sidebar back-office + live classes (3 blocs) + range
   ============================================================ */
.admin-layout { display: flex; gap: 1.4rem; align-items: flex-start; max-width: 1200px; }
.admin-sidebar {
  flex: 0 0 210px; position: sticky; top: 84px;
  background: var(--forest-ink); color: var(--cream);
  border-radius: var(--radius-lg); padding: 1.1rem 0.8rem;
  display: flex; flex-direction: column; gap: 0.6rem;
}
.admin-sidebar .admin-brand { padding: 0 0.5rem 0.6rem; font-family: var(--font-brand); font-size: 0.95rem; letter-spacing: 0.04em; }
.admin-sidebar .admin-brand-mark { color: var(--gold-vivid); }
.admin-sidebar .admin-brand-name { color: rgba(250, 246, 236, 0.7); font-size: 0.8rem; }
.admin-nav-item {
  display: flex; align-items: center; gap: 0.6rem; width: 100%;
  background: none; border: none; cursor: pointer; color: rgba(250, 246, 236, 0.72);
  font-family: var(--font-body); font-size: 0.88rem; text-align: start;
  padding: 0.5rem 0.6rem; border-radius: var(--radius);
  transition: background 0.15s ease, color 0.15s ease;
}
.admin-nav-item .icon { display: inline-flex; color: var(--gold-vivid); }
.admin-nav-item:hover, .admin-nav-item.active { background: rgba(250, 246, 236, 0.1); color: var(--cream); }
.admin-side-footer { margin-top: auto; padding: 0.6rem 0.5rem 0; border-top: 1px solid rgba(250, 246, 236, 0.12); display: flex; flex-direction: column; gap: 0.5rem; }
.admin-side-footer .view-site { color: var(--gold-vivid); text-decoration: none; font-size: 0.85rem; }
.admin-side-footer .admin-profile { font-size: 0.8rem; color: rgba(250, 246, 236, 0.85); display: flex; align-items: center; gap: 0.5rem; }
.admin-content { flex: 1; min-width: 0; }

/* Range switch (revenus 7/30/90) */
.range-switch { display: flex; gap: 0.3rem; background: var(--cream-soft); border-radius: 999px; padding: 0.2rem; }
.range-btn { border: none; background: transparent; cursor: pointer; font-family: var(--font-body); font-size: 0.78rem; color: var(--muted); padding: 0.3rem 0.8rem; border-radius: 999px; transition: background 0.15s ease, color 0.15s ease; }
.range-btn.active { background: var(--forest); color: var(--cream); }

/* Live classes admin : blocs + cartes */
.admin-section-block { margin-bottom: 1.4rem; }
.admin-section-title { font-family: var(--font-display); font-weight: 700; font-size: 1rem; color: var(--forest); margin-bottom: 0.6rem; }
.admin-live-card { background: #fff; border: 1px solid var(--line-soft); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); padding: 1rem 1.2rem; margin-bottom: 0.7rem; }
.admin-live-head { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.4rem; }
.admin-live-title { font-weight: 700; color: var(--forest); }
.admin-live-meta { font-size: 0.82rem; color: var(--muted); margin-bottom: 0.3rem; }
.admin-empty-inline { background: var(--cream-soft); border-radius: var(--radius-lg); padding: 1.2rem 1rem; font-size: 0.88rem; color: var(--muted); }

/* Sidebar responsive */
@media (max-width: 900px) {
  .admin-layout { flex-direction: column; }
  .admin-sidebar { position: static; flex: none; width: 100%; flex-direction: row; flex-wrap: wrap; align-items: center; }
  .admin-nav-item { width: auto; }
  .admin-side-footer { margin-top: 0; border-top: none; flex-direction: row; align-items: center; }
}

/* ============================================================
   BANDEAU DE CONSENTEMENT (cookies / analytics)
   ============================================================ */
.consent-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 200;
  background: var(--forest-ink); color: var(--cream);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 0.8rem 1.2rem; padding: 0.9rem clamp(1rem, 4vw, 2rem);
  box-shadow: 0 -6px 24px rgba(0, 0, 0, 0.25); font-size: 0.9rem;
}
.consent-banner p { color: rgba(250, 246, 236, 0.88); max-width: 60ch; margin: 0; }
.consent-banner .consent-link { color: var(--gold-vivid); text-decoration: none; white-space: nowrap; }
.consent-actions { display: flex; gap: 0.6rem; flex-wrap: wrap; }




/* Responsive hero */
@media (max-width: 560px) {
  .dash-hero { flex-direction: column; align-items: flex-start; }
  .dash-hero-ring { align-self: center; }
}



