/* Parcours de soins — CUK */

.psx-care-root {
	--cuk-blue: #1b3058;
	--cuk-blue-light: #2a4a7a;
	--cuk-red: #a41d31;
	--cuk-red-light: #cf2626;
	--cuk-gold: #ffb400;
	--cuk-bg: #f4f6f8;
	--cuk-card: #ffffff;
	--cuk-text: #3d4f63;
	--cuk-muted: #6b7c93;
	--cuk-border: rgba(27, 48, 88, 0.08);
	--cuk-radius: 16px;
	--cuk-shadow: 0 4px 24px rgba(27, 48, 88, 0.08);
	--cuk-shadow-hover: 0 12px 40px rgba(27, 48, 88, 0.14);

	font-family: inherit;
	color: var(--cuk-text);
	line-height: 1.6;
	margin: 0 0 2rem;
}

.psx-care-root *,
.psx-care-root *::before,
.psx-care-root *::after {
	box-sizing: border-box;
}

.psx-care-wrap {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}

/* Cards */
.psx-card {
	background: var(--cuk-card);
	border: 1px solid var(--cuk-border);
	border-radius: var(--cuk-radius);
	box-shadow: var(--cuk-shadow);
	overflow: hidden;
	animation: psxFadeUp 0.55s ease both;
}

.psx-card:nth-child(1) { animation-delay: 0.05s; }
.psx-card:nth-child(2) { animation-delay: 0.1s; }
.psx-card:nth-child(3) { animation-delay: 0.15s; }
.psx-card:nth-child(4) { animation-delay: 0.2s; }

/* Hero urgences */
.psx-hero {
	display: grid;
	grid-template-columns: 1.1fr 0.9fr;
	gap: 0;
	border-left: 5px solid var(--cuk-red);
}

.psx-hero-main {
	padding: 2rem 2rem 1.75rem;
	background: linear-gradient(135deg, rgba(164, 29, 49, 0.04) 0%, rgba(27, 48, 88, 0.03) 100%);
}

.psx-hero-side {
	display: flex;
	flex-direction: column;
	gap: 0;
	border-left: 1px solid var(--cuk-border);
	background: var(--cuk-bg);
}

/* Pills */
.psx-pills {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-bottom: 1.25rem;
}

.psx-pill {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	padding: 0.35rem 0.85rem;
	border-radius: 50px;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.psx-pill--soft {
	background: rgba(27, 48, 88, 0.07);
	color: var(--cuk-blue);
	border: 1px solid rgba(27, 48, 88, 0.1);
}

.psx-pill--danger {
	background: var(--cuk-red);
	color: #fff;
	box-shadow: 0 2px 10px rgba(164, 29, 49, 0.3);
}

/* Icons */
.psx-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	background: rgba(27, 48, 88, 0.08);
	border-radius: 12px;
	flex-shrink: 0;
	color: var(--cuk-blue);
}

.psx-icon--sm {
	width: 22px;
	height: 22px;
	border-radius: 6px;
}

.psx-icon--danger {
	background: rgba(164, 29, 49, 0.1);
	color: var(--cuk-red);
}

.psx-icon--warning {
	background: rgba(255, 180, 0, 0.15);
	color: #9a7200;
}

.psx-icon--light {
	background: rgba(255, 255, 255, 0.15);
	color: #fff;
}

.psx-icon {
	font-size: 1.35rem;
	line-height: 1;
}

.psx-icon--sm {
	font-size: 0.85rem;
}

/* Titles */
.psx-title-row {
	display: flex;
	align-items: center;
	gap: 0.85rem;
}

.psx-title-box {
	flex: 1;
	min-width: 0;
	overflow: visible;
}

.psx-kicker {
	margin: 0 0 0.25rem;
	font-size: 0.72rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: var(--cuk-red);
}

.psx-kicker--light {
	color: rgba(255, 255, 255, 0.75);
}

.psx-title-xl {
	margin: 0;
	font-size: 1.65rem;
	font-weight: 800;
	color: var(--cuk-blue);
	line-height: 1.25;
}

.psx-title-lg {
	margin: 0;
	font-size: 1.35rem;
	font-weight: 700;
	color: var(--cuk-blue);
	line-height: 1.3;
}

