/* ============================================================
   OFFERS BLOCKS - Blocs d'offres pour les prospects
   ============================================================ */

/* Container principal des blocs d'offres - espacements Figma */
.offers-container {
  display: flex;
  flex-direction: column;
  gap: 22px;
  align-items: flex-start;
  width: 100%;
  max-width: 406px;
}

/* Bulle d'appel (question) - grise, style iMessage, queue à gauche */
.offer-call-bubble {
  position: relative;
  background-color: #e9e9eb;
  border-radius: 20px;
  padding: 10px 18px;
  display: inline-flex;
  align-items: center;
  min-height: 39px;
  width: fit-content;
  margin-bottom: 0;
  margin-left: 20px;
}

/* Queue bulle grise (rappel visuel à gauche) - forme courbe avec masque */
.offer-call-bubble::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: -7px;
  width: 20px;
  height: 20px;
  background-color: #e9e9eb;
  border-bottom-right-radius: 16px 14px;
  z-index: 0;
}

/* Masque blanc pour créer la courbe intérieure */
.offer-call-bubble::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: -10px;
  width: 10px;
  height: 20px;
  background-color: #fff;
  border-bottom-right-radius: 10px;
  z-index: 1;
  display: block;
}

.offer-call-bubble-text {
  font-size: 18px;
  line-height: 22px;
  font-weight: 500;
  color: #000;
  margin: 0;
  z-index: 2;
  position: relative;
}

.offer-call-bubble-text p {
  margin: 0;
}

/* Container des offres */
.offers-list {
  display: flex;
  flex-direction: column;
  gap: 60px; /* Reduced from 103px */
  align-items: flex-start;
  width: 100%;
}

/* Bloc d'offre individuel - espacement entre bulle, contenu et hint (capture) */
.offer-block {
  display: flex;
  flex-direction: column;
  gap: 26px;
  align-items: flex-start;
  width: 100%;
  max-width: 406px;
}

/* Bulle d'offre principale - bleue style iMessage, queue à droite */
.offer-bubble {
  position: relative;
  background-color: #007aff;
  border-radius: 20px;
  padding: 10px 18px;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 39px;
  width: fit-content;
  align-self: flex-end;
  margin-left: auto;
  margin-right: 20px;
}

/* Queue bulle bleue (à droite) - forme courbe avec masque */
.offer-bubble::before {
  content: '';
  position: absolute;
  bottom: 0;
  right: -7px;
  width: 20px;
  height: 20px;
  background-color: #007aff;
  border-bottom-left-radius: 16px 14px;
  z-index: 0;
  display: block;
}

/* Masque blanc pour créer la courbe intérieure */
.offer-bubble::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: -10px;
  width: 10px;
  height: 20px;
  background-color: #fff;
  border-bottom-left-radius: 10px;
  z-index: 1;
  transform: none;
  box-shadow: none;
}

.offer-bubble-text {
  font-size: 18px;
  line-height: 22px;
  font-weight: 500;
  color: #fff;
  text-align: right;
  white-space: nowrap;
  margin: 0;
  z-index: 2;
  position: relative;
}

/* Bulle d'offre avec hauteur variable */
.offer-bubble.tall {
  min-height: 72px;
  padding: 8px 16px;
  /* Assure que le background s'étend correctement sans déformer la forme globale */
  background-clip: padding-box;
}

.offer-bubble.tall .offer-bubble-text {
  white-space: normal;
  text-align: right;
}

/* La queue est positionnée en absolute par rapport au bas, donc elle ne devrait pas être affectée par la hauteur 
   SAUF si le background-size ou autre propriété déforme tout.
   Ici c'est un ::before qui fait la queue.
*/
.offer-bubble.tall::before {
    /* S'assurer que la queue reste en bas et ne s'étire pas */
    bottom: 0;
    height: 20px; /* Hauteur fixe de la queue */
}

/* Idem pour le masque */
.offer-bubble.tall::after {
  bottom: 0; 
  height: 20px;
}

/* Contenu éditorial de l'offre - interlignage et espacements (capture) */
.offer-content {
  font-size: 22px;
  line-height: 26px;
  font-weight: 500;
  color: #000;
  width: 100%;
}

.offer-content p {
  margin: 0 0 26px 0;
  line-height: 26px;
}

