@import url(animations.css);


/* ==== CSS ==== */

:root {
	--primary: #1111;
	--secondary: #333;
}

body{
	margin: 0 0;
}

main {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	margin: 0 5rem;
}

.container-nav {
	top: 0;
	width: 100%;
	height: auto;
	background-color: var(--secondary);
	display: flex;
	justify-content: space-between;
	align-items: center;
	position: relative;
	z-index: 2;
}

.titre {
	padding-left: 1rem;
	font-size: 30px;
	color: #fff;
}

.menu-label {
	display: flex;
	flex-direction: row;
	justify-content: end;
	gap: 1.5rem;
	font-size: 1rem;
	padding-right: 1rem;
	cursor: pointer;
	color: #fff;
	list-style: none;
}

.text-decoration {
	position: relative;
	text-decoration: none;
	color: inherit;
	transition: opacity 0.3s;
}

.text-decoration::before {
	content: "";
	position: absolute;
	bottom: -5px;
	left: 0;
	width: 0%;
	height: 1px;
	background-color: #fff;
	transition: width 0.6s ease;
}

.text-decoration:hover::before {
	width: 100%;
}

.text-decoration:active {
	opacity: 0.3;
}

header {
	position: relative;
	width: 100%; 
	height: auto;
}

.img-cover {
  position: relative;
  width: 100%;
  height: 20rem;
  overflow: hidden;
}

.slide {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  object-fit: cover;
  background-position: center;
  opacity: 0;
  animation: fadeSlide 35s infinite ease-in-out;
}

.slide:nth-child(1) { animation-delay: 0s; }
.slide:nth-child(2) { animation-delay: 6s; }
.slide:nth-child(3) { animation-delay: 12s; }
.slide:nth-child(4) { animation-delay: 18s; }
.slide:nth-child(5) { animation-delay: 24s; }
.slide:nth-child(6) { animation-delay: 30s; }

.img-profil {
	position: absolute;
	bottom: -5.5rem;
	left: 3.5rem;   
	width: 11.5rem; 
	border-radius: 50%;
	border: 2px solid white; 
	z-index: 2;
}

.name {
	position: absolute;
	margin-left: 4.5rem;
	margin-top: 6rem;
	font-size: 1.6rem;
	font-weight: bold;
}

.professionnel {
	position: absolute;
	font-size: 1.8rem;
	margin-top: 9rem;
	margin-left: 1rem;
	white-space: nowrap;
	overflow: hidden;
	color: black;
	animation: typing 4s steps(22) infinite alternate-reverse;
}

.section-pre {
	background-color: var(--primary);
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	padding-top: 1rem;
	width: 37rem;
	height: 37rem;
	border-radius: 100%;
	margin-top: 18rem;
}

.Presentation {
	display: flex;
	align-items: center;
	justify-content: center;
	margin-top: 5rem;
	font-size: 3rem;
	background: url("images/black-and-white-1.webp") center;
	background-size: cover;
	background-clip: text;
	color: transparent; 
	animation: animate 6s linear infinite reverse;
} 

.p-presentation {
	background-color: #aca9a9;
	width: 30rem;
	height: auto;
	margin-top: -10px;
	padding: 2rem;
	border-radius: 4rem;
}

.cv {
	background-color: #fff;
	color: black;
	border: 1px solid #fff;
	margin-top: 3rem;
	padding: 1rem;
	border-radius: 50%;
	cursor: pointer;
	box-shadow: 0px 1px 16px 4px rgba(0,0,0,0.62);
	transition: transform 0.3s ease, opacity 0.3s ease
}

.cv:hover{
	transform: scale(0.9) ;
}

.cv:active{
	opacity: 0.3;
}


.button-cv {
	text-decoration: none;
	font-family: sans-serif;
	color: black;
	font-size: 0.8rem;
}

.section-comp{
	height: auto;
	margin-top: -1.5rem;
}

.competences{
	display: flex;
	align-items: center;
	justify-content: center;
	height: 10rem;
	margin-top: 1.5em;
	margin-bottom: 4rem;
	font-size: 3rem;
}

.img-competences {
	width: 8rem;
	height: 6rem;
	cursor: pointer;
}

.img-competences:hover {
	transform: scale(1.1);
	transition: transform 0.6s ease; 
}

.img-competences:active {
	opacity: 0.5;
}

.img-comp {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 7rem;
}

.hr-1 {
	margin-top: 7rem;
	width: 100%;
}

.section-parcours {
	background-color: var(--primary);
	width: 100%;
	height: auto;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	margin-top: 6rem;
	border-radius: 40rem;
}

.text-parcous {
	height: 10rem;
	margin-top: 2em;
	margin-bottom: 4rem;
	font-size: 3rem;
	background: url("images/black-and-white-1.webp") center;
	background-size: cover;
	background-clip: text;
	color: transparent; 
	animation: animate 6s linear infinite reverse;
}

