.wrapper {
  display: grid;
  grid-gap: 10px;
  grid-auto-rows: minmax(100%, auto);
  width: 90%;
  margin: auto;
  height: auto;
}

.sidebar {
  padding-top: 40px;
}

.sidebar h1 {
  text-align: left;
  font-size: 15px;
  color: white;
}

.content {
  width: 100%;
}

.category {
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #ddd; /* Bordure inférieure pour séparer les catégories */
    padding: 10px 0;
    max-width: 100%;
    margin: 0 auto;
}

.category img {
    max-width: 300px;
    margin: 20px;
}

.category p.description {
    
}

.category:last-child {
    border-bottom: none; /* Supprime la bordure inférieure de la dernière catégorie */
}

.category-name {
    font-weight: bold;
    color: white;
    letter-spacing: 0.8px;
    line-height: 1.5em;
    text-align: justify;
}

.article-count {
    color: #888;
}


.site {
    justify-content: space-between;
    align-items: center;
    margin: 0 auto; 
    overflow: hidden; 
    background-color: #f9f9f9;
    border-radius: 8px;
    margin-bottom: 20px;
    letter-spacing: 0.8px;
    line-height: 1.5em;
    text-align: justify;
    transform: translateY(50px);
    transition: opacity 0.5s, transform 0.5s;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5); /* Ombre plus marquÃ©e vers le bas au survol */
}

.site p.description {
    
}

.site:last-child {
    border-bottom: none; /* Supprime la bordure inférieure de la dernière catégorie */
}

.site-name {
    font-weight: bold;
    color: black;
    letter-spacing: 0.8px;
    line-height: 1.5em;
    text-align: justify;
    margin-top: 20px; 
}

.cat {
    color: #888;
}

.url {
    margin-bottom: 15px;
}

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

        /* Style de la catégorie */
        .category {
            max-width: 100%;
        }
    
        .site {
            max-width: 100%;
            padding: 0px 0px;
        }

        .site img {
            max-width: 100%;
            margin: 0px;
        }
    
        .wrapper {
          grid-template-columns: 100%; 
        }
    
        .sidebar {
          display: none;
        }

}

@media screen and (min-width: 1024px) {
        
        /* Style de la catégorie */
        .category {
            max-width: 90%;
        }
    
    
        .site {
            max-width: 90%;
            display: grid;
            grid-auto-rows: minmax(100%, auto);
            grid-template-columns: 30% 70%; 
            padding: 10px 10px;
        }

        .site img {
            margin: 20px;
            width: 90%
        }
    
        .wrapper {
          grid-template-columns: 20% 80%; 
        }
    
        .sidebar {
          padding-top: 40px;
        }

    
}

