* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: #333;
	line-height: 1.6;
	min-height: 100vh;
}

.container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
}

header {
	background: rgba(255, 255, 255, 0.95);
	padding: 20px 0;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
	margin-bottom: 30px;
}

.header-content {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
}

.logo {
	font-size: 2.5em;
	font-weight: bold;
	color: #4a90e2;
	text-decoration: none;
}

.search-container {
	position: relative;
	margin: 10px 0;
	display: flex;
	align-items: center;
	gap: 10px;
}

.search-box {
	padding: 15px 50px 15px 20px;
	font-size: 1.2em;
	border: 3px solid #4a90e2;
	border-radius: 25px;
	width: 350px;
	outline: none;
	transition: all 0.3s ease;
}

.search-box:focus {
	border-color: #357abd;
	box-shadow: 0 0 10px rgba(74, 144, 226, 0.3);
}

.search-icon {
	position: absolute;
	right: 20px;
	top: 50%;
	transform: translateY(-50%);
	font-size: 1.2em;
	color: #4a90e2;
}

.show-all-btn {
	background: #52c41a;
	color: white;
	border: none;
	padding: 15px 25px;
	border-radius: 25px;
	font-size: 1.2em;
	cursor: pointer;
	transition: all 0.3s ease;
	font-weight: bold;
	display: none;
	box-shadow: 0 4px 12px rgba(82, 196, 26, 0.3);
}

.show-all-btn:hover {
	background: #389e0d;
	transform: translateY(-2px);
	box-shadow: 0 6px 16px rgba(82, 196, 26, 0.4);
}

