/* keyframes animations */

@keyframes grow-shrink {

  0%,
  100% {
    transform: scale(1.1) rotate(8deg);
  }

  50% {
    transform: scale(1.2) rotate(7deg);
  }
}


/* globals */

html {
  scroll-behavior: smooth;
  color: white;
}

body {
  margin: 0px;
  background-image: url('stonebackground6.webp');
  background-repeat: repeat;
  background-size: auto;
}


/* Ajusteur de scrolling */
article {
  scroll-margin-top: 160px;
}

#logs {
  scroll-margin-top: 140px;
}

h2 {
  font-size: 2vw;
  background-image: url('titlebackground.webp');
  background-size: 100% 100%;
  background-position: center;
  background-repeat: no-repeat;
  padding: 10px 40px 20px 40px;
  margin: 0;
}

h3 {
  margin: 0px;
  width: 70%;
}

#basic-stats {
  margin: 20px 0 10px 0;
  font-size: 1.6vw;
  width: auto;
}


a {
  text-decoration: none;
  color: white;
}

ul {
  list-style: none;
  padding: 0;
}

/* Top */

nav {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: url('woodbackground2.webp');
  border-bottom: 20px solid transparent;
  border-image-repeat: stretch;
  border-image-slice: 40;
  border-image-source: url('woodenborder.webp');
  font-size: 1.05vw;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10;
}

nav ul {
  display: grid;
  height: 7vh;
  grid-template-columns: repeat(5, 1fr);
  margin: 0;
  align-items: center;
  justify-content: center;
  color: white;
  gap: 1px;
}

nav li {
  height: 100%;
  justify-content: center;
  display: flex;
}

nav a {
  height: 100%;
  width: 100%;
  padding: 5px 20px 5px 20px;
  display: flex;
  text-align: center;
  justify-content: center;
  align-items: center;
  border-top: 0px;
  margin: 0 1px 0 1px;
}

nav a:hover {
  background-color: rgba(255, 255, 255, 0.158);
  border-left: 1px solid white;
  border-right: 1px solid white;
  margin: 0;
}



/* Title */
h1 {
  margin-top: 150px;
  margin-bottom:0px;
  font-size: 8vw;
}

.main-title{
  margin-bottom:125px;
}

.main-title span{
  font-size: 4.5vw;
  padding-left: 50px;
}

/* Cards */


/* Cible toutes les cards */
article {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  height: auto;
  width: 100%;
  background-image: url('woodbackground1.webp');
  background-repeat: repeat;
  background-size: auto;
  border-top: 28px solid transparent;
  border-bottom: 28px solid transparent;
  border-image-repeat: stretch;
  border-image-slice: 40;
  border-image-source: url('woodenborder.webp');
}

/* Englobe les cards */
.main-container {
  width: 100%;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 155px;
  background-color: rgba(0, 0, 0, 0.5);
}


/* Card profile */

#profile {
  margin-top: -200px;
}

.profile-card {
  display: inline-flex;
  flex-direction: row;
  width: 70%;
  height: 100%;
  margin: 20px 0 20px 0
}

.profile-visual {
  display: flex;
  height: 100%;
  width: 50%;
  justify-content: center;

}

.profile-infos {
  width: 50%;
  display: inline-flex;
  flex-direction: column;
}

/* Texte haut droite */

.profile-resume {
  height: 50%;
  width: calc(100% - 36px);
  display: flex;
  background-color: rgba(0, 0, 0, 0.322);
  margin: 0;
  padding: 20px;
}

.profile-resume p {
  text-align: center;
  align-self: center;
  font-size: calc(10px + 0.5vw);
}


/* Texte bas droite */

.profile-stats {
  height: 50%;
  width: 100%;
  border: 2px solid white;
  background-color: #554A3F;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
}

.profile-stats ul {
  display: inline-flex;
  flex-direction: column;
  justify-content: space-between;
  height: 60%;
  font-size: 1.2vw;
  width: calc(100% - 140px);
  margin-left: 140px;
  margin: 0;
}


/* Card masteries + Card skills */
/* Je les ai regroupé car les deux cards sont très similaires en terme de présentation attendue */

.masteries-lists,
.skills-lists {
  display: grid;
  text-align: center;
  justify-items: center;
  width: 70%;
  margin: 30px 0 30px 0;
}

.masteries-lists {
  grid-template-columns: repeat(3, 1fr);
}

.masteries-parch {
  width: 75%;
  padding: 20% 7% 5% 7%;
}

.skills-lists {
  grid-template-columns: repeat(2, 1fr);
}

