/* ONIPAY — Style Stripe-like
   Light, clean, purple accent #635bff */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --stripe-purple: #635bff;
  --stripe-purple-hover: #5851e6;
  --stripe-purple-light: #f6f5ff;
  --text: #0a2540;
  --text-muted: #425466;
  --text-light: #697386;
  --border: #e6ebf1;
  --bg: #ffffff;
  --bg-alt: #f6f9fc;
  --radius: 8px;
  --radius-lg: 12px;
  --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.06), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --w: min(1200px, 94vw);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: var(--w);
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  font-size: 1.125rem;
}

.logo-icon { display: block; flex-shrink: 0; }

.nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  transition: color 0.15s;
}

.nav-link:hover { color: var(--text); }

.lang-switch { display: flex; gap: 0.25rem; }

.lang-btn {
  padding: 0.35rem 0.6rem;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-light);
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.15s;
}

.lang-btn:hover { color: var(--text); }
.lang-btn.active {
  background: var(--stripe-purple);
  border-color: var(--stripe-purple);
  color: white;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  font-size: 0.9375rem;
  font-weight: 500;
  border-radius: var(--radius);
  text-decoration: none;
  transition: all 0.15s;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: var(--font);
}

.btn-text {
  color: var(--text-muted);
  background: transparent;
}

.btn-text:hover { color: var(--text); }

.btn-primary {
  background: var(--stripe-purple);
  color: white;
}

.btn-primary:hover {
  background: var(--stripe-purple-hover);
}

.btn-secondary {
  background: white;
  color: var(--text);
  border-color: var(--border);
}

.btn-secondary:hover {
  border-color: var(--text);
  color: var(--text);
}

.btn-lg { padding: 0.75rem 1.5rem; font-size: 1rem; }

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.menu-toggle span {
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
}

/* Hero */
.hero {
  padding: 5rem 0 6rem;
  text-align: center;
}

.hero-inner {
  max-width: 720px;
  margin: 0 auto;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
  color: var(--text);
}

.hero-title-accent {
  color: var(--stripe-purple);
}

.hero-desc {
  font-size: 1.25rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 2rem;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.hero-note {
  font-size: 0.875rem;
  color: var(--text-light);
}

.hero-note .sep { margin: 0 0.5rem; opacity: 0.5; }

/* Payment strip */
.payment-strip {
  padding: 2rem 0;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
}

.payment-label {
  text-align: center;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-light);
  margin-bottom: 1rem;
}

.payment-icons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}

.payment-icons img {
  height: 24px;
  width: auto;
  object-fit: contain;
  opacity: 0.7;
}

.payment-icons img:hover { opacity: 1; }

.payment-icons .card-logo,
.payment-icons .pay-logo {
  filter: grayscale(1);
}

.payment-sep {
  width: 1px;
  height: 20px;
  background: var(--border);
}

/* Sections */
.section {
  padding: 5rem 0;
}

.section-head {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 3rem;
}

.section-title {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
  color: var(--text);
}

