* {
    list-style: none;
    text-decoration: none;
}

body{

    background-image: url("../Images/Image_Home.jpg");
    background-position: center;
    background-attachment: fixed; 
    background-repeat: no-repeat;
    background-size: cover;
    font-family: 'Poppins';
}

footer {
    text-align: center;
    padding: 3px;
    background-color: #8c52ff;
    color: white;
    margin-top: 10px;
    height:max-content
  }

#logo{
    display: block;
    width: 20%;
    height: auto;
}

#logo_compte {
    width: 1.5em !important; /* Ajoute !important si nécessaire */
    height: auto !important;
        align-items: center;
}


#logo2{
    display: block;
    width: 100%;
    height: auto;
}

.menu{

    position: relative;
    display: flex;
    width: 100%;
    box-sizing: border-box;
    align-items: center;
    justify-content: space-between;
    box-sizing: border-box;
}

.menu .a {

    width: 20px;
}

.menu .nav_links ul{

    display: flex;
    font-size: 2em;

}

.menu .nav_links ul li{

    margin: 0 20px;

}

.menu .troisb{
    display: none;
    align-items: center;
    width: 35px;
    position: absolute;
    right: 50px;

}

a{
    color: white;
    
}

.nav_links.mobile-menu{

    margin-left: 0
}

@media screen and (max-width: 500px) {
  
  .menu #logo2 {
        margin: 25px;
    	width: 10vh
    }
}


@media screen and (max-width: 900px) {
  
  	 body {
        background-image: url("../Images/Image_Home_mobile.png");
        background-attachment: fixed;
    }

    .menu {
        padding: 0;
        margin: 0;
    }
  	.menu #logo2 {
        margin: 12px;
      	width: 10vh
    }

    .nav_links {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background-color: rgba(73, 73, 73, 0.9);
        backdrop-filter: blur(7px);
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
        z-index: 9999;
        margin-left: -110%;
        transition: all 0.5s ease;
    }


    .nav_links ul {
        display: flex;
        flex-direction: column;
      	align-items: center;
    }

    .menu .troisb {
        display: block;
        width: 35px;
        position: absolute;
        top: 15px;
        right: 15px;
        z-index: 10000;
        cursor: pointer;
    }

    .nav_links.mobile-menu {
        margin-left: 0;
    }

    .menu .nav_links ul li {
        margin: 20px 0;
    }
    
}

/* Header styles */
h1 {
    color: rgb(255, 255, 255);
    font-size: 200%;
    font-weight: bold;
    text-align: center;
}

/* Box styling */
#box {
    width: 75%;
    margin: 0 auto;
    background-color: rgb(83, 83, 83);
    border-radius: 10px;
    padding: 20px;
  	order:2;  
}

/* Box header */
.tete_box {
    width: 100%;
    background-color: #8c52ff;
    border-radius: 10px;
    text-align: center;
    font-size: 1.5em;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;

    margin: 0 auto;
  	height: 10vh
}


/* Pagination style */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.pagination button {
    padding: 10px;
    margin: 0 20px;
    cursor: pointer;
    background-color: #8c52ff;
    border-radius: 10%;
    color: white;
}

.pagination button:hover {
    background-color: #6a2e99;
}

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

#rankingTable {
    color: white;
    border-collapse: collapse;
    width: 100%;
    text-align: center;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    white-space: nowrap;
}

#rankingTable th,
#rankingTable td {
    padding: 10px;
    border-top: 2px solid white;
    vertical-align: middle;
}

#rankingTable img {
    width: 100px;
    height: auto;
    max-width: 100%;
}

.th1 {
    width: 5%;
    background-color: #8c52ff;
}

.th2 {
    width: 25%;
}

.th3 {
    width: 10%;
}

.th4 {
    width: 5%;
}

.th5 {
    width: 55%;
}

#td1 {
    background-color: #8c52ff;
}

#td5 {
    border-left: 2px solid white;
}

  
@media screen and (max-width: 900px) {
    /* ===== NAVBAR ===== */
    nav {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 10px 15px;
    }

    .logo {
        height: 35px;
    }

    .menu-toggle {
        font-size: 24px;
        background: none;
        border: none;
        color: white;
    }

    /* ===== EN-TÊTE ===== */
    .tete_box {
        font-size: 1.2em;
        padding: 10px 0;
        margin: 10px auto;
        width: 100%;
        text-align: center;
        word-wrap: break-word;
    }

    /* ===== CONTAINER GLOBAL ===== */
    #box {
        width: 90%;
        padding: 15px;
    }
}
  
@media screen and (max-width: 1800px) and (min-width: 900px)  {
    /* ===== NAVBAR ===== */
    nav {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 10px 15px;
    }

    .logo {
        height: 35px;
    }

    .menu-toggle {
        font-size: 24px;
        background: none;
        border: none;
        color: white;
    }

    /* ===== EN-TÊTE ===== */
    .tete_box {
        font-size: 1.2em;
        padding: 10px 0;
        margin: 10px auto;
        width: 100%;
        text-align: center;
        word-wrap: break-word;
    }

    /* ===== CONTAINER GLOBAL ===== */
    #box {
        width: 90%;
        padding: 15px;
    }

}

/* Conteneur principal de la page */
#page {
    display: flex !important;
    justify-content: space-between !important;
    align-items: flex-start !important;
    width: 100% !important;
    margin: 0 auto !important;
}

/* Pour les écrans plus petits que 1200px */
@media (max-width: 1200px) {
    #page {
        flex-direction: column; /* Empile les éléments en colonne sur petits écrans */
        align-items: center;
    }

    /* Cache les publicités à gauche et à droite sur petits écrans */
    #left-ad-container,
    #right-ad-container {
        display: none;
    }

    /* Affiche les publicités en haut et en bas sur petits écrans */
    #top-ad-container,
    #bottom-ad-container {
        display: block;  /* Assurez-vous que les publicités en haut et en bas sont visibles */
    }

    .ad-container {
        width: 75%;  /* Publicités occupent plus d'espace sur mobile */
        margin-bottom: 15px;
        height: 7vh;  /* Ajustez la hauteur des publicités */
    }
}

/* Pour les écrans plus larges que 1200px */
@media (min-width: 1200px) {
    /* Pour la disposition des publicités à gauche et à droite */
    #page {
        flex-direction: row;  /* Affiche les publicités à gauche et à droite */
        align-items: flex-start;
    }

    /* Affiche les publicités à gauche et à droite sur grands écrans */
    #left-ad-container,
    #right-ad-container {
        display: block;
        width: 10%;  /* Ajustez la largeur des publicités sur les côtés */
    }

    /* Cache les publicités en haut et en bas sur grands écrans */
    #top-ad-container,
    #bottom-ad-container {
        display: none;
    }

    .ad-container {
        width: 10%;  /* Taille des blocs publicitaires */
        background-color: #f0f0f0;
        padding: 10px;
        text-align: center;
        height: 100%;
    }
}

/* Publicités sticky : positionnez-les correctement sur les côtés */
#left-ad-container {
    order: 1;  /* Publicité à gauche */
    position: sticky;  
    top: 0;  /* Pour qu'elles restent visibles lors du défilement */
}

#right-ad-container {
    order: 3;  /* Publicité à droite */
    position: sticky;  
    top: 0;  /* Pour qu'elles restent visibles lors du défilement */
    height: 100%;
}

/* Publicités en haut et en bas (normalement cachées sur grands écrans) */
#top-ad-container {
    order: 1;  /* Publicité en haut */
}

#bottom-ad-container {
    order: 3;  /* Publicité en bas */
}