.card {
	background: #fff;
	margin-top: -3rem;
	margin-bottom: 6rem;
	border-left: 6px solid #5c5c5c;
	border-radius: 8px;
	padding: 1.5rem 1.8rem;
	box-shadow: 0 8px 24px rgba(0,0,0,0.60);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	opacity: 0;
	transform: translateY(30px); 
	animation: fadeInCard 1s ease-out forwards;
	animation-timeline: view();
	animation-range: entry 10% cover 60%;
	width: 26rem;
	height: 30rem;
	position: relative;
}

.card-2 {
	background: #fff;
	margin-top: -3rem;
	margin-bottom: 5rem;
	border-left: 6px solid #5c5c5c;
	border-radius: 8px;
	width: 26rem;
	height: 9em;
	padding: 1.5rem 1.8rem;
	box-shadow: 0 8px 24px rgba(0,0,0,0.60);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	opacity: 0;
	transform: translateY(30px); 
	animation: fadeInCard 1s ease-out forwards;
	animation-timeline: view();
	animation-range: entry 10% cover 60%;
}

.descriptif {
	position: absolute;
	margin-top:-26rem;
	margin-left: 1.5rem;
	width: 25rem;
	background: #aca9a9;
	padding: 1rem;
	border-left: 6px solid #5c5c5c;
	border-radius: 6px;
	opacity: 0;
	transform: translateY(20px);
	animation: fadeInText 1s ease-out forwards;
	animation-timeline: view();
	animation-range: entry 10% cover 50%;
}

.section-projets {
	width: 100%;
	height: auto;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
}

.text-projets {
	height: 10rem;
	margin-top: 2em;
	margin-bottom: 1rem;
	font-size: 3rem;
}

.article-cards {
	display: flex;
	flex-direction: row;
	gap: 7rem 4rem;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
}

.cards {
	background-color: var(--primary);
	width: 20rem;
	height: 22rem;
	border-radius: 2rem;
	cursor: pointer;
	transition: transform 0.6s ease, opacity 0.3s ease;
	box-shadow: 16px 19px 10px -3px rgba(0,0,0,0.4)
}

.cards:hover {
	transform: scale(1.04);
}

.cards:active {
	opacity: 0.5;
}

.img-cards {
	width: 100%;
	height: 10rem;
	object-fit: cover;
}

.cards-img-logo {
	display: flex;
	flex-direction: row;
	justify-content: start;
	align-items: end;
	gap: 3rem 0.2rem;
	flex-wrap: wrap;
	height: 0.2rem;
	margin-top: -1rem;
}

.h3-projets {
	padding-left: 1rem;
	color: black;
}

.p-projets {
	padding-left: 1rem;
	color: black;
}

.address-github {
	text-decoration: none;
}

.footer {
	background-color: var(--secondary);
	color: #fff;
	margin-top: 6rem;
	padding: 2rem 1rem 1rem;
	box-shadow: 0 -3px 15px rgba(0, 0, 0, 0.4);
	font-family: sans-serif;
}

.footer-content {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-around;
	gap: 2rem;
	margin-bottom: 1.5rem;
}

.footer-contact h3,
.footer-social h3 {
	font-size: 1.1rem;
	margin-bottom: 0.5rem;
	border-bottom: 1px solid #555;
	padding-bottom: 0.3rem;
	width: fit-content;
}

.footer-contact p {
	font-size: 0.9rem;
	margin: 0.3rem 0;
	color: #ccc;
}

.footer-icons {
	display: flex;
	gap: 1rem;
	margin-top: 0.5rem;
	margin-left: 0.5rem;
}

.footer-icon {
	width: 2rem;
	height: 2rem;
	filter: brightness(0) invert(1);
	transition: transform 0.3s ease, opacity 0.3s ease;
	opacity: 0.8;
}

.footer-icon:hover {
	transform: scale(1.2);
	opacity: 1;
}

.footer-bottom {
	border-top: 1px solid #555;
	text-align: center;
	font-size: 0.85rem;
	color: #aaa;
	padding-top: 1rem;
}

.address-contact {
	color: inherit;
	text-decoration: none;
}

.address-contact:hover {
	opacity: 0.6;
}

.address-contact:active {
	opacity: 0.3;
}

.github-cards-p1 {
	color: black;
	filter: invert(0);
	width: 2rem;
	padding-left: 1rem;
	margin-top: -4rem;
} 

.container-logo-cards {
	display: flex;
	flex-direction: row;
	margin-left: 3rem;
	background-color: black;
}

.logo-cards {
	color: black;
	filter: invert(0);
	width: 1.8rem;
	padding-left: 1rem;
	margin-top: -1.8rem;
	height: 1.6rem;
} 

.img-js {
	width: 1.8rem;
	height: 1.6rem;
}

.github-cards-p2 {
	color: black;
	filter: invert(0);
	width: 2rem;
	padding-left: 1rem;
	margin-bottom: -4rem;
}

.github-cards-p3 {
	color: black;
	filter: invert(0);
	width: 2rem;
	padding-left: 1rem;
	margin-bottom: -3rem;
}

.github-cards-p4 {
	color: black;
	filter: invert(0);
	width: 2rem;
	padding-left: 1rem;
	margin-bottom: -3rem;
}

