/*
Theme Name: Dame de Trèfle
Theme URI: https://dame-de-trefle.com/
Author: Dame de Trèfle
Author URI: https://dame-de-trefle.com/mentions-legales/
Description: Thème sur mesure de Dame de Trèfle : tarot de Marseille, cartomancie, astrologie et arts divinatoires. « Cabinet de cartier à la tombée de la nuit » : papier vergé, encres de pochoir (vermillon, azur, ocre) et nuit d'encre bleu-noir ; cartes d'arcanes au format des lames, tirage gratuit interactif, dictionnaire A-Z. Classique (PHP), sans dépendance externe.
Version: 1.0.0
Requires at least: 6.5
Tested up to: 7.1
Requires PHP: 8.3
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: dametrefle
*/

/* ==========================================================================
   1. Jetons : palette du plan, typographie, rythme, motifs SVG
   ========================================================================== */

:root {
	/* Papier et encres (clair). */
	--bg: #F3ECDD;
	--surface: #FBF7EE;
	--surface-2: #F7F1E4;
	--text: #1D1A17;
	--muted: #5A5046;
	--accent: #9E2A1E;
	--accent-hover: #7E2016;
	--on-accent: #FBF7EE;
	--accent-2: #1E4A73;
	--ochre: #7A5A12;
	--sage: #3B6150;
	--line: #D9CDB6;
	--line-strong: #8A7D6B;

	/* Nuit (en-tête, pied de page, tirage). */
	--night: #141B26;
	--night-surface: #1D2735;
	--on-night: #EFE6D2;
	--on-night-muted: #C9BFAE;
	--gold: #D2AA4E;
	--gold-hover: #E5C77E;

	--focus: #1E4A73;
	--logo-ink: #1D1A17;
	--logo-clover: #1D1A17;

	/* Typographie : piles système du plan. */
	--font-heading: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", "URW Palladio L", P052, Georgia, serif;
	--font-body: Charter, "Bitstream Charter", "Sitka Text", Cambria, "Noto Serif", Georgia, serif;
	--font-ui: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

	--h1: clamp(2.05rem, 1.35rem + 2.9vw, 3.5rem);
	--h2: clamp(1.5rem, 1.18rem + 1.3vw, 2.05rem);
	--h3: clamp(1.2rem, 1.1rem + 0.45vw, 1.38rem);
	--measure: 66ch;

	/* Grille et rythme. */
	--wrap: 1200px;
	--gutter: clamp(16px, 4vw, 40px);
	--gap: clamp(14px, 2vw, 24px);
	--section: clamp(44px, 7vw, 92px);
	--radius-sm: 10px;
	--radius: 18px;
	--radius-lg: 28px;
	--shadow: 0 1px 0 rgba(29, 26, 23, 0.04), 0 16px 32px -24px rgba(29, 26, 23, 0.45);

	/* Motifs : hachures de gravure, papier vergé, « tarotage », étoile, trèfle. */
	--hatch: repeating-linear-gradient(-45deg, rgba(29, 26, 23, 0.075) 0 1px, transparent 1px 7px);
	--paper: repeating-linear-gradient(0deg, rgba(90, 80, 70, 0.028) 0 1px, transparent 1px 5px);
	--tarotage: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 28 28'%3E%3Cpath d='M0 14L14 0L28 14L14 28Z' fill='none' stroke='%23D2AA4E' stroke-opacity='.34' stroke-width='.8'/%3E%3Cpath d='M14 11.4l.8 2 2 .6-2 .6-.8 2-.8-2-2-.6 2-.6z' fill='%23D2AA4E' fill-opacity='.62'/%3E%3Ccircle cx='0' cy='0' r='1' fill='%23D2AA4E' fill-opacity='.45'/%3E%3Ccircle cx='28' cy='0' r='1' fill='%23D2AA4E' fill-opacity='.45'/%3E%3Ccircle cx='0' cy='28' r='1' fill='%23D2AA4E' fill-opacity='.45'/%3E%3Ccircle cx='28' cy='28' r='1' fill='%23D2AA4E' fill-opacity='.45'/%3E%3C/svg%3E");
	--mask-star: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 1l1.38 7.67 3.92-1.97-1.97 3.92L23 12l-7.67 1.38 1.97 3.92-3.92-1.97L12 23l-1.38-7.67-3.92 1.97 1.97-3.92L1 12l7.67-1.38L6.7 6.7l3.92 1.97z'/%3E%3C/svg%3E");
	--mask-trefle: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='7.2' r='4.3'/%3E%3Ccircle cx='7.3' cy='12.6' r='4.3'/%3E%3Ccircle cx='16.7' cy='12.6' r='4.3'/%3E%3Cpath d='M11.2 12c.2 4-.6 7-2.6 9.5h6.8c-2-2.5-2.8-5.5-2.6-9.5z'/%3E%3C/svg%3E");

	color-scheme: light dark;
}

/* Mode sombre automatique : la nuit gagne toute la page, contrastes AA vérifiés. */
@media (prefers-color-scheme: dark) {
	:root {
		--bg: #12171F;
		--surface: #1A212C;
		--surface-2: #161D27;
		--text: #EFE6D2;
		--muted: #B8AD9B;
		--accent: #F08C76;
		--accent-hover: #F5A592;
		--on-accent: #12171F;
		--accent-2: #8FBCE6;
		--ochre: #D9B45C;
		--sage: #8BC4A6;
		--line: #2E3846;
		--line-strong: #7D8796;
		--night: #0C1016;
		--night-surface: #161D27;
		--focus: #8FBCE6;
		--logo-ink: #EFE6D2;
		--logo-clover: #D2AA4E;
		--hatch: repeating-linear-gradient(-45deg, rgba(239, 230, 210, 0.06) 0 1px, transparent 1px 7px);
		--paper: none;
		--shadow: 0 16px 32px -24px rgba(0, 0, 0, 0.8);
	}
}

/* Zones de nuit : les jetons basculent, les composants suivent. */
.on-night {
	--bg: var(--night);
	--surface: var(--night-surface);
	--surface-2: var(--night-surface);
	--text: var(--on-night);
	--muted: var(--on-night-muted);
	--accent: var(--gold);
	--accent-hover: var(--gold-hover);
	--on-accent: #141B26;
	--accent-2: var(--gold);
	--ochre: var(--gold);
	--sage: #8BC4A6; /* 7,6:1 sur night_surface (le vert du plan tomberait à 2,2:1 la nuit). */
	--line: rgba(239, 230, 210, 0.16);
	--line-strong: #8B8577;
	--focus: var(--gold);
	--logo-ink: var(--on-night);
	--logo-clover: var(--gold);
	--hatch: repeating-linear-gradient(-45deg, rgba(210, 170, 78, 0.08) 0 1px, transparent 1px 7px);
	background-color: var(--night);
	color: var(--on-night);
}

/* Face de carte : toujours sur papier, même la nuit. */
.paper {
	--bg: #F3ECDD;
	--surface: #FBF7EE;
	--text: #1D1A17;
	--muted: #5A5046;
	--accent: #9E2A1E;
	--accent-2: #1E4A73;
	--ochre: #7A5A12;
	--sage: #3B6150;
	--line: #D9CDB6;
	--focus: #1E4A73;
	color: var(--text);
	background-color: var(--surface);
}

/* Couleur de pochoir par élément (liserés, symboles). */
.el-feu { --el: var(--accent); }
.el-eau { --el: var(--accent-2); }
.el-air { --el: var(--ochre); }
.el-terre { --el: var(--sage); }
.el-aucun { --el: var(--text); }

/* ==========================================================================
   2. Base
   ========================================================================== */

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

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: 1rem;
}

body {
	margin: 0;
	min-height: 100vh;
	background-color: var(--bg);
	background-image: var(--paper);
	color: var(--text);
	font-family: var(--font-body);
	font-size: 1.0625rem;
	line-height: 1.6;
	font-kerning: normal;
	font-variant-ligatures: common-ligatures;
	text-rendering: optimizeLegibility;
	overflow-x: hidden;
}

@supports (overflow-x: clip) {
	body {
		overflow-x: clip;
	}
}

img,
svg,
video {
	max-width: 100%;
}

img {
	height: auto;
}

h1,
h2,
h3,
h4 {
	font-family: var(--font-heading);
	font-weight: 600;
	line-height: 1.2;
	color: var(--text);
	text-wrap: balance;
	overflow-wrap: break-word;
}

p,
li,
dd {
	text-wrap: pretty;
}

a {
	color: var(--accent-2);
	text-decoration-thickness: 1px;
	text-underline-offset: 0.18em;
}

a:hover {
	color: var(--accent);
	text-decoration-thickness: 2px;
}

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

[hidden] {
	display: none !important;
}

button,
input,
select,
textarea {
	font: inherit;
	color: inherit;
}

sup {
	line-height: 0;
}

::selection {
	background: rgba(210, 170, 78, 0.38);
	color: inherit;
}

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}

.skip-link {
	position: absolute;
	left: 16px;
	top: -100px;
	z-index: 100;
	padding: 0.75rem 1.1rem;
	border-radius: 999px;
	background: var(--gold);
	color: #141B26;
	font-family: var(--font-ui);
	font-weight: 700;
	text-decoration: none;
}

.skip-link:focus {
	top: 12px;
	outline: 3px solid #141B26;
}

.sprite {
	position: absolute;
	width: 0;
	height: 0;
	overflow: hidden;
}

.icon {
	display: inline-block;
	width: 1em;
	height: 1em;
	flex: none;
	vertical-align: -0.125em;
}

.wrap {
	width: min(100% - 2 * var(--gutter), var(--wrap));
	margin-inline: auto;
}

.site-main {
	display: block;
	outline: none;
}

.roman {
	font-family: var(--font-heading);
	font-variant-caps: all-small-caps;
	letter-spacing: 0.08em;
}

.smallcaps {
	font-family: var(--font-ui);
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.kicker {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	margin: 0 0 0.6rem;
	font-family: var(--font-ui);
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--muted);
}

.kicker__icon {
	width: 0.95rem;
	height: 0.95rem;
	color: var(--accent);
}

.kicker--night {
	color: var(--gold);
}

/* ==========================================================================
   3. Boutons, liens fléchés, pastilles
   ========================================================================== */

.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	min-height: 48px;
	padding: 0.8rem 1.4rem;
	border: 1.5px solid transparent;
	border-radius: 999px;
	font-family: var(--font-ui);
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.button:hover {
	text-decoration: none;
	transform: translateY(-1px);
}

.button--accent {
	background: var(--accent);
	color: var(--on-accent);
}

.button--accent:hover {
	background: var(--accent-hover);
	color: var(--on-accent);
}

.button--outline {
	border-color: var(--text);
	color: var(--text);
	background: transparent;
}

.button--outline:hover {
	background: var(--text);
	color: var(--bg);
}

.button--gold {
	background: var(--gold);
	color: #141B26;
}

.button--gold:hover {
	background: var(--gold-hover);
	color: #141B26;
}

.button--ghost {
	border-color: rgba(210, 170, 78, 0.6);
	background: transparent;
	color: var(--on-night);
}

.button--ghost:hover {
	background: rgba(210, 170, 78, 0.14);
	color: var(--on-night);
}

.link-arrow {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	font-family: var(--font-ui);
	font-size: 0.95rem;
	font-weight: 600;
	color: var(--accent-2);
	text-decoration: none;
}

.link-arrow:hover {
	color: var(--accent);
	text-decoration: underline;
}

.link-arrow__icon {
	width: 1.1em;
	height: 1.1em;
	transition: transform 0.2s ease;
}

.link-arrow:hover .link-arrow__icon {
	transform: translateX(3px);
}

.badge {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	padding: 0.32rem 0.7rem;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: var(--surface);
	color: var(--muted);
	font-family: var(--font-ui);
	font-size: 0.78rem;
	font-weight: 600;
	letter-spacing: 0.02em;
	line-height: 1.2;
	text-decoration: none;
}

