/* ========================================
   PRICING HERO
======================================== */
.pricing-hero {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 100px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.pricing-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="50" height="50" patternUnits="userSpaceOnUse"><path d="M 50 0 L 0 0 0 50" fill="none" stroke="rgba(255,255,255,0.05)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
  opacity: 0.3;
}

.pricing-hero-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 20px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  animation: fadeInDown 0.8s ease;
}

.pricing-hero-title {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 20px;
  line-height: 1.2;
  animation: fadeInUp 0.8s ease 0.2s backwards;
}

.pricing-hero-subtitle {
  font-size: 1.3rem;
  margin-bottom: 40px;
  opacity: 0.95;
  animation: fadeInUp 0.8s ease 0.4s backwards;
}

/* Toggle annuel/mensuel */
.pricing-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  animation: fadeInUp 0.8s ease 0.6s backwards;
}

.toggle-label {
  font-size: 1.1rem;
  font-weight: 600;
}

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 30px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 30px;
  transition: 0.4s;
}

.toggle-slider:before {
  position: absolute;
  content: "";
  height: 22px;
  width: 22px;
  left: 4px;
  bottom: 4px;
  background: white;
  border-radius: 50%;
  transition: 0.4s;
}

input:checked + .toggle-slider {
  background: white;
}

input:checked + .toggle-slider:before {
  background: #667eea;
  transform: translateX(30px);
}

.toggle-badge {
  background: #ffd700;
  color: #2c3e50;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

/* ========================================
   PRICING GRID
======================================== */
.pricing-section {
  padding: 80px 0;
  background: #f8f9fa;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  margin-bottom: 80px;
}

.pricing-card {
  background: white;
  border-radius: 20px;
  padding: 40px 30px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  animation: fadeInUp 0.6s ease backwards;
}

.pricing-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.pricing-card.popular {
  border: 3px solid #667eea;
  transform: scale(1.05);
}

.pricing-card.popular:hover {
  transform: scale(1.08) translateY(-10px);
}

.popular-badge {
  position: absolute;
  top: 20px;
  right: -35px;
  background: linear-gradient(135deg, #ffd700, #ffed4e);
  color: #2c3e50;
  padding: 5px 40px;
  font-weight: 700;
  font-size: 0.85rem;
  transform: rotate(45deg);
  box-shadow: 0 2px 10px rgba(255, 215, 0, 0.3);
}

.plan-header {
  text-align: center;
  margin-bottom: 30px;
}

.plan-icon {
  font-size: 3rem;
  margin-bottom: 15px;
}

.plan-name {
  font-size: 1.8rem;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 10px;
}

.plan-description {
  color: #64748b;
  font-size: 1rem;
}

.plan-price {
  text-align: center;
  margin-bottom: 30px;
  padding: 20px 0;
  border-top: 2px solid #f0f0f0;
  border-bottom: 2px solid #f0f0f0;
}

.price-amount {
  font-size: 3rem;
  font-weight: 800;
  color: #667eea;
  line-height: 1;
}

.price-period {
  display: block;
  color: #64748b;
  margin-top: 5px;
  font-size: 1rem;
}

.plan-features {
  list-style: none;
  padding: 0;
  margin: 0 0 30px 0;
}

.plan-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #f0f0f0;
  font-size: 0.95rem;
}

.plan-features li:last-child {
  border-bottom: none;
}

.plan-features li.included i {
  color: #10b981;
  font-size: 1.1rem;
}

.plan-features li.excluded {
  opacity: 0.4;
}

.plan-features li.excluded i {
  color: #ef4444;
}

.plan-btn {
  width: 100%;
  padding: 15px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.3s ease;
}

.plan-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(102, 126, 234, 0.4);
}

