/* ═══════════════════════════════════════════════════════
   ROOKHIT — style.css
   Palette : #000000 noir · #FF5757 rouge corail · #FFFFFF
   Police  : Inter (Google Fonts)
═══════════════════════════════════════════════════════ */

/* ─── VARIABLES ─────────────────────────────────────── */
:root {
  --bg:           #0a0a0a;
  --bg-card:      #111111;
  --bg-elevated:  #161616;
  --border:       #1e1e1e;
  --border-hover: #2e2e2e;

  --accent:       #FF5757;
  --accent-dark:  #e04040;
  --accent-glow:  rgba(255, 87, 87, 0.12);

  --text:         #ffffff;
  --text-muted:   #666666;
  --text-dim:     #444444;

  --radius-sm:    6px;
  --radius:       10px;
  --radius-lg:    14px;
  --radius-xl:    20px;

  --shadow-card:  0 4px 20px rgba(0,0,0,0.4);
  --shadow-hover: 0 12px 32px rgba(255,87,87,0.18);

  --transition:   0.2s ease;
  --font:         'Inter', -apple-system, sans-serif;
}

/* ─── RESET ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
ul { list-style: none; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: var(--font); }
img { display: block; max-width: 100%; }
input, select, textarea { font-family: var(--font); }

/* ─── LAYOUT ─────────────────────────────────────────── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.hidden { display: none !important; }

/* ─── BOUTONS ────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  border: none;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; flex-shrink: 0; }
.ic { width: 1em; height: 1em; vertical-align: -0.14em; }
.avatar-change-btn svg { width: 15px; height: 15px; display: block; }
.pay-success-badge {
  width: 64px; height: 64px; margin: 0 auto 1rem;
  display: flex; align-items: center; justify-content: center;
  border-radius: 20px; color: #22c55e;
  background: rgba(34,197,94,0.10); border: 1px solid rgba(34,197,94,0.30);
}
.pay-success-badge svg { width: 32px; height: 32px; }
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(255,87,87,0.3);
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-hover);
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.btn-lg {
  padding: 12px 26px;
  font-size: 15px;
}

/* ─── NAVBAR ─────────────────────────────────────────── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(0,0,0,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  gap: 1.5rem;
}
.nav-left {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  flex: 1;
  min-width: 0;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.logo-icon { width: 34px; height: 34px; }
.logo-text {
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.5px;
  color: var(--text);
}
.logo-accent { color: var(--accent); }
.nav-search {
  flex: 1;
  max-width: 420px;
}
.nav-search .search-input {
  width: 100%;
  background: var(--bg-card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236f6f6f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M21 21l-4.3-4.3'/%3E%3C/svg%3E") no-repeat left 14px center;
  background-size: 15px;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 7px 16px 7px 38px;
  border-radius: 20px;
  font-size: 13px;
  outline: none;
  transition: border-color var(--transition);
}
.nav-search .search-input:focus { border-color: var(--accent); }
.nav-search .search-input::placeholder { color: var(--text-dim); }
.nav-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  flex-shrink: 0;
}
.nav-link {
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  transition: color var(--transition);
  white-space: nowrap;
}
.nav-link:hover,
.nav-link.active { color: var(--text); }
.nav-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-shrink: 0;
}

/* ─── HERO ───────────────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  padding: 4rem 0 3rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.hero-glow {
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 700px; height: 350px;
  background: radial-gradient(ellipse, rgba(255,87,87,0.1) 0%, transparent 70%);
  pointer-events: none;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,87,87,0.1);
  border: 1px solid rgba(255,87,87,0.25);
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 1.5rem;
}
.badge-dot {
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 1.5s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}
.hero-title {
  font-size: clamp(30px, 5vw, 46px);
  font-weight: 900;
  letter-spacing: -1.5px;
  line-height: 1.1;
  margin-bottom: 1rem;
}
.text-accent { color: var(--accent); }
.hero-subtitle {
  color: var(--text-muted);
  font-size: 16px;
  max-width: 520px;
  margin: 0 auto 1.8rem;
  line-height: 1.6;
}
.hero-cta {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}
.stat { text-align: center; }
.stat-num {
  display: block;
  font-size: 24px;
  font-weight: 800;
  color: var(--text);
}
.stat-label {
  display: block;
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 3px;
}

/* ─── FILTRES ────────────────────────────────────────── */
.filters-bar {
  background: #000;
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 0;
  position: sticky;
  top: 60px;
  z-index: 100;
}
.filters-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.filter-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-dim);
  white-space: nowrap;
}
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  transition: all var(--transition);
}
.chip:hover { border-color: var(--border-hover); color: var(--text); }
.chip.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.filters-right {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-left: auto;
}
.select-sort {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 6px 12px;
  border-radius: var(--radius);
  font-size: 12px;
  font-weight: 500;
  outline: none;
  cursor: pointer;
}
.search-input {
  background: var(--bg-card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236f6f6f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M21 21l-4.3-4.3'/%3E%3C/svg%3E") no-repeat left 12px center;
  background-size: 14px;
  border: 1px solid var(--border);
  color: var(--text);
  padding: 6px 14px 6px 34px;
  border-radius: 20px;
  font-size: 12px;
  outline: none;
  width: 210px;
  transition: border-color var(--transition);
}
.search-input::placeholder { color: var(--text-dim); }
.search-input:focus { border-color: var(--accent); }

/* ─── MAIN ───────────────────────────────────────────── */
.main { padding: 2rem 1.5rem 3rem; }

.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.2rem;
}
.section-title {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.3px;
}
.listings-count {
  font-size: 13px;
  color: var(--text-muted);
}
.see-all {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  transition: opacity var(--transition);
}
.see-all:hover { opacity: 0.75; }

