/*
Nom : Mohamed Talhaoui
Filière : Informatique et IA (S3) | 2024/2025
*/

*{
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

body{
    font-family: sans-serif;
    background-color: #d7d7d796;
}

header{
    display: block;
    background-color: #1e1d1d;
    color: white;
    text-align: center;
    padding: 35px;
    padding-top: 20px;
    margin-bottom: 12px;
}

header h1{
    padding-bottom: 10px;
}

.galerie{
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: repeat(2, 1fr);
    justify-self: center;
    align-items: center;
    gap: 12px;
}

img{
    display: block;
    width: 250px;
    height: auto;
    border-radius: 10px;
    border: 1px;
    box-shadow: 0px 10px 10px #9b9a9a;
    transition: 200ms ease-in-out;
}

a:hover img{
    scale: 1.02;
    transition: 200ms ease-in-out;
}

.images{
    display: block;
    text-align: center;
    position: relative;
}

.images p{
    display: block;
    position: absolute;
    background-color: #0000007a;
    color: white;
    padding: 15px;
    bottom: 20px;
    width: 100%;
    transition: 300ms ease-in;
    opacity: 0;
}

.images > a:hover + p {
    opacity: 1;
}