/* ==========================================================
   Open Parts / AutoCat — Design System (Frontend Public)
   Palette : Tons clairs, accent rouge TREM #C30013
   ========================================================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ── Variables ── */
:root {
  --brand:        #C30013;
  --brand-dark:   #9a000f;
  --brand-light:  #fff0f1;
  --dark:         #1a1a2e;
  --text:         #2d2d3a;
  --text-muted:   #6b7280;
  --bg:           #ffffff;
  --bg-soft:      #f8f9fa;
  --bg-card:      #ffffff;
  --border:       #e5e7eb;
  --border-light: #f3f4f6;
  --success:      #059669;
  --warning:      #d97706;
  --info:         #2563eb;
  --radius:       10px;
  --radius-sm:    6px;
  --radius-lg:    16px;
  --shadow-sm:    0 1px 3px rgba(0,0,0,.08);
  --shadow:       0 4px 16px rgba(0,0,0,.10);
  --shadow-lg:    0 8px 32px rgba(0,0,0,.14);
  --transition:   all .18s ease;
  --max-width:    1280px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg-soft);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; font-family: inherit; }
input, select, textarea { font-family: inherit; }

/* ── Container ── */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}
@media (min-width: 768px) { .container { padding: 0 32px; } }

/* ═══════════════════════════════════════════════════════
   TOPBAR — bande d'information en haut
   ═══════════════════════════════════════════════════════ */
.topbar {
  background: var(--dark);
  color: #9ca3af;
  font-size: .78rem;
  padding: 6px 0;
}
.topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.topbar a { color: #9ca3af; transition: var(--transition); }
.topbar a:hover { color: #fff; }
.topbar-left, .topbar-right { display: flex; align-items: center; gap: 16px; }
.topbar-item { display: flex; align-items: center; gap: 5px; }

/* ═══════════════════════════════════════════════════════
   NAVBAR
   ═══════════════════════════════════════════════════════ */
.navbar {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: var(--shadow-sm);
}
.navbar .container {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 68px;
}
.navbar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.navbar-brand img { height: 42px; width: auto; }
.navbar-brand-text { display: flex; flex-direction: column; }
.navbar-brand-name {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--dark);
  letter-spacing: -.02em;
  line-height: 1;
}
.navbar-brand-name span { color: var(--brand); }
.navbar-brand-sub {
  font-size: .68rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-top: 2px;
}

.navbar-search {
  flex: 1;
  max-width: 480px;
}
.search-form {
  display: flex;
  background: var(--bg-soft);
  border: 1.5px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
  transition: var(--transition);
}
.search-form:focus-within {
  border-color: var(--brand);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(195,0,19,.08);
}
.search-form input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 10px 16px;
  font-size: .875rem;
  outline: none;
  color: var(--text);
}
.search-form input::placeholder { color: var(--text-muted); }
.search-form button {
  background: var(--brand);
  color: #fff;
  border: none;
  padding: 0 18px;
  font-size: .875rem;
  font-weight: 600;
  transition: var(--transition);
  border-radius: 0 999px 999px 0;
}
.search-form button:hover { background: var(--brand-dark); }

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}
.nav-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius);
  font-size: .85rem;
  font-weight: 500;
  transition: var(--transition);
  border: none;
  background: transparent;
  color: var(--text);
}
.nav-btn:hover { background: var(--bg-soft); color: var(--brand); }
.nav-btn-primary {
  background: var(--brand);
  color: #fff !important;
  padding: 8px 20px;
}
.nav-btn-primary:hover { background: var(--brand-dark) !important; }
.nav-btn svg { width: 18px; height: 18px; flex-shrink: 0; }

.cart-badge {
  background: var(--brand);
  color: #fff;
  font-size: .65rem;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Mobile menu toggle */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}

/* ═══════════════════════════════════════════════════════
   CATEGORY NAV BAR (sous la navbar)
   ═══════════════════════════════════════════════════════ */
.cat-nav {
  background: var(--bg);
  border-bottom: 1px solid var(--border-light);
}
.cat-nav .container {
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.cat-nav::-webkit-scrollbar { display: none; }
.cat-nav-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  font-size: .82rem;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: var(--transition);
  cursor: pointer;
  text-decoration: none;
}
.cat-nav-item img { width: 22px; height: 22px; object-fit: contain; border-radius: 4px; }
.cat-nav-item:hover, .cat-nav-item.active {
  color: var(--brand);
  border-bottom-color: var(--brand);
}

