/**
 * Page « Nos valeurs »
 */

.nv :is(h1, h2, h3, h4, h5, h6) {
	font-family: 'Century Gothic', CenturyGothic, AppleGothic, sans-serif;
	font-weight: 400;
}

.nv-values {
	padding: 56px 0 72px;
	background: #f3f5f7;
}

.nv-values__container {
	max-width: 1200px;
}

.nv-values__nav {
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 14px;
	margin-bottom: 28px;
}

.nv-tab {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 14px;
	padding: 28px 12px 24px;
	border: 2px solid transparent;
	border-radius: 4px;
	background: #fff;
	color: var(--hp-heading, #122b54);
	font-family: 'Segoe UI', sans-serif;
	font-size: 15px;
	line-height: 1.35;
	text-align: center;
	cursor: pointer;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.nv-tab:hover,
.nv-tab:focus-visible {
	border-color: rgba(139, 205, 211, 0.65);
	box-shadow: 0 8px 24px rgba(0, 78, 144, 0.08);
}

.nv-tab.is-active {
	border-color: var(--hp-secondary, #8bcdd3);
	box-shadow: 0 10px 28px rgba(0, 78, 144, 0.1);
}

.nv-tab.is-active::after {
	content: "";
	position: absolute;
	left: 50%;
	bottom: -14px;
	transform: translateX(-50%);
	border-left: 12px solid transparent;
	border-right: 12px solid transparent;
	border-top: 12px solid var(--hp-secondary, #8bcdd3);
}

.nv-tab__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 88px;
	height: 88px;
	border-radius: 50%;
	background: var(--hp-primary, #004e90);
}

.nv-tab__icon img {
	width: 52px;
	height: 52px;
	object-fit: contain;
}

.nv-tab__label {
	display: block;
	max-width: 140px;
}

.nv-values__panels {
	position: relative;
}

.nv-panel {
	display: none;
}

.nv-panel.is-active {
	display: block;
	animation: nv-fade-in 0.35s ease;
}

@keyframes nv-fade-in {
	from {
		opacity: 0;
		transform: translateY(8px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.nv-panel__inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: 40px;
	align-items: center;
	padding: 40px;
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 12px 40px rgba(0, 78, 144, 0.08);
}

.nv-panel__title {
	margin: 0 0 20px;
	color: var(--hp-blue, #0073ba);
	font-size: 28px;
	line-height: 1.35;
}

.nv-panel__text {
	color: #3a3a3a;
	font-family: 'Segoe UI', sans-serif;
	font-size: 17px;
	line-height: 1.75;
}

.nv-panel__text p {
	margin: 0 0 16px;
}

.nv-panel__text p:last-child {
	margin-bottom: 0;
}

.nv-panel__actions {
	margin-top: 28px;
}

.nv-panel__media {
	border-radius: 12px;
	overflow: hidden;
}

.nv-panel__img {
	display: block;
	width: 100%;
	height: auto;
	object-fit: cover;
}

/* Accordéon mobile */
.nv-values__accordion {
	display: none;
}

@media (max-width: 1024px) {
	.nv-values__nav,
	.nv-values__panels {
		display: none;
	}

	.nv-values__accordion {
		display: block;
	}

	.nv-acc-item {
		margin-bottom: 12px;
		border-radius: 8px;
		background: #fff;
		overflow: hidden;
		box-shadow: 0 4px 16px rgba(0, 78, 144, 0.06);
	}

	.nv-acc-item.is-open {
		box-shadow: 0 8px 24px rgba(0, 78, 144, 0.1);
	}

	.nv-acc-trigger {
		display: flex;
		align-items: center;
		gap: 16px;
		width: 100%;
		padding: 16px 18px;
		border: 0;
		background: #fff;
		color: var(--hp-heading, #122b54);
		font-family: 'Segoe UI', sans-serif;
		font-size: 16px;
		text-align: left;
		cursor: pointer;
	}

	.nv-acc-trigger .nv-tab__icon {
		width: 56px;
		height: 56px;
		flex-shrink: 0;
	}

	.nv-acc-trigger .nv-tab__icon img {
		width: 34px;
		height: 34px;
	}

	.nv-acc-body {
		display: none;
		padding: 0 18px 20px;
	}

	.nv-acc-item.is-open .nv-acc-body {
		display: block;
	}

	.nv-acc-body .nv-panel__inner {
		grid-template-columns: 1fr;
		gap: 24px;
		padding: 0;
		border-radius: 0;
		box-shadow: none;
	}

	.nv-acc-body .nv-panel__media {
		order: -1;
	}
}

@media (max-width: 767px) {
	.nv-values {
		padding: 40px 0 56px;
	}
}
