/* =============================================
   CabaTechDZ — Style Vitrine Moderne
   Inspiré LDLC : blanc, épuré, rouge vif
============================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');
@import url('https://cdn.jsdelivr.net/npm/@tabler/icons-webfont@latest/tabler-icons.min.css');

:root {
  --red:       #e63000;
  --red-light: #fff4f1;
  --red-dark:  #c02800;
  --bg:        #f4f4f4;
  --white:     #ffffff;
  --border:    #e8e8e8;
  --border2:   #d0d0d0;
  --text:      #111111;
  --text2:     #555555;
  --text3:     #999999;
  --green:     #16a34a;
  --orange:    #f59e0b;
  --shadow:    0 2px 12px rgba(0,0,0,.08);
  --shadow-lg: 0 8px 32px rgba(0,0,0,.12);
  --radius:    8px;
  --radius-lg: 12px;
  --font:      'Inter', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--text); font-family: var(--font); font-size: 14px; line-height: 1.5; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ===================== NAVBAR ===================== */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.navbar-top {
  display: flex; align-items: center; gap: 16px;
  max-width: 1280px; margin: 0 auto;
  padding: 10px 20px;
}
.logo {
  display: flex; align-items: center;
  flex-shrink: 0; padding: 0;
}
.logo span { color: var(--red); }
.logo small { font-size: 10px; font-weight: 600; color: var(--text3); display: block; letter-spacing: .08em; margin-top: -4px; }

.search-form {
  flex: 1; display: flex; align-items: center;
  background: var(--bg); border: 1.5px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  transition: border-color .2s;
  max-width: 600px;
}
.search-form:focus-within { border-color: var(--red); }
.search-form input {
  flex: 1; border: none; background: none; padding: 9px 14px;
  font-size: 13px; font-family: var(--font); color: var(--text); outline: none;
}
.search-form input::placeholder { color: var(--text3); }
.search-form button {
  background: var(--red); border: none; color: #fff;
  width: 42px; height: 42px; display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 18px; flex-shrink: 0; transition: background .15s;
}
.search-form button:hover { background: var(--red-dark); }

