/* COLORS */
:root {
	--background-color: #0c134f;
	/* --background-color: #00092efb; */
	--background-color-opposite: #5c469c;
	--background-color-opposite-active: #5c469c;
	--text-color: #d4adfc;
	--text-color-active: #eddcff;

	--font-inter: Inter, sans-serif;
	font-feature-settings: "liga" 1, "calt" 1;
}
* {
	font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
		Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif,
		"Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol",
		"Noto Color Emoji";
	box-sizing: border-box;
}
h1,
h2,
h3,
h4,
h5 {
	margin: 0;
}
.cursor-follower {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	pointer-events: none;
	z-index: 9999;
	transition: background 0.2s;
	opacity: 60%;
}

.hidden {
	display: none;
}

.miel {
	display: none;
}
.about-section-content {
	margin-right: 20px;
}

/* Profile picture */
.profile-picture-container {
	position: relative; /* Permet de positionner le texte sur l'image */
	max-width: 8rem; /* La largeur du conteneur correspond à celle de l'image */
	/* border: 0.25rem solid;
    border-image: linear-gradient(45deg, #80d4e9,  #d480e9, #fc547e) 1; */
	float: right; /* Fait flotter l'image à gauche */
	margin: 1rem;
	display: flex; /* Assure que les enfants sont bien alignés */
	align-items: flex-start; /* Aligner les enfants au début */
	cursor: default;
}
.profile-picture-container::before {
	content: "";
	position: absolute;
	top: 0rem; /* Décale vers le haut */
	right: 0rem; /* Décale vers la droite */
	bottom: 0rem; /* Maintient le cadre visible en bas */
	left: 0rem; /* Maintient le cadre visible à gauche */
	border: 0.25rem solid;
	/* background: linear-gradient(270deg, #80d4e9, #d480e9, #fc547e) ; */
	border-image: linear-gradient(45deg, #80d4e9, #d480e9, #fc547e) 1;
	transition: transform 0.5s ease;
	transform: translate(0.75rem, -0.75rem); /* Décalage initial */
	z-index: -1; /* Assure que le cadre est derrière le contenu */
}
.profile-picture-container:hover::before {
	transform: translate(0.25rem, -0.25rem); /* Réaligne le cadre au survol */
}
.profile-picture-container img {
	width: 100%;
	height: auto; /* Permet de conserver les proportions de l'image */
	transition: 0.5s ease; /* Anime le filtre */
}
.profile-picture-container:hover img {
	filter: brightness(70%); /* Assombrir l'image au survol */
}
.profile-picture-container .overlay-profile-picture {
	position: absolute; /* Positionne le texte par-dessus l'image */
	top: 0;
	bottom: 0;
	left: 0;
	right: 0;
	height: 100%; /* Assure que le texte couvre toute l'image */
	width: 100%;
	max-height: 100%; /* Jamais + grand que le ocntainer */
	opacity: 0; /* Rend le texte invisible initialement */
	transition: 0.5s ease; /* Anime l'apparition du texte */
	background: linear-gradient(45deg, #80d4e941, #d480e93d, #fc547e3d);
	color: white;
	font-weight: 500;
	text-align: center; /* Centre le texte */
	padding-top: 40%;
}
.profile-picture-container:hover .overlay-profile-picture {
	opacity: 1; /* Rend le texte visible au survol */
}

/* Animations de hover */
.hover-underline-animation {
	display: inline-block;
	position: relative;
	color: var(--text-color);
	text-decoration: none;
	overflow: hidden;
	/* margin-bottom: 0.25rem; */
}

.hover-underline-animation:hover {
	background: linear-gradient(45deg, #80d4e9, #d480e9, #fc547e);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
}
.experience-content:hover .hover-underline-animation,
.project-content:hover .project-link h4,
.project-link:hover p,
.project-link:hover svg,
.scroll-link-active {
	background: linear-gradient(45deg, #80d4e9, #d480e9, #fc547e);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	transition: all 0.2s ease-in-out;
	fill: #fc547e;
}

.project-link:hover svg,
.project-content:hover .project-info-header svg,
.experience-item:hover .experience-content .experience-link svg {
	fill: #fc547e;
	transition: all 0.2s ease-in-out;
}
.project-link {
	color: var(--text-color);
	margin-bottom: 0;
}
.hover-underline-animation::after,
.scroll-link-active::after {
	content: "";
	position: absolute;
	width: 0;
	height: 2px;
	bottom: 2px;
	left: 0;
	background-color: var(--text-color-active);
	transition: width 0.2s ease-in-out;
}
.scroll-link-active::after {
	width: 100%;
	left: 0;
}
/* Hover CONTACT ME */
.btn {
	color: var(--text-color);
	transition: all 0.5s;
	position: relative;
	display: flex;
	justify-content: center;
	cursor: pointer;
}
.btn::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 1;
	background-color: rgba(255, 255, 255, 0.1);
	border-radius: 4px;
	transition: all 0.3s;
}
.btn:hover::before {
	opacity: 0;
	transform: scale(0.5, 0.5);
}
.btn::after {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 1;
	opacity: 0;
	transition: all 0.3s;
	border: 1px solid var(--text-color-active);
	border-radius: 4px;

	transform: scale(1.2, 1.2);
}
.btn:hover::after {
	opacity: 1;
	transform: scale(1, 1);
}
.box-3 {
	margin-top: 2rem;
}
.box-3:hover .btn-text,
.btn:hover {
	color: var(--text-color-active);
}

button,
button[type="submit"] {
	border: 1px solid transparent;
	background-color: var(--background-color-opposite);
	color: var(--text-color);
	padding: 10px 20px;
	border: 1px solid transparent;
	border-radius: 4px;
	cursor: pointer;
}

button:hover,
button[type="submit"]:hover {
	border: 1px solid var(--text-color);
	background-color: var(--background-color-opposite);
}
body {
	background-color: var(--background-color);
	color: var(--text-color);
	margin: 0;
}

body a {
	text-decoration: none; /* Remove underline */
	color: inherit; /* Use the parent's text color */
}
body ul,
body ol {
	list-style: none; /* Remove list decoration */
}

body {
	line-height: 1.625;
	margin: unset;
}

/* CONTACT BUTTON / OVERLAY */
#overlay {
	position: fixed; /* Stay in place */
	z-index: 1; /* Sit on top */
	left: 0;
	top: 0;
	width: 100vw; /* Full viewport width */
	height: 100vh; /* Full viewport height */
	overflow: auto; /* Enable scroll if needed, but we aim to avoid it for the overlay itself */
	background-color: rgba(0, 0, 0, 0.5); /* Black w/ opacity */
	display: flex;
	align-items: center; /* Center vertically */
	justify-content: center; /* Center horizontally */
	color: var(--text-color);
}
.blur-effect {
	filter: blur(4px);
}

#contact-form-container {
	background-color: var(--background-color);
	margin: auto; /* Ensures centering without specifying top or bottom margin */
	padding: 20px;
	width: 80%; /* Adjust based on your design needs */
	max-width: 600px; /* Maximum width */
	max-height: 90vh; /* Maximum height to ensure it doesn't exceed the viewport */
	box-sizing: border-box; /* Ensures padding does not add to the width */
	position: relative;
	border-radius: 12px;
}

.close-btn {
	position: absolute;
	top: 0;
	right: 0;
}
#contact-form {
	display: flex;
	flex-direction: column;
}

