/*
 * Touraine Hôtels : gabarits des fiches membres et des articles.
 * Les mesures reprennent celles de l'ancien site (rangées à 80 %, colonnes à 47,25 %).
 */

/* ---------- Fiche membre ---------- */

.th-fiche__rangee,
.th-billet__rangee {
	box-sizing: border-box;
	width: 80%;
	margin-inline: auto;
	padding-block: min(2vw, 27px);
}

.th-fiche__bandeau {
	position: relative;
	box-sizing: border-box;
	height: 80vh;
	padding-top: 63px;
	background:
		var(--th-fiche-image, none) center / cover no-repeat,
		linear-gradient(1deg, rgba(10, 1, 1, 0.78) 0%, rgba(25, 5, 5, 0) 100%);
	background-blend-mode: multiply;
}

/* Pointe blanche au bas de la photo. */
.th-fiche__bandeau::after {
	content: "";
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	height: 150px;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1280 140' preserveAspectRatio='none'%3E%3Cpath fill='%23fff' d='M640 139 0 0v140h1280V0z'/%3E%3C/svg%3E") 0 0 / 100% 150px no-repeat;
}

.th-fiche__bandeau .th-fiche__rangee {
	position: relative;
	z-index: 2;
	display: flex;
	align-items: flex-end;
	height: 100%;
}

.th-fiche__entete {
	width: 47.25%;
	padding-bottom: 150px;
}

.th-fiche__nom {
	margin: 0 0 10px;
	padding: 0;
	color: #fff;
	font-family: "Avenir Black", Helvetica, Arial, sans-serif;
	font-size: 60px;
	font-weight: 900;
	line-height: 80px;
}

.th-fiche__categorie {
	display: flex;
	padding: 0;
}

.th-fiche__categorie span {
	padding: 0.3em 30px;
	border: 2px solid transparent;
	border-radius: 10px;
	background-color: #db8c1c;
	color: #fff;
	font-size: 14px;
	line-height: 1.7em;
}

.th-fiche__depuis {
	margin-top: 15px;
	padding: 0;
	color: #fff;
	font-family: "Avenir Black", Helvetica, Arial, sans-serif;
	font-size: 16px;
	font-style: italic;
	line-height: 20px;
}

