/* Variables CSS - Design Beatpaws Mobile App */
:root {
	--primary-color: #1c2120;
	--primary-dark: #0f1419;
	--secondary-color: #7f8c8d;
	--accent-color: #f39c12;
	--success-color: #27ae60;
	--warning-color: #f39c12;
	--error-color: #e74c3c;
	--background-color: #f5f6fa;
	--surface-color: #ffffff;
	--text-primary: #1c2120;
	--text-secondary: #7f8c8d;
	--text-light: #95a5a6;
	--border-color: #e1e8ed;
	--border-light: #f1f3f4;
	--shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
	--shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
	--shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
	--shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.16);
	--border-radius: 0;
	--border-radius-sm: 6px;
	--border-radius-md: 12px;
	--border-radius-lg: 16px;
	--border-radius-xl: 24px;
	--spacing-xs: 0.25rem;
	--spacing-sm: 0.5rem;
	--spacing-md: 1rem;
	--spacing-lg: 1.5rem;
	--spacing-xl: 2rem;
	--spacing-2xl: 3rem;
	--spacing-3xl: 4rem;
}

/* Reset et base */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
	background-color: var(--background-color);
	color: var(--text-primary);
	line-height: 1.6;
	font-weight: 300;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overscroll-behavior: none;
}

.container {
	max-width: 480px;
	margin: 0 auto;
	padding: 0 var(--spacing-md);
}

@media (min-width: 768px) {
	.container {
		max-width: 600px;
	}
}

@media (min-width: 1024px) {
	.container {
		max-width: 800px;
	}
}

/* Header */
.header {
	background: var(--primary-color);
	color: white;
	padding: var(--spacing-lg) 0;
	text-align: center;
	box-shadow: var(--shadow-md);
	position: sticky;
	top: 0;
	z-index: 100;
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
}

.header h1 {
	font-family: 'Impact', 'Arial Black', sans-serif;
	font-size: 2rem;
	font-weight: normal;
	color: var(--accent-color);
	margin-bottom: var(--spacing-xs);
	letter-spacing: 0.02em;
	text-transform: uppercase;
}

@media (min-width: 768px) {
	.header h1 {
		font-size: 2.5rem;
		margin-bottom: var(--spacing-sm);
	}
}

.header p {
	font-size: 1.125rem;
	color: white;
	opacity: 0.9;
}

.logo-img {
	max-height: 80px;
	width: auto;
	/* Pas de filtre car le logo a déjà un fond blanc et des éléments noirs */
}

/* Main */
.main {
	padding: var(--spacing-lg) 0;
}

/* Sections */
.section {
	margin-bottom: var(--spacing-xl);
}

.section h2 {
	font-family: 'Impact', 'Arial Black', sans-serif;
	font-size: 1.5rem;
	font-weight: normal;
	color: var(--accent-color);
	margin-bottom: var(--spacing-lg);
	letter-spacing: 0.02em;
	text-transform: uppercase;
}

@media (min-width: 768px) {
	.main {
		padding: var(--spacing-2xl) 0;
	}
	
	.section {
		margin-bottom: var(--spacing-2xl);
	}
	
	.section h2 {
		font-size: 1.75rem;
		margin-bottom: var(--spacing-xl);
	}
}



/* Métronome Card */
.metronome-card {
	background: var(--surface-color);
	border: none;
	border-radius: var(--border-radius-lg);
	padding: var(--spacing-xl);
	box-shadow: var(--shadow-md);
	text-align: center;
	margin-bottom: var(--spacing-lg);
}

.tempo-display {
	margin-bottom: var(--spacing-xl);
}

.tempo-value {
	font-size: 3.5rem;
	font-weight: 700;
	color: var(--text-primary);
	font-family: 'Inter', sans-serif;
	line-height: 1;
}

@media (min-width: 768px) {
	.tempo-value {
		font-size: 4rem;
	}
}

