/* =========================================================
   CyberSource BGFI — Solutions page redesign
   Charge APRÈS styles.css et responsive.css
   ========================================================= */

/* -------- Page Solutions : products section -------- */
.products-section {
  padding: 60px 0 80px;
  background:
    radial-gradient(70% 50% at 50% 0%, rgba(58, 162, 171, .06), transparent 70%),
    linear-gradient(180deg, #fff 0%, #f8fcfe 100%);
}

.product-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 56px 0;
  border-bottom: 1px solid rgba(0, 53, 101, .07);
}
.product-block:last-of-type { border-bottom: 0; }
.product-block--reverse .product-copy { order: 2; }
.product-block--reverse .product-visual { order: 1; }

.product-copy { min-width: 0; }
.product-visual { min-width: 0; }

.product-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.product-badge--teal   { background: rgba(58, 162, 171, .14); color: #1f6f76; }
.product-badge--navy   { background: rgba(0, 53, 101, .12);  color: #003565; }
.product-badge--sage   { background: rgba(170, 182, 147, .25); color: #51623c; }
.product-badge--purple { background: rgba(126, 87, 194, .14); color: #5b3da0; }

.product-copy h2 {
  font-size: clamp(1.8rem, 2.2vw + .8rem, 2.6rem);
  margin: 0 0 14px;
  letter-spacing: -.025em;
  color: var(--navy, #003565);
  line-height: 1.1;
}
.product-lead {
  font-size: clamp(1rem, .35vw + .9rem, 1.12rem);
  line-height: 1.6;
  color: var(--text, #31465F);
  margin: 0 0 24px;
}

.product-features {
  list-style: none;
  padding: 0;
  margin: 0 0 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.product-features li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.product-features li svg {
  flex: 0 0 22px;
  width: 22px;
  height: 22px;
  padding: 4px;
  background: rgba(58, 162, 171, .14);
  border-radius: 999px;
  color: #1f6f76;
  margin-top: 2px;
}
.product-features li strong {
  display: block;
  color: var(--navy, #003565);
  font-size: .98rem;
  margin-bottom: 2px;
  font-weight: 700;
}
.product-features li span {
  display: block;
  color: var(--muted, #6A7D91);
  font-size: .9rem;
  line-height: 1.45;
}

.product-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 0 0 26px;
  padding: 16px 18px;
  background: linear-gradient(135deg, rgba(0,53,101,.04), rgba(58,162,171,.06));
  border-radius: 14px;
  border: 1px solid rgba(0,53,101,.06);
}
.product-stats > div {
  text-align: left;
  min-width: 0;
}
.product-stats b {
  display: block;
  color: var(--navy, #003565);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -.01em;
  white-space: nowrap;
}
.product-stats span {
  display: block;
  color: var(--muted, #6A7D91);
  font-size: .78rem;
  margin-top: 2px;
}

.product-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* ---------------- MOCKUPS (illustrations) ---------------- */
.product-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}
.mockup {
  width: 100%;
  max-width: 540px;
}
.mockup svg {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 30px 70px rgba(0, 53, 101, .12));
}

/* Slight float animation for delight (réduit si reduced motion) */
@media (prefers-reduced-motion: no-preference) {
  .mockup svg { animation: floatY 6s ease-in-out infinite; }
  .product-block--reverse .mockup svg { animation-delay: -3s; }
}
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}

/* ---------------- BACK-OFFICE section ---------------- */
.backoffice-section {
  padding: 90px 0;
  background:
    radial-gradient(50% 60% at 80% 20%, rgba(58,162,171,.22), transparent 65%),
    radial-gradient(60% 70% at 10% 90%, rgba(170,182,147,.18), transparent 65%),
    linear-gradient(135deg, #003565, #001f3c 80%);
  position: relative;
  overflow: hidden;
}
.backoffice-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,.04) 0, transparent 30%),
    radial-gradient(circle at 80% 70%, rgba(255,255,255,.04) 0, transparent 30%);
  pointer-events: none;
}
.backoffice-grid-new {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.backoffice-copy p {
  color: rgba(255,255,255,.78);
  font-size: 1.02rem;
  line-height: 1.6;
  margin: 14px 0 30px;
}
.eyebrow--light {
  background: rgba(255,255,255,.1);
  color: white;
  border: 1px solid rgba(255,255,255,.18);
}
.bo-features {
  display: grid;
  gap: 18px;
  margin-top: 8px;
}
.bo-feature {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
  align-items: start;
}
.bo-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 11px;
  background: rgba(58,162,171,.2);
  color: #b3e1e5;
}
.bo-icon svg { width: 22px; height: 22px; }
.bo-feature h3 {
  color: white;
  font-size: 1.02rem;
  margin: 0 0 4px;
  font-weight: 700;
}
.bo-feature p {
  color: rgba(255,255,255,.65);
  font-size: .92rem;
  line-height: 1.5;
  margin: 0;
}

/* ---------------- RESPONSIVE ---------------- */
@media (max-width: 1099px) {
  .product-block { gap: 36px; padding: 48px 0; }
  .backoffice-grid-new { grid-template-columns: 1fr; gap: 36px; }
}

@media (max-width: 880px) {
  .products-section { padding: 40px 0 50px; }
  .product-block,
  .product-block--reverse {
    grid-template-columns: 1fr !important;
    gap: 28px;
    padding: 40px 0;
  }
  .product-block--reverse .product-copy { order: 0; }
  .product-block--reverse .product-visual { order: -1; } /* image en haut sur mobile */
  .product-stats { padding: 14px; gap: 8px; }
  .product-stats b { font-size: 1rem; }
  .product-stats span { font-size: .72rem; }

  .backoffice-section { padding: 60px 0; }
  .bo-features { gap: 14px; }
}

@media (max-width: 620px) {
  .products-section { padding: 30px 0 40px; }
  .product-block, .product-block--reverse { padding: 32px 0; gap: 22px; }
  .product-copy h2 { font-size: 1.6rem; }
  .product-features li { gap: 10px; }
  .product-features li svg { flex-basis: 20px; width: 20px; height: 20px; }
  .product-features li strong { font-size: .94rem; }
  .product-features li span { font-size: .85rem; }
  .product-cta { width: 100%; justify-content: center; padding: 13px 18px; }

  .backoffice-section { padding: 48px 0; }
  .bo-feature { grid-template-columns: 38px 1fr; gap: 12px; }
  .bo-icon { width: 38px; height: 38px; }
  .bo-icon svg { width: 18px; height: 18px; }

  /* Disable float anim on small screens for performance */
  .mockup svg { animation: none !important; }
}

/* ---------------- HOME : amélioration légère du visuel hero ---------------- */
/* On garde l'existant mais on adoucit ombres et couleurs pour plus de réalisme */
body[data-page="home"] .payment-lab {
  filter: drop-shadow(0 25px 50px rgba(0, 53, 101, .15));
}

/* ---------------- Tarifs page : meilleure lisibilité ---------------- */
body[data-page="tarifs"] .pricing-card { background: white; }

/* ---------------- Page Solutions : sticky CTA navigation entre produits ---------------- */
.products-section .product-block {
  scroll-margin-top: 100px;
}

/* Ancre visible quand on hover sur le titre */
.product-copy h2 {
  position: relative;
}
.product-copy h2::before {
  content: "";
  position: absolute;
  left: -16px;
  top: 50%;
  width: 4px;
  height: 0;
  background: linear-gradient(180deg, #003565, #3AA2AB);
  border-radius: 4px;
  transform: translateY(-50%);
  transition: height .3s;
}
.product-block:hover .product-copy h2::before { height: 70%; }

@media (max-width: 880px) {
  .product-copy h2::before { display: none; }
}
