/**
 * =========================================================
 * YT-SEJOURS
 * Style des cartes Yogatrip
 * =========================================================
 */


/* =========================================================
   ADMIN WORDPRESS
   ========================================================= */

.yt-admin-grid {

	display: grid;

	grid-template-columns:
		repeat(2, minmax(0, 1fr));

	gap: 20px;

}


.yt-admin-field {

	margin-bottom: 5px;

}


.yt-admin-field-full {

	grid-column: 1 / -1;

}


.yt-admin-field label {

	display: block;

	font-weight: 600;

	margin-bottom: 7px;

}


.yt-admin-field input[type="text"],
.yt-admin-field input[type="date"],
.yt-admin-field input[type="number"],
.yt-admin-field textarea {

	width: 100%;

	max-width: none;

	box-sizing: border-box;

}


.yt-admin-field .description {

	margin-top: 5px;

	color: #646970;

}


@media (max-width: 782px) {

	.yt-admin-grid {

		grid-template-columns: 1fr;

	}


	.yt-admin-field-full {

		grid-column: auto;

	}

}


/* =========================================================
   GRILLE
   ========================================================= */

.yt-sejours-grid {

	display: grid;

	/*
	 * Deux colonnes maximum
	 */

	grid-template-columns:
		repeat(2, minmax(0, 1fr));

	/*
	 * Espace vertical / horizontal
	 */

	column-gap: 40px;

	row-gap: 60px;

	width: 100%;

}


/* =========================================================
   CARTE
   ========================================================= */

.yt-sejour-card {
	position: relative;
	width: 100%;
	border-radius: 8px;
  	overflow: hidden;
  	box-shadow: 1px 0px 20px 0px rgba(0, 0, 0, 0.08);
}


/* =========================================================
   LIEN GLOBAL
   ========================================================= */

.yt-sejour-card__link {
	display: block;
	color: inherit;
	text-decoration: none;
}


.yt-sejour-card__link:hover,
.yt-sejour-card__link:focus {
	color: inherit;
	text-decoration: none;
}


/* =========================================================
   IMAGE
   ========================================================= */

.yt-sejour-card__image {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: #eeeeee;
}


/* =========================================================
   IMAGE
   ========================================================= */

.yt-sejour-card__image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition:
		transform 0.8s
		cubic-bezier(.2,.7,.2,1);
}

/*
 * Zoom très léger au survol
 */
.yt-sejour-card:hover
.yt-sejour-card__image img {
	transform: scale(1.045);
}


/* =========================================================
   CARTOUCHE DATE
   ========================================================= */

.yt-sejour-card__date {
	position: relative;
  padding: 12px 18px;
  background: #E3BC91;
  color: #ffffff;
  font-size: 14px;
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
  border-radius: 8px;
  margin: auto;
    margin-top: auto;
  width: fit-content;
  margin-top: -35px;
  margin-bottom:10px;
  z-index:5;
}


/* =========================================================
   OVERLAY AU SURVOL
   ========================================================= */

.yt-sejour-card__overlay {
	position: absolute;
	inset: 0;
	z-index: 3;
	display: flex;
	align-items: flex-end;
	justify-content: center;
	padding: 0;
	background: linear-gradient( to top, #b36a1b66, rgba(0, 0, 0, 0.00) 95% );
	opacity: 0;
	transition:opacity 0.35s ease;
}


/*
 * Texte du bandeau
 */

.yt-sejour-card__overlay span {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	width: 100%;
	padding: 20px 20px;
	box-sizing: border-box;
	color: transparent;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	transform: translateY(12px);
	transition:transform 0.35s ease;
}


/*
 * Apparition au survol
 */

.yt-sejour-card:hover
.yt-sejour-card__overlay {
	opacity: 1;
}

.yt-sejour-card:hover
.yt-sejour-card__overlay span {
	transform: translateY(0);
}


/*
 * Flèche
 */

.yt-sejour-card__overlay span span {
	width: auto;
	padding: 0;
	font-size: 18px;
	font-weight: 400;
	letter-spacing: 0;
	transform: none;
}


/* =========================================================
   BADGES STOCK
   ========================================================= */

.yt-sejours-badge {
	position: absolute;
	top: 18px;
	left: 18px;
	z-index: 5;
	padding: 8px 12px;
	font-size: 10px;
	line-height: 1.2;
	font-weight: 600;
	letter-spacing: 0.12em;
	background: #ffffff;
	color: #222222;
}


.yt-sejours-badge-warning {
	background: #222222;
	color: #ffffff;
}


.yt-sejours-badge-full {
	background: #777777;
	color: #ffffff;
}


/* =========================================================
   CONTENU
   ========================================================= */

.yt-sejour-card__content {
	background-color: white;
	padding: 15px 20px;
}


/* =========================================================
   TITRE
   ========================================================= */

.yt-sejour-card__title {
	margin:0 0 10px;
	font-size: 28px;
	font-weight: 400;
	color: #6a625e;
	margin: 0 !important;
	text-align:center;
}


/* =========================================================
   MÉTA-INFORMATIONS
   ========================================================= */

.yt-sejour-card__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0;
	margin: 0;
	font-size: 11px;
	line-height: 1.5;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	padding: 15px 0px;
	width: fit-content;
  	color: #baa89e;
  	margin: auto;
}


/*
 * Séparateurs entre les informations
 *
 * Pays · Ville · 7 nuits · 8 / 12 places
 */

.yt-sejour-card__meta span {

	display: inline-flex;

	align-items: center;

}


.yt-sejour-card__meta span:not(:last-child)::after {

	content: "·";

	margin:

		0
		8px;

	color: #c4a98d;

}


/* =========================================================
   DESCRIPTION
   ========================================================= */

.yt-sejour-card__description {

	max-width: 550px;

	margin:

		15px
		0
		0;

	font-size: 14px;

	line-height: 1.65;

	color: #666666;

}


/* =========================================================
   MESSAGE AUCUN SÉJOUR
   ========================================================= */

.yt-sejours-empty {

	margin: 0;

}


/* =========================================================
   TABLETTE
   ========================================================= */

@media (max-width: 900px) {

	.yt-sejours-grid {

		column-gap: 25px;

		row-gap: 45px;

	}


	.yt-sejour-card__title {

		font-size: 25px;

	}


	.yt-sejour-card__meta {

		font-size: 10px;

	}

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 767px) {

	.yt-sejours-grid {

		grid-template-columns: 1fr;

		column-gap: 0;

		row-gap: 45px;

	}


	.yt-sejour-card__image {

		aspect-ratio: 16 / 10;

	}


	.yt-sejour-card__date {

		left: 15px;

		bottom: 15px;

		padding: 10px 14px;

		font-size: 10px;

	}


	.yt-sejour-card__content {

		padding-top: 18px;

	}


	.yt-sejour-card__title {

		font-size: 24px;

	}


	.yt-sejour-card__meta {

		font-size: 10px;

		line-height: 1.7;

	}


	.yt-sejour-card__description {

		font-size: 14px;

	}


	/*
	 * Sur mobile, pas besoin d'attendre
	 * le survol puisque le tactile n'a pas
	 * véritablement de hover.
	 */

	.yt-sejour-card__overlay {

		opacity: 1;

	}


	.yt-sejour-card__overlay span {

		transform: translateY(0);

		padding-bottom: 16px;

	}

}