 /* ============================================================
   MAKWAB UX/UI PATCH — Coller à la FIN de index-landing.css
   ============================================================ */

/* ── 1. BARRE DE PROGRESSION DE LECTURE ─────────────────── */
#read-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, #F87B1B, #ffb366);
  z-index: 99999;
  transition: width 0.1s linear;
  border-radius: 0 2px 2px 0;
}

/* ── 2. SCROLL-TO-TOP ────────────────────────────────────── */
#scrollTopBtn {
  position: fixed;
  bottom: 25px;
  left: 25px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #F87B1B;
  color: #F87B1B;
  font-size: 1.3rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(248,123,27,0.25);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 9998;
}
#scrollTopBtn.visible {
  opacity: 1;
  pointer-events: auto;
}
#scrollTopBtn:hover {
  background: #F87B1B;
  color: #fff;
  transform: translateY(-3px);
}

/* ── WHY-MAKWAB GRID ─────────────────────────────────────── */
#why-makwab .why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 40px;
}
#why-makwab .card {
  background: #fff;
  border-radius: 22px;
  padding: 20px;
  box-shadow: 0 8px 25px rgba(0,0,0,.08);
  transition: .3s;
}
#why-makwab .card:hover {
  transform: translateY(-6px);
}
#why-makwab img {
  width: 100%;
  border-radius: 18px;
  margin-bottom: 15px;
}

/* ── 3. ANIMATIONS D'ENTRÉE AU SCROLL ───────────────────── */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.animate-on-scroll:nth-child(1) { transition-delay: 0s; }
.animate-on-scroll:nth-child(2) { transition-delay: 0.08s; }
.animate-on-scroll:nth-child(3) { transition-delay: 0.16s; }
.animate-on-scroll:nth-child(4) { transition-delay: 0.24s; }
.animate-on-scroll:nth-child(5) { transition-delay: 0.32s; }
.animate-on-scroll:nth-child(6) { transition-delay: 0.40s; }

/* ── 4. COMPTEURS ANIMÉS ─────────────────────────────────── */
.stat-number {
  transition: color 0.3s;
}

/* ── APP MOCKUP ──────────────────────────────────────────── */
.app-mockup-img {
  width: 100%;
  max-width: 420px;
  height: auto;
  display: block;
  margin: auto;
  filter: drop-shadow(0 15px 40px rgba(0,0,0,.15));
}

/* ── 5. NAVBAR ACTIVE SCROLL SPY ────────────────────────── */
.nav-link.nav-active {
  color: #F87B1B !important;
}
.nav-link.nav-active::after {
  width: 100% !important;
}

/* ── 6. MENU FLOTTANT — lien actif ──────────────────────── */
#floatingItems a.float-active {
  background: #F87B1B;
  color: #fff;
}

/* ── 7. LIGHTBOX AMÉLIORÉE avec prev/next ───────────────── */
#makwabLightbox {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.9);
  justify-content: center;
  align-items: center;
  z-index: 10500;
  flex-direction: column;
}
.lightbox-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  width: 100%;
  max-width: 90vw;
}
.lightbox-img {
  max-width: 80vw;
  max-height: 80vh;
  border-radius: 10px;
  object-fit: contain;
  transition: opacity 0.2s ease;
}
.lightbox-close {
  position: fixed;
  top: 18px;
  right: 28px;
  font-size: 2.5rem;
  color: #fff;
  cursor: pointer;
  line-height: 1;
  opacity: 0.85;
  transition: opacity 0.2s;
  z-index: 10600;
}
.lightbox-close:hover { opacity: 1; }
.lightbox-nav {
  background: rgba(255,255,255,0.15);
  border: none;
  color: #fff;
  font-size: 2rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  flex-shrink: 0;
}
.lightbox-nav:hover { background: rgba(248,123,27,0.7); }
.lightbox-counter {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  font-family: 'Quicksand', sans-serif;
}

/* ── IMAGES SECTION À PROPOS ─────────────────────────────── */
.about-img {
  width: 100%;
  max-width: 700px;
  height: 280px;
  object-fit: cover;
  border-radius: 20px;
  display: block;
  margin: 1.5rem auto;
  background: #f5e8dc;
}

/* ── PRODUIT MYSTÈRE — pas d'espace vide ─────────────────── */
.produit-mystere .produit-img {
  max-height: 200px;
  object-fit: cover;
  width: 100%;
}

 /* ── SECTION DEVENIR VENDEUR — même style que "Comment ça marche" ── */
 /* ── SECTION DEVENIR VENDEUR — même style que "Comment ça marche" ── */
 

/* ── SECTION NOS VENDEURS — rectangles verticaux ────────── */
.vendors-isole .vendor-card img,
#vendors-isole .vendor-card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 20px;
  background: linear-gradient(135deg, #f5e8dc, #ffe0c0);
  display: block;
}

