:root {
	--bg-dark: #0F1B2D;
	--text-light: #E8ECF1;
	--accent-blue: #4A9FD8;
	--accent-amber: #E8A33D;
	--bg-card: rgba(232, 236, 241, 0.05);
	--border-dark: rgba(74, 159, 216, 0.2);

	--font-title: 'Space Grotesk', sans-serif;
	--font-text: 'Lora', serif;

	--scroll-margin-top: 100px;
}

html, body {
	margin: 0;
	padding: 0;
	scroll-behavior: smooth;
	background-color: var(--bg-dark);
	color: var(--text-light);
	font-family: var(--font-text);
	line-height: 1.6;
	overflow-x: hidden;
}

section {
	scroll-margin-top: var(--scroll-margin-top);
}

a { 
	text-decoration: none;
	color: inherit;
	transition: color 0.3s ease;
}
.accent-link { 
	color: var(--accent-blue);
	border-bottom: 1px dashed var(--accent-blue);
}
.accent-link:hover { 
	color: var(--accent-amber);
	border-bottom-color: var(--accent-amber);
}

h1, h2, h3, .title, .sub_title, .name, .tab, .btn-tech, .option-btn {
	font-family: var(--font-title);
	letter-spacing: 0.5px;
}

/* =========================================
	TYPOGRAPHIE & COMMUNS
========================================= */
.title {
	font-size: 3.5rem;
	font-weight: 700;
	color: var(--text-light);
	margin-bottom: 0.5rem;
	text-transform: uppercase;
}
.sub_title {
	font-size: 1.5rem;
	font-weight: 600;
	color: var(--accent-blue);
	margin-bottom: 1rem;
}
.text {
	font-size: 1.1rem;
	text-align: justify;
	color: #C0C8D6;
}
.highlight-amber {
	color: var(--accent-amber);
	font-weight: 600;
}

/* BOUTONS */
.btn-tech {
	background: transparent;
	color: var(--accent-blue);
	border: 1px solid var(--accent-blue);
	border-radius: 4px;
	padding: 10px 25px;
	font-size: 0.9rem;
	text-transform: uppercase;
	cursor: pointer;
	transition: all 0.3s ease;
	backdrop-filter: blur(5px);
	display: inline-block;
	text-align: center;
}
.btn-tech:hover {
	background: var(--accent-blue);
	color: var(--bg-dark);
	box-shadow: 0 0 15px rgba(74, 159, 216, 0.4);
}

/* CARDS */
.tech-card {
	background: var(--bg-card);
	border: 1px solid var(--border-dark);
	border-radius: 8px;
	padding: 25px;
	transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.tech-card:hover {
	transform: translateY(-5px);
	border-color: var(--accent-blue);
	box-shadow: 0 8px 25px rgba(0,0,0,0.3);
}

/* =========================================
	HEADER & NAVIGATION (Desktop)
========================================= */
header {
	position: fixed;
	top: 0; 
	left: 0;
	width: 100%;
	display: flex;
	justify-content: space-between;
	align-items: center;
	background: rgba(15, 27, 45, 0.85);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--border-dark);
	padding: 15px 5%;
	z-index: 1000;
	box-sizing: border-box;
}
.welcome .name {
	font-size: 1.5rem;
	font-weight: 700;
	color: var(--accent-blue);
}
.welcome .status {
	display: block;
	font-size: 0.9rem;
	color: var(--accent-amber);
	font-family: var(--font-title);
	text-transform: uppercase;
}

.tabs {
	display: flex;
	gap: 30px;
}
.tab {
	font-size: 0.9rem;
	position: relative;
	cursor: pointer;
	color: var(--text-light);
	text-transform: uppercase;
}
.tab::after {
	content: "";
	position: absolute;
	bottom: -5px;
	left: 0;
	width: 100%;
	height: 2px;
	background-color: var(--accent-amber);
	transform: scaleX(0);
	transition: transform 0.3s ease;
	transform-origin: right;
}
.tab:hover::after, .tab.active::after, .tab.active-nav::after {
	transform: scaleX(1);
	transform-origin: left;
}

