/*
** Cartes des services / Euromedia
*/

.cartes_services_wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 2.5rem;
    align-items: flex-start; /* permet à chaque carte d'avoir sa propre hauteur */
}

.service_card_container {
    flex: 1 1 calc(33.333% - 2.5rem);
    max-width: calc(50% - 2.5rem);
    /* plus de display:flex ici */
}

.service_card {
    background: #fff;
    border: 1px solid var(--oxy_color_6);
    display: flex;
    flex-direction: column;
    width: 100%;
    /* plus de height:100% => hauteur auto selon le contenu */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
}

.service_card:hover {
    transform: translateY(-6px);
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.42);
}

.service_card_image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    min-height: 200px;
    max-height: 250px;
}

.card-separator-green {
    width: 100%;
}

.card-separator-line {
    border: 0;
    margin: 0;
    height: 6px;
    background-color: var(--oxy_color_7);
    width: 100%;
    display: block;
}

.card-separator-green img {
    display: block;
}

.service_card_content {
    padding: 2rem 2rem 4rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    position: relative;
}

.service_card_title {
    color: var(--oxy_color_6);
    font-size: 28px;
    font-weight: 500;
    line-height: 1.3;
    margin-bottom: 0.5rem;
}

.service_card_desc {
    color: var(--oxy_color_6);
    font-size: 18px;
    line-height: 1.4;
}

.service_card_desc .desc-text.full {
    display: none;
}

.service_card_desc.open .desc-text.short {
    display: none;
}

.service_card_desc.open .desc-text.full {
    display: inline;
}

.read-more-inline {
    background: none;
    border: none;
    color: var(--oxy_color_6);
    font-weight: 600;
    text-decoration: underline;
    cursor: pointer;
    font-size: 1rem;
    padding: 0;
}

.service_card .green_bg_blue_arrow {
    position: absolute;
    bottom: 0;
    right: 0;
}

@media (max-width: 1200px) {
    .service_card_container {
        flex: 1 1 calc(50% - 2.5rem);
        max-width: calc(50% - 2.5rem);
    }
}

@media (max-width: 768px) {
    .service_card_container {
        flex: 1 1 100%;
        max-width: 100%;
    }

    .service_card_content {
        padding: 1.5rem 1.5rem 2.5rem;
    }
}
