/*
 * [HOME-MONITOR-CHAPITRES-20260929] Ordinateur uniquement : l'écran virtuel
 * n'est plus l'app interactive (iframe masquée, maquette statique à la
 * place) — menu noir des sections à gauche (Cours, Exercices, Colles,
 * Annales, Défis, Événements ; Colles réservé à la prépa, « Moi » calé
 * en bas), chapitres de mathématiques à
 * droite. Téléphone et tablette inchangés (iframe interactive conservée).
 * [HOME-MONITOR-TITRE-20261001] Le titre filière/année passe sur deux
 * lignes : jamais tronqué (ni nowrap ni ellipse). Retrait de 64 px à
 * droite : l’écran déborde de la fenêtre (fond perdu volontaire),
 * le texte reste donc dans la zone visible ; coupe de mot en dernier
 * recours sur les fenêtres très basses.
 */

.monitor-chapters {
  position: absolute;
  z-index: 2;
  inset: 0;
  display: none;
  overflow: hidden;
  border-radius: inherit;
  background: #fff;
  color: #111;
  font-size: 12px;
  line-height: 1.35;
  text-align: left;
}

.monitor-chapters-menu {
  flex: none;
  width: 148px;
  background: #000;
  color: #fff;
  padding: 14px 10px;
  display: flex;
  flex-direction: column;
}

.monitor-chapters-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.monitor-chapters-menu li {
  margin: 0;
  padding: 7px 10px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.55);
}

.monitor-chapters-menu li[aria-current="true"] {
  background: #fff;
  color: #000;
}

.monitor-chapters-menu li[hidden] {
  display: none;
}

.monitor-chapters-moi {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  font-size: 12.5px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.85);
}

.monitor-chapters-moi svg {
  flex: none;
  display: block;
}

.monitor-chapters-list {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 12px 16px 0;
}

.monitor-chapters-heading {
  margin: 0 64px 4px 0;
  font-size: 13px;
  font-weight: 800;
  overflow-wrap: break-word;
}

.monitor-chapters-items {
  list-style: none;
  flex: 1 1 auto;
  margin: 0;
  padding: 0 0 14px;
  overflow: hidden;
  mask-image: linear-gradient(#000 84%, transparent 100%);
}

.monitor-chapters-items li {
  margin: 0;
  padding: 5px 0;
  border-bottom: 1px solid #ececec;
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (min-width: 1001px) {
  .hero-trial-phone .trial-phone-screen .rn-demo-frame {
    display: none;
  }

  .hero-trial-phone .trial-phone-screen .monitor-chapters {
    display: flex;
  }
}
