:root {
  /* Charte STEMA Partners : Electric Blue + Vivid Cyan */
  --bg: #F4F6FC; --panel: #FFFFFF; --line: #E2E8F0; --ink: #0F172A; --muted: #475569; --soft: #E7ECFE;
  --accent: #0535E6; --accent-soft: #E7ECFE; --cyan: #1FD5FC;
  --grad: linear-gradient(135deg, #0535E6 0%, #1FD5FC 100%);
  --ok: #16A34A; --ok-soft: #ECFDF3; --warn: #B45309; --warn-soft: #FFFBEB; --bad: #DC2626; --bad-soft: #FEF2F2;
  --info-soft: #E7ECFE;
  --ref: #E11D48; --mes: #8B5CF6; --fac: #0891B2; --op: #0535E6;
  --shadow: 0 4px 14px rgba(5, 53, 230, .08); --shadow-lg: 0 20px 40px -8px rgba(5, 53, 230, .18);
  --radius: 12px; font-size: 14px;
}
@font-face { font-family: "Poppins"; font-weight: 500; font-display: swap; src: url(fonts/poppins-500-latin.woff2) format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 600; font-display: swap; src: url(fonts/poppins-600-latin.woff2) format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 700; font-display: swap; src: url(fonts/poppins-700-latin.woff2) format("woff2"); }
@font-face { font-family: "Manrope"; font-weight: 200 800; font-display: swap; src: url(fonts/manrope-latin.woff2) format("woff2"); }
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--ink);
  font-family: "Manrope", ui-sans-serif, -apple-system, "Segoe UI", Roboto, sans-serif; }
