/* SuperCoolShop — système commun (jetons, base, en-tête, méga-menu, recherche, cartes, panier, tiroir, toasts, pied de page) */

:root {
  --navy: #0C3A8C;
  --navy-700: #0A3079;
  --navy-800: #082766;
  --navy-900: #061D4D;
  --navy-50: #EEF3FC;
  --navy-100: #DCE6F8;
  --cyan: #15B7E6;
  --cyan-50: #E7F7FD;
  --orange: #F36C21;
  --orange-600: #DE5A11;
  --orange-50: #FEF1E9;
  --bg: #F6F8FB;
  --surface: #FFFFFF;
  --text: #0F172A;
  --text-2: #334155;
  --muted: #64748B;
  --line: #E3E8F0;
  --line-2: #EDF1F6;
  --green: #12805C;
  --green-50: #E8F6F0;
  --amber: #A15C07;
  --amber-50: #FDF4E3;
  --red: #C62828;
  --wa: #1FAF5A;
  --wa-600: #178F49;

  --ff-title: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --ff-text: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --r-sm: 8px;
  --r: 12px;
  --r-lg: 16px;
  --r-xl: 22px;
  --sh-1: 0 1px 2px rgba(15, 23, 42, .06), 0 1px 1px rgba(15, 23, 42, .04);
  --sh-2: 0 6px 18px -6px rgba(12, 58, 140, .18), 0 2px 6px rgba(15, 23, 42, .05);
  --sh-3: 0 22px 48px -18px rgba(8, 39, 102, .35), 0 6px 16px rgba(15, 23, 42, .06);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --tb-h: 56px;
  --container: 1320px;
  --gutter: 24px;
}

/* ------------------------------------------------------------------ base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 150px; }
html.is-locked { overflow: hidden; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 15px/1.55 var(--ff-text); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden; min-height: 100vh; display: flex; flex-direction: column;
}
main { flex: 1 0 auto; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--navy-700); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--ff-title); line-height: 1.2; margin: 0; color: var(--text); letter-spacing: -.01em; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
mark { background: #FFE9A8; color: inherit; border-radius: 3px; padding: 0 1px; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; border-radius: 6px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: var(--r-sm); font-weight: 600; transition: top .2s; }
.skip:focus { top: 12px; color: #fff; }
[hidden] { display: none !important; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.ic { width: 20px; height: 20px; flex: none; display: inline-block; vertical-align: middle; }

/* ------------------------------------------------------------------ boutons */
.btn {
  --bh: 46px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: var(--bh); padding: 0 20px; border-radius: 10px; border: 1.5px solid transparent;
  font: 600 14.5px/1 var(--ff-title); letter-spacing: .005em; white-space: nowrap; text-align: center;
  transition: background-color .18s, color .18s, border-color .18s, box-shadow .18s, transform .12s;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: translateY(1px); }
.btn .ic { width: 18px; height: 18px; }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-700); color: #fff; box-shadow: 0 8px 18px -8px rgba(12, 58, 140, .6); }
.btn-cta { background: var(--orange); color: #fff; }
.btn-cta:hover { background: var(--orange-600); color: #fff; box-shadow: 0 10px 20px -10px rgba(243, 108, 33, .75); }
.btn-ghost { background: var(--surface); color: var(--navy); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--navy); color: var(--navy); background: var(--navy-50); }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: var(--wa-600); color: #fff; }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: var(--navy-50); color: var(--navy); }
.btn-sm { --bh: 40px; padding: 0 14px; font-size: 13.5px; border-radius: 9px; }
.btn-lg { --bh: 54px; padding: 0 26px; font-size: 16px; border-radius: 12px; }
.btn-block { width: 100%; }
.btn[disabled], .btn.is-disabled { opacity: .55; pointer-events: none; }
.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 10px;
  background: transparent; color: var(--text-2); transition: background .15s, color .15s;
}
.icon-btn:hover { background: var(--navy-50); color: var(--navy); }
.link-btn { background: none; border: 0; padding: 0; color: var(--navy); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; min-height: 44px; }

.chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 12px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line); color: var(--text-2); font: 600 12.5px/1 var(--ff-title); letter-spacing: .02em;
  transition: border-color .15s, color .15s, background .15s;
}
.chip:hover { border-color: var(--navy); color: var(--navy); background: var(--navy-50); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }

.badge {
  display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px; border-radius: 999px;
  font: 600 11.5px/1 var(--ff-title); letter-spacing: .02em; white-space: nowrap;
}
.badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge-stock { background: var(--green-50); color: var(--green); }
.badge-order { background: var(--amber-50); color: var(--amber); }
.ok { color: var(--green); font-weight: 600; }
.warn { color: var(--amber); font-weight: 600; }

