/* ============================================================
   Foot — Styles complémentaires (s'ajoute à maths/css/theme.css)
   ============================================================ */

/* ---------- Recherche ---------- */
#recherche { max-width: 480px; }

/* ---------- Pastilles de compétition ---------- */
.comp-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.pill {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.85rem;
  background: var(--c-surface);
  border: 1.5px solid var(--c-border);
  color: var(--c-text-soft);
  transition: border-color 0.12s, color 0.12s, background 0.12s;
}

.pill:hover {
  border-color: var(--c-primary);
  color: var(--c-primary);
  text-decoration: none;
}

.pill.active {
  background: var(--c-primary);
  border-color: var(--c-primary);
  color: #fff;
}

/* ---------- Cartes match (liste) ---------- */
.match-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.match-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px 20px;
  color: var(--c-text);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.match-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  text-decoration: none;
}

.match-time {
  font-size: 1.15rem;
  font-weight: 800;
  min-width: 56px;
  color: var(--c-primary);
  font-family: var(--font-mono);
}

.match-body { flex: 1; min-width: 0; }

.match-comp {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--c-text-soft);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}

.match-teams {
  font-size: 1.1rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.match-teams .vs { color: var(--c-text-soft); font-weight: 700; }

.match-diff {
  margin-top: 4px;
  font-size: 0.88rem;
  color: var(--c-text-soft);
}

.match-arrow {
  color: var(--c-primary);
  font-weight: 800;
  font-size: 1.2rem;
}

/* ---------- Badges d'importance ---------- */
.badge-top { background: #fef2f2; color: #b91c1c; border-color: #fecaca; }
.badge-imp { background: #fffbeb; color: #b45309; border-color: #fde68a; }

/* ---------- Page détail ---------- */
.match-detail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.match-comp-big { font-weight: 800; font-size: 1.05rem; }
.match-date { color: var(--c-text-soft); font-weight: 700; }

.match-detail-teams {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  margin: 20px 0;
}

.team-box {
  flex: 1;
  min-width: 150px;
  text-align: center;
  font-size: 1.3rem;
  font-weight: 800;
  background: var(--c-surface-2);
  border-radius: 12px;
  padding: 18px 12px;
}

.team-vs {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--c-text-soft);
}

.match-infos {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
}

.match-infos > div {
  display: flex;
  gap: 12px;
  border-bottom: 1px dashed var(--c-border);
  padding-bottom: 8px;
}

.match-infos dt {
  font-weight: 700;
  color: var(--c-text-soft);
  min-width: 110px;
}

.match-infos dd { margin: 0; font-weight: 600; }

@media (max-width: 639px) {
  .match-card { flex-wrap: wrap; }
  .match-arrow { display: none; }
}
