/**
 * 40-pages.css — Les deux pages de fond du site : « À propos » et la page
 * consacrée à la réalité mohammadienne.
 *
 * Ces textes ne sont pas des articles : ils n'ont ni date, ni temps de lecture,
 * ni suggestions. Ils s'ouvrent sur un bandeau enluminé, se lisent dans une
 * colonne étroite, et se referment sur un envoi.
 *
 * @package Tresor_Sublime
 */

/* ==============================================================
 * OUVERTURE — le bandeau enluminé
 * ============================================================ */

.ts-ouverture {
	position: relative;
	overflow: hidden;
	background:
		radial-gradient(75% 120% at 50% -15%, rgba(176, 141, 60, 0.18) 0%, transparent 62%),
		linear-gradient(168deg, var(--ts-panneau) 0%, var(--ts-panneau-2) 100%);
	color: var(--ts-panneau-encre);
	border-bottom: 1px solid var(--ts-panneau-filet);
	padding-block: clamp(3rem, 7vw, 5.5rem);
	text-align: center;
}

.ts-ouverture__centre {
	max-width: 44rem;
	margin-inline: auto;
}

.ts-ouverture .ts-rubrique {
	color: var(--ts-laiton-clair);
}

.ts-ouverture__titre {
	margin: var(--ts-2) 0 0;
	font-size: var(--ts-t-6);
	line-height: 1.06;
	color: var(--ts-panneau-encre);
}

.ts-ouverture__lede {
	max-width: 40rem;
	margin: var(--ts-3) auto 0;
	font-size: var(--ts-t-1);
	font-style: italic;
	line-height: 1.72;
	color: var(--ts-panneau-douce);
}

/* Le filet orné du bandeau : plus clair que celui du papier. */
.ts-ouverture__filet {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: var(--ts-2);
	margin: var(--ts-3) auto 0;
	max-width: 18rem;
	color: var(--ts-panneau-filet);
}

.ts-ouverture__filet::before,
.ts-ouverture__filet::after {
	content: "";
	flex: 1;
	height: 1px;
	background-color: currentColor;
}

.ts-ouverture__filet .ts-ornement {
	font-size: 1.35rem;
	color: var(--ts-laiton-clair);
}

/* ==============================================================
 * PORTRAIT — facultatif, en arc de mihrab
 *
 * S'il n'y a pas d'image, le sceau ornemental prend exactement sa place :
 * la composition reste centrée et complète dans les deux cas.
 * ============================================================ */

.ts-portrait {
	position: relative;
	width: min(15rem, 52vw);
	margin: 0 auto var(--ts-3);
	aspect-ratio: 3 / 4;
	overflow: hidden;
	background-color: var(--ts-panneau-2);
	/* L'arc : arrondi complet en haut, presque droit en bas. */
	border-radius: 50% 50% var(--ts-rayon) var(--ts-rayon) / 44% 44% var(--ts-rayon) var(--ts-rayon);
}

.ts-portrait img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 0;
}

/* Le filet de laiton en retrait, comme le passe-partout d'un tirage. */
.ts-portrait::after {
	content: "";
	position: absolute;
	inset: 0.6rem;
	border: 1px solid rgba(220, 187, 104, 0.45);
	border-radius: inherit;
	pointer-events: none;
}

.ts-sceau {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 5.5rem;
	height: 5.5rem;
	margin: 0 auto var(--ts-2);
	border: 1px solid var(--ts-panneau-filet);
	border-radius: 50%;
	font-family: var(--ts-titre);
	font-size: 2rem;
	line-height: 1;
	color: var(--ts-laiton-clair);
}

/* ==============================================================
 * LE TEXTE
 * ============================================================ */

.ts-page-texte {
	max-width: 60ch;
	margin: 0 auto;
	padding-block: clamp(2.5rem, 5vw, 4rem);
	font-size: 1.1rem;
	line-height: 1.82;
}

.ts-page-texte > p {
	margin: 0 0 1.25em;
}

/* Lettrine sur le premier paragraphe seulement. */
.ts-page-texte > p:first-of-type::first-letter {
	float: left;
	padding: 0.06em 0.14em 0 0;
	font-family: var(--ts-titre);
	font-size: 3.6em;
	line-height: 0.82;
	color: var(--ts-vert);
}

/* Un mot que l'auteur met en relief garde la couleur de l'encre. */
.ts-page-texte strong {
	font-weight: 600;
	color: var(--ts-encre);
}

.ts-page-texte em {
	color: var(--ts-encre-douce);
}

/* --- Exergue au fil du texte -------------------------------- */

