/**
 * Page Tarifs — styles éditoriaux (système aen)
 *
 * @package Morgane_Del_Medico
 */

/* ── VISUEL-009 — harmonisation éditoriale (scope .trf-page) ───────────────── */

.page-template-page-tarifs-php .site-main,
.site-main:has(.trf-page) {
	background: var(--color-linen);
}

.page-template-page-tarifs-php .site-main::before,
.page-template-page-tarifs-php .site-main::after,
.site-main:has(.trf-page)::before,
.site-main:has(.trf-page)::after {
	display: none;
}

.trf-page.aen-page--editorial {
	--aen-section-space: clamp(4.25rem, 5.25vw, 5.5rem);
	--aen-title-text-gap: clamp(1.125rem, 1.75vw, 1.625rem);
	--aen-subtitle-gap: clamp(1.25rem, 2vw, 1.625rem);
}

.trf-page .aen-section--intro {
	padding-block: clamp(1.75rem, 4vw, 2.25rem) clamp(3.25rem, 5vw, 4.25rem);
	scroll-margin-top: var(--header-height);
}

.trf-page .aen-section + .aen-section {
	padding-top: 0;
}

.trf-page .aen-chapter__title--h1 {
	margin: clamp(0.5rem, 1.5vw, 0.875rem) 0 clamp(1rem, 1.75vw, 1.25rem);
	font-size: clamp(2.35rem, 4.5vw, 3.25rem);
	line-height: 1.12;
}

.trf-page .aen-chapter__subtitle {
	font-size: clamp(1.5rem, 2.6vw, 1.875rem);
	line-height: 1.32;
}

.trf-page .aen-chapter__title {
	margin-top: clamp(0.375rem, 1.2vw, 0.75rem);
	font-size: clamp(1.75rem, 2.8vw, 2rem);
	line-height: 1.28;
}

.trf-page .trf-section--cta {
	padding-block: var(--aen-section-space) clamp(3.75rem, 6vw, 4.75rem);
}

.trf-page .trf-section--cta .aen-prose {
	margin-top: 0;
}

.trf-page .trf-section--cta .aen-contact-links {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 0.25rem clamp(1rem, 2.5vw, 1.75rem);
	width: 100%;
	max-width: 100%;
	min-width: 0;
	margin-top: var(--aen-paragraph-gap);
}

.trf-page .trf-section--cta .aen-contact-links .aen-link-cta {
	min-height: 2.75rem;
	align-items: center;
	max-width: 100%;
}

.trf-page .trf-section--cta .aen-contact-links .aen-link-cta:focus-visible {
	outline-color: var(--color-sage-action);
}

/* ── Cartes tarifaires ─────────────────────────────────────────────────────── */

.trf-page .trf-section--prices .aen-chapter--wide {
	max-width: min(100%, 62.5rem);
}

.trf-page .trf-section--prices .trf-price-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: clamp(1.5rem, 2vw, 1.875rem);
	max-width: 62.5rem;
	margin-top: var(--aen-title-text-gap);
	margin-inline: auto;
}

.trf-page .trf-section--prices .trf-price-card {
	display: flex;
	height: 100%;
}

.trf-page .trf-section--prices .trf-price-card__inner {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	width: 100%;
	min-height: 100%;
	padding: clamp(1.5rem, 2.5vw, 2rem) clamp(1.5rem, 2.5vw, 2rem) clamp(1.625rem, 2.5vw, 2rem);
	background: rgba(255, 253, 250, 0.72);
	border: 1px solid rgba(127, 146, 124, 0.1);
	border-radius: var(--radius-md, 12px);
	box-shadow: 0 4px 14px rgba(74, 74, 74, 0.028);
}

.trf-page .trf-section--prices .trf-price-card__title {
	margin: 0 0 clamp(0.5rem, 0.8vw, 0.75rem);
	font-family: var(--font-heading);
	font-size: clamp(1.625rem, 2.4vw, 2.125rem);
	font-weight: 400;
	line-height: 1.25;
	letter-spacing: -0.015em;
	color: var(--color-text);
	text-align: left;
}

.trf-page .trf-section--prices .trf-price-card__duration {
	margin: 0 0 clamp(1.5rem, 2vw, 1.875rem);
	font-family: var(--font-body);
	font-size: clamp(1.125rem, 1.5vw, 1.25rem);
	font-weight: 400;
	font-style: normal;
	line-height: 1.4;
	color: var(--color-text);
	text-align: left;
}

.trf-page .trf-section--prices .trf-price-card__audience {
	margin: 0 0 clamp(1.5rem, 2.5vw, 2rem);
	font-family: var(--font-body);
	font-size: clamp(1.0625rem, 1.5vw, 1.1875rem);
	font-style: normal;
	font-weight: 400;
	line-height: 1.5;
	color: var(--color-text);
	text-align: left;
}

.trf-page .trf-section--prices .trf-price-card__price {
	margin: 0 0 clamp(1.75rem, 2.8vw, 2.375rem);
	font-family: var(--font-heading);
	font-size: clamp(2.625rem, 4.5vw, 3.625rem);
	font-weight: 400;
	line-height: 1;
	letter-spacing: -0.02em;
	color: var(--color-sage-title);
	text-align: left;
}

.trf-page .trf-section--prices .trf-price-card__text {
	margin: 0;
	max-width: 100%;
	font-family: var(--font-body);
	font-size: clamp(1.0625rem, 1.5vw, 1.1875rem);
	font-weight: 400;
	line-height: 1.65;
	color: var(--color-text);
	text-align: left;
}