.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid var(--navy-100); border-top-color: var(--navy); display: inline-block; vertical-align: middle; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* prix */
.price { display: inline-flex; align-items: baseline; font-family: var(--ff-title); font-weight: 700; color: var(--navy); white-space: nowrap; letter-spacing: -.01em; }
.price-int { font-size: 1.32em; }
.price-dec { font-size: .95em; }
.price-cur { font-size: .72em; font-weight: 600; margin-left: .35em; color: var(--navy-700); letter-spacing: .02em; }
.price-lg { font-size: 22px; }
.ttc { font: 600 10.5px/1 var(--ff-title); color: var(--muted); letter-spacing: .06em; margin-left: 6px; }

/* ------------------------------------------------------------------ en-tête */
.site-header { position: sticky; top: calc(var(--tb-h) * -1); z-index: 60; background: var(--surface); }
.site-header:empty { min-height: 195px; }
.site-header.is-stuck .catnav { box-shadow: 0 10px 24px -14px rgba(8, 39, 102, .35); }

.topbar { background: var(--navy-900); color: rgba(255, 255, 255, .78); height: var(--tb-h); font-size: 13px; }
.topbar-in { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.tb-list { display: flex; align-items: center; gap: 34px; min-width: 0; }
.tb-item { display: flex; align-items: center; gap: 11px; line-height: 1.3; white-space: nowrap; }
.tb-item > .ic { width: 24px; height: 24px; color: var(--cyan); }
.tb-right .tb-item > .ic { color: var(--orange); }
.tb-item strong { display: block; color: #fff; font: 600 13px/1.3 var(--ff-title); }
.tb-item span { display: flex; align-items: center; }
.tb-item a { color: rgba(255, 255, 255, .85); }
.tb-item a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.tb-sep { display: inline-block; width: 3px; height: 3px; border-radius: 50%; background: rgba(255, 255, 255, .45); margin: 0 9px; }

.mainbar { background: var(--surface); }
.mainbar-in { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 28px; height: 84px; }
.burger { display: none; }
.logo { display: block; width: 236px; }
.logo img { width: 100%; height: auto; }

/* recherche */
.search { position: relative; display: flex; align-items: stretch; height: 52px; max-width: 780px; width: 100%; justify-self: center;
  border: 2px solid var(--line); border-radius: 12px; background: var(--surface); transition: border-color .18s, box-shadow .18s; }
.search:focus-within { border-color: var(--navy); box-shadow: 0 0 0 4px rgba(21, 183, 230, .16); }
.search.is-open { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.search-ic { display: grid; place-items: center; padding-left: 14px; color: var(--muted); }
.search input {
  flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; padding: 0 10px 0 10px; font-size: 15.5px; color: var(--text);
}
.search input::placeholder { color: #8391A7; }
.search input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }
.search-clear { border: 0; background: transparent; color: var(--muted); width: 40px; display: grid; place-items: center; }
.search-clear:hover { color: var(--text); }
.search-btn {
  display: inline-flex; align-items: center; gap: 8px; border: 0; margin: -2px -2px -2px 0; padding: 0 22px;
  background: var(--orange); color: #fff; border-radius: 0 12px 12px 0; font: 600 14.5px/1 var(--ff-title); transition: background .15s;
}
.search.is-open .search-btn { border-bottom-right-radius: 0; }
.search-btn:hover { background: var(--orange-600); }
.search-btn .ic { width: 22px; height: 22px; }
.search-btn span { display: none; }

.suggest {
  position: absolute; left: -2px; right: -2px; top: calc(100% + 0px); z-index: 70; background: var(--surface);
  border: 2px solid var(--navy); border-top: 1px solid var(--line); border-radius: 0 0 14px 14px; box-shadow: var(--sh-3);
  max-height: min(72vh, 620px); overflow: auto; overscroll-behavior: contain;
}
.sg-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 14px 4px; }
.sg-chip { display: inline-flex; align-items: center; gap: 7px; min-height: 36px; padding: 0 12px; border-radius: 999px; background: var(--navy-50); color: var(--navy); font: 600 13px/1 var(--ff-title); }
.sg-chip .ic { width: 16px; height: 16px; }
.sg-chip small { font: 500 12px var(--ff-text); color: var(--muted); }
.sg-chip:hover, .sg-chip.is-active { background: var(--navy); color: #fff; }
.sg-chip:hover small, .sg-chip.is-active small { color: rgba(255, 255, 255, .8); }
.sg-list { padding: 6px; }
.sg-item { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 10px; color: var(--text); }
.sg-item:hover, .sg-item.is-active { background: var(--bg); color: var(--text); }
.sg-media { width: 52px; height: 52px; border-radius: 8px; overflow: hidden; background: #fff; border: 1px solid var(--line-2); display: grid; place-items: center; }
.sg-media img { width: 100%; height: 100%; object-fit: contain; }
.sg-media .ph { width: 100%; height: 100%; }
.sg-media .ph-label { display: none; }
.sg-media .ph-ic { width: 30px; height: 30px; }
.sg-media .ph-ic .ic { width: 16px; height: 16px; }
.sg-txt { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.sg-name { font-weight: 600; font-size: 14px; line-height: 1.35; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sg-ref { font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sg-price { font: 700 14.5px/1 var(--ff-title); color: var(--navy); white-space: nowrap; }
.sg-all { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; margin: 0 6px 6px; border-radius: 10px; background: var(--navy-50); color: var(--navy); font: 600 14px/1 var(--ff-title); }
.sg-all:hover, .sg-all.is-active { background: var(--navy); color: #fff; }
.sg-all .ic { width: 18px; height: 18px; }
.sg-empty { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 18px 18px 20px; color: var(--muted); font-size: 14px; }
.sg-empty strong { color: var(--text); font-family: var(--ff-title); }

/* actions d'en-tête */
.hdr-action {
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 4px 10px; border: 0; background: none; border-radius: 12px;
  color: var(--text); text-align: left; transition: background .15s;
}
.hdr-action:hover { background: var(--navy-50); color: var(--text); }
.hdr-action > .ic { width: 28px; height: 28px; color: var(--navy); }
.hdr-txt { display: flex; flex-direction: column; line-height: 1.2; }
.hdr-txt small { font-size: 12px; color: var(--muted); }
.hdr-txt strong { font: 600 14.5px/1.25 var(--ff-title); white-space: nowrap; }
.cart-ic { position: relative; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: var(--navy); color: #fff; }
.cart-ic .ic { width: 24px; height: 24px; }
.cart-badge {
  position: absolute; top: -6px; right: -7px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; border: 2px solid #fff;
  background: var(--orange); color: #fff; font: 700 11.5px/18px var(--ff-title); text-align: center;
}
.cart-badge.is-empty { background: #94A3B8; }
.cart-ic.is-bump { animation: bump .55s var(--ease); }
.cart-ic.is-bump .cart-badge { animation: pop .55s var(--ease); }
@keyframes bump { 0% { transform: scale(1); } 30% { transform: scale(1.14) rotate(-6deg); } 60% { transform: scale(.96) rotate(3deg); } 100% { transform: none; } }
@keyframes pop { 0% { transform: scale(1); } 35% { transform: scale(1.45); } 100% { transform: scale(1); } }
.cartbtn .cart-total { color: var(--navy); }

/* barre de catégories */
.catnav { position: relative; background: var(--surface); transition: box-shadow .2s; }
.catnav::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: linear-gradient(90deg, var(--navy) 0%, var(--navy) 55%, var(--cyan) 78%, var(--orange) 100%); }
.catbar { display: flex; align-items: stretch; gap: 2px; height: 54px; overflow-x: auto; scrollbar-width: none; }
.catbar::-webkit-scrollbar { display: none; }
.catbar li { flex: none; display: flex; }
.cat-link {
  position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 0 14px; margin-bottom: 3px; border-radius: 10px 10px 0 0;
  color: var(--text); font: 600 14.5px/1 var(--ff-title); white-space: nowrap; transition: background .15s, color .15s;
}
.cat-link .ic { width: 20px; height: 20px; color: var(--navy); transition: color .15s, transform .2s var(--ease); }
.cat-link:hover, .cat-link.is-hover { background: var(--navy-50); color: var(--navy); }
.cat-link:hover .ic, .cat-link.is-hover .ic { transform: translateY(-1px) scale(1.08); }
.cat-link.is-active { color: var(--navy); }
.cat-link.is-active::after { content: ''; position: absolute; left: 12px; right: 12px; bottom: 6px; height: 2px; border-radius: 2px; background: var(--orange); }
.cat-all { background: var(--navy); color: #fff; margin-bottom: 3px; padding: 0 18px; }
.cat-all .ic { color: #fff; }
.cat-all:hover, .cat-all.is-hover { background: var(--navy-800); color: #fff; }

/* méga-menu */
.mega {
  position: absolute; left: 0; right: 0; top: 100%; z-index: 55; background: var(--surface);
  border-top: 1px solid var(--line-2); box-shadow: 0 30px 60px -24px rgba(8, 39, 102, .35);
  opacity: 0; transform: translateY(-6px); transition: opacity .18s, transform .22s var(--ease);
}
.mega.is-open { opacity: 1; transform: none; }
.mega-in { padding-top: 26px; padding-bottom: 28px; }
.mega-loading { display: flex; align-items: center; gap: 10px; color: var(--muted); min-height: 120px; }
.mega-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr) 340px; gap: 36px; }
.mega-h { font: 700 12px/1 var(--ff-title); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.mega-list { columns: 2; column-gap: 24px; }
.mega-list li { break-inside: avoid; }
.mega-list a { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 36px; padding: 0 10px; margin: 0 -10px; border-radius: 8px; color: var(--text); font-size: 14.5px; }
.mega-list a span { font-size: 12px; color: var(--muted); background: var(--bg); border-radius: 999px; padding: 2px 8px; }
.mega-list a:hover { background: var(--navy-50); color: var(--navy); }
.mega-side .chips { margin-bottom: 20px; }
.mega-stock { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border-radius: 10px; background: var(--green-50); color: var(--green); font: 600 13.5px/1 var(--ff-title); }
.mega-stock .ic { width: 16px; height: 16px; }
.mega-stock:hover { color: var(--green); filter: brightness(.97); }
.mega-feature { position: relative; display: block; min-height: 250px; border-radius: var(--r-lg); overflow: hidden; background: linear-gradient(135deg, var(--navy) 0%, var(--navy-800) 60%, #0B4BB0 100%); color: #fff; isolation: isolate; }
.mega-feature img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .6s var(--ease); }
.mega-feature::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(6, 29, 77, 0) 25%, rgba(6, 29, 77, .88) 100%); }
.mega-feature:hover img { transform: scale(1.05); }
.mega-feature:hover { color: #fff; }
.mf-body { position: absolute; left: 0; right: 0; bottom: 0; padding: 20px; display: flex; flex-direction: column; gap: 4px; }
.mf-ic { width: 40px; height: 40px; border-radius: 12px; background: rgba(255, 255, 255, .16); backdrop-filter: blur(4px); display: grid; place-items: center; margin-bottom: 6px; }
.mf-body strong { font: 700 18px/1.2 var(--ff-title); }
.mf-body small { color: rgba(255, 255, 255, .82); font-size: 13px; }
.mf-btn { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; font: 600 14px/1 var(--ff-title); color: #fff; }
.mf-btn .ic { width: 18px; height: 18px; transition: transform .2s; }
.mega-feature:hover .mf-btn .ic { transform: translateX(4px); }
.mega-all { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.mega-cat { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 14px; border-radius: var(--r); border: 1px solid var(--line); color: var(--text); transition: border-color .15s, box-shadow .15s, transform .15s; }
.mega-cat:hover { border-color: var(--navy); color: var(--text); box-shadow: var(--sh-2); transform: translateY(-1px); }
.mega-cat-ic { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: var(--navy-50); color: var(--navy); }
.mega-cat-ic .ic { width: 24px; height: 24px; }
.mega-cat strong { display: block; font: 600 14.5px/1.3 var(--ff-title); }
.mega-cat small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.mega-cat-go { color: var(--muted); width: 18px; height: 18px; }
.mega-cat-shop { background: var(--navy); border-color: var(--navy); color: #fff; }
.mega-cat-shop:hover { color: #fff; }
.mega-cat-shop .mega-cat-ic { background: rgba(255, 255, 255, .14); color: #fff; }
.mega-cat-shop small, .mega-cat-shop .mega-cat-go { color: rgba(255, 255, 255, .78); }

/* ------------------------------------------------------------------ visuel de remplacement produit */
.ph {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; width: 100%; height: 100%;
  background:
    radial-gradient(circle at 1px 1px, rgba(12, 58, 140, .09) 1px, transparent 0) 0 0 / 14px 14px,
    linear-gradient(145deg, #F4F8FE 0%, #E6EEFA 100%);
  color: var(--navy); text-align: center; padding: 12px;
}
.ph-ic { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; background: #fff; color: var(--navy); box-shadow: 0 8px 20px -10px rgba(12, 58, 140, .45); }
.ph-ic .ic { width: 32px; height: 32px; }
.ph-label { font: 600 12px/1.2 var(--ff-title); letter-spacing: .08em; text-transform: uppercase; color: var(--navy-700); opacity: .75; }

/* ------------------------------------------------------------------ carte produit */
.pgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.pcard {
  position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  overflow: hidden; transition: box-shadow .22s var(--ease), border-color .22s, transform .22s var(--ease); min-width: 0;
}
.pcard:hover { box-shadow: var(--sh-3); border-color: transparent; transform: translateY(-3px); }
.pcard-media { position: relative; display: block; aspect-ratio: 1 / 1; background: #fff; overflow: hidden; border-bottom: 1px solid var(--line-2); }
.pcard-media img { width: 100%; height: 100%; object-fit: contain; padding: 14px; transition: transform .45s var(--ease); }
.pcard:hover .pcard-media img { transform: scale(1.06); }
.pcard-media.is-missing .ph-ic { transition: transform .35s var(--ease); }
.pcard:hover .pcard-media.is-missing .ph-ic { transform: translateY(-3px) rotate(-4deg); }
.pcard > .badge { position: absolute; top: 12px; left: 12px; z-index: 2; box-shadow: 0 1px 0 rgba(255, 255, 255, .8); }
.pcard-body { display: flex; flex-direction: column; flex: 1; padding: 14px 16px 16px; gap: 6px; }
.pcard-meta { display: flex; align-items: center; gap: 8px; min-width: 0; font: 600 11.5px/1.2 var(--ff-title); letter-spacing: .06em; text-transform: uppercase; }
.pcard-brand { color: var(--cyan); color: #0B8EB8; white-space: nowrap; }
.pcard-type { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pcard-type::before { content: '·'; margin-right: 8px; color: #B3BFCF; }
.pcard-title { font: 600 14.5px/1.4 var(--ff-text); letter-spacing: 0; min-height: 2.8em; }
.pcard-title a { color: var(--text); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.pcard-title a:hover { color: var(--navy); }
.pcard-title a::after { content: ''; position: absolute; inset: 0; z-index: 1; }
.pcard-ref { font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pcard-foot { margin-top: auto; display: flex; flex-direction: column; gap: 10px; padding-top: 8px; }
.pcard-price { display: flex; align-items: baseline; font-size: 18px; }
.btn-cart {
  position: relative; z-index: 2; width: 100%; --bh: 44px; background: var(--orange); color: #fff; border-radius: 10px; font-size: 14px;
}
.btn-cart:hover { background: var(--orange-600); color: #fff; box-shadow: 0 10px 20px -10px rgba(243, 108, 33, .8); }
.btn-cart.is-added { background: var(--green); }
.btn-cart.is-added .ic { animation: pop .45s var(--ease); }
.pcard.is-order .btn-cart { background: var(--surface); color: var(--orange-600); border-color: var(--orange); }
.pcard.is-order .btn-cart:hover { background: var(--orange); color: #fff; }
.pcard.is-order .btn-cart.is-added { background: var(--green); border-color: var(--green); color: #fff; }
.pcard-note { margin-top: -4px; font-size: 12px; color: var(--amber); text-align: center; }

/* squelettes */
.sk { background: linear-gradient(90deg, #EDF1F7 0%, #F6F8FB 50%, #EDF1F7 100%); background-size: 200% 100%; animation: shimmer 1.3s linear infinite; border-radius: 8px; }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.sk-card { pointer-events: none; }
.sk-media { aspect-ratio: 1 / 1; border-radius: 0; }
.sk-line { height: 12px; margin: 4px 0; }
.sk-line.w40 { width: 40%; } .sk-line.w50 { width: 50%; } .sk-line.w70 { width: 70%; } .sk-line.tall { height: 22px; margin-top: 10px; }
.sk-btn { height: 44px; margin-top: 8px; border-radius: 10px; }

/* ------------------------------------------------------------------ quantité */
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 10px; background: var(--surface); height: 44px; }
.qty-btn { width: 40px; height: 100%; border: 0; background: none; color: var(--navy); display: grid; place-items: center; border-radius: 9px; }
.qty-btn:hover:not([disabled]) { background: var(--navy-50); }
.qty-btn[disabled] { color: #B5C0D0; cursor: not-allowed; }
.qty-btn .ic { width: 16px; height: 16px; }
.qty-in { width: 40px; height: 100%; border: 0; background: none; text-align: center; font: 600 15px/1 var(--ff-title); -moz-appearance: textfield; appearance: textfield; }
.qty-in::-webkit-outer-spin-button, .qty-in::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty-in:focus { outline: none; }
.qty:focus-within { border-color: var(--navy); }

/* ------------------------------------------------------------------ lignes de panier (tiroir + page) */
.clines { display: flex; flex-direction: column; }
.cline {
  display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; grid-template-areas: 'media info del' 'media qty sub';
  column-gap: 14px; row-gap: 10px; padding: 16px 0; border-bottom: 1px solid var(--line-2); align-items: center;
  transition: opacity .18s, transform .18s;
}
.cline.is-leaving { opacity: 0; transform: translateX(16px); }
.cline-media { grid-area: media; align-self: start; width: 72px; height: 72px; border-radius: 10px; overflow: hidden; border: 1px solid var(--line-2); background: #fff; display: grid; place-items: center; }
.cline-media img { width: 100%; height: 100%; object-fit: contain; padding: 4px; }
.cline-media .ph-label { display: none; }
.cline-media .ph-ic { width: 38px; height: 38px; border-radius: 10px; }
.cline-media .ph-ic .ic { width: 20px; height: 20px; }
.cline-info { grid-area: info; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.cline-name { color: var(--text); font-weight: 600; font-size: 14px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cline-name:hover { color: var(--navy); }
.cline-ref, .cline-unit { font-size: 12.5px; color: var(--muted); }
.cline-qty { grid-area: qty; }
.cline-qty .qty { height: 40px; }
.cline-qty .qty-btn { width: 36px; }
.cline-qty .qty-in { width: 34px; }
.cline-sub { grid-area: sub; justify-self: end; font: 700 15px/1 var(--ff-title); color: var(--navy); white-space: nowrap; }
.cline-del { grid-area: del; justify-self: end; align-self: start; margin: -8px -10px 0 0; color: var(--muted); }
.cline-del:hover { color: var(--red); background: #FDECEC; }

/* ------------------------------------------------------------------ tiroir panier + menu mobile */
.scrim { position: fixed; inset: 0; z-index: 90; background: rgba(6, 18, 45, .5); opacity: 0; transition: opacity .25s; backdrop-filter: blur(2px); }
.scrim.is-open { opacity: 1; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 95; width: min(440px, 100vw); background: var(--surface);
  display: flex; flex-direction: column; box-shadow: -20px 0 50px -20px rgba(6, 18, 45, .4);
  transform: translateX(104%); visibility: hidden; transition: transform .32s var(--ease), visibility 0s linear .32s;
}
.drawer.is-open { transform: none; visibility: visible; transition: transform .32s var(--ease), visibility 0s; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 14px 14px 22px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { display: flex; align-items: center; gap: 10px; font-size: 19px; }
.drawer-head h2 .ic { color: var(--navy); }
.drawer-count { color: var(--muted); font-weight: 500; }
.drawer-body { flex: 1; overflow-y: auto; padding: 0 22px; overscroll-behavior: contain; }
.drawer-foot { padding: 18px 22px 22px; border-top: 1px solid var(--line); background: var(--bg); display: flex; flex-direction: column; gap: 10px; }
.drawer-foot:empty { display: none; }
.drawer-total { display: flex; align-items: baseline; justify-content: space-between; font: 600 15px/1 var(--ff-title); }
.drawer-note { display: flex; gap: 8px; font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.drawer-note .ic { width: 18px; height: 18px; color: var(--navy); margin-top: 1px; }
.drawer-empty { min-height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 10px; padding: 40px 10px; color: var(--muted); }
.drawer-empty strong { font: 700 18px/1.3 var(--ff-title); color: var(--text); }
.drawer-empty .btn { margin-top: 10px; }
.empty-ic { width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; background: var(--navy-50); color: var(--navy); margin-bottom: 4px; }
.empty-ic .ic { width: 38px; height: 38px; }

.mnav {
  position: fixed; top: 0; left: 0; bottom: 0; z-index: 95; width: min(360px, 88vw); background: var(--surface);
  display: flex; flex-direction: column; transform: translateX(-104%); visibility: hidden;
  transition: transform .3s var(--ease), visibility 0s linear .3s; box-shadow: 20px 0 50px -20px rgba(6, 18, 45, .4);
}
.mnav.is-open { transform: none; visibility: visible; transition: transform .3s var(--ease), visibility 0s; }
.mnav-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 10px 12px 18px; border-bottom: 1px solid var(--line); }
.mnav-head img { width: 170px; }
.mnav-body { flex: 1; overflow-y: auto; padding: 10px 12px 28px; }
.mnav-h { font: 700 11.5px/1 var(--ff-title); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding: 18px 8px 8px; }
.mnav-link, .acc-btn { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 48px; padding: 0 10px; border-radius: 10px; color: var(--text); font: 600 15px/1.25 var(--ff-title); background: none; border: 0; text-align: left; }
.mnav-link:hover, .acc-btn:hover { background: var(--navy-50); color: var(--navy); }
.mnav-link .ic, .acc-btn .ic { color: var(--navy); }
.mnav-link .cart-badge { position: static; margin-left: auto; border: 0; }
.acc-btn span { flex: 1; }
.acc-chev { transition: transform .2s; color: var(--muted) !important; width: 18px !important; height: 18px !important; }
.acc-btn[aria-expanded="true"] .acc-chev { transform: rotate(180deg); }
.acc-panel { padding: 2px 0 10px 42px; }
.acc-all { display: flex; align-items: center; min-height: 44px; font-weight: 600; font-size: 14px; color: var(--orange-600); }
.acc-list a { display: flex; justify-content: space-between; align-items: center; min-height: 44px; color: var(--text-2); font-size: 14.5px; padding-right: 8px; }
.acc-list a span { font-size: 12px; color: var(--muted); }
.mnav-contact { margin-top: 18px; padding: 14px; border-radius: var(--r); background: var(--bg); display: flex; flex-direction: column; gap: 4px; }
.mnav-contact a, .mnav-contact span { display: flex; align-items: center; gap: 10px; min-height: 44px; color: var(--text-2); font-size: 14.5px; }
.mnav-contact .ic { color: var(--navy); width: 18px; height: 18px; }

/* ------------------------------------------------------------------ toasts */
.toasts { position: fixed; right: 20px; bottom: 20px; z-index: 120; display: flex; flex-direction: column; gap: 10px; width: min(380px, calc(100vw - 32px)); pointer-events: none; }
.toast {
  pointer-events: auto; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center;
  padding: 12px 8px 12px 12px; background: var(--surface); border-radius: 14px; border: 1px solid var(--line);
  box-shadow: 0 18px 40px -16px rgba(6, 18, 45, .45); border-left: 4px solid var(--green);
  opacity: 0; transform: translateY(14px) scale(.98); transition: opacity .24s, transform .3s var(--ease);
}
.toast.is-in { opacity: 1; transform: none; }
.toast.is-out { opacity: 0; transform: translateX(24px); }
.toast-info { border-left-color: var(--navy); }
.toast-err { border-left-color: var(--red); }
.toast-media { width: 52px; height: 52px; border-radius: 10px; overflow: hidden; border: 1px solid var(--line-2); background: #fff; display: grid; place-items: center; }
.toast-media img { width: 100%; height: 100%; object-fit: contain; }
.toast-media .ph-label { display: none; }
.toast-media .ph-ic { width: 32px; height: 32px; border-radius: 9px; }
.toast-media .ph-ic .ic { width: 16px; height: 16px; }
.toast-ic { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--green-50); color: var(--green); }
.toast-info .toast-ic { background: var(--navy-50); color: var(--navy); }
.toast-err .toast-ic { background: #FDECEC; color: var(--red); }
.toast-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.toast-txt strong { font: 600 14px/1.3 var(--ff-title); }
.toast-txt span { font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.toast-act { align-self: flex-start; display: inline-flex; align-items: center; gap: 4px; margin-top: 4px; padding: 6px 0; min-height: 32px; border: 0; background: none; color: var(--orange-600); font: 600 13px/1 var(--ff-title); }
.toast-act .ic { width: 15px; height: 15px; }
.toast-act:hover { text-decoration: underline; }
.toast-x { width: 36px; height: 36px; border: 0; background: none; color: var(--muted); border-radius: 8px; display: grid; place-items: center; align-self: start; }
.toast-x:hover { background: var(--bg); color: var(--text); }
.toast-x .ic { width: 16px; height: 16px; }

/* bouton WhatsApp flottant */
.fab-wa {
  position: fixed; left: 20px; bottom: 20px; z-index: 80; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  background: var(--wa); color: #fff; box-shadow: 0 12px 26px -10px rgba(31, 175, 90, .8); transition: transform .2s var(--ease), background .2s;
}
.fab-wa:hover { background: var(--wa-600); color: #fff; transform: translateY(-2px) scale(1.04); }
.fab-wa .ic { width: 30px; height: 30px; }

/* ------------------------------------------------------------------ pied de page */
.site-footer { margin-top: 64px; background: var(--navy-900); color: rgba(255, 255, 255, .72); font-size: 14px; }
.footer-help { background: var(--navy); }
.footer-help-in { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; padding-top: 22px; padding-bottom: 22px; }
.fh-item { display: flex; align-items: center; gap: 14px; color: rgba(255, 255, 255, .8); font-size: 13.5px; }
.fh-item > .ic { width: 44px; height: 44px; padding: 10px; border-radius: 12px; background: rgba(255, 255, 255, .1); color: var(--cyan); }
.fh-item strong { display: block; color: #fff; font: 600 14.5px/1.3 var(--ff-title); }
.footer-main { padding: 48px 0 36px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.f-brand img { width: 220px; margin-bottom: 14px; }
.f-brand p { line-height: 1.6; margin-bottom: 14px; max-width: 360px; }
.f-tag { font: italic 700 13px/1.3 var(--ff-title); letter-spacing: .06em; text-transform: uppercase; color: var(--cyan); }
.f-col h2 { font: 700 13px/1 var(--ff-title); letter-spacing: .1em; text-transform: uppercase; color: #fff; margin-bottom: 16px; }
.f-col li { margin-bottom: 2px; }
.f-col a { color: rgba(255, 255, 255, .72); display: inline-flex; align-items: center; min-height: 36px; }
.f-col a:hover { color: #fff; }
.f-contact li { display: flex; gap: 10px; align-items: flex-start; padding: 6px 0; line-height: 1.5; }
.f-contact a { min-height: 0; }
.f-contact .ic { width: 18px; height: 18px; color: var(--cyan); margin-top: 2px; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); }
.footer-bottom-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 18px; padding-bottom: 18px; font-size: 13px; }
.f-pay { display: flex; gap: 8px; flex-wrap: wrap; }
.f-pay li { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px; border-radius: 8px; background: rgba(255, 255, 255, .08); color: #fff; font: 600 12.5px/1 var(--ff-title); }
.f-pay .ic { width: 18px; height: 18px; color: var(--cyan); }

/* ------------------------------------------------------------------ éléments de page communs */
.section { margin-top: 48px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.section-title { font-size: 26px; font-weight: 700; }
.section-title em { font-style: italic; color: var(--orange); }
.section-sub { color: var(--muted); margin-top: 6px; }
.more-link { display: inline-flex; align-items: center; gap: 6px; font: 600 14.5px/1 var(--ff-title); color: var(--navy); min-height: 44px; }
.more-link .ic { width: 18px; height: 18px; transition: transform .2s; }
.more-link:hover .ic { transform: translateX(3px); }

.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; font-size: 13px; color: var(--muted); padding: 18px 0 6px; }
.crumbs a { color: var(--muted); display: inline-flex; align-items: center; min-height: 32px; }
.crumbs a:hover { color: var(--navy); }
.crumbs .ic { width: 14px; height: 14px; color: #A3AFC2; }
.crumbs [aria-current] { color: var(--text-2); font-weight: 500; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.empty {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; padding: 56px 24px;
  background: var(--surface); border: 1px dashed #CBD5E3; border-radius: var(--r-lg); color: var(--muted);
}
.empty h2, .empty h1 { font-size: 22px; color: var(--text); }
.empty .row { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 8px; }

/* formulaires */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label, .field .lbl { font: 600 13.5px/1.2 var(--ff-title); color: var(--text-2); }
.field .req { color: var(--orange-600); }
.input, .select, .textarea {
  width: 100%; min-height: 48px; padding: 0 14px; border: 1.5px solid var(--line); border-radius: 10px; background: var(--surface);
  font-size: 15px; color: var(--text); transition: border-color .15s, box-shadow .15s;
}
.textarea { padding: 12px 14px; min-height: 110px; resize: vertical; line-height: 1.5; }
.select { appearance: none; -webkit-appearance: none; padding-right: 40px; background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%230C3A8C' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center; }
.input:hover, .select:hover, .textarea:hover { border-color: #C5D0E0; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 4px rgba(21, 183, 230, .16); }
.field.is-invalid .input, .field.is-invalid .textarea, .field.is-invalid .select { border-color: var(--red); box-shadow: 0 0 0 4px rgba(198, 40, 40, .1); }
.field-err { font-size: 12.5px; color: var(--red); display: none; }
.field.is-invalid .field-err { display: block; }
.hint { font-size: 12.5px; color: var(--muted); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--text-2); cursor: pointer; min-height: 44px; padding-top: 10px; }
.check input { width: 20px; height: 20px; margin: 0; accent-color: var(--navy); flex: none; }

/* ------------------------------------------------------------------ réactif */
@media (max-width: 1280px) {
  .tb-list { gap: 22px; }
  .cat-link { padding: 0 11px; font-size: 14px; }
  .cat-all { padding: 0 14px; }
  .mega-grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) 280px; gap: 28px; }
}
@media (max-width: 1180px) {
  .logo { width: 200px; }
  .mainbar-in { gap: 18px; }
  .hdr-account .hdr-txt { display: none; }
  .tb-right .tb-item:last-child { display: none; }
  .pgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .mega-all { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-help-in { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 991px) {
  :root { --tb-h: 0px; --gutter: 16px; }
  html { scroll-padding-top: 130px; }
  .site-header { top: 0; box-shadow: 0 1px 0 var(--line); }
  .site-header:empty { min-height: 118px; }
  .site-header.is-stuck { box-shadow: 0 10px 24px -14px rgba(8, 39, 102, .35); }
  .topbar, .catnav { display: none; }
  .mainbar-in { grid-template-columns: auto minmax(0, 1fr) auto auto; grid-template-areas: 'burger logo account cart' 'search search search search'; height: auto; gap: 4px 6px; padding-top: 8px; padding-bottom: 10px; }
  .burger { display: inline-grid; grid-area: burger; margin-left: -8px; color: var(--navy); }
  .logo { grid-area: logo; width: 170px; }
  .hdr-account { grid-area: account; }
  .cartbtn { grid-area: cart; }
  .search { grid-area: search; height: 48px; max-width: none; margin-top: 4px; }
  .hdr-action { padding: 2px; }
  .hdr-action .hdr-txt { display: none; }
  .hdr-account { width: 44px; justify-content: center; }
  .cart-ic { width: 44px; height: 44px; }
  .suggest { max-height: calc(100vh - 150px); }
  .toasts { left: 16px; right: 16px; bottom: 16px; width: auto; }
  .fab-wa { left: 14px; bottom: 14px; width: 52px; height: 52px; }
  .section-title { font-size: 22px; }
}
@media (max-width: 760px) {
  .pgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .pcard-body { padding: 12px 12px 14px; }
  .pcard-title { font-size: 13.5px; }
  .pcard-meta { font-size: 10.5px; }
  .pcard-type { display: none; }
  .pcard-price { font-size: 16px; }
  .pcard > .badge { top: 8px; left: 8px; height: 22px; font-size: 10.5px; padding: 0 7px; }
  .btn-cart span { font-size: 13px; }
  .pcard-media img { padding: 8px; }
  .ph-ic { width: 52px; height: 52px; border-radius: 14px; }
  .ph-ic .ic { width: 26px; height: 26px; }
  .ph-label { font-size: 10.5px; }
  .footer-help-in { grid-template-columns: 1fr; gap: 14px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-main { padding: 36px 0 24px; }
}
@media (max-width: 420px) {
  .logo { width: 140px; }
  .btn-cart { --bh: 42px; padding: 0 8px; gap: 6px; }
  .btn-cart .ic { width: 16px; height: 16px; }
  .btn-cart span { font-size: 12.5px; }
  .pcard-price { font-size: 15px; }
  .cline { grid-template-columns: 60px minmax(0, 1fr) auto; column-gap: 10px; }
  .cline-media { width: 60px; height: 60px; }
}
@media (min-width: 1500px) {
  .search-btn span { display: inline; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}

@media print {
  .site-header, .site-footer, .toasts, .fab-wa, .drawer, .scrim, .mnav, .no-print { display: none !important; }
  body { background: #fff; }
}

/* ---------- en-tête : se replie en descendant (la barre des catégories reste), réapparaît en remontant ---------- */
.site-header { transition: transform .38s cubic-bezier(.2, .7, .2, 1), box-shadow .3s; will-change: transform; }
.site-header.is-hidden { transform: translateY(calc(-1 * var(--main-h, 82px))); }
@media (max-width: 991px) { .site-header.is-hidden { transform: translateY(-100%); } }
@media (prefers-reduced-motion: reduce) { .site-header { transition: none; } }