/* ═══════════════════════════════════════════════════════
   HERO BANNER
   ═══════════════════════════════════════════════════════ */
.hero {
  background: linear-gradient(135deg, var(--dark) 0%, #2d1b2e 50%, #1a1a2e 100%);
  padding: 60px 0;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(195,0,19,.15) 0%, transparent 70%);
  pointer-events: none;
}
.hero .container {
  display: flex;
  align-items: center;
  gap: 48px;
}
.hero-text { flex: 1; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(195,0,19,.2);
  color: #ff6b7a;
  border: 1px solid rgba(195,0,19,.3);
  padding: 4px 12px;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  letter-spacing: -.02em;
  margin-bottom: 14px;
}
.hero h1 span { color: var(--brand); }
.hero p {
  color: #9ca3af;
  font-size: 1.05rem;
  max-width: 480px;
  margin-bottom: 28px;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-hero {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--radius);
  font-size: .95rem;
  font-weight: 600;
  transition: var(--transition);
  border: 2px solid transparent;
}
.btn-hero-primary {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}
.btn-hero-primary:hover {
  background: var(--brand-dark);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(195,0,19,.35);
}
.btn-hero-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.3);
}
.btn-hero-outline:hover {
  border-color: #fff;
  background: rgba(255,255,255,.08);
}
.hero-image { flex-shrink: 0; max-width: 400px; width: 100%; }
.hero-stats {
  display: flex;
  gap: 32px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.1);
}
.hero-stat .num {
  font-size: 1.6rem;
  font-weight: 800;
  color: #fff;
}
.hero-stat .lbl {
  font-size: .75rem;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: .05em;
}

/* ═══════════════════════════════════════════════════════
   BREADCRUMB
   ═══════════════════════════════════════════════════════ */
.breadcrumb {
  padding: 12px 0;
  font-size: .82rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--text-muted); transition: var(--transition); }
.breadcrumb a:hover { color: var(--brand); }
.breadcrumb .sep { color: var(--border); }
.breadcrumb .current { color: var(--text); font-weight: 500; }

/* ═══════════════════════════════════════════════════════
   SECTION TITLES
   ═══════════════════════════════════════════════════════ */
.section { padding: 40px 0; }
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  gap: 12px;
  flex-wrap: wrap;
}
.section-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--dark);
  letter-spacing: -.01em;
  display: flex;
  align-items: center;
  gap: 8px;
}
.section-title::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 22px;
  background: var(--brand);
  border-radius: 2px;
}
.section-link {
  font-size: .82rem;
  font-weight: 500;
  color: var(--brand);
  display: flex;
  align-items: center;
  gap: 4px;
}
.section-link:hover { text-decoration: underline; }

/* ═══════════════════════════════════════════════════════
   CATEGORY GRID
   ═══════════════════════════════════════════════════════ */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
}
.cat-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 12px;
  text-align: center;
  transition: var(--transition);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.cat-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--brand-light), transparent);
  opacity: 0;
  transition: var(--transition);
}
.cat-card:hover {
  border-color: var(--brand);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.cat-card:hover::before { opacity: 1; }
.cat-card img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  margin: 0 auto 10px;
  position: relative;
}
.cat-card-name {
  font-size: .8rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
  position: relative;
}

/* ═══════════════════════════════════════════════════════
   PRODUCT GRID
   ═══════════════════════════════════════════════════════ */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}
.product-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
.product-card:hover {
  border-color: var(--brand);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.product-card-image {
  background: var(--bg-soft);
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  position: relative;
  overflow: hidden;
}
.product-card-image img {
  max-height: 120px;
  max-width: 100%;
  object-fit: contain;
  transition: transform .3s ease;
}
.product-card:hover .product-card-image img { transform: scale(1.05); }
.product-card-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--brand);
  color: #fff;
  font-size: .65rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.product-card-badge.new { background: var(--success); }
