/* ==========================================================================
   CPTS SUD — PAGE D'ACCUEIL
   ========================================================================== */

.cpts-home {
	overflow-x: hidden;
}

.cpts-home-section-title {
	font-size: clamp(1.5rem, 2.4vw, 2rem);
	font-weight: 800;
	color: var(--cpts-primary);
	margin: 0 0 16px;
	line-height: 1.2;
}

.cpts-home-section-title-center {
	text-align: center;
}

.cpts-home-section-lead {
	max-width: 760px;
	margin: 0 auto 28px;
	text-align: center;
	color: var(--cpts-text-muted);
	line-height: 1.55;
}

.cpts-home-eyebrow {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.6px;
	text-transform: uppercase;
	color: var(--cpts-magenta);
	margin: 0 0 10px;
}

.cpts-home-center {
	display: flex;
	justify-content: center;
	margin-top: 28px;
}

/* Buttons */
.cpts-home-btn-magenta,
.cpts-home-btn-orange,
.cpts-home-btn-dark {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 12px 22px;
	border-radius: 8px;
	font-size: 13.5px;
	font-weight: 800;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.cpts-home-btn-magenta {
	background: var(--cpts-magenta);
	color: #fff !important;
	box-shadow: 0 4px 14px rgba(217, 40, 128, 0.25);
}

.cpts-home-btn-magenta:hover {
	background: var(--cpts-magenta-hover);
	transform: translateY(-1px);
}

.cpts-home-btn-orange {
	background: var(--cpts-orange);
	color: #fff !important;
	box-shadow: 0 4px 14px rgba(234, 106, 45, 0.25);
}

.cpts-home-btn-orange:hover {
	filter: brightness(0.95);
	transform: translateY(-1px);
}

.cpts-home-btn-dark {
	background: #334155;
	color: #fff !important;
}

.cpts-home-btn-dark:hover {
	background: #1e293b;
}

/* Hero */
.cpts-home-hero {
	position: relative;
	padding: 0;
	background: #fff;
}

.cpts-home-hero-inner {
	position: absolute;
	top: clamp(18px, 3.5vw, 34px);
	left: 0;
	right: 0;
	z-index: 2;
	text-align: center;
	pointer-events: none;
}

.cpts-home-hero-kicker {
	text-align: center;
	margin: 0 0 12px;
	font-size: clamp(10px, 1.1vw, 12px);
	font-weight: 400;
	letter-spacing: 0.35px;
	color: #da338a;
	text-transform: uppercase;
	white-space: nowrap;
}

.cpts-home-hero-title {
	max-width: none;
	margin: 0 auto;
	text-align: center;
	font-size: clamp(1.125rem, 2.4vw, 2rem);
	font-weight: 400;
	color: #0c4b83;
	line-height: 1.3;
	white-space: nowrap;
}

.cpts-home-hero-title strong {
	font-weight: 700;
}

.cpts-home-hero-visual {
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	overflow: hidden;
}

.cpts-home-hero-scene {
	display: block;
	width: 100%;
	height: auto;
	margin: 0;
	object-fit: cover;
	object-position: center bottom;
}

.cpts-home-hero-ctas {
	display: flex;
	justify-content: center;
	align-items: center;
	flex-wrap: wrap;
	gap: 31px;
	margin-top: -30px;
	position: relative;
	z-index: 2;
	padding-bottom: 24px;
}

.cpts-home-cta {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 25px;
	width: 518px;
	max-width: 518px;
	box-sizing: border-box;
	min-height: 89px;
	padding: 22px 25px;
	border-radius: 17px;
	color: #fff !important;
	box-shadow: 7.8px 7.8px 43px rgba(0, 0, 0, 0.65);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cpts-home-cta:hover {
	transform: translateY(-1px);
	box-shadow: 7.8px 10.4px 53px rgba(0, 0, 0, 0.7);
}

.cpts-home-cta-patient {
	background: var(--cpts-magenta);
}

.cpts-home-cta-pro {
	background: var(--cpts-orange);
}

.cpts-home-cta-icon {
	flex-shrink: 0;
	width: 22px;
	height: 22px;
	filter: brightness(0) invert(1);
}

.cpts-home-cta-text {
	font-size: clamp(10px, 1.05vw, 13px);
	font-weight: 700;
	letter-spacing: 0.15px;
	line-height: 1.2;
	text-transform: uppercase;
	white-space: nowrap;
}

.cpts-home-hero-ctas .cpts-home-cta {
	align-items: center;
	min-height: auto;
	padding: 18px 22px;
	font-weight: 900;
}

.cpts-home-hero-ctas .cpts-home-cta-icon {
	width: 47px;
	height: 47px;
}

.cpts-home-hero-ctas .cpts-home-cta-text {
	flex: 1;
	min-width: 0;
	font-size: 18.14px;
	font-weight: 900;
	line-height: 1.25;
	letter-spacing: 0.13px;
	white-space: normal;
	text-align: left;
}

/* Intro + map */
.cpts-home-intro {
	padding: 28px 0 56px;
	background: #fff;
}

.cpts-home-intro-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
	gap: 24px 40px;
	align-items: center;
}

.cpts-home-intro .cpts-home-eyebrow {
	color: #0c4b83;
	font-size: 10px;
	font-weight: 400;
	letter-spacing: 0.35px;
	margin: 0 0 6px;
}

.cpts-home-intro .cpts-home-section-title {
	color: #da338a;
	font-size: clamp(2.08rem, 3.07vw, 2.5rem);
	font-weight: 300;
	margin: 0 0 14px;
	line-height: 1.2;
}

.cpts-home-intro-content p {
	color: #0c4b83;
	line-height: 1.45;
	margin: 0 0 10px;
	font-size: 18px;
}

.cpts-home-intro-label {
	font-weight: 700;
	color: #0c4b83;
	font-size: 21px;
	margin: 12px 0 8px !important;
	line-height: 1.3;
}

.cpts-home-intro-enjeux p {
	margin: 0 0 10px;
	color: #0c4b83;
	font-size: 18px;
	line-height: 1.45;
}

.cpts-home-intro-enjeux p:last-child {
	margin-bottom: 20px;
}

.cpts-home-intro .cpts-home-btn-magenta {
	padding: 8px 14px;
	font-size: 14px;
	font-weight: 700;
	letter-spacing: 0.4px;
}

.cpts-home-intro-map {
	display: flex;
	justify-content: flex-end;
	align-items: center;
}

.cpts-home-intro-map img {
	display: block;
	width: 100%;
	max-width: 100%;
	height: auto;
	margin: 0;
}

/* News */
.cpts-home-news {
	padding: 44px 0 56px;
	background: #fbe3d8;
}

.cpts-home-news-heading {
	margin: 0 0 32px;
	text-align: center;
}

.cpts-home-news-heading-inner {
	position: relative;
	display: inline-block;
}

.cpts-home-news-heading-text {
	font-size: clamp(1.75rem, 2.6vw, 2.25rem);
	font-weight: 400;
	color: #004080;
	letter-spacing: 0.4px;
	line-height: 1.2;
}

.cpts-home-news-heading-sun {
	position: absolute;
	top: -31px;
	right: -38px;
	width: 63px;
	height: auto;
	pointer-events: none;
}

.cpts-home-news-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 20px;
}

