.p-tabs-image {
	position: relative;
	padding-top: 7rem;
	padding-bottom: 15rem;
	overflow-x: hidden;
}
@media (max-width: 767px) {
	.p-tabs-image {
		padding-top: 1rem;
		padding-bottom: 5rem;
	}
}

.p-tabs-image::after {
	content: "";
	position: absolute;
	top: 0;
	right: 20%;
	height: 100%;
	width: 100vw;
	background-color: #FEFA74;
	z-index: -1;
}
@media (max-width: 767px) {
	.p-tabs-image::after {
		right: 0;
	}
}

.wrapper--p-tabs-image {
	display: flex;
}
@media (max-width: 767px) {
	.wrapper--p-tabs-image {
		padding-left: 0;
		padding-right: 0;
	}
}

.p-tabs-image__list,
.p-tabs-image--list {
	flex-direction: column;
	min-width: 40%;
	margin-bottom: 0;
}
@media (max-width: 767px) {
	.p-tabs-image__list,
	.p-tabs-image--list {
		width: 100%;
	}
}

.p-tabs-image__item {
	padding-top: 3rem;
	padding-bottom: 1.5rem;
	border-bottom: 1px solid rgba(0, 0, 0, 0.2);
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
	transition: border 0.2s ease;
}
@media (max-width: 767px) {
	.p-tabs-image__item {
		font-size: 1.6rem;
		padding-left: 3rem;
		padding-right: 3rem;
	}
}

.p-tabs-image__item-title {
	color: rgba(0, 0, 0, 0.4);
	font-family: "LemonMilk", serif;
	font-size: 25px;
	line-height: 1.5;
	margin-bottom: 1.5rem;
	transition: color 0.2s ease;
  text-transform: none;
}
@media (max-width: 767px) {
	.p-tabs-image__item-title {
		font-size: 18px;
		font-weight: 400;
		color: #000;
		margin-bottom: 1rem;
	}
}

.p-tabs-image__item-text-outer {
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.2s ease;
}
@media (max-width: 767px) {
	.p-tabs-image__item-text-outer {
		transition: max-height 0.5s ease;
	}
}

/* Style pour le texte enrichi dans .p-tabs-image__item-text-inner pour desktop */
.p-tabs-image__item-text-inner {
    font-family: Arial, Avenir, sans-serif !important;
    font-size: 18px !important;
    font-weight: 400 !important;
    line-height: 1.5;
    color: rgba(0, 0, 0, 1);
    transition: color 0.2s ease;
}

/* Marge pour le dernier élément enfant */
.p-tabs-image__item-text-inner > *:last-child {
    margin-bottom: 2rem;
}
@media (max-width: 767px) {
    .p-tabs-image__item-text-inner,
    .p-tabs-image__item-text-inner p {
        font-size: 14px !important;
        font-weight: 400 !important;
        padding-bottom: 1.5rem;
    }
}

}
.p-tabs-image__item-image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}
@media (max-width: 767px) {
	.p-tabs-image__item-image {
		margin-top: 2rem;
		margin-bottom: 1.5rem;
	}
}

.p-tabs-image__image-list {
	display: grid;
	grid-template-columns: 1fr;
	align-items: start;
	width: 60%;
	min-width: 919px;
	margin-bottom: 0;
	margin-left: 10rem;
	margin-top: 5rem;
}
@media (max-width: 767px) {
	.p-tabs-image__image-list {
		display: none;
	}
}

.p-tabs-image__image-item {
	grid-row-start: 1;
	grid-column-start: 1;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.2s ease, visibility 0.2s ease;
}