/* ════════════════════════════════════════════════════════════════════
 * WOW Effects — additif (curseur custom + tilt 3D hero)
 * Désactivé sur mobile et prefers-reduced-motion (via JS)
 * ═════════════════════════════════════════════════════════════════════ */

/* Hide native cursor only when JS confirms wow-cursor is mounted.
   On inputs/textareas le caret texte (I-beam) reste affiché par le browser. */
.has-wow-cursor,
.has-wow-cursor a,
.has-wow-cursor button,
.has-wow-cursor [role="button"] {
  cursor: none !important;
}
.has-wow-cursor input[type="text"],
.has-wow-cursor input[type="email"],
.has-wow-cursor input[type="tel"],
.has-wow-cursor input[type="number"],
.has-wow-cursor input[type="password"],
.has-wow-cursor textarea,
.has-wow-cursor [contenteditable="true"] {
  cursor: text !important;
}

.wow-cursor-dot,
.wow-cursor-ring {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 99998;
  border-radius: 50%;
  will-change: transform, width, height;
  opacity: 0;
  transition: opacity 280ms ease;
}

.wow-cursor-dot {
  width: 6px; height: 6px;
  background: var(--accent, #D4AF37);
  box-shadow: 0 0 14px rgba(212, 175, 55, 0.7),
              0 0 24px rgba(212, 175, 55, 0.35);
  mix-blend-mode: difference;
}

.wow-cursor-ring {
  width: 36px; height: 36px;
  border: 1px solid var(--accent, #D4AF37);
  background: transparent;
  transition:
    width  280ms cubic-bezier(0.25, 1, 0.5, 1),
    height 280ms cubic-bezier(0.25, 1, 0.5, 1),
    background 220ms ease,
    border-color 220ms ease,
    opacity 280ms ease;
}

/* Hover sur éléments interactifs : grossit + accent doré transparent */
.wow-cursor-ring.is-hover {
  width: 64px; height: 64px;
  background: rgba(212, 175, 55, 0.10);
  border-color: var(--accent, #D4AF37);
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.25);
}

/* Active state (drag du split-slider) */
.wow-cursor-ring.is-active {
  width: 80px; height: 80px;
  background: rgba(212, 175, 55, 0.18);
  border-color: var(--accent, #D4AF37);
}

/* Désactive sur tactile / reduced-motion (JS le fait déjà mais ceinture+bretelles) */
@media (pointer: coarse), (prefers-reduced-motion: reduce) {
  .wow-cursor-dot, .wow-cursor-ring { display: none !important; }
  .has-wow-cursor, .has-wow-cursor * { cursor: auto !important; }
}

/* ─── Horizontal scroll DESKTOP (pin GSAP) ─────────────────────── */
.hscroll-section {
  overflow: hidden;
}

/* ─── Horizontal scroll MOBILE (swipe natif) ───────────────────── */
.hscroll-mobile {
  display: flex !important;
  flex-wrap: nowrap !important;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 16px;
  margin-left: calc(-1 * var(--container-pad));
  margin-right: calc(-1 * var(--container-pad));
  padding-left: var(--container-pad);
  padding-right: var(--container-pad);
}
.hscroll-mobile::-webkit-scrollbar { display: none; }
.hscroll-mobile__item {
  flex: 0 0 auto;
  scroll-snap-align: start;
  min-width: 0 !important;
  max-width: none !important;
}
.hscroll-section--mobile { position: relative; }
.hscroll-section--mobile::after {
  content: "";
  position: absolute;
  right: 0; top: 0; bottom: 0;
  width: 40px;
  background: linear-gradient(90deg, transparent, var(--bg) 90%);
  pointer-events: none;
  z-index: 1;
}

@media (prefers-reduced-motion: reduce) {
  .hscroll-section .cards-grid,
  .hscroll-section .why-grid,
  .hscroll-section .realisations-grid,
  .hscroll-mobile {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)) !important;
    width: auto !important;
    transform: none !important;
    overflow: visible !important;
  }
}
