/**
 * Le Plein des Sens — tokens et base.
 */

@font-face {
	font-family: "Milky Vintage";
	src: url("../fonts/MilkyVintage-Soft.woff2") format("woff2");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "Source Sans 3";
	src: url("../fonts/source-sans-3-latin.woff2") format("woff2");
	font-weight: 200 900;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "Source Sans 3";
	src: url("../fonts/source-sans-3-italic-latin.woff2") format("woff2");
	font-weight: 400;
	font-style: italic;
	font-display: swap;
}

@font-face {
	font-family: "Dancing Script";
	src: url("../fonts/dancing-script-latin.woff2") format("woff2");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "Parisienne";
	src: url("../fonts/parisienne-latin.woff2") format("woff2");
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}

:root {
	--nuit: #1e2150;
	--encre: #2f2c57;
	--texte-doux: #4a4670;
	--violet: #5a3fc0;
	--violet-lumiere: #9b7ff5;
	--rose: #b04a78;
	--rose-lumiere: #f2a9c8;
	--bleu: #2f64b0;
	--bleu-lumiere: #7db3ee;
	--lavande: #f1eefb;
	--brume: #e4ddfa;
	--ciel: #dcebfa;
	--papier: #fbfafe;
	--blanc: #ffffff;
	--foreground: var(--encre);
	--background: var(--papier);
	--primary: var(--violet);

	--f-titre: "Milky Vintage", "Segoe Script", cursive;
	--f-texte: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
	--f-main: "Parisienne", "Segoe Script", cursive;
	--f-grand-titre: "Dancing Script", "Segoe Script", cursive;

	--t-h1: clamp(2.6rem, 1.6rem + 3.2vw, 4rem);
	--t-h2: clamp(2.1rem, 1.5rem + 2vw, 3rem);
	--t-h3: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem);
	--t-texte: clamp(1.0625rem, 1rem + 0.25vw, 1.125rem);
	--t-petit: 0.9375rem;
	--c-texte: #2f2c57;
	--t-xs: 1rem;
	--t-s: 1rem;
	--t-m: var(--t-texte);
	--t-l: var(--t-texte);
	--t-xl: var(--t-h3);
	--t-2xl: var(--t-h2);
	--t-3xl: var(--t-h1);
	--t-manifeste: clamp(1.6rem, 1.2rem + 1.6vw, 2.4rem);

	--gouttiere: clamp(1.25rem, 3vw, 2.5rem);
	--largeur: 1320px;
	--mesure: 62ch;
	--r-photo: 28px;
	--r-champ: 14px;
	--ombre-lumiere: 0 30px 60px -24px rgba(90, 63, 192, 0.45);
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
	-webkit-text-size-adjust: 100%;
}

body.tw-frame {
	margin: 0;
	background: var(--papier);
	color: var(--c-texte);
	font-family: var(--f-texte);
	font-size: var(--t-texte);
	line-height: 1.65;
	font-feature-settings: "kern", "liga";
	-webkit-font-smoothing: antialiased;
}

img {
	display: block;
	max-width: 100%;
	height: auto;
}

a {
	color: var(--violet);
	text-underline-offset: 0.2em;
	text-decoration-thickness: 1px;
}

a:hover {
	text-decoration-thickness: 2px;
}

:focus-visible {
	outline: 3px solid var(--violet);
	outline-offset: 3px;
	border-radius: 6px;
}

h1,
h2,
h3,
h4 {
	font-family: var(--f-titre);
	color: var(--nuit);
	font-weight: 400;
	margin: 0;
	letter-spacing: 0.01em;
	text-wrap: balance;
}

h1,
h2,
h3,
.sb-pub__title {
	text-wrap: balance;
}

h1 {
	font-size: var(--t-h1);
	line-height: 1.15;
}

h2 {
	font-family: var(--f-texte);
	font-weight: 400;
	font-size: var(--t-h2);
	line-height: 1.15;
	letter-spacing: 0;
}