.github-cards-p5 {
	color: black;
	filter: invert(0);
	width: 2rem;
	padding-left: 1rem;
	margin-bottom: -4rem;
}

.github-cards-p6 {
	color: black;
	filter: invert(0);
	width: 2rem;
	padding-left: 1rem;
	margin-bottom: -3rem;
}

.github-cards-p7 {
	color: black;
	filter: invert(0);
	width: 2rem;
	padding-left: 1rem;
	margin-bottom: -3rem;
}

.github-cards-p8 {
	color: black;
	filter: invert(0);
	width: 2rem;
	padding-left: 1rem;
	margin-bottom: -4rem;
}

.github-cards-p9 {
	color: black;
	filter: invert(0);
	width: 2rem;
	padding-left: 1rem;
	margin-bottom: -2rem;
}

.github-cards:hover {
	transform: scale(1.1);
}

.github-cards:active {
	opacity: 0.5;
}


/* ==== Mobile (max 767px) ==== */


@media (max-width: 768px) {

	body {
		overflow-x: hidden;
	}

	.container-nav {
		flex-direction: column;
		justify-content: center;
		align-items: center;
		height: 7rem;
	}

	.titre {
		font-size: 25px;
		margin-bottom: 0.5rem;
	}

	.menu-label {
		display: flex;
		flex-direction: row;
		justify-content: center;
		align-items: center;
		margin-left: -3rem;
		margin-top: 1.5rem;
		flex-wrap: wrap;
		gap: 1rem 1.2rem;
		font-size: 1rem;
		padding-right: -2rem -2rem;
		padding-left: 4rem;
	}

	.section-pre {
		width: 25rem;
		height: 25rem;
		position: relative;
		margin-top: 11rem;
	}

	.p-presentation {
		width: 17rem;
		margin-top: -1rem;
		margin-top: 0.1rem;
		padding: 1.4rem;
		font-size: 0.8rem;
	}

	.Presentation {
		margin-top: -4rem;
		font-size: 1.7rem;
	}

	.cv {
		position: absolute;
		display: flex;
		align-items: center;
		justify-content: center;
		width: 0.4rem;
		height: 0.4rem;
		font-size: 0.6rem;
		margin-top: 20rem;
	}

	.img-cover {
		height: 8rem;
	}

	.img-profil {
		width: 6rem;
		top: 4.5rem;
		left: 1rem;
	}

	.name {
		font-size: 1.1rem;
		margin-left: 1rem;
		margin-top: 3.5rem;
	}

	.professionnel {
		font-size: 1.2rem;
		margin-left: 1rem;
		margin-top: 5.5rem;
	}

	.competences{
		font-size: 2rem;
	}

	.img-comp {
		gap: 7rem 0.8rem;
	}

	.cards {
		margin-top: 3rem;
		width: 22rem;
		height: 23rem;
	}

	.cards-img-logo {
		margin-top: -3rem;      
		flex-wrap: wrap;     
		justify-content: center;
		gap: 0.5rem;
	}

	.github-cards-p1 {
		width: 32px;
		margin-left: -19rem;
	}


	.section-parcours {
		display: flex;
		flex-direction: column;
		justify-content: center;
		align-items: center;
		border-radius: 0;
		width: 26rem;
	}

	.text-parcous {
		font-size: 2rem;
	}

	.card {
		width: 20rem;
		margin-top: -6rem;
		height: 40rem;
	}

	.card-2 {
		width: 20rem;
		margin-top: -3rem;
	}

	.descriptif {
		width: 17rem;
		margin-left: 2.4rem;
		margin-top: -34.3rem;
	}

	.text-projets {
		font-size: 2rem;
		margin-bottom: -5rem;
	}

	.cards {
		margin-bottom: 2rem;
	}

	.footer-contact h3,
	.footer-social h3 {
		font-size: 0.8rem;
	}

	.footer-contact p {
		font-size: 0.7rem;
	}

	.footer-icons {
		display: flex;
		gap: 1rem;
		margin-top: 0.5rem;
		margin-left: 0.5rem;
	}

	.footer-icon {
		width: 1.5rem;
		height: 1.5rem;
	}

	.footer-bottom {
		font-size: 0.7rem;
	}

	.container-logo-cards {
		display: flex;
		flex-direction: row;
		margin-left: 3rem;
		background-color: black;
}

.logo-cards {
	color: black;
	filter: invert(0);
	width: 1.8rem;
	padding-left: 1rem;
	margin-top: -1.8rem;
	height: 1.6rem;
} 

.article-cards {
	gap: 2rem;
}

}



/* ==== Tablet (768px – 1024px) ==== */


@media (min-width: 768px) and (max-width: 1024px) {

	.card-2 {
		width: 20rem;
		margin-left: 3rem;
	}

	.img-cover {
		height: 13rem;
	}

	.img-profil {
		width: 9rem;
		top: 8rem;
		left: 2rem;
	}

	.name {
		font-size: 1.3rem;
		margin-left: 2.5rem;
		margin-top: 5rem;
	}

	.professionnel {
		font-size: 1.5rem;
		margin-left: 1rem;
		margin-top: 7rem;
	}
	
}
