/* =============================================
   B-SERV CONNECT — Feuille de style principale
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:   #0d1b2e;
  --navy2:  #0a1628;
  --orange: #f97316;
  --green:  #25D366;
  --green-dark: #128C7E;
  --white:  #ffffff;
  --gray:   #f5f7fa;
  --text:   #333;
  --text-light: #666;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Poppins', sans-serif;
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ---------- Utilitaires ---------- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--green);
  color: var(--white);
  font-weight: 600;
  font-size: 15px;
  padding: 14px 28px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: background .2s, transform .2s;
}
.btn-whatsapp:hover { background: var(--green-dark); transform: translateY(-2px); }
.btn-whatsapp svg { width: 22px; height: 22px; fill: white; flex-shrink: 0; }

.btn-orange {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--orange);
  color: var(--white);
  font-weight: 600;
  font-size: 15px;
  padding: 14px 28px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: background .2s, transform .2s;
}
.btn-orange:hover { background: #e06512; transform: translateY(-2px); }

.section-title {
  text-align: center;
  font-size: 28px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
}
.section-title span { color: var(--orange); }

.section-underline {
  width: 60px;
  height: 4px;
  background: var(--orange);
  border-radius: 2px;
  margin: 0 auto 50px;
}

/* =============================================
   NAVBAR
   ============================================= */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--white);
  box-shadow: 0 2px 12px rgba(0,0,0,.1);
  padding: 0 20px;
  height: 70px;
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

/* Logo */
.navbar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  color: var(--navy);
}
.navbar-logo .logo-icon {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
}
.navbar-logo .logo-text span { color: var(--orange); }
.navbar-logo .logo-sub {
  font-size: 11px;
  color: var(--orange);
  font-weight: 600;
  letter-spacing: 1.5px;
  display: block;
  line-height: 1;
}
.navbar-logo .logo-main {
  font-size: 16px;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.2;
}

/* Nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--navy);
  padding: 6px 12px;
  border-radius: 6px;
  transition: color .2s, background .2s;
}
.nav-links a:hover { color: var(--orange); background: rgba(249,115,22,.06); }

.nav-cta {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--green);
  color: var(--white) !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  padding: 10px 18px !important;
  border-radius: 50px !important;
}
.nav-cta:hover { background: var(--green-dark) !important; color: var(--white) !important; }

/* Hamburger (mobile) */
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 5px; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--navy); border-radius: 2px; transition: .3s; }

/* =============================================
   HERO
   ============================================= */
.hero {
  background: var(--navy);
  padding: 100px 0 60px;
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero .container {
  display: flex;
  align-items: center;
  gap: 60px;
  width: 100%;
}

.hero-left { flex: 1; color: var(--white); min-width: 0; }

.hero-left h1 {
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
}
.hero-left h1 span { color: var(--orange); }

.hero-left p {
  font-size: 15px;
  color: rgba(255,255,255,.8);
  max-width: 520px;
  margin-bottom: 28px;
  line-height: 1.7;
}

/* Hero badges */
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
}
.badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 50px;
  padding: 8px 16px;
  font-size: 13px;
  color: rgba(255,255,255,.9);
}
.badge svg { width: 16px; height: 16px; flex-shrink: 0; }
.badge strong { font-weight: 600; display: block; font-size: 13px; }
.badge span { font-size: 11px; color: rgba(255,255,255,.6); }

.hero-cta-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}
.hero-secure {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: rgba(255,255,255,.6);
}
.hero-secure svg { width: 14px; height: 14px; fill: rgba(255,255,255,.6); }

/* Hero right */
.hero-right {
  flex: 0 0 52%;
  position: relative;
  display: flex;
  align-items: center;
}

.hero-img-wrap {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  width: 100%;
  height: clamp(520px, 72vh, 780px);
}
.hero-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  border-radius: 24px;
  display: block;
}

/* Chat overlay */
.hero-chat {
  position: absolute;
  top: 70px;
  right: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 220px;
}
.chat-bubble {
  background: var(--navy2);
  border: 1px solid rgba(255,255,255,.12);
  color: var(--white);
  font-size: 12px;
  padding: 10px 14px;
  border-radius: 18px 18px 18px 4px;
  box-shadow: 0 4px 20px rgba(0,0,0,.3);
  max-width: 210px;
}
.chat-bubble.me {
  background: #1a3a5c;
  border-radius: 18px 18px 4px 18px;
  align-self: flex-end;
}
.chat-bubble.bot {
  background: #1e4d2b;
  border-radius: 18px 18px 18px 4px;
}

