/* Artefact — fond crème clair, halos doux, cartes lisibles */

#screen-app.portal-premium {
  position: relative;
  overflow-x: hidden;
  --art-orange: #c97820;
  --art-orange-dim: rgba(180, 110, 40, 0.65);
  --art-glow: rgba(201, 169, 98, 0.2);
}

#screen-app.portal-premium::before,
#screen-app.portal-premium::after {
  content: "";
  position: fixed;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.55;
  pointer-events: none;
  z-index: 0;
}
#screen-app.portal-premium::before {
  width: min(55vw, 420px);
  height: min(55vw, 420px);
  background: radial-gradient(circle, rgba(255, 220, 180, 0.55) 0%, rgba(255, 200, 150, 0.2) 45%, transparent 72%);
  top: -8%;
  left: -12%;
  animation: artefact-orb-a 28s ease-in-out infinite;
}
#screen-app.portal-premium::after {
  width: min(40vw, 320px);
  height: min(40vw, 320px);
  background: radial-gradient(circle, rgba(230, 210, 175, 0.45) 0%, rgba(210, 185, 140, 0.15) 50%, transparent 70%);
  bottom: 5%;
  right: -8%;
  animation: artefact-orb-b 36s ease-in-out infinite;
}
@keyframes artefact-orb-a {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(12%, 18%) scale(1.08);
  }
  66% {
    transform: translate(6%, -10%) scale(0.95);
  }
}
@keyframes artefact-orb-b {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  40% {
    transform: translate(-15%, -12%) scale(1.12);
  }
  70% {
    transform: translate(-8%, 14%) scale(0.9);
  }
}

#screen-app.portal-premium > header,
#screen-app.portal-premium > .page {
  position: relative;
  z-index: 1;
}

/* Cartes catégories : teintes douces sur fond crème */
#screen-app.portal-premium .card-cat.socle {
  background: linear-gradient(160deg, #e8f4ec, #dceee4);
  border-color: rgba(42, 122, 74, 0.28);
  box-shadow: 0 4px 18px rgba(42, 122, 74, 0.06);
}
#screen-app.portal-premium .card-cat.maitrise {
  background: linear-gradient(160deg, #fdf3ec, #f8e8dc);
  border-color: rgba(200, 114, 42, 0.28);
  box-shadow: 0 4px 18px rgba(200, 114, 42, 0.06);
}
#screen-app.portal-premium .card-cat.elite {
  background: linear-gradient(145deg, #fff9f0, #faf0e0);
  border: 1px solid rgba(201, 169, 98, 0.38);
  box-shadow:
    0 0 0 1px rgba(255, 235, 200, 0.5),
    0 8px 26px rgba(201, 169, 98, 0.12);
}
#screen-app.portal-premium .card-cat .cat-name,
#screen-app.portal-premium .card-cat .cat-desc {
  color: #1c1b18;
}
#screen-app.portal-premium .card-cat .cat-desc {
  color: rgba(30, 28, 25, 0.58);
}
#screen-app.portal-premium .socle .cat-pill {
  background: rgba(42, 122, 74, 0.14);
  color: #1f5c38;
}
#screen-app.portal-premium .maitrise .cat-pill {
  background: rgba(200, 114, 42, 0.14);
  color: #a05518;
}
#screen-app.portal-premium .elite .cat-pill {
  background: rgba(200, 169, 110, 0.22);
  color: #7a6228;
}
#screen-app.portal-premium .card-cat .cat-prog-bar {
  background: rgba(0, 0, 0, 0.06);
}
#screen-app.portal-premium .card-cat .cat-prog-label {
  color: rgba(30, 28, 25, 0.45);
}

