body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f9f9f9;
}

header {
    background-color: #4CAF50;
    color: white;
    padding: 15px 0;
    text-align: center;
}

h1 {
    margin: 0;
    font-size: 2em;
}

main {
    padding: 20px;
}

.gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* Center items */
    gap: 15px; /* Space between items */
}

.gallery-item {
    flex: 1 1 200px; /* Allow items to grow and shrink, with a base width of 200px */
    max-width: 100%; /* Ensure it doesn’t exceed the container’s width */
    display: flex;
    flex-direction: column;
    align-items: center;
    background: white;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    padding: 15px;
    text-align: center;
}

.gallery-item img {
    width: 100%;
    height: auto; /* Maintain aspect ratio */
    max-width: 100%;
    max-height: 200px;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
    margin: 0 auto;
    display: block;
}

.title {
    font-size: 1.5em;
    margin: 15px 0;
	font-weight: bold;	
}

.gallery-item .author,
.gallery-item .price {
    margin: 10px 0; /* Espace entre les éléments */
}

.price {
    text-align: center;
    width: 100%;
    margin: 0 0 10px 0; /* 10px space below the price */
	font-size: 1.5em;
	font-weight: bold;
}

.gallery-item p {
    padding: 0 15px;
    font-size: 1em;
    color: #333;
}

.button {
    display: inline-block;
    padding: 10px 20px;
    margin-top: 10px;
    background-color: #007BFF;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    cursor: pointer;
	/*margin-bottom: 10px;*/
	margin-top: auto;
	align-self: center;
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0,0,0);
    background-color: rgba(0,0,0,0.4);
    padding-top: 60px;
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 600px;
    border-radius: 10px;
    text-align: left;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

/* Justify ul to the left */
.price-list {
    text-align: left !important;
    padding-left: 15px !important;
    list-style-position: inside !important; /* Optionnel, mais permet de garder les puces à l'intérieur des marges */
    padding: 0 !important;
}

.contact-card {
    padding: 20px;
    max-width: 300px;
    font-family: Arial, sans-serif;
}

.contact-card .contact-name {
    font-size: 1.2em;
    font-weight: bold;
    margin-bottom: 10px;
}

.contact-card .contact-address,
.contact-card .contact-phone,
.contact-card .contact-email {
    margin-bottom: 10px;
}

.contact-card .contact-email a {
    color: #1a73e8;
    text-decoration: none;
}

.contact-card .contact-email a:hover {
    text-decoration: underline;
}

@media (max-width: 600px) {
    .gallery {
        flex-direction: column; /* Stack items vertically on small screens */
        align-items: center;
    }

    .gallery-item {
        flex: 1 1 auto; /* Allow full width for small screens */
        width: 90%; /* Reduce width to fit smaller screens */
        margin: 10px 0;
    }
}

.warning {
	padding: 20px;
    background-color: #ffcc00; /* Couleur de fond jaune pour attirer l'attention */
    color: #000; /* Couleur du texte noire */
    text-align: left; /* Centrage du texte */
    font-size: 1.2em; /* Taille du texte */
    border-bottom: 2px solid #ff9900; /* Bordure en bas pour délimiter la section */
}