*, *::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; }
.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, .nav a.active { 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); }
.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; }

@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; }
}

/* HERO BOUTIQUE */
.shop-hero {
  position: relative;
  width: 100%;
  height: 55vh;
  min-height: 300px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: url("../images/banniere-7.webp");
  background-size: cover;
  background-position: center;
  color: white;
}
.shop-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(11,31,122,.80) 0%, rgba(11,31,122,.50) 60%, rgba(0,0,0,.3) 100%);
}
.shop-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 20px;
  max-width: 700px;
}
.shop-hero-content h1 { font-size: clamp(1.6rem, 4vw, 2.8rem); font-weight: 900; margin-bottom: 14px; }
.shop-hero-content p { font-size: clamp(.9rem, 2vw, 1.1rem); opacity: .88; line-height: 1.6; }

@media (max-width: 600px) { .shop-hero { height: 45vh; background-attachment: scroll; } }

/* BREADCRUMB */
.breadcrumb { background: var(--gray-bg); border-bottom: 1px solid #e0e4f0; padding: 14px 20px; }
.breadcrumb-inner { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; gap: 8px; font-size: 14px; }
.breadcrumb a { color: var(--blue); font-weight: 600; text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { color: #999; }
.breadcrumb .current { color: var(--black); font-weight: 700; }

/* FEATURED CARROUSEL */
.featured { padding: 50px 20px 30px; background: var(--white); }
.featured-inner { max-width: 1200px; margin: 0 auto; }
.featured h2 { font-size: 22px; font-weight: 800; color: var(--black); margin-bottom: 20px; }
.featured-container { overflow-x: auto; scroll-behavior: smooth; -webkit-overflow-scrolling: touch; }
.featured-container::-webkit-scrollbar { height: 4px; }
.featured-container::-webkit-scrollbar-track { background: var(--gray-bg); border-radius: 2px; }
.featured-container::-webkit-scrollbar-thumb { background: var(--blue); border-radius: 2px; }
.featured-track { display: flex; gap: 16px; width: max-content; padding-bottom: 8px; }
.featured-card { min-width: 200px; background: var(--gray-bg); border: 1.5px solid #eaecf5; border-radius: var(--radius); text-align: center; padding: 16px; transition: .3s; cursor: pointer; }
.featured-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--blue); }
.featured-card img { width: 100%; height: 150px; object-fit: contain; margin-bottom: 12px; }
.featured-card h3 { font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.featured-card p { font-size: 13px; color: var(--blue); font-weight: 700; }

/* PRODUCTS SECTION */
.products-section { background: var(--white); padding: 40px 20px 60px; }
.products-inner { max-width: 1200px; margin: 0 auto; }
.products-section h2 { font-size: 24px; font-weight: 800; margin-bottom: 24px; text-align: center; }

/* SEARCH + FILTERS */
.search-bar {
  display: block;
  width: 100%;
  max-width: 500px;
  margin: 0 auto 24px;
  padding: 13px 20px;
  border: 2px solid #e0e4f0;
  border-radius: 50px;
  font-size: 15px;
  font-family: inherit;
  outline: none;
  transition: border-color .2s;
}
.search-bar:focus { border-color: var(--blue); }

.filters { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-bottom: 24px; }
.filter-btn { padding: 10px 20px; border: 1.5px solid #e0e4f0; background: var(--white); color: var(--black); border-radius: 50px; font-size: 14px; font-weight: 600; cursor: pointer; transition: all .2s; font-family: inherit; }
.filter-btn:hover { background: var(--blue-pale); border-color: var(--blue); color: var(--blue); }
.filter-btn.active { background: var(--blue); color: white; border-color: var(--blue); }

/* SHOP TOOLS */
.shop-tools { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 20px; }
.product-count { font-weight: 600; font-size: 14px; color: var(--gray-text); }
.sort-box { display: flex; align-items: center; gap: 10px; }
.sort-box label { font-size: 14px; font-weight: 600; color: #333; }
.sort-select { padding: 9px 14px; border: 1.5px solid #e0e4f0; border-radius: 8px; font-size: 14px; outline: none; background: var(--white); font-family: inherit; cursor: pointer; }
.sort-select:focus { border-color: var(--blue); }

/* GRID */
.products-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 1100px) { .products-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px) { .products-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; } }
@media (max-width: 380px) { .products-grid { grid-template-columns: 1fr; } }

/* PRODUCT CARD */
.product-card {
  background: var(--white);
  border: 1.5px solid #eaecf5;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  transition: all .3s;
  cursor: pointer;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }

.product-img-wrap { position: relative; overflow: hidden; background: var(--gray-bg); aspect-ratio: 1; }
.product-img-wrap img { width: 100%; height: 100%; object-fit: contain; padding: 10px; transition: transform .4s; }
.product-card:hover .product-img-wrap img { transform: scale(1.07); }

.product-badge { position: absolute; top: 10px; left: 10px; padding: 4px 10px; border-radius: 20px; font-size: 11px; font-weight: 700; color: white; }
.badge-new { background: var(--blue); }
.badge-promo { background: #f59e0b; }
.badge-out { background: #ef4444; }

.product-stars { position: absolute; top: 10px; right: 10px; font-size: 12px; color: #f59e0b; background: rgba(255,255,255,.9); padding: 3px 8px; border-radius: 20px; font-weight: 700; }

.product-info { padding: 14px; }
.product-info h3 { font-size: 14px; font-weight: 700; margin-bottom: 6px; line-height: 1.3; }
.product-price { font-size: 15px; font-weight: 800; color: var(--blue); margin-bottom: 4px; }
.product-oldprice { font-size: 12px; color: #999; text-decoration: line-through; margin-left: 6px; font-weight: 400; }
.btn-order {
  display: block;
  width: 100%;
  background: var(--blue);
  color: white;
  text-align: center;
  padding: 10px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  margin-top: 10px;
  transition: background .2s;
  border: none;
  cursor: pointer;
  font-family: inherit;
}
.btn-order:hover { background: var(--green); }
.btn-order.unavailable { background: #ccc; cursor: not-allowed; }

/* PAGINATION */
.pagination { display: flex; justify-content: center; align-items: center; gap: 10px; padding: 40px 0 20px; flex-wrap: wrap; }
.page-btn, .page-num { padding: 10px 16px; border: 1.5px solid #e0e4f0; background: white; border-radius: 8px; font-size: 14px; font-weight: 600; cursor: pointer; transition: .2s; font-family: inherit; min-width: 44px; }
.page-btn:hover, .page-num:hover { background: var(--blue-pale); border-color: var(--blue); color: var(--blue); }
.page-num.active { background: var(--blue); color: white; border-color: var(--blue); }
.page-btn:disabled { opacity: .4; cursor: not-allowed; }

/* TRUST */
.trust { padding: 60px 20px; background: var(--gray-bg); }
.trust-inner { max-width: 1200px; margin: 0 auto; text-align: center; }
.trust h2 { font-size: 22px; font-weight: 800; margin-bottom: 40px; }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.trust-card { background: white; border-radius: var(--radius); padding: 28px 20px; box-shadow: var(--shadow-sm); transition: .3s; text-align: center; }
.trust-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.trust-icon { font-size: 36px; margin-bottom: 14px; }
.trust-card h3 { font-size: 15px; font-weight: 700; margin-bottom: 8px; color: var(--blue); }
.trust-card p { font-size: 13px; color: var(--gray-text); line-height: 1.6; }
@media (max-width: 900px) { .trust-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .trust-grid { grid-template-columns: 1fr; } }

/* REVIEWS */
.reviews { padding: 60px 20px; background: white; }
.reviews-inner { max-width: 1100px; margin: 0 auto; text-align: center; }
.reviews h2 { font-size: 22px; font-weight: 800; margin-bottom: 40px; }
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.review-card { background: var(--gray-bg); border-radius: var(--radius); padding: 26px; transition: .3s; text-align: left; }
.review-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.review-stars { font-size: 16px; color: #f59e0b; margin-bottom: 12px; }
.review-card p { font-size: 14px; color: #444; line-height: 1.7; margin-bottom: 14px; font-style: italic; }
.review-card h4 { font-size: 13px; font-weight: 700; color: var(--blue); }
@media (max-width: 900px) { .reviews-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .reviews-grid { grid-template-columns: 1fr; } }

/* FAQ */
.faq { padding: 60px 20px; background: var(--gray-bg); }
.faq-inner { max-width: 800px; margin: 0 auto; }
.faq h2 { font-size: 22px; font-weight: 800; text-align: center; margin-bottom: 36px; }
.faq-item { background: white; border-radius: var(--radius); padding: 22px 24px; margin-bottom: 12px; box-shadow: var(--shadow-sm); transition: .3s; cursor: pointer; }
.faq-item:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.faq-item h3 { font-size: 15px; font-weight: 700; color: var(--blue); margin-bottom: 8px; }
.faq-item p { font-size: 14px; color: var(--gray-text); line-height: 1.6; }

/* 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); }
.whatsapp-float svg { width: 30px; height: 30px; }

/* MODAL FICHE PRODUIT */
.modal-overlay { position: fixed; inset: 0; z-index: 9999; background: rgba(0,0,0,.6); display: none; align-items: center; justify-content: center; padding: 20px; }
.modal-overlay.open { display: flex; animation: fadeIn .25s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal { position: relative; background: white; width: 100%; max-width: 960px; max-height: 90vh; overflow-y: auto; border-radius: 20px; padding: 36px; animation: slideUp .3s ease; }
@keyframes slideUp { from { transform: translateY(30px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.modal-close { position: absolute; top: 16px; right: 16px; width: 36px; height: 36px; border: none; border-radius: 50%; background: #f1f1f1; color: #111; font-size: 16px; cursor: pointer; transition: .2s; z-index: 10; }
.modal-close:hover { background: #ef4444; color: white; }
.modal-body { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; }
@media (max-width: 700px) { .modal-body { grid-template-columns: 1fr; } .modal { padding: 24px 18px; } }
.modal-gallery { display: flex; flex-direction: column; gap: 14px; }
.modal-main { background: var(--gray-bg); border-radius: 14px; height: 300px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.modal-main img { width: 100%; height: 100%; object-fit: contain; }
.modal-thumbs { display: flex; gap: 10px; flex-wrap: wrap; }
.modal-thumb { width: 62px; height: 62px; object-fit: contain; background: var(--gray-bg); border-radius: 8px; border: 2px solid transparent; cursor: pointer; transition: .2s; }
.modal-thumb:hover { border-color: var(--green); }
.modal-thumb.active { border-color: var(--blue); }
.modal-info h2 { font-size: 22px; font-weight: 800; margin-bottom: 10px; }
.modal-stars { font-size: 16px; color: #f59e0b; margin-bottom: 12px; }
.modal-price { font-size: 24px; font-weight: 800; color: var(--blue); }
.modal-oldprice { font-size: 15px; color: #999; text-decoration: line-through; margin-left: 8px; }
.modal-stock { display: inline-block; padding: 5px 12px; border-radius: 20px; font-size: 13px; font-weight: 600; margin: 12px 0; }
.modal-stock.in { background: rgba(37,211,102,.12); color: #1ea551; }
.modal-stock.out { background: rgba(239,68,68,.12); color: #ef4444; }
.modal-desc { color: var(--gray-text); line-height: 1.7; font-size: 15px; margin-bottom: 22px; }
.modal-order { display: inline-flex; align-items: center; gap: 8px; background: var(--green); color: white; padding: 14px 26px; border-radius: 50px; font-weight: 700; font-size: 15px; text-decoration: none; transition: .2s; }
.modal-order:hover { background: var(--green-dark); }
.modal-similar { margin-top: 36px; border-top: 1px solid #eee; padding-top: 28px; }
.modal-similar h3 { font-size: 17px; font-weight: 700; margin-bottom: 18px; }
.similar-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 600px) { .similar-grid { grid-template-columns: repeat(2, 1fr); } }
.similar-card { background: var(--gray-bg); border-radius: 10px; padding: 12px; text-align: center; cursor: pointer; transition: .2s; border: 1px solid #eee; }
.similar-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.similar-card img { width: 100%; height: 80px; object-fit: contain; margin-bottom: 8px; }
.similar-name { font-size: 12px; font-weight: 700; margin-bottom: 4px; }
.similar-price { font-size: 12px; color: var(--green); font-weight: 800; }

/* No results */
.no-results { grid-column: 1/-1; text-align: center; padding: 60px; color: var(--gray-text); }
.no-results p { font-size: 16px; }