.sabp-solutions-block {
    background-color: #fff;
    margin: 146px auto 106px;
}

/* 1. Titre */
.sabp-main-title {
	font-family: 'Raleway';
	font-style: normal;
	font-weight: 700;
	font-size: 50px;
	line-height: 123%;
	text-align: center;
	color: #000000;
}
/* Le champ WYSIWYG doit mettre la 1ere ligne en <strong> */
.sabp-main-title strong {
    font-weight: 400;
}

/* 2. Pillules Bleues (Gauche) */
.sabp-pills-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Aligné à gauche comme sur l'image */
    gap: 6px;
	position: relative;
}

.sabp-pill {
	background: #0084FF;
	border-radius: 20px;
	height: 80px;
	font-family: 'Raleway';
	font-style: normal;
	font-weight: 800;
	font-size: 31px;
	line-height: 263%;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	color: #FFFFFF;
    padding: 0px 22px;    white-space: nowrap;
}

/* 3. Image */
.sabp-image-wrapper{
    border-radius: 25px;
    width: 100%;
	height: 300px;
	background-repeat: no-repeat !important;
    background-size: cover !important;
    background-position: center !important;
	position: relative;
}

.sabp-image-wrapper img{
	position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

/* 4. Description Droite */
.sabp-description {
	font-family: 'Raleway';
	font-style: normal;
	font-weight: 400;
	font-size: 18px;
	line-height: 141%;
	color: #000000;
}
.sabp-description p:not(:last-child) {
    margin-bottom: 1.5rem;
}
.sabp-description strong {
    color: #000;
	font-weight: 600;
}

/* 5. Tags du bas */
.sabp-tag-item {
    display: inline-block;
	text-align: center;
	display: flex;
	flex-direction: row;
	align-items: center;
	width: auto;
	height: 52px;
	background: #FFFFFF;
	border: 3px solid #28439B;
	border-radius: 11px;
	transition: all 0.3s ease;
	text-decoration: none;
	width: 302px;
	justify-content: center;
	color: #0F0F0F;
	font-family: 'Raleway';
	font-style: normal;
	font-weight: 700;
	font-size: 16px;
	line-height: 130%;
}

.row-pills{
	margin-bottom: 106px;
	    gap: 33px;
}

.row-pills-title{
	margin-bottom: 60px;
}

/* Variantes de couleurs */
.sabp-tag-item.border-blue {
    border: 1px solid #28439B; /* Bleu clair */
    color: #0F0F0F;
}

.sabp-tag-item.border-green {
    border: 1px solid #2BE625; /* Vert clair */
    color: #0F0F0F;
}

.sabp-tags-grid{
  width: 1021px;
  margin: 0 auto;

  display: grid;
  grid-template-columns: repeat(3, 302px);
  column-gap: 22px;
  row-gap: 16px;

  justify-content: start; /* lignes 1 et 3 restent ancrées */
}

.sabp-tag-item:nth-child(n+4):nth-child(-n+6){
  transform: translateX(-65px); /* 71/2 */
}
.row-pills-col-1{
	width: 346px;
	padding: 0px;
}
.row-pills-col-2{
	width: 417px;
	padding: 0px;
}
.row-pills-col-3{
	width: 353px;
	margin-left: 32px;
	padding: 0px;
}
@media (max-width: 1499px) and (min-width: 992px) {
    
    /* 1. Reduce Margins */
    .sabp-solutions-block {
        margin: 80px auto;
    }
    .row-pills {
        margin-bottom: 60px;
    }

    /* 2. Scale Fonts */
    .sabp-main-title {
        font-size: 40px;
    }
    .sabp-pill {
        height: 60px; /* Reduced from 80px */
        font-size: 22px; /* Reduced from 31px */
        padding: 0 15px;
    }
    .sabp-description {
        font-size: 16px;
    }

    /* 3. Adjust Grid Columns */
    /* Reset fixed widths to allow flex behavior */
    .row-pills-col-1, .row-pills-col-2, .row-pills-col-3 {
        width: auto;
        flex: 1; 
    }
    
    /* 4. Adjust Tags Grid */
    .sabp-tags-grid {
        max-width: 800px; /* Constrain width */
        gap: 15px;
    }
    
    .sabp-tag-item {
        font-size: 14px;
        height: 48px;
    }

    /* Reduce the shift on the second row so it doesn't look broken */
    .sabp-tag-item:nth-child(n+4):nth-child(-n+6) {
        transform: translateX(-30px);
    }
}
@media (max-width: 768px) {
	.sabp-main-title{
		font-size: 26px;
		line-height: 110%;
	}

	.sabp-tags-grid {
		width: 100%;
		display: flex;
		flex-wrap: wrap;        gap: 15px;
	}
	.sabp-tag-item:nth-child(n+4):nth-child(-n+6){
		transform: none; /* 71/2 */
	}
	.sabp-tag-item {
		width: calc(35% - 7.5px);
		font-size: 14px;
line-height: 130%;
	}
	.sabp-tag-item:nth-child(1),
    .sabp-tag-item:nth-child(4),
    .sabp-tag-item:nth-child(5),
	.sabp-tag-item:nth-child(7){
		width: calc(65% - 7.5px);
	}
	.row-pills .col-lg-4{
		min-height: 556px;
		background: #F5F5F5;
		border-radius: 26px;
		padding: 20px;
		        width: 100%;
        margin-left: 0px;        margin-bottom: 0px !important;
	}
	.sabp-pills-wrapper {

    right: auto;
    bottom: auto;
    margin-bottom: 42px;
}
.row-pills {
    margin-bottom: 0px;
	gap: 10px;
	padding-right: calc(var(--bs-gutter-x) * .5);
    padding-left: calc(var(--bs-gutter-x) * .5);
}
.row-end-transf{
	padding-right: calc(var(--bs-gutter-x) * .5);
    padding-left: calc(var(--bs-gutter-x) * .5);
	margin-top: 50px;
}
.sabp-image-wrapper{
	height: 520px;
}
.row-pills .col-lg-5{
	padding: 0px;
}
.sabp-solutions-block .container,
.sabp-solutions-block .col-12{
	padding: 0;
}
.sabp-solutions-block
 {
    margin: 94px auto 100px;
}
}