/**
 * TEP Dossier Prototype — La ligne des possibles
 * Version: 0.1.1
 * Scope: dossier WordPress 14656 uniquement.
 */

body.tep-dossier-prototype {
	--tep-paper: #f4f0e7;
	--tep-paper-light: #fbf9f4;
	--tep-sand: #e8dfcf;
	--tep-ink: #172820;
	--tep-moss: #65725b;
	--tep-saffron: #d79a32;
	--tep-coral: #c96f55;
	--tep-line: rgba(23, 40, 32, 0.2);
	--tep-serif: "Instrument Serif", "Iowan Old Style", Baskerville, Georgia, serif;
	--tep-sans: Manrope, Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	background: var(--tep-paper);
	color: var(--tep-ink);
	font-family: var(--tep-sans);
}

body.tep-dossier-prototype #main-content {
	background: var(--tep-paper);
	color: var(--tep-ink);
	overflow: clip;
}

body.tep-dossier-prototype #main-content > .container {
	max-width: 1180px;
	padding-block: clamp(3rem, 6vw, 6.5rem);
	width: min(92vw, 1180px);
}

body.tep-dossier-prototype #main-content > .container::before,
body.tep-dossier-prototype #sidebar {
	display: none !important;
}

body.tep-dossier-prototype #left-area {
	float: none;
	padding: 0;
	width: 100%;
}

body.tep-dossier-prototype article.et_pb_post {
	margin: 0;
	width: 100%;
}

body.tep-dossier-prototype article > .et_post_meta_wrapper:first-child {
	background: var(--tep-ink);
	border-left: clamp(0.45rem, 1vw, 0.8rem) solid var(--tep-saffron);
	box-sizing: border-box;
	color: var(--tep-paper-light);
	min-height: clamp(22rem, 42vw, 34rem);
	overflow: hidden;
	padding: clamp(5rem, 10vw, 9rem) clamp(2rem, 8vw, 7.5rem) clamp(4rem, 8vw, 7rem);
	position: relative;
}

body.tep-dossier-prototype article > .et_post_meta_wrapper:first-child::before {
	color: var(--tep-saffron);
	content: "COLLECTION · DOSSIERS THÉMATIQUES";
	font-family: var(--tep-sans);
	font-size: 0.75rem;
	font-weight: 800;
	left: clamp(2rem, 8vw, 7.5rem);
	letter-spacing: 0.16em;
	position: absolute;
	top: clamp(2.5rem, 5vw, 4.5rem);
}

body.tep-dossier-prototype article > .et_post_meta_wrapper:first-child::after {
	bottom: clamp(2rem, 4vw, 3.5rem);
	color: rgba(251, 249, 244, 0.52);
	content: "VOLUME 02";
	font-family: var(--tep-sans);
	font-size: 0.78rem;
	font-weight: 750;
	letter-spacing: 0.18em;
	position: absolute;
	right: clamp(2rem, 5vw, 4rem);
}

body.tep-dossier-prototype article h1.entry-title {
	color: var(--tep-paper-light);
	font-family: var(--tep-serif);
	font-size: clamp(3.4rem, 7vw, 6.8rem);
	font-weight: 400;
	letter-spacing: -0.045em;
	line-height: 0.9;
	max-width: 11ch;
	padding: 0;
}

body.tep-dossier-prototype .entry-content {
	padding: 0;
}

body.tep-dossier-prototype :where(.tep-dossier-lead, .tep-dossier-layout, .tep-dossier-author, .tep-dossier-related) {
	box-sizing: border-box;
}

body.tep-dossier-prototype .tep-dossier-lead {
	background: var(--tep-paper-light);
	box-shadow: 0 1.5rem 3.5rem rgba(23, 40, 32, 0.08);
	margin: -2.5rem auto clamp(4rem, 8vw, 7rem);
	max-width: 980px;
	padding: clamp(2rem, 5vw, 4.5rem);
	position: relative;
	z-index: 2;
}

