/* ----------------------------------------------
   :root - CSS Variables
---------------------------------------------- */
:root {
	--main-color: #000d17;
	--second-color: #fb9904;
	--third-color: #00ffff;
}

/* ----------------------------------------------
   Font Face Definition
---------------------------------------------- */
@font-face {
	font-family: "Orbitron";
	src: url("/assets/fonts/orbitron.ttf") format("truetype");
	font-weight: 100 900;
	font-style: normal;
}

/* ----------------------------------------------
   Global Reset and Box Sizing
---------------------------------------------- */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

/* ----------------------------------------------
   HTML and Body Styling
---------------------------------------------- */
html,
body {
	height: 100%;
	width: 100%;
	font-family: "Orbitron", sans-serif;
	color: white;
	background-color: #000d17;
	background-image: url("/assets/images/electricalBG.png");
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	overflow: hidden;
}

/* ----------------------------------------------
   Headings Styles (h1, h2, h3)
---------------------------------------------- */
h1 {
	font-size: clamp(1.5rem, 4vw, 3rem);
	margin-bottom: 1vh;
}

h2 {
	font-size: clamp(1.2rem, 3.5vw, 2.5rem);
}

h3 {
	font-size: clamp(1.1rem, 3vw, 2rem);
	color: var(--second-color);
}

/* ----------------------------------------------
   Layout Containers
---------------------------------------------- */
.main {
	position: relative;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	align-items: center;
}

.titleAndName,
.menu {
	display: flex;
	height: 25vh;
	flex-direction: column;
	justify-content: center;
	text-align: center;
	font-weight: bold;
}

/* ----------------------------------------------
   Text Highlight Effects
---------------------------------------------- */
.highlight {
	text-shadow:
		0 0 1px #00f0ff,
		0 0 4px #00f0ff,
		0 0 30px #00e1ff9f;
}

.variantHiglight {
	color: var(--second-color);
	text-shadow:
		0 0 1px #ffa500,
		0 0 4px #ff8c00,
		0 0 30px #cc700080;
}

.underline::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: -5px;
	height: 6px;
	width: 100%;
	background: var(--third-color);
	box-shadow:
		0 0 1px #00f0ff,
		0 0 4px #00f0ff,
		0 0 30px #00e1ffaf;
	border-radius: 50% 0 0 50% / 50%;
	transform: scaleY(0.4);
	z-index: 4;
	border: 1px solid black;
}

.underline::before {
	content: "";
	position: absolute;
	bottom: -6px;
	right: -0.2em;
	width: 10px;
	height: 10px;
	background: var(--third-color);
	border-radius: 50%;
	box-shadow:
		0 0 1px #00f0ff,
		0 0 4px #00f0ff,
		0 0 30px #00e1ffaf;
	z-index: 5;
}

.underlineVariant::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: -5px;
	height: 6px;
	width: 100%;
	background: var(--second-color);
	box-shadow:
		0 0 1px #ffa500,
		0 0 4px #ff8c00,
		0 0 30px #cc700080;
	border-radius: 50% 0 0 50% / 50%;
	transform: scaleY(0.4);
	z-index: 4;
	border: 1px solid black;
}

.underlineVariant::before {
	content: "";
	position: absolute;
	bottom: -6px;
	right: -0.2em;
	width: 10px;
	height: 10px;
	background: var(--second-color);
	border-radius: 50%;
	box-shadow:
		0 0 1px #ffa500,
		0 0 4px #ff8c00,
		0 0 30px #cc700080;
	z-index: 5;
}

/* ----------------------------------------------
   Main Image Styling (#myselfPict)
---------------------------------------------- */
#myselfPict {
	z-index: 1;
	position: absolute;
	width: 60%;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	object-fit: contain;
}

/* ----------------------------------------------
   Menu Styles
---------------------------------------------- */
.menu {
	z-index: 3;
	width: 100%;
	display: flex;
	justify-content: flex-end;
	align-items: center;
	padding-bottom: 3em;
	box-sizing: border-box;
}