.form-group {
	margin-bottom: 15px;
}

.form-group label {
	display: block;
	margin-bottom: 5px;
}

.form-group input,
.form-group textarea {
	width: 100%;
	padding: 10px;
	margin-bottom: 10px; /* Adjust or remove based on layout */
	border: 1px solid #ccc;
	border-radius: 4px;
}

textarea {
	height: 100px; /* Fixed height; adjust as needed */
	resize: none; /* Prevent resizing */
	overflow-y: auto; /* Enable vertical scrolling on overflow */
}

#body-container {
	display: flex;
	justify-content: center;
	align-items: center;
	margin: 0 auto;
	max-height: 100vh;
	max-width: 1280px;
	overflow: hidden;
}
#static {
	padding-left: 1.5rem;
	padding-right: 1.5rem;
	padding-top: 6rem;
	padding-bottom: 6rem;
	max-width: 1280px;
	min-height: 100vh;
}
h1#my-name a {
	text-decoration: none;
	color: white;
	font-size: 3.25rem;
	line-height: 3.5rem;
	font-weight: 700;
	letter-spacing: -0.025em;
}
h1 {
	margin: 0;
}
h3.main-title {
	/* color: var(--text-color); */
	color: white;
	font-size: 2.75rem;
	line-height: 3rem;
	margin: 0 0 1rem 0;
}
.main-title {
	/* padding: 30px 0 8px; */
	position: relative;
}