.cpts-home-news-card {
	background: #fff;
	border-radius: 16px;
	overflow: hidden;
	box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
	display: flex;
	flex-direction: column;
}

.cpts-home-news-media-wrap {
	position: relative;
	width: 100%;
	padding: 8px 8px 0;
}

.cpts-home-news-media {
	display: block;
	position: relative;
	width: 100%;
	aspect-ratio: 108 / 61.5;
	overflow: hidden;
	border-radius: 10px;
	background: #fff;
}

.cpts-home-news-media img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	display: block;
}

.cpts-home-news-tag {
	position: absolute;
	left: 14px;
	bottom: 0;
	z-index: 2;
	transform: translateY(50%);
	display: inline-block;
	padding: 5px 10px;
	border-radius: 4px;
	font-size: 10px;
	font-weight: 800;
	letter-spacing: 0.4px;
	text-transform: uppercase;
	color: #fff;
	line-height: 1.2;
}

.cpts-home-news-tag--event {
	background: var(--cpts-magenta);
}

.cpts-home-news-tag--news {
	background: #ffbc00;
}

.cpts-home-news-tag--covid {
	background: #4b488b;
}

.cpts-home-news-tag--screening {
	background: #4e3f83;
}

.cpts-home-news-body {
	padding: 24px 16px 18px;
}

.cpts-home-news-title {
	font-size: 14px;
	font-weight: 700;
	margin: 0 0 10px;
	line-height: 1.35;
	color: #004080;
	text-transform: uppercase;
}

.cpts-home-news-title a {
	color: inherit;
}

.cpts-home-news-title a:hover {
	color: var(--cpts-magenta);
}

