/* =========================================================
	GLOBAL SETTINGS
========================================================= */
html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	font-family: Arial, sans-serif;
	display: flex;
	min-height: 100vh;
	background: #f8fafc;
	color: #1e293b;
	overflow-x: hidden;
}

/* =========================================================
	NAVBAR
========================================================= */
.navbar {
	position: fixed;
	top: 0;
	left: 0;
	height: 100vh;
	width: 220px;
	background: #030056;
	color: #fff;
	display: flex;
	flex-direction: column;
	padding: 1.5rem 1rem;
	box-shadow: 2px 0 8px rgba(0, 0, 0, 0.2);
	transition: transform 0.3s ease;
	z-index: 999;
}

.navbar-header {
	display: flex;
	align-items: center;
	justify-content: flex-start;
	gap: 0.8rem;
	margin-bottom: 1.5rem;
}

.navbar h2 {
	margin: 0;
	margin-left: 5rem;
	font-size: 1.5rem;
}

.navbar nav {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	transition: transform 0.3s ease, opacity 0.3s ease;
}

.navbar a {
	color: #cbd5e1;
	text-decoration: none;
	padding: 0.6rem;
	border-radius: 8px;
	transition: background 0.3s, color 0.3s;
}

.navbar a.active {
	background: #3c3998;
	color: #fff;
	font-weight: bold;
}


.navbar a:hover {
	background: #3c3998;
	color: #fff;
}

/* Sidebar sliding states */
.navbar.nav-open {
	transform: translateX(0);
}

.navbar.nav-closed {
	transform: translateX(-100%);
}

/* =========================================================
	TOGGLE BUTTON
========================================================= */
.toggle-btn {
	position: fixed;
	top: 1rem;
	left: 1rem;
	background: #5a56d8;
	color: #fff;
	border: none;
	padding: 0.4rem 0.8rem;
	border-radius: 8px;
	cursor: pointer;
	font-size: 1.5rem;
	z-index: 1001;
	transition: background 0.3s ease;
}

.toggle-btn:hover {
	background: #7773ff;
}

/* =========================================================
	MAIN CONTENT
========================================================= */
.content {
	flex: 1;
	margin-left: 220px;
	padding: 2rem 3rem;
	display: flex;
	flex-direction: column;
	gap: 3rem;
	overflow-y: auto;
	transition: margin-left 0.3s ease;
}

.navbar.nav-closed ~ .content {
	margin-left: 0;
}

/* ---------- Rows ---------- */
.row {
	display: flex;
	align-items: center;
	gap: 2rem;
}

.row.reverse {
	flex-direction: row-reverse;
}

.row img {
	width: 220px;
	height: auto;
	border-radius: 12px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.row p {
	flex: 1;
	line-height: 1.6;
	font-size: 1.1rem;
}

/* =========================================================
	HERO SECTION (Accueil)
========================================================= */
.hero {
	position: relative;
	width: 100%;
	height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}

.background-video {
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	object-fit: cover;
	z-index: -1;
}

.hero-overlay {
	position: relative;
	color: #fff;
	text-align: center;
	padding: 2rem;
	background: rgba(0, 0, 0, 0);
	border-radius: 12px;
}

.hero-overlay h1 {
	font-size: 4rem;
	font-weight: bold;
	margin-bottom: 5rem;
}

/* =========================================================
	BIG SECTION CONTAINERS (slightly bigger)
========================================================= */
.big-section {
	background: rgba(3, 0, 86, 0.85); /* site’s main color theme, semi-transparent */
	color: #cbd5e1; /* text color matching site */
	padding: 3.5rem 2.5rem; /* slightly more padding */
	border-radius: 12px;
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
	width: 99%; /* a tiny bit wider */
	box-sizing: border-box;
	min-height: 85vh; /* slightly taller */
	margin: 1rem auto; /* small margin to see background video */
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 2rem;
	text-align: center;
	transition: all 0.3s ease;
}

/* Slightly reduce space between containers */
.big-section + .big-section {
	margin-top: 0.8rem; /* keeps them closer together */
}

/* Headings & paragraphs */
.big-section h1 {
	font-size: 2.6rem;
	margin-bottom: 1rem;
}

.big-section p {
	font-size: 1.25rem;
	line-height: 1.6;
}

/* Rows inside About Me */
.big-section .row {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 2rem;
	flex-wrap: wrap; /* wrap to avoid overflow */
}

.big-section .row.reverse {
	flex-direction: row-reverse;
}

.big-section .row img {
	width: 230px; /* slightly bigger images */
	height: auto;
	border-radius: 12px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* =========================================================
	RESPONSIVE DESIGN
========================================================= */
@media (max-width: 1024px) {
	.big-section .row img {
		width: 200px;
	}
	.big-section h1 {
		font-size: 2.2rem;
	}
}

@media (max-width: 600px) {
	.big-section {
		padding: 2.5rem 1.5rem;
		min-height: 75vh;
		width: 96%;
	}
	.big-section .row,
	.big-section .row.reverse {
		flex-direction: column;
	}
	.big-section .row img {
		width: 90%;
		max-width: 320px;
	}
	.big-section h1 {
		font-size: 1.9rem;
	}
}

/* =========================================================
	RESPONSIVE DESIGN
========================================================= */

/* Tablet ≤1024px */
@media (max-width: 1024px) {
	.navbar {
		width: 180px;
	}

	.content {
		margin-left: 180px;
		padding: 1.5rem 2rem;
	}

	.row img {
		width: 180px;
	}

	.hero-overlay h1 {
		font-size: 3rem;
	}
}

/* Mobile ≤600px */
@media (max-width: 600px) {
	.navbar {
		width: 80%;
		max-width: 260px;
		height: 100vh;
		transform: translateX(-100%);
	}

	.navbar.nav-open {
		transform: translateX(0);
	}

	.content {
		margin-left: 0;
		padding: 1rem;
	}

	.row,
	.row.reverse {
		flex-direction: column;
	}

	.row img {
		width: 90%;
		max-width: 300px;
	}

	.hero-overlay h1 {
		font-size: 2rem;
	}

	.section-container {
		padding: 1.5rem;
		margin: 1rem auto;
	}
}

