body{
	font-family: 'Nunito', Arial, sans-serif;
	margin: 0;
	min-height: 100vh;
	background-image: url('background.jpg');
	background-size: cover;
	background-position: center;
	color: #fff;
	font-size: 14px;
  overflow: hidden;
}
body .container{
  padding-top: 12vh;
  padding-bottom: 10vh;
}

* {
	box-sizing: border-box;
}
body::-webkit-scrollbar {
  width: 10px;
}
 
body::-webkit-scrollbar-track {
  background-color: #eeeeee;
  box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
}
 
body::-webkit-scrollbar-thumb {
  background-color: #444444;
  box-shadow: inset 0 0 6px #fff;
  border-radius: 10px;
}
h1, h2, h3{
	text-align: center;
}
h1{
  margin-bottom: 0px;
}

.container{
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	height: 100%;
}
.card{
	width: 500px;
	padding: 20px 30px;
	background: linear-gradient(160deg, #aaaaaa66, #11111166);
	backdrop-filter: blur(2px);
	box-shadow: 0 0 10px #eee;
	border-radius: 20px;
	display: flex;
	flex-direction: column;
	flex-wrap: wrap;
	justify-content: center;
  position: relative;
  z-index: 1;
}
.card img{
	display: block;
	margin: 0 auto;
	margin-top: -80px;
	width: 120px;
	filter: drop-shadow(0 0 10px #fff);
  /* Conserve tes styles actuels et ajoute ceux-là : */
    transition: transform 0.1s ease-out; /* Fluidité du mouvement */
    transform-style: preserve-3d;
    will-change: transform; /* Optimisation des performances */
}

.projects{
  width: calc(50% - 20px);
  background: linear-gradient(160deg, #aaaaaabb, #111111bb);
  box-shadow: 0 0 10px #eee;
  border-radius: 20px;
  font-size: 12px;
  margin: 10px;
  padding: 8px;
  transition: all 0.2s
  display: flex;
  flex-direction: column;
}
.contact{
	display: flex;
	flex-wrap: wrap;
	justify-content: space-around;
	padding: 10px 20px;
  background: linear-gradient(160deg, #aaaaaabb, #111111bb);
  box-shadow: 0 0 10px #eee;
  border-radius: 20px;
  margin-top: 20px;
}

.contact span{
	display: inline-block;
	margin: 8px 10px;
}
.contact span:not(:first-child){
	margin-left: 3px;
}

.contact i{
	vertical-align: middle;
	font-size: 20px;
}

.skills i{
	font-size: 30px;
	vertical-align: middle;
	padding-bottom: 6px;
}
.skills{
	display: flex;
	flex-wrap: wrap;
}
.skill{
	width: calc(50% - 20px);
  background: linear-gradient(160deg, #aaaaaa66, #11111166);
  backdrop-filter: blur(2px);
  box-shadow: 0 0 10px #eee;
  border-radius: 20px;
  font-size: 12px;
  margin: 10px;
  padding: 8px;
  transition: all 0.2s;
}

/*body:not(.modal-open) .skill,
.skill-button,
.skill.open .skill-content .close{
  cursor: pointer;
}*/

.skill-button{
	display: flex;
	width: 100%;
	background-color: transparent;
	border: none;
	flex-direction: column;
	align-items: center;
	text-align: center;
	padding: 10px;
	color: #fff;
}

/*.skill:hover{
  box-shadow: 0 0 20px #eee;
  transform: scale(1.2);
}*/

.skill .skill-content{
  position: fixed;
  z-index: 2;
  width: 0;
  height: 0;
  top: 20%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  transition: all 0.2s, opacity 0.6s;
  opacity: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}
.skill.open .skill-content{
  background: linear-gradient(160deg, #888888dd, #111111dd);
  box-shadow: 0 0 10px #eee;
  border-radius: 20px;
  font-size: 12px;
  padding: 8px;
  width: 90%;
  max-width: 400px;
  height: 90%;
  max-height: 600px;
  top: 50%;
  opacity: 1;
  transform: translate(-50%, -50%) scale(1) translate3d(0, 0, 0);
  z-index: 8;
}
.skill-header{
  display: flex;
  justify-content: center;
  align-items: center;
}
.skill-header h3{
  font-size: 26px;
  margin-left: 12px;
}
.skill-content p{
  margin-top: 15px;
  font-size: 20px;
  padding: 15px;
  text-align: justify;
}
.skill-content p i{
  font-size: 16px;
  margin-top: 15px;
  display: inline-block;
}
.skill.open .skill-content .close{
  font-size: 20px;
  font-weight: bold;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 38px;
  height: 38px;
  padding: 10px;
  border-radius: 50px;
  background-color: #222222cc;
  box-shadow: 0 0 8px #eee;
  position: absolute;
  top: -12px;
  right: -12px;
}
.modal-open .card:before{
  content: '';
  position: fixed;
  width: 300vw;
  height: 300vh;
  top: -100vh;
  left: -100vw;
  z-index: 1;
  background: #111111aa;
}

#particles-js{
  position: fixed;
  top: 0;
  width: 100%;
  height: 100%;
}



