/* Les cinq workflows de l'accueil */
.wf { margin-top: 32px; }
.wf-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.wf-tab { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border: 1px solid var(--kw-rule); border-radius: 8px;
  background: transparent; color: var(--kw-body); font: 500 14px Geist, system-ui, sans-serif; cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease; }
.wf-tab .kd-pic { width: 18px; height: 18px; margin: 0; }
.wf-tab:hover { background: var(--kw-raise); }
.wf-tab[aria-selected="true"] { background: var(--kw-invert-bg); color: var(--kw-invert-fg); border-color: transparent; }
.wf-tab[aria-selected="true"] .kd-pic { color: inherit; }
.wf-promise { margin: 0 0 16px; color: var(--kw-fg); font-size: 15px; }
.wf-promise a { color: var(--kw-body); margin-left: 6px; }
.wf-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px;
  counter-reset: wf; }
.wf-step { position: relative; padding: 12px; border: 1px solid var(--kw-rule); border-radius: 10px; min-width: 0; }
.wf-step b { display: block; margin-top: 8px; font: 500 13px/1.3 'Geist Mono', monospace; color: var(--kw-fg); word-break: break-word; }
.wf-step small { display: block; margin-top: 4px; font-size: 12.5px; line-height: 1.4; color: var(--kw-body); }
.wf-step em { display: inline-block; margin-top: 8px; font: normal 500 11px 'Geist Mono', monospace; color: var(--kw-mut); }
.wf-step::before { counter-increment: wf; content: counter(wf); position: absolute; top: 10px; right: 12px;
  font: 500 11px 'Geist Mono', monospace; color: var(--kw-mut); }
.wf-dot { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--wf-c-bg); }
.wf-dot .kd-pic { width: 17px; height: 17px; margin: 0; color: var(--wf-c); }
.wf-skill { --wf-c: var(--kd-blue); }
.wf-garde { --wf-c: var(--kd-red); }
.wf-hook { --wf-c: var(--kd-amber); }
.wf-agent { --wf-c: var(--kd-violet); }
.wf-vous { --wf-c: var(--kd-green); }
.wf-doc { --wf-c: var(--kd-teal); }
.wf-skill, .wf-garde, .wf-hook, .wf-agent, .wf-vous, .wf-doc { --wf-c-bg: color-mix(in srgb, var(--wf-c) 14%, transparent); }
.wf-vous b { color: var(--kd-green); }
.wf-legend { display: flex; flex-wrap: wrap; gap: 8px 18px; list-style: none; margin: 18px 0 0; padding: 0; font-size: 13px; color: var(--kw-mut); }
.wf-legend li { display: inline-flex; align-items: center; gap: 6px; }
.wf-legend .wf-dot { width: 22px; height: 22px; }
.wf-legend .wf-dot .kd-pic { width: 13px; height: 13px; }
/* apparition des étapes l'une après l'autre */
.wf-wait .wf-step { opacity: 0; }
.wf-play .wf-step { animation: wf-in .45s cubic-bezier(.34, 1.4, .64, 1) both; animation-delay: calc(var(--i) * 110ms); }
.wf-play .wf-dot { animation: wf-dot .5s ease both; animation-delay: calc(var(--i) * 110ms + 120ms); }
@keyframes wf-in { from { opacity: 0; transform: translateY(10px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes wf-dot { 0% { transform: scale(.6); } 60% { transform: scale(1.12); } 100% { transform: none; } }
@media (hover: hover) { .wf-step { transition: border-color .2s ease, transform .2s ease; } .wf-step:hover { border-color: var(--wf-c); transform: translateY(-2px); } }
@media (max-width: 600px) {
  .wf-steps { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .wf-step { display: grid; grid-template-columns: 30px minmax(0, 1fr); column-gap: 12px; padding: 10px 12px; }
  .wf-step .wf-dot { grid-row: span 2; }
  .wf-step b { margin-top: 0; }
  .wf-step em { display: none; }
  .wf-tab { padding: 7px 10px; }
  .wf-tab span { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .wf-wait .wf-step { opacity: 1; }
  .wf-play .wf-step, .wf-play .wf-dot { animation: none; }
  .wf-step, .wf-tab { transition: none; }
  .wf-step:hover { transform: none; }
}
.fl-picker { margin-top: 24px; }
.fl-picker .wf-tabs { margin-bottom: 6px; }
