/* =============================================
   RESET & BASE
============================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue:       #1428A0;
  --blue-dark:  #0b1f7a;
  --blue-light: #1a3bc4;
  --blue-pale:  #e8ebf9;
  --green:      #25D366;
  --green-dark: #1ebe5d;
  --white:      #ffffff;
  --gray-bg:    #f4f6fc;
  --gray-text:  #555;
  --black:      #111;
  --shadow-sm:  0 2px 12px rgba(20,40,160,.08);
  --shadow-md:  0 8px 30px rgba(20,40,160,.14);
  --shadow-lg:  0 16px 50px rgba(20,40,160,.18);
  --radius:     14px;
  --radius-lg:  22px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: var(--white);
  color: var(--black);
  overflow-x: hidden;
  padding-top: 72px;
}

img { display: block; max-width: 100%; }
a { color: inherit; }

/* =============================================
   HEADER
============================================= */
.header {
  position: fixed;
  top: 0; left: 0; width: 100%;
  background: var(--white);
  box-shadow: 0 1px 0 rgba(0,0,0,.08), var(--shadow-sm);
  z-index: 1000;
  height: 72px;
}

.header-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 24px;
}

.logo img { height: 40px; width: auto; object-fit: contain; }

.certified-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--blue-pale);
  color: var(--blue);
  font-size: 11px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 20px;
  white-space: nowrap;
  letter-spacing: .3px;
}
.certified-badge svg { width: 14px; height: 14px; flex-shrink: 0; }

.nav {
  display: flex;
  gap: 4px;
  margin-left: auto;
}
.nav a {
  text-decoration: none;
  color: var(--black);
  font-weight: 600;
  font-size: 14px;
  padding: 8px 12px;
  border-radius: 8px;
  transition: background .2s, color .2s;
  white-space: nowrap;
}
.nav a:hover { background: var(--blue-pale); color: var(--blue); }

.btn-wa-header {
  background: var(--green);
  color: var(--white);
  padding: 10px 20px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
  transition: all .25s;
  box-shadow: 0 4px 15px rgba(37,211,102,.35);
  display: flex;
  align-items: center;
  gap: 7px;
  flex-shrink: 0;
}
.btn-wa-header:hover { background: var(--green-dark); transform: translateY(-2px); box-shadow: 0 8px 22px rgba(37,211,102,.45); }

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--blue);
  margin-left: auto;
}
.menu-toggle svg { width: 26px; height: 26px; }

/* Mobile nav */
@media (max-width: 900px) {
  .certified-badge { display: none; }
  .nav {
    position: fixed;
    top: 72px; left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 20px;
    gap: 4px;
    box-shadow: 0 10px 30px rgba(0,0,0,.1);
    display: none;
    z-index: 999;
    border-top: 2px solid var(--blue-pale);
  }
  .nav.open { display: flex; }
  .nav a { font-size: 16px; padding: 14px 16px; border-radius: 10px; }
  .menu-toggle { display: block; }
  .btn-wa-header { display: none; }
}

/* =============================================
   TICKER
============================================= */
.ticker {
  background: var(--blue);
  color: rgba(255,255,255,.9);
  overflow: hidden;
  height: 36px;
  display: flex;
  align-items: center;
}
.ticker-track {
  display: flex;
  gap: 0;
  white-space: nowrap;
  animation: ticker 30s linear infinite;
}
.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 500;
  padding: 0 28px;
  letter-spacing: .3px;
}
.ticker-dot { color: var(--green); font-size: 8px; }
.ticker-price { color: var(--green); font-weight: 800; font-size: 13px; }

@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker-track { animation: none; } }

/* =============================================
   HERO SLIDER
============================================= */
.hero {
  position: relative;
  width: 100%;
  height: 92vh;
  min-height: 500px;
  max-height: 750px;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease;
}
.hero-slide.active { opacity: 1; }
.hero-slide:nth-child(1) { background-image: url("../images/banniere-3.jpg"); }
.hero-slide:nth-child(2) { background-image: url("../images/ban-2.jpg"); }
.hero-slide:nth-child(3) { background-image: url("../images/ban2.jpg"); }

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(11,31,122,.82) 0%, rgba(11,31,122,.45) 55%, rgba(0,0,0,.2) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 6%;
  max-width: 700px;
  color: var(--white);
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(37,211,102,.18);
  border: 1px solid rgba(37,211,102,.4);
  color: var(--green);
  font-size: 12px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 50px;
  margin-bottom: 20px;
  letter-spacing: .5px;
  width: fit-content;
  backdrop-filter: blur(6px);
}
.hero-pulse {
  width: 7px; height: 7px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse 2s ease infinite;
}
@keyframes pulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(37,211,102,.6); }
  50% { box-shadow: 0 0 0 6px rgba(37,211,102,0); }
}

