/** @format */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	text-decoration: none;
	border: none;
	outline: none;
	scroll-behavior: smooth;
	font-family: var(--font);
}

:root {
	--couleur_fond: #1e242a;
	--couleur_jaune: #fec52e;
	--couleur_orange: #fe9a2e;
	--couleur_saumon: #cc7766;
	--couleur_bleu: #5798b6;
	--font: "Poppins";
}

html {
	font-size: 60%;
	overflow-x: hidden;
}

body {
	background-color: var(--couleur_fond);
	font-family: var(--font);
	color: white;
}

header {
	width: 100%;
	position: fixed;
	top: 0;
	left: 0;
	padding: 4rem 12% 4rem;
	background: rgba(0, 0, 0, 0.3);
	backdrop-filter: blur(10px);
	display: flex;
	justify-content: space-between;
	align-items: center;
	z-index: 5;
	top: -100%;
	animation: anim4 1s forwards 0.5s;
}

#logo {
	float: left;
	margin-left: 100px;
	margin-top: 20px;
	cursor: pointer;
	transition: 0.3s ease;
}
#logo:hover {
	transform: scale(1.1);
	box-shadow: 1px 1px var(--couleur_orange), -2px -2px var(--couleur_saumon);
}
#logo img {
	width: 50px;
}

#menu a {
	font-size: 1.8rem;
	color: white;
	margin-left: 4rem;
	font-weight: 500;
	transition: 0.3s ease;
	border-bottom: 3px solid transparent;
}

#menu a:hover,
#menu a.active {
	color: var(--couleur_jaune);
	border-bottom: 3px solid var(--couleur_jaune);
}

@keyframes anim4 {
	from {
		top: -100%;
	}
	to {
		top: 0%;
	}
}

#menu-icon {
	font-size: 3.6rem;
	color: var(--couleur_jaune);
	display: none;
}

section {
	min-height: 100vh;
	padding: 10rem 12% 10rem;
}

.home {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 15rem;
}

.home_content {
	display: flex;
	flex-direction: column;
	align-items: baseline;
	text-align: left;
	justify-content: center;
	margin-top: 3rem;
}

span {
	color: var(--couleur_jaune);
}

.home_content h3 {
	margin-bottom: 2rem;
	margin-top: 1rem;
	font-size: 3.5rem;
	color: white;
}

.home_content h1 {
	font-size: 7rem;
	font-weight: 700;
	margin-top: 1.5rem;
	line-height: 1;
	color: white;
}

.home_img {
	border-radius: 50%;
}

.home_img img {
	position: relative;
	top: 3rem;
	width: 32vw;
	border-radius: 50%;
	box-shadow: 0 0 25px var(--couleur_jaune);
	cursor: pointer;
	transition: 0.4s ease-in-out;
}

.home_img img:hover {
	box-shadow: 0 0 25px var(--couleur_jaune), 0 0 50px var(--couleur_jaune),
		0 0 100px var(--couleur_jaune);
}

.home_content p {
	font-size: 1.5rem;
	font-weight: 500;
	line-height: 1.8;
	max-width: 1000px;
	color: white;
}

.social_icons a {
	display: inline-flex;
	justify-content: center;
	align-items: center;
	width: 4.5rem;
	height: 4.5rem;
	background: transparent;
	border: 2px solid var(--couleur_jaune);
	font-size: 2.5rem;
	border-radius: 50%;
	color: var(--couleur_jaune);
	margin: 3rem 1.5rem 3rem 0;
	transition: 0.3s ease-in-out;
}

.social_icons a:hover {
	color: white;
	transform: scale(1.3) translateY(-5px);
	box-shadow: 0 0 25px var(--couleur_jaune);
	background-color: var(--couleur_jaune);
}

.btn {
	display: inline-block;
	padding: 1rem 2.8rem;
	background: var(--couleur_jaune);
	box-shadow: 0 0 25px var(--couleur_jaune);
	border-radius: 4rem;
	font-size: 1.6rem;
	color: var(--couleur_fond);
	border: 2px solid transparent;
	letter-spacing: 0.1rem;
	font-weight: 600;
	transition: 0.3s ease-in-out;
	cursor: pointer;
}

.btn:hover {
	transform: scale(1.05);
	box-shadow: 0 0 50px var(--couleur_jaune);
}

.btn_group {
	display: flex;
	align-items: center;
	gap: 1.5rem;
}

.btn_group a:nth-of-type(2) {
	background-color: var(--couleur_fond);
	color: var(--couleur_jaune);
	border: 2px solid var(--couleur_jaune);
	box-shadow: 0 0 25px transparent;
}