#contenu.tw-frame-main :is(h1, h2),
.editor-styles-wrapper :is(h1, h2) {
	font-family: var(--f-grand-titre);
	font-weight: 400;
	line-height: 1.15;
	letter-spacing: 0;
}

#contenu.tw-frame-main h1,
.editor-styles-wrapper h1 {
	font-size: var(--t-h1);
}

#contenu.tw-frame-main h2,
.editor-styles-wrapper h2 {
	font-size: var(--t-h2);
}

h3,
h4 {
	font-family: var(--f-texte);
	font-weight: 600;
	letter-spacing: -0.015em;
}

h3 {
	font-size: var(--t-h3);
	line-height: 1.3;
}

p {
	margin: 0 0 1em;
	max-width: var(--mesure);
}

p:last-child {
	margin-bottom: 0;
}

[id] {
	scroll-margin-top: 100px;
}

.visually-hidden {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.visually-hidden:focus,
.visually-hidden:focus-visible {
	position: fixed !important;
	top: 0.75rem;
	left: 0.75rem;
	z-index: 100000;
	width: auto;
	height: auto;
	padding: 0.75rem 1.1rem;
	overflow: visible;
	clip: auto;
	white-space: normal;
	background: var(--nuit, #1e2150);
	color: #fff;
	border-radius: 999px;
	font: 700 1rem / 1.2 var(--f-texte, sans-serif);
	text-decoration: none;
	outline: 3px solid var(--violet-lumiere, #9b7ff5);
	outline-offset: 3px;
}

#contenu:focus {
	outline: none;
}

.tw-frame-main,
.tw-frame-main article,
.entry-content {
	margin: 0;
	padding: 0;
	max-width: none;
}

.entry-content > * {
	margin-top: 0;
	margin-bottom: 0;
}

body.tw-frame .alignfull {
	width: 100%;
	max-width: none;
	margin-left: 0;
	margin-right: 0;
}

.colonne {
	position: fixed;
	right: clamp(10px, 1.5vw, 24px);
	top: 50%;
	width: 8px;
	height: min(40vh, 340px);
	margin-top: calc(min(40vh, 340px) / -2);
	border-radius: 999px;
	background: rgba(155, 127, 245, 0.09);
	box-shadow: inset 0 0 0 1px rgba(155, 127, 245, 0.22);
	z-index: 40;
	pointer-events: none;
	opacity: 0;
	transition: opacity 0.8s ease;
}

.colonne.visible {
	opacity: 1;
}

.colonne__niveau {
	position: absolute;
	inset: 0;
	border-radius: inherit;
	background: linear-gradient(180deg, rgba(155, 127, 245, 0.62), rgba(242, 169, 200, 0.62) 55%, rgba(125, 179, 238, 0.68));
	clip-path: inset(0 0 calc(100% - var(--progression, 0) * 100%) 0 round 999px);
}

.colonne__bulles {
	position: absolute;
	top: 0;
	right: -8px;
	width: 80px;
	height: 100%;
}

.colonne__tete {
	position: absolute;
	left: 50%;
	top: calc(var(--progression, 0) * 100%);
	width: 8px;
	height: 8px;
	margin: -4px 0 0 -4px;
	border-radius: 50%;
	background: radial-gradient(circle at 35% 35%, #fff 0 25%, var(--violet-lumiere) 72%);
	box-shadow: 0 0 10px 3px rgba(155, 127, 245, 0.45);
}

@media (max-width: 640px) {
	.colonne {
		right: 5px;
		width: 6px;
		height: min(34vh, 260px);
		margin-top: calc(min(34vh, 260px) / -2);
	}

	.colonne__tete {
		width: 6px;
		height: 6px;
		margin: -3px 0 0 -3px;
	}

	.colonne__bulles {
		right: -2px;
		width: 64px;
	}
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	.colonne__bulles {
		display: none;
	}
}

@media (forced-colors: active) {
	* {
		-webkit-text-fill-color: unset !important;
	}
}
