/**
 * Aides contextuelles « i » — toutes les pages OkDak
 * Composant : <button class="okdak-help">…bulle…</button>
 * Bulle visible via portail #okdakHelpFloat (premier plan, jamais coupée).
 */
.okdak-help {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  padding: 0;
  margin-left: 6px;
  border: none;
  border-radius: 50%;
  background: var(--apple-accent-soft, rgba(0, 113, 227, 0.16));
  color: var(--apple-accent, #0071e3);
  cursor: pointer;
  vertical-align: middle;
  flex: none;
  line-height: 0;
  transition: background 0.15s ease, transform 0.15s ease;
}

.okdak-help:hover,
.okdak-help.is-open {
  background: var(--apple-accent, #0071e3);
  color: #fff;
  transform: translateY(-1px);
}

.okdak-help:focus-visible {
  outline: 2px solid var(--apple-accent, #0071e3);
  outline-offset: 2px;
}

.okdak-help > svg {
  width: 12px;
  height: 12px;
}

.okdak-help__bubble {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  border: 0;
}

#okdakHelpFloat {
  position: fixed;
  z-index: 2147483000;
  max-width: 280px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(28, 28, 32, 0.98);
  color: #f5f5f7;
  font-size: 0.8rem;
  font-weight: 400;
  line-height: 1.45;
  text-align: left;
  white-space: normal;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.14);
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  transition: opacity 0.14s ease, transform 0.14s ease, visibility 0.14s;
}

#okdakHelpFloat.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

#okdakHelpFloat strong {
  color: #fff;
  font-weight: 600;
}

@media (max-width: 640px) {
  #okdakHelpFloat {
    max-width: min(82vw, 260px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .okdak-help,
  #okdakHelpFloat {
    transition: none;
  }
}
