@font-face {
    font-family: 'Destra';
    font-weight: 400; /* Graisse : regular */
    src: url('Fonts/GPDestra-Light.woff2') format('woff2');
}

body{
    background-color: rgb(202, 145, 21);
}

h1{
    text-align: center;
    font-family: 'Destra' ;
    font-size: 4vw;
}

li {
    padding: 0;
    list-style: none;
    position: relative;
    aspect-ratio: 1;
}

ul{
    padding: 0;
    display: grid;
    grid-template-columns: repeat( auto-fill, minmax(300px,1fr) );
    margin: 0;
    grid-gap: 20px; /* goutière verticale */
    
}

img{
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.text {
    opacity: 0;
    position: absolute;
    z-index: 200;
    background: rgba(0,0,0, .7);
    margin: 0;
    inset: 0;
    color: white;
    padding: 1em;
    transition: all 250ms;
    text-align: center;
}
li:hover .text {
    opacity: 1;
}