/* ─── GRILLE CARTES ──────────────────────────────────── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 16px;
  margin-bottom: 2rem;
}

/* Carte listing (vraie photo vendeur) */
.card-listing {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
}
.card-listing:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

/* Zone photo — ratio carte trading (2.5:3.5) */
.card-photo {
  width: 100%;
  aspect-ratio: 5 / 7;
  background: var(--bg-elevated);
  position: relative;
  overflow: hidden;
}
.card-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.card-listing:hover .card-photo img {
  transform: scale(1.03);
}

/* Badge type (RC, AUTO, PSA…) */
.card-badge {
  position: absolute;
  top: 8px; right: 8px;
  background: var(--accent);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.card-badge--grade { background: #f5a623; }
.card-badge--sold  { background: #555; }

/* Favori */
.card-fav {
  position: absolute;
  top: 8px; left: 8px;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(4px);
  border: none;
  color: var(--text-muted);
  width: 28px; height: 28px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition);
}
.card-fav:hover, .card-fav.active { color: var(--accent); }

/* Infos sous la photo */
.card-info {
  padding: 10px 12px 13px;
}
.card-player {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.card-meta {
  font-size: 11px;
  color: var(--text-muted);
  margin: 3px 0 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.card-price {
  font-size: 16px;
  font-weight: 800;
  color: var(--accent);
}
.card-buy-btn {
  background: var(--accent);
  border: none;
  color: #fff;
  width: 28px; height: 28px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition);
}
.card-buy-btn:hover { background: var(--accent-dark); transform: scale(1.1); }

/* ─── ÉTAT VIDE ──────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 4rem 1rem;
  color: var(--text-muted);
}
.empty-icon {
  width: 66px; height: 66px; margin: 0 auto 1.15rem;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 20px;
  color: var(--accent);
  background: rgba(255,87,87,0.09);
  border: 1px solid rgba(255,87,87,0.22);
}
.empty-icon svg { width: 30px; height: 30px; }
.empty-icon--spin svg { animation: emptySpin .9s linear infinite; transform-origin: center; }
@keyframes emptySpin { to { transform: rotate(360deg); } }
.empty-state h3 { font-size: 18px; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.empty-state p { font-size: 14px; }

/* ─── ENCHÈRES ───────────────────────────────────────── */
.auctions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 14px;
  margin-bottom: 2.5rem;
}
.auction-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  display: flex;
  overflow: hidden;
  cursor: pointer;
  transition: all var(--transition);
}
.auction-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-hover);
}
.auction-photo {
  width: 110px;
  flex-shrink: 0;
  background: var(--bg-elevated);
}
.auction-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.auction-info {
  padding: 14px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.auction-timer {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 5px;
}
.auction-player {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 3px;
}
.auction-meta {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.auction-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}
.auction-bid-label { font-size: 10px; color: var(--text-dim); }
.auction-bid-price { font-size: 20px; font-weight: 800; color: var(--accent); }

/* ─── TRUST BAR ──────────────────────────────────────── */
.trust-bar {
  position: relative;
  background:
    radial-gradient(120% 140% at 50% -20%, rgba(255,87,87,0.06), transparent 60%),
    var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 3rem 2.5rem 2.75rem;
  margin-bottom: 2rem;
  text-align: center;
  overflow: hidden;
}
/* Filet accent discret en haut de la carte */
.trust-bar::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 160px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.7;
}
.trust-eyebrow {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: var(--accent);
}
.trust-title {
  font-size: 26px;
  font-weight: 900;
  letter-spacing: -0.3px;
  margin: 10px 0 8px;
  color: var(--text);
  text-wrap: balance;
}
.trust-sub { font-size: 14px; color: var(--text-muted); margin-bottom: 2.75rem; }
.trust-items {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 0 1.25rem;
  position: relative;
}
/* Séparateurs verticaux fins entre colonnes */
.trust-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0; top: 6px;
  height: calc(100% - 12px);
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--border) 20%, var(--border) 80%, transparent);
}
.trust-icon {
  width: 54px; height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  border-radius: 16px;
  color: var(--text);
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.09);
  transition: transform .28s ease, color .28s ease, border-color .28s ease, box-shadow .28s ease, background .28s ease;
}
.trust-icon svg { width: 24px; height: 24px; display: block; }
.trust-item:hover .trust-icon {
  transform: translateY(-4px);
  color: var(--accent);
  border-color: rgba(255,87,87,0.35);
  background: rgba(255,87,87,0.08);
  box-shadow: 0 10px 26px rgba(255,87,87,0.14);
}
.trust-item strong { font-size: 14px; font-weight: 700; letter-spacing: -0.1px; color: var(--text); }
.trust-item span { font-size: 12px; color: #8a8a8a; line-height: 1.4; }

/* ─── FOOTER ─────────────────────────────────────────── */
.footer {
  position: relative;
  background: #000;
  border-top: 1px solid var(--border);
  padding: 3rem 0 1.75rem;
}
/* Filet accent discret centré en haut du footer */
.footer::before {
  content: '';
  position: absolute;
  top: -1px; left: 50%;
  transform: translateX(-50%);
  width: 160px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.6;
}
.footer-inner { display: flex; flex-direction: column; gap: 2rem; }
.footer-top {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 2.5rem 3rem; flex-wrap: wrap;
}
.footer-brand { max-width: 300px; }
.footer-logo-img { height: 30px; width: auto; display: block; margin-bottom: 14px; }
.footer-tagline { font-size: 13px; color: #808080; margin: 0; line-height: 1.55; max-width: 260px; }
.footer-col { display: flex; flex-direction: column; gap: 14px; }
.footer-col-title { font-size: 12px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: #cfcfcf; margin: 0; }
.footer-nav { display: flex; flex-direction: column; gap: 11px; }
.footer-nav a { font-size: 13px; color: #9a9a9a; transition: color var(--transition); }
.footer-nav a:hover { color: var(--accent); }
.footer-support { display: flex; flex-direction: column; gap: 7px; }
.footer-support span { font-size: 12px; color: #6f6f6f; letter-spacing: .1px; line-height: 1.5; max-width: 240px; }
.footer-support a {
  width: fit-content;
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13px; font-weight: 500; color: #cfcfcf;
  transition: color var(--transition);
}
.footer-support a::before {
  content: ''; width: 13px; height: 13px; flex-shrink: 0;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='m3 7 9 6 9-6'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='m3 7 9 6 9-6'/%3E%3C/svg%3E") center/contain no-repeat;
  color: var(--accent);
}
.footer-support a:hover { color: var(--accent); }
.footer-divider { height: 1px; width: 100%; background: var(--border); }
.footer-copy { font-size: 12px; color: #6a6a6a; text-align: center; }

/* ═══════════════════════════════════════════════════════
   MODALS
═══════════════════════════════════════════════════════ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(4px);
  z-index: 500;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 2rem 1rem;
  overflow-y: auto;
}
.modal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2rem;
  max-width: 640px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-sizing: border-box;
}
#sellForm {
  width: 100%;
}
.modal * { box-sizing: border-box; }
.modal--wide { max-width: 820px; }
.modal--sm   { max-width: 420px; }
@keyframes modalIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 1.5rem 1rem;
  border-bottom: 1px solid var(--border);
}
.modal-header h2 { font-size: 18px; font-weight: 800; }
.modal-close {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text-muted);
  width: 32px; height: 32px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition);
}
.modal-close:hover { color: var(--text); border-color: var(--border-hover); }

/* ─── FORMULAIRE VENTE ───────────────────────────────── */
.sell-form { padding: 1.5rem; display: flex; flex-direction: column; gap: 1.5rem; }

.form-section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.form-section-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-label { font-size: 13px; font-weight: 600; color: var(--text); }
.required { color: var(--accent); }
.form-input {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  padding: 9px 12px;
  font-size: 14px;
  outline: none;
  transition: border-color var(--transition);
  width: 100%;
}
.form-input:focus { border-color: var(--accent); }
.form-input::placeholder { color: var(--text-dim); }
.form-textarea { resize: vertical; min-height: 80px; }

/* Menus déroulants du formulaire — supprime l'apparence native Apple */
select.form-input {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
  padding-right: 38px;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23FF5757' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
}
select.form-input:hover { border-color: var(--border-hover); }
select.form-input option { background: var(--bg-card); color: var(--text); }

/* Upload zone */
.upload-zone {
  border: 2px dashed var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-elevated);
  min-height: 160px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  cursor: pointer;
  transition: border-color var(--transition);
  overflow: hidden;
}
.upload-zone:hover { border-color: var(--accent); }
.file-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%; height: 100%;
}
.upload-placeholder {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  pointer-events: none;
  text-align: center; padding: 1rem;
}
.upload-icon { font-size: 32px; }
.upload-text { font-size: 14px; font-weight: 600; color: var(--text); }
.upload-hint { font-size: 11px; color: var(--text-dim); }
.upload-preview {
  width: 100%; height: 220px;
  object-fit: contain;
  background: var(--bg-elevated);
}
.upload-change {
  position: absolute;
  bottom: 10px; right: 10px;
  background: rgba(0,0,0,0.7);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 12px; font-weight: 600;
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  backdrop-filter: blur(4px);
  z-index: 2;
}

/* État de la carte */
.condition-group {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
.condition-option { cursor: pointer; }
.condition-option input[type="radio"] { display: none; }
.condition-label {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 12px;
  transition: all var(--transition);
}
.condition-option input:checked + .condition-label {
  border-color: var(--accent);
  background: var(--accent-glow);
}
.condition-grade {
  font-size: 11px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 4px;
  white-space: nowrap;
}
.condition-grade--mint  { background: #22c55e22; color: #22c55e; }
.condition-grade--nm    { background: #84cc1622; color: #84cc16; }
.condition-grade--ex    { background: #f59e0b22; color: #f59e0b; }
.condition-grade--good  { background: #ef444422; color: #ef4444; }
.condition-desc { font-size: 11px; color: var(--text-muted); }

/* Champ avec €  */
.input-euro { position: relative; }
.input-euro .form-input { padding-right: 30px; }
.euro-symbol {
  position: absolute;
  right: 12px; top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 14px;
  pointer-events: none;
}

/* Footer form */
.sell-form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1.5rem;
  border-top: 1px solid var(--border);
  margin-top: 1rem;
}
.sell-form-note {
  font-size: 13px;
  color: var(--text-muted);
  flex: 1;
  min-width: 200px;
}
.sell-form-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

/* ─── MODAL DÉTAIL CARTE ─────────────────────────────── */
.card-detail-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  padding: 1.5rem;
}
.card-detail-photo {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-elevated);
  aspect-ratio: 5/7;
}
.card-detail-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.card-detail-info { display: flex; flex-direction: column; gap: 1rem; }
.card-detail-player { font-size: 24px; font-weight: 900; letter-spacing: -0.5px; }
.card-detail-meta { color: var(--text-muted); font-size: 14px; line-height: 1.7; }
.card-detail-price { font-size: 32px; font-weight: 900; color: var(--accent); }
.card-detail-actions { display: flex; gap: 10px; flex-direction: column; }
.card-detail-actions .btn { justify-content: center; }
.detail-tag {
  display: inline-flex;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 3px 10px;
  font-size: 12px;
  font-weight: 600;
  margin: 2px;
}
.detail-tags { margin-top: 4px; }

/* ─── RESPONSIVE ─────────────────────────────────────── */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .trust-items { grid-template-columns: repeat(2, 1fr); gap: 2.25rem 1rem; }
  .trust-item:not(:last-child)::after { display: none; }
  .card-detail-body { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .hero-stats { gap: 1.5rem; }
  .filters-inner { gap: 8px; }
  .filters-right { margin-left: 0; width: 100%; }
  .search-input { width: 100%; }
  .form-row { grid-template-columns: 1fr; }
  .condition-group { grid-template-columns: 1fr; }
  .trust-items { grid-template-columns: 1fr 1fr; }
  .auctions-grid { grid-template-columns: 1fr; }
  .footer-top { flex-direction: column; align-items: center; text-align: center; gap: 2rem; }
  .footer-brand { max-width: none; }
  .footer-logo-img { margin-left: auto; margin-right: auto; }
  .footer-tagline { max-width: none; margin-left: auto; margin-right: auto; }
  .footer-col { align-items: center; }
  .footer-nav { align-items: center; }
  .footer-support { align-items: center; }
  .footer-support span { max-width: none; }
}

/* ─── PAGE FAVORIS ───────────────────────────────────── */
.fav-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding-top: 2rem;
}
.fav-title {
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -0.5px;
  margin-bottom: 4px;
}
.fav-subtitle { font-size: 14px; color: var(--text-muted); }
.fav-filters  { display: flex; gap: 8px; flex-wrap: wrap; }

/* ─── PAGE ENCHÈRES ──────────────────────────────────── */
.auctions-hero {
  position: relative;
  overflow: hidden;
  padding: 3rem 0 2rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.auctions-live-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

/* Grille enchères pleine page */
.auctions-page-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 2rem;
}

/* Carte enchère */
.auction-full-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: all var(--transition);
}
.auction-full-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}
.auction-full-photo {
  width: 100%;
  aspect-ratio: 5/7;
  background: var(--bg-elevated);
  position: relative;
  overflow: hidden;
}
.auction-full-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.auction-full-card:hover .auction-full-photo img {
  transform: scale(1.03);
}

/* Badge timer sur la photo */
.auction-timer-badge {
  position: absolute;
  bottom: 8px; left: 8px; right: 8px;
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 6px;
  backdrop-filter: blur(6px);
}
.urgency--red    { background: rgba(239,68,68,0.85);  color: #fff; }
.urgency--orange { background: rgba(249,115,22,0.85); color: #fff; }
.urgency--normal { background: rgba(0,0,0,0.6);       color: #fff; }

.auction-full-info { padding: 12px; }
.auction-full-player {
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.auction-full-meta {
  font-size: 11px;
  color: var(--text-muted);
  margin: 3px 0 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.auction-full-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
}

@media (max-width: 600px) {
  .auctions-page-grid { grid-template-columns: repeat(2, 1fr); }
  .auctions-live-stats { gap: 1.5rem; }
}

/* ═══════════════════════════════════════════════════════
   notifications.css — Cloche de notifications Rookhit
   À ajouter à la fin de css/style.css
═══════════════════════════════════════════════════════ */

.notif-bell-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.notif-bell {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text);
  width: 36px; height: 36px;
  border-radius: var(--radius);
  font-size: 16px;
  cursor: pointer;
  position: relative;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition);
}
.notif-bell:hover { border-color: var(--border-hover); }

.notif-badge {
  position: absolute;
  top: -4px; right: -4px;
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  min-width: 16px; height: 16px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  padding: 0 3px;
  border: 2px solid var(--bg);
}

.notif-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 340px;
  max-height: 420px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 16px 40px rgba(0,0,0,0.5);
  z-index: 300;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.notif-dropdown-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  font-weight: 700;
}
.notif-mark-all {
  background: none;
  border: none;
  color: var(--accent);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}
.notif-mark-all:hover { text-decoration: underline; }

.notif-list { overflow-y: auto; max-height: 360px; }

.notif-item {
  display: flex;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  transition: background var(--transition);
}
.notif-item:hover { background: var(--bg-elevated); }
.notif-item:last-child { border-bottom: none; }
.notif-item--unread { background: rgba(255,87,87,0.04); }
.notif-item--unread::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 6px;
}
.notif-icon { font-size: 18px; flex-shrink: 0; }
.notif-content { flex: 1; min-width: 0; }
.notif-title   { font-size: 13px; font-weight: 700; color: var(--text); }
.notif-message { font-size: 12px; color: var(--text-muted); margin-top: 2px; line-height: 1.4; }
.notif-time    { font-size: 11px; color: var(--text-dim); margin-top: 4px; }

@media (max-width: 600px) {
  .notif-dropdown { width: 300px; right: -60px; }
}

.hero-auctions {
  padding: 1.5rem 0 1rem;
  border-bottom: 1px solid var(--border);
}
.hero-auctions-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  max-width: 1200px;
  margin: 0 auto 1rem;
}
.hero-auctions-title {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.3px;
}
 
.hero-auctions-carousel {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 0 1.5rem 1rem;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}
.hero-auctions-carousel::-webkit-scrollbar { height: 6px; }
.hero-auctions-carousel::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
.hero-auctions-carousel::-webkit-scrollbar-track { background: transparent; }
 
/* Carte XXL du carrousel */
.hero-auction-card {
  flex: 0 0 auto;
  width: 280px;
  scroll-snap-align: start;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  cursor: pointer;
  transition: all var(--transition);
}
.hero-auction-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}
 
.hero-auction-photo {
  width: 100%;
  aspect-ratio: 5/6;
  background: var(--bg-elevated);
  position: relative;
  overflow: hidden;
}
.hero-auction-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.hero-auction-card:hover .hero-auction-photo img { transform: scale(1.04); }
 
.hero-auction-timer {
  position: absolute;
  top: 10px; left: 10px;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
}
.hero-auction-timer.urgency--red    { background: rgba(239,68,68,0.85); }
.hero-auction-timer.urgency--orange { background: rgba(249,115,22,0.85); }
 
.hero-auction-badge {
  position: absolute;
  top: 10px; right: 10px;
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
}
 
.hero-auction-info { padding: 14px; }
.hero-auction-player {
  font-size: 15px;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hero-auction-meta {
  font-size: 12px;
  color: var(--text-muted);
  margin: 2px 0 10px;
}
.hero-auction-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}
.hero-auction-bid-label { font-size: 10px; color: var(--text-dim); }
.hero-auction-bid-price { font-size: 20px; font-weight: 900; color: var(--accent); }
.hero-auction-bids-count { font-size: 11px; color: var(--text-muted); }
 
.hero-auctions-empty {
  padding: 3rem 1.5rem;
  text-align: center;
  color: var(--text-muted);
}
 
@media (max-width: 600px) {
  .hero-auction-card { width: 220px; }
}
 
.nav-search { position: relative; }
.save-search-btn {
  position: absolute;
  right: 6px; top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  font-size: 15px;
  cursor: pointer;
  color: var(--text-muted);
  padding: 4px;
  transition: color var(--transition), transform var(--transition);
}
.save-search-btn:hover { color: var(--accent); transform: translateY(-50%) scale(1.15); }
.save-search-btn.saved { color: var(--accent); }
 
.saved-search-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 14px;
  margin-bottom: 8px;
}
.saved-search-query { font-size: 14px; font-weight: 600; }
.saved-search-delete {
  background: none;
  border: none;
  color: #FF5757;
  cursor: pointer;
  font-size: 14px;
}
.saved-search-delete:hover { color: #FF5757; }

.save-star-btn {
  position: absolute;
  right: 8px; top: 50%;
  transform: translateY(-50%);
  background: none; border: none;
  font-size: 18px; cursor: pointer;
  color: var(--text-muted);
  transition: color var(--transition), transform var(--transition);
  z-index: 2;
}
.save-star-btn:hover { transform: translateY(-50%) scale(1.2); color: #FF5757; }
.save-star-btn.saved { color: #FF5757; }
 
.saved-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0; right: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 32px rgba(0,0,0,0.4);
  z-index: 300;
  overflow: hidden;
  max-height: 320px;
  overflow-y: auto;
}
.saved-dropdown-header {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-dim);
  padding: 10px 14px 6px;
}
.saved-search-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  cursor: pointer;
  transition: background var(--transition);
}
.saved-search-row:hover { background: var(--bg-elevated); }
.saved-search-row-query { font-size: 14px; display: flex; align-items: center; gap: 8px; }
.saved-search-row-delete {
  background: none; border: none;
  color: var(--text-dim); cursor: pointer;
  font-size: 13px; padding: 2px 6px;
}
.saved-search-row-delete:hover { color: #ef4444; }
.saved-dropdown-empty {
  padding: 14px; text-align: center;
  font-size: 13px; color: var(--text-muted);
}

.auction-warning {
  font-size: 12px;
  color: #f5a623;
  background: rgba(245,166,35,0.08);
  border: 1px solid rgba(245,166,35,0.25);
  border-radius: var(--radius);
  padding: 8px 12px;
  margin-top: 8px;
  line-height: 1.4;
}

.card-types-checks {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.type-check {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  cursor: pointer;
}
.type-check input { accent-color: var(--accent); cursor: pointer; }

.card-badge--unique {
  background: linear-gradient(135deg, #f5a623, #f7c948);
  color: #000;
  font-weight: 800;
}

/* ═══════════════════════════════════════════════════════
   SKELETON LOADERS — Rookhit
   Rectangles gris animés pendant le chargement
═══════════════════════════════════════════════════════ */

@keyframes skeleton-pulse {
  0%   { opacity: 1; }
  50%  { opacity: 0.4; }
  100% { opacity: 1; }
}

.skeleton {
  background: linear-gradient(90deg, var(--bg-elevated) 25%, var(--border) 50%, var(--bg-elevated) 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s infinite;
  border-radius: var(--radius);
}

@keyframes skeleton-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Carte skeleton (pour les grilles) */
.skeleton-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.skeleton-photo {
  width: 100%;
  aspect-ratio: 5/7;
}
.skeleton-info {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.skeleton-line {
  height: 12px;
  border-radius: 4px;
}
.skeleton-line--title { width: 70%; height: 14px; }
.skeleton-line--meta  { width: 50%; height: 10px; }
.skeleton-line--price { width: 40%; height: 18px; margin-top: 4px; }

/* Skeleton page détail carte */
.skeleton-detail-photo {
  width: 100%;
  aspect-ratio: 5/7;
  border-radius: var(--radius-xl);
}
.skeleton-detail-line {
  height: 16px;
  border-radius: 4px;
  margin-bottom: 12px;
}

/* Skeleton profil vendeur */
.skeleton-avatar {
  width: 90px; height: 90px;
  border-radius: 50%;
  flex-shrink: 0;
}

 
.photos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 10px;
}
.photo-add-btn {
  aspect-ratio: 5/7;
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  background: var(--bg-elevated);
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  transition: border-color var(--transition), color var(--transition);
}
.photo-add-btn:hover { border-color: var(--accent); color: var(--accent); }
.photo-thumb {
  position: relative;
  aspect-ratio: 5/7;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
}
.photo-thumb img { width: 100%; height: 100%; object-fit: cover; }
.photo-thumb-remove {
  position: absolute;
  top: 4px; right: 4px;
  width: 24px; height: 24px;
  background: rgba(0,0,0,0.7);
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 14px;
  display: flex; align-items: center; justify-content: center;
}
.photo-thumb-remove:hover { background: #ef4444; }
.photo-thumb-main {
  position: absolute;
  bottom: 4px; left: 4px;
  background: var(--accent);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
}
/* ═══════════════════════════════════════════════════════
   NAVBAR MOBILE — menu burger
   À coller à la fin de css/style.css
   (remplace la version précédente si tu l'avais déjà collée)
═══════════════════════════════════════════════════════ */

/* Le burger est caché sur desktop */
.nav-burger {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 20px;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  line-height: 1;
  padding: 0;
}
.nav-burger:hover { border-color: var(--border-hover); }

@media (max-width: 860px) {
  .navbar {
    flex-wrap: wrap;
    height: auto;
    padding: 10px 16px;
    row-gap: 10px;
  }

  .nav-left {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
  }

  /* Ligne 1 : logo … cloche burger */
  .nav-logo        { order: 1; }
  .notif-bell-wrap { order: 2; margin-left: auto; position: relative; }
  .nav-burger      { order: 3; display: flex; }

  /* Ligne 2 : recherche pleine largeur */
  .nav-search {
    order: 4;
    width: 100%;
    max-width: none;
    flex: none;
  }
  .nav-search .search-input { width: 100%; }

  /* Panneau du menu (révélé par le burger) */
  .nav-links {
    order: 5;
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding-top: 6px;
    border-top: 1px solid var(--border);
  }
  .nav-links li { width: 100%; }
  .nav-links .nav-link {
    display: block;
    width: 100%;
    padding: 12px 4px;
    font-size: 15px;
  }

  .nav-actions {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding-bottom: 6px;
  }
  .nav-actions .btn,
  .nav-actions a.btn {
    width: 100%;
    justify-content: center;
  }

  .navbar.nav-open .nav-links,
  .navbar.nav-open .nav-actions { display: flex; }

  /* Le dropdown des notifications s'adapte à l'écran */
  .notif-dropdown {
    right: 0;
    left: auto;
    width: min(320px, calc(100vw - 32px));
  }
}

/* Chips sports — une seule ligne défilante */
.chips {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 10px;
  padding-bottom: 4px;
  scrollbar-width: none;          /* Firefox */
  -ms-overflow-style: none;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}
.chips::-webkit-scrollbar { display: none; }   /* Safari / Chrome */

.chip {
  flex: 0 0 auto;                 /* ne rétrécit pas, ne passe pas à la ligne */
  scroll-snap-align: start;
  padding: 11px 20px;
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
}

@media (max-width: 860px) {
  #cardsGrid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  #cardsGrid .card-player { font-size: 13px; }
  #cardsGrid .card-meta   { font-size: 11px; }
  #cardsGrid .card-price  { font-size: 15px; }
  #cardsGrid .card-info   { padding: 10px; }
}
@media (max-width: 600px) {
  .sell-form-footer {
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
  }
  .sell-form-note {
    min-width: 0;
    font-size: 12px;
  }
  .sell-form-actions {
    width: 100%;
    gap: 8px;
  }
  .sell-form-actions .btn {
    flex: 1;
    justify-content: center;
    padding-left: 8px;
    padding-right: 8px;
    font-size: 13px;
  }
}

.filters-bar {
  position: sticky;
  top: var(--nav-h, 64px);
  z-index: 90;
  background: var(--bg);
}

.select-sort {
  appearance: none;
  -webkit-appearance: none;
  background-color: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 36px 10px 16px;
  cursor: pointer;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23888' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  transition: border-color .15s;
}
.select-sort:hover { border-color: var(--border-hover); }
.select-sort:focus { outline: none; border-color: var(--accent); }
.select-sort option { background: var(--bg-card); color: var(--text); }

.section-header .see-all { margin-left: auto; }

.nav-logo { display: flex; align-items: center; text-decoration: none; flex-shrink: 0; }
.logo-img { height: 40px; width: auto; display: block; }

@media (max-width: 600px) {
  .logo-img { height: 34px; }
}

#usernameGate { position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center; padding: 1rem; }
#usernameGate .ug-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.8); backdrop-filter: blur(4px); }
#usernameGate .ug-modal {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2rem;
  max-width: 420px;
  width: 100%;
  box-shadow: 0 24px 60px rgba(0,0,0,0.6);
}
.ug-title { font-size: 22px; font-weight: 900; margin-bottom: 0.5rem; }
.ug-sub { font-size: 13px; color: var(--text-muted); line-height: 1.5; margin-bottom: 1.5rem; }
.ug-field {
  display: flex; align-items: center;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0 12px;
}
.ug-field:focus-within { border-color: var(--accent); }
.ug-at { color: var(--text-muted); font-size: 16px; font-weight: 700; }
#ugInput {
  flex: 1; background: none; border: none; outline: none;
  color: var(--text); font-size: 16px; padding: 12px 6px;
}
.ug-error { display: block; color: #ef4444; font-size: 13px; min-height: 18px; margin: 8px 0; }
.ug-submit { width: 100%; justify-content: center; }

.phone-field { display: flex; align-items: stretch; gap: 8px; }
.phone-prefix {
  display: flex; align-items: center;
  padding: 0 12px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px; font-weight: 700;
  color: var(--text-muted);
  white-space: nowrap;
}
.phone-field .form-input { flex: 1; }
.phone-field .form-input:disabled { opacity: 0.5; cursor: not-allowed; }

.lang-switch {
  background: none; border: 1px solid var(--border);
  border-radius: var(--radius); color: var(--text);
  font-size: 13px; font-weight: 700; padding: 6px 12px; cursor: pointer;
}
.lang-switch:hover { border-color: var(--border-hover); }

.nav-actions .btn {
  white-space: nowrap;
}
.nav-actions a.btn {
  min-width: 130px;
  justify-content: center;
}
.nav-actions .btn-primary {
  min-width: 160px;
  justify-content: center;
}
/* ── Signaler une annonce (page carte) ── */
.card-report { margin-top: 1rem; }
.card-report-link {
  display: inline-flex; align-items: center; gap: 6px;
  background: none; border: none; cursor: pointer; padding: 4px 0;
  color: var(--text-muted); font-size: 13px; font-family: inherit;
  transition: color .15s;
}
.card-report-link:hover { color: var(--accent); }
.report-opts { display: flex; flex-direction: column; gap: 8px; }
.report-opt {
  display: flex; align-items: center; gap: 10px; cursor: pointer;
  padding: 11px 13px; border: 1px solid var(--border); border-radius: 10px;
  font-size: 14px; transition: border-color .15s, background .15s;
}
.report-opt:hover { border-color: var(--text-muted); }
.report-opt:has(input:checked) { border-color: var(--accent); background: rgba(255,87,87,0.06); }
.report-opt input { accent-color: var(--accent); width: 16px; height: 16px; }

/* Note « montant exact au paiement » sous le port estimé */
.shipping-note {
  display: block; font-size: 11.5px; color: var(--text-muted);
  margin-top: 2px; line-height: 1.35;
}

/* ══════════════════════════════════════════════
   Bandeau de consentement cookies
   ══════════════════════════════════════════════ */
.ck-wrap {
  position: fixed; inset: auto 0 0 0; z-index: 9999;
  display: flex; justify-content: center;
  padding: 16px; pointer-events: none;
}
.ck-card {
  pointer-events: auto;
  width: 100%; max-width: 640px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.3rem 1.4rem;
  box-shadow: 0 18px 50px rgba(0,0,0,.6);
}
.ck-card h2 { font-size: 16.5px; font-weight: 800; margin-bottom: 8px; }
.ck-card p  { font-size: 13.5px; color: var(--text-muted); line-height: 1.55; }
.ck-card a  { color: var(--accent); text-decoration: underline; }

.ck-actions { display: flex; gap: 10px; margin-top: 1.1rem; flex-wrap: wrap; }
.ck-btn {
  flex: 1; min-width: 130px; cursor: pointer;
  font-family: inherit; font-size: 13.5px; font-weight: 700;
  padding: 11px 14px; border-radius: 10px;
  transition: filter .15s, border-color .15s;
}
/* Refuser doit être aussi accessible qu'accepter (exigence CNIL) :
   même taille, même poids, même niveau de visibilité. */
.ck-ghost   { background: var(--bg-elevated); color: var(--text); border: 1px solid var(--border); }
.ck-ghost:hover { border-color: var(--text-muted); }
.ck-primary { background: var(--accent); color: #fff; border: 1px solid var(--accent); }
.ck-primary:hover { filter: brightness(1.08); }

.ck-cat { border-top: 1px solid var(--border); padding: 0.9rem 0; }
.ck-cat:first-of-type { border-top: none; }
.ck-cat-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 5px; }
.ck-cat-head strong { font-size: 14px; }
.ck-always { font-size: 11.5px; font-weight: 700; color: #22c55e;
  background: rgba(34,197,94,.12); border: 1px solid rgba(34,197,94,.28);
  border-radius: 999px; padding: 3px 10px; }

.ck-switch { position: relative; display: inline-block; width: 42px; height: 24px; flex-shrink: 0; }
.ck-switch input { opacity: 0; width: 0; height: 0; }
.ck-slider {
  position: absolute; cursor: pointer; inset: 0;
  background: var(--bg-elevated); border: 1px solid var(--border);
  border-radius: 999px; transition: background .2s, border-color .2s;
}
.ck-slider::before {
  content: ''; position: absolute; height: 16px; width: 16px;
  left: 3px; top: 3px; background: var(--text-muted);
  border-radius: 50%; transition: transform .2s, background .2s;
}
.ck-switch input:checked + .ck-slider { background: var(--accent); border-color: var(--accent); }
.ck-switch input:checked + .ck-slider::before { transform: translateX(18px); background: #fff; }
.ck-switch input:focus-visible + .ck-slider { outline: 2px solid var(--accent); outline-offset: 2px; }

@media (max-width: 520px) {
  .ck-btn { flex: 1 1 100%; }
}
