.anime-alert-image-corner {
  aspect-ratio: 2 / 3;
  left: 0;
  pointer-events: none;
  position: absolute;
  top: 0;
  width: 100%;
  z-index: 30;
}

.anime-alert-bell {
  --bell-corner-size: 56px;
  --bell-fill-color: rgba(8, 10, 16, 0.88);
  --bell-arc-color: rgba(255, 255, 255, 0.72);
  background: transparent;
  border: 0;
  border-radius: 0;
  box-sizing: border-box;
  color: #fff;
  cursor: pointer;
  display: block;
  height: var(--bell-corner-size);
  left: auto;
  padding: 0;
  position: absolute;
  right: 0;
  top: 0;
  transition: color 160ms ease, transform 160ms ease;
  transform-origin: top right;
  width: var(--bell-corner-size);
  pointer-events: auto;
  z-index: 1;
}

.anime-alert-bell::before {
  background: var(--bell-fill-color);
  border-bottom: 2px solid var(--bell-arc-color);
  border-bottom-left-radius: 100%;
  border-left: 2px solid var(--bell-arc-color);
  box-sizing: border-box;
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
  transition: background-color 160ms ease, border-color 160ms ease;
}

.anime-alert-bell:hover {
  transform: scale(1.04);
}

.anime-alert-bell:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.9);
  outline-offset: -4px;
}

.anime-alert-bell svg {
  fill: none;
  height: 20px;
  pointer-events: none;
  position: absolute;
  right: 18%;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  top: 18%;
  width: 20px;
  z-index: 1;
}

.anime-alert-bell.is-active {
  --bell-arc-color: #000;
  --bell-fill-color: #25a968;
  background: transparent;
  color: #fff;
}

.anime-alert-bell.is-denied {
  --bell-arc-color: #000;
  --bell-fill-color: #822b36;
  background: transparent;
  color: #fff;
}

.anime-alert-bell.is-unsupported {
  cursor: help;
  opacity: 0.72;
}

.anime-alert-bell.is-loading {
  cursor: wait;
  opacity: 0.8;
  pointer-events: none;
}

.anime-alert-bell.is-loading svg {
  animation: anime-alert-bell-pulse 700ms ease-in-out infinite alternate;
}

@keyframes anime-alert-bell-pulse {
  from {
    opacity: 0.35;
    transform: scale(0.82);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.anime-alert-toast {
  background: rgba(15, 17, 23, 0.97);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 12px;
  bottom: 22px;
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.45);
  color: #fff;
  font-family: Arial, sans-serif;
  font-size: 14px;
  left: 50%;
  line-height: 1.4;
  max-width: min(430px, calc(100vw - 32px));
  opacity: 0;
  padding: 12px 16px;
  pointer-events: none;
  position: fixed;
  transform: translate(-50%, 16px);
  transition: opacity 180ms ease, transform 180ms ease;
  width: max-content;
  z-index: 10001;
}

.anime-alert-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.anime-alert-ios-guide[hidden] {
  display: none;
}

.anime-alert-ios-guide {
  align-items: center;
  background: rgba(0, 0, 0, 0.72);
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 20px;
  position: fixed;
  z-index: 10000;
}

.anime-alert-ios-guide__panel {
  background: #11141b;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 18px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.65);
  color: #fff;
  font-family: Arial, sans-serif;
  max-width: 430px;
  padding: 24px;
  position: relative;
  width: 100%;
}

.anime-alert-ios-guide__panel h2 {
  font-size: 21px;
  line-height: 1.2;
  margin: 0 34px 12px 0;
}

.anime-alert-ios-guide__panel p,
.anime-alert-ios-guide__panel li {
  font-size: 15px;
  line-height: 1.45;
}

.anime-alert-ios-guide__panel ol {
  margin: 16px 0 20px;
  padding-left: 22px;
}

.anime-alert-ios-guide__panel li + li {
  margin-top: 8px;
}

.anime-alert-ios-guide__close {
  background: transparent;
  border: 0;
  color: #fff;
  cursor: pointer;
  font-size: 28px;
  line-height: 1;
  padding: 6px;
  position: absolute;
  right: 12px;
  top: 10px;
}

.anime-alert-ios-guide__confirm {
  background: #25a968;
  border: 0;
  border-radius: 999px;
  color: #fff;
  cursor: pointer;
  font-size: 15px;
  font-weight: 700;
  padding: 11px 18px;
  width: 100%;
}

/* Arc réduit dans l'angle inférieur droit de l'image sur les petits écrans. */
@media (max-width: 768px),
  (orientation: landscape) and (max-height: 500px) {
  #swiper .anime-alert-bell {
    --bell-corner-size: clamp(40px, 10.5vw, 44px);
    bottom: 0;
    left: auto;
    padding: 0;
    right: 0;
    top: auto;
    transform: none;
    transform-origin: bottom right;
  }

  #swiper .anime-alert-bell::before {
    border-bottom: 0;
    border-bottom-left-radius: 0;
    border-left: 2px solid var(--bell-arc-color);
    border-top: 2px solid var(--bell-arc-color);
    border-top-left-radius: 100%;
  }

  #swiper .anime-alert-bell:hover {
    transform: scale(1.04);
  }

  #swiper .anime-alert-bell svg {
    bottom: 18%;
    height: 16px;
    right: 18%;
    top: auto;
    width: 16px;
  }
}
