/**
 * @file
 * CTA Sticky component.
 * Figma: CTA Sticky (406:191).
 *
 * Blue pill with avatar and text, used in header and sidebar.
 * width: 358px, height: 54px, rounded-100px, bg blue.
 */

.cta-sticky {
  display: inline-flex;
  align-items: center;
  gap: 32px;
  background: var(--color-blue);
  border-radius: var(--radius-full);
  padding: 8px 24px 8px 8px;
  width: 358px;
  text-decoration: none;
  color: var(--color-white);
  transition: background var(--transition-base);
}

.cta-sticky:hover {
  background: var(--color-orange);
  text-decoration: none;
  color: var(--color-white);
}

.cta-sticky__avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  flex-shrink: 0;
  object-fit: cover;
}

.cta-sticky__text {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.05em;
  text-transform: uppercase;
  color: var(--color-white);
  line-height: normal;
  text-align: center;
}

/* Fallback for older markup using title + text + btn structure */
.cta-sticky__title {
  display: none;
}

.cta-sticky .btn {
  display: none;
}

/* ===== Shared mobile CTA "Prendre RDV" — articles, podcasts, témoignages ===== */
.mobile-cta-rdv {
  display: none;
}

@media (max-width: 1024px) {
  .mobile-cta-rdv {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    width: 100%;
    padding: 8px 24px 8px 8px;
    background: var(--color-blue);
    color: var(--color-white);
    border-radius: 100px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: -0.7px;
    text-decoration: none;
    text-align: center;
    line-height: normal;
    position: relative;
    z-index: 2;
    transition: background var(--transition-base);
  }

  .mobile-cta-rdv:hover {
    background: var(--color-orange);
    color: var(--color-white);
    text-decoration: none;
  }

  .mobile-cta-rdv__avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    flex-shrink: 0;
  }

  /* ===== Fixed state — applied by JS via .is-cta-fixed ===== */
  .is-cta-fixed {
    position: fixed !important;
    bottom: 16px !important;
    left: 16px !important;
    right: 16px !important;
    top: auto !important;
    width: auto !important;
    max-width: none !important;
    z-index: 99 !important;
    margin: 0 !important;
  }
}
