:root {
  --main-bg-color: #3f65bc;
  --main-text-color: rgb(241, 241, 241);
  --font: Arial, Helvetica, sans-serif;
}

body {
  background-color: var(--main-bg-color);
  min-height: 10vh;
  font-family: var(--font);
  /* overflow: hidden; */
}

#menu {
  display: flex;
  justify-content: space-evenly;
}

#menu li {
  display: flex;
  justify-content: space-around;
}

#menu ul {
  display: flex;
  text-decoration: none;
}

.welcome {
  border-bottom-style: 1px solid #e7e7e7;
  border-bottom: 2px solid #e7e7e7;
  margin: 0;
  padding: 0;
  position: sticky;
  top: 0;
  overflow: hidden;
  background-color: #3f65bc;
}

.welcome ul {
  list-style-type: none;
  margin: 0;
  padding: 1%;
  overflow: hidden;
  display: block;
}

#backtotop {
  background: white;
  width: 60px;
  height: 60px;
  border-radius: 20px;
  display: flex;
  justify-content: center;
}

#backtotop::before {
  content: "";
  width: 25px;
  height: 25px;
  transform: rotate(45deg);
  margin: 23px 0 0 0px;
  border-left: 5px var(--main-bg-color) solid;
  border-top: 5px var(--main-bg-color) solid;
  border-right: 0;
  border-bottom: 0;
}

.welcome li {
  float: left;
}

.welcome li + li :hover {
  border-bottom: 2px solid #e7e7e7;
  -webkit-transition: all 300ms ease;
}

.button {
  border: 1px solid #e7e7e7;
  background-color: none;
}

.button :hover {
  background-color: var(--main-text-color);
  color: var(--main-bg-color);
  -webkit-transition: all 300ms ease;
}

.projet {
  display: flex;
  flex-direction: column;
}

.projet:hover {
  border: 1px black;
}

.projet div :hover {
  color: white;
}

.result {
  display: flex;
  flex-direction: column;
}

.project-container {
  display: flex;
  /* align-items: center; */
  justify-content: space-around;
  flex-direction: row;
  margin: -2px;
  /* flex-direction: column;  doit passer en column pour la version mobile */
}

.img-thumbnail {
  display: block;
  width: 100%;
  height: auto;
}

.welcome .title {
  font-size: 2rem;
}

.welcome li a {
  display: block;
  color: white;
  text-align: center;
  padding: 14px 16px;
  text-decoration: none;
}

.greetings {
  height: 250px;
  padding-bottom: 30%;
}

.hide {
  display: none;
}

h1 {
  font-family: var(--font);
}

.grid-container h1 {
  color: var(--main-text-color);
  font-size: 5em;
  margin-top: 15%;
  margin-bottom: -2%;
  margin-left: 50%;
  margin-right: 0;
}

h2 {
  font-size: 3em;
}

.RS {
  display: flex;
  position: relative;
  justify-content: flex-end;
  margin-top: 20px;
  margin-right: 13%;
  cursor: pointer;
}

.footer {
  list-style-type: none;
  color : white ; 
  display : flex;
  justify-content: space-between;
  cursor: pointer;
  border-top: 1px solid #e7e7e7;
  padding-top: 20px;
  margin: 0;
}

.footer li a {
  display: block;
  color: white;
  text-align: center;
  padding: 14px 16px;
}

/* .RSfooter{
display: flex;
position: relative;
padding-left: 10%;
justify-content: right;
} */

/* header icon */

#twit {
  width: 70%;
  height: 70%;
}

#linked {
  width: 70%;
  height: 70%;
}

.behance {
  width: 8%;
  height: 5%;
  margin: 5px;
}

#behance {
  width: 70%;
  height: 70%;
}

/* bottom icon */

.aboutme {
  padding-bottom: 10%;
}

#bottom_icon {
  display: flex;
  justify-content: right;
}

.Bttm_icon {
  width: 15%;
  margin: 5px;
  padding-left: 5%;
}

/* #twt{
width: 110%;
height: 360%;
} */

