/* ==========================================================================
   Vault Zine : lecteurs audio et vidéo, fichiers à télécharger
   Blocs Embed (Spotify, YouTube…), Audio, Vidéo et Fichier. Chargé sur le site et dans
   l’éditeur. Chaque variante vient d’une classe « is-style-… » (aucun style inline : CSP).

   Les lecteurs des services ne sont chargés qu’au clic : vault-core affiche d’abord une
   façade (.vault-embed). Le lecteur du service, une fois chargé, garde son propre design :
   les variantes l’habillent (cassette, vinyle, téléviseur…) sans toucher à l’intérieur.

   Mise en page commune aux variantes : la figure est une grille, les décors sont ses
   pseudo-éléments placés dans des zones nommées (« media » = le lecteur).
   ========================================================================== */

.wp-block-embed,
.wp-block-audio,
.wp-block-video {
	margin: 1.8em 0;
}

/* Les lecteurs (Spotify…) ont un fond transparent : si le cadre hérite du mode sombre alors
   que leur page est claire, le navigateur peint un fond blanc opaque derrière (appareil en
   mode sombre, bloc forcé en sombre, éditeur). Le cadre reste donc en clair. */
.wp-block-embed iframe {
	color-scheme: light;
}

.wp-block-embed iframe,
.wp-block-video video,
.wp-block-audio audio {
	display: block;
	width: 100%;
	max-width: 100%;
	border: 0;
}

.wp-block-audio audio {
	min-width: 0;
}

.wp-block-video video {
	height: auto;
	background: var(--night);
}

/* Format : WordPress pose aussi wp-has-aspect-ratio (21:9) sur Spotify, SoundCloud… alors que
   ces lecteurs ont une hauteur fixe : la boîte devenait plus haute que le lecteur (bande vide).
   Sur le site, le thème gère le format lui-même, et seulement pour les vidéos. Dans l’éditeur,
   l’aperçu garde le calcul de WordPress (sinon les lecteurs hauts seraient coupés). */
body:not(.editor-styles-wrapper) .wp-block-embed.wp-has-aspect-ratio .wp-block-embed__wrapper::before {
	display: none;
}

body:not(.editor-styles-wrapper) .wp-block-embed.wp-has-aspect-ratio .wp-block-embed__wrapper iframe {
	position: static;
}

body:not(.editor-styles-wrapper) .wp-block-embed.is-type-video.wp-has-aspect-ratio .wp-block-embed__wrapper :is(iframe, .vault-embed) {
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
}

.wp-block-embed.is-type-video.wp-has-aspect-ratio .vault-embed.is-loaded iframe {
	height: 100%;
}

/* La façade grandit avec son texte sur petit écran (le lecteur garde son format). */
body:not(.editor-styles-wrapper) .wp-block-embed.is-type-video.wp-has-aspect-ratio .wp-block-embed__wrapper .vault-embed:not(.is-loaded) {
	aspect-ratio: auto;
	min-height: clamp(220px, 42vw, 340px);
}

.wp-block-embed.is-type-video.wp-embed-aspect-4-3 .wp-block-embed__wrapper :is(iframe, .vault-embed) { aspect-ratio: 4 / 3; }
.wp-block-embed.is-type-video.wp-embed-aspect-1-1 .wp-block-embed__wrapper :is(iframe, .vault-embed) { aspect-ratio: 1; }
.wp-block-embed.is-type-video.wp-embed-aspect-9-16 .wp-block-embed__wrapper :is(iframe, .vault-embed) { aspect-ratio: 9 / 16; max-height: 80vh; }
.wp-block-embed.is-type-video.wp-embed-aspect-21-9 .wp-block-embed__wrapper :is(iframe, .vault-embed) { aspect-ratio: 21 / 9; }

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

/* --- Façade « appuyer sur Lire » ------------------------------------------------------- */

.vault-embed {
	--ve-bg: var(--night-card);
	--ve-ink: var(--star);
	--ve-soft: var(--star-soft);
	--ve-accent: var(--mint);
	--ve-radius: 12px;
	--ve-texture: url("../img/starfield.svg") center / 320px;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	align-content: center;
	gap: 12px 18px;
	box-sizing: border-box;
	min-height: 80px;
	padding: 16px 20px;
	color: var(--ve-ink);
	background:
		radial-gradient(ellipse at 90% 0%, rgba(185, 123, 255, 0.22), transparent 60%),
		var(--ve-texture),
		var(--ve-bg);
	border-radius: var(--ve-radius);
	box-shadow: inset 0 0 0 1px rgba(185, 123, 255, 0.3);
}

.vault-embed.is-short { min-height: 152px; }
.vault-embed.is-tall { min-height: 352px; }

.vault-embed.is-video {
	flex-direction: column;
	flex-wrap: nowrap;
	justify-content: center;
	text-align: center;
}

.vault-embed__play {
	display: grid;
	flex: none;
	place-items: center;
	width: 62px;
	height: 62px;
	padding: 0;
	color: var(--ve-accent);
	background: transparent;
	border: 2px solid currentColor;
	border-radius: 50%;
	box-shadow: 0 0 20px color-mix(in srgb, var(--ve-accent) 35%, transparent);
	cursor: pointer;
	transition: background-color 0.2s, color 0.2s, transform 0.2s;
}

.vault-embed__play:hover {
	color: var(--ve-bg);
	background: var(--ve-accent);
	transform: scale(1.05);
}

.vault-embed__play:focus-visible {
	outline: 3px solid var(--ve-accent);
	outline-offset: 4px;
}

.vault-embed__icon {
	width: 0;
	height: 0;
	margin-left: 5px;
	border-style: solid;
	border-width: 11px 0 11px 18px;
	border-color: transparent transparent transparent currentColor;
}

.vault-embed__text {
	display: flex;
	flex: 1 1 14em;
	flex-direction: column;
	gap: 3px;
	min-width: 0;
}

.vault-embed.is-video .vault-embed__text {
	flex: none;
	align-items: center;
	max-width: 30em;
}

.vault-embed__provider {
	font-family: var(--font-type);
	font-size: 0.72rem;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--ve-accent);
}

.vault-embed__title {
	font-family: var(--font-occult);
	font-size: 1.35rem;
	line-height: 1.2;
	overflow-wrap: anywhere;
}

.vault-embed__note {
	font-size: 0.8rem;
	line-height: 1.4;
	color: var(--ve-soft);
}

