/* ==========================================================================
   FORMAT COURT (formations en ligne v2) : fil vertical plein écran (F2-isFil),
   sommaire d'une formation en capsules (F2-isM26), rangée « Formats courts » du
   dashboard (F2-isM20), bloc « Aussi en format court » de la page publique (F2-isM11).
   Aucune ombre, aucun accent en bordure gauche, aucun style en ligne.
   ========================================================================== */

/* ---------- Fil plein écran ---------- */
.trn-feed {
  --feed-top: env(safe-area-inset-top, 0px);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 100dvh;
  z-index: 1000;
  display: flex;
  justify-content: center;
  background: var(--ds-ink-900);
  color: var(--ds-on-primary);
  font-family: var(--ds-font, 'Open Sans', system-ui, sans-serif);
  font-size: 16px;
  line-height: 1.5;
}

body:has(.trn-feed) { overflow: hidden; }
.trn-feed [hidden] { display: none !important; }

.trn-feed button { font-family: inherit; color: inherit; cursor: pointer; }
.trn-feed button:focus-visible,
.trn-feed a:focus-visible,
.trn-feed input:focus-visible { outline: none; box-shadow: var(--ds-focus); }

.trn-feed-frame {
  position: relative;
  width: min(100%, calc(100dvh * 0.5));
  height: 100%;
  background: var(--ds-ink-800);
  overflow: hidden;
}

/* En-tête : Quitter, segments, langue, position. */
.trn-feed-top {
  position: absolute;
  left: 0;
  right: 0;
  top: var(--feed-top);
  height: 48px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding-right: 14px;
  z-index: 5;
}

.trn-feed-quit {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  flex: none;
  background: none;
  border: 0;
  color: var(--ds-on-primary);
}

.trn-feed-segs { flex: 1; display: flex; gap: 3px; }

.trn-feed-seg {
  flex: 1;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, .3);
  overflow: hidden;
}

.trn-feed-seg-bar,
.trn-feed-cbar,
.trn-feed-dist-bar {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
}

.trn-feed-seg-bar::-webkit-progress-bar { background: transparent; }
.trn-feed-seg-bar::-webkit-progress-value { background: var(--ds-on-primary); }
.trn-feed-seg-bar::-moz-progress-bar { background: var(--ds-on-primary); }

.trn-feed-lang {
  min-width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  flex: none;
  background: none;
  border: 0;
}

.trn-feed-lang-pill {
  white-space: nowrap;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  background: rgba(255, 255, 255, .2);
}

.trn-feed-lang-pill.is-other { background: var(--ds-primary-500); color: var(--ds-on-primary); }

.trn-feed-pos { font-size: 13px; font-weight: 700; min-width: 34px; text-align: right; }

/* Défilement par éléments. */
.trn-feed-scroller {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  overscroll-behavior: contain;
  scrollbar-width: none;
}

.trn-feed-scroller::-webkit-scrollbar { display: none; }

.trn-feed-item {
  position: relative;
  height: 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  overflow: hidden;
}

.trn-feed-item.is-bounce { animation: trn-feed-bounce .55s ease; }

@keyframes trn-feed-bounce {
  0%, 100% { transform: translateY(0); }
  25% { transform: translateY(-18px); }
  50% { transform: translateY(0); }
  75% { transform: translateY(-8px); }
}

@media (prefers-reduced-motion: reduce) {
  .trn-feed-top,
  .trn-feed-bar,
  .trn-feed-cbar,
  .trn-feed-side { transition: none; }
  .trn-feed-item.is-bounce { animation: none; }
}

/* Capsule : vidéo 9:16 sur dégradé. */
.trn-feed-stage {
  position: absolute;
  inset: 0;
  background: var(--ds-ink-800);
}

/* Bords de la capsule : toucher à gauche ou à droite change d'élément. */
.trn-feed-zone {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 30%;
  padding: 0;
  background: none;
  border: 0;
  touch-action: pan-y;
  -webkit-tap-highlight-color: transparent;
  z-index: 3;
}

.trn-feed-zone.is-prev { left: 0; }
.trn-feed-zone.is-next { right: 0; }

/* Pendant la lecture, l'interface s'efface et revient au toucher. */
.trn-feed-top,
.trn-feed-bar,
.trn-feed-cbar,
.trn-feed-side { transition: opacity .2s ease, visibility .2s ease; }

