/* ═══════════════════════════════════════════════════
   coachmark.css — Pi Web · Bulles d'aide contextuelles
   Jamais d'overlay plein écran : halo + bulle positionnés
   en fixed autour de l'élément ciblé, le reste de la page
   reste utilisable normalement.
═══════════════════════════════════════════════════ */

.coachmark-halo {
  position: fixed;
  z-index: 2400;
  border-radius: 10px;
  pointer-events: none;
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.55);
  animation: coachmark-pulse 1.8s ease-in-out infinite;
}

@keyframes coachmark-pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.55); }
  50%      { box-shadow: 0 0 0 6px rgba(var(--accent-rgb), 0.25); }
}

.coachmark-bubble {
  position: fixed;
  z-index: 2500;
  width: 260px;
  max-width: calc(100vw - 1.5rem);
  background: #1a1a1f;
  border: 1px solid rgba(var(--accent-rgb), 0.4);
  border-radius: var(--radius-md);
  padding: 0.9rem 1rem;
  box-shadow: var(--shadow-lg);
  animation: coachmark-in 0.2s ease;
}
[data-theme="light"] .coachmark-bubble { background: #fff; }

@keyframes coachmark-in {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}

.coachmark-arrow {
  position: absolute;
  top: -7px;
  width: 14px;
  height: 14px;
  background: inherit;
  border-left: 1px solid rgba(var(--accent-rgb), 0.4);
  border-top: 1px solid rgba(var(--accent-rgb), 0.4);
  transform: translateX(-50%) rotate(45deg);
}
.coachmark-bubble.coachmark-above .coachmark-arrow {
  top: auto;
  bottom: -7px;
  border-left: none;
  border-top: none;
  border-right: 1px solid rgba(var(--accent-rgb), 0.4);
  border-bottom: 1px solid rgba(var(--accent-rgb), 0.4);
}

.coachmark-title {
  font-family: 'Syne', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.35rem;
}

.coachmark-text {
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  line-height: 1.55;
  color: var(--text-muted);
  margin-bottom: 0.8rem;
}

.coachmark-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}

.coachmark-skip {
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: 'DM Mono', monospace;
  font-size: 0.68rem;
  cursor: pointer;
  padding: 0;
  transition: color 0.2s;
}
.coachmark-skip:hover { color: var(--text); }

.coachmark-next {
  background: var(--accent);
  color: var(--accent-contrast);
  border: none;
  border-radius: var(--radius-sm);
  padding: 0.35rem 0.85rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
.coachmark-next:hover { background: var(--accent-2); }

@media (max-width: 480px) {
  .coachmark-bubble { width: 230px; }
}