a.badge:hover {
	border-color: var(--text);
	color: var(--text);
	text-decoration: none;
}

.badge__icon {
	width: 1rem;
	height: 1rem;
	color: var(--accent);
}

.badge--domaine {
	border-color: var(--ochre);
	color: var(--text);
}

.level {
	display: inline-flex;
	gap: 3px;
}

.level__dot {
	width: 7px;
	height: 7px;
	border: 1px solid var(--accent-2);
	border-radius: 50%;
}

.level__dot.is-on {
	background: var(--accent-2);
}

/* Pastilles de mots-clés : bordure azur à l'endroit, vermillon à l'envers. */
.chips {
	display: flex;
	flex-wrap: wrap;
	gap: 0.45rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.chips li {
	display: inline-flex;
	align-items: center;
	gap: 0.45em;
	padding: 0.34rem 0.8rem;
	border: 1.5px solid var(--accent-2);
	border-radius: 999px;
	background: var(--surface);
	color: var(--text);
	font-family: var(--font-ui);
	font-size: 0.9rem;
	line-height: 1.25;
}

.chips--endroit li::before,
.chips--envers li::before {
	content: "";
	width: 0.55em;
	height: 0.5em;
	flex: none;
	background: var(--accent-2);
	clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

.chips--envers li {
	border-color: var(--accent);
}

.chips--envers li::before {
	background: var(--accent);
	clip-path: polygon(0 0, 100% 0, 50% 100%);
}

.chips--small li {
	padding: 0.22rem 0.6rem;
	font-size: 0.78rem;
}

.chips--links li {
	padding: 0;
	border: 0;
	background: none;
}

.chips--links a {
	display: inline-block;
	padding: 0.4rem 0.9rem;
	border: 1.5px solid var(--ochre);
	border-radius: 999px;
	background: var(--surface);
	color: var(--text);
	font-family: var(--font-ui);
	font-size: 0.92rem;
	font-weight: 600;
	text-decoration: none;
}

.chips--links a:hover {
	background: var(--text);
	border-color: var(--text);
	color: var(--bg);
}

/* ==========================================================================
   4. En-tête (nuit), logo, menu, recherche
   ========================================================================== */

.site-header {
	position: relative;
	z-index: 20;
	border-bottom: 1px solid rgba(210, 170, 78, 0.28);
}

.site-header__inner {
	position: relative;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem 1.25rem;
	min-height: 76px;
	padding-block: 0.75rem;
}

.site-header__brand {
	display: inline-flex;
	color: var(--on-night);
	text-decoration: none;
	margin-right: auto;
}

.site-header__brand:hover {
	color: var(--on-night);
}

.logo {
	display: inline-flex;
	align-items: center;
	gap: 0.7rem;
}

.logo__mark {
	width: 30px;
	height: 42px;
	flex: none;
}

.logo__card {
	fill: none;
	stroke: var(--logo-ink);
	stroke-width: 1.5;
}

.logo__frame {
	fill: none;
	stroke: var(--logo-clover);
	stroke-width: 0.6;
	opacity: 0.65;
}

.logo__index {
	fill: var(--logo-ink);
}

.logo__index text {
	font-family: var(--font-heading);
	font-size: 9.5px;
	font-weight: 600;
}

.logo__clover {
	fill: var(--logo-clover);
}

.logo__word {
	font-family: var(--font-heading);
	font-size: 1.45rem;
	font-weight: 600;
	letter-spacing: 0.01em;
	line-height: 1;
	white-space: nowrap;
}

.logo__word em {
	margin-inline: 0.06em;
	font-size: 0.72em;
	font-weight: 400;
	color: var(--logo-clover);
}

.site-header .logo:hover .logo__clover {
	fill: var(--gold-hover);
}

.nav-toggle {
	display: none;
	align-items: center;
	gap: 0.45rem;
	min-height: 44px;
	padding: 0.4rem 0.9rem;
	border: 1px solid rgba(210, 170, 78, 0.55);
	border-radius: 999px;
	background: transparent;
	color: var(--on-night);
	font-family: var(--font-ui);
	font-size: 0.92rem;
	font-weight: 600;
	cursor: pointer;
}

.nav-toggle .icon {
	width: 1.2rem;
	height: 1.2rem;
	color: var(--gold);
}

.nav-toggle__close {
	display: none;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__open {
	display: none;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__close {
	display: inline-block;
}

.site-nav__list {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.15rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-nav__list a {
	position: relative;
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 0.45rem 0.75rem;
	border-radius: 999px;
	color: var(--on-night-muted);
	font-family: var(--font-ui);
	font-size: 0.95rem;
	font-weight: 500;
	text-decoration: none;
	white-space: nowrap;
}

.site-nav__list a:hover {
	color: var(--on-night);
	background: rgba(239, 230, 210, 0.07);
}

.site-nav__list a[aria-current="page"],
.site-nav__list .current-menu-item > a,
.site-nav__list .is-section > a {
	color: var(--on-night);
}

.site-nav__list a[aria-current="page"]::after,
.site-nav__list .current-menu-item > a::after,
.site-nav__list .is-section > a::after {
	content: "";
	position: absolute;
	left: 0.75rem;
	right: 0.75rem;
	bottom: 0.35rem;
	height: 2px;
	border-radius: 2px;
	background: var(--gold);
}

.site-nav__list .menu-item--tirage > a {
	margin-right: 0.35rem;
	border: 1px solid var(--gold);
	color: var(--gold);
	font-weight: 600;
}

.site-nav__list .menu-item--tirage > a:hover,
.site-nav__list .menu-item--tirage > a[aria-current="page"] {
	background: var(--gold);
	color: #141B26;
}

.site-nav__list .menu-item--tirage > a::after {
	display: none;
}

.search-toggle {
	position: static;
}

.search-toggle__button {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border: 1px solid rgba(239, 230, 210, 0.22);
	border-radius: 50%;
	color: var(--on-night);
	cursor: pointer;
	list-style: none;
}

.search-toggle__button::-webkit-details-marker {
	display: none;
}

.search-toggle__button:hover,
.search-toggle[open] .search-toggle__button {
	border-color: var(--gold);
	color: var(--gold);
}

.search-toggle__button .icon {
	width: 1.15rem;
	height: 1.15rem;
}

.search-toggle__panel {
	position: absolute;
	right: 0;
	top: calc(100% + 0.25rem);
	z-index: 30;
	width: min(440px, 100%);
	padding: 1.1rem 1.2rem 1.25rem;
	border: 1px solid rgba(210, 170, 78, 0.35);
	border-radius: var(--radius);
	background: var(--night-surface);
	box-shadow: 0 24px 48px -24px rgba(0, 0, 0, 0.7);
}

/* Menu de bureau resserré : les sept entrées tiennent sur la ligne du logo dès 1200 px
   (conteneur de 1120 px), sans passer à la ligne. */
@media (min-width: 1200px) and (max-width: 1359px) {
	.site-header__inner {
		column-gap: 0.9rem;
	}

	.site-nav__list a {
		padding-inline: 0.6rem;
		font-size: 0.92rem;
	}

	.site-nav__list a[aria-current="page"]::after,
	.site-nav__list .current-menu-item > a::after,
	.site-nav__list .is-section > a::after {
		left: 0.6rem;
		right: 0.6rem;
	}
}

/* Menu mobile (sans bibliothèque) : bouton + panneau ; sans JS, le menu reste visible. */
@media (max-width: 1199px) {
	.js .nav-toggle {
		display: inline-flex;
	}

	.site-nav {
		order: 10;
		flex-basis: 100%;
	}

	.js .site-nav {
		display: none;
	}

	.js .site-nav.is-open {
		display: block;
		padding: 0.5rem 0 0.75rem;
		border-top: 1px solid rgba(239, 230, 210, 0.14);
	}

	.js .site-nav.is-open .site-nav__list {
		flex-direction: column;
		align-items: stretch;
		gap: 0.2rem;
	}

	.js .site-nav.is-open .site-nav__list a {
		display: flex;
		padding: 0.7rem 0.9rem;
		font-size: 1.05rem;
	}

	.js .site-nav.is-open .menu-item--tirage > a {
		justify-content: center;
		margin: 0 0 0.4rem;
	}

	.site-nav__list a[aria-current="page"]::after,
	.site-nav__list .current-menu-item > a::after,
	.site-nav__list .is-section > a::after {
		left: 0.9rem;
		right: auto;
		width: 1.6rem;
	}
}

@media (max-width: 420px) {
	.logo__word {
		font-size: 1.22rem;
	}

	/* Libellé masqué visuellement mais gardé comme nom accessible du bouton. */
	.nav-toggle__label {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(1px, 1px, 1px, 1px);
		clip-path: inset(50%);
		white-space: nowrap;
	}

	.nav-toggle {
		position: relative;
		padding-inline: 0.7rem;
	}

	.site-header__inner {
		gap: 0.6rem;
	}
}

/* ==========================================================================
   5. Formulaire de recherche
   ========================================================================== */

.search-form__label {
	display: block;
	margin-bottom: 0.45rem;
	font-family: var(--font-ui);
	font-size: 0.85rem;
	color: var(--muted);
}

.search-toggle__panel .search-form__label {
	color: var(--on-night-muted);
}

.search-form__row {
	display: flex;
	gap: 0.5rem;
}

.search-form__input {
	flex: 1;
	min-width: 0;
	min-height: 48px;
	padding: 0.7rem 1rem;
	border: 1px solid var(--line-strong);
	border-radius: 999px;
	background: var(--surface);
	color: var(--text);
	font-family: var(--font-ui);
	font-size: 1rem;
}

.search-toggle__panel .search-form__input {
	border-color: #8B8577;
	background: var(--night);
	color: var(--on-night);
}

.search-form__input::placeholder {
	color: var(--muted);
	opacity: 1;
}

.search-toggle__panel .search-form__input::placeholder {
	color: var(--on-night-muted);
}

.search-form__submit {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	min-height: 48px;
	padding: 0 1.1rem;
	border: 0;
	border-radius: 999px;
	background: var(--accent);
	color: var(--on-accent);
	font-family: var(--font-ui);
	font-weight: 600;
	cursor: pointer;
}

.search-toggle__panel .search-form__submit {
	background: var(--gold);
	color: #141B26;
}

.search-form__submit:hover {
	background: var(--accent-hover);
}

.search-toggle__panel .search-form__submit:hover {
	background: var(--gold-hover);
}

@media (max-width: 480px) {
	.search-form__submit-label {
		position: absolute;
		width: 1px;
		height: 1px;
		overflow: hidden;
		clip: rect(1px, 1px, 1px, 1px);
		clip-path: inset(50%);
		white-space: nowrap;
	}
}

/* ==========================================================================
   6. Fil d'Ariane, en-têtes de contenus et d'archives
   ========================================================================== */

.breadcrumb ol {
	display: flex;
	flex-wrap: wrap;
	gap: 0.15rem 0;
	margin: 0 0 1rem;
	padding: 0;
	list-style: none;
	font-family: var(--font-ui);
	font-size: 0.82rem;
	color: var(--muted);
}

.breadcrumb li + li::before {
	content: "›";
	margin-inline: 0.5rem;
	color: var(--line-strong);
}

.breadcrumb a {
	color: var(--muted);
	text-decoration: none;
}

.breadcrumb a:hover {
	color: var(--accent);
	text-decoration: underline;
}

.breadcrumb [aria-current="page"] {
	color: var(--text);
}

/* Bandeau hachuré (gravure sur bois) : les hachures se fondent vers le texte. */
.hatched {
	position: relative;
	isolation: isolate;
}

.hatched::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: var(--hatch);
	-webkit-mask-image: linear-gradient(100deg, transparent 32%, #000 92%);
	mask-image: linear-gradient(100deg, transparent 32%, #000 92%);
	pointer-events: none;
}

.entry-head,
.archive-head {
	position: relative;
	overflow: hidden;
	padding-block: clamp(22px, 4.5vw, 52px) clamp(28px, 5vw, 60px);
	border-bottom: 1px solid var(--line);
}

.entry-head__inner,
.archive-head__inner {
	position: relative;
	z-index: 1;
}

.entry-head__inner > *:not(.breadcrumb),
.archive-head__inner > *:not(.breadcrumb):not(.legend) {
	max-width: 54rem;
}

.entry-head__badges {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin: 0 0 0.4rem;
}

.entry-title,
.archive-title {
	margin: 0.35rem 0 0.9rem;
	font-size: var(--h1);
	font-weight: 600;
	line-height: 1.07;
	letter-spacing: -0.01em;
}

.title__main {
	display: block;
}

.title__sub {
	display: block;
	margin-top: 0.4em;
	font-size: max(0.48em, 1.05rem);
	font-style: italic;
	font-weight: 400;
	line-height: 1.3;
	letter-spacing: 0;
	color: var(--muted);
}

.chapo {
	max-width: 62ch;
	margin: 0 0 1rem;
	font-family: var(--font-body);
	font-size: 1.2rem;
	font-style: italic;
	line-height: 1.6;
	color: var(--text);
}

.chapo--flow {
	margin-bottom: 1.6rem;
	padding-left: 1rem;
	border-left: 2px solid var(--accent);
}

.entry-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem 0;
	margin: 0;
	font-family: var(--font-ui);
	font-size: 0.85rem;
	color: var(--muted);
}

.entry-meta span + span::before {
	content: "·";
	margin-inline: 0.55rem;
}

.entry-head__watermark {
	position: absolute;
	right: var(--gutter);
	top: 50%;
	width: clamp(150px, 17vw, 230px);
	height: clamp(150px, 17vw, 230px);
	color: var(--accent);
	opacity: 0.13;
	transform: translateY(-50%);
	pointer-events: none;
}

.entry-head__letter {
	position: absolute;
	right: var(--gutter);
	top: 50%;
	font-family: var(--font-heading);
	font-size: clamp(8rem, 17vw, 15rem);
	font-weight: 600;
	line-height: 1;
	color: var(--accent);
	opacity: 0.11;
	transform: translateY(-50%);
	pointer-events: none;
}

@media (max-width: 899px) {
	.entry-head__watermark,
	.entry-head__letter {
		display: none;
	}
}

.archive-intro {
	font-size: 1.1rem;
	line-height: 1.65;
}

.archive-intro p {
	margin: 0 0 0.8rem;
}

.archive-intro__count {
	font-family: var(--font-ui);
	font-size: 0.92rem;
	color: var(--muted);
}

.archive-intro__count strong {
	font-family: var(--font-heading);
	font-size: 1.15rem;
	color: var(--accent);
}

.archive-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6rem 1.6rem;
	margin: 1.2rem 0 0;
	padding: 0;
	list-style: none;
}

.archive-head__grid {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: var(--gap);
	align-items: center;
}

.archive-head__picto {
	display: grid;
	place-items: center;
	width: clamp(130px, 15vw, 196px);
	aspect-ratio: 1;
	border: 1px solid var(--line);
	border-radius: 50%;
	background: var(--surface);
	box-shadow: inset 0 0 0 8px var(--surface), inset 0 0 0 9px var(--line);
}

.archive-head__icon {
	width: 54%;
	height: 54%;
	color: var(--accent);
}

.archive-head__search {
	max-width: 36rem;
	margin-top: 1rem;
}

@media (max-width: 719px) {
	.archive-head__grid {
		grid-template-columns: 1fr;
	}

	.archive-head__picto {
		display: none;
	}
}

.legend {
	margin-top: 1.6rem;
	padding-top: 1.2rem;
	border-top: 1px dashed var(--line-strong);
}

.legend__note {
	max-width: 72ch;
	margin: 0 0 0.7rem;
	font-family: var(--font-ui);
	font-size: 0.85rem;
	color: var(--muted);
}

.legend__list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1.3rem;
	margin: 0;
	padding: 0;
	list-style: none;
	font-family: var(--font-ui);
	font-size: 0.85rem;
}

.legend__item {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
}

.legend__icon {
	width: 1.1rem;
	height: 1.1rem;
	color: var(--el);
}

/* ==========================================================================
   7. Corps de lecture : sommaire et prose (mesure 66 caractères)
   ========================================================================== */

.entry-wrap {
	padding-block: clamp(28px, 5vw, 56px) 0;
}

.entry-layout {
	display: grid;
	gap: clamp(24px, 4vw, 56px);
}

.entry-layout__main {
	min-width: 0;
	max-width: 46rem;
}

@media (min-width: 1024px) {
	.entry-layout.has-toc {
		grid-template-columns: 15rem minmax(0, 1fr);
	}

	.entry-layout__aside {
		position: sticky;
		top: 1.5rem;
		align-self: start;
		max-height: calc(100vh - 3rem);
		overflow-y: auto;
	}
}

.toc {
	font-family: var(--font-ui);
	font-size: 0.92rem;
}

.toc__details {
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--surface);
}

.toc__summary {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 0.9rem 1.1rem;
	cursor: pointer;
	list-style: none;
}

.toc__summary::-webkit-details-marker {
	display: none;
}

.toc__title {
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.toc__count {
	font-size: 0.8rem;
	color: var(--muted);
}

.toc__summary::after {
	content: "";
	width: 0.55rem;
	height: 0.55rem;
	margin-left: auto;
	border-right: 1.5px solid currentColor;
	border-bottom: 1.5px solid currentColor;
	transform: rotate(45deg) translateY(-2px);
	transition: transform 0.2s ease;
}

.toc__details[open] .toc__summary::after {
	transform: rotate(-135deg) translateY(-2px);
}

.toc__list {
	margin: 0 1.1rem 1rem;
	padding: 0;
	list-style: none;
	border-left: 1px solid var(--line);
}

.toc__list a {
	position: relative;
	display: block;
	padding: 0.42rem 0 0.42rem 0.95rem;
	color: var(--muted);
	line-height: 1.35;
	text-decoration: none;
}

.toc__list a:hover {
	color: var(--text);
	text-decoration: underline;
}

.toc__list a.is-active {
	color: var(--text);
	font-weight: 600;
}

/* Marqueur de sommaire : l'étoile à huit branches. */
.toc__list a.is-active::before {
	content: "";
	position: absolute;
	left: -0.42rem;
	top: 0.62rem;
	width: 0.8rem;
	height: 0.8rem;
	background: var(--accent);
	-webkit-mask: var(--mask-star) center / contain no-repeat;
	mask: var(--mask-star) center / contain no-repeat;
}

.prose {
	max-width: var(--measure);
	font-family: var(--font-body);
	font-size: 1.125rem;
	line-height: 1.7;
	color: var(--text);
	overflow-wrap: break-word;
	hyphens: auto;
}

.prose > * {
	margin-block: 0;
}

.prose > * + * {
	margin-top: 1.1em;
}

.prose h2 {
	position: relative;
	margin-top: 2.3em;
	padding-top: 1rem;
	font-size: var(--h2);
	line-height: 1.18;
	scroll-margin-top: 1.5rem;
	hyphens: manual;
}

/* H2 : petit filet vermillon et étoile. */
.prose h2::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0;
	width: 2.6rem;
	height: 2px;
	background: var(--accent);
}

.prose h2::after {
	content: "";
	position: absolute;
	left: 3rem;
	top: -5px;
	width: 12px;
	height: 12px;
	background: var(--accent);
	-webkit-mask: var(--mask-star) center / contain no-repeat;
	mask: var(--mask-star) center / contain no-repeat;
}

.prose h2 + * {
	margin-top: 0.7em;
}

.prose h3 {
	margin-top: 1.9em;
	font-size: var(--h3);
	scroll-margin-top: 1.5rem;
	hyphens: manual;
}

.prose h3 + * {
	margin-top: 0.5em;
}

.prose > :first-child {
	margin-top: 0;
}

.prose ul,
.prose ol {
	padding-left: 1.6em;
}

.prose li + li {
	margin-top: 0.4em;
}

.prose ul {
	list-style: none;
	padding-left: 1.5em;
}

.prose ul > li {
	position: relative;
}

/* Puces : étoile à huit branches. */
.prose ul > li::before {
	content: "";
	position: absolute;
	left: -1.25em;
	top: 0.5em;
	width: 0.7em;
	height: 0.7em;
	background: var(--accent);
	-webkit-mask: var(--mask-star) center / contain no-repeat;
	mask: var(--mask-star) center / contain no-repeat;
}

.prose ol > li::marker {
	font-family: var(--font-heading);
	font-weight: 600;
	color: var(--accent);
}

.prose a {
	color: var(--accent-2);
}

.prose a:hover {
	color: var(--accent);
}

.prose strong {
	font-weight: 700;
}

.prose blockquote {
	margin-inline: 0;
	padding: 0.2rem 0 0.2rem 1.2rem;
	border-left: 3px solid var(--gold);
	font-style: italic;
	color: var(--muted);
}

/* Lettrine des guides et des fiches (jamais sur la mention d'affiliation insérée en tête). */
.entry--guide .prose > p:first-child:not(.lma-affiliation)::first-letter,
.entry--arcane .prose > p:first-child:not(.lma-affiliation)::first-letter,
.entry--guide .prose > .lma-affiliation:first-child + p::first-letter,
.entry--arcane .prose > .lma-affiliation:first-child + p::first-letter {
	float: left;
	margin: 0.06em 0.12em 0 0;
	font-family: var(--font-heading);
	font-size: 3.5em;
	font-weight: 600;
	line-height: 0.86;
	color: var(--accent);
}

.table-scroll {
	max-width: 100%;
	overflow-x: auto;
	border: 1px solid var(--line);
	border-radius: var(--radius-sm);
	background: var(--surface);
	-webkit-overflow-scrolling: touch;
}

.prose table {
	width: 100%;
	min-width: 32rem;
	border-collapse: collapse;
	font-family: var(--font-ui);
	font-size: 0.93rem;
	line-height: 1.45;
	hyphens: manual;
}

.prose th,
.prose td {
	padding: 0.65rem 0.85rem;
	border-bottom: 1px solid var(--line);
	text-align: left;
	vertical-align: top;
}

.prose th {
	background: var(--surface-2);
	font-weight: 700;
}

.prose tbody tr:last-child td {
	border-bottom: 0;
}

.prose tbody tr:nth-child(even) td {
	background: rgba(217, 205, 182, 0.18);
}

.prose--intro:empty {
	display: none;
}

.page-links {
	margin-top: 2rem;
	font-family: var(--font-ui);
}

/* ==========================================================================
   8. Encadrés : L'essentiel, FAQ, sources, avertissement, question
   ========================================================================== */

@counter-style marseille {
	system: additive;
	additive-symbols: 10 X, 5 V, 1 I;
	suffix: " ";
	fallback: upper-roman;
}

.essentiel {
	margin: 0 0 2.2rem;
	padding: 1.35rem 1.5rem 1.4rem;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--surface);
	box-shadow: var(--shadow);
}

.essentiel__title {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	margin: 0 0 0.8rem;
	font-family: var(--font-ui);
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--accent);
}

