/* Guide pas à pas présenté par Copi (guide.js) : couleurs de l'appli, valables aussi dans l'admin */
.guide, .guide-open, .guide-tip {
  --g-panel: #1D2B40; --g-line: #2A3A51; --g-text: #E6EBF2; --g-muted: #8D99AB;
  --g-accent: #56A1A6; --g-accent-light: #7FD1D6; --g-accent-text: #04252B;
}
.guide { position: fixed; inset: 0; z-index: 10000; font-family: "Segoe UI", system-ui, sans-serif; }
.guide-hole {
  position: fixed; border-radius: 14px; pointer-events: none;
  box-shadow: 0 0 0 9999px rgba(5, 10, 18, .72); outline: 2px solid var(--g-accent-light);
  transition: left .2s, top .2s, width .2s, height .2s;
}
.guide-hole.none { left: 50% !important; top: 50% !important; width: 0 !important; height: 0 !important; outline: none; }
.guide-bubble {
  position: fixed; width: min(440px, calc(100vw - 32px)); padding: 14px 16px 14px 14px;
  background: var(--g-panel); border: 1px solid var(--g-accent); border-radius: 16px; color: var(--g-text);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .45); line-height: 1.5; font-size: 15px;
}
.guide-top { display: flex; gap: 12px; align-items: flex-start; }
.guide-face { width: 64px; height: 64px; flex: none; }
.guide-col { flex: 1; min-width: 0; }
.guide-name { color: var(--g-accent-light); font-weight: 700; letter-spacing: .08em; font-size: 13px; margin-bottom: 4px; }
.guide-say p { margin: 0 0 6px; }
.guide-say strong { color: var(--g-accent-light); }
.guide-row { display: flex; align-items: center; gap: 6px; margin-top: 12px; }
.guide-dots { display: flex; gap: 6px; flex: 1; align-items: center; }
.guide-dots span:not(.guide-count) { width: 8px; height: 8px; border-radius: 4px; background: var(--g-line); }
.guide-dots span.now { background: var(--g-accent-light); }
.guide-count { color: var(--g-muted); font-size: 13px; }
.guide .guide-btn {
  padding: 7px 14px; border-radius: 10px; border: 1px solid var(--g-line); background: var(--g-panel);
  color: var(--g-text); font: inherit; font-size: 14px; cursor: pointer; text-transform: none; height: auto; margin: 0;
}
.guide .guide-btn.primary { background: var(--g-accent); border-color: var(--g-accent); color: var(--g-accent-text); font-weight: 700; }
.guide .guide-btn:focus-visible { outline: 2px solid var(--g-accent-light); outline-offset: 2px; }

/* Tête de Copi qui relance le guide */
.guide-open {
  display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; padding: 0;
  border-radius: 23px; border: 1px solid var(--g-line); background: var(--g-panel); cursor: pointer;
}
.guide-open img { width: 40px; height: 40px; }
.guide-open:hover { border-color: var(--g-accent-light); }
.guide-open.floating {
  position: fixed; right: 20px; bottom: 20px; z-index: 9999; width: 56px; height: 56px; border-radius: 28px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .4);
}
.guide-open.floating img { width: 46px; height: 46px; }

@media (max-width: 600px) {
  .guide-bubble:not(.center) { left: 16px !important; right: 16px; width: auto; top: auto !important; bottom: 16px; }
}

/* Bulle de Copi au survol de sa tête */
.guide-tip {
  position: fixed; z-index: 10001; width: 300px; padding: 12px 16px 14px; border-radius: 16px;
  background: var(--g-panel); border: 1px solid var(--g-accent); color: var(--g-text);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .45); font: 14px/1.5 "Segoe UI", system-ui, sans-serif; pointer-events: none;
}
