/**
 * Bouton flottant « Plan du parc » — sous le bouton Billetterie (sticky-billetterie.css)
 *
 * Mobile-first. Les positions dépendent de la hauteur de la Billetterie :
 * mobile 44 px (min-height) en bas à droite, ordinateur 50 px centrée sur la hauteur de l'écran.
 * Formes et typographie alignées sur la Billetterie (rayon 10 px, graisse 900).
 *
 * @package Bayeux_Aventure
 */

/* Mobile (≤ 768 px) : bouton détaché, juste au-dessus de la Billetterie (bas droite) */
.ba-sticky-plan {
  position: fixed;
  right: 20px;
  bottom: calc(20px + 44px + 10px + env(safe-area-inset-bottom, 0px));
  z-index: 999;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 12px 16px;
  border-radius: 10px;
  background: var(--color-text-dark);
  color: var(--color-white);
  box-shadow: 0 4px 20px rgba(78, 59, 46, 0.18);
  font-family: var(--font-family-body);
  font-size: var(--font-size-text-md);
  font-weight: 900;
  letter-spacing: -0.4px;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  transition: transform 0.25s ease;
}

.ba-sticky-plan:hover,
.ba-sticky-plan:focus-visible {
  color: var(--color-white);
}

/* Le parent arrondit à 4 px tout lien au focus (a:focus-visible, 0,1,1) : on garde la forme du bouton */
.ba-sticky-plan:focus-visible {
  border-radius: 10px;
}

.ba-sticky-plan__icon {
  display: inline-flex;
  align-items: center;
}

.ba-sticky-plan__icon svg {
  display: block;
  width: 18px;
  height: 15px;
}

/* Ordinateur (> 768 px, même seuil que la Billetterie) : onglet collé au bord droit, sous la Billetterie */
@media (min-width: 769px) {
  .ba-sticky-plan {
    top: calc(50% + 25px + 10px);
    right: 0;
    bottom: auto;
    gap: 14px;
    padding: 15px 24px 15px 20px;
    border-radius: 10px 0 0 10px;
    font-size: var(--font-size-text-xl);
  }

  .ba-sticky-plan__icon svg {
    width: 22px;
    height: 18px;
  }

  .ba-sticky-plan:focus-visible {
    border-radius: 10px 0 0 10px;
  }
}

/* Survol souris uniquement : léger décalage, comme la Billetterie */
@media (hover: hover) and (pointer: fine) and (min-width: 769px) {
  .ba-sticky-plan:hover {
    transform: translateX(-3px);
  }
}
