/* ================================================================
   F6KUF LEARNING CENTER — lc-style.css
   Centre d'Apprentissage : manuel, FAQ, tutoriels, IA, missions
   Compatible thème sombre (natif) + thème clair (html.light-theme)
   ================================================================ */

/* ── Variables spécifiques LC ────────────────────────────────── */
:root {
  --lc-accent: #00c8ff;
  --lc-accent2: #7c3aed;
  --lc-success: #18c76a;
  --lc-warn: #ffb01f;
  --lc-danger: #ff3f55;
  --lc-training-bg: rgba(255, 176, 31, 0.12);
  --lc-training-border: #ffb01f;
}

/* ── Bouton flottant "? Centre d'aide" ───────────────────────── */
#lcHelpBtn {
  position: fixed;
  bottom: 80px;
  right: 18px;
  z-index: 9000;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0b7cff, #7c3aed);
  border: 2px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  font-size: 22px;
  font-weight: 900;
  box-shadow: 0 6px 24px rgba(11, 124, 255, 0.45);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s, box-shadow 0.2s;
}
#lcHelpBtn:hover {
  transform: scale(1.1);
  box-shadow: 0 10px 32px rgba(11, 124, 255, 0.6);
}

/* ── Panneau LC (drawer latéral) ─────────────────────────────── */
#lcDrawer {
  position: fixed;
  top: 0;
  right: -480px;
  width: 480px;
  max-width: 96vw;
  height: 100vh;
  z-index: 9100;
  background: #071a2b;
  border-left: 1px solid #16415f;
  box-shadow: -8px 0 40px rgba(0, 0, 0, 0.45);
  display: flex;
  flex-direction: column;
  transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}
#lcDrawer.lc-open { right: 0; }

html.light-theme #lcDrawer {
  background: #f8fbff;
  border-left-color: #8ab0cc;
  box-shadow: -8px 0 40px rgba(0, 50, 100, 0.12);
}