.text_animation {
	font-size: 34px;
	font-weight: 600;
	min-width: 280px;
}

.text_animation span {
	position: relative;
}

.text_animation span::before {
	content: "Web Developer";
	color: var(--couleur_jaune);
	animation: words 20s infinite;
}

.text_animation span::after {
	content: "";
	background-color: var(--couleur_fond);
	position: absolute;
	width: calc(100% + 8px);
	height: 100%;
	border-left: 3px solid var(--couleur_orange);
	right: -8px;
	animation: cursor 0.6s infinite, typing 20s steps(14) infinite;
}

@keyframes cursor {
	to {
		border-left: 2px solid var(--couleur_fond);
	}
}

@keyframes words {
	0%,
	20% {
		content: "Frontend Designer";
	}
	21%,
	40% {
		content: "Web Designer";
	}
	41%,
	60% {
		content: "UI / UX Designer";
	}
	61%,
	80% {
		content: "Web Developer";
	}
	81%,
	100% {
		content: "Backend Developer";
	}
}

@keyframes typing {
	10%,
	15%,
	30%,
	35%,
	50%,
	55%,
	70%,
	75%,
	90%,
	95% {
		width: 0;
	}
	5%,
	20%,
	25%,
	40%,
	45%,
	60%,
	65%,
	80%,
	85% {
		width: calc(100% + 8px);
	}
}

.heading {
	font-size: 8rem;
	text-align: center;
	margin: 5rem 0;
}

.about {
	padding: 100px 15px;
	background: #0f0f12;
}

.about h2 {
	margin-bottom: 5rem;
}

.timeline_items {
	max-width: 1200px;
	margin: auto;
	display: flex;
	flex-wrap: wrap;
	position: relative;
}

.timeline_items::before {
	content: "";
	position: absolute;
	width: 5px;
	height: 100%;
	background-color: var(--couleur_jaune);
	left: calc(50% - 1px);
}

.timeline_item {
	margin-bottom: 40px;
	width: 100%;
	position: relative;
}

.timeline_item:last-child {
	margin-bottom: 0;
}

.timeline_item:nth-child(odd) {
	padding-right: calc(50% + 30px);
	text-align: right;
}

.timeline_item:nth-child(even) {
	padding-left: calc(50% + 30px);
}

.timeline_dot {
	height: 21px;
	width: 21px;
	background-color: var(--couleur_jaune);
	box-shadow: 0 0 25px var(--couleur_jaune), 0 0 50px var(--couleur_jaune);
	position: absolute;
	left: calc(50% - 8px);
	border-radius: 50%;
	top: 10px;
}

.timeline_date {
	font-size: 20px;
	font-weight: 800;
	color: white;
	margin: 6px 0 15px;
}

.timeline_content {
	background-color: var(--couleur_fond);
	border: 3px solid var(--couleur_jaune);
	padding: 30px 50px;
	border-radius: 4rem;
	box-shadow: 0 0 10px var(--couleur_jaune);
	cursor: pointer;
	transition: 0.3s ease-in-out;
}

.timeline_content:hover {
	transform: scale(1.05);
	box-shadow: 0 0 25px var(--couleur_jaune);
}

.timeline_content h3 {
	font-size: 20px;
	color: white;
	margin: 0 0 10px;
	font-weight: 500;
}

.timeline_content p {
	color: white;
	font-size: 16px;
	font-weight: 300;
	line-height: 22px;
}

::-webkit-scrollbar {
	width: 15px;
}

::-webkit-scrollbar-thumb {
	background-color: var(--couleur_jaune);
}

::-webkit-scrollbar-track {
	background-color: var(--couleur_fond);
	width: 50px;
}

.service {
	background: var(--couleur_fond);
	color: black;
}

.service h2 {
	margin-bottom: 5rem;
	color: white;
}

.services_container {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	align-items: center;
	gap: 2.5rem;
}

.service_box {
	background-color: var(--couleur_jaune);
	height: 350px;
	border-radius: 3rem;
	border: 5px solid transparent;
	cursor: pointer;
	transition: 0.4s ease-in-out;
}

.service_box:hover {
	background: white;
	color: black;
	border: 5px solid var(--couleur_jaune);
	transform: scale(1.03);
}

.service_box .service_info {
	display: flex;
	flex-direction: column;
	text-align: left;
	max-height: 200px;
	justify-content: left;
	align-items: baseline;
	padding: 5rem 5rem;
}

.service_info h4 {
	font-size: 3rem;
	font-weight: 800;
	line-height: 2;
}

