/* ============================================================
   OFISTOR — Design System Principal
   Couleurs nationales CI : Orange, Blanc, Vert
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Baloo+2:wght@400;500;600;700;800&family=Nunito:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

/* ── Variables ───────────────────────────────────────────── */
:root {
  --orange:        #F7941D;
  --orange-dark:   #D97B10;
  --orange-deep:   #B8620A;
  --orange-light:  #FFF4E6;
  --orange-pale:   #FEF9F0;
  --green:         #009A3D;
  --green-dark:    #006B2A;
  --green-light:   #E6F7EE;
  --white:         #FFFFFF;
  --black:         #1A1A1A;
  --gray-900:      #222222;
  --gray-700:      #444444;
  --gray-600:      #666666;
  --gray-500:      #777777;
  --gray-400:      #999999;
  --gray-300:      #BBBBBB;
  --gray-200:      #DDDDDD;
  --gray-100:      #F0F0F0;
  --gray-50:       #F8F8F8;
  --red:           #E53E3E;
  --blue:          #2B6CB0;
  --whatsapp:      #25D366;

  /* Alias courts pour compatibilité pages inline */
  --or:    #F7941D;
  --or-d:  #D97B10;
  --or-l:  #FFF4E6;
  --gr:    #009A3D;
  --gr-d:  #006B2A;
  --gr-l:  #E6F7EE;
  --wa:    #25D366;
  --g1:    #F8F8F8;
  --g2:    #E8E8E8;
  --g5:    #777777;
  --txt:   #1A1A1A;

  --font-display:  'Baloo 2', sans-serif;
  --font-body:     'Nunito', sans-serif;

  --radius-sm:     6px;
  --radius-md:     10px;
  --radius-lg:     16px;
  --radius-xl:     24px;
  --radius-full:   9999px;

  --shadow-sm:     0 1px 4px rgba(0,0,0,.08);
  --shadow-md:     0 4px 16px rgba(0,0,0,.10);
  --shadow-lg:     0 8px 32px rgba(0,0,0,.14);

  --transition:    0.2s ease;
  --header-h:      130px;
}

/* ── Reset & Base ────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--gray-900);
  background: var(--gray-50);
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button { font-family: var(--font-body); cursor: pointer; }
input, select, textarea { font-family: var(--font-body); }
ul { list-style: none; }

/* ── Typography ──────────────────────────────────────────── */
h1,h2,h3,h4,h5,h6 { font-family: var(--font-display); font-weight: 700; line-height: 1.2; }
.display-xl { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 800; }
.display-lg { font-size: clamp(1.5rem, 3vw, 2.5rem); font-weight: 800; }
.display-md { font-size: clamp(1.2rem, 2vw, 1.8rem); font-weight: 700; }

/* ── Layout ──────────────────────────────────────────────── */
.container { max-width: 1280px; margin: 0 auto; padding: 0 16px; }
.container-fluid { width: 100%; padding: 0 16px; }
.section { padding: 40px 0; }
.section-sm { padding: 24px 0; }

/* ── Header ──────────────────────────────────────────────── */
#site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: var(--orange);
  box-shadow: var(--shadow-md);
  overflow: visible;
}

.header-top {
  background: var(--orange-deep);
  padding: 6px 0;
  font-size: 12px;
  color: rgba(255,255,255,.85);
  text-align: center;
  letter-spacing: .3px;
}
.header-top a { color: white; font-weight: 600; }

/* ── Header principal ── */
.header-main {
  padding: 10px 0;
  display: flex;
  align-items: center;
  gap: 12px;
  overflow: visible;
  flex-wrap: nowrap;
}

/* Hamburger + logo groupés */
.header-row-1 {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* Barre de recherche — s'étire entre logo et boutons */
.header-search {
  flex: 1;
  min-width: 0;
  max-width: 620px;
}

/* Mobile : colonne */
@media (max-width: 768px) {
  .header-main   { flex-direction: column; gap: 6px; padding: 8px 12px; }
  .header-row-1  { width: 100%; }
  .header-search { max-width: 100%; width: 100%; }
}

.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: rgba(255,255,255,.18);
  border: none;
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  cursor: pointer;
  flex-shrink: 0;
  transition: background var(--transition);
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.hamburger * { pointer-events: none; }
.hamburger:hover { background: rgba(255,255,255,.28); }
.hamburger span { display: block; width: 22px; height: 2px; background: white; border-radius: 2px; transition: var(--transition); }

.logo {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: white;
  letter-spacing: 2px;
  white-space: nowrap;
}
.logo span { color: var(--green-light); }
.logo small { font-size: .55rem; display: block; letter-spacing: 3px; opacity: .8; font-weight: 500; margin-top: -6px; }

.header-search {
  flex: 1;
  display: flex;
  gap: 0;
  max-width: 600px;
  min-width: 0;
  overflow: hidden;
  border-radius: var(--radius-md);
}
.header-search select {
  border: none;
  border-radius: var(--radius-md) 0 0 var(--radius-md);
  padding: 0 10px;
  font-size: 13px;
  background: white;
  color: var(--gray-700);
  border-right: 1px solid var(--gray-100);
  outline: none;
  cursor: pointer;
  min-width: 110px;
  flex-shrink: 0;
}
.header-search input {
  flex: 1;
  min-width: 0;
  border: none;
  padding: 10px 12px;
  font-size: 13px;
  outline: none;
  background: white;
  width: 100%;
}
.header-search button {
  background: var(--green);
  color: white;
  border: none;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 700;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  transition: background var(--transition);
  white-space: nowrap;
  flex-shrink: 0;
}
.header-search button:hover { background: var(--green-dark); }

.header-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.header-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  background: rgba(255,255,255,.18);
  border: none;
  border-radius: var(--radius-md);
  padding: 8px 14px;
  color: white;
  font-size: 11px;
  font-weight: 600;
  transition: background var(--transition);
  position: relative;
  white-space: nowrap;
}
.header-btn:hover { background: rgba(255,255,255,.28); }
.header-btn .icon { font-size: 18px; }
.header-btn .badge {
  position: absolute;
  top: 4px; right: 4px;
  background: var(--green);
  color: white;
  font-size: 9px;
  font-weight: 800;
  min-width: 16px;
  height: 16px;
  border-radius: var(--radius-full);
  display: flex; align-items: center; justify-content: center;
  padding: 0 4px;
}

