


/* Chiffres clés Erhard */
/* ------------------------------------------------------------------------------------------------------------- */
.chiffres-cles {
	display: flex;
	align-items: stretch;
	justify-content: center;
	gap: 22px;
}
	.chiffre-cle {
		flex: 1 1 0;
		min-width: 0;
		text-align: center;
		display: flex;
		flex-direction: column;
		opacity: 0;
		transform: translateY(15px);
		transition: opacity .5s ease, transform .5s ease;
	}
		.chiffre-cle:has(.chiffre-cle-valeur.anime) {
			opacity: 1;
			transform: translateY(0);
		}
		.chiffre-cle:nth-child(2) { transition-delay: .1s; }
		.chiffre-cle:nth-child(3) { transition-delay: .2s; }
		.chiffre-cle:nth-child(4) { transition-delay: .3s; }
		.chiffre-cle:nth-child(5) { transition-delay: .4s; }
		.chiffre-cle:nth-child(6) { transition-delay: .5s; }

		.chiffre-cle-image {
			height: 62px;
			display: flex;
			align-items: center;
			justify-content: center;
			margin-bottom: 10px;
		}
			.chiffre-cle-image img {
				width: auto;
				height: 46px;
				max-width: 60px;
				object-fit: contain;
			}
		.chiffre-cle-texte {
			flex: 1;
			min-height: 135px;
			padding: 14px 18px 16px;
			background: var(--blanc);
			border: 1px solid var(--brun);
			border-radius: 16px;
			box-sizing: border-box;
			display: flex;
			flex-direction: column;
			align-items: center;
			justify-content: center;
		}
		.chiffre-cle-nombre {
			font-family: 'Outfit', sans-serif;
			font-size: 46px;
			line-height: 1;
			font-weight: 600;
			color: var(--brun);
			white-space: nowrap;
			margin-bottom: 14px;
		}
		.chiffre-cle-signe {
			font: inherit;
		}
		.chiffre-cle-phrase {
			font-family: 'Manrope', sans-serif;
			font-size: 17px;
			line-height: 1.05;
			font-weight: 400;
			color: var(--noir);
			max-width: 180px;
		}
@media (min-width: 1200px) {
	.chiffre-cle:hover .chiffre-cle-texte {
		box-shadow: 0 3px 14px rgba(0,0,0,.2);
	}
	.chiffre-cle:hover .chiffre-cle-image {
		transform: translateY(2px);
	}
}



/* Tablette */
@media (max-width: 1000px) {
	.chiffres-cles {
		flex-wrap: wrap;
	}
	.chiffre-cle {
		flex: 0 0 calc(33.333% - 15px);
	}
}

/* Mobile */
@media (max-width: 690px) {
	.chiffre-cle {
		flex: 0 0 calc(50% - 11px);
	}
	.chiffre-cle-nombre {
		font-size: 34px;
	}
}

/* Petit mobile */
/*
@media (max-width: 480px) {
	.chiffre-cle {
		flex: 0 0 100%;
	}
}
*/





