/* =====================================================================
   Log Pose — thème « Grand Line » : fond océan nocturne, lueur dorée,
   panneaux en verre dépoli, cartes holographiques.
   ===================================================================== */
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url(fonts/outfit-latin.woff2) format('woff2');
  /* U+202F (espace fine des nombres en français) exclu : Outfit ne l'a pas, la police système prend le relais */
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-202E, U+2030-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url(fonts/outfit-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --bg: #070a12;
  --bg-2: #0c1222;
  --surface: rgba(17, 23, 38, .72);
  --surface-solid: #111827;
  --surface-2: rgba(255, 255, 255, .045);
  --surface-3: rgba(255, 255, 255, .08);
  --line: rgba(255, 255, 255, .08);
  --line-strong: rgba(255, 255, 255, .16);
  --text: #eef2f8;
  --muted: #8f9ab0;
  --faint: #5f6a7f;
  --gold: #f6c453;
  --gold-deep: #ef8a2a;
  --gold-grad: linear-gradient(135deg, #ffe08a 0%, #f6b23e 48%, #ee7a2b 100%);
  --accent: var(--gold);
  --accent-ink: #1d1203;
  --teal: #43d3c6;
  --danger: #ff6170;
  --glass-blur: blur(18px) saturate(140%);
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, .35);
  --shadow: 0 18px 50px -18px rgba(0, 0, 0, .75);
  --shadow-glow: 0 0 0 1px rgba(246, 196, 83, .4), 0 12px 40px -12px rgba(246, 170, 60, .55);
  --radius: 18px;
  --radius-sm: 12px;
  --ease: cubic-bezier(.2, .8, .2, 1);

  --c-red: #ef4b55;
  --c-green: #2fb574;
  --c-blue: #3d8bff;
  --c-purple: #a463e8;
  --c-black: #6b7486;
  --c-yellow: #f2c335;
  color-scheme: dark;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #f4efe4;
    --bg-2: #ebe3d3;
    --surface: rgba(255, 255, 255, .78);
    --surface-solid: #ffffff;
    --surface-2: rgba(30, 24, 10, .04);
    --surface-3: rgba(30, 24, 10, .08);
    --line: rgba(40, 30, 10, .1);
    --line-strong: rgba(40, 30, 10, .2);
    --text: #1b2030;
    --muted: #66707f;
    --faint: #9aa1ad;
    --gold: #c98710;
    --gold-deep: #c4561a;
    --gold-grad: linear-gradient(135deg, #e7a51c 0%, #d97b16 55%, #c4521a 100%);
    --accent-ink: #ffffff;
    --shadow-sm: 0 2px 10px rgba(60, 40, 10, .12);
    --shadow: 0 18px 50px -20px rgba(60, 40, 10, .35);
    --shadow-glow: 0 0 0 1px rgba(201, 135, 16, .45), 0 12px 32px -12px rgba(201, 120, 16, .45);
    --c-black: #2d323c;
    color-scheme: light;
  }
}
:root[data-theme="light"] {
  --bg: #f4efe4;
  --bg-2: #ebe3d3;
  --surface: rgba(255, 255, 255, .78);
  --surface-solid: #ffffff;
  --surface-2: rgba(30, 24, 10, .04);
  --surface-3: rgba(30, 24, 10, .08);
  --line: rgba(40, 30, 10, .1);
  --line-strong: rgba(40, 30, 10, .2);
  --text: #1b2030;
  --muted: #66707f;
  --faint: #9aa1ad;
  --gold: #c98710;
  --gold-deep: #c4561a;
  --gold-grad: linear-gradient(135deg, #e7a51c 0%, #d97b16 55%, #c4521a 100%);
  --accent-ink: #ffffff;
  --shadow-sm: 0 2px 10px rgba(60, 40, 10, .12);
  --shadow: 0 18px 50px -20px rgba(60, 40, 10, .35);
  --shadow-glow: 0 0 0 1px rgba(201, 135, 16, .45), 0 12px 32px -12px rgba(201, 120, 16, .45);
  --c-black: #2d323c;
  color-scheme: light;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
html { scroll-behavior: smooth; }
/* Pas d'effet élastique au-delà du haut et du bas de la page (iPhone). Surtout pas d'overflow
   sur html/body : Safari ne garderait plus l'en-tête collé en haut. */
html, body { overscroll-behavior: none; }
body {
  background: var(--bg);
  color: var(--text);
  font: 15px/1.5 'Outfit', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  min-height: 100vh;
  /* Appli plein écran sur iPhone : la page commence sous la barre d'état, sinon l'en-tête
     (collé à env(safe-area-inset-top)) recouvrirait le haut du contenu */
  padding-top: env(safe-area-inset-top, 0px);
  -webkit-font-smoothing: antialiased;
}
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
::selection { background: rgba(246, 196, 83, .35); }
.muted { color: var(--muted); }
.small { font-size: 13px; }
svg { flex: none; }
button svg, h2 svg, .menu-pop svg {
  width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.gradient-text { background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Fond : lueur dorée en haut, reflet océan en bas, léger grain */
.backdrop {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(1100px 520px at 50% -8%, rgba(246, 178, 62, .17), transparent 62%),
    radial-gradient(700px 420px at 0% 30%, rgba(67, 211, 198, .06), transparent 60%),
    radial-gradient(900px 600px at 100% 100%, rgba(61, 139, 255, .08), transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
}
.backdrop::after {
  content: ''; position: absolute; inset: 0; opacity: .05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Barre du haut ---------- */
body::before {
  content: ''; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 21;
  background: var(--bg);
}
.topbar {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: color-mix(in srgb, var(--bg) 70%, transparent);
  backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  max-width: 1600px; margin: 0 auto; padding-block: 12px;
  padding-left: max(28px, env(safe-area-inset-left, 0px)); padding-right: max(28px, env(safe-area-inset-right, 0px));
  display: flex; align-items: center; gap: 28px;
}
.brand { display: flex; align-items: center; gap: 11px; color: inherit; text-decoration: none; }
.brand img { width: 40px; height: 40px; display: block; filter: drop-shadow(0 4px 12px rgba(0, 0, 0, .45)); transition: transform .6s var(--ease); }
.brand:hover img { transform: rotate(-25deg); }
.brand strong { display: block; font-size: 19px; font-weight: 700; letter-spacing: .2px; line-height: 1.1; }
.brand small { display: block; font-size: 11px; color: var(--muted); letter-spacing: 1.4px; text-transform: uppercase; }

.tabs { display: flex; gap: 4px; padding: 5px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; }
.tabs button {
  display: inline-flex; align-items: center; gap: 8px;
  border: 0; background: none; padding: 8px 16px; border-radius: 999px;
  color: var(--muted); font-weight: 600; white-space: nowrap; transition: color .2s, background .2s;
}
.tabs button svg { width: 17px; height: 17px; }
.tabs button:hover { color: var(--text); background: var(--surface-2); }
.tabs button.active { background: var(--gold-grad); color: var(--accent-ink); box-shadow: 0 6px 20px -8px rgba(246, 170, 60, .7); }
.tabs .count { font-style: normal; font-size: 12px; font-weight: 700; opacity: .7; font-variant-numeric: tabular-nums; }
.tabs .count:empty { display: none; }

.menu { margin-left: auto; position: relative; }
.menu-pop {
  position: absolute; right: 0; top: calc(100% + 10px); width: min(320px, calc(100vw - 24px));
  background: var(--surface-solid); border: 1px solid var(--line-strong); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 10px; animation: pop .18s var(--ease);
}
.menu-title { margin: 6px 10px 6px; font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }
.menu-pop button {
  display: flex; align-items: center; gap: 10px; width: 100%; text-align: left;
  border: 0; background: none; padding: 10px 12px; border-radius: 10px; font-weight: 500;
}
.menu-pop button:hover { background: var(--surface-3); }
.menu-pop p { margin: 8px 12px; font-size: 13px; color: var(--muted); }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid var(--line-strong); background: var(--surface-2);
  padding: 9px 16px; border-radius: 12px; font-weight: 600; transition: border-color .2s, background .2s, transform .15s, box-shadow .2s;
}
.btn:hover { border-color: var(--muted); background: var(--surface-3); }
.btn:active { transform: scale(.97); }
.btn.ghost { background: transparent; }
.btn.small { padding: 6px 12px; font-size: 13px; border-radius: 10px; }
.btn.small svg { width: 15px; height: 15px; }
.btn.primary { background: var(--gold-grad); border-color: transparent; color: var(--accent-ink); box-shadow: 0 8px 24px -10px rgba(246, 170, 60, .8); }
.btn.primary:hover { filter: brightness(1.07); box-shadow: var(--shadow-glow); }
.icon-btn {
  display: inline-grid; place-items: center; width: 38px; height: 38px; padding: 0;
  border: 1px solid var(--line-strong); background: var(--surface-2); border-radius: 50%;
  color: var(--text); transition: border-color .2s, background .2s, transform .15s;
}
.icon-btn:hover { border-color: var(--muted); background: var(--surface-3); }
.icon-btn:active { transform: scale(.92); }
.icon-btn:disabled { opacity: .3; cursor: default; }
.icon-btn svg { width: 18px; height: 18px; }

main { padding-block: 28px 80px; padding-left: max(28px, env(safe-area-inset-left, 0px)); padding-right: max(28px, env(safe-area-inset-right, 0px)); max-width: 1600px; margin: 0 auto; }

/* ---------- Accueil ---------- */
/* z-index : la liste de résultats doit passer devant les panneaux en verre (backdrop-filter crée des couches) */
.hero { text-align: center; padding: 48px 0 34px; position: relative; z-index: 10; }
.eyebrow {
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
  color: var(--gold); padding: 6px 14px; border-radius: 999px;
  background: rgba(246, 196, 83, .1); border: 1px solid rgba(246, 196, 83, .25);
}
.hero h1 { margin: 18px 0 26px; font-size: clamp(32px, 4.6vw, 54px); font-weight: 800; letter-spacing: -1.2px; line-height: 1.05; }
.home-search {
  position: relative; max-width: 720px; margin: 0 auto;
  display: flex; align-items: center; gap: 14px; padding: 0 14px 0 24px;
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: 999px;
  backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: var(--shadow), 0 0 80px -20px rgba(246, 170, 60, .35);
  transition: border-color .2s, box-shadow .2s;
}
.home-search:focus-within { border-color: rgba(246, 196, 83, .6); box-shadow: var(--shadow), 0 0 0 4px rgba(246, 196, 83, .12), 0 0 90px -16px rgba(246, 170, 60, .5); }
.home-search > svg { width: 22px; height: 22px; fill: none; stroke: var(--gold); stroke-width: 2.2; stroke-linecap: round; }
.home-search input { flex: 1; min-width: 0; border: 0; background: none; outline: none; font-size: 19px; padding: 19px 0; }
.home-search input::placeholder { color: var(--faint); }
kbd {
  font: 600 12px 'Outfit', sans-serif; color: var(--muted); padding: 3px 9px; border-radius: 7px;
  border: 1px solid var(--line-strong); background: var(--surface-2);
}
.hero-hints { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; margin-top: 18px; font-size: 13px; color: var(--muted); }
.hero-hints button {
  border: 1px solid var(--line); background: var(--surface-2); color: var(--text);
  padding: 5px 13px; border-radius: 999px; font-size: 13px; transition: border-color .2s, background .2s;
}
.hero-hints button:hover { border-color: rgba(246, 196, 83, .5); background: rgba(246, 196, 83, .08); }

.home-results {
  position: absolute; left: 0; right: 0; top: calc(100% + 10px); z-index: 30; text-align: left;
  background: var(--surface-solid); border: 1px solid var(--line-strong); border-radius: 20px;
  box-shadow: var(--shadow); padding: 8px; max-height: min(70vh, 640px); overflow: auto; animation: pop .18s var(--ease);
}
.hr-head { font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 1.2px; padding: 10px 12px 6px; }
.hr-tip { padding: 16px 14px; color: var(--muted); font-size: 14px; }
.hr-tip b { color: var(--text); }
.hit {
  display: grid; grid-template-columns: 46px 1fr auto auto; align-items: center; gap: 14px;
  width: 100%; border: 0; background: none; text-align: left; padding: 7px 12px; border-radius: 12px; transition: background .15s;
}
.hit:hover, .hit.active { background: var(--surface-3); }
.hit img, .hit .sprite { width: 46px; aspect-ratio: 600 / 838; object-fit: cover; border-radius: 5px; display: block; box-shadow: var(--shadow-sm); }
.hit-main { min-width: 0; }
.hit-main b { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hit-main small { display: block; color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hit-owned { font-size: 12px; font-weight: 700; color: var(--teal); }
.hit-price { font-size: 14px; font-weight: 700; color: var(--gold); white-space: nowrap; font-variant-numeric: tabular-nums; }
.hr-all {
  display: block; width: 100%; border: 0; border-top: 1px solid var(--line); background: none;
  padding: 13px; margin-top: 6px; color: var(--gold); font-weight: 700; text-align: center; border-radius: 0 0 12px 12px;
}
.hr-all:hover { background: var(--surface-3); }

/* Portefeuille */
.portfolio { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 16px; margin-bottom: 28px; }
.value-card, .hstat {
  position: relative; overflow: hidden; text-align: left;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
  padding: 20px 22px; transition: border-color .2s, transform .25s var(--ease);
}
.value-card { cursor: pointer; }
.value-card::before {
  content: ''; position: absolute; inset: -40% -10% auto auto; width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(circle, rgba(246, 178, 62, .28), transparent 65%); pointer-events: none;
}
.value-card:hover, .hstat:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.value-card .label { font-size: 13px; color: var(--muted); font-weight: 500; }
.value-card .value { display: block; font-size: clamp(30px, 3.4vw, 44px); font-weight: 800; letter-spacing: -1px; line-height: 1.1; margin: 4px 0 14px; font-variant-numeric: tabular-nums; }
.lang-bar { display: flex; height: 8px; border-radius: 99px; overflow: hidden; background: var(--surface-3); }
.lang-bar i { display: block; height: 100%; }
.lang-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 10px; font-size: 12px; color: var(--muted); }
.lang-legend span { display: inline-flex; align-items: center; gap: 6px; }
.lang-legend i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.lang-legend b { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
.hstat { border: 1px solid var(--line); color: inherit; font: inherit; display: flex; flex-direction: column; justify-content: space-between; gap: 10px; }
.hstat .ico {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(246, 196, 83, .12); color: var(--gold);
}
.hstat .ico svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.hstat b { display: block; font-size: 28px; font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; }
.hstat span { font-size: 13px; color: var(--muted); }
.price-note { grid-column: 1 / -1; margin: -4px 4px 0; font-size: 12px; color: var(--faint); }

.panel {
  background: var(--surface); border: 1px solid var(--line); border-radius: 22px;
  backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
  padding: 22px 24px 24px; margin-bottom: 28px;
}
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
.panel-head h2 { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 20px; font-weight: 700; letter-spacing: -.2px; }
.panel-head h2 svg { width: 20px; height: 20px; color: var(--gold); }
.panel-head .muted { display: block; margin-top: 2px; padding-left: 30px; }
.car-nav { display: flex; align-items: center; gap: 8px; }
.panel-empty { color: var(--muted); font-size: 14px; padding: 26px 4px; text-align: center; }

/* Carrousel des nouveautés */
.carousel {
  overflow: hidden; touch-action: pan-y; user-select: none; padding: 10px 0 6px; margin: -10px 0 -6px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}
.strip { display: flex; gap: 18px; width: max-content; will-change: transform; }
.mini { width: 150px; flex: none; border: 0; background: none; padding: 0; text-align: left; color: inherit; }
.mini-art {
  position: relative; display: block; aspect-ratio: 600 / 838; border-radius: 10px; overflow: hidden;
  background: var(--surface-3); box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), box-shadow .3s;
}
.mini:hover .mini-art { transform: translateY(-6px) scale(1.02); box-shadow: 0 18px 30px -12px rgba(0, 0, 0, .7); }
.mini img, .mini .sprite { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.mini .qty { font-size: 11px; padding: 1px 8px; }
.mini-name { display: block; font-weight: 600; font-size: 14px; margin-top: 9px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-sub { display: block; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-sub b { color: var(--gold); font-weight: 700; }
.mini .new {
  position: absolute; right: 6px; top: 6px; background: linear-gradient(135deg, #ff5f6d, #ff2d55); color: #fff;
  font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .6px;
  padding: 3px 7px; border-radius: 6px; box-shadow: 0 4px 12px rgba(255, 45, 85, .5);
}

/* Podium des plus précieuses */
.podium { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: end; margin-bottom: 18px; }
.pod {
  position: relative; display: grid; grid-template-columns: 96px 1fr; gap: 16px; align-items: center;
  border: 1px solid var(--line); background: var(--surface-2); border-radius: 18px; padding: 14px; text-align: left; color: inherit;
  transition: transform .25s var(--ease), border-color .2s, box-shadow .25s;
}
.pod:hover { transform: translateY(-4px); border-color: var(--line-strong); }
.pod img, .pod .sprite { width: 96px; aspect-ratio: 600 / 838; object-fit: cover; border-radius: 8px; display: block; box-shadow: var(--shadow); }
.pod .medal {
  position: absolute; left: 6px; top: 6px; width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 800; font-size: 15px; color: #1d1203; box-shadow: 0 6px 16px rgba(0, 0, 0, .45);
}
.pod.r1 { border-color: rgba(246, 196, 83, .45); box-shadow: 0 16px 50px -24px rgba(246, 178, 62, .9); }
.pod.r1 .medal { background: linear-gradient(135deg, #fff1b8, #f6c453 50%, #d9901d); }
.pod.r2 .medal { background: linear-gradient(135deg, #ffffff, #c9d1dc 50%, #8e99a8); }
.pod.r3 .medal { background: linear-gradient(135deg, #ffd9b8, #d8925c 50%, #9c5a2c); }
.pod-info { min-width: 0; }
.pod-info b { display: block; font-size: 16px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pod-info small { display: block; font-size: 12px; color: var(--muted); margin: 2px 0 10px; }
.pod-price { display: block; font-size: 24px; font-weight: 800; letter-spacing: -.5px; font-variant-numeric: tabular-nums; }
.pod-price small { display: block; font-size: 11px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.top-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(420px, 100%), 1fr)); gap: 4px 24px; }
.rank-row {
  display: grid; grid-template-columns: 28px 40px 1fr auto auto; align-items: center; gap: 12px;
  border: 0; background: none; text-align: left; padding: 7px 10px; border-radius: 12px; color: inherit; transition: background .15s;
}
.rank-row:hover { background: var(--surface-3); }
.rank { font-weight: 800; font-size: 15px; color: var(--faint); text-align: center; font-variant-numeric: tabular-nums; }
.rank-row img, .rank-row .sprite { width: 40px; aspect-ratio: 600 / 838; object-fit: cover; border-radius: 4px; display: block; }
.rk-main { min-width: 0; }
.rk-main b { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rk-main small { display: block; font-size: 12px; color: var(--muted); }
.rk-price { text-align: right; font-weight: 700; color: var(--gold); font-variant-numeric: tabular-nums; white-space: nowrap; }
.rk-price small { display: block; font-size: 11px; font-weight: 500; color: var(--muted); }

/* ---------- Recherche & filtres ---------- */
.controls {
  display: grid; gap: 14px; margin-bottom: 16px; padding: 16px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 22px;
  backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
}
.search {
  display: flex; align-items: center; gap: 12px; padding: 0 18px;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 14px; transition: border-color .2s, box-shadow .2s;
}
.search:focus-within { border-color: rgba(246, 196, 83, .55); box-shadow: 0 0 0 4px rgba(246, 196, 83, .1); }
.search > svg { width: 20px; height: 20px; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; }
.search input[type=search] { flex: 1; min-width: 0; border: 0; background: none; outline: none; font-size: 16px; padding: 13px 0; }
.search input::placeholder { color: var(--faint); }
.check { display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--muted); white-space: nowrap; cursor: pointer; }
.check input { accent-color: var(--gold); }

.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.filters-sep { width: 1px; height: 24px; background: var(--line-strong); margin: 0 4px; }
.filters select, .quick-cond select, .m-add select {
  appearance: none; -webkit-appearance: none;
  background: var(--surface-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238f9ab0' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center / 14px;
  border: 1px solid var(--line); border-radius: 10px; padding: 7px 32px 7px 12px; max-width: 250px;
  transition: border-color .2s, background-color .2s;
}
.filters select:hover { border-color: var(--line-strong); }
.filters select.set { border-color: rgba(246, 196, 83, .6); background-color: rgba(246, 196, 83, .08); color: var(--gold); }
select option, select optgroup { background: var(--surface-solid); color: var(--text); }

.chips { display: flex; gap: 7px; }
.chip {
  width: 28px; height: 28px; border-radius: 50%; padding: 0; border: 2px solid transparent;
  background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, .45), transparent 45%), var(--c);
  opacity: .38; transition: opacity .15s, transform .15s, border-color .15s;
}
.chip:hover { opacity: .75; transform: scale(1.08); }
.chip.on { opacity: 1; border-color: var(--text); transform: scale(1.12); box-shadow: 0 0 14px -2px var(--c); }

.resultbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; color: var(--muted); font-size: 14px; min-height: 30px; margin: 0 4px 18px; }
.resultbar .total { color: var(--gold); font-weight: 700; }
.resultbar .total:empty { display: none; }
.quick-cond { margin-left: auto; display: flex; align-items: center; gap: 8px; font-size: 13px; }
.quick-cond select { padding: 5px 30px 5px 10px; }

/* ---------- Statistiques (collection) ---------- */
.stats {
  background: var(--surface); border: 1px solid var(--line); border-radius: 22px;
  backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
  padding: 22px 24px; margin-bottom: 16px;
}
.stat-row { display: flex; flex-wrap: wrap; gap: 14px 40px; align-items: baseline; }
.stat b { display: block; font-size: 28px; font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat span { font-size: 13px; color: var(--muted); }
.stat span i { font-style: normal; }
.stat.accent b { background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-size: 32px; font-weight: 800; }
.stats details { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 14px; }
.stats summary { cursor: pointer; color: var(--muted); font-size: 14px; font-weight: 600; }
.series-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 4px 24px; margin-top: 12px; }
.series-row {
  display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; align-items: center;
  border: 0; background: none; text-align: left; padding: 8px 10px; border-radius: 10px; color: inherit;
}
.series-row:hover { background: var(--surface-3); }
.series-row .label { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.series-row .num { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.bar { grid-column: 1 / -1; height: 5px; border-radius: 3px; background: var(--surface-3); overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--gold-grad); border-radius: 3px; }

/* ---------- Grille de cartes ---------- */
.grid { display: grid; gap: 26px 18px; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); }
.tile { position: relative; outline: none; cursor: pointer; animation: rise .45s var(--ease) both; animation-delay: calc(var(--i, 0) * 12ms); }
.tile .art {
  position: relative; aspect-ratio: 600 / 838; border-radius: 11px; overflow: hidden;
  background: var(--surface-3); box-shadow: var(--shadow-sm);
  transform: perspective(800px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--lift, 0));
  transition: transform .35s var(--ease), box-shadow .35s;
}
.tile:hover .art, .tile:focus-visible .art { --lift: -6px; box-shadow: 0 22px 40px -16px rgba(0, 0, 0, .8); }
.tile.tilting .art { transition: transform .08s linear, box-shadow .35s; }
.tile:focus-visible .art { outline: 2px solid var(--gold); outline-offset: 3px; }
.tile img, .tile .sprite { width: 100%; height: 100%; object-fit: cover; display: block; }
.tile.gone { opacity: .35; }

/* Reflet holographique : brillance sous le curseur, et irisation pour les cartes rares */
.art .glare, .holo .glare {
  position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 30%), rgba(255, 255, 255, .55), rgba(255, 255, 255, .08) 30%, transparent 60%);
  mix-blend-mode: soft-light;
}
.art .foil, .holo .foil {
  position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: linear-gradient(115deg, transparent 20%, rgba(255, 80, 180, .55) 36%, rgba(80, 220, 255, .55) 46%, rgba(255, 240, 90, .5) 56%, rgba(140, 255, 160, .45) 64%, transparent 80%);
  background-size: 250% 250%; background-position: var(--fx, 50%) var(--fy, 50%);
  mix-blend-mode: color-dodge; filter: saturate(1.4);
}
.tile:hover .glare, .holo.active .glare { opacity: 1; }
.tile.rare:hover .foil { opacity: .38; }
.holo.rare.active .foil { opacity: .45; }

.qty {
  position: absolute; left: 7px; top: 7px; z-index: 2;
  background: var(--gold-grad); color: #1d1203;
  font-weight: 800; font-size: 12px; padding: 2px 9px; border-radius: 999px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .45);
}
.wish {
  position: absolute; right: 7px; top: 7px; z-index: 2;
  width: 32px; height: 32px; border-radius: 50%; border: 0; padding: 0;
  display: grid; place-items: center; color: #fff;
  background: rgba(8, 10, 16, .55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  opacity: 0; transform: scale(.85); transition: opacity .2s, transform .2s, color .2s;
}
.wish svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }
.wish.on { opacity: 1; transform: none; color: #ff4f6d; }
.wish.on svg { fill: currentColor; }
.tile:hover .wish, .tile:focus-within .wish { opacity: 1; transform: none; }
.quick {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  display: flex; justify-content: center; gap: 8px; padding: 26px 10px 12px;
  background: linear-gradient(transparent, rgba(4, 6, 12, .85));
  opacity: 0; transform: translateY(8px); transition: opacity .2s, transform .25s var(--ease);
}
.tile:hover .quick, .tile:focus-within .quick { opacity: 1; transform: none; }
.quick button {
  border: 0; border-radius: 999px; min-width: 38px; height: 34px; padding: 0 13px;
  background: rgba(255, 255, 255, .94); color: #111; font-weight: 800; font-size: 17px; transition: transform .15s, background .15s;
}
.quick button:hover { transform: scale(1.08); background: #fff; }
.quick button.got { background: var(--gold-grad); color: #1d1203; font-size: 13px; }

.meta { padding: 10px 2px 0; }
.name-row { display: flex; align-items: baseline; gap: 8px; }
.meta .name { flex: 1; min-width: 0; font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.meta .price { font-size: 13px; font-weight: 700; color: var(--gold); white-space: nowrap; font-variant-numeric: tabular-nums; }
.meta .sub { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 5px; font-size: 12px; color: var(--muted); margin-top: 4px; min-width: 0; }
.dots { display: inline-flex; gap: 3px; margin-left: auto; }
.dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--c); display: block; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .15); }

.tag {
  font-size: 10.5px; font-weight: 700; letter-spacing: .3px; padding: 0 6px; border-radius: 5px; line-height: 18px;
  background: var(--surface-3); color: var(--text); white-space: nowrap;
}
.tag.alt { background: rgba(246, 196, 83, .14); color: var(--gold); }
.tag.lang { background: transparent; box-shadow: inset 0 0 0 1px var(--line-strong); color: var(--muted); }
.tag.lang-fr { color: #6aa6ff; box-shadow: inset 0 0 0 1px rgba(106, 166, 255, .55); }
.tag.lang-jp { color: #ff7480; box-shadow: inset 0 0 0 1px rgba(255, 116, 128, .55); }
/* Raretés */
.tag.r-SEC { background: var(--gold-grad); color: #1d1203; }
.tag.r-SP { background: linear-gradient(110deg, #ff7ac8, #7ad7ff, #ffe27a); color: #16121f; }
.tag.r-SR { background: linear-gradient(135deg, #f2f5f9, #a9b4c4); color: #1a2030; }
.tag.r-L { background: rgba(239, 75, 85, .18); color: #ff8890; }
.tag.r-TR { background: linear-gradient(135deg, #9be7ff, #b39bff); color: #121426; }
.tag.r-P { background: rgba(67, 211, 198, .15); color: var(--teal); }

/* Encadré sous la carte (téléphone) : numéro + drapeau, prix + évolution */
.mmeta { display: none; }
.flag { display: inline-flex; flex: none; }
.flag svg { width: 19px; height: auto; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .25); }
.mv { display: inline-flex; align-items: center; gap: 2px; font-weight: 600; white-space: nowrap; }
.mv svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.mv em { font-style: normal; font-variant-numeric: tabular-nums; }
.mv.up { color: #3ccf8e; }
.mv.down { color: #ff8a65; }
:root[data-theme="light"] .mv.up { color: #13894f; }
:root[data-theme="light"] .mv.down { color: #c4501f; }
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .mv.up { color: #13894f; }
  :root:not([data-theme="dark"]) .mv.down { color: #c4501f; }
}

.empty { text-align: center; color: var(--muted); padding: 90px 20px; }
.empty b { display: block; color: var(--text); font-size: 20px; margin-bottom: 8px; }

/* ---------- Fiche carte ---------- */
dialog#modal {
  border: 1px solid var(--line-strong); border-radius: 26px; padding: 0;
  background: color-mix(in srgb, var(--surface-solid) 94%, transparent); color: var(--text);
  width: min(1120px, calc(100vw - 32px)); max-height: calc(100vh - 32px);
  box-shadow: 0 40px 120px -30px rgba(0, 0, 0, .9);
}
dialog#modal[open] { animation: modalIn .3s var(--ease); }
dialog#modal::backdrop { background: rgba(3, 5, 10, .72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.modal-inner {
  display: grid; grid-template-columns: minmax(0, 440px) 1fr; gap: 36px;
  padding: 34px 64px; max-height: calc(100vh - 34px); overflow: auto;
}
.modal-img { position: sticky; top: 0; align-self: start; perspective: 1200px; }
.modal-img::before {
  content: ''; position: absolute; inset: 8% 6% -4%; border-radius: 30px; z-index: -1;
  background: radial-gradient(closest-side, rgba(246, 178, 62, .35), transparent); filter: blur(30px);
}
.holo {
  position: relative; border-radius: 16px; overflow: hidden; aspect-ratio: 600 / 838;
  background: var(--surface-3); box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .85);
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .5s var(--ease);
}
.holo.active { transition: transform .08s linear; }
.holo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.modal-body { min-width: 0; }
.close { position: absolute; top: 16px; right: 16px; z-index: 3; }
.nav { position: absolute; top: 50%; translate: 0 -50%; z-index: 3; }
.nav.prev { left: 14px; }
.nav.next { right: 14px; }

.m-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; }
.m-head .code { font-weight: 700; color: var(--text); letter-spacing: .5px; }
.m-head .tag { font-size: 11.5px; line-height: 20px; padding: 0 8px; }
#mName { margin: 8px 0 20px; font-size: clamp(26px, 2.6vw, 34px); font-weight: 800; letter-spacing: -.6px; line-height: 1.1; }
#mName .orig { display: block; font-size: 15px; font-weight: 500; color: var(--muted); margin-top: 6px; letter-spacing: 0; }

.m-price {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, rgba(246, 196, 83, .12), rgba(239, 125, 42, .05)); border: 1px solid rgba(246, 196, 83, .25);
  border-radius: 18px; padding: 16px 20px; margin-bottom: 16px; font-size: 14px;
}
.price-main { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.price-main span { color: var(--muted); }
.price-main small { font-size: 12px; }
.price-main b { font-size: 30px; font-weight: 800; letter-spacing: -.6px; font-variant-numeric: tabular-nums; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.price-main b.muted { font-size: 17px; background: none; color: var(--muted); }
.price-sub { color: var(--muted); font-size: 13px; margin: 2px 0 8px; }
.price-figures { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 6px; }
.price-figures button {
  border: 1px solid var(--line-strong); background: var(--surface-2); color: var(--muted);
  padding: 4px 10px; border-radius: 999px; font-size: 12px; transition: border-color .2s, color .2s, background .2s;
}
.price-figures button b { color: var(--text); font-weight: 700; font-variant-numeric: tabular-nums; }
.price-figures button:hover { border-color: rgba(246, 196, 83, .6); color: var(--text); }
.price-figures button.on { border-color: var(--gold); background: rgba(246, 196, 83, .14); color: var(--gold); }
.price-figures button.on b { color: var(--gold); }
.price-links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 4px; }
.m-price a { display: inline-flex; align-items: center; gap: 6px; color: var(--gold); font-weight: 700; text-decoration: none; font-size: 13px; }
.m-price a.secondary { color: var(--muted); font-weight: 600; }
.m-price a:hover { text-decoration: underline; }
.menu-field { display: flex; flex-direction: column; gap: 6px; margin: 4px 12px 8px; font-size: 13px; color: var(--muted); }
.menu-field select {
  appearance: none; -webkit-appearance: none; color: var(--text);
  background: var(--surface-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238f9ab0' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center / 14px;
  border: 1px solid var(--line-strong); border-radius: 10px; padding: 8px 32px 8px 12px;
}
.m-price .note { margin: 4px 0 8px; font-size: 12px; color: var(--muted); font-style: italic; }

.m-copies { border: 1px solid var(--line); background: var(--surface-2); border-radius: 18px; padding: 16px 18px; margin-bottom: 18px; }
.m-copies-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.m-copies-head h3 { margin: 0; font-size: 16px; font-weight: 700; }
.m-copies-head span { font-size: 13px; }
.m-copies .none { margin: 4px 0 12px; font-size: 14px; }
.copy-row {
  display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 12px;
  padding: 8px 0; border-bottom: 1px dashed var(--line);
}
.copy-row .cond-select {
  justify-self: start; font-weight: 600; font-size: 14px; appearance: none; -webkit-appearance: none;
  background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238f9ab0' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 6px center / 12px;
  border: 1px solid transparent; border-radius: 8px; padding: 4px 24px 4px 8px; transition: border-color .2s, background-color .2s;
}
.copy-row .cond-select:hover { border-color: var(--line-strong); background-color: var(--surface-2); }
.copy-row .unit { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.copy-row .icon-btn { width: 30px; height: 30px; }
.copy-row .icon-btn svg { width: 15px; height: 15px; }
.stepper { display: flex; align-items: center; gap: 8px; }
.stepper output { min-width: 22px; text-align: center; font-size: 16px; font-weight: 800; font-variant-numeric: tabular-nums; }
.m-add { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; }
.m-add select { padding: 9px 32px 9px 12px; border-radius: 12px; }
.wish-btn { margin-left: auto; }
.wish-btn svg { width: 16px; height: 16px; }
.wish-btn.on { color: #ff4f6d; border-color: rgba(255, 79, 109, .6); background: rgba(255, 79, 109, .08); }
.wish-btn.on svg { fill: currentColor; }

.cond {
  display: inline-grid; place-items: center; min-width: 32px; height: 22px; padding: 0 6px;
  border-radius: 6px; font-size: 11px; font-weight: 800; letter-spacing: .4px; color: #fff;
}
.cond-MT { background: #17a2b8; }
.cond-NM { background: #2e9e4f; }
.cond-EX { background: #7cad1f; }
.cond-GD { background: #d9a400; color: #1a1400; }
.cond-LP { background: #e67e22; }
.cond-PL { background: #d35400; }
.cond-PO { background: #c0392b; }

.m-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; margin: 0 0 16px; }
.m-stats div { background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; }
.m-stats dt { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .8px; font-weight: 600; }
.m-stats dd { margin: 2px 0 0; font-weight: 700; font-size: 17px; display: flex; align-items: center; gap: 6px; }
.m-stats dd .dots { margin-left: 0; }
.m-stats dd .dots i { width: 11px; height: 11px; }
.m-traits { color: var(--muted); font-size: 14px; margin-bottom: 12px; }
.m-text { background: var(--surface-2); border: 1px solid var(--line); border-radius: 14px; padding: 15px 18px; margin-bottom: 10px; font-size: 15px; line-height: 1.65; }
.m-text.trigger { border-left: 3px solid var(--c-yellow); }
.kw {
  display: inline-block; font-size: 12px; font-weight: 700; line-height: 1.55;
  padding: 0 8px; border-radius: 6px; vertical-align: 1px; background: #2f6fd6; color: #fff;
}
.kw.don { background: #1d1d1f; box-shadow: inset 0 0 0 1px #555; }
.kw.counter { background: #c9392f; }
.kw.trig { background: #d8a800; color: #1a1400; }
.kw.key { background: #7c4dcc; }
.ref { font-weight: 700; }
.trait { font-style: italic; color: var(--gold); }
.en-text { margin-top: 10px; font-size: 14px; }
.en-text summary { cursor: pointer; color: var(--muted); font-size: 13px; }
.m-sets { font-size: 13px; color: var(--muted); margin: 8px 0 20px; }

.m-variants h3 { font-size: 13px; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin: 22px 0 12px; }
.variant-group + .variant-group { margin-top: 14px; }
.vg-label { display: block; font-size: 12px; font-weight: 600; color: var(--muted); margin-bottom: 8px; }
.variants { display: flex; flex-wrap: wrap; gap: 10px; }
.variant {
  position: relative; width: 82px; border: 2px solid transparent; border-radius: 9px;
  padding: 0; background: none; overflow: hidden; transition: transform .2s var(--ease), border-color .2s;
}
.variant:hover { transform: translateY(-3px); }
.variant img, .variant .sprite { width: 100%; display: block; aspect-ratio: 600 / 838; object-fit: cover; }
.variant.current { border-color: var(--gold); box-shadow: 0 0 18px -4px rgba(246, 178, 62, .8); }
.variant .qty { font-size: 10px; padding: 0 6px; left: 3px; top: 3px; }
.variant small {
  position: absolute; left: 0; right: 0; bottom: 0; font-size: 10px; font-weight: 700; line-height: 1.25;
  background: linear-gradient(transparent, rgba(0, 0, 0, .85)); color: #fff; padding: 10px 0 3px;
}

.toast {
  position: fixed; left: 50%; bottom: calc(28px + env(safe-area-inset-bottom, 0px)); translate: -50% 24px; z-index: 50;
  display: flex; align-items: center; gap: 10px;
  background: color-mix(in srgb, var(--surface-solid) 88%, transparent); color: var(--text);
  backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--line-strong); padding: 12px 20px; border-radius: 999px;
  font-weight: 600; font-size: 14px; box-shadow: var(--shadow);
  opacity: 0; pointer-events: none; transition: opacity .25s, translate .3s var(--ease);
}
.toast::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 10px var(--gold); }
.toast.show { opacity: 1; translate: -50% 0; }
.toast.show.has-action { pointer-events: auto; }
.toast button {
  margin-left: 4px; border: 0; background: none; padding: 2px 4px; color: var(--gold);
  font-weight: 800; font-size: 14px; text-transform: uppercase; letter-spacing: .5px;
}
.tile.leaving { animation: leave .26s var(--ease) forwards; pointer-events: none; }
@keyframes leave { to { opacity: 0; transform: scale(.88); } }
.quick button svg { width: 16px; height: 16px; vertical-align: -2px; }

/* ---------- Animations ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes pop { from { opacity: 0; transform: translateY(-6px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes modalIn { from { opacity: 0; transform: translateY(18px) scale(.98); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Petits écrans ---------- */
@media (max-width: 1100px) {
  .portfolio { grid-template-columns: repeat(3, 1fr); }
  .value-card { grid-column: 1 / -1; }
  .podium { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .topbar-inner { flex-wrap: wrap; gap: 10px 16px; padding-block: 10px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
  .tabs { order: 3; width: 100%; overflow-x: auto; scrollbar-width: none; }
  .tabs button { padding: 8px 12px; flex: 1 0 auto; justify-content: center; }
  main { padding-block: 18px 60px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
  .hero { padding: 24px 0 22px; }
  .home-search input { font-size: 16px; padding: 15px 0; }
  kbd { display: none; }
  .portfolio { gap: 10px; }
  .hstat { padding: 14px; }
  .hstat b { font-size: 22px; }
  .hstat .ico { display: none; }
  .panel { padding: 16px; border-radius: 18px; }
  .top-list { grid-template-columns: 1fr; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 18px 12px; }
  .modal-inner { grid-template-columns: 1fr; padding: 22px 52px; }
  .modal-img { position: relative; max-width: 330px; margin: 0 auto; }
  .nav { top: 210px; }
  .nav.prev { left: 8px; }
  .nav.next { right: 8px; }
  .search .check { display: none; }
  .quick-cond { margin-left: 0; }
  .filters-sep { display: none; }
}
@media (hover: none) {
  .wish, .quick { opacity: 1; transform: none; }
  .wish:not(.on) { opacity: .75; }
}

/* ---------- Version en ligne ---------- */
/* Planche de 8 × 4 miniatures : la position de la carte est donnée par l'élément */
.sprite {
  display: block; aspect-ratio: 600 / 838; max-width: 100%;
  background-color: var(--surface-3); background-repeat: no-repeat; background-size: 800% 400%;
}
.holo.from-sprite { background-repeat: no-repeat; background-size: 800% 400%; }

.sync {
  display: inline-flex; align-items: center; gap: 7px; margin-right: 10px; vertical-align: middle; white-space: nowrap;
  font-size: 12px; font-weight: 600; color: var(--muted);
  padding: 5px 11px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface-2);
}
.sync i { width: 8px; height: 8px; border-radius: 50%; background: var(--faint); }
.sync[data-state="ok"] i { background: #2fb574; box-shadow: 0 0 8px #2fb574; }
.sync[data-state="saving"] i, .sync[data-state="connecting"] i, .sync[data-state="slow"] i { background: var(--gold); animation: blink 1s infinite; }
.sync[data-state="error"] i { background: var(--danger); }
.sync[data-state="error"] { color: var(--danger); }
@keyframes blink { 50% { opacity: .3; } }

/* Scan d'une carte */
.scan-cta { margin-top: 18px; padding: 11px 22px; font-size: 15px; }
.scan-cta svg, .scan-btn svg { width: 19px; height: 19px; }
.scan-btn { margin-right: 8px; }
dialog#scanDlg {
  border: 1px solid var(--line-strong); border-radius: 24px; padding: 0;
  width: min(760px, calc(100vw - 32px)); max-height: calc(100vh - 32px);
  background: var(--surface-solid); color: var(--text); box-shadow: var(--shadow);
}
dialog#scanDlg[open] { animation: modalIn .3s var(--ease); }
dialog#scanDlg::backdrop { background: rgba(3, 5, 10, .72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.scan-box { position: relative; padding: 26px 28px 24px; max-height: calc(100vh - 34px); overflow: auto; }
.scan-box h2 { margin: 0 0 18px; font-size: 22px; font-weight: 800; }
.scan-body { display: grid; grid-template-columns: 200px 1fr; gap: 22px; align-items: start; }
#scanPhoto { width: 100%; border-radius: 12px; background: var(--surface-3); box-shadow: var(--shadow-sm); }
.scan-main { min-width: 0; display: grid; gap: 14px; }
.scan-status { margin: 0; font-size: 15px; line-height: 1.5; }
.scan-status.busy::before {
  content: ''; display: inline-block; width: 14px; height: 14px; margin-right: 10px; vertical-align: -2px;
  border: 2px solid var(--line-strong); border-top-color: var(--gold); border-radius: 50%; animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.scan-manual { display: grid; gap: 6px; font-size: 13px; color: var(--muted); }
.scan-manual input {
  background: var(--surface-2); border: 1px solid var(--line-strong); border-radius: 10px; padding: 9px 12px;
  font-size: 16px; text-transform: uppercase; outline: none;
}
.scan-manual input:focus { border-color: rgba(246, 196, 83, .6); }
.scan-note { margin: 0 0 8px; font-size: 13px; color: var(--muted); }
.scan-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.scan-actions select {
  appearance: none; -webkit-appearance: none; color: var(--text);
  background: var(--surface-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238f9ab0' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center / 14px;
  border: 1px solid var(--line-strong); border-radius: 12px; padding: 9px 32px 9px 12px;
}
.scan-foot { display: flex; gap: 8px; justify-content: flex-end; }
/* Version web : caméra en direct avec un cadre pour le numéro, et conseils */
.scan-box.is-live .scan-body { grid-template-columns: minmax(0, 1fr); }
.scan-box.is-live #scanPhoto, .scan-box.is-live #scanAgain { display: none; }
.scan-live { position: relative; aspect-ratio: 4 / 3; border-radius: 16px; overflow: hidden; background: #000; }
.scan-live video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.scan-frame {
  position: absolute; left: 50%; top: 46%; width: 76%; aspect-ratio: 2.6 / 1; translate: -50% -50%;
  border: 2px solid var(--gold); border-radius: 12px;
  box-shadow: 0 0 0 9999px rgba(0, 0, 0, .5), 0 0 22px rgba(246, 196, 83, .45);
}
.scan-frame i {
  position: absolute; left: 6%; right: 6%; top: 50%; height: 2px; border-radius: 2px;
  background: var(--gold); box-shadow: 0 0 10px var(--gold); animation: scanline 1.6s ease-in-out infinite alternate;
}
@keyframes scanline { from { top: 14%; } to { top: 86%; } }
.scan-hint { position: absolute; left: 0; right: 0; bottom: 10px; margin: 0; text-align: center; color: #fff; font-size: 13px; font-weight: 600; text-shadow: 0 1px 4px #000; }
.scan-help {
  display: grid; grid-template-columns: 58px minmax(0, 1fr); gap: 12px 14px; align-items: start;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px;
}
.scan-illus { width: 58px; height: auto; }
.scan-illus .i-card { fill: var(--surface-3); stroke: var(--line-strong); }
.scan-illus .i-art { fill: var(--surface-3); }
.scan-illus .i-line { fill: var(--line-strong); }
.scan-illus .i-spot { fill: rgba(246, 196, 83, .14); stroke: var(--gold); stroke-width: 1.5; animation: blink 1.4s infinite; }
.scan-illus .i-code { fill: var(--gold); font: 700 5px 'Outfit', sans-serif; }
.scan-help ol { margin: 0; padding-left: 18px; display: grid; gap: 6px; font-size: 13.5px; line-height: 1.4; color: var(--muted); }
.scan-help b { color: var(--text); font-weight: 600; }
.scan-help code { font: 700 12px ui-monospace, Consolas, monospace; color: var(--gold); background: rgba(246, 196, 83, .12); padding: 0 5px; border-radius: 4px; }
.scan-langs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.scan-lang {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: var(--surface-2); font-size: 13px; font-weight: 600;
}
.scan-lang small { font-size: 11px; color: var(--muted); font-weight: 700; }
.scan-lang .flag svg { width: 17px; }
.scan-lang.on { border-color: var(--gold); background: rgba(246, 196, 83, .14); color: var(--gold); }
.scan-alt { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; }
.scan-alt .btn { flex: 1 1 auto; }
.scan-alt .btn svg { width: 16px; height: 16px; }
@media (max-width: 600px) {
  .scan-body { grid-template-columns: 1fr; }
  #scanPhoto { max-width: 160px; }
  .scan-box { padding: 22px 18px 18px; }
}
@media (max-width: 760px) {
  dialog#scanDlg { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; border: 0; border-radius: 0; }
  .scan-box {
    height: 100%; max-height: 100dvh;
    padding: calc(14px + env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px))
      calc(20px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
  }
  .scan-box h2 { margin: 4px 0 14px; font-size: 20px; }
  .scan-box .close { position: absolute; top: calc(10px + env(safe-area-inset-top, 0px)); }
  .scan-live { aspect-ratio: 1 / 1; }
  .scan-frame { width: 84%; }
}

dialog#confirmDlg {
  border: 1px solid var(--line-strong); border-radius: 20px; padding: 0; width: min(440px, calc(100vw - 32px));
  background: var(--surface-solid); color: var(--text); box-shadow: var(--shadow);
}
dialog#confirmDlg::backdrop { background: rgba(3, 5, 10, .6); }
.confirm-box { padding: 24px; display: grid; gap: 10px; }
.confirm-box h2 { margin: 0; font-size: 20px; text-wrap: balance; }
.confirm-box p { margin: 0; color: var(--muted); }
.confirm-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 10px; }
/* Confidentialité et mentions légales (version web) */
.site-foot {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px 14px;
  margin: 36px 0 8px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted);
}
.site-foot .link { border: 0; background: none; padding: 4px 0; color: var(--gold); font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
dialog#legalDlg {
  border: 1px solid var(--line-strong); border-radius: 20px; padding: 0; width: min(640px, calc(100vw - 32px));
  background: var(--surface-solid); color: var(--text); box-shadow: var(--shadow);
}
/* Le bouton fermer est hors de la zone qui défile : il reste visible */
#legalDlg .close { position: absolute; }
dialog#legalDlg[open] { animation: modalIn .3s var(--ease); }
dialog#legalDlg::backdrop { background: rgba(3, 5, 10, .72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.legal-box { position: relative; padding: 26px 28px 22px; max-height: calc(100vh - 40px); overflow: auto; overscroll-behavior: contain; line-height: 1.55; }
.legal-box h2 { margin: 0 44px 12px 0; font-size: 22px; font-weight: 800; text-wrap: balance; }
.legal-box h3 { margin: 22px 0 6px; font-size: 15px; color: var(--gold); }
.legal-box p, .legal-box li, .legal-box dd { font-size: 14px; color: var(--muted); }
.legal-box p { margin: 0 0 8px; }
.legal-box b { color: var(--text); font-weight: 600; }
.legal-box ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.legal-box a { color: var(--gold); }
.legal-box .legal-lead { padding: 12px 14px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); color: var(--text); }
.legal-dl { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 8px 16px; }
.legal-dl dt { font-size: 14px; font-weight: 600; }
.legal-dl dd { margin: 0; }
@media (max-width: 760px) {
  dialog#legalDlg { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; border: 0; border-radius: 0; }
  .legal-box { height: 100%; max-height: none; padding: calc(18px + env(safe-area-inset-top, 0px)) 18px calc(22px + env(safe-area-inset-bottom, 0px)); }
  #legalDlg .close { position: absolute; top: calc(10px + env(safe-area-inset-top, 0px)); right: 12px; }
  .legal-dl { grid-template-columns: 1fr; gap: 2px; }
  .legal-dl dd { margin-bottom: 8px; }
}
@media (max-width: 900px) { .sync span { display: none; } .sync { padding: 6px; margin-right: 6px; } }

/* ---------- Téléphone : onglets en bas, en-tête compact, filtres repliables, fiche plein écran ---------- */
.filter-toggle { display: none; }
@media (max-width: 760px) {
  /* Sans flou d'arrière-plan sur l'en-tête : sinon la barre d'onglets fixe se placerait par rapport à lui */
  .topbar { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--bg); }
  .topbar-inner { flex-wrap: nowrap; gap: 10px; padding-block: 8px; }
  .brand img { width: 34px; height: 34px; }
  .brand strong { font-size: 17px; }
  .brand small { display: none; }

  .tabs {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; order: 0; width: auto;
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; overflow: visible;
    padding: 6px max(8px, env(safe-area-inset-right, 0px)) calc(6px + env(safe-area-inset-bottom, 0px)) max(8px, env(safe-area-inset-left, 0px));
    border: 0; border-top: 1px solid var(--line); border-radius: 0;
    background: color-mix(in srgb, var(--surface-solid) 90%, transparent);
    backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur);
    box-shadow: 0 -10px 30px -18px rgba(0, 0, 0, .6);
  }
  .tabs button {
    position: relative; flex-direction: column; justify-content: center; gap: 3px;
    padding: 6px 2px; min-height: 52px; border-radius: 14px; font-size: 11px; font-weight: 600;
  }
  .tabs button svg { width: 23px; height: 23px; }
  .tabs button.active { background: rgba(246, 196, 83, .1); color: var(--gold); box-shadow: none; }
  .tabs .count {
    position: absolute; top: 3px; left: calc(50% + 6px); min-width: 18px; padding: 0 5px; border-radius: 999px;
    font-size: 10px; line-height: 16px; text-align: center; background: var(--surface-3); color: var(--text); opacity: 1;
  }
  .tabs button.active .count { background: var(--gold); color: var(--accent-ink); }
  #countAll { display: none; }

  main { padding-block: 12px calc(96px + env(safe-area-inset-bottom, 0px)); }
  .toast { bottom: calc(84px + env(safe-area-inset-bottom, 0px)); max-width: calc(100vw - 32px); }

  /* Accueil */
  .hero { padding: 12px 0 18px; }
  .hero h1 { font-size: 27px; letter-spacing: -.6px; margin: 12px 0 16px; }
  .eyebrow { font-size: 10px; letter-spacing: 1.4px; padding: 5px 11px; }
  .home-search { padding: 0 10px 0 18px; }
  .hero-hints {
    flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scrollbar-width: none;
    margin: 14px -16px 0; padding: 0 16px;
  }
  .hero-hints > * { flex: none; }
  .scan-cta { width: 100%; justify-content: center; padding: 13px 18px; }
  .portfolio { margin-bottom: 18px; }
  .value-card { padding: 16px 18px; }
  .hstat { padding: 12px; gap: 4px; }
  .hstat b { font-size: 20px; }
  .hstat span { font-size: 12px; }
  .panel { padding: 14px 14px 16px; margin-bottom: 18px; }
  .panel-head { flex-wrap: wrap; margin-bottom: 12px; }
  .panel-head h2 { font-size: 17px; }
  .panel-head .muted { padding-left: 0; }
  .car-nav .icon-btn { display: none; }
  .mini { width: 122px; }
  .strip { gap: 12px; }
  .pod { grid-template-columns: 76px 1fr; gap: 12px; padding: 12px; }
  .pod img, .pod .sprite { width: 76px; }
  .pod-price { font-size: 20px; }
  .rank-row { grid-template-columns: 22px 36px 1fr auto; gap: 10px; padding: 6px 4px; }
  .rank-row .cond { display: none; }
  .rank-row img, .rank-row .sprite { width: 36px; }

  /* Catalogue : recherche + bouton Filtres, les filtres s'ouvrent au besoin */
  .controls { padding: 10px; gap: 10px; border-radius: 18px; margin-bottom: 10px; grid-template-columns: minmax(0, 1fr); }
  .search { padding: 0 6px 0 14px; }
  .search input[type=search] { padding: 11px 0; }
  .filter-toggle {
    display: inline-flex; align-items: center; gap: 6px; flex: none;
    border: 1px solid var(--line-strong); background: var(--surface-2); color: var(--text);
    border-radius: 10px; padding: 7px 10px; font-weight: 600; font-size: 13px;
  }
  .filter-toggle svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
  .filter-toggle em {
    font-style: normal; background: var(--gold); color: var(--accent-ink); border-radius: 999px;
    min-width: 18px; padding: 0 5px; font-size: 11px; font-weight: 800; line-height: 18px; text-align: center;
  }
  .filter-toggle em:empty { display: none; }
  .controls.filters-open .filter-toggle { border-color: var(--gold); color: var(--gold); }
  .controls .filters { display: none; }
  .controls.filters-open .filters { display: flex; }
  .chips { width: 100%; justify-content: space-between; }
  .chip { width: 36px; height: 36px; }
  .filters select { flex: 1 1 calc(50% - 4px); max-width: none; min-width: 0; padding-block: 9px; }
  #reset { flex: 1 1 100%; }
  .resultbar { margin: 0 2px 12px; gap: 6px 12px; font-size: 13px; }

  /* Grille : 3 cartes par ligne, encadré numéro / prix sous chaque carte */
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 8px; }
  .tile .art { border-radius: 8px; }
  .tile .meta { display: none; }
  .mmeta {
    display: grid; gap: 1px; margin-top: 6px; padding: 5px 3px 6px; text-align: center;
    background: var(--surface); border: 1px solid var(--line); border-radius: 11px;
  }
  .mm-id { display: flex; align-items: center; justify-content: center; gap: 5px; min-width: 0; font-size: 13px; letter-spacing: .2px; }
  .mm-id > span:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .mm-id .flag svg { width: 16px; }
  .mm-id .tag { font-size: 9.5px; line-height: 15px; padding: 0 4px; }
  .mm-price { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; gap: 0 5px; line-height: 1.25; }
  .mm-price b { font-size: 15px; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
  .mm-price b.na { color: var(--faint); font-weight: 600; }
  .mm-price .mv { font-size: 11px; align-self: center; }
  .mm-price .mv svg { width: 11px; height: 11px; }
  .qty { left: 4px; top: 4px; font-size: 11px; padding: 1px 7px; }
  .wish { right: 4px; top: 4px; width: 26px; height: 26px; }
  .wish svg { width: 13px; height: 13px; }

  /* Collection */
  /* Statistiques ramassées : la valeur, puis 4 petits chiffres sur une ligne */
  .stats { padding: 12px 14px; margin-bottom: 10px; border-radius: 18px; }
  .stat-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px 6px; }
  .stat { min-width: 0; }
  .stat.accent { grid-column: 1 / -1; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
  .stat b { font-size: 17px; }
  .stat.accent b { font-size: 24px; }
  .stat span { display: block; font-size: 11px; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .stat.accent span { display: inline; font-size: 12px; }
  .stat span i { display: none; }
  .stats details { margin-top: 10px; padding-top: 8px; }
  .stats summary { font-size: 13px; }
  /* Pas de zoom automatique d'iOS sur les champs (police d'au moins 16 px) */
  input, select, textarea { font-size: 16px !important; }

  /* Fiche carte en plein écran, navigation par balayage de la grande carte */
  dialog#modal {
    width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh;
    margin: 0; border: 0; border-radius: 0;
  }
  .modal-inner {
    height: 100%; max-height: 100dvh; gap: 18px;
    padding: calc(60px + env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px))
      calc(28px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
  }
  .modal-img { max-width: 240px; }
  .close { position: fixed; top: calc(10px + env(safe-area-inset-top, 0px)); right: max(12px, env(safe-area-inset-right, 0px)); }
  .close, .nav { background: var(--surface-solid); box-shadow: 0 4px 14px rgba(0, 0, 0, .35); }
  .nav { position: fixed; top: calc(10px + env(safe-area-inset-top, 0px)); translate: none; }
  .nav.prev { left: max(12px, env(safe-area-inset-left, 0px)); }
  .nav.next { left: calc(max(12px, env(safe-area-inset-left, 0px)) + 46px); right: auto; }
  #mName { font-size: 24px; margin-bottom: 14px; }
  .m-price { padding: 14px 16px; }
  .price-main b { font-size: 26px; }
  .m-copies { padding: 14px; }
  .copy-row { grid-template-columns: auto 1fr auto; gap: 8px 10px; }
  .copy-row .unit { grid-column: 2; grid-row: 2; }
  .copy-row .stepper { grid-row: 1 / span 2; grid-column: 3; }
  .m-add .btn.primary { flex: 1 1 auto; }
  .m-stats { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); }
  .variant { width: 74px; }
}

/* Écrans tactiles : un seul bouton « + » discret sur les cartes, pas de bandeau sur l'image */
@media (hover: none) {
  .quick { background: none; justify-content: flex-end; padding: 4px; }
  .quick button { min-width: 36px; height: 36px; padding: 0; font-size: 19px; box-shadow: 0 4px 12px rgba(0, 0, 0, .45); }
  .quick [data-act="dec"] { display: none; }
  /* Dans la collection, retirer une carte doit être à portée de doigt */
  .grid[data-view="collection"] .quick [data-act="dec"] { display: inline-block; }
  .grid[data-view="collection"] .quick { justify-content: space-between; }
  .quick button.got { padding: 0 12px; font-size: 13px; }
}
@media (hover: none) and (max-width: 760px) {
  .quick button { min-width: 30px; height: 30px; font-size: 17px; }
  .quick button.got { padding: 0 8px; font-size: 11px; }
}