/* ══ NAV PRINCIPALE + DROPDOWNS ═════════════════════════ */
.header-nav {
  background: var(--orange-dark);
  position: relative;
  z-index: 500;
  overflow: visible;
}
.header-nav ul {
  display: flex;
  list-style: none;
  margin: 0 auto;
  padding: 0 8px;
  gap: 0;
  overflow: visible;
  justify-content: center;
  max-width: 1400px;
}
.header-nav ul > li {
  position: relative;
  overflow: visible;
}
.header-nav ul > li > a {
  display: flex; align-items: center; gap: 5px;
  padding: 10px 14px; font-size: 13px; font-weight: 600;
  color: rgba(255,255,255,.9); white-space: nowrap;
  text-decoration: none; transition: background .15s;
}
.header-nav ul > li > a:hover,
.header-nav ul > li.has-dd:hover > a {
  background: rgba(255,255,255,.18); color: #fff;
}
.nav-icon { font-size: 14px; }

/* ── Panel dropdown — styles renforcés ── */
.dd-panel {
  display: none;
  position: absolute;  /* fallback si JS échoue */
  top: 100%;
  left: 0;
  background: #ffffff !important;
  border-top: 3px solid #F7941D;
  border-radius: 0 0 10px 10px;
  box-shadow: 0 8px 40px rgba(0,0,0,.2);
  padding: 22px 24px;
  z-index: 9999;
  grid-template-columns: 1fr 1fr 1fr 200px;
  gap: 0;
  align-items: start;
  min-width: 760px;
  white-space: normal;
  color: #333 !important;
}
.has-dd-sm .dd-panel {
  grid-template-columns: 1fr 1fr 190px;
  min-width: 560px;
}

/* CSS hover (fallback si JS échoue) */
.has-dd:hover > .dd-panel {
  display: grid;
}

/* Décalage droite pour les derniers items */
.has-dd:nth-last-child(-n+2) .dd-panel {
  left: auto;
  right: 0;
}

/* ── Colonnes ── */
.dd-col {
  padding: 0 18px 0 4px;
  border-right: 1px solid #EBEBEB;
  background: transparent;
}
.dd-col:last-of-type { border-right: none; }
.dd-h {
  font-size: 10px; font-weight: 800;
  text-transform: uppercase; letter-spacing: .8px;
  color: #F7941D !important;
  padding-bottom: 8px; margin-bottom: 6px;
  border-bottom: 1px solid #EBEBEB;
}
.dd-col a {
  display: block; padding: 7px 10px;
  font-size: 13px; color: #333 !important;
  border-radius: 6px; text-decoration: none;
  white-space: nowrap;
  transition: background .1s, color .1s;
  background: transparent;
}
.dd-col a:hover { background: #FFF4E6 !important; color: #D97B10 !important; }

/* ── Promo ── */
.dd-promo {
  background: linear-gradient(135deg, #F7941D, #D97B10);
  border-radius: 10px; padding: 16px;
  display: flex; flex-direction: column;
  justify-content: center; margin-left: 14px;
}
.dd-badge {
  display: inline-block;
  background: rgba(255,255,255,.25); color: #fff;
  font-size: 9px; font-weight: 800;
  padding: 2px 9px; border-radius: 999px; margin-bottom: 9px;
}
.dd-title { font-size: 14px; font-weight: 800; color: #fff; margin-bottom: 5px; line-height: 1.25; }
.dd-sub   { font-size: 11px; color: rgba(255,255,255,.88); margin-bottom: 12px; }
.dd-btn   {
  background: #fff; color: #D97B10 !important;
  font-size: 11px; font-weight: 700;
  padding: 7px 12px; border-radius: 7px;
  text-align: center; display: block; text-decoration: none;
}
.dd-btn:hover { opacity: .88; }

@media (max-width: 768px) {
  .header-nav { display: none !important; }
  .dd-panel   { display: none !important; visibility: hidden !important; }
}

/* ── Sidebar Menu ────────────────────────────────────────── */
.sidebar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}
.sidebar-overlay.open { opacity: 1; pointer-events: all; }

.sidebar {
  position: fixed;
  top: 0; left: 0;
  width: 300px;
  height: 100%;
  background: white;
  z-index: 1001;
  transform: translateX(-100%);
  transition: transform .28s ease;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
.sidebar.open { transform: translateX(0); }

.sidebar-header {
  background: var(--orange);
  padding: 18px 16px 16px;
  flex-shrink: 0;
}
/* Ligne logo + bouton ✕ côte à côte */
.sidebar-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}
/* ── Bouton fermeture ✕ — à droite du logo ── */
.sidebar-close {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,.22);
  border: 2px solid rgba(255,255,255,.4);
  color: white;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), transform .15s;
  line-height: 1;
  flex-shrink: 0;
}
.sidebar-close:hover {
  background: rgba(255,255,255,.45);
  transform: scale(1.1);
}

