@import url("https://fonts.googleapis.com/css2?family=Cairo:wght@200;300;400;500;600;700;800;900;1000&family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap");

.d-flex {
    display: flex;
}

.row {
    flex-direction: row;
}

.flex-fill {
    flex: 1 1 auto;
    width: 100%;
}

.justify-content-center {
    justify-content: center;
}

.justify-content-start {
    justify-content: flex-start;
}

.justify-content-end {
    justify-content: flex-end;
}

.align-items-center {
    align-items: center;
}

.align-items-start {
    align-items: flex-start;
}

.align-items-end {
    align-items: flex-end;
}

@property --angle {
    syntax: "<angle>";
    inherits: false;
    initial-value: 0turn;
}
@keyframes conic-rotate {
    to {
        --angle: 1turn;
    }
}
.table-container {
    position: relative;
    display: flex;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    border-radius: 1rem;
    flex-direction: column;
}
.table-container::before {
    position: absolute;
    display: flex;
    content: "";
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    filter: blur(0.5rem);
    transform: translatez(-2px);
    z-index: -2;
    opacity: 0.99;
    animation: conic-rotate 12s infinite linear;
}
.table-container::after {
    position: absolute;
    display: flex;
    content: "";
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    transform: translatez(-1px);
    z-index: -1;
    border-radius: inherit;
}

.table {
    position: relative;
    display: flex;
    width: 100%;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    /* box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1); */
}
.table .table-row {
    position: relative;
    display: flex;
    flex-direction: row;
    gap: inherit;
    width: 100%;
    height: 70px;
    padding: 0 2rem;
    transition: opacity 0.5s;
    margin-bottom: 1px;
    border-bottom: 1px solid rgba(91, 91, 91, 0.39);
}
.table .table-row:nth-child(2n) {
    background-color: rgba(0, 0, 0, 0.1);
}
.table .table-col {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: inherit;
    flex: 1 1 0;
    height: 60px;
    justify-content: center;
    align-items: center;
    color: #fa6d00;
    text-shadow: 0 0 0.5rem rgba(190, 96, 18, 0.671);
    font-size: calc(0.390625vw + 10px);
    padding: 0 1rem;
    cursor: url('/assets/images/common/cursor-hover.png'), auto;
    white-space: nowrap;
    margin: auto;
}
.table .table-col-first {
    flex: 0 1 0;
    width: 1px;
}
.table .table-col span {
    position: relative;
    display: flex;
    cursor: url('/assets/images/common/cursor-hover.png'), auto;
}
.table .table-col span::before, .table .table-col span::after {
    position: absolute;
    display: flex;
    content: "";
    height: 100%;
    width: 0.3rem;
    border-top: 2px solid #fa6d00;
    border-bottom: 2px solid #fa6d00;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s, transform 0.3s;
}
.table .table-col span::before {
    border-left: 2px solid #fa6d00;
    left: 0;
    top: 50%;
    transform: translate(-0.5rem, -50%) scale(0.6) rotate(20deg);
}
.table .table-col span::after {
    border-right: 2px solid #fa6d00;
    right: 0;
    top: 50%;
    transform: translate(0.5rem, -50%) scale(0.6) rotate(20deg);
}
.table .table-col span:hover::before {
    opacity: 1;
    transform: translate(-1rem, -50%) scale(0.8) rotate(0deg);
}
.table .table-col span:hover::after {
    opacity: 1;
    transform: translate(1rem, -50%) scale(0.8) rotate(0deg);
}
.table .table-heading .table-col {
    color: #fa6d00 !important;
    text-shadow: 0 0 0.5rem rgba(231, 150, 95, 0.829);
    font-weight: 600;
    text-transform: uppercase;
}

.pagination-container {
    position: relative;
    display: flex;
    flex: 1 1 auto;
    width: 100%;
    justify-content: flex-end;
    align-items: center;
    padding-bottom: 1.5rem;
    padding-top: 1rem;
    flex-direction: column;
}

.pagination-wrapper {
    position: relative;
    display: flex;
    height: fit-content;
    overflow: hidden;
    justify-content: flex-start;
    width: 20rem;
}