.lc-drawer-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: linear-gradient(135deg, #0b7cff22, #7c3aed22);
  border-bottom: 1px solid #16415f;
  flex-shrink: 0;
}
html.light-theme .lc-drawer-head { border-bottom-color: #c5d5e6; }

.lc-drawer-head h2 {
  margin: 0;
  flex: 1;
  font-size: 17px;
  color: var(--lc-accent);
}
.lc-drawer-tabs {
  display: flex;
  gap: 4px;
  padding: 8px 12px;
  background: rgba(0, 0, 0, 0.18);
  flex-shrink: 0;
  flex-wrap: wrap;
}
html.light-theme .lc-drawer-tabs { background: rgba(0, 0, 0, 0.04); }

.lc-tab-btn {
  flex: 1;
  min-width: 60px;
  padding: 7px 10px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: transparent;
  color: #9cb4c9;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  text-align: center;
  transition: all 0.15s;
}
.lc-tab-btn:hover { background: rgba(0, 200, 255, 0.1); color: var(--lc-accent); }
.lc-tab-btn.active {
  background: linear-gradient(135deg, #0b7cff, #7c3aed);
  color: #fff;
  border-color: #0b7cff;
}

.lc-drawer-search {
  padding: 10px 12px;
  border-bottom: 1px solid #16415f;
  flex-shrink: 0;
}
html.light-theme .lc-drawer-search { border-bottom-color: #c5d5e6; }
.lc-drawer-search input {
  width: 100%;
  box-sizing: border-box;
  background: #061827;
  border: 1px solid #16415f;
  border-radius: 8px;
  padding: 9px 12px;
  color: #e9f4ff;
  font-size: 13px;
}
html.light-theme .lc-drawer-search input {
  background: #fff;
  border-color: #8ab0cc;
  color: #091828;
}
.lc-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 14px;
}

/* ── LC Sections (contenu dans le drawer) ────────────────────── */
.lc-section { display: none; }
.lc-section.active { display: block; }

.lc-feature-card {
  background: #061827;
  border: 1px solid #16415f;
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 10px;
  transition: border-color 0.15s;
}
.lc-feature-card:hover { border-color: var(--lc-accent); }
html.light-theme .lc-feature-card { background: #f4f8fc; border-color: #c5d5e6; }

.lc-feature-card h4 {
  margin: 0 0 6px;
  color: var(--lc-accent);
  font-size: 14px;
}
.lc-feature-card p {
  margin: 0 0 8px;
  font-size: 13px;
  color: #c8d9e8;
  line-height: 1.5;
}
html.light-theme .lc-feature-card p { color: #305070; }
.lc-feature-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.lc-action-btn {
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--lc-accent);
  background: transparent;
  color: var(--lc-accent);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
}
.lc-action-btn:hover { background: var(--lc-accent); color: #02101c; }
.lc-action-btn.purple { border-color: var(--lc-accent2); color: var(--lc-accent2); }
.lc-action-btn.purple:hover { background: var(--lc-accent2); color: #fff; }
.lc-action-btn.green { border-color: var(--lc-success); color: var(--lc-success); }
.lc-action-btn.green:hover { background: var(--lc-success); color: #02101c; }

/* ── FAQ dans drawer ─────────────────────────────────────────── */
.lc-faq-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  padding: 10px 0;
}
html.light-theme .lc-faq-item { border-bottom-color: rgba(0, 0, 0, 0.08); }
.lc-faq-q {
  font-weight: 700;
  color: #dff1ff;
  font-size: 13px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}
html.light-theme .lc-faq-q { color: #091828; }
.lc-faq-q span { color: var(--lc-accent); font-size: 16px; flex-shrink: 0; }
.lc-faq-a {
  display: none;
  font-size: 13px;
  color: #9cb4c9;
  line-height: 1.55;
  margin-top: 6px;
  padding-left: 4px;
}
html.light-theme .lc-faq-a { color: #305070; }
.lc-faq-item.open .lc-faq-a { display: block; }
.lc-faq-item.open .lc-faq-q span { transform: rotate(90deg); display: inline-block; }
.lc-faq-vote {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  font-size: 11px;
  color: #9cb4c9;
}
.lc-faq-vote button {
  background: transparent;
  border: 1px solid #16415f;
  border-radius: 6px;
  padding: 2px 8px;
  font-size: 11px;
  color: #9cb4c9;
  cursor: pointer;
}
.lc-faq-vote button:hover { border-color: var(--lc-success); color: var(--lc-success); }

/* ── Aide contextuelle (tooltip/popover) ─────────────────────── */
.lc-help-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(0, 200, 255, 0.15);
  border: 1px solid var(--lc-accent);
  color: var(--lc-accent);
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
  margin-left: 5px;
  vertical-align: middle;
  flex-shrink: 0;
  transition: background 0.15s;
}
.lc-help-icon:hover { background: var(--lc-accent); color: #02101c; }

.lc-popover {
  position: fixed;
  z-index: 9500;
  max-width: 320px;
  background: #071a2b;
  border: 1px solid var(--lc-accent);
  border-radius: 12px;
  padding: 14px 16px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
  animation: lcFadeIn 0.15s ease;
}
html.light-theme .lc-popover {
  background: #f8fbff;
  border-color: #0b7cff;
  box-shadow: 0 8px 28px rgba(0, 50, 100, 0.15);
}
.lc-popover h5 {
  margin: 0 0 8px;
  color: var(--lc-accent);
  font-size: 14px;
}
.lc-popover p {
  margin: 0 0 10px;
  font-size: 13px;
  color: #c8d9e8;
  line-height: 1.5;
}
html.light-theme .lc-popover p { color: #305070; }
.lc-popover-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.lc-popover-close {
  position: absolute;
  top: 8px;
  right: 10px;
  background: transparent;
  border: 0;
  color: #9cb4c9;
  font-size: 16px;
  cursor: pointer;
  padding: 2px 6px;
}
.lc-popover-close:hover { color: var(--lc-danger); }

/* ── Overlay Tutoriel Interactif ─────────────────────────────── */
#lcTutorialOverlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9200;
  pointer-events: none;
}
#lcTutorialOverlay.active {
  display: block;
  pointer-events: auto;
}

/* ── Modale démarrage / sortie tutoriel ───────────────────────── */
#lcTutModal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9400;
  background: rgba(2, 10, 20, 0.75);
  align-items: center;
  justify-content: center;
}
#lcTutModal.open { display: flex; }
.lc-tut-modal-box {
  background: #071a2b;
  border: 1px solid var(--lc-accent);
  border-radius: 18px;
  padding: 28px 30px;
  max-width: 460px;
  width: calc(100vw - 32px);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.65);
  animation: lcSlideIn 0.22s ease;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
html.light-theme .lc-tut-modal-box {
  background: #fff;
  border-color: #0b7cff;
  box-shadow: 0 16px 48px rgba(0, 50, 100, 0.18);
}
.lc-tut-modal-icon {
  font-size: 42px;
  line-height: 1;
  text-align: center;
}
.lc-tut-modal-box h3 {
  margin: 0;
  font-size: 19px;
  color: var(--lc-accent);
  text-align: center;
}
.lc-tut-modal-box p {
  margin: 0;
  font-size: 14px;
  color: #c8d9e8;
  text-align: center;
  line-height: 1.6;
}
html.light-theme .lc-tut-modal-box p { color: #305070; }
.lc-tut-modal-meta {
  display: flex;
  gap: 18px;
  justify-content: center;
  font-size: 13px;
  color: #6b8a9e;
}
.lc-tut-modal-meta span { display: flex; align-items: center; gap: 5px; }
.lc-tut-modal-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 6px;
}
.lc-tut-modal-actions button {
  min-width: 130px;
  padding: 11px 18px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}
.lc-tut-btn-start {
  background: linear-gradient(135deg, #0b7cff, #7c3aed);
  border: 0;
  color: #fff;
  box-shadow: 0 4px 16px rgba(11, 124, 255, 0.35);
}
.lc-tut-btn-start:hover { filter: brightness(1.1); }
.lc-tut-btn-cancel {
  background: transparent;
  border: 1px solid #16415f;
  color: #9cb4c9;
}
.lc-tut-btn-cancel:hover { border-color: #9cb4c9; }

/* Bouton fin (Terminer) style distinct */
.lc-tut-btn-finish {
  background: linear-gradient(135deg, #18c76a, #0a9050);
  border: 0;
  color: #fff;
}

.lc-tut-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 10, 20, 0.72);
  transition: opacity 0.3s;
}

.lc-tut-highlight {
  position: absolute;
  border-radius: 8px;
  box-shadow:
    0 0 0 9999px rgba(2, 10, 20, 0.72),
    0 0 0 3px var(--lc-accent),
    0 0 20px rgba(0, 200, 255, 0.45);
  z-index: 9201;
  pointer-events: none;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.lc-tut-card {
  position: absolute;
  z-index: 9202;
  background: #071a2b;
  border: 1px solid var(--lc-accent);
  border-radius: 14px;
  padding: 18px 20px;
  max-width: 340px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.6);
  animation: lcSlideIn 0.2s ease;
}
html.light-theme .lc-tut-card {
  background: #fff;
  border-color: #0b7cff;
  box-shadow: 0 10px 30px rgba(0, 50, 100, 0.18);
}
.lc-tut-card h3 {
  margin: 0 0 10px;
  color: var(--lc-accent);
  font-size: 15px;
}
.lc-tut-card p {
  margin: 0 0 14px;
  font-size: 13px;
  color: #c8d9e8;
  line-height: 1.55;
}
html.light-theme .lc-tut-card p { color: #305070; }
.lc-tut-progress {
  display: flex;
  gap: 4px;
  margin-bottom: 12px;
}
.lc-tut-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #16415f;
  transition: background 0.2s;
}
.lc-tut-dot.done { background: var(--lc-accent); }
.lc-tut-dot.current { background: #fff; box-shadow: 0 0 6px var(--lc-accent); }
.lc-tut-controls {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.lc-tut-controls button {
  padding: 7px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.lc-tut-btn-prev { background: transparent; border: 1px solid #16415f; color: #9cb4c9; }
.lc-tut-btn-prev:hover { border-color: #9cb4c9; }
.lc-tut-btn-next { background: linear-gradient(135deg, #0b7cff, #7c3aed); border: 0; color: #fff; }
.lc-tut-btn-skip { background: transparent; border: 0; color: #6b8a9e; font-size: 12px; margin-left: auto; text-decoration: underline; padding: 4px; }
.lc-tut-counter { font-size: 12px; color: #6b8a9e; margin-left: auto; }

/* ── Mode entraînement ───────────────────────────────────────── */
#lcTrainingBanner {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 8900;
  background: linear-gradient(90deg, #ff8800, #ffb01f);
  color: #02101c;
  text-align: center;
  padding: 8px 16px;
  font-weight: 900;
  font-size: 14px;
  letter-spacing: 0.05em;
  box-shadow: 0 3px 12px rgba(255, 140, 0, 0.45);
}
#lcTrainingBanner.active {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
#lcTrainingBanner button {
  background: rgba(0,0,0,0.2);
  border: 1px solid rgba(0,0,0,0.3);
  color: #fff;
  border-radius: 6px;
  padding: 4px 12px;
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
}
body.lc-training-mode .topbar { margin-top: 36px; }

/* ── Assistant IA (widget flottant) ─────────────────────────── */
#lcAiPanel {
  position: fixed;
  bottom: 144px;
  right: 18px;
  z-index: 9050;
  width: 380px;
  max-width: 94vw;
  max-height: 520px;
  background: #071a2b;
  border: 1px solid var(--lc-accent);
  border-radius: 16px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.55);
  display: none;
  flex-direction: column;
  overflow: hidden;
  animation: lcFadeIn 0.2s ease;
}
#lcAiPanel.open { display: flex; }
html.light-theme #lcAiPanel {
  background: #f8fbff;
  border-color: #0b7cff;
  box-shadow: 0 10px 30px rgba(0, 50, 100, 0.18);
}
.lc-ai-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: linear-gradient(135deg, #0b7cff22, #7c3aed22);
  border-bottom: 1px solid #16415f;
  flex-shrink: 0;
}
html.light-theme .lc-ai-head { border-bottom-color: #c5d5e6; }
.lc-ai-head h3 { margin: 0; flex: 1; font-size: 14px; color: var(--lc-accent); }
.lc-ai-messages {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.lc-ai-msg {
  max-width: 88%;
  padding: 9px 12px;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.5;
}
.lc-ai-msg.user {
  background: linear-gradient(135deg, #0b7cff, #075cd6);
  color: #fff;
  align-self: flex-end;
  border-radius: 10px 10px 2px 10px;
}
.lc-ai-msg.bot {
  background: #061827;
  color: #c8d9e8;
  align-self: flex-start;
  border: 1px solid #16415f;
  border-radius: 2px 10px 10px 10px;
}
html.light-theme .lc-ai-msg.bot { background: #e8f2fa; color: #1a2d40; border-color: #c5d5e6; }
.lc-ai-sources {
  font-size: 11px;
  color: #6b8a9e;
  margin-top: 6px;
  border-top: 1px solid #16415f;
  padding-top: 6px;
}
.lc-ai-sources a { color: var(--lc-accent); text-decoration: none; }
.lc-ai-sources a:hover { text-decoration: underline; }
.lc-ai-compose {
  display: flex;
  gap: 8px;
  padding: 10px 12px;
  border-top: 1px solid #16415f;
  flex-shrink: 0;
}
html.light-theme .lc-ai-compose { border-top-color: #c5d5e6; }
.lc-ai-compose input {
  flex: 1;
  background: #061827;
  border: 1px solid #16415f;
  border-radius: 8px;
  padding: 8px 10px;
  color: #e9f4ff;
  font-size: 13px;
}
html.light-theme .lc-ai-compose input { background: #fff; border-color: #8ab0cc; color: #091828; }
.lc-ai-compose button {
  padding: 8px 14px;
  border-radius: 8px;
  background: linear-gradient(135deg, #0b7cff, #7c3aed);
  border: 0;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  font-size: 13px;
}
#lcAiBtn {
  position: fixed;
  bottom: 18px;
  right: 18px;
  z-index: 9060;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7c3aed, #0b7cff);
  border: 2px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 20px;
  box-shadow: 0 6px 24px rgba(124, 58, 237, 0.5);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s;
}
#lcAiBtn:hover { transform: scale(1.1); }

/* ── Panneau Manager Learning Center ─────────────────────────── */
.lc-admin-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.lc-admin-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
  margin-bottom: 6px;
}
.lc-admin-tab {
  padding: 8px 16px;
  border-radius: 8px 8px 0 0;
  border: 1px solid var(--line);
  border-bottom: 0;
  background: #0a1f33;
  color: #cfe6fb;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
}
html.light-theme .lc-admin-tab { background: #e8f2fa; color: #305070; }
.lc-admin-tab.active {
  background: linear-gradient(180deg, #0b7cff, #075cd6);
  color: #fff;
  border-color: #168cff;
}
.lc-admin-section { display: none; }
.lc-admin-section.active { display: block; }

/* ── Dashboard admin LC ──────────────────────────────────────── */
.lc-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}
.lc-kpi {
  background: linear-gradient(135deg, rgba(10, 54, 88, 0.95), rgba(7, 30, 49, 0.98));
  border: 1px solid #123d5d;
  border-radius: 10px;
  padding: 14px;
  text-align: center;
}
html.light-theme .lc-kpi { background: #f4f8fc; border-color: #c5d5e6; }
.lc-kpi-val {
  display: block;
  font-size: 32px;
  font-weight: 900;
  color: #fff;
  line-height: 1.1;
}
html.light-theme .lc-kpi-val { color: #091828; }
.lc-kpi-lbl {
  display: block;
  font-size: 11px;
  color: #9cb4c9;
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.lc-kpi.warn { border-color: var(--lc-warn); }
.lc-kpi.warn .lc-kpi-val { color: var(--lc-warn); }
.lc-kpi.danger { border-color: var(--lc-danger); }
.lc-kpi.danger .lc-kpi-val { color: var(--lc-danger); }

/* ── Tables admin LC ─────────────────────────────────────────── */
.lc-table-wrap { overflow-x: auto; margin-top: 10px; }
.lc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}
.lc-table th {
  background: #0a2742;
  color: #7fd0ff;
  text-align: left;
  padding: 9px 12px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 1px solid var(--line);
}
html.light-theme .lc-table th { background: #e8f0f8; color: #1a2d40; }
.lc-table td {
  padding: 8px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: #e9f4ff;
}
html.light-theme .lc-table td { color: #1a2d40; border-bottom-color: rgba(0,0,0,0.06); }
.lc-table tbody tr:hover { background: rgba(11, 124, 255, 0.07); }
.lc-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
}
.lc-badge.pub { background: rgba(24, 199, 106, 0.2); color: #18c76a; border: 1px solid rgba(24, 199, 106, 0.4); }
.lc-badge.draft { background: rgba(255, 176, 31, 0.15); color: #ffb01f; border: 1px solid rgba(255, 176, 31, 0.35); }
.lc-badge.review { background: rgba(255, 63, 85, 0.15); color: #ff3f55; border: 1px solid rgba(255, 63, 85, 0.35); }

/* ── Formulaires admin LC ────────────────────────────────────── */
.lc-form {
  background: #061827;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  display: grid;
  gap: 12px;
}
html.light-theme .lc-form { background: #f4f8fc; border-color: #c5d5e6; }
.lc-form label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 13px;
  color: #bfeaff;
}
html.light-theme .lc-form label { color: #305070; }
.lc-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px 14px;
  align-items: end;
}
.lc-lang-tabs {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}
.lc-lang-tab {
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: #0a1f33;
  color: #9cb4c9;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.lc-lang-tab.active { background: linear-gradient(180deg, #0b7cff, #075cd6); color: #fff; border-color: #168cff; }
.lc-lang-field { display: none; }
.lc-lang-field.active { display: flex; flex-direction: column; gap: 4px; }

/* ── Missions ────────────────────────────────────────────────── */
.lc-mission-card {
  background: #061827;
  border: 1px solid #16415f;
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 12px;
  display: grid;
  gap: 8px;
}
html.light-theme .lc-mission-card { background: #f4f8fc; border-color: #c5d5e6; }
.lc-mission-card h4 { margin: 0; color: var(--lc-accent); font-size: 15px; }
.lc-mission-meta {
  display: flex;
  gap: 10px;
  font-size: 12px;
  color: #9cb4c9;
  flex-wrap: wrap;
}
.lc-difficulty-easy { color: var(--lc-success); }
.lc-difficulty-medium { color: var(--lc-warn); }
.lc-difficulty-hard { color: var(--lc-danger); }
.lc-mission-steps { list-style: none; padding: 0; margin: 8px 0 0; }
.lc-mission-steps li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 13px;
  color: #c8d9e8;
}
html.light-theme .lc-mission-steps li { color: #305070; border-bottom-color: rgba(0,0,0,0.06); }
.lc-step-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0b7cff, #7c3aed);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.lc-step-done .lc-step-num { background: var(--lc-success); }

/* ── Formations (courses) ────────────────────────────────────── */
.lc-course-card {
  background: #061827;
  border: 1px solid #16415f;
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 12px;
}
html.light-theme .lc-course-card { background: #f4f8fc; border-color: #c5d5e6; }
.lc-course-card h4 { margin: 0 0 8px; color: var(--lc-accent); font-size: 15px; }
.lc-lesson-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 13px;
}
html.light-theme .lc-lesson-item { border-bottom-color: rgba(0,0,0,0.06); }

/* ── Glossaire ───────────────────────────────────────────────── */
.lc-glossary-item {
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
html.light-theme .lc-glossary-item { border-bottom-color: rgba(0,0,0,0.08); }
.lc-glossary-term {
  font-weight: 700;
  color: var(--lc-accent);
  margin-bottom: 4px;
  font-size: 14px;
}
.lc-glossary-def { font-size: 13px; color: #9cb4c9; line-height: 1.5; }
html.light-theme .lc-glossary-def { color: #305070; }

/* ── Animations ──────────────────────────────────────────────── */
@keyframes lcFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes lcSlideIn {
  from { opacity: 0; transform: scale(0.95); }
  to   { opacity: 1; transform: scale(1); }
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 760px) {
  #lcDrawer { width: 100vw; }
  #lcAiPanel { width: calc(100vw - 16px); right: 8px; bottom: 80px; }
  .lc-kpi-grid { grid-template-columns: 1fr 1fr; }
  #lcHelpBtn { bottom: 140px; }
}

/* ── Config IA ───────────────────────────────────────────────── */
.lc-ai-config-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px 16px;
  align-items: end;
  padding: 14px;
  background: #061827;
  border: 1px solid var(--line);
  border-radius: 12px;
}
html.light-theme .lc-ai-config-form { background: #f4f8fc; border-color: #c5d5e6; }
.lc-ai-provider-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  background: rgba(0, 200, 255, 0.12);
  border: 1px solid var(--lc-accent);
  color: var(--lc-accent);
}
.lc-ai-provider-badge.active { background: rgba(24, 199, 106, 0.15); border-color: var(--lc-success); color: var(--lc-success); }
.lc-ai-provider-badge.inactive { background: rgba(255, 176, 31, 0.12); border-color: var(--lc-warn); color: var(--lc-warn); }

/* ── Search results ──────────────────────────────────────────── */
.lc-search-result {
  padding: 10px 12px;
  background: #061827;
  border: 1px solid #16415f;
  border-radius: 8px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: border-color 0.15s;
}
.lc-search-result:hover { border-color: var(--lc-accent); }
html.light-theme .lc-search-result { background: #f4f8fc; border-color: #c5d5e6; }
.lc-search-result-type {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--lc-accent);
  margin-bottom: 4px;
}
.lc-search-result-title { font-size: 14px; font-weight: 700; color: #dff1ff; }
html.light-theme .lc-search-result-title { color: #091828; }
.lc-search-result-excerpt { font-size: 12px; color: #9cb4c9; margin-top: 3px; }
html.light-theme .lc-search-result-excerpt { color: #305070; }

/* ── Changelog ───────────────────────────────────────────────── */
.lc-changelog-entry {
  border-left: 3px solid var(--lc-accent);
  padding: 10px 14px;
  margin-bottom: 14px;
  background: rgba(0, 200, 255, 0.04);
  border-radius: 0 8px 8px 0;
}
.lc-changelog-version {
  font-size: 12px;
  font-weight: 900;
  color: var(--lc-accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.lc-changelog-date { font-size: 11px; color: #6b8a9e; margin-left: 8px; }
.lc-changelog-title { font-size: 15px; font-weight: 700; color: #fff; margin: 6px 0 4px; }
html.light-theme .lc-changelog-title { color: #091828; }
.lc-changelog-content { font-size: 13px; color: #9cb4c9; line-height: 1.5; }
html.light-theme .lc-changelog-content { color: #305070; }
