/* ==========================================================================
   Vault Zine : styles des blocs (contenu des éditions et des pages)
   Chargé sur le site et dans l’éditeur. Chaque variante vient d’une classe
   « is-style-… » posée par l’éditeur : aucun style inline (CSP).
   ========================================================================== */

/* --- Mise en page des blocs ------------------------------------------------
   La CSP retire les styles globaux de WordPress (classes is-layout-*) :
   le thème fournit lui-même ce dont les blocs ont besoin. */

.is-layout-flex {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75em 1em;
}

.is-layout-flex > :is(*, div) {
	margin: 0;
}

.is-content-justification-center { justify-content: center; }
.is-content-justification-right { justify-content: flex-end; }
.is-content-justification-space-between { justify-content: space-between; }

.is-layout-constrained > * + *,
.is-layout-flow > * + * {
	margin-block-start: 1em;
}

.has-text-align-center { text-align: center; }
.has-text-align-right { text-align: right; }

.aligncenter {
	margin-left: auto;
	margin-right: auto;
}

/* --- Texte courant ---------------------------------------------------------- */

mark,
.has-inline-color {
	color: inherit;
	background: linear-gradient(100deg, transparent 2%, rgba(255, 61, 190, 0.28) 6%, rgba(255, 61, 190, 0.32) 92%, transparent 98%);
	padding: 0 0.15em;
}

:where(.wp-block-paragraph, p) code,
.wp-block-list code {
	padding: 1px 5px;
	font-size: 0.92em;
	background: rgba(43, 33, 64, 0.08);
	border-radius: 2px;
}

/* --- Titres --------------------------------------------------------------- */

.wp-block-heading {
	font-family: var(--font-occult);
	font-weight: 400;
	color: var(--paper-ink);
	margin: 1.4em 0 0.5em;
}

h2.wp-block-heading { font-size: 1.95rem; }
h3.wp-block-heading { font-size: 1.5rem; }
h4.wp-block-heading { font-size: 1.2rem; }

.wp-block-heading.is-style-typed {
	font-family: var(--font-type);
	font-size: 1.05rem;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	padding-bottom: 6px;
	border-bottom: 2px dashed rgba(43, 33, 64, 0.45);
}

.wp-block-heading.is-style-label {
	display: table;
	padding: 4px 14px 2px;
	font-family: var(--font-type);
	font-size: 0.95rem;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	color: var(--star);
	background: var(--paper-ink);
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
	transform: rotate(-1.5deg);
}

.wp-block-heading.is-style-handwritten {
	font-family: var(--font-hand);
	font-weight: 700;
	font-size: 2.3rem;
	line-height: 1;
	color: var(--pen);
	transform: rotate(-1.5deg);
}

.wp-block-heading.is-style-occult {
	font-family: var(--font-occult-sc);
	text-align: center;
	letter-spacing: 0.06em;
}

.wp-block-heading.is-style-occult::before,
.wp-block-heading.is-style-occult::after {
	content: "✦";
	display: inline-block;
	margin: 0 0.6em;
	font-size: 0.55em;
	vertical-align: middle;
	color: var(--violet);
}

/* Onglet de dossier : le titre posé sur l’onglet d’une chemise kraft. */
.wp-block-heading.is-style-folder-tab {
	display: table;
	padding: 8px 26px 4px 16px;
	font-family: var(--font-type);
	letter-spacing: 0.04em;
	color: var(--paper-ink);
	background: url("../img/grain.svg"), var(--manila);
	background-blend-mode: multiply, normal;
	border-radius: 8px 8px 0 0;
	clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 100%, 0 100%);
	box-shadow: inset 0 -3px 0 var(--manila-dark);
}

/* Enseigne au néon : tube rose qui grésille. */
.wp-block-heading.is-style-neon {
	display: table;
	padding: 6px 18px 4px;
	font-family: var(--font-hand);
	font-size: 2.3em;
	font-weight: 400;
	line-height: 1.1;
	color: #ffe6f6;
	text-shadow: 0 0 4px #fff, 0 0 10px var(--pink), 0 0 22px var(--pink), 0 0 40px rgba(255, 61, 190, 0.7);
	background: #120f22;
	border-radius: 8px;
	box-shadow: inset 0 0 0 2px rgba(255, 61, 190, 0.35), 0 0 30px rgba(255, 61, 190, 0.2);
	animation: vault-flicker 6s infinite;
}

@keyframes vault-flicker {
	0%, 92%, 96%, 100% { opacity: 1; }
	93%, 95% { opacity: 0.55; }
}

/* --- Paragraphes --------------------------------------------------------------- */

p.is-style-margin-note {
	position: relative;
	max-width: 30rem;
	margin-left: 2.2rem;
	font-family: var(--font-hand);
	font-size: 1.45rem;
	line-height: 1.25;
	color: var(--pen);
	transform: rotate(-1.2deg);
}

p.is-style-margin-note::before {
	content: "↳";
	position: absolute;
	left: -1.6rem;
	top: 0;
	font-family: var(--font-body);
	color: var(--stamp-ink);
}

p.is-style-memo {
	padding: 16px 18px 14px;
	font-family: var(--font-type);
	font-size: 0.95rem;
	background:
		linear-gradient(var(--paper-ink), var(--paper-ink)) 18px 12px / 60px 2px no-repeat,
		var(--paper);
	padding-top: 24px;
	box-shadow: 0 1px 1px rgba(0, 0, 0, 0.12), 0 10px 18px -12px rgba(0, 0, 0, 0.45);
}

/* Passage caviardé : lisible au survol, et toujours pour les lecteurs d’écran. */
p.is-style-redacted {
	color: transparent;
	background:
		repeating-linear-gradient(transparent 0 0.25em, var(--paper-ink) 0.25em 1.35em, transparent 1.35em 1.65em);
	transition: color 0.4s ease, background 0.4s ease;
	cursor: help;
}

p.is-style-redacted.is-revealed {
	color: var(--paper-ink);
	background: rgba(124, 244, 200, 0.18);
}

@media (hover: hover) {
	p.is-style-redacted:hover {
		color: var(--paper-ink);
		background: rgba(124, 244, 200, 0.18);
	}
}

p.is-style-uv-ink {
	padding: 16px 20px;
	font-family: var(--font-hand);
	font-size: 1.5rem;
	line-height: 1.3;
	color: var(--mint);
	text-shadow: 0 0 10px rgba(124, 244, 200, 0.55);
	background:
		radial-gradient(circle at 20% 30%, rgba(185, 123, 255, 0.25), transparent 60%),
		var(--night-card);
	border-radius: 4px;
	box-shadow: inset 0 0 0 1px rgba(124, 244, 200, 0.25), 0 0 30px rgba(124, 244, 200, 0.12);
}

p.is-style-uv-ink a {
	color: var(--star);
}

/* Post-it : carré jaune collé de travers, écriture au feutre. */
p.is-style-sticky-note {
	max-width: 20em;
	padding: 22px 20px 26px;
	font-family: var(--font-hand);
	font-size: 1.45rem;
	line-height: 1.25;
	color: #2b2140;
	background: linear-gradient(#f7e27a, #f3d95a 70%, #ebcd4a);
	box-shadow: 0 18px 14px -14px rgba(0, 0, 0, 0.5), inset 0 14px 10px -12px rgba(0, 0, 0, 0.12);
	transform: rotate(-2deg);
}

p.is-style-sticky-note a {
	color: #5b2fa8;
}

/* Lettrine enluminée : première lettre dans un cadre doré et étoilé. */
p.is-style-drop-cap {
	display: flow-root;
}

p.is-style-drop-cap::first-letter {
	float: left;
	margin: 6px 10px 0 0;
	padding: 8px 10px 2px;
	font-family: var(--font-occult);
	font-size: 3.6em;
	line-height: 0.85;
	color: #e8c977;
	background:
		radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.6) 0 1px, transparent 2px),
		radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.5) 0 1px, transparent 2px),
		#2b2140;
	border: 2px solid #c9a24a;
	box-shadow: 0 0 0 3px #2b2140, 0 0 0 4px #c9a24a;
}

/* --- Listes ------------------------------------------------------------------------ */

.wp-block-list {
	padding-left: 1.4em;
}

.wp-block-list li::marker {
	color: var(--stamp-ink);
}

ul.wp-block-list.is-style-checklist,
ul.wp-block-list.is-style-stars,
ol.wp-block-list.is-style-exhibits,
.wp-block-list.is-style-checklist,
.wp-block-list.is-style-stars,
.wp-block-list.is-style-exhibits {
	list-style: none;
	padding-left: 0;
}

.wp-block-list.is-style-checklist li,
.wp-block-list.is-style-stars li {
	position: relative;
	padding-left: 2em;
	margin-bottom: 0.3em;
}

.wp-block-list.is-style-checklist li::before {
	content: "";
	position: absolute;
	left: 0.1em;
	top: 0.35em;
	width: 0.95em;
	height: 0.95em;
	border: 2px solid var(--paper-ink);
	border-radius: 2px;
	transform: rotate(-3deg);
}

.wp-block-list.is-style-checklist li:nth-child(odd)::after {
	content: "✓";
	position: absolute;
	left: 0.2em;
	top: -0.25em;
	font-family: var(--font-hand);
	font-size: 1.6em;
	font-weight: 700;
	color: var(--pen);
}

.wp-block-list.is-style-stars li::before {
	content: "✦";
	position: absolute;
	left: 0.3em;
	color: var(--violet);
}

.wp-block-list.is-style-exhibits {
	counter-reset: exhibit;
}

.wp-block-list.is-style-exhibits li {
	position: relative;
	padding: 6px 0 6px 6.4em;
	border-bottom: 1px dashed rgba(43, 33, 64, 0.25);
	counter-increment: exhibit;
}

.wp-block-list.is-style-exhibits li::before {
	content: "Exh. " counter(exhibit, upper-alpha);
	position: absolute;
	left: 0;
	top: 6px;
	padding: 1px 8px 0;
	font-family: var(--font-type);
	font-size: 0.75rem;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--stamp-ink);
	border: 2px solid currentColor;
	border-radius: 3px;
	transform: rotate(-3deg);
}

.wp-block-list.is-style-handwritten {
	font-family: var(--font-hand);
	font-size: 1.45rem;
	line-height: 1.3;
	color: var(--pen);
}

/* Phases de la lune : chaque point est une lune qui croît. */
.wp-block-list.is-style-moon {
	list-style: none;
	padding-left: 0;
}

.wp-block-list.is-style-moon li {
	position: relative;
	padding-left: 34px;
	margin-bottom: 0.5em;
}

.wp-block-list.is-style-moon li::before {
	content: "";
	position: absolute;
	left: 4px;
	top: 0.35em;
	width: 16px;
	height: 16px;
	box-sizing: border-box;
	border: 1.5px solid var(--pen);
	border-radius: 50%;
}

