/* ===================================
   OFFER COMPARISON - TABLEAUX DE COMPARAISON
   Styles pour les sections de comparaison entre offres
   =================================== */

/* Section comparaison principale */
.offer-comparison {
  padding: 5rem 0;
  background: var(--offer-light);
}

.offer-comparison-intro {
  text-align: center;
  margin-bottom: 3rem;
}

.offer-comparison-subtitle {
  font-size: 1.25rem;
  color: #64748b;
  max-width: 600px;
  margin: 0 auto;
}

/* Tableau de comparaison */
.offer-comparison-table {
  background: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--offer-shadow-lg);
  margin-top: 2rem;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
}

.comparison-table th,
.comparison-table td {
  padding: 1.5rem;
  text-align: center;
  border-bottom: 1px solid var(--offer-border);
}

.comparison-table th {
  background: var(--offer-light);
  font-weight: 600;
  color: var(--offer-dark);
  font-size: 1.125rem;
}

.comparison-table th:first-child {
  text-align: left;
  background: white;
  font-weight: 500;
  color: #64748b;
}

/* Colonnes des offres */
.comparison-offer-header {
  background: linear-gradient(135deg, var(--offer-primary), var(--offer-secondary)) !important;
  color: white !important;
  position: relative;
}

.comparison-offer-header.popular::after {
  content: 'POPULAIRE';
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--offer-warning);
  color: white;
  padding: 0.25rem 1rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
}

.comparison-offer-name {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.comparison-offer-price {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 0.25rem;
}

.comparison-offer-period {
  font-size: 0.875rem;
  opacity: 0.9;
}

/* Cellules de fonctionnalités */
.comparison-feature {
  font-weight: 500;
  color: var(--offer-dark);
}

.comparison-value {
  font-weight: 600;
}

.comparison-value.included {
  color: var(--offer-success);
}

.comparison-value.not-included {
  color: #94a3b8;
}

.comparison-value.limited {
  color: var(--offer-warning);
}

/* Icônes de statut */
.comparison-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  font-weight: bold;
  font-size: 0.875rem;
}

.comparison-icon.check {
  background: var(--offer-success);
  color: white;
}

.comparison-icon.cross {
  background: #e2e8f0;
  color: #94a3b8;
}

.comparison-icon.partial {
  background: var(--offer-warning);
  color: white;
}

/* Boutons CTA dans le tableau */
.comparison-cta {
  padding: 2rem 1.5rem;
  border-bottom: none;
}

.comparison-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  width: 100%;
  max-width: 200px;
  background: linear-gradient(135deg, #6f64db 0%, #5a52c7 50%, #7c3aed 100%);
  color: white;
}

.comparison-btn-primary {
  background: linear-gradient(135deg, var(--offer-primary), var(--offer-secondary));
  color: white;
  box-shadow: var(--offer-shadow);
}

.comparison-btn-primary:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 8px 30px rgba(111, 100, 219, 0.3);
}

.comparison-btn-secondary {
  background: white;
  color: var(--offer-primary);
  border: 2px solid var(--offer-primary);
}

.comparison-btn-secondary:hover {
  background: var(--offer-primary);
  color: white;
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 8px 30px rgba(111, 100, 219, 0.3);
}

/* Comparaison rapide (cartes) */
.offer-quick-comparison {
  padding: 4rem 0;
  background: white;
}

.quick-comparison-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.quick-comparison-card {
  background: white;
  border: 2px solid var(--offer-border);
  border-radius: 20px;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
}

.quick-comparison-card.popular {
  border-color: var(--offer-primary);
  transform: scale(1.05);
}

.quick-comparison-card.popular::before {
  content: 'PLUS POPULAIRE';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--offer-primary);
  color: white;
  padding: 0.5rem 1.5rem;
  border-radius: 25px;
  font-size: 0.875rem;
  font-weight: 700;
}

.quick-comparison-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--offer-shadow-lg);
}

.quick-comparison-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--offer-dark);
  margin-bottom: 1rem;
}

.quick-comparison-price {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--offer-primary);
  margin-bottom: 0.5rem;
}

.quick-comparison-period {
  color: #64748b;
  margin-bottom: 2rem;
}

.quick-comparison-features {
  list-style: none;
  padding: 0;
  margin: 2rem 0;
  text-align: left;
}

.quick-comparison-features li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0;
  color: #475569;
}

.quick-comparison-features li::before {
  content: '✓';
  color: var(--offer-success);
  font-weight: bold;
  width: 20px;
  text-align: center;
}

/* Responsive design */
@media (max-width: 1024px) {
  .comparison-table {
    font-size: 0.875rem;
  }
  
  .comparison-table th,
  .comparison-table td {
    padding: 1rem;
  }
}

@media (max-width: 768px) {
  .offer-comparison-table {
    overflow-x: auto;
  }
  
  .comparison-table {
    min-width: 600px;
  }
  
  .quick-comparison-grid {
    grid-template-columns: 1fr;
  }
  
  .quick-comparison-card.popular {
    transform: none;
  }
}

@media (max-width: 480px) {
  .comparison-table th,
  .comparison-table td {
    padding: 0.75rem 0.5rem;
  }
  
  .comparison-offer-price {
    font-size: 1.5rem;
  }
}