:root {
	--masco-team-primary: #0b7d76;
	--masco-team-primary-dark: #0a4f4b;
	--masco-team-secondary: #f4f7f1;
	--masco-team-accent: #c7e6c3;
	--masco-team-text: #17312f;
	--masco-team-muted: #617772;
	--masco-team-white: #ffffff;
	--masco-team-border: rgba(11, 125, 118, 0.14);
	--masco-team-shadow: 0 22px 50px rgba(12, 43, 39, 0.12);
	--masco-team-radius-lg: 28px;
	--masco-team-radius-md: 20px;
	--masco-team-radius-sm: 14px;
	--masco-team-button-radius: 999px;
}

.masco-team-section,
.masco-team-shell,
.masco-team-profile {
	color: var(--masco-team-text);
}

.masco-team-shell {
	width: min(1200px, calc(100% - 32px));
	margin: 0 auto 80px;
}

.masco-team-archive-hero,
.masco-team-single-hero,
.masco-team-profile-header {
	position: relative;
	overflow: hidden;
	background:
		radial-gradient(circle at top left, rgba(199, 230, 195, 0.85), transparent 38%),
		linear-gradient(135deg, rgba(11, 125, 118, 0.12), rgba(255, 255, 255, 0.98)),
		var(--masco-team-secondary);
	border: 1px solid var(--masco-team-border);
	border-radius: var(--masco-team-radius-lg);
	box-shadow: var(--masco-team-shadow);
	padding: 44px;
	margin: 24px auto 34px;
	width: min(1200px, calc(100% - 32px));
}

.masco-team-archive-hero::after,
.masco-team-single-hero::after,
.masco-team-profile-header::after {
	content: "";
	position: absolute;
	inset: auto -60px -60px auto;
	width: 180px;
	height: 180px;
	background: linear-gradient(135deg, rgba(11, 125, 118, 0.18), rgba(11, 125, 118, 0));
	border-radius: 50%;
}

.masco-team-hero-kicker,
.masco-team-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 8px 14px;
	border-radius: 999px;
	background: rgba(11, 125, 118, 0.1);
	color: var(--masco-team-primary);
	font-size: 0.83rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.masco-team-hero-title,
.masco-team-single-title,
.masco-team-profile-title {
	margin: 16px 0 12px;
	font-size: clamp(2rem, 3.2vw, 3.4rem);
	line-height: 1.05;
	color: var(--masco-team-primary-dark);
}

.masco-team-hero-text,
.masco-team-single-subtitle,
.masco-team-profile-quote {
	max-width: 760px;
	margin: 0;
	color: var(--masco-team-muted);
	font-size: 1.02rem;
	line-height: 1.8;
}

.masco-team-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 28px;
}

.masco-team-grid.columns-1 {
	grid-template-columns: 1fr;
}

.masco-team-grid.columns-2 {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.masco-team-grid.columns-4 {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.masco-team-card {
	position: relative;
	display: flex;
	flex-direction: column;
	height: 100%;
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 247, 241, 0.98));
	border: 1px solid var(--masco-team-border);
	border-radius: var(--masco-team-radius-md);
	box-shadow: 0 16px 34px rgba(18, 41, 38, 0.08);
	overflow: hidden;
	transform: translateY(0);
	transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.masco-team-card:hover {
	transform: translateY(-6px);
	box-shadow: 0 24px 44px rgba(18, 41, 38, 0.16);
	border-color: rgba(11, 125, 118, 0.25);
}

.masco-team-card-media {
	position: relative;
	display: block;
	overflow: hidden;
	aspect-ratio: 4 / 4.2;
	background: linear-gradient(135deg, rgba(11, 125, 118, 0.18), rgba(199, 230, 195, 0.6));
}

.masco-team-card-image,
.masco-team-profile-image,
.masco-team-gallery-image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s ease;
}

.masco-team-card:hover .masco-team-card-image {
	transform: scale(1.06);
}

.masco-team-card-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, transparent 45%, rgba(10, 79, 75, 0.22) 100%);
}

.masco-team-card-image--placeholder,
.masco-team-profile-image--placeholder {
	min-height: 340px;
	background:
		linear-gradient(135deg, rgba(11, 125, 118, 0.16), rgba(199, 230, 195, 0.8)),
		repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.18) 0, rgba(255, 255, 255, 0.18) 14px, rgba(255, 255, 255, 0.04) 14px, rgba(255, 255, 255, 0.04) 28px);
}

