/**
 * GRADIENT DARK GLOBAL - Phase 1.61
 * Apply linear-gradient(135deg, #0A2540 0%, #1E4C7A 100%) to ALL buttons and blue elements
 * Date: 2 mars 2026
 */

/* ==================================
   1. VARIABLES CSS - Gradient Dark
   ================================== */
:root {
  --gradient-dark-primary: linear-gradient(135deg, #0A2540 0%, #1E4C7A 100%);
  --gradient-dark-hover: linear-gradient(135deg, #0A2540 0%, #1E4C7A 100%);
  --color-dark-start: #0A2540;
  --color-dark-end: #1E4C7A;
}

/* ==================================
   2. BOUTONS PRINCIPAUX
   ================================== */

/* Tous les boutons primary */
.btn-primary,
.btn.btn-primary,
button.btn-primary,
a.btn-primary {
  background: var(--gradient-dark-primary) !important;
  border: none !important;
  color: white !important;
  box-shadow: 0 4px 12px rgba(10, 37, 64, 0.3) !important;
  transition: all 0.3s ease !important;
}

.btn-primary:hover,
.btn.btn-primary:hover {
  background: var(--gradient-dark-hover) !important;
  box-shadow: 0 6px 16px rgba(10, 37, 64, 0.4) !important;
  transform: translateY(-2px) !important;
}

/* Boutons Stripe style */
.btn-stripe-primary,
.btn-stripe.btn-stripe-primary {
  background: var(--gradient-dark-primary) !important;
  border: 1px solid var(--color-dark-end) !important;
  color: white !important;
  box-shadow: 0 4px 12px rgba(10, 37, 64, 0.25) !important;
}

.btn-stripe-primary:hover {
  background: var(--gradient-dark-hover) !important;
  box-shadow: 0 6px 16px rgba(10, 37, 64, 0.35) !important;
  transform: translateY(-1px) !important;
}

/* Boutons outline convertis en gradient dark */
.btn-stripe-outline,
.btn-outline-primary {
  background: var(--gradient-dark-primary) !important;
  border: 1px solid var(--color-dark-end) !important;
  color: white !important;
}

.btn-stripe-outline:hover,
.btn-outline-primary:hover {
  background: var(--gradient-dark-hover) !important;
  border-color: var(--color-dark-end) !important;
}

/* Bouton light (CTA section dark) */
.btn-light {
  background: var(--gradient-dark-primary) !important;
  border: 1px solid var(--color-dark-end) !important;
  color: white !important;
}

.btn-light:hover {
  background: var(--gradient-dark-hover) !important;
  box-shadow: 0 6px 16px rgba(10, 37, 64, 0.4) !important;
}

/* ==================================
   3. BOUTONS MODAUX
   ================================== */

/* Boutons "Start Free Trial" dans les modals */
#workflowTabContent .btn-primary,
.modal .btn-primary,
.modal-body .btn-primary {
  background: var(--gradient-dark-primary) !important;
  border: none !important;
  color: white !important;
  box-shadow: 0 4px 12px rgba(10, 37, 64, 0.3) !important;
}

/* Tabs navigation dans le modal "How It Works" */
.nav-link.active,
button.nav-link.active {
  background: var(--gradient-dark-primary) !important;
  color: white !important;
  border: 1px solid var(--color-dark-end) !important;
  box-shadow: 0 2px 8px rgba(10, 37, 64, 0.25) !important;
}

.nav-link:hover {
  background: linear-gradient(135deg, #0A2540 0%, #1E4C7A 80%) !important;
  color: white !important;
}

/* ==================================
   4. BADGES ET ICÔNES
   ================================== */

/* Badges des steps modal workflow */
.modal-workflow-step .step-badge,
.step-badge {
  background: var(--gradient-dark-primary) !important;
  border: 2px solid var(--color-dark-end) !important;
  box-shadow: 0 4px 16px rgba(10, 37, 64, 0.3) !important;
}

/* Icon boxes avec gradient light → convertis en dark */
.feature-item .icon-box,
.icon-box {
  background: linear-gradient(135deg, #0A2540 10%, #1E4C7A 90%) !important;
  color: white !important;
}

/* ==================================
   5. CARDS PRICING
   ================================== */

/* Cards pricing - bordures et accents */
.pricing-card.featured,
.card.border-primary {
  border-color: var(--color-dark-end) !important;
  box-shadow: 0 8px 24px rgba(10, 37, 64, 0.2) !important;
}

.pricing-card .badge-primary {
  background: var(--gradient-dark-primary) !important;
  color: white !important;
}

/* ==================================
   6. ÉLÉMENTS DE TEXTE ET ICONS
   ================================== */

/* Tous les textes bleus → convertis en dark */
.text-primary,
.text-blue-600 {
  color: var(--color-dark-start) !important;
}

/* Icônes bleues → convertis en gradient dark (via background-clip) */
.bi.text-primary,
i.text-primary {
  background: var(--gradient-dark-primary) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
}

/* ==================================
   7. BACKGROUNDS SECTIONS
   ================================== */

/* Backgrounds gradient light → convertis en version subtile du dark */
.bg-gradient-light,
.bg-gradient-blue-light {
  background: linear-gradient(135deg, #F8FAFC 0%, #E1E8ED 100%) !important;
}

/* Feature items avec gradient light */
.feature-item {
  background: linear-gradient(135deg, #F8FAFC, #E1E8ED) !important;
  border: 1px solid #CBD5E1 !important;
}

.feature-item:hover {
  background: linear-gradient(135deg, #EFF6FF, #DBEAFE) !important;
  border-color: var(--color-dark-end) !important;
  box-shadow: 0 4px 12px rgba(10, 37, 64, 0.15) !important;
}

/* ==================================
   8. LIENS ET NAVIGATION
   ================================== */

/* Tous les liens actifs */
a.active,
.nav-link.active {
  color: white !important;
  background: var(--gradient-dark-primary) !important;
}

/* Links hover */
a:hover:not(.btn) {
  color: var(--color-dark-start) !important;
}

/* ==================================
   9. OVERRIDES SPÉCIFIQUES
   ================================== */

/* Hero trial buttons avec inline styles */
#heroTrialBtn,
#ctaTrialBtn {
  background: var(--gradient-dark-primary) !important;
  border: 1px solid var(--color-dark-end) !important;
  color: white !important;
}

/* Boutons CTA inline dans index.html lignes 375, 467, 570, 673 */
a[href*="app.autoassessiq.com/signup"].btn-primary {
  background: var(--gradient-dark-primary) !important;
  box-shadow: 0 4px 12px rgba(10, 37, 64, 0.3) !important;
}

/* Platform tabs (Built For Your Business) */
#platform .nav-link.active {
  background: var(--gradient-dark-primary) !important;
  color: white !important;
  border-color: var(--color-dark-end) !important;
}

/* ==================================
   10. RESPONSIVE
   ================================== */

@media (max-width: 768px) {
  .btn-primary,
  .btn-stripe-primary {
    box-shadow: 0 2px 8px rgba(10, 37, 64, 0.25) !important;
  }
  
  .btn-primary:hover,
  .btn-stripe-primary:hover {
    transform: none !important;
  }
}
