
main.wide { max-width: 1120px; }

.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; margin: 22px 0 6px; }
.facts div { padding: 12px 14px; border-radius: 14px; background: var(--glass-strong); border: 1px solid var(--edge); }
.facts dt { font-size: 12.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); }
.facts dd { margin: 2px 0 0; font-weight: 600; font-size: 18px; }

/* ---- Filtres ---- */
.filters { position: sticky; top: 0; z-index: 5; margin: 22px 0 8px; padding: 14px; border-radius: 18px;
  background: color-mix(in srgb, var(--bg-1) 88%, transparent); backdrop-filter: blur(14px); border: 1px solid var(--edge); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.chip { padding: 6px 13px; border-radius: 999px; border: 1px solid var(--edge); background: var(--glass); color: var(--ink-2);
  font: inherit; font-size: 14px; cursor: pointer; }
.chip.is-on { color: #fff; border-color: transparent; background: linear-gradient(120deg, var(--a1), var(--a2), var(--a3)); }

/* ---- Niveaux et cartes ---- */

.ex-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.ex-grid-3 { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.ex-card { display: flex; flex-direction: column; border-radius: 18px; overflow: hidden; text-decoration: none; color: var(--ink);
  background: var(--glass); border: 1px solid var(--edge); transition: transform .15s, border-color .15s; }
.ex-card:hover { transform: translateY(-2px); border-color: var(--a2); }
.ex-card[hidden] { display: none; }
.thumb { position: relative; display: block; aspect-ratio: 16 / 9; background: #000; overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.play { position: absolute; right: 10px; top: 10px; width: 34px; height: 34px; border-radius: 50%;
  background: rgba(0, 0, 0, .55); backdrop-filter: blur(6px); }
.play::after { content: ""; position: absolute; left: 13px; top: 10px; border-left: 12px solid #fff;
  border-top: 7px solid transparent; border-bottom: 7px solid transparent; }
.ex-body { display: flex; flex-direction: column; gap: 3px; padding: 12px 14px 14px; flex: 1; }
.ex-name { font-weight: 600; font-size: 16.5px; line-height: 1.3; }
.ex-en { font-size: 13px; color: var(--ink-3); }
.ex-sum { font-size: 14.5px; line-height: 1.45; color: var(--ink-2); margin-top: 4px; }
.tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: auto; padding-top: 10px; list-style: none; padding-left: 0; }
.tag { font-size: 12.5px; padding: 3px 9px; border-radius: 999px; background: var(--glass-strong); color: var(--ink-2); }
.tag-video { color: #fff; background: var(--a2); }
.tags-lg .tag { font-size: 14.5px; padding: 6px 13px; }

/* ---- Fiche exercice ---- */
.kicker { margin: 0; font-size: 13.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--a1); font-weight: 600; }
.h1-en { display: block; font-family: var(--font-ui); font-weight: 500; font-size: .5em; color: var(--ink-3); margin-top: 4px; }
.lead { font-size: 18.5px; color: var(--ink-2); }
.toc { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 8px; }
.toc a { font-size: 14px; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--edge); text-decoration: none; color: var(--ink-2); }

.steps { list-style: none; counter-reset: s; padding: 0; }
.steps li { counter-increment: s; position: relative; padding: 4px 0 14px 50px; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; font-family: var(--font-display); font-size: 14px; color: #fff;
  background: linear-gradient(120deg, var(--a1), var(--a2), var(--a3)); }

.cues { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.cues li { padding: 8px 14px; border-radius: 14px; background: var(--glass-strong); border: 1px solid var(--edge); font-weight: 500; }
.cues li::before { content: "« "; color: var(--a2); }
.cues li::after { content: " »"; color: var(--a2); }

.timeline { list-style: none; padding: 0; border-left: 2px solid var(--edge); margin-left: 8px; }
.timeline li { position: relative; padding: 0 0 16px 22px; display: flex; flex-direction: column; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: 8px; width: 12px; height: 12px; border-radius: 50%; background: var(--ink-3); }
.timeline li.is-test::before { background: var(--a2); box-shadow: 0 0 0 4px rgba(226, 70, 153, .25); }
.t-dose { font-family: var(--font-display); font-size: 15px; }
.timeline span:last-child { color: var(--ink-2); font-size: 15.5px; }

.author-note { margin: 18px 0 8px; padding: 16px 18px; border-radius: 16px; border-left: 3px solid var(--a1); background: var(--glass-strong); }
.author-note p { margin: 0 0 6px; }
.note-title { font-weight: 600; }
@media (min-width: 640px) { .prev-next { grid-template-columns: 1fr 1fr; } }

/* ---- Ouvrir dans l'app ---- */
.open-app { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 4px 0 18px; }
.coach { margin: 30px 0 10px; padding: clamp(18px, 4vw, 28px); border-radius: 20px; background: var(--glass-strong); border: 1px solid var(--edge); }
.coach h2 { margin-top: 0; }
.coach-quote { font-family: var(--font-display); font-size: 20px; margin: 10px 0 18px;
  background: linear-gradient(120deg, var(--a1), var(--a2), var(--a3)); -webkit-background-clip: text; background-clip: text; color: transparent; }

.draft-banner { margin: 0 0 14px; padding: 6px 12px; border-radius: 999px; display: inline-block;
  font-size: 13px; border: 1px dashed var(--a1); color: var(--a1); }
.filters + .ex-grid { margin-top: 18px; }