/* .lnkedin{
width: 20%;
height: 20%;
margin: 5px;
} */

/* #lnked{
width: 100%;
height: 350%;
} */

.comp {
  display: flex;
  align-items: center;
  justify-content: center;
}

.comp1 {
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 2px solid var(--main-text-color);
  background-color: #3d60b1;
  padding-top: 1%;
  padding-bottom: 10%;
  padding-left: 5%;
  padding-right: 5%;
  margin: 2%;
  width: 300px;
  height: 300px;
}

.projet {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  margin: 80px;
  margin-top: 50px;
  border-radius: 4px;
  top: 0;
}

.project-container {
  display: flex;
  align-items: center;
  justify-content: space-around;
  flex-direction: row;
  /* flex-direction: column;  doit passer en column pour la version mobile */
}

.img-thumbnail {
  max-width: 100%;
  height: auto;
}

.logo {
  width: 50px;
  height: 50px;
}

.description {
  border-top-color: white;
  border-top-style: solid;
  border-top-width: 0px;
  border-right-color: white;
  border-right-style: solid;
  border-right-width: 2px;
  border-bottom-color: white;
  border-bottom-style: solid;
  border-bottom-width: 2px;
  border-left-color: white;
  border-left-style: solid;
  border-left-width: 2px;
  background-color: #3d60b1;
  padding: 20px;
  z-index: 1;
  background-color: none;
  color: white;
}

.description h5 {
  font-size: 1.5em;
  margin-top: 3%;
}

.outil {
  display: flex;
  align-items: center;
  justify-content: space-around;
}

.elem {
  padding-top: 5%;
  background: white;
  width: 150px;
  height: 150px;
  border-radius: 22% 44% 29% 75% / 78% 64% 77% 50%;
  animation-name: bloup2;
  animation-duration: 10s;
  animation-iteration-count: infinite;
}

#adobeimg {
  width: 240px;
  height: 300px;
}

.comp1 p {
  font-size: 2em;
  color: rgb(241, 241, 241);
}

h3 {
  font-size: 2em;
  color: rgb(241, 241, 241);
}

.h2comp {
  margin-top: 10%;
  text-align: center;
  color: rgb(241, 241, 241);
}

h4 {
  color: rgb(241, 241, 241);
  font-size: 25px;
  margin-bottom: 0;
  margin-left: 50%;
  margin-right: 0;
}

.text {
  padding-right: 30%;
}

.contactme {
  display: flex;
  margin-left: 5%;
  justify-content: left;
}

.contactme a {
  background-color: var(--main-bg-color);
  border: 2px solid var(--main-text-color);
  color: white;
  padding: 1%;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 24px;
  margin: 4px 2px;
  cursor: pointer;
}

.contactme a:hover {
  background-color: var(--main-text-color);
  color: var(--main-bg-color);
  -webkit-transition: all 300ms ease;
}

.a_grid_container {
  background-color: var(--main-bg-color);
  border: 2px solid var(--main-text-color);
  color: white;
  cursor: pointer;
  padding: 3%;
  font-size: 16px;
  margin: 4px 2px;
  text-decoration: none;
}

.a_grid_container:hover {
  background-color: var(--main-text-color);
  color: black;
  font-style: bold;
  -webkit-transition: all 300ms ease;
}

.mask {
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  position: absolute;
  background: white;
  height: 320%;
  width: 100%;
  animation-duration: 1s;
  animation-iteration-count: initial;
  animation-name: woosh;
  z-index: 1;
}

#backtotop {
  background: white;
  width: 60px;
  height: 60px;
  border-radius: 20px;
  display: flex;
  justify-content: center;
}

#backtotop::before {
  content: "";
  width: 25px;
  height: 25px;
  transform: rotate(45deg);
  margin: 23px 0 0 0px;
  border-left: 5px var(--main-bg-color) solid;
  border-top: 5px var(--main-bg-color) solid;
  border-right: 0;
  border-bottom: 0;
}

.box H3 {
  font-size: 3rem;
  height: 150%;
  width: 87%;
  padding-right: 5%;
  padding-left: 5%;
  margin-top: 5%;
}