.pagination {
    position: relative;
    display: flex;
    flex-direction: row;
    list-style-type: none;
    margin: 0;
    padding: 0;
    align-items: center;
    justify-content: flex-start;
    transition: transform 0.5s;
}
.pagination > li {
    position: relative;
    display: flex;
    width: 4rem;
    max-width: 4rem;
    flex: 0 0 auto;
    height: 3rem;
    justify-content: center;
    align-items: center;
    color: #fa6d00;
    font-size: calc(0.390625vw + 18px);
    z-index: 5;
    cursor: url('/assets/images/common/cursor-hover.png'), auto;
    user-select: none;
    text-shadow: 0 0 0.4rem rgba(223, 137, 39, 0.6);
}
.pagination > li span {
    pointer-events: none;
}
.pagination > li.active span {
    position: relative;
    display: flex;
    height: 2.5rem;
    padding: 0 1rem;
    font-weight: bolder;
    align-items: center;
    justify-content: center;
    background-image: linear-gradient(45deg, rgba(221, 121, 39, 0.1), rgba(27, 11, 0, 0.4));
    border: 1px solid rgba(211, 92, 13, 0.3);
    color: #b2ffe5;
    border-radius: 5px;
    text-shadow: 0 0 0.4rem rgba(228, 115, 10, 0.6);
}

.pagination-info {
    position: absolute;
    display: flex;
    font-size: calc(0.390625vw + 10px);
    color: #fa6d00;
    bottom: 4.5rem;
    text-shadow: 0 0 0.5rem rgba(206, 173, 143, 0.5);
}

.pagination-extreme {
    position: relative;
    display: flex;
    height: 3rem;
    width: 10rem;
    border: none;
    background-color: transparent;
    border-radius: 5px;
    justify-content: center;
    align-items: center;
    color: #fa6d00;
    font-size: calc(0.390625vw + 15px);
    cursor: url('/assets/images/common/cursor-hover.png'), auto;
    transition: transform 0.3s;
}
.pagination-extreme:hover {
    transform: scale(1.4);
}

.infos {
    position: absolute;
    display: flex;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    font-family: "Cairo", sans-serif;
    margin: 0;
    padding: 0;
    width: 100%;
    justify-content: center;
    align-items: center;
    height: 6rem;
    font-size: calc(0.390625vw + 10px);
    line-height: 24px;
    font-weight: 600;
    background-color: #fa6d00;
    background-image: linear-gradient(45deg, royalblue, #fa6d00, #fa6d00);
    -webkit-background-image: linear-gradient(45deg, #fa6d00, royalblue, #fa6d00);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    text-shadow: 0 0 0.4rem rgba(127, 255, 212, 0.4);
}

.table .table-col img.rank-image {
    height: 50px; 
    border-radius: 30px; 
    border: 2px solid #fa6d00; 
    padding: 0;
}

/* Règles média pour les écrans de petite taille (par exemple, moins de 768px) */
@media screen and (max-width: 768px) {
    /* Ajustements pour .table-container et éléments connexes */
    .table-container {
        border-radius: 0.5rem; /* Rayon de bordure plus petit pour les petits écrans */
    }

    /* Ajustements pour les rangées et colonnes de la table */
    .table .table-row {
        width: 100%; /* Largeur complète pour une meilleure visibilité */
        padding: 0.5rem; /* Espacement réduit */
        align-items: center;
    }

    .table .table-col {
        height: 50px; /* Hauteur ajustée pour les colonnes */
        font-size: 11px; /* Taille de police réduite pour s'adapter aux petits écrans */
        max-width: 150px; /* Exemple de largeur maximale */
        overflow: hidden; /* Empêcher le débordement de contenu */
        text-overflow: ellipsis; /* Ajouter des ellipses pour le texte débordant */
        white-space: nowrap;
    }

    .table .table-col-first {
        flex: 0 0 20px; /* Réduction significative de la largeur */
        padding: 0; /* Réduire ou éliminer le padding si nécessaire */
    }

    .table .table-col img.rank-image {
        /* Styles spécifiques pour les images de rang, si nécessaire */
        height: auto; /* Ajustez selon vos besoins */
        width: 100%; /* Ajustez selon vos besoins */
        max-width: 50px; /* Exemple de largeur maximale pour les images */
    }

    /* Ajustements pour la pagination */
    .pagination-wrapper {
        width: 220px; /* Largeur complète pour la pagination */
    }

    .pagination > li {
        width: 3rem; /* Réduire la largeur pour les petits écrans */
        max-width: 3rem;
        height: 2.5rem;
        font-size: 14px; /* Taille de police ajustée pour les petits écrans */
    }

    .pagination-info {
        font-size: 11px; /* Taille de police plus petite pour les infos de pagination */
        bottom: 3rem; /* Ajuster la position */
    }

    .pagination-extreme {
        width: 8rem; /* Réduire la largeur des boutons extrêmes */
    }

    .infos {
        font-size: 14px; /* Taille de police ajustée pour les informations */
        height: 5rem; /* Hauteur ajustée */
    }
}