/* QCM chapitre / réponse libre : au-dessus du fond, clics fiables */
#screen-app.portal-premium .card-qcm-chapter {
  position: relative;
  z-index: 2;
  background: linear-gradient(165deg, #ffffff, #faf6ef);
  border: 2px solid rgba(201, 169, 98, 0.32);
  box-shadow: 0 4px 20px rgba(90, 70, 40, 0.06);
}
#screen-app.portal-premium .card-qcm-chapter:hover {
  border-color: rgba(201, 169, 98, 0.5);
  box-shadow: 0 10px 32px rgba(201, 169, 98, 0.14);
}
#screen-app.portal-premium .card-qcm-chapter .qcm-ch-title {
  color: #1c1b18;
}
#screen-app.portal-premium .card-qcm-chapter .qcm-ch-meta {
  color: rgba(30, 28, 25, 0.55);
}
#screen-app.portal-premium .card-qcm-chapter code {
  color: #7a6228;
  font-size: 0.68rem;
  background: rgba(201, 169, 98, 0.1);
  padding: 0.1em 0.35em;
  border-radius: 4px;
}
#screen-app.portal-premium .card-ch {
  position: relative;
  z-index: 1;
  background: var(--pp-surface);
}

/* Header session — impact visuel */
#screen-app.portal-premium .h-session {
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(40, 36, 32, 0.92);
  text-shadow: none;
  padding: 0.35rem 0.75rem;
  border: 1px solid rgba(232, 148, 58, 0.4);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 236, 210, 0.95), rgba(232, 200, 150, 0.88));
  backdrop-filter: blur(10px);
}

/* Retour premium */
.btn-back-premium {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 1rem 0.45rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(180, 145, 85, 0.35);
  background: rgba(255, 255, 255, 0.92);
  color: #3a3528;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s, color 0.2s;
  backdrop-filter: blur(12px);
}
.btn-back-premium::before {
  content: "←";
  font-size: 0.95rem;
  opacity: 0.85;
  font-weight: 400;
}
.btn-back-premium:hover {
  border-color: rgba(168, 137, 62, 0.55);
  box-shadow: 0 4px 18px var(--art-glow);
  color: #1a1816;
}

/* Catégorie restreinte (Socle) — pas de hover conflict, overlay stable */
.card-cat.restricted {
  position: relative;
  overflow: hidden;
  cursor: default;
}
.card-cat.restricted:hover {
  transform: none;
  box-shadow: none;
}
.card-cat.restricted .restrict-overlay {
  pointer-events: auto;
}

/* Cartes dashboard verrouillées : titre produit lisible */
.restrict-card-name {
  order: -1;
  font-family: "Playfair Display", serif;
  font-size: 0.82rem;
  font-weight: 700;
  color: #2a2824;
  letter-spacing: 0.04em;
  max-width: 200px;
  line-height: 1.3;
  margin-bottom: 0.15rem;
}

/* Bloc thème France */
.france-theme-wrap {
  grid-column: 1 / -1;
  padding: 1.25rem 1.35rem 1.5rem;
  border-radius: 14px;
  border: 1px solid rgba(201, 169, 98, 0.22);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(14px);
  margin-bottom: 0.25rem;
  box-shadow: 0 4px 24px rgba(80, 60, 30, 0.04);
}
.france-theme-label {
  font-size: 0.62rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--art-orange-dim);
  margin-bottom: 1rem;
  font-weight: 600;
}
.france-theme-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}

