/* ═══════════════════════════════════════════════════════════════════════
   pourquoi-serdipay.css — Premium "Why SerdiPay" + FAQ sections
   Design tokens are defined in enhancements.css (:root).
   ═══════════════════════════════════════════════════════════════════════ */

/* ══════════════════════════════════════════════════════════════════════
   1. POURQUOI SECTION — hero-style feature section
   ══════════════════════════════════════════════════════════════════════ */

.sp-pourquoi-section {
  position: relative;
  padding: 100px 0 80px;
  background: linear-gradient(160deg, #eef2ff 0%, #f0f9ff 50%, #ecfdf5 100%);
  overflow: hidden;
}

/* decorative blobs */
.sp-pourquoi-section::before,
.sp-pourquoi-section::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}
.sp-pourquoi-section::before {
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.12) 0%, transparent 70%);
  top: -120px;
  left: -100px;
}
.sp-pourquoi-section::after {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.10) 0%, transparent 70%);
  bottom: -80px;
  right: -80px;
}

.sp-pourquoi-section .container {
  position: relative;
  z-index: 1;
}

/* ── Section Header ────────────────────────────────────────────────── */
.sp-section-header {
  text-align: center;
  margin-bottom: 64px;
}

.sp-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 18px;
  background: rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: 100px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sp-blue-mid);
  margin-bottom: 20px;
}

.sp-eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--sp-blue-mid);
  animation: sp-pulse 2s ease-in-out infinite;
}

@keyframes sp-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%       { transform: scale(1.45); opacity: 0.6; }
}

.sp-section-title {
  font-family: 'Inter', 'Poppins', sans-serif;
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--sp-text-h);
  margin-bottom: 18px;
  letter-spacing: -0.02em;
}

.sp-title-gradient {
  background: linear-gradient(135deg, var(--sp-blue-mid) 0%, var(--sp-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.sp-section-sub {
  font-size: 1.1rem;
  color: var(--sp-text-muted);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ── Stats Bar ─────────────────────────────────────────────────────── */
.sp-stats-bar {
  display: flex;
  justify-content: center;
  gap: 0;
  margin-bottom: 72px;
  background: var(--sp-bg-card);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--sp-border);
  border-radius: var(--sp-radius-lg);
  padding: 28px 40px;
  box-shadow: var(--sp-shadow-md);
  flex-wrap: wrap;
}

.sp-stat-item {
  flex: 1;
  min-width: 140px;
  text-align: center;
  padding: 0 24px;
  position: relative;
}

.sp-stat-item + .sp-stat-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10%;
  height: 80%;
  width: 1px;
  background: var(--sp-border);
}

.sp-stat-number {
  font-family: 'Inter', sans-serif;
  font-size: 2.2rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--sp-blue) 0%, var(--sp-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
  display: block;
}

.sp-stat-label {
  font-size: 0.82rem;
  color: var(--sp-text-muted);
  font-weight: 500;
  margin-top: 4px;
  display: block;
}

/* ── Feature Cards Grid ────────────────────────────────────────────── */
.sp-features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 64px;
}

.sp-feature-card {
  background: var(--sp-bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--sp-border);
  border-radius: var(--sp-radius);
  padding: 36px 28px 32px;
  box-shadow: var(--sp-shadow-sm);
  transition: transform var(--sp-transition), box-shadow var(--sp-transition), border-color var(--sp-transition);
  position: relative;
  overflow: hidden;
  cursor: default;
}

/* top accent line */
.sp-feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--sp-blue-mid), var(--sp-cyan));
  opacity: 0;
  transition: opacity var(--sp-transition);
}

/* glow on hover */
.sp-feature-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--sp-radius);
  background: radial-gradient(ellipse at 50% 0%, rgba(37, 99, 235, 0.06) 0%, transparent 65%);
  opacity: 0;
  transition: opacity var(--sp-transition);
  pointer-events: none;
}

.sp-feature-card:hover {
  transform: translateY(-7px);
  box-shadow: var(--sp-shadow-lg);
  border-color: rgba(37, 99, 235, 0.25);
}

.sp-feature-card:hover::before { opacity: 1; }
.sp-feature-card:hover::after  { opacity: 1; }

/* icon wrapper */
.sp-feature-icon {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  position: relative;
  z-index: 1;
  transition: transform var(--sp-transition);
}

.sp-feature-card:hover .sp-feature-icon {
  transform: scale(1.1) rotate(-3deg);
}

.sp-feature-icon svg {
  width: 28px;
  height: 28px;
}

