.image-container {
    width: 250px; /* Taille de la "case", plus compacte */
    height: 250px; /* Taille carrée */
    background-color: white; /* Fond blanc */
    display: flex; /* Permet de centrer l'image */
    justify-content: center; /* Centre horizontalement */
    align-items: center; /* Centre verticalement */
    margin: 10px auto; /* Centre le conteneur et ajoute un espacement */
}

.image-container img {
    max-width: 100%; /* Taille maximale de l'image pour qu'elle remplisse la case */
    max-height: 100%; /* S'assure que l'image reste proportionnée */
    width: auto; /* Conserve les proportions */
    height: auto; /* Conserve les proportions */
    transition: transform 0.3s ease; /* Animation au survol */
}

.image-container img:hover {
    transform: scale(1.05); /* Zoom léger au survol */
}

.brand-logo {
    position: absolute;
    top: 45px;
    right: 10px;
    width: 80px;
    max-height: 30px; /* Ajustez la taille selon vos besoins */
    object-fit: contain; 
    z-index: 10;
}
.products {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.product {
    padding: 15px; /* Espacement interne */
    border-radius: 15px 15px 10px 10px;
    border: 2px solid #1C4690;
    width: 20%;
    box-sizing: border-box;
    text-align: center;
    background-color: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1); /* Ombre légère */
    margin: 30px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative; /* Assurez-vous que les éléments absolus restent à l'intérieur du conteneur */
    overflow: hidden; /* Empêche les débordements visuels */
}
.product:hover {
    border: 2px solid #c3aa89f5;
    transform: translateY(-5px); /* Léger déplacement vers le haut */
    box-shadow: 0 5px 20px #1C4690; /* Accentuation de l'ombre */
    background-color: #f9f9f9; /* Fond légèrement grisé */
}
.product h2 {
    font-family: "trajan", serif;
    font-size: 1rem;
    color: white;
    background-color: #1C4690;
    padding: 10px;
    border-radius: 13px 13px 0 0;
    margin-bottom: 5px;
    width: calc(100% + 30px);
    margin-top: -15px;
    margin-left: -15px;
    box-sizing: border-box;
    text-align: center;
    position: relative;
    overflow: hidden;
    z-index: 2;
    border-left: none;
}
.product:hover h2 {
    background-color: #c3aa89f5;
    box-shadow: 0px 0px 16px 5px #c3aa89b0;
    color: black;
}
.product-link {
    display: block;
    text-decoration: none;
    color: inherit;
}
.product img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
}
.product:hover a {
    color: black;
}
.product p strong {
    color: #000;
}
.italic {
    font-style: italic;
    line-height: 1rem;
    text-align: left;
}
.details {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
}

.details p {
    font-size: 0.9rem; /* Texte plus petit */
    color: #555; /* Texte grisé pour discrétion */
    margin: 0; /* Suppression des marges internes */
    line-height: 1.2rem; /* Hauteur de ligne pour lisibilité */
}
.price {
    font-size: 1.2rem !important;
    font-weight: bold;
    text-align: center;
    color: #1C4690 !important;
}