.hero-badge-found {
  position: absolute;
  bottom: 24px;
  right: 16px;
  background: var(--white);
  color: var(--navy);
  font-size: 12px;
  font-weight: 600;
  padding: 10px 16px;
  border-radius: 50px;
  box-shadow: 0 8px 30px rgba(0,0,0,.2);
  display: flex;
  align-items: center;
  gap: 8px;
}
.hero-badge-found .check {
  width: 22px;
  height: 22px;
  background: var(--green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-badge-found .check svg { width: 12px; height: 12px; fill: white; }

/* =============================================
   SERVICES
   ============================================= */
.services {
  padding: 80px 0;
  background: var(--white);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  border: 1px solid #eee;
  border-radius: 16px;
  overflow: hidden;
  transition: box-shadow .3s, transform .3s;
  background: var(--white);
}
.service-card:hover {
  box-shadow: 0 12px 40px rgba(0,0,0,.12);
  transform: translateY(-4px);
}
.service-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}
.service-card-body { padding: 18px; }
.service-card-body h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}
.service-card-body p { font-size: 13px; color: var(--text-light); line-height: 1.6; }

/* Card "Autres services" with icon only */
.service-card.autres {
  background: #fff7f0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 240px;
  text-align: center;
}
.service-card.autres img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  border-radius: 0;
  margin: 20px auto 0;
}

/* =============================================
   COMMENT ÇA MARCHE
   ============================================= */
.how-it-works {
  padding: 80px 0;
  background: var(--gray);
}

.steps {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  position: relative;
}

/* Connecting line */
.steps::before {
  content: '';
  position: absolute;
  top: 36px;
  left: calc(10% + 36px);
  right: calc(10% + 36px);
  height: 2px;
  background: repeating-linear-gradient(90deg, #ccc 0, #ccc 6px, transparent 6px, transparent 14px);
}

.step {
  flex: 1;
  text-align: center;
  position: relative;
  z-index: 1;
}

.step-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 28px;
  font-weight: 800;
  color: white;
  position: relative;
  box-shadow: 0 4px 20px rgba(0,0,0,.15);
}
.step-icon.green  { background: var(--green); }
.step-icon.orange { background: var(--orange); }
.step-icon.blue   { background: #2563eb; }

.step-icon svg { width: 32px; height: 32px; fill: white; }

.step-num {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 24px;
  height: 24px;
  background: white;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 800;
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,.2);
}

.step h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}
.step p { font-size: 13px; color: var(--text-light); max-width: 180px; margin: 0 auto; }

/* Arrow between steps */
.step-arrow {
  flex-shrink: 0;
  margin-top: 22px;
  color: #ccc;
  font-size: 24px;
}

/* =============================================
   POURQUOI NOUS
   ============================================= */
.why-us {
  background: var(--navy);
  padding: 80px 0;
}

.why-us .section-title { color: var(--white); }

.why-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}

.why-card {
  text-align: center;
  color: var(--white);
  padding: 20px 10px;
}

.why-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
}
.why-icon svg { width: 28px; height: 28px; fill: white; }
.why-icon.orange { background: var(--orange); }
.why-icon.green  { background: var(--green); }
.why-icon.blue   { background: #2563eb; }
.why-icon.yellow { background: #eab308; }
.why-icon.cyan   { background: #0ea5e9; }

.why-card h3 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 6px;
}
.why-card p { font-size: 12px; color: rgba(255,255,255,.65); line-height: 1.5; }

/* =============================================
   EXEMPLE CONCRET
   ============================================= */
.example {
  padding: 80px 0;
  background: var(--white);
}

.example-inner {
  display: grid;
  grid-template-columns: 1fr 1.6fr 1fr;
  gap: 40px;
  align-items: center;
}

.example-text h2 {
  font-size: 22px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 16px;
  border-bottom: 3px solid var(--orange);
  display: inline-block;
  padding-bottom: 6px;
}
.example-text p {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 12px;
}
.example-text .tagline {
  color: var(--orange);
  font-weight: 700;
  font-size: 15px;
}

.example-img {
  text-align: center;
}
.example-img img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  object-position: center top;
  border-radius: 20px;
  box-shadow: 0 12px 40px rgba(0,0,0,.15);
}

.example-stats h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 20px;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid #f0f0f0;
}
.stat-item:last-child { border-bottom: none; }