/* Parcours Erhard */
/* ------------------------------------------------------------------------------------------------------------- */
.erhard-parcours {
	display: flex;
	width: 100%;
	gap: 12px;
}
	.erhard-parcours-etape {
		position: relative;
		flex: 1 1 0;
		min-width: 0;
	}
		.erhard-parcours-visuel {
			position: relative;
			height: 120px;
			display: flex;
			align-items: flex-start;
		}
			.erhard-parcours-image {
				width: 108px;
				height: 108px;
				border: 1px solid var(--brundore);
				border-radius: 50%;
				display: flex;
				align-items: center;
				justify-content: center;
				box-sizing: border-box;
			}
				.erhard-parcours-image img {
					width: 54px;
					height: 54px;
					object-fit: contain;
				}
		.erhard-parcours-etape:not(:last-child) .erhard-parcours-visuel::before {
			content: "";
			position: absolute;
			top: 53px;
			left: 125px;
			width: calc(100% - 145px);
			height: 1px;
			background-color: var(--brun);
		}
		.erhard-parcours-etape:not(:last-child) .erhard-parcours-visuel::after {
			content: "";
			position: absolute;
			top: 49px;
			right: 15px;
			width: 8px;
			height: 8px;
			border-top: 1px solid var(--brun);
			border-right: 1px solid var(--brun);
			transform: rotate(45deg);
		}
		.erhard-parcours-contenu {
			padding-top: 10px;
			padding-right: 5px;
		}
		.erhard-parcours-titre {
			min-height: 42px;
			margin-bottom: 8px;
			font-family: 'Outfit', sans-serif;
			font-size: 17px;
			line-height: 1.05;
			font-weight: 500;
			text-transform: uppercase;
			color: var(--noir);
		}
		.erhard-parcours-texte {
			max-width: 90%;
			font-size: 16px;
			line-height: 21px;
			font-weight: 400;
			color: var(--noir);
		}
@media (min-width: 1200px) {
	.erhard-parcours-etape:hover .erhard-parcours-image {
		border: 2px solid var(--brundore);
	}
}

/* Tablette */
@media (max-width: 1100px) {
	.erhard-parcours {
		flex-wrap: wrap;
		gap: 35px 4%;
	}
	.erhard-parcours-etape {
		flex: 0 0 30.66%;
	}
	.erhard-parcours-etape:nth-child(3n) .erhard-parcours-visuel::after {
		display: none;
	}
}

/* Mobile */
@media (max-width: 690px) {
	.erhard-parcours {
		display: block;
	}
	.erhard-parcours-etape {
		display: grid;
		grid-template-columns: 90px 1fr;
		gap: 20px;
		margin-bottom: 30px;
	}
	.erhard-parcours-visuel {
		height: auto;
	}
	.erhard-parcours-image {
		width: 90px;
		height: 90px;
	}
	.erhard-parcours-image img {
		width: 45px;
		height: 45px;
	}
	.erhard-parcours-etape:not(:last-child) .erhard-parcours-visuel::after {
		display: none;
	}
	.erhard-parcours-contenu {
		padding-top: 8px;
	}
	.erhard-parcours-titre {
		min-height: 0;
	}
}
@media (max-width: 1100px) {
	.erhard-parcours-etape:nth-child(3n) .erhard-parcours-visuel::before,
	.erhard-parcours-etape:nth-child(3n) .erhard-parcours-visuel::after {
		display: none;
	}
}
@media (max-width: 690px) {
	.erhard-parcours-etape:not(:last-child) .erhard-parcours-visuel::before,
	.erhard-parcours-etape:not(:last-child) .erhard-parcours-visuel::after {
		display: none;
	}
}
@media (min-width: 1101px) {
	.erhard-parcours-etape {
		opacity: 0;
		transform: translateX(-20px);
		animation: parcours-apparition .6s ease forwards;
	}
	.erhard-parcours-etape:nth-child(1) { animation-delay: 0s; }
	.erhard-parcours-etape:nth-child(2) { animation-delay: .15s; }
	.erhard-parcours-etape:nth-child(3) { animation-delay: .3s; }
	.erhard-parcours-etape:nth-child(4) { animation-delay: .45s; }
	.erhard-parcours-etape:nth-child(5) { animation-delay: .6s; }
	.erhard-parcours-etape:nth-child(6) { animation-delay: .75s; }
	@keyframes parcours-apparition {
		to {
			opacity: 1;
			transform: translateX(0);
		}
	}
}