.cpts-home-news-body p {
	margin: 0;
	font-size: 10px;
	color: #004080;
	line-height: 1.5;
}

.cpts-home-news .cpts-home-center {
	margin-top: 36px;
}

/* Missions */
.cpts-home-missions {
	padding: 48px 0 56px;
	background: #fff;
}

.cpts-home-missions .cpts-home-section-title {
	color: #004080;
	font-size: clamp(1.625rem, 2.5vw, 2.125rem);
	font-weight: 400;
	letter-spacing: 0.4px;
}

.cpts-home-missions .cpts-home-section-lead {
	max-width: 920px;
	margin-left: auto;
	margin-right: auto;
	color: #004080;
	font-size: 15px;
	font-weight: 400;
	line-height: 1.55;
}

.cpts-home-missions-grid {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: 12px;
	margin-top: 28px;
}

.cpts-home-mission-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: space-between;
	min-height: 168px;
	padding: 16px 10px 14px;
	border-radius: 8px;
	color: #fff !important;
	text-align: center;
	transition: transform 0.2s ease;
}

.cpts-home-mission-card:nth-child(1) {
	--mission-color: #d92880;
	background-color: #d92880;
}

.cpts-home-mission-card:nth-child(2) {
	--mission-color: #ea6a2d;
	background-color: #ea6a2d;
}

.cpts-home-mission-card:nth-child(3) {
	--mission-color: #ffbc00;
	background-color: #ffbc00;
}

.cpts-home-mission-card:nth-child(4) {
	--mission-color: #4e3f83;
	background-color: #4e3f83;
}

.cpts-home-mission-card:nth-child(5) {
	--mission-color: #005b04;
	background-color: #005b04;
}

.cpts-home-mission-card:nth-child(6) {
	--mission-color: #004080;
	background-color: #004080;
}

.cpts-home-mission-card:hover {
	transform: translateY(-2px);
}

.cpts-home-mission-picto {
	width: 44px;
	height: 44px;
	flex-shrink: 0;
}

.cpts-home-mission-title {
	margin: 14px 0 12px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.1px;
	line-height: 1.35;
	text-transform: uppercase;
	flex: 1;
	display: block;
}

.cpts-home-mission-arrow {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	flex-shrink: 0;
	color: var(--mission-color);
}

.cpts-home-mission-arrow-icon {
	display: block;
	width: 100%;
	height: 100%;
}

.cpts-home-missions .cpts-home-center {
	margin-top: 32px;
}

/* Stats */
.cpts-home-stats {
	padding: 20px 0 56px;
	background: #fff;
}

.cpts-home-stats .cpts-home-section-title {
	color: #004080;
	font-size: clamp(1.625rem, 2.5vw, 2.125rem);
	font-weight: 400;
	letter-spacing: 0.4px;
}

.cpts-home-stats-grid {
	display: flex;
	flex-wrap: nowrap;
	justify-content: space-between;
	align-items: flex-end;
	gap: 24px;
	margin: 32px 0 0;
}

.cpts-home-stat {
	flex: 1 1 0;
	min-width: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
}

.cpts-home-stat img {
	width: 92px;
	height: auto;
	margin: 0 auto 14px;
	display: block;
	flex-shrink: 0;
}

.cpts-home-stat-number {
	margin: 0;
	font-size: 52px;
	font-weight: 400;
	color: var(--cpts-magenta);
	line-height: 1;
	letter-spacing: -0.5px;
}

.cpts-home-stat-label {
	margin: 10px 0 0;
	max-width: 260px;
	font-size: 16px;
	font-weight: 800;
	letter-spacing: 0.8px;
	text-transform: uppercase;
	color: var(--cpts-magenta);
	line-height: 1.3;
}

.cpts-home-stats .cpts-home-center {
	margin-top: 44px;
}

/* Contact banner */
.cpts-home-contact-banner {
	display: block;
	width: 100%;
	padding: 34px 0 38px;
	background: #fbe3d8;
	box-sizing: border-box;
}

.cpts-home-contact-inner {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	column-gap: 48px;
	align-items: center;
	min-height: 240px;
	padding-bottom: 56px;
}

.cpts-home-contact-text {
	grid-column: 1;
	grid-row: 1;
	min-width: 0;
}

.cpts-home-contact-title {
	margin: 0 0 14px;
	font-size: clamp(2.25rem, 3.4vw, 2.9rem);
	font-weight: 800;
	color: var(--cpts-orange);
	line-height: 1.15;
}