.trn-feed.is-immersive .trn-feed-top,
.trn-feed.is-immersive .trn-feed-bar,
.trn-feed.is-immersive .trn-feed-cbar,
.trn-feed.is-immersive .trn-feed-side { opacity: 0; visibility: hidden; }

/* Interface posée sur la vidéo : lisible sur une image claire, sans gêner les bords. */
.trn-feed.is-capsule .trn-feed-top { background: rgba(0, 0, 0, .4); }
.trn-feed.is-capsule .trn-feed-bar { pointer-events: none; }
.trn-feed.is-capsule .trn-feed-locked {
  height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(0, 0, 0, .6);
  color: var(--ds-on-primary);
}

.trn-feed-g1,
.trn-feed-g2,
.trn-feed-g3,
.trn-feed-g4 { background: var(--ds-ink-800); }

.trn-feed-poster,
.trn-feed-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.trn-feed-video { background: var(--ds-ink-800); opacity: 0; cursor: pointer; }
.trn-feed-item.is-live .trn-feed-video { opacity: 1; }
.trn-feed-item.is-ended .trn-feed-video { opacity: 0; }

.trn-feed-sim {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
  padding: 0 76px 150px 24px;
}

.trn-feed-sim-kicker { font-size: 13px; font-weight: 700; letter-spacing: .5px; color: var(--ds-line-strong); }
.trn-feed-sim-title { font-size: 30px; font-weight: 700; line-height: 1.2; }
.trn-feed-sim-note { font-size: 14px; color: var(--ds-line-strong); }

.trn-feed-cbar {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(var(--feed-top) + 48px);
  height: 3px;
  background: rgba(255, 255, 255, .2);
  z-index: 4;
}

.trn-feed-cbar::-webkit-progress-bar { background: transparent; }
.trn-feed-cbar::-webkit-progress-value { background: var(--ds-primary-500); }
.trn-feed-cbar::-moz-progress-bar { background: var(--ds-primary-500); }

.trn-feed-play {
  position: absolute;
  left: 50%;
  top: 30%;
  width: 68px;
  height: 68px;
  margin-left: -34px;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, .55);
  display: none;
  place-items: center;
  z-index: 4;
}

.trn-feed-item.is-paused .trn-feed-play { display: grid; }

.trn-feed-sound {
  position: absolute;
  left: 50%;
  top: calc(var(--feed-top) + 64px);
  transform: translateX(-50%);
  padding: 6px 14px;
  border: 0;
  border-radius: 999px;
  background: rgba(0, 0, 0, .6);
  color: var(--ds-on-primary);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  display: none;
  cursor: pointer;
  touch-action: manipulation;
  z-index: 5;
}

.trn-feed-item.is-muted .trn-feed-sound { display: block; }

.trn-feed-side {
  position: absolute;
  right: 10px;
  bottom: 173px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  z-index: 4;
}

.trn-feed-side-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  background: none;
  border: 0;
  padding: 0;
}

.trn-feed-side-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(0, 0, 0, .5);
  display: grid;
  place-items: center;
}

.trn-feed-side-icon.is-text { font-size: 16px; font-weight: 700; }
.trn-feed-side-label { color: var(--ds-on-primary); font-size: 11px; font-weight: 600; }

.trn-feed-ended {
  position: absolute;
  left: 50%;
  bottom: 84px;
  transform: translateX(-50%);
  height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  background: rgba(0, 0, 0, .72);
  border: 1.5px solid rgba(255, 255, 255, .7);
  font-size: 16px;
  font-weight: 700;
  white-space: nowrap;
  display: none;
  align-items: center;
  z-index: 4;
}

.trn-feed-item.is-ended .trn-feed-ended { display: flex; }

/* Cartes. */
.trn-feed-card {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(var(--feed-top) + 64px);
  bottom: 84px;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  overflow-y: auto;
  scrollbar-width: none;
}

.trn-feed-card.is-q,
.trn-feed-card.is-res { top: calc(var(--feed-top) + 72px); }
.trn-feed-card.is-res { padding: 0 20px; gap: 14px; }

.trn-feed-card.is-end { justify-content: center; }

.trn-feed-card > div[data-role] { display: flex; flex-direction: column; gap: 12px; }
.trn-feed-card [hidden] { display: none !important; }

.trn-feed-card p,
.trn-feed-card h2 { margin: 0; }