.hero-content h1 {
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 900;
  line-height: 1.12;
  margin-bottom: 18px;
  letter-spacing: -.5px;
}
.hero-content h1 .accent {
  color: var(--green);
  display: block;
}
.hero-content p {
  font-size: clamp(.95rem, 2vw, 1.15rem);
  opacity: .88;
  line-height: 1.65;
  margin-bottom: 32px;
  max-width: 520px;
}

.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  transition: all .25s;
  cursor: pointer;
  border: none;
}
.btn-primary { background: var(--blue); color: var(--white); box-shadow: 0 6px 20px rgba(20,40,160,.4); }
.btn-primary:hover { background: var(--blue-light); transform: translateY(-2px); box-shadow: 0 10px 28px rgba(20,40,160,.5); }
.btn-wa { background: var(--green); color: var(--white); box-shadow: 0 6px 20px rgba(37,211,102,.4); }
.btn-wa:hover { background: var(--green-dark); transform: translateY(-2px); box-shadow: 0 10px 28px rgba(37,211,102,.5); }
.btn-ghost { background: rgba(255,255,255,.15); color: var(--white); border: 2px solid rgba(255,255,255,.5); backdrop-filter: blur(8px); }
.btn-ghost:hover { background: rgba(255,255,255,.25); border-color: white; }

/* Hero dots */
.hero-dots {
  position: absolute;
  bottom: 28px;
  left: 6%;
  z-index: 3;
  display: flex;
  gap: 8px;
}
.hero-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,.4);
  cursor: pointer;
  transition: all .3s;
  border: none;
}
.hero-dot.active {
  width: 28px;
  border-radius: 4px;
  background: var(--green);
}

/* Hero progress bar */
.hero-progress {
  position: absolute;
  bottom: 0; left: 0;
  height: 3px;
  background: var(--green);
  z-index: 3;
  animation: progress 5s linear infinite;
}
@keyframes progress { from { width: 0%; } to { width: 100%; } }

@media (max-width: 600px) {
  .hero { height: 82vh; max-height: 600px; }
  .hero-content { padding: 0 5%; }
  .hero-slide { background-attachment: scroll !important; }
}

/* =============================================
   SECTIONS COMMUNES
============================================= */
.section { padding: 80px 20px; }
.section-inner { max-width: 1200px; margin: 0 auto; }

.section-eyebrow {
  display: inline-block;
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.section-title h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 800;
  color: var(--black);
  margin-bottom: 10px;
  line-height: 1.2;
}
.section-title p { color: var(--gray-text); font-size: 16px; }
.section-title { margin-bottom: 50px; }

/* =============================================
   PRODUITS VEDETTES
============================================= */
.products-section { background: var(--white); }

.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.product-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1.5px solid #eaecf5;
  transition: all .3s;
  cursor: pointer;
  text-decoration: none;
  color: var(--black);
  display: block;
}
.product-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: transparent; }

.product-card-img {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--gray-bg);
}
.product-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.product-card:hover .product-card-img img { transform: scale(1.06); }

.product-card-body { padding: 18px; }
.product-card-body h3 { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.product-card-body p { font-size: 13px; color: var(--gray-text); margin-bottom: 14px; }
.product-card-link {
  display: inline-block;
  background: var(--blue);
  color: var(--white);
  padding: 9px 18px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: background .2s;
}
.product-card-link:hover { background: var(--blue-light); }

@media (max-width: 1024px) { .products-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .products-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; } }

/* =============================================
   CATÉGORIES
============================================= */
.categories-section { background: var(--gray-bg); }

.cat-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}

.cat-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: var(--black);
  border: 1.5px solid transparent;
  transition: all .3s;
  box-shadow: var(--shadow-sm);
}
.cat-card:hover { transform: translateY(-8px); border-color: var(--blue); box-shadow: var(--shadow-md); }

.cat-card-img {
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--gray-bg);
}
.cat-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.cat-card:hover .cat-card-img img { transform: scale(1.08); }

.cat-card-body { padding: 14px 16px; }
.cat-card-body h3 { font-size: 15px; font-weight: 700; margin-bottom: 3px; }
.cat-card-body p { font-size: 12px; color: var(--gray-text); }

.cat-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px; height: 28px;
  background: var(--blue-pale);
  color: var(--blue);
  border-radius: 50%;
  font-size: 14px;
  margin-top: 8px;
  transition: all .3s;
}
.cat-card:hover .cat-arrow { background: var(--blue); color: white; }

@media (max-width: 1024px) { .cat-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .cat-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; } }

/* =============================================
   POURQUOI NOUS CHOISIR
============================================= */
.why-section { background: var(--white); }

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