.skills-parch {
  width: 80%;
  padding-top: 14%;
}


.parch-container {
  color: black;
  background-image: url('parcharticle.webp');
  background-repeat: no-repeat;
  background-size: 100% 100%;
  background-position: center top;
  font-size: 1.1vw;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
}

.parch-container ul {
  display: inline-flex;
  flex-direction: column;
  align-items: baseline;
  padding-left: 20%;
  width: 100%;
  gap: 8px;
}

/* Cards logs */

/* Englobe les cards logs */
#logs {
  display: inline-flex;
  flex-direction: row;
  width: calc(80% + 105px);
  gap: 8%;
}

/* Cards logs specifics */
#logs article {
  height: 700px;
  border: 30px solid transparent;
  border-image-repeat: stretch;
  border-image-slice: 40;
  border-image-source: url('woodenborder.webp');
}

.logs-elements {
  display: inline-flex;
  flex-direction: column;
  color: black;
  background-image: url('parchachiev.webp');
  background-size: 100% 100%;
  margin: 40px 0 40px 0;
  width: 70%;
  height: 100%;
}

.logs-elements ul {
  padding: 5% 8% 5% 12%;
  height: 100%;
  display: inline-flex;
  flex-direction: column;
  align-content: space-around;
  justify-content: space-around;
}

.logs-elements strong {
  font-size: 1.1vw;
}

.logs-elements i {
  font-size: 0.85vw;
  color: black;
  font-weight: normal
}

#currently-span {
  display: inline-flex;
  padding: 0 0 8px 25px;
  font-weight: bold;
  font-size: 0.85vw;
  color: red;
  animation: grow-shrink 1.5s ease-in-out infinite;
}

.currently {
  display: inline-flex;
  justify-content: space-between;
}

/* Card achiev */

#achievements {
  height: auto;
}

#achievements ul {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  row-gap: 15%;
  width: 70%;
  height: 500px;
  margin: 40px 0 40px 0;
  justify-items: center;
}

#achievements a {
  color: rgba(0, 0, 0, 0.781);
  height: 100%;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  padding: 10px;
  background-image: url('parchachiev.webp');
  background-size: 100% 100%;
  background-position: center;
  background-repeat: no-repeat;
  transition: transform 0.3s ease;
}

#achievements a:hover {
  cursor: pointer;
  color: brown;
  transform: scale(1.1);
}

#achievements span {
  font-size: 1.2vw;
  padding: 15px;
  text-align: center;
}

.project-title {
  font-weight: bold;
}



/* Contact */

.contact {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin: 150px 0 150px 0;
  scroll-margin-top: 150px;
}

#form-part {
  background-color: #554A3F;
  background-image: none;
  border: 2px solid white;
  padding-top: 25px;
  width: 50%;
}

#form-part form {
  margin: 40px 0 40px 0;
  width: 80%;
}

.form-top {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
}

.form-top label {
  width: auto;
}

.form-top div {
  display: inline-flex;
  flex-direction: column;
  margin: 15px 0 15px 0;
}


.form-bottom {
  margin: 15px 0 15px 0;
}

form {
  display: inline-flex;
  flex-direction: column;
}

form textarea {
  width: calc(100% - 9px);
  height: 32vh;
  resize: none;
  font-size: 1vw;
  padding: 10px 0 0 7px;
}

form input {
  width: 80%;
  height: 32px;
  font-size: 1.1vw;
  padding: 5px 0 5px 7px;
}

form textarea,
form input {
  background-color: rgba(0, 0, 0, 0.356);
  border: 1px solid rgba(255, 255, 255, 0.250);
  color: rgba(255, 255, 255, 0.781);
  font-family: 'Times New Roman', Times, serif;
}

form textarea:focus,
form input:focus {
  border: 1px solid rgba(255, 255, 255, 0.70);
  outline: none;
}

button {
  align-self: flex-end;
  font-family: 'Times New Roman', Times, serif;
  font-size: 1.3vw;
  width: 26%;
  height: 50px;
}

/* Bottom */

footer {
  height: 150px;
  width: 100%;
  display: flex;
  justify-content: center;
  background-color: #554A3F;
  background-image: url('woodbackground2.webp');
  border-top: 30px solid transparent;
  border-image-repeat: stretch;
  border-image-slice: 40;
  border-image-source: url('woodenborder.webp');
}