.cpts-home-contact-desc {
	margin: 0;
	max-width: none;
	color: var(--cpts-orange);
	font-size: 20px;
	line-height: 1.5;
	font-weight: 600;
	white-space: nowrap;
}

.cpts-home-contact-actions {
	position: absolute;
	left: 50%;
	top: calc(clamp(102px, 13vw, 116px) + 70px);
	transform: translateX(-50%);
	display: flex;
	justify-content: center;
	margin-top: 0;
}

.cpts-home-contact-btn {
	padding: 12px 24px;
	border-radius: 6px;
	font-size: 14px;
	box-shadow: none;
}

.cpts-home-contact-visual {
	grid-column: 2;
	grid-row: 1;
	display: flex;
	justify-content: flex-end;
	align-items: center;
	min-width: 0;
}

.cpts-home-contact-visual img {
	display: block;
	max-width: 240px;
	width: 100%;
	height: auto;
	margin: 0;
}

/* Partners */
.cpts-home-partners {
	padding: 48px 0 56px;
	background: #fff;
}

.cpts-home-partners .cpts-home-section-title {
	color: #004080;
	font-size: clamp(1.625rem, 2.5vw, 2.125rem);
	font-weight: 400;
	letter-spacing: 0.4px;
}

.cpts-home-partners-row {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-top: 28px;
	width: 100%;
}

.cpts-home-partner-logo {
	width: auto;
	max-width: 100%;
	object-fit: contain;
	display: block;
	flex-shrink: 1;
}

.cpts-home-partner-logo--ars {
	height: 145px;
}

.cpts-home-partner-logo--assurance {
	height: 112px;
}

.cpts-home-partner-logo--msa {
	height: 73px;
}

.cpts-home-partner-logo--departement {
	height: 68px;
}

.cpts-home-partner-logo--mutualite {
	height: 118px;
}

.cpts-home-partner-logo--ligue {
	height: 145px;
}

/* Responsive */
@media (max-width: 991px) {
	.cpts-home-intro-grid,
	.cpts-home-contact-inner {
		grid-template-columns: 1fr;
	}

	.cpts-home-news-grid {
		grid-template-columns: 1fr 1fr;
	}

	.cpts-home-missions-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}

	.cpts-home-hero-ctas {
		flex-direction: column;
		margin-top: 16px;
	}

	.cpts-home-intro-map {
		justify-content: center;
	}

	.cpts-home-contact-inner {
		gap: 24px;
		min-height: 0;
		padding-bottom: 0;
	}

	.cpts-home-contact-text,
	.cpts-home-contact-visual {
		grid-column: 1;
		grid-row: auto;
	}

	.cpts-home-contact-desc {
		max-width: none;
		white-space: normal;
	}

	.cpts-home-contact-actions {
		position: static;
		transform: none;
		margin-top: 14px;
	}

	.cpts-home-contact-visual {
		justify-content: center;
	}

	.cpts-home-contact-visual img {
		max-width: 200px;
	}

	.cpts-home-partners-row {
		flex-wrap: wrap;
		justify-content: center;
		gap: 20px 24px;
	}

	.cpts-home-partner-logo {
		flex-shrink: 0;
	}

	.cpts-home-partner-logo--ars,
	.cpts-home-partner-logo--ligue {
		height: 100px;
	}

	.cpts-home-partner-logo--assurance {
		height: 78px;
	}

	.cpts-home-partner-logo--msa {
		height: 50px;
	}

	.cpts-home-partner-logo--departement {
		height: 46px;
	}

	.cpts-home-partner-logo--mutualite {
		height: 80px;
	}
}

@media (max-width: 640px) {
	.cpts-home-news-grid,
	.cpts-home-missions-grid {
		grid-template-columns: 1fr;
	}

	.cpts-home-mission-card {
		min-height: 150px;
	}

	.cpts-home-mission-title {
		font-size: 12px;
	}

	.cpts-home-stats-grid {
		flex-direction: column;
		align-items: center;
	}

	.cpts-home-stat {
		flex: none;
		width: 100%;
	}

	.cpts-home-stat img {
		width: 80px;
	}

	.cpts-home-stat-number {
		font-size: 44px;
	}

	.cpts-home-stat-label {
		font-size: 15px;
		min-height: 0;
	}

	.cpts-home-cta {
		min-height: auto;
	}

	.cpts-home-cta-text {
		font-size: 13px;
	}

	.cpts-home-hero-ctas .cpts-home-cta-text {
		font-size: 18.14px;
		font-weight: 900;
	}
}