/* ── CAROUSEL — hauteur fixe, plus de saut de contenu ───── */
#heroCarouselXXL {
  height: 480px;
  overflow: hidden;
}
#heroCarouselXXL .carousel-item {
  height: 480px;
}
#heroCarouselXXL .carousel-item img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  object-position: center;
}

/* ── SECTION LIKE MAKWAB ─────────────────────────────────── */
.mkw-like-section {
  background: #fff;
  padding: 3.5rem 1.5rem;
  text-align: center;
  border-top: 1px solid #f0e0d0;
  border-bottom: 1px solid #f0e0d0;
  font-family: 'Quicksand', sans-serif;
}
.mkw-like-eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #F87B1B;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}
.mkw-like-title {
  font-size: 1.55rem;
  font-weight: 700;
  color: #111;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}
.mkw-like-sub {
  font-size: 0.97rem;
  color: #666;
  max-width: 460px;
  margin: 0 auto 2.2rem;
  line-height: 1.6;
}
.mkw-divider {
  width: 48px;
  height: 3px;
  background: #F87B1B;
  border-radius: 99px;
  margin: 0 auto 1.5rem;
}
.mkw-counter-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}
.mkw-counter-num {
  font-size: 2.8rem;
  font-weight: 700;
  color: #F87B1B;
  line-height: 1;
  min-width: 90px;
  text-align: center;
  transition: all 0.3s ease;
}
.mkw-counter-label {
  font-size: 0.88rem;
  color: #999;
  text-align: left;
  line-height: 1.4;
  max-width: 100px;
}
.mkw-counter-label strong {
  color: #555;
  display: block;
}
.mkw-progress-wrap {
  max-width: 380px;
  margin: 0 auto 1.8rem;
}
.mkw-progress-track {
  height: 7px;
  background: #f5e8dc;
  border-radius: 99px;
  overflow: hidden;
}
.mkw-progress-bar {
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, #F87B1B, #ffb366);
  transition: width 0.8s cubic-bezier(.25,.8,.25,1);
  width: 0%;
}
.mkw-progress-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: #bbb;
  margin-top: 5px;
}
.mkw-milestone-badge {
  display: none;
  align-items: center;
  gap: 8px;
  background: #fff8f2;
  border: 1.5px solid #F87B1B;
  border-radius: 40px;
  padding: 0.45rem 1.2rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: #F87B1B;
  margin: 0 auto 1.5rem;
  width: fit-content;
  animation: mkwFadeIn 0.5s ease;
}
.mkw-btn-wrap {
  position: relative;
  display: inline-block;
  margin-bottom: 2rem;
}
.mkw-like-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 1rem 2.2rem;
  background: #fff;
  border: 2.5px solid #F87B1B;
  border-radius: 60px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(.34,1.56,.64,1);
  font-family: 'Quicksand', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: #F87B1B;
  outline: none;
  user-select: none;
  position: relative;
  overflow: hidden;
}
.mkw-like-btn:hover:not(.liked) {
  transform: scale(1.05);
  box-shadow: 0 8px 28px rgba(248,123,27,0.22);
}
.mkw-like-btn.liked {
  background: linear-gradient(135deg, #F87B1B, #ffb366);
  border-color: #F87B1B;
  color: #fff;
  transform: scale(1.08);
  box-shadow: 0 10px 32px rgba(248,123,27,0.35);
  cursor: default;
}
.mkw-like-btn.pop {
  animation: mkwPop 0.4s cubic-bezier(.34,1.56,.64,1);
}
.mkw-qr-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}
.mkw-like-label {
  font-size: 1rem;
  font-weight: 700;
}
.mkw-ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.45);
  transform: scale(0);
  animation: mkwRipple 0.55s linear;
  pointer-events: none;
}
.mkw-thanks-msg {
  font-size: 0.92rem;
  color: #F87B1B;
  font-weight: 600;
  min-height: 1.5rem;
  transition: opacity 0.4s;
}
.mkw-particle {
  position: absolute;
  pointer-events: none;
  font-size: 1.1rem;
  animation: mkwFloat 0.9s ease forwards;
}

/* ── ANIMATIONS ──────────────────────────────────────────── */
@keyframes mkwPop {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.22); }
  70%  { transform: scale(0.95); }
  100% { transform: scale(1.08); }
}
@keyframes mkwRipple {
  to { transform: scale(4); opacity: 0; }
}
@keyframes mkwFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes mkwFloat {
  0%   { opacity: 1; transform: translateY(0) scale(1); }
  100% { opacity: 0; transform: translateY(-40px) scale(0.7); }
}

/* ── 9. LAZY LOADING placeholder ────────────────────────── */
img[loading="lazy"] {
  background: #f5e8dc;
}

