.homepage-content {
    padding: 0 6vw 80px;
}

.homepage-title {
    text-align: center;
    color: var(--primary);
    margin: 0 0 75px;
    font-family: var(--circularstd);
    font-size: 64px;
    line-height: 77px;
    font-style: italic;
    font-weight: 400;
}

.homepage-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.homepage-item {
    position: relative;
    display: inline-block;
    overflow: hidden;
    aspect-ratio: 1/1;
}


.homepage-item__bg {
    width: 100%;
    height: 100%;
    objec-fit: cover;
    transform: scale(1);
    transition: transform 800ms ease-in-out;
    will-change: transform;
}

.homepage-item:hover .homepage-item__bg {
    transform: scale(1.1);
}

.homepage-item__logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70%;
    height: auto;
    max-height: 50%;
}

/* === Section bienvenue === */

.home-content-section {
    padding:40px 30px;
    text-align:center;
}

.home-content-section h1, 
.home-content-section h2 {
    margin-top:0px;
    font-size:32px;
}
.home-content-section h2 {
    margin-bottom:20px;
}
.home-content-section p {
    margin-bottom:20px;
}

/* === Grille === */

.mediatheque-content-section {
    padding:50px;
    background-color:#F2F2F2;
    display:grid;
    --min-width: calc(100px + 15vw);
    grid-template-columns: repeat(auto-fill, minmax(var(--min-width), 1fr));
    grid-gap: 20px;
}

@media screen and (min-width:768px) {
    
    /* === Section bienvenue === */
    
    .home-content-section {
        padding: 70px 0px;
    }
    .home-content-section h1, 
    .home-content-section h2 {
        font-size: 40px;
    }
    .home-content-section p {
        width: 60%;
        margin: auto;
        margin-bottom: 30px;
    }
    
    /* === Grille === */
    
    .mediatheque-content-section {
        padding:80px;
    }
}


@media (min-width: 1280px) {
    .homepage-item {
        width: calc((100%/4) - 15px);
    }
}