:root {
  --bs-primary: #FF9100;
  --bs-primary-rgb: 255, 145, 0;
  --bs-secondary: #404040;
  --bs-secondary-rgb: 64, 64, 64;
  --bs-success: #28a65a;
  --bs-warning: #e89b22;
  --bs-danger: #d64545;
  --bs-info: #3a6fd9;
  --bs-body-bg: #f8f8f8;
  --bs-body-color: #2e2e2e;
  --bs-border-color: #eeeeee;
  --bs-link-color: #FF9100;
  --bs-link-hover-color: #e68300;
  --md-orange: #FF9100;
  --md-orange-hover: #e68300;
  --md-orange-soft: #fff6eb;
  --md-dark: #404040;
  --md-muted: #8a8a8a;
  --md-shadow: 0 4px 18px rgba(64, 64, 64, .06);
  --bs-border-radius: .75rem;
  --bs-border-radius-lg: 1rem;
  --bs-border-radius-xl: 1.25rem;
}

body {
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: .9375rem;
  background: var(--bs-body-bg);
}

.btn-primary {
  --bs-btn-bg: var(--md-orange);
  --bs-btn-border-color: var(--md-orange);
  --bs-btn-hover-bg: var(--md-orange-hover);
  --bs-btn-hover-border-color: #d97a00;
  --bs-btn-active-bg: #d97a00;
  --bs-btn-active-border-color: #cc7200;
  --bs-btn-focus-shadow-rgb: 255, 145, 0;
}

.btn-outline-primary {
  --bs-btn-color: var(--md-orange);
  --bs-btn-border-color: var(--md-orange);
  --bs-btn-hover-bg: var(--md-orange);
  --bs-btn-hover-border-color: var(--md-orange);
  --bs-btn-active-bg: #d97a00;
  --bs-btn-active-border-color: #d97a00;
}

.btn-secondary {
  --bs-btn-bg: #fff;
  --bs-btn-border-color: var(--bs-border-color);
  --bs-btn-color: #575757;
  --bs-btn-hover-bg: #fafafa;
  --bs-btn-hover-border-color: #ddd;
  --bs-btn-hover-color: #333;
}

.text-primary { color: var(--md-orange) !important; }
.bg-primary { background-color: var(--md-orange) !important; }
.border-primary { border-color: var(--md-orange) !important; }

.form-control:focus, .form-select:focus {
  border-color: #ffc266;
  box-shadow: 0 0 0 .2rem rgba(255, 145, 0, .15);
}

.badge.bg-primary { background-color: var(--md-orange) !important; }

.nav-pills .nav-link.active {
  background-color: var(--md-orange);
}

.pagination .page-link { color: var(--md-orange); }
.pagination .page-item.active .page-link {
  background-color: var(--md-orange);
  border-color: var(--md-orange);
}

/* Layout */
.app-shell { display: flex; min-height: 100vh; }
.sidebar {
  position: fixed; inset: 0 auto 0 0; width: 260px; height: 100vh;
  overflow-y: auto; background: #fff; border-right: 1px solid var(--bs-border-color);
  padding: 18px 14px; z-index: 1040; display: flex; flex-direction: column; gap: 14px;
}
.main { margin-left: 260px; width: calc(100% - 260px); min-height: 100vh; padding: 18px 22px 28px; }

.brand-logo { width: 148px; max-height: 62px; object-fit: contain; display: block; margin-bottom: 10px; }
.brand-kicker {
  display: inline-flex; align-items: center; gap: 6px; background: var(--md-orange-soft);
  color: var(--md-orange); border: 1px solid #ffe0b8; border-radius: 999px;
  padding: 4px 9px; font-size: .7rem; font-weight: 600;
}
.brand-title { margin-top: 8px; font-size: .92rem; font-weight: 650; color: var(--md-dark); }
.brand-subtitle { margin-top: 3px; font-size: .76rem; color: var(--md-muted); }

