/* ============================================================
   perdu.nsi.xyz — feuille de style
   Thème sombre, sobre, lisible. Aucun framework.
   ============================================================ */

/* --- Réglages généraux --- */
:root {
	--fond: #0a0e1a;        /* bleu nuit */
	--texte: #e8eefc;       /* blanc cassé */
	--accent: #6ea8ff;      /* bleu clair (liens, astérisque) */
	--carte: rgba(20, 27, 45, 0.72);
}

* { box-sizing: border-box; }

html, body {
	margin: 0;
	min-height: 100%;
}

body {
	background: var(--fond);
	color: var(--texte);
	font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	overflow-x: hidden;
}

/* --- Le ciel étoilé (canvas) occupe tout l'écran, derrière la carte --- */
#ciel {
	position: fixed;
	inset: 0;
	width: 100%;
	height: 100%;
	z-index: -1;
}

/* --- La carte centrale --- */
.carte {
	position: relative;
	max-width: 640px;
	width: 100%;
	background: var(--carte);
	border: 1px solid rgba(110, 168, 255, 0.25);
	border-radius: 16px;
	padding: 40px 32px;
	text-align: center;
	backdrop-filter: blur(4px);
}

h1 {
	margin: 0 0 8px;
	font-size: clamp(1.6rem, 4vw, 2.4rem);
}

p { line-height: 1.6; }

/* --- Le repère « vous êtes ici » --- */
.boussole {
	font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
	font-size: clamp(0.8rem, 2.5vw, 1rem);
	color: #b8c6e6;
	/* Pas de barre de défilement : le texte passe à la ligne si l'écran est étroit. */
	white-space: pre-wrap;
	overflow-wrap: anywhere;
}

/* L'astérisque pulse doucement pour attirer l'œil sur « vous êtes ici ». */
.ici {
	color: var(--accent);
	font-weight: bold;
	display: inline-block;
	animation: pulse 1.6s ease-in-out infinite;
}

@keyframes pulse {
	0%, 100% { transform: scale(1);   opacity: 1;   }
	50%      { transform: scale(1.5); opacity: 0.6; }
}

/* --- Liens --- */
a {
	color: var(--accent);
	text-decoration: none;
	border-bottom: 1px dotted currentColor;
}
a:hover { color: #ffffff; }

.signature {
	font-size: 0.95rem;
	color: #c4d0ea;
}

/* Petit curseur qui clignote, comme dans un terminal. */
.curseur { animation: clignote 1s steps(1) infinite; }
@keyframes clignote { 50% { opacity: 0; } }

/* --- Respect des préférences d'accessibilité --- */
@media (prefers-reduced-motion: reduce) {
	.ici, .curseur { animation: none; }
}