.traduction .flag {
	width: 28px;
	height: 18px;
	border-radius: 4px;
	margin-left: 10px;
	opacity: 0.5;
	transition: opacity 0.3s;
}
.traduction .flag:hover {
	opacity: 0.8;
}
.traduction .flag.active-lang {
	opacity: 1;
	border: 2px solid var(--accent-amber);
	box-sizing: border-box;
}

#menu-toggle, #cursor {
	display: none;
}

/* =========================================
	SECTIONS & TRACES DE CIRCUITS
========================================= */
main {
	width: 85%;
	max-width: 1200px;
	margin: 0 auto;
	padding-top: 150px;
}

.circuit-section {
	position: relative;
	padding-left: 40px;
	margin-bottom: 100px;
}
.circuit-section::before {
	content: '';
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	width: 2px;
	background: var(--border-dark);
	z-index: 0;
}

.circuit-section .presentation {
	position: relative;
}
.circuit-section .presentation::before {
	content: '';
	position: absolute;
	left: -46px;
	top: 25px;
	width: 14px;
	height: 14px;
	background: var(--bg-dark);
	border: 2px solid var(--accent-blue);
	border-radius: 50%;
	z-index: 2;
	transition: all 0.3s ease;
}
.circuit-section:hover .presentation::before {
	background: var(--accent-blue);
	box-shadow: 0 0 12px var(--accent-blue);
}

/* =========================================
	HOME
========================================= */
#home {
	display: flex;
	flex-wrap: wrap;
	gap: 50px;
	margin-bottom: 100px;
	align-items: flex-start;
}
#id_card {
	flex: 1;
	min-width: 280px;
	max-width: 350px;
	text-align: center;
}
#id_photo img {
	width: 180px;
	height: 180px;
	border-radius: 50%;
	border: 3px solid var(--accent-blue);
	padding: 5px;
}
#home_hr {
	width: 50px;
	height: 2px;
	background: var(--accent-amber);
	margin: 20px auto;
}
#speech .text:first-child {
	margin-top: 0;
}
#speech, #pitch {
	flex: 2;
	min-width: 300px;
	max-width: 600px;
}
#pitch_video {
	width: 100%;
	aspect-ratio: 16/9;
	border-radius: 8px;
	border: 1px solid var(--border-dark);
}
#contact_button {
	display: flex;
	justify-content: space-evenly;
	gap: 15px;
	margin-top: 20px;
}

/* =========================================
	TIMELINE (ENGINEERING)
========================================= */
.tech-timeline {
	position: relative;
	padding: 20px 0;
}
.tech-timeline::before {
	content: '';
	position: absolute;
	left: 20px;
	top: 0;
	bottom: 0;
	width: 2px;
	background: var(--border-dark);
}
.timeline-item {
	position: relative;
	padding-left: 60px;
	margin-bottom: 30px;
}
.timeline-item::before {
	content: '';
	position: absolute;
	left: 15px;
	top: 25px;
	width: 12px;
	height: 12px;
	background: var(--accent-amber);
	border-radius: 50%;
	box-shadow: 0 0 10px var(--accent-amber);
}

/* =========================================
	MOBILITE INTERNATIONALE
========================================= */
#map_container {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 40px;
	margin-top: 30px;
}
#mobility_options {
	display: flex;
	gap: 20px;
	margin-bottom: 20px;
	border-bottom: 1px solid var(--border-dark);
	padding-bottom: 10px;
}

.option-btn {
	background: none;
	border: none;
	padding: 0;
	color: var(--text-light);
	font-size: 0.9rem;
	text-transform: uppercase;
	cursor: pointer;
	position: relative;
	outline: none;
}
.option-btn::after {
	content: "";
	position: absolute;
	bottom: -11px;
	left: 0;
	width: 100%;
	height: 2px;
	background-color: var(--accent-amber);
	transform: scaleX(0);
	transition: transform 0.3s ease;
	transform-origin: right;
}
.option-btn:hover::after, .option-btn.active::after {
	transform: scaleX(1);
	transform-origin: left;
}
.option-btn:focus-visible {
	color: var(--accent-amber);
}