.ts-exergue {
	margin: var(--ts-4) 0;
	padding: 0 0 0 var(--ts-3);
	border-left: 2px solid var(--ts-laiton);
	font-family: var(--ts-titre);
	font-size: var(--ts-t-3);
	line-height: 1.42;
	color: var(--ts-encre);
}

.ts-exergue cite {
	display: block;
	margin-top: var(--ts-1);
	font-family: var(--ts-rubr);
	font-size: 0.7rem;
	font-style: normal;
	letter-spacing: 0.13em;
	text-transform: uppercase;
	color: var(--ts-encre-pale);
}

/* --- Une phrase isolée, posée entre deux respirations -------- */

.ts-stance {
	margin: var(--ts-5) 0;
	font-family: var(--ts-titre);
	font-size: clamp(1.5rem, 1.15rem + 1.5vw, 2.1rem);
	line-height: 1.34;
	text-align: center;
	text-wrap: balance;
	color: var(--ts-vert);
}

/* ==============================================================
 * LITANIE — les quatre membres parallèles du texte
 *
 * Le parallélisme est dans la phrase ; la mise en pages le rend visible
 * au lieu de le noyer dans un paragraphe.
 * ============================================================ */

.ts-litanie {
	margin: var(--ts-4) 0;
	padding: 0;
	list-style: none;
	border-top: 1px solid var(--ts-laiton);
}

.ts-litanie li {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
	align-items: baseline;
	gap: var(--ts-2);
	margin: 0;
	padding: 0.95rem 0;
	border-bottom: 1px solid var(--ts-filet);
}

.ts-litanie__un {
	font-family: var(--ts-titre);
	font-size: 1.14rem;
	line-height: 1.4;
	color: var(--ts-encre);
}

.ts-litanie__pivot {
	font-family: var(--ts-titre);
	font-size: 0.85rem;
	color: var(--ts-laiton);
	line-height: 1;
}

.ts-litanie__deux {
	font-size: 1rem;
	line-height: 1.5;
	text-align: right;
	font-style: italic;
	color: var(--ts-encre-douce);
}

@media (max-width: 620px) {
	.ts-litanie li {
		grid-template-columns: minmax(0, 1fr);
		gap: 0.3rem;
		text-align: center;
	}

	.ts-litanie__deux {
		text-align: center;
	}

	.ts-litanie__pivot {
		font-size: 0.75rem;
	}
}

/* ==============================================================
 * ENVOI — la dernière phrase, sur fond enluminé
 * ============================================================ */

.ts-envoi {
	background: linear-gradient(168deg, var(--ts-panneau) 0%, var(--ts-panneau-2) 100%);
	color: var(--ts-panneau-encre);
	border-top: 1px solid var(--ts-panneau-filet);
	padding-block: clamp(2.75rem, 6vw, 4.5rem);
	text-align: center;
}

.ts-envoi__texte {
	max-width: 34rem;
	margin: 0 auto;
	font-family: var(--ts-titre);
	font-size: clamp(1.45rem, 1.1rem + 1.6vw, 2.2rem);
	line-height: 1.38;
	text-wrap: balance;
	color: var(--ts-panneau-encre);
}

.ts-envoi__signature {
	margin: var(--ts-3) 0 0;
	font-family: var(--ts-rubr);
	font-size: 0.7rem;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--ts-panneau-douce);
}

.ts-envoi .ts-ornement {
	display: block;
	margin-top: var(--ts-3);
	font-size: 1.5rem;
	color: var(--ts-laiton-clair);
}

/* ==============================================================
 * LA QUESTION — page « Qu'est-ce que Mouhammad ? »
 * ============================================================ */

.ts-question {
	margin: var(--ts-2) 0 0;
	font-size: clamp(2.1rem, 1.3rem + 3.6vw, 4.2rem);
	line-height: 1.02;
	letter-spacing: -0.01em;
	color: var(--ts-panneau-encre);
	text-wrap: balance;
}

/* Le nom porte la lumière : c'est le sujet de la page. */
.ts-question em {
	display: block;
	font-style: normal;
	color: var(--ts-laiton-clair);
	letter-spacing: 0.02em;
}

/* ==============================================================
 * Téléphone
 * ============================================================ */

@media (max-width: 640px) {
	.ts-page-texte {
		font-size: 1.05rem;
		line-height: 1.76;
	}

	.ts-page-texte > p:first-of-type::first-letter {
		font-size: 2.9em;
	}

	.ts-exergue {
		padding-left: var(--ts-2);
		font-size: var(--ts-t-2);
	}

	.ts-stance {
		margin-block: var(--ts-4);
	}

	.ts-portrait {
		width: min(12rem, 54vw);
	}
}
