.tournoi-container {
    max-width: 700px; /* Augmenté pour mieux accueillir la bannière */
    margin: 50px auto;
    padding: 30px;
    background: #1e1e1e;
    color: #fff;
    border-radius: 10px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
    text-align: center;
}

/* 🖼 Bannière du tournoi */
.banner img {
    width: 50%;  /* Réduit la largeur à 50% de la boîte */
    height: auto; /* Ajuste automatiquement la hauteur */
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 20px;
}

/* 🏆 Titres */
.tournoi-container h1 {
    text-align: center;
    font-size: 26px;
    color: #ffcc00;
    margin-bottom: 10px;
}

.tournoi-container p {
    font-size: 18px;
    margin: 10px 0;
}

/* 📜 Liste des équipes */
.teams-list {
    list-style: none;
    padding: 0;
}

.teams-list li {
    background: #333;
    padding: 12px;
    margin: 6px 0;
    border-radius: 5px;
}


/* ⚔️ Style des boutons d'inscription */
.tournament-actions {
    text-align: center;
    margin-top: 20px;
}

.btn-register, .btn-unregister {
    display: inline-block;
    padding: 12px 18px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    border: none;
    transition: 0.3s;
}

.btn-register {
    background: #28a745;
    color: white;
}

.btn-register:hover {
    background: #218838;
}

.btn-unregister {
    background: #dc3545;
    color: white;
}

.btn-unregister:hover {
    background: #c82333;
}

/* ⚠️ Message d'alerte si pas d'équipe */
.no-team-warning {
    text-align: center;
    font-size: 14px;
    color: #ffcc00;
    font-weight: bold;
}

/* 📜 Bouton Règles */
.btn-rules {
    display: inline-block;
    padding: 12px 18px;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    color: white;
    background: #007BFF; /* Bleu */
    border-radius: 5px;
    transition: background 0.3s ease-in-out;
    cursor: pointer;
    border: none;
    margin-left: 10px; /* Espacement entre les boutons */
}

.btn-rules:hover {
    background: #0056b3; /* Bleu plus foncé au survol */
}

/* Désactiver le bouton si besoin */
.btn-rules:disabled {
    background: #6c757d; /* Gris */
    cursor: not-allowed;
    opacity: 0.7;
}