.psx-title-md {
	margin: 0;
	font-size: 1rem;
	font-weight: 700;
	color: var(--cuk-blue);
	line-height: 1.3;
}

.psx-text {
	margin: 0.75rem 0 0;
	font-size: 0.95rem;
	color: var(--cuk-text);
	line-height: 1.7;
}

.psx-text--spaced {
	margin-top: 1.1rem;
}

.psx-meta {
	margin: 0;
	font-size: 0.88rem;
	font-weight: 600;
	color: var(--cuk-muted);
	background: var(--cuk-bg);
	padding: 0.5rem 1rem;
	border-radius: 50px;
	white-space: nowrap;
}

/* Info blocks in hero side */
.psx-info {
	padding: 1.25rem 1.5rem;
	border-bottom: 1px solid var(--cuk-border);
	transition: background 0.25s ease;
}

.psx-info:last-child {
	border-bottom: none;
}

.psx-info:hover {
	background: rgba(27, 48, 88, 0.04);
}

.psx-info--soft {
	background: rgba(164, 29, 49, 0.04);
}

.psx-info--soft:hover {
	background: rgba(164, 29, 49, 0.07);
}

.psx-info .psx-text {
	margin-top: 0.5rem;
	margin-bottom: 0;
	font-size: 0.9rem;
}

/* Section headers */
.psx-section {
	padding: 1.75rem 2rem 2rem;
}

.psx-head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 1.5rem;
	flex-wrap: wrap;
	margin-bottom: 1.5rem;
	padding-bottom: 1.25rem;
	border-bottom: 1px solid var(--cuk-border);
}

.psx-head-main {
	flex: 1;
	min-width: 220px;
}

.psx-head-side {
	display: flex;
	align-items: center;
}

/* Services grid */
.psx-services {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 1rem;
}

.psx-service {
	padding: 1.25rem 1rem;
	background: var(--cuk-bg);
	border: 1px solid var(--cuk-border);
	border-radius: 12px;
	transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
	overflow: visible;
}

.psx-service:hover {
	transform: translateY(-4px);
	box-shadow: var(--cuk-shadow-hover);
	border-color: rgba(27, 48, 88, 0.15);
	background: #fff;
}

.psx-service .psx-title-row {
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 0.65rem;
}

.psx-service .psx-title-box {
	min-width: 100%;
	width: 100%;
	flex: none;
}

.psx-service .psx-text {
	margin-top: 0.5rem;
	margin-bottom: 0;
	font-size: 0.88rem;
	color: var(--cuk-muted);
	text-align: center;
}

/* Info grid (localisations + psychiatrie) */
.psx-info-grid {
	display: grid;
	grid-template-columns: 1.2fr 0.8fr;
	gap: 1.5rem;
}

.psx-info-grid .psx-section {
	height: 100%;
}