.trn-feed-badge {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .14);
  font-size: 13px;
  font-weight: 700;
}

.trn-feed-card-title { font-size: 28px; font-weight: 700; line-height: 1.2; }
.trn-feed-card-q { font-size: 21px; font-weight: 700; line-height: 1.3; color: var(--ds-primary-300); margin-top: -6px !important; }
.trn-feed-card-hint { font-size: 14px; color: var(--ds-ink-300); }
.trn-feed-kicker { font-size: 13px; font-weight: 700; letter-spacing: .5px; color: var(--ds-ink-300); }

.trn-feed-field { display: flex; flex-direction: column; gap: 8px; }
.trn-feed-field-label { font-size: 15px; font-weight: 700; color: var(--ds-ink-300); }
.trn-feed-opts { display: flex; flex-direction: column; gap: 10px; }

.trn-feed-opt {
  min-height: 54px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  border-radius: 14px;
  font-size: 17px;
  font-weight: 600;
  text-align: left;
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, .6);
}

.trn-feed-opt.is-on { background: var(--ds-primary-800); border-color: var(--ds-primary-500); }

.trn-feed-input {
  box-sizing: border-box;
  width: 100%;
  min-height: 54px;
  padding: 0 16px;
  border-radius: 14px;
  font-family: inherit;
  font-size: 17px;
  font-weight: 600;
  color: var(--ds-on-primary);
  background: rgba(255, 255, 255, .08);
  border: 1.5px solid rgba(255, 255, 255, .6);
}

.trn-feed-input::placeholder { color: var(--ds-ink-400); }

.trn-feed-answered-label { font-size: 15px; color: var(--ds-ink-300); margin-top: 4px !important; }
.trn-feed-mine { display: flex; flex-direction: column; gap: 8px; margin-top: -8px; }
.trn-feed-mine-label { display: block; font-size: 13px; color: var(--ds-ink-300); }
.trn-feed-mine-line { display: flex; align-items: center; gap: 10px; }
.trn-feed-mine-line svg { flex: none; color: var(--ds-success); }
.trn-feed-mine-value { font-size: 24px; font-weight: 700; line-height: 1.25; }
.trn-feed-others { display: flex; flex-direction: column; gap: 12px; }
.trn-feed-others-title { font-size: 15px; font-weight: 700; margin-top: 6px !important; }
.trn-feed-others-count { font-size: 13px; color: var(--ds-ink-300); margin-top: -10px !important; }
.trn-feed-dist { display: flex; flex-direction: column; gap: 10px; }
.trn-feed-dist-row { display: flex; flex-direction: column; gap: 4px; }
.trn-feed-dist-head { font-size: 13px; font-weight: 700; color: var(--ds-ink-300); }
.trn-feed-dist-head-line { display: flex; justify-content: space-between; gap: 10px; font-size: 15px; }
.trn-feed-dist-name { font-weight: 500; }
.trn-feed-dist-name.is-me { font-weight: 700; }
.trn-feed-dist-pct { font-weight: 700; }

.trn-feed-you {
  font-size: 12px;
  font-weight: 700;
  color: var(--ds-ink-800);
  background: var(--ds-surface);
  border-radius: 4px;
  padding: 0 5px;
  margin-left: 8px;
}

.trn-feed-dist-bar {
  height: 10px;
  border-radius: 5px;
  background: rgba(255, 255, 255, .12);
  overflow: hidden;
}

.trn-feed-dist-bar::-webkit-progress-bar { background: rgba(255, 255, 255, .12); border-radius: 5px; }
.trn-feed-dist-bar::-webkit-progress-value { background: rgba(255, 255, 255, .45); border-radius: 5px; }
.trn-feed-dist-bar::-moz-progress-bar { background: rgba(255, 255, 255, .45); border-radius: 5px; }
.trn-feed-dist-bar.is-me::-webkit-progress-value { background: var(--ds-on-primary); }
.trn-feed-dist-bar.is-me::-moz-progress-bar { background: var(--ds-on-primary); }

/* Question. */
.trn-feed-q-text { font-size: 24px; font-weight: 700; line-height: 1.3; margin-top: -6px !important; }

.trn-feed-qopt {
  min-height: 60px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px 16px;
  border-radius: 14px;
  text-align: left;
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, .5);
}

.trn-feed-qopt:disabled { cursor: default; opacity: 1; }

