/* 🔥 Ajustement général */
body {
    font-size: 16px;
    padding-bottom: 80px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px;
}

.table-responsive {
    overflow-x: auto;
}

.footer {
    text-align: center;
    padding: 10px;
    background-color: #222;
    color: white;
    position: fixed;
    bottom: 0;
    width: 100%;
    font-size: 14px;
}

.search-container {
    position: relative;
    width: 100%;
    max-width: 300px;
}

#search-results {
    position: absolute;
    width: 100%;
    background: white;
    border: 1px solid #ddd;
    list-style: none;
    padding: 0;
    margin: 0;
    display: none;
    z-index: 1000;
}


.match-photo {
    margin-top: 10px;
    text-align: center;
}
.match-photo img {
    max-width: 100%;
    max-height: 200px;
    object-fit: contain;
    border-radius: 4px;
    border: 1px solid #ccc;
}

#search-results li {
    padding: 10px;
    cursor: pointer;
}

#search-results li:hover {
    background: #f0f0f0;
}

.logo-img {
    height: 50px;
    width: auto;
}

.page-title {
    text-align: center;
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 20px;
    color: #649d46;
}

.navbar {
    background-color: #802518 !important;
}

.feed-container {
    max-height: 600px;  /* 🔥 Hauteur max du fil */
    overflow-y: auto;  /* 🔥 Scroll vertical */
    padding-right: 10px;
}


.home-container {
    text-align: center;
    padding: 40px;
}

.features {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.feature {
    background: #ffe4c4;
    padding: 15px;
    border-radius: 8px;
    width: 250px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
}

.feature h3 {
    color: #802518;
}

.home-container {
    text-align: center;
    padding: 40px;
}

.description {
    font-size: 18px;
    max-width: 800px;
    margin: 0 auto;
    padding: 15px;
    line-height: 1.5;
}

.highlight {
    color: #e63946;
    font-weight: bold;
}

.ranking-highlight {
    background-color: #fff8b3; /* 🔥 Jaune pâle pour attirer l’attention */
    font-weight: bold;
    color: #e63946 !important; /* Texte noir lisible */
}

.division-desc {
    font-size: 16px;
    margin-bottom: 15px;
}

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

.division {
    background: #f8f8f8;
    padding: 15px;
    border-radius: 8px;
    width: 180px;
    text-align: center;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
}

.division img {
    width: 80px;
    height: auto;
}

.division h3 {
    margin-top: 10px;
    font-size: 20px;
}

.division p {
    font-size: 14px;
    font-weight: bold;
}

/* 🔥 Couleurs des divisions */
.caca { border: 3px solid #6e461e; }
.bronze { border: 3px solid #cd7f32; }
.silver { border: 3px solid #c0c0c0; }
.gold { border: 3px solid #ffd700; }
.platinum { border: 3px solid #00aaff; }
.diamond { border: 3px solid #4b0082; }
.legend { border: 3px solid #ff4500; }

@media (max-width: 768px) {
    h2 {
        font-size: 20px;
        text-align: center;
    }

    p {
        font-size: 14px;
        text-align: center;
    }

    th, td {
        font-size: 12px;
        padding: 5px;
    }

    .navbar-brand {
        font-size: 18px;
    }

    .nav-link {
        font-size: 14px;
    }

    .table {
        display: block;
        width: 100%;
        overflow-x: auto;
    }

    .btn {
        width: 100%;
        margin-top: 10px;
    }

    .footer {
        font-size: 12px;
        padding: 8px;
    }

    #search-container {
        width: 100%;
        display: flex;
        flex-direction: column; /* 🔥 Aligner verticalement */
        align-items: center; /* 🔥 Centrer horizontalement */
        justify-content: center;
        margin-top: 10px;
    }

    #search-player {
        width: 90%; /* 🔥 Occuper presque toute la largeur */
        text-align: center;
    }

    #search-container button {
        width: 50%; /* 🔥 Rendre le bouton plus grand et centré */
        margin-top: 5px;
    }
}

@media (min-width: 1024px) {
    .container {
        max-width: 1200px;
    }

    .page-title {
        font-size: 42px;
    }

    .btn {
        width: auto;
    }

    .table {
        width: 100%;
    }
}

#search-container {
    display: flex;
    align-items: center;
    margin-left: auto;
    gap: 8px;
}

#search-player {
    width: 200px;
}

#search-container button {
    padding: 5px 10px;
    background-color: #12a04d !important;
    border-color: #12a04d !important;
    color: white !important;
}

#search-container button:hover {
    background-color: #0a6d36 !important;
    border-color: #0a6d36 !important;
}


@media (max-width: 768px) {
    .mobile-divisions {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .mobile-divisions .division {
        width: 90%;
        text-align: center;
        margin-bottom: 15px;
    }

    .connect-btn {
        display: block;
        text-align: center;
        width: 80%;
        margin: 0 auto;
    }
}

/* 🔔 Icône de notification */
.notification-icon {
    position: relative;
    color: white;
    font-size: 24px;
    margin-left: 15px;
    text-decoration: none;
}

.notification-icon i {
    transition: transform 0.3s ease;
}

.notification-icon:hover i {
    transform: scale(1.2);
}

/* 🔴 Pastille rouge pour indiquer une nouvelle notification */
.badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: red;
    color: white;
    font-size: 12px;
    font-weight: bold;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.match-photo {
    margin-top: 10px;
    text-align: center;
}
.match-photo img {
    max-width: 100%;
    max-height: 200px;
    object-fit: contain;
    border-radius: 4px;
    border: 1px solid #ccc;
}
