:root {
  --bg: #0c1024;
  --bg-soft: #151a36;
  --card: #1b2147;
  --card-2: #232a55;
  --line: #2c3568;
  --text: #eef1ff;
  --muted: #9aa3d0;
  --accent: #ff4d6d;
  --accent-2: #21d4a8;
  --gold: #ffcf4d;
  --blue: #4d8bff;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(0,0,0,.35);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Outfit', system-ui, sans-serif;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(77,139,255,.18), transparent),
    radial-gradient(900px 500px at -10% 10%, rgba(33,212,168,.12), transparent),
    var(--bg);
  color: var(--text);
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  -webkit-tap-highlight-color: transparent;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }

/* Affichage conditionnel desktop/mobile */
.mobile-only { display: none; }

/* NAV */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(12,16,36,.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: 1100px; margin: 0 auto; padding: 14px 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand { font-weight: 800; font-size: 1.3rem; letter-spacing: -.02em; white-space: nowrap; flex: none; }
.brand .accent { color: var(--accent); }
.brand .ball { filter: drop-shadow(0 2px 6px rgba(0,0,0,.4)); }
.brand .year {
  background: var(--gold); color: #1a1300; padding: 1px 8px;
  border-radius: 8px; font-size: .85rem; margin-left: 2px;
}
.nav-links { display: flex; align-items: center; gap: 18px; font-weight: 500; }
.nav-link { position: relative; padding: 4px 2px; transition: color .15s; }
.nav-links a:hover { color: var(--accent-2); }
.nav-link.active { color: var(--text); }
.nav-link.active::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px;
  background: var(--accent); border-radius: 2px;
}
.nav-user { display: flex; align-items: center; gap: 12px; }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--card); border: 1px solid var(--line);
  padding: 5px 12px 5px 5px; border-radius: 999px; font-size: .9rem; font-weight: 600;
}
.pill.active { border-color: var(--accent-2); }
.pill-name { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.link-btn {
  display: inline-flex; align-items: center; gap: 7px;
  background: none; border: none; color: var(--muted); cursor: pointer; font: inherit; font-weight: 600;
  padding: 6px; border-radius: 10px;
}
.link-btn:hover { color: var(--accent); }
.inline { display: inline-flex; }

/* Avatars & badges */
.avatar.avatar-xs { width: 28px; height: 28px; font-size: .8rem; flex: none; }
.dot-badge {
  display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px;
  background: var(--accent); color: #fff; border-radius: 999px; font-size: .7rem; font-weight: 800;
  vertical-align: middle;
}

/* Barre d'onglets mobile (cachée sur desktop) */
.tabbar { display: none; }

/* LAYOUT */
.container { max-width: 1100px; margin: 0 auto; padding: 32px 20px; width: 100%; flex: 1; }
.footer { border-top: 1px solid var(--line); padding: 24px; text-align: center; color: var(--muted); font-size: .9rem; }

/* BUTTONS */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, var(--accent), #ff7a5c);
  color: #fff; border: none; padding: 12px 22px; border-radius: 12px;
  font: inherit; font-weight: 700; cursor: pointer; transition: transform .12s, box-shadow .12s;
  box-shadow: 0 8px 20px rgba(255,77,109,.3);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(255,77,109,.4); }
.btn-sm { padding: 8px 16px; font-size: .9rem; border-radius: 10px; white-space: nowrap; }
.btn-ghost {
  background: var(--card); border: 1px solid var(--line); color: var(--text); box-shadow: none;
}
.btn-ghost:hover { border-color: var(--accent-2); }
.btn-green { background: linear-gradient(135deg, var(--accent-2), #19b6cf); box-shadow: 0 8px 20px rgba(33,212,168,.3); }

/* CARDS */
.card {
  background: linear-gradient(180deg, var(--card), var(--bg-soft));
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow);
}
.grid { display: grid; gap: 18px; }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 760px) { .cols-3, .cols-4 { grid-template-columns: 1fr 1fr; } }