.service_info p {
	font-size: 1.6rem;
	font-weight: 600;
	max-height: 100px;
	line-height: 1.7;
	margin: auto;
}

.realisation {
	background: #0f0f12;
	color: black;
}

.realisation h2 {
	color: white;
}

.realisation_box {
	background-size: cover;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-direction: column;
}

.realisation .heading {
	margin-bottom: 5rem;
}

.realisation_box img {
	width: 15rem;
	border-radius: 10%;
	border: 3px solid var(--couleur_jaune);
	box-shadow: 0 0 25px var(--couleur_jaune);
}

.wrapper {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 3rem;
}

.realisation_item {
	min-height: 550px;
	max-width: 450px;
	background: rgba(0, 0, 0, 0.7);
	border: 3px solid rgba(238, 238, 238, 0.2);
	border-radius: 2rem;
	margin: 0 2rem;
	padding: 30px 60px;
	cursor: pointer;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	gap: 1.5rem;
	color: white;
	transition: 0.4s ease-in-out;
}

.realisation_item:hover {
	border: 3px solid var(--couleur_jaune);
	transform: translateY(-10px) scale(1.03);
	box-shadow: 0 0 50px var(--couleur_jaune);
}

.realisation_item h2 {
	font-size: 2.8rem;
}

.realisation_item p {
	font-size: 1.3rem;
}

#plus {
	color: var(--couleur_orange);
	font-size: 3rem;
}

.competence1 {
	display: flex;
	flex-wrap: wrap;
}

.container1,
.container2,
.container3,
.container4 {
	width: fit-content;
	height: fit-content;
	padding: 75px 90px;
	margin-bottom: 5em;
	border-radius: 3rem;
	cursor: pointer;
	transition: 0.4s ease-in-out;
	display: flex;
	justify-content: center;
	flex-direction: column;
	align-items: center;
}

.container1:hover,
.container2:hover,
.container3:hover,
.container4:hover {
	transform: translateY(-10px) scale(1.03);
}

.container1 {
	border: 7px solid var(--couleur_jaune);
	box-shadow: 0 0 25px var(--couleur_jaune);
}

.container1:hover {
	border: 3px solid var(--couleur_jaune);
	box-shadow: 0 0 50px var(--couleur_jaune);
}

.container2 {
	border: 7px solid var(--couleur_bleu);
	box-shadow: 0 0 25px var(--couleur_bleu);
}

.container2:hover {
	border: 3px solid var(--couleur_bleu);
	box-shadow: 0 0 50px var(--couleur_bleu);
}

.container3 {
	border: 7px solid var(--couleur_orange);
	box-shadow: 0 0 25px var(--couleur_orange);
}

.container3:hover {
	border: 3px solid var(--couleur_orange);
	box-shadow: 0 0 50px var(--couleur_orange);
}

.container4 {
	border: 7px solid var(--couleur_saumon);
	box-shadow: 0 0 25px var(--couleur_saumon);
}

.container4:hover {
	border: 3px solid var(--couleur_saumon);
	box-shadow: 0 0 50px var(--couleur_saumon);
}

.heading1 {
	text-align: center;
	text-decoration: underline;
	text-underline-offset: 10px;
	text-decoration-thickness: 2px;
	margin-bottom: 50px;
}

.bar {
	font-size: 23px;
}

.technical_bars .bar {
	margin-top: 40px;
}

.technical_bars .bar:first-child {
	margin-top: 0;
}

.technical_bars .bar:last-child {
	margin-bottom: 0;
}

.technical_bars .bar .info {
	margin-bottom: 25px;
}

.technical_bars .bar .info span {
	font-size: 17px;
	font-weight: 500;
	animation: showText 0.5s 1s linear forwards;
	opacity: 0;
}

.technical_bars .bar .progress_line {
	position: relative;
	border-radius: 10px;
	width: 100%;
	height: 5px;
	background-color: black;
	animation: animate 1s cubic-bezier(1, 0, 0.5, 1) forwards;
	transform: scaleX(0);
	transform-origin: left;
}

@keyframes animate {
	100% {
		transform: scaleX(1);
	}
}

.technical_bars .bar .progress_line span {
	height: 100%;
	position: absolute;
	border-radius: 10px;
	animation: animate 1s 1s cubic-bezier(1, 0, 0.5, 1) forwards;
	transform: scaleX(0);
	transform-origin: left;
}

.technical_bars .bar .progress_line span.span1 {
	background-color: var(--couleur_jaune);
}

