/* Curseur-bateau UNV — le pointeur devient un petit bateau qui « navigue ».
   Actif UNIQUEMENT sur pointeur fin + survol possible (desktop) et hors
   prefers-reduced-motion. La classe html.unv-boat est posée par le JS. */

@media (hover: hover) and (pointer: fine) {
  /* Le bateau EST le curseur PARTOUT : on force la neutralisation de TOUT curseur
     natif (main sur les boutons/liens, I-beam sur les champs) tant que l'effet est
     actif. !important pour battre les règles du thème (ex. .btn { cursor:pointer }). */
  html.unv-boat, html.unv-boat *, html.unv-boat body { cursor: none !important; }

  .unv-boat-cur {
    position: fixed;
    top: 0; left: 0;
    width: 38px; height: 38px;
    margin: -19px 0 0 -19px;
    pointer-events: none;
    z-index: 2147483000;
    opacity: 0;
    transition: opacity .18s ease;
    will-change: transform;
  }
  .unv-boat-cur.is-on { opacity: 1; }
  .unv-boat-cur img { width: 100%; height: 100%; display: block; }

  /* Ancre : élément séparé (non pivoté) qui « tombe » sous le bateau au survol
     d'un élément cliquable — le bateau reste, il mouille l'ancre. */
  .unv-boat-moor { position: fixed; top: 0; left: 0; width: 0; height: 0; pointer-events: none; z-index: 2147482998; }
  .unv-boat-moor svg { position: absolute; left: -7px; top: 10px; width: 14px; height: 34px; opacity: 0; transform: translateY(-10px); transition: opacity .18s ease, transform .38s cubic-bezier(.34,1.35,.64,1); }
  .unv-boat-moor.is-on svg { opacity: 1; transform: translateY(0); }

  .unv-boat-wake {
    position: fixed;
    top: 0; left: 0;
    width: 10px; height: 10px;
    margin: -5px 0 0 -5px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(28,111,166,.30), rgba(28,111,166,0) 70%);
    pointer-events: none;
    z-index: 2147482999;
    will-change: transform, opacity;
  }
}

@media (prefers-reduced-motion: reduce) {
  html.unv-boat body { cursor: auto; }
  .unv-boat-cur, .unv-boat-wake, .unv-boat-moor { display: none !important; }
}
