/* =====================================================
   Les Poissonneries Bilouche — Feuille de style principale
   ===================================================== */

:root {
  --navy: #0A1628;
  --navy-light: #142238;
  --gold: #C9A84C;
  --gold-light: #E8C97A;
  --cream: #FAF7EF;
  --text: #1A1A1A;
  --muted: #6B6B5A;
  --border: #E8E0CC;
  --green: #16A34A;
  --wa: #25D366;
  --radius: 10px;
  --shadow: 0 4px 18px rgba(10, 22, 40, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--cream);
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 20px; }

/* ── Icônes ────────────────────────────────────────── */
.icon { display: inline-flex; width: 1.15em; height: 1.15em; flex-shrink: 0; vertical-align: -0.2em; }
.icon svg { width: 100%; height: 100%; display: block; }
.icon--lg { width: 1.6rem; height: 1.6rem; }
.icon--xl { width: 2.1rem; height: 2.1rem; }

/* ── Header ────────────────────────────────────────── */
.header {
  position: sticky; top: 0; z-index: 220;
  background: var(--navy);
  border-bottom: 2px solid var(--gold);
}
.header__inner {
  max-width: 1180px; margin: 0 auto; padding: 0 16px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; height: 68px;
}
.header__logo { display: flex; align-items: center; gap: 10px; font-weight: 800; color: #fff; font-size: 1.05rem; min-width: 0; flex-shrink: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.header__logo img { height: 40px; width: 40px; border-radius: 50%; background: #fff; padding: 3px; flex-shrink: 0; }
.header__logo span { color: var(--gold); }
.header__logo-text { overflow: hidden; text-overflow: ellipsis; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav__link { color: #dfe6ee; font-size: 0.92rem; font-weight: 600; transition: color .2s; }
.nav__link:hover, .nav__link.active { color: var(--gold); }
.header__burger {
  display: none; align-items: center; justify-content: center;
  width: 38px; height: 38px; flex-shrink: 0;
  background: none; border: none; color: #fff; cursor: pointer; padding: 0;
}
.header__actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.wa-header-btn { display: flex; align-items: center; gap: 7px; white-space: nowrap; }
.wa-header-btn .wa-label { display: inline; }
.cart-btn {
  position: relative; background: none; border: none; color: #fff; cursor: pointer;
  width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.cart-btn .icon { width: 1.35rem; height: 1.35rem; }
.cart-badge {
  position: absolute; top: 2px; right: 2px; background: var(--gold); color: var(--navy);
  font-size: 0.62rem; font-weight: 800; border-radius: 50%; width: 17px; height: 17px;
  display: flex; align-items: center; justify-content: center; line-height: 1;
}
.nav-overlay { display: none; }

/* ── Hero ──────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: #fff; padding: 70px 0 60px; text-align: center; position: relative; overflow: hidden;
}
.hero::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(201,168,76,0.12), transparent 60%);
}
.hero__eyebrow { color: var(--gold-light); letter-spacing: 3px; text-transform: uppercase; font-size: 0.78rem; font-weight: 700; margin-bottom: 10px; position: relative; }
.hero h1 { font-size: 2.4rem; font-weight: 800; margin: 0 0 12px; position: relative; }
.hero h1 span { color: var(--gold); }
.hero p { color: #cbd5e1; max-width: 560px; margin: 0 auto 22px; position: relative; }
.hero .btn { position: relative; }

/* ── Boutons ───────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  padding: 12px 24px; border-radius: 30px; font-weight: 700; font-size: 0.92rem;
  border: none; cursor: pointer; transition: transform .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn--gold { background: var(--gold); color: var(--navy); }
.btn--wa { background: var(--wa); color: #06341f; }
.btn--outline { background: transparent; border: 1.5px solid var(--gold); color: var(--gold); }
.btn--navy { background: var(--navy); color: #fff; }
.btn--full { width: 100%; }
.btn--sm { padding: 8px 16px; font-size: 0.82rem; }

/* ── Sections & titres ─────────────────────────────── */
.section { padding: 54px 0; }
.section-title {
  font-size: 1.5rem; font-weight: 800; color: var(--navy); margin-bottom: 6px;
  display: flex; align-items: center; gap: 10px;
}
.section-title::before { content: ''; width: 26px; height: 3px; background: var(--gold); display: inline-block; }
.section-sub { color: var(--muted); font-size: 0.92rem; margin-bottom: 26px; }

/* ── Catégories ────────────────────────────────────── */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px; }
.cat-card {
  position: relative; border-radius: var(--radius); overflow: hidden; height: 150px;
  display: flex; align-items: flex-end; padding: 18px; color: #fff; font-weight: 800; font-size: 1.05rem;
  background: linear-gradient(160deg, var(--navy), var(--navy-light));
  box-shadow: var(--shadow); transition: transform .2s;
}
.cat-card:hover { transform: translateY(-3px); }
.cat-card__icon { position: absolute; top: 16px; right: 18px; color: var(--gold-light); opacity: .85; width: 2rem; height: 2rem; }
.cat-card span.tag { color: var(--gold-light); font-size: 0.72rem; font-weight: 600; display: block; margin-bottom: 4px; }

/* ── Grille produits ───────────────────────────────── */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(155px, 1fr)); gap: 16px; }
.product-card {
  background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  transition: transform .2s; display: flex; flex-direction: column;
}
.product-card:hover { transform: translateY(-3px); }
.product-card__img { height: 140px; background: #eee; overflow: hidden; position: relative; }
.product-card__img img { width: 100%; height: 100%; object-fit: cover; }
.badge {
  display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 0.65rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: .3px;
}
.badge--dispo { background: #DCFCE7; color: #15803D; }
.badge--rupture { background: #F1F5F9; color: #64748B; }
.badge--coeur { background: var(--gold); color: var(--navy); }
.product-card__badge { position: absolute; top: 8px; left: 8px; }
.product-card__body { padding: 12px 14px; flex: 1; display: flex; flex-direction: column; }
.product-card__cat { font-size: 0.68rem; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 3px; }
.product-card__name { font-weight: 700; color: var(--navy); font-size: 0.95rem; margin-bottom: 8px; }
.product-card__row { display: flex; align-items: center; justify-content: space-between; margin-top: auto; }
.product-card__price { font-weight: 800; color: var(--navy); }
.product-card__price small { color: var(--muted); font-weight: 500; font-size: 0.7rem; }

/* ── Filtres boutique ──────────────────────────────── */
.shop-layout { display: grid; grid-template-columns: 220px 1fr; gap: 30px; align-items: start; }
.filters { background: #fff; border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.filters h4 { font-size: 0.78rem; text-transform: uppercase; letter-spacing: .6px; color: var(--muted); margin: 14px 0 8px; }
.filters h4:first-child { margin-top: 0; }
.filter-item { display: flex; align-items: center; gap: 8px; padding: 6px 0; font-size: 0.88rem; cursor: pointer; }
.filter-item input { accent-color: var(--gold); }
.filter-item.active-cat { color: var(--gold); font-weight: 700; }

/* ── Fiche produit ─────────────────────────────────── */
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.product-detail__img { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); height: 380px; background: #eee; }
.product-detail__img img { width: 100%; height: 100%; object-fit: cover; }
.product-detail h1 { font-size: 1.6rem; color: var(--navy); margin: 12px 0 4px; }
.product-detail__price { font-size: 1.5rem; font-weight: 800; color: var(--gold); margin-bottom: 14px; }
.product-detail__price small { color: var(--muted); font-size: 0.85rem; font-weight: 500; }
.product-detail__desc { color: var(--muted); margin-bottom: 20px; line-height: 1.7; }
.qty-row { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; }
.qty-box { display: flex; align-items: center; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.qty-box button { width: 34px; height: 34px; background: var(--cream); border: none; cursor: pointer; font-size: 1rem; }
.qty-box input { width: 50px; text-align: center; border: none; font-weight: 700; }

/* ── Notre histoire ────────────────────────────────── */
.histoire-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.histoire-grid__img { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); height: 340px; background: #eee; }
.histoire-grid__img img { width: 100%; height: 100%; object-fit: cover; }
.value-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 12px; margin-top: 20px; }
.value-card { background: #fff; border-radius: var(--radius); padding: 16px; text-align: center; box-shadow: var(--shadow); }
.value-card .ico { width: 1.8rem; height: 1.8rem; margin: 0 auto 8px; color: var(--gold); }
.value-card b { color: var(--navy); font-size: 0.85rem; }

/* ── Contact ───────────────────────────────────────── */
.contact-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 30px; }
.map-block { background: #E2E8F0; border-radius: var(--radius); height: 320px; display: flex; align-items: center; justify-content: center; color: var(--muted); gap: 8px; }
.map-block .icon { width: 1.4rem; height: 1.4rem; }
.contact-card { background: #fff; border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); margin-bottom: 14px; }
.contact-card h4 { color: var(--navy); font-size: 0.95rem; margin-bottom: 6px; display: flex; align-items: center; gap: 8px; }
.contact-card h4 .icon { width: 1.15rem; height: 1.15rem; color: var(--gold); }
.contact-card p { color: var(--muted); font-size: 0.9rem; margin: 0; }

/* ── Footer ────────────────────────────────────────── */
.footer { background: var(--navy); color: #cbd5e1; padding: 44px 0 20px; margin-top: 40px; }
.footer__inner { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 30px; margin-bottom: 24px; }
.footer__brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 800; margin-bottom: 8px; }
.footer__brand img { height: 38px; width: 38px; border-radius: 50%; background: #fff; padding: 3px; }
.footer__tagline { color: var(--gold-light); font-style: italic; font-size: 0.85rem; }
.footer__heading { color: #fff; font-size: 0.8rem; text-transform: uppercase; letter-spacing: .6px; margin-bottom: 10px; }
.footer__link { display: flex; align-items: center; gap: 7px; font-size: 0.85rem; margin-bottom: 8px; color: #b6c0cc; }
.footer__link .icon { width: 1rem; height: 1rem; }
.footer__link:hover { color: var(--gold); }
.footer__wa { color: var(--wa) !important; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 16px; text-align: center; font-size: 0.78rem; color: #7c8798; }
.footer__bottom a { text-decoration: underline; }

/* ── WhatsApp flottant + scroll top ────────────────── */
.wa-float {
  position: fixed; bottom: 24px; right: 24px; width: 56px; height: 56px; border-radius: 50%;
  background: var(--wa); color: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 20px rgba(0,0,0,0.25); z-index: 200; transition: transform .2s;
}
.wa-float:hover { transform: scale(1.06); }
.wa-float .icon { width: 1.7rem; height: 1.7rem; }

/* ── Panier ────────────────────────────────────────── */
.cart-overlay { position: fixed; inset: 0; background: rgba(10,22,40,0.5); z-index: 300; display: none; }
.cart-overlay.active { display: block; }
.cart-panel {
  position: fixed; top: 0; right: -420px; width: 400px; max-width: 92vw; height: 100%;
  background: #fff; z-index: 301; transition: right .3s; display: flex; flex-direction: column;
  box-shadow: -8px 0 24px rgba(0,0,0,0.15);
}
.cart-panel.open { right: 0; }
.cart-panel__head { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px; border-bottom: 1px solid var(--border); }
.cart-panel__title { font-weight: 800; color: var(--navy); }
.cart-panel__close { background: none; border: none; font-size: 1.4rem; cursor: pointer; color: var(--muted); }
.cart-panel__body { flex: 1; overflow-y: auto; padding: 16px 20px; }
.cart-empty { color: var(--muted); text-align: center; margin-top: 40px; }
.cart-item { display: flex; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.cart-item__img { width: 56px; height: 56px; border-radius: 8px; object-fit: cover; background: #eee; }
.cart-item__info { flex: 1; }
.cart-item__name { font-weight: 700; font-size: 0.9rem; color: var(--navy); }
.cart-item__prix { color: var(--gold); font-weight: 700; font-size: 0.85rem; }
.cart-item__qty { display: flex; align-items: center; gap: 8px; margin-top: 4px; }
.cart-item__qty button { width: 22px; height: 22px; border: 1px solid var(--border); background: #fff; border-radius: 4px; cursor: pointer; }
.cart-item__remove { background: none; border: none; color: var(--muted); cursor: pointer; font-size: 1rem; }
.cart-panel__footer { padding: 16px 20px; border-top: 1px solid var(--border); }
.cart-total-row { display: flex; justify-content: space-between; font-weight: 800; color: var(--navy); margin-bottom: 12px; }
.cart-note-hint { font-size: 0.75rem; color: var(--muted); margin-bottom: 12px; }

/* ── Responsive ────────────────────────────────────── */
@media (max-width: 900px) {
  .shop-layout, .product-detail, .histoire-grid, .contact-grid { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr; gap: 22px; }
}

@media (max-width: 640px) {
  .header__inner { height: 60px; padding: 0 14px; }
  .header__logo { font-size: 0.92rem; gap: 8px; }
  .header__logo img { height: 34px; width: 34px; }
  .wa-header-btn .wa-label { display: none; }
  .wa-header-btn { width: 38px; height: 38px; padding: 0; border-radius: 50%; }

  .nav {
    position: fixed; top: 0; right: 0; height: 100%; width: min(78vw, 300px);
    background: var(--navy); flex-direction: column; align-items: flex-start;
    gap: 4px; padding: 84px 28px 28px; transition: transform .3s cubic-bezier(.22,1,.36,1);
    transform: translateX(100%);
  }
  .nav.open { transform: translateX(0); }
  .nav__close { display: flex !important; position: absolute; top: 18px; right: 20px; }
  .nav__link { width: 100%; padding: 12px 0; font-size: 1.02rem; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .header__burger { display: flex; }
  .nav-overlay {
    display: block; position: fixed; inset: 0; background: rgba(10,22,40,0.55);
    z-index: 150; opacity: 0; pointer-events: none; transition: opacity .3s;
  }
  .nav-overlay.active { opacity: 1; pointer-events: auto; }

  .hero h1 { font-size: 1.7rem; }
  .section { padding: 38px 0; }
  .product-grid { grid-template-columns: repeat(auto-fill, minmax(135px, 1fr)); gap: 12px; }
  .product-card__img { height: 110px; }
}