.nav-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.nav-btn {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 6px 12px; border-radius: var(--radius); color: var(--text2);
  font-size: 10px; font-weight: 600; transition: all .15s; cursor: pointer;
  position: relative; white-space: nowrap;
}
.nav-btn i { font-size: 22px; color: var(--text); }
.nav-btn:hover { background: var(--bg); color: var(--red); }
.nav-btn:hover i { color: var(--red); }
.cart-count {
  position: absolute; top: 2px; right: 6px;
  background: var(--red); color: #fff; border-radius: 50%;
  width: 17px; height: 17px; font-size: 9px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.btn-admin-nav {
  background: var(--text); color: #fff !important; border-radius: var(--radius);
  padding: 7px 14px; font-size: 12px; font-weight: 600; display: flex; align-items: center; gap: 6px;
  transition: background .15s;
}
.btn-admin-nav:hover { background: #333; }

/* Navbar bottom — cats */
.navbar-cats {
  border-top: 1px solid var(--border);
  background: var(--white);
  position: relative; z-index: 100;
}
.navbar-cats-inner {
  max-width: 1280px; margin: 0 auto; padding: 0 20px;
  display: flex; gap: 0; flex-wrap: wrap;
}
.navbar-cats-inner::-webkit-scrollbar { display: none; }
.nav-cat {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 20px; font-size: 14px; font-weight: 500; color: var(--text2);
  border-bottom: 2px solid transparent; white-space: nowrap;
  transition: all .15s; cursor: pointer;
}
.nav-cat i { font-size: 22px; }
.nav-cat:hover { color: var(--red); border-bottom-color: var(--red); }
.nav-cat.active { color: var(--red); border-bottom-color: var(--red); font-weight: 600; }

/* ===================== HERO ===================== */
.hero {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 60%, #0f3460 100%);
  padding: 48px 20px; margin-bottom: 24px; position: relative; overflow: hidden;
}
.hero::after {
  content: ''; position: absolute; right: -60px; top: -60px;
  width: 300px; height: 300px; border-radius: 50%;
  background: rgba(230,48,0,.15); pointer-events: none;
}
.hero-inner { max-width: 1280px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.hero-badge { display: inline-flex; align-items: center; gap: 6px; background: rgba(230,48,0,.2); border: 1px solid rgba(230,48,0,.4); color: #ff8060; border-radius: 20px; padding: 4px 12px; font-size: 11px; font-weight: 600; margin-bottom: 14px; }
.hero h1 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 800; line-height: 1.15; margin-bottom: 10px; }
.hero p { color: rgba(255,255,255,.65); font-size: 14px; margin-bottom: 20px; }
.hero-cta { display: inline-flex; align-items: center; gap: 8px; background: var(--red); color: #fff; font-weight: 700; font-size: 13px; padding: 10px 22px; border-radius: var(--radius); transition: all .2s; }
.hero-cta:hover { background: var(--red-dark); transform: translateY(-1px); }
.hero-price-box { text-align: right; flex-shrink: 0; }
.hero-price-box .from { font-size: 11px; color: rgba(255,255,255,.5); text-transform: uppercase; letter-spacing: .1em; }
.hero-price-box .amount { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; color: #fff; line-height: 1; }
.hero-price-box .sub { font-size: 11px; color: rgba(255,255,255,.5); margin-top: 4px; }

/* ===================== LAYOUT ===================== */
.container { max-width: 1280px; margin: 0 auto; padding: 0 20px; }
.section { margin-bottom: 32px; }
.section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.section-head h2 { font-size: 16px; font-weight: 700; color: var(--text); position: relative; padding-left: 12px; }
.section-head h2::before { content: ''; position: absolute; left: 0; top: 3px; height: 14px; width: 3px; background: var(--red); border-radius: 2px; }
.see-all { font-size: 12px; color: var(--red); font-weight: 600; transition: opacity .15s; }
.see-all:hover { opacity: .75; }

/* ===================== PROMO STRIP ===================== */
.promo-strip {
  background: linear-gradient(90deg, #fff4f1, #fff);
  border: 1px solid #fcd9ce; border-radius: var(--radius-lg);
  padding: 14px 20px; margin-bottom: 6px;
  display: flex; align-items: center; gap: 14px;
  transition: transform .15s, box-shadow .15s;
}
.promo-strip:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(0,0,0,.06); }
.promo-strip:last-of-type { margin-bottom: 24px; }
.promo-strip i { font-size: 28px; color: var(--red); flex-shrink: 0; }
.promo-strip h4 { font-size: 13px; font-weight: 700; color: var(--text); }
.promo-strip p { font-size: 11px; color: var(--text3); margin-top: 2px; }
.promo-strip a { margin-left: auto; font-size: 12px; color: var(--red); font-weight: 700; white-space: nowrap; }

/* Variante précommande (bleu) */
.precommande-strip { background: linear-gradient(90deg, #eff6ff, #fff); border-color: #bfdbfe; }
.precommande-strip i { color: #2563eb; }
.precommande-strip a { color: #2563eb; }

/* ===================== PRODUCT CARDS ===================== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}

.product-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  display: flex; flex-direction: column;
  transition: all .25s; cursor: pointer; position: relative;
}
.product-card:hover {
  border-color: var(--border2);
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.product-card-img {
  height: 160px; background: #fafafa;
  display: flex; align-items: center; justify-content: center;
  font-size: 56px; border-bottom: 1px solid var(--border);
  position: relative; overflow: hidden;
}
.product-card-img img {
  width: 100%; height: 100%; object-fit: contain; padding: 12px;
}

.badge-promo, .badge-new, .badge-stock, .badge-rupture {
  position: absolute; top: 10px; left: 10px;
  padding: 3px 8px; border-radius: 20px;
  font-size: 10px; font-weight: 700; letter-spacing: .02em;
}
.badge-promo   { background: var(--red); color: #fff; }
.badge-new     { background: #16a34a; color: #fff; top: 10px; left: auto; right: 10px; }
.badge-stock   { background: #fff8e6; color: var(--orange); border: 1px solid #fde8a0; }
.badge-rupture { background: #fef2f2; color: #dc2626; border: 1px solid #fecaca; }
.badge-featured { position: absolute; top: 10px; right: 10px; background: #1d4ed8; color: #fff; padding: 3px 8px; border-radius: 20px; font-size: 10px; font-weight: 700; }

.product-card-body { padding: 12px; flex: 1; display: flex; flex-direction: column; gap: 4px; }
.product-card-brand { font-size: 10px; font-weight: 700; color: var(--red); text-transform: uppercase; letter-spacing: .06em; }
.product-card-name { font-size: 12px; font-weight: 600; color: var(--text); line-height: 1.35; flex: 1; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-card-ref { font-size: 10px; color: var(--text3); }

.product-card-price { margin-top: 8px; }
.price-current { font-size: 18px; font-weight: 800; color: var(--text); }
.price-old { font-size: 11px; color: var(--text3); text-decoration: line-through; margin-left: 4px; }
.price-eco { font-size: 10px; color: var(--green); font-weight: 600; display: block; margin-top: 1px; }

.product-card-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--border); }
.stock-ok   { font-size: 10px; font-weight: 600; color: var(--green); }
.stock-low  { font-size: 10px; font-weight: 600; color: var(--orange); }
.stock-none { font-size: 10px; font-weight: 600; color: #dc2626; }

.add-to-cart {
  background: var(--red); color: #fff; border: none;
  width: 30px; height: 30px; border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 16px; transition: all .15s; flex-shrink: 0;
}
.add-to-cart:hover { background: var(--red-dark); transform: scale(1.08); }
.add-to-cart:disabled { background: var(--border2); cursor: not-allowed; transform: none; }

/* ===================== FILTRES & SORT ===================== */
.filters-bar {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 10px; margin-bottom: 16px;
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 10px 16px;
}
.filters-left { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.filter-count { font-size: 12px; color: var(--text2); font-weight: 500; }
.sort-select {
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 6px 10px; font-size: 12px; font-family: var(--font);
  color: var(--text); background: var(--white); outline: none; cursor: pointer;
}
.sort-select:focus { border-color: var(--red); }

/* ===================== PAGINATION ===================== */
.pagination { display: flex; justify-content: center; gap: 6px; margin: 32px 0; }
.page-btn {
  width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  font-size: 13px; font-weight: 500; color: var(--text2); transition: all .15s; cursor: pointer;
}
.page-btn:hover { border-color: var(--red); color: var(--red); }
.page-btn.active { background: var(--red); border-color: var(--red); color: #fff; font-weight: 700; }

/* ===================== EMPTY STATE ===================== */
.empty-state { text-align: center; padding: 64px 20px; }
.empty-state i { font-size: 56px; color: var(--border2); display: block; margin-bottom: 16px; }
.empty-state h3 { font-size: 16px; font-weight: 600; color: var(--text2); margin-bottom: 8px; }
.empty-state p { font-size: 13px; color: var(--text3); }

/* ===================== FOOTER ===================== */
.footer { background: var(--white); border-top: 1px solid var(--border); margin-top: 40px; }
.footer-top { max-width: 1280px; margin: 0 auto; padding: 40px 20px; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.footer-logo { font-size: 20px; font-weight: 800; margin-bottom: 10px; }
.footer-logo span { color: var(--red); }
.footer-desc { font-size: 12px; color: var(--text3); line-height: 1.7; }
.footer-col h4 { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--text); margin-bottom: 12px; }
.footer-col a { display: block; font-size: 12px; color: var(--text2); margin-bottom: 7px; transition: color .15s; }
.footer-col a:hover { color: var(--red); }
.footer-bottom { border-top: 1px solid var(--border); padding: 16px 20px; max-width: 1280px; margin: 0 auto; display: flex; justify-content: center; align-items: center; font-size: 11px; color: var(--text3); }
.footer-bottom a { color: var(--text2); transition: color .15s; }
.footer-bottom a:hover { color: var(--red); }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 900px) {
  .hero-price-box { display: none; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .navbar-top { padding: 8px 12px; gap: 10px; }
  .logo small { display: none; }
  .nav-btn span { display: none; }
  .btn-admin-nav { display: none; }
  .hero { padding: 20px 16px; }
  .hero h1 { font-size: 1.35rem; line-height: 1.2; margin-bottom: 6px; }
  .hero p { font-size: 12.5px; margin-bottom: 12px; -webkit-line-clamp: 2; display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; }
  .hero-price-box .price { font-size: 1.5rem !important; }
  .hero-cta { padding: 9px 18px; font-size: 12.5px; }
  .products-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .footer-top { grid-template-columns: 1fr; gap: 20px; }
  /* Bannières promo compactes */
  .promo-strip { padding: 9px 12px; gap: 8px; margin-bottom: 6px; }
  .promo-strip h4 { font-size: 12px; line-height: 1.2; margin: 0; }
  .promo-strip p { display: none; }
  .promo-strip a { font-size: 11px; white-space: nowrap; }
  .promo-strip > i { font-size: 16px; }
}

/* ===================== BOUTONS GLOBAUX ===================== */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 9px 18px; border-radius: var(--radius); font-size: 13px; font-weight: 600; cursor: pointer; transition: all .15s; border: 1.5px solid transparent; font-family: var(--font); }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-dark); }
.btn-outline { background: var(--white); color: var(--text); border-color: var(--border); }
.btn-outline:hover { border-color: var(--red); color: var(--red); }
.btn-lg { padding: 12px 24px; font-size: 14px; }

/* Hero image fix */
.hero-img-box { flex-shrink:0 !important; width:260px !important; height:260px !important; max-width:260px !important; }
.hero-img-box img { max-width:85% !important; max-height:85% !important; object-fit:contain !important; }
@media(max-width:900px){ .hero-img-box{ display:none !important; } }

/* ===== Hero compact mobile (carte horizontale) ===== */
@media (max-width: 640px) {
  .hero { padding: 12px; margin: 0; border-radius: 0; }
  .hero::after { display: none; }
  .hero-inner { flex-direction: row !important; align-items: center; gap: 12px; }
  .hero-img-box { display: flex !important; width: 92px !important; height: 92px !important; min-width: 92px !important; max-width: 92px !important; background: rgba(255,255,255,.08); border-radius: 12px; padding: 6px; align-items: center; justify-content: center; }
  .hero-img-box img { max-width: 100% !important; max-height: 100% !important; }
  .hero-text { flex: 1; min-width: 0; }
  .hero-badge { font-size: 9px; padding: 2px 8px; margin-bottom: 6px; }
  .hero h1 { font-size: 15px !important; line-height: 1.2 !important; margin-bottom: 4px !important; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .hero p { display: none !important; }
  .hero-text > div[style*="flex"] { margin-bottom: 8px !important; }
  .hero-text .hero-price-line { font-size: 1.1rem !important; }
  .hero-cta { padding: 7px 14px !important; font-size: 12px !important; }
}
/* ===== Bannière précommande ===== */
.precommande-banner { background:linear-gradient(135deg, #1a1a2e 0%, #16213e 100%); padding:2.5rem 0; margin:2rem 0 0; }
.precommande-banner .pcb-inner { display:flex; align-items:center; justify-content:space-between; gap:2rem; flex-wrap:wrap; }
.precommande-banner .pcb-text h2 { color:#fff; font-size:1.5rem; font-weight:800; margin-bottom:.5rem; }
.precommande-banner .pcb-text p { color:rgba(255,255,255,.75); font-size:.95rem; max-width:520px; }
.precommande-banner .pcb-btn { background:var(--red); color:#fff; padding:.9rem 1.75rem; border-radius:var(--radius); font-weight:700; text-decoration:none; display:inline-flex; align-items:center; gap:.5rem; white-space:nowrap; transition:all .2s; }
.precommande-banner .pcb-btn:hover { background:var(--red-dark); transform:translateY(-2px); box-shadow:0 8px 24px rgba(230,48,0,.3); }
@media(max-width:640px){ .precommande-banner .pcb-inner{ flex-direction:column; text-align:center; } }

/* Badge occasion sur carte produit */
.badge-occasion { position:absolute; top:10px; left:10px; background:#7c3aed; color:#fff; font-size:11px; font-weight:700; padding:3px 10px; border-radius:12px; z-index:2; }
.product-card-img .badge-featured + .badge-occasion { top:40px; }

/* ===================== EFFETS DYNAMIQUES ===================== */
/* Apparition au scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .5s ease, transform .5s ease; }
.reveal-visible { opacity: 1; transform: translateY(0); }

/* Hover cartes produit amélioré */
.product-card { transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.product-card:hover { transform: translateY(-6px); box-shadow: 0 12px 28px rgba(0,0,0,.1); border-color: var(--red); }
.product-card-img img { transition: transform .35s ease; }
.product-card:hover .product-card-img img { transform: scale(1.06); }

/* Bouton ajout panier */
.add-to-cart { transition: transform .15s ease, background .15s ease; }
.add-to-cart:hover:not(:disabled) { transform: scale(1.12); }
.add-to-cart:active:not(:disabled) { transform: scale(.95); }
.add-to-cart.btn-loading { opacity: .6; pointer-events: none; position: relative; }
.add-to-cart.btn-loading i { opacity: 0; }
.add-to-cart.btn-loading::after { content: ''; position: absolute; width: 14px; height: 14px; top: 50%; left: 50%; margin: -7px 0 0 -7px; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: cbt-spin .6s linear infinite; }
@keyframes cbt-spin { to { transform: rotate(360deg); } }

/* Toast */
.cbt-toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(120%); background: #1a1a2e; color: #fff; padding: 14px 22px; border-radius: 12px; font-size: 14px; font-weight: 600; box-shadow: 0 8px 30px rgba(0,0,0,.25); z-index: 9999; display: flex; align-items: center; gap: 8px; opacity: 0; transition: transform .35s cubic-bezier(.2,.8,.2,1), opacity .35s; max-width: 90vw; }
.cbt-toast i { font-size: 20px; }
.cbt-toast.success i { color: #4ade80; }
.cbt-toast.error { background: #7f1d1d; }
.cbt-toast.error i { color: #fca5a5; }
.cbt-toast-show { transform: translateX(-50%) translateY(0); opacity: 1; }

/* Badge panier pop */
.badge-pop { animation: cbt-pop .4s ease; }
@keyframes cbt-pop { 0% { transform: scale(1); } 40% { transform: scale(1.5); } 100% { transform: scale(1); } }

/* Boutons génériques hover */
.btn-red, .hero-cta, .pcb-btn, .btn-checkout { transition: transform .15s ease, box-shadow .15s ease, background .15s ease; }
.btn-red:hover, .btn-checkout:hover { transform: translateY(-2px); }

/* Catégories : petit zoom icône au survol */
.nav-cat i { transition: transform .15s ease; }
.nav-cat:hover i { transform: scale(1.15); }

@media (prefers-reduced-motion: reduce) {
  .reveal, .product-card, .product-card-img img, .add-to-cart, .cbt-toast { transition: none !important; animation: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ===================== TIROIR CATÉGORIES (mobile) ===================== */
.cat-drawer-btn { display: none; background: var(--white); border: 1px solid var(--border); color: var(--text); width: 40px; height: 40px; border-radius: 8px; font-size: 20px; cursor: pointer; flex-shrink: 0; align-items: center; justify-content: center; margin-right: 8px; }
.cat-drawer-btn:hover { border-color: var(--red); color: var(--red); }

.cat-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 998; opacity: 0; transition: opacity .25s; }
.cat-overlay.open { display: block; opacity: 1; }

.cat-drawer { position: fixed; top: 0; left: 0; height: 100%; width: 280px; max-width: 82vw; background: var(--white); z-index: 999; transform: translateX(-100%); transition: transform .28s cubic-bezier(.2,.8,.2,1); overflow-y: auto; box-shadow: 2px 0 20px rgba(0,0,0,.15); }
.cat-drawer.open { transform: translateX(0); }
.cat-drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; border-bottom: 1px solid var(--border); font-weight: 800; font-size: 16px; position: sticky; top: 0; background: var(--white); }
.cat-drawer-head button { background: none; border: none; font-size: 22px; cursor: pointer; color: var(--text2); display: flex; }
.cat-drawer-item { display: flex; align-items: center; gap: 12px; padding: 14px 18px; color: var(--text); text-decoration: none; font-size: 14px; font-weight: 500; border-bottom: 1px solid var(--border-light, #f0f0f0); transition: background .15s; }
.cat-drawer-item i { font-size: 20px; color: var(--red); width: 24px; text-align: center; }
.cat-drawer-item:hover, .cat-drawer-item.active { background: rgba(230,48,0,.06); color: var(--red); }
.cat-drawer-item.active { font-weight: 700; }

/* Sur mobile : afficher le bouton dans la navbar, cacher toute la barre catégories */
@media (max-width: 640px) {
  .cat-drawer-btn { display: flex; }
  .navbar-cats { display: none; }
}

/* ===================== DROPDOWN SOUS-CATÉGORIES (desktop) ===================== */
.nav-cat-wrap { position: relative; display: inline-flex; }
.nav-cat-dropdown {
  position: absolute; top: 100%; left: 0; min-width: 210px;
  background: var(--white); border: 1px solid var(--border); border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,.12); padding: 6px;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .18s, transform .18s, visibility .18s; z-index: 200;
}
.nav-cat-wrap:hover .nav-cat-dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-cat-dropdown::before { content: ''; position: absolute; top: -8px; left: 0; right: 0; height: 8px; }
.dropdown-item {
  display: block; padding: 9px 14px; border-radius: 7px; font-size: 13.5px;
  color: var(--text); text-decoration: none; transition: background .12s, color .12s; white-space: nowrap;
}
.dropdown-item:hover { background: rgba(230,48,0,.07); color: var(--red); }
.dropdown-item.active { background: rgba(230,48,0,.1); color: var(--red); font-weight: 600; }
.dropdown-all { font-weight: 600; border-bottom: 1px solid var(--border); margin-bottom: 4px; border-radius: 7px 7px 0 0; }
.cat-drawer-sub { padding-top: 8px; padding-bottom: 8px; font-size: 13px; border-bottom: 1px solid #f5f5f5; }

/* ===================== RÉSEAUX SOCIAUX (footer) ===================== */
.footer-social { display: flex; gap: 10px; margin-top: 8px; align-items: center; }
.social-link {
  width: 44px; height: 44px; min-width: 44px; flex-shrink: 0;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.1); color: #fff !important;
  transition: transform .2s ease, box-shadow .2s ease;
  text-decoration: none;
}
.social-link i {
  font-size: 24px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}
.social-link i::before {
  margin: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.social-link:hover { transform: translateY(-3px); box-shadow: 0 6px 16px rgba(0,0,0,.25); }
/* Couleurs de marque directement visibles */
.social-ig { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.social-fb { background: #1877f2; }
.social-wa { background: #25d366; }

/* ===================== RECHERCHE INSTANTANÉE ===================== */
.search-suggestions {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0;
  background: var(--white); border: 1px solid var(--border); border-radius: 12px;
  box-shadow: 0 12px 36px rgba(0,0,0,.14); z-index: 500;
  max-height: 70vh; overflow-y: auto; padding: 6px;
}
.ss-loading, .ss-empty { padding: 16px; text-align: center; color: var(--text3); font-size: 13px; }
.ss-section { font-size: 11px; font-weight: 700; text-transform: uppercase; color: var(--text3); padding: 8px 10px 4px; letter-spacing: .5px; }
.ss-item, .ss-cat, .ss-all { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; text-decoration: none; color: var(--text); transition: background .12s; }
.ss-item:hover, .ss-cat:hover, .ss-all:hover { background: rgba(230,48,0,.06); }
.ss-cat { font-size: 13.5px; }
.ss-cat i { color: var(--red); font-size: 18px; }
.ss-thumb { width: 44px; height: 44px; flex-shrink: 0; border-radius: 8px; overflow: hidden; background: #f5f5f5; display: flex; align-items: center; justify-content: center; }
.ss-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ss-noimg i { font-size: 22px; color: #ccc; }
.ss-info { min-width: 0; flex: 1; }
.ss-nom { font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ss-nom strong { color: var(--red); }
.ss-cat strong { color: var(--red); }
.ss-meta { font-size: 12px; color: var(--text3); margin-top: 2px; }
.ss-prix { color: var(--text); font-weight: 700; }
.ss-rupture { color: #ef4444; font-size: 11px; }
.ss-all { justify-content: center; font-size: 13px; font-weight: 600; color: var(--red); border-top: 1px solid var(--border); margin-top: 4px; border-radius: 0 0 8px 8px; }

/* ===================== CARROUSEL PRODUITS VEDETTE ===================== */
.promo-carousel {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, #1a1a2e, #16213e);
  width: 100vw;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  border-radius: 0;
}
/* Sur desktop : contenu centré à 1280px */
@media (min-width: 641px) {
  .pc-slide { max-width: 1280px; margin: 0 auto; }
}
.pc-track { display: flex; transition: transform .65s cubic-bezier(.25,.8,.25,1); align-items: stretch; }
.pc-slide {
  min-width: 100%; box-sizing: border-box;
  height: 360px;
  display: flex; align-items: center; justify-content: center; gap: 48px;
  padding: 32px 40px; text-decoration: none; color: #fff;
}
.pc-img { flex-shrink: 0; width: 280px; height: 280px; background: #fff; border-radius: 14px; display: flex; align-items: center; justify-content: center; padding: 14px; overflow: hidden; }
.pc-img img { max-width: 100%; max-height: 100%; object-fit: contain; transition: transform 0.5s ease; animation: pcZoomBreath 6s ease-in-out infinite; transform-origin: center; }
.pc-slide:hover .pc-img img { transform: scale(1.12) !important; }
@keyframes pcZoomBreath {
  0% { transform: scale(1); }
  50% { transform: scale(1.06); }
  100% { transform: scale(1); }
}
.pc-noimg { color: #ccc; font-size: 64px; }
.pc-info { flex: 0 1 420px; min-width: 0; }
.pc-badge { display: inline-flex; align-items: center; gap: 5px; background: rgba(230,48,0,.2); color: #ff8060; padding: 4px 12px; border-radius: 20px; font-size: 12px; font-weight: 600; margin-bottom: 12px; }
.pc-nom { font-size: 1.9rem; font-weight: 800; line-height: 1.15; margin-bottom: 8px; color: #fff; }
.pc-marque { font-size: 14px; color: rgba(255,255,255,.6); margin-bottom: 14px; text-transform: uppercase; letter-spacing: .5px; }
.pc-prix { display: flex; align-items: baseline; gap: 12px; margin-bottom: 20px; }
.pc-promo { font-size: 2rem; font-weight: 800; color: #fff; }
.pc-old { font-size: 1.1rem; color: rgba(255,255,255,.5); text-decoration: line-through; }
.pc-cta { display: inline-flex; align-items: center; gap: 8px; background: var(--red, #e63000); color: #fff; padding: 12px 26px; border-radius: 10px; font-weight: 700; font-size: 15px; transition: background .25s, transform .25s, box-shadow .25s; }
.pc-slide:hover .pc-cta { background: #c62800; transform: translateX(6px); box-shadow: 0 6px 18px rgba(230,48,0,.35); }

/* Effet d'apparition du contenu quand le slide devient actif */
.pc-info > * { animation: pcInfoUp .6s ease both; }
.pc-badge { animation-delay: .05s !important; }
.pc-nom   { animation-delay: .12s !important; }
.pc-marque{ animation-delay: .18s !important; }
.pc-prix  { animation-delay: .24s !important; }
.pc-cta   { animation-delay: .30s !important; }
@keyframes pcInfoUp {
  0%   { opacity: 0; transform: translateY(14px); }
  100% { opacity: 1; transform: translateY(0); }
}
/* Survol : l'image de la vignette réagit + légère élévation */
.pc-img { transition: box-shadow .3s ease, transform .3s ease; }
.pc-slide:hover .pc-img { box-shadow: 0 12px 30px rgba(0,0,0,.25); transform: translateY(-4px); }

/* Flèches */
.pc-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,.9); border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 22px; color: #1a1a2e; z-index: 5; transition: background .2s; }
.pc-arrow:hover { background: #fff; }
.pc-prev { left: 16px; }
.pc-next { right: 16px; }

/* Points */
.pc-dots { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; z-index: 5; }
.pc-dot { width: 10px; height: 10px; border-radius: 50%; border: none; background: rgba(255,255,255,.4); cursor: pointer; transition: background .2s, width .2s; padding: 0; }
.pc-dot.active { background: #fff; width: 26px; border-radius: 5px; }

/* Mobile : carrousel vertical compact */
@media (max-width: 640px) {
  .pc-slide { flex-direction: column; text-align: center; padding: 16px 16px 32px; gap: 10px; height: 300px; justify-content: center; }
  .pc-slide-banniere { height: 200px; }
  .pc-img { width: 130px; height: 130px; padding: 10px; border-radius: 12px; }
  .pc-badge { margin-bottom: 6px; font-size: 11px; }
  .pc-nom { font-size: 1.05rem; margin-bottom: 4px; }
  .pc-marque { font-size: 12px; margin-bottom: 8px; }
  .pc-prix { justify-content: center; margin-bottom: 12px; }
  .pc-promo { font-size: 1.3rem; }
  .pc-cta { padding: 9px 18px; font-size: 13px; }
  .pc-arrow { width: 34px; height: 34px; font-size: 17px; }
  .pc-prev { left: 8px; } .pc-next { right: 8px; }
  .pc-dots { bottom: 10px; }
}

/* Slide bannière personnalisée (image pleine, remplit toute la hauteur) */
.pc-slide-banniere { position: relative; padding: 0; display: block; height: 360px; background: #0f1729; overflow: hidden; }
.pc-banniere-img { width: 100%; height: 100%; object-fit: contain; display: block; animation: pcBanFade 1s ease; }
@keyframes pcBanFade {
  0% { opacity: 0.4; transform: scale(1.02); }
  100% { opacity: 1; transform: scale(1); }
}
.pc-banniere-titre { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(transparent, rgba(0,0,0,.75)); color: #fff; padding: 40px 30px 24px; font-size: 1.5rem; font-weight: 800; }
@media (max-width: 640px) {
  .pc-banniere-titre { font-size: 1.1rem; padding: 30px 20px 18px; }
}

/* ===================== SEO ===================== */
/* H1 discret mais présent pour le référencement */
.seo-h1 {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text3, #999);
  text-align: center;
  margin: 0;
  padding: 0.6rem 1rem;
  line-height: 1.3;
}
/* Bloc de texte SEO en bas de page */
.seo-texte {
  max-width: 900px;
  margin: 1.5rem auto 0;
  padding: 1.5rem;
  color: var(--text3, #999);
  font-size: 0.82rem;
  line-height: 1.7;
  text-align: center;
  border-top: 1px solid var(--border, #eee);
}
.seo-texte h2 { font-size: 1rem; color: var(--text2, #666); margin-bottom: 0.6rem; font-weight: 600; }
.seo-texte strong { color: var(--text2, #666); font-weight: 600; }
@media (max-width: 640px) {
  .seo-h1 { font-size: 0.78rem; padding: 0.5rem 1rem; }
  .seo-texte { padding: 1rem; font-size: 0.78rem; margin-top: 1rem; }
}

/* H1 dans le bloc SEO en bas */
.seo-h1-bloc { font-size: 1.15rem; font-weight: 700; color: var(--text2, #666); margin-bottom: 0.75rem; }
@media (max-width: 640px) { .seo-h1-bloc { font-size: 1rem; } }

/* H1 discret intégré dans le footer */
.footer-h1 {
  font-size: 0.9rem !important;
  font-weight: 600 !important;
  color: var(--text2, #888) !important;
  margin: 0 0 0.6rem !important;
  line-height: 1.35 !important;
  font-family: var(--font) !important;
}
@media (max-width: 640px) { .footer-h1 { font-size: 0.85rem !important; } }

/* ===================== CARROUSEL BANNIÈRES (séparé) ===================== */
.ban-carousel {
  position: relative; overflow: hidden; border-radius: 14px;
  width: 100vw; left: 50%; right: 50%; margin-left: -50vw; margin-right: -50vw;
  border-radius: 0;
  background: #0f1729;
}
.ban-track { display: flex; transition: transform .65s cubic-bezier(.25,.8,.25,1); }
.ban-slide { min-width: 100%; display: block; text-decoration: none; overflow: hidden; }
/* Ratio large : l'image garde ses proportions, largeur pleine */
.ban-img {
  width: 100%; height: auto; display: block;
  animation: banFade .9s ease both;
  transition: transform .5s ease;
}
/* Survol : léger zoom de la bannière */
.ban-slide:hover .ban-img { transform: scale(1.03); }
@keyframes banFade {
  0%   { opacity: 0; transform: scale(1.04); }
  100% { opacity: 1; transform: scale(1); }
}
.ban-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 42px; height: 42px; border-radius: 50%; border: none;
  background: rgba(255,255,255,.9); color: #1a1a2e; cursor: pointer;
  display: flex; align-items: center; justify-content: center; font-size: 20px;
  z-index: 5; transition: .2s;
}
.ban-arrow:hover { background: #fff; transform: translateY(-50%) scale(1.1); }
.ban-prev { left: 16px; } .ban-next { right: 16px; }
.ban-dots { position: absolute; bottom: 14px; left: 0; right: 0; display: flex; justify-content: center; gap: 8px; z-index: 5; }
.ban-dot { width: 10px; height: 10px; border-radius: 50%; border: none; background: rgba(255,255,255,.5); cursor: pointer; transition: .2s; padding: 0; }
.ban-dot.active { background: #fff; width: 28px; border-radius: 5px; }
@media (max-width: 640px) {
  .ban-arrow { width: 34px; height: 34px; font-size: 16px; }
  .ban-prev { left: 8px; } .ban-next { right: 8px; }
  .ban-dots { bottom: 10px; }
}

/* ===== Drawer mobile : sous-catégories dépliables ===== */
.cat-drawer-parent { display:flex; align-items:center; border-bottom:1px solid var(--border,#eee); }
.cat-drawer-parent .cdp-lien { flex:1; border-bottom:none !important; }
.cdp-toggle {
  background:none; border:none; padding:14px 18px; cursor:pointer;
  color:var(--text2,#888); font-size:18px; display:flex; align-items:center;
  transition:transform .25s ease;
}
.cdp-toggle.open { transform:rotate(180deg); }
.cat-drawer-subs { max-height:0; overflow:hidden; transition:max-height .3s ease; background:var(--bg2,#fafafa); }
.cat-drawer-subs.open { max-height:600px; }
.cat-drawer-subs .cat-drawer-sub { padding-left:34px; font-size:.95em; }
.cat-drawer-subs .cat-drawer-sub span { color:var(--text2,#666); display:flex; align-items:center; gap:8px; }
