/* Tutoriel de prise en main (js/tour.js) : fenêtre modale centrée, illustration en haut, indicateur d'étape et boutons en bas. */
html.tr-lock { overflow: hidden; }
.tr { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 16px; }
.tr-ov { position: absolute; inset: 0; background: color-mix(in oklab, #0b1418 62%, transparent); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); animation: tr-fade 0.2s ease both; }
.tr-dlg { position: relative; width: min(100%, 420px); max-height: calc(100dvh - 32px); overflow-y: auto; display: grid; padding: 8px; border-radius: 22px;
  background: var(--surface); color: var(--fg); border: 1px solid var(--line); box-shadow: 0 24px 60px -20px rgb(0 0 0 / 0.45); animation: tr-pop 0.22s cubic-bezier(0.22, 1, 0.36, 1) both; }
.tr.out .tr-ov { animation: tr-fade 0.18s ease reverse both; }
.tr.out .tr-dlg { animation: tr-pop 0.18s ease reverse both; }
@keyframes tr-fade { from { opacity: 0; } }
@keyframes tr-pop { from { opacity: 0; transform: translateY(8px) scale(0.96); } }

.tr-x { position: absolute; top: 14px; right: 14px; z-index: 1; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 10px; border: 0; cursor: pointer;
  background: color-mix(in oklab, var(--surface) 80%, transparent); color: var(--muted); }
.tr-x:hover { color: var(--fg); }
.tr-x svg { width: 16px; height: 16px; }
.tr-dlg :focus-visible { outline: 2px solid color-mix(in oklab, var(--primary) 70%, transparent); outline-offset: 2px; }

.tr-swap.in-r { animation: tr-in-r 0.28s ease both; }
.tr-swap.in-l { animation: tr-in-l 0.28s ease both; }
@keyframes tr-in-r { from { opacity: 0; transform: translateX(14px); } }
@keyframes tr-in-l { from { opacity: 0; transform: translateX(-14px); } }

.tr-media { height: 196px; border-radius: 15px; overflow: hidden; display: grid; place-items: center; padding: 20px;
  background: radial-gradient(120% 90% at 20% 0%, color-mix(in oklab, var(--primary) 22%, transparent), transparent 60%),
    radial-gradient(90% 80% at 100% 100%, color-mix(in oklab, var(--accent) 22%, transparent), transparent 60%), var(--surface-2); }
.tr-body { display: grid; gap: 6px; padding: 18px 16px 6px; }
.tr-kick { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0; text-transform: none; color: var(--primary); }
.tr-body h2 { font-size: 19px; letter-spacing: -0.02em; }
.tr-body p:last-child { font-size: 14px; line-height: 1.5; color: var(--muted); }

.tr-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px 12px; }
.tr-dots { display: flex; gap: 6px; }
.tr-dots i { width: 6px; height: 6px; border-radius: 99px; background: var(--fg); opacity: 0.2; transition: width 0.25s ease, opacity 0.25s ease; }
.tr-dots i.on { width: 18px; opacity: 1; background: var(--primary); }
.tr-btns { display: flex; gap: 6px; }
.tr-btns .btn { height: 40px; padding: 0 14px; font-size: 14px; }
.tr-btns .ic-w { width: 16px; height: 16px; margin-left: 4px; opacity: 0.7; }

.tr-replay { justify-self: start; }

/* Illustrations */
.tr-art { width: 100%; max-width: 300px; display: grid; gap: 10px; }
.tr-job { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 8px 20px -14px rgb(0 0 0 / 0.4); }
.tr-job:nth-child(2) { opacity: 0.75; transform: scale(0.95); }
.tr-job > span { flex: 1; min-width: 0; display: grid; font-size: 13px; }
.tr-job em { font-style: normal; font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tr-logo { width: 30px; height: 30px; border-radius: 9px; background: var(--primary); flex: none; }
.tr-job:nth-child(2) .tr-logo { background: var(--accent); }
.tr-board { grid-template-columns: repeat(3, 1fr); }
.tr-board div { display: grid; align-content: start; gap: 6px; padding: 8px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); min-height: 120px; }
.tr-board span { font-size: 11px; font-weight: 600; color: var(--muted); }
.tr-board .tk { height: 26px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface-2); }
.tr-board .tk.ok { border-color: var(--good); background: color-mix(in oklab, var(--good) 14%, transparent); }
.tr-chat p { max-width: 85%; padding: 9px 12px; border-radius: 14px; font-size: 13px; line-height: 1.4; }
.tr-chat .me { justify-self: end; background: var(--fg); color: var(--bg); border-bottom-right-radius: 4px; }
.tr-chat .ai { background: var(--surface); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.tr-zone { grid-template-columns: auto 1fr; align-items: center; gap: 16px; }
.tr-rings { position: relative; width: 104px; height: 104px; display: grid; place-items: center; }
.tr-rings i { position: absolute; border-radius: 50%; border: 1px dashed color-mix(in oklab, var(--primary) 45%, transparent); }
.tr-rings i:nth-child(1) { inset: 0; } .tr-rings i:nth-child(2) { inset: 18px; } .tr-rings i:nth-child(3) { inset: 36px; background: color-mix(in oklab, var(--primary) 14%, transparent); border-style: solid; }
.tr-rings b { position: relative; width: 22px; height: 22px; color: var(--primary); }
.tr-tags { display: grid; gap: 6px; justify-items: start; }
.tr-tags span { font-size: 12px; padding: 5px 10px; border-radius: 99px; background: var(--surface); border: 1px solid var(--line); }

@media (max-width: 480px) {
  .tr-media { height: 176px; padding: 42px 14px 14px; }
  .tr-board div { min-height: 104px; }
  .tr-foot { flex-direction: column-reverse; align-items: stretch; }
  .tr-dots { justify-content: center; }
  .tr-btns .btn { padding: 0 12px; }
  .tr-btns .btn-liquid { flex: 1; justify-content: center; }
  .tr-btns .btn[hidden] { display: none; }
}
@media (prefers-reduced-motion: reduce) { .tr-ov, .tr-dlg, .tr-swap.in-r, .tr-swap.in-l { animation: none !important; } }