.main-title::before {
	opacity: 60%;
	content: "";
	position: absolute;
	left: 12%;
	bottom: 4%;
	width: 22%;
	height: 16px;
	transform: skew(-33deg) translateX(-50%);
	background: linear-gradient(90deg, #80d4e9, #d480e9, #fc547e);
	z-index: -1;
}
#main-container {
	display: flex;
	position: sticky;
	top: 0;
	padding-top: 6rem;
	padding-bottom: 6rem;
	max-height: 100vh;
}
main {
	/* padding-top: 6rem; */
	display: flex;
	position: sticky;
	overflow: scroll;
	top: 0;
	/* padding-top: 6rem; */
	/* padding-bottom: 6rem; */
	flex-direction: column;
	justify-content: space-between;
	width: 100%;
	/* max-width: 768px; */
	/* height: 100vh; */
	max-height: 80vh;
	/* margin: 6rem 0 6rem 0;*/
}
main::-webkit-scrollbar {
	width: 0; /* Hide scrollbar in WebKit browsers (Safari, Chrome, etc.) */
}

/* MyJob */
.title-myjob {
	background: linear-gradient(45deg, #80d4e9, #d480e9, #fc547e);
	-webkit-background-clip: text;
	background-clip: text;
	color: transparent;
	display: inline-block;
	font-size: 1.5rem;
	font-weight: bold;
}

p#my-presentation {
	text-justify: inter-word;
}
ul#my-socials {
	display: flex;
	margin-left: 0.25rem;
	margin-top: 2rem;
	align-items: center;
	justify-content: center;
}
ul#my-socials li {
	margin-right: 1.25rem;
	font-size: 0.75rem;
	line-height: 1rem;
}
#my-socials li a {
	display: block;
}

.social-svg {
	width: 1.5rem;
	height: 1.5rem;
}

#animated-text {
	height: 1rem;
}
ol {
	margin: inherit;
	padding: inherit;
}
#main-nav {
	margin-top: 2rem;
	display: flex;
	flex-direction: column;
	font-size: 1.25rem;
}
.scroll-link {
	width: fit-content;
}

/* SECTIONS */
/* section - EXPERIENCE */

