/* MS Finds — thème sombre, accent citron vert */
:root {
  --bg: #0c0c0e;
  --s1: #141417;
  --s2: #1c1c21;
  --s3: #26262c;
  --line: #2a2a31;
  --ink: #f2f2f3;
  --muted: #8e8e98;
  --acc: #c8f53c;
  --acc-ink: #0c0c0e;
  --star: #c8f53c;
  --r: 18px;
  --head: "Space Grotesk", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
body.lock { overflow: hidden; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: inherit; }
code { background: var(--s3); padding: 1px 6px; border-radius: 5px; font-size: .9em; }
[hidden] { display: none !important; }
.wrap { max-width: 1320px; margin: 0 auto; padding: 0 22px; }
::selection { background: var(--acc); color: var(--acc-ink); }

/* ---------- En-tête ---------- */
.top { position: sticky; top: 0; z-index: 30; background: rgba(12,12,14,.82); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; gap: 18px; height: 66px; }
.brand { font-family: var(--head); font-weight: 700; font-size: 21px; letter-spacing: -.3px; text-decoration: none; display: flex; align-items: center; gap: 8px; color: var(--ink); }
.brand-tag { display: block; width: 54px; height: 36px; }
.qsearch { flex: 1; max-width: 460px; margin-left: auto; display: flex; align-items: center; gap: 10px; background: var(--s1); border: 1px solid var(--line); border-radius: 12px; padding: 0 12px; }
.qsearch:focus-within { border-color: var(--acc); }
.qsearch svg { width: 18px; height: 18px; fill: none; stroke: var(--muted); stroke-width: 2; flex: none; }
.qsearch input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; color: var(--ink); font: inherit; padding: 11px 0; }
.qsearch kbd { font: 12px var(--body); color: var(--muted); border: 1px solid var(--line); border-radius: 6px; padding: 1px 7px; }
.cta { flex: none; text-decoration: none; font-weight: 600; font-size: 14px; color: var(--acc-ink); background: var(--acc); padding: 10px 16px; border-radius: 12px; }
.cta:hover { filter: brightness(1.08); }

/* ---------- Intro ---------- */
.intro { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding: 54px 0 34px; border-bottom: 1px solid var(--line); }
.intro h1 { font-family: var(--head); font-weight: 700; font-size: clamp(38px, 6.5vw, 84px); line-height: .95; letter-spacing: -2px; margin: 0 0 14px; max-width: 13ch; }
.intro p { color: var(--muted); font-size: 17px; margin: 0; max-width: 46ch; }
.stat { text-align: right; flex: none; }
.stat strong { display: block; font-family: var(--head); font-size: 56px; line-height: 1; color: var(--acc); }
.stat span { color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: 2px; }
.note { margin: 18px 0 0; font-size: 13px; color: var(--muted); border: 1px dashed var(--line); border-radius: 12px; padding: 10px 14px; }

/* ---------- Barre de catégories ---------- */
.ico { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.catbar { border-top: 1px solid var(--line); }
.catbar-in { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.catbar-in::-webkit-scrollbar { display: none; }
.catitem { position: static; }
.cattop { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 92px; padding: 12px 10px 11px; border: 0; background: none; color: var(--muted); font-size: 12.5px; font-weight: 600; white-space: nowrap; border-bottom: 2px solid transparent; }
.cattop .ico { width: 26px; height: 26px; }
.cattop:hover, .catitem:hover .cattop { color: var(--ink); }
.cattop.active { color: var(--acc); border-bottom-color: var(--acc); }

.catmenu { position: absolute; left: 0; right: 0; top: 100%; background: rgba(20,20,23,.98); backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); box-shadow: 0 30px 60px rgba(0,0,0,.5); padding: 22px max(22px, calc((100vw - 1320px) / 2 + 22px)) 26px; opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .16s, transform .16s, visibility 0s .16s; }
.catitem.has-menu:hover .catmenu, .catitem.has-menu:focus-within .catmenu { opacity: 1; visibility: visible; transform: none; transition: opacity .16s .08s, transform .16s .08s, visibility 0s .08s; }
.catmenu-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 14px; }
.catmenu-head p { margin: 0; font-family: var(--head); font-size: 22px; font-weight: 700; }
.link { border: 0; background: none; color: var(--acc); font-weight: 600; padding: 0; }
.catmenu-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 6px; }
.catsub { display: flex; justify-content: space-between; align-items: center; text-align: left; border: 1px solid var(--line); background: var(--s2); border-radius: 12px; padding: 12px 14px; font-weight: 500; }
.catsub small { color: var(--muted); font-size: 12px; }
.catsub:hover { border-color: var(--acc); }
.catsub.active { border-color: var(--acc); color: var(--acc); }

