.om-acronyme {
  position: relative;
  cursor: help;
  border-bottom: 1px dotted currentColor;
}

.om-acronyme::after {
  content: attr(data-definition);
  position: absolute;
  z-index: 1000;
  left: 50%;
  bottom: calc(100% + 8px);
  transform: translateX(-50%);

  width: max-content;
  max-width: 320px;
  padding: 8px 12px;

  background: #222;
  color: #fff;
  border-radius: 4px;

  font-size: 0.875rem;
  font-weight: normal;
  line-height: 1.4;
  text-align: left;
  white-space: normal;

  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.15s ease;
}

.om-acronyme:hover::after,
.om-acronyme:focus::after {
  opacity: 1;
  visibility: visible;
}