.wp-block-list.is-style-moon li:nth-child(4n + 1)::before { box-shadow: inset -4px 0 0 var(--pen); }
.wp-block-list.is-style-moon li:nth-child(4n + 2)::before { box-shadow: inset -7px 0 0 var(--pen); }
.wp-block-list.is-style-moon li:nth-child(4n + 3)::before { box-shadow: inset -10px 0 0 var(--pen); }
.wp-block-list.is-style-moon li:nth-child(4n + 4)::before { background: var(--pen); box-shadow: 0 0 8px rgba(185, 123, 255, 0.6); }

/* Plots de scène de crime : chevalets jaunes numérotés. */
.wp-block-list.is-style-markers {
	list-style: none;
	padding-left: 0;
	counter-reset: marker;
}

.wp-block-list.is-style-markers li {
	counter-increment: marker;
	position: relative;
	min-height: 34px;
	padding: 4px 0 0 52px;
	margin-bottom: 0.7em;
}

.wp-block-list.is-style-markers li::before {
	content: counter(marker) / "";
	position: absolute;
	left: 0;
	top: 0;
	width: 36px;
	height: 30px;
	padding-top: 6px;
	box-sizing: border-box;
	font-family: var(--font-type);
	font-size: 0.95rem;
	font-weight: 700;
	text-align: center;
	color: #1b1626;
	background: linear-gradient(#f6c945, #e5ad1c);
	clip-path: polygon(16% 0, 84% 0, 100% 100%, 0 100%);
	filter: drop-shadow(0 2px 1px rgba(0, 0, 0, 0.4));
}

/* --- Citations ------------------------------------------------------------------ */

/* Par défaut : un mot laissé au stylo sur une fiche. */
.wp-block-quote {
	position: relative;
	margin: 1.8em 0;
	padding: 18px 22px 18px 26px;
	font-family: var(--font-hand);
	font-size: 1.6rem;
	line-height: 1.25;
	color: var(--pen);
	background: var(--paper);
	border-left: 3px solid var(--violet);
	box-shadow: 0 1px 1px rgba(0, 0, 0, 0.12), 0 12px 20px -12px rgba(0, 0, 0, 0.5);
	transform: rotate(-0.8deg);
}

.wp-block-quote p {
	margin: 0;
}

.wp-block-quote cite {
	display: block;
	margin-top: 8px;
	font-family: var(--font-type);
	font-size: 0.75rem;
	font-style: normal;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--paper-ink-soft);
}

.wp-block-quote cite::before {
	content: "— ";
}

.wp-block-quote.is-style-memo {
	font-family: var(--font-type);
	font-size: 1rem;
	line-height: 1.6;
	color: var(--paper-ink);
	background:
		linear-gradient(var(--paper-ink), var(--paper-ink)) 26px 14px / calc(100% - 52px) 1px no-repeat,
		var(--paper-white);
	padding-top: 30px;
	border-left: 0;
	border-top: 6px solid var(--manila);
	transform: rotate(0.6deg);
}

.wp-block-quote.is-style-transmission {
	font-family: var(--font-body);
	font-size: 1rem;
	line-height: 1.6;
	color: var(--mint);
	text-shadow: 0 0 8px rgba(124, 244, 200, 0.45);
	background:
		repeating-linear-gradient(transparent 0 3px, rgba(124, 244, 200, 0.05) 3px 4px),
		var(--night);
	border-left: 0;
	border-radius: 4px;
	box-shadow: inset 0 0 0 1px rgba(124, 244, 200, 0.3), 0 0 30px rgba(124, 244, 200, 0.15);
	transform: none;
}

.wp-block-quote.is-style-transmission p::before {
	content: "▸ ";
	color: var(--violet);
}

.wp-block-quote.is-style-transmission cite {
	color: var(--star-muted);
}

.wp-block-quote.is-style-prophecy {
	padding: 40px 30px;
	font-family: var(--font-occult);
	font-style: italic;
	font-size: 1.7rem;
	line-height: 1.3;
	text-align: center;
	color: var(--paper-ink);
	background:
		url("../img/moth-faint.svg") no-repeat center / 220px, /* Papillon mokachupa, violet très pâle. */
		transparent;
	border: 0;
	box-shadow: none;
	transform: none;
}

.wp-block-quote.is-style-prophecy::before,
.wp-block-quote.is-style-prophecy::after {
	content: "";
	display: block;
	width: 140px;
	height: 12px;
	margin-left: auto;
	margin-right: auto;
	background: url("../img/moon-phases.svg") no-repeat center / contain;
}

.wp-block-quote.is-style-prophecy::before { margin-bottom: 14px; }
.wp-block-quote.is-style-prophecy::after { margin-top: 14px; }

/* Lettre manuscrite : papier ligné, encre violette, signature. */
.wp-block-quote.is-style-letter {
	padding: 20px 24px 18px 52px;
	font-family: var(--font-hand);
	font-size: 1.45rem;
	line-height: 32px;
	color: var(--pen);
	background:
		linear-gradient(90deg, transparent 38px, rgba(168, 18, 111, 0.45) 38px 39px, transparent 39px),
		repeating-linear-gradient(transparent 0 31px, var(--paper-line) 31px 32px) 0 18px,
		var(--paper-white);
	border: 0;
	box-shadow: 0 1px 1px rgba(0, 0, 0, 0.12), 0 12px 20px -12px rgba(0, 0, 0, 0.5);
	transform: rotate(0.5deg);
}

.wp-block-quote.is-style-letter p {
	font-style: normal;
}

.wp-block-quote.is-style-letter cite {
	display: block;
	letter-spacing: 0;
	text-transform: none;
	font-family: var(--font-hand);
	font-size: 1.3rem;
	text-align: right;
	color: var(--pen);
}

/* Coupure de presse : papier journal jauni, deux colonnes de titre, bord découpé. */
.wp-block-quote.is-style-clipping {
	padding: 18px 20px 16px;
	font-family: var(--font-occult);
	color: #2a2420;
	background: url("../img/grain.svg"), #e9e1cc;
	background-blend-mode: multiply, normal;
	border: 0;
	border-top: 3px double #2a2420;
	filter: drop-shadow(0 8px 8px rgba(0, 0, 0, 0.3));
	clip-path: polygon(0 1%, 4% 0, 9% 1.5%, 15% 0, 22% 1%, 30% 0, 38% 1.5%, 47% 0, 55% 1%, 63% 0, 71% 1.5%, 79% 0, 87% 1%, 94% 0, 100% 1%, 99.5% 99%, 94% 100%, 86% 98.5%, 77% 100%, 68% 98.5%, 59% 100%, 50% 98.5%, 41% 100%, 32% 98.5%, 23% 100%, 14% 98.5%, 6% 100%, 0 99%);
	transform: rotate(-1deg);
}

.wp-block-quote.is-style-clipping p {
	font-size: 1.15rem;
	font-style: normal;
	line-height: 1.45;
	text-align: justify;
	hyphens: auto;
}

.wp-block-quote.is-style-clipping p:first-child::first-line {
	font-family: var(--font-occult-sc);
	letter-spacing: 0.04em;
}

.wp-block-quote.is-style-clipping cite {
	font-family: var(--font-type);
	font-size: 0.75rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: #4a3d36;
}

/* Message de l’au-delà : texte fantôme qui flotte dans la brume violette. */
.wp-block-quote.is-style-seance {
	padding: 26px 28px;
	text-align: center;
	color: var(--star);
	background:
		radial-gradient(ellipse at 50% 50%, rgba(185, 123, 255, 0.35), transparent 70%),
		url("../img/starfield.svg") center / 320px,
		var(--night);
	border: 0;
	border-radius: 50% / 18%;
	box-shadow: 0 0 40px rgba(185, 123, 255, 0.3);
}

.wp-block-quote.is-style-seance p {
	font-family: var(--font-occult);
	font-size: 1.35rem;
	font-style: italic;
	color: var(--star);
	text-shadow: 0 0 12px rgba(197, 191, 232, 0.8), 0 0 2px rgba(255, 255, 255, 0.6);
	animation: vault-float 5s ease-in-out infinite;
}

.wp-block-quote.is-style-seance cite {
	color: var(--violet);
}

@keyframes vault-float {
	0%, 100% { transform: translateY(0); opacity: 0.9; }
	50% { transform: translateY(-3px); opacity: 1; }
}

/* --- Citations mises en avant ------------------------------------------------- */

/* Par défaut : un gros titre découpé dans le journal. */
.wp-block-pullquote {
	margin: 2em 0;
	padding: 26px 24px;
	text-align: center;
	color: var(--paper-ink);
	background: var(--paper) url("../img/grain.svg");
	background-blend-mode: multiply;
	border: 0;
	border-top: 4px double var(--paper-ink);
	border-bottom: 4px double var(--paper-ink);
}

.wp-block-pullquote blockquote {
	margin: 0;
}

.wp-block-pullquote p {
	margin: 0;
	font-family: var(--font-occult-sc);
	font-size: clamp(1.6rem, 3.4vw, 2.3rem);
	line-height: 1.15;
}

.wp-block-pullquote cite {
	display: block;
	margin-top: 10px;
	font-family: var(--font-type);
	font-size: 0.75rem;
	font-style: normal;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--paper-ink-soft);
}

.wp-block-pullquote.is-style-stamped {
	background: transparent;
	border: 5px double var(--stamp-ink);
	border-radius: 8px;
	color: var(--stamp-ink);
	transform: rotate(-2deg);
	-webkit-mask-image: url("../img/ink-mask.svg");
	mask-image: url("../img/ink-mask.svg");
	-webkit-mask-size: 300px;
	mask-size: 300px;
}

.wp-block-pullquote.is-style-stamped p {
	font-family: var(--font-type);
	text-transform: uppercase;
	letter-spacing: 0.1em;
}

.wp-block-pullquote.is-style-stamped cite {
	color: var(--stamp-ink);
}

.wp-block-pullquote.is-style-neon {
	background: var(--night);
	border: 0;
	border-radius: 14px;
	box-shadow: inset 0 0 0 2px rgba(255, 61, 190, 0.6), 0 0 34px rgba(255, 61, 190, 0.3);
}

.wp-block-pullquote.is-style-neon p {
	font-family: var(--font-hand);
	font-weight: 700;
	font-size: clamp(2rem, 4.6vw, 3rem);
	color: var(--pink-soft);
	text-shadow: 0 0 6px rgba(255, 61, 190, 0.9), 0 0 22px rgba(255, 61, 190, 0.6);
}

.wp-block-pullquote.is-style-neon cite {
	color: var(--mint);
}

/* Lettre anonyme : chaque mot découpé dans un journal différent. */
.wp-block-pullquote.is-style-clipping {
	background: transparent;
	border: 0;
}

.wp-block-pullquote.is-style-clipping p {
	font-family: var(--font-occult);
	font-size: clamp(1.4rem, 3vw, 1.9rem);
	line-height: 1.9;
	word-spacing: 0.3em;
}