.technical_bars .bar .progress_line span.span2 {
	background-color: var(--couleur_bleu);
}

.technical_bars .bar .progress_line span.span3 {
	background-color: var(--couleur_orange);
}

.technical_bars .bar .progress_line span.span4 {
	background-color: var(--couleur_saumon);
}

.progress_line.kotlin span {
	width: 20%;
}
.progress_line.sql span {
	width: 75%;
}
.progress_line.java span {
	width: 30%;
}
.progress_line.php span {
	width: 80%;
}

.progress_line.html span {
	width: 90%;
}
.progress_line.css span {
	width: 85%;
}
.progress_line.javascript span {
	width: 85%;
}
.progress_line.tailwind span {
	width: 40%;
}

.progress_line.photoshop span {
	width: 85%;
}
.progress_line.illustrator span {
	width: 30%;
}
.progress_line.figma span {
	width: 85%;
}

.progress_line.equipe span {
	width: 55%;
}
.progress_line.communication span {
	width: 70%;
}
.progress_line.resolution span {
	width: 75%;
}
.progress_line.creativite span {
	width: 85%;
}

.progress_line span::after {
	position: absolute;
	padding: 1px 8px;
	background-color: rgba(0, 0, 0, 0.5);
	color: white;
	font-size: 12px;
	border-radius: 3px;
	top: -28px;
	right: -20px;
	animation: showText 0.5s 1.5s linear forwards;
	opacity: 0;
}

.progress_line.kotlin span::after {
	content: "20%";
}
.progress_line.sql span::after {
	content: "75%";
}
.progress_line.java span::after {
	content: "30%";
}
.progress_line.php span::after {
	content: "80%";
}

.progress_line.html span::after {
	content: "90%";
}
.progress_line.css span::after {
	content: "85%";
}
.progress_line.javascript span::after {
	content: "85%";
}
.progress_line.tailwind span::after {
	content: "40%";
}

.progress_line.photoshop span::after {
	content: "85%";
}
.progress_line.illustrator span::after {
	content: "30%";
}
.progress_line.figma span::after {
	content: "85%";
}

.progress_line.equipe span::after {
	content: "55%";
}
.progress_line.communication span::after {
	content: "70%";
}
.progress_line.resolution span::after {
	content: "75%";
}
.progress_line.creativite span::after {
	content: "85%";
}

.progress_line span::before {
	content: "";
	position: absolute;
	width: 0;
	height: 0;
	border: 7px solid transparent;
	border-bottom-width: 0px;
	border-right-width: 0px;
	border-top-color: black;
	top: -10px;
	right: 0;
	animation: showText 0.5s 1.5s linear forwards;
	opacity: 0;
}

@keyframes showText {
	100% {
		opacity: 1;
	}
}

.contact {
	background-color: var(--couleur_fond);
}

.contact h2 {
	margin-bottom: 3rem;
	color: white;
}

.contact form {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 3rem;
	margin: 5rem auto;
	text-align: center;
}

.contact form .input_box {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
}
::placeholder {
	color: white;
}
.contact form .input_box input,
.contact form textarea {
	width: 100%;
	padding: 2.5rem;
	font-size: 1.8rem;
	color: white;
	background: var(--couleur_fond);
	border-radius: 2rem;
	border: 2px solid var(--couleur_jaune);
	margin: 1.5rem 0;
	resize: none;
}

.contact form .btn {
	margin-top: 2rem;
}

.footer {
	position: relative;
	bottom: 0;
	width: 100%;
	padding: 40px 0;
	background-color: rgba(0, 0, 0, 0.3);
}

.footer .social {
	text-align: center;
	padding-bottom: 25px;
	color: var(--couleur_jaune);
}

.footer .social a {
	font-size: 25px;
	color: var(--couleur_jaune);
	border: 2px solid var(--couleur_jaune);
	width: 42px;
	height: 42px;
	line-height: 42px;
	display: inline-block;
	text-align: center;
	border-radius: 50%;
	margin: 0 10px;
	transition: 0.3s ease-in-out;
}

.footer .social a:hover {
	transform: scale(1.2) translateY(-10px);
	background-color: var(--couleur_jaune);
	color: white;
	box-shadow: 0 0 25px var(--couleur_jaune);
}

.footer ul {
	margin-top: 0;
	padding: 0;
	font-size: 18px;
	line-height: 1.6;
	margin-bottom: 0;
	text-align: center;
}

.footer ul li a {
	color: white;
	border-bottom: 3px solid transparent;
	transition: 0.3s ease-in-out;
}

