@import url('https://fonts.googleapis.com/css2?family=Barlow:wght@500;600;700&display=swap');

.adduam-text-hover {
    color: white;
    text-align: center;
    margin: 2em;
    z-index: 100;
    font-size: 16px;
}


.hover-cards-title {
    color: black;
    font-size: 18px;
    font-weight: 600;
    line-height: normal;
    margin-top: 6px;
    text-transform: uppercase;
    margin-bottom: 0px;
    font-family: "Barlow";
}

.down-title {
    color: black;
    font-size: 14px;
}


.card-with-hover {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
}

.card-with-hover .overlay-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    text-align: center;
    padding: 20px;
    max-width: 80%;
    font-size: 14px;
}

.read-more-button {
    font-family: "Barlow";
    font-weight: 500;
    background-color: #ff6a00;
    color: white;
    text-decoration: none;
    position: absolute;
    right: 0px;
    text-align: center;
    padding: 10px 20px;
    bottom: 0px;
    font-size: 14px;
}

.card-with-hover .image-container {
    position: relative;
    overflow: hidden;
}


.card-with-hover .image-wrapper {
    position: relative;
}

.card-with-hover .main-image,
.card-with-hover .hover-image {
    width: 100%;
    transition: opacity 0.3s ease;
    max-height: unset;
}

.hover-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* Centre verticalement */
    align-items: center;
    /* Centre horizontalement */
    transition: opacity 0.3s ease;
    text-align: center;
}

.card-with-hover .hover-image {
    opacity: 0;
    /* Cachée par défaut */
}

.card-with-hover:hover .main-image {
    opacity: 0;
    /* Rend l'image principale invisible */
}

.card-with-hover:hover .hover-image {
    opacity: 1;
    /* Montre l'image de hover */
}

@media (min-width: 816px) {
    .hover-cards-title {
        text-transform: capitalize;
        margin-top: 15px;
    }

}