.projects {
	max-width: 1200px;
	margin: 3rem auto;
	padding: 0 2rem;
}

.article-head {
	text-align: center;
	margin-bottom: 2rem;
}

.article-head h2 {
	font-size: 2.5rem;
	margin-bottom: 0.5rem;
	color: #222;
}

.article-head p {
	color: #666;
	font-size: 1.1rem;
}

/* === FILTRES === */
.project-filters {
	display: flex;
	justify-content: center;
	gap: 1rem;
	margin: 2rem 0;
	flex-wrap: wrap;
}

.filter-btn {
	background: #f0f0f0;
	border: 2px solid transparent;
	padding: 0.7rem 1.5rem;
	border-radius: 25px;
	cursor: pointer;
	font-size: 1rem;
	font-weight: 500;
	transition: all 0.3s ease;
}

.filter-btn:hover {
	background: #e0e0e0;
	transform: translateY(-2px);
}

.filter-btn.active {
	background: #222;
	color: white;
	border-color: #222;
}

.project-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 2rem;
	padding: 2rem 0;
}

.project-card {
	background: #f9f9f9;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	display: flex;
	flex-direction: column;
}

.project-card:hover {
	transform: translateY(-8px);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.project-card.coming-soon {
	background: #f1f1f1;
	opacity: 0.7;
}

.project-image {
	width: 100%;
	height: 200px;
	overflow: hidden;
	margin: 0;
}

.project-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.project-card:hover .project-image img {
	transform: scale(1.05);
}

.project-content {
	padding: 1.5rem;
	flex-grow: 1;
	display: flex;
	flex-direction: column;
}

.project-content h3 {
	font-size: 1.4rem;
	margin-bottom: 0.8rem;
	color: #222;
}

.project-description {
	color: #555;
	line-height: 1.6;
	margin-bottom: 1rem;
	flex-grow: 1;
}

.project-tags {
	display: flex;
	gap: 0.5rem;
	flex-wrap: wrap;
	margin-bottom: 1rem;
}

.tag {
	background: #e8e8e8;
	color: #555;
	padding: 0.3rem 0.8rem;
	border-radius: 15px;
	font-size: 0.85rem;
	font-weight: 500;
}

.project-link {
	color: #222;
	text-decoration: none;
	font-weight: 600;
	display: inline-flex;
	align-items: center;
	transition: color 0.3s ease;
}

.project-link:hover {
	color: #555;
}

.badge {
	display: inline-block;
	padding: 0.5rem 1rem;
	background: #ccc;
	color: #333;
	border-radius: 5px;
	margin-top: auto;
	font-weight: 500;
	text-align: center;
}

.overlay {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	background-color: white;
	z-index: 10000;
	overflow-y: auto;
	padding: 2rem 4rem;
	box-sizing: border-box;
}

.overlay.active {
	display: block;
}

.close-btn {
	position: fixed;
	top: 1.5rem;
	right: 2rem;
	background: #222;
	color: white;
	border: none;
	padding: 0.7rem 1.5rem;
	font-size: 1rem;
	cursor: pointer;
	border-radius: 8px;
	transition: background-color 0.3s ease;
	z-index: 10001;
}

.close-btn:hover {
	background: #555;
}

.overlay-content {
	margin-top: 5rem;
	max-width: 900px;
	margin-left: auto;
	margin-right: auto;
}

.overlay-content h2 {
	font-size: 2.5rem;
	margin-bottom: 1.5rem;
	color: #222;
}

.overlay-content h3 {
	font-size: 1.8rem;
	margin-top: 2rem;
	margin-bottom: 1rem;
	color: #333;
}

.overlay-content img {
	width: 100%;
	border-radius: 8px;
	margin-bottom: 1.5rem;
}

.overlay-content p {
	line-height: 1.8;
	color: #555;
	margin-bottom: 1rem;
}

.overlay-content iframe {
	width: 100%;
	height: 600px;
	border: none;
	border-radius: 8px;
	margin-top: 1rem;
}

.fullscreen-overlay {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	background: rgba(0, 0, 0, 0.95);
	z-index: 11000;
	justify-content: center;
	align-items: center;
}

.fullscreen-overlay.active {
	display: flex;
}

.fullscreen-overlay img {
	max-width: 95vw;
	max-height: 95vh;
	border-radius: 8px;
	box-shadow: 0 0 40px rgba(0, 0, 0, 0.8);
}

.close-fullscreen {
	position: fixed;
	top: 1rem;
	right: 1rem;
	background: transparent;
	border: none;
	color: white;
	font-size: 3rem;
	cursor: pointer;
	font-weight: bold;
	transition: transform 0.2s ease;
}

.close-fullscreen:hover {
	transform: scale(1.1);
}

.photo-gallery {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 15px;
	margin-top: 1.5rem;
}

.photo-gallery img {
	width: 100%;
	height: 200px;
	object-fit: cover;
	cursor: zoom-in;
	border-radius: 8px;
	transition: transform 0.3s ease;
}

.photo-gallery img:hover {
	transform: scale(1.05);
}

@media (max-width: 768px) {
	.projects {
		padding: 0 1rem;
	}
	
	.overlay {
		padding: 2rem 1.5rem;
	}
	
	.close-btn {
		right: 1rem;
	}
	
	.project-grid {
		grid-template-columns: 1fr;
		gap: 1.5rem;
	}
}
