:root {
  --gold: #c47300;
  --blue: #000748;
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	max-width: 1200px;
	font-family: 'Outfit', sans-serif;
	font-weight: 300;
	font-size: 14px;
	font-style: normal;
	display: flex;
	min-height: 100vh;
	margin: auto;
}

.sidebar {
	width: 300px;
	padding : 0 0 0 50px;
	background-color: white;
	height: 100vh;
	display: flex;
	flex-direction: column;
	z-index: 1000;
}

.logo {
	padding: 50px 0;
}

.logo img {
	width: 100px;
	height: 100px;
	object-fit: contain;
}

.hamburger {
	display: none;
}

.hamburger img {
	width: 30px;
	height: 30px;
	object-fit: contain;
	cursor: pointer;
}

.close-btn{
	width: fit-content;
    display: block;
    margin: 30px auto 0 30px;
	cursor: pointer;
}

.close-btn img{
	width: 30px;
	height: 30px;
	object-fit: contain;
	cursor: pointer;
}

.menu {
	list-style: none;
	padding: 0 0;
	flex: 1;
}

.menu li,
.menu-overlay li {
	margin: 0;
}

.menu li a, .menu-overlay li a {
	display: block;
	padding: 12px 0;
	text-decoration: none;
	color: var(--blue);
	font-size: 15px;
	transition: background-color 0.3s;
}

.menu a:hover,
.menu a.active,
.menu-overlay a:hover,
.menu-overlay a.active {
	color: var(--gold);
}

.menu-overlay {
	position: fixed;
	top: 0;
	flex: 1;
	left: -100%;
	width: 100%;
	height: 100%;
	background: white;
	z-index: 1000;
	transition: 1s ease;
}

.menu-overlay.active {
	display: block;
	transform : translate(100%);
}

.menu-overlay-content {
	padding: 0 0 0 30%;
}

.menu-overlay-content ul{
	list-style: none;
}

.overlay-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 15px 20px;
	border-bottom: 1px solid white;
}

.content {
	flex: 1;
	padding: 50px;
	flex-direction: row;
}

.hero-image {
	width: 100%;
	height: calc(100vh - 40px);
	overflow: hidden;
	display: flex;
	align-items: flex-start;
	justify-content: center;
	padding : 0 0 50px;
}

.hero-image img {
	max-width: 100%;
	max-height: 100%;
	object-fit: contain;
}

.project-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 20px;
}

.project-card {
	cursor: pointer;
	aspect-ratio: 0.7;
	overflow: hidden;
	transition: transform 0.3s ease;
	position: relative;
}

.project-card img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: filter 0.3s ease;
}

.project-card h3 {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	white-space: nowrap;
	color: white;
	font-size: 20px;
	font-weight: 600;
	opacity: 0;
	transition: opacity 0.3s ease;
	text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
	z-index: 2;
}

.project-card:hover h3 {
	opacity: 100;
}

.project-card::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(187, 121, 42, 0);
	transition: background 0.3s ease;
	z-index: 1;
}

.project-card:hover::before {
	background: rgba(187, 121, 42, 0.6);
}

.project-image-container {
	position: relative;
	width: 100%;
	height: 250px;
	overflow: hidden;
	background: black;
}

.project-image-container img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: filter 0.3s ease;
}