.sidebar-logo { font-family: var(--font-display); font-size: 1.8rem; font-weight: 800; color: white; }
.sidebar-logo span { color: var(--green-light); }
.sidebar-tagline { font-size: 12px; color: rgba(255,255,255,.8); margin-top: 2px; }
.sidebar-user {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,.2);
  text-decoration: none;
  transition: opacity var(--transition);
}
.sidebar-user:hover { opacity: .85; }
.sidebar-avatar {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.sidebar-user-info .name { font-size: 13px; font-weight: 700; color: white; }
.sidebar-user-info .role { font-size: 11px; color: rgba(255,255,255,.75); margin-top: 2px; }

.sidebar-section { padding: 8px 0; border-bottom: 1px solid var(--gray-100); }
.sidebar-section-title { font-size: 10px; font-weight: 800; color: var(--gray-300); letter-spacing: 1.5px; text-transform: uppercase; padding: 8px 20px 4px; }
.sidebar-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 20px;
  font-size: 14px;
  color: var(--gray-700);
  font-weight: 500;
  transition: background var(--transition), color var(--transition);
  cursor: pointer;
  text-decoration: none;
}
.sidebar-item:hover { background: var(--orange-light); color: var(--orange-dark); }
.sidebar-item .si-icon { font-size: 17px; width: 22px; text-align: center; flex-shrink: 0; }
.sidebar-item .si-badge { margin-left: auto; background: var(--orange); color: white; font-size: 9px; font-weight: 700; padding: 2px 8px; border-radius: var(--radius-full); }
.sidebar-item.danger { color: var(--red); }
.sidebar-item.danger:hover { background: #FFF5F5; }

/* ── Catégorie avec sous-menu ── */
.sidebar-cat-toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 20px;
  font-size: 14px;
  color: var(--gray-700);
  font-weight: 500;
  cursor: pointer;
  user-select: none;
  transition: background var(--transition), color var(--transition);
  -webkit-tap-highlight-color: transparent;
}
/* Les enfants ne captent pas les clics → toujours le toggle qui reçoit */
.sidebar-cat-toggle * { pointer-events: none; }
.sidebar-cat-toggle:hover { background: var(--orange-light); color: var(--orange-dark); }
.sidebar-cat-toggle .si-icon { font-size: 17px; width: 22px; text-align: center; flex-shrink: 0; }
.sidebar-cat-arrow {
  margin-left: auto;
  font-size: 13px;
  color: var(--gray-300);
  transition: transform .2s ease;
  display: inline-block;
}
.sidebar-cat-toggle.open { background: var(--orange-light); color: var(--orange-dark); }
.sidebar-cat-toggle.open .sidebar-cat-arrow { transform: rotate(90deg); color: var(--orange); }

.sidebar-submenu {
  display: none;
  background: #FAFAFA;
  border-left: 3px solid var(--orange);
  margin: 0 0 4px 36px;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  overflow: hidden;
}
.sidebar-submenu.open { display: block; }
.sidebar-subitem {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px;
  font-size: 13px;
  color: var(--gray-600, #666);
  text-decoration: none;
  transition: background var(--transition), color var(--transition);
}
.sidebar-subitem:hover { background: var(--orange-light); color: var(--orange-dark); }
.sidebar-subitem .sub-icon { font-size: 13px; width: 18px; text-align: center; flex-shrink: 0; }

/* ── Hero / Slider ───────────────────────────────────────── */
.hero-section {
  background: var(--orange);
  position: relative;
  overflow: hidden;
}
.hero-slider { position: relative; }
.hero-slide {
  display: none;
  min-height: 320px;
  align-items: center;
  padding: 40px 0;
  position: relative;
}
.hero-slide.active { display: flex; animation: fadeInSlide .5s ease; }
@keyframes fadeInSlide { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: translateX(0); } }