.wp-block-pullquote.is-style-clipping p > * ,
.wp-block-pullquote.is-style-clipping p {
	-webkit-box-decoration-break: clone;
	box-decoration-break: clone;
}

.wp-block-pullquote.is-style-clipping p {
	display: inline;
	padding: 2px 8px;
	color: var(--paper-ink);
	background: var(--paper-white);
	box-shadow: 3px 3px 0 var(--pink), -2px -2px 0 rgba(185, 123, 255, 0.6);
}

/* Carte de tarot : arche, cadre doré, astre au sommet. */
.wp-block-pullquote.is-style-tarot {
	max-width: 22em;
	margin-left: auto;
	margin-right: auto;
	padding: 46px 26px 26px;
	color: #f3e6c4;
	background:
		radial-gradient(ellipse at 50% 0%, rgba(185, 123, 255, 0.4), transparent 60%),
		#120f22;
	border: 0;
	border-radius: 140px 140px 12px 12px;
	box-shadow: inset 0 0 0 2px #c9a24a, inset 0 0 0 7px #120f22, inset 0 0 0 8px rgba(201, 162, 74, 0.6), 0 16px 26px -14px rgba(0, 0, 0, 0.8);
	position: relative;
}

.wp-block-pullquote.is-style-tarot::before {
	content: "\2600" / "";
	position: absolute;
	top: 14px;
	left: 0;
	right: 0;
	font-size: 1.4rem;
	text-align: center;
	color: #e8c977;
}

.wp-block-pullquote.is-style-tarot p {
	font-family: var(--font-occult);
	color: #f3e6c4;
}

.wp-block-pullquote.is-style-tarot cite {
	font-family: var(--font-occult-sc);
	letter-spacing: 0.2em;
	color: #e8c977;
}

/* Télégramme : bandes de texte tapé collées sur un formulaire. */
.wp-block-pullquote.is-style-telegram {
	padding: 26px 22px 20px;
	text-align: left;
	background:
		linear-gradient(#a8126f, #a8126f) 0 0 / 100% 6px no-repeat,
		url("../img/grain.svg"),
		#efe6cf;
	background-blend-mode: normal, multiply, normal;
	border: 0;
	box-shadow: 0 12px 20px -12px rgba(0, 0, 0, 0.55);
}

.wp-block-pullquote.is-style-telegram p {
	display: inline;
	padding: 2px 6px;
	font-family: var(--font-type);
	font-size: 1.2rem;
	line-height: 2;
	text-transform: uppercase;
	color: #2b2140;
	background: #fbf8f1;
	box-shadow: 0 1px 1px rgba(0, 0, 0, 0.15);
	-webkit-box-decoration-break: clone;
	box-decoration-break: clone;
}

.wp-block-pullquote.is-style-telegram p::after {
	content: " STOP" / "";
}

.wp-block-pullquote.is-style-telegram cite {
	display: block;
	margin-top: 12px;
	font-family: var(--font-type);
	letter-spacing: 0.14em;
	color: #a8126f;
}

/* Post-it : grande phrase au feutre sur un carré jaune. */
.wp-block-pullquote.is-style-sticky {
	max-width: 18em;
	margin-left: auto;
	margin-right: auto;
	padding: 30px 24px;
	color: #2b2140;
	background: linear-gradient(#f7e27a, #f3d95a 70%, #ebcd4a);
	border: 0;
	box-shadow: 0 20px 16px -14px rgba(0, 0, 0, 0.5);
	transform: rotate(2deg);
}

.wp-block-pullquote.is-style-sticky p {
	font-family: var(--font-hand);
	font-size: 1.9rem;
	line-height: 1.15;
	color: #2b2140;
}

.wp-block-pullquote.is-style-sticky cite {
	font-family: var(--font-hand);
	font-size: 1.2rem;
	color: #5b2fa8;
}

/* --- Images ----------------------------------------------------------------------- */

.wp-block-image {
	margin: 1.8em 0;
}

/* Par défaut : tirage polaroïd. */
.wp-block-image:not(.wp-block-gallery .wp-block-image) img {
	padding: 10px 10px 30px;
	background: #fff;
	box-shadow: 0 1px 1px rgba(0, 0, 0, 0.15), 0 14px 24px -14px rgba(0, 0, 0, 0.6);
}

.wp-block-image figcaption,
.wp-block-image .wp-element-caption {
	margin-top: 6px;
	font-family: var(--font-hand);
	font-size: 1.3rem;
	line-height: 1.2;
	color: var(--pen);
}

/* Photo scotchée : sans cadre, deux bandes de washi tape. */
.wp-block-image.is-style-taped {
	position: relative;
}

.wp-block-image.is-style-taped::before,
.wp-block-image.is-style-taped::after {
	content: "";
	position: absolute;
	z-index: 2;
	width: 88px;
	height: 24px;
	background:
		repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.18) 0 4px, transparent 4px 9px),
		rgba(124, 244, 200, 0.6);
	clip-path: polygon(0 8%, 8% 0, 16% 9%, 28% 1%, 40% 9%, 54% 0, 66% 8%, 80% 1%, 92% 8%, 100% 2%, 97% 50%, 100% 96%, 88% 100%, 74% 92%, 60% 100%, 46% 92%, 32% 100%, 18% 92%, 6% 100%, 2% 50%);
	pointer-events: none;
}

.wp-block-image.is-style-taped::before {
	top: -8px;
	left: -18px;
	transform: rotate(-30deg);
}

.wp-block-image.is-style-taped::after {
	top: -8px;
	right: -18px;
	background:
		repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.18) 0 4px, transparent 4px 9px),
		rgba(255, 61, 190, 0.5);
	transform: rotate(28deg);
}

.wp-block-image.is-style-taped img {
	padding: 0 !important;
	border: 6px solid #fff;
	transform: rotate(-1deg);
}

/* Pièce à conviction : vision de nuit, cadre sombre, liseré menthe. */
.wp-block-image.is-style-evidence img {
	padding: 0 !important;
	background: none !important;
	filter: grayscale(1) sepia(0.7) hue-rotate(100deg) saturate(1.3) brightness(0.8) contrast(1.2);
	border: 10px solid var(--night-card);
	box-shadow: 0 0 0 1px rgba(124, 244, 200, 0.5), 0 0 30px rgba(124, 244, 200, 0.25), 0 16px 26px -14px rgba(0, 0, 0, 0.8) !important;
}

.wp-block-image.is-style-evidence figcaption {
	display: table;
	margin-top: 10px;
	padding: 2px 10px 0;
	font-family: var(--font-type);
	font-size: 0.8rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--paper-ink);
	background: var(--manila);
	border-left: 4px solid var(--stamp-ink);
}

