/*!
 * AuthifyMe Pay — Styles tracking & marketing
 * - Bannière RGPD (#authify-rgpd)
 * - Sticky mobile CTA (#authify-sticky)
 * - Classes utilitaires : .btn-calendly (bouton "Réserver un créneau")
 * Palette : --blue-900 #091a2a / --gold #c9a84c
 */

/* ==============================================================
   BANNIÈRE RGPD
   ============================================================== */
#authify-rgpd {
  position: fixed;
  bottom: 16px;
  left: 16px;
  right: 16px;
  max-width: 560px;
  background: #fff;
  color: #091a2a;
  border-radius: 14px;
  box-shadow: 0 16px 48px rgba(9, 26, 42, 0.28), 0 2px 6px rgba(9, 26, 42, 0.08);
  z-index: 99998;
  font-family: 'DM Sans', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  border: 1px solid rgba(9, 26, 42, 0.08);
  animation: authifyRgpdIn .4s cubic-bezier(.2,.9,.3,1.2);
}
@keyframes authifyRgpdIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.authify-rgpd-inner {
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.authify-rgpd-text strong {
  font-size: .95rem;
  color: #091a2a;
  display: block;
  margin-bottom: 4px;
  font-weight: 700;
}
.authify-rgpd-text p {
  font-size: .82rem;
  line-height: 1.55;
  color: #4a5562;
  margin: 0;
}
.authify-rgpd-text a {
  color: #091a2a;
  text-decoration: underline;
  text-decoration-color: #c9a84c;
  text-underline-offset: 2px;
  font-weight: 600;
}
.authify-rgpd-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  flex-wrap: wrap;
}
.authify-rgpd-actions button {
  font-family: inherit;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .02em;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  border: none;
  transition: transform .18s, box-shadow .18s, background .18s;
}
.authify-btn-refuse {
  background: transparent;
  color: #091a2a;
  border: 1.5px solid rgba(9, 26, 42, 0.25) !important;
}
.authify-btn-refuse:hover {
  background: #f5f6f7;
  border-color: rgba(9, 26, 42, 0.4) !important;
}
.authify-btn-accept {
  background: #091a2a;
  color: #fff;
  box-shadow: 0 4px 14px rgba(9, 26, 42, 0.25);
}
.authify-btn-accept:hover {
  background: #0c2236;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(9, 26, 42, 0.35);
}

/* ==============================================================
   STICKY MOBILE CTA — Téléphone
   Visible uniquement sur mobile (< 768 px)
   ============================================================== */
#authify-sticky {
  display: none;
}
@media (max-width: 768px) {
  #authify-sticky {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 13px 18px;
    background: linear-gradient(135deg, #091a2a 0%, #0c2236 100%);
    color: #fff;
    text-decoration: none;
    font-family: 'DM Sans', system-ui, sans-serif;
    box-shadow: 0 -6px 22px rgba(9, 26, 42, 0.35);
    z-index: 99997;
    border-top: 2px solid #c9a84c;
    transition: background .2s;
  }
  #authify-sticky:hover,
  #authify-sticky:active {
    background: linear-gradient(135deg, #0c2236 0%, #13324e 100%);
  }
  .authify-sticky-icon {
    font-size: 1.3rem;
    line-height: 1;
    filter: drop-shadow(0 0 6px rgba(201, 168, 76, 0.4));
  }
  .authify-sticky-label {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
  }
  .authify-sticky-label strong {
    font-size: .95rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: .02em;
  }
  .authify-sticky-sub {
    font-size: .72rem;
    color: rgba(232, 212, 139, 0.95);
    font-weight: 400;
    letter-spacing: .02em;
    margin-top: 1px;
  }
  /* Empêche le sticky de masquer le footer / contenu */
  body {
    padding-bottom: 66px !important;
  }
}

/* ==============================================================
   BOUTON CALENDLY (peut être utilisé n'importe où)
   Usage : <button class="btn-calendly" data-calendly>Réserver un créneau</button>
   ============================================================== */
.btn-calendly {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #c9a84c;
  color: #091a2a;
  font-family: 'DM Sans', system-ui, sans-serif;
  font-size: .88rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 14px 26px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(201, 168, 76, 0.32);
  transition: transform .2s, box-shadow .2s, background .2s;
}
.btn-calendly::before {
  content: "📅";
  font-size: 1.1rem;
}
.btn-calendly:hover {
  background: #d6b658;
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(201, 168, 76, 0.45);
}

/* ==============================================================
   Responsive — tablette
   ============================================================== */
@media (max-width: 480px) {
  #authify-rgpd {
    left: 10px;
    right: 10px;
    bottom: 10px;
  }
  .authify-rgpd-inner {
    padding: 16px;
  }
  .authify-rgpd-actions {
    justify-content: stretch;
  }
  .authify-rgpd-actions button {
    flex: 1;
  }
}

/* Crisp — décaler le bouton pour laisser la place au sticky mobile */
@media (max-width: 768px) {
  .crisp-client .cc-1brb6 .cc-1yy0g .cc-1no03 {
    bottom: 80px !important;
  }
}
