/* Page d'accueil : blocs pour chaque univers + titre sur les blocs */


.index_taille_image {
    display:block;
    width: 100%; 
    height: 350px;
    background-color: transparent;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: 50%;
    border-radius: 20px;
}

.index_univers_titre {
    display: block;
    position:absolute;
    left:1%;
    bottom:0;
    width: 98%; 
    text-align:center;
    background:#444;
    color: white;
    height:40px; 
    line-height:40px; 
    font-size:22px;
    text-transform: uppercase; 
    border-radius: 0px 0px 20px 20px;
    cursor: pointer;
}

.grid-item:hover > .index_univers_titre { 
    font-size:26px;
    height:55px;
    line-height:55px;  
}



/* Step 2: center things inside the grid and clear some space around it by setting a device based max-width and margin*/

.grid {
  text-align: center;
  max-width: 95vw;
  margin: 2.5vw auto;
  margin-top: 0vw;
}


/* Step 3: how big should the gap be between grid items? remember that the total gap between two items would be double what you set here since both would have that amount set as their individual padding. Also add box-sizing:border-box to make sure the padding doesn't affect the total widh of the item */

.grid-item {
    box-sizing: border-box;
    display:inline;
    padding:1%;
    width:98%;
    margin-bottom:1rem;
}


/* Step 4: Add media queries (subjective) to make the whole grid resposive. */

/* Page d'accueil : blocs pour chaque univers + titre sur les blocs */

@media (min-width: 500px) {
  .grid-item {
    width: 50%;
  }
  .index_univers_titre {
    left:2%;
    width: 96%;
  }      
}

@media (min-width: 1000px) {
  .grid-item  {
    width: 33.333%;
  }
  .index_univers_titre  {
    left:3%;
    width: 94%;
  }
}

@media (min-width: 1700px) {
  .grid-item {
    width: 25%;
  }
  .index_univers_titre {
    left:4%;
    width: 92%;
  }
}

@media (min-width: 2100px) {
  .grid-item {
    width: 20%;
  }
  .index_univers_titre {
    left:5%;
    width: 90%;
  }
}
