@charset "utf-8";
/* CSS Document */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(370px, 1fr));
    grid-gap: 5px;
    justify-items: center;
    align-items: center;
}
.grid-item1 {
    background: #ddd;
    text-align: center;
    border: black 2px solid;
    width: 373px;
    height: auto;
}
/*surimpression legende */
* {
    box-sizing: border-box;
}
.boximg {
    position: relative;
    width: 100%;
    max-width: 350px;
    float: left;
    margin: 5px;
}
.boximg:hover .surlegend {
    opacity: 1;
}

.surlegend {
    position: absolute;
    bottom: 0;
    background: rgb(0, 0, 0);
    background: rgba(0, 0, 0, 0.5); /* Black see-through */
    width: 100%;
    transition: .5s ease;
    opacity: 0;
    color: yellow;
    font-size: 14px;
    padding: 10px;
    text-align: center;/* top: 50%;  hauteur */
}