.masco-team-card-body {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	padding: 24px;
}

.masco-team-badge {
	display: inline-flex;
	align-self: flex-start;
	padding: 8px 14px;
	border-radius: 999px;
	background: rgba(11, 125, 118, 0.09);
	color: var(--masco-team-primary);
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.masco-team-card-title {
	margin: 18px 0 10px;
	font-size: 1.5rem;
	line-height: 1.2;
}

.masco-team-card-title a {
	color: var(--masco-team-primary-dark);
	text-decoration: none;
}

.masco-team-card-title a:hover {
	color: var(--masco-team-primary);
}

.masco-team-card-excerpt {
	color: var(--masco-team-muted);
	line-height: 1.75;
}

.masco-team-card-excerpt p {
	margin: 0;
}

.masco-team-card-footer {
	margin-top: auto;
	padding-top: 18px;
}

.masco-team-button,
.masco-team-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 13px 20px;
	border-radius: var(--masco-team-button-radius);
	background: var(--masco-team-primary);
	color: var(--masco-team-white);
	text-decoration: none;
	font-weight: 700;
	transition: transform 0.25s ease, background-color 0.25s ease, color 0.25s ease;
}

.masco-team-button:hover,
.masco-team-pagination .page-numbers:hover {
	background: var(--masco-team-primary-dark);
	color: var(--masco-team-white);
	transform: translateY(-2px);
}

.masco-team-button--ghost {
	background: transparent;
	border: 1px solid rgba(11, 125, 118, 0.22);
	color: var(--masco-team-primary-dark);
}

.masco-team-button--ghost:hover {
	border-color: var(--masco-team-primary-dark);
}

.masco-team-empty {
	padding: 28px;
	background: #f8fbf7;
	border: 1px dashed rgba(11, 125, 118, 0.25);
	border-radius: var(--masco-team-radius-md);
	color: var(--masco-team-muted);
}

.masco-team-pagination {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 32px;
}

.masco-team-pagination .page-numbers {
	min-width: 46px;
}

.masco-team-pagination .current {
	background: var(--masco-team-primary-dark);
}

.masco-team-profile-header {
	margin: 0 0 28px;
	width: 100%;
}

.masco-team-detail-card {
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 247, 241, 0.96));
	border: 1px solid var(--masco-team-border);
	border-radius: var(--masco-team-radius-lg);
	box-shadow: var(--masco-team-shadow);
	padding: 32px;
}

.masco-team-detail-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
	gap: 32px;
	align-items: start;
}

.masco-team-detail-media {
	overflow: hidden;
	border-radius: 24px;
	background: linear-gradient(135deg, rgba(11, 125, 118, 0.14), rgba(199, 230, 195, 0.62));
}

.masco-team-profile-image {
	min-height: 100%;
	max-height: 620px;
}

