.flex-md-row {
    flex-direction: row;
}

.flex-column {
    flex-direction: row;
}

@media (max-width: 768px) {
    .tex {
        margin-top: 70px;
    }
}

@media (min-width: 768px) {

    .d-flex>.col-md-5,
    .d-flex>.col-md-7 {
        display: flex;
        flex-direction: column;
    }


}

.custom-flex-row {
    /* Désactiver le flex par défaut */
    display: block;
}

@media (min-width: 768px) {
    .custom-flex-row {
        /* Appliquer le flex seulement pour les écrans plus grands */
        display: flex;
    }
}


.mb-4 {
    margin-bottom: 1.5rem;
}

.mb-md-0 {
    margin-bottom: 0;
}

/* Styles par défaut pour les ordinateurs */
.custom-row {
    display: flex;
    flex-wrap: wrap;
}

.values-section {
    display: flex;
    flex-wrap: wrap;
    background-color: #fff;
    border-radius: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}
.value-item1 {
/* Styles communs pour tous les écrans */
margin-left: 0; /* Valeur par défaut pour les petits écrans */
}

/* Applique le margin-left seulement pour les écrans de 768px et plus */
@media (min-width: 768px) {
.value-item1 {
margin-left: 50px;
}
.order-2{
order: 2 !important;
}
}

.image-container {
position: relative;
display: flex;
justify-content: center;
align-items: center;
overflow: hidden;
width: 100%;
max-width: 500px; /* Ajustez selon vos besoins */
aspect-ratio: 1 / 1; /* Assure que le conteneur est toujours carré */
border-radius: 50%; /* Conteneur rond */
margin: auto;
}

.image-container img {
width: 100%;
height: 100%;
border-radius: 50%; /* Image ronde pour suivre le conteneur */
}

.text-overlay {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
text-align: center;
color: #8bd545 ;
display: flex;
justify-content: center;
align-items: center;
width: 100%;
height: 100%;
}


.text-overlay p {
    font-size: 18px;
    font-weight: 400;
}

.text-overlay span {
    font-weight: 700;
    color: #00bfa6;
}

.values-list {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-top: 40px !important;
}

.value-item {
    display: flex;
    align-items: flex-start;
}

.value-item .icon {
    width: 70px;
    height: 40px;
    margin-right: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.value-item .icon img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
}

.value-item .description h3 {
    color: #8bd545 ;
    font-size: 20px;
    margin-bottom: 10px;
}

.value-item .description p {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
}
.row {
display: flex !important;
flex-wrap: wrap !important;
}

/* Réduction des titres en mobile */
@media (max-width: 767px) {

    /* Pour le h1 précédent */
    h1.h2 span.h1 {
        font-size: 28px !important;
    }
    h1.h2 span {
        font-size: 16px !important;
    }

    /* Pour ce h2 spécifique */
    .section-head h2.h3 {
        font-size: 22px !important;  /* Ajuste selon ton besoin */
        line-height: 1.3 !important;
    }

    /* Paragraphe sous le titre */
    .section-head p {
        font-size: 14px !important;
        line-height: 1.5;
    }
}
