/* Note d'étoile : une promesse suivie de « * » ouvre sa précision dans une bulle,
   au survol (ordinateur) ou au toucher (téléphone), sans quitter la page. */
.note-etoile { cursor: help; -webkit-tap-highlight-color: transparent; }
.note-etoile:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; border-radius: 4px; }

.note-etoile__bulle {
  position: fixed;
  z-index: 2147483000;
  top: 0;
  left: 0;
  width: max-content;
  max-width: min(320px, calc(100vw - 24px));
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, .55);
  border-radius: 18px;
  /* Sans flou disponible : fond presque plein, le texte reste lisible. */
  background: rgba(250, 249, 255, .96);
  color: #1d1730;
  font: 500 13px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  letter-spacing: 0;
  text-align: left;
  text-shadow: none;
  white-space: normal;
  box-shadow: 0 18px 44px rgba(20, 10, 60, .26), inset 0 1px 0 rgba(255, 255, 255, .7);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .16s ease, transform .16s ease;
  pointer-events: none;
}
/* Verre flouté : on devine la page derrière la bulle. */
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .note-etoile__bulle {
    background: linear-gradient(180deg, rgba(255, 255, 255, .74), rgba(244, 242, 255, .6));
    -webkit-backdrop-filter: blur(22px) saturate(180%);
    backdrop-filter: blur(22px) saturate(180%);
  }
}
.note-etoile__bulle.is-ouverte { opacity: 1; transform: none; pointer-events: auto; }
.note-etoile__bulle[hidden] { display: none; }

/* Le bandeau défilant s'arrête tant que la bulle est ouverte, pour qu'elle reste sous son texte. */
.has-note-ouverte [class*="__track"] { animation-play-state: paused !important; }

@media (prefers-reduced-motion: reduce) {
  .note-etoile__bulle { transition: none; transform: none; }
}