.footer ul li a:hover {
	border-bottom: 3px solid var(--couleur_jaune);
}

.footer ul li {
	display: inline-block;
	padding: 0 15px;
}

.footer .copyright {
	margin-top: 50px;
	text-align: center;
	font-size: 16px;
	color: white;
}

@media (max-width: 1285px) {
	html {
		font-size: 55%;
	}
	.services_container {
		padding-bottom: 7rem;
		grid-template-columns: repeat(2, 1fr);
		margin: 0 5rem;
	}
}

@media (max-width: 991px) {
	header {
		padding: 2rem 3%;
	}
	section {
		padding: 10rem 3% 2rem;
	}
	.timeline_items::before {
		left: 7px;
	}
	.timeline_item:nth-child(odd) {
		padding-right: 0;
		text-align: left;
	}

	.timeline_item:nth-child(odd),
	.timeline_item:nth-child(even) {
		padding-left: 37px;
	}
	.timeline_dot {
		left: 0;
	}
	.service {
		padding-bottom: 7rem;
	}
	.realisation .wrapper {
		grid-template-columns: repeat(1, 1fr);
	}

	.contact form {
		flex-direction: column;
	}
	.footer {
		padding: 2rem 3%;
	}
}

@media (max-width: 895px) {
	#menu-icon {
		display: block;
	}

	#menu {
		position: absolute;
		top: 100%;
		right: 0;
		width: 50%;
		padding: 1rem 3%;
		background: rgba(0, 0, 0, 0.8);
		backdrop-filter: blur(20px);
		border-bottom-left-radius: 2rem;
		border-left: 2px solid var(--couleur_jaune);
		border-bottom: 2px solid var(--couleur_jaune);
		display: none;
	}
	#menu.active {
		display: block;
	}
	#menu a {
		display: block;
		font-size: 2rem;
		margin: 3rem 0;
		color: white;
	}
	.home {
		flex-direction: column-reverse;
		margin: 5rem 4rem;
	}
	.home_content h3 {
		font-size: 2.6rem;
	}
	.home_content h1 {
		font-size: 8rem;
		margin-top: 3rem;
	}
	.home_content p {
		max-width: 600px;
		margin-top: 0 auto;
	}
	.home_img img {
		width: 56vw;
	}
	.service h2 {
		margin-bottom: 3rem;
	}
	.services_container {
		grid-template-columns: repeat(1, 1fr);
	}
}

/*Notifications*/

.notifications {
	position: fixed;
	z-index: 1003;
	right: 20px;
	top: 100px;
}

.toast {
	position: relative;
	padding: 10px;
	color: #fff;
	margin-bottom: 10px;
	width: 400px;
	display: grid;
	grid-template-columns: 70px 1fr 70px;
	border-radius: 5px;
	--color: #0abf30;
	background-image: linear-gradient(to right, #0abf30, #22242f 30%);
	animation: show 0.3s ease 1 forwards;
}

.toast i {
	color: var(--color);
	display: flex;
	justify-content: center;
	align-items: center;
	font-size: 20rem;
}

.toast .notif-titre {
	font-size: 3rem;
	font-weight: bold;
}

.toast span,
.toast i:nth-child(3) {
	color: #fff;
	opacity: 0.6;
}

@keyframes show {
	0% {
		transform: translateX(100%);
	}
	40% {
		transform: translateX(-5%);
	}
	80% {
		transform: translateX(0%);
	}
	100% {
		transform: translateX(10%);
	}
}

.toast::before {
	position: absolute;
	bottom: 0;
	left: 0;
	background-color: var(--color);
	width: 100%;
	height: 3px;
	content: "";
	box-shadow: 0 0 10px var(--color);
	animation: timeOut 4s linear 1 forwards;
}

@keyframes timeOut {
	to {
		width: 0;
	}
}

.toast.error {
	--color: #f24d4c;
	background-image: linear-gradient(to right, #f24d4c55, #22242f 30%);
}

.toast.warning {
	--color: #e9bd0c;
	background-image: linear-gradient(to right, #f24d4c55, #22242f 30%);
}

@media (max-width: 375px) {
	.services_container {
		margin: 0;
	}
	.container1,
	.container2,
	.container3,
	.container4 {
		padding: 75px 50px;
	}
	.service_box {
		border: 0px solid transparent;
	}
	.home {
		gap: 5rem;
	}
	.technical_bars .bar .progress_line {
		width: 150px;
	}
}

@media (max-width: 425px) {
	.service_box {
		height: 550px;
	}
	.heading {
		font-size: 4.5rem;
	}
}