.essentiel__icon {
	width: 1rem;
	height: 1rem;
}

.essentiel__list {
	display: grid;
	gap: 0.65rem;
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: essentiel;
}

.essentiel__list li {
	position: relative;
	padding-left: 3rem;
	font-size: 1.02rem;
	line-height: 1.55;
	counter-increment: essentiel;
}

.essentiel__list li::before {
	content: counter(essentiel, marseille);
	position: absolute;
	left: 0;
	top: 0.05em;
	min-width: 2.4rem;
	font-family: var(--font-heading);
	font-variant-caps: all-small-caps;
	letter-spacing: 0.08em;
	color: var(--accent);
}

.faq {
	margin-top: 3rem;
}

.section-title {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	margin: 0;
	font-size: var(--h2);
	line-height: 1.15;
}

.section-title__icon {
	width: 1.35rem;
	height: 1.35rem;
	color: var(--accent);
}

.section-title--quiet {
	margin: 0 0 1rem;
	font-family: var(--font-ui);
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--muted);
}

.faq .section-title {
	margin-bottom: 1rem;
}

.faq__list {
	border-top: 1px solid var(--line);
}

.faq__item {
	border-bottom: 1px solid var(--line);
}

.faq__question {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 1rem;
	padding: 1.05rem 0.2rem;
	font-family: var(--font-heading);
	font-size: 1.16rem;
	font-weight: 600;
	line-height: 1.35;
	cursor: pointer;
	list-style: none;
}