.hero-content { flex: 1; z-index: 2; }
.hero-tag {
  display: inline-block;
  background: var(--green);
  color: white;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: var(--radius-full);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.hero-title { font-family: var(--font-display); font-size: clamp(1.8rem,4vw,3rem); font-weight: 800; color: white; line-height: 1.1; margin-bottom: 10px; }
.hero-subtitle { font-size: 16px; color: rgba(255,255,255,.85); margin-bottom: 24px; }
.hero-emoji { font-size: clamp(80px,15vw,160px); line-height: 1; opacity: .9; }

.hero-controls {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}
.hero-dot { width: 8px; height: 8px; border-radius: var(--radius-full); background: rgba(255,255,255,.4); border: none; cursor: pointer; transition: all var(--transition); }
.hero-dot.active { background: white; width: 24px; }

.hero-prev, .hero-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,.25);
  border: none;
  border-radius: var(--radius-full);
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  color: white;
  cursor: pointer;
  transition: background var(--transition);
  z-index: 10;
}
.hero-prev { left: 16px; }
.hero-next { right: 16px; }
.hero-prev:hover, .hero-next:hover { background: rgba(255,255,255,.4); }

/* ── Promo Banner ────────────────────────────────────────── */
.promo-banner {
  background: var(--black);
  color: white;
  text-align: center;
  padding: 10px;
  font-size: 13px;
  font-weight: 600;
  overflow: hidden;
  position: relative;
  z-index: 1;
}
.promo-ticker { display: inline-flex; gap: 40px; animation: ticker 25s linear infinite; white-space: nowrap; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.promo-item { display: inline-flex; align-items: center; gap: 8px; }
.promo-item::before { content: "●"; color: var(--orange); font-size: 8px; }

/* ── Categories ──────────────────────────────────────────── */
.cats-grid {
  display: grid;
  /* 9 catégories → 5 colonnes desktop (2 lignes : 5+4) */
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  padding: 24px 0;
}
.cat-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 20px 12px;
  text-align: center;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
}
.cat-card:hover, .cat-card.active {
  border-color: var(--orange);
  background: var(--orange-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.cat-icon { font-size: 36px; margin-bottom: 8px; line-height: 1; }
.cat-name { font-size: 12px; font-weight: 700; color: var(--gray-700); line-height: 1.3; }
.cat-count { font-size: 10px; color: var(--gray-300); margin-top: 2px; }

/* ── Section Header ──────────────────────────────────────── */
.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.section-head h2 { font-family: var(--font-display); font-size: 1.4rem; font-weight: 700; color: var(--gray-900); }
.section-head h2::before { content: ""; display: inline-block; width: 4px; height: 20px; background: var(--orange); border-radius: 2px; margin-right: 10px; vertical-align: middle; }
.section-head .see-all { font-size: 13px; font-weight: 700; color: var(--orange); transition: color var(--transition); }
.section-head .see-all:hover { color: var(--orange-dark); }

/* ── Filter Bar ──────────────────────────────────────────── */
.filter-bar {
  background: white;
  border-radius: var(--radius-lg);
  padding: 16px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-end;
}
.filter-group { display: flex; flex-direction: column; gap: 4px; min-width: 140px; }
.filter-group label { font-size: 11px; font-weight: 700; color: var(--gray-500); text-transform: uppercase; letter-spacing: .5px; }
.filter-group select, .filter-group input {
  border: 1.5px solid var(--gray-100);
  border-radius: var(--radius-md);
  padding: 8px 12px;
  font-size: 13px;
  color: var(--gray-700);
  outline: none;
  transition: border-color var(--transition);
  background: var(--gray-50);
}
.filter-group select:focus, .filter-group input:focus { border-color: var(--orange); background: white; }
.filter-btn { background: var(--orange); color: white; border: none; border-radius: var(--radius-md); padding: 10px 24px; font-size: 14px; font-weight: 700; transition: background var(--transition); }
.filter-btn:hover { background: var(--orange-dark); }
.filter-btn-reset { background: var(--gray-100); color: var(--gray-700); border: none; border-radius: var(--radius-md); padding: 10px 20px; font-size: 14px; font-weight: 600; transition: background var(--transition); }
.filter-btn-reset:hover { background: var(--gray-300); color: white; }

/* ── Product Cards ───────────────────────────────────────── */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}
.product-card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1.5px solid transparent;
  transition: all var(--transition);
  position: relative;
  display: flex;
  flex-direction: column;
  cursor: pointer;   /* ← carte entière cliquable */
}
.product-card:hover { border-color: var(--orange); box-shadow: var(--shadow-md); transform: translateY(-3px); }

.product-img-wrap {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--gray-50);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 80px;
}
.product-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.product-card:hover .product-img-wrap img { transform: scale(1.05); }

.product-badge {
  position: absolute;
  top: 8px; left: 8px;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-full);
}
.badge-promo { background: var(--orange); color: white; }
.badge-gros  { background: var(--green); color: white; }
.badge-new   { background: var(--blue); color: white; }
.badge-stock { background: var(--red); color: white; }
.badge-digital { background: var(--black); color: white; }

