/* Tokens de docs/02 §6 — dark-first, un seul accent, beaucoup de vide.
   L'accent ne dépasse jamais 5 % de la surface d'un écran : c'est ce ratio qui
   produit la perception premium, pas la couleur elle-même. */

:root {
	--ink-900: #0b0c0e;
	--ink-800: #141619;
	--ink-700: #1c1f24;
	--border: #23262b;
	--mute-400: #6b7280;
	--mute-300: #9ca3af;
	--paper-100: #f5f6f7;

	--signal-500: #00d46f;
	--signal-400: #33e08f;

	--radius-sm: 6px;
	--radius-md: 10px;
	--radius-lg: 14px;

	--font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--font-mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, monospace;

	--ease: cubic-bezier(0.2, 0, 0, 1);
}

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

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

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		transition-duration: 0.01ms !important;
	}
}

body {
	margin: 0;
	background: var(--ink-900);
	color: var(--paper-100);
	font-family: var(--font);
	font-size: 15px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

.wrap {
	width: 100%;
	max-width: 68rem;
	margin-inline: auto;
	padding-inline: 24px;
}

/* ── En-tête ─────────────────────────────────────────────────────────────── */

.site-header {
	border-bottom: 1px solid var(--border);
	position: sticky;
	top: 0;
	background: color-mix(in srgb, var(--ink-900) 88%, transparent);
	backdrop-filter: blur(8px);
	z-index: 10;
}

.site-header .wrap {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-height: 64px;
}

.wordmark {
	font-size: 1.0625rem;
	font-weight: 600;
	letter-spacing: -0.02em;
	color: var(--paper-100);
	text-decoration: none;
	white-space: nowrap;
}

.wordmark span {
	color: var(--signal-500);
}

.site-header nav {
	display: flex;
	align-items: center;
	gap: 24px;
	font-size: 0.875rem;
}

.site-header nav a {
	color: var(--mute-300);
	text-decoration: none;
	transition: color 120ms var(--ease);
}

.site-header nav a:hover {
	color: var(--paper-100);
}

/* ── Typographie ─────────────────────────────────────────────────────────── */

h1 {
	font-size: clamp(2rem, 5.5vw, 3.5rem);
	line-height: 1.05;
	letter-spacing: -0.035em;
	font-weight: 600;
	margin: 0;
	max-width: 18ch;
}

h2 {
	font-size: clamp(1.375rem, 3vw, 1.875rem);
	line-height: 1.2;
	letter-spacing: -0.02em;
	font-weight: 600;
	margin: 0 0 16px;
}

h3 {
	font-size: 1.0625rem;
	line-height: 1.3;
	letter-spacing: -0.01em;
	font-weight: 600;
	margin: 0 0 8px;
}

p {
	margin: 0 0 16px;
	color: var(--mute-300);
}

.lead {
	font-size: 1.0625rem;
	max-width: 52ch;
	margin-top: 24px;
}

a {
	color: var(--paper-100);
}

/* ── Sections ────────────────────────────────────────────────────────────── */

section {
	padding-block: clamp(48px, 9vw, 96px);
	border-bottom: 1px solid var(--border);
}

.hero {
	padding-block: clamp(56px, 12vw, 128px);
}

.grid {
	display: grid;
	gap: 24px;
	grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
	margin-top: 32px;
}

.card {
	background: var(--ink-800);
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	padding: 24px;
}

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

.step-num {
	font-family: var(--font-mono);
	font-size: 0.75rem;
	color: var(--signal-500);
	display: block;
	margin-bottom: 12px;
	letter-spacing: 0.02em;
}

/* Le seul bouton d'accent de la page. */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding-inline: 20px;
	border-radius: var(--radius-md);
	background: var(--signal-500);
	color: var(--ink-900);
	font-weight: 600;
	font-size: 0.9375rem;
	text-decoration: none;
	transition: background 120ms var(--ease);
}

.btn:hover {
	background: var(--signal-400);
}

.btn[aria-disabled="true"] {
	background: var(--ink-700);
	color: var(--mute-400);
	border: 1px solid var(--border);
	cursor: default;
}

.cta-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 16px;
	margin-top: 32px;
}

.note {
	font-size: 0.8125rem;
	color: var(--mute-400);
}

/* ── Contenu long : pages légales ────────────────────────────────────────── */

.prose {
	max-width: 44rem;
	padding-block: clamp(40px, 7vw, 72px);
}

.prose h1 {
	font-size: clamp(1.75rem, 4vw, 2.5rem);
	max-width: none;
	margin-bottom: 8px;
}

.prose h2 {
	font-size: 1.1875rem;
	margin-top: 40px;
}

.prose ul {
	color: var(--mute-300);
	padding-left: 20px;
	margin: 0 0 16px;
}

.prose li {
	margin-bottom: 8px;
}

.prose .updated {
	font-family: var(--font-mono);
	font-size: 0.75rem;
	color: var(--mute-400);
	margin-bottom: 32px;
}

.prose strong {
	color: var(--paper-100);
	font-weight: 600;
}

/* ── Pied de page ────────────────────────────────────────────────────────── */

.site-footer {
	padding-block: 40px;
	color: var(--mute-400);
	font-size: 0.875rem;
}

.site-footer .wrap {
	display: flex;
	flex-wrap: wrap;
	gap: 16px 32px;
	justify-content: space-between;
	align-items: center;
}

.site-footer nav {
	display: flex;
	flex-wrap: wrap;
	gap: 24px;
}

.site-footer a {
	color: var(--mute-300);
	text-decoration: none;
}

.site-footer a:hover {
	color: var(--paper-100);
}

:where(a, .btn):focus-visible {
	outline: 2px solid var(--signal-500);
	outline-offset: 3px;
	border-radius: var(--radius-sm);
}
