/* =============================================================================
   Applipro, démo guidée de l'onboarding (ouverte depuis la page Onboarding).
   Même scène et mêmes consignes que la démo du livret (guide.css) ; cette feuille
   n'ajoute que les trois écrans propres à l'onboarding, refaits d'après le
   back-office : le modèle de parcours et sa palette d'actions, l'assignation,
   l'avancement et les relances. Puis le téléphone d'Emma.
   ============================================================================= */

.go .gx-screen { padding-bottom: 20px; }
.go-ic { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--c, #DCE7FF); }
.go-ic svg { width: 14px; height: 14px; fill: var(--f, #1E4FD0); }

/* --- Écran 1 : le modèle de parcours, ses étapes, la palette des actions --- */
.go-cols { display: grid; grid-template-columns: minmax(0, 1fr) 232px; gap: 20px; align-items: start; margin-top: 12px; }
.go-set { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 14px; border-radius: 10px; background: #fff; box-shadow: 0 0 0 1px #E3E6EE; }
.go-set b { display: block; font-size: 13.5px; font-weight: 700; }
.go-set small { font-size: 11.5px; color: #7A8194; }
.go-sel { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex: none; width: 220px; padding: 8px 11px; border: 1px solid #DCDFE8; border-radius: 7px; background: #fff; font-size: 13px; }
.go-sel::after { content: ''; flex: none; width: 6px; height: 6px; margin-top: -3px; border-right: 1.5px solid #7A8194; border-bottom: 1.5px solid #7A8194; transform: rotate(45deg); }
.go-sel .bo-menu { left: 0; right: 0; top: calc(100% + 4px); bottom: auto; }
.go-step { margin-top: 10px; overflow: hidden; border-radius: 10px; background: #fff; box-shadow: 0 0 0 1px #E3E6EE; }
.go-step > p { padding: 9px 14px; background: #14162B; color: #fff; font-size: 14px; font-weight: 700; }
.go-acts { display: grid; gap: 6px; padding: 8px; }
.go-acts li, .go-pal li { display: flex; align-items: center; gap: 10px; min-height: 38px; padding: 6px 10px; border-radius: 8px; background: #fff; box-shadow: 0 0 0 1px #E6E8EF; font-size: 13.5px; font-weight: 600; }
.go-acts li b { margin-left: auto; padding: 4px 8px; border-radius: 6px; background: #E8F0FF; color: #1E4FD0; font-size: 11.5px; font-weight: 700; }
.go-acts li[data-go-new] { display: none; }
.go-acts li[data-go-new].is-in { display: flex; animation: gx-in .5s var(--ease) both; }
.go-pal { padding: 12px 10px 10px; border-radius: 12px; background: #fff; box-shadow: 0 0 0 1px #E3E6EE; }
.go-pal > p { margin: 0 4px 9px; font-size: 14px; font-weight: 700; }
.go-pal ul { display: grid; gap: 6px; }
.go-pal li { min-height: 36px; font-size: 13px; }
/* Chaque action de la palette se prend par sa poignée */
.go-grip { flex: none; width: 8px; height: 14px; background-image: radial-gradient(circle, #B4BACB 1.3px, transparent 1.5px); background-size: 4px 5px; }
.go-pal li { gap: 8px; }
.go-acts li.go-slot { display: none; min-height: 38px; justify-content: center; border: 1.5px dashed #3B6FE0; box-shadow: none; background: #EEF3FF; color: #1E4FD0; font-size: 12.5px; font-weight: 600; }
.go-acts li.go-slot.is-on { display: flex; animation: gx-in .3s var(--ease) both; }
.go-ghost { position: absolute; z-index: 8; display: flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 8px; background: #fff; box-shadow: 0 0 0 1px #E6E8EF; font-family: 'Roboto', 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif; font-size: 13px; font-weight: 600; color: #1C2333; pointer-events: none; transition: transform .8s var(--ease), box-shadow .25s ease, opacity .25s ease; }
.go-ghost.is-up { box-shadow: 0 0 0 1.5px #3B6FE0, 0 22px 34px -14px rgba(18, 22, 36, .55); }
.go-ghost.is-out { opacity: 0; }
.go-set small { display: block; transition: color .3s ease; }
.go-set small.is-set { color: #1E4FD0; font-weight: 600; }

/* --- Écran 2 : assigner et programmer --- */
.go-card { margin-top: 10px; padding: 12px 16px 14px; border-radius: 10px; background: #fff; box-shadow: 0 0 0 1px #E3E6EE, 0 2px 5px -3px rgba(18, 22, 36, .2); }
.go-card-t { font-size: 14.5px; font-weight: 700; }
.go-card-t small { margin-left: 8px; font-size: 12px; font-weight: 500; color: #7A8194; }
.go-field { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-height: 40px; margin-top: 8px; padding: 6px 11px; border: 1px solid #DCDFE8; border-radius: 7px; font-size: 13.5px; }
.go-field em { font-style: normal; color: #B4BACB; }
.go-field .bo-chip { display: none; border-radius: 99px; padding: 6px 11px; }
.go-field .bo-chip.is-in { display: inline-block; animation: gx-in .4s var(--ease) both; }
.go-people { left: 0; right: 0; top: calc(100% + 4px); bottom: auto; }
.go-people li { display: flex; align-items: center; gap: 11px; padding: 7px 10px; }
.go-people li span:last-child { font-weight: 600; }
.go-people small { display: block; font-size: 11.5px; font-weight: 500; color: #7A8194; }
.go-people .prep-avatar { width: 30px; height: 30px; box-shadow: none; }
.go-grp { flex: none; width: 30px; height: 30px; border-radius: 50%; background: #EEF0F6 radial-gradient(circle at 50% 38%, #9AA1B2 0 5px, transparent 5.5px), radial-gradient(ellipse at 50% 100%, #9AA1B2 0 11px, transparent 11.5px); }
.go-line { display: flex; align-items: center; gap: 12px; margin-top: 9px; font-size: 13.5px; color: #5B6272; }
.go-line > span:first-child { flex: none; width: 150px; }
.go-line b { font-weight: 600; color: #1C2333; }
.go-line--tog > span:first-child, .go-line--tog span { width: auto; color: #1C2333; }
.go-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; padding-top: 12px; border-top: 1px solid #EEF0F5; }

/* --- Écran 3 : le suivi des quatre, puis le détail de la ligne choisie --- */
.go-when { margin-left: 10px; padding: 5px 10px; border-radius: 99px; background: #EEF3FF; color: #1E4FD0; font-size: 12px; font-weight: 600; vertical-align: 3px; }
.go-suivi { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 14px; align-items: start; margin-top: 12px; }
.go-list { border-radius: 10px; background: #fff; box-shadow: 0 0 0 1px #E3E6EE; }
.go-lh { display: flex; justify-content: space-between; padding: 10px 16px; font-size: 12px; font-weight: 700; color: #5B6272; }
.go-lh span:last-child { width: 170px; }
.go-row { display: grid; grid-template-columns: 38px minmax(0, 1fr) 96px 62px; align-items: center; column-gap: 12px; min-height: 62px; padding: 9px 16px; border-top: 1px solid #EEF0F5; font-size: 13.5px; transition: background .3s ease; }
.go-row.is-sel { background: #F3F6FF; box-shadow: inset 3px 0 0 #3B6FE0; }
.go-row:last-child { border-radius: 0 0 10px 10px; }
.go-row .prep-avatar { width: 38px; height: 38px; box-shadow: none; }
.go-ini { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: #E9ECF4; color: #3A4256; font-size: 12.5px; font-style: normal; font-weight: 700; }
.go-row b { display: block; font-weight: 700; }
.go-row small { font-size: 12px; color: #7A8194; }
.go-bar { height: 7px; overflow: hidden; border-radius: 9px; background: #E6E9F1; }
.go-bar u { display: block; height: 100%; border-radius: 9px; background: #0C7A53; }
.go-row > span { font-size: 12.5px; font-weight: 600; text-align: right; color: #1C2333; }
.go-row--late small { color: #B4540A; font-weight: 600; }
.go-row > span.go-late { grid-column: 3 / -1; justify-self: end; padding: 5px 9px; border-radius: 99px; background: #FFEBD6; color: #A14A00; font-size: 11.5px; white-space: nowrap; }
.go-row--late .go-bar { display: none; }
.go-side { display: grid; }
.go-pane { grid-area: 1 / 1; padding: 12px 16px 12px; border-radius: 10px; background: #fff; box-shadow: 0 0 0 1px #E3E6EE; opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .35s ease, visibility .35s, transform .45s var(--ease); }
.go-pane.is-on { opacity: 1; visibility: visible; transform: none; }
.go-etapes { margin-top: 6px; }
.go-etapes li { display: grid; grid-template-columns: 20px minmax(0, 1fr); align-items: center; gap: 12px; padding: 10px 0; font-size: 13.5px; }
.go-etapes li + li { border-top: 1px solid #EEF0F5; }
.go-etapes i { width: 20px; height: 20px; border-radius: 50%; box-shadow: inset 0 0 0 2px #CFD4E0; }
.go-etapes li.is-cur i { box-shadow: inset 0 0 0 2px #0C7A53, inset 0 0 0 6px #fff; background: #0C7A53; }
.go-etapes li.go-att i { border-radius: 5px; }
.go-etapes b { display: block; font-weight: 700; }
.go-etapes small { font-size: 12px; color: #7A8194; }
.go-etapes li.is-cur small { color: #0C7A53; font-weight: 600; }
/* Les relances : ce qui est parti, ce qui partira, vers qui */
.go-rel { margin-top: 6px; }
.go-rel li { display: grid; grid-template-columns: 86px minmax(0, 1fr); column-gap: 12px; row-gap: 2px; padding: 10px 0; font-size: 13px; }
.go-rel li + li { border-top: 1px solid #EEF0F5; }
.go-rel li b { grid-row: span 2; align-self: start; justify-self: start; padding: 4px 9px; border-radius: 99px; background: #EEF0F6; color: #3A4256; font-size: 11.5px; font-weight: 700; white-space: nowrap; }
.go-rel li.is-done b { background: #D8F0E5; color: #00664A; }
.go-rel li span { font-weight: 700; color: #1C2333; }
.go-rel li em { font-size: 12px; font-style: normal; color: #7A8194; }
.go-canaux { margin-top: 4px; padding-top: 10px; border-top: 1px solid #EEF0F5; font-size: 12.5px; line-height: 1.45; color: #5B6272; }

/* --- Le téléphone d'Emma --- */
/* Le téléphone se cale en haut de la scène : la consigne garde de la place en dessous */
.js .go .gx-app { align-self: start; padding-top: 4px; }
.go .gx-phones { align-items: center; gap: 34px; }
.go-scr { padding-top: 12px; }
.go-notif { display: grid; gap: 2px; padding: 10px 12px; border-radius: 14px; background: #fff; box-shadow: 0 0 0 1px #E6E8F0, 0 14px 24px -18px rgba(18, 22, 36, .5); font-size: 12.5px; line-height: 1.35; color: #3A4256; }
.go-notif b { font-size: 11.5px; font-weight: 700; color: var(--app); }
.go-scr .lvp-h { margin-top: 16px; font-size: 20px; }
.go-kicker { margin-top: 12px; font-size: 12px; font-weight: 700; color: var(--app); }
.go-pbar { height: 6px; margin-top: 7px; overflow: hidden; border-radius: 9px; background: rgba(27, 63, 168, .14); }
.go-pbar i { display: block; width: 0; height: 100%; border-radius: 9px; background: var(--app); transition: width .7s var(--ease); }
.go-scr.is-signed .go-pbar i { width: 25%; }
.go-todo { display: grid; gap: 7px; margin-top: 12px; }
.go-todo li { position: relative; display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 11px; border-radius: 12px; background: #fff; box-shadow: 0 0 0 1px #E6E8F0; font-size: 13.5px; font-weight: 600; }
.go-todo li > i { flex: none; width: 18px; height: 18px; border-radius: 50%; box-shadow: inset 0 0 0 1.8px #C5CAD8; transition: background .3s ease, box-shadow .3s ease; }
.go-sign b { display: grid; margin-left: auto; font-size: 11.5px; font-weight: 700; }
.go-sign b span { grid-area: 1 / 1; padding: 5px 9px; border-radius: 7px; background: var(--app); color: #fff; text-align: center; transition: opacity .3s ease; }
.go-sign b span + span { background: #D8F0E5; color: #00664A; opacity: 0; }
/* La signature se trace sous le libellé, sur sa propre ligne */
.go-sign { flex-wrap: wrap; }
.go-sign svg { display: none; flex: none; width: 78px; height: 26px; margin: 2px 0 2px 28px; fill: none; stroke: #1B3FA8; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 100; stroke-dashoffset: 100; }
.go-scr.is-signed .go-sign svg { display: block; animation: go-trace 1.1s ease .2s forwards; }
@keyframes go-trace { to { stroke-dashoffset: 0; } }
.go-sign::after { content: ''; flex-basis: 100%; height: 0; order: 1; }
.go-sign svg { order: 2; }
.go-scr.is-signed .go-sign > i { background: #0C7A53; box-shadow: inset 0 0 0 5px #0C7A53; }
.go-scr.is-signed .go-sign b span { opacity: 0; }
.go-scr.is-signed .go-sign b span + span { opacity: 1; }
.go-aside { max-width: 250px; margin: 0; font-size: 15px; }

@media (min-width: 641px) and (max-width: 940px) {
  .go-cols { grid-template-columns: minmax(0, 1fr) 190px; gap: 12px; }
  .go-sel { width: 170px; }
  .go-set small { display: none; }
  .go-suivi { grid-template-columns: minmax(0, 1fr); }
  .go-row { grid-template-columns: 38px minmax(0, 1fr) 70px 54px; }
  .go-line > span:first-child { width: 124px; }
  .go .gx-phones { flex-direction: column; gap: 16px; }
  .go .gx-phone { width: 300px; max-width: 100%; }
  .go-aside { max-width: 300px; text-align: center; }
}
