/* Reset et base */
body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', Arial, sans-serif;
    background-color: #030716; /* fond sombre */
    color: #fff;
}

.top-nav {
    padding: 18px 20px 0;
}

.home-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #111827;
    border: 1px solid #fbbf24;
    color: #fde68a;
    text-decoration: none;
    font-weight: 700;
    border-radius: 999px;
    padding: 10px 16px;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.home-link:hover {
    background: #1f2937;
    transform: translateY(-1px);
    box-shadow: 0 8px 22px rgba(251, 191, 36, 0.28);
}

h1 {
    text-align: center;
    margin-top: 40px;
    font-size: 2.5em;
    font-weight: 700;
}

.container {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 40px;
}

/* Boutons images */
.container button {
    background-color: #334155;
    border: 2px solid #334155;
    color: #c4d3e8;
    border-radius: 12px;
    cursor: pointer;
    padding: 10px;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.container button:hover {
    border-color: #4caf50;
    transform: scale(1.05);
}

.container button img {
    width: 180px;
    height: 180px;
    object-fit: cover;
    border-radius: 10px;
}

.container .name {
    margin-top: 8px;
    font-size: 1.2em;
    font-weight: 600;
}

/* Actions boutons */
.actions {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

button.secondary {
    border: 2px solid #334155;
    border-radius: 8px;
    padding: 12px 24px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
}

button.secondary:hover {
    background-color: #4caf50;
    border-color: #4caf50;
    color: #fff;
}

/* Input recherche (pour scoreboard futur) */
input[type="text"] {
    padding: 10px 15px;
    border-radius: 8px;
    border: 2px solid #4caf50;
    background-color: #1f1f1f;
    color: #fff;
    width: 300px;
    font-size: 16px;
    margin-bottom: 30px;
}

input[type="text"]::placeholder {
    color: #888;
}

/* Tableau scoreboard */
table {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto 50px;
    border-collapse: collapse;
}

th, td {
    padding: 12px 15px;
    text-align: center;
    border-radius: 8px;
}

th {
    background-color: #1f1f1f;
    font-weight: 600;
}

tr {
    background-color: #334155;
    color: #c4d3e8;
    margin-bottom: 8px;
}

tr:hover {
    background-color: #333;
}

.rank-1 {
    background-color: #ffd700; /* gold */
    color: #000;
    font-weight: 700;
}

.rank-2 {
    background-color: #c0c0c0; /* silver */
    color: #000;
    font-weight: 700;
}

.rank-3 {
    background-color: #cd7f32; /* bronze */
    color: #000;
    font-weight: 700;
}

/* Bouton retour */
.back {
    text-align: center;
    margin-bottom: 50px;
}

.back button {
    background-color: #334155;
    color: #c4d3e8;
    border-radius: 8px;
    padding: 12px 24px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.back button:hover {
    background-color: #4caf50;
    border-color: #4caf50;
    color: #fff;
}