/* Valeurs Erhard */
.valeurs .vc_column-inner .wpb_wrapper .wpb_text_column h2 {
	color: var(--blanc);
	margin-bottom: 20px;
}
.valeurs-erhard {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 26px 16px;
}
	.valeur-erhard {
		text-align: center;
		display: flex;
		flex-direction: column;
		align-items: center;
	}
		.valeur-erhard-icone {
			height: 38px;
			margin-bottom: 6px;
			display: flex;
			align-items: center;
			justify-content: center;
		}
			.valeur-erhard-icone img {
				width: 32px;
				height: 32px;
				object-fit: contain;
			}
		.valeur-erhard-titre,
		.valeur-erhard-texte {
			background: rgba(255,255,255,.92);
			width: 100%;
		}
		.valeur-erhard-titre {
			color: var(--brun);
			font-size: 22px;
			font-weight: 700;
			line-height: 1.2;
			padding: 18px 15px 4px;
			border: 1px solid var(--brun);
			border-bottom: 0;
			border-radius: 6px 6px 0 0;
		}
		.valeur-erhard-texte {
			font-size: 15px;
			line-height: 19px;
			padding: 4px 15px 14px;
			border: 1px solid var(--brun);
			border-top: 0;
			border-radius: 0 0 6px 6px;
		}




/* Chronologie Erhard */
/* ------------------------------------------------------------------------------------- */
.chronologie-erhard {
	position: relative;
	max-width: 1100px;
	margin: 0 auto;
	padding: 20px 0;
}
.chronologie-erhard::before {
	content: "";
		position: absolute;
		top: 130px;
		bottom: 130px;
		left: 50%;
		width: 3px;
		background: #111;
		transform: translateX(-50%);
}
	.chronologie-erhard-item {
		position: relative;
		display: grid;
		grid-template-columns: 1fr 1fr;
		align-items: center;
		min-height: 220px;
		gap: 110px;
	}
	.chronologie-erhard-item::before {
		content: "";
		position: absolute;
		z-index: 2;
		top: 50%;
		left: 50%;
		width: 27px;
		height: 27px;
		background: var(--brun);
		border-radius: 50%;
		transform: translate(-50%, -50%);
	}
	.chronologie-erhard-image {
		position: absolute;
	    width: 200px;
	    height: auto;
	    top: 32px;
	}
		.chronologie-erhard-image img {
		    border-radius: 8px;
		}
	.chronologie-erhard-contenu {
		display: contents;
	}
		/*
		.chronologie-erhard-titre {
			position: relative;
			z-index: 1;
			width: 330px;
			margin: 0;
			padding: 18px 0;
			font-size: 30px;
			line-height: 1.1;
			font-weight: 500;
			color: var(--noir);
		}
		.chronologie-erhard-titre::before {
			content: "";
			position: absolute;
			z-index: -1;
			top: 50%;
			width: 195px;
			height: 103px;
			background: var(--bruntresclair);
			border-radius: 28px;
			transform: translateY(-50%);
		}
		*/
		.chronologie-erhard-titre {
		    position: relative;
		    z-index: 1;
		    width: fit-content;
		    margin: 0;
		    padding: 18px 25px;
		    font-size: 30px;
		    line-height: 1.1;
		    font-weight: 500;
		    color: var(--noir);
		    background: var(--bruntresclair);
		    border-radius: 28px;
		}
		.chronologie-erhard-texte {
			max-width: 450px;
			font-size: 16px;
			line-height: 1.5;
		}
		.chronologie-erhard-texte p:last-child {
			margin-bottom: 0;
		}
			/* Impairs : titre gauche / texte droite */
			.chronologie-erhard-item:nth-child(odd) .chronologie-erhard-image {
				left: 0;
				right: auto;
			}
			.chronologie-erhard-item:nth-child(odd) .chronologie-erhard-titre {
				grid-column: 1;
				grid-row: 1;
				justify-self: end;
				text-align: right;
			}
			.chronologie-erhard-item:nth-child(odd) .chronologie-erhard-titre::before {
				right: -20px;
			}
			.chronologie-erhard-item:nth-child(odd) .chronologie-erhard-texte {
				grid-column: 2;
				grid-row: 1;
				justify-self: start;
			}
			/* Pairs : texte gauche / titre droite */
			.chronologie-erhard-item:nth-child(even) .chronologie-erhard-image {
				right: 0;
				left: auto;
			}
			.chronologie-erhard-item:nth-child(even) .chronologie-erhard-titre {
				grid-column: 2;
				grid-row: 1;
				justify-self: start;
				text-align: left;
			}
			.chronologie-erhard-item:nth-child(even) .chronologie-erhard-titre::before {
				left: -20px;
			}
			.chronologie-erhard-item:nth-child(even) .chronologie-erhard-texte {
				grid-column: 1;
				grid-row: 1;
				justify-self: end;
				text-align: right;
			}