/* HERO */
.hero { text-align: center; padding: 56px 0 28px; }
.hero h1 { font-size: clamp(2.2rem, 6vw, 4rem); margin: 0 0 14px; letter-spacing: -.03em; line-height: 1.02; }
.hero h1 .grad {
  background: linear-gradient(120deg, var(--gold), var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p { color: var(--muted); font-size: 1.2rem; max-width: 620px; margin: 0 auto 28px; }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.stat-row { display: flex; gap: 28px; justify-content: center; margin-top: 44px; flex-wrap: wrap; }
.stat { text-align: center; }
.stat b { display: block; font-size: 2rem; color: var(--gold); }
.stat span { color: var(--muted); font-size: .9rem; }

/* STAT CARDS */
.stat-card { text-align: center; }
.stat-card .big { font-size: 2.6rem; font-weight: 800; line-height: 1; }
.stat-card .lbl { color: var(--muted); margin-top: 6px; }
.c-accent { color: var(--accent); } .c-green { color: var(--accent-2); }
.c-gold { color: var(--gold); } .c-blue { color: var(--blue); }

/* PROGRESS */
.progress { height: 12px; background: var(--bg); border-radius: 999px; overflow: hidden; border: 1px solid var(--line); }
.progress > span { display: block; height: 100%; background: linear-gradient(90deg, var(--accent-2), var(--gold)); border-radius: 999px; transition: width .4s; }
.progress.big { height: 22px; }

/* TEAM LIST */
.team-row { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.team-row:last-child { border: none; }
.team-code { font-weight: 800; width: 52px; }
.team-name { flex: 1; color: var(--muted); }
.team-row .progress { flex: 2; }
.badge { font-size: .75rem; padding: 3px 9px; border-radius: 999px; font-weight: 700; }
.badge-done { background: rgba(33,212,168,.18); color: var(--accent-2); }
.badge-num { color: var(--muted); font-variant-numeric: tabular-nums; width: 58px; text-align: right; }

/* ALBUM */
.album-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.album-head h3 { font-size: 1.15rem; }
.album-layout { display: grid; grid-template-columns: 240px 1fr; gap: 24px; }
@media (max-width: 820px) { .album-layout { grid-template-columns: 1fr; } }
.team-nav { max-height: 70vh; overflow-y: auto; }
.team-nav a {
  display: flex; justify-content: space-between; align-items: center;
  padding: 9px 12px; border-radius: 10px; color: var(--muted); font-weight: 600;
}
.team-nav a.active { background: var(--card-2); color: var(--text); }
.team-nav a:hover { background: var(--card-2); }
.team-nav .mini { font-size: .75rem; }
.team-nav a.full { color: var(--accent-2); }

.sticker-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 14px; }
.sticker {
  background: var(--card-2); border: 1px solid var(--line); border-radius: 14px;
  padding: 14px 12px; text-align: center; position: relative; transition: .15s;
}
.sticker.owned { border-color: var(--accent-2); background: linear-gradient(180deg, rgba(33,212,168,.12), var(--card-2)); }
.sticker.missing { opacity: .85; }
.sticker .num { font-size: 1.5rem; font-weight: 800; line-height: 1.1; }
.sticker .code { color: var(--muted); font-size: .78rem; }
.sticker .pname { font-size: .74rem; color: var(--text); margin: 4px 0 10px; line-height: 1.15; min-height: 2.3em; display: flex; align-items: center; justify-content: center; }
.extra-note { background: rgba(255,207,77,.1); border: 1px solid var(--gold); color: var(--gold); padding: 9px 13px; border-radius: 11px; font-size: .85rem; margin: 0 0 16px; }
.team-nav a.extra span:first-child { color: var(--gold); }
.team-nav a.extra.active { border-color: var(--gold); background: rgba(255,207,77,.12); }
.dupe-tag {
  position: absolute; top: -8px; right: -8px; background: var(--gold); color: #1a1300;
  font-weight: 800; font-size: .8rem; border-radius: 999px; padding: 2px 8px; box-shadow: var(--shadow);
}
.qty-ctrl { display: flex; align-items: center; justify-content: center; gap: 8px; }
.qty-ctrl button {
  width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--line);
  background: var(--card); color: var(--text); font-size: 1.1rem; font-weight: 800; cursor: pointer;
}
.qty-ctrl button:hover { border-color: var(--accent); }
.qty-ctrl .val { min-width: 26px; font-weight: 800; font-variant-numeric: tabular-nums; }

/* FORMS */
.form-narrow { max-width: 440px; margin: 0 auto; }
.form-input, input[type=text], input[type=email], input[type=password], textarea {
  width: 100%; padding: 12px 14px; border-radius: 11px; border: 1px solid var(--line);
  background: var(--bg); color: var(--text); font: inherit; font-size: 16px; margin-top: 6px;
}
.form-input:focus, input:focus, textarea:focus { outline: none; border-color: var(--accent-2); }
label { font-weight: 600; font-size: .92rem; display: block; margin-bottom: 14px; }
.helptext, .help { color: var(--muted); font-size: .8rem; font-weight: 400; display: block; margin-top: 4px; }
.errorlist { color: var(--accent); list-style: none; padding: 0; margin: 6px 0 0; font-size: .85rem; }
.form-foot { margin-top: 18px; display: flex; flex-direction: column; gap: 12px; }
.muted-link { color: var(--muted); }
.muted-link:hover { color: var(--accent-2); }

/* TOASTS */
.messages { max-width: 1100px; margin: 16px auto -8px; padding: 0 20px; display: flex; flex-direction: column; gap: 10px; }
.toast { padding: 13px 18px; border-radius: 12px; font-weight: 600; border: 1px solid var(--line); }
.toast-success { background: rgba(33,212,168,.15); border-color: var(--accent-2); }
.toast-error { background: rgba(255,77,109,.15); border-color: var(--accent); }
.toast-info { background: rgba(77,139,255,.15); border-color: var(--blue); }

/* MATCHES / TRADES */
.section-title { font-size: 1.6rem; margin: 0 0 6px; }
.section-sub { color: var(--muted); margin: 0 0 24px; }
.match-card { display: flex; flex-direction: column; gap: 14px; }
.match-head { display: flex; align-items: center; justify-content: space-between; }
.avatar { width: 42px; height: 42px; border-radius: 50%; background: linear-gradient(135deg, var(--blue), var(--accent-2)); display: grid; place-items: center; font-weight: 800; }
.user-meta { display: flex; align-items: center; gap: 12px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { background: var(--card-2); border: 1px solid var(--line); border-radius: 8px; padding: 4px 9px; font-size: .82rem; font-weight: 600; }
.chip.give { border-color: var(--accent-2); }
.chip.get { border-color: var(--gold); }
.trade-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.trade-side h4 { margin: 0 0 8px; font-size: .9rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.empty { text-align: center; color: var(--muted); padding: 50px 20px; }
.select-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(86px, 1fr)); gap: 8px; max-height: 320px; overflow-y: auto; padding: 4px; }
.select-grid label { display: flex; align-items: center; gap: 6px; margin: 0; background: var(--card-2); border: 1px solid var(--line); border-radius: 9px; padding: 8px; cursor: pointer; font-size: .85rem; }
.select-grid label:has(input:checked) { border-color: var(--accent-2); background: rgba(33,212,168,.12); }
.divider { height: 1px; background: var(--line); margin: 22px 0; }
.score-badge { background: var(--gold); color: #1a1300; font-weight: 800; padding: 4px 12px; border-radius: 999px; font-size: .85rem; }

/* AVATAR PHOTO */
img.avatar { padding: 0; }
.avatar-img { object-fit: cover; }
.avatar-edit { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.avatar-pick { cursor: pointer; }
.avatar-input { display: none; }

/* SELECT (pays, etc.) */
select.form-input {
  width: 100%; padding: 12px 14px; border-radius: 11px; border: 1px solid var(--line);
  background: var(--bg); color: var(--text); font: inherit; font-size: 16px; margin-top: 6px;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239aa3d0' stroke-width='3'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px;
}
select.form-input:focus { outline: none; border-color: var(--accent-2); }

/* CLASSEMENT */
.avatar-sm { width: 36px; height: 36px; border-radius: 50%; font-size: .95rem;
  background: linear-gradient(135deg, var(--blue), var(--accent-2)); display: grid; place-items: center; font-weight: 800; flex: none; }
.lb-card { padding: 8px; }
.lb-head, .lb-row {
  display: grid; grid-template-columns: 46px 1fr 150px; align-items: center; gap: 10px;
  padding: 10px 12px;
}
.lb-head { color: var(--muted); font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; border-bottom: 1px solid var(--line); }
.lb-row { border-radius: 12px; transition: background .12s; }
.lb-row:hover { background: var(--card-2); }
.lb-row.me { background: rgba(33,212,168,.10); border: 1px solid var(--accent-2); }
.lb-row.podium .lb-rank { font-size: 1.4rem; }
.lb-rank { font-weight: 800; text-align: center; font-variant-numeric: tabular-nums; }
.lb-user { display: flex; align-items: center; gap: 10px; min-width: 0; }
.lb-id { display: flex; flex-direction: column; min-width: 0; }
.lb-id strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb-loc { color: var(--muted); font-size: .78rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.you-tag { background: var(--accent-2); color: #04231b; font-size: .65rem; padding: 1px 6px; border-radius: 999px; font-weight: 800; vertical-align: middle; }
.lb-pct { text-align: right; }
.lb-pctnum { font-weight: 800; color: var(--gold); }
.lb-count { display: block; color: var(--muted); font-size: .72rem; }
.lb-bar { height: 6px; margin-top: 4px; }
.pager { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 18px; }
.pager-info { color: var(--muted); font-size: .9rem; }

/* PROFIL PUBLIC */
.profile-hero { display: flex; align-items: center; gap: 18px; }
.avatar-lg { width: 72px; height: 72px; border-radius: 50%; font-size: 2rem;
  background: linear-gradient(135deg, var(--blue), var(--accent-2)); display: grid; place-items: center; font-weight: 800; flex: none; }
.profile-id h2 { margin: 0 0 8px; }
.profile-meta { display: flex; flex-wrap: wrap; gap: 8px 14px; color: var(--muted); font-size: .9rem; align-items: center; }
.level-badge { background: var(--card-2); border: 1px solid var(--gold); color: var(--gold); padding: 3px 10px; border-radius: 999px; font-weight: 700; }
.pct-big { font-size: 1.8rem; font-weight: 800; }
.profile-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 18px; text-align: center; }
.profile-stats b { display: block; font-size: 1.5rem; }
.profile-stats span { color: var(--muted); font-size: .8rem; }
.profile-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
a.user-meta { color: inherit; }
a.user-meta:hover strong { color: var(--accent-2); }

/* CARTE VERROUILLÉE (échanges < seuil) */
.lock-card { text-align: center; }
.lock-icon { font-size: 2.6rem; margin-bottom: 6px; }

/* CHAT D'ÉCHANGE */
.trade-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 16px; }
.inline-actions { display: inline-flex; gap: 10px; }
.card-foot { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 14px; }
.btn-wa { background: linear-gradient(135deg, #25d366, #128c7e); box-shadow: 0 8px 20px rgba(37,211,102,.3); color: #fff; }
.chat-title { margin: 6px 0 12px; }
.chat {
  display: flex; flex-direction: column; gap: 10px;
  max-height: 52vh; overflow-y: auto; padding: 6px 2px;
}
.bubble {
  max-width: 78%; padding: 10px 13px; border-radius: 16px; position: relative;
  border: 1px solid var(--line); line-height: 1.4; word-wrap: break-word;
}
.bubble.theirs { align-self: flex-start; background: var(--card-2); border-bottom-left-radius: 5px; }
.bubble.mine { align-self: flex-end; background: linear-gradient(135deg, rgba(33,212,168,.18), rgba(77,139,255,.14)); border-color: var(--accent-2); border-bottom-right-radius: 5px; }
.bubble-body { white-space: pre-wrap; }
.bubble-img { display: block; max-width: 240px; max-height: 260px; border-radius: 10px; margin-top: 4px; }
.bubble-file { display: inline-block; margin-top: 6px; color: var(--accent-2); font-weight: 600; }
.bubble-time { display: block; font-size: .68rem; color: var(--muted); margin-top: 5px; text-align: right; }

.composer {
  display: flex; align-items: flex-end; gap: 8px; margin-top: 14px;
  background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 8px;
  position: sticky; bottom: 0;
}
.composer textarea {
  flex: 1; resize: none; margin: 0; border: none; background: transparent;
  padding: 9px 6px; max-height: 120px; min-height: 24px;
}
.composer textarea:focus { outline: none; border: none; }
.attach-btn, .send-btn { flex: none; }
.attach-btn {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px;
  color: var(--muted); cursor: pointer; border: 1px solid var(--line); background: var(--card-2);
}
.attach-btn:hover { color: var(--accent-2); border-color: var(--accent-2); }
.send-btn { width: 46px; height: 42px; padding: 0; justify-content: center; }
.file-chip { flex-basis: 100%; font-size: .8rem; color: var(--accent-2); padding: 2px 6px; }

/* Case à cocher profil */
.check-row { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; }
.check-row input[type=checkbox] { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--accent-2); }
.check-row > span { font-weight: 600; }

/* ======================================================================
   RESPONSIVE / MOBILE
   ====================================================================== */
@media (max-width: 760px) {
  .desktop-only { display: none !important; }
  .mobile-only { display: revert; }

  /* Top nav allégée, hauteur fixe pour aligner le carrousel collant */
  .nav-inner { padding: 11px 16px; gap: 10px; min-height: 38px; }
  .brand { font-size: 1.15rem; }
  .nav-links { gap: 10px; }
  .pill { padding: 4px; }
  .pill-name { display: none; }          /* avatar seul sur mobile */
  .nav-user { gap: 6px; }

  /* Conteneur plus compact + place pour la tabbar */
  .container { padding: 20px 16px; }
  body.has-tabbar .container { padding-bottom: 30px; }
  body.has-tabbar {
    padding-bottom: calc(64px + env(safe-area-inset-bottom));
  }
  .footer { padding: 20px 16px; font-size: .82rem; }
  body.has-tabbar .footer { margin-bottom: calc(64px + env(safe-area-inset-bottom)); }

  /* Barre d'onglets fixe en bas */
  .tabbar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    background: rgba(16,21,46,.92); backdrop-filter: blur(16px);
    border-top: 1px solid var(--line);
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
    justify-content: space-around;
  }
  .tab {
    flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px;
    padding: 6px 2px; color: var(--muted); font-size: .68rem; font-weight: 600;
    position: relative; border-radius: 12px; min-height: 50px; justify-content: center;
  }
  .tab svg { width: 24px; height: 24px; }
  .tab.active { color: var(--accent-2); }
  .tab.active svg { filter: drop-shadow(0 0 8px rgba(33,212,168,.5)); }
  .tab-badge {
    position: absolute; top: 2px; left: 56%; min-width: 17px; height: 17px; padding: 0 4px;
    background: var(--accent); color: #fff; border-radius: 999px;
    font-size: .65rem; font-weight: 800; display: grid; place-items: center;
  }

  /* Typo */
  .section-title { font-size: 1.35rem; }
  .section-sub { margin-bottom: 18px; }
  .card { padding: 18px; border-radius: 14px; }
  .hero { padding: 32px 0 18px; }
  .hero p { font-size: 1.05rem; }
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; justify-content: center; }
  .stat-row { gap: 18px 28px; margin-top: 30px; }

  /* Boutons pleine largeur dans les formulaires */
  .btn { padding: 13px 20px; }
  .form-foot { gap: 14px; }
  .form-foot .btn { width: 100%; justify-content: center; }

  /* Dashboard : 2 colonnes de stats, lignes équipes compactes */
  .stat-card .big { font-size: 2.1rem; }
  .team-row { gap: 10px; flex-wrap: wrap; }
  .team-code { width: 44px; }
  .team-name { flex-basis: calc(100% - 110px); }
  .team-row .progress { order: 3; flex-basis: 100%; flex: none; }

  /* ALBUM : navigation équipes en carrousel horizontal collant */
  .album-layout { gap: 16px; }
  .team-nav {
    position: sticky; top: 61px; z-index: 20;
    display: flex; flex-direction: row; gap: 8px; overflow-x: auto; max-height: none;
    padding: 12px; margin: 0 -16px; border-radius: 0;
    scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch;
  }
  .team-nav::-webkit-scrollbar { display: none; }
  .team-nav a {
    flex: none; flex-direction: column; align-items: center; gap: 2px;
    min-width: 64px; padding: 8px 10px; border: 1px solid var(--line);
    background: var(--card-2); scroll-snap-align: start;
  }
  .team-nav a.active { border-color: var(--accent); background: rgba(255,77,109,.12); }
  .team-nav .mini { font-size: .68rem; }

  /* Stickers : grille serrée + contrôles tactiles confortables */
  .sticker-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .sticker { padding: 12px 8px; border-radius: 12px; }
  .sticker .num { font-size: 1.3rem; }
  .qty-ctrl { gap: 10px; }
  .qty-ctrl button { width: 38px; height: 38px; font-size: 1.25rem; }

  /* Échanges : colonnes empilées */
  .trade-cols { grid-template-columns: 1fr; gap: 12px; }
  .match-head { flex-wrap: wrap; gap: 10px; }
  .select-grid { grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); }

  /* Chat : composer en flux normal (au-dessus de la barre d'onglets) */
  .composer { position: static; }
  .chat { max-height: none; }
  .bubble { max-width: 85%; }
  .bubble-img { max-width: 100%; }
  .inline-actions, .card-foot .btn, .card-foot form { flex: 1 1 auto; }
  .card-foot .btn { justify-content: center; }

  /* Profil public sur mobile */
  .profile-hero { flex-direction: column; text-align: center; gap: 12px; }
  .profile-meta { justify-content: center; }
  .profile-stats { grid-template-columns: 1fr 1fr; }

  /* Classement compact */
  .lb-head, .lb-row { grid-template-columns: 30px 1fr 70px; gap: 8px; padding: 9px 6px; }
  .lb-bar { display: none; }
  .lb-head .lb-pct { font-size: .7rem; }
}

/* Très petits écrans */
@media (max-width: 360px) {
  .sticker-grid { grid-template-columns: repeat(2, 1fr); }
  .tab span { font-size: .62rem; }
}

/* Désactive les effets de survol sur appareils tactiles */
@media (hover: none) {
  .btn:hover { transform: none; }
  .sticker:hover { transform: none; }
}