.text-aboutme {
  color: var(--main-text-color);
  font-size: 1.5rem;
  width: 50%;
  margin-left: 25%;
  text-align: justify;
}

.text-contact {
  color: var(--main-text-color);
  width: 50%;
  margin-left: 25%;
  text-align: justify;
}

#arrow div {
  padding-top: 30%;
}
#arrow div:before {
  content: "";
  animation-duration: 3s;
  animation-iteration-count: infinite;
  animation-name: arrow;
}

#arrow,
#arrow:before {
  position: absolute;
  left: 50%;
}

#arrow {
  width: 40px;
  height: 40px;
  top: 90%;
  margin: -20px 0 0 -20px;
  border-left: 2px #fff solid;
  border-top: 2px #fff solid;
  border-right: 2px #fff solid;
  border-bottom: 2px #fff solid;
  border-radius: 50%;
  cursor: pointer;
}

#arrow:before {
  content: "";
  width: 20px;
  height: 20px;
  top: 50%;
  margin: -12px 0 0 -12px;
  border-left: 2px #fff solid;
  border-top: 2px #fff solid;
  border-right: 2px #fff solid;
  border-bottom: 2px #fff solid;
  border-radius: 50%;
  animation-duration: 3s;
  animation-iteration-count: infinite;
  animation-name: arrow;
}

.posarro {
  display: flex;
  position: relative;
  justify-content: center;
  margin-top: 7%;
}

#arrow2,
#arrow2:before {
  position: absolute;
  left: 50%;
}

#arrow2 {
  width: 40px;
  height: 40px;
  margin: -20px 0 0 -20px;
  border-left: 0;
  border-top: 0;
  border-right: 2px #fff solid;
  border-bottom: 2px #fff solid;
  cursor: pointer;
  transform: rotate(45deg);
  animation-duration: 3s;
  animation-iteration-count: infinite;
  animation-name: arrow;
}

#arrow2:before {
  content: "";
  width: 20px;
  height: 20px;
  top: 50%;
  margin: -12px 0 0 -12px;
  border-left: 0;
  border-top: 0;
  border-right: 2px #fff solid;
  border-bottom: 2px #fff solid;
  animation-duration: 3s;
  animation-iteration-count: infinite;
  animation-name: arrow;
}

#arrow3,
#arrow3:before {
  position: absolute;
  left: 50%;
}

#arrow3 {
  width: 40px;
  height: 40px;
  margin: -20px 0 0 -20px;
  border-left: 0;
  border-top: 0;
  border-right: 2px #fff solid;
  border-bottom: 2px #fff solid;
  cursor: pointer;
  transform: rotate(45deg);
  animation-duration: 3s;
  animation-iteration-count: infinite;
  animation-name: arrow;
}

#arrow3:before {
  content: "";
  width: 20px;
  height: 20px;
  top: 50%;
  margin: -12px 0 0 -12px;
  border-left: 0;
  border-top: 0;
  border-right: 2px #fff solid;
  border-bottom: 2px #fff solid;
  animation-duration: 3s;
  animation-iteration-count: infinite;
  animation-name: arrow;
}

