:root {
  --pink: #ED1E79; --pink-dark: #c9125f; --pink-soft: #fde7f0;
  --blue: #6078C0; --blue-soft: #e9edf8;
  --ink: #2F2F2F; --muted: #6b6b76; --line: #e6e6ea; --bg: #f6f6f8; --card: #fff;
  --ok: #2e9e5b; --ok-soft: #e4f6ea; --warn: #b7791f; --warn-soft: #fff4dd;
  --radius: 14px; --shadow: 0 2px 10px rgba(30,30,50,.06);
  --font-head: "Outfit", system-ui, sans-serif; --font-body: "Inter", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font-body); color: var(--ink); background: var(--bg); line-height: 1.55; display: flex; flex-direction: column; min-height: 100vh; }
a { color: var(--pink-dark); }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(1.7rem, 4vw, 2.5rem); font-weight: 800; }
h2 { font-size: clamp(1.3rem, 3vw, 1.7rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 700; }
h4 { font-size: 1rem; font-weight: 700; color: var(--pink-dark); margin-top: 1.2em; }
p { margin: 0 0 .9em; }
ul { padding-left: 1.2em; margin: 0 0 .9em; }
li { margin-bottom: .3em; }
img { max-width: 100%; }

/* ---- barre ---- */
.topbar { background: var(--pink); color: #fff; display: flex; align-items: center; justify-content: space-between; padding: 0 16px; height: 64px; position: sticky; top: 0; z-index: 20; box-shadow: 0 2px 12px rgba(237,30,121,.3); }
.brand { display: flex; align-items: baseline; gap: 4px; color: #fff; text-decoration: none; font-family: var(--font-head); line-height: 1; }
.brand-logo { height: 54px; width: auto; display: block; }
.brand-leaf { width: 22px; height: 22px; align-self: center; margin-right: 4px; }
.brand-moovin { font-weight: 500; font-size: 1.5rem; letter-spacing: -.02em; }
.brand-canada { font-weight: 800; font-size: 1.05rem; letter-spacing: .14em; }
.topnav { display: flex; gap: 6px; align-items: center; }
.topnav a, .topnav button { color: var(--pink-dark); text-decoration: none; font-weight: 700; font-size: .9rem; padding: 8px 14px; border-radius: 999px; background: #fff; border: 0; cursor: pointer; font-family: inherit; transition: opacity .15s; }
.topnav a:hover, .topnav button:hover { opacity: .75; }
.topnav .avatar { width: 34px; height: 34px; border-radius: 50%; background: #fff; color: var(--pink); display: grid; place-items: center; font-weight: 800; font-family: var(--font-head); }

/* ---- layout ---- */
.app { flex: 1; width: 100%; max-width: 1100px; margin: 0 auto; padding: 24px 16px 60px; }
.footer { border-top: 1px solid var(--line); padding: 18px 16px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; color: var(--muted); font-size: .85rem; }
.footer a { color: var(--muted); }
.loading { color: var(--muted); padding: 40px; text-align: center; }
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; }
.grid { display: grid; gap: 18px; }
.grid > * { min-width: 0; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.muted { color: var(--muted); }
.small { font-size: .86rem; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.spread { justify-content: space-between; }
.mt { margin-top: 18px; } .mb { margin-bottom: 18px; }

/* ---- boutons ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 18px; border-radius: 999px; border: 0; cursor: pointer; font: 600 .95rem var(--font-body); text-decoration: none; transition: transform .08s, box-shadow .15s; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--pink); color: #fff; box-shadow: 0 4px 14px rgba(237,30,121,.3); }
.btn-primary:hover { background: var(--pink-dark); }
.btn-secondary { background: var(--blue); color: #fff; }
.btn-ghost { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-sm { padding: 7px 12px; font-size: .85rem; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn-block { width: 100%; }

/* ---- formulaires ---- */
.form { display: grid; gap: 12px; max-width: 460px; }
.field label { display: block; font-weight: 600; font-size: .88rem; margin-bottom: 4px; }
.field input, .field select, .field textarea { width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; font: inherit; background: #fff; }
.field input:focus, .field select:focus { outline: 2px solid var(--blue); border-color: transparent; }
.error { background: #fdecef; color: #9f1239; padding: 10px 12px; border-radius: 10px; font-size: .9rem; }
.notice { background: var(--blue-soft); color: #2f3f7a; padding: 10px 12px; border-radius: 10px; font-size: .9rem; }
.auth { max-width: 460px; margin: 20px auto; }

/* ---- accueil ---- */
.hero { background: linear-gradient(135deg, var(--pink) 0%, #f24c93 60%, var(--blue) 140%); color: #fff; border-radius: 22px; padding: clamp(28px, 5vw, 56px); margin-bottom: 26px; position: relative; overflow: hidden; }
.hero h1 { color: #fff; max-width: 640px; }
.hero p { max-width: 560px; font-size: 1.05rem; opacity: .95; }
.hero .btn-primary { background: #fff; color: var(--pink-dark); box-shadow: none; }
.hero-leaf { position: absolute; right: -30px; bottom: -40px; width: 260px; opacity: .14; }
.course-card { display: flex; flex-direction: column; gap: 10px; }
.course-card .tag { align-self: flex-start; }
.course-card h2 { margin-bottom: 0; }
.course-card .cta { margin-top: auto; padding-top: 8px; }
.tag { display: inline-block; font-size: .75rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; background: var(--pink-soft); color: var(--pink-dark); }
.tag-blue { background: var(--blue-soft); color: #3a4c9a; }
.tag-ok { background: var(--ok-soft); color: #1f6f40; }
.tag-grey { background: #eceef2; color: var(--muted); }

/* ---- progression ---- */
.progress { height: 10px; background: #e9e9ee; border-radius: 999px; overflow: hidden; }
.progress > span { display: block; height: 100%; background: linear-gradient(90deg, var(--pink), var(--blue)); border-radius: 999px; transition: width .4s; }

/* ---- page cours ---- */
.course-head { display: grid; gap: 14px; grid-template-columns: 1fr; margin-bottom: 22px; }
@media (min-width: 760px) { .course-head { grid-template-columns: 1fr 320px; align-items: start; } }
.module { margin-bottom: 14px; }
.module-head { display: flex; align-items: center; gap: 12px; cursor: pointer; padding: 6px 0; }
.module-num { width: 38px; height: 38px; border-radius: 10px; background: var(--pink); color: #fff; display: grid; place-items: center; font: 800 1rem var(--font-head); flex: none; }
.module.locked .module-num { background: #c9c9d1; }
.module-head h3 { margin: 0; flex: 1; }
.module-head .meta { font-size: .82rem; color: var(--muted); white-space: nowrap; }
.module.closed .lessons, .module.closed > p { display: none; }
.module-head::after { content: "⌄"; color: var(--muted); font-size: 1.2rem; transition: .2s; }
.module.closed .module-head::after { transform: rotate(-90deg); }
.lessons { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 6px; }
.lesson { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; background: var(--bg); text-decoration: none; color: var(--ink); border: 1px solid transparent; }
.lesson:hover { border-color: var(--line); background: #fff; }
.lesson .thumb { width: 72px; height: 44px; border-radius: 6px; object-fit: cover; flex: none; background: #ddd; }
.lesson .title { flex: 1; font-weight: 500; font-size: .95rem; }
.lesson .state { font-size: .8rem; color: var(--muted); white-space: nowrap; }
.lesson.done .state { color: var(--ok); font-weight: 600; }
.lesson.blocked { opacity: .62; }
.lesson.paid-locked { position: relative; }
.lesson.paid-locked .thumb { filter: grayscale(.6); }
.lock { width: 16px; height: 16px; fill: var(--muted); }
.unlock-box { background: linear-gradient(135deg, var(--pink-soft), var(--blue-soft)); border-radius: var(--radius); padding: 20px; }

/* ---- leçon ---- */
.lesson-layout { display: grid; gap: 22px; grid-template-columns: 1fr; grid-template-areas: "main" "side" "left"; }
.lesson-main { grid-area: main; min-width: 0; } .lesson-left { grid-area: left; } .lesson-side { grid-area: side; }
@media (min-width: 980px) { .lesson-layout { grid-template-columns: 1fr 300px; grid-template-areas: "main side" "left side"; } }
@media (min-width: 1200px) { .app { max-width: 1280px; } .lesson-layout { grid-template-columns: 230px 1fr 290px; grid-template-areas: "left main side"; } .lesson-left .card { position: sticky; top: 80px; } }
.player { position: relative; padding-top: 56.25%; background: #000; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.player iframe, .player-lock, .player-soon { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player-soon { display: grid; place-items: center; text-align: center; padding: 24px; color: #fff; background: linear-gradient(rgba(20,22,40,.55), rgba(20,22,40,.75)), var(--thumb) center/cover; }
.player-soon p { margin: 10px 0 0; font-size: .95rem; opacity: .9; }
.player-lock { display: grid; place-items: center; text-align: center; color: #fff; background: linear-gradient(180deg, rgba(0,0,0,.35), rgba(0,0,0,.8)), var(--thumb) center/cover; padding: 20px; }
.player-lock .lock { fill: #fff; width: 40px; height: 40px; }
.lesson-nav { display: flex; justify-content: space-between; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.section { margin-top: 22px; }
.section h2 { color: var(--pink); font-size: 1.25rem; border-bottom: 2px solid var(--pink-soft); padding-bottom: 6px; }
.link-list { list-style: none; padding: 0; display: grid; gap: 8px; }
.link-list a { display: flex; gap: 10px; align-items: center; padding: 10px 12px; background: var(--bg); border-radius: 10px; text-decoration: none; color: var(--ink); font-weight: 500; font-size: .92rem; }
.link-list a:hover { background: var(--blue-soft); }
.link-list a::before { content: "↗"; color: var(--blue); font-weight: 700; }
.side-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; max-height: 70vh; overflow: auto; }
.side-list a { display: flex; gap: 8px; align-items: center; padding: 8px 10px; border-radius: 8px; text-decoration: none; color: var(--ink); font-size: .88rem; }
.side-list a.current { background: var(--pink-soft); font-weight: 600; }
.side-list a.done::before { content: "✓"; color: var(--ok); font-weight: 700; }
.side-list a.todo::before { content: "○"; color: #bbb; }
.side-list a.lockd::before { content: "🔒"; font-size: .75rem; }
.side-list .mod { font: 700 .78rem var(--font-head); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 10px 10px 2px; }
.disclaimer { background: var(--warn-soft); border-left: 4px solid var(--warn); padding: 10px 14px; border-radius: 8px; }

/* ---- quiz ---- */
.quiz-q { margin-bottom: 18px; }
.quiz-q .q { font-weight: 600; margin-bottom: 8px; }
.quiz-q label { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 6px; cursor: pointer; background: #fff; }
.quiz-q label:hover { border-color: var(--blue); }
.quiz-q label.good { border-color: var(--ok); background: var(--ok-soft); }
.quiz-q label.bad { border-color: #e05a5a; background: #fdecec; }
.quiz-q input { margin-top: 3px; }
.badge-big { font-size: 2.6rem; }

/* ---- admin ---- */
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 18px; }
.tabs a { padding: 8px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 600; font-size: .9rem; }
.tabs a.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.stat { background: #fff; border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); }
.stat b { display: block; font: 800 1.8rem var(--font-head); color: var(--pink); }
.table { width: 100%; border-collapse: collapse; font-size: .88rem; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.table th, .table td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { background: var(--bg); font-weight: 700; font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.table-wrap { overflow: auto; }
.mini { height: 6px; width: 90px; }
code.copy { background: var(--bg); padding: 4px 8px; border-radius: 6px; font-size: .82rem; cursor: pointer; word-break: break-all; }

/* ---- toast ---- */
.toast { position: fixed; bottom: 20px; left: 50%; transform: translate(-50%, 20px); background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; opacity: 0; pointer-events: none; transition: .25s; font-size: .9rem; max-width: 90vw; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 600px) {
  .topbar { padding: 0 12px; }
  .topnav a.hide-sm { display: none; }
  .card { padding: 16px; }
  .lesson .thumb { width: 56px; height: 36px; }
  .lesson .state { display: none; }
}

/* ===== refonte v2 : cartes photos, modules, bandeau ===== */
.hero { background: linear-gradient(120deg, var(--pink) 0%, #f24c93 70%, #b84f9c 140%); }
.hero-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.pill { display: inline-flex; align-items: center; gap: 4px; font-size: .75rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--pink-soft); color: var(--pink-dark); white-space: nowrap; }
.pill-blue { background: var(--blue-soft); color: #3a4c9a; }
.pill-ok { background: var(--ok-soft); color: #1f6f40; }
.pill-grey { background: #eceef2; color: var(--muted); }
.pill-lock { background: #f1f1f4; color: var(--muted); }
.pill-lock .lock { width: 12px; height: 12px; }
.pill-white { background: rgba(255,255,255,.9); color: var(--pink-dark); }

.ccard { background: #fff; border-radius: 18px; box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; transition: transform .15s, box-shadow .15s; }
.ccard:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(30,30,50,.1); }
.ccard-img { display: block; aspect-ratio: 16/8; background: #ddd center/cover; position: relative; }
.ccard-img .pill { position: absolute; top: 12px; left: 12px; }
.ccard-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; }
.ccard-body h2 { margin: 0; font-size: 1.3rem; }
.ccard-body .row { margin-top: auto; padding-top: 6px; }

.cover { border-radius: 22px; background: #333 center/cover; min-height: 260px; display: flex; align-items: flex-end; overflow: hidden; margin-bottom: 14px; }
.cover-in { width: 100%; padding: clamp(20px, 4vw, 40px); background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(20,10,30,.78) 100%); color: #fff; }
.cover-in h1 { color: #fff; margin: 8px 0 4px; }
.cover-in p { margin: 0; max-width: 620px; opacity: .92; }
.action-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; background: #fff; border-radius: 14px; padding: 14px 18px; box-shadow: var(--shadow); margin-bottom: 14px; position: sticky; top: 72px; z-index: 5; }
.action-progress { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 160px; }
.action-progress .progress { flex: 1; }
.upsell { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; background: linear-gradient(135deg, var(--pink-soft), var(--blue-soft)); border-radius: 14px; padding: 12px 18px; margin-bottom: 18px; }
.upsell > div { display: flex; flex-direction: column; }

.mcard { background: #fff; border-radius: 16px; box-shadow: var(--shadow); margin-bottom: 12px; overflow: hidden; }
.mcard-head { display: flex; align-items: center; gap: 14px; padding: 12px 14px; cursor: pointer; }
.mcard-head:hover { background: #fafafb; }
.mcard-img { width: 110px; height: 72px; border-radius: 10px; background: #ccc center/cover; flex: none; position: relative; }
.mcard-img .mnum { position: absolute; left: 8px; bottom: 8px; background: var(--pink); color: #fff; font: 800 .85rem var(--font-head); width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center; }
.mcard.locked .mcard-img { filter: grayscale(.5) brightness(.9); }
.mcard.locked .mnum { background: #9a9aa6; }
.mcard-info { flex: 1; min-width: 0; }
.mcard-info h3 { margin: 0 0 2px; font-size: 1.05rem; }
.mcard-info p { margin: 0 0 4px; }
.mcard-info .progress.mini { width: 160px; max-width: 100%; }
.mcard-right { display: flex; align-items: center; gap: 10px; flex: none; }
.chev { color: var(--muted); font-size: 1.3rem; transition: transform .2s; display: inline-block; }
.mcard.closed .chev { transform: rotate(-90deg); }
.mcard.closed .lessons { display: none; }
.mcard .lessons { margin: 0; padding: 4px 14px 14px; gap: 4px; }
.mcard .lesson { background: #fff; border: 1px solid var(--line); padding: 9px 12px; }
.mcard .lesson:hover { border-color: var(--blue); background: var(--blue-soft); }
.mcard .lesson .state { width: 22px; text-align: center; color: var(--muted); display: inline-flex; justify-content: center; }
.mcard .lesson.done .state { color: var(--ok); font-weight: 800; }
.mcard .lesson.done .title { color: var(--muted); }
.mcard .lesson .pill { margin-left: auto; }
@media (max-width: 600px) {
  .mcard-img { width: 72px; height: 54px; }
  .mcard-info .progress.mini { width: 100px; }
  .mcard-right .pill { font-size: .68rem; padding: 3px 7px; }
  .mcard-right .pill-lock .lock { display: none; }
  .action-bar { position: static; }
  .cover { min-height: 200px; }
}


/* ===== leçon v2 ===== */
.btn-lg { padding: 14px 24px; font-size: 1rem; }
.prev-link { color: var(--muted); font-size: .9rem; text-decoration: none; align-self: center; }
.prev-link:hover { color: var(--ink); }
.lesson-side { display: flex; flex-direction: column; gap: 14px; }
.lesson-side .card { position: sticky; top: 80px; }
.notice-box { margin-top: 32px; padding: 12px 0 0; border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; line-height: 1.5; }
.notice-box .notice-title { display: block; font: 700 .75rem var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.notice-box p { display: inline; margin: 0; } .notice-box p + p::before { content: " "; }
.notice-box br { display: none; }
.resources { background: var(--blue-soft); }
.resources-empty { opacity: .7; }
.resources .link-list a { font-size: .86rem; padding: 8px 10px; }
.resources h3 { margin-bottom: 10px; }
.resources .link-list a { background: #fff; }
.resources .link-list a.is-pdf::before { content: "PDF"; font-size: .7rem; font-weight: 800; color: #fff; background: var(--pink); padding: 2px 6px; border-radius: 5px; }
.side-list { max-height: none; overflow: visible; gap: 2px; }
.smod { list-style: none; border-top: 1px solid var(--line); }
.smod:first-child { border-top: 0; }
.smod-head { display: flex; align-items: center; gap: 10px; width: 100%; background: none; border: 0; padding: 10px 4px; cursor: pointer; font: inherit; text-align: left; color: var(--ink); }
.smod-num { width: 24px; height: 24px; border-radius: 7px; background: var(--pink-soft); color: var(--pink-dark); font: 800 .8rem var(--font-head); display: grid; place-items: center; flex: none; }
.smod-title { flex: 1; font-weight: 700; font-size: .9rem; line-height: 1.25; }
.smod-meta { font-size: .78rem; color: var(--muted); display: inline-flex; align-items: center; }
.smod-meta .lock { width: 13px; height: 13px; }
.smod ul { list-style: none; padding: 0 0 8px 8px; margin: 0; display: grid; gap: 2px; }
.smod.closed ul { display: none; }
.smod.open .smod-num { background: var(--pink); color: #fff; }


/* ===== thème v3 : doux, crème, rose en touches ===== */
:root { --bg: #f7f5f0; --line: #e9e5de; --ink: #23222a; --muted: #6f6c75; --dark: #1d1c24; --radius: 18px; --shadow: 0 1px 2px rgba(40,35,30,.04), 0 6px 20px rgba(40,35,30,.05); }
body { background: var(--bg); }
a { color: var(--ink); }
h4 { color: var(--ink); }
.topbar { background: #fff; color: var(--ink); border-bottom: 1px solid var(--line); box-shadow: none; height: 68px; }
.brand-logo { height: 46px; }
.topnav a, .topnav button { color: var(--ink); background: var(--bg); border: 1px solid var(--line); font-weight: 600; }
.topnav a:hover, .topnav button:hover { opacity: 1; background: #fff; border-color: var(--ink); }
.topnav .avatar { background: var(--pink); color: #fff; border: 0; }
.card, .ccard, .mcard, .action-bar, .stat, .table { border: 1px solid var(--line); box-shadow: var(--shadow); }
.btn-primary { background: var(--dark); color: #fff; box-shadow: none; }
.btn-primary:hover { background: #000; }
.btn-secondary { background: #fff; color: var(--ink); border: 1px solid var(--ink); }
.btn-secondary:hover { background: var(--ink); color: #fff; }
.btn-ghost { background: #fff; border-color: var(--line); }
.hero { background: #fff; color: var(--ink); border: 1px solid var(--line); box-shadow: var(--shadow); }
.hero h1 { color: var(--ink); }
.hero p { color: var(--muted); opacity: 1; }
.hero .btn-primary { background: var(--dark); color: #fff; }
.hero-ghost { color: var(--ink); border-color: var(--line); }
.progress { background: #ebe7e0; }
.progress > span { background: var(--pink); }
.pill { background: var(--pink-soft); color: var(--pink-dark); }
.pill-white { background: #fff; color: var(--ink); }
.ccard { border-radius: 20px; }
.ccard-img { aspect-ratio: 16/8; }
.ccard-logo { position: absolute; left: 14px; bottom: 12px; height: 40px; width: auto; filter: drop-shadow(0 1px 4px rgba(0,0,0,.45)); }
.ccard-img .pill { left: auto; right: 12px; }
.cover-logo { height: 56px; width: auto; display: block; margin-bottom: 10px; filter: drop-shadow(0 2px 6px rgba(0,0,0,.3)); }
.cover-in { background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(25,20,30,.78) 100%); }
.action-bar { top: 76px; }
.upsell { background: #fff; border: 1px dashed var(--line); }
.mcard-img .mnum { background: var(--pink); }
.mcard .lesson { border-color: var(--line); background: #fff; }
.mcard .lesson:hover { border-color: var(--ink); background: var(--bg); }
.mcard .lesson .state { color: var(--pink); }
.section h2 { color: var(--ink); border-bottom: 0; padding-bottom: 0; position: relative; padding-left: 14px; }
.section h2::before { content: ""; position: absolute; left: 0; top: .2em; bottom: .2em; width: 4px; border-radius: 4px; background: var(--pink); }
.link-list a { background: var(--bg); }
.link-list a:hover { background: #fff; border: 0; outline: 1px solid var(--line); }
.link-list a::before { color: var(--pink); }
.resources { background: #fff; }
.resources .link-list a { background: var(--bg); }
.side-list a.current { background: var(--pink-soft); }
.smod.open .smod-num { background: var(--pink); }
.player { border-radius: 18px; }
.player-lock { background: linear-gradient(160deg, rgba(237,30,121,.88) 0%, rgba(120,30,90,.9) 60%, rgba(30,25,40,.95) 100%), var(--thumb) center/cover; background-blend-mode: normal; }
.player-lock .btn-primary { background: #fff; color: var(--ink); }
.player-lock .btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.player-soon { background: linear-gradient(160deg, rgba(237,30,121,.85), rgba(40,30,60,.9)), var(--thumb) center/cover; }
.player-soon .pill { background: #fff; color: var(--pink-dark); }
.notice-box { border-top-color: var(--line); }
.field input:focus, .field select:focus { outline-color: var(--ink); }
.notice { background: var(--bg); color: var(--ink); border: 1px solid var(--line); }
.tabs a.active { background: var(--dark); border-color: var(--dark); }
.stat b { color: var(--ink); }
.table th { background: var(--bg); }
.toast { background: var(--dark); }
.footer { padding: 26px 16px 30px; background: #fff; border-top: 1px solid var(--line); display: block; }
.footer-in { max-width: 1100px; margin: 0 auto; display: grid; gap: 14px; }
.footer-partner { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.footer-logo { height: 26px; width: auto; }
.footer-meta { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; color: var(--muted); font-size: .85rem; }
@media (min-width: 1200px) { .footer-in { max-width: 1280px; } }
@media (max-width: 600px) { .brand-logo { height: 40px; } .ccard-logo { height: 34px; } .cover-logo { height: 50px; } }

/* header : Moovin Canada × Desjardins */
.brand { align-items: center; gap: 12px; }
.brand-x { color: #b9b4ab; font-size: 1.3rem; font-weight: 300; line-height: 1; }
.brand-partner { height: 22px; width: auto; display: block; }
@media (max-width: 600px) { .brand-x, .brand-partner { display: none; } }

/* pictos */
.picto { height: 1.1em; width: auto; vertical-align: -.18em; display: inline-block; }
.picto-lg { height: 1.15em; vertical-align: -.15em; margin-left: .1em; }
.picto-xl { height: 56px; display: block; margin-bottom: 14px; }
.h-picto { display: flex; align-items: center; gap: 10px; }
.mnum .picto, .smod-num .picto { height: 16px; vertical-align: middle; }
.pill .picto { height: 1.2em; }
.topnav .picto { height: 1.15em; margin-right: 4px; }
.mcard .lesson .state .picto { height: 18px; }
.badge-big .picto-xl { margin: 0 auto 14px; }
/* leçon : plus d'air autour de la colonne centrale */
@media (min-width: 1200px) { .lesson-layout { gap: 40px; grid-template-columns: 230px minmax(0, 1fr) 290px; } .lesson-main { padding: 0 16px; } }
@media (min-width: 980px) and (max-width: 1199px) { .lesson-layout { gap: 32px; } }
@media (min-width: 1200px) { .app { max-width: 1380px; } .lesson-layout { gap: 60px; grid-template-columns: 240px minmax(0, 1fr) 300px; } .lesson-main { padding: 0 24px; } }
.resources .link-list a.is-xlsx::before { content: "XLS"; font-size: .7rem; font-weight: 800; color: #fff; background: #1f6f40; padding: 2px 6px; border-radius: 5px; }

/* ---------- dossier candidat + espace équipe ---------- */
.btn-xs { padding: 4px 9px; font-size: .78rem; }
.nowrap { white-space: nowrap; }
.resources .link-list a.is-app::before { content: "APP"; font-size: .7rem; font-weight: 800; color: #fff; background: var(--ink); padding: 2px 6px; border-radius: 5px; }
.dossier-banner { display: flex; align-items: center; gap: 16px; margin-top: 22px; padding: 16px 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); box-shadow: var(--shadow); }
.dossier-banner > span:nth-child(2) { flex: 1; }
.dossier-banner:hover { border-color: var(--ink); }
.coach-box { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; padding: 12px 16px; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.coach-box .avatar, .avatar.big { width: 44px; height: 44px; border-radius: 50%; background: var(--pink); color: #fff; display: grid; place-items: center; font: 800 1.1rem var(--font-head); flex: none; }
.avatar.big { width: 64px; height: 64px; font-size: 1.6rem; }
.grid-dossier { align-items: start; }
.doc-list { list-style: none; padding: 0; margin: 8px 0 0; }
.doc-list li { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "name actions" "meta actions"; gap: 2px 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.doc-list li:last-child { border-bottom: 0; }
.doc-list li > a:first-child { grid-area: name; font-weight: 600; color: var(--ink); text-decoration: none; display: flex; align-items: center; gap: 8px; }
.doc-list li > a:first-child::before { font-size: .68rem; font-weight: 800; color: #fff; background: var(--ink); padding: 2px 6px; border-radius: 5px; content: "DOC"; }
.doc-list a.is-pdf::before { content: "PDF"; background: var(--pink); }
.doc-list a.is-xlsx::before { content: "XLS"; background: #1f6f40; }
.doc-list a.is-img::before { content: "IMG"; background: #3a4c9a; }
.doc-list li > .small { grid-area: meta; }
.doc-list li > .row { grid-area: actions; }
.checklist { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; }
.chk { font-size: .82rem; color: var(--muted); display: inline-flex; align-items: center; gap: 4px; }
.chk.on { color: #1f6f40; font-weight: 600; }
.chk .picto { width: 14px; height: 14px; }
.form-wide { max-width: none; }
.form-wide .row > .field { min-width: 160px; }
.stats-4 { margin-bottom: 4px; }
.table.leads td { vertical-align: top; }
.table.leads .notes-cell { max-width: 220px; white-space: pre-wrap; color: var(--muted); }
.table tr.late td { background: #fff8f4; }
.late-txt { color: #b4341d; font-weight: 600; }
.st { display: inline-block; font-size: .75rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.st-grey { background: #eceef2; color: var(--muted); } .st-blue { background: var(--blue-soft); color: #3a4c9a; } .st-pink { background: var(--pink-soft); color: var(--pink-dark); } .st-ok { background: var(--ok-soft); color: #1f6f40; } .st-red { background: #fdecef; color: #9f1239; }
.st-sel { font: inherit; font-size: .8rem; padding: 4px 6px; border: 1px solid var(--line); border-radius: 8px; background: #fff; max-width: 150px; }
.member-link { color: var(--ink); text-decoration: none; } .member-link:hover { text-decoration: underline; }
.table tr.is-team td { background: #fbfaf7; }
.member-head { display: flex; gap: 18px; align-items: flex-start; flex-wrap: wrap; }
.member-head .member-id { flex: 1; min-width: 240px; } .member-head h2 { margin: 0 0 4px; } .member-head p { margin: 2px 0; }
.member-actions { display: flex; flex-direction: column; gap: 8px; align-items: stretch; min-width: 200px; }
.member-actions .small { font: inherit; font-size: .85rem; padding: 7px 10px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.member-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 22px; align-items: start; }
.h-sec { font-size: 1.15rem; margin: 0 0 10px; }
.pm-list { list-style: none; padding: 0; margin: 10px 0 0; }
.pm { display: grid; grid-template-columns: 28px 1fr 90px 44px; gap: 10px; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: .85rem; }
.pm:last-child { border-bottom: 0; } .pm.lockd { opacity: .55; }
.pm-num { width: 24px; height: 24px; border-radius: 50%; background: var(--bg); display: grid; place-items: center; font-weight: 700; font-size: .75rem; }
.pm-num .picto { width: 14px; height: 14px; } .pm-meta { text-align: right; } .pm-meta .lock { width: 14px; height: 14px; fill: var(--muted); }
.plain { list-style: none; padding: 0; margin: 0; }
.msg-list .msg { padding: 10px 12px; background: #fff; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 8px; }
.msg-list .note { background: #fffbea; border-color: #f1e3a8; }
.pre { white-space: pre-wrap; margin: 6px 0 0; }
.member-actions .btn { text-align: center; }
@media (max-width: 800px) { .member-grid { grid-template-columns: 1fr; } .member-actions { min-width: 0; width: 100%; } .doc-list li { grid-template-columns: 1fr; grid-template-areas: "name" "meta" "actions"; } }
.stack { display: grid; gap: 16px; }
.member-link strong { text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; } .member-link:hover strong { text-decoration-color: var(--pink); }
.act-sel { appearance: none; -webkit-appearance: none; font: 600 .8rem var(--font-body); color: var(--ink); background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2323222a' stroke-width='2.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center; border: 1px solid var(--line); border-radius: 999px; padding: 5px 28px 5px 12px; cursor: pointer; }
.act-sel:hover { border-color: var(--ink); } .act-sel:focus { outline: 2px solid var(--ink); border-color: transparent; }
.member-actions .act-sel { padding: 8px 30px 8px 12px; font-size: .85rem; text-align: center; }
.topnav .avatar { padding: 0; width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; line-height: 1; font-size: 1rem; box-sizing: border-box; }
.topnav a.avatar:hover { background: var(--pink-dark, #c2185b); color: #fff; opacity: 1; border: 0; }
.chk-list { display: grid; gap: 6px; }
.chk-line { display: flex; align-items: flex-start; gap: 8px; font-size: .88rem; font-weight: 500; cursor: pointer; }
.chk-line input { margin-top: 3px; accent-color: var(--pink); }
.chk-owner { margin-top: 6px; padding-top: 8px; border-top: 1px dashed var(--line); }
.perm-cell .tag { margin: 0 4px 4px 0; font-size: .68rem; }

/* ---------- mobile : cases à cocher + tableaux en fiches ---------- */
.field .chk-line, .chk-line { display: flex; }
@media (max-width: 800px) {
  .table-wrap { overflow: visible; }
  .table { display: block; background: transparent; box-shadow: none; border: 0; }
  .table thead { display: none; }
  .table tbody { display: grid; gap: 10px; }
  .table tbody tr { display: block; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; }
  .table tbody tr.late { background: #fff8f4; }
  .table tbody td { display: flex; gap: 10px; align-items: flex-start; padding: 5px 0; border: 0; }
  .table tbody td::before { content: attr(data-l); flex: 0 0 34%; font-size: .68rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
  .table tbody td:first-child { display: block; padding-bottom: 8px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
  .table tbody td:first-child::before { display: none; }
  .table tbody td[data-l=""] { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 10px; }
  .table tbody td[data-l=""]::before { display: none; }
  .table tbody td[data-l=""] .btn, .table tbody td[data-l=""] .act-sel { flex: 1; text-align: center; }
  .table tbody td > .progress.mini { width: 100%; }
  .table.leads .notes-cell { max-width: none; }
  .st-sel { max-width: none; }
  .member-link strong { font-size: 1.05rem; }
  .perm-cell { flex-wrap: wrap; }
  .stats-4 { grid-template-columns: 1fr 1fr; }
  .dossier-banner { flex-wrap: wrap; }
  .lesson-nav { flex-wrap: wrap; gap: 10px; }
}
.field .chk-line input, .chk-line input { width: auto; padding: 0; flex: none; margin: 3px 0 0; }
@media (max-width: 800px) {
  .table tbody td { display: grid; grid-template-columns: 34% 1fr; column-gap: 10px; row-gap: 0; grid-auto-rows: min-content; align-items: start; }
  .table tbody td::before { grid-column: 1; grid-row: 1 / span 20; }
  .table tbody td > * { grid-column: 2; }
  .table tbody td > .progress.mini { margin: 4px 0 6px; }
  .table tbody td:first-child, .table tbody td[data-l=""] { display: flex; }
}
@media (max-width: 800px) { .table tbody td:empty { display: none; } }
.lesson-nav-bottom { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); }
@media (min-width: 1200px) { .lesson-nav-bottom { display: none; } }

/* ---------- sommaire mobile : barre fixe en bas, dépliable ---------- */
.som-toggle, .som-backdrop { display: none; }
@media (max-width: 1199px) {
  body { padding-bottom: 72px; }
  .lesson-side { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: block; gap: 0; }
  .som-toggle { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 16px; background: var(--dark); color: #fff; border: 0; font: inherit; text-align: left; cursor: pointer; position: relative; z-index: 2; }
  .som-num { width: 32px; height: 32px; border-radius: 50%; background: var(--pink); display: grid; place-items: center; font-weight: 800; flex: none; }
  .som-num .picto { width: 16px; height: 16px; }
  .som-txt { display: flex; flex-direction: column; flex: 1; min-width: 0; line-height: 1.25; } .som-txt .small { color: #cfcdd6; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .som-chev { font-size: 1.3rem; transition: transform .2s; }
  .lesson-side.open .som-chev { transform: rotate(180deg); }
  .lesson-side .card { display: none; position: static; margin: 0; border-radius: 0; box-shadow: 0 -10px 30px rgba(0,0,0,.15); max-height: 65vh; overflow: auto; border: 0; border-top: 1px solid var(--line); }
  .lesson-side.open .card { display: block; }
  .lesson-side .card h3 { display: none; }
  .som-backdrop { position: fixed; inset: 0; background: rgba(29,28,36,.45); z-index: -1; }
  .lesson-side.open .som-backdrop { display: block; }
  .lesson-side.open { display: flex; flex-direction: column-reverse; }
  body.som-open { overflow: hidden; }
  .lesson-layout { grid-template-areas: "main" "left"; }
}
