/* =======================================================
   Split 1 • Major • Étape 3  —  PUBLIC (adapté à Étape 2)
   ======================================================= */

/* ---------- Base ---------- */
:root {
  --bg-0: #111;
  --bg-1: #1a1a1a;
  --bg-2: #1f1f1f;
  --bg-3: #232323;
  --line-1: #2f2f2f;
  --line-2: #3a3a3a;
  --text: #e7e7e7;
  --muted: #bdbdbd;
  --muted-2: #8f8f8f;
  --accent: #66afe9;
  --accent-2: #61dafb;
  --ok: #66afe9;
  --warn: #ffd86b;

  --radius: 6px;
}

* { box-sizing: border-box; }
html, body {
  background: var(--bg-0);
  color: var(--text);
}

/* ---------- Sous-onglets Étape 3 ---------- */
.subsub-tabs {
  display: flex;
  flex-wrap: wrap;
  border-bottom: 1px solid #333;
  margin-bottom: 12px;
  gap: 4px;
}
.subsub-tab-button {
  background: #2a2a2a;
  color: #ccc;
  border: none;
  padding: 8px 14px;
  cursor: pointer;
  font-size: 0.9rem;
  border-radius: 4px 4px 0 0;
  text-decoration: none;
}
.subsub-tab-button.active {
  background: #1e1e1e;
  color: var(--accent);
  border-bottom: 2px solid var(--accent);
}

/* ---------- Bloc calendrier ---------- */
.calendrier-block { margin-top: 30px; }
.calendrier-block h4 {
  margin: 0 0 14px;
  font-size: 1.2rem;
  color: var(--accent-2);
  border-bottom: 1px solid #444;
  padding-bottom: 6px;
}

/* Section */
.schedule-section {
  background: #242424;
  padding: 14px;
  border-radius: var(--radius);
  margin-bottom: 16px;
  border-left: 4px solid var(--accent);
}
.week-match-title {
  font-size: 1.05rem;
  margin-bottom: 8px;
  color: #ececec;
}

/* Grille de slots */
.schedule-section .slots {
  display: grid;
  gap: 10px;
}
.schedule-section[data-cols="1"] .slots { grid-template-columns: 1fr; }
.schedule-section[data-cols="2"] .slots { grid-template-columns: repeat(2, 1fr); }
.schedule-section[data-cols="3"] .slots { grid-template-columns: repeat(3, 1fr); }

/* ---------- Carte de match ---------- */
.slot {
  background: #1e1e1e;
  border: 1px solid #444;
  border-radius: var(--radius);
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 100px;
}
.match-line {
  display: flex;
  align-items: center;
  gap: 6px;
}
.logo-placeholder {
  width: 36px;
  height: 36px;
  background: #1f1f1f;
  border: 1px dashed #555;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  color: #999;
  border-radius: 4px;
  flex-shrink: 0;
}
.mini-match-logo {
  max-width: 30px;
  max-height: 30px;
  display: block;
  border-radius: 3px;
  border: 1px solid #444;
}
.team-name {
  flex: 1 1 auto;
  min-width: 80px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.9rem;
  color: #fff;
}
.score-badge {
  min-width: 40px;
  text-align: center;
  padding: 6px 8px;
  background: #1e1e1e;
  border: 1px solid #444;
  border-radius: 4px;
  color: #fff;
  font-size: .85rem;
  font-variant-numeric: tabular-nums;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .schedule-section .slots { grid-template-columns: 1fr; }
  .match-line { flex-direction: column; align-items: flex-start; }
  .score-badge { margin-left: 0; }
  .subsub-tabs { overflow-x: auto; }
}
