/* ==========================================================
   BONHEUR BANLIEUE — Shared stylesheet (multi-pages)
   ========================================================== */

:root {
  --bg: #0D0D0D;
  --bg-alt: #141414;
  --fg: #F8F5EE;
  --fg-dim: rgba(248, 245, 238, 0.55);
  --accent: #F5C800;
  --highlight: #FFFBE6;
  --border: rgba(245, 200, 0, 0.18);
  --red: #b22222;
  --font-display: 'Archivo Black', 'Impact', sans-serif;
  --font-body: 'DM Sans', -apple-system, sans-serif;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
}
::selection { background: var(--accent); color: var(--bg); }

/* Scan lines effect */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0,0,0,0.06) 2px, rgba(0,0,0,0.06) 4px);
  pointer-events: none;
  z-index: 9999;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: opacity var(--transition); }
a:hover { opacity: 0.7; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* ---------- HEADER ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 20px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(to bottom, rgba(13,13,13,0.85), transparent);
  transition: background var(--transition), padding var(--transition);
}
.site-header.scrolled {
  background: rgba(13, 13, 13, 0.92);
  backdrop-filter: blur(12px);
  padding: 14px 40px;
  border-bottom: 1px solid var(--border);
}
.site-header .logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.site-header .logo svg { height: 36px; width: auto; display: block; }

.nav-main { display: flex; gap: 36px; }
.nav-main > a,
.nav-main .has-sub > a {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--fg);
  position: relative;
}
.nav-main > a::after,
.nav-main .has-sub > a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -6px;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width var(--transition);
}
.nav-main > a:hover::after,
.nav-main .has-sub > a:hover::after,
.nav-main a.active::after { width: 100%; }
.nav-main > a:hover,
.nav-main .has-sub > a:hover { color: var(--accent); opacity: 1; }

.nav-actions { display: flex; gap: 20px; align-items: center; }
.cart-btn {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid rgba(245, 200, 0, 0.4);
  padding: 10px 22px;
  transition: all var(--transition);
}
.cart-btn:hover { background: var(--accent); color: var(--bg); opacity: 1; }
.cart-count {
  background: var(--accent);
  color: var(--bg);
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 10px;
  margin-left: 6px;
  font-weight: 700;
  display: none;
}
.cart-btn:hover .cart-count { background: var(--bg); color: var(--accent); }
.menu-toggle { display: none; font-size: 24px; color: var(--accent); }

/* ---------- MEGA MENU ---------- */
.has-sub { position: relative; }
.sub-menu {
  position: absolute;
  top: 100%; left: 50%;
  transform: translateX(-50%) translateY(-8px);
  background: rgba(13, 13, 13, 0.98);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  padding: 20px 28px;
  min-width: 200px;
  opacity: 0;
  pointer-events: none;
  transition: all var(--transition);
}
.has-sub:hover .sub-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.sub-menu a {
  display: block;
  padding: 8px 0;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--fg);
}
.sub-menu a:hover { color: var(--accent); opacity: 1; }

/* ---------- BACK BUTTON ---------- */
.back-btn {
  position: fixed;
  top: 90px;
  left: 40px;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(13, 13, 13, 0.7);
  border: 1px solid rgba(245, 200, 0, 0.4);
  padding: 10px 18px;
  backdrop-filter: blur(8px);
  transition: all var(--transition);
  cursor: pointer;
}
.back-btn:hover { background: var(--accent); color: var(--bg); opacity: 1; }
.back-btn .arrow { font-size: 14px; line-height: 1; }
@media (max-width: 900px) {
  .back-btn { top: 80px; left: 20px; padding: 8px 14px; font-size: 10px; }
}

/* ---------- LAYOUT ---------- */
main { padding-top: 80px; }
.container { max-width: 1400px; margin: 0 auto; padding: 0 40px; }
.section { padding: 100px 0; }
.section-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 6vw, 80px);
  text-transform: uppercase;
  letter-spacing: -1px;
  margin-bottom: 40px;
  line-height: 0.95;
}
.section-subtitle {
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--fg-dim);
  margin-bottom: 16px;
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-block;
  padding: 16px 36px;
  border: 2px solid var(--accent);
  background: transparent;
  color: var(--accent);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  transition: all var(--transition);
  cursor: pointer;
}
.btn:hover {
  background: var(--accent);
  color: var(--bg);
  opacity: 1;
  box-shadow: 0 0 30px rgba(245, 200, 0, 0.3);
}
.btn.btn-primary { background: var(--accent); color: var(--bg); }
.btn.btn-primary:hover {
  background: transparent;
  color: var(--accent);
}

/* ---------- PRODUCT GRID ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 32px 24px;
}
.product-card {
  display: block;
  position: relative;
  overflow: hidden;
}
.product-card .media {
  aspect-ratio: 4 / 5;
  background: var(--bg-alt);
  overflow: hidden;
  position: relative;
}
.product-card .media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease, opacity 0.4s ease;
}
.product-card .media img.back {
  position: absolute; inset: 0;
  opacity: 0;
}
.product-card:hover .media img.front { opacity: 0; }
.product-card:hover .media img.back { opacity: 1; }
.product-card:hover .media img { transform: scale(1.04); }
.product-card .info {
  padding: 16px 0;
}
.product-card .name {
  font-size: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 4px;
}
.product-card .price {
  font-size: 14px;
  color: var(--fg-dim);
}
.product-card .tag {
  position: absolute;
  top: 12px; left: 12px;
  background: var(--accent);
  color: var(--bg);
  font-family: var(--font-display);
  font-size: 10px;
  padding: 5px 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  z-index: 2;
}
.product-card .name { color: var(--fg); }
.product-card .price { color: var(--accent); font-weight: 700; }

/* ---------- FOOTER ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 80px 40px 40px;
  background: var(--bg);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
  max-width: 1400px;
  margin: 0 auto 60px;
}
.footer-brand .logo svg { height: 60px; width: auto; margin-bottom: 16px; }
.footer-col h4 { color: var(--accent); }
.footer-brand p { color: var(--fg-dim); font-size: 14px; max-width: 320px; }
.footer-col h4 {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 20px;
  color: var(--fg);
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { font-size: 13px; color: var(--fg-dim); }
.footer-bottom {
  max-width: 1400px;
  margin: 0 auto;
  padding-top: 30px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--fg-dim);
}

/* ---------- REVEAL ON SCROLL ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: all 0.8s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ---------- MOBILE ---------- */
@media (max-width: 900px) {
  .site-header { padding: 14px 20px; }
  .site-header.scrolled { padding: 10px 20px; }
  .nav-main { display: none; }
  .menu-toggle { display: block; }
  .container { padding: 0 20px; }
  .section { padding: 60px 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .footer-bottom { flex-direction: column; gap: 12px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 20px 12px; }
}

/* ---------- MOBILE DRAWER NAV ---------- */
.mobile-nav {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 200;
  padding: 80px 30px;
  transform: translateX(100%);
  transition: transform var(--transition);
}
.mobile-nav.open { transform: translateX(0); }
.mobile-nav .close { position: absolute; top: 20px; right: 24px; font-size: 28px; }
.mobile-nav ul { list-style: none; }
.mobile-nav li { margin-bottom: 20px; }
.mobile-nav a {
  font-family: var(--font-display);
  font-size: 32px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
