/* ============================================================
   basthon.nsi.xyz — page de choix (sobre, sans dépendance)
   ============================================================ */

:root {
	--fond: #f5f6fb;
	--carte: #ffffff;
	--texte: #1b1e28;
	--doux: #5a5f70;
	--accent: #4a5cc4;
	--bord: #e2e4ef;
}

@media (prefers-color-scheme: dark) {
	:root {
		--fond: #10121a;
		--carte: #1b1e2a;
		--texte: #e7e9f3;
		--doux: #b3b8cc;
		--accent: #b8c2ff;
		--bord: #2c3040;
	}
}

* { box-sizing: border-box; }

body {
	margin: 0;
	min-height: 100vh;
	background: var(--fond);
	color: var(--texte);
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 24px;
	gap: 20px;
}

.carte { width: 100%; max-width: 760px; }

.entete { text-align: center; margin-bottom: 24px; }
.entete h1 { margin: 0 0 6px; font-size: clamp(1.7rem, 5vw, 2.4rem); }
.entete p { margin: 0; color: var(--doux); }

.choix {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 16px;
}

.outil {
	display: block;
	background: var(--carte);
	border: 1px solid var(--bord);
	border-radius: 16px;
	padding: 24px 20px;
	text-decoration: none;
	color: inherit;
	transition: transform .15s, box-shadow .15s, border-color .15s;
}
.outil:hover {
	transform: translateY(-3px);
	border-color: var(--accent);
	box-shadow: 0 8px 24px rgba(74, 92, 196, .18);
}
.outil .icone {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	border-radius: 14px;
	background: color-mix(in srgb, var(--accent) 16%, transparent);
	color: var(--accent);
	font-size: 1.2rem;
	font-weight: 700;
	margin-bottom: 14px;
}
.outil h2 { margin: 0 0 6px; font-size: 1.2rem; }
.outil p { margin: 0; color: var(--doux); font-size: .95rem; line-height: 1.5; }

.pied { color: var(--doux); font-size: .85rem; }
.pied a { color: var(--accent); }

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

@media (prefers-reduced-motion: reduce) {
	.outil { transition: none; }
	.outil:hover { transform: none; }
}
