/* 🔷 Style global */
body {
    font-family: 'Arial', sans-serif;
    background-color: #1e1e2f;
    color: #fff;
    margin: 0;
    padding: 20px;
    text-align: center;
}

.home-button {
    position: absolute;
    top: 15px;
    left: 15px;
    font-size: 22px;
    font-family: 'Poppins', sans-serif;
    font-weight: bold;
    color: white;
    text-decoration: none;
    text-transform: uppercase;
    z-index: 1000;
    overflow: hidden;
    display: inline-block;
    background: none;
    border: none;
    padding: 10px 0;
    cursor: pointer;
}

.home-button::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 200%;
    height: 36px;
    background: url("data:image/svg+xml,%3Csvg width='400' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 20 Q 50 50 100 20 T 200 20 T 300 20 T 400 20 V60 H0 Z' fill='rgba(63,89,149,0.6)' stroke='rgba(0,0,0,0.4)' stroke-width='2'/%3E%3C/svg%3E");
    background-repeat: repeat-x;
    background-size: cover;
    animation: waveMotion 4s linear infinite;
    z-index: -1;
    transition: transform 0.4s ease;
}

.home-button:hover::after {
    transform: translateY(-10px);
    opacity: 1;
}

@keyframes waveMotion {
    0% {
        background-position-x: 0%;
    }

    100% {
        background-position-x: -200px;
    }
}


/* 🏆 Titre */
h1 {
    font-size: 28px;
    margin-bottom: 15px;
}



/* 🔍 Barre de recherche */
#searchBar {
    width: 30%;
    min-width: 250px;
    /* pour éviter qu'elle soit trop petite sur mobile */
    padding: 10px;
    font-size: 18px;
    border: 2px solid #9e9b9b;
    border-radius: 5px;
    outline: none;
    background-color: #f0f0f3;
    color: rgb(12, 12, 12);
    text-align: center;
    margin-bottom: 20px;
    /* ➕ centre le placeholder */
}

#searchBar::placeholder {
    color: #bbb;
    text-align: center;
}


/* 📊 Table des records */
.stats-table {
    width: 80%;
    margin: 0 auto;
    border-collapse: collapse;
    background-color: #2d2d44;
    border-radius: 10px;
    overflow: hidden;
}


/* 🏅 En-tête du tableau */
.stats-table thead {
    background-color: #3c3c42;
    color: white;
}

.stats-table th {
    padding: 15px;
    font-size: 16px;
}

/* 📄 Lignes du tableau */
.stats-table td {
    padding: 12px;
    font-size: 16px;
    text-align: center;
    border-bottom: 1px solid #444;
}

/* 🔥 Alternance des couleurs pour les lignes */
.stats-table tbody tr:nth-child(even) {
    background-color: #26263d;
}

/* 🖱 Effet au survol */
.stats-table tbody tr:hover {
    background-color: #39395a;
    cursor: pointer;
}

/* 🎖 Position */
.stats-table td:first-child {
    font-weight: bold;
    color: #ffcc00;
}

/* ⏱ Temps */
.stats-table td:last-child {
    font-weight: bold;
    color: #ffcc00;
}

/* 🖥 Responsive */
@media (max-width: 768px) {

    a.home-button {
        display: none;
    }


    #searchBar {
        width: 90%;
    }

    .stats-table {
        width: 100%;
        font-size: 12px;
    }

    .stats-table th,
    .stats-table td {
        padding: 8px;
    }
}