/*
 * 05-avis-cours-tableau-de-bord.css
 * Avis, carte professeur, texte riche, cours pleine largeur, tableau de bord.
 */

/* avis, formats, stages, rappel */
.stars {
  display: inline-flex;
  gap: 1px;
  line-height: 1;
  font-size: var(--s, 15px);
}
.stars i {
  font-style: normal;
  color: #e3dbe2;
}
.stars i.on {
  color: #e0a100;
}
.stars i.half {
  background: linear-gradient(90deg, #e0a100 50%, #e3dbe2 50%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.rating {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
}
.rating b {
  font-weight: 800;
}
.reviews {
  display: grid;
  gap: 10px;
}
.reviews.grid {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
.review {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.review p {
  margin: 0;
  line-height: 1.55;
}
.starpick {
  display: inline-flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  gap: 2px;
}
.starpick input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.starpick label {
  font-size: 30px;
  line-height: 1;
  color: #e3dbe2;
  cursor: pointer;
  padding: 0 2px;
  transition: color 0.1s;
}
.starpick label:hover,
.starpick label:hover ~ label,
.starpick input:checked ~ label {
  color: #e0a100;
}
.starpick input:focus-visible + label {
  outline: 2px solid var(--accent);
  border-radius: 4px;
}
.mode {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 700;
  border-radius: 999px;
  padding: 3px 9px;
  background: var(--sunk);
  color: var(--ink-soft);
  white-space: nowrap;
}
.mode svg {
  width: 13px;
  height: 13px;
}
.mode.home {
  background: var(--accent-soft);
  color: var(--accent);
}
.mode.online {
  background: var(--teal-soft);
  color: var(--teal);
}
.mode.trial {
  background: var(--hl);
  color: var(--hl-ink);
}
.banner.trialb {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  background: var(--hl);
  border-color: #f1dca5;
}
.cbband {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, var(--accent-soft), var(--teal-soft));
  border-radius: 16px;
  padding: 20px 24px;
  margin-top: 28px;
}
.cbband p {
  margin: 4px 0 0;
  color: var(--ink-soft);
}
.stagecard .fcover {
  min-height: 74px;
}
@media (max-width: 1440px) {
  .hide-sm {
    display: none;
  }
}

/* carte professeur */
.pcard {
  padding: 20px;
  gap: 14px;
  border-radius: 18px;
}
.pc-top {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  min-width: 0;
}
.pc-top .av.lg {
  width: 56px;
  height: 56px;
  font-size: 22px;
  box-shadow:
    0 0 0 3px var(--surface),
    0 0 0 4px var(--line);
}
.pc-id {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.pc-id h3 {
  font-size: 18px;
  line-height: 1.25;
  display: flex;
  align-items: center;
  gap: 6px;
}
.pc-ok {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--teal-soft);
  color: var(--teal);
  flex: none;
}
.pc-ok svg {
  width: 12px;
  height: 12px;
}
.pc-sub {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.4;
}
.pc-subj {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.subj {
  font-size: 12.5px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  color: var(--c);
  background: color-mix(in srgb, var(--c) 11%, #fff);
  border: 1px solid color-mix(in srgb, var(--c) 22%, #fff);
}
.card p.pc-bio {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-soft);
  -webkit-line-clamp: 3;
}
.pc-foot {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.pc-modes {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  font-size: 12.5px;
  color: var(--ink-soft);
  font-weight: 600;
}
.pc-modes span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.pc-modes svg {
  width: 14px;
  height: 14px;
}
.pc-modes .pc-trial {
  color: var(--hl-ink);
}
.pc-price {
  text-align: right;
  white-space: nowrap;
  line-height: 1.1;
}
.pc-price b {
  font-family: var(--f-display);
  font-size: 22px;
  font-weight: 800;
  color: var(--ink);
}
.pc-price small {
  font-size: 13px;
  color: var(--ink-soft);
  margin-left: 2px;
}
.pc-zone {
  font-size: 12px;
  color: var(--ink-faint);
  display: flex;
  gap: 6px;
  align-items: center;
  margin-top: -6px;
}
.pc-zone svg {
  width: 12px;
  height: 12px;
  flex: none;
}
.review.demo {
  position: relative;
  border-style: dashed;
  background: var(--sunk);
}
.demotag {
  position: absolute;
  top: -9px;
  right: 12px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--hl);
  color: var(--hl-ink);
  border-radius: 999px;
  padding: 2px 9px;
}

@media (max-width: 900px) {
  .sidelegal {
    display: none;
  }
}
@media (max-width: 640px) {
  .strip {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .strip .stat .v {
    font-size: 24px;
  }
  .tablewrap {
    margin-inline: -2px;
  }
  .pcard {
    padding: 16px;
  }
}
.toast {
  animation: tin 0.22s ease-out;
}
@keyframes tin {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
#main {
  animation: fadein 0.18s ease-out;
}
@keyframes fadein {
  from {
    opacity: 0.4;
  }
  to {
    opacity: 1;
  }
}

.revempty {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 30px clamp(18px, 4vw, 40px);
  display: flex;
  flex-direction: column;
  gap: 22px;
  align-items: center;
  text-align: center;
  box-shadow: var(--shadow);
}
.revpillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  width: 100%;
}
.revpillars > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.revpillars span {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
}
.revpillars svg {
  width: 22px;
  height: 22px;
}
.revpillars p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 14px;
  max-width: 260px;
}
.banner.nudge {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(135deg, #fff8e6, var(--accent-soft));
  border-color: #f3dfb0;
}
@media (max-width: 760px) {
  .revpillars {
    grid-template-columns: 1fr;
  }
}

/* texte riche et formules */
.seyes ol,
.mdtext ol {
  margin: 0 0 32px;
  padding-left: 24px;
  max-width: 66ch;
}
.mdtext ol,
.mdtext ul {
  margin: 0 0 8px;
}
.seyes em,
.mdtext em {
  font-style: italic;
}
.seyes hr {
  border: 0;
  border-top: 2px dashed var(--line-strong);
  margin: 0 0 31px;
}
.seyes blockquote,
.mdtext blockquote {
  margin: 0 0 32px;
  padding: 0 14px;
  border-left: 4px solid var(--accent);
  background: var(--accent-soft);
  border-radius: 0 8px 8px 0;
  max-width: 66ch;
}
.mathblock {
  display: block;
  overflow-x: auto;
  overflow-y: hidden;
  text-align: center;
  padding: 4px 0;
  margin: 0 0 32px;
  font-size: 1.15em;
}
.mdtext .mathblock {
  margin: 6px 0 10px;
}
math {
  font-size: 1.1em;
}
.tex {
  font-family: var(--f-mono);
  font-size: 0.92em;
  background: var(--hl);
  color: var(--hl-ink);
  padding: 0 4px;
  border-radius: 3px;
}
.mdtable {
  overflow-x: auto;
  margin: 0 0 32px;
}
.mdtable table {
  border-collapse: collapse;
  min-width: 60%;
  background: var(--surface);
}
.mdtable th,
.mdtable td {
  border: 1px solid var(--line-strong);
  padding: 4px 12px;
  text-align: left;
  line-height: 23px;
}
.mdtable th {
  background: var(--sunk);
  font-weight: 700;
}
.mdprev {
  flex: none;
  border: 1px dashed var(--line-strong);
  border-radius: 12px;
  padding: 12px 14px;
  background: var(--sunk);
  min-height: 120px;
  max-height: 380px;
  overflow: auto;
}
.mdprev .k {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 6px;
}
.answer math,
.bubble math {
  font-size: 1.05em;
}

/* cours et exercices pleine largeur */
.seyes.full {
  max-width: none;
  width: 100%;
}
.seyes.full p,
.seyes.full ul,
.seyes.full ol,
.seyes.full blockquote {
  max-width: none;
}
.lsec {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 6px;
}
.lsec-h {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  margin: 0;
}
.lsec-h svg {
  width: 22px;
  height: 22px;
  color: var(--accent);
}
.lsec-h small {
  font-size: 13px;
  color: var(--ink-faint);
  font-weight: 600;
}
.vgrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
}
.vtile {
  display: flex;
  gap: 14px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
  text-decoration: none;
  color: var(--ink);
  transition:
    border-color 0.18s,
    box-shadow 0.18s,
    transform 0.18s;
  min-width: 0;
}
.vtile:hover {
  border-color: var(--rose-soft);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.vplay {
  flex: none;
  width: 64px;
  height: 44px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--night), #3b2f6b);
  color: #fff;
}
.vplay svg {
  width: 22px;
  height: 22px;
}
.vtxt {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.vtxt b {
  overflow-wrap: anywhere;
}
.vtxt small {
  font-size: 12px;
  color: var(--ink-faint);
}
.plist {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.pdoc {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.pdoc-h {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.pdoc-n {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}
.pdoc-n b {
  overflow-wrap: anywhere;
}
.pdoc-n small {
  color: var(--ink-faint);
  font-size: 12px;
}
.pdfico {
  flex: none;
  width: 42px;
  height: 48px;
  border-radius: 8px;
  background: #fdecec;
  color: #c0392b;
  font-weight: 800;
  font-size: 12px;
  display: grid;
  place-items: center;
  border: 1px solid #f6caca;
}
.pdfview {
  background: var(--sunk);
  border-radius: 10px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  max-height: 85vh;
  overflow: auto;
}
.pdfpage {
  max-width: 100%;
  height: auto;
  background: #fff;
  box-shadow: 0 2px 10px rgba(31, 26, 53, 0.12);
  border-radius: 4px;
}
.pdfwait {
  padding: 30px 10px;
  text-align: center;
}
.flist {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px 12px;
  background: var(--sunk);
  border-radius: 10px;
}

/* tableau de bord */
.dash h2 {
  margin-bottom: 4px;
}
.dash-empty {
  margin: 0;
  padding: 22px 16px;
  border: 1px dashed var(--line-strong);
  border-radius: 12px;
  color: var(--ink-faint);
  text-align: center;
  font-size: 14px;
}
.todos,
.acts {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.todo {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  cursor: pointer;
  color: var(--ink);
  transition:
    border-color 0.15s,
    box-shadow 0.15s,
    transform 0.15s;
}
.todo:hover {
  border-color: var(--rose-soft);
  box-shadow: var(--shadow);
  transform: translateY(-1px);
}
.todo.hot {
  border-color: #f3c0cf;
  background: #fff7f9;
}
.todo .ti,
.act .ai {
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
}
.todo .ti svg,
.act .ai svg {
  width: 17px;
  height: 17px;
}
.todo.hot .ti {
  background: var(--accent);
  color: #fff;
}
.todo .tt {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}
.todo .tt b,
.act b {
  font-size: 14px;
  overflow-wrap: anywhere;
}
.todo small,
.act small {
  font-size: 12.5px;
  color: var(--ink-soft);
  overflow-wrap: anywhere;
}
.todo .tgo {
  color: var(--ink-faint);
  font-size: 22px;
  line-height: 1;
}
.act {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 8px 2px;
  border-bottom: 1px solid var(--line);
}
.act:last-child {
  border-bottom: 0;
}
.act > div {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}
.act .ai {
  background: var(--teal-soft);
  color: var(--teal);
}
.act time {
  flex: none;
  font-size: 12px;
  color: var(--ink-faint);
  white-space: nowrap;
  padding-top: 2px;
}

/* liste des cours */
.clist {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.crow {
  position: relative;
  display: flex;
  width: 100%;
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  color: var(--ink);
  padding: 0;
  transition:
    border-color 0.18s,
    box-shadow 0.18s,
    transform 0.18s;
}
.crow:hover {
  border-color: color-mix(in srgb, var(--c) 35%, #fff);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.cbar {
  flex: none;
  width: 6px;
  background: var(--c);
}
.cmain {
  flex: 1;
  min-width: 0;
  padding: 18px 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ctop {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.ctop .subj {
  --c: inherit;
}
.crow .subj {
  color: var(--c);
  background: color-mix(in srgb, var(--c) 10%, #fff);
  border: 1px solid color-mix(in srgb, var(--c) 22%, #fff);
  font-size: 12px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
}
.cclass {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
}
.cdate {
  margin-left: auto;
  font-size: 12.5px;
  color: var(--ink-faint);
}
.crow h3 {
  font-size: 20px;
  line-height: 1.3;
  margin: 0;
  font-family: var(--f-display);
  font-weight: 800;
  letter-spacing: -0.01em;
  overflow-wrap: anywhere;
}
.crow p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 14.5px;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
}
.cfoot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 10px;
  margin-top: 2px;
  border-top: 1px solid var(--line);
}
.cmeta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  font-size: 13px;
  color: var(--ink-soft);
  font-weight: 600;
}
.cmeta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.cmeta svg {
  width: 15px;
  height: 15px;
  color: var(--c);
}
.cmeta .cby {
  font-weight: 500;
  color: var(--ink-faint);
}
.cgo {
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.cgo b {
  font-size: 20px;
  line-height: 1;
  transition: transform 0.18s;
}
.crow:hover .cgo b {
  transform: translateX(3px);
}
@media (max-width: 640px) {
  .cmain {
    padding: 14px 16px;
  }
  .crow h3 {
    font-size: 17px;
  }
  .cdate {
    margin-left: 0;
  }
}