.product-wishlist {
  position: absolute;
  top: 8px; right: 8px;
  background: white;
  border: none;
  border-radius: var(--radius-full);
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition);
}
.product-wishlist:hover { transform: scale(1.15); }
.product-wishlist.liked { color: #E53E3E; }

.product-body { padding: 12px; flex: 1; display: flex; flex-direction: column; }
.product-category { font-size: 10px; font-weight: 700; color: var(--orange); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 4px; }
.product-name { font-size: 13px; font-weight: 600; color: var(--gray-900); line-height: 1.4; margin-bottom: 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; flex: 1; }
.product-seller { font-size: 11px; color: var(--gray-400, var(--gray-500)); margin-bottom: 2px; }
.product-location { font-size: 11px; color: var(--green); margin-bottom: 6px; }
.product-stars { font-size: 11px; color: var(--orange); margin-bottom: 6px; }
.product-stars .count { color: var(--gray-300); }
.product-price { font-family: var(--font-display); font-size: 16px; font-weight: 800; color: var(--orange-deep); }
.product-price-old { font-size: 11px; color: var(--gray-300); text-decoration: line-through; margin-left: 6px; font-weight: 400; }
.product-discount { font-size: 11px; font-weight: 700; color: var(--green); margin-left: 4px; }

.product-footer { padding: 10px 12px 12px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }

/* Lien vers fiche détail sur les cartes produits */
.btn-detail {
  font-size: 11px;
  color: var(--orange);
  font-weight: 700;
  text-decoration: none;
  padding: 5px 9px;
  border: 1.5px solid var(--orange);
  border-radius: var(--radius-md);
  white-space: nowrap;
  flex-shrink: 0;
  transition: background var(--transition), color var(--transition);
  display: flex;
  align-items: center;
  gap: 3px;
}
.btn-detail:hover { background: var(--orange); color: white; }
.btn-add-cart {
  flex: 1;
  background: var(--orange);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 700;
  transition: background var(--transition);
  display: flex; align-items: center; justify-content: center; gap: 4px;
}
.btn-add-cart:hover { background: var(--orange-dark); }
.btn-whatsapp {
  background: var(--whatsapp);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 700;
  transition: background var(--transition);
  display: flex; align-items: center; justify-content: center;
}
.btn-whatsapp:hover { background: #1DA851; }

/* ── Shop Cards ──────────────────────────────────────────── */
.shops-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.shop-card {
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1.5px solid transparent;
  transition: all var(--transition);
  cursor: pointer;
}
.shop-card:hover { border-color: var(--orange); box-shadow: var(--shadow-md); transform: translateY(-2px); }

.shop-banner {
  height: 80px;
  background: linear-gradient(135deg, var(--orange), var(--orange-dark));
  position: relative;
  overflow: hidden;
}
.shop-banner img { width: 100%; height: 100%; object-fit: cover; }
.shop-banner .shop-banner-emoji { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-size: 48px; opacity: .3; }

.shop-logo-wrap {
  position: absolute;
  bottom: -20px; left: 16px;
  width: 44px; height: 44px;
  border-radius: var(--radius-full);
  background: white;
  border: 3px solid var(--orange);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  overflow: hidden;
}
.shop-logo-wrap img { width: 100%; height: 100%; object-fit: cover; }

.shop-body { padding: 28px 16px 16px; }
.shop-name { font-family: var(--font-display); font-size: 15px; font-weight: 700; color: var(--gray-900); margin-bottom: 2px; }
.shop-category { font-size: 11px; color: var(--gray-500); margin-bottom: 4px; }
.shop-location { font-size: 11px; color: var(--green); margin-bottom: 6px; }
.shop-stats { display: flex; gap: 12px; }
.shop-stat { font-size: 10px; color: var(--gray-500); }
.shop-stat strong { color: var(--gray-900); font-weight: 700; }

/* ── Buttons ─────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: none; border-radius: var(--radius-md); padding: 10px 22px; font-size: 14px; font-weight: 700; cursor: pointer; transition: all var(--transition); line-height: 1; font-family: var(--font-body); }
.btn-sm { padding: 7px 16px; font-size: 12px; }
.btn-lg { padding: 14px 32px; font-size: 16px; border-radius: var(--radius-lg); }
.btn-primary { background: var(--orange); color: white; }
.btn-primary:hover { background: var(--orange-dark); }
.btn-secondary { background: var(--green); color: white; }
.btn-secondary:hover { background: var(--green-dark); }
.btn-outline { background: transparent; color: var(--orange); border: 2px solid var(--orange); }
.btn-outline:hover { background: var(--orange); color: white; }
.btn-ghost { background: var(--gray-100); color: var(--gray-700); }
.btn-ghost:hover { background: var(--gray-300); }
.btn-danger { background: var(--red); color: white; }
.btn-whatsapp-full { background: var(--whatsapp); color: white; }
.btn-whatsapp-full:hover { background: #1DA851; }

/* ── Badges & Tags ───────────────────────────────────────── */
.tag { display: inline-block; padding: 3px 10px; border-radius: var(--radius-full); font-size: 11px; font-weight: 700; }
.tag-orange { background: var(--orange-light); color: var(--orange-deep); }
.tag-green  { background: var(--green-light); color: var(--green-dark); }
.tag-gray   { background: var(--gray-100); color: var(--gray-700); }
.tag-red    { background: #FFF5F5; color: var(--red); }

/* ── Cards ───────────────────────────────────────────────── */
.card { background: white; border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow-sm); }
.card-sm { padding: 16px; }
.card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid var(--gray-100); }
.card-title { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; color: var(--gray-900); }

/* ── Stats Cards ─────────────────────────────────────────── */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.stat-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 16px;
  border-left: 4px solid var(--orange);
}
.stat-icon { font-size: 32px; }
.stat-label { font-size: 12px; color: var(--gray-500); font-weight: 600; text-transform: uppercase; letter-spacing: .5px; }
.stat-value { font-family: var(--font-display); font-size: 1.6rem; font-weight: 800; color: var(--gray-900); }
.stat-change { font-size: 12px; font-weight: 700; }
.stat-change.up { color: var(--green); }
.stat-change.down { color: var(--red); }