button, input, select { font: inherit; color: inherit; }
.muted { color: var(--muted); }
kbd { background: var(--soft); border-radius: 4px; padding: 0 5px; font-size: 11px; font-family: inherit; border: 1px solid #ddd6ca; }

/* ------------------------------------------------ en-tête & étapes */
header { height: 60px; display: grid; grid-template-columns: 220px 1fr auto; align-items: center; gap: 12px; padding: 0 14px;
  border-bottom: 1px solid var(--line); background: var(--panel); }
.brand { font-weight: 700; font-size: 16px; display: flex; gap: 8px; align-items: center; }
.logo { color: var(--accent); font-size: 20px; }
.hdr-right { display: flex; gap: 8px; align-items: center; }
.badge { font-size: 11.5px; padding: 3px 9px; border-radius: 99px; background: var(--soft); color: var(--muted); white-space: nowrap; }
.badge.ok { background: #dcfce7; color: #166534; }

#stepper { display: flex; justify-content: center; align-items: center; gap: 0; }
.st { display: flex; align-items: center; gap: 7px; border: 0; background: none; padding: 6px 8px; border-radius: 8px; cursor: pointer;
  color: var(--muted); font-size: 13px; white-space: nowrap; }
.st:hover:not(:disabled) { background: var(--soft); }
.st:disabled { cursor: not-allowed; opacity: .45; }
.st .n { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700;
  border: 1.5px solid #cfc8bb; background: #fff; }
.st.done { color: var(--ink); }
.st.done .n { background: var(--ok); border-color: var(--ok); color: #fff; }
.st.cur { color: var(--ink); font-weight: 650; }
.st.cur .n { background: var(--ink); border-color: var(--ink); color: #fff; box-shadow: 0 0 0 4px rgba(31,29,26,.12); }
.st-line { width: 22px; height: 2px; background: var(--line); flex: none; }
.st-line.done { background: var(--ok); }

/* ------------------------------------------------ mise en page */
main { display: grid; grid-template-columns: 200px 1fr 390px; height: calc(100% - 60px); }
aside { background: var(--panel); }
#left { border-right: 1px solid var(--line); padding: 12px; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; }
.side-title { font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; }
#list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
#list li { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; cursor: pointer; background: #fff; position: relative; }
#list li:hover { border-color: #cfc8bb; }
#list li.on { outline: 2px solid var(--accent); outline-offset: -1px; }
#list img { width: 100%; height: 84px; object-fit: cover; display: block; background: #ddd; }
#list .cap { padding: 5px 8px 7px; font-size: 12px; }
#list .cap .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#list .cap .pg { display: flex; justify-content: space-between; align-items: center; margin-top: 4px; font-size: 11.5px; color: var(--muted); }
#list .cap .pg b { color: var(--ok); }
#list .bar { height: 3px; background: var(--soft); border-radius: 2px; margin-top: 4px; overflow: hidden; }
#list .bar i { display: block; height: 100%; background: var(--accent); }
#list .bar i.full { background: var(--ok); }
#list .del { position: absolute; top: 4px; right: 4px; border: 0; background: rgba(0,0,0,.6); color: #fff; border-radius: 5px;
  width: 22px; height: 22px; cursor: pointer; opacity: 0; }
#list li:hover .del { opacity: 1; }
.add { display: block; text-align: center; border: 1.5px dashed #cfc8bb; border-radius: var(--radius); padding: 10px; cursor: pointer;
  font-size: 13px; font-weight: 600; color: var(--muted); }
.add:hover, .add.over { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }

#center { min-width: 0; display: flex; }
#stage { flex: 1; position: relative; overflow: hidden; background: #2a2926; }
#cv { position: absolute; inset: 0; width: 100%; height: 100%; cursor: crosshair; }
#cv.pan { cursor: grab; } #cv.panning { cursor: grabbing; } #cv.move { cursor: move; } #cv.pointer { cursor: pointer; }
#loupe { position: absolute; bottom: 64px; left: 14px; border-radius: 50%; border: 3px solid #fff;
  box-shadow: 0 4px 18px rgba(0,0,0,.45); display: none; pointer-events: none; background: #000; }

/* ------------------------------------------------ bulles flottantes sur la photo */
.float { position: absolute; background: rgba(255,255,255,.96); border-radius: 10px; box-shadow: 0 4px 16px rgba(0,0,0,.25); }
#coach { position: absolute; top: 14px; left: 50%; transform: translateX(-50%); max-width: min(720px, 92%);
  background: var(--ink); color: #fff; border-radius: 12px; padding: 10px 18px; text-align: center;
  box-shadow: 0 6px 22px rgba(0,0,0,.35); pointer-events: none; }
#coachMain { font-size: 15px; font-weight: 600; }
#coachMain .stepno { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--accent);
  font-size: 12px; margin-right: 8px; vertical-align: 1px; }
#coachSub { font-size: 12px; color: #c9c3b8; margin-top: 3px; }
#coachSub:empty { display: none; }
#coach kbd { background: #3b3833; border-color: #55504a; color: #eee; }
#coachSub kbd { background: #3b3833; border-color: #55504a; color: #eee; }
#coach.pulse { animation: pulse .5s ease; }
@keyframes pulse { 0% { transform: translateX(-50%) scale(1); } 40% { transform: translateX(-50%) scale(1.04); } 100% { transform: translateX(-50%) scale(1); } }

#viewToggle { top: 14px; right: 14px; display: flex; padding: 3px; gap: 2px; }
#viewToggle[hidden], #zoomBar[hidden], #coach[hidden] { display: none; }
.seg button { border: 0; background: transparent; padding: 6px 11px; border-radius: 7px; cursor: pointer; font-size: 12.5px; }
.seg button.on { background: var(--ink); color: #fff; font-weight: 600; }

#zoomBar { bottom: 14px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; padding: 4px; gap: 2px; }
#zoomBar button { border: 0; background: transparent; min-width: 34px; height: 32px; border-radius: 7px; cursor: pointer; font-size: 16px; padding: 0 8px; }
#zoomBar button:hover:not(:disabled) { background: var(--soft); }
#zoomBar button:disabled { opacity: .3; cursor: default; }
#zoomBar #zFit { font-size: 12.5px; font-weight: 600; }
#zoomBar .sep { width: 1px; height: 20px; background: var(--line); margin: 0 4px; }

#pop { position: absolute; z-index: 5; background: #fff; border-radius: 10px; box-shadow: 0 6px 24px rgba(0,0,0,.35);
  padding: 10px 12px; min-width: 200px; font-size: 13px; }
#pop::before { content: ""; position: absolute; top: -6px; left: var(--arrow, 50%); width: 12px; height: 12px; background: #fff;
  transform: translateX(-50%) rotate(45deg); }
#pop.above::before { top: auto; bottom: -6px; }
#pop .pt { font-size: 11.5px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 6px;
  display: flex; align-items: center; gap: 6px; }
#pop .pt i { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
#pop .prow { display: flex; gap: 6px; align-items: center; margin-top: 6px; }
#pop input[type=number] { width: 96px; font-size: 16px; font-weight: 600; padding: 5px 8px; border: 1.5px solid var(--ref); border-radius: 7px; text-align: right; }
#pop select { padding: 4px 6px; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
#pop .dims { font-weight: 650; font-variant-numeric: tabular-nums; }
#pop .help { font-size: 11.5px; color: var(--muted); margin-top: 6px; max-width: 240px; line-height: 1.4; }