/* Listes */
.chronologie-erhard-texte ul {
	margin: 10px 0 0;
	padding-left: 20px;
}
.chronologie-erhard-texte li {
	margin-bottom: 4px;
}
/* Mobile */
@media (max-width: 767px) {
	.chronologie-erhard {
		padding-left: 45px;
	}
	.chronologie-erhard::before {
		top: 15px;
		bottom: 15px;
		left: 14px;
		transform: none;
	}
	.chronologie-erhard-item {
		display: flex;
		flex-direction: column;
		align-items: flex-start;
		gap: 15px;
		min-height: 0;
		padding: 20px 0 35px;
	}
	.chronologie-erhard-item::before {
		top: 30px;
		left: -31px;
		width: 24px;
		height: 24px;
		transform: none;
	}
	.chronologie-erhard-contenu {
		display: flex;
		flex-direction: column;
		gap: 15px;
	}
	.chronologie-erhard-titre {
		max-width: 100%;
		font-size: 24px;
		text-align: left !important;
	}
	.chronologie-erhard-texte {
		max-width: 100%;
		text-align: left !important;
	}
}





/* Histogramme Erhard */
.histogramme-erhard {
	width: 100%;
	margin: 20px 0 40px 0;
}
	.histogramme-erhard-graphique {
		display: flex;
		align-items: stretch;
		gap: 25px;
		height: 400px;
		padding: 40px 20px 45px;
		border-bottom: 2px solid #20283b;
	}
		.histogramme-erhard-item {
			position: relative;
			flex: 1 1 0;
			height: 100%;
			min-width: 45px;
		}
			.histogramme-erhard-barre {
				position: absolute;
				bottom: 0;
				left: 50%;
				width: 70%;
				max-width: 80px;
				height: var(--hauteur);
				background: var(--brun);
				border-radius: 4px 4px 0 0;
				transform: translateX(-50%) scaleY(1);
				transform-origin: bottom;
				will-change: transform;
			}
			.histogramme-erhard-valeur {
				position: absolute;
				z-index: 2;
				left: 50%;
				bottom: calc(var(--hauteur) + 10px);
				transform: translateX(-50%);
				white-space: nowrap;
				font-size: 16px;
				font-weight: 600;
				color: #20283b;
			}
			.histogramme-erhard-annee {
				position: absolute;
				top: calc(100% + 12px);
				left: 50%;
				transform: translateX(-50%);
				white-space: nowrap;
				font-size: 16px;
				font-weight: 600;
				color: #20283b;
			}

/* Mobile */
@media (max-width: 767px) {
	.histogramme-erhard {
		overflow-x: auto;
		padding-bottom: 10px;
	}
	.histogramme-erhard-graphique {
		width: max-content;
		min-width: 100%;
		height: 300px;
		gap: 15px;
		padding-left: 15px;
		padding-right: 15px;
	}
	.histogramme-erhard-item {
		flex: 0 0 55px;
	}
	.histogramme-erhard-valeur,
	.histogramme-erhard-annee {
		font-size: 13px;
	}
}

/* Accessibilité : désactivation des animations si demandé par l'utilisateur */
@media (prefers-reduced-motion: reduce) {
	.histogramme-erhard-barre {
		transform: translateX(-50%) scaleY(1) !important;
	}
	.histogramme-erhard-valeur {
		opacity: 1 !important;
	}
}