.tempo-unit {
	font-size: 1.25rem;
	color: var(--text-secondary);
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

/* Indicateur de tempo en mode silence */
.tempo-value.silence {
	color: #bdc3c7; /* Gris clair */
}

/* Animations en mode silence */
.tempo-value.silence.beat {
	color: #bdc3c7;
	animation: beat-pulse 0.1s ease-out;
}

.tempo-value.silence.downbeat {
	color: #bdc3c7;
	animation: downbeat-pulse 0.15s ease-out;
}

/* Contrôles de tempo */
.tempo-controls {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: var(--spacing-sm);
	margin-bottom: var(--spacing-lg);
	flex-wrap: wrap;
}

.tempo-slider {
	flex: 1;
	max-width: 300px;
	height: 8px;
	background: var(--border-color);
	border-radius: 4px;
	outline: none;
	-webkit-appearance: none;
	margin: 0 var(--spacing-sm);
}

.tempo-slider::-webkit-slider-thumb {
	-webkit-appearance: none;
	appearance: none;
	width: 24px;
	height: 24px;
	background: var(--accent-color);
	border-radius: 50%;
	cursor: pointer;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
	transition: transform 0.1s ease;
}

.tempo-slider::-webkit-slider-thumb:hover {
	transform: scale(1.1);
}

.tempo-slider::-moz-range-thumb {
	width: 24px;
	height: 24px;
	background: var(--accent-color);
	border-radius: 50%;
	cursor: pointer;
	border: none;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
	transition: transform 0.1s ease;
}

.tempo-slider::-moz-range-thumb:hover {
	transform: scale(1.1);
}

/* Boutons de tempo */
.tempo-btn {
	width: 48px;
	height: 48px;
	border: none;
	border-radius: 12px;
	background: var(--surface-color);
	color: var(--text-primary);
	font-family: 'Inter', sans-serif;
	font-size: 1.125rem;
	font-weight: 600;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
	transition: all 0.2s ease;
	user-select: none;
	-webkit-tap-highlight-color: transparent;
}

.tempo-btn:hover {
	background: var(--accent-color);
	color: white;
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(243, 156, 18, 0.3);
}

.tempo-btn:active {
	transform: translateY(0);
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Contrôles métronome */
.metronome-controls {
	display: flex;
	gap: var(--spacing-md);
	justify-content: center;
	flex-wrap: wrap;
}

/* Configuration Grid */
.config-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--spacing-md);
}

.config-card {
	background: var(--surface-color);
	border: none;
	border-radius: var(--border-radius-lg);
	padding: var(--spacing-lg);
	box-shadow: var(--shadow-sm);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.config-card:hover {
	transform: translateY(-2px);
	box-shadow: var(--shadow-md);
}

@media (min-width: 768px) {
	.config-grid {
		grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
		gap: var(--spacing-lg);
	}
}

.config-card h3 {
	font-family: 'Inter', sans-serif;
	font-size: 1rem;
	font-weight: 600;
	color: var(--text-primary);
	margin-bottom: var(--spacing-md);
	letter-spacing: 0.02em;
	text-transform: uppercase;
}

/* Select */
.select {
	width: 100%;
	padding: var(--spacing-md);
	border: 1px solid var(--border-light);
	border-radius: var(--border-radius-md);
	background: var(--background-color);
	font-family: 'Inter', sans-serif;
	font-size: 1rem;
	color: var(--text-primary);
	cursor: pointer;
	transition: all 0.2s ease;
	-webkit-appearance: none;
	appearance: none;
	background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
	background-position: right 0.5rem center;
	background-repeat: no-repeat;
	background-size: 1.5em 1.5em;
	padding-right: 2.5rem;
}

.select:focus {
	outline: none;
	border-color: var(--accent-color);
	box-shadow: 0 0 0 3px rgba(243, 156, 18, 0.1);
}

/* Volume Slider */
.volume-slider {
	width: 100%;
	height: 6px;
	background: var(--border-color);
	border-radius: 3px;
	outline: none;
	-webkit-appearance: none;
	margin-bottom: var(--spacing-sm);
}

.volume-slider::-webkit-slider-thumb {
	-webkit-appearance: none;
	appearance: none;
	width: 16px;
	height: 16px;
	background: var(--accent-color);
	border-radius: 50%;
	cursor: pointer;
}

.volume-slider::-moz-range-thumb {
	width: 16px;
	height: 16px;
	background: var(--accent-color);
	border-radius: 50%;
	cursor: pointer;
	border: none;
}

.volume-display {
	text-align: center;
	font-size: 0.875rem;
	color: var(--text-secondary);
}

.gap-info {
	text-align: center;
	font-size: 0.75rem;
	color: var(--text-light);
	margin-top: var(--spacing-xs);
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

/* Configuration des Exercices */
.exercise-config-card {
	background: var(--surface-color);
	border: none;
	border-radius: var(--border-radius-lg);
	padding: var(--spacing-xl);
	box-shadow: var(--shadow-md);
	margin-bottom: var(--spacing-lg);
}

.exercise-config-card h3 {
	font-family: 'Inter', sans-serif;
	font-size: 1.25rem;
	font-weight: 600;
	color: var(--text-primary);
	margin-bottom: var(--spacing-lg);
	letter-spacing: 0.02em;
	text-transform: uppercase;
	text-align: center;
}

.exercise-config-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--spacing-md);
	margin-bottom: var(--spacing-xl);
}

