/* Correcteur orthographique (todo #35) — calque de soulignement + popup de
   suggestions. Fichier additif : ne redéfinit aucune règle de style.css. */

.spellcheck-overlay {
  position: absolute;
  margin: 0;
  overflow: hidden;
  pointer-events: none;
  color: transparent;
  white-space: pre-wrap;
  word-wrap: break-word;
  z-index: 1;
}

.spellcheck-overlay mark.spellcheck-error {
  background: transparent;
  color: transparent;
  text-decoration: none;
}

.spellcheck-overlay mark.spellcheck-error-spelling {
  border-bottom: 2px solid #ff5c5c;
}

.spellcheck-overlay mark.spellcheck-error-grammar {
  border-bottom: 2px dotted #5c9dff;
}

.spellcheck-popup-message {
  padding: 6px 10px 4px;
  color: rgba(255, 255, 255, .85);
  font-size: 12.5px;
  line-height: 1.4;
  max-width: 240px;
}

.spellcheck-popup {
  position: fixed;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  min-width: 140px;
  max-width: 260px;
  padding: 4px;
  background: #23262b;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .35);
}

.spellcheck-popup-item {
  padding: 6px 10px;
  border: none;
  background: transparent;
  color: #fff;
  font-size: 13px;
  text-align: left;
  border-radius: 5px;
  cursor: pointer;
}

.spellcheck-popup-item:hover,
.spellcheck-popup-item:focus-visible {
  background: rgba(101, 183, 255, .2);
}

.spellcheck-popup-empty {
  padding: 6px 10px;
  color: rgba(255, 255, 255, .55);
  font-size: 12px;
  font-style: italic;
}