.trn-feed-qmark {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  flex: none;
  display: grid;
  place-items: center;
  border: 2px solid rgba(255, 255, 255, .6);
}

.trn-feed-qcheck, .trn-feed-qcross { display: none; }
.trn-feed-qbody { flex: 1; display: flex; flex-direction: column; }
.trn-feed-qtext { font-size: 18px; font-weight: 600; }
.trn-feed-qtag { font-size: 13px; font-weight: 700; }
.trn-feed-qopt.is-right { background: var(--ds-success-700); border-color: var(--ds-success); }
.trn-feed-qopt.is-right .trn-feed-qmark { background: var(--ds-success); border-color: var(--ds-success); }
.trn-feed-qopt.is-right .trn-feed-qcheck { display: block; }
.trn-feed-qopt.is-right .trn-feed-qtag { color: var(--ds-on-primary); }
.trn-feed-qopt.is-ko { background: var(--ds-danger-700); border-color: var(--ds-danger); }
.trn-feed-qopt.is-ko .trn-feed-qmark { background: var(--ds-danger); border-color: var(--ds-danger); }
.trn-feed-qopt.is-ko .trn-feed-qcross { display: block; }
.trn-feed-qopt.is-ko .trn-feed-qtag { color: var(--ds-on-primary); }

.trn-feed-fb {
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .08);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.trn-feed-fb-title { font-size: 17px; font-weight: 700; }
.trn-feed-fb-text { font-size: 15px; line-height: 1.5; color: var(--ds-ink-300); }

/* Ressource. */
.trn-feed-res {
  background: var(--ds-surface);
  color: var(--ds-ink-800);
  border-radius: var(--ds-r-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  flex: none;
}

.trn-feed-res-cover {
  height: 190px;
  display: grid;
  place-items: center;
  background: var(--ds-primary-50);
}

.trn-feed-res-cover svg { opacity: .28; }
.trn-feed-res-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; }
.trn-feed-res-title { font-size: 18px; font-weight: 700; line-height: 1.3; }
.trn-feed-res-meta { font-size: 14px; color: var(--ds-ink-500); }

.trn-feed-res-btn {
  box-sizing: border-box;
  min-height: 42px;
  border-radius: var(--ds-r-sm);
  border: 1px solid var(--ds-line-strong);
  background: var(--ds-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--ds-fs-body);
  font-weight: var(--ds-fw-semi);
  margin-top: 6px;
  color: var(--ds-ink-800);
  text-decoration: none;
}

.trn-feed-res-note { font-size: 14px; color: var(--ds-ink-300); line-height: 1.5; }

/* Barre du bas. */
.trn-feed-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 10px 16px calc(20px + env(safe-area-inset-bottom, 0px));
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 5;
}

.trn-feed-bar [hidden] { display: none !important; }
.trn-feed-spacer { flex: 1; }

.trn-feed-prev,
.trn-feed-skip {
  height: 48px;
  padding: 0 8px;
  display: flex;
  align-items: center;
  background: none;
  border: 0;
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  color: var(--ds-line-strong);
}

.trn-feed-prev.is-disabled { color: var(--ds-ink-500); }
.trn-feed-skip { text-decoration: underline; }
.trn-feed-locked { height: 48px; padding: 0 8px; display: flex; align-items: center; font-size: 14px; font-weight: 600; color: var(--ds-ink-400); }

.trn-feed-cta {
  box-sizing: border-box;
  min-width: 0;
  min-height: 42px;
  max-width: 100%;
  padding: 0 var(--ds-s4);
  border-radius: var(--ds-r-sm);
  border: 0;
  background: var(--ds-primary-500);
  color: var(--ds-on-primary);
  font-size: var(--ds-fs-h4);
  font-weight: var(--ds-fw-semi);
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: normal;
  overflow-wrap: anywhere;
  text-align: center;
  text-decoration: none;
}

.trn-feed-toast {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 96px;
  margin: 0;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(0, 0, 0, .78);
  font-size: 14px;
  text-align: center;
  z-index: 30;
}

/* Feuilles. */
.trn-feed-sheetwrap { position: absolute; inset: 0; z-index: 20; }
.trn-feed-sheetwrap[hidden] { display: none; }
.trn-feed-scrim { position: absolute; inset: 0; background: rgba(27, 42, 59, .5); }
.trn-feed-scrim.is-dark { background: rgba(27, 42, 59, .6); }

