/* Import de la fonte Nunito */
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@300;400;600;700;800&display=swap');

:root {
    --bg: #e0e5ec;
    --light: #ffffff;
    --dark: #a3b1c6;
    --accent: #667eea;
}

* { 
    box-sizing: border-box; 
    margin: 0; 
    padding: 0; 
}

body { 
    background: var(--bg); 
    font-family: 'Nunito', sans-serif;  /* ← Changement ici */
    padding: 40px 20px;
    min-height: 100vh;
}

.container {
	max-width: 1200px;
	margin: 0 auto;
}

.header {
	text-align: center;
	margin-bottom: 50px;
}

.header h1 {
	font-size: 42px;
	color: #555;
	margin-bottom: 10px;
}

.header p {
	color: #777;
	font-size: 18px;
}

.exercises-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
	gap: 30px;
	margin-top: 40px;
}

.exercise-card {
	background: var(--bg);
	padding: 30px;
	border-radius: 30px;
	box-shadow: 8px 8px 16px var(--dark), -8px -8px 16px var(--light);
	transition: all 0.3s ease;
	cursor: pointer;
	text-decoration: none;
	display: block;
}

.exercise-card:hover {
	transform: translateY(-5px);
	box-shadow: 12px 12px 24px var(--dark), -12px -12px 24px var(--light);
}

.exercise-card:active {
	transform: translateY(-2px);
}

.exercise-number {
	display: inline-block;
	background: linear-gradient(135deg, var(--accent), #764ba2);
	color: white;
	padding: 8px 16px;
	border-radius: 20px;
	font-size: 14px;
	font-weight: bold;
	margin-bottom: 15px;
}

.exercise-title {
	font-size: 22px;
	color: #555;
	font-weight: bold;
	margin-bottom: 12px;
}

.exercise-description {
	color: #666;
	line-height: 1.5;
	margin-bottom: 15px;
}

.exercise-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 15px;
}

.tag {
	background: rgba(102, 126, 234, 0.1);
	color: var(--accent);
	padding: 5px 12px;
	border-radius: 15px;
	font-size: 12px;
	font-weight: 600;
}

.difficulty {
	display: inline-block;
	padding: 5px 12px;
	border-radius: 15px;
	font-size: 12px;
	font-weight: bold;
	margin-top: 10px;
}

.difficulty.facile {
	background: rgba(39, 174, 96, 0.2);
	color: #27ae60;
}

.difficulty.moyen {
	background: rgba(241, 196, 15, 0.2);
	color: #f39c12;
}

.difficulty.difficile {
	background: rgba(231, 76, 60, 0.2);
	color: #e74c3c;
}

.progress-section {
	background: var(--bg);
	padding: 30px;
	border-radius: 30px;
	box-shadow: inset 8px 8px 16px #a3b1c6, inset -8px -8px 16px #ffffff;
	margin-bottom: 40px;
}

.progress-section h2 {
	color: #555;
	margin-bottom: 15px;
}

.progress-bar {
	background: rgba(255,255,255,0.5);
	height: 30px;
	border-radius: 15px;
	overflow: hidden;
	position: relative;
}

.progress-fill {
	background: linear-gradient(135deg, var(--accent), #764ba2);
	height: 100%;
	border-radius: 15px;
	transition: width 0.5s ease;
	display: flex;
	align-items: center;
	justify-content: center;
	color: white;
	font-weight: bold;
	font-size: 14px;
}
