/* =============================================================
   STICKY CTA MOBILE — Niort VTC
   Barre flottante d'appel et WhatsApp en bas d'écran mobile
   - Caché sur desktop (≥768px)
   - z-index 2000 : au-dessus de tout sauf cookie banner (9999)
   - Support iPhone notch via env(safe-area-inset-bottom)
   - Interaction cookie banner gérée via JS (sync dynamique)
   ============================================================= */

/* ── Caché par défaut (desktop) ───────────────────────────── */
.sticky-cta {
  display: none;
}

/* ── Mobile uniquement ────────────────────────────────────── */
@media (max-width: 767px) {

  .sticky-cta {
    display: flex;
    align-items: center;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 2000;
    background: #ffffff;
    border-top: 1px solid rgba(0, 0, 0, 0.09);
    padding: 10px 14px;
    /* Support iPhone SE / notch / Dynamic Island */
    padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    box-shadow: 0 -3px 18px rgba(0, 0, 0, 0.12);
    gap: 10px;
    /* Transition douce lors du push par le cookie banner */
    transition: bottom 0.25s ease;
  }

  /* Évite que le pied de page ou dernier bloc CTA
     passe derrière la barre sticky (68px ≈ hauteur barre + safe area) */
  body {
    padding-bottom: 80px;
  }

  /* ── Remonter les boutons flottants sociaux (index.html)
     pour qu'ils n'entrent pas en conflit avec la barre.
     Valeurs de base (styles.css mobile) + 70px de marge.
     Instagram : 32px → 102px
     Facebook  : 82px → 152px
     WhatsApp  : 132px → 202px                                  */
  .alt-taxi-niort-instagram-btn { bottom: 102px !important; }
  .alt-taxi-niort-facebook-btn  { bottom: 152px !important; }
  .alt-taxi-niort-whatsapp-btn  { bottom: 202px !important; }
}

/* ── Bouton — base commune ───────────────────────────────── */
.sticky-cta__btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 48px;         /* Cible tactile minimale recommandée : 44px */
  min-width: 0;
  border-radius: 24px;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.12s ease, opacity 0.12s ease;
  cursor: pointer;
}

.sticky-cta__btn:hover {
  text-decoration: none;
  opacity: 0.93;
}

.sticky-cta__btn:active {
  transform: scale(0.97);
  opacity: 0.88;
}

/* ── Bouton Appeler ──────────────────────────────────────── */
.sticky-cta__btn--call {
  background: #002f6c;
  color: #ffffff;
}

.sticky-cta__btn--call:hover {
  color: #ffffff;
}

/* ── Bouton WhatsApp ─────────────────────────────────────── */
.sticky-cta__btn--whatsapp {
  background: #25D366;
  color: #ffffff;
}

.sticky-cta__btn--whatsapp:hover {
  color: #ffffff;
}

/* ── Icônes SVG inline ───────────────────────────────────── */
.sticky-cta__icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* L'icône WhatsApp est fill (pas stroke) */
.sticky-cta__icon--fill {
  fill: currentColor;
  stroke: none;
}

/* ── WhatsApp CTA alternatif (reservation.php) ───────────── */
.whatsapp-alt {
  display: none;
}

@media (max-width: 767px) {
  .whatsapp-alt {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    margin: 0;
    background: #f0fdf4;
    border-bottom: 1px solid #bbf7d0;
  }
}

/* Visible aussi desktop pour cette page */
@media (min-width: 768px) {
  .whatsapp-alt {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 14px 24px;
    margin: 0;
    background: #f0fdf4;
    border-bottom: 1px solid #bbf7d0;
  }
}

.whatsapp-alt__text {
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 14px;
  color: #166534;
  margin: 0;
  text-align: center;
}

.whatsapp-alt__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #25D366;
  color: #ffffff;
  font-family: 'Roboto', Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: 24px;
  text-decoration: none;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.15s ease, transform 0.12s ease;
}

.whatsapp-alt__btn:hover {
  background: #1ebe5d;
  color: #ffffff;
  text-decoration: none;
}

.whatsapp-alt__btn:active {
  transform: scale(0.97);
}

.whatsapp-alt__icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  fill: currentColor;
  stroke: none;
}
