/* Curseur personnalisé (voir assets/controllers/cursor_controller.js) : installé seulement avec une souris. */
html.has-cursor,
html.has-cursor *:not(input):not(textarea):not([contenteditable="true"]) {
    cursor: none !important;
}
.cursor,
.cursor-dot {
    position: fixed;
    left: 0;
    top: 0;
    z-index: 100000;
    pointer-events: none;
    opacity: 0;
    transition: opacity 200ms var(--ease, ease);
}
.cursor.is-visible,
.cursor-dot.is-visible {
    opacity: 1;
}
.cursor {
    mix-blend-mode: difference; /* l'anneau reste lisible sur fond clair comme sur fond sombre */
}
.cursor__ring {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border: 1.5px solid #fff;
    border-radius: 50%;
    transition: width 320ms var(--ease, ease), height 320ms var(--ease, ease), background 250ms, border-color 250ms, transform 200ms var(--ease, ease);
}
.cursor__label {
    font-family: var(--font-mono, ui-monospace, monospace);
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #fff;
    opacity: 0;
    transform: scale(0.7);
    transition: opacity 200ms, transform 300ms var(--ease, ease);
    white-space: nowrap;
}
.cursor.is-down .cursor__ring {
    transform: scale(0.86);
}
/* Lien, bouton : l'anneau grossit */
.cursor[data-state="link"] .cursor__ring {
    width: 58px;
    height: 58px;
    background: rgba(255, 255, 255, 0.18);
}
/* Élément avec un texte (« Voir », « ×2,2 »…) : pastille rose */
.cursor[data-state="label"] {
    mix-blend-mode: normal;
}
.cursor[data-state="label"] .cursor__ring {
    width: 78px;
    height: 78px;
    border-color: var(--accent, #da315a);
    background: var(--accent, #da315a);
}
.cursor[data-state="label"] .cursor__label {
    opacity: 1;
    transform: none;
}
.cursor[data-state="label"].is-small .cursor__ring {
    width: 50px;
    height: 50px;
}
/* Champ de saisie : on laisse le curseur normal (le texte se vise mieux) */
.cursor[data-state="text"],
.cursor-dot[data-state="text"] {
    opacity: 0 !important;
}
/* Le point rose */
.cursor-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent, #da315a);
    transition: opacity 200ms, width 200ms var(--ease, ease), height 200ms var(--ease, ease);
}
.cursor-dot[data-state="link"] {
    width: 4px;
    height: 4px;
}
.cursor-dot[data-state="label"] {
    opacity: 0 !important;
}