.nav-section-title {
  margin: 6px 8px 5px; color: #b0b0b0; text-transform: uppercase;
  letter-spacing: .07em; font-size: .64rem; font-weight: 600;
}
.side-nav { display: grid; gap: 2px; }
.side-link {
  color: #626; text-decoration: none; display: flex; align-items: center; gap: 9px;
  padding: 8px 10px; border-radius: 11px; font-weight: 450; font-size: .86rem; transition: .15s;
}
.side-link i { width: 17px; text-align: center; color: #9a9a9a; font-size: .88rem; }
.side-link:hover { background: #fafafa; color: var(--md-dark); }
.side-link.active { background: var(--md-orange-soft); color: var(--md-orange); font-weight: 650; }
.side-link.active i { color: var(--md-orange); }

.cat-link {
  display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 10px;
  text-decoration: none; color: #555; font-size: .82rem; font-weight: 500;
}
.cat-link:hover { background: #fafafa; color: var(--md-dark); }
.cat-link .count { margin-left: auto; font-size: .7rem; color: #aaa; }

.topbar {
  background: #fff; border: 1px solid var(--bs-border-color); border-radius: 18px;
  padding: 10px 12px; display: flex; align-items: center; gap: 10px;
  position: sticky; top: 12px; z-index: 1030; box-shadow: var(--md-shadow);
}
.search-wrap { position: relative; flex: 1; }
.search-wrap i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: #aaa; font-size: .86rem; }
.search-input {
  width: 100%; border: 1px solid var(--bs-border-color); background: #fbfbfb;
  border-radius: 12px; padding: 9px 12px 9px 36px; outline: none; font-size: .86rem;
}
.top-action {
  width: 38px; height: 38px; border-radius: 12px; border: 1px solid var(--bs-border-color);
  background: #fff; display: grid; place-items: center; color: #6c6c6c; position: relative;
  text-decoration: none; font-size: .88rem;
}
.top-action .badge-count {
  position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px;
  background: var(--md-orange); color: #fff; border-radius: 999px; font-size: .62rem;
  font-weight: 700; display: grid; place-items: center; padding: 0 4px; border: 2px solid #fff;
}
.user-chip {
  display: flex; align-items: center; gap: 8px; border-left: 1px solid var(--bs-border-color);
  padding-left: 12px; min-width: 0; margin-left: auto;
}
.avatar {
  width: 36px; height: 36px; border-radius: 11px; background: var(--md-orange-soft);
  color: var(--md-orange); display: grid; place-items: center; font-weight: 700; font-size: .78rem; flex-shrink: 0;
}
.user-name { font-weight: 650; line-height: 1.1; font-size: .84rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-role { font-size: .7rem; color: var(--md-muted); }

.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin: 20px 2px 16px; flex-wrap: wrap; }
.breadcrumb-light { display: flex; gap: 6px; align-items: center; color: var(--md-muted); font-size: .76rem; margin-bottom: 6px; flex-wrap: wrap; }
.page-title { margin: 0; font-size: 1.75rem; line-height: 1.1; font-weight: 650; letter-spacing: -.02em; color: #232; }
.page-intro { margin: 6px 0 0; max-width: 720px; color: #777; font-size: .9rem; line-height: 1.5; }

.panel {
  background: #fff; border: 1px solid var(--bs-border-color); border-radius: 18px;
  padding: 16px; box-shadow: var(--md-shadow);
}
.panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.panel-title { font-size: .98rem; font-weight: 650; color: #252; margin: 0; }

.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.kpi-card {
  background: #fff; border: 1px solid var(--bs-border-color); border-radius: 16px;
  padding: 14px; box-shadow: var(--md-shadow);
}
.kpi-label { color: var(--md-muted); font-size: .74rem; font-weight: 500; }
.kpi-value { font-size: 1.4rem; font-weight: 650; color: #222; letter-spacing: -.02em; }

/* Produits */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.product-card {
  background: #fff; border: 1px solid var(--bs-border-color); border-radius: 16px;
  overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .15s, transform .15s;
  position: relative;
}
.product-card:hover { box-shadow: var(--md-shadow); transform: translateY(-1px); }
.product-card .img-wrap { position: relative; background: #f4f4f4; aspect-ratio: 1; }
.product-card img { width: 100%; height: 100%; object-fit: contain; padding: 10px; }
.product-card-body { padding: 10px 12px 12px; display: flex; flex-direction: column; flex: 1; gap: 4px; }
.product-ref { font-size: .68rem; color: #aaa; font-weight: 600; letter-spacing: .03em; }
.product-name { font-size: .8rem; font-weight: 600; color: #2b2b2b; margin: 0; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.product-meta { font-size: .7rem; color: #888; }
.product-price { font-size: .92rem; font-weight: 700; color: var(--md-dark); }
.product-price-old { font-size: .74rem; color: #aaa; text-decoration: line-through; font-weight: 500; }
.product-uv { font-size: .68rem; color: var(--md-orange); font-weight: 600; }
.product-supplier {
  font-size: .68rem; color: var(--md-orange); font-weight: 600;
  display: flex; align-items: center; gap: 4px; margin-top: 2px;
}
.product-supplier:hover { color: var(--md-orange-hover); }

.supplier-search-wrap { position: relative; margin: 0 4px 8px; }
.supplier-search-wrap i {
  position: absolute; left: 10px; top: 50%; transform: translateY(-50%);
  color: #aaa; font-size: .75rem; pointer-events: none;
}
.supplier-search-input {
  width: 100%; border: 1px solid var(--bs-border-color); background: #fbfbfb;
  border-radius: 10px; padding: 7px 10px 7px 30px; outline: none; font-size: .78rem;
}
.supplier-search-input:focus { border-color: #ffc266; box-shadow: 0 0 0 .15rem rgba(255, 145, 0, .12); }
.supplier-nav { max-height: 200px; overflow-y: auto; overflow-x: hidden; }
.supplier-link .supplier-name {
  white-space: nowrap;width:130px; overflow: hidden; text-overflow: ellipsis; flex: 1; min-width: 0;
}
.supplier-link.active-supplier { background: var(--md-orange-soft); color: var(--md-orange); font-weight: 650; }
.top-action-logout { flex-shrink: 0; }
.top-action-logout:hover { color: var(--md-danger); border-color: #f5c2c2; background: #fff5f5; }

/* Mes fournisseurs (accueil) */
.fournisseur-favoris-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px;
}
.fournisseur-accueil-grid {
  grid-template-columns: repeat(6, 1fr);
}
.fournisseur-favori-card {
  display: block; text-decoration: none; color: inherit;
  border: 1px solid var(--bs-border-color); border-radius: 16px; padding: 14px;
  background: #fff; transition: transform .15s, box-shadow .15s;
  min-height: 100%;
}
.fournisseur-favori-card:hover { transform: translateY(-2px); box-shadow: var(--md-shadow); color: inherit; }
.fournisseur-favori-head {
  display: flex; align-items: flex-start; gap: 10px; margin-bottom: 10px;
}
.fournisseur-favori-head > div { min-width: 0; flex: 1; }
.fournisseur-favori-head > i {
  width: 36px; height: 36px; border-radius: 10px; background: var(--md-orange-soft);
  color: var(--md-orange); display: grid; place-items: center; font-size: .9rem; flex-shrink: 0;
}
.fournisseur-favori-photo {
  width: 36px; height: 36px; border-radius: 10px; object-fit: cover; flex-shrink: 0;
  border: 1px solid rgba(0,0,0,.08); background: #fff;
}
.fournisseur-page-photo {
  width: 48px; height: 48px; border-radius: 12px; object-fit: cover;
  border: 1px solid rgba(0,0,0,.08); background: #fff;
}
.fournisseur-favori-nom {
  font-weight: 650; font-size: .9rem; line-height: 1.2; color: #232;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.fournisseur-accueil-grid .fournisseur-favori-head > i { display: none; }
.fournisseur-accueil-grid .fournisseur-favori-head { gap: 0; padding-right: 30px; }
.fournisseur-favori-code { font-size: .72rem; color: var(--md-muted); margin-top: 2px; }
.fournisseur-favori-familles {
  list-style: none; margin: 0; padding: 0; display: grid; gap: 4px;
  border-top: 1px solid #f0f0f0; padding-top: 10px;
}
.fournisseur-favori-familles li {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  font-size: .76rem; color: #555;
}
.fournisseur-favori-familles .badge { font-size: .68rem; font-weight: 600; }
.fournisseur-favori-card.mes-fournisseur { border-color: #ffc266; background: linear-gradient(180deg, #fffaf3 0%, #fff 40%); }

.favori-card-wrap {
  position: relative; padding: 0; overflow: hidden;
}
.favori-card-wrap:hover { transform: translateY(-2px); box-shadow: var(--md-shadow); }
.favori-card-wrap.fournisseur-favori-card { padding: 0; }
.fournisseur-favori-card-link {
  display: block; text-decoration: none; color: inherit; padding: 14px;
}
.fournisseur-favori-card-link:hover { color: inherit; }
.fav-btn-card {
  position: absolute; top: 10px; right: 10px; z-index: 3;
  width: 32px; height: 32px; border: 1px solid var(--bs-border-color);
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
}
.fav-btn-page {
  position: static; width: 40px; height: 40px; font-size: 1rem;
  border: 1px solid var(--bs-border-color); flex-shrink: 0;
}

/* Bloc « Voir tous les fournisseurs » */
.fournisseur-voir-tous-card {
  border: none;
  background: linear-gradient(145deg, var(--md-orange) 0%, var(--md-orange-hover) 100%);
  color: #fff;
}
.fournisseur-voir-tous-card:hover {
  color: #fff;
  box-shadow: 0 8px 24px rgba(255, 145, 0, .35);
}
.fournisseur-voir-tous-head {
  display: flex; align-items: flex-start; gap: 10px; margin-bottom: 10px;
}
.fournisseur-voir-tous-head > i {
  width: 36px; height: 36px; border-radius: 10px; background: rgba(255, 255, 255, .2);
  color: #fff; display: grid; place-items: center; font-size: .9rem; flex-shrink: 0;
}
.fournisseur-voir-tous-titre { font-weight: 700; font-size: .92rem; line-height: 1.25; color: #fff; }
.fournisseur-voir-tous-total { font-size: .72rem; color: rgba(255, 255, 255, .85); margin-top: 3px; }
.fournisseur-voir-tous-familles { border-top-color: rgba(255, 255, 255, .25); }
.fournisseur-voir-tous-familles li { color: rgba(255, 255, 255, .92); }
.fournisseur-voir-tous-familles .badge {
  background: rgba(255, 255, 255, .22); color: #fff; border: none;
}
.fournisseur-voir-tous-autres { color: rgba(255, 255, 255, .75) !important; font-style: italic; }

/* Page fournisseurs */
.fournisseurs-page-search {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap; position: relative;
}
.fournisseurs-page-search > i {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  color: #aaa; font-size: .86rem; pointer-events: none;
}
.fournisseurs-page-search input {
  flex: 1; min-width: 200px; padding-left: 36px; border-radius: 12px;
}

/* Slider publicités — 1 / 2 / 3 colonnes selon la largeur */
.pub-slider {
  --pub-visible: 1;
  --pub-gap: 12px;
  position: relative; border-radius: 18px; overflow: hidden;
  background: transparent; border: 0; box-shadow: none;
  min-height: 180px;
}
@media (min-width: 768px) {
  .pub-slider { --pub-visible: 2; }
}
@media (min-width: 1200px) {
  .pub-slider { --pub-visible: 3; }
}
.pub-slider-track {
  display: flex; gap: var(--pub-gap); width: 100%;
  min-height: 180px; transition: transform .4s ease;
}
.pub-slide {
  flex: 0 0 calc((100% - (var(--pub-visible) - 1) * var(--pub-gap)) / var(--pub-visible));
  min-width: 0;
  border-radius: 18px; overflow: hidden;
  background: linear-gradient(120deg, var(--slide-accent, #FF9100), #404040);
  padding: 24px 28px; display: flex; align-items: center;
  box-shadow: var(--md-shadow); border: 1px solid var(--bs-border-color);
}
.pub-slide-content { color: #fff; max-width: 100%; }
.pub-slide-tag {
  display: inline-block; background: rgba(255,255,255,.2); border-radius: 999px;
  padding: 3px 10px; font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
}
.pub-slide-title { font-size: 1.25rem; font-weight: 700; margin: 10px 0 6px; letter-spacing: -.02em; }
.pub-slide-text { font-size: .85rem; opacity: .92; margin-bottom: 14px; }
@media (min-width: 1200px) {
  .pub-slide { padding: 22px 20px; }
  .pub-slide-title { font-size: 1.1rem; }
  .pub-slide-text { font-size: .8rem; }
}
.pub-slider-dots {
  position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 6px; z-index: 2;
}
.pub-slider.is-static .pub-slider-dots,
.pub-slider.is-static .pub-slider-btn { display: none; }
.pub-dot {
  width: 8px; height: 8px; border-radius: 50%; border: 0;
  background: rgba(64,64,64,.35); padding: 0; box-shadow: 0 0 0 2px rgba(255,255,255,.7);
}
.pub-dot.active { background: var(--md-orange); transform: scale(1.15); }
.pub-slider-btn {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 34px; height: 34px; border-radius: 50%; border: 0;
  background: rgba(255,255,255,.92); color: #444; display: grid; place-items: center;
  box-shadow: 0 2px 10px rgba(0,0,0,.12);
}
.pub-slider-btn:hover { background: #fff; color: var(--md-orange); }
.pub-prev { left: 8px; }
.pub-next { right: 8px; }

.promo-badge {
  position: absolute; top: 8px; left: 8px; background: var(--md-danger); color: #fff;
  font-size: .65rem; font-weight: 700; padding: 3px 7px; border-radius: 999px; z-index: 2;
}
.phare-badge {
  position: absolute; top: 8px; right: 8px; background: var(--md-warning); color: #fff;
  font-size: .62rem; font-weight: 700; padding: 3px 6px; border-radius: 999px; z-index: 2;
}
.rupture-badge {
  position: absolute; inset: 0; background: rgba(255,255,255,.7); display: grid; place-items: center;
  font-weight: 700; color: var(--md-danger); font-size: .8rem; z-index: 3;
}

.qty-control {
  display: flex; align-items: center; gap: 0; border: 1px solid var(--bs-border-color);
  border-radius: 10px; overflow: hidden; background: #fafafa;
}
.qty-control button {
  width: 30px; height: 30px; border: 0; background: #fff; color: #666; font-weight: 700; font-size: .9rem;
}
.qty-control button:hover { background: var(--md-orange-soft); color: var(--md-orange); }
.qty-control input {
  width: 42px; border: 0; text-align: center; font-weight: 650; font-size: .84rem; background: transparent; outline: none;
}

.fav-btn {
  position: absolute; top: 8px; right: 8px; width: 30px; height: 30px; border-radius: 50%;
  border: 0; background: rgba(255,255,255,.9); display: grid; place-items: center;
  font-size: .82rem; z-index: 2; cursor: pointer;
  -webkit-text-fill-color: currentColor;
}
.fav-btn .fav-heart-icon {
  color: #e57373 !important;
  --fa-primary-color: #e57373;
  --fa-secondary-color: #e57373;
}
.fav-btn .fav-heart-icon::before {
  color: #e57373 !important;
}
.fav-btn:hover .fav-heart-icon,
.fav-btn:hover .fav-heart-icon::before {
  color: #d64545 !important;
  --fa-primary-color: #d64545;
  --fa-secondary-color: #d64545;
}
.fav-btn.active .fav-heart-icon,
.fav-btn.active .fav-heart-icon::before,
.fav-btn .fav-heart-icon.is-on,
.fav-btn .fav-heart-icon.is-on::before,
.fav-btn .fav-heart-icon.fa-solid,
.fav-btn .fav-heart-icon.fa-solid::before {
  color: #d64545 !important;
  --fa-primary-color: #d64545;
  --fa-secondary-color: #d64545;
}

/* Table produits (vue liste) */
.table-products th { font-size: .7rem; text-transform: uppercase; letter-spacing: .04em; color: #999; font-weight: 600; }
.table-products td { vertical-align: middle; font-size: .84rem; }
.table-products .prod-thumb { width: 48px; height: 48px; object-fit: contain; border-radius: 8px; background: #f4f4f4; }

/* Familles */
.famille-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.famille-card {
  border-radius: 16px; overflow: hidden; border: 1px solid var(--bs-border-color);
  text-decoration: none; color: inherit; background: #fff; transition: transform .15s, box-shadow .15s;
}
.famille-card:hover { transform: translateY(-2px); box-shadow: var(--md-shadow); color: inherit; }
.famille-card img { width: 100%; height: 110px; object-fit: cover; }
.famille-card .label { padding: 10px 12px; font-weight: 650; font-size: .86rem; }

/* Panier */
.cart-summary {
  position: sticky; top: 80px; background: #fff; border: 1px solid var(--bs-border-color);
  border-radius: 18px; padding: 16px; box-shadow: var(--md-shadow);
}
.cart-line { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid #f2f2f2; }
.cart-line img { width: 56px; height: 56px; object-fit: contain; border-radius: 10px; background: #f4f4f4; flex-shrink: 0; }

/* Commande timeline */
.timeline { display: grid; gap: 0; }
.timeline-step {
  display: flex; gap: 12px; padding-bottom: 20px; position: relative;
}
.timeline-step::before {
  content: ''; position: absolute; left: 14px; top: 28px; bottom: 0; width: 2px; background: #eee;
}
.timeline-step:last-child::before { display: none; }
.timeline-dot {
  width: 30px; height: 30px; border-radius: 50%; background: #eee; color: #aaa;
  display: grid; place-items: center; font-size: .75rem; flex-shrink: 0; z-index: 1;
}
.timeline-step.done .timeline-dot { background: var(--md-success); color: #fff; }
.timeline-step.current .timeline-dot { background: var(--md-orange); color: #fff; box-shadow: 0 0 0 4px var(--md-orange-soft); }

.commercial-banner {
  background: #fff; border: 1px solid var(--bs-border-color); border-left: 4px solid var(--md-orange);
  border-radius: 16px; padding: 14px 16px; display: flex; align-items: center; justify-content: space-between;
  gap: 14px; box-shadow: var(--md-shadow); flex-wrap: wrap;
}

.filter-pills { display: flex; gap: 6px; flex-wrap: wrap; }
.pill {
  border: 1px solid var(--bs-border-color); background: #fff; border-radius: 999px;
  padding: 5px 10px; font-size: .74rem; font-weight: 500; color: #777; text-decoration: none;
}
.pill.active, .pill:hover { background: var(--md-dark); color: #fff; border-color: var(--md-dark); }

.status-badge {
  display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; border-radius: 999px;
  font-size: .72rem; font-weight: 600;
}
.status-badge.prep { background: #fff7e8; color: #b97710; }
.status-badge.ship { background: #edf3ff; color: var(--bs-info); }
.status-badge.done { background: #edf9f1; color: var(--bs-success); }

.view-toggle .btn { padding: 5px 10px; font-size: .8rem; }

@media (max-width: 1200px) {
  .fournisseur-accueil-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 992px) {
  .sidebar { position: relative; width: 100%; height: auto; max-height: 60vh; }
  .app-shell { display: block; }
  .main { margin-left: 0; width: 100%; padding: 14px; }
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .topbar { position: relative; top: 0; flex-wrap: wrap; }
  .user-chip { border-left: 0; padding-left: 0; margin-left: 0; }
}

@media (max-width: 576px) {
  .kpi-grid { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .fournisseur-accueil-grid { grid-template-columns: repeat(2, 1fr); }
}
