/* ============================================================
   ONEHSERVICE — EFFETS "SHOCK" · STYLES
   ============================================================ */

/* ============================================================
   1. CUSTOM CURSOR AVEC TEXTE CONTEXTUEL
   ============================================================ */
.ohs-ctx-cursor {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;
  width: 12px;
  height: 12px;
  background: var(--yellow, #FACC15);
  border-radius: 50%;
  opacity: 0;
  transition: opacity .25s, width .35s cubic-bezier(.22,1,.36,1), height .35s cubic-bezier(.22,1,.36,1), border-radius .35s, padding .25s;
  display: flex;
  align-items: center;
  justify-content: center;
  will-change: transform, width, height;
}
.ohs-ctx-cursor.is-on { opacity: 1; }
.ohs-ctx-cursor.is-active {
  width: auto;
  min-width: 110px;
  height: 38px;
  padding: 0 18px;
  border-radius: 30px;
  background: var(--black, #0B0B0F);
  box-shadow: 0 8px 24px rgba(11, 11, 15, .25);
}
.ohs-ctx-cursor__txt {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--yellow, #FACC15);
  white-space: nowrap;
  font-weight: 500;
  opacity: 0;
  transition: opacity .25s;
}
.ohs-ctx-cursor.is-active .ohs-ctx-cursor__txt { opacity: 1; }
@media (hover: none), (pointer: coarse) { .ohs-ctx-cursor { display: none; } }

/* Le curseur natif reste visible — on ajoute juste le halo contextuel par-dessus */

/* ============================================================
   2. SPARKLE BURST
   ============================================================ */
.ohs-spark {
  position: fixed;
  pointer-events: none;
  background: radial-gradient(circle, var(--yellow, #FACC15) 0%, rgba(250,204,21,.4) 50%, transparent 70%);
  border-radius: 50%;
  z-index: 9997;
  animation: ohs-spark-fly .9s cubic-bezier(.22,1,.36,1) forwards;
  will-change: transform, opacity;
  transform: translate(-50%, -50%);
}
@keyframes ohs-spark-fly {
  0%   { transform: translate(-50%, -50%) scale(0); opacity: 1; }
  20%  { transform: translate(-50%, -50%) scale(1.4); opacity: 1; }
  100% { transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(0.2); opacity: 0; }
}

/* ============================================================
   3. BLOB LIQUIDE
   ============================================================ */
.ohs-blob {
  position: fixed;
  top: 0;
  left: 0;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(250, 204, 21, 0.22) 0%, rgba(250, 204, 21, 0.06) 45%, transparent 70%);
  filter: blur(45px);
  pointer-events: none;
  opacity: 0;
  transition: opacity .55s cubic-bezier(.22,1,.36,1);
  will-change: transform, opacity;
  z-index: 0;
  mix-blend-mode: multiply;
}
.ohs-blob.is-on { opacity: 1; }

/* Mobile/tactile: blob désactivé (perf + pas de souris) */
@media (hover: none), (pointer: coarse), (max-width: 720px) {
  .ohs-blob { display: none !important; }
}

/* ============================================================
   4. IMAGE HOVER PREVIEW
   ============================================================ */
.ohs-preview {
  position: fixed;
  top: 0; left: 0;
  width: 240px;
  height: 280px;
  pointer-events: none;
  z-index: 9996;
  opacity: 0;
  transition: opacity .3s cubic-bezier(.22,1,.36,1);
  will-change: transform, opacity;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .35);
  background: var(--paper, #F4F0E6);
}
.ohs-preview.is-on { opacity: 1; }
.ohs-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
@media (hover: none), (pointer: coarse) { .ohs-preview { display: none; } }

/* ============================================================
   5. ODOMETER (flip style aéroport)
   ============================================================ */
.ohs-odo {
  display: inline-flex;
  vertical-align: baseline;
  font-variant-numeric: tabular-nums;
}
.ohs-odo__col {
  display: inline-block;
  height: 1em;
  overflow: hidden;
  line-height: 1;
}
.ohs-odo__inner {
  display: flex;
  flex-direction: column;
  transform: translateY(0);
  transition: transform 1.4s cubic-bezier(.22,1,.36,1);
}
.ohs-odo__cell {
  display: block;
  height: 1em;
  line-height: 1;
}

/* ============================================================
   6. RIPPLE
   ============================================================ */
.ohs-ripple {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(250, 204, 21, .5) 0%, rgba(250, 204, 21, 0) 70%);
  pointer-events: none;
  transform: scale(0);
  animation: ohs-ripple-go .9s cubic-bezier(.22,1,.36,1) forwards;
  mix-blend-mode: multiply;
}
@keyframes ohs-ripple-go {
  to { transform: scale(1); opacity: 0; }
}

/* ============================================================
   7. STICKY KINETIC TEXT
   ============================================================ */
.ohs-sk {
  overflow: hidden;
  display: block;
  width: 100%;
}
.ohs-sk__text {
  display: block;
  font-family: 'Sora', system-ui, sans-serif;
  font-weight: 800;
  font-size: clamp(80px, 18vw, 280px);
  line-height: .85;
  letter-spacing: -0.04em;
  white-space: nowrap;
  transform-origin: center;
  transition: transform .25s cubic-bezier(.22,1,.36,1);
  will-change: transform;
  color: var(--black, #0B0B0F);
  text-transform: uppercase;
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .ohs-ctx-cursor, .ohs-spark, .ohs-blob, .ohs-preview, .ohs-ripple { display: none !important; }
  body { cursor: auto !important; }
  a, button { cursor: pointer !important; }
}
