/* PracticeLab Modules widget */
.akp-plm {
	--akp-plm-accent: #b3945c;
	--akp-plm-text: #1f1f1f;
	--akp-plm-panel-bg: #faf8f4;
	--akp-plm-nav-width: 320px;
	display: flex;
	gap: 32px;
	align-items: stretch;
	color: var(--akp-plm-text);
}

/* Left list */
.akp-plm__nav {
	flex: 0 0 var(--akp-plm-nav-width);
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.akp-plm__tab {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	width: 100%;
	padding: 16px 20px;
	background: #fff;
	border: 1px solid rgba(0, 0, 0, 0.08);
	border-radius: 10px;
	font-size: 17px;
	font-weight: 500;
	text-align: left;
	color: inherit;
	cursor: pointer;
	transition: border-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

/* Neutralise les styles globaux Elementor/thème sur <button> (hover/focus/active) */
.akp-plm .akp-plm__tab,
.akp-plm .akp-plm__tab:hover,
.akp-plm .akp-plm__tab:focus,
.akp-plm .akp-plm__tab:focus-visible,
.akp-plm .akp-plm__tab:active,
.akp-plm .akp-plm__tab.is-active {
	background-color: #fff;
	background-image: none;
	box-shadow: none;
	outline: none;
	text-decoration: none;
}

.akp-plm .akp-plm__tab:hover,
.akp-plm .akp-plm__tab:focus-visible {
	border-color: var(--akp-plm-accent);
	color: var(--akp-plm-text);
}

.akp-plm .akp-plm__tab.is-active,
.akp-plm .akp-plm__tab.is-active:hover {
	border-color: var(--akp-plm-accent);
	box-shadow: inset 3px 0 0 var(--akp-plm-accent);
	color: var(--akp-plm-accent);
}

.akp-plm__tab.is-active {
	border-color: var(--akp-plm-accent);
	box-shadow: inset 3px 0 0 var(--akp-plm-accent);
	color: var(--akp-plm-accent);
	font-weight: 600;
}

.akp-plm__tab-chevron::before {
	content: "\203A";
	font-size: 20px;
	line-height: 1;
	opacity: 0.5;
	transition: transform 0.2s ease, opacity 0.2s ease;
}

.akp-plm__tab.is-active .akp-plm__tab-chevron::before {
	opacity: 1;
	transform: translateX(3px);
}

/* Right panels */
.akp-plm__panels {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	flex-direction: column;
}

.akp-plm__panel {
	display: none;
	gap: 28px;
	align-items: stretch;
	background: var(--akp-plm-panel-bg);
	border-radius: 14px;
	overflow: hidden;
}

.akp-plm__panel.is-active {
	display: flex;
	flex: 1 1 auto;
	animation: akp-plm-fade 0.35s ease;
}

@keyframes akp-plm-fade {
	from {
		opacity: 0;
		transform: translateY(8px);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

/* L'image couvre toute la hauteur du panneau (rendu type background-image) */
.akp-plm__media {
	flex: 0 0 45%;
	min-width: 0;
	position: relative;
	overflow: hidden;
}

.akp-plm__media img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	display: block;
}

.akp-plm__content {
	flex: 1 1 auto;
	padding: 28px 32px;
	min-width: 0;
}

.akp-plm__title {
	margin: 0 0 12px;
	font-size: 24px;
}

.akp-plm__desc {
	margin-bottom: 16px;
}

.akp-plm__outcomes-label {
	margin: 0 0 10px;
	font-size: 15px;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	opacity: 0.7;
}

.akp-plm__outcomes {
	list-style: none;
	margin: 0 0 22px;
	padding: 0;
}

.akp-plm__outcomes li {
	position: relative;
	padding-left: 28px;
	margin-bottom: 8px;
}

.akp-plm__outcomes li::before {
	content: "\2713";
	position: absolute;
	left: 0;
	top: 0;
	color: var(--akp-plm-accent);
	font-weight: 700;
}

.akp-plm__cta {
	display: inline-block;
	padding: 12px 28px;
	background: var(--akp-plm-accent);
	color: #fff;
	border-radius: 6px;
	font-weight: 600;
	text-decoration: none;
	transition: opacity 0.2s ease;
}

.akp-plm__cta:hover {
	color: #fff;
	opacity: 0.85;
}

/* Narrow desktop (1025–1200px): slimmer list, tighter panel */
@media (max-width: 1200px) {
	.akp-plm {
		--akp-plm-nav-width: 270px;
		gap: 24px;
	}

	.akp-plm__tab {
		padding: 14px 16px;
		font-size: 16px;
	}

	.akp-plm__content {
		padding: 24px;
	}
}

/* Tablet & below (≤1024px): stacked layout, wrapping pills above the panel */
@media (max-width: 1024px) {
	.akp-plm {
		flex-direction: column;
		gap: 18px;
	}

	.akp-plm__nav {
		flex: none;
		width: 100%;
		flex-direction: row;
		flex-wrap: wrap;
		padding-bottom: 6px;
		gap: 8px;
	}

	.akp-plm__tab {
		flex: 0 0 auto;
		width: auto;
		white-space: nowrap;
		padding: 10px 16px;
		font-size: 15px;
		border-radius: 999px;
	}

	.akp-plm .akp-plm__tab.is-active,
	.akp-plm .akp-plm__tab.is-active:hover {
		box-shadow: none;
		background-color: var(--akp-plm-accent);
		color: #fff;
	}

	.akp-plm__tab-chevron {
		display: none;
	}

	.akp-plm__panel.is-active {
		flex-direction: column;
	}

	.akp-plm__media {
		flex: none;
		height: 320px;
	}

	.akp-plm__content {
		padding: 24px;
	}
}

/* Phones (≤767px): pills scroll horizontally, compact panel */
@media (max-width: 767px) {
	.akp-plm__nav {
		flex-wrap: nowrap;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		/* no visible scrollbar; a right-edge fade hints that it scrolls */
		scrollbar-width: none;
		-webkit-mask-image: linear-gradient(to right, #000 calc(100% - 56px), transparent);
		mask-image: linear-gradient(to right, #000 calc(100% - 56px), transparent);
	}

	.akp-plm__nav::-webkit-scrollbar {
		display: none;
	}

	.akp-plm__nav.akp-plm__nav--end {
		-webkit-mask-image: none;
		mask-image: none;
	}

	.akp-plm__media {
		height: 220px;
	}

	.akp-plm__content {
		padding: 20px;
	}

	.akp-plm__title {
		font-size: 20px;
	}

	.akp-plm__outcomes li {
		font-size: 15px;
	}

	.akp-plm__cta {
		display: block;
		text-align: center;
	}
}
