/* Miniature séjour (listing JetEngine 978) : photo, trame topo très légère, dégradé bleu. */
a.yts-carte {
	--marge: 5.2cqw;
	display: block;
	position: relative;
	width: 100%;
	aspect-ratio: 4 / 5;
	padding: 0;
	overflow: hidden;
	isolation: isolate;
	container-type: inline-size;
	background: #012129;
	color: #fff;
	font-family: "greycliff-cf", sans-serif;
	text-decoration: none;
	cursor: pointer;
}

a.yts-carte:focus-visible {
	outline: 3px solid var(--orange, #ff5a1f);
	outline-offset: 3px;
}

.yts-carte .elementor-heading-title {
	margin: 0;
	color: inherit;
	font: inherit;
	line-height: inherit;
}

/* Couches de la photo */
.yts-carte__photo,
.yts-carte__lignes,
.yts-carte__bas {
	position: absolute !important;
	inset: 0;
	width: 100%;
	max-width: none !important;
	margin: 0;
	padding: 0;
	pointer-events: none;
}

/* Photo calée en haut : le groupe reste au-dessus des textes. */
.yts-carte__photo {
	bottom: auto;
	height: 74%;
}

.yts-carte__photo img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	object-fit: cover;
	object-position: 62% 50%;
}

/* La trame apparaît avec les mêmes paliers que le dégradé bleu. */
.yts-carte__lignes {
	background: url(topo-blanc.svg) center / cover;
	opacity: .08;
	-webkit-mask: linear-gradient(transparent 38%, rgba(0, 0, 0, .72) 57%, #000 74%);
	mask: linear-gradient(transparent 38%, rgba(0, 0, 0, .72) 57%, #000 74%);
}

.yts-carte__bas {
	inset: auto 0 0;
	height: 62%;
	background: linear-gradient(transparent, rgba(1, 33, 41, .72) 30%, #012129 58%);
}

/* Textes */
.yts-carte__texte {
	position: absolute !important;
	left: var(--marge);
	right: var(--marge);
	bottom: var(--marge);
	display: grid;
	gap: 3cqw;
	width: auto;
	padding: 0;
}

.yts-carte__type {
	font-size: max(12px, 3.4cqw);
	font-weight: 600;
	line-height: 1.2;
}

.yts-carte__titre {
	font-size: 11.4cqw;
	font-weight: 700;
	line-height: 1;
	text-wrap: balance;
}

.yts-carte__infos {
	font-size: max(12px, 3.8cqw);
	font-weight: 600;
	line-height: 1.3;
}

.yts-carte__ligne {
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 3cqw;
	width: 100%;
	padding: 0;
}

.yts-carte__ligne > .elementor-element {
	width: auto;
	max-width: none;
}

.yts-carte__prix {
	display: inline-grid;
	grid-template-columns: auto auto;
	align-items: end;
	gap: .22em .5em;
	line-height: 1;
}

.yts-carte__prix small {
	font-size: max(11px, 3.1cqw);
	font-weight: 600;
}

.yts-carte__prix small:first-child {
	grid-column: 1 / -1;
}

.yts-carte__prix b {
	padding: .2em .36em;
	background: var(--jaune, #f9af17);
	color: #012730;
	font-size: 6cqw;
	font-weight: 700;
	white-space: nowrap;
}

.yts-carte__cta {
	padding: .82em 1.25em;
	background: #fff;
	color: #012730;
	font-size: max(12px, 3.9cqw);
	font-weight: 700;
	line-height: 1;
	white-space: nowrap;
	transition: background .25s, color .25s;
}

a.yts-carte:hover .yts-carte__cta,
a.yts-carte:focus-visible .yts-carte__cta {
	background: var(--orange, #ff5a1f);
	color: #fff;
}

@media (prefers-reduced-motion: reduce) {
	.yts-carte__cta {
		transition: none;
	}
}

/* Lien « Séjours » du header : la section s'arrête sous le header fixe. */
#sejours {
	scroll-margin-top: 83px;
}