@media (min-width: 768px) {
	.exercise-config-grid {
		grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
		gap: var(--spacing-lg);
	}
}

.config-group {
	display: flex;
	flex-direction: column;
	gap: var(--spacing-sm);
}

.config-group label {
	font-family: 'Inter', sans-serif;
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--text-primary);
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.exercise-input {
	width: 100%;
	padding: var(--spacing-md);
	border: 1px solid var(--border-light);
	border-radius: var(--border-radius-md);
	background: var(--background-color);
	font-family: 'Inter', sans-serif;
	font-size: 1rem;
	color: var(--text-primary);
	text-align: center;
	transition: all 0.2s ease;
}

.exercise-input:focus {
	outline: none;
	border-color: var(--accent-color);
	box-shadow: 0 0 0 3px rgba(243, 156, 18, 0.1);
}

.exercise-type-selector {
	display: flex;
	justify-content: center;
	gap: var(--spacing-xl);
	margin-bottom: var(--spacing-xl);
}

.exercise-type-option {
	display: flex;
	align-items: center;
	gap: var(--spacing-sm);
	cursor: pointer;
	position: relative;
}

.exercise-type-option input[type="radio"] {
	display: none;
}

.radio-custom {
	width: 20px;
	height: 20px;
	border: 2px solid var(--border-color);
	border-radius: 50%;
	position: relative;
	transition: all 0.3s ease;
}

.exercise-type-option input[type="radio"]:checked + .radio-custom {
	border-color: var(--accent-color);
	background: var(--accent-color);
}

.exercise-type-option input[type="radio"]:checked + .radio-custom::after {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 8px;
	height: 8px;
	background: white;
	border-radius: 50%;
}