.why-card {
  background: var(--white);
  border: 1.5px solid #eaecf5;
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  transition: all .3s;
}
.why-card:hover { border-color: var(--blue); box-shadow: var(--shadow-md); transform: translateY(-6px); }

.why-icon {
  width: 60px; height: 60px;
  background: var(--blue-pale);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin: 0 auto 20px;
  transition: background .3s;
}
.why-card:hover .why-icon { background: var(--blue); }
.why-card:hover .why-icon span { filter: brightness(100); }

.why-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 10px; color: var(--blue); }
.why-card p { font-size: 14px; color: var(--gray-text); line-height: 1.6; }

@media (max-width: 900px) { .why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .why-grid { grid-template-columns: 1fr; } }

/* =============================================
   PAIEMENTS ACCEPTED
============================================= */
.payment-bar {
  background: var(--blue);
  padding: 28px 20px;
  text-align: center;
}
.payment-bar h3 { color: white; font-size: 15px; font-weight: 600; margin-bottom: 20px; opacity: .85; letter-spacing: .5px; }
.payment-pills { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.pill {
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  color: white;
  padding: 10px 22px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 14px;
  backdrop-filter: blur(8px);
}

/* =============================================
   TÉMOIGNAGES
============================================= */
.testimonials-section { background: var(--gray-bg); }

.test-slider { overflow: hidden; position: relative; }
.test-track { display: flex; gap: 20px; transition: transform .5s cubic-bezier(.25,1,.5,1); }
.test-card {
  min-width: 320px;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px;
  border: 1.5px solid #eaecf5;
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}
.test-stars { color: #f59e0b; font-size: 16px; margin-bottom: 14px; letter-spacing: 2px; }
.test-card blockquote { font-size: 15px; color: #333; line-height: 1.7; margin-bottom: 18px; font-style: italic; }
.test-author { font-weight: 700; font-size: 14px; color: var(--blue); }

.test-controls { display: flex; justify-content: center; gap: 10px; margin-top: 30px; }
.test-btn {
  width: 44px; height: 44px;
  background: var(--white);
  border: 2px solid var(--blue);
  color: var(--blue);
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  transition: all .2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.test-btn:hover { background: var(--blue); color: white; }

/* =============================================
   CTA FINAL
============================================= */
.cta-section {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
  padding: 90px 20px;
  text-align: center;
  color: white;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: "";
  position: absolute;
  width: 500px; height: 500px;
  background: rgba(255,255,255,.04);
  border-radius: 50%;
  top: -200px; right: -100px;
}
.cta-section h2 { font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 900; margin-bottom: 16px; position: relative; }
.cta-section p { font-size: 16px; opacity: .85; margin-bottom: 36px; max-width: 560px; margin-left: auto; margin-right: auto; position: relative; }
.cta-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; position: relative; }

/* =============================================
   FOOTER
============================================= */
.footer { background: #0a0f2e; color: rgba(255,255,255,.7); padding: 70px 20px 24px; }
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-logo { height: 38px; margin-bottom: 16px; filter: brightness(0) invert(1); }
.footer-brand p { font-size: 14px; line-height: 1.7; }
.footer-col h4 { color: white; font-size: 15px; font-weight: 700; margin-bottom: 18px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { text-decoration: none; color: rgba(255,255,255,.6); font-size: 14px; transition: color .2s; }
.footer-col ul li a:hover { color: var(--green); }
.footer-col p { font-size: 14px; line-height: 1.8; }
.footer-socials { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }
.footer-socials a { font-size: 14px; color: rgba(255,255,255,.6); text-decoration: none; transition: color .2s; }
.footer-socials a:hover { color: var(--green); }
.footer-bottom { text-align: center; padding-top: 24px; font-size: 13px; opacity: .5; max-width: 1200px; margin: 0 auto; }

@media (max-width: 900px) { .footer-inner { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 550px) { .footer-inner { grid-template-columns: 1fr; } }

/* =============================================
   WHATSAPP FLOAT
============================================= */
.whatsapp-float {
  position: fixed;
  bottom: 24px; right: 24px;
  width: 58px; height: 58px;
  background: var(--green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(37,211,102,.5);
  z-index: 1000;
  transition: all .3s;
}
.whatsapp-float:hover { transform: scale(1.12); box-shadow: 0 12px 32px rgba(37,211,102,.6); }
.whatsapp-float svg { width: 30px; height: 30px; }

/* =============================================
   REVEAL ANIMATION
============================================= */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity .8s ease, transform .8s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* =============================================
   CARD HOVER IMG
============================================= */
.card-img-wrap { overflow: hidden; background: var(--gray-bg); }
.card-img-wrap img { transition: transform .4s; }
.card:hover .card-img-wrap img { transform: scale(1.06); }