:root {
	--bg: #f7f7f9;
	--card: #fff;
	--muted: #666;
	--accent: #0b5fff;
}

* {
	box-sizing: border-box
}

body {
	font-family: 'Montserrat', Inter, system-ui, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
	background: var(--bg);
	color: #111;
	margin: 0;
	min-height: 100vh;
	display: flex;
	flex-direction: column
}
header{
	background: white;
	border-bottom: 1px solid #e6e6e9;
}
.site-header {
	min-height: 110px;
	max-width: 1000px;
	width: calc(100% - 2rem);
	margin: 0 auto;
	padding: 1rem;
	flex: 1;
}

.site-header h1 {
	margin: 0;
	font-size: 1.25rem
}
.logo {
	height: 80px;
	margin-right: 15px;
	vertical-align: middle;
}

.subtitle {
	margin: 0;
	color: var(--muted);
	font-size: 0.95rem
}

.container {
	/* conteneur centré et responsive */
	max-width: 1000px;
	width: calc(100% - 2rem);
	margin: 0 auto;
	padding: 1rem;
	flex: 1;
}

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

.category-card {
	background: var(--card);
	padding: 1rem;
	border-radius: 8px;
	box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
	display: flex;
	flex-direction: column;
	justify-content: space-between
}

.category-card a {
	display: block;
	text-decoration: none;
	color: inherit
}

.category-card h2 {
	margin: 0 0.5rem 0.5rem 0;
	font-size: 1rem
}

.category-meta {
	color: var(--muted);
	font-size: 0.85rem
}

.tracks {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 0.75rem;
	align-items: start;
}

.track {
	background: var(--card);
	padding: 0.6rem;
	border-radius: 8px;
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
	font-size: 0.95rem;
}

.track .title {
	font-weight: 600;
	font-size: 0.95rem;
}

.audio-controls {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	background: transparent;
}

.play-btn {
	border: none;
	background: var(--accent);
	color: white;
	width: 36px;
	height: 36px;
	border-radius: 6px;
	font-size: 1rem;
	display: inline-grid;
	place-items: center;
	cursor: pointer;
}

.time {
	font-size: 0.85rem;
	color: var(--muted);
	min-width: 80px;
}

.progress {
	-webkit-appearance: none;
	appearance: none;
	width: 100%;
	max-width: 240px;
}

.progress::-webkit-slider-runnable-track { height: 6px; background: #e6e6e9; border-radius: 6px; }
.progress::-webkit-slider-thumb { -webkit-appearance: none; width: 12px; height: 12px; background: var(--accent); border-radius: 50%; margin-top: -3px; }
.progress:focus { outline: none }

/* hide native audio element visually (we keep it in DOM for playback) */
audio[style] { display: none !important }

.play-btn:focus { outline: 2px solid rgba(11,95,255,0.25); }

.back-btn {
	display: inline-block;
	margin-top: 0.5rem;
	color: var(--accent);
	text-decoration: none
}

.site-footer {
	padding: 0.75rem 1rem;
	border-top: 1px solid #eee;
	color: var(--muted);
	font-size: 0.9rem
}

@media (max-width:600px) {
	.site-header h1 {
		font-size: 1rem
	}
}

@media (max-width:900px) {
	/* one column on smaller screens */
	.tracks {
		grid-template-columns: 1fr;
	}
}