.menu ul,
.aboutMeMenu ul {
	font-size: 1.8em;
	width: 80%;
	list-style: none;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

li:not(.selected) {
	color: var(--third-color);
}

li.selected {
	color: var(--second-color)!important;
}

.menu ul li:hover,
.aboutMeMenu ul li:hover {
	transform: scale(1.1);
	color: var(--second-color);
	cursor: pointer;
	text-shadow:
		0 0 1px #ffa500,
		0 0 4px #ff8c00,
		0 0 30px #cc700080;
}

/* ----------------------------------------------
  Side Bars styles (.leftSideBar, .rightSideBar)
---------------------------------------------- */
.leftSideBar,
.rightSideBar {
	position: absolute;
	width: 4em;
	height: 100vh;
	top: 0;
	border-radius: 0 100px 100px 0;
	background: var(--third-color);
	box-shadow: 0 0 1px #00f0ff, 0 0 4px #00f0ff, 0 0 50px #00e1ffaf;
	transition: background 0.5s ease, box-shadow 0.5s ease;
	overflow: hidden;
}

.rightSideBar {
	right: 0;
	border-radius: 100px 0 0 100px;
}

.leftSideBar {
	left: 0;
}

.leftSideBar::before,
.rightSideBar::before {
	content: "";
	position: absolute;
	inset: 0;
	background: var(--third-color);
	filter: blur(20px);
	opacity: 0.9;
	box-shadow: 0 0 10px #00f0ff, 0 0 40px #00f0ff, 0 0 50px #00e1ffaf;
	transition: background 0.5s ease, box-shadow 0.5s ease;
}

.leftSideBar.variant,
.rightSideBar.variant {
	background: var(--second-color);
	box-shadow: 0 0 1px #ffa500, 0 0 4px #ff8c00, 0 0 30px #e78308;
}

.leftSideBar.variant::before,
.rightSideBar.variant::before {
	background: var(--second-color);
	box-shadow: 0 0 10px #ffa500, 0 0 40px #ff8c00, 0 0 30px #e78308;
}

/* ----------------------------------------------
   Modal Styles (.infosModal)
---------------------------------------------- */
.infosModal {
	z-index: 0;
	position: absolute;
	width: 80%;
	height: 75%;
	left: 50%;
	top: 50%;
	padding: 1em;
	padding-left: 2em;
	padding-right: 2em;
	box-sizing: border-box;
	opacity: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	transform: translate(-50%, -50%);
	background-color: var(--main-color);
	border: 2px solid var(--second-color);
	border-radius: 15px;
	box-shadow:
		0 0 1px #ffa500,
		0 0 4px #ff8c00,
		0 0 30px #cc700080;
}

.infosModal .aboutMe {
	padding-top: 2em;
	box-sizing: border-box;
	width: 100%;
	height: 80%;
	display: flex;
	justify-content: space-around;
}

.infosModal .aboutMe .aboutMeMenu {
	position: relative;
	width: 35%;
	height: 100%;
	padding: 1em;
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.infosModal .aboutMe .aboutMeMenu ul {
	width: 100%;
	flex-direction: column;
	align-items: flex-start;
	list-style-type: disc;
	gap: 1em;
	padding-left: 1em;
	box-sizing: border-box;
}

.infosModal .aboutMe .aboutMeContent {
	width: 65%;
	height: 100%;
	padding: 1em;
	box-sizing: border-box;
}

.infosModal .aboutMe .aboutMeContent p {
	font-size: 1.4em;
	white-space: pre-line;
	font-weight: 600;
}

.infosModal.appear {
	z-index: 4;
	animation: modalAppear 0.5s ease forwards;
}

.infosModal.disappear {
	animation: modalDisappear 0.5s ease forwards;
}

/* ----------------------------------------------
   Modal Close Button (.closeInfosModal)
---------------------------------------------- */
.closeInfosModal {
	color: var(--second-color);
	font-size: 2em;
	position: absolute;
	right: 1em;
	top: 1em;
	cursor: pointer;
}

.closeInfosModal:hover {
	animation: rotateIcon 0.5s ease;
}

/* ----------------------------------------------
   Modal Heading Underline Decoration
---------------------------------------------- */
.infosModal h3 {
	position: relative;
	display: inline-block;
	text-align: center;
}

/* ----------------------------------------------
   Animations
---------------------------------------------- */
@keyframes rotateIcon {
	0% {
		transform: rotate(0deg);
	}

	100% {
		transform: rotate(180deg);
	}
}

@keyframes modalAppear {
	0% {
		opacity: 0;
		transform: translate(-50%, -50%) scale(0.9);
	}

	100% {
		opacity: 1;
		transform: translate(-50%, -50%) scale(1);
	}
}

@keyframes modalDisappear {
	0% {
		opacity: 1;
		transform: translate(-50%, -50%) scale(1);
	}

	100% {
		opacity: 0;
		transform: translate(-50%, -50%) scale(0.9);
	}
}

@keyframes sideBarAppear {
	0% {
		opacity: 0;
	}

	100% {
		opacity: 1;
	}
}

@keyframes sideBarDisappear {
	0% {
		opacity: 1;
	}

	100% {
		opacity: 0;
	}
}

/* ----------------------------------------------
   Responsive Styles
---------------------------------------------- */
/* ----------------------------------------------
   Responsive Styles Améliorées
---------------------------------------------- */

/* Tablette - entre mobile et desktop */
@media (max-width: 1024px) {
	.menu ul {
		font-size: 1.4em;
		flex-wrap: wrap;
		gap: 0.5em;
	}

	#myselfPict {
		width: 70%;
	}

	.infosModal .aboutMe {
		flex-direction: column;
		align-items: center;
		gap: 1em;
	}

	.infosModal .aboutMe .aboutMeMenu,
	.infosModal .aboutMe .aboutMeContent {
		width: 100%;
		height: auto;
	}

	.infosModal .aboutMe .aboutMeContent p {
		font-size: 1.2em;
	}
}

/* Mobile - petit écran portrait */
@media (max-width: 600px) {

	/* Suppression des barres latérales */
	.leftSideBar,
	.rightSideBar {
		display: none;
	}

	/* Image repositionnée */
	#myselfPict {
		position: static;
		transform: none;
		width: 80%;
		height: auto;
		margin: 1em auto;
		display: block;
	}

	/* Menu en colonne */
	.menu ul {
		flex-direction: column;
		align-items: center;
		gap: 0.5em;
		font-size: 1.2em;
	}

	/* Titre recentré et réduit */
	.titleAndName h1 {
		font-size: clamp(1.2rem, 6vw, 2rem);
	}

	.titleAndName h2 {
		font-size: clamp(1rem, 5vw, 1.5rem);
	}

	/* Modal adaptée à l'écran */
	.infosModal {
		width: 95%;
		height: auto;
		padding: 1em;
		max-height: 90%;
		overflow-y: auto;
	}

	/* Contenu modal simplifié */
	.infosModal .aboutMe {
		flex-direction: column;
		gap: 1em;
	}

	.infosModal .aboutMe .aboutMeMenu ul {
		font-size: 1em;
		gap: 0.5em;
	}

	.infosModal .aboutMe .aboutMeContent p {
		font-size: 1em;
		line-height: 1.4;
	}

}

/* ---- Mobile paysage : donne priorité au contenu vertical ---- */
@media (max-width: 600px) and (orientation: landscape) {
	.infosModal {
		width: 96vw;
		height: 92vh;
		max-height: 92vh;
		padding: 0.5rem;
	}

	.infosModal .aboutMe .aboutMeMenu ul {
		gap: 0.5rem;
	}

	.infosModal .aboutMe .aboutMeContent {
		max-height: calc(92vh - 4.5rem);
	}
}

/* Amélioration UX: masquage et scroll natif fluide */
.infosModal .aboutMe .aboutMeMenu ul::-webkit-scrollbar,
.infosModal .aboutMe .aboutMeContent::-webkit-scrollbar {
	height: 8px;
	width: 8px;
}