#toasts { position: absolute; bottom: 64px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; gap: 6px;
  align-items: center; pointer-events: none; z-index: 6; }
.toast { background: #fff; border-radius: 9px; padding: 8px 14px; font-size: 13px; box-shadow: 0 4px 16px rgba(0,0,0,.3);
  border-left: 4px solid var(--ok); animation: tin .25s ease; max-width: 520px; }
.toast.warn { border-left-color: var(--warn); } .toast.bad { border-left-color: var(--bad); } .toast.info { border-left-color: var(--op); }
@keyframes tin { from { opacity: 0; transform: translateY(8px); } }

.empty { position: absolute; inset: 0; display: grid; place-items: center; cursor: pointer; padding: 20px; }
.empty[hidden] { display: none; }
.empty-box { background: var(--panel); border: 2px dashed #cfc8bb; border-radius: 16px; padding: 34px 38px; max-width: 560px; text-align: center; }
.empty:hover .empty-box, .empty.over .empty-box { border-color: var(--accent); background: #fffaf6; }
.empty-icon { width: 54px; height: 54px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-size: 24px;
  display: grid; place-items: center; margin: 0 auto 10px; }
.empty h2 { margin: 0 0 4px; font-size: 20px; }
.empty p { margin: 0 0 18px; }
.tips { text-align: left; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 12px 16px; font-size: 13px; }
.tips ul { margin: 8px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 7px; }
.tips li { display: flex; gap: 9px; line-height: 1.4; }

#busy { position: absolute; inset: 0; background: rgba(20,19,17,.5); display: grid; place-items: center; z-index: 10; }
#busy[hidden] { display: none; }
.busy-box { background: #fff; border-radius: 12px; padding: 16px 22px; display: flex; gap: 14px; align-items: center; max-width: 420px;
  box-shadow: 0 8px 30px rgba(0,0,0,.3); }
.busy-box .muted { font-size: 12.5px; margin-top: 3px; }
.spin { width: 26px; height: 26px; border: 3px solid var(--soft); border-top-color: var(--accent); border-radius: 50%;
  animation: sp .8s linear infinite; flex: none; }
@keyframes sp { to { transform: rotate(360deg); } }

/* ------------------------------------------------ panneau guide */
#right { border-left: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; }
#guide { flex: 1; overflow-y: auto; padding: 16px 16px 8px; }
.g-kicker { font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--accent); font-weight: 700; }
.g-title { font-size: 19px; font-weight: 700; margin: 3px 0 4px; }
.g-lead { color: var(--muted); font-size: 13.5px; line-height: 1.45; margin: 0 0 14px; }
.g-sec { margin: 14px 0 6px; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 650; }

.todo { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.todo li { display: grid; grid-template-columns: 24px 1fr; gap: 8px; align-items: start; font-size: 13.5px; line-height: 1.45; }
.todo .ck { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid #cfc8bb; display: grid; place-items: center;
  font-size: 11px; font-weight: 700; color: var(--muted); background: #fff; }
.todo li.done .ck { background: var(--ok); border-color: var(--ok); color: #fff; }
.todo li.done > span:last-child { color: var(--muted); }
.todo li.now .ck { border-color: var(--ink); color: var(--ink); box-shadow: 0 0 0 3px rgba(31,29,26,.1); }
.todo li.opt .ck { border-style: dashed; }
.todo small { color: var(--muted); display: block; font-size: 12px; }

.status { border-radius: 9px; padding: 10px 12px; font-size: 13px; line-height: 1.5; margin: 12px 0; display: grid;
  grid-template-columns: 20px 1fr; gap: 8px; }
.status .ic { font-weight: 700; }
.status.ok { background: var(--ok-soft); } .status.ok .ic { color: var(--ok); }
.status.warn { background: var(--warn-soft); } .status.warn .ic { color: var(--warn); }
.status.bad { background: var(--bad-soft); } .status.bad .ic { color: var(--bad); }
.status.info { background: var(--info-soft); } .status.info .ic { color: var(--op); }
.status b { font-weight: 650; }
.status .act { margin-top: 6px; display: flex; gap: 6px; flex-wrap: wrap; }

.btn { border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: 7px 13px; cursor: pointer; font-weight: 600; font-size: 13.5px; }
.btn:hover:not(:disabled) { border-color: #bdb5a7; }
.btn.sm { padding: 4px 10px; font-size: 12.5px; }
.btn.primary { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn.primary:hover:not(:disabled) { background: #3b3833; }
.btn.accent { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn.accent:hover:not(:disabled) { background: #9a3412; }
.btn.ghost { background: transparent; }
.btn.wide { width: 100%; }
.btn.big { padding: 11px 16px; font-size: 14.5px; }
.btn.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn:disabled { opacity: .4; cursor: not-allowed; }
.btn.danger { color: var(--bad); }
.link { border: 0; background: none; color: var(--muted); text-decoration: underline; cursor: pointer; padding: 0; font-size: 12.5px; }
.link:hover { color: var(--ink); }
.choices { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.choice { text-align: left; border: 1px solid var(--line); background: #fff; border-radius: 10px; padding: 10px 12px; cursor: pointer; display: grid;
  grid-template-columns: 28px 1fr; gap: 8px; }
.choice:hover { border-color: var(--ink); }
.choice .ci { font-size: 18px; }
.choice b { display: block; font-size: 13.5px; }
.choice span { font-size: 12.5px; color: var(--muted); line-height: 1.4; }

.rows { display: flex; flex-direction: column; gap: 0; border: 1px solid var(--line); border-radius: 9px; background: #fff; overflow: hidden; }
.rowi { display: grid; grid-template-columns: 12px 1fr auto auto; gap: 8px; align-items: center; padding: 7px 10px; font-size: 13px;
  border-bottom: 1px solid #f1eee8; cursor: pointer; }
.rowi:last-child { border-bottom: 0; }
.rowi:hover { background: #faf8f4; }
.rowi.sel { background: var(--accent-soft); }
.rowi .dot { width: 10px; height: 10px; border-radius: 50%; }
.rowi .v { font-weight: 650; font-variant-numeric: tabular-nums; text-align: right; }
.rowi .ic-btn { border: 0; background: none; cursor: pointer; color: var(--muted); font-size: 14px; padding: 2px 4px; border-radius: 5px; }
.rowi .ic-btn:hover { color: var(--bad); background: var(--bad-soft); }
.rowi.off { color: var(--muted); }
.rowi .sub { font-size: 11.5px; color: var(--muted); }

.field { display: grid; grid-template-columns: 1fr 104px; gap: 4px 10px; align-items: center; margin: 10px 0; font-size: 13px; }
.field input { border: 1px solid var(--line); border-radius: 7px; padding: 5px 8px; text-align: right; width: 100%; background: #fff; }
.field small { grid-column: 1 / -1; color: var(--muted); font-size: 12px; line-height: 1.4; }
.unit { display: flex; align-items: center; gap: 5px; }
.unit::after { content: attr(data-u); font-size: 12px; color: var(--muted); width: 18px; }

details.faq { border-top: 1px solid var(--line); margin-top: 16px; padding-top: 10px; }
details.faq > summary { cursor: pointer; font-weight: 650; font-size: 13.5px; list-style: none; display: flex; align-items: center; gap: 6px; }
details.faq > summary::before { content: "?"; width: 20px; height: 20px; border-radius: 50%; background: var(--soft); display: grid; place-items: center; font-size: 12px; }
details.faq > summary::-webkit-details-marker { display: none; }
.faq-item { margin: 10px 0 0 26px; font-size: 13px; line-height: 1.45; }
.faq-item b { display: block; }
.faq-item span { color: var(--muted); }
details.adv { margin-top: 10px; font-size: 13px; }
details.adv > summary { cursor: pointer; color: var(--muted); }

.legend { display: flex; gap: 12px; flex-wrap: wrap; font-size: 12px; color: var(--muted); margin: 8px 0; }
.legend span { display: flex; align-items: center; gap: 5px; }
.legend i { width: 14px; height: 10px; border-radius: 2px; display: inline-block; }

.diagram { display: flex; gap: 12px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 9px; padding: 10px; margin-top: 8px; font-size: 12.5px; color: var(--muted); }

#mini { border-top: 1px solid var(--line); background: #fff; padding: 8px 16px; display: flex; justify-content: space-between; align-items: baseline; font-size: 13px; }
#mini:empty { display: none; }
#mini b { font-size: 17px; font-variant-numeric: tabular-nums; }
#guideFoot { border-top: 1px solid var(--line); padding: 12px 16px; display: flex; gap: 8px; background: var(--panel); }
#guideFoot:empty { display: none; }
#guideFoot .btn.primary, #guideFoot .btn.accent { flex: 1; }
.foot-note { font-size: 12px; color: var(--muted); text-align: center; margin-top: 6px; }

/* résultat */
.result { background: var(--ink); color: #fff; border-radius: 12px; padding: 14px 16px; }
.result .big { font-size: 30px; font-weight: 750; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.result .big small { font-size: 14px; color: #c9c3b8; font-weight: 500; }
.result .lbl { color: #c9c3b8; font-size: 12.5px; }
.tot { display: flex; justify-content: space-between; padding: 5px 0; font-size: 13px; border-bottom: 1px solid #3a3732; font-variant-numeric: tabular-nums; }
.tot:last-child { border-bottom: 0; }
.tot span { color: #c9c3b8; }
.tbl { width: 100%; border-collapse: collapse; font-size: 12.5px; background: #fff; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; }
.tbl th { text-align: left; color: var(--muted); font-weight: 550; padding: 6px 8px; border-bottom: 1px solid var(--line); background: #faf8f4; }
.tbl td { padding: 5px 8px; border-bottom: 1px solid #f1eee8; font-variant-numeric: tabular-nums; }
.tbl td.num, .tbl th.num { text-align: right; }
.tbl tr.off td { color: var(--muted); text-decoration: line-through; }
.tbl tr:last-child td { border-bottom: 0; }

/* ------------------------------------------------ écran de chargement */
#boot { position: fixed; inset: 0; z-index: 100; background: var(--bg); display: grid; place-items: center; padding: 20px;
  transition: opacity .4s ease; }
#boot.out { opacity: 0; pointer-events: none; }
.boot-box { width: min(480px, 100%); background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 28px 30px;
  box-shadow: 0 10px 40px rgba(0,0,0,.08); }
.brand.big { font-size: 18px; margin-bottom: 18px; }
.boot-box h2 { margin: 0 0 6px; font-size: 21px; }
.boot-box > p { margin: 0 0 18px; font-size: 13.5px; line-height: 1.5; }
.boot-steps { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.boot-steps li { display: flex; gap: 10px; align-items: center; color: var(--muted); }
.boot-steps .ck { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid #cfc8bb; display: grid; place-items: center; font-size: 11px;
  flex: none; background: #fff; }
.boot-steps li.now { color: var(--ink); font-weight: 600; }
.boot-steps li.now .ck { border: 2.5px solid var(--soft); border-top-color: var(--accent); animation: sp .8s linear infinite; }
.boot-steps li.done { color: var(--ink); }
.boot-steps li.done .ck { background: var(--ok); border-color: var(--ok); color: #fff; }
.boot-steps li.done .ck::after { content: "✓"; }
.boot-bar { height: 6px; background: var(--soft); border-radius: 3px; overflow: hidden; }
.boot-bar i { display: block; height: 100%; width: 3%; background: var(--accent); border-radius: 3px; transition: width 1s linear; }
.boot-time { font-size: 12px; margin-top: 6px; text-align: right; min-height: 16px; }
.boot-tip { margin-top: 16px; background: var(--accent-soft); border-radius: 10px; padding: 11px 14px; font-size: 13px; line-height: 1.5; min-height: 64px; }
#bootSkip { margin-top: 14px; }
.privacy { font-size: 11.5px; color: var(--muted); line-height: 1.45; background: #fff; border: 1px solid var(--line); border-radius: 9px; padding: 8px 10px; }
.privacy .link { font-size: 11.5px; margin-top: 4px; display: block; }
.empty small { font-size: 12px; }

/* ------------------------------------------------ connexion */
#login h2, #sent h2 { margin: 0 0 6px; font-size: 21px; }
#login p, #sent p { font-size: 13.5px; line-height: 1.5; margin: 0 0 14px; }
.login-row { display: flex; gap: 8px; }
.login-row input { flex: 1; min-width: 0; border: 1.5px solid var(--line); border-radius: 9px; padding: 10px 12px; font-size: 15px; background: #fff; }
.login-row input:focus { outline: none; border-color: var(--accent); }
.login-row .btn { white-space: nowrap; }
.login-msg { font-size: 13px; min-height: 18px; margin-top: 8px; }
.login-msg.bad { color: var(--bad); } .login-msg.ok { color: var(--ok); }
.consent { font-size: 11.5px !important; color: var(--muted); margin-top: 10px !important; }
.sent-icon { width: 54px; height: 54px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-size: 26px; margin-bottom: 12px; }
#login:not([hidden]) ~ #bootWait, #sent:not([hidden]) ~ #bootWait { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
#login:not([hidden]) ~ #bootWait h2, #sent:not([hidden]) ~ #bootWait h2 { font-size: 13px; color: var(--muted); font-weight: 600; margin-bottom: 8px; }
#login:not([hidden]) ~ #bootWait > p, #sent:not([hidden]) ~ #bootWait > p, #login:not([hidden]) ~ #bootWait .boot-tip,
#sent:not([hidden]) ~ #bootWait .boot-tip, #login:not([hidden]) ~ #bootWait #bootSkip, #sent:not([hidden]) ~ #bootWait #bootSkip { display: none; }
.who { font-size: 12.5px; color: var(--muted); display: flex; gap: 8px; align-items: center; }
.who .link { font-size: 12.5px; }

/* ------------------------------------------------ charte STEMA */
h1, h2, h3, .g-title, .brand, .st, .result .big, .btn, .empty h2, .boot-box h2, #coachMain, .tot.big {
  font-family: "Poppins", "Manrope", sans-serif; letter-spacing: -0.01em; }
.g-title { letter-spacing: -0.02em; }
.brand { gap: 12px; font-weight: 600; font-size: 15px; }
.brand img { height: 22px; display: block; }
.brand .app { padding-left: 12px; border-left: 1.5px solid var(--line); color: var(--ink); }
.brand.big img { height: 28px; }
header { background: #fff; box-shadow: 0 1px 0 var(--line); }
.btn { border-radius: 9999px; padding: 7px 16px; }
.btn.sm { padding: 4px 12px; }
.btn.big { padding: 11px 20px; }
.btn.primary, .btn.accent { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 4px 14px rgba(5, 53, 230, .25); }
.btn.primary:hover:not(:disabled), .btn.accent:hover:not(:disabled) { background: #0429B8; border-color: #0429B8; }
.btn:hover:not(:disabled) { border-color: #CBD5E1; }
.st.cur .n { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 4px rgba(5, 53, 230, .15); }
.st.done .n, .st-line.done { background: var(--accent); border-color: var(--accent); }
.st-line.done { background: var(--grad); }
.st.done .n { background: #fff; color: var(--accent); border: 1.5px solid var(--accent); }
.g-kicker { color: var(--accent); }
.todo li.now .ck { border-color: var(--accent); color: var(--accent); box-shadow: 0 0 0 3px rgba(5, 53, 230, .12); }
.todo li.done .ck { background: var(--accent); border-color: var(--accent); }
.card, .rows, .tbl, .tips, .privacy, .choice, .boot-box, .empty-box, .busy-box, #pop, .float, .toast { box-shadow: var(--shadow); }
.boot-box { box-shadow: var(--shadow-lg); border-radius: 20px; }
.choice:hover { border-color: var(--accent); }
#stage { background: #0F172A; }
#coach { background: rgba(15, 23, 42, .94); backdrop-filter: blur(8px); border: 1px solid rgba(255, 255, 255, .08); }
#coachMain .stepno { background: var(--grad); }
.seg button.on { background: var(--accent); }
#list li.on { outline-color: var(--accent); }
#list .bar i { background: var(--grad); }
#list .bar i.full { background: var(--ok); }
.add:hover, .add.over { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.empty:hover .empty-box, .empty.over .empty-box { border-color: var(--accent); background: #F7F9FF; }
.empty-icon, .sent-icon { background: var(--accent-soft); color: var(--accent); }
.boot-tip { background: var(--accent-soft); }
.boot-bar i { background: var(--grad); }
.boot-steps li.now .ck { border-top-color: var(--accent); }
.boot-steps li.done .ck { background: var(--accent); border-color: var(--accent); }
.spin { border-top-color: var(--accent); }
.result { background: var(--grad); box-shadow: 0 10px 30px -8px rgba(5, 53, 230, .45); }
.result .lbl, .tot span, .result .big small { color: rgba(255, 255, 255, .82); }
.tot { border-bottom-color: rgba(255, 255, 255, .22); }
.rowi.sel, .item.sel, .tbl tr.sel td { background: var(--accent-soft); }
.login-row input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(5, 53, 230, .12); }
.badge.ok { background: var(--accent-soft); color: var(--accent); }
.toast { border-left-color: var(--accent); }
.toast.info { border-left-color: var(--cyan); }
#pop input[type=number] { border-color: var(--accent); }
.footer-brand { font-size: 11px; color: var(--muted); text-align: center; margin-top: 14px; }

header { grid-template-columns: auto 1fr auto; }
.brand .app { white-space: nowrap; }