/* ── Visio ─────────────────────────────────────────────────────────────────── */

.trf-page .trf-visio-ref {
	margin: 0 0 0.75rem;
	font-family: var(--font-body);
	font-size: clamp(1rem, 1.4vw, 1.125rem);
	font-style: italic;
	line-height: 1.55;
	color: var(--color-text);
}

.trf-page .trf-inline-link {
	color: var(--color-sage-action);
	text-decoration: underline;
	text-decoration-color: currentColor;
	text-underline-offset: 0.15em;
	transition: color 0.22s ease, text-decoration-color 0.22s ease;
}

.trf-page .trf-inline-link:focus-visible {
	color: var(--color-sage-action);
	text-decoration-color: rgba(127, 146, 124, 0.55);
}

.trf-page .trf-inline-link:hover {
	color: var(--color-sage-action);
	text-decoration-color: currentColor;
}

.trf-page .trf-inline-link:focus-visible {
	outline: 2px solid var(--color-sage-dark);
	outline-offset: 2px;
	border-radius: 2px;
}

.trf-page .trf-prose__highlight {
	padding-left: clamp(0.875rem, 1.5vw, 1.125rem);
	border-left: 2px solid var(--color-sage);
	font-weight: 600;
}

/* ── Modalités de paiement ─────────────────────────────────────────────────── */

.trf-page .trf-payment-groups {
	margin-top: var(--aen-title-text-gap);
	max-width: var(--aen-read-max);
}

.trf-page .trf-payment-group + .trf-payment-group {
	margin-top: clamp(1.25rem, 2vw, 1.5rem);
}

.trf-page .trf-payment-group__label {
	margin: 0 0 0.75rem !important;
}

.trf-page .trf-payment-list {
	grid-template-columns: 1fr;
	max-width: none;
}

.trf-page .trf-payment-list li {
	font-size: 1.125rem;
}

/* ── Blocs pratiques (annulation, remboursement) ─────────────────────────────── */

.trf-page .trf-section--practical {
	padding-bottom: var(--aen-section-space);
}

.trf-page .trf-practical-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: clamp(1.25rem, 2.5vw, 1.75rem);
	width: 100%;
	margin-inline: auto;
}

.trf-page .trf-practical-block {
	padding: clamp(1.5rem, 2.5vw, 2rem) clamp(1.375rem, 2.5vw, 1.75rem);
	background: rgba(252, 250, 247, 0.65);
	border: 1px solid rgba(127, 146, 124, 0.08);
	border-radius: 12px;
}

.trf-page .trf-practical-block--highlight {
	border-color: rgba(168, 184, 165, 0.35);
}

.trf-page .trf-practical-block__title {
	margin: 0 0 var(--aen-title-text-gap);
	font-size: clamp(1.875rem, 3vw, 2.125rem);
}

.trf-page .trf-practical-block__body {
	margin-top: 0;
	max-width: none;
}

.trf-page .aen-chapter--center .aen-prose--center {
	text-align: center;
}

/* ── Responsive ──────────────────────────────────────────────────────────────── */

@media (min-width: 768px) {
	.trf-page .trf-section--prices .trf-price-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		align-items: stretch;
		gap: clamp(1.5rem, 2.2vw, 1.875rem);
	}

	.trf-page .trf-section--prices .trf-price-card__inner {
		min-height: clamp(28rem, 36vw, 32rem);
	}
}

@media (min-width: 768px) {
	.trf-page .trf-practical-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		width: min(100%, 42rem);
		align-items: stretch;
	}
}

@media (min-width: 1200px) {
	.trf-page .trf-practical-grid {
		width: min(100%, 52rem);
	}

	.trf-page .trf-practical-block {
		display: flex;
		flex-direction: column;
		height: 100%;
	}

	.trf-page .trf-practical-block__body {
		flex: 1;
	}
}

@media (max-width: 767px) {
	.trf-page .aen-section--intro {
		padding-block: clamp(1.25rem, 4vw, 1.75rem) clamp(2.75rem, 6vw, 3.5rem);
	}

	.trf-page .aen-chapter__title--h1 {
		font-size: clamp(2.125rem, 9.5vw, 2.5rem);
	}

	.trf-page .aen-chapter__subtitle {
		font-size: clamp(1.375rem, 5vw, 1.625rem);
	}

	.trf-page .aen-chapter__title {
		font-size: clamp(1.5rem, 4.8vw, 1.75rem);
	}

	.trf-page .trf-section--prices .trf-price-card__inner {
		padding: 1.5rem;
		min-height: auto;
	}

	.trf-page .trf-section--prices .trf-price-card__title {
		font-size: clamp(1.625rem, 6vw, 1.875rem);
	}

	.trf-page .trf-section--prices .trf-price-card__price {
		font-size: clamp(2.625rem, 10vw, 3rem);
	}

	.trf-page .trf-section--prices .trf-price-card__text,
	.trf-page .trf-payment-list li,
	.trf-page .trf-practical-block__body p {
		font-size: clamp(1.0625rem, 4vw, 1.125rem);
	}
}

@media (max-width: 390px) {
	.trf-page .aen-container {
		padding-inline: clamp(1rem, 4vw, 1.25rem);
	}

	.trf-page .aen-chapter__title--h1 {
		font-size: clamp(1.9375rem, 9vw, 2.25rem);
	}
}

@media (prefers-reduced-motion: reduce) {
	.trf-page .trf-inline-link {
		transition: none;
	}
}
