/**
 * Styles pour la section de comparaison entre shortener.live et Bitly
 * Optimisé pour Core Web Vitals et expérience mobile
 * Conforme à la loi algérienne 18-07 et au RGPD
 */

/* Section de comparaison */
.comparison-section {
  padding: 60px 0;
  background-color: #fff;
  position: relative;
}

.comparison-section h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  font-weight: 700;
  text-align: center;
  color: #333;
}

.comparison-subtitle {
  text-align: center;
  font-size: 1.1rem;
  color: #666;
  margin-bottom: 2rem;
}

/* Table de comparaison */
.comparison-table {
  margin-bottom: 2rem;
  overflow-x: auto;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  border-radius: 8px;
}

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

.comparison-table th {
  background-color: #f8f9fa;
  padding: 15px 20px;
  text-align: left;
  font-weight: 600;
  color: #333;
  border-bottom: 2px solid #eee;
}

.comparison-table th.highlight {
  color: #FF6B00;
  background-color: #fff9f5;
}

.comparison-table td {
  padding: 12px 20px;
  border-bottom: 1px solid #eee;
  vertical-align: top;
  line-height: 1.5;
}

.comparison-table td.highlight {
  background-color: #fff9f5;
  font-weight: 500;
  color: #333;
}

/* Prix et badges */
.price-tag {
  display: block;
  font-size: 0.85rem;
  font-weight: normal;
  color: #666;
  margin-top: 4px;
}

/* Arguments de vente */
.comparison-arguments {
  background-color: #ffffff;
  padding: 25px 20px;
  margin: 30px 0;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
  display: block;
  width: 100%;
  box-sizing: border-box;
  overflow: visible; /* Assure que le contenu ne soit pas tronqué */
  clear: both; /* Évite les problèmes de flottement */
}

.comparison-arguments h2 {
  font-size: 2rem;
  margin-bottom: 25px;
  color: #333;
  text-align: center;
  display: block;
  font-weight: 600;
}

.comparison-arguments ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
  display: block;
}

.comparison-arguments li.check-item {
  padding: 10px 0 10px 40px;
  position: relative;
  margin-bottom: 15px;
  display: block;
  font-size: 1.05rem;
  line-height: 1.6;
}

.comparison-arguments li.check-item:before {
  content: '\2713';
  color: #ffffff;
  background-color: #FF6B00;
  position: absolute;
  left: 0;
  top: 10px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: bold;
  -webkit-box-align: center;
  -webkit-box-pack: center;
  text-align: center;
  line-height: 24px;
}

.comparison-arguments .check-title {
  color: #FF6B00;
  font-weight: 700;
}

/* CTA section */
.comparison-cta {
  text-align: center;
  margin-top: 2rem;
}

.comparison-guarantee {
  margin-top: 1rem;
  color: #666;
  font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
  .comparison-section h2 {
    font-size: 1.8rem;
  }
  
  .comparison-subtitle {
    font-size: 1rem;
    padding: 0 15px;
  }
  
  .comparison-table {
    margin: 0 -15px;
    width: calc(100% + 30px);
    border-radius: 0;
    box-shadow: none;
  }
  
  .comparison-table table {
    min-width: 650px;
  }
  
  .comparison-arguments {
    margin: 20px 15px;
    padding: 20px;
  }
  
  .comparison-arguments h3 {
    font-size: 1.2rem;
  }
}

/* Styles spécifiques pour les éléments de comparaison */
.comparison-table td:first-child {
  font-weight: 600;
  min-width: 180px;
}

/* Ajout de styles pour les émojis et symboles */
.comparison-table td:nth-child(3) {
  color: #333;
}

.comparison-table td .highlight,
.comparison-table td:nth-child(3) strong {
  color: #FF6B00;
}

/* Support RTL */
[dir="rtl"] .comparison-arguments li {
  padding: 8px 28px 8px 0;
}

[dir="rtl"] .comparison-arguments li:before {
  left: auto;
  right: 0;
}

/* Accessibilité */
@media(prefers-reduced-motion: reduce) {
  .comparison-table,
  .comparison-arguments {
    transition: none;
  }
}