/* ---------- Résultats ---------- */
.results { padding-top: 30px; }
.results-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.results-head h2 { font-family: var(--head); font-size: 28px; margin: 0; letter-spacing: -.5px; }
.crumb { margin: 0; color: var(--muted); font-size: 13px; }
.crumb:empty { display: none; }
.tools { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.qmin { display: flex; gap: 4px; background: var(--s1); border: 1px solid var(--line); border-radius: 11px; padding: 3px; }
.qbtn { border: 0; background: none; border-radius: 8px; padding: 5px 10px; font-size: 13px; font-weight: 600; color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 1px; line-height: 1.15; cursor: pointer; }
.qbtn b { font-weight: 700; white-space: nowrap; }
.qbtn small { font-size: 10.5px; font-weight: 500; opacity: .8; white-space: nowrap; }
.qbtn:hover:not(.active) { color: var(--ink); }
.qbtn.active { background: var(--acc); color: var(--acc-ink); }
.select { font: inherit; font-size: 14px; color: var(--ink); background: var(--s1); border: 1px solid var(--line); border-radius: 11px; padding: 8px 10px; }
.subchips { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 10px; scrollbar-width: none; }
.subchips .chip { flex: none; cursor: pointer; color: var(--muted); font-weight: 600; }
.subchips .chip.active { background: var(--acc); color: var(--acc-ink); border-color: var(--acc); }
.subchips .chip .ico { width: 18px; height: 18px; stroke-width: 1.7; color: var(--acc); }
.subchips .chip.active .ico { color: inherit; }
.subchips .chip { padding: 6px 13px 6px 10px; }
.catsub { justify-content: flex-start; gap: 10px; }
.catsub .ico { width: 22px; height: 22px; color: var(--acc); stroke-width: 1.6; }
.catsub small { margin-left: auto; }
.count { color: var(--muted); font-size: 13px; margin: 0 0 14px; }
.label { font-size: 11px; font-weight: 600; letter-spacing: 1.6px; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: 18px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: 18px; }
.empty { border: 1px dashed var(--line); border-radius: var(--r); padding: 60px 20px; text-align: center; color: var(--muted); }

/* ---------- Carte ---------- */
.card { text-align: left; padding: 0; border: 1px solid var(--line); background: var(--s1); border-radius: var(--r); overflow: hidden; transition: border-color .15s, transform .15s; }
.card:hover { border-color: #3d3d46; transform: translateY(-2px); }
.card-img { position: relative; aspect-ratio: 4 / 5; background: radial-gradient(circle at 50% 35%, #2c2c33, var(--s2) 70%); display: grid; place-items: center; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: contain; padding: 14px; transition: transform .3s; }
.card:hover .card-img img { transform: scale(1.04); }
.noimg { font-family: var(--head); font-weight: 700; font-size: 34px; color: var(--s3); letter-spacing: 2px; }
.flag { position: absolute; top: 10px; left: 10px; font-size: 11px; font-weight: 700; padding: 4px 9px; border-radius: 999px; background: var(--acc); color: var(--acc-ink); }
.flag-qc { left: auto; right: 10px; background: var(--ink); color: var(--bg); }
.card-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; }
.card-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.card-title { margin: 0; font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-cat { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-price { font-family: var(--head); font-weight: 700; white-space: nowrap; }

.stars { display: inline-flex; gap: 2px; }
.stars i { width: 12px; height: 12px; background: var(--s3); clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); }
.stars i.on { background: var(--star); }
.stars.lg i { width: 18px; height: 18px; }
.dots { display: inline-flex; align-items: center; gap: 3px; }
.cdot { display: block; width: 14px; height: 14px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25); object-fit: cover; flex: none; }
.dots em { font-style: normal; font-size: 11px; color: var(--muted); margin-left: 2px; }

/* ---------- Panneau produit ---------- */
.drawer-bg { position: fixed; inset: 0; z-index: 40; background: rgba(0,0,0,.55); backdrop-filter: blur(2px); }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 50; width: min(520px, 100%); background: var(--s1); border-left: 1px solid var(--line); overflow-y: auto; transform: translateX(100%); transition: transform .28s cubic-bezier(.2,.8,.2,1); padding: 20px; }
.drawer.open { transform: none; }
.drawer-close { position: sticky; top: 0; float: right; z-index: 2; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: var(--s2); }
.d-img { aspect-ratio: 1; border-radius: var(--r); background: radial-gradient(circle at 50% 35%, #2c2c33, var(--s2) 70%); display: grid; place-items: center; overflow: hidden; clear: both; }
.d-img img { width: 100%; height: 100%; object-fit: contain; padding: 18px; }
.seg { display: inline-flex; background: var(--s2); border-radius: 10px; padding: 3px; margin-top: 12px; }
.seg button { border: 0; background: none; padding: 6px 14px; border-radius: 8px; font-size: 13px; font-weight: 600; color: var(--muted); }
.seg button.active { background: var(--s3); color: var(--ink); }
.d-strip { display: flex; gap: 8px; overflow-x: auto; margin-top: 10px; }
.d-thumb { flex: 0 0 62px; height: 62px; padding: 0; border-radius: 10px; border: 2px solid transparent; background: var(--s2); overflow: hidden; }
.d-thumb img { width: 100%; height: 100%; object-fit: cover; }
.d-thumb.active { border-color: var(--acc); }
.d-info { padding-top: 18px; }
.d-cat { color: var(--muted); font-size: 13px; margin: 0; }
.d-info h3 { font-family: var(--head); font-size: 30px; line-height: 1.1; margin: 4px 0 14px; letter-spacing: -.5px; }
.d-meta { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.d-price { font-family: var(--head); font-size: 26px; font-weight: 700; }
.d-quality { display: flex; align-items: center; gap: 8px; color: var(--muted); }
.d-block { margin-top: 20px; }
.swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 6px; }
.swatch { display: flex; align-items: center; gap: 8px; text-align: left; border: 1px solid var(--line); background: var(--s2); border-radius: 10px; padding: 5px 8px 5px 5px; font-size: 12.5px; cursor: default; }
.swatch span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.swatch .cdot { width: 30px; height: 30px; border-radius: 7px; }
.swatch.has-img { cursor: pointer; }
.swatch.has-img:hover { border-color: var(--acc); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
/* Fiche produit : couleurs et tailles cliquables (visuel seulement) */
.swatch { cursor: pointer; color: inherit; font-family: inherit; min-width: 0; }
.swatch:hover { border-color: #3a3a42; }
.d-sizes .chip { min-width: 46px; min-height: 38px; justify-content: center; color: inherit; font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; }
.d-sizes .chip:hover { border-color: #3a3a42; }
.d-sizes .chip.active { background: var(--acc); border-color: var(--acc); color: var(--acc-ink); }
.swatches > [hidden], .chips > [hidden] { display: none; }
.more-btn { border: 1px dashed var(--line); background: none; border-radius: 10px; min-height: 38px; padding: 0 14px; color: var(--acc); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.chips .more-btn { border-radius: 999px; }
.more-btn:hover { border-color: var(--acc); }
.chip { display: inline-flex; align-items: center; gap: 6px; background: var(--s2); border: 1px solid var(--line); border-radius: 999px; padding: 5px 11px; font-size: 13px; }
.chip i { width: 12px; height: 12px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25); }
.d-desc { color: var(--muted); white-space: pre-line; margin: 18px 0 0; }
.buy { display: flex; justify-content: space-between; align-items: center; margin-top: 24px; padding: 16px 20px; border-radius: 14px; background: var(--acc); color: var(--acc-ink); font-weight: 700; font-size: 16px; text-decoration: none; }
.buy:hover { filter: brightness(1.08); }
.fine { color: var(--muted); font-size: 12px; margin: 8px 0 0; text-align: center; }

.foot { margin-top: 80px; border-top: 1px solid var(--line); padding: 26px 0; color: var(--muted); font-size: 13px; }

/* ---------- Navigation ---------- */
.topnav { display: flex; gap: 4px; margin-left: 10px; }
.topnav a { text-decoration: none; color: var(--muted); font-weight: 600; font-size: 14px; padding: 8px 12px; border-radius: 10px; }
.topnav a:hover { color: var(--ink); background: var(--s1); }
.topnav a.active { color: var(--ink); background: var(--s2); }
.h2 { font-family: var(--head); font-size: 28px; margin: 0; letter-spacing: -.5px; }

/* ---------- Accueil ---------- */
.hero { display: grid; grid-template-columns: 1.15fr 1fr; gap: 40px; align-items: center; padding: 64px 22px 40px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; margin: 0 0 22px; }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--acc); box-shadow: 0 0 0 4px rgba(200,245,60,.15); }
.hero h1 { font-family: var(--head); font-weight: 700; font-size: clamp(42px, 6.4vw, 88px); line-height: .95; letter-spacing: -2.5px; margin: 0 0 18px; }
.hero-sub { color: var(--muted); font-size: 18px; margin: 0 0 30px; max-width: 44ch; }
.hero-cta { display: flex; gap: 10px; flex-wrap: wrap; }
.btn-big { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; background: var(--acc); color: var(--acc-ink); font-weight: 700; font-size: 16px; padding: 15px 22px; border-radius: 14px; }
.btn-big:hover { filter: brightness(1.08); }
.btn-big.dark { background: var(--bg); color: var(--ink); }
.btn-ghost { display: inline-flex; align-items: center; text-decoration: none; border: 1px solid var(--line); color: var(--ink); font-weight: 600; padding: 15px 20px; border-radius: 14px; }
.btn-ghost:hover { border-color: #44444d; background: var(--s1); }
.hero-stats { display: flex; gap: 34px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); }
.hero-stats strong { display: block; font-family: var(--head); font-size: 34px; line-height: 1; color: var(--acc); }
.hero-stats span { color: var(--muted); font-size: 13px; }

.hero-art { position: relative; aspect-ratio: 1; max-width: 520px; width: 100%; justify-self: end; }
/* Halo : dégradé qui s'éteint avant le bord (closest-side) -> jamais coupé net, sans filtre flou. */
.hero-art::before { content: ""; position: absolute; inset: -6%; border-radius: 50%; pointer-events: none; background: radial-gradient(circle closest-side, rgba(200,245,60,.24), rgba(200,245,60,.08) 50%, rgba(200,245,60,0) 100%); }
.art-card { position: absolute; width: 56%; aspect-ratio: 4 / 5; padding: 0; border: 1px solid var(--line); border-radius: 22px; background: radial-gradient(circle at 50% 35%, #2c2c33, var(--s2) 70%); overflow: hidden; box-shadow: 0 30px 60px rgba(0,0,0,.45); transition: transform .3s; }
.art-card img { width: 100%; height: 100%; object-fit: contain; padding: 16px; }
.art-card:hover { transform: translateY(-6px) rotate(0deg) !important; z-index: 5; }
.art-0 { left: 22%; top: 6%; transform: rotate(-2deg); z-index: 3; }
.art-1 { left: 0; top: 30%; transform: rotate(-9deg); z-index: 2; }
.art-2 { right: 0; top: 34%; transform: rotate(8deg); z-index: 1; }
.art-price { position: absolute; left: 12px; bottom: 12px; background: var(--acc); color: var(--acc-ink); font-weight: 700; font-size: 13px; padding: 4px 10px; border-radius: 999px; }
.art-logo { position: absolute; inset: 10%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; }
.art-logo img { width: 86%; max-width: 420px; height: auto; transform: rotate(-6deg); filter: drop-shadow(0 18px 30px rgba(0,0,0,.45)); }
.art-logo em { font-family: var(--head); font-style: normal; font-weight: 700; font-size: clamp(34px, 5vw, 60px); letter-spacing: -1.5px; color: var(--ink); }

.block { padding-top: 56px; }
.block-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 18px; }
.block-head h2 { font-family: var(--head); font-size: 30px; margin: 0; letter-spacing: -.6px; }
a.link { text-decoration: none; }
.cat-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.cat-tile { display: flex; flex-direction: column; gap: 10px; text-decoration: none; padding: 18px; border: 1px solid var(--line); border-radius: var(--r); background: var(--s1); transition: border-color .15s, transform .15s; }
.cat-tile .ico { width: 34px; height: 34px; color: var(--acc); }
.cat-tile-name { font-family: var(--head); font-weight: 700; font-size: 17px; }
.cat-tile small { color: var(--muted); font-size: 12px; margin-top: -6px; }
.cat-tile:hover { border-color: var(--acc); transform: translateY(-2px); }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(210px, 230px); gap: 14px; overflow-x: auto; padding-bottom: 10px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.rail > * { scroll-snap-align: start; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.step { border: 1px solid var(--line); border-radius: var(--r); background: var(--s1); padding: 22px; }
.step-n { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--acc); color: var(--acc-ink); font-family: var(--head); font-weight: 700; }
.step h3 { font-family: var(--head); font-size: 19px; margin: 14px 0 6px; }
.step p { color: var(--muted); margin: 0; font-size: 14px; }
.band { margin-top: 56px; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; background: var(--acc); color: var(--acc-ink); border-radius: 24px; padding: 32px; }
.band h2 { font-family: var(--head); font-size: 30px; margin: 0 0 4px; letter-spacing: -.6px; }
.band p { margin: 0; opacity: .75; }
.band-right { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }

/* Ticket coupon (bandeau) */
.ticket { display: flex; align-items: stretch; background: var(--bg); color: var(--ink); border-radius: 14px; transform: rotate(-3deg); box-shadow: 0 12px 30px rgba(0,0,0,.25);
  -webkit-mask: radial-gradient(circle 9px at 0 50%, transparent 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle 9px at 100% 50%, transparent 98%, #000) right / 51% 100% no-repeat;
          mask: radial-gradient(circle 9px at 0 50%, transparent 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle 9px at 100% 50%, transparent 98%, #000) right / 51% 100% no-repeat; }
.ticket-main, .ticket-side { display: flex; flex-direction: column; justify-content: center; padding: 12px 20px; }
.ticket-main { border-right: 2px dashed var(--s3); }
.ticket small { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 1.2px; }
.ticket-main strong { font-family: var(--head); font-size: 32px; line-height: 1; color: var(--acc); }
.ticket-side strong { font-family: var(--head); font-size: 22px; line-height: 1; }

/* Badge coupon sur le bouton du haut */
.cta { display: inline-flex; align-items: center; gap: 10px; }
.cta-coupon { position: relative; font-size: 12px; font-weight: 800; background: var(--bg); color: var(--acc); padding: 3px 9px 3px 11px; border-radius: 6px; animation: wiggle 4s ease-in-out infinite;
  -webkit-mask: radial-gradient(circle 4px at 0 50%, transparent 96%, #000) left / 51% 100% no-repeat, radial-gradient(circle 4px at 100% 50%, transparent 96%, #000) right / 51% 100% no-repeat;
          mask: radial-gradient(circle 4px at 0 50%, transparent 96%, #000) left / 51% 100% no-repeat, radial-gradient(circle 4px at 100% 50%, transparent 96%, #000) right / 51% 100% no-repeat; }
@keyframes wiggle { 0%, 88%, 100% { transform: rotate(0); } 91% { transform: rotate(-8deg); } 94% { transform: rotate(7deg); } 97% { transform: rotate(-4deg); } }
@media (prefers-reduced-motion: reduce) { .cta-coupon { animation: none; } }

/* ---------- Catalogue : barre de filtres ---------- */
.price-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 4px; }
.price-head .label { margin: 0; }
.price-val { font-family: var(--head); font-weight: 700; color: var(--acc); }
.range { position: relative; height: 28px; touch-action: none; }
.range-track { position: absolute; left: 0; right: 0; top: 50%; height: 6px; margin-top: -3px; border-radius: 3px; background: var(--s3); }
.range-fill { position: absolute; top: 0; bottom: 0; background: var(--acc); border-radius: 3px; }
.range input { position: absolute; inset: 0; width: 100%; margin: 0; background: none; pointer-events: none; -webkit-appearance: none; appearance: none; }
.range input::-webkit-slider-runnable-track { background: none; height: 28px; }
.range input::-moz-range-track { background: none; }
.range input::-webkit-slider-thumb { -webkit-appearance: none; pointer-events: auto; width: 22px; height: 22px; margin-top: 3px; border-radius: 50%; background: var(--ink); border: 4px solid var(--acc); cursor: grab; box-shadow: 0 2px 8px rgba(0,0,0,.5); }
.range input::-moz-range-thumb { pointer-events: auto; width: 14px; height: 14px; border-radius: 50%; background: var(--ink); border: 4px solid var(--acc); cursor: grab; }
.range input:active::-webkit-slider-thumb { cursor: grabbing; transform: scale(1.1); }
.range input:focus-visible::-webkit-slider-thumb { outline: 3px solid rgba(200,245,60,.4); }
.range-scale { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); margin-top: 2px; }
.qfilter .label { margin-bottom: 8px; }
.reset { font-size: 13px; padding-bottom: 6px; }

/* Ordi : un bloc fin sur deux lignes.
   Ligne 1 : prix + qualité toujours visibles. Ligne 2 : Taille / Couleur (petit menu) | afficher … réinitialiser. */
.filterbar { background: var(--s1); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 18px; margin-bottom: 16px; }
.frow1 { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 32px; }
.frow1 .price { flex: 1; max-width: 360px; }
.frow1 .price-head { margin-bottom: 0; }
.frow1 .range { height: 24px; }
.frow1 .range-scale { margin-top: 0; font-size: 10.5px; }
.frow1 .qfilter { display: flex; align-items: center; gap: 12px; }
.frow1 .qfilter .label { margin: 0; }
.frow1 .qbtn { padding: 4px 11px; }
.frow2 { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; border-top: 1px solid var(--line); margin-top: 10px; padding-top: 10px; }
.frow2 .fpop-btn, .frow2 .ftoggles .fchip { height: 32px; font-size: 13px; }
.frow2 .fpop-btn { padding: 0 9px 0 13px; }
.fpop { position: relative; }
.fpop[hidden] { display: none; }
.fpop-btn { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 11px 0 15px; border: 1px solid var(--line); background: var(--s1); border-radius: 999px; color: var(--ink); font: inherit; font-size: 13.5px; font-weight: 600; white-space: nowrap; cursor: pointer; transition: border-color .12s, background .12s; }
.fpop-btn:hover { border-color: #3a3a42; }
.fpop-val { color: var(--acc); max-width: 150px; overflow: hidden; text-overflow: ellipsis; }
.fpop-val:empty { display: none; }
.fpop-val::before { content: "·"; color: var(--muted); margin-right: 6px; }
.fpop.on .fpop-btn { border-color: rgba(200,245,60,.55); background: rgba(200,245,60,.07); }
.fpop.open .fpop-btn { border-color: var(--acc); }
.fpop-caret { width: 15px; height: 15px; fill: none; stroke: var(--muted); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .15s; }
.fpop.open .fpop-caret { transform: rotate(180deg); }
.fpop-panel { display: none; position: absolute; top: calc(100% + 8px); left: 0; z-index: 30; width: max-content; min-width: 240px; max-width: min(380px, calc(100vw - 32px)); background: var(--s1); border: 1px solid var(--line); border-radius: 16px; padding: 16px; box-shadow: 0 20px 44px rgba(0,0,0,.6); }
.fpop.open .fpop-panel { display: block; animation: qs-in .14s ease-out; }
.fpop-panel.right { left: auto; right: 0; }
.fpop-panel > .label { display: none; }
.fsep { width: 1px; height: 22px; background: var(--line); margin: 0 4px; }
.ftoggles .label { display: none; }
.factions { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.factions:has(.reset[hidden]) { display: none; }
.factions .fdone { display: none; }
.reset { padding: 0; }
.tpills, .fchips { display: flex; flex-wrap: wrap; gap: 6px; }

/* Menu de tri */
.sortbox { position: relative; }
.sort-btn { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; border: 1px solid var(--line); background: var(--s1); border-radius: 12px; color: var(--ink); font: inherit; font-size: 13.5px; white-space: nowrap; cursor: pointer; transition: border-color .12s; }
.sort-btn:hover, .sortbox.open .sort-btn { border-color: var(--acc); }
.sort-btn svg, .sort-opt svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.sort-btn > svg:first-child { color: var(--acc); }
.sort-pre { color: var(--muted); }
.sort-cur { font-weight: 600; }
.sort-caret { width: 15px !important; height: 15px !important; color: var(--muted); transition: transform .15s; }
.sortbox.open .sort-caret { transform: rotate(180deg); }
.sort-menu { display: none; position: absolute; right: 0; top: calc(100% + 8px); z-index: 30; min-width: 230px; background: var(--s1); border: 1px solid var(--line); border-radius: 14px; padding: 6px; box-shadow: 0 20px 44px rgba(0,0,0,.6); }
.sortbox.open .sort-menu { display: block; animation: qs-in .14s ease-out; }
.sort-opt { display: flex; align-items: center; gap: 11px; width: 100%; padding: 10px 12px; border: 0; background: none; border-radius: 10px; color: var(--muted); font: inherit; font-size: 14px; font-weight: 500; text-align: left; cursor: pointer; }
.sort-opt:hover { background: var(--s2); color: var(--ink); }
.sort-opt.active { color: var(--ink); background: rgba(200,245,60,.08); font-weight: 600; }
.sort-opt.active > svg:first-child { color: var(--acc); }
.sort-check { margin-left: auto; color: var(--acc); opacity: 0; }
.sort-opt.active .sort-check { opacity: 1; }
.fchip { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 34px; padding: 0 13px; border: 1px solid var(--line); background: var(--s2); border-radius: 999px; color: var(--muted); font-size: 13px; font-weight: 600; white-space: nowrap; cursor: pointer; transition: border-color .12s, color .12s, background .12s; }
.fchip:hover:not(:disabled) { border-color: #3a3a42; color: var(--ink); }
.fchip.active { background: var(--acc); border-color: var(--acc); color: var(--acc-ink); }
.fchip:disabled { opacity: .38; cursor: default; }
.fchip small { font-size: 11.5px; font-weight: 600; opacity: .65; }
#sizes .fchip { min-width: 44px; padding: 0 10px; }
.fchip.fmore { border-style: dashed; background: none; color: var(--acc); }
.fdot { width: 13px; height: 13px; border-radius: 50%; border: 1px solid rgba(255,255,255,.28); flex: none; }
.fdot.metal { background: linear-gradient(135deg, #e3e3e3 0 50%, #d4af37 50% 100%); }
.fchip.active .fdot { border-color: rgba(0,0,0,.35); }

@media (max-width: 860px) {
  .topnav { margin-left: 0; }
  .topnav a { padding: 8px; font-size: 13px; }
  .top-in { flex-wrap: wrap; height: auto; padding-top: 10px; padding-bottom: 10px; row-gap: 8px; }
  .qsearch { order: 5; flex-basis: 100%; max-width: none; margin-left: 0; }
  .qsearch kbd { display: none; }
  .hero { grid-template-columns: 1fr; padding-top: 34px; gap: 10px; }
  .hero-art { max-width: 360px; justify-self: center; }
  .hero-stats { gap: 22px; }
  .steps { grid-template-columns: 1fr; }
  .rail { grid-auto-columns: 165px; }
}

@media (max-width: 860px) {
  .cta { display: none; }
  .intro { flex-direction: column; align-items: flex-start; padding-top: 34px; }
  .stat { text-align: left; }
  .catmenu { display: none; }       /* pas de survol sur mobile : les sous-catégories passent en puces */
  .cattop { min-width: 78px; }
  .results { padding-top: 20px; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .card-body { padding: 10px; }
}

/* =====================================================================
   ADMIN
   ===================================================================== */
.admin { min-height: 100vh; }
.auth-card { max-width: 410px; margin: 10vh auto; background: var(--s1); border: 1px solid var(--line); border-radius: 22px; padding: 30px; }
.auth-card h1 { font-family: var(--head); font-size: 26px; margin: 18px 0 4px; }
.auth-card p { color: var(--muted); margin: 0 0 20px; }
.stay-check { display: flex; align-items: center; gap: 10px; margin: 2px 0 16px; font-size: 14px; color: var(--muted); cursor: pointer; }
.stay-check input { width: 18px; height: 18px; margin: 0; accent-color: var(--acc); cursor: pointer; }
.qr { display: grid; place-items: center; background: #fff; border-radius: 14px; padding: 14px; margin-bottom: 12px; }
.qr img { width: 200px; height: 200px; }
.secret { font-family: ui-monospace, monospace; font-size: 12px; word-break: break-all; background: var(--s2); padding: 8px 10px; border-radius: 8px; margin-bottom: 16px; }

.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field > span { font-size: 13px; font-weight: 600; }
.field small { color: var(--muted); font-size: 12px; }
.field small.ok { color: var(--acc); }
.field small.err { color: #ff6b6b; }
.input, .field input, .field select, .field textarea { font: inherit; color: var(--ink); border: 1px solid var(--line); background: var(--s2); border-radius: 10px; padding: 10px 12px; width: 100%; }
.field input:focus, .field select:focus, .field textarea:focus, .input:focus { outline: none; border-color: var(--acc); }
.field textarea { min-height: 90px; resize: vertical; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.checks { display: flex; flex-wrap: wrap; gap: 18px; margin: 4px 0 16px; }
.checks label { display: flex; align-items: center; gap: 7px; font-weight: 600; font-size: 14px; }
input[type="checkbox"] { accent-color: var(--acc); width: 16px; height: 16px; }

.star-input { display: flex; gap: 4px; align-items: center; }
.star-input button { border: 0; background: none; padding: 2px; }
.star-input button i { display: block; width: 26px; height: 26px; background: var(--s3); clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); }
.star-input button.on i { background: var(--star); }
.star-input small { margin-left: 8px; }

.btn { border: 1px solid var(--line); background: var(--s2); border-radius: 10px; padding: 9px 15px; font-weight: 600; text-decoration: none; display: inline-block; }
.btn:hover { border-color: #44444d; }
.btn-primary { background: var(--acc); color: var(--acc-ink); border-color: var(--acc); }
.btn-primary:hover { filter: brightness(1.08); border-color: var(--acc); }
.btn-danger { color: #ff6b6b; }
.btn-block { width: 100%; margin-top: 4px; }
.btn-sm { padding: 5px 10px; font-size: 12px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.msg { font-size: 13px; margin: 10px 0 0; min-height: 18px; }
.msg.err { color: #ff6b6b; }
.msg.ok { color: var(--acc); }

.admin-head { border-bottom: 1px solid var(--line); background: var(--s1); position: sticky; top: 0; z-index: 10; }
.admin-bar { display: flex; align-items: center; gap: 16px; height: 64px; }
.admin-bar .spacer { flex: 1; }
.admin-tabs { display: flex; gap: 4px; }
.admin-tab { border: 0; background: none; padding: 8px 14px; border-radius: 10px; font-weight: 600; color: var(--muted); }
.admin-tab.active { background: var(--s3); color: var(--ink); }
.admin-main { padding: 28px 22px 60px; }
.toolbar { display: flex; gap: 10px; align-items: center; margin-bottom: 16px; flex-wrap: wrap; }
.toolbar .input { max-width: 320px; }
.toolbar select { font: inherit; color: var(--ink); background: var(--s2); border: 1px solid var(--line); border-radius: 10px; padding: 9px 10px; }
.muted { color: var(--muted); font-size: 14px; }

.table { width: 100%; border-collapse: collapse; background: var(--s1); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.table th, .table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); font-size: 14px; vertical-align: middle; }
.table th { font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); background: var(--s2); }
.table tr:last-child td { border-bottom: 0; }
.table .mini { width: 44px; height: 44px; border-radius: 8px; background: var(--s2); object-fit: contain; display: grid; place-items: center; color: var(--muted); }
.table .actions { display: flex; gap: 6px; justify-content: flex-end; }
.tag { display: inline-block; font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 5px; background: var(--s3); margin-right: 3px; }
.tag.off { background: #3a1d1d; color: #ff8a8a; }
.indent { padding-left: 30px !important; color: var(--muted); }

.panel { background: var(--s1); border: 1px solid var(--line); border-radius: 18px; padding: 22px; max-width: 780px; }
.panel + .panel { margin-top: 18px; }
.link-row input { flex: 1; min-width: 0; }
.panel h2 { font-family: var(--head); margin: 0 0 18px; }
.panel > .muted { margin: -8px 0 18px; }
.bulk-area { width: 100%; font: 13px/1.5 ui-monospace, Consolas, monospace; color: var(--ink); background: var(--s2); border: 1px solid var(--line); border-radius: 10px; padding: 12px; resize: vertical; min-height: 150px; }
.bulk-area:focus { outline: none; border-color: var(--acc); }
.bulk-list { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 6px; }
.bulk-list:empty { display: none; }
.bulk-list li { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--s2); font-size: 13px; }
.bulk-list li.busy { border-color: var(--acc); }
.bulk-list li.ok .bulk-state { color: var(--acc); }
.bulk-list li.err .bulk-state { color: #ff6b6b; }
.bulk-thumb { flex: none; width: 40px; height: 40px; border-radius: 8px; background: var(--s3); object-fit: contain; }
.bulk-title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.bulk-state { flex: none; display: flex; align-items: center; gap: 8px; color: var(--muted); max-width: 50%; text-align: right; }
.bulk-list li.busy .bulk-state::before { content: ""; width: 12px; height: 12px; border: 2px solid var(--acc); border-right-color: transparent; border-radius: 50%; animation: bulkspin .8s linear infinite; }
@keyframes bulkspin { to { transform: rotate(360deg); } }
.panel-wide { max-width: none; }
.panel-wide .table { margin-top: 14px; }
label.btn { cursor: pointer; }
.dead-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; padding: 12px 14px; border: 1px dashed #5a2a2a; border-radius: 12px; color: #ff9b9b; font-size: 14px; }
.bulk-done { margin-top: 14px; }
.bulk-done:empty { display: none; }
.uploads { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.up-item { position: relative; width: 96px; height: 96px; border-radius: 10px; overflow: hidden; background: repeating-conic-gradient(#2a2a30 0 25%, #1f1f24 0 50%) 50% / 14px 14px; }
.up-item img { width: 100%; height: 100%; object-fit: contain; }
.up-item .x { position: absolute; top: 3px; right: 3px; width: 22px; height: 22px; border-radius: 50%; border: 0; background: rgba(0,0,0,.7); color: #fff; font-size: 12px; line-height: 1; }
.up-item.busy::after { content: "…"; position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0,0,0,.6); font-size: 22px; }
.up-add { width: 96px; height: 96px; border: 2px dashed var(--line); border-radius: 10px; display: grid; place-items: center; color: var(--muted); font-size: 26px; cursor: pointer; }
.up-add:hover { border-color: var(--acc); color: var(--acc); }
.up-add input { display: none; }
.link-row { display: flex; gap: 8px; }
.link-row input { flex: 1; }
.link-row .btn { flex: none; white-space: nowrap; }
.field small.ok, .field small.err { word-break: break-all; }
.cpick-tops { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 6px; }
.cpick-top { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 6px; border: 1px solid var(--line); background: var(--s2); border-radius: 12px; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.cpick-top .ico { width: 26px; height: 26px; }
.cpick-top:hover { color: var(--ink); border-color: #44444d; }
.cpick-top.active { color: var(--acc); border-color: var(--acc); background: rgba(200,245,60,.06); }
.cpick-subs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.cpick-subs .chip { cursor: pointer; font-weight: 600; color: var(--muted); }
.cpick-subs .chip.active { background: var(--acc); color: var(--acc-ink); border-color: var(--acc); }
.cpick-top { position: relative; cursor: pointer; }
.cpick-top.open { color: var(--ink); border-color: #5a5a64; box-shadow: inset 0 -2px 0 var(--acc); }
.cpick-n { position: absolute; top: -7px; right: -7px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--acc); color: var(--acc-ink); font-size: 12px; font-weight: 800; display: grid; place-items: center; box-shadow: 0 0 0 3px var(--s1); }
.cpick-subs .chip-all { border-style: dashed; }
.cpick-sel { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); }
.cpick-sel small { width: 100%; }
.cpick-chosen { padding: 0; overflow: hidden; }
.cpick-chosen.main { border-color: var(--acc); }
.cpick-chosen button { background: none; border: 0; color: inherit; font: inherit; font-size: 12.5px; cursor: pointer; }
.cpick-name { padding: 5px 4px 5px 11px; }
.cpick-x { padding: 5px 10px 5px 6px; color: var(--muted) !important; }
.cpick-x:hover { color: var(--ink) !important; }
.colors-ed { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.color-row { display: flex; align-items: center; gap: 8px; width: 100%; }
.color-row .cdot { width: 36px; height: 36px; border-radius: 8px; }
.color-row input { flex: 1; }
.color-item { width: 100%; display: flex; flex-direction: column; gap: 8px; }
.color-link { display: flex; flex-direction: column; align-items: center; gap: 2px; background: none; border: 1px dashed var(--line); border-radius: 10px; padding: 4px; cursor: pointer; color: var(--muted); flex: none; }
.color-link small { font-size: 10.5px; line-height: 1; }
.color-link:hover, .color-link.open { border-color: var(--acc); color: var(--ink); }
.color-photos { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px; background: var(--s2); border: 1px solid var(--line); border-radius: 12px; }
.cp-photo { position: relative; width: 64px; height: 64px; padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; cursor: pointer; background: var(--s1); }
.cp-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cp-photo span { position: absolute; left: 3px; bottom: 3px; font-size: 10px; background: rgba(0,0,0,.7); color: #fff; border-radius: 6px; padding: 1px 5px; }
.cp-photo:hover { border-color: var(--line); }
.cp-photo.on { border-color: var(--acc); }
.size-pick { display: flex; flex-direction: column; gap: 8px; }
.size-row { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: thin; padding-bottom: 2px; }
.size-row .chip { flex: none; cursor: pointer; min-width: 44px; justify-content: center; color: inherit; font: inherit; font-size: 13px; }
.size-row .chip.active { background: var(--acc); border-color: var(--acc); color: var(--acc-ink); font-weight: 600; }
.size-other { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.size-other input { flex: 1; min-width: 180px; }
.swatch.active { border-color: var(--acc); }
.form-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 8px; }

@media (max-width: 760px) {
  .row { grid-template-columns: 1fr; }
  .table .hide-sm, .hide-sm { display: none; }
}

/* =====================================================================
   AJOUTS v3 : badges, collections, partage, recherche, pied de page
   ===================================================================== */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Badges sur les cartes */
.flags { position: absolute; top: 10px; left: 10px; display: flex; flex-direction: column; align-items: flex-start; gap: 5px; z-index: 1; }
.flags .flag { position: static; }
.flag-new { background: var(--bg); color: var(--acc); box-shadow: inset 0 0 0 1px var(--acc); }
.d-top .flag-new { position: static; flex: none; }
.rank { position: absolute; z-index: 2; top: 8px; left: 8px; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--acc); color: var(--acc-ink); font-family: var(--head); font-weight: 700; font-size: 15px; box-shadow: 0 6px 16px rgba(0,0,0,.4); }
.rail .card { position: relative; }
.rail .card .rank ~ .card-img .flags { top: 46px; }

/* Collections dans la barre */
.catsep { flex: none; width: 1px; margin: 14px 6px; background: var(--line); }
.cattop-col .ico { color: var(--acc); }

/* Fiche produit : badge + partage */
.d-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 22px; }
.d-share { display: flex; gap: 8px; justify-content: center; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.pill { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: var(--s2); border-radius: 999px; padding: 9px 16px; font-size: 13.5px; font-weight: 600; transition: border-color .15s, color .15s; }
.pill .ico { width: 17px; height: 17px; stroke-width: 2; }
.pill:hover { border-color: var(--acc); }
.pill.done { border-color: var(--acc); color: var(--acc); }

/* Recherche : suggestions sous la barre */
.qsearch { position: relative; }
.qfield { position: relative; flex: 1; min-width: 0; display: flex; }
.qfield input { position: relative; z-index: 1; -webkit-appearance: none; appearance: none; }
.qghost { position: absolute; inset: 0; padding: 11px 0; white-space: pre; overflow: hidden; pointer-events: none; color: var(--muted); opacity: .65; }
.qghost i { font-style: normal; color: transparent; }
.qghost b { font-weight: inherit; }
.qsugg { position: absolute; left: -1px; right: -1px; top: calc(100% + 8px); z-index: 60; background: rgba(20,20,23,.98); backdrop-filter: blur(16px); border: 1px solid var(--line); border-radius: 14px; padding: 6px; box-shadow: 0 24px 60px rgba(0,0,0,.55); max-height: min(70vh, 520px); overflow-y: auto; animation: qs-in .14s ease-out; }
@keyframes qs-in { from { opacity: 0; transform: translateY(-4px); } }
.qs-item { display: flex; align-items: center; gap: 12px; padding: 7px 8px; border-radius: 10px; text-decoration: none; color: var(--ink); transition: background .12s; }
.qs-item.active, .qs-item:hover { background: var(--s3); }
.qs-thumb { flex: none; width: 46px; height: 46px; border-radius: 9px; overflow: hidden; display: grid; place-items: center; background: radial-gradient(circle at 50% 35%, #2c2c33, var(--s2) 70%); font: 700 12px var(--head); color: var(--muted); }
.qs-thumb img { width: 100%; height: 100%; object-fit: contain; padding: 3px; }
.qs-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.qs-name { font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qs-name mark { background: none; color: var(--acc); }
.qs-meta { display: flex; align-items: center; gap: 6px; }
.qs-meta .stars i { width: 10px; height: 10px; }
.qs-meta small { color: var(--muted); font-size: 11.5px; }
.qs-price { flex: none; font-family: var(--head); font-weight: 700; font-size: 14px; }
.qs-all { display: flex; justify-content: space-between; align-items: center; margin-top: 4px; padding: 11px 10px; border-top: 1px solid var(--line); border-radius: 0 0 10px 10px; text-decoration: none; color: var(--acc); font-weight: 600; font-size: 13.5px; }
.qs-all.active, .qs-all:hover { background: var(--s3); border-radius: 10px; }
.qs-empty { margin: 0; padding: 18px 12px; text-align: center; color: var(--muted); font-size: 14px; }

/* Pied de page */
.foot-in { display: flex; align-items: center; justify-content: space-between; gap: 14px 28px; flex-wrap: wrap; }
.foot-in p { margin: 0; }
.foot-links { display: flex; gap: 6px 20px; flex-wrap: wrap; }
.foot-links a { text-decoration: none; color: var(--muted); font-weight: 500; }
.foot-links a:hover { color: var(--acc); }

@media (max-width: 860px) {
  .qsugg { max-height: 60vh; }
  .qs-price { font-size: 13px; }
}

/* =====================================================================
   v4 : réseaux, vendeurs, finitions
   ===================================================================== */
.socials { display: flex; gap: 6px; flex: none; }
.soc { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: var(--s1); border: 1px solid var(--line); transition: background .15s, border-color .15s, transform .15s; }
.soc svg { width: 18px; height: 18px; fill: var(--acc); transition: fill .15s; }
.soc:hover { background: var(--acc); border-color: var(--acc); transform: translateY(-1px); }
.soc:hover svg { fill: var(--acc-ink); }
.cta { white-space: nowrap; }

/* Tuiles catégories de l'accueil */
.cat-tile { position: relative; overflow: hidden; }
.cat-tile .ico { width: 44px; height: 44px; padding: 9px; border-radius: 13px; background: rgba(200,245,60,.1); stroke-width: 1.7; transition: background .2s, color .2s; }
.cat-tile::after { content: "→"; position: absolute; right: 16px; top: 18px; color: var(--acc); font-weight: 700; opacity: 0; transform: translateX(-6px); transition: opacity .2s, transform .2s; }
.cat-tile:hover::after { opacity: 1; transform: none; }
.cat-tile:hover .ico { background: var(--acc); color: var(--acc-ink); }
.cattop .ico { stroke-width: 1.7; }

/* Fiche produit : vendeur */
.d-seller { display: flex; align-items: center; gap: 8px; margin: -4px 0 14px; padding: 10px 12px; border-radius: 12px; background: var(--s2); border: 1px solid var(--line); text-decoration: none; font-size: 14px; transition: border-color .15s; }
.d-seller .ico { width: 18px; height: 18px; color: var(--acc); }
.d-seller span { color: var(--muted); }
.d-seller em { margin-left: auto; font-style: normal; font-size: 12.5px; font-weight: 600; color: var(--acc); }
.d-seller:hover { border-color: var(--acc); }

.btn-big.sm { padding: 11px 16px; font-size: 14px; border-radius: 12px; }
.btn-ghost.sm { padding: 11px 16px; font-size: 14px; border-radius: 12px; }

/* Page Vendeurs */
.v-hero { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; flex-wrap: wrap; padding: 60px 22px 34px; }
.v-hero h1 { font-family: var(--head); font-weight: 700; font-size: clamp(40px, 6vw, 76px); line-height: .95; letter-spacing: -2.4px; margin: 0 0 16px; max-width: 14ch; }
.v-hero .hero-sub { margin: 0; }
.v-stats { display: flex; gap: 12px; }
.v-stats div { min-width: 130px; padding: 16px 18px; border-radius: var(--r); border: 1px solid var(--line); background: var(--s1); }
.v-stats strong { display: block; font-family: var(--head); font-size: 36px; line-height: 1; color: var(--acc); }
.v-stats span { color: var(--muted); font-size: 13px; }
.v-filters { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 18px; }
.v-filters .chip { cursor: pointer; font-weight: 600; color: var(--muted); }
.v-filters .chip.active { background: var(--acc); color: var(--acc-ink); border-color: var(--acc); }
.v-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 16px; }
.seller { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 22px; border-radius: 22px; border: 1px solid var(--line); background: linear-gradient(160deg, var(--s2), var(--s1) 55%); overflow: hidden; transition: border-color .2s, transform .2s; }
.seller::before { content: ""; position: absolute; right: -70px; top: -70px; width: 180px; height: 180px; border-radius: 50%; background: radial-gradient(circle, rgba(200,245,60,.14), transparent 70%); pointer-events: none; }
.seller:hover { border-color: #3d3d46; transform: translateY(-3px); }
.seller.featured { border-color: rgba(200,245,60,.45); }
.seller-top { display: flex; align-items: center; gap: 14px; }
.seller-logo { flex: none; width: 64px; height: 64px; border-radius: 18px; overflow: hidden; display: grid; place-items: center; background: var(--acc); color: var(--acc-ink); font: 700 22px var(--head); box-shadow: 0 10px 24px rgba(0,0,0,.35); }
.seller-logo img { width: 100%; height: 100%; object-fit: cover; }
.seller-id { min-width: 0; }
.seller-id h2 { font-family: var(--head); font-size: 22px; letter-spacing: -.4px; margin: 0 0 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.seller-badges { display: flex; gap: 6px; flex-wrap: wrap; }
.seller-badges .flag { position: static; }
.plat { font-size: 11px; font-weight: 700; padding: 4px 9px; border-radius: 999px; background: var(--s3); color: var(--ink); }
.plat-weidian { background: rgba(255,90,90,.16); color: #ff8c8c; }
.plat-taobao { background: rgba(255,140,40,.16); color: #ffad66; }
.plat-1688 { background: rgba(255,170,0,.14); color: #ffc85a; }
.seller-desc { margin: 0; color: #c9c9cf; font-size: 14.5px; }
.seller .chips .chip { font-size: 12px; }
.seller-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.seller-thumb { aspect-ratio: 1; padding: 0; border-radius: 12px; border: 1px solid var(--line); background: radial-gradient(circle at 50% 35%, #2c2c33, var(--s2) 70%); overflow: hidden; transition: border-color .15s; }
.seller-thumb img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.seller-thumb:hover { border-color: var(--acc); }
.seller-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: auto; padding-top: 4px; }
.v-empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 60px 20px; border: 1px dashed var(--line); border-radius: 24px; }
.v-empty h2 { font-family: var(--head); font-size: 26px; margin: 6px 0 0; }
.v-empty p { color: var(--muted); margin: 0 0 8px; max-width: 46ch; }
.v-empty-ico .ico { width: 54px; height: 54px; padding: 12px; border-radius: 16px; color: var(--acc); background: rgba(200,245,60,.1); }
.btn-discord { display: inline-flex; gap: 8px; align-items: center; text-decoration: none; font-weight: 700; font-size: 14px; color: #fff; background: #5865f2; padding: 11px 18px; border-radius: 12px; }
.btn-discord:hover { filter: brightness(1.1); }
.v-tip { margin-top: 26px; padding: 20px 22px; border-radius: var(--r); border: 1px dashed rgba(200,245,60,.4); display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.v-tip p { margin: 0; color: var(--muted); max-width: 80ch; }

@media (max-width: 1180px) {
  .qsearch kbd { display: none; }
  .cta-coupon { display: none; }
}
@media (max-width: 860px) {
  .top { position: relative; }
  .top-in { display: grid; grid-template-columns: auto 1fr auto; grid-template-areas: "brand . soc" "nav nav nav" "search search search"; align-items: center; gap: 8px; }
  .top-in .brand { grid-area: brand; }
  .top-in .socials { grid-area: soc; }
  .top-in .topnav { grid-area: nav; overflow-x: auto; scrollbar-width: none; margin: 0 -4px; }
  .top-in .qsearch { grid-area: search; }
  .soc { width: 36px; height: 36px; }
  .v-grid { grid-template-columns: 1fr; }
  .v-hero { padding-top: 34px; }
  .v-stats div { min-width: 0; flex: 1; }
}

/* =====================================================================
   PAGES DE TEXTE (mentions légales)
   ===================================================================== */
.legal { max-width: 760px; padding: 56px 22px 20px; }
.legal h1 { font-family: var(--head); font-size: clamp(34px, 5vw, 54px); letter-spacing: -1.5px; line-height: 1; margin: 0 0 10px; }
.legal .lead { color: var(--muted); margin: 0 0 36px; }
.legal section { border-top: 1px solid var(--line); padding: 22px 0; }
.legal h2 { font-family: var(--head); font-size: 20px; margin: 0 0 10px; display: flex; gap: 12px; align-items: baseline; }
.legal h2 span { color: var(--acc); font-size: 14px; }
.legal p, .legal li { color: #c9c9cf; margin: 0 0 8px; }
.legal dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 0; }
.legal dt { color: var(--muted); }
.legal dd { margin: 0; }
.legal a { color: var(--acc); }

/* =====================================================================
   v5 : en-tête aéré, en-tête qui se cache au défilement, mobile complet
   ===================================================================== */
body { overflow-x: clip; }
/* La barre suit le défilement (transform posé en JS) ; .snap = calage final animé. */
.top { transition: box-shadow .25s, background-color .25s; will-change: transform; }
.top.snap { transition: transform .38s cubic-bezier(.22,1,.36,1), box-shadow .25s, background-color .25s; }
.top.scrolled { box-shadow: 0 14px 34px rgba(0,0,0,.4); background-color: rgba(12,12,14,.9); }
.top.hide { box-shadow: none; }
.top.hide .catmenu { display: none; }

/* Ordinateur : 3 groupes bien séparés (logo + menu · recherche · réseaux + compte) */
.top-in { height: 72px; gap: 0; }
.top-in .brand { margin-right: 26px; flex: none; }
.topnav { margin-left: 0; gap: 2px; flex: none; }
.topnav a { padding: 8px 13px; }
.top-in .qsearch { margin: 0 22px 0 auto; max-width: 400px; }
.top-in .socials { gap: 8px; padding-right: 18px; margin-right: 18px; border-right: 1px solid var(--line); }
.cattop { min-width: 96px; }
.ftoggle { display: none; }
.results-tools { display: flex; gap: 8px; align-items: center; }
.tabbar { display: none; }
.buy { position: sticky; bottom: 14px; z-index: 3; box-shadow: 0 14px 34px rgba(0,0,0,.5); }

@media (max-width: 1240px) {
  .top-in .brand { margin-right: 14px; }
  .topnav a { padding: 8px 9px; }
  .top-in .qsearch { margin-right: 14px; max-width: 300px; }
  .top-in .socials { padding-right: 12px; margin-right: 12px; }
}

/* Tablette et mobile : logo + réseaux, recherche pleine largeur, menu en bas de l'écran */
@media (max-width: 1024px) {
  .wrap { padding: 0 16px; }
  .top { position: sticky; }
  .top-in { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "brand soc" "search search"; height: auto; gap: 10px; padding-top: 10px; padding-bottom: 12px; }
  .top-in .brand { grid-area: brand; margin: 0; font-size: 19px; }
  .top-in .brand-tag { width: 46px; height: 31px; }
  .top-in .socials { grid-area: soc; border: 0; padding: 0; margin: 0; }
  .top-in .qsearch { grid-area: search; margin: 0; max-width: none; }
  .top-in .topnav, .top-in .cta { display: none; }
  .qsearch input { padding: 10px 0; font-size: 16px; }   /* 16 px : pas de zoom auto sur iPhone */
  .qghost { padding: 10px 0; font-size: 16px; }
  .catmenu { display: none; }
  .cattop { min-width: 70px; padding: 9px 8px 8px; gap: 4px; font-size: 11.5px; }
  .cattop .ico { width: 23px; height: 23px; }
  .catsep { margin: 12px 4px; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }

  body.has-tabbar { padding-bottom: calc(74px + env(safe-area-inset-bottom)); }
  .tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 35; display: grid; grid-template-columns: repeat(5, 1fr); align-items: end; background: rgba(14,14,17,.94); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
  .tab { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 5px 0 3px; text-decoration: none; color: var(--muted); font-size: 11px; font-weight: 600; -webkit-tap-highlight-color: transparent; }
  .tab .ico { width: 24px; height: 24px; stroke-width: 1.8; }
  .tab.active { color: var(--acc); }
  .tab-cta b { display: grid; place-items: center; width: 48px; height: 48px; margin-top: -20px; border-radius: 16px; background: var(--acc); color: var(--acc-ink); box-shadow: 0 8px 22px rgba(200,245,60,.28), 0 0 0 5px var(--bg); }
  .tab-cta .ico { stroke-width: 2.1; }
  .tab-cta span { color: var(--acc); font-weight: 800; }
  .has-tabbar .g-float { bottom: calc(86px + env(safe-area-inset-bottom)); }

  /* Accueil */
  .hero { padding: 26px 16px 6px; gap: 6px; }
  .hero h1 { font-size: clamp(40px, 11vw, 64px); letter-spacing: -1.6px; }
  .hero-sub { font-size: 16px; margin-bottom: 22px; }
  .hero-art { max-width: 300px; }
  .block { padding-top: 40px; }
  .block-head h2 { font-size: 24px; }
  .band { padding: 24px; border-radius: 20px; margin-top: 40px; }
  .band h2 { font-size: 24px; }
  .foot { margin-top: 56px; }
}

@media (max-width: 760px) {
  /* Catalogue : titre, puis [Filtres] [Tri] côte à côte ; filtres repliés */
  .results { padding-top: 16px; }
  .results-head { margin-bottom: 12px; gap: 10px; }
  .results-head > div:first-child { width: 100%; }
  .results-head .h2 { font-size: 26px; }
  .results-tools { width: 100%; }
  .results-tools > * { flex: 1; min-width: 0; }
  .ftoggle { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; border: 1px solid var(--line); background: var(--s1); border-radius: 12px; font-size: 14.5px; font-weight: 600; color: var(--ink); }
  .ftoggle svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
  .ftoggle.active { border-color: var(--acc); color: var(--acc); }
  .ftoggle b { display: grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--acc); color: var(--acc-ink); font-size: 12px; }
  .sort-btn { width: 100%; height: 44px; justify-content: center; font-size: 14.5px; }
  .sort-pre { display: none; }
  .sort-menu { min-width: 220px; }
  /* Mobile : pas de menus, le panneau « Filtres » montre tout, une section sous l'autre */
  .filterbar { display: none; }
  .filterbar.open { display: flex; flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: 0; background: var(--s1); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; animation: qs-in .16s ease-out; }
  .fpop-btn, .fsep { display: none; }
  .fpop-panel, .fpop.open .fpop-panel { display: block; position: static; width: auto; min-width: 0; max-width: none; padding: 0; border: 0; background: none; box-shadow: none; animation: none; }
  .frow, .frow1, .frow2 { display: contents; }
  .frow1 .price { max-width: none; }
  .frow1 .range { height: 28px; }
  .frow1 .qfilter { display: block; }
  .frow1 .qfilter .label { margin: 0 0 10px; }
  .fpop-panel > .label { display: block; }
  .qfilter, .fpop, .ftoggles { border-top: 1px solid var(--line); margin-top: 16px; padding-top: 16px; }
  .ftoggles .label { display: block; }
  .frow2 .ftoggles .fchip { height: auto; font-size: 14px; }
  .qmin .qbtn { flex: 1; min-width: 0; padding: 7px 0; font-size: 14px; }
  .qmin .qbtn small { font-size: 10px; }
  .fgroup .label, .qfilter .label { display: block; margin: 0 0 10px; }
  /* Filtres à puces : une ligne qui défile (afficher, taille, couleur) */
  .tpills, .fsizes .fchips, .fcolors .fchips { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px; padding: 0 16px 2px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .tpills::-webkit-scrollbar, .fchips::-webkit-scrollbar { display: none; }
  .fchip { min-height: 40px; font-size: 14px; flex: none; }
  /* Bas du panneau : bouton « Voir N résultats » collé au-dessus de la barre d'onglets */
  .factions, .factions:has(.reset[hidden]) { display: flex; justify-content: space-between; gap: 14px; position: sticky; bottom: calc(80px + env(safe-area-inset-bottom)); z-index: 2; margin: 16px -16px -16px; padding: 12px 16px; background: var(--s1); border-top: 1px solid var(--line); border-radius: 0 0 var(--r) var(--r); }
  .factions .fdone { display: inline-flex; flex: 1; justify-content: center; height: 46px; max-width: 260px; margin-left: auto; }
  .factions .reset { padding: 0; }
  .count { margin-bottom: 10px; }

  /* Cartes : plus compactes, lisibles à 2 par ligne */
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .card { border-radius: 14px; }
  .card:hover { transform: none; }
  .card-img img { padding: 8px; }
  .flags { top: 7px; left: 7px; gap: 4px; }
  .flag { font-size: 10px; padding: 3px 7px; }
  .flag-qc { top: 7px; right: 7px; }
  .card-body { padding: 9px 10px 11px; gap: 4px; }
  .card-title { font-size: 13.5px; }
  .card-price { font-size: 15px; }
  .card-cat { font-size: 11px; }
  .stars i { width: 10px; height: 10px; }
  .dots .cdot { width: 12px; height: 12px; }

  /* Accueil, vendeurs, pied de page */
  .hero-cta > * { flex: 1; justify-content: center; }
  .hero-stats { gap: 18px; margin-top: 28px; }
  .hero-stats strong { font-size: 28px; }
  .cat-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cat-tile { padding: 14px; }
  .rail { grid-auto-columns: 158px; gap: 10px; }
  .v-hero { padding: 28px 16px 22px; }
  .seller { padding: 18px; border-radius: 18px; }
  .foot-in { flex-direction: column; align-items: flex-start; }
  .foot-links { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; }
}

@media (max-width: 360px) {
  .grid { gap: 8px; }
  .card-body { padding: 8px; }
  .tab { font-size: 10px; }
}

/* =====================================================================
   v6 : fiche produit en fenêtre (ordinateur) / panneau du bas (mobile)
   ===================================================================== */
.drawer-bg { background: rgba(6,6,8,.62); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: bg-in .25s ease-out; }
@keyframes bg-in { from { opacity: 0; } }
.drawer {
  top: 50%; left: 50%; right: auto; bottom: auto;
  width: min(1000px, calc(100vw - 48px)); height: min(680px, calc(100dvh - 64px));
  padding: 0; border: 1px solid var(--line); border-radius: 26px; overflow: hidden;
  display: flex; flex-direction: column; background: var(--s1);
  box-shadow: 0 40px 120px rgba(0,0,0,.65);
  opacity: 0; visibility: hidden; transform: translate(-50%, -47%) scale(.965);
  transition: opacity .22s ease, transform .32s cubic-bezier(.2,.9,.25,1), visibility 0s .32s;
}
.drawer.open { opacity: 1; visibility: visible; transform: translate(-50%, -50%); transition: opacity .2s ease, transform .36s cubic-bezier(.2,.9,.25,1), visibility 0s; }
.drawer-close { position: absolute; top: 14px; right: 14px; float: none; z-index: 6; width: 40px; height: 40px; display: grid; place-items: center; font-size: 15px; background: rgba(28,28,33,.82); backdrop-filter: blur(8px); transition: background .15s, border-color .15s, transform .15s; }
.drawer-close:hover { background: var(--s3); border-color: #44444d; transform: rotate(90deg); }
#drawer-body { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
.d-gal { min-height: 0; overflow-y: auto; padding: 18px; background: var(--bg); border-right: 1px solid var(--line); display: flex; flex-direction: column; scrollbar-width: none; }
.d-gal::-webkit-scrollbar { display: none; }
.d-img { position: relative; flex: 1; min-height: 260px; aspect-ratio: auto; border-radius: 18px; }
.d-frame { position: absolute; inset: 0; display: grid; place-items: center; }
.d-frame img { width: 100%; height: 100%; object-fit: contain; padding: 22px; }
.d-frame img.fade { animation: img-in .28s ease-out; }
@keyframes img-in { from { opacity: 0; transform: scale(.985); } }
.d-nav { position: absolute; top: 50%; z-index: 2; width: 40px; height: 40px; margin-top: -20px; border-radius: 50%; border: 1px solid var(--line); background: rgba(20,20,23,.8); backdrop-filter: blur(6px); font-size: 24px; line-height: 1; padding-bottom: 3px; opacity: 0; transition: opacity .18s, background .15s; display: none; }
.d-img.multi .d-nav { display: block; }
.d-img:hover .d-nav, .d-nav:focus-visible { opacity: 1; }
.d-nav:hover { background: var(--acc); color: var(--acc-ink); border-color: var(--acc); }
.d-prev { left: 12px; } .d-next { right: 12px; }
.d-count { position: absolute; left: 12px; bottom: 12px; z-index: 2; font-size: 11.5px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: rgba(12,12,14,.75); color: var(--muted); }
.d-count:empty { display: none; }

/* Zoom : loupe au survol (ordi) + bouton loupe */
.d-frame { cursor: zoom-in; overflow: hidden; }
.d-frame img { transition: transform .12s ease-out; will-change: transform; }
.d-zoom { position: absolute; right: 12px; bottom: 12px; z-index: 2; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: rgba(20,20,23,.8); backdrop-filter: blur(6px); color: var(--ink); cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.d-zoom .ico { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.d-zoom:hover { background: var(--acc); color: var(--acc-ink); border-color: var(--acc); }

/* Visionneuse plein écran */
.zv { position: fixed; inset: 0; z-index: 100; background: rgba(6,6,8,.96); display: flex; align-items: center; justify-content: center; animation: zv-in .18s ease-out; }
.zv[hidden] { display: none; }
@keyframes zv-in { from { opacity: 0; } }
.zv-stage { position: absolute; inset: 0; display: grid; place-items: center; overflow: hidden; touch-action: none; cursor: zoom-in; user-select: none; -webkit-user-select: none; }
.zv.zoomed .zv-stage { cursor: grab; }
.zv.dragging .zv-stage { cursor: grabbing; }
.zv-img { max-width: min(92vw, 1400px); max-height: 84vh; max-height: 84dvh; object-fit: contain; transform-origin: center; pointer-events: none; -webkit-user-drag: none; }
.zv-top { position: absolute; left: 0; right: 0; top: 0; z-index: 2; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: calc(14px + env(safe-area-inset-top)) 16px 14px; pointer-events: none; }
.zv-top > * { pointer-events: auto; }
.zv-count { font-size: 13px; font-weight: 700; color: var(--muted); padding: 6px 12px; border-radius: 999px; background: rgba(28,28,33,.85); }
.zv-count:empty { visibility: hidden; }
.zv-tools { display: flex; align-items: center; gap: 4px; padding: 4px; border-radius: 999px; background: rgba(28,28,33,.85); border: 1px solid var(--line); }
.zv-btn { width: 40px; height: 40px; border: 0; border-radius: 50%; background: none; color: var(--ink); font-size: 20px; line-height: 1; cursor: pointer; }
.zv-btn:hover { background: var(--s3); }
.zv-btn:last-child { margin-left: 4px; background: var(--s2); font-size: 16px; }
.zv-pct { min-width: 54px; text-align: center; font-size: 13px; font-weight: 600; color: var(--acc); font-variant-numeric: tabular-nums; }
.zv-nav { position: absolute; top: 50%; z-index: 2; width: 50px; height: 50px; margin-top: -25px; border-radius: 50%; border: 1px solid var(--line); background: rgba(28,28,33,.85); color: var(--ink); font-size: 28px; line-height: 1; padding-bottom: 3px; cursor: pointer; display: none; }
.zv.multi .zv-nav { display: block; }
.zv-prev { left: 18px; }
.zv-next { right: 18px; }
.zv-nav:hover { background: var(--acc); color: var(--acc-ink); border-color: var(--acc); }
.zv-hint { position: absolute; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 2; margin: 0; padding: 7px 14px; border-radius: 999px; background: rgba(28,28,33,.85); color: var(--muted); font-size: 12.5px; white-space: nowrap; pointer-events: none; transition: opacity .2s; }
.zv.zoomed .zv-hint { opacity: 0; }
@media (max-width: 760px) {
  .zv-img { max-width: 100vw; max-height: 78vh; max-height: 78dvh; }
  .zv-nav { display: none !important; }
  .zv-hint { font-size: 11.5px; }
}
.d-img:not(.multi) .d-count { display: none; }
.d-gal .seg { align-self: flex-start; }
.d-strip { flex: none; scrollbar-width: none; padding-bottom: 2px; }
.d-strip::-webkit-scrollbar { display: none; }
.d-thumb { flex-basis: 58px; height: 58px; transition: border-color .15s, opacity .15s; opacity: .6; }
.d-thumb.active, .d-thumb:hover { opacity: 1; }
.d-info { min-height: 0; overflow-y: auto; padding: 26px 28px 0; scrollbar-width: thin; scrollbar-color: var(--s3) transparent; }
.d-info .d-top { padding-right: 46px; }
.d-info h3 { font-size: 28px; }
.d-info .buy { bottom: 16px; }
.d-share { padding-bottom: 22px; }

/* Photos QC : onglet vert + bouton bien visible dans la fiche + badge sur les cartes */
.seg-qc { display: flex; width: 100%; margin: 10px 0 0; padding: 4px; border-radius: 12px; border: 1px solid var(--line); }
.seg-qc button { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 9px 10px; font-size: 13.5px; border-radius: 9px; }
.seg-qc button .ico { width: 17px; height: 17px; stroke-width: 2; }
.seg-qc .tab-qc { color: var(--acc); }
.seg-qc .tab-qc.active { background: var(--acc); color: var(--acc-ink); }
.qc-cta { display: flex; align-items: center; gap: 12px; width: 100%; margin-top: 16px; padding: 12px 14px; text-align: left; border-radius: 14px; border: 1px solid rgba(200,245,60,.45); background: linear-gradient(120deg, rgba(200,245,60,.14), rgba(200,245,60,.03)); transition: border-color .15s, background .15s; }
.qc-cta:hover { border-color: var(--acc); background: linear-gradient(120deg, rgba(200,245,60,.22), rgba(200,245,60,.06)); }
.qc-ico { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; background: var(--acc); color: var(--acc-ink); }
.qc-ico .ico { width: 21px; height: 21px; stroke-width: 2; }
.qc-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.qc-txt b { font-size: 15px; color: var(--acc); }
.qc-txt small { font-size: 12.5px; color: var(--muted); line-height: 1.35; }
.qc-cta em { font-style: normal; font-weight: 700; color: var(--acc); font-size: 18px; transition: transform .15s; }
.qc-cta:hover em { transform: translateX(3px); }
.flag-qc { display: inline-flex; align-items: center; gap: 4px; background: var(--acc); color: var(--acc-ink); }
.flag-qc .ico { width: 13px; height: 13px; stroke-width: 2.2; }
@media (max-width: 760px) { .flag-qc .ico { width: 11px; height: 11px; } }

/* Tablette : fenêtre plus étroite, photo au-dessus */
@media (max-width: 900px) and (min-width: 761px) {
  .drawer { width: min(620px, calc(100vw - 40px)); height: calc(100dvh - 48px); overflow-y: auto; display: block; }
  #drawer-body { display: block; }
  .d-gal { border-right: 0; overflow: visible; }
  .d-img { flex: none; aspect-ratio: 4 / 3; }
  .d-info { overflow: visible; }
}

/* Mobile : panneau qui monte du bas, on voit encore la page derrière */
@media (max-width: 760px) {
  .drawer {
    top: auto; left: 0; right: 0; bottom: 0; width: 100%; height: auto; max-height: calc(100dvh - 56px);
    border-radius: 24px 24px 0 0; border-width: 1px 0 0; display: block; overflow-y: auto; overscroll-behavior: contain;
    opacity: 1; transform: translateY(105%);
    transition: transform .34s cubic-bezier(.2,.9,.25,1), visibility 0s .34s;
  }
  .drawer.open { transform: none; transition: transform .38s cubic-bezier(.2,.9,.25,1), visibility 0s; }
  .drawer::before { content: ""; position: sticky; top: 0; z-index: 7; display: block; width: 44px; height: 5px; margin: 0 auto -5px; border-radius: 3px; background: #44444d; transform: translateY(8px); }
  .drawer-close { position: sticky; top: 14px; float: right; margin: 22px 22px -60px 0; width: 38px; height: 38px; }
  .drawer-close:hover { transform: none; }
  #drawer-body { display: block; }
  .d-gal { display: block; padding: 22px 14px 0; background: none; border: 0; overflow: visible; }
  .d-gal .seg { display: inline-flex; }
  .d-img { flex: none; aspect-ratio: 1; min-height: 0; max-height: 46dvh; width: 100%; border-radius: 16px; }
  .d-img .d-nav { display: none !important; }
  .d-info { overflow: visible; padding: 16px 16px 0; }
  .d-info .d-top { padding-right: 0; }
  .d-info h3 { font-size: 23px; margin-bottom: 12px; }
  .d-price { font-size: 24px; }
  .swatches { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .d-info .buy { bottom: calc(12px + env(safe-area-inset-bottom)); padding: 17px 20px; }
  .d-share { padding-bottom: calc(22px + env(safe-area-inset-bottom)); }
  .d-share .pill { flex: 1; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { .drawer, .drawer.open { transition: opacity .15s, visibility 0s; } }

/* =====================================================================
   ADMIN v3 : statistiques, glisser-déposer des photos
   ===================================================================== */
.toolbar .spacer { flex: 1; }
.kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; margin-bottom: 16px; }
.kpi { background: var(--s1); border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.kpi strong { display: block; font-family: var(--head); font-size: 30px; line-height: 1.1; color: var(--acc); }
.kpi span { color: var(--muted); font-size: 13px; }
.spark { background: var(--s1); border: 1px solid var(--line); border-radius: 14px; padding: 16px 16px 10px; margin-bottom: 16px; }
.spark-bars { display: flex; align-items: flex-end; gap: 3px; height: 90px; }
.spark-bars i { flex: 1; min-height: 2px; border-radius: 3px 3px 0 0; background: var(--acc); opacity: .85; }
.spark-bars i.zero { background: var(--s3); }
.spark-axis { display: flex; justify-content: space-between; color: var(--muted); font-size: 11px; margin-top: 6px; }
.num { font-family: var(--head); font-weight: 700; text-align: right; white-space: nowrap; }
.table th.num { text-align: right; }
.medal { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 7px; background: var(--s3); font-weight: 700; font-size: 12px; }
.medal.m1 { background: var(--acc); color: var(--acc-ink); }
.up-item { touch-action: none; cursor: grab; user-select: none; }
.up-item img { pointer-events: none; }
.up-item.dragging { opacity: .35; outline: 2px dashed var(--acc); }
.up-item .order { position: absolute; top: 3px; left: 3px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 6px; background: rgba(0,0,0,.72); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; }
.up-item:first-child .order { background: var(--acc); color: var(--acc-ink); }
.up-ghost { position: fixed; z-index: 100; width: 96px; height: 96px; border-radius: 10px; overflow: hidden; pointer-events: none; box-shadow: 0 16px 40px rgba(0,0,0,.6); transform: rotate(-4deg) scale(1.05); background: var(--s2); }
.up-ghost img { width: 100%; height: 100%; object-fit: contain; }

/* ---------- Popup BBDBuy ---------- */
.promo { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 18px; background: rgba(0,0,0,0); transition: background .25s; }
.promo.in { background: rgba(0,0,0,.62); }
.promo-card { position: relative; width: min(380px, 100%); background: var(--s1); border: 1px solid var(--line); border-radius: 20px; padding: 26px 22px 18px; text-align: center; box-shadow: 0 30px 80px rgba(0,0,0,.6); opacity: 0; transform: translateY(16px) scale(.97); transition: opacity .25s, transform .25s; overflow: hidden; }
.promo-card::before { content: ""; position: absolute; inset: -40% -20% auto; height: 70%; background: radial-gradient(closest-side, rgba(200,245,60,.18), transparent); pointer-events: none; }
.promo.in .promo-card { opacity: 1; transform: none; }
.promo-x { position: absolute; top: 10px; right: 10px; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: var(--s2); color: var(--muted); font-size: 20px; line-height: 1; cursor: pointer; }
.promo-x:hover { color: #fff; }
.promo-badge { position: relative; display: inline-grid; justify-items: center; padding: 10px 20px; border-radius: 14px; background: var(--acc); color: var(--acc-ink); transform: rotate(-3deg); margin-bottom: 14px; }
.promo-badge b { font-family: var(--head); font-size: 30px; line-height: 1; }
.promo-badge small { font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.promo-card h2 { position: relative; font-family: var(--head); font-size: 23px; margin: 0 0 6px; }
.promo-sub { position: relative; color: var(--muted); font-size: 13.5px; margin: 0 0 14px; }
.promo-list { position: relative; list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 8px; text-align: left; }
.promo-list li { background: var(--s2); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; font-size: 14.5px; }
.promo-list b { color: var(--acc); font-family: var(--head); font-size: 17px; margin-right: 4px; }
.promo-go { position: relative; display: flex; justify-content: center; width: 100%; padding: 13px; font-weight: 700; background: var(--acc); color: var(--acc-ink); border-color: var(--acc); }
.promo-later { position: relative; margin-top: 8px; background: none; border: 0; color: var(--muted); font: inherit; font-size: 13px; cursor: pointer; padding: 6px 10px; }
.promo-later:hover { color: #fff; }
@media (prefers-reduced-motion: reduce) { .promo, .promo-card { transition: none; } }

/* ---------- Compte membre (Discord) ---------- */
.dlogo { width: 20px; height: 20px; fill: currentColor; flex: none; }
.mbtn { flex: none; display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px 0 12px; margin-right: 14px; border-radius: 12px; border: 1px solid #4752c4; background: #5865f2; color: #fff; font: inherit; font-weight: 600; font-size: 14px; cursor: pointer; transition: filter .15s, transform .15s; }
.mbtn:hover { filter: brightness(1.1); transform: translateY(-1px); }
.mbtn.in { background: var(--s1); border-color: var(--line); color: inherit; padding: 0 12px 0 4px; }
.mbtn.in:hover { border-color: var(--acc); filter: none; }
.mbtn-av { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; flex: none; }
.av-letter { display: grid; place-items: center; background: #5865f2; color: #fff; font-weight: 700; }
.mbtn-txt { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.top-in .qsearch { min-width: 150px; }
@media (max-width: 1480px) { .mbtn-txt { display: none; } .mbtn { padding: 0; width: 40px; justify-content: center; margin-right: 12px; } .mbtn.in { padding: 0; } }
@media (max-width: 1024px) {
  .top-in { grid-template-columns: 1fr auto auto; grid-template-areas: "brand soc me" "search search search"; }
  .top-in .mbtn { grid-area: me; margin: 0 0 0 2px; width: 36px; height: 36px; border-radius: 11px; }
  .mbtn .dlogo { width: 18px; height: 18px; }
  .mbtn-av { width: 28px; height: 28px; }
}

/* Cœur favori : sur les cartes et dans la fiche */
.fav { display: grid; place-items: center; cursor: pointer; color: #fff; transition: transform .15s, color .15s, background .15s; -webkit-tap-highlight-color: transparent; }
.fav .ico { width: 18px; height: 18px; stroke-width: 2; }
.fav.on { color: #ff4d6d; }
.fav.on .ico { fill: currentColor; }
.fav:active { transform: scale(.85); }
.fav.on .ico { animation: favpop .35s ease; }
@keyframes favpop { 40% { transform: scale(1.3); } }
.card-img .fav { position: absolute; right: 10px; bottom: 10px; z-index: 2; width: 36px; height: 36px; border-radius: 50%; background: rgba(12,12,14,.62); backdrop-filter: blur(6px); border: 1px solid rgba(255,255,255,.12); }
.card-img .fav:hover { background: rgba(12,12,14,.85); }
.fav-lg { width: 40px; height: 40px; border-radius: 12px; background: var(--s2); border: 1px solid var(--line); margin-left: auto; flex: none; }
.fav-lg .ico { width: 21px; height: 21px; }
.fav-lg:hover { border-color: #ff4d6d; }
.mrow .fav { width: 34px; height: 34px; border-radius: 10px; flex: none; }
.mrow .fav:not(.on) { color: var(--muted); }
@media (max-width: 760px) { .card-img .fav { right: 7px; bottom: 7px; width: 32px; height: 32px; } .card-img .fav .ico { width: 16px; height: 16px; } }

/* Fenêtres connexion / profil (base : .promo) */
.mlogo { position: relative; display: inline-grid; place-items: center; width: 62px; height: 62px; border-radius: 18px; background: #5865f2; color: #fff; margin-bottom: 14px; }
.mlogo .dlogo { width: 34px; height: 34px; }
.dbtn { position: relative; display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; padding: 13px; border-radius: 12px; border: 0; background: #5865f2; color: #fff; font: inherit; font-weight: 700; font-size: 15px; cursor: pointer; text-decoration: none; }
.dbtn:hover { filter: brightness(1.1); }
.mfine { position: relative; color: var(--muted); font-size: 12.5px; margin: 12px 0 0; }
.dlink { color: var(--acc); font-weight: 600; text-decoration: none; white-space: nowrap; }
.mprofile .promo-card { text-align: left; width: min(440px, 100%); max-height: min(86vh, 760px); overflow-y: auto; }
.mprofile .promo-card::before { display: none; }
.mhead { display: flex; align-items: center; gap: 12px; margin: 0 40px 18px 0; }
.mhead-av { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; flex: none; font-size: 20px; }
.mhead b { display: block; font-family: var(--head); font-size: 19px; }
.mhead small { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 12.5px; }
.mhead small .dlogo { width: 14px; height: 14px; color: #8b95ff; }
.mprofile .label { margin: 16px 0 8px; }
.mlist { display: grid; gap: 6px; }
.mrow { display: flex; align-items: center; gap: 6px; background: var(--s2); border: 1px solid var(--line); border-radius: 12px; padding: 6px; }
.mrow-link { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; }
.mrow-link img, .mrow-link .noimg { width: 46px; height: 46px; border-radius: 9px; object-fit: cover; flex: none; background: var(--s1); display: grid; place-items: center; font-size: 11px; }
.mrow-t { flex: 1; min-width: 0; font-size: 13.5px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mrow-p { color: var(--acc); font-weight: 700; font-size: 13.5px; white-space: nowrap; }
.mrow:hover { border-color: #3a3a42; }
.mempty { color: var(--muted); font-size: 13.5px; margin: 0; padding: 12px; border: 1px dashed var(--line); border-radius: 12px; text-align: center; }
.mmore { margin-top: 8px; width: 100%; }
.mprofile .promo-later { display: block; margin: 16px auto 0; }
.mtoast { position: fixed; left: 50%; bottom: 24px; z-index: 95; transform: translate(-50%, 20px); opacity: 0; transition: opacity .25s, transform .25s; background: var(--s1); border: 1px solid var(--line); color: #fff; padding: 11px 18px; border-radius: 12px; font-weight: 600; font-size: 14px; box-shadow: 0 14px 40px rgba(0,0,0,.5); pointer-events: none; white-space: nowrap; }
.mtoast.in { opacity: 1; transform: translate(-50%, 0); }
.has-tabbar .mtoast { bottom: calc(86px + env(safe-area-inset-bottom)); }
