.project-detail-section {
	margin-top: var(--header-height);
	background: white;
	min-height: 100vh;
}

.project-detail-layout {
	display: grid;
	grid-template-columns: 1fr 350px;
	gap: 1rem;
	align-items: start;
}

/* Contenu principal */
.project-main-content {
	max-width: 900px;
}

.project-image-container {
	position: relative;
	margin: 2rem 0;
	border-radius: 0.5rem;
	overflow: hidden;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.project-image-container img {
	width: 100%;
	height: auto;
	display: block;
}

/* Overlay pour le titre et type */
.project-header-overlay {
	position: absolute;
	top: 2rem;
	left: 2rem;
	text-align: left;
	padding: 1.5rem 2rem;
	border-radius: 0.5rem;
	backdrop-filter: blur(10px);
	max-width: 60%;
}

.project-type {
	display: block;
	font-size: 0.9rem;
	font-weight: 700;
	color: var(--color-text-muted);
	text-transform: uppercase;
	letter-spacing: 0.1em;
	margin-bottom: 0.5rem;
}

.project-title {
	font-size: clamp(2rem, 5vw, 3.5rem);
	font-weight: 900;
	color: var(--color-primary);
	margin: 0;
	line-height: 1.2;
	background-image: url("../Images/orange-grunge-texture.png");
	background-size: cover;
	background-position: center;
	background-clip: text;
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	backdrop-filter: blur(12px);
}

.project-description {
	margin-top: 2rem;
}

.project-description h2 {
	color: var(--color-primary);
	font-size: 1.8rem;
	margin-bottom: 1rem;
	border-bottom: 2px solid var(--color-primary);
	padding-bottom: 0.5rem;
}

.project-description p {
	color: var(--color-text-muted);
	line-height: 1.8;
	font-size: 1.1rem;
	/* font-style: italic; */
}

/* Barre latérale fixe */
.project-sidebar {
	position: relative;
	/* Hauteur minimale pour éviter que la sidebar ne saute */
	min-height: 400px;
	position: sticky;
	top: calc(var(--header-height) + 2rem);
	display: flex;
	flex-direction: column;
	gap: 2rem;
}

.sidebar-sticky {
	position: sticky;
	top: calc(var(--header-height) + 2rem);
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
	/* Hauteur maximale pour éviter que la sidebar dépasse la fenêtre */
	max-height: calc(100vh - var(--header-height) - 4rem);
	overflow-y: auto;
}

/* Scrollbar personnalisée pour la sidebar (optionnel) */
.sidebar-sticky::-webkit-scrollbar {
	width: 6px;
}

.sidebar-sticky::-webkit-scrollbar-track {
	background: rgba(0, 0, 0, 0.05);
	border-radius: 3px;
}

.sidebar-sticky::-webkit-scrollbar-thumb {
	background: var(--color-primary);
	border-radius: 3px;
}

.sidebar-sticky::-webkit-scrollbar-thumb:hover {
	background: var(--color-primary-2);
}

.info-box {
	border-radius: 0.5rem;
	border: 1px solid rgba(255, 255, 255, 0.1);
	padding: 1.5rem;
	padding-top: 0;
	background: rgba(255, 255, 255, 0.05);
}

.info-box-title {
	font-size: 1.2rem;
	font-weight: 700;
	color: var(--color-primary);
	text-transform: uppercase;
	letter-spacing: 0.05em;
	margin-bottom: 1rem;
	position: relative;
}

.info-box-title::after {
	content: "";
	display: block;
	width: 47%;
	height: 3px;
	background-color: var(--color-primary);
	margin-top: 0.5rem;
	border-radius: 2px;
}

.info-box-content {
	font-size: 0.9rem;
	line-height: 1.6;
	color: var(--color-text-muted);
}

/* Responsive */
@media (max-width: 992px) {
	.project-detail-layout {
		grid-template-columns: 1fr;
	}

	.sidebar-sticky {
		position: static;
		flex-direction: row;
		gap: 1rem;
		max-height: none;
		overflow-y: visible;
	}

	.info-box {
		flex: 1;
		padding-left: 0;
	}
}

@media (max-width: 768px) {
	.sidebar-sticky {
		flex-direction: column;
	}

	.project-header-overlay {
		top: 1rem;
		right: 1rem;
		padding: 1rem 1.5rem;
		max-width: 70%;
	}

	.project-type {
		font-size: 0.75rem;
	}

	.project-title {
		font-size: clamp(1.2rem, 3vw, 1.8rem);
	}

	.project-description h2 {
		font-size: 1.5rem;
	}
}

@media (max-width: 480px) {
	.project-header-overlay {
		top: 0.5rem;
		right: 0.5rem;
		padding: 0.75rem 1rem;
		max-width: 75%;
	}
}

/* ===================== SLIDER AUTRES PROJETS ===================== */

.other-projects-section {
	background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
	padding: 4rem 0;
}

.section-title {
	font-size: clamp(2rem, 4vw, 2.5rem);
	font-weight: 900;
	color: var(--color-primary);
	text-align: center;
	margin-bottom: 3rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.projects-slider-wrapper {
	position: relative;
	max-width: 100%;
	margin: 0 auto;
}

.projects-slider {
	overflow: hidden;
	position: relative;
}

.projects-track {
	display: flex;
	gap: 1.5rem;
	transition: transform 0.5s cubic-bezier(0.645, 0.045, 0.355, 1);
}

.project-slide {
	flex: 0 0 calc(33.333% - 1rem);
	min-width: 0;
	position: relative;
	border-radius: 0.75rem;
	overflow: hidden;
	cursor: pointer;
	transition:
		transform 0.3s ease,
		box-shadow 0.3s ease;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.project-slide:hover {
	box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}
.project-slide:hover .project-slide-image {
	transform: scale(1.1);
}

.project-slide-image {
	width: 100%;
	height: 290px;
	object-fit: cover;
	display: block;
	width: 100%;
	object-fit: cover;
	transition: transform 0.5s ease; /* smooth zoom */
}

.project-slide-overlay {
	position: absolute;
	top: 0;
	left: 0;
	padding: 1.5rem;
	/* background: linear-gradient(135deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.5) 100%); */
	/* backdrop-filter: blur(5px); */
	border-bottom-left-radius: 0.5rem;
	max-width: 80%;
}

.project-slide-type {
	font-size: 0.75rem;
	font-weight: 700;
	color: var(--color-text-muted);
	text-transform: uppercase;
	letter-spacing: 0.1em;
	margin-bottom: 0.5rem;
	display: block;
}

.project-slide-title {
	font-size: 1.5rem;
	font-weight: 900;
	color: var(--color-primary);
	margin: 0;
	line-height: 1.2;
	background-image: url("../Images/orange-grunge-texture.png");
	background-size: cover;
	background-position: center;
	background-clip: text;
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	/* backdrop-filter: blur(12px); */
}

/* Boutons de navigation */
.slider-btn {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	background: white;
	border: none;
	width: 50px;
	height: 50px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	z-index: 10;
	transition: all 0.3s ease;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.slider-btn:hover {
	background: var(--color-primary);
	color: white;
	transform: translateY(-50%) scale(1.1);
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.slider-btn svg {
	stroke: currentColor;
}

.slider-btn-prev {
	left: -25px;
}

.slider-btn-next {
	right: -25px;
}

/* Dots de pagination */
.slider-dots {
	display: flex;
	justify-content: center;
	gap: 0.75rem;
	margin-top: 2rem;
}

.slider-dot {
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: #ddd;
	border: none;
	cursor: pointer;
	transition: all 0.3s ease;
	padding: 0;
}

.slider-dot.active {
	background: var(--color-primary);
	transform: scale(1.3);
}

.slider-dot:hover {
	background: var(--color-primary-2);
}

/* ===================== RESPONSIVE ===================== */

@media (max-width: 992px) {
	.project-slide {
		flex: 0 0 calc(50% - 0.75rem);
	}

	.slider-btn-prev {
		left: -15px;
	}

	.slider-btn-next {
		right: -15px;
	}
}

@media (max-width: 768px) {
	.project-slide {
		flex: 0 0 auto;
	}

	.projects-track {
		gap: 1rem;
	}

	.slider-btn {
		width: 40px;
		height: 40px;
	}

	.slider-btn-prev {
		left: 10px;
	}

	.slider-btn-next {
		right: 10px;
	}

	.project-slide-image {
		height: 250px;
	}

	.project-slide-overlay {
		padding: 1rem;
	}

	.project-slide-title {
		font-size: 1rem;
	}
}

@media (max-width: 480px) {
	.slider-btn {
		width: 35px;
		height: 35px;
	}

	.project-slide-image {
		height: 250px;
	}
}