.exercise-type-label {
	font-family: 'Inter', sans-serif;
	font-size: 1rem;
	font-weight: 600;
	color: var(--text-primary);
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.exercise-preview {
	background: rgba(243, 156, 18, 0.05);
	border: 1px solid rgba(243, 156, 18, 0.2);
	border-radius: var(--border-radius-md);
	padding: var(--spacing-lg);
	margin-bottom: var(--spacing-xl);
}

.preview-info {
	text-align: center;
	margin-bottom: var(--spacing-md);
}

.preview-info span {
	font-family: 'Inter', sans-serif;
	font-size: 1rem;
	font-weight: 600;
	color: var(--accent-color);
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.preview-steps {
	display: flex;
	flex-wrap: wrap;
	gap: var(--spacing-sm);
	justify-content: center;
}

.step-item {
	background: var(--accent-color);
	color: white;
	padding: var(--spacing-xs) var(--spacing-sm);
	border-radius: var(--border-radius-sm);
	font-family: 'Inter', sans-serif;
	font-size: 0.75rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.step-item.current {
	background: var(--primary-color);
	animation: pulse 1s infinite;
}

.exercise-controls {
	display: flex;
	justify-content: center;
	gap: var(--spacing-lg);
}



/* Historique */
.history-container {
	background: var(--surface-color);
	border: none;
	border-radius: var(--border-radius-lg);
	box-shadow: var(--shadow-md);
	margin-bottom: var(--spacing-lg);
}

.history-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: var(--spacing-lg);
	border-bottom: 1px solid var(--border-light);
}

.history-header h3 {
	font-family: 'Inter', sans-serif;
	font-size: 1rem;
	font-weight: 600;
	color: var(--text-primary);
	letter-spacing: 0.02em;
	text-transform: uppercase;
}

.history-list {
	max-height: 300px;
	overflow-y: auto;
}

.history-item {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: var(--spacing-md) var(--spacing-lg);
	border-bottom: 1px solid var(--border-light);
	transition: background-color 0.2s ease;
}

.history-item:hover {
	background-color: var(--border-light);
}

.history-item:last-child {
	border-bottom: none;
}

.history-info {
	flex: 1;
}

.history-tempo {
	font-weight: 500;
	color: var(--text-primary);
}

.history-time {
	font-size: 0.75rem;
	color: var(--text-light);
}

.history-duration {
	font-size: 0.875rem;
	color: var(--text-secondary);
}

/* Buttons */
.btn-primary, .btn-secondary {
	padding: var(--spacing-md) var(--spacing-xl);
	border: none;
	border-radius: var(--border-radius-md);
	font-family: 'Inter', sans-serif;
	font-size: 1rem;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.2s ease;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	text-decoration: none;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	-webkit-tap-highlight-color: transparent;
}

.btn-primary {
	background-color: var(--accent-color);
	color: var(--primary-color);
	box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
	background-color: #e67e22;
	transform: translateY(-2px);
	box-shadow: var(--shadow-md);
}

.btn-primary:active {
	transform: translateY(0);
	box-shadow: var(--shadow-sm);
}

.btn-secondary {
	background-color: var(--surface-color);
	color: var(--text-primary);
	border: 1px solid var(--border-light);
	box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
	border-color: var(--accent-color);
	color: var(--accent-color);
	transform: translateY(-2px);
	box-shadow: var(--shadow-md);
}

.btn-secondary:active {
	transform: translateY(0);
	box-shadow: var(--shadow-sm);
}

/* États actifs */
.metronome-card.playing {
	border-color: var(--accent-color);
	box-shadow: 0 0 0 2px rgba(243, 156, 18, 0.2);
}

.tempo-value.playing {
	color: var(--accent-color);
	animation: pulse 1s infinite;
}

.tempo-value.beat {
	color: var(--accent-color);
	animation: beat-pulse 0.1s ease-out;
}

.tempo-value.downbeat {
	color: var(--accent-color);
	animation: downbeat-pulse 0.15s ease-out;
}

@keyframes pulse {
	0% { transform: scale(1); }
	50% { transform: scale(1.05); }
	100% { transform: scale(1); }
}

@keyframes beat-pulse {
	0% { 
		transform: scale(1);
		opacity: 1;
	}
	50% { 
		transform: scale(1.1);
		opacity: 0.8;
	}
	100% { 
		transform: scale(1);
		opacity: 1;
	}
}

@keyframes downbeat-pulse {
	0% { 
		transform: scale(1);
		opacity: 1;
	}
	50% { 
		transform: scale(1.2);
		opacity: 0.6;
	}
	100% { 
		transform: scale(1);
		opacity: 1;
	}
}

/* Responsive */
@media (max-width: 768px) {
	.header h1 {
		font-size: 2rem;
	}
	
	.header p {
		font-size: 1rem;
	}
	
	.tempo-value {
		font-size: 3rem;
	}
	
	.tempo-controls {
		flex-direction: row;
		gap: var(--spacing-xs);
		align-items: center;
		justify-content: center;
	}
	
	.tempo-btn {
		width: 44px;
		height: 44px;
		font-size: 1rem;
	}
	
	.tempo-slider {
		max-width: 200px;
		margin: 0 var(--spacing-xs);
	}
	
	.metronome-controls {
		flex-direction: column;
		gap: var(--spacing-sm);
		align-items: stretch;
	}
	
	.config-grid {
		grid-template-columns: 1fr;
		gap: var(--spacing-md);
	}
	
	.config-card {
		padding: var(--spacing-md);
	}
	
	.exercise-config-grid {
		grid-template-columns: 1fr;
		gap: var(--spacing-md);
	}
	
	.exercise-controls {
		flex-direction: column;
		align-items: stretch;
		gap: var(--spacing-sm);
	}
	
	.exercise-type-selector {
		flex-direction: column;
		gap: var(--spacing-sm);
	}
	
	.preview-steps {
		max-height: 150px;
	}
}

@media (max-width: 480px) {
	.container {
		padding: 0 var(--spacing-sm);
	}
	
	.metronome-card {
		padding: var(--spacing-lg);
	}
	
	.tempo-value {
		font-size: 2.5rem;
	}
	
	.tempo-controls {
		gap: var(--spacing-xs);
	}
	
	.tempo-btn {
		width: 40px;
		height: 40px;
		font-size: 0.875rem;
		border-radius: 10px;
	}
	
	.tempo-slider {
		max-width: 150px;
		height: 6px;
	}
	
	.tempo-slider::-webkit-slider-thumb {
		width: 20px;
		height: 20px;
	}
	
	.tempo-slider::-moz-range-thumb {
		width: 20px;
		height: 20px;
	}
} 