.offer-content > *:last-child {
  margin-bottom: 0;
}

.offer-content .italic {
  font-style: italic;
}

/* Ligne recommandation + durée (label au-dessus, durée en dessous) */
.offer-hint {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  width: 100%;
  font-size: 22px;
  line-height: 26px;
  font-weight: 500;
  color: #000;
  margin-top: 2px;
}

.offer-hint-duration {
  font-weight: 300;
  color: #858585;
}

/* Séparateur entre blocs - rappel première bulle : 3 cercles gris 8px, ferré à gauche */
.offers-separator {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  width: 100%;
  min-height: 22px;
  margin: 0;
  padding: 4px 0;
}

.offers-separator-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #e9e9eb;
  flex-shrink: 0;
}

/* Footer de l'offre (durée + action) */
.offer-footer {
  display: flex;
  align-items: flex-start;
  gap: 0;
  width: 100%;
  font-size: 22px;
}

.offer-duration {
  flex: 1 0 0;
  font-weight: 300;
  line-height: normal;
  color: #858585;
  min-width: 0;
}

.offer-action {
  flex: 1 0 0;
  font-weight: 700;
  line-height: 26px;
  color: #000;
  text-decoration: underline;
  text-decoration-skip-ink: none;
  min-width: 0;
  text-align: right;
}

.offer-action.centered {
  flex: none;
  text-align: center;
  width: 100%;
}

/* CTA unique en fin de bloc offers - pleine largeur du container */
.offers-cta {
  width: 100%;
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  text-align: center;
}

.offers-cta .offer-action {
  flex: none;
}

/* Bouton CTA principal - pleine largeur du container texte (Figma) */
.offer-cta-btn {
  display: block;
  width: 100%;
  padding: 14px 24px;
  background-color: #007aff;
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
  border-radius: 100px;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s ease, opacity 0.2s ease;
  text-align: center;
  box-sizing: border-box;
  box-shadow: 0 4px 14px 0 rgba(0, 122, 255, 0.39);
}

.offer-cta-btn:hover {
  background-color: #0056b3;
}

.offer-cta-btn:focus {
  outline: 2px solid #007aff;
  outline-offset: 2px;
}

/* Bouton CTA secondaire - outline uniquement, copie email */
.offer-cta-btn--secondary {
  display: block;
  width: 100%;
  padding: 14px 24px;
  background-color: transparent;
  color: #000;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
  border-radius: 100px;
  border: 1.5px solid rgba(0, 0, 0, 0.25);
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
  text-align: center;
  box-sizing: border-box;
  margin-top: 12px;
}

.offer-cta-btn--secondary:hover {
  border-color: rgba(0, 0, 0, 0.6);
}

.offer-cta-btn--secondary.copied {
  border-color: #16a34a;
  color: #16a34a;
  pointer-events: none;
}

/* Sous-titre sous le bouton CTA - centré, espacement Figma */
.offer-cta-subtitle {
  margin: 12px 0 0;
  font-size: 15px;
  line-height: 1.4;
  font-weight: 400;
  color: #6b7280;
  max-width: 100%;
  text-align: center;
}

.offers-container.opensource .offers-cta {
  text-align: center;
}

.offers-container.opensource .offers-cta .offer-action {
  display: inline-block;
}

/* Spacing spécifique pour Open Source */
.offers-container.opensource {
  gap: 15px;
}

.offers-container.opensource .offers-list {
  gap: 0;
}

/* Titres principaux qui dépassent du container */
.prospect-title-container {
  width: calc(100% + 60px);
  max-width: calc(460px + 60px);
  margin-left: -30px;
  margin-right: -30px;
}

.prospect-title-container p {
  font-size: 100px !important;
  line-height: 110px !important;
}

/* Responsive */
@media (max-width: 1023px) {
  .prospect-title-container {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
  }
  
  .prospect-title-container p {
    font-size: 40px !important;
    line-height: 48px !important;
  }

  .offers-list {
    gap: 40px;
  }
}

/* Mobile : titre prospect plus grand, corps de texte même taille qu'en desktop */
@media (max-width: 1023px) {
  #prospect-content-container .prospect-title-container p {
    font-size: 60px !important;
    line-height: 0.95 !important;
    letter-spacing: -0.05em !important;
  }
}
