/* ==========================================================================
   Catalogue public — feuille de style unique (sans framework, sans jQuery)
   Couleur de marque : --brand (injectée par le layout depuis la configuration)
   ========================================================================== */
:root {
  --brand: #2563eb;
  --brand-dark: color-mix(in srgb, var(--brand) 82%, #000);
  --brand-soft: color-mix(in srgb, var(--brand) 9%, #fff);
  --ink: #0f172a;
  --muted: #64748b;
  --line: #e5e7eb;
  --bg: #f6f7f9;
  --card: #fff;
  --ok: #16a34a;
  --warn: #d97706;
  --bad: #dc2626;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 4px 14px rgba(15, 23, 42, .05);
  --shadow-lg: 0 12px 40px rgba(15, 23, 42, .18);
  --header-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 15px; line-height: 1.5;
  display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh;
}
main { flex: 1 0 auto; width: 100%; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[x-cloak] { display: none !important; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 16px; }
.page { padding: 20px 0 40px; }
.muted { color: var(--muted); }
.stack > * + * { margin-top: 16px; }

/* ---- Boutons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid transparent; border-radius: 10px; padding: 10px 16px; font-weight: 600;
  background: var(--brand); color: #fff; transition: background .15s, transform .05s, box-shadow .15s;
  white-space: nowrap;
}
.btn:hover { background: var(--brand-dark); }
.btn:active { transform: translateY(1px); }
.btn[disabled], .btn.is-disabled { opacity: .55; cursor: not-allowed; }
.btn-outline { background: #fff; color: var(--brand); border-color: var(--brand); }
.btn-outline:hover { background: var(--brand-soft); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: #fff; }
.btn-wa { background: #25d366; color: #fff; }
.btn-wa:hover { background: #1ebe5b; }
.btn-sm { padding: 7px 12px; font-size: 13px; border-radius: 9px; }
.btn-block { width: 100%; }
.icon-btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 12px; border: 0; background: transparent; font-size: 20px; color: var(--ink);
}
.icon-btn:hover { background: var(--brand-soft); color: var(--brand); }
.badge-count {
  position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px;
  background: var(--brand); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center;
}

/* ---- Header ---- */
.topbar { background: var(--ink); color: #cbd5e1; font-size: 12.5px; overflow: hidden; max-height: 40px; transition: max-height .25s ease, opacity .25s ease; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 34px; }
.topbar a:hover { color: #fff; }
.topbar .sep { display: flex; gap: 18px; flex-wrap: wrap; }
.is-scrolled .topbar { max-height: 0; opacity: 0; }
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); transition: box-shadow .2s; }
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(15, 23, 42, .09); }
.header-main { display: flex; align-items: center; gap: 14px; min-height: var(--header-h); }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; letter-spacing: -.02em; flex-shrink: 0; }
.logo img { height: 38px; width: auto; max-width: 150px; object-fit: contain; }
.header-search { flex: 1; max-width: 640px; }
.header-actions { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.header-actions .label { display: none; font-size: 13px; font-weight: 600; margin-left: 6px; }
.mobile-search { display: none; padding-bottom: 10px; }
.catnav { border-top: 1px solid var(--line); background: #fff; }
.catnav .container { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.catnav .container::-webkit-scrollbar { display: none; }
.catnav a { padding: 11px 14px; font-weight: 600; font-size: 14px; white-space: nowrap; color: #334155; border-bottom: 2px solid transparent; }
.catnav a:hover, .catnav a.is-active { color: var(--brand); border-color: var(--brand); }

/* ---- Recherche ---- */
.search { position: relative; }
.search-field { display: flex; align-items: center; background: var(--bg); border: 1.5px solid transparent; border-radius: 12px; transition: border-color .15s, background .15s; }
.search-field:focus-within { background: #fff; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.search-field i { padding: 0 8px 0 14px; color: var(--muted); }
.search-field input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 11px 6px; outline: none; }
.search-field .clear { border: 0; background: transparent; color: var(--muted); padding: 0 12px; font-size: 18px; }
.search-panel {
  position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 70; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-lg); overflow: hidden; max-height: min(70vh, 560px); overflow-y: auto;
}
.sp-title { padding: 10px 14px 4px; font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.sp-item { display: flex; align-items: center; gap: 12px; padding: 9px 14px; }
.sp-item:hover, .sp-item.is-active, .sp-item:focus { background: var(--brand-soft); outline: none; }
.sp-item img { width: 46px; height: 46px; border-radius: 9px; object-fit: cover; background: var(--bg); flex-shrink: 0; }
.sp-item .name { font-weight: 600; font-size: 14px; line-height: 1.25; }
.sp-item .name mark { background: transparent; color: var(--brand); font-weight: 800; }
.sp-item .meta { font-size: 12.5px; color: var(--muted); }
.sp-item .price { margin-left: auto; font-weight: 700; white-space: nowrap; font-size: 14px; }
.sp-chip { display: inline-flex; align-items: center; gap: 6px; margin: 4px 0 8px 14px; padding: 6px 12px; background: var(--bg); border-radius: 99px; font-size: 13px; font-weight: 600; }
.sp-chip:hover { background: var(--brand-soft); color: var(--brand); }
.sp-footer { display: block; padding: 12px 14px; text-align: center; font-weight: 700; color: var(--brand); border-top: 1px solid var(--line); background: #fafafa; }
.sp-empty { padding: 22px 16px; text-align: center; color: var(--muted); }
.sp-loading { height: 3px; background: linear-gradient(90deg, transparent, var(--brand), transparent); background-size: 200% 100%; animation: sp 1s linear infinite; }
@keyframes sp { to { background-position: -200% 0; } }

/* ---- Hero ---- */
.hero { background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%); color: #fff; border-radius: 22px; padding: 44px 36px; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; right: -80px; top: -80px; width: 340px; height: 340px; border-radius: 50%; background: rgba(255, 255, 255, .09); }
.hero h1 { font-size: clamp(26px, 4.4vw, 44px); line-height: 1.1; margin: 0 0 12px; letter-spacing: -.03em; max-width: 640px; }
.hero p { margin: 0 0 22px; max-width: 520px; opacity: .92; font-size: 16px; }
.hero .btn { background: #fff; color: var(--brand); }
.hero .btn-outline { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .6); }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; position: relative; z-index: 1; }
.perks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 18px 0 8px; }
.perk { display: flex; align-items: center; gap: 12px; background: #fff; padding: 14px; border-radius: var(--radius); box-shadow: var(--shadow); }
.perk i { font-size: 24px; color: var(--brand); }
.perk b { display: block; font-size: 14px; }
.perk span { font-size: 12.5px; color: var(--muted); }

/* ---- Sections ---- */
.section { margin-top: 34px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.section-head h2 { margin: 0; font-size: 22px; letter-spacing: -.02em; }
.section-head a { color: var(--brand); font-weight: 600; font-size: 14px; }
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.cat-card { background: #fff; border-radius: var(--radius); padding: 16px 12px; text-align: center; box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s; }
.cat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.cat-card img { width: 72px; height: 72px; object-fit: cover; border-radius: 50%; margin: 0 auto 10px; background: var(--bg); }
.cat-card b { font-size: 14px; }

/* ---- Grille & cartes produit ---- */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.card-p { position: relative; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); display: flex; flex-direction: column; overflow: hidden; transition: transform .15s, box-shadow .15s; }
.card-p:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.card-p .media { position: relative; aspect-ratio: 1 / 1; background: #f1f5f9; overflow: hidden; display: block; }
.card-p .media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.card-p:hover .media img { transform: scale(1.05); }
.card-p.is-out .media img { filter: grayscale(.9); opacity: .65; }
.card-p .body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-p .cat { font-size: 12px; color: var(--muted); }
.card-p h3 { margin: 0; font-size: 14.5px; font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em; }
.card-p .foot { margin-top: auto; display: flex; flex-direction: column; gap: 10px; }
.price-row { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.price { font-size: 17px; font-weight: 800; color: var(--ink); }
.price-old { font-size: 13px; color: var(--muted); text-decoration: line-through; }
.price-ask { font-size: 14px; font-weight: 700; color: var(--brand); }
.tag { position: absolute; z-index: 2; top: 10px; left: 10px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.pill { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 99px; font-size: 11.5px; font-weight: 700; background: var(--ink); color: #fff; }
.pill.promo { background: var(--bad); }
.pill.out { background: #475569; }
.pill.low { background: var(--warn); }
.pill.ok { background: #dcfce7; color: #166534; }
.pill.soft { background: #fee2e2; color: #991b1b; }
.pill.warnsoft { background: #fef3c7; color: #92400e; }

/* ---- Barre d'outils / filtres ---- */
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; background: #fff; padding: 10px 14px; border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 16px; }
.toolbar select { border: 1px solid var(--line); border-radius: 9px; padding: 8px 10px; background: #fff; }
.check { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; }
.check input { width: 18px; height: 18px; accent-color: var(--brand); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.chip { padding: 7px 14px; border-radius: 99px; background: #fff; border: 1px solid var(--line); font-size: 13.5px; font-weight: 600; }
.chip:hover { border-color: var(--brand); color: var(--brand); }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.breadcrumb a:hover { color: var(--brand); }
.page-title { margin: 0 0 4px; font-size: 26px; letter-spacing: -.02em; }
.empty { background: #fff; border-radius: var(--radius); padding: 48px 20px; text-align: center; box-shadow: var(--shadow); }
.empty i { font-size: 44px; color: var(--muted); }

/* ---- Fiche produit ---- */
.pd { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 28px; background: #fff; border-radius: 20px; padding: 24px; box-shadow: var(--shadow); }
.gallery-main { position: relative; aspect-ratio: 1 / 1; background: #f1f5f9; border-radius: 16px; overflow: hidden; }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; }
.gallery-main.is-out img { filter: grayscale(.85); opacity: .7; }
.thumbs { display: flex; gap: 10px; margin-top: 10px; overflow-x: auto; padding-bottom: 4px; }
.thumbs button { flex: 0 0 72px; height: 72px; border-radius: 10px; border: 2px solid transparent; padding: 0; overflow: hidden; background: #f1f5f9; }
.thumbs button.is-on { border-color: var(--brand); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pd h1 { margin: 0 0 8px; font-size: 26px; letter-spacing: -.02em; line-height: 1.2; }
.pd .price { font-size: 30px; }
.pd .price-old { font-size: 17px; }
.meta-list { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: 14px; margin: 14px 0; }
.meta-list dt { color: var(--muted); }
.meta-list dd { margin: 0; font-weight: 600; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 10px; background: #fff; overflow: hidden; }
.qty button { width: 38px; height: 40px; border: 0; background: #fff; font-size: 18px; }
.qty button:hover { background: var(--brand-soft); }
.qty span { min-width: 38px; text-align: center; font-weight: 700; }
.buy-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 16px; }
.buy-row .btn { flex: 1; min-width: 160px; padding: 13px 18px; }
.notice { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; font-size: 14px; margin: 14px 0; }
.notice.bad { background: #fef2f2; color: #991b1b; }
.notice.warn { background: #fffbeb; color: #92400e; }
.notice.ok { background: #f0fdf4; color: #166534; }
.notice.info { background: var(--brand-soft); color: var(--brand-dark); }
.tabs { margin-top: 22px; background: #fff; border-radius: 20px; box-shadow: var(--shadow); overflow: hidden; }
.tab-bar { display: flex; gap: 4px; border-bottom: 1px solid var(--line); padding: 0 12px; overflow-x: auto; }
.tab-bar button { border: 0; background: transparent; padding: 14px 16px; font-weight: 700; color: var(--muted); border-bottom: 3px solid transparent; white-space: nowrap; }
.tab-bar button.is-on { color: var(--brand); border-color: var(--brand); }
.tab-body { padding: 22px 24px; }
.prose { line-height: 1.7; max-width: 80ch; }
.prose h2 { font-size: 20px; margin: 28px 0 8px; }
.prose h3 { font-size: 16px; margin: 20px 0 6px; }
.prose p, .prose li { color: #334155; }
.prose ul { padding-left: 20px; }
.spec-table { width: 100%; border-collapse: collapse; }
.spec-table th, .spec-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); font-size: 14px; }
.spec-table th { width: 38%; color: var(--muted); font-weight: 600; }
.sticky-buy { display: none; }

/* ---- Panier ---- */
.cart-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 20px; align-items: start; }
.panel { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; }
.panel h2 { margin: 0 0 12px; font-size: 18px; }
.line { display: grid; grid-template-columns: 72px 1fr auto; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: center; }
.line:last-child { border-bottom: 0; }
.line img { width: 72px; height: 72px; border-radius: 10px; object-fit: cover; background: var(--bg); }
.line .nm { font-weight: 600; line-height: 1.25; }
.line .tot { font-weight: 800; text-align: right; }
.line .rm { border: 0; background: transparent; color: var(--bad); font-size: 13px; padding: 4px 0; }
.sum-row { display: flex; justify-content: space-between; padding: 6px 0; }
.sum-row.total { font-size: 19px; font-weight: 800; border-top: 1px solid var(--line); margin-top: 8px; padding-top: 12px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.field label { font-size: 13px; font-weight: 700; }
.field input, .field textarea, .field select { border: 1.5px solid var(--line); border-radius: 10px; padding: 11px 12px; background: #fff; outline: none; width: 100%; }
.field input:focus, .field textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.field .err { color: var(--bad); font-size: 12.5px; }

/* ---- Suivi ---- */
.steps { display: flex; gap: 0; margin: 22px 0; }
.step { flex: 1; text-align: center; position: relative; font-size: 13px; color: var(--muted); }
.step::before { content: ""; position: absolute; top: 15px; left: -50%; width: 100%; height: 3px; background: var(--line); z-index: 0; }
.step:first-child::before { display: none; }
.step .dot { position: relative; z-index: 1; width: 32px; height: 32px; margin: 0 auto 6px; border-radius: 50%; display: grid; place-items: center; background: var(--line); color: #fff; }
.step.is-done .dot, .step.is-now .dot { background: var(--brand); }
.step.is-done::before, .step.is-now::before { background: var(--brand); }
.step.is-now { color: var(--ink); font-weight: 700; }

/* ---- Footer ---- */
.site-footer { background: #0b1220; color: #cbd5e1; margin-top: 40px; flex-shrink: 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 28px; padding: 40px 0 26px; }
.site-footer h4 { color: #fff; margin: 0 0 12px; font-size: 15px; }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: 14px; }
.socials { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.socials a { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .08); font-size: 17px; }
.socials a:hover { background: var(--brand); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .08); padding: 16px 0; font-size: 13px; display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }

/* ---- Drawer panier, toast, cookies, nav mobile ---- */
.overlay { position: fixed; inset: 0; background: rgba(15, 23, 42, .5); z-index: 90; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 100%); background: #fff; z-index: 100; display: flex; flex-direction: column; box-shadow: var(--shadow-lg); }
.drawer header { display: flex; justify-content: space-between; align-items: center; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.drawer header h3 { margin: 0; }
.drawer .items { flex: 1; overflow-y: auto; padding: 4px 18px; }
.drawer footer { padding: 16px 18px; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.toasts { position: fixed; z-index: 120; left: 50%; transform: translateX(-50%); bottom: 84px; display: grid; gap: 8px; width: min(440px, calc(100% - 24px)); }
.toast { display: flex; align-items: center; gap: 10px; background: var(--ink); color: #fff; padding: 12px 14px; border-radius: 12px; box-shadow: var(--shadow-lg); font-size: 14px; }
.toast.warning { background: #92400e; }
.toast a { margin-left: auto; font-weight: 700; text-decoration: underline; white-space: nowrap; }
.cookie { position: fixed; z-index: 110; left: 12px; right: 12px; bottom: 80px; max-width: 520px; background: #fff; border-radius: 16px; box-shadow: var(--shadow-lg); padding: 18px; border: 1px solid var(--line); }
.cookie h4 { margin: 0 0 6px; }
.cookie p { margin: 0 0 12px; font-size: 13.5px; color: var(--muted); }
.cookie .row { display: flex; gap: 8px; flex-wrap: wrap; }
.mobile-nav { position: fixed; z-index: 60; left: 0; right: 0; bottom: 0; background: #fff; border-top: 1px solid var(--line); display: none; grid-template-columns: repeat(4, 1fr); padding-bottom: env(safe-area-inset-bottom); }
.mobile-nav a, .mobile-nav button { border: 0; background: transparent; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 0; font-size: 11.5px; font-weight: 600; color: var(--muted); position: relative; }
.mobile-nav i { font-size: 20px; }
.mobile-nav a.is-active, .mobile-nav a:hover { color: var(--brand); }
.wa-float { position: fixed; z-index: 55; right: 16px; bottom: 84px; width: 52px; height: 52px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; font-size: 26px; box-shadow: var(--shadow-lg); }
.load-more { display: flex; justify-content: center; margin-top: 22px; }
.skeleton { background: linear-gradient(90deg, #eef0f3 25%, #f6f7f9 37%, #eef0f3 63%); background-size: 400% 100%; animation: sk 1.3s ease infinite; border-radius: 10px; }
@keyframes sk { to { background-position: -400% 0; } }

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .perks { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .pd { grid-template-columns: 1fr; padding: 16px; }
  .cart-layout { grid-template-columns: 1fr; }
  .hero { padding: 30px 22px; }
}
@media (max-width: 768px) {
  .header-search { display: none; }
  .mobile-search { display: block; }
  .header-actions .hide-m { display: none; }
  .mobile-nav { display: grid; }
  body { padding-bottom: 62px; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .card-p .body { padding: 10px; }
  .price { font-size: 15px; }
  .topbar .hide-m { display: none; }
  .wa-float { bottom: 140px; }
  .sticky-buy { display: flex; position: fixed; z-index: 58; left: 0; right: 0; bottom: 58px; background: #fff; border-top: 1px solid var(--line); padding: 10px 14px; gap: 10px; align-items: center; }
  .sticky-buy .price { font-size: 18px; }
  .sticky-buy .btn { flex: 1; }
  body.has-sticky-buy { padding-bottom: 130px; }
  .cookie { bottom: 70px; }
}
@media (min-width: 1100px) {
  .header-actions .label { display: inline; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .perks { grid-template-columns: 1fr; }
  .page-title { font-size: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---- Carrousel de bannières ---- */
.carousel { position: relative; border-radius: 20px; overflow: hidden; background: #e2e8f0; box-shadow: var(--shadow); touch-action: pan-y; }
.car-track { display: flex; transition: transform .55s cubic-bezier(.4, 0, .2, 1); will-change: transform; }
.car-slide { flex: 0 0 100%; min-width: 0; display: block; }
.car-slide img { width: 100%; height: auto; display: block; }
.car-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow); display: grid; place-items: center; z-index: 2; opacity: 0; transition: opacity .2s; }
.carousel:hover .car-btn, .car-btn:focus-visible { opacity: 1; }
.car-btn.prev { left: 12px; } .car-btn.next { right: 12px; }
.car-dots { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); display: flex; gap: 6px; padding: 5px 9px; border-radius: 99px; background: rgba(15, 23, 42, .35); z-index: 2; }
.car-dots button { width: 9px; height: 9px; border-radius: 99px; border: 0; padding: 0; background: rgba(255, 255, 255, .6); transition: width .25s, background .25s; }
.car-dots button.is-on { width: 24px; background: #fff; }
@media (hover: none) { .car-btn { display: none; } }

/* ---- Défilement horizontal (catégories) ---- */
.hscroll { position: relative; }
.hscroll-track { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; padding: 4px 2px 12px; -webkit-overflow-scrolling: touch; }
.hscroll-track::-webkit-scrollbar { display: none; }
.hscroll-track .cat-card { flex: 0 0 150px; scroll-snap-align: start; }
.hs-btn { position: absolute; top: calc(50% - 6px); transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow); display: grid; place-items: center; z-index: 2; }
.hs-btn.prev { left: -8px; } .hs-btn.next { right: -8px; }
.hs-btn:disabled { opacity: 0; pointer-events: none; }
@media (hover: none) { .hs-btn { display: none; } }
