/* =========================================================================
   Weelo — couche « moderne » au-dessus du thème d'origine (style.css + aura.css).
   Même palette (menthe #00d7b3, rouge #e61852, ardoise #2b373a), mais coins arrondis,
   ombres douces, espacements plus aérés et nouveaux composants : cartes produit,
   accueil, fiche produit, connexion / inscription, j'aime.
   ========================================================================= */

:root {
  --brand: #00d7b3;
  --brand-600: #00b899;
  --brand-50: #e6fbf6;
  --accent: #e61852;
  --logo-red: #f01e1e;
  --ink: #1d2729;
  --ink-2: #2b373a;
  --muted: #6b7a80;
  --line: #e4e9ea;
  --bg: #f3f5f6;
  --card: #fff;
  --gold: #f5a623;
  --r-sm: 8px;
  --r: 12px;
  --r-lg: 18px;
  --r-pill: 999px;
  --sh-1: 0 1px 2px rgba(16, 24, 40, .05), 0 1px 3px rgba(16, 24, 40, .07);
  --sh-2: 0 12px 32px -14px rgba(16, 24, 40, .28);
  --sh-3: 0 24px 60px -20px rgba(16, 24, 40, .4);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

body { background-color: var(--bg); -webkit-font-smoothing: antialiased; }
body.no-scroll { overflow: hidden; }
.section-wrap { background-color: var(--bg); }
::selection { background: rgba(0, 215, 179, .25); }

/* ---------- Logo ---------- */
.logo, .logo.small, header .logo-mobile { width: auto; height: auto; }
.logo, .logo.small { display: flex; align-items: center; gap: 10px; }
header .logo { margin-top: 26px; }
.brand-mark { height: 44px; width: auto; display: block; }
.logo.small .brand-mark { height: 36px; }
header .logo-mobile .brand-mark { height: 38px; margin-top: 2px; }
.brand-name { color: #fff; font-size: 26px; font-weight: 700; letter-spacing: -.3px; line-height: 1; white-space: nowrap; }
.brand-name span { color: var(--logo-red); }
.logo.small .brand-name { font-size: 22px; }
.side-menu-header .logo.small { justify-content: center; }

/* ---------- Boutons ---------- */
.button {
  border-radius: var(--r-sm); border: 0; cursor: pointer; letter-spacing: .1px;
  transition: background-color .2s, transform .15s var(--ease), box-shadow .2s;
}
.button:hover { transform: translateY(-1px); }
.button:active { transform: translateY(0); }
.button.tertiary, .button.secondary { box-shadow: 0 6px 16px -8px currentColor; }
.button.primary { background: var(--mint, #00d7b3); color: #fff; box-shadow: none; }
.button.primary:hover { background: #00c2a1; }
.button.dark { background-color: var(--mint, #00d7b3); color: #fff; }
/* Actions qui retirent ou refusent (administration) : rouge, plus de bleu. */
.button.secondary { background-color: #d6455d; }
.button.secondary:hover { background-color: #c03650; }
.button.dark:hover { background-color: #00c2a1; }
.button.secondary-dark, .button.tertiary { background-color: var(--mint, #00d7b3); color: #fff; box-shadow: none; }
.button.danger { background-color: #d6455d; color: #fff; }
.button.danger:hover { background-color: #c03650; }
.button[disabled], .button.loading { opacity: .65; cursor: progress; transform: none; }
.button.big { border-radius: var(--r); }

/* ---------- Champs ---------- */
input[type="text"], input[type="email"], input[type="password"], input[type="number"], input[type="search"], input[type="url"], select, textarea {
  border: 1px solid #dfe5e7; border-radius: var(--r-sm); background-color: #fff; color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
}
input[type="text"], input[type="email"], input[type="password"], input[type="number"], input[type="url"] { height: 44px; line-height: 44px; }
input::placeholder, textarea::placeholder { color: #a3aeb2; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(0, 215, 179, .15); }
input.rounded { border-radius: var(--r-pill); }
.rl-label { font-weight: 700; color: var(--ink-2); }

/* ---------- Blocs, encarts et menus ---------- */
.form-box-item, .sidebar-item, .headline, .pd-buybox, .db-two .form-box-item {
  border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-1);
}
.headline { border-left: 1px solid var(--line); overflow: hidden; }
.line-separator { border-color: var(--line); }
.dropdown { border-radius: var(--r); box-shadow: var(--sh-2); border-color: var(--line); overflow: hidden; }
.dropdown .dropdown-triangle { display: none; }
.dropdown.dark { box-shadow: none; overflow: visible; border-radius: 0; }
.dropdown.dark .dropdown-item > a { border-radius: var(--r-sm); margin: 0 10px; }
.pin { border-radius: var(--r-pill); padding: 1px 8px; }
.user-avatar img, .user-avatar { border-radius: 50%; }
.search-widget { border-radius: var(--r-lg); box-shadow: var(--sh-3); }
.toast { border-radius: var(--r); border-left: 0; box-shadow: var(--sh-3); padding: 14px 18px; }
.toast::before { content: "✓"; color: var(--brand); font-weight: 700; margin-right: 8px; }
.toast.error::before { content: "!"; color: #ff6b8b; }
.empty-state { background: #fff; border: 1px dashed #d7dfe1; border-radius: var(--r-lg); grid-column: 1 / -1; }
.chip, .status { border-radius: var(--r-pill); }
details > summary { cursor: pointer; }
table { border-radius: var(--r); overflow: hidden; }
.dashboard-content .headline { border-radius: var(--r-lg); }
.notice-bar button { border-radius: var(--r-pill); }
.main-menu-wrap { box-shadow: 0 1px 0 var(--line); position: relative; z-index: 50; }
.section-headline-wrap .section-headline h1 { letter-spacing: -.5px; }
.pager .pager-item, .pager-wrap a, .pager-wrap button { border-radius: var(--r-sm); }

/* ---------- J'aime ---------- */
.heart-icon { width: 18px; height: 18px; display: block; }
.heart-icon path { fill: none; stroke: currentColor; stroke-width: 2; transition: fill .2s, stroke .2s; }
.like-btn { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; border: 0; font: inherit; font-weight: 700; }
.like-btn.on .heart-icon path { fill: var(--accent); stroke: var(--accent); }
.like-btn.pop .heart-icon { animation: like-pop .35s var(--ease); }
@keyframes like-pop { 40% { transform: scale(1.35); } 100% { transform: scale(1); } }

/* ---------- Grilles et rangées de cartes ---------- */
.mk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 22px; }
.mk-grid.cols-3 { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.section .content .mk-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.mk-row { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 3 * 22px) / 4); gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 4px 2px 18px; margin: -4px -2px 0; }
.mk-row::-webkit-scrollbar { display: none; }
.mk-row > * { scroll-snap-align: start; }
.mk-row > .empty-state { grid-column: auto; }
@media (max-width: 1100px) { .mk-row { grid-auto-columns: calc((100% - 2 * 22px) / 3); } }
@media (max-width: 800px) { .mk-row { grid-auto-columns: 46%; } }
@media (max-width: 520px) { .mk-row { grid-auto-columns: 82%; } .mk-grid, .mk-grid.cols-3, .section .content .mk-grid { grid-template-columns: 1fr; } }

.mk-skeleton { border-radius: var(--r-lg); min-height: 360px; background: linear-gradient(90deg, #e6ebec 25%, #f3f6f6 37%, #e6ebec 63%); background-size: 400% 100%; animation: shimmer 1.3s ease infinite; }
@media (prefers-reduced-motion: reduce) { .mk-skeleton { animation: none; } }

/* ---------- Carte produit ---------- */
.mk-card { text-align: left;
  position: relative; display: flex; flex-direction: column; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-1);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s, opacity .25s;
}
.mk-card:hover { transform: translateY(-4px); box-shadow: var(--sh-2); border-color: #d5dee0; }
.mk-card.is-featured { border-color: rgba(245, 166, 35, .55); box-shadow: 0 0 0 1px rgba(245, 166, 35, .25), var(--sh-1); }
.mk-card.removing { opacity: 0; transform: scale(.96); }
.mk-media { position: relative; display: block; aspect-ratio: 16 / 10; background: #dfe6e8; overflow: hidden; }
.mk-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s var(--ease); }
.mk-card:hover .mk-media img { transform: scale(1.06); }
.mk-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 55%, rgba(0, 0, 0, .45)); opacity: 0; transition: opacity .25s; }
.mk-card:hover .mk-media::after { opacity: 1; }
.mk-cta { position: absolute; left: 50%; bottom: 14px; z-index: 1; transform: translate(-50%, 10px); opacity: 0; background: #fff; color: var(--ink); font-weight: 700; font-size: 13px; padding: 7px 14px; border-radius: var(--r-pill); box-shadow: var(--sh-2); transition: opacity .25s, transform .25s var(--ease); white-space: nowrap; }
.mk-card:hover .mk-cta { opacity: 1; transform: translate(-50%, 0); }
.mk-badges { position: absolute; top: 12px; left: 12px; display: flex; flex-wrap: wrap; gap: 6px; z-index: 1; }
.mk-badge { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; color: #fff; padding: 4px 9px; border-radius: var(--r-pill); background: rgba(29, 39, 41, .82); backdrop-filter: blur(4px); }
.mk-badge.featured { background: linear-gradient(135deg, #ffb52e, #f08a00); }
.mk-badge.promo { background: var(--accent); }
.mk-badge.new { background: var(--brand-600); }
.mk-badge.out { background: #5d6a6e; }
.mk-like { position: absolute; top: 10px; right: 10px; z-index: 2; height: 34px; padding: 0 11px; border-radius: var(--r-pill); background: rgba(255, 255, 255, .92); color: var(--ink-2); box-shadow: var(--sh-1); font-size: 13px; backdrop-filter: blur(4px); transition: transform .15s, background .15s; }
.mk-like:hover { transform: scale(1.06); background: #fff; }
.mk-like.on { color: var(--accent); }
.mk-body { padding: 14px 16px 10px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.mk-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.mk-cat { font-size: 12px; font-weight: 700; color: var(--brand-600); background: var(--brand-50); padding: 2px 9px; border-radius: var(--r-pill); }
.mk-cat:hover { background: #d3f7ee; }
.mk-edition { font-size: 12px; color: var(--muted); }
.mk-title { text-align: left; margin: 0; font-size: 16px; line-height: 1.3; font-weight: 700; }
.mk-title a { color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mk-title a::after { content: ""; position: absolute; inset: 0; z-index: 0; } /* toute la carte est cliquable */
.mk-title a:hover { color: var(--brand-600); }
.mk-desc { margin: 0; font-size: 13px; line-height: 1.5; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mk-stats { display: flex; align-items: center; gap: 12px; font-size: 12.5px; color: var(--muted); margin-top: auto; padding-top: 4px; }
.mk-stat { display: inline-flex; align-items: center; gap: 4px; }
.mk-stat [class^="icon-"] { font-size: 13px; }
.mk-rating { display: inline-flex; align-items: center; gap: 3px; font-weight: 700; color: var(--ink-2); }
.mk-rating.none { font-weight: 400; color: var(--muted); }
.mk-star { color: var(--gold); font-size: 14px; }
.mk-rating.none .mk-star { color: #cfd6d8; }
.mk-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; border-top: 1px solid var(--line); }
.mk-seller, .mk-cat, .mk-price { position: relative; z-index: 1; }
.mk-seller { display: inline-flex; align-items: center; gap: 8px; min-width: 0; flex: 1 1 auto; font-size: 13px; font-weight: 700; color: var(--ink-2); }
.mk-seller img { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; flex: none; background: #e6ebec; }
.mk-seller > span:not(.premium-dot) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mk-seller:hover { color: var(--brand-600); }
.premium-dot { flex: none; display: inline-grid; place-items: center; width: 18px; height: 18px; font-size: 10px; color: #7a4b00; background: linear-gradient(135deg, #ffe08a, #ffbf3c); border-radius: 50%; }
.mk-price { display: flex; align-items: baseline; gap: 6px; white-space: nowrap; flex: none; }
.mk-price strong { font-size: 18px; color: var(--ink); }
.mk-price s { font-size: 12px; color: var(--muted); }
.mk-price.free strong { color: var(--brand-600); }

/* ---------- Accueil ---------- */
.home-inner { max-width: 1170px; width: 95%; margin: 0 auto; }
.home-cats { padding: 88px 0 0; }
.cat-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.cat-chip { display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line); color: var(--ink-2); font-weight: 700; font-size: 14px; padding: 8px 8px 8px 16px; border-radius: var(--r-pill); box-shadow: var(--sh-1); transition: transform .15s, border-color .15s, color .15s; }
.cat-chip b { background: var(--bg); color: var(--muted); font-size: 12px; padding: 2px 8px; border-radius: var(--r-pill); }
.cat-chip:hover { transform: translateY(-2px); border-color: var(--brand); color: var(--brand-600); }
.home-block { padding: 56px 0 8px; }
.home-block.alt { padding-top: 40px; }
.home-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.home-head h2 { text-align: left; margin: 0; font-size: 28px; line-height: 1.2; color: var(--ink); letter-spacing: -.4px; }
.home-sub { margin: 6px 0 0; color: var(--muted); font-size: 15px; }
.home-sub a, .link-btn { color: var(--brand-600); font-weight: 700; }
.link-btn { background: none; border: 0; padding: 0; cursor: pointer; font: inherit; font-weight: 700; margin-left: 6px; }
.home-more { text-align: center; margin: 30px 0 0; }
.home-more .button { display: inline-block; width: auto; padding: 0 32px; }
.seg { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-pill); box-shadow: var(--sh-1); }
.seg button { border: 0; background: none; cursor: pointer; font: inherit; font-weight: 700; font-size: 14px; color: var(--muted); padding: 8px 16px; border-radius: var(--r-pill); transition: background .15s, color .15s; }
.seg button:hover { color: var(--ink); }
.seg button[aria-selected="true"] { background: var(--ink-2); color: #fff; }
.row-nav { display: flex; gap: 8px; }
.row-btn { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--ink-2); cursor: pointer; box-shadow: var(--sh-1); display: grid; place-items: center; transition: background .15s, color .15s, opacity .15s; }
.row-btn:hover:not(:disabled) { background: var(--ink-2); color: #fff; }
.row-btn:disabled { opacity: .35; cursor: default; }
.home-trust { padding: 56px 0 64px; }
.trust-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.trust-item { display: flex; gap: 14px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; box-shadow: var(--sh-1); }
.trust-item > span { flex: none; width: 44px; height: 44px; border-radius: var(--r); display: grid; place-items: center; font-size: 20px; color: var(--brand-600); background: var(--brand-50); }
.trust-item strong { display: block; color: var(--ink); font-size: 15px; margin-bottom: 2px; }
.trust-item p { margin: 0; font-size: 13.5px; color: var(--muted); line-height: 1.5; }
@media (max-width: 960px) { .home-cats { padding-top: 40px; } .home-head h2 { font-size: 23px; } .seg { overflow-x: auto; flex-wrap: nowrap; max-width: 100%; } .seg button { white-space: nowrap; } }

/* ---------- Connexion / inscription ---------- */
.auth-wrap { max-width: 1040px; width: 95%; margin: 48px auto 72px; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); background: #fff; border: 1px solid var(--line); border-radius: 24px; overflow: hidden; box-shadow: var(--sh-3); }
.auth-card { padding: 40px 44px 36px; }
.auth-card h1 { text-align: left; font-size: 30px; line-height: 1.2; color: var(--ink); margin: 22px 0 6px; letter-spacing: -.5px; text-transform: none; }
.auth-sub { color: var(--muted); margin: 0 0 22px; font-size: 15px; }
.auth-switch { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; background: var(--bg); border-radius: var(--r-pill); }
.auth-switch a { text-align: center; padding: 9px 0; border-radius: var(--r-pill); font-weight: 700; color: var(--muted); transition: background .15s, color .15s; }
.auth-switch a[aria-current="page"] { background: #fff; color: var(--ink); box-shadow: var(--sh-1); }
.auth-form .input-container { margin-bottom: 16px; }
.auth-form .form-error { background: #fdecef; color: #a3123d; border-radius: var(--r-sm); padding: 10px 12px; margin-bottom: 14px; font-size: 14px; }
.auth-form .form-ok { background: var(--brand-50); color: #0a6b57; border-radius: var(--r-sm); padding: 10px 12px; margin-bottom: 14px; font-size: 14px; }
.auth-form small { color: var(--muted); font-size: 12.5px; display: block; margin-top: 6px; }
.auth-label-row { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.auth-label-row a, .auth-foot a, .auth-terms a { color: var(--brand-600); font-weight: 700; }
.button.auth-submit { display: block; width: 100%; height: 50px; line-height: 50px; font-size: 16px; margin-top: 6px; }
.auth-forgot { margin-top: 20px; padding: 18px; background: var(--bg); border-radius: var(--r); }
.auth-forgot-title { font-weight: 700; color: var(--ink); margin: 0 0 10px; }
.auth-terms { font-size: 13px; color: var(--muted); margin: 0 0 12px; }
.auth-foot { margin: 22px 0 0; text-align: center; color: var(--muted); }
.pw-field { position: relative; }
.pw-field input { padding-right: 46px; }
.pw-toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border: 0; background: none; border-radius: var(--r-sm); color: var(--muted); cursor: pointer; }
.pw-toggle:hover, .pw-toggle[aria-pressed="true"] { color: var(--ink); background: var(--bg); }
.pw-meter { height: 5px; border-radius: var(--r-pill); background: var(--line); margin-top: 8px; overflow: hidden; }
.pw-meter span { display: block; height: 100%; width: 0; border-radius: inherit; transition: width .25s, background .25s; }
.pw-meter[data-level="1"] span { width: 25%; background: #e5484d; }
.pw-meter[data-level="2"] span { width: 50%; background: #f5a623; }
.pw-meter[data-level="3"] span { width: 75%; background: #6cc04a; }
.pw-meter[data-level="4"] span { width: 100%; background: var(--brand-600); }
.auth-oauth-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 10px; }
.auth-oauth-btn { display: flex; align-items: center; justify-content: center; height: 44px; border-radius: var(--r-sm); border: 1px solid var(--line); font-weight: 700; color: var(--ink); background: #fff; transition: background .15s, border-color .15s; }
.auth-oauth-btn:hover { background: var(--bg); border-color: #cfd8da; }
.auth-oauth-btn.discord { color: #fff; background: #5865f2; border-color: #5865f2; }
.auth-oauth-btn.github { color: #fff; background: #24292f; border-color: #24292f; }
.auth-or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; margin: 18px 0; }
.auth-or::before, .auth-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.auth-aside { position: relative; background: radial-gradient(120% 90% at 100% 0%, rgba(240, 30, 30, .28), transparent 55%), radial-gradient(90% 80% at 0% 100%, rgba(0, 215, 179, .22), transparent 60%), #151c1e; color: #fff; padding: 44px 40px; display: flex; flex-direction: column; justify-content: center; }
.auth-aside img { width: 84px; height: auto; margin-bottom: 18px; }
.auth-aside h2 { color: #fff; font-size: 24px; line-height: 1.25; margin: 0 0 24px; }
.auth-aside ul { display: grid; gap: 18px; }
.auth-aside li { display: flex; gap: 14px; align-items: flex-start; }
.auth-aside li > span { flex: none; width: 40px; height: 40px; border-radius: var(--r); display: grid; place-items: center; background: rgba(255, 255, 255, .08); color: var(--brand); font-size: 17px; }
.auth-aside strong { display: block; font-size: 15px; }
.auth-aside li div span { color: rgba(255, 255, 255, .68); font-size: 13.5px; line-height: 1.45; }
@media (max-width: 860px) {
  .auth-wrap { grid-template-columns: 1fr; margin-top: 24px; border-radius: var(--r-lg); }
  .auth-aside { display: none; }
  .auth-card { padding: 28px 22px; }
}

/* ---------- Fiche produit ---------- */
.pd2-wrap { max-width: 1170px; width: 95%; margin: 0 auto; padding: 22px 0 70px; display: block; }
.pd2-crumbs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 14px; color: var(--muted); margin-bottom: 18px; }
.pd2-crumbs a { color: var(--muted); }
.pd2-crumbs a:hover { color: var(--brand-600); }
.pd2-crumbs .current { color: var(--ink-2); font-weight: 700; max-width: 40ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pd2 { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 28px; align-items: start; }
.pd2-main { min-width: 0; }
.pd2-gallery { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 10px; box-shadow: var(--sh-1); }
.pd2-zoom { position: relative; display: block; width: 100%; padding: 0; border: 0; background: #dfe6e8; border-radius: var(--r); overflow: hidden; cursor: zoom-in; }
.pd2-zoom[disabled] { cursor: default; }
.pd2-zoom img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; transition: transform .4s var(--ease); }
.pd2-zoom:hover img { transform: scale(1.02); }
.pd2-zoom-hint { position: absolute; right: 12px; bottom: 12px; width: 38px; height: 38px; border-radius: 50%; background: rgba(255, 255, 255, .9); color: var(--ink); display: grid; place-items: center; box-shadow: var(--sh-1); opacity: 0; transition: opacity .2s; }
.pd2-zoom:hover .pd2-zoom-hint, .pd2-zoom:focus-visible .pd2-zoom-hint { opacity: 1; }
.pd2-thumbs { display: flex; gap: 8px; overflow-x: auto; padding-top: 10px; scrollbar-width: thin; }
.pd2-thumbs:empty { display: none; }
.pd2-thumbs button { flex: none; width: 96px; aspect-ratio: 16 / 10; padding: 0; border: 2px solid transparent; border-radius: var(--r-sm); overflow: hidden; cursor: pointer; background: #e6ebec; opacity: .7; transition: opacity .15s, border-color .15s; }
.pd2-thumbs button:hover, .pd2-thumbs button[aria-current="true"] { opacity: 1; }
.pd2-thumbs button[aria-current="true"] { border-color: var(--brand); }
.pd2-thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pd2-gallery .video-wrap { border-radius: var(--r); overflow: hidden; }

.pd2-tabs { display: flex; gap: 4px; margin: 26px 0 0; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; scroll-margin-top: 16px; }
.pd2-tabs button { flex: none; border: 0; background: none; cursor: pointer; font: inherit; font-weight: 700; font-size: 15px; color: var(--muted); padding: 12px 16px; border-bottom: 3px solid transparent; margin-bottom: -1px; transition: color .15s, border-color .15s; }
.pd2-tabs button:hover { color: var(--ink); }
.pd2-tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--brand); }
.tab-count { display: inline-block; min-width: 22px; font-size: 12px; padding: 1px 7px; border-radius: var(--r-pill); background: var(--bg); color: var(--muted); margin-left: 4px; }
.tab-count:empty { display: none; }
.pd2-panel { background: #fff; border: 1px solid var(--line); border-top: 0; border-radius: 0 0 var(--r-lg) var(--r-lg); padding: 26px 28px 30px; box-shadow: var(--sh-1); }
.pd2-h3 { font-size: 17px; color: var(--ink); margin: 26px 0 12px; }
.pd2-specs { display: grid; grid-template-columns: max-content 1fr; gap: 0; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; margin: 0; }
.pd2-specs dt, .pd2-specs dd { padding: 11px 16px; margin: 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.pd2-specs dt { color: var(--muted); background: #fafbfb; font-weight: 700; }
.pd2-specs dd { color: var(--ink); }
.pd2-specs dt:nth-last-of-type(1), .pd2-specs dd:last-of-type { border-bottom: 0; }
.pd2-keywords { display: flex; flex-wrap: wrap; gap: 6px; }
.pd2-keywords a { font-size: 13px; color: var(--brand-600); background: var(--brand-50); padding: 2px 9px; border-radius: var(--r-pill); }
.file-list { display: grid; gap: 8px; }
.file-list li { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r); font-size: 14px; color: var(--ink); }
.file-list .file-size { color: var(--muted); white-space: nowrap; }
.file-list .muted { color: var(--muted); }
.pd2-version { color: var(--muted); margin: 0 0 12px; }
.pd2-version strong { color: var(--ink); }
.pd2-score { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 18px 20px; background: var(--bg); border-radius: var(--r); margin-bottom: 20px; }
.pd2-score > strong { font-size: 38px; line-height: 1; color: var(--ink); }
.pd2-score .stars { font-size: 20px; }
.pd2-score small { color: var(--muted); }
.pd2-review-form { padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--r); margin-bottom: 18px; }
.pd2-review-form h3 { margin: 0 0 8px; font-size: 16px; }
.pd2-review-form textarea { margin: 10px 0 12px; }
.review { padding: 16px 0; border-bottom: 1px solid var(--line); }
.review:last-child { border-bottom: 0; }
.review header { display: flex; gap: 12px; align-items: center; }
.review header > div { display: flex; flex-direction: column; flex: 1; }
.review header small { color: var(--muted); font-size: 12.5px; }
.review p { margin: 8px 0 0 48px; line-height: 1.6; color: #3c4a4e; }
.review-avatar { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--brand), #1cbdf9); color: #fff; font-weight: 700; flex: none; }

.pd2-side { position: sticky; top: 16px; display: grid; gap: 18px; }
.pd2-buy { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; box-shadow: var(--sh-2); }
.pd2-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.pd2-chip { font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: var(--r-pill); background: var(--bg); color: var(--ink-2); }
.pd2-chip.cat { background: var(--brand-50); color: var(--brand-600); }
.pd2-chip.featured { background: #fff1d6; color: #9a5b00; }
.pd2-chip.new { background: #e8f7ff; color: #0b6fa4; }
.pd2-buy h1 { text-align: left; font-size: 26px; line-height: 1.25; color: var(--ink); margin: 12px 0 10px; text-transform: none; letter-spacing: -.3px; word-break: break-word; }
.pd2-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; font-size: 14px; color: var(--muted); }
.pd2-meta-item { display: inline-flex; align-items: center; gap: 5px; }
.pd2-rate { border: 0; background: none; padding: 0; cursor: pointer; font: inherit; color: var(--muted); }
.pd2-rate:hover { color: var(--ink); }
.pd2-price { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin: 18px 0 14px; padding-top: 16px; border-top: 1px solid var(--line); }
.pd2-buy .pd-price { font-size: 34px; font-weight: 700; color: var(--ink); line-height: 1; }
.pd2-old { display: inline-flex; align-items: center; gap: 8px; }
.pd2-old s { color: var(--muted); font-size: 16px; }
.pd2-discount { background: var(--accent); color: #fff; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: var(--r-pill); }
.pd2-buy .pd-waiver { display: flex; gap: 10px; align-items: flex-start; font-size: 12.5px; line-height: 1.45; color: var(--muted); background: var(--bg); padding: 10px 12px; border-radius: var(--r-sm); margin-bottom: 12px; cursor: pointer; }
.pd2-buy .pd-waiver input { margin-top: 2px; accent-color: var(--brand-600); flex: none; }
.pd2-buy .pd-waiver a { color: var(--brand-600); }
.pd-waiver.shake { animation: shake .4s; box-shadow: 0 0 0 2px var(--accent); }
@keyframes shake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
.pd2-buy .pd-buy { display: block; width: 100%; text-align: center; height: 52px; line-height: 52px; border-radius: var(--r); font-size: 16px; font-weight: 700; background: var(--mint, #00d7b3); color: #fff; box-shadow: none; transition: transform .15s, box-shadow .2s, filter .2s; float: none; margin: 0; }
.pd2-buy .pd-buy:hover { transform: translateY(-1px); background: #00c2a1; }
.pd2-buy .pd-buy.owned { background: var(--ink-2); box-shadow: none; }
.pd2-buy .pd-buy.disabled { background: #b8c2c5; box-shadow: none; cursor: not-allowed; }
.pd2-buy .pd-buy.loading { opacity: .7; cursor: progress; }
.pd2-owned { display: flex; align-items: center; gap: 6px; background: var(--brand-50); color: #0a6b57; font-weight: 700; font-size: 14px; padding: 10px 12px; border-radius: var(--r-sm); margin: 0 0 12px; }
.pd2-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
.pd2-action { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; border-radius: var(--r); border: 1px solid var(--line); background: #fff; color: var(--ink-2); font: inherit; font-weight: 700; font-size: 14px; cursor: pointer; transition: background .15s, border-color .15s, color .15s; width: 100%; }
.pd2-action:hover { background: var(--bg); border-color: #cfd8da; }
.pd2-like.on { color: var(--accent); border-color: rgba(230, 24, 82, .35); background: #fff4f7; }
.pd2-like .like-count { color: var(--muted); font-weight: 400; }
#pd-like-slot { display: block; }
.pd2-assure { display: grid; gap: 9px; margin: 18px 0 0; padding-top: 16px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--muted); }
.pd2-assure li { display: flex; gap: 10px; align-items: center; }
.pd2-assure [class^="icon-"] { color: var(--brand-600); font-size: 15px; width: 18px; text-align: center; }
.pd2-buy.is-missing { box-shadow: var(--sh-1); }

.pd2-seller { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px; box-shadow: var(--sh-1); }
.pd2-seller-head { display: flex; gap: 12px; align-items: center; }
.pd2-seller-head img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; background: #e6ebec; }
.pd2-seller-name { display: flex; align-items: center; gap: 6px; font-weight: 700; font-size: 16px; color: var(--ink); }
.pd2-seller-head small { display: block; color: var(--muted); font-size: 13px; }
.pd2-seller-head:hover .pd2-seller-name { color: var(--brand-600); }
.pd2-seller-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 14px 0; }
.pd2-seller-stats > div { background: var(--bg); border-radius: var(--r-sm); padding: 8px 10px; text-align: center; }
.pd2-seller-stats strong { display: block; font-size: 18px; color: var(--ink); }
.pd2-seller-stats span { font-size: 12px; color: var(--muted); }
.pd2-seller .button { width: 100%; }
.pd2-report summary { font-size: 13px; color: var(--muted); padding: 0 6px; }
.pd2-report summary:hover { color: var(--accent); }
.pd2-report .app-form { margin-top: 10px; padding: 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); display: grid; gap: 10px; }
.pd2-report textarea { min-height: 80px; }
.pd2-more { margin-top: 48px; }
.pd2-more .home-head h2 { font-size: 22px; }

.pd2-sticky { position: fixed; left: 0; right: 0; bottom: 0; z-index: 9000; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .96); backdrop-filter: blur(8px); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px -12px rgba(16, 24, 40, .25); }
.pd2-sticky > div { min-width: 0; display: flex; flex-direction: column; }
.pd2-sticky strong { font-size: 14px; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pd2-sticky span { font-weight: 700; color: var(--brand-600); }
.pd2-sticky .button { flex: none; width: auto; padding: 0 20px; }
body:has(.pd2-sticky:not([hidden])) .chat-fab { bottom: 84px; }

.lightbox { position: fixed; inset: 0; z-index: 100002; background: rgba(10, 14, 15, .92); display: grid; place-items: center; padding: 56px 72px; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: var(--r); box-shadow: var(--sh-3); }
.lightbox button { position: absolute; border: 0; background: rgba(255, 255, 255, .12); color: #fff; cursor: pointer; border-radius: 50%; width: 46px; height: 46px; font-size: 26px; line-height: 1; transition: background .15s; }
.lightbox button:hover { background: rgba(255, 255, 255, .25); }
.lb-close { top: 16px; right: 16px; font-size: 20px !important; }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 16px; top: 50%; transform: translateY(-50%); }

@media (max-width: 960px) {
  .pd2 { grid-template-columns: 1fr; }
  .pd2-side { position: static; order: -1; }
  .pd2-main { order: 0; }
  .pd2-panel { padding: 20px 18px; }
  .lightbox { padding: 56px 8px; }
  .pd2-specs { grid-template-columns: 1fr; }
  .pd2-specs dt { border-bottom: 0; padding-bottom: 2px; }
}
@media (min-width: 961px) { .pd2-sticky { display: none !important; } }

/* ---------- Pages existantes : petites retouches ---------- */
.section .content .product-showcase { background: none; }
#catalog-filters .sidebar-item, .author-profile .sidebar-item { border-radius: var(--r-lg); }
.dashboard-content { padding-bottom: 40px; }
.db-two { gap: 22px; }
.form-box-item h4 { letter-spacing: -.2px; }
.dropzone { border-radius: var(--r-lg); }
.chat-panel { border-radius: var(--r-lg); }
.chat-fab { border-radius: var(--r-pill); }
.pd2-panel h2, .pd2-panel h3, .pd2-panel h4, .pd2-more h2, .pd2-h3 { text-align: left; }

/* =========================================================================
   Notifications, messagerie, panier, abonnements, badges, statistiques, vue liste
   ========================================================================= */

/* ---------- En-tête : icônes des membres ---------- */
header .account-information { margin: 32px 10px 0 0; }
.hdr-icons { display: flex; gap: 6px; align-items: center; }
.hdr-btn { position: relative; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .08); color: #fff; font-size: 17px; cursor: pointer; transition: background .15s; }
.hdr-btn:hover, .hdr-btn[aria-expanded="true"] { background: rgba(255, 255, 255, .18); color: #fff; }
.hdr-badge { position: absolute; top: -3px; right: -3px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: var(--r-pill); background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; box-shadow: 0 0 0 2px var(--ink-2); }
.hdr-notif { position: relative; }
.hdr-panel { position: absolute; right: -60px; top: 50px; z-index: 10001; width: 380px; max-width: calc(100vw - 24px); background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-3); overflow: hidden; text-align: left; }
.hdr-panel-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.hdr-panel-head strong { color: var(--ink); font-size: 15px; }
.hdr-panel-head .link-btn { font-size: 13px; }
.hdr-list { max-height: 420px; overflow-y: auto; }
.hdr-item { border-bottom: 1px solid var(--line); }
.hdr-item.unread { background: #f3fcfa; }
.hdr-link { display: flex; gap: 12px; padding: 12px 16px; color: var(--ink-2); }
a.hdr-link:hover { background: var(--bg); }
.hdr-item-icon { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-50); color: var(--brand-600); font-size: 14px; }
.hdr-item-icon.rejected, .hdr-item-icon.removed { background: #fdecef; color: var(--accent); }
.hdr-item-icon.review, .hdr-item-icon.follow { background: #fff4dd; color: #b26b00; }
.hdr-item-icon.message, .hdr-item-icon.update { background: #e8f4fd; color: #1a6fa8; }
.hdr-item-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; font-size: 13px; line-height: 1.4; }
.hdr-item-text strong { color: var(--ink); font-size: 13.5px; }
.hdr-item-text span { color: var(--muted); overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.hdr-item-text small { color: #9aa6aa; font-size: 12px; }
.hdr-item.unread .hdr-item-text strong::after { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--brand); margin-left: 6px; vertical-align: middle; }
.hdr-empty { padding: 28px 16px; text-align: center; color: var(--muted); font-size: 14px; }
.hdr-more { width: 100%; border: 0; background: #fafbfb; padding: 10px; font: inherit; font-weight: 700; color: var(--brand-600); cursor: pointer; }

/* ---------- Suivre / Contacter / badges ---------- */
.follow-btn, .contact-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 40px; padding: 0 16px; border-radius: var(--r); font: inherit; font-weight: 700; font-size: 14px; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.follow-btn { border: 0; background: var(--ink-2); color: #fff; }
.follow-btn:hover { background: #36454a; }
.follow-btn.on { background: var(--brand-50); color: var(--brand-600); box-shadow: inset 0 0 0 1px rgba(0, 184, 153, .35); }
.contact-btn { border: 1px solid var(--line); background: #fff; color: var(--ink-2); }
.contact-btn:hover { background: var(--bg); color: var(--ink); }
.sl-actions, .pd2-seller-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
.pd2-seller-actions { margin: 0 0 10px; }
.pd2-seller-actions:empty { display: none; }
.badge-list { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
.badge-item { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: var(--r-pill); background: var(--bg); color: var(--ink-2); cursor: help; }
.badge-item [class^="icon-"] { font-size: 12px; color: var(--brand-600); }
.badge-item.premium { background: linear-gradient(135deg, #fff1c2, #ffe08a); color: #7a4b00; }
.badge-item.premium [class^="icon-"] { color: #a86400; }
.badge-item.sales, .badge-item.top_rated { background: #fff4dd; color: #8a5300; }
.badge-item.sales [class^="icon-"], .badge-item.top_rated [class^="icon-"] { color: #c27a00; }
.follow-list { display: grid; gap: 10px; }
.follow-list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r); }
.follow-who { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.follow-who img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.follow-who span { display: flex; flex-direction: column; }
.follow-who small { color: var(--muted); }

/* ---------- Fiche produit : panier, historique des versions ---------- */
.pd2-cart { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 46px; margin-top: 10px; border-radius: var(--r); border: 1px solid var(--brand); background: #fff; color: var(--brand-600); font: inherit; font-weight: 700; cursor: pointer; transition: background .15s; }
.pd2-cart:hover { background: var(--brand-50); }
.pd2-cart.in-cart { background: var(--brand-50); border-style: dashed; }
.pd2-versions { display: grid; padding: 0; list-style: none; border-left: 2px solid var(--line); margin: 0 0 0 6px; }
.pd2-versions li { position: relative; padding: 0 0 20px 22px; }
.pd2-versions li::before { content: ""; position: absolute; left: -7px; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: #fff; border: 2px solid #c5d0d3; }
.pd2-versions li.current::before { border-color: var(--brand); background: var(--brand); }
.pd2-version-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pd2-version-head strong { color: var(--ink); }
.pd2-version-head small { color: var(--muted); }
.pd2-versions .prose { margin: 6px 0 0; font-size: 14px; }

/* ---------- Panier ---------- */
.cart-wrap { max-width: 1170px; width: 95%; margin: 0 auto; padding: 22px 0 70px; }
.cart-title { text-align: left; font-size: 30px; color: var(--ink); margin: 0 0 20px; text-transform: none; letter-spacing: -.4px; }
.cart-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 26px; align-items: start; }
.cart-items { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-1); padding: 6px 20px; }
.cart-items .empty-state { border: 0; }
.cart-items > ul > .button { display: block; margin: 0 auto 24px; }
.cart-line { display: grid; grid-template-columns: 112px minmax(0, 1fr) auto 40px; gap: 16px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.cart-line:last-child { border-bottom: 0; }
.cart-line.blocked { opacity: .7; }
.cart-thumb img { width: 112px; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--r-sm); display: block; background: #e6ebec; }
.cart-name { display: block; font-weight: 700; color: var(--ink); font-size: 16px; margin-bottom: 4px; }
.cart-name:hover { color: var(--brand-600); }
.cart-meta { margin: 0; font-size: 13px; color: var(--muted); }
.cart-meta a { color: var(--ink-2); font-weight: 700; }
.cart-problem { margin: 6px 0 0; font-size: 13px; font-weight: 700; color: var(--accent); }
.cart-price { text-align: right; white-space: nowrap; }
.cart-price s { display: block; font-size: 12px; color: var(--muted); }
.cart-price strong { font-size: 18px; color: var(--ink); }
.cart-price strong.free { color: var(--brand-600); }
.cart-remove { width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--bg); color: var(--muted); cursor: pointer; }
.cart-remove:hover { background: #fdecef; color: var(--accent); }
.cart-summary { position: sticky; top: 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-2); padding: 22px; }
.cart-summary h2 { text-align: left; font-size: 19px; margin: 0 0 14px; color: var(--ink); }
.cart-lines { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin: 0 0 14px; font-size: 14px; color: var(--muted); }
.cart-lines dd { margin: 0; color: var(--ink); font-weight: 700; }
.cart-total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 14px; border-top: 1px solid var(--line); margin: 0 0 14px; }
.cart-total strong { font-size: 28px; color: var(--ink); }
.cart-summary .pd-waiver { display: flex; gap: 10px; font-size: 12.5px; line-height: 1.45; color: var(--muted); background: var(--bg); padding: 10px 12px; border-radius: var(--r-sm); margin-bottom: 12px; cursor: pointer; }
.cart-summary .pd-waiver a { color: var(--brand-600); }
.cart-summary .pd-buy { display: block; width: 100%; height: 52px; border: 0; border-radius: var(--r); font: inherit; font-size: 16px; font-weight: 700; color: #fff; cursor: pointer; background: var(--mint, #00d7b3); box-shadow: none; }
.cart-summary .pd-buy:disabled { background: #b8c2c5; box-shadow: none; cursor: not-allowed; }
.cart-note { font-size: 12.5px; color: var(--muted); margin: 14px 0 0; line-height: 1.5; }
.cart-note [class^="icon-"] { color: var(--brand-600); }
@media (max-width: 900px) {
  .cart-layout { grid-template-columns: 1fr; }
  .cart-summary { position: static; }
  .cart-line { grid-template-columns: 72px minmax(0, 1fr) 36px; }
  .cart-thumb img { width: 72px; }
  .cart-price { grid-column: 2; text-align: left; }
  .cart-remove { grid-column: 3; grid-row: 1; }
}

/* ---------- Messagerie ---------- */
.msg-layout { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 18px; align-items: stretch; }
.msg-layout .form-box-item { margin: 0; }
.msg-list { padding: 16px 10px; max-height: 640px; overflow-y: auto; }
.msg-list h4 { padding: 0 8px 10px; }
.msg-item { position: relative; display: flex; gap: 10px; width: 100%; text-align: left; border: 0; background: none; padding: 10px; border-radius: var(--r); cursor: pointer; font: inherit; }
.msg-item:hover { background: var(--bg); }
.msg-item.active { background: var(--brand-50); }
.msg-item img { flex: none; width: 40px; height: 40px; border-radius: 50%; object-fit: cover; background: #e6ebec; }
.msg-item-text { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.msg-item-top { display: flex; justify-content: space-between; gap: 8px; }
.msg-item-top strong { color: var(--ink); font-size: 14px; }
.msg-item-top small { color: var(--muted); font-size: 11.5px; white-space: nowrap; }
.msg-item-product { font-size: 12px; color: var(--brand-600); font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.msg-item-last { font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.msg-item.unread .msg-item-last { color: var(--ink); font-weight: 700; }
.msg-item .hdr-badge { position: static; align-self: center; box-shadow: none; }
.msg-thread { display: flex; flex-direction: column; min-height: 520px; padding: 0; overflow: hidden; }
.msg-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.msg-who { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.msg-who img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.msg-product { font-size: 13px; color: var(--brand-600); font-weight: 700; }
.msg-log { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 10px; background: #fafbfb; max-height: 480px; }
.msg-bubble { max-width: 74%; padding: 10px 14px; border-radius: 16px; background: #fff; border: 1px solid var(--line); align-self: flex-start; border-bottom-left-radius: 4px; }
.msg-bubble.mine { align-self: flex-end; background: var(--ink-2); border-color: var(--ink-2); color: #fff; border-bottom-left-radius: 16px; border-bottom-right-radius: 4px; }
.msg-bubble p { margin: 0; white-space: pre-wrap; word-break: break-word; font-size: 14px; line-height: 1.5; color: inherit; }
.msg-bubble small { display: block; margin-top: 4px; font-size: 11px; opacity: .65; }
.msg-form { display: flex; gap: 10px; align-items: flex-end; padding: 14px 18px; border-top: 1px solid var(--line); }
.msg-form textarea { flex: 1; min-height: 46px; resize: vertical; }
.msg-form .button { flex: none; }
.msg-empty, .msg-hint { color: var(--muted); padding: 18px; margin: 0; }
@media (max-width: 860px) { .msg-layout { grid-template-columns: 1fr; } .msg-list { max-height: 260px; } }

/* ---------- Statistiques ---------- */
.stats-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.stats-intro { margin: 0; color: var(--muted); }
.stats-top .seg button[aria-pressed="true"] { background: var(--ink-2); color: #fff; }
.stat-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin-bottom: 12px; }
.stat-tile { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-1); padding: 16px 18px; display: flex; flex-direction: column; gap: 4px; }
.stat-label { font-size: 13px; color: var(--muted); font-weight: 700; }
.stat-value { font-size: 28px; color: var(--ink); line-height: 1.15; }
.stat-delta { font-size: 12px; color: var(--muted); }
.stat-delta.up { color: #0a7a5f; }
.stat-delta.down { color: #b3261e; }
.stats-alltime { color: var(--muted); font-size: 13.5px; margin: 0 0 18px; }
.chart-box { position: relative; }
.chart-svg { width: 100%; height: auto; display: block; overflow: visible; }
.chart-svg:focus-visible { outline: 3px solid #1bc3ff; outline-offset: 4px; border-radius: 6px; }
.chart-grid { stroke: #edf0f1; stroke-width: 1; }
.chart-tick { fill: var(--muted); font-size: 11px; font-family: "Titillium Web", sans-serif; }
.chart-bars path { fill: #00a588; }
.chart-stroke { fill: none; stroke: #1a8fd6; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart-area { fill: #1a8fd6; opacity: .1; }
.chart-cross { stroke: #c9d2d5; stroke-width: 1; }
.chart-dot { fill: #1a8fd6; stroke: #fff; stroke-width: 2; }
.chart-hit { fill: transparent; }
.chart-tip { position: absolute; top: 0; pointer-events: none; background: var(--ink); color: #fff; border-radius: var(--r-sm); padding: 8px 10px; font-size: 12.5px; box-shadow: var(--sh-2); white-space: nowrap; display: flex; flex-direction: column; gap: 2px; z-index: 2; }
.chart-tip strong { font-size: 15px; }
.chart-tip span { color: rgba(255, 255, 255, .75); }
.chart-table { margin-top: 10px; font-size: 13px; }
.chart-table summary { color: var(--brand-600); font-weight: 700; }
.chart-table .db-table { margin-top: 10px; max-height: 280px; overflow-y: auto; }

/* ---------- Catalogue : barre, grille / liste ---------- */
.catalog-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.catalog-count { margin: 0; color: var(--muted); font-weight: 700; }
.view-toggle { display: inline-flex; padding: 3px; gap: 2px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-sm); }
.view-toggle button { width: 36px; height: 32px; border: 0; border-radius: 6px; background: none; color: var(--muted); cursor: pointer; }
.view-toggle button[aria-pressed="true"] { background: var(--ink-2); color: #fff; }
.mk-grid.as-list { grid-template-columns: 1fr !important; gap: 14px; }
.mk-grid.as-list .mk-card { display: grid; grid-template-columns: 240px minmax(0, 1fr) 200px; }
.mk-grid.as-list .mk-card:hover { transform: translateY(-2px); }
.mk-grid.as-list .mk-media { aspect-ratio: auto; height: 100%; min-height: 150px; grid-row: 1; }
.mk-grid.as-list .mk-like { left: 10px; right: auto; }
.mk-grid.as-list .mk-body { padding: 16px 18px; }
.mk-grid.as-list .mk-desc { -webkit-line-clamp: 3; }
.mk-grid.as-list .mk-foot { border-top: 0; border-left: 1px solid var(--line); flex-direction: column; align-items: flex-end; justify-content: center; gap: 12px; padding: 16px 18px; }
.mk-grid.as-list .mk-price strong { font-size: 22px; }
@media (max-width: 720px) {
  .mk-grid.as-list .mk-card { grid-template-columns: 120px minmax(0, 1fr); }
  .mk-grid.as-list .mk-foot { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; border-left: 0; border-top: 1px solid var(--line); }
  .mk-grid.as-list .mk-desc { display: none; }
}
