/* CARD DES CATEGORIES */
.categories-list{
    display: grid;
    position:relative;
    grid-template-columns: 300px 300px 300px;
    grid-template-rows: auto;
    grid-column-gap: 4em ;
    align-items: start;
    justify-content: space-between;
    margin-bottom: 2em;
}

.item-title{
    background-color: #04818E;
    border-radius: 0em 1em 0em 0em;
    margin-bottom: 0em;
    text-align: center;
    border-bottom: 1px solid white;
    padding-top: 0.5em;
}

.item-title:hover{
    background-color: #ff4529;
}

.item-title a{
    color: white;
    text-decoration: none;
    text-transform: uppercase;
    font-family: spartan_regular;
    padding-bottom: 0.5em;
}

.category-desc{
    position: absolute;
    z-index: 3;
    color: white;
    margin-top: -11em;
    text-align: center;
    
}

.category-desc p{
   font-size: 0.8em;
   padding: 1.5em;
}

.categories-list div{
    transition: all 0.3s cubic-bezier(.25,.8,.25,1);
    width: 18em;
}

.categories-list div:hover{
    transform: scale(1.1);
}

.categories-list img {
    position:relative;
    width: 18em;
    height: 15em;
    border-radius: 0em 0em 0em 1em;
    margin-right: 3em;
}

/* CARD DES ARTICLES */

.blog{
  display: grid;
  position:relative;
  grid-column-gap: 4em;
  grid-template-columns: 200px 200px 200px;
  grid-template-rows: auto;
  justify-content: space-between;
}

.page-header h2 a{
    text-decoration: none;
    color: #44B2A8;
    font-family: spartan_semibold;
    font-size: 0.5em;
}

.item p {
    font-size: 0.8em;
}

.readmore{
    margin-top: 2em;
}

.items-row{
    margin-bottom: 1em;
    border: 1px solid rgb(255, 69, 41);;
    border-radius: 0em 1em 0em 1em;
    padding: 1em;
    height: 10em;
    width: 10em;
    box-shadow: 0px 8px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(.25,.8,.25,1);
}

.items-row:hover{
    transform: scale(1.1);
}

.readmore a{
    background-color: rgb(255, 69, 41);;
    padding: 0.7em;
    color: white;
    text-decoration: none;
    border-radius: 0em 1em 0em 1em;
}

.clearfix img{
    display: none;
}

.blog .category-desc p{
    display: none;
}


/* RESPONSIVE PHONE */
@media screen and (max-width: 434px){

    .categories-list{
        display: block;
        display : table;
        margin : 0 auto;
        z-index: 0;
    }

    .categories-list div{
        z-index: -2;
    }

    .blog{
        display: block;
        text-align: center;
        display : table;
        margin : 0 auto;
    }

    .items-row {
        margin-right: 0em;
    }

}

/* RESPONSIVE LAPTOP */
@media screen and (max-width: 1440px){

    .categories-list{
        grid-template-columns: 300px 300px 300px 300px;
        grid-column-gap: 2em;
    }

    .blog{
        grid-template-columns:  200px 200px 200px 200px;
        grid-column-gap: 2em;
    }
      
}

/* RESPONSIVE GRAND ECRAN */
@media screen and (max-width: 1280px){

    .categories-list{
        grid-column-gap: 2em;
        grid-template-columns: 300px 300px 300px;
    }

    .blog{
        grid-column-gap: 2em;
        grid-template-columns:  200px 200px 200px;
    }
      
}

/* RESPONSIVE TABLETTE */
@media screen and (max-width: 768px){

    .categories-list{
        grid-template-columns: 300px 300px ;
    }

    .blog{
        grid-template-columns: 200px 200px;
        grid-column-gap: 0em;
    }

      
}