/* icon color themes */
.sp-icon-blue    { background: linear-gradient(135deg, rgba(182,31,53,0.12), rgba(182,31,53,0.06)); }
.sp-icon-cyan    { background: linear-gradient(135deg, #cffafe, #a5f3fc); }
.sp-icon-emerald { background: linear-gradient(135deg, #d1fae5, #a7f3d0); }
.sp-icon-violet  { background: linear-gradient(135deg, #ede9fe, #ddd6fe); }
.sp-icon-amber   { background: linear-gradient(135deg, #fef3c7, #fde68a); }
.sp-icon-rose    { background: linear-gradient(135deg, #ffe4e6, #fecdd3); }

.sp-icon-blue svg    { color: var(--sp-primary); }
.sp-icon-cyan svg    { color: #0891b2; }
.sp-icon-emerald svg { color: #059669; }
.sp-icon-violet svg  { color: #7c3aed; }
.sp-icon-amber svg   { color: #d97706; }
.sp-icon-rose svg    { color: #e11d48; }

.sp-feature-title {
  font-family: 'Inter', sans-serif;
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--sp-text-h);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.sp-feature-desc {
  font-size: 0.88rem;
  color: var(--sp-text-body);
  line-height: 1.65;
  margin: 0;
}

.sp-feature-badge {
  display: inline-block;
  margin-top: 14px;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.sp-badge-blue    { background: rgba(37, 99, 235, 0.1);  color: var(--sp-blue-mid); }
.sp-badge-cyan    { background: rgba(6, 182, 212, 0.1);  color: #0891b2; }
.sp-badge-emerald { background: rgba(16, 185, 129, 0.1); color: #059669; }
.sp-badge-violet  { background: rgba(124, 58, 237, 0.1); color: #7c3aed; }
.sp-badge-amber   { background: rgba(217, 119, 6, 0.1);  color: #d97706; }
.sp-badge-rose    { background: rgba(225, 29, 72, 0.1);  color: #e11d48; }

/* ── Trust Badges Row ─────────────────────────────────────────────── */
.sp-trust-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  padding-top: 8px;
}

.sp-trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--sp-white);
  border: 1px solid var(--sp-border);
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--sp-text-body);
  box-shadow: var(--sp-shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sp-trust-badge:hover {
  transform: translateY(-2px);
  box-shadow: var(--sp-shadow-md);
}

.sp-trust-badge svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.sp-trust-icon-green { color: var(--sp-emerald); }
.sp-trust-icon-blue  { color: var(--sp-blue-mid); }
.sp-trust-icon-gold  { color: #d97706; }

/* satisfaction meter */
.sp-satisfaction {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  background: var(--sp-white);
  border: 1px solid var(--sp-border);
  border-radius: var(--sp-radius-sm);
  padding: 14px 24px;
  box-shadow: var(--sp-shadow-sm);
}

.sp-sat-stars {
  display: flex;
  gap: 3px;
  color: #f59e0b;
  font-size: 1rem;
}

.sp-sat-label {
  font-size: 0.75rem;
  color: var(--sp-text-muted);
  font-weight: 500;
}

/* ══════════════════════════════════════════════════════════════════════
   2. FAQ SECTION
   ══════════════════════════════════════════════════════════════════════ */

.sp-faq-section {
  padding: 90px 0 80px;
  background: var(--sp-white);
  position: relative;
}

.sp-faq-section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(37, 99, 235, 0.15), transparent);
}

.sp-faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 56px;
}

/* single accordion item */
.sp-faq-item {
  background: #fafbff;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: var(--sp-radius-sm);
  overflow: hidden;
  transition: box-shadow var(--sp-transition), border-color var(--sp-transition);
}

.sp-faq-item:hover {
  box-shadow: var(--sp-shadow-md);
  border-color: rgba(37, 99, 235, 0.22);
}

.sp-faq-item.sp-open {
  border-color: rgba(37, 99, 235, 0.30);
  box-shadow: 0 4px 24px rgba(37, 99, 235, 0.08);
  background: var(--sp-white);
}

.sp-faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  transition: background var(--sp-transition);
}

.sp-faq-question:hover {
  background: rgba(37, 99, 235, 0.03);
}

.sp-faq-q-inner {
  display: flex;
  align-items: center;
  gap: 14px;
}

.sp-faq-icon-wrap {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, #dbeafe, #bfdbfe);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background var(--sp-transition);
}

.sp-faq-item.sp-open .sp-faq-icon-wrap {
  background: linear-gradient(135deg, var(--sp-blue-mid), var(--sp-cyan));
}

.sp-faq-icon-wrap svg {
  width: 18px;
  height: 18px;
  color: var(--sp-blue-mid);
  transition: color var(--sp-transition);
}

.sp-faq-item.sp-open .sp-faq-icon-wrap svg {
  color: white;
}

.sp-faq-q-text {
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--sp-text-h);
  line-height: 1.4;
}

.sp-faq-chevron {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: var(--sp-text-muted);
  transition: transform var(--sp-transition), color var(--sp-transition);
}

.sp-faq-item.sp-open .sp-faq-chevron {
  transform: rotate(180deg);
  color: var(--sp-blue-mid);
}

/* answer panel */
.sp-faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              padding   0.4s cubic-bezier(0.4, 0, 0.2, 1),
              opacity   0.3s ease;
  opacity: 0;
}

.sp-faq-item.sp-open .sp-faq-answer {
  max-height: 500px;
  opacity: 1;
}

.sp-faq-answer-inner {
  padding: 0 24px 24px 76px;
  font-size: 0.88rem;
  color: var(--sp-text-body);
  line-height: 1.75;
  border-top: 1px solid rgba(148, 163, 184, 0.15);
  padding-top: 16px;
  margin: 0 24px;
}


/* ══════════════════════════════════════════════════════════════════════
   4. SCROLL-FADE-UP ANIMATION
   ══════════════════════════════════════════════════════════════════════ */

.sp-fade-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.sp-fade-up.sp-visible {
  opacity: 1;
  transform: translateY(0);
}

/* staggered delays for cards */
.sp-feature-card:nth-child(1) { transition-delay: 0.0s; }
.sp-feature-card:nth-child(2) { transition-delay: 0.07s; }
.sp-feature-card:nth-child(3) { transition-delay: 0.14s; }
.sp-feature-card:nth-child(4) { transition-delay: 0.21s; }
.sp-feature-card:nth-child(5) { transition-delay: 0.28s; }
.sp-feature-card:nth-child(6) { transition-delay: 0.35s; }

/* ══════════════════════════════════════════════════════════════════════
   5. RESPONSIVE BREAKPOINTS
   ══════════════════════════════════════════════════════════════════════ */

@media (max-width: 1024px) {
  .sp-features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (max-width: 768px) {
  .sp-pourquoi-section  { padding: 70px 0 60px; }
  .sp-faq-section       { padding: 70px 0 60px; }

  .sp-stats-bar {
    padding: 20px 16px;
    gap: 8px;
  }

  .sp-stat-item {
    padding: 0 14px;
    min-width: 110px;
  }

  .sp-stat-number { font-size: 1.7rem; }

  .sp-features-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .sp-section-header { margin-bottom: 44px; }

  .sp-faq-answer-inner {
    padding-left: 24px;
  }
}

@media (max-width: 480px) {
  .sp-stat-item + .sp-stat-item::before { display: none; }
  .sp-stats-bar { flex-direction: column; gap: 12px; }
  .sp-stat-item { border-bottom: 1px solid var(--sp-border); padding-bottom: 12px; }
  .sp-stat-item:last-child { border-bottom: none; padding-bottom: 0; }

}

/* ══════════════════════════════════════════════════════════════════════
   6. DARK MODE
   ══════════════════════════════════════════════════════════════════════ */

@media (prefers-color-scheme: dark) {
  .sp-pourquoi-section {
    background: linear-gradient(160deg, #0f172a 0%, #0c1a35 50%, #0d1f1a 100%);
  }
  .sp-pourquoi-section::before {
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, transparent 70%);
  }
  .sp-pourquoi-section::after {
    background: radial-gradient(circle, rgba(16, 185, 129, 0.12) 0%, transparent 70%);
  }
  .sp-stats-bar,
  .sp-feature-card {
    background: rgba(15, 23, 42, 0.85);
    border-color: rgba(148, 163, 184, 0.12);
  }
  .sp-section-title,
  .sp-feature-title,
  .sp-faq-q-text { color: #f1f5f9; }
  .sp-section-sub,
  .sp-feature-desc,
  .sp-stat-label  { color: #94a3b8; }
  .sp-faq-section { background: #0f172a; }
  .sp-faq-item    { background: #1e293b; border-color: rgba(148, 163, 184, 0.12); }
  .sp-faq-item.sp-open { background: #1a2744; }
  .sp-faq-answer-inner { color: #94a3b8; border-color: rgba(148, 163, 184, 0.1); }
  .sp-trust-badge { background: #1e293b; border-color: rgba(148, 163, 184, 0.12); color: #94a3b8; }
}
