/* ============================================================
   CTA BLOCK — CASTAGNE
   Bloc d'appel à l'action positionné en fin de page.
   Affiché sur mobile (footer masqué < 1024px), subtil sur desktop.
   ============================================================ */

.cta-block {
  /* Décalage identique au contenu principal : var(--w-sidebar)
     = 48px entre 641-1023px, 34px en dessous de 640px */
  margin-left: var(--w-sidebar, 34px);
  padding: 12px 12px;
  /* Sur mobile : espace pour la barre mnav (70px) + bouton scroll-to-top (48px + 24px marge + 16px respiration) */
  padding-bottom: calc(12px + 70px + 88px + env(safe-area-inset-bottom, 0px));
}

/* Sur desktop : le footer est visible → on masque le bloc CTA */
@media (min-width: 1024px) {
  .cta-block {
    display: none;
  }
}

/* ----- Carte sombre ----- */
.cta-block__inner {
  background-color: #111111;
  border-radius: 20px;
  padding: 40px 24px 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
}

/* ----- Titre ----- */
.cta-block__title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(22px, 5.5vw, 32px);
  font-weight: 700;
  color: #ffffff;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0;
}

/* ----- Sous-titre ----- */
.cta-block__subtitle {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.52);
  max-width: 320px;
  margin: 0;
}

/* ----- Boutons ----- */
.cta-block__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 10px;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 13px 22px;
  border-radius: 40px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 180ms ease, transform 180ms ease, background-color 180ms ease, border-color 180ms ease;
  border: none;
}

.cta-btn:active {
  transform: scale(0.97);
  opacity: 0.9;
}

/* Bouton primaire : fond blanc, texte noir */
.cta-btn--primary {
  background-color: #ffffff;
  color: #0a0a0a;
}

.cta-btn--primary:hover {
  background-color: #f0f0f0;
  transform: translateY(-1px);
}

/* Bouton secondaire : contour blanc, texte blanc */
.cta-btn--secondary {
  background-color: transparent;
  color: #ffffff;
  border: 1.5px solid rgba(255, 255, 255, 0.28);
}

.cta-btn--secondary:hover {
  border-color: rgba(255, 255, 255, 0.55);
  transform: translateY(-1px);
}

/* Icône FabLab (pin location) */
.cta-btn__icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  opacity: 0.7;
}
