/* ============================================================
   PAGE ACCUEIL — actualités (aperçu) + colonne stats communauté
   ============================================================ */

.acc-hero {
  text-align: center;
  padding: clamp(120px, 14vh, 175px) 20px clamp(28px, 5vh, 56px);
}
.acc-hero h1 {
  font-size: clamp(34px, 5vw, 58px);
  font-weight: 800;
  line-height: 1.05;
  background: linear-gradient(180deg, #ffffff 30%, #c7d2e0 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.acc-hero h1 .c2 {
  background: linear-gradient(180deg, #86efac, var(--accent) 55%, var(--accent-dark));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 22px rgba(74, 222, 128, 0.35));
}
.acc-hero p { color: var(--muted); margin-top: 12px; font-size: clamp(14px, 1.5vw, 18px); }

/* Grille : contenu principal + colonne latérale */
.acc-wrap {
  max-width: 1180px; margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 56px) 96px;
  display: grid; grid-template-columns: minmax(0, 1fr) 340px;
  gap: 28px; align-items: start;
}
@media (max-width: 900px) {
  .acc-wrap { grid-template-columns: 1fr; }
}

/* --- En-tête de section --- */
.acc-sec-head {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 18px; gap: 12px;
}
.acc-sec-head h2 { font-size: 20px; font-weight: 700; }
.acc-seeall {
  color: var(--accent); text-decoration: none; font-weight: 600;
  font-size: 14px; white-space: nowrap; transition: opacity .15s;
}
.acc-seeall:hover { opacity: .8; }

/* --- Cartes d'actualité (aperçu) --- */
.acc-news-list { display: flex; flex-direction: column; gap: 16px; }
.acc-news-card {
  display: flex; gap: 16px; padding: 16px;
  background: rgba(0, 0, 0, 0.42);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  transition: transform .15s, border-color .2s, box-shadow .2s;
}
.acc-news-card:hover {
  transform: translateY(-3px);
  border-color: rgba(74, 222, 128, 0.4);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}
.acc-news-img {
  width: 130px; min-height: 96px; flex-shrink: 0;
  border-radius: 10px; background-size: cover; background-position: center;
}
.acc-news-body { min-width: 0; }
.acc-news-meta { display: flex; gap: 8px; align-items: center; font-size: 11px; color: var(--muted); }
.acc-news-tag {
  background: rgba(74, 222, 128, 0.15); color: var(--accent);
  padding: 2px 9px; border-radius: 20px; font-weight: 600;
}
.acc-news-body h3 { font-size: 16px; margin: 6px 0 6px; }
.acc-news-body p { color: var(--muted); font-size: 13px; line-height: 1.5; }

@media (max-width: 520px) {
  .acc-news-card { flex-direction: column; }
  .acc-news-img { width: 100%; height: 150px; }
}

/* --- Colonne latérale (stats) --- */
.acc-side { display: flex; flex-direction: column; gap: 20px; position: sticky; top: 96px; }
@media (max-width: 900px) { .acc-side { position: static; } }

.acc-card {
  background: rgba(0, 0, 0, 0.42);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px; padding: 18px;
}
.acc-card h3 { font-size: 15px; font-weight: 700; margin-bottom: 12px; }
.acc-card h3 small { font-size: 11px; color: var(--muted); font-weight: 500; }

.acc-row {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 0; border-top: 1px solid rgba(255, 255, 255, 0.05);
}
.acc-row:first-child { border-top: none; }
.acc-row img { width: 32px; height: 32px; border-radius: 8px; background: #222; flex-shrink: 0; }
.acc-row-name { font-size: 13.5px; font-weight: 600; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acc-row-val { color: var(--accent); font-weight: 700; font-size: 13px; white-space: nowrap; }

/* Médaille de rang */
.acc-rank {
  width: 22px; height: 22px; border-radius: 50%; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 800; background: rgba(255, 255, 255, 0.08); color: var(--muted);
}
.acc-rank.r1 { background: linear-gradient(135deg, #fde68a, #f59e0b); color: #3a2a00; }
.acc-rank.r2 { background: linear-gradient(135deg, #e5e7eb, #9ca3af); color: #1f2430; }
.acc-rank.r3 { background: linear-gradient(135deg, #f0b27a, #c2703d); color: #2a1500; }

/* Dernier achat : ligne plus grande */
.acc-row-lg img { width: 44px; height: 44px; border-radius: 10px; }
.acc-row-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.acc-row-info b { font-size: 14px; }
.acc-row-info span { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.acc-empty { color: var(--muted); font-size: 13px; text-align: center; padding: 12px 0; }
.acc-loading { color: var(--muted); }
