/* ========================================
   Mon Coin Pro — Landing Page
   Mobile-first, SEO-friendly
   ======================================== */

:root {
  --primary: #16a34a;
  --primary-dark: #15803d;
  --primary-light: #dcfce7;
  --primary-xlt: #f0fdf4;
  --text: #111827;
  --text-muted: #6b7280;
  --border: #e5e7eb;
  --bg: #ffffff;
  --bg-alt: #f9fafb;
  --radius: 12px;
  --shadow: 0 4px 24px rgba(0,0,0,.08);
  --shadow-lg: 0 8px 40px rgba(0,0,0,.12);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.6;
}

img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }

/* ---- Layout ---- */
.container { max-width: 1100px; margin: 0 auto; padding: 0 1.25rem; }
.section { padding: 4rem 0; }
.section-alt { background: var(--bg-alt); }

/* ---- Header / Nav ---- */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  padding: .75rem 0;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--primary);
}

.nav-logo img { width: 32px; height: 32px; border-radius: 8px; }

.nav-links {
  display: none;
  gap: 1.75rem;
  list-style: none;
  font-size: .9rem;
  font-weight: 500;
}
@media (min-width: 640px) { .nav-links { display: flex; } }

.nav-links a { color: var(--text-muted); transition: color .2s; }
.nav-links a:hover { color: var(--primary); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .55rem 1.1rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: .9rem;
  cursor: pointer;
  transition: all .2s;
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(22,163,74,.35); }

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-outline:hover { background: var(--primary-xlt); }

.btn-lg { padding: .8rem 1.75rem; font-size: 1rem; border-radius: 10px; }
.btn-xl { padding: 1rem 2.25rem; font-size: 1.05rem; border-radius: 12px; }

/* ---- Hero ---- */
.hero {
  padding: 4rem 0 3rem;
  background: linear-gradient(135deg, var(--primary-xlt) 0%, #fff 60%);
  overflow: hidden;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(22,163,74,.12) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-inner {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}
@media (min-width: 768px) {
  .hero-inner { grid-template-columns: 1fr 1fr; }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: var(--primary-light);
  color: var(--primary-dark);
  font-size: .8rem;
  font-weight: 600;
  padding: .3rem .8rem;
  border-radius: 99px;
  margin-bottom: .75rem;
}

.hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.75rem);
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -.02em;
  margin-bottom: 1rem;
}

.hero h1 span { color: var(--primary); }

.hero-desc {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 1.75rem;
  max-width: 480px;
}

.hero-ctas { display: flex; gap: .75rem; flex-wrap: wrap; }

.hero-trust {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-top: 1.25rem;
  font-size: .82rem;
  color: var(--text-muted);
}

.stars { color: #f59e0b; letter-spacing: .05em; }

.hero-visual {
  display: flex;
  justify-content: center;
  position: relative;
}

.phone-mockup {
  width: 240px;
  background: #111;
  border-radius: 36px;
  padding: 12px;
  box-shadow: var(--shadow-lg), 0 0 0 2px rgba(255,255,255,.5);
  position: relative;
}

.phone-screen {
  background: var(--primary-xlt);
  border-radius: 28px;
  overflow: hidden;
  aspect-ratio: 9/18;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 10px;
}

.phone-row {
  background: #fff;
  border-radius: 8px;
  height: 44px;
  display: flex;
  align-items: center;
  padding: 0 10px;
  gap: 8px;
  font-size: 11px;
  color: #374151;
  font-weight: 500;
}

.phone-row .dot {
  width: 8px; height: 8px; border-radius: 50%;
  flex-shrink: 0;
}

.phone-row-header {
  background: var(--primary);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  height: 36px;
  border-radius: 8px;
  display: flex; align-items: center; padding: 0 10px;
}

/* ---- Problème / Bénéfices ---- */
.pain-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-top: 2rem;
}

.pain-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.pain-icon { font-size: 1.75rem; flex-shrink: 0; }

.pain-card h3 { font-size: .95rem; margin-bottom: .25rem; }
.pain-card p { font-size: .85rem; color: var(--text-muted); }

/* ---- Features ---- */
.section-header { text-align: center; margin-bottom: 2.5rem; }
.section-header h2 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -.02em;
  margin-bottom: .5rem;
}
.section-header p { color: var(--text-muted); max-width: 520px; margin: 0 auto; }

.features-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.feature-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: box-shadow .2s, transform .2s;
}
.feature-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }

.feature-icon {
  width: 48px; height: 48px;
  background: var(--primary-light);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.feature-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: .4rem; }
.feature-card p { font-size: .875rem; color: var(--text-muted); }

/* ---- Témoignages ---- */
.testimonials-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.testimonial-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.testimonial-stars { color: #f59e0b; margin-bottom: .75rem; font-size: 1rem; }

.testimonial-text {
  font-size: .9rem;
  color: var(--text);
  line-height: 1.65;
  margin-bottom: 1rem;
  font-style: italic;
}

.testimonial-author {
  display: flex; align-items: center; gap: .75rem;
}

.testimonial-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--primary-light);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: .9rem; color: var(--primary-dark);
}

.testimonial-name { font-weight: 600; font-size: .9rem; }
.testimonial-role { font-size: .8rem; color: var(--text-muted); }

/* ---- Plans ---- */
.plans-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  align-items: start;
}

.plan-card {
  background: #fff;
  border: 2px solid var(--border);
  border-radius: 16px;
  padding: 1.75rem;
  position: relative;
  transition: box-shadow .2s;
}

.plan-card:hover { box-shadow: var(--shadow); }

.plan-card.plan-popular {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(22,163,74,.1);
}

.plan-badge {
  position: absolute;
  top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--primary);
  color: #fff;
  font-size: .75rem;
  font-weight: 700;
  padding: .2rem .85rem;
  border-radius: 99px;
  white-space: nowrap;
}

.plan-name { font-size: .85rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: .08em; margin-bottom: .5rem; }
.plan-price { font-size: 2.25rem; font-weight: 800; letter-spacing: -.03em; }
.plan-price span { font-size: .9rem; font-weight: 500; color: var(--text-muted); }
.plan-desc { font-size: .85rem; color: var(--text-muted); margin: .5rem 0 1.25rem; }

.plan-features { list-style: none; margin-bottom: 1.5rem; }
.plan-features li {
  display: flex; align-items: flex-start; gap: .5rem;
  font-size: .875rem;
  padding: .3rem 0;
  border-bottom: 1px solid var(--border);
}
.plan-features li:last-child { border-bottom: none; }
.plan-features .check { color: var(--primary); font-size: 1rem; flex-shrink: 0; }
.plan-features .cross { color: #d1d5db; font-size: 1rem; flex-shrink: 0; }

/* ---- CTA Banner ---- */
.cta-banner {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  text-align: center;
  padding: 4rem 1.25rem;
}
.cta-banner h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 800; margin-bottom: .75rem; }
.cta-banner p { opacity: .85; margin-bottom: 1.75rem; max-width: 460px; margin-left: auto; margin-right: auto; }
.btn-white { background: #fff; color: var(--primary); }
.btn-white:hover { background: var(--primary-xlt); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(0,0,0,.2); }

/* ---- FAQ ---- */
.faq-list { max-width: 680px; margin: 0 auto; }
details {
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
}
summary {
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  list-style: none;
  display: flex; justify-content: space-between; align-items: center;
}
summary::after { content: '+'; font-size: 1.25rem; color: var(--primary); flex-shrink: 0; }
details[open] summary::after { content: '−'; }
details p { font-size: .9rem; color: var(--text-muted); margin-top: .75rem; line-height: 1.7; }

/* ---- Footer ---- */
footer {
  background: #111;
  color: #9ca3af;
  padding: 3rem 0 2rem;
}

.footer-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  margin-bottom: 2rem;
}

.footer-brand { grid-column: 1 / -1; }
@media (min-width: 640px) { .footer-brand { grid-column: auto; } }

.footer-logo { font-weight: 800; font-size: 1.1rem; color: #fff; margin-bottom: .5rem; }
.footer-tagline { font-size: .85rem; }

.footer-col h4 { color: #fff; font-size: .9rem; margin-bottom: .75rem; font-weight: 600; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: .4rem; }
.footer-col a { font-size: .85rem; color: #9ca3af; transition: color .2s; }
.footer-col a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid #1f2937;
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  justify-content: space-between;
  font-size: .8rem;
}

/* ---- Misc ---- */
.tag {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary-dark);
  font-size: .75rem;
  font-weight: 600;
  padding: .15rem .6rem;
  border-radius: 4px;
}

.text-center { text-align: center; }
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }

/* ---- Responsive nav toggle ---- */
.nav-cta { display: flex; align-items: center; gap: .5rem; }