.trn-feed-sheet {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  max-height: 80%;
  overflow-y: auto;
  box-sizing: border-box;
  background: var(--ds-surface);
  color: var(--ds-ink-800);
  border-radius: var(--ds-r-lg) var(--ds-r-lg) 0 0;
  padding: var(--ds-s2) var(--ds-s4) var(--ds-s6);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.trn-feed-sheet.is-tall { max-height: min(560px, 88dvh); gap: var(--ds-s2); padding: var(--ds-s2) var(--ds-s5) var(--ds-s6); }
.trn-feed-grip { width: 40px; height: 5px; border-radius: 3px; background: var(--ds-ink-300); align-self: center; margin-bottom: 6px; flex: none; }
.trn-feed-sheet-head { display: flex; align-items: center; padding-left: 4px; flex: none; }
.trn-feed-sheet-title { flex: 1; margin: 0; font-size: 19px; font-weight: 700; }
.trn-feed-sheet-title.is-lg { font-size: 18px; }

.trn-feed-sheet-close {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  background: none;
  border: 0;
  color: var(--ds-ink-800);
}

.trn-feed-sheet-body { min-height: 0; flex: 1 1 auto; font-size: var(--ds-fs-h4); line-height: var(--ds-lh-normal); overflow-y: auto; }
.trn-feed-sheet-body p { margin: 0 0 8px; }
.trn-feed-sheet-body :where(img, video, iframe) { max-width: 100%; height: auto; }
.trn-feed-sheet-body :where(p, li, a) { overflow-wrap: anywhere; }

.trn-feed-ressrc {
  display: flex;
  flex-direction: column;
  gap: var(--ds-s2);
  margin: 0;
  padding: 0;
  list-style: none;
}

.trn-feed-ressrc li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--ds-s3);
  min-height: 48px;
  padding: var(--ds-s2) 0;
  border-bottom: 1px solid var(--ds-line-soft);
}

.trn-feed-ressrc-link {
  flex: 1 1 auto;
  min-width: 0;
  color: var(--ds-ink-800);
  font-weight: var(--ds-fw-semi);
  text-decoration: none;
  overflow-wrap: anywhere;
}

.trn-feed-ressrc-link:hover { color: var(--ds-primary-700); text-decoration: underline; }
.trn-feed-ressrc-kind { flex: 0 0 auto; padding: 4px 8px; border-radius: var(--ds-r-pill); background: var(--ds-info-surf); color: var(--ds-info-700); font-size: var(--ds-fs-xs); font-weight: var(--ds-fw-semi); }

.trn-feed-sheet-btn {
  min-height: 42px;
  border-radius: var(--ds-r-sm);
  border: 1px solid var(--ds-line-strong);
  background: var(--ds-surface);
  color: var(--ds-ink-800);
  font-size: var(--ds-fs-body);
  font-weight: var(--ds-fw-semi);
  flex: none;
}

.trn-feed-sheet-note { margin: 0; padding-top: 10px; font-size: 13px; color: var(--ds-ink-500); line-height: 1.5; }

.trn-feed-plan-row {
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 8px;
  border-radius: 10px;
  border: 0;
  background: transparent;
  text-align: left;
  color: var(--ds-ink-800);
}

.trn-feed-plan-row.is-current { background: var(--ds-primary-50); }
.trn-feed-plan-row.is-quiz { min-height: 64px; text-decoration: none; }
.trn-feed-plan-row.is-quiz.is-locked { color: var(--ds-ink-500); cursor: default; }
.trn-feed-plan-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: var(--ds-s1); }
.trn-feed-plan-sub { font-size: var(--ds-fs-xs); color: var(--ds-ink-500); overflow-wrap: anywhere; }
.trn-feed-plan-n { width: 22px; font-size: 13px; font-weight: 700; color: var(--ds-ink-500); }
.trn-feed-plan-label { flex: 1; font-size: 15px; font-weight: 500; }
.trn-feed-plan-row.is-current .trn-feed-plan-label { font-weight: 700; }
.trn-feed-plan-st { font-size: 13px; font-weight: 700; color: var(--ds-success); }
.trn-feed-plan-st.is-current { color: var(--ds-primary-700); }

.trn-feed-lang-row {
  min-height: 56px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 6px 0;
  border-bottom: 1px solid var(--ds-line-soft);
  color: var(--ds-ink-800);
  text-decoration: none;
}

