/* ═══════════════════════════════════════
   DCANT — Onboarding contextuel
   ═══════════════════════════════════════ */

/* Overlay sombre */
.onboard-overlay {
  position: fixed; inset: 0;
  z-index: 9998;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.onboard-overlay.active { pointer-events: auto; }

/* Spotlight — trou dans l'overlay */
.onboard-spotlight {
  position: absolute;
  z-index: 9999;
  border-radius: 12px;
  box-shadow: 0 0 0 9999px rgba(0,0,0,0.55);
  pointer-events: none;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Tooltip bulle */
.onboard-tooltip {
  position: absolute;
  z-index: 10000;
  background: #fff;
  padding: 18px 22px 14px;
  border-radius: 14px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  max-width: 320px;
  min-width: 220px;
  animation: onboard-fadein 0.3s ease;
}
.onboard-tooltip p {
  margin: 0 0 14px;
  font-size: 14px;
  line-height: 1.5;
  color: #1a2744;
}
/* Flèche vers le bas */
.onboard-tooltip.arrow-bottom::after {
  content: '';
  position: absolute; bottom: -8px; left: 50%;
  transform: translateX(-50%);
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 8px solid #fff;
}
/* Flèche vers le haut */
.onboard-tooltip.arrow-top::after {
  content: '';
  position: absolute; top: -8px; left: 50%;
  transform: translateX(-50%);
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 8px solid #fff;
}

/* Boutons */
.onboard-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.onboard-next {
  background: var(--accent, #1a2744);
  color: #fff;
  border: none;
  padding: 8px 18px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s;
}
.onboard-next:hover { opacity: 0.85; }
.onboard-skip {
  background: none;
  border: none;
  color: #999;
  font-size: 12px;
  cursor: pointer;
  padding: 4px 8px;
}
.onboard-skip:hover { color: #666; }

/* Indicateur d'étape */
.onboard-dots {
  display: flex;
  gap: 5px;
  justify-content: center;
  margin-bottom: 10px;
}
.onboard-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #ddd;
  transition: background 0.2s;
}
.onboard-dot.active { background: var(--accent, #1a2744); }
.onboard-dot.done { background: #2d4a3e; }

/* Hint sous "Ou calculez manuellement" */
.onboard-hint {
  display: block;
  text-align: center;
  font-size: 12px;
  color: var(--dimmer, #999);
  opacity: 0.6;
  margin-top: 4px;
  transition: opacity 0.3s;
}

/* Animation curseur de frappe */
.onboard-typing::after {
  content: '|';
  animation: onboard-blink 0.6s step-end infinite;
  color: var(--accent, #1a2744);
  font-weight: 300;
}

/* Overlay final (bravo) */
.onboard-final {
  position: fixed;
  inset: 0;
  z-index: 10001;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.6);
  animation: onboard-fadein 0.3s ease;
}
.onboard-final-card {
  background: #fff;
  border-radius: 20px;
  padding: 32px 40px;
  text-align: center;
  max-width: 360px;
  box-shadow: 0 12px 48px rgba(0,0,0,0.2);
}
.onboard-final-card h2 {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 22px;
  margin: 0 0 8px;
  color: #1a2744;
}
.onboard-final-card p {
  font-size: 14px;
  color: #666;
  margin: 0 0 20px;
}
.onboard-final-btn {
  background: var(--accent, #1a2744);
  color: #fff;
  border: none;
  padding: 12px 28px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

@keyframes onboard-fadein {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes onboard-blink {
  50% { opacity: 0; }
}