.faq__question::-webkit-details-marker {
	display: none;
}

.faq__question:hover {
	color: var(--accent);
}

.faq__icon {
	width: 1rem;
	height: 1rem;
	margin-top: 0.3rem;
	color: var(--accent);
	transition: transform 0.3s ease;
}

.faq__item[open] .faq__icon {
	transform: rotate(45deg);
}

.faq__answer {
	padding: 0 0.2rem 1.2rem;
	font-size: 1.05rem;
	line-height: 1.65;
	color: var(--text);
}

.faq__answer p {
	margin: 0;
	max-width: var(--measure);
}

.sources {
	margin-top: 2.6rem;
	padding-top: 1.4rem;
	border-top: 1px solid var(--line);
	font-family: var(--font-ui);
	font-size: 0.9rem;
}

.sources__title {
	margin: 0 0 0.8rem;
	font-family: var(--font-ui);
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--muted);
}

.sources__list {
	display: grid;
	gap: 0.45rem;
	margin: 0;
	padding-left: 1.4rem;
}

.sources__list li::marker {
	color: var(--muted);
}

.sources__domain {
	margin-left: 0.4rem;
	font-size: 0.78rem;
	letter-spacing: 0.04em;
	color: var(--muted);
}

.disclaimer {
	display: flex;
	align-items: flex-start;
	gap: 0.9rem;
	margin-top: 2.6rem;
	padding: 1rem 1.2rem;
	border: 1px solid var(--line);
	border-radius: var(--radius-sm);
	font-family: var(--font-ui);
	font-size: 0.88rem;
	line-height: 1.55;
	color: var(--muted);
}

.disclaimer p {
	margin: 0;
}

.disclaimer strong {
	color: var(--text);
}

.disclaimer__icon {
	width: 1.5rem;
	height: 1.5rem;
	margin-top: 0.1rem;
	color: var(--ochre);
}

/* Question de réflexion : bloc final sur fond nuit. */
.question {
	position: relative;
	isolation: isolate;
	margin-top: 3rem;
	padding: clamp(1.8rem, 4vw, 2.8rem) clamp(1.4rem, 4vw, 2.6rem);
	border-radius: var(--radius-lg);
	text-align: center;
	overflow: hidden;
}

.question__star {
	width: 1.6rem;
	height: 1.6rem;
	color: var(--gold);
}

.question__label {
	margin: 0.6rem 0 0.7rem;
	font-family: var(--font-ui);
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--gold);
}

.question__card {
	font-weight: 500;
	letter-spacing: 0.08em;
	color: var(--on-night-muted);
}

.question__text {
	max-width: 34ch;
	margin: 0 auto;
	font-family: var(--font-heading);
	font-size: clamp(1.35rem, 1.15rem + 0.9vw, 1.75rem);
	font-style: italic;
	line-height: 1.35;
	color: var(--on-night);
	text-wrap: balance;
}

/* Motif « tarotage » : losanges et étoiles des dos de cartes anciens. */
.tarotage {
	position: relative;
	isolation: isolate;
}

.tarotage::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background-image: var(--tarotage);
	background-size: 28px 28px;
	background-position: center;
	-webkit-mask-image: linear-gradient(100deg, rgba(0, 0, 0, 0.12) 20%, #000 88%);
	mask-image: linear-gradient(100deg, rgba(0, 0, 0, 0.12) 20%, #000 88%);
	border-radius: inherit;
	pointer-events: none;
}

.question.tarotage::before {
	-webkit-mask-image: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.08) 28%, #000 78%);
	mask-image: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.08) 28%, #000 78%);
}

/* ==========================================================================
   9. Lames d'arcanes (ratio 1:1,9) et dos de cartes
   ========================================================================== */

.lame {
	--el: var(--text);
	container-type: inline-size;
	position: relative;
	display: grid;
	grid-template-rows: auto 1fr auto;
	width: 100%;
	aspect-ratio: 1 / 1.9;
	border: 1px solid var(--text);
	border-radius: 10px;
	background: var(--surface);
	box-shadow: inset 0 0 0 4px var(--surface), inset 0 0 0 5.5px var(--el);
	color: var(--text);
	text-decoration: none;
	overflow: hidden;
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.lame--feu { --el: var(--accent); }
.lame--eau { --el: var(--accent-2); }
.lame--air { --el: var(--ochre); }
.lame--terre { --el: var(--sage); }
.lame--aucun { --el: var(--text); }

a.lame:hover {
	color: var(--text);
	transform: translateY(-4px) rotate(-0.6deg);
	box-shadow: inset 0 0 0 4px var(--surface), inset 0 0 0 5.5px var(--el), 0 18px 30px -20px rgba(29, 26, 23, 0.55);
}

a.lame:focus-visible {
	outline-offset: 3px;
	border-radius: 10px;
}

.lame__band {
	display: block;
	min-height: 2.2em;
	margin: 0 10%;
	padding: 0.7rem 0 0.35rem;
	padding: 9cqi 0 4cqi;
	border-bottom: 1px solid var(--el);
	font-family: var(--font-heading);
	font-size: 0.85rem;
	font-size: 11cqi;
	font-variant-caps: all-small-caps;
	letter-spacing: 0.08em;
	line-height: 1;
	text-align: center;
	color: var(--el);
}

.lame__center {
	position: relative;
	display: grid;
	align-content: center;
	justify-items: center;
	gap: 0.4rem;
	gap: 5cqi;
	margin: 0 10%;
}

/* Traits de gravure derrière le chiffre. */
.lame__center::before {
	content: "";
	position: absolute;
	inset: 12% 0;
	background: var(--hatch);
	-webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 70%);
	mask-image: radial-gradient(ellipse at center, #000 30%, transparent 70%);
	opacity: 0.9;
}

.lame__roman {
	position: relative;
	font-family: var(--font-heading);
	font-size: 2.2rem;
	font-size: 30cqi;
	font-weight: 600;
	line-height: 1;
	letter-spacing: -0.01em;
	color: var(--el);
	white-space: nowrap;
}

/* Chiffres longs (IIII, VIIII, XVIIII) : corps réduit pour garder la même largeur. */
.lame__roman--4 {
	font-size: 1.8rem;
	font-size: 26cqi;
}

.lame__roman--5 {
	font-size: 1.55rem;
	font-size: 22cqi;
}

.lame__roman--6 {
	font-size: 1.35rem;
	font-size: 19cqi;
}

.lame__star {
	position: relative;
	width: 2.4rem;
	height: 2.4rem;
	width: 38cqi;
	height: 38cqi;
	color: var(--el);
}

.lame__element {
	position: relative;
	width: 1rem;
	height: 1rem;
	width: 15cqi;
	height: 15cqi;
	color: var(--el);
}

.lame__cartouche {
	display: block;
	margin: 0 8% 8%;
	padding: 0.4rem 0.2rem;
	padding: 4.5cqi 2cqi;
	border: 1px solid var(--el);
	border-radius: 4px;
	background: var(--bg);
	text-align: center;
}

.lame__name {
	display: block;
	font-family: var(--font-heading);
	font-size: 0.85rem;
	font-size: max(0.68rem, 10.5cqi);
	font-weight: 600;
	font-variant-caps: small-caps;
	letter-spacing: 0.02em;
	line-height: 1.12;
	overflow-wrap: anywhere;
	hyphens: auto;
}

.lame--hero {
	max-width: 250px;
	margin-inline: auto;
	transform: rotate(-2.5deg);
	box-shadow: inset 0 0 0 5px var(--surface), inset 0 0 0 7px var(--el), 0 28px 50px -30px rgba(29, 26, 23, 0.6);
}

.lame--mini .lame__band {
	min-height: 1.6em;
}

.card-back {
	position: relative;
	display: block;
	aspect-ratio: 1 / 1.9;
	border: 1px solid rgba(210, 170, 78, 0.6);
	border-radius: 10px;
	background-color: #1D2735;
	background-image: var(--tarotage);
	background-size: 22px 22px;
	background-position: center;
	box-shadow: inset 0 0 0 6px #1D2735, inset 0 0 0 7px rgba(210, 170, 78, 0.65), 0 14px 28px -18px rgba(0, 0, 0, 0.7);
}

.card-back::before {
	content: "";
	position: absolute;
	left: 50%;
	top: 50%;
	width: 46%;
	aspect-ratio: 1;
	border: 1px solid rgba(210, 170, 78, 0.75);
	border-radius: 50%;
	background: #1D2735;
	box-shadow: 0 0 0 4px #1D2735, 0 0 0 5px rgba(210, 170, 78, 0.35);
	transform: translate(-50%, -50%);
}

.card-back::after {
	content: "";
	position: absolute;
	left: 50%;
	top: 50%;
	width: 24%;
	aspect-ratio: 1;
	background: #D2AA4E;
	-webkit-mask: var(--mask-trefle) center / contain no-repeat;
	mask: var(--mask-trefle) center / contain no-repeat;
	transform: translate(-50%, -50%);
}

/* ==========================================================================
   10. Grilles « bento » et cartes
   ========================================================================== */

.bento {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	gap: var(--gap);
}

.bento > * {
	grid-column: span 12;
}

@media (min-width: 640px) {
	.bento--three > *,
	.bento--rubrique > *,
	.bento--mosaic > * {
		grid-column: span 6;
	}

	.bento--rubrique > :first-child,
	.bento--mosaic > :first-child {
		grid-column: span 12;
	}
}

/* Deux colonnes : une dernière carte orpheline (nombre pair de cartes) prend la ligne. */
@media (min-width: 640px) and (max-width: 959px) {
	.bento--rubrique > :nth-child(even):last-child,
	.bento--mosaic > :nth-child(even):last-child,
	.bento--three > :nth-child(odd):last-child {
		grid-column: span 12;
	}
}

@media (min-width: 960px) {
	.bento--three > * {
		grid-column: span 4;
	}

	.bento--rubrique > *,
	.bento--mosaic > * {
		grid-column: span 4;
	}

	.bento--rubrique > :first-child,
	.bento--mosaic > :first-child {
		grid-column: span 7;
		grid-row: span 2;
	}

	.bento--rubrique > :nth-child(2),
	.bento--rubrique > :nth-child(3),
	.bento--mosaic > :nth-child(2),
	.bento--mosaic > :nth-child(3) {
		grid-column: span 5;
	}

	/* À partir de la 4e carte, rangées de trois. Dernière rangée incomplète : deux cartes
	   se partagent la ligne (5, 8, 11… cartes), une carte seule l'occupe (4, 7, 10…). */
	.bento--rubrique > :nth-child(3n+4):nth-last-child(2),
	.bento--rubrique > :nth-child(3n+5):last-child,
	.bento--mosaic > :nth-child(3n+4):nth-last-child(2),
	.bento--mosaic > :nth-child(3n+5):last-child {
		grid-column: span 6;
	}

	.bento--rubrique > :nth-child(3n+4):last-child,
	.bento--mosaic > :nth-child(3n+4):last-child {
		grid-column: span 12;
	}

	/* Deux cartes : moitié-moitié. */
	.bento--rubrique > :first-child:nth-last-child(2),
	.bento--rubrique > :nth-child(2):last-child {
		grid-column: span 6;
		grid-row: auto;
	}
}

.bento--duo {
	margin-top: var(--section);
}

@media (min-width: 900px) {
	.bento--duo > :first-child {
		grid-column: span 7;
	}

	.bento--duo > :last-child {
		grid-column: span 5;
	}
}

.card {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	min-width: 0;
	padding: clamp(20px, 2.4vw, 28px);
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--surface);
	transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
	border-color: var(--line-strong);
	box-shadow: var(--shadow);
	transform: translateY(-2px);
}

