/* =========================
   Base
   ========================= */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0.75rem;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
               Roboto, Helvetica, Arial, sans-serif;
  background: #f5f5f5;
  color: #222;
}

h1 {
  text-align: center;
  margin: 0.5rem 0 1rem 0;
  font-size: 1.6rem;
}


h2.indicatif {
  opacity: 0.6;
  font-style: italic;
}
h2 {
  margin: 0.75rem 0 0.5rem 0;
  font-size: 1.2rem;
}

h3 {
  margin: 1rem 0 0.5rem 0;
  font-size: 1rem;
  color: #444;
}

/* =========================
   Onglets
   ========================= */

.tabs {
  display: flex;
  gap: 0.25rem;
  margin-bottom: 0.75rem;
}

.tab {
  flex: 1;
  padding: 0.5rem;
  background: #e0e0e0;
  border: none;
  border-radius: 6px 6px 0 0;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
}

.tab.active {
  background: #1e88e5;
  color: #fff;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* =========================
   Cartes Match
   ========================= */

.match {
  background: #ffffff;
  border-radius: 10px;
  padding: 0.75rem;
  margin-bottom: 0.6rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}


.match.indicatif {
  opacity: 0.6;
  font-style: italic;
}

.equipes {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.equipe {
  width: 40%;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.2;
}

.date {
  text-align: center;
  font-size: 1.1rem;
  font-weight: 700;
}
.score {
  width: 20%;
  text-align: center;
  font-size: 1.1rem;
  font-weight: 700;
}

.infos {
  margin-top: 0.3rem;
  font-size: 0.8rem;
  color: #666;
  text-align: center;
}

/* =========================
   Classement
   ========================= */

.classement {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0.25rem;
  background: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.classement th {
  background: #eeeeee;
  font-size: 0.75rem;
  padding: 0.4rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.classement td {
  padding: 0.45rem;
  font-size: 0.85rem;
  text-align: center;
  border-top: 1px solid #e0e0e0;
}

.classement td.equipe-nom {
  text-align: left;
  font-weight: 600;
}

.classement tr.highlight {
  background: #e3f2fd;
  font-weight: 700;
}

/* =========================
   Accueil (boutons équipes)
   ========================= */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.75rem;
}

.btn {
  display: block;
  padding: 0.9rem;
  background: #1e88e5;
  color: #ffffff;
  text-align: center;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}

.btn:hover {
  background: #1669b2;
}

/* =========================
   Responsive (écrans larges)
   ========================= */

@media (min-width: 768px) {

  body {
    max-width: 900px;
    margin: auto;
    padding: 1rem;
  }

  h1 {
    font-size: 2rem;
  }

  .equipe {
    font-size: 1rem;
  }

  .score {
    font-size: 1.3rem;
  }

  .tab {
    font-size: 1rem;
  }

  .classement th,
  .classement td {
    font-size: 0.9rem;
  }
}