@keyframes arrow {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

@keyframes moveToRight {
  0% {
    transform: translateX(0px);
  }
  100% {
    transform: translateX(1000px);
  }
}

@keyframes Dowierdthings {
  0% {
    border-raduis: 97% 100% 23% 24% / 0% 7% 95% 90%;
  }
  30% {
    border-raduis: 42% 100% 23% 71% / 16% 18% 57% 31%;
  }
  50% {
    width: 150px;
    height: 170px;
    border-radius: 22% 44% 29% 23% / 39% 10% 62% 34%;
  }
  80% {
    -webkit-transform: rotate(180deg);
    width: 160px;
    height: 150px;
    border-radius: 22% 44% 29% 75% / 78% 64% 77% 50%;
  }
  90% {
    width: 150px;
    height: 170px;
    border-radius: 97% 65% 74% 100% / 78% 64% 77% 50%;
  }
  100% {
    width: 170px;
    height: 150px;
    border-radius: 22% 44% 29% 23% / 39% 10% 62% 34%;
  }
}

@keyframes woosh {
  0% {
    transform: translateX(-1000px);
  }
  100% {
    transform: translateX(0px);
  }
}

/* Donne la possibilité de centraliser le comportement sur tout les écrans */
.twitter {
  width: clamp(8%, 8%, 20%);
  height: clamp(8%, 8%, 10%);
  margin: clamp(5px, 5px, 10px);
}

.linkedin {
  width: clamp(8%, 8%, 20%);
  height: clamp(5%, 8%, 8%);
  margin: clamp(5px, 5px, 10px);
}

@media screen and (min-width: 300px) and (max-width: 1000px) {
  .project-container {
    flex-direction: column;
  }

  .contactme a {
    padding: 2%;
  }

  .grid-container h1 {
    margin-top: 15%;
    margin-bottom: -2%;
    margin-left: 5%;
    margin-right: 0;
  }

  h2 {
    font-size: 2em;
  }

  .h2comp {
    margin-top: 30%;
  }

  h3 {
    font-size: 1.5em;
    color: var(--main-text-color);
  }

  h4 {
    margin-left: 5%;
  }

  .box H3 {
    font-size: 2rem;
  }

  .comp {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .projet {
    margin-top: 50px;
    width: 80%;
  }

  .greetings {
    padding-bottom: 80%;
  }

  .adobeimg {
    width: 200px;
    height: 200px;
  }

  .Bttm_icon {
    width: 15%;
    margin: 5px;
  }

  .posarro {
    display: none;
  }

  .comp1 {
    width: 80%;
    height: 100%;
    margin-top: 2%;
    margin-right: 0%;
    margin-bottom: 2%;
    margin-left: 0%;
    padding-left: 0%;
    padding-right: 0%;
  }

  .text-aboutme {
    color: var(--main-text-color);
    font-size: 1.5rem;
    width: 70%;
    margin-left: 15%;
    text-align: justify;
  }

  .text-contact {
    color: var(--main-text-color);
    width: 70%;
    margin-left: 15%;
    text-align: justify;
  }
}

@media screen and (min-height: 100%) {
  .project-container {
    flex-direction: column;
  }

  .contactme a {
    padding: 2%;
  }

  .grid-container h1 {
    margin-top: 15%;
    margin-bottom: -2%;
    margin-left: 5%;
    margin-right: 0;
  }

  h2 {
    font-size: 2em;
  }

  .h2comp {
    margin-top: 30%;
  }

  h3 {
    font-size: 1.5em;
  }

  h4 {
    margin-left: 5%;
  }

  .box H3 {
    font-size: 2rem;
  }

  .comp {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .projet {
    margin-top: 50px;
    width: 60%;
  }

  .greetings {
    padding-bottom: 0%;
  }

  #adobeimg {
    width: 200px;
    height: 200px;
  }

  .Bttm_icon {
    width: 15%;
    margin: 5px;
  }

  .posarro {
    display: none;
  }

  .comp1 {
    width: 40%;
    height: 100%;
    margin-top: 2%;
    margin-right: 0%;
    margin-bottom: 2%;
    margin-left: 0%;
    padding-left: 0%;
    padding-right: 0%;
  }

  .text-aboutme {
    color: var(--main-text-color);
    font-size: 1.5rem;
    width: 70%;
    margin-left: 15%;
    text-align: justify;
  }

  .text-contact {
    color: var(--main-text-color);
    width: 70%;
    margin-left: 15%;
    text-align: justify;
  }
}

.box-hover {
  position: relative;
  width: 50%;
}

.overlay {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100%;
  width: 100%;
  opacity: 0;
  transition: 0.5s ease;
  background-color: rgb(241, 241, 241);
}

.box-hover:hover .overlay {
  opacity: 1;
}

.text {
  color: var(--main-bg-color);
  font-size: 3rem;
  position: absolute;
  top: 50%;
  left: 63%;
  -webkit-transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
  text-align: center;
}