.vault-embed__open {
	align-self: flex-start;
	font-size: 0.8rem;
	color: var(--ve-accent);
}

.vault-embed.is-video .vault-embed__open {
	align-self: center;
}

@media (max-width: 480px) {
	.vault-embed { padding: 14px; gap: 10px 14px; }
	.vault-embed__title { font-size: 1.15rem; }
}

.vault-embed__open:hover,
.vault-embed__open:focus-visible {
	color: var(--ve-ink);
}

.vault-embed.is-loaded {
	display: block;
	min-height: 0;
	padding: 0;
	background: none;
	box-shadow: none;
}

.vault-embed.is-loaded iframe {
	display: block;
	width: 100%;
	border: 0;
	border-radius: var(--ve-radius);
}

/* Une iframe d’un service non autorisé devient un lien. */
.vault-embed-link {
	margin: 0;
	padding: 12px 16px;
	font-family: var(--font-type);
	font-size: 0.9rem;
	background: var(--paper);
	border-left: 3px solid var(--violet);
	overflow-wrap: anywhere;
}

/* Élément forcé en clair : la façade passe sur papier. */
.is-mode-light .vault-embed {
	--ve-bg: var(--paper-white);
	--ve-ink: var(--paper-ink);
	--ve-soft: var(--paper-ink-soft);
	--ve-accent: var(--pen);
	--ve-texture: url("../img/grain.svg");
}

/* --- Grille commune aux variantes ----------------------------------------------------------- */

/* Spécificité basse : chaque variante redéfinit ses zones. */
:where(.wp-block-embed, .wp-block-audio, .wp-block-video):where([class*="is-style-"]:not(.is-style-default)) {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	grid-template-areas: "head" "media" "foot" "caption";
	isolation: isolate;
}

:is(.wp-block-embed, .wp-block-audio, .wp-block-video)[class*="is-style-"]:not(.is-style-default) > :is(.wp-block-embed__wrapper, audio, video) {
	position: relative;
	z-index: 1;
	grid-area: media;
	min-width: 0;
}

:is(.wp-block-embed, .wp-block-audio, .wp-block-video)[class*="is-style-"]:not(.is-style-default) > :is(figcaption, .wp-element-caption) {
	position: relative;
	z-index: 1;
	grid-area: caption;
}

/* ==========================================================================
   Audio : cassette, vinyle, mémo vocal, bande à conviction, spirit box, ouija
   (blocs Embed et Audio)
   ========================================================================== */

/* --- Cassette : coque noire et vis, étiquette crème manuscrite, rayures violettes, fenêtre
   à deux bobines blanches ; le lecteur (et sa barre de progression) dans le trapèze du bas. --- */