.card__badges {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
	margin: 0;
}

.card__title {
	margin: 0;
	font-size: 1.28rem;
	line-height: 1.24;
}

.card__link {
	color: var(--text);
	text-decoration: none;
}

.card__link::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	border-radius: inherit;
}

.card__link:hover {
	color: var(--text);
}

.card:hover .card__link {
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.18em;
}

.card__link:focus-visible {
	outline: none;
}

.card__link:focus-visible::after {
	outline: 3px solid var(--focus);
	outline-offset: 2px;
}

.card__text {
	margin: 0;
	font-size: 1rem;
	line-height: 1.55;
	color: var(--muted);
}

.card__points {
	display: grid;
	gap: 0.5rem;
	margin: 0.2rem 0 0;
	padding: 0;
	list-style: none;
	font-size: 0.97rem;
	line-height: 1.5;
}

.card__points li {
	position: relative;
	padding-left: 1.3rem;
}

.card__points li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.42em;
	width: 0.72rem;
	height: 0.72rem;
	background: var(--accent);
	-webkit-mask: var(--mask-star) center / contain no-repeat;
	mask: var(--mask-star) center / contain no-repeat;
}

.card__foot {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem 1rem;
	margin: auto 0 0;
	padding-top: 0.8rem;
	border-top: 1px dashed var(--line);
	font-family: var(--font-ui);
	font-size: 0.85rem;
	color: var(--muted);
}

.card__cta {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	margin-left: auto;
	font-weight: 600;
	color: var(--accent);
}

.card__arrow {
	width: 1.05em;
	height: 1.05em;
	transition: transform 0.2s ease;
}

.card:hover .card__arrow {
	transform: translateX(3px);
}

/* Carte vedette : grand titre, étoile en filigrane. */
.card--feature {
	overflow: hidden;
	padding: clamp(24px, 3.4vw, 40px);
}

.card--feature::before {
	content: "";
	position: absolute;
	right: -40px;
	top: -40px;
	width: 200px;
	height: 200px;
	background: var(--accent);
	opacity: 0.07;
	-webkit-mask: var(--mask-star) center / contain no-repeat;
	mask: var(--mask-star) center / contain no-repeat;
	pointer-events: none;
}

.card--feature .card__title {
	font-size: clamp(1.5rem, 1.2rem + 1.1vw, 2rem);
	line-height: 1.15;
}

.card--feature .card__text {
	font-size: 1.06rem;
	color: var(--text);
}

/* Cartes des termes. */
.terms-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr));
	gap: var(--gap);
	margin: 0;
	padding: 0;
	list-style: none;
}

.term-card {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
	padding: 1.1rem 1.2rem 1.2rem;
	border: 1px solid var(--line);
	border-top: 2px solid var(--gold);
	border-radius: var(--radius-sm);
	background: var(--surface);
	transition: border-color 0.2s ease, transform 0.2s ease;
}

.term-card:hover {
	border-color: var(--line-strong);
	border-top-color: var(--gold);
	transform: translateY(-2px);
}

.term-card__domain {
	margin: 0;
	font-family: var(--font-ui);
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--ochre);
}

.term-card__name {
	margin: 0;
	font-size: 1.25rem;
	line-height: 1.2;
}

.term-card__def {
	margin: 0;
	font-size: 0.95rem;
	line-height: 1.5;
	color: var(--muted);
}

.term-card:hover .card__link {
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 0.18em;
}

/* Tuiles de rubriques. */
.rubrique-tile {
	display: grid;
	grid-template-columns: auto 1fr;
	align-items: center;
	column-gap: 0.85rem;
	min-height: 76px;
	padding: 0.9rem 1.15rem;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--surface);
	color: var(--text);
	text-decoration: none;
	transition: border-color 0.2s ease, transform 0.2s ease;
}

.rubrique-tile:hover {
	border-color: var(--text);
	color: var(--text);
	text-decoration: none;
	transform: translateY(-2px);
}

.rubrique-tile__icon {
	grid-row: span 2;
	width: 2rem;
	height: 2rem;
	color: var(--accent);
	transition: transform 0.3s ease;
}

.rubrique-tile:hover .rubrique-tile__icon {
	transform: rotate(-8deg) scale(1.06);
}

.rubrique-tile__name {
	font-family: var(--font-heading);
	font-size: 1.2rem;
	font-weight: 600;
	line-height: 1.2;
}

.rubrique-tile__count {
	grid-column: 2;
	font-family: var(--font-ui);
	font-size: 0.8rem;
	color: var(--muted);
}

.rubrique-tiles {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
	gap: var(--gap);
	margin: 1.2rem 0 0;
	padding: 0;
	list-style: none;
}

/* Panneaux de texte de l'accueil. */
.panel {
	position: relative;
	overflow: hidden;
	padding: clamp(24px, 4vw, 44px);
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	background: var(--surface);
}

.panel p {
	max-width: 60ch;
	margin: 0 0 1rem;
	line-height: 1.65;
}

.panel__title {
	margin: 0.5rem 0 0.9rem;
	font-size: clamp(1.45rem, 1.2rem + 1vw, 1.85rem);
}

.panel__icon {
	width: 2.2rem;
	height: 2.2rem;
	color: var(--accent-2);
}

.panel__links {
	display: grid;
	gap: 0.6rem;
	margin: 1.2rem 0 0;
	padding: 1rem 0 0;
	border-top: 1px dashed var(--line);
	list-style: none;
}

.panel--retour {
	border-color: transparent;
	background: var(--night);
}

.panel--retour p {
	color: var(--on-night-muted);
}

.panel__dates {
	display: flex;
	align-items: center;
	gap: 0.6rem;
	margin: 0;
	font-family: var(--font-heading);
	font-size: 1.05rem;
	font-variant-numeric: oldstyle-nums;
	letter-spacing: 0.06em;
	color: var(--gold);
}

.panel__dash {
	width: 2.4rem;
	height: 1px;
	background: rgba(210, 170, 78, 0.55);
}

.panel--retour .logo__mark {
	position: absolute;
	right: clamp(16px, 3vw, 32px);
	bottom: clamp(16px, 3vw, 28px);
	width: 58px;
	height: 82px;
	opacity: 0.3;
	transform: rotate(8deg);
}

/* ==========================================================================
   11. Accueil
   ========================================================================== */

.hero {
	padding-block: clamp(18px, 4vw, 44px) 0;
}

.hero__grid {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	gap: var(--gap);
}

.hero__main {
	position: relative;
	grid-column: span 12;
	overflow: hidden;
	padding: clamp(26px, 5vw, 60px);
	border: 1px solid var(--line);
	border-radius: var(--radius-lg);
	background: var(--surface);
}

.hero__main::after {
	content: "";
	position: absolute;
	right: -60px;
	bottom: -60px;
	width: 260px;
	height: 260px;
	background: var(--hatch);
	border-radius: 50%;
	pointer-events: none;
}

.hero__title {
	position: relative;
	z-index: 1;
	max-width: 17ch;
	margin: 0.2rem 0 1.1rem;
	font-size: clamp(2.2rem, 1.3rem + 3.6vw, 4rem);
	line-height: 1.04;
	letter-spacing: -0.015em;
}

.hero__title em {
	font-weight: 400;
	color: var(--accent);
}

.hero__text {
	position: relative;
	z-index: 1;
	max-width: 58ch;
	margin: 0 0 1.6rem;
	font-size: 1.15rem;
	line-height: 1.65;
	color: var(--muted);
}

.hero__actions {
	position: relative;
	z-index: 1;
	display: flex;
	flex-wrap: wrap;
	gap: 0.7rem;
	margin: 0;
}

.hero__deck {
	grid-column: span 12;
	display: grid;
	place-items: center;
	align-content: center;
	gap: 1.4rem;
	min-height: 300px;
	padding: 2rem 1rem;
	border-radius: var(--radius-lg);
	overflow: hidden;
}

.deck {
	position: relative;
	width: 230px;
	height: 250px;
}

.deck__card {
	position: absolute;
	left: 50%;
	bottom: 0;
	width: 116px;
	margin-left: -58px;
	transform-origin: 50% 110%;
	transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.deck__card--1 {
	transform: rotate(-15deg) translateX(-14px);
}

.deck__card--2 {
	transform: translateY(-10px);
}

.deck__card--3 {
	transform: rotate(15deg) translateX(14px);
}

.hero__deck:hover .deck__card--1 {
	transform: rotate(-21deg) translateX(-22px);
}

.hero__deck:hover .deck__card--3 {
	transform: rotate(21deg) translateX(22px);
}

.hero__deck-caption {
	margin: 0;
	font-family: var(--font-ui);
	font-size: 0.8rem;
	letter-spacing: 0.06em;
	text-align: center;
	color: var(--on-night-muted);
}

.hero__deck-caption .roman {
	color: var(--gold);
}

.hero__tiles {
	grid-column: span 12;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: var(--gap);
	margin: 0;
	padding: 0;
	list-style: none;
}

@media (min-width: 900px) {
	.hero__main {
		grid-column: span 8;
	}

	.hero__deck {
		grid-column: span 4;
	}

	.hero__tiles {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

@media (max-width: 479px) {
	.hero__tiles .rubrique-tile {
		grid-template-columns: 1fr;
		row-gap: 0.4rem;
		min-height: 0;
		padding: 0.9rem;
	}

	.hero__tiles .rubrique-tile__icon {
		grid-row: auto;
	}

	.hero__tiles .rubrique-tile__count {
		grid-column: 1;
	}

	.hero__tiles .rubrique-tile__name {
		font-size: 1.08rem;
	}
}

.home-section {
	margin-block: var(--section);
}

.section-head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 1rem 2rem;
	margin-bottom: 1.6rem;
}

.section-lead {
	max-width: 62ch;
	margin: 0.6rem 0 0;
	font-size: 1.06rem;
	line-height: 1.6;
	color: var(--muted);
}

/* Les 22 lames en éventail (bande défilante sur petit écran). */
.spread {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: 104px;
	gap: 12px;
	margin: 0;
	padding: 6px 2px 14px;
	list-style: none;
	overflow-x: auto;
	scroll-snap-type: x proximity;
	scrollbar-width: thin;
	scrollbar-color: var(--line-strong) transparent;
}

.spread__item {
	scroll-snap-align: start;
}

@media (min-width: 1180px) {
	.spread {
		grid-auto-flow: row;
		grid-template-columns: repeat(11, minmax(0, 1fr));
		row-gap: 18px;
		overflow: visible;
	}
}

/* Appel au tirage. */
.cta-tirage {
	display: grid;
	grid-template-columns: 1fr;
	gap: clamp(24px, 4vw, 52px);
	align-items: center;
	margin-block: clamp(28px, 5vw, 60px);
	padding: clamp(26px, 5vw, 60px);
	border-radius: var(--radius-lg);
	overflow: hidden;
}

.cta-tirage__title {
	margin: 0.2rem 0 0.8rem;
	font-size: var(--h2);
	color: var(--on-night);
}

.cta-tirage__text > p {
	max-width: 52ch;
	margin: 0 0 1rem;
	color: var(--on-night-muted);
	line-height: 1.65;
}

.cta-tirage__text .kicker {
	color: var(--gold);
}

.cta-tirage__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.7rem;
	margin-top: 1.4rem;
}

.cta-tirage__spread {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: clamp(10px, 2vw, 18px);
	width: min(100%, 380px);
	margin: 0 auto;
	padding: 0;
	list-style: none;
}

.cta-tirage__spread li {
	display: grid;
	justify-items: center;
	gap: 0.6rem;
}

.cta-tirage__spread li:nth-child(2) {
	transform: translateY(-14px);
}

.cta-tirage__spread .card-back {
	width: 100%;
}

.cta-tirage__pos {
	font-family: var(--font-ui);
	font-size: 0.74rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--gold);
}