body.tep-dossier-prototype .tep-dossier-meta {
	align-items: center;
	color: var(--tep-moss);
	display: flex;
	flex-wrap: wrap;
	font-size: 0.72rem;
	font-weight: 800;
	gap: 0.65rem;
	letter-spacing: 0.12em;
	margin-bottom: 1.5rem;
	text-transform: uppercase;
}

body.tep-dossier-prototype .tep-dossier-deck {
	color: var(--tep-ink);
	font-family: var(--tep-serif);
	font-size: clamp(1.75rem, 3.5vw, 3rem);
	letter-spacing: -0.025em;
	line-height: 1.08;
	margin: 0;
	max-width: 29ch;
	padding: 0;
}

body.tep-dossier-prototype .tep-dossier-layout {
	display: grid;
	gap: clamp(3rem, 7vw, 6rem);
	grid-template-columns: minmax(180px, 240px) minmax(0, 760px);
	justify-content: center;
}

body.tep-dossier-prototype .tep-dossier-rail {
	align-self: start;
	border-top: 1px solid var(--tep-line);
	position: sticky;
	top: 8rem;
}

body.tep-dossier-prototype .tep-dossier-toc {
	border-bottom: 1px solid var(--tep-line);
	padding-block: 1.25rem 1.5rem;
}

body.tep-dossier-prototype .tep-dossier-toc summary {
	color: var(--tep-ink);
	cursor: pointer;
	font-size: 0.75rem;
	font-weight: 800;
	letter-spacing: 0.14em;
	list-style: none;
	text-transform: uppercase;
}

body.tep-dossier-prototype .tep-dossier-toc summary::-webkit-details-marker {
	display: none;
}

body.tep-dossier-prototype .tep-dossier-toc summary::after {
	content: "−";
	float: right;
}

body.tep-dossier-prototype .tep-dossier-toc:not([open]) summary::after {
	content: "+";
}

body.tep-dossier-prototype .tep-dossier-toc ol {
	counter-reset: tep-toc;
	list-style: none;
	margin: 1.5rem 0 0;
	padding: 0;
}

body.tep-dossier-prototype .tep-dossier-toc li {
	counter-increment: tep-toc;
	margin: 0 0 0.85rem;
}

body.tep-dossier-prototype .tep-dossier-toc li::before {
	color: var(--tep-saffron);
	content: "0" counter(tep-toc);
	display: inline-block;
	font-size: 0.66rem;
	font-weight: 800;
	letter-spacing: 0.08em;
	width: 2rem;
}

body.tep-dossier-prototype .tep-dossier-toc a,
body.tep-dossier-prototype .tep-dossier-rail-back {
	color: var(--tep-ink);
	font-size: 0.88rem;
	line-height: 1.4;
}

body.tep-dossier-prototype .tep-dossier-rail-back {
	display: flex;
	font-weight: 750;
	justify-content: space-between;
	margin-top: 1.25rem;
	text-decoration: none;
}

body.tep-dossier-prototype .tep-dossier-copy {
	min-width: 0;
}

body.tep-dossier-prototype .tep-dossier-opening {
	color: var(--tep-ink);
	font-family: var(--tep-serif);
	font-size: clamp(1.6rem, 3vw, 2.35rem);
	line-height: 1.2;
	margin: 0 0 clamp(4rem, 8vw, 7rem);
	padding: 0 0 2rem;
	position: relative;
}

body.tep-dossier-prototype .tep-dossier-opening::after {
	background: var(--tep-saffron);
	bottom: 0;
	content: "";
	height: 3px;
	left: 0;
	position: absolute;
	width: 5rem;
}

body.tep-dossier-prototype .tep-dossier-chapter {
	margin-bottom: clamp(4.5rem, 9vw, 8rem);
	scroll-margin-top: 8rem;
}

