/* La Fée Perso — page d'attente (statique, en attendant le CMS Sitecrea) */

@font-face {
	font-family: "Cormorant Garamond";
	src: url("../fonts/cormorant-garamond-500-normal.woff2") format("woff2");
	font-weight: 500;
	font-style: normal;
	font-display: swap;
}

@font-face {
	font-family: "Cormorant Garamond";
	src: url("../fonts/cormorant-garamond-500-italic.woff2") format("woff2");
	font-weight: 500;
	font-style: italic;
	font-display: swap;
}

@font-face {
	font-family: "Jost";
	src: url("../fonts/jost-variable.woff2") format("woff2");
	font-weight: 300 500;
	font-style: normal;
	font-display: swap;
}

:root {
	--nuit: #0b1016;
	--or: #d9b27c;
	--or-clair: #f1d9b2;
	--poudre: #e8c4b8;
	--texte: #efe7dc;
	--texte-doux: rgba(239, 231, 220, 0.72);
}

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

html,
body {
	margin: 0;
	height: 100%;
	background: var(--nuit);
	color: var(--texte);
}

body {
	font-family: "Jost", "Segoe UI", system-ui, sans-serif;
	font-weight: 300;
	-webkit-font-smoothing: antialiased;
}

.scene {
	position: relative;
	min-height: 100vh;
	min-height: 100svh;
	display: flex;
	align-items: center;
	overflow: hidden;
	isolation: isolate;
}

/* L'image couvre tout l'écran ; la fée reste calée à droite */
.scene__image,
.scene__image img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	z-index: -2;
}

.scene__image img {
	object-fit: cover;
	object-position: 78% 50%;
	animation: apparition 1.6s ease-out both;
}

/* Voile qui garantit la lisibilité du texte à gauche */
.scene::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: linear-gradient(90deg, rgba(11, 16, 22, 0.85) 0%, rgba(11, 16, 22, 0.55) 38%, rgba(11, 16, 22, 0) 62%);
}

.scene__texte {
	width: min(560px, 44vw);
	margin-left: clamp(24px, 8vw, 140px);
	animation: montee 1.2s 0.3s ease-out both;
}

.surtitre {
	margin: 0 0 1.2rem;
	font-size: 0.78rem;
	font-weight: 400;
	letter-spacing: 0.32em;
	text-transform: uppercase;
	color: var(--or);
}

.surtitre::after {
	content: "";
	display: block;
	width: 48px;
	height: 1px;
	margin-top: 1.2rem;
	background: linear-gradient(90deg, var(--or), transparent);
}

h1 {
	margin: 0;
	font-family: "Cormorant Garamond", Georgia, serif;
	font-weight: 500;
	font-size: clamp(3.2rem, 7vw, 6.4rem);
	line-height: 0.95;
	letter-spacing: -0.01em;
	color: var(--texte);
}

h1 em {
	font-style: italic;
	color: var(--or-clair);
}

.accroche {
	margin: 1.6rem 0 2.4rem;
	max-width: 30em;
	font-size: clamp(1rem, 1.3vw, 1.15rem);
	line-height: 1.7;
	color: var(--texte-doux);
}

.statut {
	display: inline-flex;
	align-items: center;
	gap: 0.75rem;
	margin: 0;
	padding: 0.75rem 1.25rem;
	border: 1px solid rgba(217, 178, 124, 0.35);
	border-radius: 999px;
	font-size: 0.82rem;
	letter-spacing: 0.06em;
	color: var(--or-clair);
	background: rgba(11, 16, 22, 0.35);
	-webkit-backdrop-filter: blur(6px);
	backdrop-filter: blur(6px);
}

.statut__point {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--or);
	box-shadow: 0 0 0 0 rgba(217, 178, 124, 0.6);
	animation: pulsation 2.4s ease-out infinite;
}

.pied {
	position: absolute;
	left: clamp(24px, 8vw, 140px);
	bottom: 1.6rem;
	font-size: 0.75rem;
	letter-spacing: 0.08em;
	color: rgba(239, 231, 220, 0.4);
}

/* Mobile : cadrage portrait sur la fée, texte posé en bas sur un dégradé */
@media (max-width: 760px), (orientation: portrait) and (max-width: 1100px) {
	.scene {
		align-items: flex-end;
		padding-bottom: 4.5rem;
	}

	.scene__image img {
		object-position: 30% 20%;
	}

	.scene::before {
		background: linear-gradient(180deg, rgba(11, 16, 22, 0) 30%, rgba(11, 16, 22, 0.75) 58%, var(--nuit) 82%);
	}

	.scene__texte {
		width: auto;
		margin: 0 clamp(24px, 6vw, 64px);
	}

	.surtitre {
		margin-bottom: 0.9rem;
	}

	.surtitre::after {
		margin-top: 0.9rem;
	}

	.accroche {
		margin: 1.1rem 0 1.6rem;
	}

	.pied {
		left: clamp(24px, 6vw, 64px);
	}
}

@keyframes apparition {
	from {
		opacity: 0;
		transform: scale(1.04);
	}
	to {
		opacity: 1;
		transform: scale(1);
	}
}

@keyframes montee {
	from {
		opacity: 0;
		transform: translateY(16px);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

@keyframes pulsation {
	0% {
		box-shadow: 0 0 0 0 rgba(217, 178, 124, 0.6);
	}
	70% {
		box-shadow: 0 0 0 10px rgba(217, 178, 124, 0);
	}
	100% {
		box-shadow: 0 0 0 0 rgba(217, 178, 124, 0);
	}
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation: none !important;
	}
}