.experience-content {
	padding: 0.5rem;
	margin: 0 0px;
	margin-bottom: 1rem;
	border-radius: 0.25rem;
	display: flex;
	flex-direction: row;
	gap: 1rem;
}
.experience-svg-arrow {
	align-self: center;
	rotate: 90deg;
	width: 0.75rem;
	height: auto;
}
div.experience-content:hover .experience-svg-arrow,
.project-content:hover .experience-svg-arrow,
.project-item:hover .experience-svg-arrow {
	transform: translate(
		-6px,
		-6px
	); /* Déplace la flèche vers le haut et à gauche */
	transition: transform 0.1s ease; /* Animation fluide */
}
.experience-svg-arrow {
	transition: transform 0.1s ease; /* Animation fluide */
}
div.experience-content:hover,
.project-content:hover {
	background-color: rgba(255, 255, 255, 0.055);
	box-shadow: rgba(255, 255, 255, 0.048) 0px -50px 36px -28px inset;
	border-radius: 0.25rem;
	cursor: pointer;
}
.experience-link,
.project-link {
	display: flex;
	flex-direction: row;
	align-items: start;
	gap: 1rem;
	fill: var(--text-color);
	font-weight: 800;
}
.experience-link h4 {
	gap: 1rem;
}
div.experience-content:hover .experience-link,
.project-content:hover .project-link,
div.experience-content:hover .experience-svg-arrow,
.project-content:hover .experience-svg-arrow {
	color: violet;
	fill: violet;
}
div.experience-date {
	display: flex;
	flex-direction: column;
}
div.experience-info-header {
	display: flex;
	flex-direction: row;
	justify-content: space-between;
}
img.experience-logo {
	max-height: 80px;
	border: 1px solid var(--background-color-opposite);
}
div.experience-info .experience-title {
	display: flex;
	justify-content: left;
	flex-direction: column;
	font-weight: 800;
	margin: 0;
}
.experience-role {
	display: inline-flex;
	align-items: baseline;
	font-size: 1rem;
	line-height: 1.5rem;
	font-weight: 500;
	line-height: 1.25;
}
.experience-role-detail {
	display: inline-flex;
	align-items: baseline;
	font-size: 1rem;
	line-height: 1.5rem;
	font-weight: 400;
	line-height: 1.25;
	/* color: aquamarine; */
}
ul.technologies-used {
	display: flex;
	margin: 0.5rem 0 0 0;
	margin-top: 0.5rem;
	flex-wrap: wrap;
}
ul.technologies-used li {
	padding: 0.25rem;
	display: flex;
	justify-content: center;
	align-items: center;
	border: 1px solid var(--background-color-opposite);
	background-color: var(--background-color);
	color: var(--text-color);
	padding: 2px 8px;
	margin: 2px 8px;
	border-radius: 32px;
	margin-right: 0.375rem;
	margin-top: 0.5rem;
}
ul.technologies-used li div {
	display: flex;
	padding-top: 0.25rem;
	padding-bottom: 0.25rem;
	padding-left: 0.75rem;
	padding-right: 0.75rem;
	align-items: center;
	border-radius: 9999px;
	font-size: 0.75rem;
	line-height: 1rem;
	font-weight: 500;
	line-height: 1.25rem;
}

/* section - Project */
.project-content {
	padding: 0.5rem;
}

.project-img-container {
	flex-wrap: wrap;
	height: 3rem;
	width: 6rem;
	overflow: hidden;
	position: relative;
}
.project-img-container img {
	width: 100%;
	max-width: 3rem;
	transition: transform 0.5s ease, filter 0.5s ease;
}
div.project-content:hover {
	background-color: rgba(255, 255, 255, 0.055);
	box-shadow: rgba(255, 255, 255, 0.048) 0px -50px 36px -28px inset;
	border-radius: 0.25rem;
	cursor: pointer;
}
.text-highlight {
	color: white;
	font-size: 1rem;
	font-weight: 700;
}
.highlight-hover:hover {
	color: white;
	transition: all 0.1s ease-in-out;
	text-decoration: underline;
}
.highlight-hover {
	transition: all 0.2s ease-in-out;
}
#contact-me-txt:hover {
	cursor: pointer;
}

/* section - PROJECTS */
.project-item a {
	display: flex;
	padding: 0.5rem;
}
.project-info-header {
	display: flex;
	align-items: center;
	gap: 1rem;
}
.project-info-header svg {
	fill: #fc547e;
}
.project-info-header svg,
.experience-link svg,
.project-link svg {
	fill: var(--text-color);
	margin-bottom: 0.25rem;
}