main {
	background: rgba(255, 255, 255, 0.95);
	border-radius: 20px;
	padding: 40px;
	margin-bottom: 30px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.intro {
	text-align: center;
	margin-bottom: 50px;
}

.intro h1 {
	font-size: 2.5em;
	color: #4a90e2;
	margin-bottom: 20px;
}

.intro p {
	font-size: 1.3em;
	color: #666;
	max-width: 800px;
	margin: 0 auto;
}

.level-section {
	position: relative;
	margin-bottom: 50px;
	padding-left: 10px;
	--level-color: #52c41a;
}

.level-section::before {
	content: '';
	position: absolute;
	left: 0;
	top: 0;
	width: 5px;
	height: 100%;
	background: linear-gradient(to bottom, transparent, var(--level-color), transparent);
	border-radius: 3px;
}

.level-section[data-level="intermediaire"] { --level-color: #faad14; }
.level-section[data-level="avance"] { --level-color: #ff7a45; }
.level-section[data-level="expert"] { --level-color: #f5222d; }

.level-title {
	font-size: 2em;
	margin-bottom: 25px;
	padding: 15px 25px;
	border-radius: 15px;
	color: white;
	text-align: center;
	font-weight: bold;
}

.level-debutant { background: #52c41a; }
.level-intermediaire { background: #faad14; }
.level-avance { background: #ff7a45; }
.level-expert { background: #f5222d; }

.video-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 30px;
	margin-top: 30px;
}

.video-card {
	background: white;
	border-radius: 15px;
	overflow: hidden;
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
	transition: all 0.3s ease;
	cursor: pointer;
	border: 3px solid transparent;
}

.video-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
	border-color: #4a90e2;
}

.video-card.playing {
	cursor: default;
	transform: none;
	border: 4px solid #52c41a;
	box-shadow: 0 0 20px rgba(82, 196, 26, 0.4);
}

.video-card.playing:hover {
	transform: none;
}

.video-thumbnail {
	position: relative;
	width: 100%;
	height: 200px;
	overflow: hidden;
}

.video-thumbnail img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: opacity 0.3s ease;
}

.video-thumbnail img.lazy {
	opacity: 0;
}

.video-iframe {
	width: 100%;
	height: 100%;
	border: none;
}

.play-button {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 70px;
	height: 70px;
	background: rgba(74, 144, 226, 0.9);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 30px;
	color: white;
	transition: all 0.3s ease;
}

.play-button:hover {
	background: rgba(74, 144, 226, 1);
	transform: translate(-50%, -50%) scale(1.1);
}

.video-info {
	padding: 20px;
}

.video-title {
	font-size: 1.3em;
	font-weight: 600;
	color: #1a1a1a;
	margin-bottom: 10px;
}

.video-description {
	color: #4a4a4a;
	font-size: 1.15em;
	line-height: 1.5;
}

.error-message {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 100%;
	background: #f5f5f5;
	color: #666;
	text-align: center;
	padding: 20px;
	font-size: 1.1em;
}

.modal {
	display: none;
	position: fixed;
	z-index: 1000;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.8);
}

.modal-content {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	background: white;
	border-radius: 20px;
	padding: 30px;
	max-width: 90%;
	max-height: 90%;
	overflow: auto;
}

.modal-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 20px;
}

.modal-title {
	font-size: 1.5em;
	font-weight: bold;
	color: #333;
}

.close-button {
	background: #f5222d;
	color: white;
	border: none;
	padding: 10px 20px;
	border-radius: 10px;
	font-size: 1.1em;
	cursor: pointer;
	transition: all 0.3s ease;
}

.close-button:hover {
	background: #d4380d;
}

.video-container {
	position: relative;
	width: 100%;
	height: 0;
	padding-bottom: 56.25%;
	margin-bottom: 20px;
}

.video-container iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	border-radius: 10px;
}

.modal .video-controls {
	text-align: center;
	font-size: 1.2em;
	color: #666;
	margin-top: 15px;
}

footer {
	background: rgba(255, 255, 255, 0.95);
	padding: 30px 0;
	text-align: center;
	border-radius: 20px 20px 0 0;
}

.contact-button {
	background: #4a90e2;
	color: white;
	padding: 15px 30px;
	border: none;
	border-radius: 25px;
	font-size: 1.2em;
	cursor: pointer;
	text-decoration: none;
	display: inline-block;
	transition: all 0.3s ease;
	margin-bottom: 15px;
}

.contact-button:hover {
	background: #357abd;
	transform: translateY(-2px);
}

.footer-text {
	color: #666;
	font-size: 1.1em;
}

.no-results {
	text-align: center;
	font-size: 1.3em;
	color: #666;
	margin: 50px 0;
	display: none;
}

.no-results p {
	margin-bottom: 10px;
}

.search-term {
	font-weight: bold;
	color: #4a90e2;
}

@media (max-width: 768px) {
	.header-content {
		flex-direction: column;
		text-align: center;
	}

	.search-container {
		flex-direction: column;
		gap: 15px;
	}

	.search-box {
		width: 100%;
		max-width: 350px;
	}

	.logo {
		font-size: 2em;
		margin-bottom: 20px;
	}

	.intro h1 {
		font-size: 2em;
	}

	.video-grid {
		grid-template-columns: 1fr;
	}

	.modal-content {
		max-width: 95%;
		padding: 20px;
	}

	/* Masquer le modal sur mobile */
	.modal {
		display: none !important;
	}

	.show-all-btn {
		width: 100%;
		max-width: 250px;
	}
}	


/* Bannière du didacticiel souris */
.mouse-tutorial-banner {
	margin: 30px auto 40px;
	max-width: 900px;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	border-radius: 20px;
	padding: 5px;
	position: relative;
	overflow: hidden;
	animation: bannerGlow 3s ease-in-out infinite;
}

@keyframes bannerGlow {
	0%, 100% { box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4); }
	50% { box-shadow: 0 5px 30px rgba(102, 126, 234, 0.6); }
}

.tutorial-content {
	background: white;
	border-radius: 15px;
	padding: 30px;
	display: flex;
	align-items: center;
	gap: 30px;
	position: relative;
	flex-wrap: wrap;
}

.tutorial-icon {
	font-size: 4em;
	animation: mouseMove 2s ease-in-out infinite;
}

@keyframes mouseMove {
	0%, 100% { transform: translateY(0) rotate(-5deg); }
	50% { transform: translateY(-10px) rotate(5deg); }
}

.tutorial-info {
	flex: 1;
	min-width: 250px;
}

.tutorial-info h3 {
	font-size: 1.8em;
	color: #4a90e2;
	margin-bottom: 10px;
	position: relative;
}

.tutorial-info h3::before {
	content: "✨";
	position: absolute;
	left: -30px;
	animation: sparkle 1.5s ease-in-out infinite;
}

@keyframes sparkle {
	0%, 100% { opacity: 0; transform: scale(0); }
	50% { opacity: 1; transform: scale(1); }
}

.tutorial-info p {
	font-size: 1.2em;
	color: #666;
	margin: 0;
}

.tutorial-button {
	background: linear-gradient(135deg, #52c41a 0%, #389e0d 100%);
	color: white;
	padding: 15px 30px;
	border-radius: 30px;
	text-decoration: none;
	font-size: 1.2em;
	font-weight: bold;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	transition: all 0.3s ease;
	box-shadow: 0 5px 15px rgba(82, 196, 26, 0.3);
	position: relative;
	overflow: hidden;
}

.tutorial-button::before {
	content: "";
	position: absolute;
	top: -50%;
	left: -50%;
	width: 200%;
	height: 200%;
	background: linear-gradient(45deg, transparent, rgba(255,255,255,0.3), transparent);
	transform: rotate(45deg);
	transition: all 0.6s;
	opacity: 0;
}

.tutorial-button:hover::before {
	animation: buttonShine 0.6s ease-in-out;
}

@keyframes buttonShine {
	0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); opacity: 0; }
	50% { opacity: 1; }
	100% { transform: translateX(100%) translateY(100%) rotate(45deg); opacity: 0; }
}

.tutorial-button:hover {
	transform: translateY(-3px);
	box-shadow: 0 8px 20px rgba(82, 196, 26, 0.4);
}

.tutorial-button .arrow {
	font-size: 1.4em;
	transition: transform 0.3s ease;
}

.tutorial-button:hover .arrow {
	transform: translateX(5px);
}

/* Badge "Nouveau" */
.mouse-tutorial-banner::before {
	content: "NOUVEAU";
	position: absolute;
	top: 20px;
	right: -30px;
	background: #ff4757;
	color: white;
	padding: 5px 40px;
	font-size: 0.9em;
	font-weight: bold;
	transform: rotate(45deg);
	box-shadow: 0 2px 10px rgba(255, 71, 87, 0.5);
	z-index: 1;
}

/* Animation au scroll */
.mouse-tutorial-banner {
	opacity: 0;
	transform: translateY(30px);
	animation: fadeInUp 0.8s ease forwards;
}

@keyframes fadeInUp {
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* Responsive */
@media (max-width: 768px) {
	.tutorial-content {
		flex-direction: column;
		text-align: center;
		padding: 20px;
		gap: 20px;
	}
	
	.tutorial-icon {
		font-size: 3em;
	}
	
	.tutorial-info h3 {
		font-size: 1.5em;
	}
	
	.tutorial-info h3::before {
		display: none;
	}
	
	.tutorial-button {
		width: 100%;
		justify-content: center;
	}
	
	.mouse-tutorial-banner::before {
		top: 10px;
		right: -35px;
		font-size: 0.8em;
	}
}