/* ============================================================
   PRODUITS.CSS — Page produits / tarifs Atryvia
   ============================================================ */

/* ===== HERO ===== */
.page-hero {
  text-align: center;
  padding: 80px 0 48px;
  background: linear-gradient(180deg, var(--cream-warm) 0%, var(--cream-light) 100%);
}

.page-hero h1 {
  font-size: clamp(2.4rem, 4.5vw, 3.6rem);
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--navy);
}

.page-hero p {
  font-size: 1.1rem;
  color: var(--text-light);
  max-width: 65ch;
  margin: 0 auto;
  line-height: 1.7;
}

.hero-badges {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 20px;
}

.hero-badges span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: rgba(45, 90, 61, 0.1);
  color: var(--green);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
}

/* ===== SECTIONS ===== */
.products-section {
  padding: 64px 0;
}

.section-alt {
  background: var(--cream);
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 48px;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-light);
  line-height: 1.7;
}

/* ===== GRILLE PRODUITS ===== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.product-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 2px solid transparent;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.product-card.featured {
  border-color: var(--gold);
  position: relative;
}

.product-card.featured::before {
  content: 'Recommandé';
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold);
  color: white;
  padding: 4px 16px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.product-header h3 {
  margin: 0 0 8px;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--navy);
}

.product-header p {
  margin: 0;
  color: var(--text-light);
  font-size: 0.96rem;
}

.product-price {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1;
}

.product-price span {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--text-muted);
}

.product-features {
  list-style: none;
  padding: 0;
  margin: 0 0 8px;
  display: grid;
  gap: 10px;
}

.product-features li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--text-light);
  font-size: 0.95rem;
}

.product-features li::before {
  content: '✓';
  color: var(--green);
  font-weight: 700;
  flex-shrink: 0;
}

.product-note {
  font-size: 0.88rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: auto;
  padding-top: 12px;
  font-style: italic;
}

.btn-buy {
  width: 100%;
  padding: 14px;
  border-radius: 8px;
  border: none;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s ease, border-color 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-buy.primary {
  background: var(--green);
  color: white;
}

.btn-buy.primary:hover {
  background: var(--green-dark);
}

.btn-buy.free {
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
}

.btn-buy.free:hover {
  background: var(--cream);
  border-color: var(--green);
}

.btn-buy:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ===== ADD-ONS ===== */
.addon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto;
}

.addon-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  border: 1px solid var(--border);
}

.addon-card:hover {
  transform: translateY(-3px);
  border-color: var(--gold);
  box-shadow: var(--shadow-lg);
}

.addon-icon {
  font-size: 2rem;
  margin-bottom: 12px;
  display: block;
}

.addon-card h4 {
  margin: 0 0 6px;
  font-size: 1.1rem;
  color: var(--navy);
  font-weight: 700;
}

.addon-card p {
  margin: 0 0 10px;
  color: var(--text-light);
  font-size: 0.9rem;
}

.addon-price {
  font-weight: 700;
  color: var(--gold-dark);
  font-size: 1.2rem;
  margin-bottom: 16px;
  display: block;
}

/* ===== VALEURS ===== */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
}

.value-card {
  text-align: center;
  padding: 32px 24px;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.value-card:hover {
  border-color: var(--green);
  transform: translateY(-3px);
}

.value-icon {
  font-size: 2.2rem;
  margin-bottom: 16px;
  display: inline-block;
}

.value-card h3 {
  margin: 0 0 8px;
  color: var(--navy);
  font-size: 1.15rem;
}

.value-card p {
  margin: 0;
  color: var(--text-light);
  font-size: 0.95rem;
}

/* ===== FAQ ===== */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--white);
  border-radius: var(--radius-lg);
  margin-bottom: 16px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  padding: 20px 24px;
  background: none;
  border: none;
  text-align: left;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--navy);
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  transition: background 0.2s ease;
}

.faq-question:hover {
  background: var(--cream-light);
}

.faq-icon {
  font-size: 1.2rem;
  transition: transform 0.3s ease;
  color: var(--green);
  flex-shrink: 0;
  margin-left: 12px;
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 24px;
}

.faq-item.open .faq-answer {
  max-height: 400px;
  padding: 0 24px 20px;
}

.faq-answer p {
  color: var(--text-light);
  line-height: 1.6;
  font-size: 0.95rem;
}

/* ===== CTA FINAL ===== */
.cta-banner {
  background: var(--navy);
  padding: 64px 32px;
  text-align: center;
  color: white;
  border-radius: var(--radius-lg);
  margin: 0 0 64px;
}

.cta-banner h2 {
  color: white;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 16px;
}

.cta-banner p {
  color: rgba(255, 255, 255, 0.85);
  max-width: 60ch;
  margin: 0 auto 28px;
  font-size: 1.05rem;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .product-grid, .addon-grid, .values-grid { grid-template-columns: 1fr; }
  .page-hero { padding: 48px 0 32px; }
  .cta-banner { padding: 48px 24px; }
}