.product-card-badge.promo { background: var(--warning); }
.product-card-body { padding: 14px; flex: 1; display: flex; flex-direction: column; }
.product-ref {
  font-size: .72rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 4px;
  letter-spacing: .03em;
}
.product-name {
  font-size: .88rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.35;
  margin-bottom: 8px;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-price-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-top: auto;
}
.product-price {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--brand);
}
.product-price-tax {
  font-size: .72rem;
  color: var(--text-muted);
}
.product-stock {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: .72rem;
  font-weight: 500;
  margin-top: 6px;
}
.stock-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}
.stock-in { background: var(--success); }
.stock-out { background: #dc2626; }
.stock-low { background: var(--warning); }
.product-card-footer {
  padding: 0 14px 14px;
  display: flex;
  gap: 8px;
}
.btn-add-cart {
  flex: 1;
  background: var(--brand);
  color: #fff;
  border: none;
  padding: 9px;
  border-radius: var(--radius-sm);
  font-size: .82rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: var(--transition);
}
.btn-add-cart:hover { background: var(--brand-dark); }
.btn-detail {
  background: var(--bg-soft);
  color: var(--text);
  border: 1.5px solid var(--border);
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  font-size: .82rem;
  font-weight: 500;
  transition: var(--transition);
}
.btn-detail:hover { border-color: var(--brand); color: var(--brand); }

/* ═══════════════════════════════════════════════════════
   PAGE LAYOUT (sidebar + content)
   ═══════════════════════════════════════════════════════ */
.page-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 24px;
  align-items: flex-start;
}
.sidebar {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  position: sticky;
  top: 80px;
}
.sidebar-title {
  padding: 14px 18px;
  font-size: .8rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .08em;
  border-bottom: 1px solid var(--border);
  background: var(--bg-soft);
}
.sidebar-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 18px;
  font-size: .85rem;
  font-weight: 500;
  color: var(--text);
  border-bottom: 1px solid var(--border-light);
  transition: var(--transition);
  cursor: pointer;
}
.sidebar-item:hover, .sidebar-item.active {
  background: var(--brand-light);
  color: var(--brand);
}
.sidebar-item img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  border-radius: 4px;
}
.sidebar-count {
  margin-left: auto;
  background: var(--bg-soft);
  color: var(--text-muted);
  font-size: .7rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
}

/* ═══════════════════════════════════════════════════════
   PRODUCT DETAIL PAGE
   ═══════════════════════════════════════════════════════ */
.product-detail {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.product-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}
.product-detail-gallery {
  background: var(--bg-soft);
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: 1px solid var(--border);
}
.product-detail-gallery img { max-height: 300px; object-fit: contain; }
.product-detail-info { padding: 36px; }
.product-detail-info h1 {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 8px;
}
.product-detail-ref {
  font-size: .85rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.price-block {
  background: var(--bg-soft);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 20px;
}
.price-ht { font-size: 2rem; font-weight: 800; color: var(--brand); }
.price-label { font-size: .78rem; color: var(--text-muted); margin-bottom: 4px; }
.price-ttc { font-size: 1rem; color: var(--text-muted); margin-top: 4px; }

/* ═══════════════════════════════════════════════════════
   LOGIN MODAL / CARD
   ═══════════════════════════════════════════════════════ */
.login-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  max-width: 420px;
  margin: 0 auto;
  box-shadow: var(--shadow-lg);
}
.login-card h2 {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 6px;
}
.login-card p { color: var(--text-muted); font-size: .88rem; margin-bottom: 24px; }
.form-group { margin-bottom: 16px; }
.form-label {
  display: block;
  font-size: .82rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}