.trn-feed-radio {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  flex: none;
  display: grid;
  place-items: center;
  border: 2px solid var(--ds-ink-400);
}

.trn-feed-radio.is-on { border-color: var(--ds-primary-500); }
.trn-feed-radio-dot { width: 12px; height: 12px; border-radius: 50%; background: transparent; }
.trn-feed-radio.is-on .trn-feed-radio-dot { background: var(--ds-primary-500); }
.trn-feed-lang-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.trn-feed-lang-name { font-size: 16px; font-weight: 500; }
.trn-feed-lang-name.is-on { font-weight: 700; }
.trn-feed-lang-sub { font-size: 14px; color: var(--ds-ink-500); }

/* Module bloqué ou vide. */
.trn-feed-locked-screen { display: flex; flex-direction: column; }
.trn-feed-locked-screen .trn-feed-quit { position: absolute; top: var(--feed-top); left: 0; }

.trn-feed-locked-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  padding: 0 24px;
}

.trn-feed-locked-body h1,
.trn-feed-locked-body p { margin: 0; }
.trn-feed-cta.is-link { align-self: stretch; margin-top: 12px; }

/* ---------- Sommaire d'une formation en capsules (M26) ---------- */
.trn-l-fil-modlabel { margin: -4px 0 0; font-size: 15px; font-weight: 700; }
.ds-callout.trn-l-catchup { grid-template-columns: minmax(0, 1fr); gap: 4px; }
.trn-l-screen .trn-l-catchup { margin-top: 12px; }
.trn-l-catchup .ct { font-size: 15px; margin: 0; }
.trn-l-catchup .text { margin: 0; }
.trn-l-catchup .trn-l-btn { margin-top: 8px; }
.trn-l-fil-list { display: flex; flex-direction: column; margin-top: 6px; }
.trn-l-fil-mod { border-top: 1px solid var(--ds-line-soft); padding: 14px 0; display: flex; flex-direction: column; gap: 10px; }
.trn-l-fil-row { display: flex; gap: 12px; align-items: flex-start; color: inherit; text-decoration: none; }

.trn-l-fil-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--ds-ink-800);
  color: var(--ds-on-primary);
  display: grid;
  place-items: center;
  flex: none;
}

.trn-l-fil-text { flex: 1; min-width: 0; }
.trn-l-fil-title { margin: 0; font-size: 16px; font-weight: 700; line-height: 1.35; }
.trn-l-fil-status { margin: 0; font-size: 14px; font-weight: 700; color: var(--ds-ink-500); }
.trn-l-fil-status.is-done { color: var(--ds-success); }
.trn-l-fil-status.is-progress { color: var(--ds-primary-700); }
.trn-l-fil-sub { margin: 0; font-size: 14px; color: var(--ds-ink-500); }
.trn-l-fil-chevron { flex: none; color: var(--ds-ink-500); }

.trn-l-fil-btn {
  box-sizing: border-box;
  height: 48px;
  border-radius: 999px;
  border: 1.5px solid var(--ds-ink-400);
  background: var(--ds-surface);
  color: var(--ds-ink-800);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
}

.trn-l-fil-quiz {
  display: flex;
  align-items: center;
  gap: var(--ds-s3);
  min-width: 0;
  padding: var(--ds-s3);
  border: 1px solid var(--ds-line-strong);
  border-radius: var(--ds-r-md);
  background: var(--ds-surface-muted);
}
.trn-l-fil-quiz-icon,
.trn-l-fil-quiz-check,
.trn-l-fil-quiz-lock {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: var(--ds-r-sm);
  background: var(--ds-primary-50);
  color: var(--ds-primary-700);
  font-size: var(--ds-fs-h4);
  font-weight: var(--ds-fw-bold);
}
.trn-l-fil-quiz-info { display: flex; flex: 1 1 auto; flex-direction: column; min-width: 0; gap: var(--ds-s1); }
.trn-l-fil-quiz-info .trn-l-fil-title { font-size: var(--ds-fs-body); }
.trn-l-fil-quiz-btn { flex: 0 0 auto; display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--ds-s2); border-radius: var(--ds-r-sm); color: var(--ds-primary-700); font-size: var(--ds-fs-sm); font-weight: var(--ds-fw-bold); text-decoration: underline; }
.trn-l-fil-quiz-btn:focus-visible { outline: none; box-shadow: var(--ds-focus); }
.trn-l-fil-quiz-check { background: var(--ds-success-surf); color: var(--ds-success); }
.trn-l-fil-quiz-lock { background: var(--ds-surface-sunken); color: var(--ds-ink-500); font-size: var(--ds-fs-xs); }