body.tep-dossier-prototype .tep-dossier-chapter-number,
body.tep-dossier-prototype .tep-dossier-resource-label,
body.tep-dossier-prototype .tep-dossier-author-label,
body.tep-dossier-prototype .tep-dossier-related-heading > p {
	color: var(--tep-saffron);
	font-family: var(--tep-sans);
	font-size: 0.72rem;
	font-weight: 800;
	letter-spacing: 0.15em;
	margin: 0 0 1rem;
	padding: 0;
	text-transform: uppercase;
}

body.tep-dossier-prototype .tep-dossier-chapter h2,
body.tep-dossier-prototype .tep-dossier-resource h2,
body.tep-dossier-prototype .tep-dossier-author h2,
body.tep-dossier-prototype .tep-dossier-related h2 {
	color: var(--tep-ink);
	font-family: var(--tep-serif);
	font-size: clamp(2.6rem, 5vw, 4.8rem);
	font-weight: 400;
	letter-spacing: -0.04em;
	line-height: 0.98;
	margin: 0 0 2rem;
	padding: 0;
}

body.tep-dossier-prototype .tep-dossier-copy :where(.tep-dossier-chapter > p, .tep-dossier-resource p) {
	color: var(--tep-ink);
	font-family: var(--tep-sans);
	font-size: clamp(1.05rem, 1rem + 0.2vw, 1.18rem);
	line-height: 1.75;
	margin: 0;
	padding: 0 0 1.35rem;
}

body.tep-dossier-prototype .tep-dossier-chapter blockquote {
	border: 0;
	border-left: 4px solid var(--tep-saffron);
	color: var(--tep-ink);
	font-family: var(--tep-serif);
	font-size: clamp(1.8rem, 3.4vw, 3rem);
	font-style: normal;
	line-height: 1.12;
	margin: clamp(2.5rem, 5vw, 4.5rem) 0;
	padding: 0.35rem 0 0.35rem clamp(1.5rem, 4vw, 3rem);
}

body.tep-dossier-prototype .tep-dossier-takeaway {
	background: var(--tep-sand);
	border-top: 4px solid var(--tep-saffron);
	margin-top: 2rem;
	padding: clamp(1.75rem, 4vw, 3rem);
}

body.tep-dossier-prototype .tep-dossier-takeaway span {
	display: block;
	font-size: 0.7rem;
	font-weight: 800;
	letter-spacing: 0.15em;
	margin-bottom: 0.8rem;
	text-transform: uppercase;
}

body.tep-dossier-prototype .tep-dossier-takeaway strong {
	font-family: var(--tep-serif);
	font-size: clamp(1.45rem, 2.7vw, 2.2rem);
	font-weight: 400;
	line-height: 1.2;
}

body.tep-dossier-prototype .tep-dossier-resource {
	align-items: end;
	background: var(--tep-ink);
	color: var(--tep-paper-light);
	display: grid;
	gap: 2rem;
	grid-template-columns: 1fr auto;
	margin-bottom: clamp(5rem, 10vw, 9rem);
	padding: clamp(2rem, 5vw, 4.5rem);
	scroll-margin-top: 8rem;
}

body.tep-dossier-prototype .tep-dossier-resource h2,
body.tep-dossier-prototype .tep-dossier-resource p {
	color: var(--tep-paper-light);
}

body.tep-dossier-prototype .tep-dossier-resource h2 {
	font-size: clamp(2.4rem, 4.5vw, 4rem);
	max-width: 12ch;
}

body.tep-dossier-prototype .tep-dossier-resource p:last-child {
	font-size: 0.98rem;
	max-width: 48ch;
	padding-bottom: 0;
}

body.tep-dossier-prototype .tep-dossier-download {
	align-items: center;
	background: var(--tep-saffron);
	color: var(--tep-ink);
	display: flex;
	font-size: 0.75rem;
	font-weight: 850;
	gap: 2rem;
	justify-content: space-between;
	letter-spacing: 0.1em;
	min-width: 10rem;
	padding: 1rem 1.2rem;
	text-decoration: none;
	text-transform: uppercase;
}

