/* Curseur personnalisé — desktop uniquement */
@media (pointer: fine) and (hover: hover) {
  html.has-custom-cursor,
  html.has-custom-cursor body {
    cursor: none;
  }

  html.has-custom-cursor a,
  html.has-custom-cursor button,
  html.has-custom-cursor [role="button"],
  html.has-custom-cursor label,
  html.has-custom-cursor select,
  html.has-custom-cursor summary,
  html.has-custom-cursor .catalogue-fab,
  html.has-custom-cursor .hero-cta-btn,
  html.has-custom-cursor .scramble-link,
  html.has-custom-cursor input[type="submit"],
  html.has-custom-cursor input[type="button"] {
    cursor: none;
  }

  .custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 99999;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.25s ease;
    will-change: transform;
  }

  html.has-custom-cursor .custom-cursor {
    opacity: 1;
  }

  html.has-custom-cursor.is-cursor-hidden .custom-cursor {
    opacity: 0;
  }

  .custom-cursor-dot {
    position: absolute;
    width: 8px;
    height: 8px;
    margin: -4px 0 0 -4px;
    border-radius: 50%;
    background: var(--ig-blue);
    transform: translate3d(var(--cx, -100px), var(--cy, -100px), 0);
    transition: transform 0.08s linear, width 0.25s ease, height 0.25s ease, margin 0.25s ease, background 0.25s ease;
  }

  .custom-cursor-ring {
    position: absolute;
    width: 36px;
    height: 36px;
    margin: -18px 0 0 -18px;
    border-radius: 50%;
    border: 1.5px solid rgba(0, 149, 246, 0.55);
    transform: translate3d(var(--rx, -100px), var(--ry, -100px), 0);
    transition: width 0.35s cubic-bezier(0.22, 1, 0.36, 1),
      height 0.35s cubic-bezier(0.22, 1, 0.36, 1),
      margin 0.35s cubic-bezier(0.22, 1, 0.36, 1),
      border-color 0.25s ease,
      background 0.25s ease,
      opacity 0.25s ease;
  }

  .custom-cursor.is-hover .custom-cursor-dot {
    width: 12px;
    height: 12px;
    margin: -6px 0 0 -6px;
    background: #833AB4;
  }

  .custom-cursor.is-hover .custom-cursor-ring {
    width: 52px;
    height: 52px;
    margin: -26px 0 0 -26px;
    border-color: transparent;
    background: linear-gradient(45deg, rgba(64, 93, 230, 0.12), rgba(131, 58, 180, 0.12), rgba(225, 48, 108, 0.12));
  }

  .custom-cursor.is-click .custom-cursor-dot {
    width: 6px;
    height: 6px;
    margin: -3px 0 0 -3px;
  }

  .custom-cursor.is-click .custom-cursor-ring {
    width: 28px;
    height: 28px;
    margin: -14px 0 0 -14px;
    border-color: rgba(0, 149, 246, 0.85);
  }

  .custom-cursor.is-text .custom-cursor-ring {
    width: 4px;
    height: 22px;
    margin: -11px 0 0 -2px;
    border-radius: 2px;
    border-color: rgba(0, 149, 246, 0.45);
    background: transparent;
  }

  .custom-cursor.is-text .custom-cursor-dot {
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .custom-cursor {
    display: none !important;
  }
}
