/* Comprehensive comparison tables styling for etienne.services */

/* Pricing Comparison Section */
.pricing-comparison-section {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  padding: 4rem 0;
}

.comparison-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

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

.comparison-title {
  font-size: 2.5rem;
  font-weight: bold;
  color: #1f2937;
  margin-bottom: 1rem;
}

.comparison-subtitle {
  font-size: 1.25rem;
  color: #6b7280;
  max-width: 60rem;
  margin: 0 auto 1.5rem;
}

.savings-highlight {
  display: inline-block;
  background: #dc2626;
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-size: 1.125rem;
  font-weight: 600;
}

/* Comparison Table Styling */
.comparison-table-wrapper {
  background: white;
  border-radius: 1rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  margin-bottom: 2rem;
}

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

.comparison-table th {
  background: linear-gradient(135deg, #1e3a8a, #1e40af);
  color: white;
  padding: 1rem 1.5rem;
  text-align: center;
  font-weight: 600;
  font-size: 0.875rem;
}

.comparison-table th.our-service {
  background: #dc2626;
  position: relative;
}

.comparison-table th.our-service::after {
  content: "MEILLEUR PRIX";
  position: absolute;
  bottom: -0.5rem;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.2);
  color: white;
  padding: 0.125rem 0.5rem;
  border-radius: 1rem;
  font-size: 0.625rem;
  font-weight: bold;
}

.comparison-table td {
  padding: 1rem 1.5rem;
  text-align: center;
  border-bottom: 1px solid #e5e7eb;
  vertical-align: middle;
}

.comparison-table td.service-name {
  text-align: left;
  font-weight: 600;
  color: #1f2937;
}

.comparison-table td.service-desc {
  font-size: 0.875rem;
  color: #6b7280;
  margin-top: 0.25rem;
}

.comparison-table td.our-price {
  background: #fef2f2;
  border-left: 4px solid #dc2626;
  border-right: 4px solid #dc2626;
  color: #dc2626;
  font-weight: bold;
  font-size: 1.5rem;
}

.comparison-table td.competitor-price {
  color: #6b7280;
  font-size: 0.875rem;
}

.comparison-table td.savings {
  background: #f0fdf4;
  color: #15803d;
  font-weight: 600;
  font-size: 0.875rem;
}

.comparison-table tr:hover {
  background: #f9fafb;
  transform: translateY(-1px);
  transition: all 0.2s ease;
}

.comparison-table tr:hover td.our-price {
  background: #fee2e2;
}

/* Advantages Grid */
.advantages-section {
  background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
  padding: 3rem 0;
  margin: 3rem 0;
  border-radius: 1rem;
}

.advantages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.advantage-card {
  text-align: center;
  padding: 2rem 1.5rem;
  border-radius: 0.75rem;
  transition: all 0.3s ease;
  cursor: pointer;
}

.advantage-card.highlight {
  background: #dc2626;
  color: white;
  box-shadow: 0 10px 25px rgba(220, 38, 38, 0.4);
}

