/* Valeurs relevees sur skool.com le 17/11/2026 (ecran de lecon et grille des cours). */
:root {
  --bg: #f8f7f5;
  --card: #ffffff;
  --text: #202124;
  --muted: #65676b;
  --line: #e4e4e4;
  --green: #009e5d;
  --active: #fae3ac;
  --hover: #efeeec;
  --radius: 10px;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font: 400 14px/1.43 Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }

/* ---------- entete ---------- */
.top { background: var(--card); border-bottom: 1px solid var(--line); }
.top-row, .tabs { max-width: 1075px; margin: 0 auto; padding: 0 16px; }
.top-row { height: 64px; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 700; }
.brand img { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; }
.me { display: flex; align-items: center; gap: 12px; }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: #e8e8e8; display: grid; place-items: center; font-weight: 700; font-size: 15px; color: #444; }
.logout { font-size: 13px; color: var(--muted); }
.logout:hover { color: var(--text); }
.tabs { display: flex; gap: 32px; }
.tab { display: inline-block; padding: 10px 0 13px; font-size: 16px; color: var(--muted); border-bottom: 3px solid transparent; }
.tab.on { color: var(--text); font-weight: 500; border-bottom-color: var(--text); }

main { max-width: 1075px; margin: 0 auto; padding: 32px 16px 64px; }

/* ---------- barre de progression ---------- */
.track { background: var(--line); border-radius: 33px; height: 20px; overflow: hidden; }
.fill { background: var(--green); height: 100%; border-radius: 33px; min-width: 52px; display: flex; align-items: center; transition: width .3s; }
.fill span { color: #fff; font-size: 13px; font-weight: 700; padding-left: 16px; }
.fill.zero { background: transparent; }
.fill.zero span { color: var(--muted); }

/* ---------- grille des cours ---------- */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.ccard { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .15s; }
.ccard:hover { box-shadow: 0 2px 10px rgba(0, 0, 0, .08); }
.cover { aspect-ratio: 1460 / 752; background: #eceae6; }
.cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cbody { padding: 16px 20px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.ctitle { font-size: 16px; font-weight: 700; line-height: 1.5; }
.cdesc { font-size: 14px; color: var(--text); flex: 1; margin-bottom: 14px; }

/* ---------- ecran de lecon ---------- */
.lesson { display: grid; grid-template-columns: 290px 1fr; gap: 32px; align-items: start; }
.side { position: sticky; top: 16px; max-height: calc(100vh - 32px); overflow: auto; padding-right: 4px; }
.side-h { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.side-t { font-size: 18px; font-weight: 500; }
.side .track { margin-bottom: 20px; }
.sethead { width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 12px 0 12px 8px; text-align: left; }
.st { font-size: 16px; font-weight: 700; padding-right: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chev { flex: none; color: var(--muted); transition: transform .15s; }
.set.open .chev { transform: rotate(180deg); }
.setbody { display: none; }
.set.open .setbody { display: block; }
.mrow { display: flex; justify-content: space-between; align-items: center; padding: 12px 8px 12px 24px; border-radius: var(--radius); font-size: 16px; }
.side-list > .mrow { padding-left: 8px; }
.mrow:hover { background: var(--hover); }
.mrow.on { background: var(--active); }
.mt { padding-right: 8px; }
.mdone { display: none; flex: none; }
.mrow.is-done .mdone { display: inline-flex; }

.lcard { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 32px 32px; min-width: 0; }
.lhead { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 16px; }
.lhead h1 { font-size: 23px; font-weight: 700; line-height: 1.4; margin: 0; }
.mark { color: #909090; flex: none; display: inline-flex; }
.mark:hover { color: var(--text); }
.lcard.is-done .mark { color: var(--green); }
.lcard.is-done .mark circle { fill: var(--green); stroke: var(--green); }
.lcard.is-done .mark path { stroke: #fff; }

.video { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: 6px; overflow: hidden; margin-bottom: 20px; }
.video video, .video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video.pending { background: #e9e8e5; display: grid; place-items: center; color: var(--muted); font-size: 15px; }

.desc { font-size: 16px; line-height: 1.5; overflow-wrap: anywhere; }
.desc p { margin: 0 0 12px; }
.desc ul, .desc ol { margin: 0 0 12px; padding-left: 24px; }
.desc a { color: #2e6fd8; text-decoration: underline; }

.resources { margin-top: 24px; border-top: 1px solid var(--line); padding-top: 20px; }
.res-h { font-size: 16px; font-weight: 700; margin-bottom: 12px; }
.res { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; margin-bottom: 8px; font-size: 15px; color: var(--text); }
.res:hover { background: var(--hover); }
.res svg { flex: none; color: var(--muted); }

/* ---------- connexion ---------- */
.login { max-width: 400px; margin: 64px auto; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; text-align: center; }
.login img { width: 64px; height: 64px; border-radius: 12px; }
.login h1 { font-size: 22px; margin: 16px 0 8px; }
.login p { color: var(--muted); font-size: 15px; margin: 0 0 20px; }
.login input { width: 100%; font: inherit; font-size: 16px; padding: 12px; border: 1px solid var(--line); border-radius: 8px; margin-bottom: 12px; }
.login button { width: 100%; background: #f8d481; font-weight: 700; font-size: 16px; padding: 12px; border-radius: 8px; }
.login .err { color: #c62828; }

/* ---------- telephone ---------- */
@media (max-width: 900px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  main { padding: 16px 16px 48px; }
  .grid { grid-template-columns: 1fr; gap: 16px; }
  .lesson { grid-template-columns: 1fr; gap: 16px; }
  .side { position: static; max-height: none; order: 2; }
  .lcard { padding: 16px; }
  .lhead h1 { font-size: 20px; }
  .tabs { gap: 20px; }
  .logout { display: none; }
}