/* Tirage déchiré, légèrement passé. */
.wp-block-image.is-style-torn img {
	padding: 0 !important;
	box-shadow: none !important;
	filter: sepia(0.35) contrast(1.05);
	-webkit-mask:
		url("../img/torn-top.svg") top / 400px 14px repeat-x,
		url("../img/torn-bottom.svg") bottom / 400px 14px repeat-x,
		linear-gradient(#000, #000) 0 13px / 100% calc(100% - 26px) no-repeat;
	mask:
		url("../img/torn-top.svg") top / 400px 14px repeat-x,
		url("../img/torn-bottom.svg") bottom / 400px 14px repeat-x,
		linear-gradient(#000, #000) 0 13px / 100% calc(100% - 26px) no-repeat;
}

.wp-block-image.is-style-torn {
	filter: drop-shadow(0 10px 12px rgba(0, 0, 0, 0.35));
}

/* Photo spirite : double exposition violette, halo. */
.wp-block-image.is-style-spirit {
	position: relative;
}

.wp-block-image.is-style-spirit img {
	padding: 0 !important;
	border-radius: 3px;
	filter: saturate(0.7) contrast(1.1) brightness(1.05);
	box-shadow: 0 0 0 8px var(--paper-white), 14px -10px 0 8px rgba(185, 123, 255, 0.3), 0 0 50px 12px rgba(185, 123, 255, 0.35) !important;
}

/* Timbre-poste : bords dentelés, oblitération. */
.wp-block-image.is-style-postage-stamp {
	position: relative;
	display: table;
	max-width: min(100%, 440px);
	box-sizing: border-box;
	padding: 12px;
	background: var(--paper-white);
	-webkit-mask:
		linear-gradient(#000, #000) center / calc(100% - 12px) calc(100% - 12px) no-repeat,
		radial-gradient(circle at 6px 6px, transparent 4px, #000 4.5px) -6px -6px / 12px 12px;
	mask:
		linear-gradient(#000, #000) center / calc(100% - 12px) calc(100% - 12px) no-repeat,
		radial-gradient(circle at 6px 6px, transparent 4px, #000 4.5px) -6px -6px / 12px 12px;
	filter: drop-shadow(0 6px 8px rgba(0, 0, 0, 0.3));
	transform: rotate(2deg);
}

.wp-block-image.is-style-postage-stamp img {
	padding: 0 !important;
	box-shadow: none !important;
	filter: saturate(0.85) contrast(1.05);
}

.wp-block-image.is-style-postage-stamp::after {
	content: "";
	position: absolute;
	top: 6%;
	right: -4%;
	width: 46%;
	aspect-ratio: 1;
	background:
		repeating-linear-gradient(-8deg, transparent 0 10px, rgba(43, 33, 64, 0.45) 10px 12px) center / 70% 40% no-repeat,
		radial-gradient(circle, transparent 0 44%, rgba(43, 33, 64, 0.5) 45% 48%, transparent 49% 60%, rgba(43, 33, 64, 0.4) 61% 63%, transparent 64%);
	transform: rotate(-14deg);
	pointer-events: none;
}

.wp-block-image.is-style-postage-stamp figcaption {
	padding: 4px 2px 0;
	font-family: var(--font-type);
	font-size: 0.78rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--paper-ink);
}

/* Diapositive 35 mm : cache cartonné, fenêtre arrondie, numéro manuscrit. */
.wp-block-image.is-style-slide {
	display: table;
	max-width: min(100%, 420px);
	box-sizing: border-box;
	padding: 26px 30px 14px;
	background:
		linear-gradient(rgba(255, 255, 255, 0.5), transparent 40%),
		#e9e3d2;
	border-radius: 10px;
	box-shadow: inset 0 0 0 1px rgba(43, 33, 64, 0.15), 0 12px 22px -12px rgba(0, 0, 0, 0.6);
}

.wp-block-image.is-style-slide img {
	padding: 0 !important;
	border-radius: 6px;
	box-shadow: inset 0 0 0 1px #000, 0 0 0 3px #cfc7b2 !important;
	background: #000 !important;
}

.wp-block-image.is-style-slide figcaption {
	margin-top: 8px;
	font-size: 1.25rem;
	text-align: center;
	color: #a8126f;
}

/* --- Galeries -------------------------------------------------------------------- */

.wp-block-gallery.has-nested-images {
	--wp--style--unstable-gallery-gap: 22px;
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: 22px;
	margin: 2em 0;
}

.wp-block-gallery.has-nested-images figure.wp-block-image {
	margin: 0;
	/* WordPress étire les dernières vignettes pour remplir la ligne : on garde une grille régulière. */
	flex-grow: 0;
}

.wp-block-gallery.has-nested-images figure.wp-block-image img {
	padding: 0;
	box-shadow: none;
}

.wp-block-gallery.has-nested-images figure.wp-block-image figcaption {
	position: static;
	max-height: none;
	margin: 0;
	padding: 6px 2px 0;
	font-family: var(--font-hand);
	font-size: 1.15rem;
	line-height: 1.1;
	text-align: left;
	color: var(--pen);
	background: none;
	text-shadow: none;
	overflow: visible;
}

.wp-block-gallery.has-nested-images figure.wp-block-image:has(figcaption)::before {
	display: none;
}

/* Légendes écrites sur un tirage blanc : toujours à l’encre foncée. */
.wp-block-gallery.has-nested-images:not([class*="is-style-"]) figure.wp-block-image figcaption,
.wp-block-gallery.is-style-default figure.wp-block-image figcaption,
.wp-block-gallery.is-style-evidence-board figure.wp-block-image figcaption,
.wp-block-gallery.is-style-photo-strip > .blocks-gallery-caption {
	color: #5b2fa8;
}

.wp-block-gallery > .blocks-gallery-caption {
	flex-basis: 100%;
	margin: 4px 0 0;
	font-family: var(--font-hand);
	font-size: 1.3rem;
	text-align: center;
	color: var(--pen);
}

/* Par défaut : polaroïds éparpillés sur la page. */
.wp-block-gallery.has-nested-images:not([class*="is-style-"]) figure.wp-block-image,
.wp-block-gallery.has-nested-images.is-style-default figure.wp-block-image,
.wp-block-gallery.is-style-evidence-board figure.wp-block-image {
	padding: 8px 8px 26px;
	background: #fff;
	box-shadow: 0 1px 1px rgba(0, 0, 0, 0.15), 0 12px 20px -12px rgba(0, 0, 0, 0.6);
	transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.wp-block-gallery.has-nested-images:not([class*="is-style-"]) figure.wp-block-image:nth-child(4n + 1),
.wp-block-gallery.is-style-default figure.wp-block-image:nth-child(4n + 1) { transform: rotate(-2deg); }
.wp-block-gallery.has-nested-images:not([class*="is-style-"]) figure.wp-block-image:nth-child(4n + 2),
.wp-block-gallery.is-style-default figure.wp-block-image:nth-child(4n + 2) { transform: rotate(1.5deg) translateY(6px); }
.wp-block-gallery.has-nested-images:not([class*="is-style-"]) figure.wp-block-image:nth-child(4n + 3),
.wp-block-gallery.is-style-default figure.wp-block-image:nth-child(4n + 3) { transform: rotate(-0.8deg) translateY(-4px); }
.wp-block-gallery.has-nested-images:not([class*="is-style-"]) figure.wp-block-image:nth-child(4n + 4),
.wp-block-gallery.is-style-default figure.wp-block-image:nth-child(4n + 4) { transform: rotate(2.2deg); }

.wp-block-gallery.has-nested-images:not([class*="is-style-"]) figure.wp-block-image:hover,
.wp-block-gallery.is-style-default figure.wp-block-image:hover {
	transform: rotate(0) scale(1.04);
	z-index: 2;
}

/* Planche contact : bande de film, perforations, numéros de vue. */
.wp-block-gallery.is-style-contact-sheet {
	counter-reset: frame;
	gap: 10px;
	--wp--style--unstable-gallery-gap: 10px;
	padding: 30px 18px;
	background:
		repeating-linear-gradient(90deg, transparent 0 10px, rgba(243, 237, 225, 0.85) 10px 22px, transparent 22px 32px) 0 8px / 100% 10px no-repeat,
		repeating-linear-gradient(90deg, transparent 0 10px, rgba(243, 237, 225, 0.85) 10px 22px, transparent 22px 32px) 0 calc(100% - 8px) / 100% 10px no-repeat,
		#16121f;
	border-radius: 3px;
	box-shadow: 0 14px 26px -14px rgba(0, 0, 0, 0.8);
}

.wp-block-gallery.is-style-contact-sheet figure.wp-block-image {
	position: relative;
	counter-increment: frame;
	outline: 1px solid rgba(255, 255, 255, 0.08);
}

.wp-block-gallery.is-style-contact-sheet figure.wp-block-image img {
	filter: contrast(1.08) saturate(0.85);
}

.wp-block-gallery.is-style-contact-sheet figure.wp-block-image::after {
	content: counter(frame) "A";
	position: absolute;
	right: 4px;
	bottom: 2px;
	font-family: var(--font-type);
	font-size: 0.7rem;
	color: #ffb347;
	text-shadow: 0 0 2px rgba(0, 0, 0, 0.8);
}

.wp-block-gallery.is-style-contact-sheet figure.wp-block-image figcaption,
.wp-block-gallery.is-style-contact-sheet > .blocks-gallery-caption {
	color: var(--star-soft);
}

/* Tableau d’enquête : polaroïds punaisés sur fond de nuit. */
.wp-block-gallery.is-style-evidence-board {
	padding: 30px 22px 26px;
	background:
		url("../img/starfield.svg") center / 360px,
		var(--night-band);
	border-radius: 4px;
	box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.6);
}

.wp-block-gallery.is-style-evidence-board figure.wp-block-image {
	position: relative;
	overflow: visible;
}

.wp-block-gallery.is-style-evidence-board figure.wp-block-image:nth-child(odd) { transform: rotate(-3deg); }
.wp-block-gallery.is-style-evidence-board figure.wp-block-image:nth-child(even) { transform: rotate(2.5deg) translateY(8px); }

/* La punaise. */
.wp-block-gallery.is-style-evidence-board figure.wp-block-image::before {
	content: "" !important;
	display: block !important;
	position: absolute;
	top: -7px;
	left: calc(50% - 8px);
	z-index: 3;
	width: 16px;
	height: 16px;
	background: radial-gradient(circle at 35% 30%, #ffd1f0, var(--pink) 45%, #8f0a5f);
	border-radius: 50%;
	box-shadow: 0 3px 4px rgba(0, 0, 0, 0.5);
}

.wp-block-gallery.is-style-evidence-board > .blocks-gallery-caption {
	color: var(--mint);
}

/* Bande de photomaton : une colonne étroite. */
.wp-block-gallery.is-style-photo-strip {
	flex-direction: column;
	align-items: center;
	gap: 10px;
	width: min(100%, 240px);
	margin-left: auto;
	margin-right: auto;
	padding: 12px 12px 34px;
	background: #fff;
	box-shadow: 0 1px 1px rgba(0, 0, 0, 0.15), 0 16px 26px -14px rgba(0, 0, 0, 0.6);
	transform: rotate(-2deg);
}

.wp-block-gallery.is-style-photo-strip figure.wp-block-image {
	width: 100% !important;
	aspect-ratio: 4 / 3;
}

.wp-block-gallery.is-style-photo-strip figure.wp-block-image img {
	height: 100%;
	object-fit: cover;
	filter: grayscale(0.6) contrast(1.1);
}

.wp-block-gallery.is-style-photo-strip > .blocks-gallery-caption {
	font-size: 1.1rem;
}

/* Boules de cristal : vignettes rondes, halo violet. */
.wp-block-gallery.is-style-astral {
	justify-content: center;
	gap: 26px;
}

.wp-block-gallery.is-style-astral figure.wp-block-image {
	text-align: center;
}

.wp-block-gallery.is-style-astral figure.wp-block-image img {
	aspect-ratio: 1;
	object-fit: cover;
	border-radius: 50%;
	box-shadow: 0 0 0 3px var(--paper-white), 0 0 0 5px rgba(185, 123, 255, 0.7), 0 0 30px 6px rgba(185, 123, 255, 0.45);
}

.wp-block-gallery.is-style-astral figure.wp-block-image figcaption {
	text-align: center;
}

/* Tirage de tarot : cartes hautes, bordure dorée, numéro romain. */
.wp-block-gallery.is-style-tarot {
	counter-reset: arcana;
	gap: 18px;
}

.wp-block-gallery.is-style-tarot figure.wp-block-image {
	counter-increment: arcana;
	position: relative;
	padding: 30px 10px 12px;
	background:
		radial-gradient(ellipse at 50% 0%, rgba(185, 123, 255, 0.35), transparent 60%),
		#120f22;
	border-radius: 10px;
	box-shadow: inset 0 0 0 2px #c9a24a, inset 0 0 0 5px #120f22, inset 0 0 0 6px rgba(201, 162, 74, 0.6), 0 14px 22px -12px rgba(0, 0, 0, 0.7);
}

.wp-block-gallery.is-style-tarot figure.wp-block-image::after {
	content: counter(arcana, upper-roman) / "";
	position: absolute;
	top: 7px;
	left: 0;
	right: 0;
	font-family: var(--font-occult-sc);
	font-size: 0.95rem;
	letter-spacing: 0.2em;
	text-align: center;
	color: #e8c977;
}

.wp-block-gallery.is-style-tarot figure.wp-block-image img {
	aspect-ratio: 2 / 3;
	object-fit: cover;
	border-radius: 50% 50% 4px 4px / 22% 22% 4px 4px;
}

.wp-block-gallery.is-style-tarot.has-nested-images figure.wp-block-image figcaption {
	padding-top: 8px;
	font-family: var(--font-occult);
	font-size: 0.95rem;
	font-style: italic;
	text-align: center;
	color: #e8c977;
}

/* Tas de photos : tirages qui se chevauchent, en désordre. */
.wp-block-gallery.is-style-scattered {
	gap: 0;
	padding: 14px 10px 26px;
}

.wp-block-gallery.is-style-scattered.has-nested-images figure.wp-block-image {
	margin: 0 -14px -18px 0;
	padding: 8px 8px 24px;
	background: #fff;
	box-shadow: 0 1px 1px rgba(0, 0, 0, 0.15), 0 14px 22px -12px rgba(0, 0, 0, 0.6);
	transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), z-index 0s;
}

.wp-block-gallery.is-style-scattered figure.wp-block-image:nth-child(5n + 1) { transform: rotate(-7deg) translateY(6px); }
.wp-block-gallery.is-style-scattered figure.wp-block-image:nth-child(5n + 2) { transform: rotate(5deg) translateY(-8px); }
.wp-block-gallery.is-style-scattered figure.wp-block-image:nth-child(5n + 3) { transform: rotate(-3deg) translateY(14px); }
.wp-block-gallery.is-style-scattered figure.wp-block-image:nth-child(5n + 4) { transform: rotate(8deg); }
.wp-block-gallery.is-style-scattered figure.wp-block-image:nth-child(5n + 5) { transform: rotate(-10deg) translateY(-4px); }

.wp-block-gallery.is-style-scattered figure.wp-block-image:hover,
.wp-block-gallery.is-style-scattered figure.wp-block-image:focus-within {
	z-index: 3;
	transform: rotate(0) scale(1.06);
}

.wp-block-gallery.is-style-scattered.has-nested-images figure.wp-block-image figcaption {
	color: #5b2fa8;
}

.wp-block-gallery.is-style-scattered > .blocks-gallery-caption {
	margin-top: 30px;
}

/* --- Séparateurs --------------------------------------------------------------- */

.wp-block-separator {
	height: 18px;
	margin: 2.2em auto;
	border: 0;
	background:
		linear-gradient(var(--paper-line), var(--paper-line)) left center / calc(50% - 20px) 1px no-repeat,
		linear-gradient(var(--paper-line), var(--paper-line)) right center / calc(50% - 20px) 1px no-repeat;
	text-align: center;
	overflow: visible;
	opacity: 1;
}

.wp-block-separator::after {
	content: "✦";
	position: relative;
	top: -2px;
	color: var(--violet);
}

.wp-block-separator.is-style-stars {
	background: none;
}

.wp-block-separator.is-style-stars::after {
	content: "✦   ✦   ✦";
	white-space: pre;
	letter-spacing: 0.2em;
}

.wp-block-separator.is-style-tape {
	height: 22px;
	width: min(80%, 320px);
	background:
		repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.18) 0 4px, transparent 4px 9px),
		rgba(185, 123, 255, 0.5);
	clip-path: polygon(0 8%, 6% 0, 12% 10%, 20% 2%, 30% 8%, 42% 0, 55% 9%, 68% 1%, 80% 8%, 90% 0, 100% 7%, 97% 52%, 100% 93%, 90% 100%, 78% 92%, 64% 100%, 50% 91%, 37% 100%, 24% 92%, 12% 100%, 4% 91%, 2% 50%);
	transform: rotate(-2deg);
}

.wp-block-separator.is-style-tape::after {
	content: none;
}

.wp-block-separator.is-style-perforation {
	height: 20px;
	background: linear-gradient(90deg, rgba(43, 33, 64, 0.55) 50%, transparent 50%) left center / 12px 2px repeat-x;
}

.wp-block-separator.is-style-perforation::after {
	content: "✂";
	position: absolute;
	left: 8%;
	top: -4px;
	padding: 0 6px;
	font-size: 1.1rem;
	color: var(--paper-ink);
	background: var(--paper-white);
}

.wp-block-separator.is-style-perforation {
	position: relative;
}

.wp-block-separator.is-style-moon {
	background: none;
}

.wp-block-separator.is-style-moon::after {
	content: "";
	display: inline-block;
	width: 198px;
	max-width: 100%;
	height: 16px;
	top: 0;
	background: url("../img/moon-phases.svg") no-repeat center / contain;
}

/* Constellation : étoiles reliées par un fil. */
.wp-block-separator.is-style-constellation {
	height: 30px;
	max-width: 320px;
	background: url("../img/constellation.svg") center / contain no-repeat;
}

.wp-block-separator.is-style-constellation::after {
	content: none;
}

/* Gribouillis : un trait de stylo à main levée. */
.wp-block-separator.is-style-scribble {
	height: 16px;
	max-width: 360px;
	background: none;
}

.wp-block-separator.is-style-scribble::after {
	content: "";
	display: block;
	height: 100%;
	background: var(--pen);
	-webkit-mask: url("../img/scribble-underline.svg") center / 100% 100% no-repeat;
	mask: url("../img/scribble-underline.svg") center / 100% 100% no-repeat;
}

/* --- Boutons --------------------------------------------------------------------------- */

/* Par défaut : un tampon. */
.wp-block-button .wp-block-button__link,
.wp-block-file .wp-element-button,
.wp-element-button {
	display: inline-block;
	padding: 10px 20px 8px;
	font-family: var(--font-type);
	font-size: 1rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--stamp-ink);
	background: transparent;
	border: 3px double currentColor;
	border-radius: 6px;
	transform: rotate(-1.5deg);
	transition: background-color 0.15s ease, color 0.15s ease, box-shadow 0.2s ease;
}

.wp-block-button .wp-block-button__link:hover,
.wp-block-button .wp-block-button__link:focus-visible {
	color: var(--paper-white);
	background: var(--stamp-ink);
	box-shadow: 0 0 22px rgba(255, 61, 190, 0.4);
}

.wp-block-button.is-style-seal .wp-block-button__link {
	padding: 12px 26px 10px;
	color: #fff;
	background: radial-gradient(circle at 30% 25%, #a77ce8, var(--pen) 55%, #3a1b72);
	border: 0;
	border-radius: 999px 900px 999px 950px;
	box-shadow: 0 3px 6px rgba(0, 0, 0, 0.35), 0 0 22px rgba(185, 123, 255, 0.45), inset 0 0 0 3px rgba(255, 255, 255, 0.15);
	transform: rotate(-3deg);
}

.wp-block-button.is-style-seal .wp-block-button__link::before {
	content: "✦ ";
}

.wp-block-button.is-style-neon .wp-block-button__link {
	padding: 12px 26px;
	font-family: var(--font-body);
	font-weight: 700;
	letter-spacing: 0.06em;
	color: var(--night);
	background: linear-gradient(135deg, var(--mint), var(--sky));
	border: 0;
	border-radius: 999px;
	box-shadow: 0 0 26px rgba(124, 244, 200, 0.45);
	transform: none;
}

.wp-block-button.is-style-neon .wp-block-button__link::after {
	content: " →";
}

.wp-block-button.is-style-neon .wp-block-button__link:hover {
	color: var(--night);
	background: linear-gradient(135deg, var(--mint), var(--sky));
	box-shadow: 0 0 36px rgba(124, 244, 200, 0.7);
}

.wp-block-button.is-style-ticket .wp-block-button__link {
	padding: 12px 28px 10px;
	color: var(--paper-ink);
	background: var(--manila);
	border: 2px dashed rgba(168, 18, 111, 0.55);
	border-radius: 0;
	-webkit-mask: radial-gradient(circle 8px at 0 50%, transparent 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle 8px at 100% 50%, transparent 98%, #000) right / 51% 100% no-repeat;
	mask: radial-gradient(circle 8px at 0 50%, transparent 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle 8px at 100% 50%, transparent 98%, #000) right / 51% 100% no-repeat;
	transform: rotate(1.5deg);
}

.wp-block-button.is-style-ticket .wp-block-button__link:hover {
	color: var(--paper-ink);
	background: var(--manila);
	filter: brightness(1.06);
}

.wp-block-buttons {
	margin: 1.6em 0;
}

/* Tampon encreur : cadre plein, encre irrégulière, de travers. */
.wp-block-button.is-style-stamp .wp-block-button__link {
	padding: 10px 22px 8px;
	font-weight: 700;
	letter-spacing: 0.18em;
	color: var(--stamp-ink);
	border: 3px solid currentColor;
	border-radius: 2px;
	transform: rotate(-4deg);
	-webkit-mask: url("../img/ink-mask.svg") center / 220px;
	mask: url("../img/ink-mask.svg") center / 220px;
}

/* Étiqueteuse : ruban plastique, lettres en relief. */
.wp-block-button.is-style-label .wp-block-button__link {
	padding: 7px 18px 5px;
	font-family: var(--font-type);
	letter-spacing: 0.2em;
	color: #fbf8f1;
	text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.35), 0 1px 0 rgba(255, 255, 255, 0.25);
	background: linear-gradient(#3a2f55, #2b2140);
	border: 0;
	border-radius: 2px;
	box-shadow: 0 2px 3px rgba(0, 0, 0, 0.35);
	transform: rotate(-1deg);
}

.wp-block-button.is-style-label .wp-block-button__link:hover,
.wp-block-button.is-style-label .wp-block-button__link:focus-visible {
	color: #120f22;
	background: var(--mint);
	text-shadow: none;
}

/* Boule de cristal : pastille lumineuse, reflet, halo violet. */
.wp-block-button.is-style-crystal .wp-block-button__link {
	padding: 12px 26px 10px;
	letter-spacing: 0.1em;
	color: #f0ecff;
	background:
		radial-gradient(ellipse at 30% 25%, rgba(255, 255, 255, 0.55), transparent 35%),
		radial-gradient(circle at 50% 60%, #b97bff, #5b2fa8 60%, #2b2140);
	border: 0;
	border-radius: 999px;
	box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.25) inset, 0 0 24px rgba(185, 123, 255, 0.55);
	transform: none;
}

.wp-block-button.is-style-crystal .wp-block-button__link:hover,
.wp-block-button.is-style-crystal .wp-block-button__link:focus-visible {
	color: #fff;
	background:
		radial-gradient(ellipse at 30% 25%, rgba(255, 255, 255, 0.65), transparent 35%),
		radial-gradient(circle at 50% 60%, #d4a8ff, #7a4ad0 60%, #2b2140);
	box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.35) inset, 0 0 36px rgba(185, 123, 255, 0.8);
}

/* --- Tableaux ---------------------------------------------------------------------- */

.wp-block-table {
	margin: 1.8em 0;
	overflow-x: auto;
}

.wp-block-table table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.92rem;
}

.wp-block-table th,
.wp-block-table td {
	padding: 8px 12px;
	text-align: left;
	border: 0;
	border-bottom: 1px solid var(--paper-line);
}

.wp-block-table thead {
	border-bottom: 0;
}

.wp-block-table th {
	font-family: var(--font-type);
	font-weight: 400;
	font-size: 0.78rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--stamp-ink);
	border-bottom: 3px double var(--paper-ink);
}

.wp-block-table figcaption {
	margin-top: 6px;
	font-family: var(--font-hand);
	font-size: 1.2rem;
	color: var(--pen);
}

.wp-block-table.is-style-evidence-log table {
	color: var(--star);
	background: var(--night-card);
	box-shadow: inset 0 0 0 1px rgba(124, 244, 200, 0.3);
}

.wp-block-table.is-style-evidence-log th {
	color: var(--mint);
	border-bottom: 1px solid rgba(124, 244, 200, 0.4);
}

.wp-block-table.is-style-evidence-log td {
	border-bottom: 1px solid rgba(185, 123, 255, 0.2);
}

.wp-block-table.is-style-evidence-log tbody tr:nth-child(even) {
	background: rgba(185, 123, 255, 0.07);
}

.wp-block-table.is-style-index-card table {
	background:
		linear-gradient(var(--stamp-ink), var(--stamp-ink)) 0 40px / 100% 1px no-repeat,
		var(--paper-white);
	box-shadow: 0 1px 1px rgba(0, 0, 0, 0.15), 0 12px 20px -12px rgba(0, 0, 0, 0.5);
}

.wp-block-table.is-style-index-card th {
	border-bottom: 0;
	padding-top: 12px;
}

.wp-block-table.is-style-index-card td {
	font-family: var(--font-hand);
	font-size: 1.25rem;
	color: var(--pen);
	border-bottom-color: var(--paper-line);
}

.wp-block-table.is-style-form table {
	border: 2px solid var(--paper-ink);
}

.wp-block-table.is-style-form th,
.wp-block-table.is-style-form td {
	border: 1px solid var(--paper-ink);
}

.wp-block-table.is-style-form th {
	color: var(--paper-white);
	background: var(--paper-ink);
}

.wp-block-table.is-style-form td {
	font-family: var(--font-type);
}

/* Registre comptable : papier vert pâle, colonnes rouges, chiffres à la plume. */
.wp-block-table.is-style-ledger table {
	background:
		repeating-linear-gradient(transparent 0 33px, rgba(77, 140, 110, 0.35) 33px 34px),
		#eef3e6;
	border: 1px solid rgba(77, 140, 110, 0.5);
}

.wp-block-table.is-style-ledger th,
.wp-block-table.is-style-ledger td {
	border: 0;
	border-right: 1px solid rgba(200, 40, 60, 0.45);
	color: #1f2a24;
}

.wp-block-table.is-style-ledger th {
	font-family: var(--font-type);
	color: #1f2a24;
	background: rgba(77, 140, 110, 0.18);
	border-bottom: 2px solid rgba(200, 40, 60, 0.55);
}

.wp-block-table.is-style-ledger td {
	font-family: var(--font-hand);
	font-size: 1.25rem;
	color: #2c3f8a;
}

/* Carte du ciel : tableau sombre, lignes violettes, en-têtes menthe. */
.wp-block-table.is-style-night table {
	color: var(--star);
	background:
		url("../img/starfield.svg") center / 320px,
		var(--night-card);
	border: 1px solid rgba(185, 123, 255, 0.4);
	box-shadow: 0 0 26px rgba(185, 123, 255, 0.15);
}

.wp-block-table.is-style-night th,
.wp-block-table.is-style-night td {
	color: var(--star);
	border-color: rgba(185, 123, 255, 0.3);
}

.wp-block-table.is-style-night th {
	color: var(--mint);
	background: rgba(124, 244, 200, 0.06);
}

.wp-block-table.is-style-night figcaption {
	color: var(--pen);
}

/* Pelure tapée : papier fin, texte machine à écrire, ruban un peu baveux. */
.wp-block-table.is-style-typed table {
	font-family: var(--font-type);
	background: #f6f2ea;
	border: 0;
	box-shadow: 0 1px 1px rgba(0, 0, 0, 0.12), 0 10px 18px -12px rgba(0, 0, 0, 0.45);
}

.wp-block-table.is-style-typed th,
.wp-block-table.is-style-typed td {
	color: #2b2140;
	text-shadow: 0.4px 0 0 rgba(43, 33, 64, 0.55);
	border: 0;
	border-bottom: 1px dashed rgba(43, 33, 64, 0.3);
}

.wp-block-table.is-style-typed th {
	text-transform: uppercase;
	letter-spacing: 0.14em;
	background: none;
	border-bottom: 2px solid #2b2140;
}

/* --- Code, poésie ------------------------------------------------------------------------ */

.wp-block-code {
	padding: 14px 16px;
	font-size: 0.9rem;
	color: var(--paper-ink);
	background: rgba(43, 33, 64, 0.07);
	border-left: 3px solid var(--violet);
	overflow-x: auto;
}

.wp-block-code code {
	font-family: var(--font-body);
	background: none;
	padding: 0;
}

.wp-block-code.is-style-terminal {
	color: var(--mint);
	background: var(--night);
	border: 0;
	border-radius: 6px;
	box-shadow: inset 0 0 0 1px rgba(124, 244, 200, 0.3);
	text-shadow: 0 0 6px rgba(124, 244, 200, 0.45);
}

.wp-block-code.is-style-terminal code::before {
	content: "> ";
	color: var(--violet);
}

.wp-block-code.is-style-telegram {
	font-family: var(--font-type);
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--paper-ink);
	background: var(--manila);
	border: 0;
	border-top: 10px solid var(--stamp-ink);
	box-shadow: 0 12px 20px -12px rgba(0, 0, 0, 0.5);
}

.wp-block-code.is-style-telegram code {
	font-family: var(--font-type);
}

.wp-block-code.is-style-coordinates {
	display: table;
	padding: 8px 18px 6px 28px;
	color: var(--paper-ink);
	background:
		radial-gradient(circle 5px at 12px 50%, var(--paper-white) 98%, transparent) ,
		var(--manila);
	border: 0;
	border-radius: 3px 14px 14px 3px;
	box-shadow: 0 8px 14px -8px rgba(0, 0, 0, 0.5);
	transform: rotate(-2deg);
}

.wp-block-verse {
	font-family: var(--font-body);
	white-space: pre-wrap;
	padding: 6px 0 6px 18px;
	border-left: 2px solid var(--paper-line);
	background: none;
}

.wp-block-verse.is-style-handwritten {
	font-family: var(--font-hand);
	font-size: 1.5rem;
	line-height: 1.3;
	color: var(--pen);
	border: 0;
}

.wp-block-verse.is-style-incantation {
	padding: 22px;
	font-family: var(--font-occult);
	font-style: italic;
	font-size: 1.35rem;
	line-height: 1.5;
	text-align: center;
	color: var(--paper-ink);
	border: 0;
	border-top: 1px solid var(--violet);
	border-bottom: 1px solid var(--violet);
	background: url("../img/moth-faint.svg") no-repeat center / auto 82%; /* Tient dans la hauteur du bloc : antennes entières. */
}

.wp-block-verse.is-style-typed {
	font-family: var(--font-type);
	padding: 16px 18px;
	background: var(--paper);
	border: 0;
	box-shadow: 0 10px 18px -12px rgba(0, 0, 0, 0.45);
}

/* Listing à bandes vertes : papier en accordéon, trous d’entraînement. */
.wp-block-code.is-style-printout {
	padding: 14px 40px;
	color: #1f2a24;
	background:
		radial-gradient(circle, var(--paper-white) 0 4px, rgba(43, 33, 64, 0.25) 4px 5px, transparent 5.5px) 8px 0 / 16px 24px repeat-y,
		radial-gradient(circle, var(--paper-white) 0 4px, rgba(43, 33, 64, 0.25) 4px 5px, transparent 5.5px) right 8px top 0 / 16px 24px repeat-y,
		repeating-linear-gradient(#dcebd8 0 24px, #f6f8f2 24px 48px);
	border: 0;
	border-radius: 0;
	box-shadow: 0 10px 18px -12px rgba(0, 0, 0, 0.45);
}

.wp-block-code.is-style-printout code {
	line-height: 24px;
	color: #1f2a24;
}

/* Message chiffré : quadrillage, encre violette, roue de chiffrement en filigrane. */
.wp-block-code.is-style-cipher {
	position: relative;
	padding: 18px 20px;
	color: var(--pen);
	background:
		radial-gradient(circle at calc(100% - 40px) 50%, transparent 0 22px, rgba(91, 47, 168, 0.25) 22px 23px, transparent 23px 30px, rgba(91, 47, 168, 0.25) 30px 31px, transparent 31px),
		linear-gradient(rgba(91, 47, 168, 0.12) 1px, transparent 1px) 0 0 / 18px 18px,
		linear-gradient(90deg, rgba(91, 47, 168, 0.12) 1px, transparent 1px) 0 0 / 18px 18px,
		var(--manila);
	border: 1px solid var(--manila-dark);
	border-radius: 2px;
}

.wp-block-code.is-style-cipher code {
	font-family: var(--font-type);
	letter-spacing: 0.35em;
	text-transform: uppercase;
	color: var(--pen);
}

/* Fiche bristol : lignes bleues, marge rose. */
.wp-block-code.is-style-index-card {
	padding: 22px 20px 8px;
	color: var(--paper-ink);
	background:
		linear-gradient(var(--stamp-ink), var(--stamp-ink)) 0 22px / 100% 1px no-repeat,
		repeating-linear-gradient(transparent 0 27px, var(--paper-line) 27px 28px) 0 22px,
		var(--paper-white);
	border: 0;
	border-radius: 0;
	box-shadow: 0 1px 1px rgba(0, 0, 0, 0.15), 0 12px 20px -12px rgba(0, 0, 0, 0.5);
	transform: rotate(-0.6deg);
}

.wp-block-code.is-style-index-card code {
	line-height: 28px;
	color: var(--paper-ink);
}

/* Lettre manuscrite : papier ligné, encre violette. */
.wp-block-verse.is-style-letter {
	border-left: 0;
	padding: 18px 24px 18px 52px;
	font-family: var(--font-hand);
	font-size: 1.45rem;
	line-height: 32px;
	color: var(--pen);
	background:
		linear-gradient(90deg, transparent 38px, rgba(168, 18, 111, 0.45) 38px 39px, transparent 39px),
		repeating-linear-gradient(transparent 0 31px, var(--paper-line) 31px 32px) 0 17px,
		var(--paper-white);
	box-shadow: 0 1px 1px rgba(0, 0, 0, 0.12), 0 12px 20px -12px rgba(0, 0, 0, 0.5);
}

/* Ciel de nuit : vers en lumière d’étoile. */
.wp-block-verse.is-style-night {
	border-left: 0;
	padding: 24px 26px;
	font-family: var(--font-occult);
	font-size: 1.25rem;
	font-style: italic;
	color: var(--star);
	text-shadow: 0 0 10px rgba(197, 191, 232, 0.45);
	background:
		radial-gradient(ellipse at 80% 0%, rgba(185, 123, 255, 0.3), transparent 60%),
		url("../img/starfield.svg") center / 320px,
		var(--night);
	border-radius: 6px;
	box-shadow: inset 0 0 0 1px rgba(185, 123, 255, 0.3), 0 0 30px rgba(185, 123, 255, 0.15);
}

/* Parchemin : rouleau aux deux bouts enroulés. */
.wp-block-verse.is-style-scroll {
	border-left: 0;
	position: relative;
	margin-top: 2.4em;
	margin-bottom: 2.4em;
	padding: 26px 30px;
	font-family: var(--font-occult);
	font-size: 1.2rem;
	color: #3a2416;
	background:
		radial-gradient(ellipse at 50% 50%, rgba(255, 245, 220, 0.6), transparent 70%),
		url("../img/grain.svg"),
		#e7d3a8;
	background-blend-mode: normal, multiply, normal;
	box-shadow: inset 12px 0 18px -14px rgba(90, 58, 30, 0.6), inset -12px 0 18px -14px rgba(90, 58, 30, 0.6);
	overflow: visible;
}

.wp-block-verse.is-style-scroll::before,
.wp-block-verse.is-style-scroll::after {
	content: "";
	position: absolute;
	left: -10px;
	right: -10px;
	height: 18px;
	background: linear-gradient(#c9ab74, #f1e0b8 40%, #b8955a);
	border-radius: 9px;
	box-shadow: 0 3px 5px rgba(0, 0, 0, 0.3);
}

.wp-block-verse.is-style-scroll::before { top: -12px; }
.wp-block-verse.is-style-scroll::after { bottom: -12px; }

/* --- Pli fermé (Détails) ------------------------------------------------------------------ */

.wp-block-details {
	margin: 1.6em 0;
	padding: 12px 16px;
	background: var(--paper);
	border-left: 3px solid var(--stamp-ink);
}

.wp-block-details summary {
	font-family: var(--font-type);
	letter-spacing: 0.06em;
	cursor: pointer;
}

.wp-block-details[open] summary {
	margin-bottom: 10px;
}

.wp-block-details.is-style-envelope {
	position: relative;
	padding: 20px 20px 16px;
	background: var(--manila-dark);
	border: 0;
	box-shadow: 0 12px 20px -12px rgba(0, 0, 0, 0.55);
}

.wp-block-details.is-style-envelope summary {
	list-style: none;
	padding: 12px 14px;
	background: var(--paper-white);
	border-left: 3px solid var(--pen);
}

.wp-block-details.is-style-envelope summary::-webkit-details-marker {
	display: none;
}

.wp-block-details.is-style-envelope summary::after {
	content: "✦";
	float: right;
	display: grid;
	place-items: center;
	width: 26px;
	height: 26px;
	margin-top: -3px;
	font-size: 0.8rem;
	color: #fff;
	background: radial-gradient(circle at 35% 30%, #a77ce8, var(--pen) 55%, #3a1b72);
	border-radius: 50%;
}

.wp-block-details.is-style-envelope > :not(summary) {
	padding: 12px 14px 4px;
	background: var(--paper-white);
}

.wp-block-details.is-style-night {
	color: var(--star);
	background: url("../img/starfield.svg") center / 300px, var(--night-card);
	border: 0;
	border-radius: 6px;
	box-shadow: inset 0 0 0 1px rgba(185, 123, 255, 0.35);
}

.wp-block-details.is-style-night summary {
	color: var(--mint);
}

.wp-block-details.is-style-night a {
	color: var(--mint);
}

.wp-block-details.is-style-memo {
	font-family: var(--font-type);
	background: var(--paper-white);
	border: 1px solid rgba(43, 33, 64, 0.25);
	border-top: 6px solid var(--manila);
}

/* Chemise kraft : onglet, papier cartonné. */
.wp-block-details.is-style-manila {
	position: relative;
	margin-top: 2.4em;
	padding: 18px 22px;
	background: url("../img/grain.svg"), var(--manila);
	background-blend-mode: multiply, normal;
	border: 0;
	border-radius: 2px 4px 4px;
	box-shadow: 0 1px 1px rgba(0, 0, 0, 0.15), 0 14px 24px -14px rgba(0, 0, 0, 0.6);
}

.wp-block-details.is-style-manila::before {
	content: "";
	position: absolute;
	top: -16px;
	left: 0;
	width: 120px;
	height: 17px;
	background: var(--manila);
	border-radius: 6px 6px 0 0;
	clip-path: polygon(6% 0, 94% 0, 100% 100%, 0 100%);
}

.wp-block-details.is-style-manila summary {
	text-transform: uppercase;
	letter-spacing: 0.12em;
	color: var(--paper-ink);
}

/* Fiche bristol. */
.wp-block-details.is-style-index-card {
	padding: 10px 20px 14px;
	line-height: 28px;
	background:
		linear-gradient(var(--stamp-ink), var(--stamp-ink)) 0 44px / 100% 1px no-repeat,
		repeating-linear-gradient(transparent 0 27px, var(--paper-line) 27px 28px) 0 44px / 100% calc(100% - 44px) no-repeat,
		var(--paper-white);
	border: 0;
	box-shadow: 0 1px 1px rgba(0, 0, 0, 0.15), 0 12px 20px -12px rgba(0, 0, 0, 0.5);
	transform: rotate(-0.5deg);
}

.wp-block-details.is-style-index-card summary {
	min-height: 34px;
	color: var(--stamp-ink);
}

/* Papier déchiré. */
.wp-block-details.is-style-torn {
	padding: 26px 24px;
	background: url("../img/grain.svg"), var(--paper);
	background-blend-mode: multiply, normal;
	border: 0;
	-webkit-mask:
		url("../img/torn-top.svg") top / 400px 14px repeat-x,
		url("../img/torn-bottom.svg") bottom / 400px 14px repeat-x,
		linear-gradient(#000, #000) 0 13px / 100% calc(100% - 26px) no-repeat;
	mask:
		url("../img/torn-top.svg") top / 400px 14px repeat-x,
		url("../img/torn-bottom.svg") bottom / 400px 14px repeat-x,
		linear-gradient(#000, #000) 0 13px / 100% calc(100% - 26px) no-repeat;
}

/* --- Couverture --------------------------------------------------------------------------- */

.wp-block-cover {
	margin: 2em 0;
	color: var(--star);
}

.wp-block-cover .wp-block-cover__background {
	background-color: var(--night) !important;
}

.wp-block-cover.is-style-night-vision .wp-block-cover__image-background {
	filter: grayscale(1) sepia(0.7) hue-rotate(100deg) saturate(1.3) brightness(0.8) contrast(1.2);
}

.wp-block-cover.is-style-night-vision::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
	background: repeating-linear-gradient(transparent 0 2px, rgba(0, 0, 0, 0.25) 2px 3px);
	box-shadow: inset 0 0 80px rgba(0, 0, 0, 0.8);
}

.wp-block-cover.is-style-night-vision .wp-block-cover__inner-container {
	font-family: var(--font-body);
	color: var(--mint);
	text-shadow: 0 0 8px rgba(124, 244, 200, 0.6);
}

.wp-block-cover.is-style-moonlit .wp-block-cover__image-background {
	filter: grayscale(0.5) hue-rotate(220deg) saturate(1.4) brightness(0.8);
}

.wp-block-cover.is-style-moonlit .wp-block-cover__background {
	background: radial-gradient(circle at 75% 20%, rgba(240, 236, 255, 0.35), transparent 30%), linear-gradient(180deg, rgba(8, 6, 15, 0.2), rgba(8, 6, 15, 0.85)) !important;
	opacity: 1 !important;
}

.wp-block-cover.is-style-moonlit .wp-block-cover__inner-container {
	font-family: var(--font-occult);
	font-size: 1.5rem;
}

.wp-block-cover.is-style-torn {
	filter: drop-shadow(0 10px 12px rgba(0, 0, 0, 0.4));
	-webkit-mask:
		url("../img/torn-top.svg") top / 400px 14px repeat-x,
		url("../img/torn-bottom.svg") bottom / 400px 14px repeat-x,
		linear-gradient(#000, #000) 0 13px / 100% calc(100% - 26px) no-repeat;
	mask:
		url("../img/torn-top.svg") top / 400px 14px repeat-x,
		url("../img/torn-bottom.svg") bottom / 400px 14px repeat-x,
		linear-gradient(#000, #000) 0 13px / 100% calc(100% - 26px) no-repeat;
}

.wp-block-cover.is-style-torn .wp-block-cover__image-background {
	filter: sepia(0.4);
}

/* Polaroïd : la couverture devient un grand tirage instantané. */
.wp-block-cover.is-style-polaroid {
	border: 14px solid #fff;
	border-bottom-width: 64px;
	box-shadow: 0 1px 1px rgba(0, 0, 0, 0.15), 0 18px 28px -14px rgba(0, 0, 0, 0.7);
	transform: rotate(-1.2deg);
}

.wp-block-cover.is-style-polaroid .wp-block-cover__image-background {
	filter: saturate(0.85) contrast(1.05) sepia(0.12);
}

/* Photo spirite : double exposition violette, silhouette lumineuse. */
.wp-block-cover.is-style-spirit .wp-block-cover__image-background {
	filter: grayscale(0.6) contrast(1.15) brightness(1.05);
}

.wp-block-cover.is-style-spirit::after {
	content: "";
	position: absolute;
	z-index: 1;
	inset: 0;
	background:
		radial-gradient(ellipse 22% 40% at 62% 55%, rgba(240, 236, 255, 0.45), transparent 70%),
		radial-gradient(ellipse at 30% 30%, rgba(185, 123, 255, 0.45), transparent 60%),
		radial-gradient(ellipse at 80% 90%, rgba(124, 244, 200, 0.2), transparent 60%);
	mix-blend-mode: screen;
	pointer-events: none;
}

.wp-block-cover.is-style-spirit .wp-block-cover__inner-container {
	z-index: 2;
	font-family: var(--font-occult);
	font-style: italic;
	text-shadow: 0 0 14px rgba(185, 123, 255, 0.9);
}

/* Carte postale : bord blanc, timbre et oblitération dans le coin. */
.wp-block-cover.is-style-postcard {
	border: 10px solid #fbf8f1;
	box-shadow: 0 1px 1px rgba(0, 0, 0, 0.15), 0 16px 26px -14px rgba(0, 0, 0, 0.6);
}

.wp-block-cover.is-style-postcard::before {
	content: "";
	position: absolute;
	z-index: 2;
	top: 14px;
	right: 14px;
	width: 64px;
	height: 76px;
	background:
		radial-gradient(circle at 50% 42%, #f2c879 0 14px, transparent 15px),
		linear-gradient(#5b2fa8, #2b2140);
	border: 5px solid #fbf8f1;
	-webkit-mask: linear-gradient(#000, #000) center / calc(100% - 8px) calc(100% - 8px) no-repeat, radial-gradient(circle at 4px 4px, transparent 3px, #000 3.5px) -4px -4px / 8px 8px;
	mask: linear-gradient(#000, #000) center / calc(100% - 8px) calc(100% - 8px) no-repeat, radial-gradient(circle at 4px 4px, transparent 3px, #000 3.5px) -4px -4px / 8px 8px;
	transform: rotate(4deg);
}

.wp-block-cover.is-style-postcard::after {
	content: "";
	position: absolute;
	z-index: 2;
	top: 30px;
	right: 50px;
	width: 120px;
	height: 50px;
	background: repeating-linear-gradient(transparent 0 8px, rgba(251, 248, 241, 0.75) 8px 10px);
	-webkit-mask: radial-gradient(ellipse 60% 100% at 70% 50%, #000 50%, transparent 52%), linear-gradient(90deg, #000 0 60%, transparent 60%);
	transform: rotate(-8deg);
	pointer-events: none;
}

.wp-block-cover.is-style-postcard .wp-block-cover__inner-container {
	font-family: var(--font-hand);
	font-size: 1.6rem;
	text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

/* --- Colonnes, média + texte -------------------------------------------------------------- */

.wp-block-columns {
	gap: 1.6em;
	margin: 1.8em 0;
}

.wp-block-column > :first-child {
	margin-top: 0;
}

.wp-block-media-text {
	margin: 1.8em 0;
	gap: 0;
}

.wp-block-media-text .wp-block-media-text__content {
	padding: 0 6%;
}

.wp-block-media-text__media img {
	padding: 0;
	box-shadow: none;
}

.wp-block-columns.is-style-cards > .wp-block-column {
	position: relative;
	padding: 22px 18px 16px;
	background: var(--paper);
	box-shadow: 0 1px 1px rgba(0, 0, 0, 0.12), 0 12px 20px -12px rgba(0, 0, 0, 0.5);
}

.wp-block-columns.is-style-cards > .wp-block-column:nth-child(odd) { transform: rotate(-1.2deg); }
.wp-block-columns.is-style-cards > .wp-block-column:nth-child(even) { transform: rotate(1deg); }

.wp-block-columns.is-style-cards > .wp-block-column::before {
	content: "";
	position: absolute;
	top: -7px;
	left: calc(50% - 7px);
	width: 14px;
	height: 14px;
	background: radial-gradient(circle at 35% 30%, #d9fff0, var(--mint) 45%, #1c8a63);
	border-radius: 50%;
	box-shadow: 0 3px 4px rgba(0, 0, 0, 0.45);
}

/* --- Surfaces partagées : groupe, colonnes, média + texte --------------------------------- */

.wp-block-group.is-style-manila,
.wp-block-columns.is-style-manila,
.wp-block-media-text.is-style-manila {
	position: relative;
	padding: 28px 24px 22px;
	margin-top: 2.4em;
	background: url("../img/grain.svg"), var(--manila);
	background-blend-mode: multiply, normal;
	border-radius: 2px 4px 4px 4px;
	box-shadow: 0 1px 1px rgba(0, 0, 0, 0.15), 0 14px 24px -14px rgba(0, 0, 0, 0.6);
}

.wp-block-group.is-style-manila::before,
.wp-block-columns.is-style-manila::before,
.wp-block-media-text.is-style-manila::before {
	content: "";
	position: absolute;
	top: -16px;
	left: 0;
	width: 120px;
	height: 17px;
	background: var(--manila);
	border-radius: 6px 6px 0 0;
	clip-path: polygon(6% 0, 94% 0, 100% 100%, 0 100%);
}

.wp-block-group.is-style-index-card,
.wp-block-columns.is-style-index-card,
.wp-block-media-text.is-style-index-card {
	padding: 34px 22px 18px;
	background:
		linear-gradient(var(--stamp-ink), var(--stamp-ink)) 0 26px / 100% 1px no-repeat,
		repeating-linear-gradient(transparent 0 27px, var(--paper-line) 27px 28px) 0 26px / 100% calc(100% - 26px) no-repeat,
		var(--paper-white);
	line-height: 28px;
	box-shadow: 0 1px 1px rgba(0, 0, 0, 0.15), 0 12px 20px -12px rgba(0, 0, 0, 0.5);
	transform: rotate(-0.6deg);
}

.wp-block-group.is-style-night,
.wp-block-columns.is-style-night,
.wp-block-media-text.is-style-night {
	padding: 26px 24px;
	color: var(--star);
	background:
		radial-gradient(ellipse at 80% 0%, rgba(185, 123, 255, 0.25), transparent 60%),
		url("../img/starfield.svg") center / 360px,
		var(--night);
	border-radius: 6px;
	box-shadow: inset 0 0 0 1px rgba(185, 123, 255, 0.3), 0 0 34px rgba(185, 123, 255, 0.15);
}

:is(.wp-block-group, .wp-block-columns, .wp-block-media-text).is-style-night :is(a, .wp-block-heading) {
	color: var(--star);
}

:is(.wp-block-group, .wp-block-columns, .wp-block-media-text).is-style-night a {
	color: var(--mint);
}

.wp-block-group.is-style-torn,
.wp-block-columns.is-style-torn,
.wp-block-media-text.is-style-torn {
	padding: 30px 26px;
	background: url("../img/grain.svg"), var(--paper);
	background-blend-mode: multiply, normal;
	filter: drop-shadow(0 10px 12px rgba(0, 0, 0, 0.35));
	-webkit-mask:
		url("../img/torn-top.svg") top / 400px 14px repeat-x,
		url("../img/torn-bottom.svg") bottom / 400px 14px repeat-x,
		linear-gradient(#000, #000) 0 13px / 100% calc(100% - 26px) no-repeat;
	mask:
		url("../img/torn-top.svg") top / 400px 14px repeat-x,
		url("../img/torn-bottom.svg") bottom / 400px 14px repeat-x,
		linear-gradient(#000, #000) 0 13px / 100% calc(100% - 26px) no-repeat;
}

:is(.wp-block-group, .wp-block-columns, .wp-block-media-text)[class*="is-style-"] {
	margin-bottom: 1.8em;
}

.wp-block-group > :first-child { margin-top: 0; }
.wp-block-group > :last-child { margin-bottom: 0; }

/* Tableau de liège : punaises, liège grumeleux. */
.wp-block-group.is-style-cork,
.wp-block-media-text.is-style-cork {
	position: relative;
	padding: 30px 26px 24px;
	color: #2b2140;
	background:
		radial-gradient(circle at 20% 30%, rgba(90, 58, 30, 0.35) 0 1px, transparent 2px) 0 0 / 9px 11px,
		radial-gradient(circle at 70% 60%, rgba(255, 240, 210, 0.35) 0 1px, transparent 2px) 0 0 / 13px 7px,
		#c49a6c;
	border: 10px solid #7a5230;
	border-radius: 3px;
	box-shadow: inset 0 0 18px rgba(60, 35, 15, 0.45), 0 16px 26px -14px rgba(0, 0, 0, 0.7);
}

.wp-block-group.is-style-cork::before,
.wp-block-media-text.is-style-cork::before {
	content: "";
	position: absolute;
	top: 8px;
	left: calc(50% - 8px);
	width: 16px;
	height: 16px;
	background: radial-gradient(circle at 35% 30%, #ffd0ee, var(--pink) 45%, #8a0c5a);
	border-radius: 50%;
	box-shadow: 0 4px 4px rgba(0, 0, 0, 0.45);
}

.wp-block-group.is-style-cork > *,
.wp-block-media-text.is-style-cork .wp-block-media-text__content {
	padding: 12px 14px;
	color: var(--paper-ink);
	background: var(--paper-white);
	box-shadow: 0 6px 10px -6px rgba(0, 0, 0, 0.5);
}

.wp-block-group.is-style-cork > *:nth-child(odd) { transform: rotate(-1deg); }
.wp-block-group.is-style-cork > *:nth-child(even) { transform: rotate(1.2deg); }

.wp-block-media-text.is-style-cork .wp-block-media-text__media img {
	padding: 8px 8px 24px;
	background: #fff;
	box-shadow: 0 6px 10px -6px rgba(0, 0, 0, 0.5);
	transform: rotate(-2deg);
}

/* Papier millimétré : quadrillage bleu, notes d’ingénieur. */
.wp-block-group.is-style-graph,
.wp-block-columns.is-style-graph,
.wp-block-media-text.is-style-graph {
	padding: 24px 22px;
	color: var(--paper-ink);
	background:
		linear-gradient(rgba(77, 184, 255, 0.35) 1px, transparent 1px) 0 0 / 100% 50px,
		linear-gradient(90deg, rgba(77, 184, 255, 0.35) 1px, transparent 1px) 0 0 / 50px 100%,
		linear-gradient(rgba(77, 184, 255, 0.16) 1px, transparent 1px) 0 0 / 100% 10px,
		linear-gradient(90deg, rgba(77, 184, 255, 0.16) 1px, transparent 1px) 0 0 / 10px 100%,
		var(--paper-white);
	box-shadow: 0 1px 1px rgba(0, 0, 0, 0.12), 0 12px 20px -12px rgba(0, 0, 0, 0.5);
}

.is-mode-dark:is(.wp-block-group, .wp-block-columns, .wp-block-media-text).is-style-graph {
	background:
		linear-gradient(rgba(124, 244, 200, 0.28) 1px, transparent 1px) 0 0 / 100% 50px,
		linear-gradient(90deg, rgba(124, 244, 200, 0.28) 1px, transparent 1px) 0 0 / 50px 100%,
		linear-gradient(rgba(124, 244, 200, 0.1) 1px, transparent 1px) 0 0 / 100% 10px,
		linear-gradient(90deg, rgba(124, 244, 200, 0.1) 1px, transparent 1px) 0 0 / 10px 100%,
		var(--paper-white);
}

/* --- Élément forcé en sombre / clair ----------------------------------------------------
   Les jetons « papier » sont redéfinis dans tokens.css ; ici, un fond pour les blocs qui
   n’en ont pas. :where() : spécificité nulle, le fond propre d’un style de bloc l’emporte. */

:where(.is-mode-dark, .is-mode-light) {
	color: var(--paper-ink);
	background: var(--paper-white);
	padding: 0.9em 1.1em;
	border-radius: 4px;
}

:where(.is-mode-dark) {
	box-shadow: inset 0 0 0 1px rgba(185, 123, 255, 0.3), 0 0 26px rgba(185, 123, 255, 0.12);
}

:where(.is-mode-light) {
	box-shadow: 0 1px 1px rgba(0, 0, 0, 0.12), 0 10px 18px -12px rgba(0, 0, 0, 0.45);
}

/* Images, couvertures : le tirage reste un objet, pas de fond autour. */
:where(.wp-block-image, .wp-block-cover, .wp-block-button, .wp-block-separator):is(.is-mode-dark, .is-mode-light) {
	background: none;
	padding: 0;
	box-shadow: none;
}

:is(.is-mode-dark, .is-mode-light) a {
	color: var(--pen);
}

/* --- Blocs Google Drive (vault-core) ------------------------------------------------------
   Le balisage est celui des images et galeries : tous leurs styles s’appliquent.
   Ce message n’apparaît que dans l’aperçu de l’éditeur. */

.vault-drive-notice {
	padding: 12px 16px;
	font-family: var(--font-type);
	font-size: 0.9rem;
	color: var(--paper-ink);
	background: var(--paper);
	border-left: 4px solid var(--stamp-ink);
}

/* --- Préférences d’accessibilité --------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
	.wp-block-gallery figure.wp-block-image {
		transition: none;
	}
}

@media (forced-colors: active) {
	p.is-style-redacted {
		color: CanvasText;
		background: none;
	}

	.wp-block-image.is-style-torn img,
	.wp-block-cover.is-style-torn,
	.wp-block-group.is-style-torn,
	.wp-block-button.is-style-ticket .wp-block-button__link,
	.wp-block-pullquote.is-style-stamped {
		-webkit-mask: none;
		mask: none;
	}
}
