@import url(https://fonts.googleapis.com/css?family=Montserrat:500);

:root {
    /* Base font size */
    font-size: 10px;
}

*, *::before, *::after {
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    background-color: #ffffff; /* Fond blanc pour le minimalisme */
    color: #333; /* Texte en gris foncé pour une lecture facile */
    font-family: 'Montserrat', Arial, sans-serif; /* Police élégante et moderne */
    line-height: 1.6;
    padding: 20px;
}

.container, .main-content {
    max-width: 100rem;
    margin: 0 auto;
    
}

.heading, .main-heading {
    font-size: 4rem;
    font-weight: 500;
    line-height: 1.5;
    text-align: center;
    padding: 3.5rem 0;
}

.heading span, .main-heading span {
    display: block;
}

.gallery, .pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* Centrer les éléments de la galerie et pagination */
    margin: -1rem -1rem;
}

.gallery-item {
    flex: 1 0 24rem;
    margin: 1rem;
    box-shadow: 0.1rem 0.1rem 0.4rem rgba(0, 0, 0, 0.1); /* Ombre plus subtile pour le minimalisme */
    overflow: hidden;
}


.gallery-image, .responsive-image {
	display: block;
	width: 100%;
	height: auto;
	object-fit: cover;
	transition: transform 400ms ease-out;
}

.gallery-image:hover {
	transform: scale(1.15);
}

.button-container, .pagination {
    display: flex;
    justify-content: center;
    padding: 20px 0;
}

button {
    font-size: 16px;
    padding: 10px 20px;
    cursor: pointer;
    display: inline-block;
    margin-bottom: 20px;
    background: none; /* Retirer le fond pour un look bouton minimaliste */
    color: #333; /* Couleur du texte bouton */
    border: 1px solid #ddd; /* Bordure subtile pour le bouton */
}

button:hover {
    background-color: #f4f4f4; /* Changement subtil de couleur au survol */
}

.pagination a {
    text-decoration: none;
    color: #333;
    background: none; /* Fond retiré pour la pagination */
    border: 1px solid #ddd;
    margin: 0 5px;
    padding: 5px 10px;
    border-radius: 5px;
}

.pagination a.active, .pagination a:hover {
    background-color: #f4f4f4; /* Changement subtil de couleur pour l'active/au survol */
}

@supports (display: grid) {
    .gallery {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(24rem, 1fr));
        grid-gap: 2rem;
    }

    .gallery, .gallery-item {
        margin: 0;
    }
}
