/* ==========================================================================
   Capture by Mael — page temporaire
   Aucune police externe, aucun script, aucun cookie.
   ========================================================================== */

:root {
	--cbm-noir:    #090C0A;
	--cbm-clair:   #F2F4F1;
	--cbm-lichen:  #8C9E8F;
	--cbm-trait:   rgba(242, 244, 241, 0.14);
}

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

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

body {
	margin: 0;
	min-height: 100svh;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: clamp(1.5rem, 6vw, 4rem);
	background-color: var(--cbm-noir);
	color: var(--cbm-clair);
	font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

/* --- Atmosphère : lumière de sous-bois, très lente ------------------------ */

body::before {
	content: "";
	position: fixed;
	inset: -25%;
	z-index: 0;
	pointer-events: none;
	background:
		radial-gradient(58% 46% at 50% 22%, rgba(150, 176, 148, 0.13), transparent 68%),
		radial-gradient(70% 50% at 50% 108%, rgba(126, 100, 58, 0.10), transparent 70%);
	animation: cbm-derive 46s ease-in-out infinite alternate;
}

body::after {
	content: "";
	position: fixed;
	inset: 0;
	z-index: 0;
	pointer-events: none;
	background: radial-gradient(120% 90% at 50% 45%, transparent 42%, rgba(0, 0, 0, 0.55) 100%);
}

@keyframes cbm-derive {
	from { transform: translate3d(-2.5%, -1.5%, 0) scale(1);    }
	to   { transform: translate3d( 2.5%,  1.5%, 0) scale(1.07); }
}

/* --- Contenu -------------------------------------------------------------- */

.cbm-scene {
	position: relative;
	z-index: 1;
	width: 100%;
	max-width: 620px;
	text-align: center;
}

.cbm-titre {
	margin: 0;
	font-size: inherit;
	font-weight: inherit;
	line-height: 1;
}

.cbm-blason {
	display: block;
	width: min(78vw, 520px);
	max-width: 100%;
	height: auto;
	margin: 0 auto;
	user-select: none;
	-webkit-user-select: none;
	-webkit-user-drag: none;
	-webkit-touch-callout: none;
}

.cbm-mot {
	display: block;
	font-size: clamp(1.9rem, 8vw, 3.4rem);
	font-weight: 700;
	line-height: 1.12;
	letter-spacing: 0.05em;
	text-transform: uppercase;
}

.cbm-signature {
	margin: clamp(1.6rem, 4.5vw, 2.4rem) 0 0;
	font-family: Georgia, "Iowan Old Style", "Times New Roman", serif;
	font-style: italic;
	font-size: clamp(1.02rem, 3vw, 1.35rem);
	font-weight: 400;
	line-height: 1.45;
	color: rgba(242, 244, 241, 0.78);
}

.cbm-filet {
	width: 64px;
	height: 1px;
	margin: clamp(2rem, 5.5vw, 2.9rem) auto;
	border: 0;
	background: linear-gradient(90deg, transparent, var(--cbm-trait) 22%, var(--cbm-trait) 78%, transparent);
}

.cbm-statut {
	margin: 0;
	font-size: clamp(0.63rem, 1.7vw, 0.72rem);
	font-weight: 500;
	letter-spacing: 0.34em;
	text-indent: 0.34em;
	text-transform: uppercase;
	color: var(--cbm-lichen);
}

.cbm-pied {
	position: fixed;
	inset: auto 0 clamp(1rem, 3.5vw, 1.9rem) 0;
	z-index: 1;
	margin: 0;
	padding: 0 1.5rem;
	font-size: 0.68rem;
	letter-spacing: 0.08em;
	color: rgba(242, 244, 241, 0.32);
}

/* --- Apparition ----------------------------------------------------------- */

.cbm-titre,
.cbm-signature,
.cbm-filet,
.cbm-statut,
.cbm-pied {
	opacity: 0;
	transform: translateY(12px);
	animation: cbm-entree 1.15s cubic-bezier(0.22, 0.68, 0.24, 1) forwards;
}

.cbm-titre     { animation-delay: 0.10s; }
.cbm-signature { animation-delay: 0.42s; }
.cbm-filet     { animation-delay: 0.62s; }
.cbm-statut    { animation-delay: 0.76s; }
.cbm-pied      { animation-delay: 1.00s; }

@keyframes cbm-entree {
	to { opacity: 1; transform: translateY(0); }
}

/* --- Écrans courts (téléphone en paysage) --------------------------------- */

@media (max-height: 460px) {
	body { align-items: flex-start; padding-top: 2rem; padding-bottom: 4.5rem; }
	.cbm-blason { width: min(62vw, 380px); }
	.cbm-filet  { margin-block: 1.4rem; }
}

/* --- Respect des préférences utilisateur ---------------------------------- */

@media (prefers-reduced-motion: reduce) {
	body::before { animation: none; }

	.cbm-titre,
	.cbm-signature,
	.cbm-filet,
	.cbm-statut,
	.cbm-pied {
		opacity: 1;
		transform: none;
		animation: none;
	}
}

@media (prefers-contrast: more) {
	.cbm-signature { color: var(--cbm-clair); }
	.cbm-statut    { color: #B6C6B8; }
	.cbm-pied      { color: rgba(242, 244, 241, 0.6); }
}