.th-fiche__corps {
	padding-bottom: min(4vw, 54px);
	background:
		linear-gradient(282deg, rgba(255, 255, 255, 0) 0%, #fff 25%) 100% 0 no-repeat,
		url(../img/grille-points-fond.png) 0 0 no-repeat;
}

.th-fiche__corps .th-fiche__rangee {
	padding-block: 5vw;
}

.th-fiche__colonnes {
	display: flex;
	align-items: flex-start;
	gap: 5.5%;
}

.th-fiche__presentation,
.th-fiche__gerant {
	box-sizing: border-box;
	flex: 0 0 47.25%;
	min-width: 0;
}

.th-fiche__description {
	margin-bottom: 60px;
	font-family: "Avenir Book", Helvetica, Arial, sans-serif;
	line-height: 30px;
}

.th-fiche__coordonnees {
	margin: 0;
	padding: 0;
	list-style: none;
}

.th-fiche__coordonnees li {
	display: flex;
	min-height: 20px;
	margin-bottom: 5.82%;
}

.th-fiche__coordonnees li:last-child {
	margin-bottom: 0;
}

.th-fiche__coordonnees .dashicons {
	flex: none;
	width: 32px;
	height: 16px;
	margin-top: 4px;
	color: #000;
	font-size: 16px;
	line-height: 16px;
	text-align: left;
}

.th-fiche__coordonnees li > span:last-child {
	min-width: 0;
	padding-left: 15px;
	overflow-wrap: anywhere;
}

.th-fiche__coordonnees a {
	color: inherit;
}

.th-fiche__gerant {
	padding-left: 10%;
}

.th-fiche__photo {
	display: block;
	width: 100%;
	height: auto;
	margin-bottom: 5.82%;
}

.th-fiche__gerant p {
	padding: 0;
}

.th-fiche__gerant-nom {
	margin-bottom: 12px;
	font-size: 30px;
	font-weight: 700;
	line-height: 23.8px;
}

.th-fiche__gerant-poste {
	margin-bottom: 12px;
}

.th-fiche__trait {
	box-sizing: border-box;
	max-width: 400px;
	height: 23px;
	margin-bottom: -2px;
	border-top: 1px solid #db8c1c;
}

.th-fiche__gerant-bio {
	max-width: 400px;
	font-style: italic;
}

.th-fiche__reserve {
	height: calc(2 * min(4vw, 54px) + 4 * min(2vw, 27px) + 2px);
}

/* Galerie de photos : trois colonnes, images recadrées au même format. */
.th-fiche__galerie {
	padding-block: min(4vw, 54px);
}

.th-galerie {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
	list-style: none;
}

.th-galerie--2 {
	grid-template-columns: repeat(2, 1fr);
}

.th-galerie--1 {
	grid-template-columns: minmax(0, 720px);
	justify-content: center;
}

.th-galerie li {
	margin: 0;
	padding: 0;
}

.th-galerie__lien {
	display: block;
	overflow: hidden;
	aspect-ratio: 3 / 2;
	cursor: zoom-in;
}

.th-galerie__lien img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.th-galerie__lien:hover img,
.th-galerie__lien:focus-visible img {
	transform: scale(1.04);
}

.th-galerie__lien:focus-visible {
	outline: 2px solid #e09900;
	outline-offset: 3px;
}

/* Visionneuse ouverte au clic sur une photo. */
.th-visionneuse {
	width: 100vw;
	max-width: none;
	height: 100vh;
	height: 100dvh;
	max-height: none;
	margin: 0;
	padding: 0;
	border: 0;
	background: rgba(3, 19, 23, 0.94);
	color: #fff;
}

.th-visionneuse::backdrop {
	background: rgba(3, 19, 23, 0.94);
}

.th-visionneuse__image {
	position: absolute;
	inset: 60px 70px;
	width: calc(100% - 140px);
	height: calc(100% - 120px);
	object-fit: contain;
}

.th-visionneuse button {
	position: absolute;
	z-index: 1;
	width: 48px;
	height: 48px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.12);
	color: #fff;
	font-size: 26px;
	line-height: 48px;
	cursor: pointer;
}

.th-visionneuse button:hover,
.th-visionneuse button:focus-visible {
	background: #e09900;
	outline: none;
}

.th-visionneuse__fermer {
	top: 10px;
	right: 12px;
}

.th-visionneuse__precedent,
.th-visionneuse__suivant {
	top: calc(50% - 24px);
}

.th-visionneuse__precedent {
	left: 12px;
}

.th-visionneuse__suivant {
	right: 12px;
}

.th-visionneuse__compteur {
	position: absolute;
	bottom: 18px;
	left: 0;
	width: 100%;
	margin: 0;
	padding: 0;
	font-size: 14px;
	text-align: center;
}

@media (max-width: 980px) {
	.th-fiche__rangee,
	.th-billet__rangee {
		padding-block: 30px;
	}

	.th-fiche__galerie {
		padding-block: 20px 50px;
	}

	.th-galerie--3 {
		grid-template-columns: repeat(2, 1fr);
	}

	.th-fiche__entete {
		width: 100%;
		margin-bottom: 30px;
	}

	.th-fiche__corps {
		padding-bottom: 50px;
	}

	.th-fiche__colonnes {
		display: block;
	}

	.th-fiche__presentation {
		margin-bottom: 30px;
	}

	.th-fiche__coordonnees li,
	.th-fiche__photo {
		margin-bottom: 30px;
	}

	.th-fiche__reserve {
		height: 222px;
	}

	.th-fiche__bandeau {
		padding-top: 39px;
	}
}

@media (max-width: 767px) {
	.th-fiche__gerant {
		padding: 10% 0 0;
	}

	.th-galerie {
		gap: 12px;
	}

	.th-galerie--2 {
		grid-template-columns: 1fr;
	}

	.th-visionneuse__image {
		inset: 64px 0;
		width: 100%;
		height: calc(100% - 128px);
	}

	.th-visionneuse__precedent,
	.th-visionneuse__suivant {
		top: auto;
		bottom: 8px;
	}

	.th-fiche__nom {
		font-size: 40px;
		line-height: 50px;
	}
}

/* ---------- Article ---------- */

/* Bande sombre sous le menu. */
.th-billet__bande {
	height: 64px;
	background-color: #032b35;
}