.project-title {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	color: white;
	font-size: 18px;
	font-weight: bold;
	opacity: 0;
	transition: opacity 0.3s ease;
	text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.project-card:hover .project-title {
	opacity: 1;
}

.project-page {
	display: flex;
	gap: 40px;
	max-width: 1200px;
	margin: 0 auto;
}

.project-gallery {
	flex: 1;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 20px;
	padding: 20px 0;
}

.gallery-image {
	width: 100%;
	height: 200px;
	object-fit: cover;
	border-radius: 8px;
	cursor: pointer;
	transition: transform 0.3s ease;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.gallery-image:hover {
	transform: scale(1.05);
}

.about-page,
.contact-page {
	max-width: 800px;
	margin: 0 auto;
	background: white;
	border-radius: 8px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
	overflow: hidden;
}

.about-image img,
.contact-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.about-text,
.contact-text {
	padding: 40px;
}

.about-text p,
.contact-text p,
.about-text ul,
.contact-text ul{
	line-height: 1.8;
	color: #666;
	margin-bottom: 15px;
	font-size: 16px;
}

.contact-text h1{
	color:var(--gold);
	font-size: 36px;
	margin-bottom: 15px;
	font-weight: 500;
}

.contact-text{
	text-align: center;
}

@media (max-width: 1200px) {
	.content-container{
		flex-direction: column-reverse;
		text-align: center;
	}
	
	.text-blocks{
		margin:auto;
	}
}

@media (max-width: 768px) {
	body {
		flex-direction: column;
	}

	.sidebar {
		width: 100%;
		height: 300px;
		position: relative;
		flex-direction: column;
		align-items: center;
		padding: 0;
	}

	.logo img {
		width: 100px;
		height: 100px;
	}

	/* Affiche le bouton hamburger sur mobile */
	.hamburger {
		display: block;
		margin : 30px auto 0 30px;
	}

	/* Cache le menu principal sur mobile */
	.menu {
		display: none;
	}

	/* Animation pour le body quand le menu est ouvert */
	body.menu-open {
		overflow: hidden;
	}

	.content {
		flex-direction: column;
		margin-left: 0;
		padding: 10px;
	}

	.hero-image{
		height:100%;
		padding: 0;
	}

	.project-grid {
		grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
		gap: 15px;
	}

	.project-page {
		flex-direction: column;
		gap: 20px;
	}

	.project-gallery {
		grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	}

	.about-text,
	.contact-text {
		padding: 20px;
	}

	.lightbox-nav {
		width: calc(100% + 60px);
		left: -30px;
	}

	.lightbox-btn {
		width: 40px;
		height: 40px;
		font-size: 16px;
	}
}

.content-container {
	width: 100%;
	display: flex;
}

/* Project title */
.project-title {
	margin-bottom: 30px;
	font-size: 2.5rem;
	font-weight: 300;
	text-align: center;
}

/* Gallery */
.gallery {
	max-width: 1200px;
	flex: 1;
	margin-bottom: 40px;
}

.gallery-row {
	display: flex;
	gap: 10px;
	margin-bottom: 10px;
	aspect-ratio: 4/1;
}

.gallery-item {
	cursor: pointer;
	overflow: hidden;
	transition: transform 0.3s ease;
}

.gallery-item:hover {
	transform: scale(1.02);
}

.gallery-item.wide {
	width: 65%;
}

.gallery-item.narrow {
	width: 35%;
}

.gallery-item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* Text blocks */
.text-blocks {
	width: 300px;
	padding: 0 10px;
}

.description-block {
	margin-bottom: 30px;
}

.legend-block {
	margin-bottom: 30px;
}

#description-content{
	line-height: 1.6;
	color: var(--blue);
}

#legend-content {
	line-height: 1.6;
	color: var(--gold);
}

.text-blocks h1,
.text-blocks h2,
.text-blocks h3 {
	color: var(--gold);
	margin-bottom: 15px;
	font-weight: 500;
}

.text-blocks h1 {
	font-size: 2rem;
}

 .text-blocks h2 {
	font-size: 1.5rem;
}

.text-blocks p {
	margin-bottom: 15px;
}

.text-blocks ul {
	margin: 0 0 15px 20px;
}

.text-blocks li {
	margin-bottom: 5px;
}

/* Lightbox */
.lightbox {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 1000;
	display: none;
}

.lightbox.active {
	display: flex;
	align-items: center;
	justify-content: center;
}

.lightbox-background {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(255, 255, 255, 0.95);
	cursor: pointer;
}

.lightbox-content {
	position: relative;
	width: 90%;
	height: 90%;
	z-index: 1001;
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: white;
}

.lightbox-image {
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
	display: block;
}

.lightbox-close {
	position: absolute;
	top: 10px;
	right: 10px;
	background: none;
	border: none;
	font-size: 2rem;
	cursor: pointer;
	color: var(--blue);
	width: 50px;
	height: 50px;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 1002;
}

.lightbox-nav-prev,
.lightbox-nav-next {
	top: 50%;
	width: 100px;
	height: 100px;
}

.lightbox-prev,
.lightbox-next {
	width: 100%;
	height: 100%;
	transform: translateY(-50%);
	background: none;
	border: none;
	font-size: 3rem;
	cursor: pointer;
	color: var(--blue);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 1002;
}

.lightbox-close img,
.lightbox-next img,
.lightbox-prev img {
	width: 100%;
	height: 100%;
}


.lightbox-prev {
	left: 0px;
}

.lightbox-next {
	right: 0px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
	color: black;
}

/* Prevent scrolling when lightbox is open */
body.lightbox-open {
	overflow: hidden;
}

#viewerContainer {
	position: absolute;
	width: auto;
	height: auto;
	overflow: auto;
	background: white;
}

#viewer {
	width: 100%;
	height: 100%;
}

.pdfViewer .page {
	margin: 0 auto;
	width:100%;
	border: none;
	box-shadow: none;
}