.section-desc {
  font-size: 1.0625rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Solutions grid */
.solutions { background: var(--bg); }

.solutions-grid {
  max-width: var(--w);
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.sol-card {
  padding: 1.75rem;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: box-shadow 0.2s, border-color 0.2s;
}

.sol-card:hover {
  border-color: rgba(99, 91, 255, 0.3);
  box-shadow: var(--shadow-lg);
}

.sol-card h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.sol-card p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Stats */
.stats-section {
  padding: 4rem 0;
  background: var(--bg-alt);
}

.stats-grid {
  max-width: var(--w);
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.stat {
  text-align: center;
}

.stat-value {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: var(--stripe-purple);
  letter-spacing: -0.02em;
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.9375rem;
  color: var(--text-muted);
}

/* Industries */
.industries { background: var(--bg); }

.industries-wrap {
  max-width: var(--w);
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.ind-pill {
  padding: 0.5rem 1rem;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: all 0.15s;
}

.ind-pill:hover {
  background: var(--stripe-purple-light);
  border-color: var(--stripe-purple);
  color: var(--stripe-purple);
}

/* Testimonial */
.testimonial {
  padding: 4rem 0;
  background: var(--bg-alt);
}

.testimonial-card {
  max-width: 640px;
  margin: 0 auto;
  padding: 2.5rem;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.testimonial-card p {
  font-size: 1.25rem;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 1.5rem;
}

.testimonial-card footer {
  display: flex;
  flex-direction: column;
}

.testimonial-card strong {
  font-size: 0.9375rem;
  color: var(--text);
}

.testimonial-card span {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* FAQ */
.faq { background: var(--bg); }

.faq-list {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 2rem;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-item summary {
  padding: 1.25rem 0;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: '+';
  font-size: 1.25rem;
  color: var(--text-light);
}

.faq-item[open] summary::after { content: '−'; }

.faq-item p {
  padding: 0 0 1.25rem;
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* CTA */
.cta { padding: 4rem 0 6rem; }

.cta-card {
  max-width: 640px;
  margin: 0 auto;
  padding: 3rem;
  background: linear-gradient(135deg, var(--stripe-purple-light) 0%, #eef2ff 100%);
  border: 1px solid rgba(99, 91, 255, 0.2);
  border-radius: var(--radius-lg);
  text-align: center;
}

.cta-title {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.cta-desc {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Footer */
.footer {
  padding: 3rem 0 2rem;
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
}

.footer-inner {
  max-width: var(--w);
  margin: 0 auto;
  padding: 0 2rem;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 2fr;
  gap: 3rem;
  margin-bottom: 2.5rem;
}

.footer-brand .logo { margin-bottom: 0.75rem; }

.footer-tagline {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.footer-col h4 {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-light);
  margin-bottom: 1rem;
}

.footer-col a {
  display: block;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9375rem;
  margin-bottom: 0.5rem;
  transition: color 0.15s;
}

.footer-col a:hover { color: var(--stripe-purple); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.footer-copy, .footer-certs {
  font-size: 0.875rem;
  color: var(--text-light);
}

/* Rétrocompat pages internes */
.nav-container {
  max-width: var(--w);
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
}

.nav-logo .logo-icon { width: 28px; height: 28px; }
.nav-btn {
  padding: 0.5rem 1rem;
  background: var(--stripe-purple);
  color: white;
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  border-radius: var(--radius);
}
.nav-btn:hover { background: var(--stripe-purple-hover); }
.container { max-width: var(--w); margin: 0 auto; padding: 0 2rem; }
:root { --primary: var(--stripe-purple); --text-secondary: var(--text-muted); --bg-tertiary: var(--bg-alt); }

/* Pages internes */
.legal-page, .page-content { padding: 8rem 0 4rem; }
.legal-content, .page-inner { max-width: 720px; margin: 0 auto; padding: 0 2rem; }
.legal-header, .page-header { text-align: center; margin-bottom: 2.5rem; }
.legal-title, .page-title { font-size: 2rem; font-weight: 700; margin-bottom: 0.5rem; color: var(--text); }
.legal-subtitle, .page-subtitle { font-size: 1rem; color: var(--text-muted); }
.legal-section, .page-section { margin-bottom: 2rem; }
.legal-section h2, .page-section h2 { font-size: 1.25rem; font-weight: 600; margin: 1.5rem 0 0.75rem; color: var(--text); }
.legal-section h3, .page-section h3 { font-size: 1.1rem; font-weight: 600; margin: 1rem 0 0.5rem; }
.legal-section p, .page-section p { font-size: 1rem; line-height: 1.7; color: var(--text-muted); margin-bottom: 1rem; }
.legal-section ul, .legal-section ol { margin: 0.5rem 0 1rem 1.5rem; color: var(--text-muted); }
.stats-grid .stat-card { background: white; border: 1px solid var(--border); padding: 1.5rem; border-radius: var(--radius); }
.stat-value { color: var(--stripe-purple); }
.blog-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; margin-top: 2rem; }
.blog-card { background: white; border: 1px solid var(--border); padding: 1.5rem; border-radius: var(--radius); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-top: 2rem; }
.contact-form input, .contact-form textarea {
  width: 100%; padding: 0.75rem 1rem; background: white;
  border: 1px solid var(--border); border-radius: var(--radius);
  font-family: var(--font); font-size: 1rem;
}
.contact-form input:focus, .contact-form textarea:focus {
  outline: none; border-color: var(--stripe-purple);
}

/* Responsive */
@media (max-width: 900px) {
  .solutions-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav { display: none; }
  .menu-toggle { display: flex; }
  .hero { padding: 3rem 0 4rem; }
  .section { padding: 3rem 0; }
  .solutions-grid, .stats-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-links { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; gap: 0.75rem; text-align: center; }
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; }
  .cta-buttons { flex-direction: column; }
  .cta-buttons .btn { width: 100%; }
  .blog-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}
