/* Container global */
.values-block {
    padding: 60px 20px;
    background-color: #fff; /* Fond blanc général */
}


.page-template-tpl-realisation .values-block {
    margin: 112px auto 112px;
	padding: 0;
}

/* Titre principal */
.values-main-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 50px;
    color: #000;
    font-family: sans-serif; /* Adapter selon votre thème */
}

/* Grille */
.values-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4 colonnes */
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Carte individuelle */
.value-card {
    border-radius: 20px;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    min-height: 300px; /* Hauteur minimale pour uniformiser */
    transition: transform 0.3s ease;
}

.value-card:hover {
    transform: translateY(-5px);
}

/* Gestion des couleurs de texte */
.value-card.text-light {
    color: #fff;
}
.value-card.text-dark {
    color: #000;
}

/* Titre de la carte */
.value-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    margin-top: 0;
    color: inherit; /* Hérite de la couleur définie par .text-mode */
}

/* Description */
.value-desc, .value-desc p {
    font-size: 0.95rem;
    line-height: 1.4;
    margin: 0;
    color: inherit;
    font-weight: 400;
}

/* Carte individuelle */
.value-card {
    border-radius: 20px;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    min-height: 300px;
    transition: transform 0.3s ease;
    
    /* Important : Pas de couleur par défaut ici, elle vient du style inline PHP */
}

.value-card:hover {
    transform: translateY(-5px);
}

/* Titre de la carte */
.value-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    margin-top: 0;
    color: inherit; /* FORCE le titre à prendre la couleur choisie dans ACF */
}

/* Description */
.value-desc, .value-desc p {
    font-size: 0.95rem;
    line-height: 1.4;
    margin: 0;
    font-weight: 400;
    color: inherit; /* FORCE le texte à prendre la couleur choisie dans ACF */
}

/* Responsive : Mobile et Tablette */
@media (max-width: 992px) {
    .values-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 par ligne sur tablette */
    }
}
@media (max-width: 1499px) and (min-width: 1025px) {
    .values-grid {
        max-width: 1000px;
        gap: 15px;
    }

    .value-card {
        min-height: 260px; /* Reduced to fit laptop aspect ratios */
        padding: 30px 15px;
    }

    .values-main-title {
        font-size: 40px;
    }

    .value-card h3 {
        font-size: 20px;
    }

    .value-desc, .value-desc p {
        font-size: 15px;
    }
}
@media (max-width: 768px) {
    .values-grid {
    display: flex;
    gap: 10px;
    max-width: 100%;
    margin: 0 auto;
    flex-wrap: wrap;
}
    .value-card {
		width: calc(50% - 10px);
        min-height: 218px;
        padding: 30px;
    }
	.values-block {
    padding: 0px;
    background-color: #fff;
}
.values-main-title  {
font-family: 'Raleway';
font-style: normal;
font-weight: 700;
font-size: 40px;
line-height: 115%;
/* identical to box height, or 46px */
text-align: center;

color: #000000;


}
.value-card h3{
font-family: 'Raleway';
font-style: normal;
font-weight: 700;
font-size: 19px;
line-height: 76%;
align-items: center;
text-align: center;



}
.value-desc, .value-desc p{

font-family: 'Raleway';
font-style: normal;
font-weight: 400;
font-size: 16px;
line-height: 123%;
/* or 20px */
text-align: center;




}
.team-section-block .container,
.values-block  .container{
    padding: 0px;
}
.page-template-tpl-about .values-block{
	margin: 75px auto !important;
}
    .stats-grid {
        margin: 100px auto 100px;
		
    }
}