/* SAT hub */
.sat-american-card {
  grid-column: span 2;
  max-width: 100%;
}
@media (max-width: 680px) {
  .sat-american-card {
    grid-column: span 1;
  }
}
.sat-hub-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}
@media (max-width: 640px) {
  .sat-hub-inner {
    grid-template-columns: 1fr;
  }
}
.sat-hub-pick {
  border-radius: 12px;
  padding: 1.25rem 1.1rem;
  border: 1px solid rgba(88, 132, 188, 0.28);
  background: linear-gradient(145deg, #f2f6fc, #ffffff);
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.sat-hub-pick:hover {
  border-color: rgba(120, 170, 230, 0.45);
  box-shadow: 0 8px 28px rgba(60, 100, 160, 0.1);
}
.sat-hub-pick .sat-sub-badge {
  display: inline-block;
  padding: 0.22rem 0.75rem;
  border-radius: 99px;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: rgba(26, 58, 110, 0.1);
  color: #1a3a6e;
  margin-bottom: 0.65rem;
}
.sat-hub-pick .sat-sub-name {
  font-family: "Playfair Display", serif;
  font-size: 1.02rem;
  font-weight: 700;
  color: #1c1b18;
  margin-bottom: 0.35rem;
  line-height: 1.3;
}
.sat-hub-pick .sat-sub-info {
  font-size: 0.76rem;
  color: rgba(40, 38, 34, 0.68);
  line-height: 1.5;
}

/* Carte perf + médailles (dashboard) */
.card-hub-motivation {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
@media (max-width: 720px) {
  .card-hub-motivation {
    grid-template-columns: 1fr;
  }
}
.card-hub-tile {
  border-radius: 14px;
  padding: 1.35rem 1.4rem;
  border: 1px solid rgba(201, 169, 98, 0.28);
  background: linear-gradient(145deg, #fffbf5, #ffffff);
  cursor: pointer;
  transition: box-shadow 0.25s, border-color 0.25s;
}
.card-hub-tile:hover {
  box-shadow: 0 12px 36px rgba(201, 169, 98, 0.14);
  border-color: rgba(201, 169, 98, 0.42);
}
.card-hub-tile h3 {
  font-family: "Playfair Display", serif;
  font-size: 1.05rem;
  margin: 0 0 0.4rem;
  color: #1c1b18;
}
.card-hub-tile p {
  margin: 0;
  font-size: 0.78rem;
  color: rgba(30, 28, 25, 0.52);
  line-height: 1.45;
}

/* Modal quiz config */
#quiz-config-overlay,
#warmup-overlay,
#hardcore-fail-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(45, 40, 34, 0.35);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
#quiz-config-overlay.open,
#warmup-overlay.open,
#hardcore-fail-overlay.open {
  display: flex;
}
.quiz-config-panel {
  max-width: 420px;
  width: 100%;
  border-radius: 16px;
  border: 1px solid rgba(201, 169, 98, 0.28);
  background: linear-gradient(165deg, #ffffff, #faf6ef);
  padding: 1.75rem 1.5rem;
  box-shadow: 0 24px 64px rgba(40, 30, 20, 0.12);
}
.quiz-config-panel h2 {
  font-family: "Playfair Display", serif;
  font-size: 1.2rem;
  margin: 0 0 1rem;
  color: #1c1b18;
}
.qc-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  margin-bottom: 1rem;
}
.qc-opt {
  padding: 0.75rem 0.65rem;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #f3f0ea;
  color: #2a2824;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  text-align: center;
  transition: border-color 0.2s, background 0.2s;
}
.qc-opt.on,
.qc-opt:hover {
  border-color: rgba(168, 137, 62, 0.45);
  background: rgba(201, 169, 98, 0.16);
}
.qc-opt.danger.on {
  border-color: rgba(220, 80, 80, 0.45);
  background: rgba(220, 80, 80, 0.1);
}
.qc-actions {
  display: flex;
  gap: 0.6rem;
  margin-top: 1.25rem;
}
.qc-actions button {
  flex: 1;
  padding: 0.65rem;
  border-radius: 10px;
  border: none;
  font-weight: 600;
  cursor: pointer;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.qc-cancel {
  background: #ebe6de;
  color: #4a4540;
}
.qc-start {
  background: linear-gradient(135deg, #c9a962, #a8843a);
  color: #111;
}

/* Performance */
.perf-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}
.perf-metric-card {
  border-radius: 12px;
  border: 1px solid rgba(201, 169, 98, 0.22);
  background: #ffffff;
  padding: 1.1rem;
  text-align: center;
  box-shadow: 0 2px 12px rgba(40, 30, 20, 0.04);
}
.perf-metric-val {
  font-family: "Playfair Display", serif;
  font-size: 1.65rem;
  color: var(--art-orange);
}
.perf-metric-lbl {
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(30, 28, 25, 0.45);
  margin-top: 0.35rem;
}
.perf-chart-wrap {
  position: relative;
  margin: 1.5rem 0;
  padding: 1rem;
  border-radius: 12px;
  border: 1px solid rgba(201, 169, 98, 0.2);
  background: #ffffff;
  min-height: 280px;
  box-shadow: 0 2px 12px rgba(40, 30, 20, 0.04);
}
.perf-chart-wrap canvas {
  max-height: 320px;
}
.perf-heatmap {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(14px, 1fr));
  gap: 4px;
  max-width: 100%;
  margin: 1rem 0;
}
.perf-heat-cell {
  width: 14px;
  height: 14px;
  border-radius: 3px;
  background: #e5e0d8;
  border: 1px solid rgba(0, 0, 0, 0.06);
  cursor: default;
}
.perf-heat-cell.g20 {
  background: #0d5c2e;
  box-shadow: 0 0 8px rgba(40, 180, 90, 0.35);
}
.perf-heat-cell.g16 {
  background: #1a7a45;
}
.perf-heat-cell.g10 {
  background: rgba(232, 148, 58, 0.55);
}
.perf-table-wrap {
  overflow-x: auto;
  margin-top: 1rem;
}
.perf-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.78rem;
}
.perf-table th,
.perf-table td {
  padding: 0.55rem 0.65rem;
  text-align: left;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  color: #2a2824;
}
.perf-table tr.speed-flag td {
  color: #e85555;
  font-weight: 600;
}

/* Protocole */
.protocol-page {
  max-width: 720px;
  margin: 0 auto;
}
.protocol-prose {
  font-size: 0.92rem;
  line-height: 1.75;
  color: rgba(30, 28, 25, 0.78);
  margin-bottom: 1.25rem;
}
.protocol-prose strong {
  color: #1a1816;
}
.protocol-rule {
  margin: 1.25rem 0;
  padding: 1rem 1.1rem;
  border-left: 3px solid rgba(201, 169, 98, 0.55);
  background: rgba(255, 255, 255, 0.65);
  border-radius: 0 10px 10px 0;
}
.protocol-num {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  color: var(--art-orange-dim);
  margin-bottom: 0.35rem;
}

/* Défis liste — plus premium */
.defi-row {
  border: 1px solid rgba(201, 169, 98, 0.2);
  background: rgba(255, 255, 255, 0.88) !important;
  backdrop-filter: blur(8px);
}
.defi-row:hover {
  border-color: rgba(201, 169, 98, 0.35);
  box-shadow: 0 6px 20px rgba(60, 45, 30, 0.08);
}
.defi-title-row {
  font-family: "Playfair Display", serif;
  font-size: 0.98rem !important;
}

/* Défis — grille de vignettes (scalable 30–40+) */
.defis-board {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.defis-progress-wrap {
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(201, 169, 98, 0.22);
  background: linear-gradient(180deg, #ffffff, #faf8f4);
}
.defis-progress-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(45, 40, 32, 0.55);
  margin-bottom: 0.45rem;
}
.defis-progress-track {
  height: 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.06);
  overflow: hidden;
}
.defis-progress-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #2a7a4a, #4a9e62);
  transition: width 0.35s ease;
}
.defis-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  font-size: 0.65rem;
  color: rgba(40, 36, 32, 0.6);
}
.defis-legend-i {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.defis-legend-i::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 3px;
  border: 1px solid rgba(0, 0, 0, 0.12);
}
.defis-legend-i.s-reussi::before {
  background: rgba(42, 122, 74, 0.35);
  border-color: rgba(42, 122, 74, 0.45);
}
.defis-legend-i.s-aide::before {
  background: rgba(200, 114, 42, 0.3);
  border-color: rgba(200, 114, 42, 0.45);
}
.defis-legend-i.s-rien::before {
  background: rgba(200, 75, 75, 0.22);
  border-color: rgba(200, 75, 75, 0.4);
}
.defis-legend-i.s-empty::before {
  background: #f0ebe3;
}
.defis-chip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(52px, 1fr));
  gap: 0.5rem;
  max-width: 100%;
}
@media (min-width: 900px) {
  .defis-chip-grid {
    grid-template-columns: repeat(auto-fill, minmax(56px, 1fr));
  }
}
.defis-chip {
  aspect-ratio: 1;
  min-height: 48px;
  border-radius: 12px;
  border: 2px solid rgba(120, 105, 85, 0.2);
  background: linear-gradient(165deg, #ffffff, #f7f5f0);
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease, box-shadow 0.2s, border-color 0.2s;
  font-family: "DM Sans", system-ui, sans-serif;
}
.defis-chip:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(60, 50, 35, 0.1);
  border-color: rgba(168, 137, 62, 0.45);
}
.defis-chip-num {
  font-size: 0.82rem;
  font-weight: 800;
  color: #2a2824;
}
.defis-chip.status-reussi {
  border-color: rgba(42, 122, 74, 0.55);
  background: linear-gradient(165deg, #f0faf3, #e4f4ea);
}
.defis-chip.status-aide {
  border-color: rgba(200, 114, 42, 0.5);
  background: linear-gradient(165deg, #fff9f2, #fdf0e4);
}
.defis-chip.status-rien {
  border-color: rgba(200, 75, 75, 0.45);
  background: linear-gradient(165deg, #fff8f7, #fcefee);
}
.defis-chip.status-empty .defis-chip-num {
  color: rgba(45, 40, 35, 0.45);
}

/* QCM image */
.qcm-q-img {
  margin: 0.85rem 0;
  text-align: center;
}
.qcm-q-img img {
  max-width: 100%;
  max-height: 220px;
  border-radius: 10px;
  border: 1px solid rgba(201, 169, 98, 0.25);
}

/* Hardcore bar */
.hardcore-hud {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  font-size: 0.72rem;
  color: #a03838;
}
.hardcore-hud .heart {
  font-size: 1.1rem;
}

/* Dashboard : accès performance par parcours */
#screen-app.portal-premium .card-level:has(.card-perf-footer) {
  display: flex;
  flex-direction: column;
}
.card-perf-footer {
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}
.btn-perf-track {
  width: 100%;
  padding: 0.5rem 0.75rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: 8px;
  border: 1px solid rgba(168, 137, 62, 0.4);
  background: linear-gradient(180deg, #ffffff, #faf6ef);
  color: #5c4a28;
  cursor: pointer;
  font-family: "DM Sans", system-ui, sans-serif;
  transition: border-color 0.2s, color 0.2s, box-shadow 0.2s;
}
.btn-perf-track:hover {
  border-color: #a8893e;
  color: #1a1816;
  box-shadow: 0 4px 14px rgba(201, 169, 98, 0.15);
}

/* Page performance : médailles Grand Prix */
.perf-track-intro {
  margin-bottom: 1rem;
  max-width: 52rem;
}
.perf-actions-bar {
  margin-bottom: 1.25rem;
}
.perf-section-label {
  margin: 1rem 0 0.45rem;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(90, 75, 50, 0.55);
}
.perf-select {
  max-width: 320px;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  background: #ffffff;
  color: #2a2824;
  border: 1px solid rgba(180, 145, 85, 0.28);
  margin-bottom: 0.75rem;
  font-family: inherit;
  font-size: 0.85rem;
}

.mk-trophy-block {
  margin-bottom: 1.75rem;
  padding: 1.25rem 1.1rem 1.35rem;
  border-radius: 16px;
  border: 1px solid rgba(201, 169, 98, 0.28);
  background: linear-gradient(165deg, #fffefb, #faf3e6);
  box-shadow: 0 6px 28px rgba(80, 60, 30, 0.06);
}
.mk-trophy-head {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  margin-bottom: 1.1rem;
}
.mk-trophy-icon {
  font-size: 2rem;
  line-height: 1;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.12));
}
.mk-trophy-title {
  font-family: "Playfair Display", serif;
  font-size: 1.05rem;
  margin: 0 0 0.25rem;
  color: #1c1b18;
}
.mk-trophy-sub {
  margin: 0;
  font-size: 0.72rem;
  color: rgba(40, 35, 28, 0.55);
  line-height: 1.45;
}
.mk-chapter-strip {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.65rem;
  overflow-x: auto;
  padding-bottom: 0.35rem;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}
.mk-chapter-card {
  flex: 0 0 auto;
  scroll-snap-align: start;
  width: min(168px, 72vw);
  padding: 0.65rem 0.6rem 0.75rem;
  border-radius: 12px;
  border: 2px solid rgba(200, 180, 140, 0.35);
  background: linear-gradient(180deg, #ffffff, #faf8f4);
  box-shadow: 0 3px 12px rgba(60, 45, 25, 0.05);
}
.mk-chapter-card--compact {
  width: min(148px, 65vw);
}
.mk-chapter-card--revision {
  border-color: rgba(120, 90, 160, 0.28);
  background: linear-gradient(180deg, #faf8ff, #ffffff);
}
.mk-chapter-title {
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.25;
  color: #1c1b18;
  margin-bottom: 0.5rem;
  min-height: 2.4em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.mk-mode-row {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.35rem;
  flex-wrap: wrap;
}
.mk-mode-tag {
  font-size: 0.52rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(60, 55, 48, 0.65);
  flex: 0 0 100%;
}
.mk-mode-tag--hc {
  color: #a03838;
}
.mk-coins {
  display: flex;
  gap: 0.25rem;
  align-items: center;
}
.mk-coin {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.58rem;
  font-weight: 800;
  font-family: "DM Sans", system-ui, sans-serif;
  border: 2px solid rgba(0, 0, 0, 0.12);
  box-shadow: inset 0 -2px 4px rgba(0, 0, 0, 0.15);
}
.mk-coin--locked {
  opacity: 0.28;
  filter: grayscale(0.85);
  background: #e8e4dc;
  color: #888;
}
.mk-coin--earned.mk-coin--bronze {
  background: linear-gradient(145deg, #e8a060, #b87333);
  color: #2a1a0a;
  border-color: #8b5a28;
  opacity: 1;
  filter: none;
  box-shadow: 0 2px 8px rgba(184, 115, 51, 0.45);
}
.mk-coin--earned.mk-coin--silver {
  background: linear-gradient(145deg, #f0f0f5, #b8b8c8);
  color: #2a2a32;
  border-color: #9090a0;
  opacity: 1;
  filter: none;
  box-shadow: 0 2px 8px rgba(140, 140, 160, 0.4);
}
.mk-coin--earned.mk-coin--gold {
  background: linear-gradient(145deg, #ffe8a0, #e8b020);
  color: #3d2808;
  border-color: #c9a020;
  opacity: 1;
  filter: none;
  box-shadow: 0 2px 10px rgba(232, 176, 32, 0.55);
}
.mk-hint {
  margin: 0.35rem 0 0;
  font-size: 0.58rem;
  color: rgba(50, 45, 38, 0.5);
  line-height: 1.35;
}

/* Protocole — engagement / signature lisibles sur fond sombre */
.proto-commit-heading {
  color: #f8f4ec;
  font-weight: 700;
  margin-bottom: 0.75rem;
}
.proto-signature-label {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  background: rgba(255, 252, 245, 0.97);
  border: 1px solid rgba(201, 169, 98, 0.45);
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.12);
  cursor: pointer;
}
.proto-signature-cb {
  margin-top: 0.2rem;
  flex-shrink: 0;
  width: 1.05rem;
  height: 1.05rem;
  accent-color: #8b6914;
}
.proto-signature-text {
  color: #1c1b18;
  font-size: 0.82rem;
  line-height: 1.45;
  font-weight: 600;
}

/* SAT — écran d’orientation (EN) */
.sat-intro-panel {
  max-width: 640px;
  margin: 0 auto;
  padding: 1.25rem 1.35rem 1.5rem;
  border-radius: 14px;
  border: 1px solid rgba(88, 132, 188, 0.28);
  background: linear-gradient(165deg, #f7faff, #ffffff);
  box-shadow: 0 6px 28px rgba(40, 80, 140, 0.08);
}
.sat-intro-lead {
  font-size: 0.88rem;
  line-height: 1.55;
  color: #243248;
  margin: 0 0 1rem;
}
.sat-intro-h3 {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(36, 50, 72, 0.75);
  margin: 1.1rem 0 0.45rem;
}
.sat-intro-list {
  margin: 0 0 0.35rem;
  padding-left: 1.15rem;
  color: #2a3548;
  font-size: 0.82rem;
  line-height: 1.5;
}
.sat-intro-list li {
  margin-bottom: 0.35rem;
}
.sat-intro-note {
  font-size: 0.68rem;
  color: rgba(36, 50, 72, 0.55);
  margin: 1rem 0 0.85rem;
  line-height: 1.4;
}
.sat-intro-check-label {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #1a2740;
  margin-bottom: 1rem;
  cursor: pointer;
}
.sat-intro-check-label input {
  margin-top: 0.15rem;
  accent-color: #2a5a9e;
}
.sat-intro-continue {
  width: 100%;
  max-width: 420px;
  display: block;
  margin: 0 auto;
}

.sat-hub-modes {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (max-width: 720px) {
  .sat-hub-modes {
    grid-template-columns: 1fr;
  }
}
.sat-hub-pick--hardcore {
  border-color: rgba(160, 56, 56, 0.35);
  background: linear-gradient(145deg, #fff8f6, #ffffff);
}
.sat-hub-pick--hardcore:hover {
  border-color: rgba(180, 70, 70, 0.5);
  box-shadow: 0 8px 28px rgba(160, 60, 60, 0.12);
}
.sat-hub-pick--hardcore .sat-sub-badge {
  color: #a03838;
}

/* Révision finale — zone séparée, cartes visibles */
.revision-final-zone {
  grid-column: 1 / -1;
  margin-bottom: 1.35rem;
  padding: 1.15rem 1.2rem 1.25rem;
  border-radius: 14px;
  border: 2px solid rgba(100, 72, 140, 0.35);
  background: linear-gradient(160deg, #f9f6ff, #ffffff);
  box-shadow: 0 6px 24px rgba(80, 50, 120, 0.08);
}
.revision-final-heading {
  font-family: "Playfair Display", serif;
  font-size: 1rem;
  font-weight: 700;
  color: #3a2a58;
  margin: 0 0 0.35rem;
}
.revision-final-desc {
  margin: 0 0 0.9rem;
  font-size: 0.75rem;
  line-height: 1.45;
  color: rgba(50, 40, 80, 0.72);
}
.revision-final-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 0.85rem;
}
#screen-app.portal-premium .card-qcm-chapter.card-qcm-revision {
  border-color: rgba(100, 72, 140, 0.42);
  background: linear-gradient(165deg, #faf7ff, #f3ecff);
  box-shadow: 0 6px 22px rgba(90, 60, 130, 0.1);
}
#screen-app.portal-premium .card-qcm-chapter.card-qcm-revision:hover {
  border-color: rgba(100, 72, 140, 0.58);
  box-shadow: 0 10px 32px rgba(90, 60, 130, 0.14);
}
#screen-app.portal-premium .card-qcm-chapter.card-qcm-revision .qcm-ch-pill {
  background: rgba(100, 72, 140, 0.18);
  color: #5a3a88;
}

/* QCM chapitre — palette sobre (plus d’arc-en-ciel) */
#screen-app.portal-premium .card-qcm-chapter.qcm-ch-theme-pro {
  background: linear-gradient(165deg, #ffffff, #f7f5f0);
  border: 2px solid rgba(120, 105, 75, 0.22);
  box-shadow: 0 4px 18px rgba(60, 50, 35, 0.05);
}
#screen-app.portal-premium .card-qcm-chapter.qcm-ch-theme-pro:hover {
  border-color: rgba(140, 120, 85, 0.38);
  box-shadow: 0 10px 30px rgba(100, 85, 55, 0.1);
}
#screen-app.portal-premium .card-qcm-chapter.qcm-ch-theme-pro .qcm-ch-pill {
  background: rgba(90, 85, 70, 0.12);
  color: #4a4538;
}
#screen-app.portal-premium .card-qcm-chapter.qcm-ch-open-variant {
  border-style: dashed;
  border-color: rgba(100, 95, 80, 0.28);
  background: linear-gradient(165deg, #fafaf8, #f3f2ed);
}
#screen-app.portal-premium .card-qcm-chapter.qcm-ch-open-variant .qcm-ch-pill {
  background: rgba(70, 90, 110, 0.1);
  color: #3d4d5c;
}

/* Performance — filtres graphique */
.perf-chart-filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem 1.25rem;
  margin-bottom: 0.75rem;
  align-items: end;
}
.perf-filter-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.perf-filter-label {
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(40, 36, 32, 0.5);
  font-weight: 600;
}
