
#bracket { background: transparent; }

/* Conteneur principal */
.container {
  max-width: 1400px;
  margin: 0 auto;
}

/* === BRACKET PRINCIPAL (une seule ligne horizontale) === */
.main-bracket {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  flex-wrap: nowrap;
  margin-bottom: 80px;
}

#bracket .container {
  width:auto;
}

.round {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 260px;
}

.round-title {
  text-align: center;
  font-weight: bold;
  text-transform: uppercase;
  color: #99bdd1;
  font-size: 15px;
  font-family: "teko","roboto";
  margin-bottom: 20px;
}
.subtitle { font-size: 12px; color: rgb(158, 157, 157); display: block; margin-top: 4px; }

.matchup {
  position: relative;
  background: rgba(255, 255, 255, 0.829);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  margin: 12px 0;
  height: 76px;
  transition: all 0.3s;
}

/* Quand le match est terminé */
.matchup.finished {
  border-left: 6px solid #27ae60;
}
.unstarted {
  opacity:0.6;
}
.matchup:hover { transform: translateY(-4px); box-shadow: 0 8px 25px rgba(0,0,0,0.15); }

.team {
  padding: 0 18px;
  height: 38px;
  line-height: 38px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-weight: 600;
  font-size: 15px;
}
.team-top { background: #f8f9fa; border-bottom: 1px solid #eee; }
.team-bottom { background: white; }

.winner-trophy { 
margin-left:30%;
max-width:100px;}

/* Bouton VS */
.vs {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: #2c7399;
  color: white;
  font-weight: bold;
  font-size: 12px;
  padding: 6px 6px;
  border-radius: 8px;
  text-decoration: none;
  text-transform: uppercase;
  box-shadow: 0 3px 10px rgba(44,115,153,0.4);
  transition: all 0.25s;
}
.vs:hover {
  background: #2b6b8d;
  transform: translateY(-50%) scale(1.08);
}



/* === PARTIE BAS : Petite finale + 5-8 === */
.lower-bracket {
  display: flex;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.lower-bracket .round {
  min-width: 240px;
}

/* Quand le match est terminé */
.matchup.finished {
  border-left: 6px solid #e7cc3d;
}

/* Vainqueur */
.team.winner {
  background: #f5f2d5 !important;
  font-weight: 800;
  color: #3c3f44;
}

/* Perdant */
.team.loser {
  background: #f8f9fa !important;
  color: #95a5a6;
  text-decoration: line-through;
  font-weight: normal;
}


/* Colonne finale (finale + petite finale) */


.small-final {
  margin-top: 50px;
}
.small-final .round-title { font-size: 14px; }
.vs.bronze { background: #e67e22; }
.vs.bronze:hover { background: #d35400; }


/* Responsive */
@media (max-width: 1100px) {
  .main-bracket { gap: 20px; }
  .main-bracket .round { min-width: 220px; }
  .matchup { height: 68px; }
  .team { height: 34px; line-height: 34px; font-size: 14px; }
}

@media (max-width: 900px) {
  .main-bracket {
    flex-direction: column;
    align-items: center;
  }
  .main-bracket .round {
    width: 320px;
  }
  .lower-bracket  {
    flex-direction: column;
    align-items: center;
  }
  .lower-bracket .round {
    width: 320px;
  }
 
}
/* Quarts (8 matchs) */
.round.quarter .matchup {
  margin: 10px 0;
}

/* Demis (4 matchs) */
.round.semi {
  padding-top: 45px;
}
.round.semi .matchup {
  margin: 50px 0;
}

/* Finale (1 match) */
.round.final {
  padding-top: 140px;
}
.round.final .matchup {
  margin: 0;
}

/*GROUP STAGE*/

/* === GROUP STAGE === */
.group-stage {
  max-width: 1100px;
  margin: 60px auto;
}

/* Titre cliquable */
.group-stage details summary {
  list-style: none;
  cursor: pointer;
}

.group-stage-title {
  font-size: 28px;
  font-family: "teko","roboto";
  font-weight: 500;
  text-align: center;
  padding: 20px 30px;
  border-radius: 16px;
  color: white;

  /* Effet vitre / verre */
  background: linear-gradient(
    135deg,
    rgba(255,255,255,0.35),
    rgba(255,255,255,0.05)
  );
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);

  border: 1px solid rgba(255,255,255,0.25);
  box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

/* Supprime le triangle natif du summary */
.group-stage details summary::-webkit-details-marker {
  display: none;
}

/* Grid des groupes : 2 colonnes */
.groups-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  margin-top: 35px;
}

/* Style des tableaux */
table.bk {
  width: 100%;
  border-collapse: collapse;
  background: rgba(255, 255, 255, 0.123);
  backdrop-filter: blur(6px);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

table.bk thead th {
  background: rgba(255, 255, 255, 0.151);
  font-weight: 700;
}

table.bk th,
table.bk td {
  text-align: center;
  padding: 10px 6px;
  font-size: 14px;
  border-bottom: 1px solid rgba(0,0,0,0.05);
}

table.bk tbody tr:last-child td {
  border-bottom: none;
}

/* Responsive mobile */
@media (max-width: 800px) {
  .groups-grid {
    grid-template-columns: 1fr;
  }
}
/* Icône + / - devant "Group stage" */
.group-stage summary {
  position: relative;
  padding-left: 50px;
}

/* Le + */
.group-stage summary::before {
  content: "+";
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 28px;
  font-weight: bold;
  color: rgba(255,255,255,0.9);
  transition: transform 0.3s ease, content 0.2s ease;
}

/* Quand c’est ouvert → devient - */
.group-stage details[open] summary::before {
  content: "–";
  transform: translateY(-50%) rotate(180deg);
}
