/* ===== classement ===== */

/* ── PAGE CLASSEMENT ── */
.cl-hero {
  background: linear-gradient(135deg,#0A0F1E 0%,#111827 100%);
  border-bottom:1px solid var(--border);
  padding:2rem 0 1.75rem;
}
.cl-hero h1 {
  font-family:var(--font-display);
  font-size:clamp(1.6rem,3vw,2.2rem);
  font-weight:900;
  color:#fff;
  margin:0 0 .4rem;
  letter-spacing:-.02em;
}
.cl-badge {
  display:inline-flex;align-items:center;gap:.35rem;
  background:rgba(232,0,28,.12);color:var(--primary);
  border:1px solid rgba(232,0,28,.25);border-radius:20px;
  padding:.22rem .75rem;font-size:.7rem;font-weight:700;
  text-transform:uppercase;letter-spacing:.08em;margin-bottom:.75rem;
}
.cl-meta {
  display:flex;align-items:center;gap:1.25rem;flex-wrap:wrap;
  font-size:.78rem;color:var(--text-muted);margin-top:.4rem;
}
.cl-meta i { color:var(--primary);font-size:.7rem; }

/* ── TABS SIMPLES ── */
.cl-tabs {
  display:flex;gap:.3rem;
  background:var(--bg-card);border:1px solid var(--border);
  border-radius:var(--radius-lg);padding:.3rem;
  width:fit-content;margin-bottom:1.25rem;
}
.cl-tab {
  padding:.4rem 1rem;border-radius:var(--radius-md);
  font-size:.8rem;font-weight:600;color:var(--text-muted);
  cursor:pointer;transition:all .15s;white-space:nowrap;
  border:none;background:none;font-family:inherit;
}
.cl-tab:hover { color:var(--text-primary); }
.cl-tab.active {
  background:var(--primary);color:#fff;
  box-shadow:0 2px 8px rgba(232,0,28,.3);
}

/* ── TABLE ── */
.cl-card {
  background:var(--bg-card);border:1px solid var(--border);
  border-radius:var(--radius-xl);overflow:hidden;
}
.cl-table { width:100%;border-collapse:collapse; }
.cl-table thead th {
  background:var(--bg-card-2,#161f2e);
  color:var(--text-muted);font-size:.65rem;font-weight:700;
  text-transform:uppercase;letter-spacing:.07em;
  padding:.65rem .85rem;border-bottom:1px solid var(--border);
  white-space:nowrap;
}
.cl-table tbody tr {
  border-bottom:1px solid var(--border);
  transition:background .12s;
}
.cl-table tbody tr:last-child { border-bottom:none; }
.cl-table tbody tr:hover { background:rgba(255,255,255,.025); }
.cl-table td { padding:.75rem .85rem;vertical-align:middle; }

/* Zones */
.z-champion { border-left:3px solid #F5A623; }
.z-caf { border-left:3px solid #00A86B; }
.z-neutre { border-left:3px solid transparent; }
.z-releg { border-left:3px solid var(--primary); }

/* Rang */
.cl-rang {
  width:26px;height:26px;border-radius:50%;
  display:flex;align-items:center;justify-content:center;
  font-weight:800;font-size:.78rem;flex-shrink:0;
}
.r1 { background:linear-gradient(135deg,#F5A623,#e08000);color:#fff;box-shadow:0 2px 8px rgba(245,166,35,.4); }
.r2 { background:linear-gradient(135deg,#9CA3AF,#6B7280);color:#fff; }
.r3 { background:linear-gradient(135deg,#CD7F32,#a05820);color:#fff; }
.r-top { background:rgba(0,168,107,.15);color:#00A86B;border:1px solid rgba(0,168,107,.3); }
.r-reg { background:rgba(232,0,28,.1);color:var(--primary);border:1px solid rgba(232,0,28,.2); }
.r-norm { background:var(--bg-body);color:var(--text-muted);border:1px solid var(--border); }

/* Club */
.cl-club { display:flex;align-items:center;gap:.65rem; }
.cl-logo {
  width:28px;height:28px;border-radius:50%;flex-shrink:0;
  display:flex;align-items:center;justify-content:center;
  font-size:.62rem;font-weight:800;color:#fff;
  border:2px solid rgba(255,255,255,.1);
}
.cl-nom { font-weight:600;color:var(--text-primary);font-size:.85rem; }
.cl-ville { font-size:.68rem;color:var(--text-muted); }

/* Nums */
.cl-table .n { font-size:.82rem;font-weight:600;text-align:center;color:var(--text-secondary); }
.cl-table .pts { font-family:var(--font-display);font-weight:800;font-size:.95rem;color:var(--text-primary);text-align:center; }
.cl-table .db-p { color:#00A86B;font-weight:700; }
.cl-table .db-n { color:var(--primary);font-weight:700; }

/* Forme */
.forme { display:flex;gap:.18rem;align-items:center; }
.forme .fb {
  width:18px;height:18px;border-radius:50%;
  display:flex;align-items:center;justify-content:center;
  font-size:.58rem;font-weight:800;
}
.forme .fv { background:#00A86B;color:#fff; }
.forme .fn { background:#5A6A84;color:#fff; }
.forme .fd { background:var(--primary);color:#fff; }

/* Légende */
.cl-legend {
  display:flex;flex-wrap:wrap;gap:1.25rem;
  padding:.85rem 1rem;background:var(--bg-body);
  border-top:1px solid var(--border);
}
.cl-legend-item { display:flex;align-items:center;gap:.45rem;font-size:.74rem;color:var(--text-muted); }
.cl-legend-bar { width:12px;height:3px;border-radius:2px; }

/* Match card */
.mc {
  display:flex;align-items:center;gap:.85rem;
  padding:.85rem 1rem;border-bottom:1px solid var(--border);
  transition:background .12s;
}
.mc:last-child { border-bottom:none; }
.mc:hover { background:rgba(255,255,255,.02); }
.mc-date { min-width:58px;text-align:center; }
.mc-date-d { font-size:.7rem;color:var(--text-muted);text-transform:uppercase;letter-spacing:.04em; }
.mc-date-h { font-family:var(--font-display);font-size:.95rem;font-weight:800;color:var(--primary); }
.mc-teams { flex:1;display:flex;align-items:center;gap:.5rem;justify-content:space-between; }
.mc-team { font-size:.83rem;font-weight:600;color:var(--text-primary);flex:1; }
.mc-team.r { text-align:right; }
.mc-score {
  background:var(--bg-card);border:1px solid var(--border);
  border-radius:var(--radius-sm);padding:.18rem .55rem;
  font-family:var(--font-display);font-weight:800;font-size:.9rem;
  color:var(--text-primary);white-space:nowrap;
}

/* Buteurs */
.bt {
  display:flex;align-items:center;gap:.75rem;
  padding:.7rem 1rem;border-bottom:1px solid var(--border);
  transition:background .12s;
}
.bt:last-child { border-bottom:none; }
.bt:hover { background:rgba(255,255,255,.02); }
.bt-rang { width:22px;text-align:center;font-size:.75rem;font-weight:800;color:var(--primary);flex-shrink:0; }
.bt-info { flex:1; }
.bt-nom { font-size:.85rem;font-weight:600;color:var(--text-primary); }
.bt-club { font-size:.7rem;color:var(--text-muted); }
.bt-buts { font-family:var(--font-display);font-size:1.1rem;font-weight:800;color:var(--text-primary); }

@media(max-width:767px) {
  .hide-sm { display:none!important; }
  .cl-table td { padding:.6rem .5rem; }
}

/* ===== recherche ===== */

/* ── PAGE RECHERCHE ── */
.search-hero {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  padding: 2rem 0 1.75rem;
}
.search-hero h1 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0 0 1.1rem;
  letter-spacing: -.01em;
}
.search-box-wrap {
  position: relative;
  max-width: 640px;
}
.search-box-main {
  width: 100%;
  background: var(--bg-body);
  border: 2px solid var(--border);
  border-radius: 50px;
  color: var(--text-primary);
  font-size: .95rem;
  padding: .75rem 3.5rem .75rem 1.35rem;
  outline: none;
  font-family: var(--font-body);
  transition: border-color .2s;
}
.search-box-main:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(232,0,28,.1);
}
.search-box-main::placeholder { color: var(--text-muted); }
.search-box-btn {
  position: absolute;
  right: 6px; top: 50%;
  transform: translateY(-50%);
  width: 38px; height: 38px;
  background: var(--primary);
  border: none; border-radius: 50%;
  color: #fff; font-size: .88rem;
  cursor: pointer; transition: all .2s;
  display: flex; align-items: center; justify-content: center;
}
.search-box-btn:hover { background: #ff1a35; transform: translateY(-50%) scale(1.07); }
.search-meta {
  font-size: .82rem;
  color: var(--text-muted);
  margin-top: .75rem;
  display: flex; align-items: center; gap: .4rem;
}
.search-meta strong { color: var(--primary); }

/* ── FILTRES ── */
.search-filters {
  display: flex;
  gap: .4rem;
  flex-wrap: wrap;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.5rem;
}
.sf-btn {
  padding: .38rem .9rem;
  border-radius: 50px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  font-size: .78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all .15s;
  font-family: var(--font-body);
  white-space: nowrap;
}
.sf-btn:hover { border-color: var(--primary); color: var(--primary); }
.sf-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.sf-count {
  font-size: .68rem;
  background: rgba(255,255,255,.12);
  border-radius: 10px;
  padding: .05rem .35rem;
  margin-left: .25rem;
}

/* ── TRI ── */
.sort-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.1rem;
  flex-wrap: wrap;
  gap: .5rem;
}
.sort-label { font-size: .8rem; color: var(--text-muted); }
.sort-select {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-size: .8rem;
  padding: .35rem .75rem;
  outline: none;
  font-family: var(--font-body);
  cursor: pointer;
}

/* ── CARTE RÉSULTAT ── */
.result-card {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-bottom: .75rem;
  transition: all .2s;
  text-decoration: none;
}
.result-card:hover {
  border-color: rgba(232,0,28,.3);
  transform: translateX(3px);
  box-shadow: -3px 0 0 var(--primary), 0 4px 20px rgba(0,0,0,.2);
}
.result-thumb {
  width: 110px;
  height: 75px;
  border-radius: var(--radius-md);
  object-fit: cover;
  flex-shrink: 0;
  background: var(--bg-body);
}
.result-body { flex: 1; min-width: 0; }
.result-cat {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  font-size: .68rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: .3rem;
}
.result-title {
  font-family: var(--font-display);
  font-size: .98rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
  margin-bottom: .35rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.result-title mark {
  background: rgba(232,0,28,.18);
  color: var(--primary);
  border-radius: 3px;
  padding: 0 2px;
}
.result-excerpt {
  font-size: .8rem;
  color: var(--text-muted);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: .4rem;
}
.result-meta {
  display: flex;
  align-items: center;
  gap: .85rem;
  font-size: .72rem;
  color: var(--text-muted);
}
.result-meta i { color: var(--primary); font-size: .65rem; }

/* ── EMPTY / LOADING ── */
.search-empty {
  text-align: center;
  padding: 3rem 1rem;
}
.search-empty-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: .35;
}
.search-empty-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: .5rem;
}
.search-empty-text { font-size: .85rem; color: var(--text-muted); }

.search-loading {
  text-align: center;
  padding: 2.5rem;
  display: none;
}
.search-spinner {
  width: 36px; height: 36px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin .7s linear infinite;
  margin: 0 auto .75rem;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── PAGINATION ── */
.search-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  margin-top: 2rem;
}
.spg {
  width: 36px; height: 36px;
  border-radius: var(--radius-md);
  display: flex; align-items: center; justify-content: center;
  font-size: .82rem; font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-card);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all .15s;
}
.spg:hover { border-color: var(--primary); color: var(--primary); }
.spg.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.spg.disabled { opacity: .35; pointer-events: none; }

/* ── TAGS POPULAIRES ── */
.popular-tags { display: flex; flex-wrap: wrap; gap: .4rem; }
.pop-tag {
  padding: .3rem .75rem;
  border-radius: 50px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  font-size: .76rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: all .15s;
  cursor: pointer;
}
.pop-tag:hover { border-color: var(--primary); color: var(--primary); background: rgba(232,0,28,.05); }

@media(max-width:576px) {
  .result-thumb { width: 80px; height: 58px; }
  .result-title { font-size: .88rem; }
}

/* ===== commentaires ===== */

        /* ── COMMENTAIRES ── */
        .comments-section { border-top: 1px solid var(--border); padding-top: 2rem; }
        .comm-sort-btn {
          background: transparent; border: 1px solid var(--border); color: var(--text-muted);
          padding: .35rem .85rem; border-radius: var(--radius-md); font-size: .75rem;
          font-weight: 600; cursor: pointer; transition: all .2s; font-family: var(--font-body);
        }
        .comm-sort-btn:hover, .comm-sort-btn.active {
          background: var(--primary); border-color: var(--primary); color: #fff;
        }
        .comm-form-box {
          background: var(--bg-card); border: 1px solid var(--border);
          border-radius: var(--radius-lg); padding: 1.25rem; margin-bottom: 2rem;
        }
        .comm-input {
          width: 100%; background: var(--bg-body); border: 1px solid var(--border);
          border-radius: var(--radius-md); color: var(--text-primary);
          font-family: var(--font-body); font-size: .85rem; padding: .65rem .9rem;
          outline: none; transition: border-color .2s;
        }
        .comm-input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(232,0,28,.1); }
        .comm-input::placeholder { color: var(--text-muted); }
        .btn-comm-submit {
          background: var(--primary); color: #fff; border: none; border-radius: var(--radius-md);
          padding: .6rem 1.25rem; font-size: .83rem; font-weight: 700; cursor: pointer;
          font-family: var(--font-display); letter-spacing: .02em; transition: all .2s;
          display: inline-flex; align-items: center; gap: .4rem;
        }
        .btn-comm-submit:hover { background: var(--primary-light, #FF1A35); transform: translateY(-1px); box-shadow: 0 4px 16px rgba(232,0,28,.35); }
        .comm-avatar {
          width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center;
          justify-content: center; font-weight: 800; font-size: .85rem; color: #fff; flex-shrink: 0;
        }
        .comm-card {
          background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg);
          padding: 1.1rem 1.25rem; margin-bottom: 1rem; transition: border-color .2s;
        }
        .comm-card:hover { border-color: rgba(232,0,28,.2); }
        .comm-card.highlighted { border-color: var(--primary); background: rgba(232,0,28,.04); }
        .comm-header { display: flex; align-items: flex-start; gap: .75rem; margin-bottom: .6rem; }
        .comm-meta { flex: 1; }
        .comm-name { font-weight: 700; color: var(--text-primary); font-size: .88rem; }
        .comm-time { font-size: .72rem; color: var(--text-muted); margin-top: .1rem; }
        .comm-text { font-size: .88rem; color: var(--text-secondary); line-height: 1.65; margin-bottom: .75rem; }
        .comm-actions { display: flex; align-items: center; gap: 1rem; }
        .comm-btn {
          background: none; border: none; color: var(--text-muted); font-size: .75rem;
          font-family: var(--font-body); cursor: pointer; display: flex; align-items: center;
          gap: .3rem; padding: .25rem .5rem; border-radius: var(--radius-sm); transition: all .2s;
        }
        .comm-btn:hover { background: var(--bg-card-2, #161f2e); color: var(--text-primary); }
        .comm-btn.liked { color: var(--primary); }
        .comm-btn.liked i { color: var(--primary); }
        .comm-badge { font-size: .62rem; font-weight: 700; padding: .1rem .45rem; border-radius: 10px; text-transform: uppercase; letter-spacing: .06em; }
        .comm-badge.redac { background: rgba(232,0,28,.12); color: var(--primary); border: 1px solid rgba(232,0,28,.25); }
        /* Replies */
        .replies-list { margin-top: .75rem; padding-left: 1.5rem; border-left: 2px solid var(--border); }
        .reply-card { background: var(--bg-body); border-radius: var(--radius-md); padding: .85rem 1rem; margin-bottom: .6rem; }
        .reply-form { margin-top: .75rem; padding-left: 1.5rem; display: none; }
        .reply-form.open { display: block; }
        .reply-form textarea { width: 100%; background: var(--bg-body); border: 1px solid var(--border); border-radius: var(--radius-md); color: var(--text-primary); font-family: var(--font-body); font-size: .83rem; padding: .6rem .85rem; outline: none; resize: vertical; min-height: 70px; }
        .reply-form textarea:focus { border-color: var(--primary); }
        