/* ── 10. RESPONSIVE ──────────────────────────────────────── */
@media (max-width: 768px) {
  #heroCarouselXXL,
  #heroCarouselXXL .carousel-item,
  #heroCarouselXXL .carousel-item img {
    height: 260px;
  }
}
@media (max-width: 480px) {
  #scrollTopBtn { left: 15px; bottom: 15px; width: 42px; height: 42px; font-size: 1.1rem; }
}

/* Cacher les flèches sur mobile - Style propre comme Instagram/Facebook */
@media (max-width: 768px) {
  .lightbox-nav {
    display: none !important;
  }
  
  /* Optionnel : rendre le fond un peu plus sombre */
  #makwabLightbox {
    background: rgba(0, 0, 0, 0.95);
  }
}

/* ── FIX FINAL : images "Devenir vendeur" = même taille que "Comment ça marche" ── */
#vendors .vendors-cards .card img {
  max-width: 100% !important;
  width: 100% !important;
  height: auto !important;
  max-height: none !important;
  margin: 0 0 1rem 0 !important;
  border-radius: 12px;
  display: block;
}

#vendors .vendors-cards .card {
  padding: 0 !important;
  overflow: hidden;
}

#vendors .vendors-cards .card p,
#vendors .vendors-cards .card a {
  padding: 0.8rem 1.2rem;
  display: block;
}

/* ── FIX : images "Nos produits" = même taille que "Comment ça marche" ── */
#products .cards .card img {
  max-width: 100% !important;
  width: 100% !important;
  height: auto !important;
  max-height: none !important;
  margin: 0 0 1rem 0 !important;
  border-radius: 12px;
  display: block;
}

#products .cards .produit-card {
  padding: 0 !important;
  overflow: hidden;
}

#products .cards .produit-card .produit-body {
  padding: 1.2rem !important;
}

/* ── FIX : images "makwab en image" plus grandes ── */
.makwab-image-card img {
  max-height: none !important;
  height: 220px !important;
  width: 100% !important;
  object-fit: cover;
}


/* ── FIX MOBILE : marges latérales sur les grilles de cards ── */
@media (max-width: 768px) {

  /* Devenir vendeur (index) */
  #vendors .vendors-cards {
    padding: 0 1rem;
  }

  /* Nos produits */
  #products .cards {
    padding: 0 1rem;
  }

  /* Section vendeurs isolée (orange) */
  #vendors-isole .vendors-isole-cards {
    padding: 0 1rem;
  }

}




/* ==========================================================
   GUIDE MAKWAB
========================================================== */

#guide-preview{
    background: var(--primary);
    color:#fff;
}

#guide-preview .section-title{
    color:#fff;
}

#guide-preview .cards{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
    gap:24px;
    margin-top:40px;
}

#guide-preview .card{
    background:rgba(255,255,255,0.08);
    backdrop-filter:blur(8px);
    border:1px solid rgba(255,255,255,0.15);
    border-radius:22px;
    overflow:hidden;
    transition:all .35s ease;
    box-shadow:0 8px 25px rgba(0,0,0,.15);
    color:#fff;
}

#guide-preview .card:hover{
    transform:translateY(-8px);
    box-shadow:0 15px 35px rgba(0,0,0,.25);
}

#guide-preview .card img{
    width:100%;
    height:220px;
    object-fit:cover;
    display:block;
}

#guide-preview .card h3{
    color:#fff;
    font-size:1.15rem;
    font-weight:700;
    padding:1rem 1.2rem .5rem;
    margin:0;
}

#guide-preview .card p{
    color:rgba(255,255,255,.92);
    padding:0 1.2rem;
    line-height:1.6;
    font-weight:500;
    min-height:90px;
}

#guide-preview .btn-cta{
    margin:1rem 1.2rem 1.4rem;
    display:inline-block;
    background:#fff;
    color:#F87B1B;
    border:none;
    font-weight:700;
    transition:.3s;
}

#guide-preview .btn-cta:hover{
    background:#111;
    color:#fff;
    transform:translateY(-2px);
}

#guide-preview .guide-intro{
    text-align:center;
    max-width:850px;
    margin:0 auto 2rem;
    color:rgba(255,255,255,.95);
    font-size:1.05rem;
    font-weight:500;
}

#guide-preview .guide-footer-btn{
    text-align:center;
    margin-top:2rem;
}

#guide-preview .guide-footer-btn .btn-cta{
    background:#fff;
    color:#F87B1B;
    font-size:1rem;
    padding:.9rem 1.8rem;
}

#guide-preview .guide-footer-btn .btn-cta:hover{
    background:#111;
    color:#fff;
}

/* MOBILE */

@media(max-width:768px){

    #guide-preview .card img{
        height:190px;
    }

    #guide-preview .card p{
        min-height:auto;
    }

}