.masco-team-detail-sidebar {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.masco-team-detail-quickfacts {
	display: grid;
	gap: 14px;
}

.masco-team-fact {
	padding: 16px 18px;
	background: var(--masco-team-white);
	border: 1px solid rgba(11, 125, 118, 0.11);
	border-radius: 18px;
}

.masco-team-fact-label {
	display: block;
	margin-bottom: 6px;
	color: var(--masco-team-primary);
	font-size: 0.82rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.masco-team-fact-value,
.masco-team-fact-value a {
	color: var(--masco-team-primary-dark);
	font-weight: 600;
	text-decoration: none;
	word-break: break-word;
}

.masco-team-socials-label,
.masco-team-section-title {
	margin-bottom: 14px;
	font-size: 1.1rem;
	font-weight: 700;
	color: var(--masco-team-primary-dark);
}

.masco-team-socials-list {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.masco-team-social-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 10px 14px;
	background: rgba(11, 125, 118, 0.08);
	border-radius: 999px;
	color: var(--masco-team-primary-dark);
	font-weight: 700;
	text-decoration: none;
}

.masco-team-social-link:hover {
	background: var(--masco-team-primary);
	color: var(--masco-team-white);
}

.masco-team-content {
	margin-top: 36px;
	color: var(--masco-team-text);
	line-height: 1.9;
}

.masco-team-content > :first-child {
	margin-top: 0;
}

.masco-team-content h2,
.masco-team-content h3,
.masco-team-content h4 {
	color: var(--masco-team-primary-dark);
	margin-top: 1.45em;
	margin-bottom: 0.55em;
}

.masco-team-gallery-section {
	margin-top: 42px;
}

.masco-team-gallery-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 18px;
}

.masco-team-gallery-item {
	display: block;
	overflow: hidden;
	border-radius: 20px;
	box-shadow: 0 18px 34px rgba(18, 41, 38, 0.12);
}

.masco-team-gallery-item:hover .masco-team-gallery-image {
	transform: scale(1.05);
}

.masco-team-gallery-image {
	aspect-ratio: 1 / 1;
}

.masco-team-backlink-wrap {
	margin-top: 36px;
}

.reveal-on-scroll {
	opacity: 0;
	transform: translateY(24px);
	transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal-on-scroll.is-visible {
	opacity: 1;
	transform: translateY(0);
}

@media (max-width: 1199px) {
	.masco-team-grid,
	.masco-team-grid.columns-3,
	.masco-team-grid.columns-4 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.masco-team-gallery-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.masco-team-detail-grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 767px) {
	.masco-team-archive-hero,
	.masco-team-single-hero,
	.masco-team-profile-header,
	.masco-team-detail-card {
		padding: 24px;
		border-radius: 22px;
	}

	.masco-team-shell,
	.masco-team-archive-hero,
	.masco-team-single-hero {
		width: min(100% - 20px, 1200px);
	}

	.masco-team-grid,
	.masco-team-grid.columns-2,
	.masco-team-grid.columns-3,
	.masco-team-grid.columns-4,
	.masco-team-gallery-grid {
		grid-template-columns: 1fr;
	}

	.masco-team-card-body {
		padding: 20px;
	}

	.masco-team-profile-image {
		max-height: 420px;
	}
}


.masco-team-breadcrumb-shell {
	margin-top: 24px;
	margin-bottom: 0;
}

.masco-team-breadcrumb {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 9px;
	padding: 14px 18px;
	border: 1px solid var(--masco-team-border);
	border-radius: var(--masco-team-radius-sm);
	background: rgba(255, 255, 255, 0.92);
	box-shadow: 0 10px 24px rgba(18, 41, 38, 0.06);
	color: var(--masco-team-muted);
	font-size: 0.94rem;
}

.masco-team-breadcrumb a {
	color: var(--masco-team-primary-dark);
	font-weight: 700;
	text-decoration: none;
}

.masco-team-breadcrumb a:hover {
	color: var(--masco-team-primary);
}

.masco-team-breadcrumb strong {
	color: var(--masco-team-text);
	font-weight: 700;
}


.masco-team-shortcode-heading {
	text-align: center;
	max-width: 820px;
	margin: 0 auto 34px;
}

.masco-team-shortcode-title {
	margin: 0 0 10px;
	font-size: clamp(2rem, 3vw, 3rem);
	line-height: 1.08;
	color: var(--masco-team-primary-dark);
}

.masco-team-shortcode-subtitle {
	margin: 0;
	color: var(--masco-team-muted);
	font-size: 1.05rem;
	line-height: 1.7;
}

.masco-team-single-hero--image {
	width: 100%;
	max-width: none;
	min-height: 360px;
	margin: 0 0 60px;
	border-radius: 0;
	border: 0;
	background-size: cover;
	background-position: center;
	box-shadow: none;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
}

.masco-team-single-hero--image::after {
	display: none;
}

.masco-team-single-hero-inner {
	position: relative;
	z-index: 1;
	width: min(1100px, calc(100% - 32px));
	margin: 0 auto;
}

.masco-team-single-hero--image .masco-team-breadcrumb {
	justify-content: center;
	width: fit-content;
	margin: 0 auto 18px;
	background: rgba(255, 255, 255, 0.14);
	border-color: rgba(255, 255, 255, 0.24);
	box-shadow: none;
	color: rgba(255, 255, 255, 0.88);
	backdrop-filter: blur(4px);
}

.masco-team-single-hero--image .masco-team-breadcrumb a,
.masco-team-single-hero--image .masco-team-breadcrumb strong {
	color: #ffffff;
}

.masco-team-single-hero--image .masco-team-hero-kicker {
	background: rgba(255, 255, 255, 0.16);
	color: #ffffff;
}

.masco-team-single-hero--image .masco-team-single-title,
.masco-team-single-hero--image .masco-team-single-subtitle {
	color: #ffffff;
	margin-left: auto;
	margin-right: auto;
}

/* v1.12 - Loader pagination + corrections mobile detail */
.masco-team-section--with-loader {
	position: relative;
}

.masco-team-section--with-loader::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 20;
	background: rgba(255, 255, 255, 0.72);
	backdrop-filter: blur(2px);
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.2s ease;
}

.masco-team-section--with-loader::after {
	content: "";
	position: fixed;
	left: 50%;
	top: 50%;
	z-index: 21;
	width: 46px;
	height: 46px;
	margin: -23px 0 0 -23px;
	border-radius: 50%;
	border: 4px solid rgba(11, 125, 118, 0.18);
	border-top-color: var(--masco-team-primary);
	opacity: 0;
	pointer-events: none;
	animation: masco-team-spin 0.8s linear infinite;
}

.masco-team-section--with-loader.is-loading::before,
.masco-team-section--with-loader.is-loading::after {
	opacity: 1;
	pointer-events: auto;
}

@keyframes masco-team-spin {
	to { transform: rotate(360deg); }
}

.masco-team-card--simple .masco-team-card-title {
	margin-top: 0;
}

.masco-team-card--simple .masco-team-card-footer {
	padding-top: 8px;
}

@media (max-width: 767px) {
	.masco-team-shell {
		width: min(100% - 28px, 1200px);
		margin-left: auto;
		margin-right: auto;
	}

	.masco-team-profile,
	.masco-team-detail-card,
	.masco-team-detail-grid,
	.masco-team-detail-media {
		max-width: 100%;
	}

	.masco-team-detail-card {
		padding: 18px;
	}

	.masco-team-detail-media {
		border-radius: 18px;
	}

	.masco-team-profile-image {
		width: 100%;
		max-height: none;
		min-height: 0;
		aspect-ratio: 4 / 4.5;
		object-fit: cover;
	}

	.masco-team-single-hero--image {
		min-height: 300px;
		margin-bottom: 32px;
	}

	.masco-team-single-title {
		font-size: clamp(2rem, 10vw, 3rem);
	}

	.masco-team-breadcrumb {
		font-size: 0.82rem;
		padding: 10px 12px;
	}
}

/* v1.13 - Loader profil/retour + respiration mobile */
body.masco-team-global-loading::before {
	content: "";
	position: fixed;
	inset: 0;
	z-index: 99998;
	background: rgba(255, 255, 255, 0.72);
	backdrop-filter: blur(2px);
}
body.masco-team-global-loading::after {
	content: "";
	position: fixed;
	left: 50%;
	top: 50%;
	z-index: 99999;
	width: 48px;
	height: 48px;
	margin: -24px 0 0 -24px;
	border-radius: 50%;
	border: 4px solid rgba(11, 125, 118, 0.18);
	border-top-color: var(--masco-team-primary);
	animation: masco-team-spin 0.8s linear infinite;
}
@media (max-width: 767px) {
	.masco-team-section {
		padding-left: max(16px, env(safe-area-inset-left)) !important;
		padding-right: max(16px, env(safe-area-inset-right)) !important;
		box-sizing: border-box;
	}
	.masco-team-section .masco-team-grid { gap: 24px; }
	.masco-team-section .masco-team-card { width: 100%; max-width: 100%; border-radius: 24px; }
	.masco-team-section .masco-team-card-media { border-radius: 24px 24px 0 0; }
	.masco-team-section .masco-team-card-body { padding: 24px 22px 28px; }
	.masco-team-shell {
		width: auto !important;
		margin-left: max(16px, env(safe-area-inset-left)) !important;
		margin-right: max(16px, env(safe-area-inset-right)) !important;
	}
	.masco-team-profile { padding-left: 0; padding-right: 0; }
	.masco-team-detail-card { padding: 16px; border-radius: 24px; }
	.masco-team-detail-media { margin: 0; overflow: hidden; border-radius: 22px; }
	.masco-team-profile-image { border-radius: 22px; }
	.masco-team-backlink-wrap { padding-bottom: 8px; }
}