:is(.wp-block-embed, .wp-block-audio).is-style-cassette {
	--tape-label: #efe9dc;
	--tape-ink: #1b1622;
	--tape-stripe: #5b2fa8;
	grid-template-areas: "caption" "window" "media";
	row-gap: 0;
	padding: 22px 22px 0;
	color: var(--star);
	background:
		radial-gradient(circle at 11px 11px, #6b6475 0 3px, #15121a 3.5px 4.5px, transparent 5px),
		radial-gradient(circle at calc(100% - 11px) 11px, #6b6475 0 3px, #15121a 3.5px 4.5px, transparent 5px),
		radial-gradient(circle at 11px calc(100% - 11px), #6b6475 0 3px, #15121a 3.5px 4.5px, transparent 5px),
		radial-gradient(circle at calc(100% - 11px) calc(100% - 11px), #6b6475 0 3px, #15121a 3.5px 4.5px, transparent 5px),
		linear-gradient(160deg, #3a3540, #24212a 45%, #1a1720);
	border-radius: 12px;
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07), inset 0 0 0 7px rgba(0, 0, 0, 0.18), 0 18px 28px -14px rgba(0, 0, 0, 0.8);
}

/* Le haut de l’étiquette : le titre, écrit au feutre. */
:is(.wp-block-embed, .wp-block-audio).is-style-cassette > :is(figcaption, .wp-element-caption) {
	margin: 0;
	padding: 10px 22px 4px;
	font-family: var(--font-hand);
	font-size: clamp(1.6rem, 4.5vw, 2.3rem);
	font-weight: 700;
	line-height: 1.05;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--tape-ink);
	background: url("../img/grain.svg"), var(--tape-label);
	background-blend-mode: multiply, normal;
	border-radius: 6px 6px 0 0;
}

/* Le bas de l’étiquette : rayures, bande violette étoilée, fenêtre et bobines. */
:is(.wp-block-embed, .wp-block-audio).is-style-cassette::before {
	content: "";
	grid-area: window;
	height: 128px;
	background:
		/* Moyeux blancs, avec leurs six dents autour du trou central. */
		radial-gradient(circle at 32% 50%, #0f0c14 0 5px, transparent 5.5px),
		radial-gradient(circle at 68% 50%, #0f0c14 0 5px, transparent 5.5px),
		radial-gradient(circle at 32% 50%, transparent 0 12.5px, #f4f1ea 13px 23px, #bdb7c9 23.5px 25px, transparent 25.5px),
		radial-gradient(circle at 68% 50%, transparent 0 12.5px, #f4f1ea 13px 23px, #bdb7c9 23.5px 25px, transparent 25.5px),
		repeating-conic-gradient(from 0deg, #f4f1ea 0 16deg, transparent 16deg 60deg) calc(32% - 5.04px) 50% / 28px 28px no-repeat,
		repeating-conic-gradient(from 25deg, #f4f1ea 0 16deg, transparent 16deg 60deg) calc(68% + 5.04px) 50% / 28px 28px no-repeat,
		radial-gradient(circle at 32% 50%, #1b1622 0 13px, transparent 13.5px),
		radial-gradient(circle at 68% 50%, #1b1622 0 13px, transparent 13.5px),
		/* Bande enroulée : plus sur la bobine de gauche que sur celle de droite. */
		radial-gradient(circle at 32% 50%, transparent 0 25px, #3a2418 25.5px 38px, transparent 38.5px),
		radial-gradient(circle at 68% 50%, transparent 0 25px, #3a2418 25.5px 30px, transparent 30.5px),
		/* Fenêtre en pilule. */
		radial-gradient(circle at 32% 50%, #0f0c14 0 41px, transparent 41.5px),
		radial-gradient(circle at 68% 50%, #0f0c14 0 41px, transparent 41.5px),
		linear-gradient(#0f0c14, #0f0c14) center / 36% 82px no-repeat,
		/* Bande violette étoilée et rayures. */
		radial-gradient(circle, rgba(255, 255, 255, 0.75) 0 1px, transparent 1.5px) 0 100% / 23px 17px repeat-x,
		radial-gradient(circle, rgba(255, 255, 255, 0.5) 0 0.8px, transparent 1.2px) 9px 100% / 31px 26px repeat-x,
		linear-gradient(var(--tape-stripe), var(--tape-stripe)) 0 100% / 100% 34px no-repeat,
		repeating-linear-gradient(transparent 0 7px, var(--tape-stripe) 7px 11px) 0 6px / 100% 84px no-repeat,
		var(--tape-label);
	border-radius: 0 0 6px 6px;
	box-shadow: 0 3px 0 rgba(0, 0, 0, 0.25);
}

:is(.wp-block-embed, .wp-block-audio).is-style-cassette:not(:has(> :is(figcaption, .wp-element-caption)))::before {
	border-radius: 6px;
}

/* Le lecteur, dans la partie basse de la coque. */
:is(.wp-block-embed, .wp-block-audio).is-style-cassette > :is(.wp-block-embed__wrapper, audio) {
	justify-self: center;
	width: 78%;
	box-sizing: border-box;
	margin: 26px 0 18px;
}

:is(.wp-block-embed, .wp-block-audio).is-style-cassette > audio {
	height: 54px;
	color-scheme: dark;
}

/* Le trapèze du bas (là où passe la tête de lecture), derrière le lecteur. */
:is(.wp-block-embed, .wp-block-audio).is-style-cassette::after {
	content: "";
	z-index: 0;
	grid-area: media;
	justify-self: center;
	width: calc(78% + 90px);
	max-width: calc(100% + 10px);
	margin-top: 12px;
	background:
		radial-gradient(circle at 26px calc(100% - 16px), #0f0c14 0 6px, transparent 6.5px),
		radial-gradient(circle at calc(100% - 26px) calc(100% - 16px), #0f0c14 0 6px, transparent 6.5px),
		linear-gradient(170deg, #34303b, #221e27);
	clip-path: polygon(36px 0, calc(100% - 36px) 0, 100% 100%, 0 100%);
}

:is(.wp-block-embed, .wp-block-audio).is-style-cassette .vault-embed {
	--ve-bg: #0f0c14;
	--ve-accent: #b98bff;
	--ve-radius: 10px;
	--ve-texture: repeating-linear-gradient(90deg, transparent 0 3px, rgba(255, 255, 255, 0.025) 3px 4px);
	box-shadow: inset 0 0 0 1px rgba(185, 123, 255, 0.35);
}

@media (max-width: 480px) {
	:is(.wp-block-embed, .wp-block-audio).is-style-cassette {
		padding: 18px 14px 0;
	}

	:is(.wp-block-embed, .wp-block-audio).is-style-cassette > :is(.wp-block-embed__wrapper, audio) {
		width: 86%;
	}

	:is(.wp-block-embed, .wp-block-audio).is-style-cassette::after {
		width: calc(86% + 60px);
		clip-path: polygon(24px 0, calc(100% - 24px) 0, 100% 100%, 0 100%);
	}
}

/* --- Vinyle : pochette kraft, disque qui dépasse (et tourne au survol) ----------------- */

:is(.wp-block-embed, .wp-block-audio).is-style-vinyl {
	grid-template-areas: "media" "caption";
	gap: 8px;
	padding: 16px clamp(70px, 22%, 150px) 16px 16px;
}

/* La pochette, derrière le lecteur et la légende. */
:is(.wp-block-embed, .wp-block-audio).is-style-vinyl::after {
	content: "";
	z-index: 0;
	grid-area: 1 / 1 / 3 / 2;
	margin: -16px;
	background:
		radial-gradient(circle at 70% 50%, transparent 0 36%, rgba(43, 33, 64, 0.08) 36.5% 38%, transparent 38.5%),
		url("../img/grain.svg"),
		var(--manila);
	background-blend-mode: normal, multiply, normal;
	border-radius: 2px;
	box-shadow: 0 1px 1px rgba(0, 0, 0, 0.2), 0 16px 24px -14px rgba(0, 0, 0, 0.7);
}

:is(.wp-block-embed, .wp-block-audio).is-style-vinyl::before {
	content: "";
	position: absolute;
	z-index: -1;
	top: 4px;
	right: 0;
	bottom: 4px;
	max-height: 300px;
	margin: auto 0;
	aspect-ratio: 1;
	background:
		radial-gradient(circle, #f3ede1 0 2.5%, var(--pink) 2.6% 16%, #7a1458 16.4% 17%, transparent 17.4%),
		radial-gradient(circle, transparent 0 46%, rgba(255, 255, 255, 0.09) 47%, transparent 49%),
		conic-gradient(from 30deg, rgba(255, 255, 255, 0.14), transparent 15%, transparent 50%, rgba(255, 255, 255, 0.1) 60%, transparent 75%),
		repeating-radial-gradient(circle, #141018 0 2px, #1f1a26 2px 3px);
	border-radius: 50%;
	box-shadow: 0 10px 20px -8px rgba(0, 0, 0, 0.7);
	animation: vault-spin 5s linear infinite paused;
}

:is(.wp-block-embed, .wp-block-audio).is-style-vinyl:is(:hover, :focus-within)::before {
	animation-play-state: running;
}

:is(.wp-block-embed, .wp-block-audio).is-style-vinyl > :is(figcaption, .wp-element-caption) {
	margin: 0;
	font-size: 1.4rem;
	color: var(--paper-ink);
}

:is(.wp-block-embed, .wp-block-audio).is-style-vinyl .vault-embed {
	--ve-bg: #241a2e;
	--ve-accent: var(--pink-soft);
	--ve-radius: 4px;
	--ve-texture: url("../img/grain.svg");
}

@keyframes vault-spin {
	to { transform: rotate(1turn); }
}

/* --- Mémo vocal : carte d’appli, point rouge « REC », forme d’onde ------------------------ */

:is(.wp-block-embed, .wp-block-audio).is-style-voice-memo {
	grid-template-areas: "head" "caption" "media" "foot";
	gap: 8px;
	max-width: 560px;
	padding: 14px 18px 16px;
	color: var(--paper-ink);
	background: var(--paper-white);
	border-radius: 22px;
	box-shadow: 0 0 0 1px var(--paper-line), 0 16px 26px -16px rgba(0, 0, 0, 0.6);
}

:is(.wp-block-embed, .wp-block-audio).is-style-voice-memo::before {
	content: "\25CF  REC" / "";
	grid-area: head;
	font-family: var(--font-type);
	font-size: 0.75rem;
	letter-spacing: 0.18em;
	color: var(--stamp-ink);
	animation: vault-blink 1.6s steps(2, start) infinite;
}

:is(.wp-block-embed, .wp-block-audio).is-style-voice-memo > :is(figcaption, .wp-element-caption) {
	margin: 0;
	font-family: var(--font-type);
	font-size: 1.05rem;
	color: var(--paper-ink);
}

/* Forme d’onde (barres de hauteurs variées) : la partie « déjà écoutée » en rose. */
:is(.wp-block-embed, .wp-block-audio).is-style-voice-memo::after {
	content: "";
	grid-area: foot;
	height: 34px;
	background: linear-gradient(90deg, var(--stamp-ink) 0 38%, var(--paper-line) 38%);
	-webkit-mask: url("../img/waveform.svg") center / 100% 100% no-repeat;
	mask: url("../img/waveform.svg") center / 100% 100% no-repeat;
}

:is(.wp-block-embed, .wp-block-audio).is-style-voice-memo .vault-embed {
	--ve-bg: var(--paper);
	--ve-ink: var(--paper-ink);
	--ve-soft: var(--paper-ink-soft);
	--ve-accent: var(--stamp-ink);
	--ve-radius: 14px;
	--ve-texture: linear-gradient(transparent, transparent);
	box-shadow: none;
}

:is(.wp-block-embed, .wp-block-audio).is-style-voice-memo > audio {
	color-scheme: light;
}

.is-mode-dark:is(.wp-block-embed, .wp-block-audio).is-style-voice-memo > audio {
	color-scheme: dark;
}

@keyframes vault-blink {
	to { visibility: hidden; }
}

/* --- Bande à conviction : magnétophone à bobines, étiquette « pièce à conviction » ------- */

:is(.wp-block-embed, .wp-block-audio).is-style-evidence-reel {
	grid-template-areas: "head" "media" "caption";
	gap: 12px;
	padding: 16px 18px 18px;
	color: var(--star);
	background:
		linear-gradient(rgba(255, 255, 255, 0.04), transparent 40%),
		#1b1626;
	border: 1px solid rgba(124, 244, 200, 0.35);
	border-radius: 6px;
	box-shadow: 0 0 26px rgba(124, 244, 200, 0.12), 0 16px 26px -14px rgba(0, 0, 0, 0.8);
}

/* Deux grandes bobines reliées par la bande. */
:is(.wp-block-embed, .wp-block-audio).is-style-evidence-reel::before {
	content: "";
	grid-area: head;
	height: 96px;
	background:
		radial-gradient(circle at 25% 50%, #1b1626 0 7px, #c5bfe8 7px 9px, transparent 9px),
		radial-gradient(circle at 75% 50%, #1b1626 0 7px, #c5bfe8 7px 9px, transparent 9px),
		radial-gradient(circle at 25% 50%, transparent 0 18px, #1b1626 18px 21px, transparent 21px),
		radial-gradient(circle at 75% 50%, transparent 0 18px, #1b1626 18px 21px, transparent 21px),
		radial-gradient(circle at 25% 50%, #5a3a2a 0 30px, transparent 31px),
		radial-gradient(circle at 75% 50%, #5a3a2a 0 22px, transparent 23px),
		radial-gradient(circle at 25% 50%, #8a7fa8 0 46px, transparent 47px),
		radial-gradient(circle at 75% 50%, #8a7fa8 0 46px, transparent 47px),
		linear-gradient(#5a3a2a, #5a3a2a) 50% 86% / 50% 2px no-repeat;
}

:is(.wp-block-embed, .wp-block-audio).is-style-evidence-reel > :is(figcaption, .wp-element-caption) {
	justify-self: start;
	margin: 0;
	padding: 3px 12px 1px;
	font-family: var(--font-type);
	font-size: 0.8rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #2b2140;
	background: #e4d4ab;
	border-left: 4px solid #a8126f;
}

:is(.wp-block-embed, .wp-block-audio).is-style-evidence-reel > audio {
	color-scheme: dark;
}

:is(.wp-block-embed, .wp-block-audio).is-style-evidence-reel .vault-embed {
	--ve-bg: #120f1a;
	--ve-radius: 4px;
	--ve-texture: repeating-linear-gradient(transparent 0 3px, rgba(124, 244, 200, 0.04) 3px 4px);
}

/* --- Spirit box : radio à balayage, cadran de fréquences, aiguille qui cherche ------------- */

:is(.wp-block-embed, .wp-block-audio).is-style-spirit-box {
	grid-template-areas: "head" "media" "caption";
	gap: 12px;
	padding: 14px 16px 16px;
	color: var(--star);
	background:
		radial-gradient(ellipse at 50% 0%, rgba(124, 244, 200, 0.16), transparent 60%),
		repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.03) 0 2px, transparent 2px 5px),
		#0e0e21;
	border-radius: 10px;
	box-shadow: inset 0 0 0 2px #2a2238, inset 0 0 0 4px rgba(124, 244, 200, 0.25), 0 16px 26px -14px rgba(0, 0, 0, 0.85);
}

/* Le cadran : graduations, chiffres et aiguille rose qui balaie. */
:is(.wp-block-embed, .wp-block-audio).is-style-spirit-box::before {
	content: "88    92    96    100    104    108" / "";
	grid-area: head;
	padding: 16px 10px 4px;
	font-family: var(--font-type);
	font-size: 0.7rem;
	letter-spacing: 0.08em;
	white-space: pre;
	text-align: justify;
	text-align-last: justify;
	color: var(--mint);
	text-shadow: 0 0 8px rgba(124, 244, 200, 0.6);
	background:
		linear-gradient(var(--pink), var(--pink)) 0 0 / 2px 100% no-repeat,
		repeating-linear-gradient(90deg, rgba(124, 244, 200, 0.7) 0 1px, transparent 1px 12px) 0 2px / 100% 8px no-repeat,
		repeating-linear-gradient(90deg, rgba(124, 244, 200, 0.9) 0 2px, transparent 2px 60px) 0 0 / 100% 12px no-repeat,
		#06120f;
	border-radius: 4px;
	box-shadow: inset 0 0 14px rgba(124, 244, 200, 0.25);
	overflow: hidden;
	animation: vault-sweep 7s ease-in-out infinite alternate;
}

:is(.wp-block-embed, .wp-block-audio).is-style-spirit-box > :is(figcaption, .wp-element-caption) {
	margin: 0;
	font-family: var(--font-type);
	font-size: 0.95rem;
	letter-spacing: 0.08em;
	color: var(--mint);
}

:is(.wp-block-embed, .wp-block-audio).is-style-spirit-box > :is(figcaption, .wp-element-caption)::before {
	content: "\25B8  " / "";
}

:is(.wp-block-embed, .wp-block-audio).is-style-spirit-box > audio {
	color-scheme: dark;
}

:is(.wp-block-embed, .wp-block-audio).is-style-spirit-box .vault-embed {
	--ve-bg: #06120f;
	--ve-soft: #a8e6d1;
	--ve-radius: 6px;
	--ve-texture: repeating-linear-gradient(transparent 0 2px, rgba(124, 244, 200, 0.05) 2px 3px);
	box-shadow: inset 0 0 0 1px rgba(124, 244, 200, 0.35);
}

@keyframes vault-sweep {
	from { background-position: 4% 0, 0 2px, 0 0, 0 0; }
	to { background-position: 96% 0, 0 2px, 0 0, 0 0; }
}

/* --- Ouija : planche ancienne, OUI / NON, soleil et lune, AU REVOIR ----------------------- */

:is(.wp-block-embed, .wp-block-audio).is-style-ouija {
	grid-template-areas: "head" "media" "caption" "foot";
	gap: 10px;
	padding: 16px 22px 14px;
	color: #2b1a10;
	background:
		radial-gradient(ellipse at 50% 40%, rgba(255, 240, 200, 0.5), transparent 70%),
		url("../img/grain.svg"),
		linear-gradient(135deg, #d9b98a, #b98d5a);
	background-blend-mode: normal, multiply, normal;
	border-radius: 28px;
	box-shadow: inset 0 0 0 3px #7a5230, inset 0 0 0 7px #d9b98a, inset 0 0 0 8px #7a5230, 0 16px 26px -14px rgba(0, 0, 0, 0.7);
}

:is(.wp-block-embed, .wp-block-audio).is-style-ouija::before {
	content: "\2600  YES          NO  \263D" / "";
	grid-area: head;
	font-family: var(--font-occult-sc);
	font-size: 1.35rem;
	letter-spacing: 0.12em;
	white-space: pre;
	text-align: center;
	color: #2b1a10;
}

:is(.wp-block-embed, .wp-block-audio).is-style-ouija::after {
	content: "\2726  GOOD BYE  \2726" / "";
	grid-area: foot;
	font-family: var(--font-occult-sc);
	font-size: 1rem;
	letter-spacing: 0.3em;
	text-align: center;
	color: #2b1a10;
}

:is(.wp-block-embed, .wp-block-audio).is-style-ouija > :is(figcaption, .wp-element-caption) {
	margin: 0;
	font-family: var(--font-occult);
	font-size: 1.15rem;
	font-style: italic;
	text-align: center;
	color: #2b1a10;
}

:is(.wp-block-embed, .wp-block-audio).is-style-ouija > :is(.wp-block-embed__wrapper, audio) {
	border-radius: 14px;
	box-shadow: 0 0 0 4px rgba(43, 26, 16, 0.25);
}

:is(.wp-block-embed, .wp-block-audio).is-style-ouija .vault-embed {
	--ve-bg: #2b1a10;
	--ve-ink: #f6e7c8;
	--ve-soft: #e6d2ad;
	--ve-accent: #f2c879;
	--ve-radius: 14px;
	--ve-texture: url("../img/grain.svg");
	box-shadow: none;
}

/* ==========================================================================
   Vidéo : téléviseur, VHS, caméra de surveillance, pellicule, polaroïd, miroir
   (blocs Embed et Vidéo)
   ========================================================================== */

/* --- Téléviseur cathodique : caisse, écran bombé, lignes de balayage, boutons ------------- */

:is(.wp-block-embed, .wp-block-video).is-style-crt {
	grid-template-areas: "media" "foot" "caption";
	gap: 10px;
	padding: 18px 18px 12px;
	background:
		url("../img/grain.svg"),
		linear-gradient(160deg, #3a2a20, #24170f);
	background-blend-mode: multiply, normal;
	border-radius: 22px;
	box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.06), 0 18px 30px -14px rgba(0, 0, 0, 0.85);
}

:is(.wp-block-embed, .wp-block-video).is-style-crt > :is(.wp-block-embed__wrapper, video) {
	overflow: hidden;
	border-radius: 18px / 26px;
	box-shadow: 0 0 0 8px #120c08, 0 0 0 10px #4a3626, 0 0 24px 8px rgba(124, 244, 200, 0.18);
}

/* Lignes de balayage et reflet, par-dessus l’écran (sans bloquer les clics). */
:is(.wp-block-embed, .wp-block-video).is-style-crt::before {
	content: "";
	z-index: 2;
	grid-area: media;
	border-radius: 18px / 26px;
	background:
		radial-gradient(ellipse at 30% 20%, rgba(255, 255, 255, 0.12), transparent 45%),
		repeating-linear-gradient(transparent 0 2px, rgba(0, 0, 0, 0.16) 2px 3px);
	box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.55);
	pointer-events: none;
}

/* Boutons et grille du haut-parleur. */
:is(.wp-block-embed, .wp-block-video).is-style-crt::after {
	content: "";
	grid-area: foot;
	height: 26px;
	background:
		radial-gradient(circle at calc(100% - 14px) 50%, #c5bfe8 0 3px, #5a4636 3px 11px, transparent 12px),
		radial-gradient(circle at calc(100% - 44px) 50%, #c5bfe8 0 3px, #5a4636 3px 11px, transparent 12px),
		radial-gradient(circle at 12px 50%, var(--pink) 0 3px, transparent 4px),
		repeating-linear-gradient(90deg, #120c08 0 2px, transparent 2px 5px) 30px 6px / 40% 14px no-repeat;
}

:is(.wp-block-embed, .wp-block-video).is-style-crt > :is(figcaption, .wp-element-caption) {
	margin: 0;
	font-family: var(--font-type);
	font-size: 0.85rem;
	letter-spacing: 0.1em;
	text-align: center;
	text-transform: uppercase;
	color: #e6d2ad;
}

:is(.wp-block-embed, .wp-block-video).is-style-crt .vault-embed {
	--ve-bg: #0b1510;
	--ve-radius: 0;
	--ve-texture: radial-gradient(ellipse at center, rgba(124, 244, 200, 0.18), transparent 70%);
	box-shadow: none;
}

/* --- Cassette VHS : boîtier noir, étiquette manuscrite, affichage « PLAY » -------------- */

:is(.wp-block-embed, .wp-block-video).is-style-vhs {
	grid-template-areas: "caption" "media";
	gap: 12px;
	padding: 12px 14px 14px;
	background:
		repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.03) 0 1px, transparent 1px 4px),
		#121014;
	border-radius: 6px;
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07), 0 16px 26px -14px rgba(0, 0, 0, 0.85);
}

:is(.wp-block-embed, .wp-block-video).is-style-vhs > :is(figcaption, .wp-element-caption) {
	justify-self: center;
	width: min(100%, 420px);
	box-sizing: border-box;
	margin: 0;
	padding: 4px 14px 2px;
	font-size: 1.45rem;
	text-align: center;
	color: #2b2140;
	background:
		linear-gradient(90deg, #ff3dbe 0 6px, transparent 6px calc(100% - 6px), #4db8ff calc(100% - 6px)),
		#fbf8f1;
	border-radius: 2px;
	transform: rotate(-0.6deg);
}

:is(.wp-block-embed, .wp-block-video).is-style-vhs::after {
	content: "PLAY \25B8" / "";
	z-index: 2;
	grid-area: media;
	align-self: start;
	justify-self: start;
	margin: 12px 14px;
	font-family: var(--font-type);
	font-size: 1rem;
	letter-spacing: 0.1em;
	color: #fff;
	text-shadow: 2px 0 rgba(255, 61, 190, 0.7), -2px 0 rgba(77, 184, 255, 0.7);
	pointer-events: none;
}

/* Bandes de « tracking » qui défilent sur l’image. */
:is(.wp-block-embed, .wp-block-video).is-style-vhs::before {
	content: "";
	z-index: 2;
	grid-area: media;
	background: linear-gradient(transparent 0 46%, rgba(255, 255, 255, 0.08) 47% 49%, transparent 50%) 0 0 / 100% 300%;
	pointer-events: none;
	animation: vault-tracking 6s linear infinite;
}

:is(.wp-block-embed, .wp-block-video).is-style-vhs .vault-embed {
	--ve-bg: #0a0a12;
	--ve-accent: #4db8ff;
	--ve-radius: 2px;
	--ve-texture: repeating-linear-gradient(transparent 0 2px, rgba(255, 255, 255, 0.025) 2px 3px);
	box-shadow: none;
}

@keyframes vault-tracking {
	to { background-position: 0 300%; }
}

/* --- Caméra de surveillance : vision de nuit, coins de visée, « REC » clignotant -------- */

:is(.wp-block-embed, .wp-block-video).is-style-surveillance {
	grid-template-areas: "media" "caption";
	gap: 10px;
	padding: 10px;
	background: #050a08;
	box-shadow: 0 0 0 1px rgba(124, 244, 200, 0.5), 0 0 30px rgba(124, 244, 200, 0.22), 0 16px 26px -14px rgba(0, 0, 0, 0.8);
}

/* Coins de visée, par-dessus l’image. */
:is(.wp-block-embed, .wp-block-video).is-style-surveillance::before {
	content: "";
	z-index: 2;
	grid-area: media;
	margin: 10px;
	background:
		linear-gradient(var(--mint), var(--mint)) 0 0 / 22px 2px,
		linear-gradient(var(--mint), var(--mint)) 0 0 / 2px 22px,
		linear-gradient(var(--mint), var(--mint)) 100% 0 / 22px 2px,
		linear-gradient(var(--mint), var(--mint)) 100% 0 / 2px 22px,
		linear-gradient(var(--mint), var(--mint)) 0 100% / 22px 2px,
		linear-gradient(var(--mint), var(--mint)) 0 100% / 2px 22px,
		linear-gradient(var(--mint), var(--mint)) 100% 100% / 22px 2px,
		linear-gradient(var(--mint), var(--mint)) 100% 100% / 2px 22px;
	background-repeat: no-repeat;
	filter: drop-shadow(0 0 4px rgba(124, 244, 200, 0.8));
	pointer-events: none;
}

:is(.wp-block-embed, .wp-block-video).is-style-surveillance::after {
	content: "\25CF REC" / "";
	z-index: 3;
	grid-area: media;
	align-self: start;
	justify-self: end;
	margin: 18px 22px;
	font-family: var(--font-type);
	font-size: 0.8rem;
	letter-spacing: 0.14em;
	color: #ff4d6d;
	text-shadow: 0 0 6px rgba(255, 77, 109, 0.8);
	pointer-events: none;
	animation: vault-blink 1.6s steps(2, start) infinite;
}

:is(.wp-block-embed, .wp-block-video).is-style-surveillance > :is(figcaption, .wp-element-caption) {
	margin: 0;
	font-family: var(--font-type);
	font-size: 0.8rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--mint);
}

:is(.wp-block-embed, .wp-block-video).is-style-surveillance > :is(figcaption, .wp-element-caption)::before {
	content: "CAM 03 \00B7  " / "";
}

:is(.wp-block-embed, .wp-block-video).is-style-surveillance > video {
	filter: grayscale(1) sepia(0.6) hue-rotate(100deg) saturate(1.4) contrast(1.1);
}

:is(.wp-block-embed, .wp-block-video).is-style-surveillance .vault-embed {
	--ve-bg: #06120f;
	--ve-soft: #a8e6d1;
	--ve-radius: 0;
	--ve-texture: repeating-linear-gradient(transparent 0 2px, rgba(124, 244, 200, 0.06) 2px 3px);
	box-shadow: none;
}

/* --- Pellicule : bande noire et perforations, en haut et en bas ------------------------- */

:is(.wp-block-embed, .wp-block-video).is-style-film {
	grid-template-areas: "media" "caption";
	gap: 0;
	padding: 26px 0 0;
	background: #141014;
	box-shadow: 0 16px 26px -14px rgba(0, 0, 0, 0.85);
	transform: rotate(-0.4deg);
}

:is(.wp-block-embed, .wp-block-video).is-style-film::before,
:is(.wp-block-embed, .wp-block-video).is-style-film::after {
	content: "";
	position: absolute;
	z-index: 2;
	right: 0;
	left: 0;
	height: 26px;
	background: repeating-linear-gradient(90deg, transparent 0 9px, #f3ede1 9px 21px, transparent 21px 30px) 0 50% / 100% 12px no-repeat;
	opacity: 0.85;
	pointer-events: none;
}

:is(.wp-block-embed, .wp-block-video).is-style-film::before { top: 0; }
:is(.wp-block-embed, .wp-block-video).is-style-film::after { bottom: 0; }

:is(.wp-block-embed, .wp-block-video).is-style-film > :is(figcaption, .wp-element-caption) {
	margin: 0;
	padding: 6px 14px 32px;
	font-family: var(--font-type);
	font-size: 0.8rem;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: #e4d4ab;
}

:is(.wp-block-embed, .wp-block-video).is-style-film:not(:has(> :is(figcaption, .wp-element-caption))) {
	padding-bottom: 26px;
}

:is(.wp-block-embed, .wp-block-video).is-style-film .vault-embed {
	--ve-bg: #1e1612;
	--ve-accent: #f2c879;
	--ve-radius: 0;
	--ve-texture: url("../img/grain.svg");
	box-shadow: none;
}

/* --- Polaroïd : cadre blanc, marge épaisse en bas, légende au stylo -------------------- */

:is(.wp-block-embed, .wp-block-video).is-style-polaroid {
	grid-template-areas: "media" "caption";
	gap: 0;
	max-width: 640px;
	padding: 12px 12px 0;
	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(-1deg);
}

:is(.wp-block-embed, .wp-block-video).is-style-polaroid > :is(figcaption, .wp-element-caption) {
	min-height: 52px;
	margin: 0;
	padding: 10px 4px 8px;
	font-size: 1.5rem;
	text-align: center;
	color: #5b2fa8;
}

:is(.wp-block-embed, .wp-block-video).is-style-polaroid:not(:has(> :is(figcaption, .wp-element-caption)))::after {
	content: "";
	grid-area: caption;
	height: 52px;
}

:is(.wp-block-embed, .wp-block-video).is-style-polaroid .vault-embed {
	--ve-radius: 0;
}

:is(.wp-block-embed, .wp-block-video).is-style-polaroid .vault-embed.is-loaded iframe {
	border-radius: 0;
}

/* --- Miroir de divination : cadre orné, halo violet, lune et étoiles ------------------ */

:is(.wp-block-embed, .wp-block-video).is-style-mirror {
	grid-template-areas: "head" "media" "caption";
	gap: 8px;
	padding: 10px 22px 18px;
	background:
		radial-gradient(ellipse at 50% 0%, rgba(185, 123, 255, 0.3), transparent 60%),
		#120f22;
	border-radius: 48px 48px 14px 14px;
	box-shadow:
		inset 0 0 0 2px #b97bff,
		inset 0 0 0 7px #120f22,
		inset 0 0 0 8px rgba(185, 123, 255, 0.6),
		0 0 40px rgba(185, 123, 255, 0.3),
		0 16px 26px -14px rgba(0, 0, 0, 0.8);
}

:is(.wp-block-embed, .wp-block-video).is-style-mirror::before {
	content: "\263D  \2726  \263E" / "";
	grid-area: head;
	font-size: 1.1rem;
	letter-spacing: 0.4em;
	text-align: center;
	color: #b97bff;
	text-shadow: 0 0 10px rgba(185, 123, 255, 0.8);
}

:is(.wp-block-embed, .wp-block-video).is-style-mirror > :is(.wp-block-embed__wrapper, video) {
	overflow: hidden;
	border-radius: 30px 30px 8px 8px;
	box-shadow: 0 0 0 1px rgba(185, 123, 255, 0.6), 0 0 30px rgba(185, 123, 255, 0.35);
}

:is(.wp-block-embed, .wp-block-video).is-style-mirror > :is(figcaption, .wp-element-caption) {
	margin: 0;
	font-family: var(--font-occult);
	font-size: 1.15rem;
	font-style: italic;
	text-align: center;
	color: #c5bfe8;
}

:is(.wp-block-embed, .wp-block-video).is-style-mirror .vault-embed {
	--ve-accent: #b97bff;
	--ve-radius: 0;
	box-shadow: none;
}

/* ==========================================================================
   Fichier à télécharger : chemise, sachet à scellés, enveloppe, disquette, ticket, étiquette
   ========================================================================== */

.wp-block-file {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 16px;
	padding: 12px 14px;
	background: var(--paper);
	border-left: 3px solid var(--violet);
}

.wp-block-file > a:not(.wp-block-file__button) {
	overflow-wrap: anywhere;
}

.wp-block-file .wp-block-file__button {
	font-size: 0.85rem;
	padding: 6px 14px 4px;
}

.wp-block-file[class*="is-style-"]:not(.is-style-default) {
	position: relative;
	border-left: 0;
}

/* --- Chemise cartonnée, avec onglet ----------------------------------------------------- */

.wp-block-file.is-style-folder {
	margin-top: 2.2em;
	padding: 22px 22px 18px;
	background: url("../img/grain.svg"), var(--manila);
	background-blend-mode: multiply, normal;
	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-file.is-style-folder::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-file.is-style-folder > a:not(.wp-block-file__button) {
	font-family: var(--font-type);
	font-size: 1.05rem;
	color: var(--paper-ink);
}

/* --- Sachet à scellés : plastique, fermeture rouge, étiquette à remplir -------------------- */

.wp-block-file.is-style-evidence-bag {
	padding: 30px 18px 18px;
	background:
		linear-gradient(115deg, rgba(255, 255, 255, 0.5), transparent 30%, transparent 70%, rgba(255, 255, 255, 0.35)),
		rgba(197, 191, 232, 0.28);
	border: 1px solid rgba(43, 33, 64, 0.2);
	border-radius: 4px;
	box-shadow: 0 12px 20px -14px rgba(0, 0, 0, 0.5);
}

.wp-block-file.is-style-evidence-bag::before {
	content: "";
	position: absolute;
	top: 8px;
	right: 0;
	left: 0;
	height: 10px;
	background: repeating-linear-gradient(90deg, #a8126f 0 6px, #c9346f 6px 8px);
	opacity: 0.85;
}

.wp-block-file.is-style-evidence-bag > a:not(.wp-block-file__button) {
	flex: 1 1 12em;
	padding: 6px 12px 4px;
	font-family: var(--font-hand);
	font-size: 1.35rem;
	color: #5b2fa8;
	background:
		linear-gradient(#a8126f, #a8126f) 0 0 / 100% 4px no-repeat,
		repeating-linear-gradient(transparent 0 23px, #c9bfe0 23px 24px) 0 4px,
		#fbf8f1;
}

/* --- Enveloppe kraft, rabat et cachet de cire ---------------------------------------------- */

.wp-block-file.is-style-envelope {
	padding: 54px 22px 20px;
	background: url("../img/grain.svg"), #d9c39a;
	background-blend-mode: multiply, normal;
	box-shadow: 0 12px 22px -14px rgba(0, 0, 0, 0.55);
}

.wp-block-file.is-style-envelope::before {
	content: "";
	position: absolute;
	top: 0;
	right: 0;
	left: 0;
	height: 48px;
	background: linear-gradient(#c7ad7e, #b99a68);
	clip-path: polygon(0 0, 100% 0, 50% 100%);
}

.wp-block-file.is-style-envelope > a:not(.wp-block-file__button) {
	font-family: var(--font-hand);
	font-size: 1.5rem;
	color: #2b2140;
}

.wp-block-file.is-style-envelope .wp-block-file__button {
	border-radius: 50%;
	aspect-ratio: 1;
	display: inline-grid;
	place-items: center;
	padding: 6px;
	min-width: 4.6em;
	font-size: 0.72rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #fbf8f1;
	background: radial-gradient(circle at 35% 30%, #e0489a, #a8126f 60%, #6d0b48);
	border: 0;
	box-shadow: 0 0 0 4px rgba(168, 18, 111, 0.35), 0 4px 8px rgba(0, 0, 0, 0.35);
}

/* --- Disquette 3,5" : volet métallique, étiquette manuscrite ------------------------------- */

.wp-block-file.is-style-floppy {
	max-width: 420px;
	padding: 64px 18px 18px;
	color: #f0ecff;
	background: #1e1830;
	border-radius: 4px 14px 4px 4px;
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08), 0 14px 24px -14px rgba(0, 0, 0, 0.8);
}

.wp-block-file.is-style-floppy::before {
	content: "";
	position: absolute;
	top: 0;
	left: 22%;
	width: 52%;
	height: 48px;
	background:
		linear-gradient(90deg, transparent 0 62%, #2a2238 62% 80%, transparent 80%) 0 8px / 100% 30px no-repeat,
		linear-gradient(#d8d4e6, #a9a3bf);
	border-radius: 0 0 3px 3px;
}

.wp-block-file.is-style-floppy > a:not(.wp-block-file__button) {
	flex: 1 1 100%;
	padding: 8px 12px 4px;
	font-family: var(--font-hand);
	font-size: 1.35rem;
	color: #2b2140;
	background:
		linear-gradient(#4db8ff, #4db8ff) 0 0 / 100% 5px no-repeat,
		repeating-linear-gradient(transparent 0 23px, #c9bfe0 23px 24px) 0 5px,
		#fbf8f1;
	border-radius: 2px;
}

.wp-block-file.is-style-floppy .wp-block-file__button {
	color: #120f22;
	background: var(--mint);
	border-color: var(--mint);
}

/* --- Ticket : bords crantés, ligne de découpe ---------------------------------------------- */

.wp-block-file.is-style-ticket {
	padding: 18px 26px;
	color: #2b2140;
	background:
		linear-gradient(90deg, transparent calc(100% - 9.5em), rgba(43, 33, 64, 0.35) calc(100% - 9.5em) calc(100% - 9.5em + 1px), transparent 0),
		#f2c879;
	-webkit-mask:
		radial-gradient(circle at 0 50%, transparent 10px, #000 11px) left / 51% 100% no-repeat,
		radial-gradient(circle at 100% 50%, transparent 10px, #000 11px) right / 51% 100% no-repeat;
	mask:
		radial-gradient(circle at 0 50%, transparent 10px, #000 11px) left / 51% 100% no-repeat,
		radial-gradient(circle at 100% 50%, transparent 10px, #000 11px) right / 51% 100% no-repeat;
	filter: drop-shadow(0 8px 10px rgba(0, 0, 0, 0.3));
}

.wp-block-file.is-style-ticket > a:not(.wp-block-file__button) {
	flex: 1 1 10em;
	font-family: var(--font-type);
	font-size: 1rem;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #2b2140;
}

.wp-block-file.is-style-ticket .wp-block-file__button {
	color: #f2c879;
	background: #2b2140;
	border-color: #2b2140;
}

/* --- Étiquette de bagage : bout pointu, œillet ----------------------------------------------- */

.wp-block-file.is-style-tag {
	padding: 16px 22px 16px 54px;
	background: url("../img/grain.svg"), var(--manila);
	background-blend-mode: multiply, normal;
	clip-path: polygon(30px 0, 100% 0, 100% 100%, 30px 100%, 0 50%);
	filter: drop-shadow(0 8px 10px rgba(0, 0, 0, 0.3));
}

.wp-block-file.is-style-tag::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 22px;
	width: 14px;
	height: 14px;
	margin-top: -7px;
	background: var(--paper-white);
	border-radius: 50%;
	box-shadow: 0 0 0 3px #cdb98a, 0 0 0 4px rgba(43, 33, 64, 0.3);
}

.wp-block-file.is-style-tag > a:not(.wp-block-file__button) {
	font-family: var(--font-hand);
	font-size: 1.45rem;
	color: var(--pen);
}

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

@media (prefers-reduced-motion: reduce) {
	:is(.wp-block-embed, .wp-block-audio, .wp-block-video)[class*="is-style-"]::before,
	:is(.wp-block-embed, .wp-block-audio, .wp-block-video)[class*="is-style-"]::after,
	.vault-embed__play {
		animation: none;
		transition: none;
	}
}

@media (forced-colors: active) {
	.vault-embed {
		border: 1px solid CanvasText;
	}

	.wp-block-file.is-style-ticket {
		-webkit-mask: none;
		mask: none;
	}

	.wp-block-file.is-style-tag {
		clip-path: none;
	}
}