.stat-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.stat-icon svg { width: 22px; height: 22px; fill: white; }
.stat-icon.blue   { background: #2563eb; }
.stat-icon.green  { background: var(--green); }
.stat-icon.orange { background: var(--orange); }

.stat-text strong {
  display: block;
  font-size: 22px;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.2;
}
.stat-text span { font-size: 13px; color: var(--text-light); }
.stat-text .satisfaction strong { font-size: 16px; color: var(--green); }
.stat-text .satisfaction span { font-size: 12px; color: var(--text-light); }

/* =============================================
   DEVENIR PRESTATAIRE
   ============================================= */
.provider {
  padding: 80px 0;
  background: var(--gray);
}

.provider .section-title { margin-bottom: 6px; }
.provider-sub {
  text-align: center;
  color: var(--text-light);
  font-size: 15px;
  margin-bottom: 16px;
}

.provider-inner {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr auto;
  gap: 30px;
  align-items: center;
  background: var(--white);
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 4px 30px rgba(0,0,0,.07);
}

.provider-benefit {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}
.provider-benefit .p-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
}
.provider-benefit .p-icon svg { width: 26px; height: 26px; fill: white; }
.provider-benefit .p-icon.green  { background: var(--green); }
.provider-benefit .p-icon.blue   { background: #2563eb; }
.provider-benefit .p-icon.orange { background: var(--orange); }
.provider-benefit h3 { font-size: 15px; font-weight: 700; color: var(--navy); }
.provider-benefit p  { font-size: 13px; color: var(--text-light); line-height: 1.5; }

.provider-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}
.provider-cta .btn-whatsapp { white-space: nowrap; }
.provider-cta .link-more {
  font-size: 13px;
  color: var(--orange);
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
}

/* =============================================
   CTA WHATSAPP
   ============================================= */
.cta-whatsapp {
  background: var(--navy2);
  padding: 60px 0;
}
.cta-whatsapp .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}
.cta-left {
  display: flex;
  align-items: center;
  gap: 20px;
}
.cta-left .wa-icon {
  width: 60px;
  height: 60px;
  background: var(--green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.cta-left .wa-icon svg { width: 32px; height: 32px; fill: white; }
.cta-left-text h3 { font-size: 20px; font-weight: 700; color: var(--white); margin-bottom: 4px; }
.cta-left-text p  { font-size: 14px; color: rgba(255,255,255,.65); }

/* =============================================
   FOOTER
   ============================================= */
footer {
  background: #060e1c;
  color: rgba(255,255,255,.75);
  padding: 60px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}

.footer-brand .footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.footer-brand .logo-icon { width: 36px; height: 36px; }
.footer-brand .footer-logo-text .f-main { font-size: 14px; font-weight: 800; color: white; }
.footer-brand .footer-logo-text .f-sub  { font-size: 10px; color: var(--orange); font-weight: 600; letter-spacing: 1px; }

.footer-brand p {
  font-size: 13px;
  line-height: 1.7;
  max-width: 220px;
  margin-bottom: 16px;
}

.footer-social {
  display: flex;
  gap: 10px;
}
.social-link {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
}
.social-link:hover { background: var(--orange); }
.social-link svg { width: 18px; height: 18px; fill: white; }

.footer-col h4 {
  font-size: 14px;
  font-weight: 700;
  color: white;
  margin-bottom: 16px;
}
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a {
  font-size: 13px;
  color: rgba(255,255,255,.65);
  transition: color .2s;
}
.footer-col ul li a:hover { color: var(--orange); }

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
}
.footer-contact-item svg { width: 16px; height: 16px; fill: var(--orange); flex-shrink: 0; margin-top: 2px; }
.footer-contact-item span { font-size: 13px; color: rgba(255,255,255,.65); }

.payment-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.pay-badge {
  background: rgba(255,255,255,.1);
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  color: white;
}
.pay-badge.orange-money { background: #ff6600; }
.pay-badge.mtn         { background: #f5c518; color: #333; }

.footer-bottom {
  text-align: center;
  padding: 20px 0;
  font-size: 12px;
  color: rgba(255,255,255,.35);
}

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1100px) {
  .why-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
}

@media (max-width: 900px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .example-inner { grid-template-columns: 1fr; }
  .example-img { display: none; }
  .provider-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-links { display: none; flex-direction: column; position: fixed; top: 70px; left: 0; right: 0; background: white; padding: 20px; box-shadow: 0 4px 20px rgba(0,0,0,.1); }
  .nav-links.open { display: flex; }
  .hamburger { display: flex; }

  .hero .container { flex-direction: column; align-items: stretch; }
  .hero-right { display: none; }
  .hero-left h1 { font-size: 28px; }

  .steps { flex-direction: column; align-items: center; }
  .steps::before { display: none; }
  .step-arrow { display: none; }

  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }

  .cta-whatsapp .container { flex-direction: column; text-align: center; }
  .cta-left { flex-direction: column; text-align: center; }

  .provider-inner { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .services-grid { grid-template-columns: 1fr; }
  .hero-badges { flex-direction: column; }
  .why-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}