.psx-list {
	list-style: none;
	margin: 1.25rem 0 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.psx-list li {
	position: relative;
	padding: 0.85rem 1rem 0.85rem 2.5rem;
	background: var(--cuk-bg);
	border-radius: 10px;
	font-size: 0.92rem;
	line-height: 1.6;
	transition: background 0.25s ease;
}

.psx-list li:hover {
	background: rgba(27, 48, 88, 0.06);
}

.psx-list li::before {
	content: "";
	position: absolute;
	left: 1rem;
	top: 1.15rem;
	width: 8px;
	height: 8px;
	background: var(--cuk-red);
	border-radius: 50%;
}

.psx-list li strong {
	color: var(--cuk-blue);
}

/* Warning card */
.psx-warning {
	background: linear-gradient(135deg, #fff9e6 0%, #fff3cc 100%);
	border-color: rgba(255, 180, 0, 0.35);
}

.psx-warning .psx-title-lg {
	color: #7a5a00;
}

.psx-warning .psx-kicker {
	color: #9a7200;
}

/* Payment section */
.post-content .psx-care-root section.psx-card.psx-payment {
	background-color: var(--cuk-blue) !important;
	background-image: linear-gradient(135deg, var(--cuk-blue) 0%, var(--cuk-blue-light) 55%, #1a4a6e 100%) !important;
	border: none !important;
	color: #fff !important;
	position: relative;
	overflow: hidden;
}

.psx-payment::before {
	content: "";
	position: absolute;
	top: -50%;
	right: -20%;
	width: 300px;
	height: 300px;
	background: radial-gradient(circle, rgba(255, 180, 0, 0.15) 0%, transparent 70%);
	border-radius: 50%;
	pointer-events: none;
}

.post-content .psx-care-root .psx-payment .psx-head {
	border-bottom-color: rgba(255, 255, 255, 0.2);
	position: relative;
	z-index: 1;
}

.post-content .psx-care-root .psx-payment .psx-kicker,
.post-content .psx-care-root .psx-payment .psx-kicker--light {
	color: rgba(255, 255, 255, 0.92) !important;
}

.post-content .psx-care-root .psx-payment .psx-title-lg {
	color: #fff !important;
}

.post-content .psx-care-root .psx-payment .psx-meta {
	background: rgba(255, 255, 255, 0.18);
	color: #fff !important;
}

.psx-pay-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1rem;
	position: relative;
	z-index: 1;
}

.post-content .psx-care-root .psx-payment .psx-pay {
	padding: 1.25rem;
	background: #fff;
	border: none;
	border-radius: 12px;
	text-align: center;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.post-content .psx-care-root .psx-payment .psx-pay:hover {
	transform: translateY(-3px);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.psx-pay .psx-title-row {
	justify-content: center;
	flex-direction: column;
	gap: 0.65rem;
}

.post-content .psx-care-root .psx-payment .psx-head .psx-icon--light {
	background: rgba(255, 255, 255, 0.15);
	color: #fff;
}

.post-content .psx-care-root .psx-payment .psx-pay .psx-icon--light {
	background: rgba(27, 48, 88, 0.08);
	color: var(--cuk-blue);
}

.post-content .psx-care-root .psx-payment .psx-pay-label {
	font-size: 0.95rem;
	font-weight: 700;
	color: var(--cuk-blue) !important;
}

/* Footer note */
.psx-note {
	margin: 0;
	padding: 1.25rem 1.5rem;
	background: #fff;
	border-radius: 12px;
	border: 1px solid var(--cuk-border);
	border-left: 4px solid var(--cuk-gold);
	font-size: 0.92rem;
	color: var(--cuk-text);
	text-align: center;
	line-height: 1.7;
}

/* Neutraliser styles parent */
.post-content .psx-care-root h2,
.post-content .psx-care-root h3 {
	border: none;
	padding: 0;
	margin: 0;
	background: none;
	text-transform: none;
	letter-spacing: normal;
	overflow: visible;
	white-space: normal;
	word-wrap: break-word;
	overflow-wrap: break-word;
	text-overflow: unset;
}

.post-content .psx-care-root .psx-service h3.psx-title-md {
	font-size: 0.95rem;
	font-weight: 700;
	line-height: 1.4;
}

.post-content .psx-care-root .psx-head .psx-title-lg {
	white-space: normal;
	overflow: visible;
}

.post-content .psx-care-root h2::before,
.post-content .psx-care-root h3::before {
	display: none;
}

.post-content .psx-care-root p {
	margin: 0;
}

.post-content .psx-care-root ul {
	list-style: none;
}

@keyframes psxFadeUp {
	from {
		opacity: 0;
		transform: translateY(18px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* Responsive */
@media (max-width: 960px) {
	.psx-hero {
		grid-template-columns: 1fr;
	}

	.psx-hero-side {
		border-left: none;
		border-top: 1px solid var(--cuk-border);
	}

	.psx-info-grid {
		grid-template-columns: 1fr;
	}

	.psx-pay-grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 640px) {
	.psx-hero-main,
	.psx-section {
		padding: 1.5rem 1.25rem;
	}

	.psx-title-xl {
		font-size: 1.35rem;
	}

	.psx-head {
		flex-direction: column;
	}

	.psx-meta {
		white-space: normal;
	}

	.psx-services {
		grid-template-columns: 1fr;
	}
}

@media (prefers-reduced-motion: reduce) {
	.psx-card,
	.psx-service,
	.psx-pay {
		animation: none;
		transition: none;
	}

	.psx-service:hover,
	.psx-pay:hover {
		transform: none;
	}
}
