/* Curseur « plume » */

/* Le curseur natif n'est masqué qu'une fois la plume affichée */
html.quill-cursor-on,
html.quill-cursor-on * {
  cursor: none !important;
}

/* Champs de saisie : on garde le curseur texte */
html.quill-cursor-on :is(textarea, [contenteditable]:not([contenteditable="false"]),
  input:not([type="button"], [type="submit"], [type="reset"], [type="checkbox"],
    [type="radio"], [type="range"], [type="color"], [type="file"], [type="image"])) {
  cursor: text !important;
}

/* Fenêtres modales <dialog> : curseur du système */
html.quill-cursor-on dialog:modal,
html.quill-cursor-on dialog:modal * {
  cursor: revert !important;
}

.quill-cursor__fx,
.quill-cursor {
  position: fixed;
  top: 0;
  left: 0;
  margin: 0;
  padding: 0;
  pointer-events: none;
}

.quill-cursor__fx {
  z-index: 2147483646;
  max-width: none;
  max-height: none;
}

.quill-cursor {
  z-index: 2147483647;
  width: 0;
  height: 0;
  opacity: 0;
  will-change: transform;
}

.quill-cursor.is-visible { opacity: 1; }
.quill-cursor.is-text    { opacity: 0; }

.quill-cursor .quill-cursor__pen {
  position: absolute;
  display: block;
  max-width: none;
  max-height: none;
  transition: transform 0.16s ease-out, filter 0.2s ease-out;
}

/* Survol d'un lien ou d'un bouton : la plume se redresse et s'illumine */
.quill-cursor.is-hover .quill-cursor__pen {
  transform: rotate(-9deg) scale(1.1);
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.6));
}

/* Thème clair : ombre d'encre à la place de la lueur */
.quill-cursor.is-light.is-hover .quill-cursor__pen {
  filter: drop-shadow(0 3px 5px rgba(40, 52, 110, 0.5));
}

/* Clic : la plume appuie sur le papier */
.quill-cursor.is-down .quill-cursor__pen {
  transform: rotate(9deg) scale(0.92);
}

@media (prefers-reduced-motion: reduce) {
  .quill-cursor .quill-cursor__pen { transition: none; }
}

@media print {
  .quill-cursor,
  .quill-cursor__fx { display: none; }
}