.form-input {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: .9rem;
  color: var(--text);
  background: var(--bg);
  transition: var(--transition);
  outline: none;
}
.form-input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(195,0,19,.08);
}
.btn-login {
  width: 100%;
  padding: 13px;
  background: var(--brand);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-size: .95rem;
  font-weight: 700;
  transition: var(--transition);
  margin-top: 8px;
}
.btn-login:hover {
  background: var(--brand-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(195,0,19,.3);
}
.login-footer { margin-top: 16px; text-align: center; font-size: .82rem; color: var(--text-muted); }
.login-footer a { color: var(--brand); font-weight: 500; }
.alert-box {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: .85rem;
  margin-bottom: 16px;
}
.alert-error { background: #fef2f2; border: 1px solid #fecaca; color: #dc2626; }
.alert-success { background: #f0fdf4; border: 1px solid #bbf7d0; color: #059669; }

/* ═══════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════ */
.footer {
  background: var(--dark);
  color: #9ca3af;
  padding: 48px 0 24px;
  margin-top: 60px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand .logo { margin-bottom: 14px; }
.footer-brand p { font-size: .85rem; line-height: 1.7; max-width: 280px; color: #9ca3af; }
.footer-col h4 {
  color: #fff;
  font-size: .85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 14px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 8px; }
.footer-col ul li a {
  font-size: .85rem;
  color: #9ca3af;
  transition: var(--transition);
}
.footer-col ul li a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: .78rem;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom a { color: #9ca3af; }
.footer-bottom a:hover { color: #fff; }

/* ═══════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero .container { flex-direction: column; }
  .hero-image { display: none; }
  .page-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
}

@media (max-width: 768px) {
  /* Modal login : forcer centrage correct sur viewport mobile */
  #login-modal {
    width: 100vw !important;
    left: 0 !important;
    right: 0 !important;
    padding: 16px !important;
    box-sizing: border-box !important;
  }

  /* Topbar : masquer complètement sur mobile */
  .topbar { display: none !important; }

  /* Navbar : hauteur réduite, pas de débordement */
  .navbar .container {
    height: 52px;
    gap: 8px;
    overflow: hidden;
    flex-wrap: nowrap;
  }

  /* Logo : réduire + autoriser la réduction */
  .navbar-brand {
    gap: 6px;
    flex-shrink: 1;
    min-width: 0;
    overflow: hidden;
  }
  .navbar-brand img { height: 26px; flex-shrink: 0; }

  /* Sous-titre marque : masquer (trop long) */
  .navbar-brand-sub { display: none !important; }

  /* Nom marque : taille réduite + tronqué si nécessaire */
  .navbar-brand-name {
    font-size: .9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 120px;
  }

  /* Recherche desktop : cachée */
  .navbar-search { display: none !important; }

  /* Actions : pas de retour à la ligne, compactes */
  .navbar-actions {
    flex-shrink: 0;
    gap: 4px;
    margin-left: auto;
  }

  /* Boutons nav non-primaires : masqués */
  .navbar-actions .nav-btn:not(.nav-btn-primary) { display: none !important; }

  /* Bouton Espace client : plus compact */
  .navbar-actions .nav-btn-primary {
    padding: 8px 12px;
    font-size: .8rem;
  }

  /* Hamburger : visible */
  .hamburger { display: flex; }

  /* Grilles et layout */
  .product-detail-grid { grid-template-columns: 1fr; }
  .product-detail-gallery { border-right: none; border-bottom: 1px solid var(--border); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 480px) {
  /* Très petit écran : masquer le nom de marque, ne garder que le logo */
  .navbar-brand-name { display: none; }
  .navbar-brand img { height: 32px; }

  .product-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 1.6rem; }
  .hero-stats { gap: 20px; }
  .hero-actions { flex-direction: column; }
  .login-card { padding: 24px; margin: 0 16px; }
}

/* ═══════════════════════════════════════════════════════
   UTILITIES
   ═══════════════════════════════════════════════════════ */
.text-brand { color: var(--brand); }
.text-muted { color: var(--text-muted); }
.font-bold { font-weight: 700; }
.sr-only { position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0; }
.no-scroll { overflow: hidden; }

  /* Logo Footer */
  .footer-logo {
    height: 44px;
    width: auto;
    border-radius: 8px;
    background: rgba(255,255,255,0.92);
    padding: 5px 10px;
    display: block;
    object-fit: contain;
  }

  /* Prix sur demande */
  .price-on-demand { color: var(--text-muted); font-size: .85rem; font-style: italic; }

  /* Cartes produits hauteur uniforme */
  .product-grid { align-items: stretch; }
  .product-card { height: 100%; }
  .product-card-body { justify-content: space-between; }
  .product-name { min-height: 2.7em; }

  /* Mobile search drawer ── bouton ouverture */
  .mobile-search-btn {
    display: none;
    align-items: center;
    justify-content: center;
    background: var(--bg-soft);
    border: 1.5px solid var(--border);
    border-radius: 8px;
    padding: 8px 12px;
    color: var(--text-muted);
    gap: 6px;
    font-size: .85rem;
    cursor: pointer;
  }
  .mobile-search-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 500;
    background: rgba(0,0,0,.5);
    backdrop-filter: blur(4px);
  }
  .mobile-search-box {
    background: var(--bg);
    padding: 20px;
    border-radius: 0 0 16px 16px;
  }
  .mobile-search-box .search-form {
    border-radius: var(--radius);
    border-width: 1.5px;
  }
  .mobile-search-box .search-form button { border-radius: 0 var(--radius) var(--radius) 0; }

  @media (max-width: 768px) {
    .mobile-search-btn { display: flex; }
    .navbar-search { display: none !important; }
  }

/* Google Translate widget */
#google_translate_element {
  display: inline-flex;
  align-items: center;
}
#google_translate_element select {
  font-size: .75rem;
  padding: 2px 6px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: transparent;
  color: #9ca3af;
  outline: none;
}
.goog-te-banner-frame { display: none !important; }
body { top: 0 !important; }