#content {
	max-height: 400px;
	overflow-y: auto;
}
.mobility_title {
	color: var(--text-light);
	font-weight: 700;
	margin-bottom: 5px;
}
.mobility_place {
	color: var(--accent-amber);
	font-style: normal;
	font-family: var(--font-title);
	font-size: 0.9rem;
}
.empty_content {
	font-style: italic;
	color: #888;
	text-align: center;
	margin-top: 20px;
}
.map-wrapper {
	position: relative;
}
#map {
	min-height: 560px;
	height: 100%;
	border-radius: 8px;
	border: 1px solid var(--border-dark);
	z-index: 1;
}
.map-legend {
	position: absolute;
	bottom: 20px;
	right: 20px;
	background: rgba(15, 27, 45, 0.9);
	border: 1px solid var(--border-dark);
	padding: 15px;
	border-radius: 8px;
	z-index: 400;
	font-size: 0.85rem;
}
.map-legend p {
	margin: 5px 0;
	display: flex;
	align-items: center;
}
.map-legend .dot {
	width: 12px;
	height: 12px;
	border-radius: 50%;
	display: inline-block;
	margin-right: 10px;
}

/* =========================================
	CAREER (CV & EXP)
========================================= */
#cv_list {
	display: flex;
	gap: 30px;
	justify-content: center;
	margin: 30px 0;
	flex-wrap: wrap;
}
.pdf_container {
	position: relative;
	padding: 10px;
	display: block;
}
.preview_pdf {
	width: 250px;
	height: auto;
	border-radius: 4px;
	display: block;
	opacity: 0.8;
	transition: opacity 0.3s;
}
.overlay-btn {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	opacity: 0;
	transition: opacity 0.3s;
}
.pdf_container:hover .preview_pdf {
	opacity: 0.3;
}
.pdf_container:hover .overlay-btn {
	opacity: 1;
}

@media (hover: none) {
	.preview_pdf {
		opacity: 0.5;
	}
	.overlay-btn {
		opacity: 1;
	}
}
.tech-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 30px;
	width: 100%;
	margin-top: 30px;
}
.block-title {
	margin-top: 60px;
	margin-bottom: 0;
}
.tech-card .status {
	font-family: var(--font-title);
	color: var(--accent-amber);
	text-transform: uppercase;
	font-size: 0.85rem;
	margin-top: -0.5rem;
}
.tech-card ul.text {
	padding-left: 20px;
}

/* =========================================
	FOOTER
========================================= */
footer {
	background: rgba(0, 0, 0, 0.2);
	border-top: 1px solid var(--border-dark);
	padding: 15px 5%;
	margin-top: 50px;
}
.footer-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 30px;
	text-align: center;
}
.foot-title {
	font-family: var(--font-title);
	color: var(--accent-amber);
	margin-bottom: 10px;
	text-transform: uppercase;
}
.social-links img {
	width: 30px;
	/* filter: invert(1); */
	margin: 0 10px;
	opacity: 0.7;
	transition: opacity 0.3s;
}
.social-links img:hover {
	opacity: 1;
}

/* =========================================
	RESPONSIVE
========================================= */
@media (max-width: 1200px) {
	.tabs {
		position: absolute;
		top: 75px;
		right: 5%;
		background: rgba(15, 27, 45, 0.95);
		border: 1px solid var(--border-dark);
		border-radius: 8px;
		flex-direction: column;
		gap: 15px;
		max-height: 0;
		opacity: 0;
		padding: 0 20px;
		overflow: hidden;
		transition: max-height 0.4s ease, opacity 0.3s ease, padding 0.3s ease;
	}
	
	#cursor {
		display: block;
		cursor: pointer;
	}
	#cursor img {
		width: 25px;
		filter: invert(1);
		transition: transform 0.3s ease;
	}

	#menu-toggle:checked ~ .tabs {
		max-height: 400px;
		opacity: 1;
		padding: 20px;
	}
	
	#menu-toggle:checked ~ #cursor img {
		transform: rotate(180deg);
	}
}

@media (max-width: 900px) {
	#id_card {
		margin: 0 auto;
	}
	.text {
		text-align: left;
	}

	#map_container {
		grid-template-columns: 1fr;
	}
	.title {
		font-size: 2.5rem;
	}
	main {
		padding-top: 100px;
		width: 90%;
	}
	.circuit-section {
		padding-left: 20px;
	}
	.circuit-section .presentation::before {
		left: -26px;
	}
}