/* Tutoriel « projecteur » de la console (web/console-tour.js) : écran assombri,
   zone à cliquer éclairée, carte d'instruction posée à côté. Classes mlt-. */
.mlt-root {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  box-sizing: border-box;
  width: auto;
  height: auto;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  overflow: hidden;
  background: transparent;
  color: var(--stone-900, #25231C);
  font-family: "Archivo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 14.5px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: normal;
  text-align: left;
  pointer-events: none;
  opacity: 0;
  transition: opacity 220ms ease;
  -webkit-tap-highlight-color: transparent;
}
.mlt-root *, .mlt-root *::before, .mlt-root *::after { box-sizing: border-box; }
.mlt-root [hidden] { display: none !important; }
.mlt-root.mlt-on { opacity: 1; }
.mlt-root.mlt-leaving { opacity: 0; transition-duration: 160ms; }
.mlt-root.mlt-leaving * { pointer-events: none !important; }

/* Assombrissement : un seul tracé, tout l'écran moins la zone éclairée. */
.mlt-shade { position: absolute; inset: 0; display: block; width: 100%; height: 100%; overflow: hidden; pointer-events: none; }
.mlt-dim { fill: rgba(20, 18, 12, .62); }
.mlt-ring { fill: none; stroke: rgba(255, 255, 255, .8); stroke-width: 1.5px; }
.mlt-nudge .mlt-ring { animation: mlt-nudge 420ms ease-out; }
@keyframes mlt-nudge {
  0% { stroke-width: 1.5px; stroke: rgba(255, 255, 255, .8); }
  35% { stroke-width: 5px; stroke: #fff; }
  100% { stroke-width: 1.5px; stroke: rgba(255, 255, 255, .8); }
}

/* Panneaux transparents : tout clic hors de la zone éclairée s'arrête ici. */
.mlt-block { position: absolute; left: 0; top: 0; width: 0; height: 0; background: transparent; cursor: default; pointer-events: auto; }

.mlt-card {
  position: absolute;
  left: 0;
  top: 0;
  width: min(340px, calc(100vw - 24px));
  max-height: calc(100vh - 24px);
  max-height: calc(100dvh - 24px);
  overflow: auto;
  overscroll-behavior: contain;
  padding: 14px 18px 16px 20px;
  border: 1px solid rgba(37, 35, 28, .08);
  border-radius: 16px;
  background: #fff;
  color: var(--stone-900, #25231C);
  box-shadow: 0 1px 2px rgba(18, 18, 16, .08), 0 16px 44px rgba(18, 18, 16, .22);
  outline: none;
  pointer-events: auto;
}

.mlt-head { display: flex; align-items: center; gap: 10px; min-height: 32px; margin: 0 -8px 6px 0; }
.mlt-progress { flex: none; color: var(--muted, #68645C); font-size: 12.5px; font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums; white-space: nowrap; }
.mlt-dots { display: flex; flex: 1; align-items: center; gap: 5px; min-width: 0; overflow: hidden; }
.mlt-dot { flex: none; width: 6px; height: 6px; border-radius: 999px; background: var(--stone-200, #DCD9D2); transition: width 220ms ease, background-color 220ms ease; }
.mlt-dot.is-done { background: var(--muted, #68645C); }
.mlt-dot.is-current { width: 16px; background: var(--action, #254EBC); }
.mlt-close {
  display: grid;
  flex: none;
  width: 32px;
  height: 32px;
  margin: 0 0 0 auto;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted, #68645C);
  cursor: pointer;
  transition: background-color 150ms ease, color 150ms ease;
}
.mlt-close:hover { background: var(--stone-100, #EAE8E2); color: var(--stone-900, #25231C); }
.mlt-close svg { display: block; }

.mlt-title {
  margin: 0 0 6px;
  color: var(--stone-900, #25231C);
  font-family: "Archivo", system-ui, sans-serif;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -.015em;
  overflow-wrap: break-word;
}
.mlt-body { margin: 0; color: var(--stone-900, #25231C); font-size: 14.5px; font-weight: 400; line-height: 1.5; white-space: pre-line; overflow-wrap: break-word; }
.mlt-title, .mlt-body, .mlt-btn { transition: opacity 150ms ease; }
.mlt-waiting .mlt-title, .mlt-waiting .mlt-body, .mlt-waiting .mlt-btn { opacity: .45; }

.mlt-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; min-height: 38px; margin-top: 14px; }
.mlt-skip {
  margin: 0;
  padding: 6px 0;
  border: 0;
  border-radius: 6px;
  background: none;
  color: var(--muted, #68645C);
  font: inherit;
  font-size: 13px;
  line-height: 1.3;
  text-decoration: underline;
  text-decoration-color: var(--stone-200, #DCD9D2);
  text-underline-offset: 3px;
  cursor: pointer;
  transition: color 150ms ease, text-decoration-color 150ms ease;
}
.mlt-skip:hover { color: var(--stone-900, #25231C); text-decoration-color: currentColor; }
.mlt-actions { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.mlt-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  min-height: 0;
  margin: 0;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 10px;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 150ms ease, opacity 150ms ease, transform 120ms ease;
}
.mlt-btn:active { transform: scale(.98); }
.mlt-btn-primary { background: #25231C; color: #fff; }
.mlt-btn-primary:hover { background: #3B3830; }
.mlt-btn-ghost { padding: 0 12px; background: transparent; color: var(--stone-900, #25231C); }
.mlt-btn-ghost:hover { background: var(--stone-100, #EAE8E2); }
.mlt-close:focus-visible, .mlt-skip:focus-visible, .mlt-btn:focus-visible { outline: 3px solid var(--action, #254EBC); outline-offset: 2px; }

.mlt-live { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

/* Sous 720 px : panneau ancré en bas, ou en haut si la cible est en bas. */
.mlt-card.mlt-docked {
  left: 10px;
  right: 10px;
  top: auto;
  bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  width: auto;
  max-height: min(60vh, calc(100vh - 20px));
  padding: 14px 16px 16px 18px;
}
.mlt-card.mlt-docked.mlt-dock-top { top: calc(10px + env(safe-area-inset-top, 0px)); bottom: auto; }
.mlt-card.mlt-dock-bottom { animation: mlt-rise 220ms ease-out; }
.mlt-card.mlt-dock-top { animation: mlt-drop 220ms ease-out; }
.mlt-docked .mlt-close { width: 36px; height: 36px; }
.mlt-docked .mlt-btn { height: 42px; padding: 0 18px; }
.mlt-docked .mlt-btn-ghost { padding: 0 14px; }
.mlt-docked .mlt-skip { padding: 10px 0; }
@keyframes mlt-rise { from { opacity: 0; transform: translateY(12px); } }
@keyframes mlt-drop { from { opacity: 0; transform: translateY(-12px); } }

@media (prefers-reduced-motion: reduce) {
  .mlt-root, .mlt-root * { animation: none !important; transition: none !important; }
}