.th-billet__corps {
	background:
		linear-gradient(#fff 0%, rgba(255, 255, 255, 0.29) 100%) 100% 50% / contain no-repeat,
		url(../img/fond-rectangle.png) 0 50% / contain no-repeat;
}

.th-billet__retour a {
	position: relative;
	display: inline-block;
	padding: 0.3em 0.7em 0.3em 2em;
	color: #db8c1c;
	font-size: 16px;
	line-height: 1.7em;
}

/* Chevron devant « Retour aux actualités ». */
.th-billet__retour a::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 0.85em;
	width: 0.45em;
	height: 0.45em;
	border-bottom: 1px solid currentColor;
	border-left: 1px solid currentColor;
	transform: translateY(-50%) rotate(45deg);
}

.th-billet__colonnes {
	display: flex;
	align-items: flex-start;
	gap: 5.5%;
}

.th-billet__image,
.th-billet__texte {
	flex: 0 0 47.25%;
	min-width: 0;
}

.th-billet__image img {
	display: block;
	width: 100%;
	height: auto;
}

.th-billet__entete {
	margin-bottom: 5.82%;
}

.th-billet__titre {
	padding-bottom: 10px;
	font-family: "Avenir Black", Helvetica, Arial, sans-serif;
	font-size: 40px;
	line-height: 1em;
}

.th-billet__meta {
	padding: 0;
	line-height: 2em;
}

.th-billet__meta a {
	color: inherit;
}

.th-billet__contenu {
	margin-bottom: 5.82%;
}

.th-billet__lien {
	display: flex;
	align-items: center;
	padding: 0;
}

.th-billet__lien span {
	flex: none;
	white-space: pre;
}

.th-billet__lien a {
	min-width: 0;
	padding: 0.3em 1em;
	color: #db8c1c;
	font-family: "Avenir Book", Helvetica, Arial, sans-serif;
	font-size: 16px;
	line-height: 1.7em;
	text-decoration: underline;
	overflow-wrap: anywhere;
}

.th-billet__suite {
	padding-block: min(4vw, 54px);
	background:
		linear-gradient(247deg, #fff 59%, rgba(255, 255, 255, 0) 100%) 0 100% no-repeat,
		url(../img/grille-points-fond.png) 0 0 no-repeat;
}

.th-billet__suite-titre {
	margin-bottom: 2.75%;
	padding-bottom: 10px;
	font-family: "Avenir Black", Helvetica, Arial, sans-serif;
	font-size: 22px;
	line-height: 1em;
}

/* Grille sobre : mêmes colonnes que la grille d'articles, sans cadre ni ombre. */
.th-articles--sobre .th-article {
	border: 0;
	box-shadow: none;
}

.th-articles--sobre .th-article .th-article__image {
	margin-bottom: 30px;
}

.th-articles--sobre .th-article__titre {
	font-size: 24px;
	line-height: 1.5em;
}

.th-articles--sobre .th-article__titre a {
	font-family: Roboto, Helvetica, Arial, sans-serif;
	font-weight: 700;
}

.th-articles--sobre .th-article__meta {
	margin-bottom: 6px;
	padding: 10px 0 0;
	color: #b3b3b3;
	font-family: "Noto Sans", Helvetica, Arial, sans-serif;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.9em;
}

.th-articles--sobre .th-article__meta a {
	color: inherit;
}

.th-articles--sobre .th-article__extrait {
	font-family: "Noto Sans", Helvetica, Arial, sans-serif;
	line-height: 1.9em;
}

@media (max-width: 980px) {
	.th-billet__bande {
		height: 39px;
	}

	.th-billet__colonnes {
		display: block;
	}

	.th-billet__image,
	.th-billet__entete,
	.th-billet__contenu {
		margin-bottom: 30px;
	}

	.th-billet__suite {
		padding-block: 50px;
	}

	.th-billet__suite-titre {
		margin-bottom: 30px;
	}
}

@media (max-width: 767px) {
	.th-articles--sobre .th-article {
		margin-bottom: 11.5%;
	}

	.th-articles--sobre .th-article:last-child {
		margin-bottom: 30px;
	}

	.th-articles--sobre .th-article__titre {
		padding-bottom: 10px;
	}

	.th-articles--sobre .th-article__meta {
		padding-top: 0;
	}
}
