/**
 * Bouton sticky GetYourGuide.
 * Style calqué sur la maquette : orange #ffa500, coins arrondis,
 * texte blanc en Montserrat gras.
 */

.gyg-sticky-cta {
  --gyg-orange: #ffa500;
  --gyg-orange-hover: #f59b00;
  --gyg-text: #fff;

  position: fixed;
  left: 50%;
  bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  z-index: 500;
  max-width: calc(100vw - 32px);
  transform: translate(-50%, 140%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.3s ease;
}

.gyg-sticky-cta.is-visible {
  transform: translate(-50%, 0);
  opacity: 1;
  pointer-events: auto;
}

.gyg-sticky-cta__button {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 10px;
  background: var(--gyg-orange);
  color: var(--gyg-text);
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  box-shadow:
    0 8px 22px rgba(240, 140, 0, 0.35),
    0 2px 6px rgba(0, 0, 0, 0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.gyg-sticky-cta__button:hover,
.gyg-sticky-cta__button:focus-visible {
  background: var(--gyg-orange-hover);
  color: var(--gyg-text);
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow:
    0 12px 28px rgba(240, 140, 0, 0.45),
    0 3px 8px rgba(0, 0, 0, 0.14);
}

.gyg-sticky-cta__button:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

.gyg-sticky-cta__button:active {
  transform: translateY(0);
}

/* Petit effet "pulse" à l'apparition pour attirer l'œil, une seule fois. */
.gyg-sticky-cta.is-visible .gyg-sticky-cta__button {
  animation: gyg-pulse 1.6s ease-out 0.5s 1;
}

@keyframes gyg-pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 165, 0, 0.55), 0 8px 22px rgba(240, 140, 0, 0.35); }
  70% { box-shadow: 0 0 0 14px rgba(255, 165, 0, 0), 0 8px 22px rgba(240, 140, 0, 0.35); }
  100% { box-shadow: 0 0 0 0 rgba(255, 165, 0, 0), 0 8px 22px rgba(240, 140, 0, 0.35); }
}

/* Laisse de la place en bas de page pour ne rien masquer. */
body:has(.gyg-sticky-cta) {
  padding-bottom: 84px;
}

/* Mobile : bouton un peu plus compact. */
@media (max-width: 480px) {
  .gyg-sticky-cta {
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  }
  .gyg-sticky-cta__button {
    padding: 12px 20px;
    font-size: 15px;
  }
}

@media (max-width: 360px) {
  .gyg-sticky-cta__button {
    padding: 11px 14px;
    font-size: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gyg-sticky-cta,
  .gyg-sticky-cta__button {
    transition: none;
    animation: none !important;
  }
}

@media print {
  .gyg-sticky-cta {
    display: none !important;
  }
}