.plan-btn.btn-popular {
  background: linear-gradient(135deg, #ffd700, #ffed4e);
  color: #2c3e50;
}

.plan-btn.btn-popular:hover {
  box-shadow: 0 10px 25px rgba(255, 215, 0, 0.4);
}

/* ========================================
   COMPARISON TABLE
======================================== */
.pricing-comparison {
  margin-bottom: 80px;
}

.comparison-title {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 40px;
}

.comparison-table-wrapper {
  overflow-x: auto;
  background: white;
  border-radius: 20px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

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

.comparison-table thead {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
}

.comparison-table th {
  padding: 20px;
  text-align: center;
  font-weight: 700;
  font-size: 1.1rem;
}

.comparison-table th:first-child {
  text-align: left;
  border-radius: 20px 0 0 0;
}

.comparison-table tbody tr {
  border-bottom: 1px solid #f0f0f0;
}

.comparison-table tbody tr:hover {
  background: rgba(102, 126, 234, 0.05);
}

.comparison-table tbody td {
  padding: 20px;
  text-align: center;
  font-size: 0.95rem;
}

.comparison-table tbody td:first-child {
  text-align: left;
  font-weight: 600;
  color: #2c3e50;
}

.text-success {
  color: #10b981;
  font-size: 1.3rem;
}

.text-muted {
  color: #cbd5e0;
}

/* ========================================
   FAQ PRICING
======================================== */
.pricing-faq {
  max-width: 900px;
  margin: 0 auto 80px;
}

.faq-title {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 40px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.faq-item {
  background: white;
  border-radius: 15px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  animation: fadeInUp 0.6s ease backwards;
}

.faq-question {
  padding: 25px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
  transition: background 0.3s ease;
}

.faq-question:hover {
  background: rgba(102, 126, 234, 0.05);
}

.faq-question h4 {
  margin: 0;
  font-size: 1.1rem;
  color: #2c3e50;
}

.faq-question i {
  color: #667eea;
  transition: transform 0.3s ease;
}

.faq-item.active .faq-question i {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
  max-height: 300px;
  padding: 0 25px 25px;
}

.faq-answer p {
  color: #64748b;
  line-height: 1.7;
  margin: 0;
}

/* ========================================
   CTA FINAL
======================================== */
.pricing-cta {
  text-align: center;
  padding: 80px 40px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-radius: 30px;
  box-shadow: 0 20px 60px rgba(102, 126, 234, 0.3);
}

.pricing-cta h2 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 15px;
}

.pricing-cta p {
  font-size: 1.2rem;
  margin-bottom: 40px;
  opacity: 0.95;
}

.cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-cta-primary,
.btn-cta-secondary {
  padding: 15px 40px;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-cta-primary {
  background: white;
  color: #667eea;
}

.btn-cta-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(255, 255, 255, 0.3);
}

.btn-cta-secondary {
  background: rgba(255, 255, 255, 0.2);
  color: white;
  border: 2px solid white;
  backdrop-filter: blur(10px);
}

.btn-cta-secondary:hover {
  background: white;
  color: #667eea;
  transform: translateY(-3px);
}

/* ========================================
   ANIMATIONS
======================================== */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========================================
   RESPONSIVE
======================================== */
@media (max-width: 992px) {
  .pricing-grid {
    grid-template-columns: 1fr;
  }
  
  .pricing-card.popular {
    transform: scale(1);
  }
  
  .pricing-card.popular:hover {
    transform: scale(1.02) translateY(-5px);
  }
}

@media (max-width: 768px) {
  .pricing-hero-title {
    font-size: 2.2rem;
  }
  
  .pricing-hero-subtitle {
    font-size: 1.1rem;
  }
  
  .comparison-table th,
  .comparison-table td {
    padding: 15px 10px;
    font-size: 0.85rem;
  }
  
  .pricing-cta h2 {
    font-size: 2rem;
  }
  
  .cta-buttons {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .pricing-hero {
    padding: 80px 0 60px;
  }
  
  .pricing-hero-title {
    font-size: 1.8rem;
  }
  
  .pricing-toggle {
    flex-direction: column;
    gap: 10px;
  }
  
  .plan-price .price-amount {
    font-size: 2.5rem;
  }
  
  .comparison-table-wrapper {
    border-radius: 10px;
  }
}

/* Encadré expéditeurs (compte gratuit) */
.pricing-shipper-note {
  display: flex;
  align-items: center;
  gap: 18px;
  background: white;
  border: 1px solid #e0e7ff;
  border-left: 4px solid #667eea;
  border-radius: 16px;
  padding: 18px 22px;
  margin-bottom: 40px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.pricing-shipper-note > i {
  font-size: 1.6rem;
  color: #667eea;
}

.pricing-shipper-note strong {
  display: block;
  color: #1e293b;
  margin-bottom: 2px;
}

.pricing-shipper-note p {
  margin: 0;
  color: #64748b;
  font-size: 0.95rem;
  line-height: 1.5;
}

.pricing-shipper-note a {
  margin-left: auto;
  white-space: nowrap;
  color: #667eea;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid #667eea;
  border-radius: 999px;
  padding: 8px 16px;
}

.pricing-shipper-note a:hover {
  background: #667eea;
  color: white;
}

.price-on-request {
  display: inline-block;
  font-size: 1.05rem;
  font-weight: 600;
  color: #667eea;
  padding: 14px 0;
}

@media (max-width: 768px) {
  .pricing-shipper-note {
    flex-direction: column;
    align-items: flex-start;
  }

  .pricing-shipper-note a {
    margin-left: 0;
  }
}