@media (min-width: 1024px) {
	#static {
		padding-left: 3rem;
		padding-right: 3rem;
		padding-top: 5rem;
		padding-bottom: 5rem;
	}
	main {
		/* padding-top: 6rem;
        padding-bottom: 6rem;  */
	}
	#main-responsive {
		display: flex;
		gap: 3rem;
		justify-content: space-between;
	}
	#static {
		padding: 0 6rem 0 6rem;
	}
	header {
		display: flex;
		position: sticky;
		top: 0;
		padding-top: 6rem;
		padding-bottom: 6rem;
		flex-direction: column;
		justify-content: space-between;
		width: 50%;
		max-height: 100vh;
	}
}
#credits {
	font-size: 0.75rem;
}

@media (max-width: 1024px) {
	.box-3,
	ul#my-socials,
	#main-nav {
		margin-top: inherit;
	}
	#static {
		height: 100vh;
	}
	#main-responsive {
		height: 100vh;
	}
	header {
		height: 100vh;
		display: flex;
		flex-direction: column;
		justify-content: space-between;
		padding-bottom: 1rem;
	}
	.about-section-content {
		margin-right: 0.125rem;
	}
	.profile-picture-container {
		margin-left: 0.25rem;
		margin-bottom: inherit;
		max-width: 5rem;
		border-width: 0.25rem;
		margin-top: 1.25rem;
		margin-right: 0.5rem;
	}
	.profile-picture-container::before {
		transform: translate(0.5rem, -0.5rem);
	}
	.title-myjob {
		margin-top: 2rem;
	}
	#main-container {
		padding-top: inherit;
	}
	#contact-form-container {
		width: 95%; /* More width on small screens */
		max-height: 80vh; /* Adjust height to ensure better visibility on small devices */
	}
	.project-info-header {
		gap: 0.25rem;
		align-items: center;
	}
	.project-img-container {
		width: 4rem;
		height: auto;
	}
	#body-container {
		display: block;
		max-height: unset;
		height: 100%;
		overflow-x: hidden;
		overflow-y: scroll;
	}
	#scrollable-element {
		overflow: visible;
	}
	#static {
		padding-top: 1rem;
	}
	.experience-logo {
		display: none;
	}
	.experience-content {
		flex-direction: column;
		gap: 0;
	}
	h1#my-name a {
		font-size: 2.5rem;
	}
	h3.main-title {
		font-size: 2rem;
		margin-top: 1rem;
	}
	.project-img-container img {
		width: 100%;
		max-width: 2rem;
		transition: transform 0.5s ease, filter 0.5s ease;
	}
	ul.technologies-used li div {
		padding-left: 0;
		padding-right: 0;
		line-height: normal;
	}
	.technologies-used {
		padding: 0;
	}
	li.project-item,
	li.experience-item {
		border-bottom: 1px solid var(--text-color);
	}
	.cursor-follower {
		display: none;
	}
	.overlay-profile-picture {
		font-size: 0.75rem;
	}
}

/* styly underlines */
/* Styles spécifiques pour les titres avec des soulignements */
.heading--3-styly-underline {
	display: inline;
	font-weight: bold;
	padding: 0 calc(0.12em + calc(4px * calc(20 / 8)));
	box-decoration-break: clone;
	background-repeat: no-repeat;
	background-image:
    /* #80d4e9,  #d480e9, #fc547e */ linear-gradient(
			90deg,
			#f1a1e3,
			#80d4e9,
			#80d4e9,
			#80d4e9,
			#f1a1e3
		),
		url(https://files-6lc03kjqt.now.sh/left-2.svg),
		url(https://files-e7gkh52mq.now.sh/right-2.svg);
	background-position-x: calc(4px * calc(20 / 8)), 0, 100%;
	background-position-y: calc(100% + 2px);
	background-size: calc(100% - calc(4px * calc(20 / 8) * 2)) 20px, auto 20px,
		auto 20px;
}