body.tep-dossier-prototype .tep-dossier-author {
	align-items: center;
	background: var(--tep-paper-light);
	border-block: 1px solid var(--tep-line);
	display: grid;
	gap: clamp(2rem, 6vw, 5rem);
	grid-template-columns: minmax(160px, 240px) minmax(0, 1fr);
	margin: 0 auto clamp(5rem, 10vw, 9rem);
	max-width: 980px;
	padding-block: clamp(2rem, 5vw, 4rem);
}

body.tep-dossier-prototype .tep-dossier-author img {
	filter: saturate(0.78);
	height: clamp(13rem, 24vw, 19rem);
	object-fit: cover;
	width: 100%;
}

body.tep-dossier-prototype .tep-dossier-author h2 {
	font-size: clamp(2.7rem, 5vw, 4.5rem);
	margin-bottom: 1.25rem;
}

body.tep-dossier-prototype .tep-dossier-author p {
	color: var(--tep-ink);
	font-size: 1rem;
	line-height: 1.65;
	margin: 0;
	max-width: 58ch;
	padding: 0 0 0.85rem;
}

body.tep-dossier-prototype .tep-dossier-author .tep-dossier-author-signature {
	color: var(--tep-moss);
	font-family: var(--tep-serif);
	font-size: 1.35rem;
}

body.tep-dossier-prototype .tep-dossier-author a {
	border-bottom: 2px solid var(--tep-saffron);
	color: var(--tep-ink);
	display: inline-flex;
	font-size: 0.75rem;
	font-weight: 800;
	gap: 1.5rem;
	letter-spacing: 0.1em;
	padding-bottom: 0.35rem;
	text-decoration: none;
	text-transform: uppercase;
}

body.tep-dossier-prototype .tep-dossier-related {
	background: var(--tep-ink);
	color: var(--tep-paper-light);
	margin-inline: calc(50% - 50vw);
	padding: clamp(4rem, 9vw, 8rem) max(4vw, calc((100vw - 1180px) / 2));
}

body.tep-dossier-prototype .tep-dossier-related-heading {
	margin: 0 auto clamp(2.5rem, 5vw, 4.5rem);
	max-width: 1180px;
}

body.tep-dossier-prototype .tep-dossier-related h2 {
	color: var(--tep-paper-light);
	margin: 0;
}

body.tep-dossier-prototype .tep-dossier-related-grid {
	display: grid;
	gap: 1.25rem;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	margin: 0 auto;
	max-width: 1180px;
}

body.tep-dossier-prototype .tep-dossier-related-card {
	background: var(--tep-paper-light);
	color: var(--tep-ink);
	display: flex;
	flex-direction: column;
	min-height: 22rem;
	padding: clamp(1.5rem, 3vw, 2.5rem);
	text-decoration: none;
	transition: transform 180ms ease, background-color 180ms ease;
}

body.tep-dossier-prototype .tep-dossier-related-card:hover,
body.tep-dossier-prototype .tep-dossier-related-card:focus-visible {
	background: var(--tep-sand);
	transform: translateY(-0.4rem);
}

body.tep-dossier-prototype .tep-dossier-related-card--2 {
	background: var(--tep-saffron);
}

body.tep-dossier-prototype .tep-dossier-related-card--3 {
	background: var(--tep-coral);
}