@media (min-width: 860px) {
	.cta-tirage {
		grid-template-columns: 1.25fr 1fr;
	}
}

.home-dico .az {
	margin-bottom: 1.4rem;
}

/* Fleuron des quatre enseignes. */
.fleuron {
	display: flex;
	align-items: center;
	gap: 0.85rem;
	margin-block: clamp(32px, 6vw, 64px);
}

.fleuron__line {
	flex: 1;
	height: 1px;
	background: var(--line);
}

.fleuron__suit {
	width: 1.25rem;
	height: 1.25rem;
}

.fleuron__suit:nth-of-type(1) { color: var(--ochre); }
.fleuron__suit:nth-of-type(2) { color: var(--accent-2); }
.fleuron__suit:nth-of-type(3) { color: var(--text); }
.fleuron__suit:nth-of-type(4) { color: var(--accent); }

.fleuron--night {
	margin-block: 0 clamp(28px, 5vw, 44px);
}

.fleuron--night .fleuron__line {
	background: rgba(210, 170, 78, 0.3);
}

.fleuron--night .fleuron__suit {
	color: var(--gold);
}

/* ==========================================================================
   12. Fiche arcane
   ========================================================================== */

.arcane-head {
	position: relative;
	overflow: hidden;
	padding-block: clamp(20px, 4vw, 40px) clamp(30px, 5vw, 60px);
	border-bottom: 1px solid var(--line);
	background: radial-gradient(circle at 14% 46%, rgba(210, 170, 78, 0.16), transparent 42%);
}

.arcane-head__grid {
	display: grid;
	grid-template-columns: minmax(130px, 250px) minmax(0, 1fr);
	gap: clamp(24px, 5vw, 72px);
	align-items: center;
	margin-top: 0.6rem;
}

.arcane-head__num {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.3rem 0.9rem;
	margin: 0 0 0.7rem;
	color: var(--muted);
}

.arcane-head__roman {
	font-family: var(--font-heading);
	font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.3rem);
	font-weight: 600;
	letter-spacing: 0.08em;
	color: var(--el);
}

/* Cartouche à double filet autour du H1. */
.cartouche {
	position: relative;
	margin: 0 0 1.2rem;
	padding: clamp(0.8rem, 2vw, 1.2rem) clamp(1rem, 2.6vw, 1.6rem);
	border: 3px double var(--line-strong);
	border-radius: 6px;
	background: var(--surface);
}

.cartouche::before,
.cartouche::after {
	content: "";
	position: absolute;
	width: 14px;
	height: 14px;
	background: var(--el);
	-webkit-mask: var(--mask-star) center / contain no-repeat;
	mask: var(--mask-star) center / contain no-repeat;
}

.cartouche::before {
	left: -8px;
	top: -8px;
}

.cartouche::after {
	right: -8px;
	bottom: -8px;
}

.cartouche .entry-title {
	margin: 0;
	font-size: clamp(1.9rem, 1.3rem + 2.4vw, 3.1rem);
}

.exergue {
	max-width: 60ch;
	margin: 0 0 1.1rem;
	padding: 0.2rem 0 0.2rem 1.1rem;
	border-left: 3px solid var(--el);
	font-family: var(--font-heading);
	font-size: clamp(1.12rem, 1.05rem + 0.35vw, 1.3rem);
	font-style: italic;
	line-height: 1.5;
}

.exergue__label {
	display: block;
	margin-bottom: 0.25rem;
	font-family: var(--font-ui);
	font-size: 0.72rem;
	font-style: normal;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--muted);
}

@media (max-width: 719px) {
	.arcane-head__grid {
		grid-template-columns: 1fr;
		gap: 1.4rem;
	}

	.arcane-head__lame {
		width: 140px;
	}

	.lame--hero {
		margin-inline: 0.4rem 0;
	}
}

.arcane-facts {
	display: grid;
	grid-template-columns: repeat(12, minmax(0, 1fr));
	gap: var(--gap);
	padding-top: clamp(28px, 5vw, 52px);
}

.facts-card {
	grid-column: span 12;
	padding: 1.4rem 1.5rem 1.2rem;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--surface);
	box-shadow: var(--shadow);
}

.facts-card__title {
	display: flex;
	align-items: center;
	gap: 0.55rem;
	margin: 0 0 0.6rem;
	font-size: 1.35rem;
}

.facts-card__icon {
	width: 1.1rem;
	height: 1.1rem;
	color: var(--el);
}

.facts {
	margin: 0;
}

.facts__row {
	display: grid;
	grid-template-columns: minmax(7.5rem, 10rem) minmax(0, 1fr);
	gap: 0.3rem 1rem;
	padding: 0.75rem 0;
	border-top: 1px solid var(--line);
}

.facts dt {
	padding-top: 0.2rem;
	font-family: var(--font-ui);
	font-size: 0.74rem;
	font-weight: 700;
	letter-spacing: 0.1em;
	line-height: 1.35;
	text-transform: uppercase;
	color: var(--muted);
}

.facts dd {
	margin: 0;
	font-family: var(--font-heading);
	font-size: 1.12rem;
	line-height: 1.35;
}

.facts dd .roman {
	font-size: 1.25rem;
	color: var(--el);
}

.facts__aside {
	display: block;
	margin-top: 0.15rem;
	font-family: var(--font-ui);
	font-size: 0.82rem;
	color: var(--muted);
}

.facts__element {
	display: block;
}

/* Petits écrans : intitulé au-dessus de la valeur (la colonne de valeur tomberait à ~100 px). */
@media (max-width: 479px) {
	.facts-card {
		padding-inline: 1.15rem;
	}

	.facts__row {
		grid-template-columns: minmax(0, 1fr);
		gap: 0.15rem;
	}

	.facts dt {
		padding-top: 0;
	}
}

.facts__el-icon {
	width: 1.1em;
	height: 1.1em;
	margin-right: 0.25rem;
	vertical-align: -0.18em;
	color: var(--el);
}

.facts-card__note {
	margin: 0.4rem 0 0;
	padding-top: 0.8rem;
	border-top: 1px dashed var(--line);
	font-family: var(--font-ui);
	font-size: 0.8rem;
	line-height: 1.5;
	color: var(--muted);
}

.keywords {
	grid-column: span 12;
	display: grid;
	gap: var(--gap);
	align-content: start;
}

.keywords__group {
	padding: 1.3rem 1.4rem 1.4rem;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--surface);
}

.keywords__title {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	margin: 0 0 0.9rem;
	font-family: var(--font-ui);
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--muted);
}

.keywords__icon {
	width: 1.3rem;
	height: 1.3rem;
	color: var(--accent-2);
}

.keywords__icon--envers {
	color: var(--accent);
	transform: rotate(180deg);
}

@media (min-width: 900px) {
	.facts-card {
		grid-column: span 5;
	}

	.keywords {
		grid-column: span 7;
	}
}

@media (min-width: 640px) and (max-width: 899px) {
	.keywords {
		grid-template-columns: 1fr 1fr;
	}
}

/* Navigation entre lames voisines. */
.arcane-nav {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--gap);
	margin-bottom: 1rem;
}

.arcane-nav__link {
	display: flex;
	align-items: center;
	gap: 1.1rem;
	min-width: 0;
	padding: 1rem 1.2rem;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--surface);
	color: var(--text);
	text-decoration: none;
	transition: border-color 0.2s ease, transform 0.2s ease;
}

.arcane-nav__link:hover {
	border-color: var(--text);
	color: var(--text);
	transform: translateY(-2px);
}

.arcane-nav__link .lame {
	width: 62px;
	flex: none;
}

.arcane-nav__link--next {
	flex-direction: row-reverse;
	text-align: right;
}

.arcane-nav__text {
	display: grid;
	gap: 0.2rem;
	min-width: 0;
}

.arcane-nav__label {
	font-family: var(--font-ui);
	font-size: 0.74rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--muted);
}

.arcane-nav__name {
	font-family: var(--font-heading);
	font-size: 1.3rem;
	font-weight: 600;
	line-height: 1.2;
}

.arcane-nav__hint {
	font-size: 0.92rem;
	line-height: 1.45;
	color: var(--muted);
}

.arcane-nav__deck {
	position: relative;
	width: 62px;
	aspect-ratio: 1 / 1.9;
	flex: none;
}

.arcane-nav__deck span {
	position: absolute;
	inset: 0;
	border: 1px solid rgba(210, 170, 78, 0.6);
	border-radius: 7px;
	background: #1D2735 var(--tarotage) center / 14px 14px;
}

.arcane-nav__deck span:nth-child(1) {
	transform: rotate(-9deg) translateX(-5px);
}

.arcane-nav__deck span:nth-child(3) {
	transform: rotate(8deg) translateX(5px);
}

@media (min-width: 720px) {
	.arcane-nav {
		grid-template-columns: 1fr 1fr;
	}
}

/* ==========================================================================
   13. Archives : arcanes, dictionnaire, rubriques
   ========================================================================== */

.arcanes-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
	gap: clamp(18px, 2.6vw, 30px) clamp(12px, 2vw, 24px);
	margin: clamp(28px, 5vw, 52px) 0 0;
	padding: 0;
	list-style: none;
}

.arcanes-grid__item {
	display: grid;
	align-content: start;
	gap: 0.65rem;
}

.arcanes-grid__kw {
	margin: 0;
	font-family: var(--font-ui);
	font-size: 0.8rem;
	line-height: 1.4;
	text-align: center;
	color: var(--muted);
}

.empty-state {
	margin-block: 2rem;
	padding: 1.6rem;
	border: 1px dashed var(--line-strong);
	border-radius: var(--radius);
	color: var(--muted);
}

.empty-state p {
	margin: 0 0 0.8rem;
}

/* Dictionnaire : index A-Z collant et filtre par domaine. */
.dico {
	padding-top: clamp(16px, 3vw, 28px);
}

.dico__tools {
	margin-bottom: 1rem;
}

.az {
	margin: 0;
}

.az__list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.3rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.az__letter {
	display: grid;
	place-items: center;
	width: 2.25rem;
	height: 2.25rem;
	border: 1px solid var(--line-strong);
	border-radius: 8px;
	background: var(--surface);
	color: var(--text);
	font-family: var(--font-heading);
	font-size: 1.05rem;
	font-weight: 600;
	line-height: 1;
	text-decoration: none;
}

a.az__letter:hover,
a.az__letter.is-current {
	border-color: var(--text);
	background: var(--text);
	color: var(--bg);
	text-decoration: none;
}

.az__letter.is-empty {
	border-style: dashed;
	border-color: var(--line);
	background: transparent;
	color: var(--muted);
	opacity: 0.5;
	cursor: default;
}

.az--sticky {
	position: sticky;
	top: 0;
	z-index: 10;
	margin-inline: calc(-1 * var(--gutter));
	padding: 0.65rem var(--gutter);
	border-bottom: 1px solid var(--line);
	background: var(--bg);
}

@supports ((-webkit-backdrop-filter: blur(4px)) or (backdrop-filter: blur(4px))) {
	.az--sticky {
		background: rgba(243, 236, 221, 0.9);
		-webkit-backdrop-filter: blur(8px);
		backdrop-filter: blur(8px);
	}

	@media (prefers-color-scheme: dark) {
		.az--sticky {
			background: rgba(18, 23, 31, 0.9);
		}
	}
}

