/* ==========================================================================
   E-LEARNING (équipe) — cartes de cours, éditeur de parcours, éditeur de diaporama,
   éditeur de questions, zones d'envoi de fichiers.
   ========================================================================== */
.modal--full { max-width: 1240px; height: calc(100dvh - 48px); }
@media (max-width: 720px) { .modal--full { height: 94dvh; } }

/* ---- Cartes de cours ---- */
.lc-grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); gap: 16px; margin-bottom: 26px; }
.lc { display: flex; flex-direction: column; gap: 12px; padding: 18px; border-radius: var(--r-xl); border: 2px solid var(--border); border-bottom-width: 5px; background: var(--surface); text-align: left; }
.lc__top { display: flex; gap: 12px; align-items: flex-start; }
.lc__emoji { width: 56px; height: 56px; flex: none; border-radius: 18px; display: grid; place-items: center; font-size: 30px; background: var(--brand-50, #f0edff); }
.lc__titre { display: block; font-size: 16.5px; font-weight: 900; line-height: 1.25; }
.lc__exam { display: inline-block; margin-top: 4px; padding: 2px 10px; border-radius: 99px; font-size: 12px; font-weight: 900; background: var(--purple-bg, #f3e8ff); color: var(--purple-d, #7c3aed); }
.lc__desc { color: var(--text-2); font-size: 13.5px; }
.lc__types { display: flex; flex-wrap: wrap; gap: 6px; }
.lc__types span { padding: 4px 10px; border-radius: 99px; background: var(--surface-2); font-weight: 800; font-size: 13px; }
.lc__stats { display: flex; gap: 14px; flex-wrap: wrap; font-size: 13.5px; color: var(--text-2); }
.lc__actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; }
.lc__actions .btn:first-child { flex: 1; justify-content: center; }
.lc--nouveau { align-items: center; justify-content: center; border-style: dashed; min-height: 200px; cursor: pointer; color: var(--text-3); }
.lc--nouveau span { font-size: 40px; line-height: 1; color: var(--brand-600); }
.lc--nouveau b { color: var(--text); font-size: 16px; }
.lc--nouveau:hover { border-color: var(--brand-600); background: var(--brand-50, #f5f3ff); }

/* ---- Éditeur de parcours ---- */
.ced { display: grid; gap: 16px; }
.ced__infos { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 14px; border-radius: 16px; background: var(--surface-2); font-size: 14px; }
.ced__liste { display: grid; gap: 8px; }
.ced__chap { margin: 8px 0 0; font-weight: 900; font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--text-3); }
.ced__mod { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 16px; border: 2px solid var(--border); background: var(--surface); }
.ced__mod:hover { border-color: var(--c); }
.ced__num { width: 24px; text-align: center; font-weight: 900; color: var(--text-3); }
.ced__emoji { width: 44px; height: 44px; flex: none; border-radius: 14px; display: grid; place-items: center; font-size: 22px; background: var(--cbg); }
.ced__txt { text-align: left; min-width: 0; padding: 4px 6px; border-radius: 10px; border: 0 !important; background: none !important; box-shadow: none !important; color: inherit; cursor: pointer; }
.ced__txt:hover b { color: var(--brand-600); }
.ced__txt b { display: block; font-size: 15px; }
.ced__txt small { display: block; color: var(--text-3); font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ced__vide { padding: 24px; text-align: center; border: 2px dashed var(--border-2); border-radius: 18px; color: var(--text-2); font-weight: 700; }
.ced__ajout > b { display: block; margin-bottom: 10px; font-size: 15px; }
.ced__types { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.ced__type { display: grid; gap: 2px; justify-items: start; text-align: left; padding: 14px; border-radius: 18px; border: 2px solid var(--border); border-bottom-width: 5px; background: var(--surface); transition: transform .08s; }
.ced__type:hover { border-color: var(--c); background: var(--cbg); }
.ced__type:active { transform: translateY(3px); border-bottom-width: 2px; margin-bottom: 3px; }
.ced__type span { font-size: 28px; }
.ced__type b { font-size: 15px; }
.ced__type small { color: var(--text-3); font-weight: 700; font-size: 12px; line-height: 1.3; }
@media (max-width: 600px) { .ced__mod { flex-wrap: wrap; } .ced__txt { flex: 1 1 calc(100% - 60px); } .ced__num { display: none; } .ced__mod .btn { margin-left: 54px; } }

/* ---- Éditeur de questions ---- */
.qed { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--border); }
.qed__n { width: 28px; height: 28px; flex: none; border-radius: 10px; display: grid; place-items: center; font-weight: 900; background: var(--orange-bg); color: var(--orange-d); }
.qed__choix { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0; }
.qed__choix span { padding: 3px 10px; border-radius: 99px; background: var(--surface-2); font-size: 13px; font-weight: 700; }
.qed__choix span.is-ok { background: var(--green-bg); color: var(--green-d); }
.qed small { color: var(--text-3); font-weight: 700; }

/* ---- Envoi de fichier ---- */
.envoi { margin-top: 12px; }
.envoi .dropzone { width: 100%; }
.envoi.is-over .dropzone { border-color: var(--brand-600); background: var(--brand-50, #f5f3ff); }
.envoi__etat { margin-top: 8px; }
.envoi__txt { font-size: 13px; font-weight: 700; margin-bottom: 6px; color: var(--text-2); }

/* ---- Éditeur de diaporama ---- */
.dp { display: grid; grid-template-columns: 150px minmax(0, 1fr) 330px; gap: 18px; height: 100%; min-height: 0; }
.dp__minis { display: grid; align-content: start; gap: 10px; overflow-y: auto; padding: 2px 6px 2px 2px; }
.dp__mini { position: relative; display: block; width: 100%; aspect-ratio: 16 / 10; border-radius: 12px; overflow: hidden; border: 3px solid var(--border); padding: 0; background: var(--surface-2); }
.dp__mini.is-sel { border-color: var(--brand-600); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-600) 25%, transparent); }
.dp__mini-in { width: 500%; height: 500%; transform: scale(.2); transform-origin: 0 0; pointer-events: none; }
.dp__mini-in .sl { border-radius: 0; }
.dp__mini-in [class*="sl__"] { animation: none !important; }
.dp__n { position: absolute; z-index: 2; left: 4px; top: 4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 8px; background: rgba(0, 0, 0, .55); color: #fff; font-size: 11px; font-weight: 900; display: grid; place-items: center; }
.dp__ajout { aspect-ratio: 16 / 10; border-radius: 12px; border: 3px dashed var(--border-2); font-size: 26px; color: var(--text-3); display: grid; place-content: center; line-height: 1; }
.dp__ajout small { font-size: 12px; font-weight: 800; }
.dp__ajout:hover { border-color: var(--brand-600); color: var(--brand-600); }
.dp__centre { display: flex; flex-direction: column; gap: 10px; min-height: 0; }
.dp__barre { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.dp__apercu { width: 100%; aspect-ratio: 16 / 10; border-radius: 20px; overflow: hidden; box-shadow: 0 6px 0 rgba(0, 0, 0, .06), 0 16px 40px -18px rgba(40, 30, 120, .4); border: 2px solid var(--border); }
.dp__scene { width: 100%; height: 100%; }
.dp__form { overflow-y: auto; padding-right: 4px; }
.dp__form .form-grid { grid-template-columns: 1fr 1fr; }
.dp__fonds { display: flex; flex-wrap: wrap; gap: 8px; }
.dp__fond { width: 34px; height: 34px; border-radius: 12px; border: 3px solid var(--border); }
.dp__fond.is-sel { border-color: var(--text); transform: scale(1.1); }
@media (max-width: 1100px) {
  .dp { grid-template-columns: 1fr; height: auto; }
  .dp__minis { grid-auto-flow: column; grid-auto-columns: 120px; overflow-x: auto; overflow-y: hidden; order: -1; }
}