body.tep-dossier-prototype .tep-dossier-related-number,
body.tep-dossier-prototype .tep-dossier-related-label {
	font-size: 0.68rem;
	font-weight: 850;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

body.tep-dossier-prototype .tep-dossier-related-number {
	border-bottom: 1px solid currentColor;
	margin-bottom: 1.5rem;
	padding-bottom: 0.8rem;
}

body.tep-dossier-prototype .tep-dossier-related-label {
	margin-bottom: 1.5rem;
	opacity: 0.7;
}

body.tep-dossier-prototype .tep-dossier-related-card strong {
	font-family: var(--tep-serif);
	font-size: clamp(1.9rem, 3vw, 2.8rem);
	font-weight: 400;
	letter-spacing: -0.035em;
	line-height: 1.02;
}

body.tep-dossier-prototype .tep-dossier-related-action {
	align-items: center;
	display: flex;
	font-size: 0.72rem;
	font-weight: 800;
	justify-content: space-between;
	letter-spacing: 0.08em;
	margin-top: auto;
	padding-top: 2rem;
	text-transform: uppercase;
}

body.tep-dossier-prototype :where(a, summary):focus-visible {
	outline: 3px solid var(--tep-saffron);
	outline-offset: 4px;
}

body.tep-dossier-prototype article > .et_post_meta_wrapper:last-child:empty {
	display: none;
}

@media (max-width: 980px) {
	body.tep-dossier-prototype #main-content > .container {
		width: min(94vw, 760px);
	}

	body.tep-dossier-prototype .tep-dossier-layout {
		grid-template-columns: 1fr;
	}

	body.tep-dossier-prototype .tep-dossier-rail {
		position: static;
	}

	body.tep-dossier-prototype .tep-dossier-resource {
		align-items: stretch;
		grid-template-columns: 1fr;
	}

	body.tep-dossier-prototype .tep-dossier-download {
		justify-self: start;
	}

	body.tep-dossier-prototype .tep-dossier-related-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 600px) {
	body.tep-dossier-prototype #main-content > .container {
		padding-block: 1.5rem 3rem;
		width: calc(100% - 1.5rem);
	}

	body.tep-dossier-prototype article > .et_post_meta_wrapper:first-child {
		border-left-width: 0.45rem;
		min-height: 28rem;
		padding: 7.2rem 1.5rem 4.5rem;
	}

	body.tep-dossier-prototype article > .et_post_meta_wrapper:first-child::before {
		left: 1.5rem;
		top: 3rem;
	}

	body.tep-dossier-prototype article > .et_post_meta_wrapper:first-child::after {
		bottom: 2rem;
		right: 1.5rem;
	}

	body.tep-dossier-prototype article h1.entry-title {
		font-size: clamp(3rem, 15vw, 4.4rem);
		line-height: 0.93;
	}

	body.tep-dossier-prototype .tep-dossier-lead {
		margin: -1.25rem 0 4.5rem;
		padding: 1.75rem 1.4rem 2.2rem;
		width: calc(100% - 1rem);
	}

	body.tep-dossier-prototype .tep-dossier-meta {
		align-items: flex-start;
		flex-direction: column;
		gap: 0.3rem;
	}

	body.tep-dossier-prototype .tep-dossier-meta > [aria-hidden="true"] {
		display: none;
	}

	body.tep-dossier-prototype .tep-dossier-layout {
		gap: 3rem;
		padding-inline: 0.75rem;
	}

	body.tep-dossier-prototype .tep-dossier-opening {
		margin-bottom: 4.5rem;
	}

	body.tep-dossier-prototype .tep-dossier-chapter h2,
	body.tep-dossier-prototype .tep-dossier-resource h2,
	body.tep-dossier-prototype .tep-dossier-author h2,
	body.tep-dossier-prototype .tep-dossier-related h2 {
		font-size: clamp(2.45rem, 12vw, 3.4rem);
	}

	body.tep-dossier-prototype .tep-dossier-resource {
		margin-inline: -0.75rem;
		padding: 2rem 1.5rem;
	}

	body.tep-dossier-prototype .tep-dossier-download {
		box-sizing: border-box;
		width: 100%;
	}

	body.tep-dossier-prototype .tep-dossier-author {
		gap: 1.75rem;
		grid-template-columns: 1fr;
		margin-inline: 0.75rem;
	}

	body.tep-dossier-prototype .tep-dossier-author img {
		height: 18rem;
		max-width: 15rem;
	}

	body.tep-dossier-prototype .tep-dossier-related {
		padding-inline: 1.5rem;
	}

	body.tep-dossier-prototype .tep-dossier-related-grid {
		grid-template-columns: 1fr;
	}

	body.tep-dossier-prototype .tep-dossier-related-card {
		min-height: 19rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	body.tep-dossier-prototype .tep-dossier-related-card {
		transition: none;
	}
}