/* ---------- Dashboard : rangée « Formats courts » (M20) ---------- */
.ed-short { padding: 4px 0 0; }
.ed-short-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ed-short-title-row { display: flex; align-items: center; gap: 8px; }
.ed-short-title { font-size: 16px; font-weight: 700; color: var(--ds-ink-800); }

.ed-short-badge,
.trn-pp-short-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 24px;
  padding: 0 9px;
  border-radius: 30px;
  background: var(--ds-info-surf);
  color: var(--ds-ink-800);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.ed-short-all { font-size: 13px; font-weight: 700; text-decoration: underline; min-height: 40px; display: flex; align-items: center; color: var(--ds-ink-800); }
.ed-short-sub { margin: 0; font-size: 12px; color: var(--ds-ink-500); }
.ed-short-tiles { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; margin-top: 10px; padding-bottom: 4px; }

.ed-short-tile {
  width: 112px;
  height: 199px;
  flex: none;
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  background: var(--ds-ink-800);
  color: var(--ds-on-primary);
  text-decoration: none;
}

.ed-short-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ed-short-shade { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0, 0, 0, .78) 0%, rgba(0, 0, 0, 0) 60%); }

.ed-short-n,
.ed-short-seen {
  position: absolute;
  top: 8px;
  padding: 1px 7px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 700;
}

.ed-short-n { left: 8px; background: rgba(0, 0, 0, .6); color: var(--ds-on-primary); }
.ed-short-seen { right: 8px; background: var(--ds-surface); color: var(--ds-success-700); }
.ed-short-cap { position: absolute; left: 8px; right: 8px; bottom: 8px; font-size: 12px; font-weight: 700; line-height: 1.3; }
.ed-short-dur { display: block; font-size: 11px; font-weight: 600; }

/* ---------- Page publique : « Aussi en format court » (M11) ---------- */
.trn-pp-short {
  display: flex;
  gap: var(--ds-s3);
  align-items: stretch;
  border: 1px solid var(--ds-line-strong);
  border-radius: var(--ds-r-lg);
  padding: var(--ds-s3);
  color: var(--ds-ink-800);
  background: var(--ds-surface);
  text-decoration: none;
}
.trn-pp-short:hover { border-color: var(--ds-primary-300); background: var(--ds-surface-muted); }
.trn-pp-short:focus-visible { outline: none; box-shadow: var(--ds-focus); }
.trn-pp-short-badge { background: var(--ds-primary-50); color: var(--ds-primary-700); }

.trn-pp-short-thumb {
  width: 72px;
  height: 128px;
  border-radius: var(--ds-r-md);
  overflow: hidden;
  position: relative;
  flex: none;
  background: var(--ds-ink-800);
  display: grid;
  place-items: center;
}

.trn-pp-short-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.trn-pp-short-play {
  position: relative;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--ds-surface);
  color: var(--ds-ink-800);
  display: grid;
  place-items: center;
}

.trn-pp-short-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: var(--ds-s1); }
.trn-pp-short-tags { display: flex; }
.trn-pp-short-title { margin: 0; font-size: var(--ds-fs-h4); font-weight: var(--ds-fw-bold); line-height: var(--ds-lh-snug); }
.trn-pp-short-desc { margin: 0; font-size: var(--ds-fs-sm); color: var(--ds-ink-500); line-height: var(--ds-lh-normal); }
.trn-pp-short-link { margin-top: auto; min-height: 32px; display: flex; align-items: center; font-size: var(--ds-fs-sm); font-weight: var(--ds-fw-bold); color: var(--ds-primary-700); text-decoration: underline; }

/* Sommaire du format court : la barre, le libellé et la liste des modules gardent la marge de la colonne
   (ils sortaient de l'en-tête et collaient au bord de la carte). */
.trn-l-screen > .trn-l-progress { width: auto; margin: 0 20px; }
.trn-l-screen > .trn-l-fil-modlabel { margin: 8px 20px 0; }
.trn-l-screen > .trn-l-fil-list { padding: 0 20px; }
