* {
    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';
}

#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: 900px) {
  .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: 25px;
          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;
    }
}
h1{

    color:rgb(255, 255, 255);
    font-size: 200%;
    font-weight: bold;
    text-align: center;
}

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

.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
}
footer {
    text-align: center;
    padding: 3px;
    background-color: #8c52ff;
    color: white;
    margin-top: 10px;
    height:max-content
  }

.container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 20px;
}

.article {
  display: flex;
  flex-direction: row;
  align-items: center;
  background-color: white;
  width: 90%;
  max-width: 1000px;
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  margin: 0 auto;
}

.article img {
  width: 150px;
  height: auto;
  border-radius: 8px;
  flex-shrink: 0;
}

.article h3 {
  margin: 0;
  font-size: 1.5em;
  color: black;
  text-align: center;
  width: 100%;
}

.article a {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 20px;
  color: inherit;
  text-decoration: none;
}


/* Spinner de chargement */
.spinner {
  display: none;
  width: 40px;
  height: 40px;
  border: 6px solid #ccc;
  border-top: 6px solid #333;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 20px auto;
}

.spinner.visible {
  display: block;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}


.hidden {
    display: none;
}

@media screen and (max-width: 900px) {

    .container {
        grid-template-columns: 1fr; /* 1 colonne sur mobile */
        padding: 10px;
    }

    .article {
        width: 100%; /* L'article prend toute la largeur de la colonne sur mobile */
    }
}

/* 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;
}

#page {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
    margin: 0 auto;
}

@media (max-width: 1200px) {
	#page {
        flex-direction: column; /* Empile les éléments en colonne sur petits écrans */
        align-items: center;
		}
  
  	#left-ad-container,
    #right-ad-container {
      	display: none;
  		}
    .ad-container {
  	 	width: 75%;  /* Les publicités occupent plus d'espace sur mobile */
        margin-bottom: 15px;
      	height: 7vh   
  		}
}
  
@media (min-width: 1200px) {

  #top-ad-container,
  #bottom-ad-container {
    display: none;
  }
}

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

.ad-container2 {
    width: 100%;  
    background-color: #f0f0f0;
    padding: 10px;
    text-align: center;
    margin: 10px;
  	height: 7vh;
}

#left-ad-container {
    order: 1;  /* Publicité à gauche */
  	position: sticky;  
    top: 0;
}

#right-ad-container {
    order: 3;  /* Publicité à droite */
  	height: 100%;
   	position: sticky;  
    top: 0;
}

#top-ad-container {
    order: 1;  /* Publicité à gauche */
}

#bottom-ad-container {
    order: 3;  /* Publicité à droite */
}