.advantage-card:not(.highlight) {
  background: white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.advantage-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.advantage-card.highlight:hover {
  box-shadow: 0 20px 40px rgba(220, 38, 38, 0.5);
}

.advantage-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.advantage-title {
  font-weight: bold;
  margin-bottom: 0.5rem;
  font-size: 1.125rem;
}

.advantage-description {
  font-size: 0.875rem;
  opacity: 0.9;
}

/* Quality Comparison Section */
.quality-comparison-section {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 50%, #f1f5f9 100%);
  padding: 4rem 0;
}

.quality-table th {
  background: linear-gradient(135deg, #059669, #047857);
}

/* FAQ Section */
.faq-section {
  background: white;
  border-radius: 1rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  padding: 2rem;
  margin: 3rem 0;
}

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

.faq-item {
  margin-bottom: 1.5rem;
}

.faq-question {
  font-weight: bold;
  color: #1f2937;
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

.faq-answer {
  color: #6b7280;
  line-height: 1.6;
  font-size: 0.875rem;
}

/* Service Areas Section */
.service-areas-section {
  padding: 4rem 0;
  background: white;
}

.areas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.area-card {
  padding: 1.5rem;
  border-radius: 0.5rem;
  text-align: center;
  border-left: 4px solid;
}

.area-card.paris {
  background: #fef2f2;
  border-left-color: #dc2626;
}

.area-card.petite-couronne {
  background: #eff6ff;
  border-left-color: #2563eb;
}

.area-card.grande-couronne {
  background: #f0fdf4;
  border-left-color: #16a34a;
}

.area-card.urgence {
  background: #faf5ff;
  border-left-color: #9333ea;
}

.area-title {
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.area-card.paris .area-title { color: #991b1b; }
.area-card.petite-couronne .area-title { color: #1d4ed8; }
.area-card.grande-couronne .area-title { color: #15803d; }
.area-card.urgence .area-title { color: #7c3aed; }

.area-description {
  font-size: 0.875rem;
  color: #6b7280;
  margin-bottom: 0.5rem;
}

.area-time {
  font-weight: 600;
  font-size: 0.875rem;
}

.area-card.paris .area-time { color: #dc2626; }
.area-card.petite-couronne .area-time { color: #2563eb; }
.area-card.grande-couronne .area-time { color: #16a34a; }
.area-card.urgence .area-time { color: #9333ea; }

/* Mobile Responsive */
@media (max-width: 1024px) {
  .comparison-table-wrapper {
    overflow-x: auto;
  }

  .comparison-table {
    min-width: 800px;
  }
}

@media (max-width: 768px) {
  .comparison-title {
    font-size: 2rem;
  }

  .comparison-subtitle {
    font-size: 1rem;
  }

  .advantages-grid {
    grid-template-columns: 1fr;
  }

  .faq-grid {
    grid-template-columns: 1fr;
  }

  .areas-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .comparison-container {
    padding: 0 0.5rem;
  }

  .comparison-table th,
  .comparison-table td {
    padding: 0.75rem 0.5rem;
    font-size: 0.75rem;
  }

  .areas-grid {
    grid-template-columns: 1fr;
  }
}

/* Animation for table rows */
@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.comparison-table tr {
  animation: slideInUp 0.6s ease-out;
  animation-fill-mode: both;
}

.comparison-table tr:nth-child(1) { animation-delay: 0.1s; }
.comparison-table tr:nth-child(2) { animation-delay: 0.2s; }
.comparison-table tr:nth-child(3) { animation-delay: 0.3s; }
.comparison-table tr:nth-child(4) { animation-delay: 0.4s; }
.comparison-table tr:nth-child(5) { animation-delay: 0.5s; }
.comparison-table tr:nth-child(6) { animation-delay: 0.6s; }

/* Button Styling */
.btn-emergency {
  background: linear-gradient(135deg, #dc2626, #b91c1c);
  color: white;
  padding: 1rem 2rem;
  border-radius: 0.75rem;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.125rem;
  display: inline-flex;
  align-items: center;
  transition: all 0.3s ease;
  box-shadow: 0 10px 25px rgba(220, 38, 38, 0.4);
}

.btn-emergency:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(220, 38, 38, 0.5);
  background: linear-gradient(135deg, #b91c1c, #991b1b);
  color: white;
  text-decoration: none;
}

.btn-secondary {
  background: white;
  color: #1e3a8a;
  border: 2px solid #1e3a8a;
  padding: 1rem 2rem;
  border-radius: 0.75rem;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.125rem;
  display: inline-flex;
  align-items: center;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: #1e3a8a;
  color: white;
  transform: translateY(-2px);
  text-decoration: none;
}

/* Utility Classes */
.text-center { text-align: center; }
.font-bold { font-weight: bold; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mt-4 { margin-top: 1rem; }
.mt-8 { margin-top: 2rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.gap-4 { gap: 1rem; }