:root {
	--sm-accent: #b45309;
	--sm-dark: #1f2937;
	--sm-muted: #6b7280;
	--sm-border: #e5e7eb;
	--sm-bg-pale: #f9fafb;
}

.sm-song-card {
	max-width: 760px;
	margin: 0 auto;
	background: #fff;
	border: 1px solid var(--sm-border);
	border-radius: 14px;
	padding: 28px 32px;
	font-family: 'DM Sans', system-ui, sans-serif;
}
.sm-song-title {
	font-size: 26px;
	margin: 0 0 4px;
	color: var(--sm-dark);
}
.sm-song-artist {
	color: var(--sm-muted);
	margin: 0 0 10px;
}
.sm-song-meta span {
	display: inline-block;
	background: var(--sm-bg-pale);
	border: 1px solid var(--sm-border);
	border-radius: 20px;
	padding: 3px 12px;
	font-size: 13px;
	margin-right: 6px;
	margin-bottom: 6px;
	color: var(--sm-dark);
}
.sm-chords-used {
	font-size: 13px;
	color: var(--sm-muted);
	margin-top: 8px;
}

.sm-song-toolbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin: 18px 0;
	padding: 10px;
	background: var(--sm-bg-pale);
	border-radius: 10px;
}
.sm-song-toolbar button {
	border: 1px solid var(--sm-border);
	background: #fff;
	border-radius: 8px;
	padding: 6px 12px;
	font-size: 13px;
	cursor: pointer;
}
.sm-song-toolbar button:hover {
	background: var(--sm-bg-pale);
}
.sm-transpose-label {
	font-weight: 700;
	min-width: 24px;
	text-align: center;
	display: inline-block;
}

.sm-song-content {
	font-family: Consolas, Monaco, monospace;
	font-size: 15px;
	line-height: 2.1;
}
.sm-song-line {
	display: block;
	white-space: pre-wrap;
}
.sm-chord {
	display: inline-block;
	color: var(--sm-accent);
	font-weight: 700;
	position: relative;
	top: -0.15em;
	font-size: 0.9em;
}
.sm-lyric {
	white-space: pre-wrap;
}
.sm-song-section {
	font-weight: 700;
	text-transform: uppercase;
	font-size: 12px;
	letter-spacing: .05em;
	color: var(--sm-muted);
	margin: 16px 0 4px;
}

/* Vue scène : plein écran, fond sombre, gros texte */
.sm-song-card.sm-scene-active {
	position: fixed;
	inset: 0;
	z-index: 9999;
	max-width: none;
	border-radius: 0;
	background: #111827;
	color: #f9fafb;
	overflow-y: auto;
	padding: 40px 60px;
}
.sm-song-card.sm-scene-active .sm-song-title,
.sm-song-card.sm-scene-active .sm-song-artist,
.sm-song-card.sm-scene-active .sm-song-meta span,
.sm-song-card.sm-scene-active .sm-chords-used {
	color: #f9fafb;
}
.sm-song-card.sm-scene-active .sm-song-content {
	font-size: 22px;
	line-height: 2.4;
}
.sm-song-card.sm-scene-active .sm-chord {
	color: #fbbf24;
}
.sm-song-card.sm-scene-active .sm-song-toolbar {
	background: rgba(255,255,255,.08);
}
.sm-song-card.sm-scene-active .sm-song-toolbar button {
	background: rgba(255,255,255,.1);
	border-color: rgba(255,255,255,.2);
	color: #f9fafb;
}

/* Répertoire */
.sm-repertoire-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 24px;
}
.sm-repertoire-filters input,
.sm-repertoire-filters select {
	padding: 8px 12px;
	border: 1px solid var(--sm-border);
	border-radius: 8px;
}
.sm-repertoire-filters button {
	padding: 8px 16px;
	border-radius: 8px;
	border: none;
	background: var(--sm-dark);
	color: #fff;
	cursor: pointer;
}
.sm-repertoire-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 16px;
}
.sm-repertoire-card {
	display: block;
	border: 1px solid var(--sm-border);
	border-radius: 12px;
	padding: 14px;
	text-decoration: none;
	color: inherit;
	transition: box-shadow .2s;
}
.sm-repertoire-card:hover {
	box-shadow: 0 4px 14px rgba(0,0,0,.08);
}
.sm-repertoire-card img {
	width: 100%;
	border-radius: 8px;
	margin-bottom: 8px;
}
.sm-repertoire-card h3 {
	font-size: 16px;
	margin: 0 0 2px;
}
.sm-repertoire-artist {
	color: var(--sm-muted);
	font-size: 13px;
	margin: 0;
}
.sm-repertoire-meta {
	font-size: 12px;
	color: var(--sm-accent);
	margin: 4px 0 0;
}

.sm-notice {
	padding: 14px 18px;
	background: #fef3c7;
	border-left: 4px solid var(--sm-accent);
	border-radius: 0 8px 8px 0;
}

/* Setlist imprimable */
.sm-setlist-song-break {
	page-break-after: always;
	margin-bottom: 40px;
}

@media print {
	.no-print { display: none !important; }
	.sm-song-card { border: none; }
}

@media (max-width: 640px) {
	.sm-song-card { padding: 18px; }
	.sm-song-card.sm-scene-active { padding: 20px; }
}
