/**
 * Effet « lance-javelot » filaire — frise méthode. S’anime via engine/js/javelot.js.
 * Actif si #dp-method-strip.dp-method-strip--fx-javelot.
 */
/* La frise a overflow-x:hidden par défaut : on l’assouplit pour le javelot (pointe / arc). */
#dp-method-strip.dp-method-strip--fx-javelot {
  overflow-x: visible;
}

#dp-method-strip.dp-method-strip--fx-javelot .dp-fx-javelot {
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
  overflow: visible;
  pointer-events: none;
  color: color-mix(in srgb, var(--accent) 78%, var(--text));
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

#dp-method-strip.dp-method-strip--fx-javelot:has(.dp-method-strip__detail.is-visible) .dp-fx-javelot {
  opacity: 0;
  visibility: hidden;
}

#dp-method-strip.dp-method-strip--fx-javelot .dp-fx-javelot__stage {
  width: 100%;
  height: 100%;
  overflow: visible;
  border-radius: inherit;
  transform-origin: 14% 78%;
  transition: transform 0.3s cubic-bezier(0.33, 0, 0.2, 1);
  will-change: transform;
}

#dp-method-strip.dp-method-strip--fx-javelot.dp-fx-javelot--throwing .dp-fx-javelot__stage {
  transform: scale(1.035);
}

#dp-method-strip.dp-method-strip--fx-javelot .dp-fx-javelot__svg {
  display: block;
  width: 100%;
  height: 100%;
  vertical-align: top;
}

#dp-method-strip.dp-method-strip--fx-javelot .dp-fx-javelot__athlete circle,
#dp-method-strip.dp-method-strip--fx-javelot .dp-fx-javelot__athlete line {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

#dp-method-strip.dp-method-strip--fx-javelot .dp-fx-javelot__athlete {
  filter: drop-shadow(0 0 6px color-mix(in srgb, var(--accent) 20%, transparent));
}

/* Oiseaux filaires (birds.js) — derrière l’athlète / le javelot. */
#dp-method-strip.dp-method-strip--fx-javelot .dp-fx-javelot__birds line {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.15;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  opacity: 0.42;
}

#dp-method-strip.dp-method-strip--fx-javelot .dp-fx-javelot__spear {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.35;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}

#dp-method-strip.dp-method-strip--fx-javelot .dp-fx-javelot__spear-tip {
  fill: color-mix(in srgb, var(--accent) 70%, #fff 30%);
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linejoin: miter;
  vector-effect: non-scaling-stroke;
}

#dp-method-strip.dp-method-strip--fx-javelot .dp-fx-javelot__hit {
  fill: none;
  stroke: color-mix(in srgb, var(--accent) 55%, #fff);
  stroke-width: 2;
  opacity: 0;
  vector-effect: non-scaling-stroke;
}

#dp-method-strip.dp-method-strip--fx-javelot .dp-fx-javelot__hit-ground {
  fill: none;
  stroke: color-mix(in srgb, var(--accent) 34%, transparent);
  stroke-width: 1.6;
  opacity: 0;
  vector-effect: non-scaling-stroke;
}

html.dp-anim-paused #dp-method-strip.dp-method-strip--fx-javelot .dp-fx-javelot__stage {
  transform: none !important;
}

@media (max-width: 767px) {
  #dp-method-strip.dp-method-strip--fx-javelot {
    overflow: visible;
    min-height: 15.5rem;
  }

  #dp-method-strip.dp-method-strip--fx-javelot .dp-method-strip__track {
    min-height: 12.5rem;
  }

  #dp-method-strip.dp-method-strip--fx-javelot .dp-fx-javelot {
    opacity: 1;
    visibility: visible;
  }

  #dp-method-strip.dp-method-strip--fx-javelot .dp-fx-javelot__stage {
    min-height: 10.5rem;
  }

  #dp-method-strip.dp-method-strip--fx-javelot .dp-fx-javelot__svg {
    min-height: 10rem;
  }
}

@media (max-width: 719px) {
  #dp-method-strip.dp-method-strip--fx-javelot .dp-fx-javelot__stage {
    transform-origin: 22% 88%;
  }

  #dp-method-strip.dp-method-strip--fx-javelot.dp-fx-javelot--throwing .dp-fx-javelot__stage {
    transform: scale(1.025);
  }

  #dp-method-strip.dp-method-strip--fx-javelot .dp-method-strip__track {
    min-height: 11.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  #dp-method-strip.dp-method-strip--fx-javelot .dp-fx-javelot__stage {
    transform: none !important;
    transition: none;
  }

  #dp-method-strip.dp-method-strip--fx-javelot .dp-fx-javelot__birds {
    display: none;
  }
}
