* {
	box-sizing: border-box;
}

body {
	font-family: system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
	margin: 0;
	padding: 0;
	background-color: #18191f;
	color: #c8d0e0;
	line-height: 1.6;
}

/* ─── Header ─────────────────────────────────────────────── */

.site-header {
	background-color: #1c1d27;
	border-bottom: 1px solid rgba(255, 255, 255, 0.06);
	padding: 16px 32px;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.site-header h1 {
	margin: 0;
	font-size: 1.05em;
	font-weight: 800;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.home-link {
	color: #e8edf8;
	text-decoration: none;
	transition: opacity 0.2s;
}

.home-link:hover {
	opacity: 0.75;
}

/* Language pill switcher */
.language-selector {
	display: flex;
	align-items: center;
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 20px;
	padding: 3px;
	gap: 2px;
}

.language-selector a {
	color: #8892a4;
	text-decoration: none;
	font-size: 0.7em;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	padding: 4px 11px;
	border-radius: 16px;
	transition: color 0.2s, background 0.2s;
}

.language-selector a:hover {
	color: #c8d0e0;
}

.language-selector a.active {
	background: rgba(255, 255, 255, 0.1);
	color: #e8edf8;
}

/* ─── Hero ───────────────────────────────────────────────── */

.hero {
	text-align: center;
	padding: 24px 20px 12px;
}

.hero p {
	font-size: 1.4em;
	font-weight: 600;
	letter-spacing: -0.015em;
	color: #c8d0e0;
	margin: 0;
}

/* ─── Cards grid ─────────────────────────────────────────── */

.tools-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
	justify-content: center;
	padding: 20px 20px 72px;
	max-width: 840px;
	margin: 0 auto;
}

.tool-card {
	background: #1c1d27;
	border: 1px solid rgba(255, 255, 255, 0.07);
	border-radius: 16px;
	width: 265px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	position: relative;
	transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

/* Accent line at top, revealed on hover */
.tool-card::before {
	content: '';
	position: absolute;
	top: 0;
	left: 20%;
	right: 20%;
	height: 1px;
	background: linear-gradient(90deg, transparent, #2895b2, transparent);
	opacity: 0;
	transition: opacity 0.3s ease, left 0.3s ease, right 0.3s ease;
}

.tool-card:hover {
	border-color: rgba(40, 149, 178, 0.28);
	box-shadow: 0 0 0 1px rgba(40, 149, 178, 0.07), 0 20px 48px rgba(0, 0, 0, 0.38);
	transform: translateY(-4px);
}

.tool-card:hover::before {
	opacity: 1;
	left: 0;
	right: 0;
}

.tool-card.coming-soon {
	opacity: 0.42;
}

.tool-card.coming-soon:hover {
	transform: none;
	box-shadow: none;
	border-color: rgba(255, 255, 255, 0.07);
}

.tool-card.coming-soon::before {
	display: none;
}

.card-stat {
	display: inline-block;
	background: rgba(40, 149, 178, 0.12);
	border: 1px solid rgba(40, 149, 178, 0.25);
	color: #2895b2;
	font-size: 0.70em;
	font-weight: 700;
	padding: 3px 9px;
	border-radius: 20px;
	letter-spacing: 0.04em;
	margin-bottom: 10px;
}

.card-image {
	width: 100%;
	height: 200px;
	object-fit: contain;
	background-color: #14151e;
	padding: 16px;
}

.card-image-placeholder {
	width: 100%;
	height: 150px;
	background-color: #14151e;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 2.6em;
	opacity: 0.25;
}

.card-body {
	padding: 18px 22px 22px;
	flex: 1;
	display: flex;
	flex-direction: column;
}

.card-body h2 {
	font-size: 0.95em;
	font-weight: 700;
	letter-spacing: -0.01em;
	margin: 0 0 7px;
	color: #e8edf8;
}

.card-body p {
	font-size: 0.83em;
	color: #9aa3b8;
	line-height: 1.55;
	margin: 0 0 18px;
	flex: 1;
	text-align: justify;
}

.card-link {
	display: inline-block;
	background-color: #2895b2;
	color: white;
	text-decoration: none;
	padding: 8px 16px;
	border-radius: 8px;
	font-size: 0.82em;
	font-weight: 700;
	letter-spacing: 0.01em;
	text-align: center;
	transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

/* Étire la zone cliquable à toute la carte (.tool-card a position: relative) */
.card-link::after {
	content: '';
	position: absolute;
	inset: 0;
}

.card-link:hover {
	background-color: #3aacc8;
	box-shadow: 0 0 20px rgba(40, 149, 178, 0.3);
}

.badge-soon {
	display: inline-block;
	color: #8892a4;
	font-size: 0.78em;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	cursor: default;
}

/* ─── Responsive ─────────────────────────────────────────── */

@media (max-width: 600px) {
	.site-header {
		padding: 12px 16px;
	}

	.tool-card {
		width: 100%;
		max-width: 340px;
	}

	.hero p {
		font-size: 1.15em;
	}
}