/* ── Forms ───────────────────────────────────────────────── */
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: 13px; font-weight: 700; color: var(--gray-700); margin-bottom: 6px; }
.form-input, .form-select, .form-textarea {
  width: 100%;
  border: 1.5px solid var(--gray-100);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  font-size: 14px;
  color: var(--gray-900);
  background: white;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  font-family: var(--font-body);
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(247,148,29,.12);
}
.form-textarea { min-height: 100px; resize: vertical; }
.form-hint { font-size: 11px; color: var(--gray-500); margin-top: 4px; }
.form-error { font-size: 11px; color: var(--red); margin-top: 4px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ── Tables ──────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
table { width: 100%; border-collapse: collapse; background: white; }
thead { background: var(--orange); color: white; }
thead th { padding: 14px 16px; font-size: 13px; font-weight: 700; text-align: left; white-space: nowrap; }
tbody tr { border-bottom: 1px solid var(--gray-100); transition: background var(--transition); }
tbody tr:hover { background: var(--orange-pale); }
tbody td { padding: 12px 16px; font-size: 13px; color: var(--gray-700); vertical-align: middle; }
tbody tr:last-child { border-bottom: none; }

/* ── Pagination ──────────────────────────────────────────── */
.pagination { display: flex; align-items: center; gap: 6px; justify-content: center; padding: 24px 0; }
.page-btn { min-width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border: 1.5px solid var(--gray-100); border-radius: var(--radius-md); background: white; font-size: 13px; font-weight: 600; cursor: pointer; transition: all var(--transition); color: var(--gray-700); }
.page-btn:hover, .page-btn.active { background: var(--orange); color: white; border-color: var(--orange); }

/* ── Modals ──────────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 2000;
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
  opacity: 0; pointer-events: none;
  transition: opacity var(--transition);
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal {
  background: white;
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 540px;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(.95);
  transition: transform var(--transition);
}
.modal-overlay.open .modal { transform: scale(1); }
.modal-header { padding: 20px 24px 16px; border-bottom: 1px solid var(--gray-100); display: flex; align-items: center; justify-content: space-between; }
.modal-title { font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; }
.modal-close { background: var(--gray-100); border: none; border-radius: var(--radius-full); width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; font-size: 18px; cursor: pointer; color: var(--gray-700); }
.modal-body { padding: 24px; }
.modal-footer { padding: 16px 24px; border-top: 1px solid var(--gray-100); display: flex; gap: 10px; justify-content: flex-end; }

/* ── Alerts ──────────────────────────────────────────────── */
.alert { padding: 14px 18px; border-radius: var(--radius-md); font-size: 14px; font-weight: 500; display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.alert-success { background: var(--green-light); color: var(--green-dark); border-left: 4px solid var(--green); }
.alert-warning { background: var(--orange-light); color: var(--orange-deep); border-left: 4px solid var(--orange); }
.alert-danger { background: #FFF5F5; color: var(--red); border-left: 4px solid var(--red); }
.alert-info { background: #EBF8FF; color: var(--blue); border-left: 4px solid var(--blue); }

/* ── Toast Notifications ─────────────────────────────────── */
.toast-container { position: fixed; bottom: 24px; right: 24px; z-index: 9999; display: flex; flex-direction: column; gap: 10px; }
.toast {
  background: var(--gray-900);
  color: white;
  padding: 14px 20px;
  border-radius: var(--radius-lg);
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: var(--shadow-lg);
  animation: slideInToast .3s ease;
  max-width: 320px;
}
.toast.success { background: var(--green); }
.toast.error { background: var(--red); }
.toast.warning { background: var(--orange-dark); }
@keyframes slideInToast { from { opacity:0; transform: translateX(40px); } to { opacity:1; transform: translateX(0); } }

/* ── Footer ──────────────────────────────────────────────── */
.site-footer { background: var(--black); color: white; padding: 56px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-brand .logo { font-size: 2rem; margin-bottom: 12px; }
.footer-brand p { font-size: 13px; color: rgba(255,255,255,.6); line-height: 1.7; margin-bottom: 20px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 36px; height: 36px;
  border-radius: var(--radius-md);
  background: rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  transition: background var(--transition);
}
.footer-social a:hover { background: var(--orange); }

.footer-col h4 { font-family: var(--font-display); font-size: 14px; font-weight: 700; color: white; margin-bottom: 16px; text-transform: uppercase; letter-spacing: .5px; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { font-size: 13px; color: rgba(255,255,255,.6); transition: color var(--transition); }
.footer-col ul li a:hover { color: var(--orange); }

.footer-bottom { display: flex; align-items: center; justify-content: space-between; padding: 20px 0; font-size: 12px; color: rgba(255,255,255,.4); flex-wrap: wrap; gap: 10px; }
.footer-bottom a { color: rgba(255,255,255,.5); transition: color var(--transition); }
.footer-bottom a:hover { color: var(--orange); }
.footer-payments { display: flex; gap: 8px; font-size: 20px; }

/* ══════════════════════════════════════════════════════════
   BOTTOM NAV MOBILE — version définitive
══════════════════════════════════════════════════════════ */
.bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 800;
  background: #fff;
  border-top: 1px solid var(--gray-100);
  box-shadow: 0 -2px 10px rgba(0,0,0,.08);
}
.bottom-nav ul {
  display: flex;
  margin: 0;
  padding: 0;
  list-style: none;
  /* 5 items = chacun 20% de la largeur */
  width: 100%;
}
.bottom-nav ul li {
  flex: 1;
  min-width: 0;
}
.bottom-nav ul li a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 7px 2px 6px;
  gap: 2px;
  color: var(--gray-400);
  text-decoration: none;
  font-size: 10px;
  font-weight: 600;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  transition: color .15s;
  -webkit-tap-highlight-color: transparent;
}
.bottom-nav ul li a .icon {
  font-size: 22px;
  line-height: 1;
  display: block;
}
.bottom-nav ul li a.active,
.bottom-nav ul li a:active { color: var(--orange); }

/* ══════════════════════════════════════════════════════════
   WHATSAPP FLOTTANT — version définitive
══════════════════════════════════════════════════════════ */
.whatsapp-float-btn {
  position: fixed;
  right: 16px;
  bottom: 20px;
  width: 52px;
  height: 52px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  box-shadow: 0 4px 16px rgba(37,211,102,.45);
  cursor: pointer;
  z-index: 750;
  text-decoration: none;
  transition: transform .2s;
  -webkit-tap-highlight-color: transparent;
}
.whatsapp-float-btn:hover { transform: scale(1.08); }

/* ══════════════════════════════════════════════════════════
   RESPONSIVE — version définitive
══════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* Desktop : hamburger visible, bottom-nav et éléments mobiles cachés */
@media (min-width: 769px) {
  .hamburger          { display: flex; }
  .header-nav         { display: block; }
  .bottom-nav         { display: none !important; }
  .nav-dropdown       { display: none; }
}

/* ── Mobile ≤ 768px ── */
@media (max-width: 768px) {

  /* ① Masquer barre info + boutons d'action */
  .header-top     { display: none !important; }
  .header-actions { display: none !important; }

  /* Hamburger visible, nav cachée */
  .hamburger    { display: flex !important; }
  .header-nav   { display: none !important; }
  .nav-dropdown { display: none !important; }

  /* Header mobile : 2 lignes (colonne) */
  .header-main {
    padding: 8px 12px;
    gap: 6px;
    flex-direction: column;
    overflow: visible;
  }

  /* Ligne 1 : hamburger + logo */
  .header-row-1 {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
  }
  .logo       { font-size: 1.4rem; letter-spacing: 1px; flex: 1; }
  .logo small { display: none; }

  /* Ligne 2 : barre de recherche pleine largeur */
  .header-search {
    display: flex !important;
    width: 100%;
    max-width: 100%;
    border-radius: 8px;
    overflow: hidden;
    flex: unset;
  }
  .header-search select { display: none !important; }
  .header-search input  { font-size: 14px; padding: 10px 12px; }
  .header-search button { padding: 10px 14px; font-size: 13px; border-radius: 0 8px 8px 0; }

  /* Cacher la barre mobile secondaire (remplacée par header-search) */
  #mobileSearchBar { display: none !important; }
  .mobile-search-bar-visible { display: none !important; }

  /* Bottom nav */
  .bottom-nav { display: block; }
  body        { padding-bottom: 60px; }

  /* WhatsApp au-dessus du bottom-nav */
  .whatsapp-float-btn { bottom: 68px; right: 12px; width: 46px; height: 46px; font-size: 22px; }

  /* Sidebar */
  .sidebar-item       { font-size: 13px; padding: 10px 16px; }
  .sidebar-cat-toggle { font-size: 13px; padding: 10px 16px; }
  .sidebar-subitem    { font-size: 12px; padding: 8px 14px; }

  /* ③ Catégories : 3 colonnes → 9 items = 3 lignes parfaites */
  .cats-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    padding: 16px 0;
  }
  .cat-card  { padding: 14px 8px; }
  .cat-icon  { font-size: 28px; margin-bottom: 6px; }
  .cat-name  { font-size: 11px; font-weight: 700; line-height: 1.25; }
  .cat-count { display: none; }

  /* Grilles générales */
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .form-row      { grid-template-columns: 1fr; }
  .footer-grid   { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .filter-bar    { gap: 10px; }
  .filter-group  { min-width: 100%; }
}

/* ── Mobile ≤ 480px ── */
@media (max-width: 480px) {
  .header-main    { padding: 5px 8px; gap: 5px; }
  .logo           { font-size: 1.1rem; letter-spacing: 1px; }
  .logo small     { display: none; }
  .header-btn     { padding: 4px 6px; }
  .header-btn .icon { font-size: 14px; }
  .hamburger      { padding: 6px 7px; }
  .hamburger span { width: 18px; }

  /* Catégories 3 colonnes compactes */
  .cats-grid { grid-template-columns: repeat(3, 1fr); gap: 7px; }
  .cat-card  { padding: 10px 5px; }
  .cat-icon  { font-size: 24px; margin-bottom: 4px; }
  .cat-name  { font-size: 10px; }

  .hero-emoji { display: none; }
  .shops-grid { grid-template-columns: 1fr 1fr; }

  .bottom-nav ul li a       { padding: 6px 2px 5px; font-size: 9px; }
  .bottom-nav ul li a .icon { font-size: 20px; }

  .whatsapp-float-btn { bottom: 66px; right: 10px; width: 42px; height: 42px; font-size: 20px; }
}

/* Barre recherche mobile — visible uniquement sur mobile */
.mobile-search-bar-visible {
  display: none;
  background: #D97B10;
  padding: 8px 12px 10px;
}
@media (max-width: 768px) {
  .mobile-search-bar-visible { display: block !important; }
}

/* ── Breadcrumb ──────────────────────────────────────────── */
.breadcrumb { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--gray-500); padding: 12px 0; flex-wrap: wrap; }
.breadcrumb a { color: var(--orange); font-weight: 600; }
.breadcrumb span { color: var(--gray-300); }

/* ── Stock Indicator ─────────────────────────────────────── */
.stock-bar { margin: 8px 0; }
.stock-label { font-size: 11px; color: var(--gray-500); margin-bottom: 4px; display: flex; justify-content: space-between; }
.stock-track { height: 4px; background: var(--gray-100); border-radius: var(--radius-full); overflow: hidden; }
.stock-fill { height: 100%; border-radius: var(--radius-full); background: var(--green); }
.stock-fill.low { background: var(--orange); }
.stock-fill.critical { background: var(--red); }

/* ── Qty Selector ────────────────────────────────────────── */
.qty-selector { display: flex; align-items: center; border: 1.5px solid var(--gray-100); border-radius: var(--radius-md); overflow: hidden; width: fit-content; }
.qty-btn { background: var(--gray-50); border: none; width: 36px; height: 36px; font-size: 18px; cursor: pointer; color: var(--gray-700); transition: background var(--transition); display: flex; align-items: center; justify-content: center; }
.qty-btn:hover { background: var(--orange); color: white; }
.qty-input { width: 48px; border: none; text-align: center; font-size: 15px; font-weight: 700; outline: none; color: var(--gray-900); }

/* ── Tabs ────────────────────────────────────────────────── */
.tabs { display: flex; gap: 0; border-bottom: 2px solid var(--gray-100); margin-bottom: 20px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab-btn { padding: 10px 20px; font-size: 14px; font-weight: 600; color: var(--gray-500); background: none; border: none; border-bottom: 2px solid transparent; cursor: pointer; white-space: nowrap; transition: all var(--transition); margin-bottom: -2px; }
.tab-btn.active { color: var(--orange); border-bottom-color: var(--orange); }
.tab-btn:hover { color: var(--orange-dark); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ── PWA Install Banner ──────────────────────────────────── */
.pwa-banner {
  background: linear-gradient(135deg, var(--orange), var(--orange-dark));
  color: white;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-radius: var(--radius-lg);
  margin: 0 0 16px;
}
.pwa-banner .pwa-icon { font-size: 32px; }
.pwa-banner .pwa-text strong { font-size: 14px; font-weight: 700; display: block; }
.pwa-banner .pwa-text span { font-size: 12px; opacity: .85; }
.pwa-banner .pwa-actions { margin-left: auto; display: flex; gap: 8px; }
.pwa-install-btn { background: white; color: var(--orange-dark); border: none; border-radius: var(--radius-md); padding: 8px 16px; font-size: 12px; font-weight: 700; cursor: pointer; }
.pwa-dismiss-btn { background: rgba(255,255,255,.2); color: white; border: none; border-radius: var(--radius-md); padding: 8px 10px; font-size: 12px; cursor: pointer; }
@import url('header-fix.css');

