/* Démo publique (31 oct 2026) : ?demo=1. Bandeau du haut, couvertures verrouillées, fin de démo dans le lecteur.
   Même habillage que le Cockpit (noir, ambre). Tout est sous html.dm : rien ne change pour les élèves. */
:root{--dm-h:40px}
.dm-bar{display:none}
.dm .dm-bar{position:fixed;top:0;left:0;right:0;z-index:60;height:var(--dm-h);display:flex;align-items:center;justify-content:center;gap:18px;padding:0 16px;background:#0c0c0d;border-bottom:1px solid var(--ck-line);color:var(--ck-ink2);font-size:14px;white-space:nowrap}
.dm .dm-bar > span{display:flex;align-items:center;gap:8px;min-width:0;overflow:hidden}
.dm .dm-bar b{color:var(--ck-amber);font-weight:700;letter-spacing:.01em}
.dm .dm-bar i{font-style:normal;color:var(--ck-mut)}
.dm .dm-bar .dm-long{overflow:hidden;text-overflow:ellipsis}
.dm .dm-bar a{display:inline-flex;align-items:center;gap:6px;flex:none;color:var(--ck-amber-ink);background:var(--ck-amber);font-weight:700;font-size:13px;padding:6px 14px;border-radius:999px;text-decoration:none}
.dm .dm-bar a .ic{width:14px;height:14px}
/* tout descend de la hauteur du bandeau : le cadre, la barre du haut, le lecteur */
.dm .ck-shell{height:calc(100dvh - var(--dm-h));margin-top:var(--dm-h)}
.dm .ck-main{height:calc(100dvh - var(--dm-h))}
.dm .ck-top{top:var(--dm-h)}
.dm .rd{top:var(--dm-h)}
@media (max-width:700px){
  .dm .dm-bar{justify-content:space-between;gap:10px}
  .dm .dm-bar .dm-long,.dm .dm-bar i{display:none}
}
/* couverture d'une matière hors démo */
.ck-im.lock img{filter:brightness(.85)}
.ck-im.lock .ck-pct{display:grid;place-items:center;padding:6px}
.ck-im.lock .ck-pct .ic{width:16px;height:16px}
.ck-meta .ic{width:14px;height:14px;vertical-align:-2px}
/* lecteur : sous les pages ouvertes */
.dm-end{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:14px 22px;margin:28px auto 40px;padding:20px 24px;max-width:640px;border:1px solid var(--ck-line);border-radius:18px;background:#0c0c0d;color:var(--ck-ink2);font-size:15px;text-align:center}
.dm-end b{color:var(--ck-ink)}
.dm-end .ck-btn{font-size:16px;padding:12px 24px}
.dm-end .ck-btn .ic{width:16px;height:16px}
/* fenêtres de la démo : deux boutons qui tiennent sur un iPhone */
.dm .m-acts{flex-wrap:wrap}
@media (max-width:700px){.dm .m-acts{flex-direction:column-reverse}.dm .m-acts .btn{width:100%;margin:0}}
