/*
 * CTA Section Premium - Design UI/UX Optimisé
 * Joseph Ventures
 */

/* ========================================
   CTA SECTION - CADRE RECTANGULAIRE CLASSE
   ======================================== */

.cta {
  position: relative;
  padding: var(--section-spacing-lg) 0;
  background: #fafbfc;
  overflow: visible;
}

.cta__content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 1000px;
  margin: 0 auto;
  padding: 70px 60px;
  background: #ffffff;
  border-radius: 4px;
  border: 2px solid #2C29AA;
  box-shadow: 
    0 16px 48px rgba(44, 41, 170, 0.12),
    0 8px 24px rgba(0, 0, 0, 0.08);
}

/* Barre dorée décorative en haut */
.cta__content::before {
  content: '';
  position: absolute;
  top: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 6px;
  background: linear-gradient(90deg, 
    transparent 0%, 
    #B8A588 20%,
    #D4C5A9 50%,
    #B8A588 80%,
    transparent 100%);
  z-index: 2;
}

/* Coins décoratifs */
.cta__content::after {
  content: '';
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  bottom: 12px;
  border: 1px solid rgba(44, 41, 170, 0.08);
  border-radius: 2px;
  pointer-events: none;
}

.cta__title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: #1e3a5f;
  margin-bottom: var(--space-6);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.cta__text {
  font-size: clamp(1.0625rem, 2vw, 1.25rem);
  color: #636574;
  line-height: 1.7;
  margin-bottom: var(--space-10);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.cta__buttons {
  display: flex;
  gap: var(--space-5);
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin-top: var(--space-8);
}

/* Bouton Primaire - Style Visible et Classe */
.cta__buttons .btn--primary {
  position: relative;
  background: #2C29AA;
  color: #ffffff;
  padding: 20px 48px;
  font-size: 1.125rem;
  font-weight: 700;
  border: 3px solid #2C29AA;
  border-radius: 4px;
  box-shadow: 
    0 8px 24px rgba(44, 41, 170, 0.3),
    0 4px 12px rgba(44, 41, 170, 0.2);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  overflow: hidden;
}

.cta__buttons .btn--primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, transparent 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.cta__buttons .btn--primary:hover {
  transform: translateY(-4px);
  background: #1e2175;
  border-color: #1e2175;
  box-shadow: 
    0 12px 32px rgba(44, 41, 170, 0.4),
    0 6px 16px rgba(44, 41, 170, 0.3);
}

.cta__buttons .btn--primary:hover::before {
  opacity: 1;
}

.cta__buttons .btn--primary:active {
  transform: translateY(-2px);
}

/* Bouton Secondaire - Style Outline Visible */
.cta__buttons .btn--outline {
  position: relative;
  background: #ffffff;
  color: #2C29AA;
  padding: 20px 48px;
  font-size: 1.125rem;
  font-weight: 700;
  border: 3px solid #2C29AA;
  border-radius: 4px;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  overflow: hidden;
  box-shadow: 
    0 4px 16px rgba(44, 41, 170, 0.15),
    inset 0 0 0 0 #2C29AA;
}

.cta__buttons .btn--outline:hover {
  color: #ffffff;
  background: #2C29AA;
  transform: translateY(-4px);
  box-shadow: 
    0 8px 24px rgba(44, 41, 170, 0.3),
    0 4px 12px rgba(44, 41, 170, 0.2);
}

.cta__buttons .btn--outline:active {
  transform: translateY(-2px);
}

/* Variante avec fond légèrement coloré */
.cta--alt {
  background: #f8f9fa;
}

.cta--alt .cta__content {
  background: #ffffff;
  border: 2px solid #1e3a5f;
  box-shadow: 
    0 20px 60px rgba(30, 58, 95, 0.15),
    0 8px 24px rgba(0, 0, 0, 0.08);
}

/* Responsive */
@media (max-width: 768px) {
  .cta {
    padding: var(--section-spacing) 0;
  }
  
  .cta__content {
    padding: 50px 32px;
    border-radius: 2px;
    border-width: 2px;
  }
  
  .cta__content::before {
    width: 150px;
    height: 5px;
  }
  
  .cta__content::after {
    top: 8px;
    left: 8px;
    right: 8px;
    bottom: 8px;
  }
  
  .cta__title {
    font-size: 1.75rem;
    margin-bottom: var(--space-5);
  }
  
  .cta__text {
    font-size: 1rem;
    margin-bottom: var(--space-8);
  }
  
  .cta__buttons {
    flex-direction: column;
    gap: var(--space-4);
    margin-top: var(--space-6);
  }
  
  .cta__buttons .btn--primary,
  .cta__buttons .btn--outline {
    width: 100%;
    max-width: 340px;
    padding: 18px 40px;
    font-size: 1.0625rem;
    border-width: 2px;
  }
}

@media (max-width: 480px) {
  .cta {
    padding: var(--section-spacing-sm) 0;
  }
  
  .cta__content {
    padding: 40px 24px;
    margin: 0 var(--space-4);
  }
  
  .cta__content::before {
    width: 120px;
    height: 4px;
  }
  
  .cta__buttons .btn--primary,
  .cta__buttons .btn--outline {
    max-width: 100%;
    padding: 16px 32px;
    font-size: 1rem;
  }
}