@media (max-width: 768px) {

  
  article {
    scroll-margin-top: 60px;
  }

  #logs {
    scroll-margin-top: 60px;
  }

  .contact {
    scroll-margin-top: 60px;
  }


  #profile {
    margin-top: -150px;
  }

  nav {
    display: inline-flex;
    width: 100%;
  }

  nav ul {
    width: 100%;
  }

  nav a {
    font-size: 2.8vw;
    padding: 3px 10px 2px 10px;
  }

  .main-title{
    margin-bottom:55px;
  }

  h1 {
    font-size: 9vw;
    margin-top:130px;
  }

  h2 {
    font-size: 8vw;
  }

  .profile-card {
    width: 100%;
    height: auto;
  }

  .profile-visual {
    display: none;
  }

  .profile-infos {
    width: 100%;
  }

  .profile-resume {
    height: auto;
    padding: 12px;
    width: calc(100% - 24px);
  }

  .profile-resume p {
    font-size: 5.25vw;
  }

  .profile-stats {
    height: auto;
    width: auto;
  }

  #basic-stats {
    font-size: 6.5vw;
  }

  .profile-stats ul {
    font-size: 5vw;
  }

  .profile-stats li {
    margin: 10px;
  }

  .masteries-lists {
    grid-template-columns: none;
    grid-template-rows: repeat(3, 1fr);
    width: 90%;
  }

  .parch-container {
    font-size: 4.6vw;
    margin: 30px 0 30px 0;
  }

  #logs {
    flex-direction: column;
    width: 100%;
    gap:0;
  }

  #logs-trains{
    margin-bottom:160px;
  }

  #logs article {
    border-left: 0 solid transparent;
    border-right: 0 solid transparent;
    border-top: 30px solid transparent;
    border-bottom: 30px solid transparent;
    border-image-repeat: stretch;
    width: auto;
  }

  .logs-elements {
    width: 90%;
  }

  .logs-elements strong {
    font-size: 4.6vw;
  }

  .logs-elements i {
    font-size: 3.5vw;
  }

  #currently-span {
    font-size: 3.2vw;
    padding: 0 0 8px 6px;
  }

  #achievements ul {
    grid-template-columns: repeat(1, 1fr);
    height: auto;
    row-gap: 0;
    width: 80%;
  }

  #achievements li {
    margin: 30px 0 90px 0;
  }

  #achievements span {
    font-size: 5.8vw;
  }

  #form-part {
    width: 100%;
    border-right: 0;
    border-left: 0;
  }

  #form-part form {
    width: 90%;
  }

  form label {
    font-size: 6vw;
  }

  form input {
    font-size: 6vw;
    width: calc(100% - 7px);
  }

  form textarea {
    font-size: 6vw;
    height: 24vh;
  }

  form button {
    font-size: 6.8vw;
    width: 40%;
  }

  .form-top {
    grid-template-rows: none;
    grid-template-columns: repeat(1, 1fr);
  }

}

@media (min-width: 769px) and (max-width: 1024px) {


  article {
    scroll-margin-top: 60px;
  }

  #logs {
    scroll-margin-top: 60px;
  }

  .contact {
    scroll-margin-top: 60px;
  }


  nav {
    display: inline-flex;
  }

  nav ul {
    width: 100%;
  }

  nav a {
    font-size: 2.8vw;
  }

  h2 {
    font-size: 4.2vw;
  }

  .profile-card {
    width: 90%;
  }

  .profile-visual {
    width: 40%;
  }

  .profile-infos {
    width: 60%;
  }

  .profile-resume p {
    font-size: 2.25vw;
  }

  #basic-stats {
    font-size: 3vw;
  }

  .profile-stats ul {
    font-size: 2.25vw;
  }

  .masteries-lists {
    grid-template-columns: none;
    grid-template-rows: repeat(3, 1fr);
    width: 60%;
  }

  .parch-container {
    font-size: 2.5vw;
    margin: 30px 0 30px 0;
  }

  #logs {
    flex-direction: column;
    width: calc(70% + 105px)
  }

  #logs article {
    width: auto;
  }

  .logs-elements strong {
    font-size: 2.25vw;
  }

  .logs-elements i {
    font-size: 1.8vw;
  }

  #currently-span {
    font-size: 1.8vw;
  }

  #achievements ul {
    grid-template-columns: repeat(2, 1fr);
    height: auto;
    row-gap: 0;
  }

  #achievements li {
    margin: 30px;
  }

  #achievements span {
    font-size: 2.25vw;
  }

  #form-part {
    width: 85%;
  }

  form label {
    font-size: 2.1vw;
  }

  form input {
    font-size: 2.1vw;
  }

  form textarea {
    font-size: 2.25vw;
  }

  form button {
    font-size: 2.5vw;
  }
}