@media (max-width: 767px) {
	.az--sticky .az__list {
		flex-wrap: nowrap;
		overflow-x: auto;
		scrollbar-width: none;
	}

	.az--sticky .az__list::-webkit-scrollbar {
		display: none;
	}

	.az--sticky .az__letter {
		width: 2.1rem;
	}
}

.filters {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-top: 1.2rem;
}

.filter-chip {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	min-height: 42px;
	padding: 0.4rem 0.9rem;
	border: 1px solid var(--line-strong);
	border-radius: 999px;
	background: var(--surface);
	color: var(--text);
	font-family: var(--font-ui);
	font-size: 0.88rem;
	font-weight: 500;
	text-decoration: none;
}

.filter-chip:hover {
	border-color: var(--text);
	color: var(--text);
	text-decoration: none;
}

.filter-chip[aria-current="true"],
.filter-chip[aria-pressed="true"] {
	border-color: var(--text);
	background: var(--text);
	color: var(--bg);
}

.filter-chip__count {
	min-width: 1.6rem;
	padding: 0.05rem 0.4rem;
	border-radius: 999px;
	background: rgba(127, 114, 98, 0.16);
	font-size: 0.75rem;
	font-weight: 700;
	text-align: center;
}

.dico__status {
	margin: 0.9rem 0 0;
	font-family: var(--font-ui);
	font-size: 0.85rem;
	color: var(--muted);
}

.letter-group {
	display: grid;
	grid-template-columns: 1fr;
	gap: 0.6rem var(--gap);
	padding-block: 1.6rem;
	border-top: 1px solid var(--line);
	scroll-margin-top: 6rem;
}

.letter-group__letter {
	margin: 0;
	font-size: 2.4rem;
	line-height: 1;
	color: var(--accent);
}

@media (min-width: 768px) {
	.letter-group {
		grid-template-columns: 5rem minmax(0, 1fr);
		scroll-margin-top: 4.5rem;
	}

	.letter-group__letter {
		position: sticky;
		top: 5rem;
		align-self: start;
		font-size: 3.4rem;
	}
}

.back-index {
	display: grid;
	gap: 1.2rem;
	justify-items: start;
}

/* Fiche du dictionnaire. */
.definition {
	max-width: 62ch;
	margin: 0.6rem 0 1.2rem;
	padding-top: 1rem;
	border-top: 2px solid var(--gold);
}

.definition__term {
	margin: 0 0 0.3rem;
	font-family: var(--font-ui);
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--ochre);
}

.definition__term dfn {
	font-style: normal;
}

.definition__text {
	margin: 0;
	font-family: var(--font-heading);
	font-size: clamp(1.2rem, 1.1rem + 0.5vw, 1.45rem);
	font-style: italic;
	line-height: 1.45;
}

.termes-lies {
	margin-top: 2.8rem;
	padding-top: 1.6rem;
	border-top: 1px solid var(--line);
}

.termes-lies__title {
	display: flex;
	align-items: center;
	gap: 0.55rem;
	margin: 0 0 1rem;
	font-size: 1.45rem;
}

.termes-lies__icon {
	width: 1.05rem;
	height: 1.05rem;
	color: var(--ochre);
}

.termes-lies__sub {
	margin: 1.8rem 0 0.9rem;
	font-family: var(--font-ui);
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--muted);
}

.termes-lies__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr));
	gap: 0.8rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.termes-lies__grid .term-card__name {
	font-size: 1.12rem;
}

/* Rubriques et pagination. */
.archive-head--rubrique .archive-intro {
	max-width: 70ch;
}

.other-rubriques {
	margin-bottom: 1rem;
}

.related {
	margin-bottom: 1rem;
}

.related .section-head {
	align-items: center;
}

.pagination {
	margin-top: 2.6rem;
}

.pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.4rem;
	font-family: var(--font-ui);
}

.pagination .page-numbers {
	display: inline-grid;
	place-items: center;
	min-width: 44px;
	min-height: 44px;
	padding: 0 0.85rem;
	border: 1px solid var(--line-strong);
	border-radius: 999px;
	color: var(--text);
	text-decoration: none;
}

.pagination .page-numbers:hover {
	border-color: var(--text);
}

.pagination .page-numbers.current {
	border-color: var(--text);
	background: var(--text);
	color: var(--bg);
}

.pagination .page-numbers.dots {
	border: 0;
}

/* Plan du site. */
.sitemap {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
	gap: var(--gap);
	align-items: start;
	margin-top: 2rem;
}

.sitemap__block {
	padding: 1.3rem 1.4rem 1.4rem;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--surface);
}

.sitemap__block--dictionnaire,
.sitemap__block--arcane {
	grid-column: 1 / -1;
}

.sitemap__title {
	display: flex;
	align-items: center;
	gap: 0.55rem;
	margin: 0;
	font-size: 1.3rem;
}

.sitemap__title a {
	color: var(--text);
}

.sitemap__icon {
	width: 1.15rem;
	height: 1.15rem;
	color: var(--accent);
}

.sitemap__count {
	margin-left: auto;
	padding: 0.1rem 0.55rem;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: var(--bg);
	font-family: var(--font-ui);
	font-size: 0.75rem;
	font-weight: 700;
	color: var(--muted);
}

.sitemap__list {
	display: grid;
	gap: 0.45rem;
	margin: 0.9rem 0 0;
	padding: 0;
	list-style: none;
	font-size: 1rem;
	line-height: 1.4;
}

.sitemap__block--dictionnaire .sitemap__list,
.sitemap__block--arcane .sitemap__list {
	display: block;
	columns: 3 15rem;
	column-gap: 2rem;
}

.sitemap__block--dictionnaire .sitemap__list li,
.sitemap__block--arcane .sitemap__list li {
	margin-bottom: 0.45rem;
	break-inside: avoid;
}

.sitemap__roman {
	display: inline-block;
	min-width: 3.6rem;
	color: var(--accent);
	font-family: var(--font-heading);
	font-variant-caps: all-small-caps;
	letter-spacing: 0.08em;
}

/* ==========================================================================
   14. Tirage gratuit
   ========================================================================== */

.tirage-head {
	padding-block: clamp(20px, 4vw, 44px) clamp(20px, 3vw, 32px);
}

.tirage-head .breadcrumb ol,
.tirage-head .breadcrumb a {
	color: var(--on-night-muted);
}

.tirage-head .breadcrumb [aria-current="page"] {
	color: var(--on-night);
}

.tirage-head .breadcrumb a:hover {
	color: var(--gold);
}

.tirage-head__inner > * {
	max-width: 54rem;
}

.tirage-head .entry-title {
	color: var(--on-night);
}

.tirage-head .title__sub,
.tirage-head .chapo {
	color: var(--on-night-muted);
}

.tirage {
	padding-block: 0.5rem clamp(40px, 6vw, 76px);
	border-bottom: 1px solid rgba(210, 170, 78, 0.28);
}

.no-js .tirage__tool {
	display: none;
}

.tirage__tool {
	display: grid;
	grid-template-columns: 1fr;
	gap: clamp(24px, 4vw, 48px);
	align-items: start;
}

/* Formulaire à gauche seulement quand les trois cartes gardent ~225 px de large ;
   en dessous, il passe au-dessus du plateau (cartes de 160 px trop étroites à lire). */
@media (min-width: 1180px) {
	.tirage__tool {
		grid-template-columns: minmax(270px, 330px) minmax(0, 1fr);
	}
}

.tirage__form {
	display: grid;
	gap: 1.3rem;
	padding: 1.4rem;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--night-surface);
}

.tirage__label {
	display: block;
	margin-bottom: 0.55rem;
	padding: 0;
	font-family: var(--font-ui);
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--gold);
}

.tirage__optional {
	font-weight: 400;
	letter-spacing: 0.04em;
	text-transform: none;
	color: var(--on-night-muted);
}

.tirage__input {
	width: 100%;
	min-height: 48px;
	padding: 0.75rem 0.9rem;
	border: 1px solid #8B8577;
	border-radius: var(--radius-sm);
	background: var(--night);
	color: var(--on-night);
	font-family: var(--font-body);
	font-size: 1.02rem;
}

.tirage__input::placeholder {
	color: var(--on-night-muted);
	opacity: 1;
}

.tirage__help {
	margin: 0.55rem 0 0;
	font-family: var(--font-ui);
	font-size: 0.8rem;
	line-height: 1.5;
	color: var(--on-night-muted);
}

.tirage__layouts {
	margin: 0;
	padding: 0;
	border: 0;
	min-width: 0;
}

.radio-card {
	display: flex;
	align-items: center;
	gap: 0.7rem;
	margin-bottom: 0.5rem;
	padding: 0.75rem 0.9rem;
	border: 1px solid var(--line);
	border-radius: var(--radius-sm);
	font-family: var(--font-ui);
	font-size: 0.95rem;
	cursor: pointer;
	transition: border-color 0.2s ease, background-color 0.2s ease;
}

.radio-card:hover {
	border-color: rgba(210, 170, 78, 0.6);
}

.radio-card:has(input:checked) {
	border-color: var(--gold);
	background: rgba(210, 170, 78, 0.1);
}

.radio-card input {
	width: 1.1rem;
	height: 1.1rem;
	margin: 0;
	accent-color: var(--gold);
}

.tirage__draw {
	width: 100%;
}

.tirage__board {
	min-width: 0;
}

.tirage__asked {
	max-width: 60ch;
	margin: 0 0 1.4rem;
	padding-left: 0.9rem;
	border-left: 2px solid var(--gold);
	font-family: var(--font-heading);
	font-size: 1.15rem;
	font-style: italic;
	color: var(--on-night);
	overflow-wrap: anywhere;
}

