/**
 * Single membre d'équipe (CPT equipe)
 */

.equipe-single :is(h1, h2, h3, h4, h5, h6) {
	font-family: 'Century Gothic', CenturyGothic, AppleGothic, sans-serif;
	font-weight: 400;
}

/* -------------------------------------------------------------------------- */
/* Hero profil */
/* -------------------------------------------------------------------------- */

.equipe-hero {
	padding: 40px 0 56px;
	background: linear-gradient(180deg, #f4f8fc 0%, #fff 100%);
}

.equipe-hero__inner {
	display: flex;
	align-items: center;
	gap: 40px;
	max-width: 1200px;
	padding: 32px 36px;
	background: #fff;
	border: 1px solid rgba(0, 78, 144, 0.1);
	border-top: 4px solid var(--hp-primary, #004e90);
	border-radius: 0 16px 16px 16px;
	box-shadow: 0 16px 40px rgba(5, 49, 87, 0.08);
}

.equipe-hero__photo {
	flex-shrink: 0;
	width: min(100%, 280px);
	border-radius: 12px;
	overflow: hidden;
	background: #e8f0f6;
	box-shadow: 0 8px 24px rgba(5, 49, 87, 0.12);
}

.equipe-hero__img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	object-position: center top;
}

.equipe-hero__content {
	flex: 1 1 auto;
	min-width: 0;
}

.equipe-hero__content--solo {
	max-width: 720px;
}

.equipe-hero__back {
	margin: 0 0 18px;
}

.equipe-hero__back a {
	color: var(--hp-primary, #004e90);
	font-family: 'Segoe UI', sans-serif;
	font-size: 14px;
	font-weight: 500;
	text-decoration: none;
	transition: color 0.2s ease;
}

.equipe-hero__back a:hover,
.equipe-hero__back a:focus-visible {
	color: #0073ba;
	text-decoration: underline;
}

.equipe-hero__title {
	margin: 0 0 10px;
	color: var(--hp-primary, #004e90);
	font-size: 38px;
	font-weight: 700;
	line-height: 1.2;
}

.equipe-hero__role {
	margin: 0 0 8px;
	color: #0073ba;
	font-family: 'Segoe UI', sans-serif;
	font-size: 19px;
	font-weight: 600;
	line-height: 1.45;
}

.equipe-hero__city {
	margin: 0 0 26px;
	color: #5a6472;
	font-family: 'Segoe UI', sans-serif;
	font-size: 17px;
	font-weight: 400;
	line-height: 1.5;
}

.equipe-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.equipe-hero__btn.hp-btn {
	min-width: 0;
	text-transform: none;
	font-weight: 600;
}

.equipe-hero__btn--phone {
	border: 0;
	background-color: #fed170;
	color: #1a1a1a;
	box-shadow: 0 4px 16px rgba(254, 209, 112, 0.45);
}

.equipe-hero__btn--phone:hover,
.equipe-hero__btn--phone:focus-visible {
	background-color: #ffc84a;
	color: #1a1a1a;
	box-shadow: 0 8px 22px rgba(254, 209, 112, 0.55);
}

.equipe-hero__btn--contact {
	border: 1px solid var(--hp-primary, #004e90);
	background-color: transparent;
	color: var(--hp-primary, #004e90);
	box-shadow: none;
}

.equipe-hero__btn--contact:hover,
.equipe-hero__btn--contact:focus-visible {
	background-color: var(--hp-primary, #004e90);
	color: #fff;
	box-shadow: 0 8px 22px rgba(0, 78, 144, 0.25);
}

/* -------------------------------------------------------------------------- */
/* Contenu éditorial (entre hero et spécialités) */
/* -------------------------------------------------------------------------- */

.equipe-intro {
	padding: 8px 0 48px;
	background: #fff;
}

.equipe-intro__inner {
	max-width: 820px;
}

.equipe-intro__content {
	color: #3a3a3a;
	font-family: 'Segoe UI', sans-serif;
	font-size: 17px;
	line-height: 1.7;
}

.equipe-intro__content > :first-child {
	margin-top: 0;
}

.equipe-intro__content > :last-child {
	margin-bottom: 0;
}

.equipe-intro__content :is(h3, h4) {
	margin: 1.6em 0 0.6em;
	color: var(--hp-primary, #004e90);
	font-family: 'Century Gothic', CenturyGothic, AppleGothic, sans-serif;
	font-weight: 600;
	line-height: 1.3;
}

.equipe-intro__content h2 {
	font-family: 'Century Gothic', CenturyGothic, AppleGothic, sans-serif;
	font-weight: 600;
}

.equipe-intro__content h3 {
	font-size: 22px;
}

.equipe-intro__content p {
	margin: 0 0 1em;
}

.equipe-intro__content ul,
.equipe-intro__content ol,
.equipe-intro__content .wp-block-list {
	margin: 0 0 1.5em;
	padding-left: 1.35em;
	list-style-position: outside;
}

.equipe-intro__content ul,
.equipe-intro__content ul.wp-block-list {
	list-style-type: disc;
}

.equipe-intro__content ol {
	list-style-type: decimal;
}

.equipe-intro__content li {
	margin-bottom: 0.5em;
	line-height: 1.65;
}

.equipe-intro__content li:last-child {
	margin-bottom: 0;
}

.equipe-intro__content ul li::marker {
	color: #0073ba;
}

.equipe-intro__content ol li::marker {
	color: var(--hp-primary, #004e90);
	font-weight: 600;
}

.equipe-intro__content ul ul,
.equipe-intro__content ol ol,
.equipe-intro__content ul ol,
.equipe-intro__content ol ul {
	margin-top: 0.5em;
	margin-bottom: 0.5em;
}

.equipe-intro__content a {
	color: var(--hp-blue, #0092f2);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.equipe-intro__content a:hover,
.equipe-intro__content a:focus-visible {
	color: var(--hp-primary, #004e90);
}

/* -------------------------------------------------------------------------- */
/* Spécialités (garanties) */
/* -------------------------------------------------------------------------- */

.equipe-specialites {
	padding: 56px 0 72px;
	background: #f7f9fb;
}

.equipe-specialites__inner {
	max-width: 1200px;
}

.equipe-specialites__title {
	margin: 0 0 32px;
	color: var(--hp-primary, #004e90);
	font-size: 32px;
	line-height: 1.25;
	text-align: center;
}

.equipe-specialites__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
}

.equipe-specialites__card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid rgba(0, 78, 144, 0.12);
	border-radius: 12px;
	background: #fff;
	box-shadow: 0 10px 28px rgba(5, 49, 87, 0.08);
	text-decoration: none;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.equipe-specialites__card:hover,
.equipe-specialites__card:focus-visible {
	transform: translateY(-4px);
	box-shadow: 0 16px 36px rgba(5, 49, 87, 0.14);
}

.equipe-specialites__thumb {
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: #e8f0f6;
}

.equipe-specialites__img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.equipe-specialites__card:hover .equipe-specialites__img,
.equipe-specialites__card:focus-visible .equipe-specialites__img {
	transform: scale(1.04);
}

.equipe-specialites__name {
	margin: 0;
	padding: 18px 20px 22px;
	color: var(--hp-primary, #004e90);
	font-size: 18px;
	font-weight: 600;
	line-height: 1.35;
	text-align: center;
}

/* -------------------------------------------------------------------------- */
/* Responsive */
/* -------------------------------------------------------------------------- */

@media (max-width: 991px) {
	.equipe-specialites__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.equipe-hero__inner {
		gap: 32px;
	}

	.equipe-hero__title {
		font-size: 34px;
	}
}

@media (max-width: 767px) {
	.equipe-hero {
		padding: 24px 0 40px;
	}

	.equipe-hero__inner {
		flex-direction: column;
		align-items: stretch;
		padding: 24px 20px;
		text-align: center;
	}

	.equipe-hero__photo {
		width: min(100%, 240px);
		margin: 0 auto;
	}

	.equipe-hero__actions {
		justify-content: center;
	}

	.equipe-hero__btn.hp-btn {
		width: 100%;
		max-width: 300px;
	}

	.equipe-specialites__grid {
		grid-template-columns: 1fr;
	}

	.equipe-specialites__title {
		font-size: 26px;
	}

	.equipe-intro {
		padding-bottom: 36px;
	}
}
