/**
 * Styles pour la page d'abonnements premium
 */

/* Hero Section */
.subscription-hero {
  height: auto;
  min-height: 55vh;
  background: var(--dark-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--text-light);
  position: relative;
  overflow: hidden;
  clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
}

.hero-bg-slider {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100%; height: 100%;
  z-index: 0;
}

.hero-bg-slide {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  opacity: 0;
  transition: opacity 1.5s ease;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  animation: hero-zoom 10s infinite alternate;
}

.hero-bg-slide.active {
  opacity: 1;
  z-index: 1;
}

@keyframes hero-zoom {
  0% { transform: scale(1); }
  100% { transform: scale(1.1); }
}

.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1;
}

.subscription-hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 2rem;
}

.subscription-hero-content h1 {
  font-size: 2.5rem;
  margin-bottom: 1.2rem;
  font-weight: 700;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.subscription-hero-content p {
  font-size: 1.2rem;
  margin-bottom: 1.8rem;
  opacity: 0.95;
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

.subscription-hero-content .btn {
  font-size: 1.1rem;
  padding: 0.8rem 2rem;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

/* Filtres */
.filters {
  padding: 3rem 0 2rem;
  text-align: center;
  background-color: white;
}

.section-title {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: var(--text-dark);
  position: relative;
  display: inline-block;
  font-weight: 700;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background-color: var(--primary-orange);
}

.section-subtitle {
  font-size: 1.1rem;
  color: #666;
  max-width: 700px;
  margin: 1.5rem auto;
}

.filter-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
  margin-top: 2rem;
  overflow-x: auto;
  padding-bottom: 1rem;
}

.filter-btn {
  padding: 0.8rem 1.5rem;
  border: none;
  background-color: #f0f0f0;
  color: var(--text-dark);
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
}

.filter-btn:hover, .filter-btn.active {
  background-color: var(--primary-orange);
  color: white;
  box-shadow: 0 4px 10px rgba(222, 177, 28, 0.3);
}

.category-count {
  opacity: 0.7;
  font-size: 0.9em;
  font-weight: normal;
}

/* Produits */
.products {
  padding: 2rem 0 4rem;
  background-color: var(--light-bg);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.8rem;
  margin-top: 1.5rem;
}

.product-card {
  background-color: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.07);
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 30px rgba(222, 177, 28, 0.15);
}

.product-img {
  height: 180px;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #f9f9f9;
  transition: all 0.3s ease;
}

.product-card:hover .product-img {
  transform: scale(1.05);
}

.product-info {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-info h3 {
  margin-bottom: 0.5rem;
  color: var(--dark-bg);
  font-size: 1.3rem;
  font-weight: 700;
}

.product-categories {
  margin-bottom: 0.8rem;
}

.product-categories small {
  color: #777;
  font-size: 0.85rem;
  background-color: #f0f0f0;
  padding: 0.2rem 0.6rem;
  border-radius: 50px;
}

.product-info p {
  font-size: 0.95rem;
  color: #666;
  margin-bottom: 1rem;
  flex-grow: 1;
  line-height: 1.5;
}

.price-section {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 1rem 0;
}

.price {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary-orange);
}

.original-price {
  font-size: 1rem;
  text-decoration: line-through;
  color: #999;
}

.duration {
  color: #666;
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.95rem;
}

.duration i {
  color: var(--primary-orange);
}

.add-to-cart {
  width: 100%;
  text-align: center;
  padding: 0.8rem;
  font-size: 1rem;
  margin-top: auto;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.add-to-cart.loading {
  opacity: 0.8;
  cursor: wait;
}

.discount-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: #e74c3c;
  color: white;
  padding: 0.3rem 0.7rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.9rem;
  z-index: 2;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.btn-disabled {
  background-color: #ccc !important;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

/* FAQ */
.faq {
  padding: 4rem 0;
  background-color: white;
}

.faq-item {
  margin-bottom: 1rem;
  border: 1px solid #eee;
  border-radius: 8px;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  padding: 1.2rem;
  text-align: left;
  background-color: #f9f9f9;
  border: none;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s ease;
}

.faq-question:hover {
  background-color: var(--light-orange);
}

.faq-question::after {
  content: '+';
  font-size: 1.5rem;
  color: var(--primary-orange);
}

.faq-question.active {
  background-color: var(--light-orange);
}

.faq-question.active::after {
  content: '-';
}

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

.faq-answer.show {
  height: auto;
  padding: 1.2rem;
}

.faq-answer p {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.6;
}

/* Notification */
.cart-notification {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--primary-orange);
  color: white;
  padding: 1rem 2rem;
  border-radius: 50px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  font-weight: 600;
}

/* Message "Aucun produit" */
.no-products {
  text-align: center;
  padding: 3rem;
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  grid-column: 1 / -1;
}

.no-products i {
  font-size: 3rem;
  color: var(--primary-orange);
  margin-bottom: 1rem;
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  margin-top: 2.5rem;
  grid-column: 1 / -1;
}

.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin: 0 5px;
  border-radius: 50%;
  background-color: white;
  color: var(--text-dark);
  text-decoration: none;
  transition: all 0.2s;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.pagination .page-numbers.current {
  background-color: var(--primary-orange);
  color: white;
}

.pagination .page-numbers:hover:not(.current) {
  background-color: #f0f0f0;
  transform: translateY(-2px);
}

.pagination .prev, .pagination .next {
  width: auto;
  padding: 0 15px;
  border-radius: 20px;
}

/* Responsive */
@media (max-width: 992px) {
  .subscription-hero-content h1 {
    font-size: 2rem;
  }
  
  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }
}

@media (max-width: 768px) {
  .subscription-hero {
    min-height: 40vh;
    clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%);
  }
  
  .subscription-hero-content h1 {
    font-size: 1.8rem;
  }
  
  .section-title {
    font-size: 1.6rem;
  }
  
  .filter-buttons {
    justify-content: flex-start;
    padding-bottom: 1rem;
  }
  
  .filter-btn {
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
  }
  
  .product-img {
    height: 140px;
  }
}

@media (max-width: 576px) {
  .products-grid {
    grid-template-columns: 1fr;
    gap: 1.2rem;
  }
  
  .subscription-hero-content {
    padding: 1rem;
  }
  
  .subscription-hero-content h1 {
    font-size: 1.5rem;
  }
  
  .subscription-hero-content p {
    font-size: 1rem;
  }
  
  .product-card {
    max-width: 320px;
    margin: 0 auto;
  }
}