.tirage__slots {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.6rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.slot {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	grid-template-rows: auto 1fr;
	width: min(100%, 300px);
	min-width: 0;
	margin-inline: auto;
}

.slot__pos {
	margin: 0 0 0.75rem;
	font-family: var(--font-ui);
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-align: center;
	text-transform: uppercase;
	color: var(--gold);
}

.slot__num {
	margin-right: 0.3rem;
	font-family: var(--font-heading);
	font-size: 1.05rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	color: var(--on-night-muted);
	text-transform: none;
	font-variant-caps: all-small-caps;
}

.slot__card {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
}

.slot__placeholder {
	display: grid;
	place-items: center;
	aspect-ratio: 1 / 1.5;
	border: 1.5px dashed rgba(210, 170, 78, 0.45);
	border-radius: 12px;
	color: rgba(210, 170, 78, 0.55);
}

.slot__placeholder-icon {
	width: 30%;
	height: auto;
	aspect-ratio: 1;
}

@media (min-width: 700px) {
	.tirage__slots {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: clamp(12px, 2vw, 22px);
	}

	.slot {
		width: auto;
		margin: 0;
	}

	.slot__placeholder {
		aspect-ratio: 1 / 1.9;
	}
}

/* Retournement en 3D (désactivé sous prefers-reduced-motion). */
/* La hauteur de la carte = la plus grande des deux faces : le dos garde au moins le
   format des lames, la face s'allonge si son texte l'exige ; les trois emplacements
   s'alignent sur le plus haut. */
.flip {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	perspective: 1400px;
}

.flip__inner {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	transform-style: preserve-3d;
	transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.flip.is-revealed .flip__inner {
	transform: rotateY(180deg);
}

.flip__back,
.flip__face {
	grid-area: 1 / 1;
	-webkit-backface-visibility: hidden;
	backface-visibility: hidden;
}

.flip__back {
	position: relative;
	display: block;
	width: 100%;
	min-width: 0;
	padding: 0;
	border: 0;
	border-radius: 12px;
	background: none;
	cursor: pointer;
}

/* Cale de hauteur : le dos garde au moins le format de la lame, calculé sur la seule
   largeur (marge interne en %). Un aspect-ratio sur un dos étiré à la hauteur de la face
   reconvertissait cette hauteur en largeur : la carte débordait de son emplacement. */
.flip__back::before {
	content: "";
	display: block;
	padding-top: 150%;
}

@media (min-width: 700px) {
	.flip__back::before {
		padding-top: 190%;
	}
}

.flip__back .card-back {
	position: absolute;
	inset: 0;
	width: auto;
	height: auto;
	aspect-ratio: auto;
	border-radius: 12px;
	transition: transform 0.25s ease;
}

.flip__back:hover .card-back {
	transform: translateY(-4px);
}

.flip__back:focus-visible {
	outline: 3px solid var(--gold);
	outline-offset: 4px;
}

.flip__hint {
	position: absolute;
	left: 50%;
	bottom: 9%;
	padding: 0.28rem 0.7rem;
	border: 1px solid rgba(210, 170, 78, 0.6);
	border-radius: 999px;
	background: #141B26;
	color: var(--gold);
	font-family: var(--font-ui);
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	transform: translateX(-50%);
}

.flip__face {
	visibility: hidden;
	transform: rotateY(180deg);
}

.flip.is-revealed .flip__face {
	visibility: visible;
}

.flip.is-revealed .flip__back {
	visibility: hidden;
	transition: visibility 0s linear 0.7s;
}

.flip.is-dealt {
	animation: dametrefle-deal 0.55s cubic-bezier(0.2, 0.7, 0.2, 1) both;
	animation-delay: calc(var(--i, 0) * 120ms);
}

@keyframes dametrefle-deal {
	from {
		opacity: 0;
		transform: translateY(18px) rotate(-3deg);
	}

	to {
		opacity: 1;
		transform: none;
	}
}

/* Face révélée : une carte sur papier, liseré de l'élément. */
.lame-face {
	--el: var(--text);
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	min-width: 0;
	padding: 0 0 1.1rem;
	border: 1px solid #1D1A17;
	border-radius: 12px;
	box-shadow: inset 0 0 0 5px var(--surface), inset 0 0 0 6.5px var(--el), 0 18px 34px -22px rgba(0, 0, 0, 0.8);
	outline-offset: 4px;
}

.lame-face.el-feu { --el: #9E2A1E; }
.lame-face.el-eau { --el: #1E4A73; }
.lame-face.el-air { --el: #7A5A12; }
.lame-face.el-terre { --el: #3B6150; }
.lame-face.el-aucun { --el: #1D1A17; }

.lame-face__band {
	margin: 0 1.1rem;
	padding: 0.9rem 0 0.5rem;
	border-bottom: 1px solid var(--el);
	font-family: var(--font-heading);
	font-size: 1.15rem;
	font-weight: 600;
	font-variant-caps: all-small-caps;
	letter-spacing: 0.08em;
	text-align: center;
	color: var(--el);
}

.lame-face__name {
	margin: 0 1rem;
	font-size: 1.45rem;
	font-variant-caps: small-caps;
	line-height: 1.15;
	text-align: center;
}

.lame-face .chips {
	justify-content: center;
	padding: 0 0.9rem;
}

.lame-face__sens {
	margin: 0;
	padding: 0 1.2rem;
	font-size: 0.98rem;
	line-height: 1.55;
}

.lame-face__question {
	margin: 0 1rem;
	padding: 0.7rem 0.85rem;
	border-radius: 8px;
	background: var(--bg);
	font-size: 0.94rem;
	font-style: italic;
	line-height: 1.5;
}

.lame-face__qlabel {
	display: block;
	margin-bottom: 0.2rem;
	font-family: var(--font-ui);
	font-size: 0.7rem;
	font-style: normal;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--muted);
}

.lame-face__link {
	margin: auto 1.2rem 0;
	font-family: var(--font-ui);
	font-size: 0.92rem;
	font-weight: 600;
	color: var(--accent-2);
}

.tirage__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0.6rem;
	margin: 1.6rem 0 0;
}

.tirage__status {
	min-height: 1.5em;
	margin: 1.1rem auto 0;
	max-width: 60ch;
	font-family: var(--font-ui);
	font-size: 0.92rem;
	line-height: 1.5;
	text-align: center;
	color: var(--on-night-muted);
}

.tirage__notice {
	max-width: 62ch;
	padding: 1.4rem 1.5rem;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--night-surface);
}

.tirage__notice p {
	margin: 0 0 0.9rem;
}

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

/* ==========================================================================
   15. Page 404
   ========================================================================== */

.notfound {
	padding-block: clamp(40px, 8vw, 100px);
}

.notfound__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: clamp(24px, 5vw, 64px);
	align-items: center;
}

.notfound__art {
	width: min(240px, 70%);
}

.moon {
	display: block;
	width: 100%;
	height: auto;
}

.moon__rays path {
	fill: none;
	stroke: var(--gold);
	stroke-opacity: 0.55;
	stroke-width: 1.4;
	stroke-linecap: round;
}

.moon__body {
	fill: var(--night-surface);
	stroke: var(--gold);
	stroke-width: 1.6;
	stroke-linejoin: round;
}

.moon__hatch path {
	fill: none;
	stroke: var(--gold);
	stroke-opacity: 0.35;
	stroke-width: 1;
}

.moon__eye {
	fill: var(--gold);
}

.moon__brow {
	fill: none;
	stroke: var(--gold);
	stroke-width: 1.6;
	stroke-linecap: round;
}

.moon__stars {
	color: var(--gold);
}

.notfound__title {
	margin: 0.2rem 0 1rem;
	font-size: var(--h1);
	line-height: 1.08;
	color: var(--on-night);
}

.notfound__title .roman {
	color: var(--gold);
}

.notfound__text > p {
	max-width: 56ch;
	color: var(--on-night-muted);
	line-height: 1.65;
}

.notfound__search {
	max-width: 32rem;
	margin: 1.6rem 0;
}

.notfound .search-form__label {
	color: var(--on-night-muted);
}

.notfound .search-form__input {
	border-color: #8B8577;
	background: var(--night-surface);
	color: var(--on-night);
}

.notfound .search-form__input::placeholder {
	color: var(--on-night-muted);
}

.notfound .search-form__submit {
	background: var(--gold);
	color: #141B26;
}

.notfound__links {
	display: grid;
	gap: 0.6rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

@media (min-width: 760px) {
	.notfound__grid {
		grid-template-columns: minmax(200px, 300px) minmax(0, 1fr);
	}

	.notfound__art {
		width: 100%;
	}
}

/* ==========================================================================
   16. Pied de page (nuit)
   ========================================================================== */

.site-footer {
	margin-top: var(--section);
	padding-block: clamp(28px, 5vw, 52px) 1.6rem;
}

.site-footer__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2.2rem;
}

@media (min-width: 760px) {
	.site-footer__grid {
		grid-template-columns: 1.5fr 1fr 1fr;
		gap: 2.6rem;
	}
}

.site-footer__logo {
	display: inline-flex;
	color: var(--on-night);
	text-decoration: none;
}

.site-footer__logo:hover {
	color: var(--on-night);
}

.site-footer__tagline {
	max-width: 36ch;
	margin: 1rem 0 0.6rem;
	font-family: var(--font-heading);
	font-size: 1.1rem;
	font-style: italic;
	line-height: 1.45;
	color: var(--on-night);
}

.site-footer__disclaimer {
	max-width: 48ch;
	margin: 0;
	font-family: var(--font-ui);
	font-size: 0.85rem;
	line-height: 1.6;
	color: var(--on-night-muted);
}

.site-footer__title {
	margin: 0 0 1rem;
	font-family: var(--font-ui);
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--gold);
}

.site-footer__list {
	display: grid;
	gap: 0.15rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-footer__list a {
	display: inline-flex;
	align-items: center;
	gap: 0.55rem;
	min-height: 36px;
	color: var(--on-night);
	font-family: var(--font-ui);
	font-size: 0.95rem;
	text-decoration: none;
}

.site-footer__list a:hover {
	color: var(--gold);
	text-decoration: underline;
}

.site-footer__icon {
	width: 1rem;
	height: 1rem;
	color: var(--gold);
}

.site-footer__legal {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem 1.6rem;
	margin: 2.4rem 0 0;
	padding-top: 1.2rem;
	border-top: 1px solid rgba(239, 230, 210, 0.14);
	font-family: var(--font-ui);
	font-size: 0.82rem;
	color: var(--on-night-muted);
}

.site-footer__legal a {
	color: var(--gold);
}

.site-footer__legal a:hover {
	color: var(--gold-hover);
}

/* --------------------------------------------------------------------------
   Affiliation Amazon (mu-plugin lma-amazon) : mention discrète en tête
   d'article, ligne de pied de page, lien-bouton sobre.
   -------------------------------------------------------------------------- */

.lma-affiliation {
	max-width: var(--measure);
	margin: 0 0 1.4rem;
	padding: 0.7rem 1rem;
	border: 1px solid var(--line);
	border-left: 3px solid var(--ochre);
	border-radius: var(--radius-sm);
	background: var(--surface);
	font-family: var(--font-ui);
	font-size: 0.85rem;
	font-style: normal;
	line-height: 1.55;
	color: var(--muted);
}

/* Dans la colonne de lecture : toute la largeur du texte (66ch calculés sur la
   petite police UI donneraient un encadré plus étroit que les paragraphes), et
   le premier intertitre qui suit la mention ne reprend pas sa grande marge haute. */
.prose > .lma-affiliation {
	max-width: none;
	margin-bottom: 1.4rem;
	font-size: 0.85rem;
}

.prose > .lma-affiliation:first-child + * {
	margin-top: 0;
}

.lma-affiliation a {
	color: inherit;
	text-decoration: underline;
}

.lma-affiliation a:hover {
	color: var(--text);
}

.lma-affiliation--footer,
.site-footer .lma-affiliation {
	max-width: none;
	margin: 1.2rem 0 0;
	padding: 0;
	border: 0;
	background: none;
	font-size: 0.8rem;
	color: var(--on-night-muted);
}

.site-footer .lma-affiliation a {
	color: var(--gold);
}

.lma-amazon,
.prose a.lma-amazon {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	padding: 0.2rem 0.8rem;
	border: 1px solid var(--line-strong);
	border-radius: 999px;
	background: var(--surface);
	font-family: var(--font-ui);
	font-size: 0.85rem;
	font-weight: 600;
	line-height: 1.5;
	color: var(--text);
	text-decoration: none;
	white-space: nowrap;
	transition: border-color 0.2s ease, color 0.2s ease;
}

.lma-amazon:hover,
.prose a.lma-amazon:hover {
	border-color: var(--accent);
	color: var(--accent);
	text-decoration: none;
}

.on-night .lma-amazon {
	border-color: rgba(210, 170, 78, 0.6);
	background: transparent;
	color: var(--on-night);
}

/* ==========================================================================
   17. Mouvement réduit, impression
   ========================================================================== */

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

	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-delay: 0s !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		transition-delay: 0s !important;
	}

	a.lame:hover,
	.card:hover,
	.term-card:hover,
	.rubrique-tile:hover,
	.arcane-nav__link:hover,
	.button:hover,
	.flip__back:hover .card-back {
		transform: none;
	}

	.hero__deck:hover .deck__card--1 {
		transform: rotate(-15deg) translateX(-14px);
	}

	.hero__deck:hover .deck__card--3 {
		transform: rotate(15deg) translateX(14px);
	}
}

@media print {
	.site-header,
	.site-footer,
	.skip-link,
	.toc,
	.arcane-nav,
	.cta-tirage,
	.related,
	.back-index,
	.tirage {
		display: none !important;
	}

	body {
		background: #fff;
		color: #000;
		font-size: 11pt;
	}

	.on-night,
	.question {
		background: #fff;
		color: #000;
		border: 1px solid #999;
	}

	.question__text {
		color: #000;
	}

	.prose a::after {
		content: " (" attr(href) ")";
		font-size: 0.85em;
		word-break: break-all;
	}

	/* Liens de recherche Amazon : l'adresse taguée n'apporte rien sur papier. */
	.prose a[href*="amazon.fr"]::after {
		content: none;
	}
}
