:root {color-scheme: light;}

@media (prefers-color-scheme: dark) {
    body {
        background-color: #121212;
        color: white;
    }
}

/* Mobile */
/* =============== Font =============== */
.raleway-regular {
  font-family: "Raleway", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  letter-spacing: 1px;
}

.raleway-regular2 {
  font-family: "Raleway", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  letter-spacing: 1px;
  font-size: large;
}

.raleway-bold {
  font-family: "Raleway", sans-serif;
  font-optical-sizing: auto;
  font-weight: 700;
  font-style: normal;
  letter-spacing: 1px;
}

.tangerine-regular {
  font-family: "Tangerine", cursive;
  font-weight: 400;
  font-style: normal;
  letter-spacing: 1px;
}

.tangerine-bold {
  font-family: "Tangerine", cursive;
  font-weight: 700;
  font-style: normal;
  font-size: 3.4em;
  letter-spacing: 1px;
}

.cormorant-garamond {
  font-family: "Cormorant Garamond", serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  letter-spacing: 1px;
}


.cormorant-garamond1 {
  font-family: "Cormorant Garamond", serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  letter-spacing: 1px;
  font-size: 1em;
}

.cormorant-garamond2 {
  font-family: "Cormorant Garamond", serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  letter-spacing: 1px;
  font-size: 0.9em;
}

.cormorant-garamond4 {
  font-family: "Cormorant Garamond", serif;
  font-optical-sizing: auto;
  font-weight: 700;
  font-style: normal;
  letter-spacing: 1px;
}

/* =============== Body =============== */
body {
  background-color: #f2f2f2;
  color: #161616;
  font-size: 23px;
  margin: 0%;
}

/* =============== Show section ===============*/
section {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

section.show {
  opacity: 1;
  transform: translateY(0);
}

/* =============== Nav/Header section =============== */
#name span {
  opacity: 0;
  display: inline-block;
  transform: translateY(10px);
  animation: fadeIn 0.5s forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0% 8% 0% 8%;
  height: 3em;
  color: wheat;
  background-color: rgb(95, 65, 39);
}

.nav-menu {
  display: none;
}

a {
  color: inherit;
  text-decoration: none; 
}

.nav-a {
  color: inherit;
  text-decoration: none;
}

.containeur-flexible {
  display: grid;
  padding: 0% 8% 0% 8%;
  background-color: #d5b07163;
  overflow-wrap: break-word;
  word-break: break-word;
}

.img-container-flexible {
  background-image: url("../img/finalPortrait1.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 0% 8%;
}

.element-flexible{
  display: grid;
  flex-basis: 50%;
  flex-grow: 0;
  flex-shrink: 0;
  padding: 10px 0px;
  text-align: left;
}

.welcome-point {
  color:  rgb(95, 65, 39);
  font-size: 1.5em;
  font-weight: bold;
}

.horizontal-line {
  display: inline-block;
  width: 40px;
  height: 2px;
  background:  rgb(95, 65, 39);
  vertical-align: middle;
  margin-right: 8px;
}

.align-font {
  margin: 10% auto;
}

.rafter {
  color: rgb(95, 65, 39);
  font-weight: bold;
}

/* slash effect */
.nav-a:hover, .neon {
  font-weight: bold;
  background: linear-gradient(270deg, rgb(158, 121, 66), rgb(128, 77, 0), rgba(253, 250, 230, 0.998));
  background-size: 600% 600%;
  animation: gradient 5s ease infinite;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

@keyframes gradient {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
/*--- end ----*/

.comment {
  color: rgb(95, 65, 39);
  font-size: 0.4em;
  padding: 0% 10% 0% 0%;
}

.nav-btn-1 {
  display: inline-block;
  padding: 10px 22px;
  background-color:  rgb(95, 65, 39);
  border: 2px solid  rgb(95, 65, 39);
  color: white;
  text-decoration: none;
  transition: background-color 0.7s ease;
}

.nav-btn-1:hover {
  background-color: transparent;
  border: 2px solid  #d5b071 ;
  color: #d5b071;
}

.nav-btn-2 {
display: none;
}

.displayHome1 {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.displayHome2 {
  grid-column-start: 1;
  color: wheat;
}

.displayHome3 {
  grid-column-start: 2;
}

/* =============== Skill section =============== */
/* Lotus effect */
.wrapper {
  position: relative;
  width: 100%;
  height: 14vh;
  margin: 4% 0%;
  overflow: hidden;
}

.img-wrapper {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  transition: all 1.5s cubic-bezier(0.77, 0, 0.175, 1);
}

.gauche {
  left: 50%;
  transform: translate(-100%, -50%);
}

.droite {
  left: 50%;
  transform: translate(0, -50%);
}

/* final position */
.wrapper.active .gauche {
  left: 0;
  transform: translate(0, -50%);
}

.wrapper.active .droite {
  right: auto;
  left: 75%;
  transform: translate(-100, -50%);
}

.none {
  opacity: 0;
  clip-path: inset(0 50% 0 50%);
  transition: clip-path 3.5s ease, opacity 3s ease;
}

.wrapper.active .none {
  opacity: 1;
  clip-path: inset(0 0 0 0);
  display: grid;
  height: 10em;
  font-size: small;
  justify-items: center;
}
/* ------- end lotus -------*/

/* =============== Description section =============== */
.vertical-line {
  display: inline-block;
  width: 2px;
  height: 40px;
  background: rgb(128, 77, 0);
  vertical-align: middle;
  margin-right: 8px;
}

.space-vertical-ligne {
  display: flex;
  margin-left: 2px;
  margin-top: 6px;
}

.about-figures {
  color: rgb(128, 77, 0);
  font-size: 1.2em;
  font-weight: bold;
}

img {
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.img-skill  {
  height: 40px;
  width: auto;
}

h2, p {
  margin-block: 0%;
}

.figure-style {
  display: flex;
  justify-content: space-evenly;
  text-align: center;
  padding: 5% 0%;
      margin-left: -10%;
    margin-right: -10%;
}

/* =============== Projects section ============== */
.section-project {
  text-align: center;
}

.lune {
  width: 120px;
  height: 120px;
  margin: auto;
  background: transparent;
  border-radius: 50%;
  box-shadow: 0 30px 0 0 rgb(128, 77, 0);
}

.welcome-point2 {
  color:  rgb(128, 77, 0);
  font-size: 3em;
  font-weight: bold;
}

.h3-project {
  margin: 5% 0% -5%;
}

.reveal-project h2,
.reveal-project .lune,
.reveal-project .welcome-point,
.reveal-project .welcome-point2 {
  opacity: 0;
  transform: translateY(30px);
}

.reveal-project.active h2 {
  opacity: 1;
  transform: translateY(0);
  transition: 0.8s ease-out;
}

.reveal-project.active .lune {
  opacity: 1;
  transform: translateY(0) rotate(0deg);
  transition: 1.2s ease-out 0.3s;
}

.reveal-project.active .welcome-point2 {
  opacity: 1;
  transform: translateY(0);
  transition: 0.8s ease-out 0.8s;
}

.reveal-project.active .welcome-point {
  opacity: 1;
  transform: translateY(0);
  transition: 0.8s ease-out 1s;
}

.reveal-project.active .lune {
  animation: moon-breath 4s ease-in-out infinite;
}

@keyframes moon-breath {
  0%, 100% {
    box-shadow: 0 30px 0 0 rgb(128, 77, 0);
  }
  50% {
    box-shadow: 0 35px 0 0 rgb(128, 77, 0);
  }
}

@keyframes moon-float {
  0% {
    transform: translateY(0);
    box-shadow: 0 30px 0 0 rgb(128, 77, 0);
  }
  50% {
    transform: translateY(-12px);
    box-shadow: 0 45px 0 0 rgb(128, 77, 0);
  }
  100% {
    transform: translateY(0);
    box-shadow: 0 30px 0 0 rgb(128, 77, 0);
  }
}

.welcome-point2 {
  animation: dot-float 2.8s ease-in-out infinite;
}

.welcome-point {
  animation: dot-float 2.8s ease-in-out infinite;
  animation-delay: 0.6s;
}

@keyframes dot-float {
  0% {
    transform: translateY(0);
    opacity: 0.6;
  }
  50% {
    transform: translateY(-18px);
    opacity: 1;
  }
  100% {
    transform: translateY(0);
    opacity: 0.6;
  }
}

@keyframes title-breath {
  0%, 100% {
    letter-spacing: normal;
  }
  50% {
    letter-spacing: 3px;
  }
}

/* =============== Projects  =============== */
.font-align-item {
  display: block;
  text-align: center;
  font-size: 0.7em;
}

.text-align-project {
  margin: 0% 10%;
}

.element-flexible-project {
  display: flex;
  justify-content: center;
  align-items: center;
}

.computer-wrapper {
  position: sticky;
  top: 20vh;
  width: 100%;
  max-width: 900px;
  margin: auto;
}

/* Project MacBook */
.screen {
  position: absolute;
  top: 1%;
  left: 10%;
  width: 80%;
  height: 80%;
  overflow: hidden;
  z-index: 1;
}

.screen-content {
  position: absolute;
  width: 100%;
}

.screen-content img {
  width: 100%;
  display: block;
}

.img-mac-iphone {
  position: relative;
  z-index: 2;
  width: 100%;
  height: auto;
}

/* =============== About =============== */
.imgPlume{
  width: 250px;
}

.wrapper-manuscript {
  display: grid;
  place-items: center;
  padding: 0% 10%;
  padding-bottom: 15%;
}

.manuscript {
  max-width: 70ch;
  font-size: 1.1rem;
  line-height: 1.6;
  border-right: 3px solid black;
  padding-right: 5px;
  animation: blink 0.8s step-end infinite;
  white-space: pre-wrap; /* IMPORTANT */
}

@keyframes blink {
  50% {
    border-color: transparent;
  }
}

.hidden {
  /*transform: translateY(30px);*/
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.show {
  opacity: 1;
  transform: translateY(0);
}


/* =============== Form =============== */
.contact-section {
  margin-bottom: 30px;
  padding: 20px 20px;
  background-color: #d5b07163;
}

.contact-title {
  text-align: center;
  margin-bottom: 60px;
}

.contact-container {
  display: grid;
  text-align: center;
  align-items: flex-start;
  padding: 0% 10%;
}

.contact-info {
  width: 100%;
}

.info-block {
  margin-bottom: 30px;
}

.label {
  font-size: 12px;
  letter-spacing: 2px;
  font-weight: bold;
  display: block;
  margin-bottom: 5px;
}

.info-block p {
  font-size: 17px;
  line-height: 1.6;
  overflow-wrap: break-word;
  word-break: break-word;
}

.separator {
display: none;
}

.contact-form {
  width: 100%;
}

.contact-form input,.contact-form textarea {
  width: 100%;
  border: 1px solid rgb(95, 65, 39);
  border-radius: 20px;
  background: rgb(250, 245, 225);
  padding: 14px;
  margin-bottom: 20px;
  font-size: 14px;
  letter-spacing: 1px;
}

.contact-form textarea {
  height: 120px;
  resize: none;
}

.contact-form input::placeholder,.contact-form textarea::placeholder {
  color: rgb(95, 65, 39);
}

.contact-form button {
  background-color: rgb(95, 65, 39);
  color: #fff;
  border: none;
  padding: 14px 40px;
  border-radius: 30px;
  cursor: pointer;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.contact-form button:hover {
  opacity: 0.9;
}

/* =============== Footer =============== */
footer {
  display: flex;
  text-align: center;
  align-items: center;
  justify-content: space-between;
  background-color: rgb(95, 65, 39);
  color: wheat;
  margin-bottom: 0.5%;
  font-size: 0.5em;
  padding: 3% 3%;
  height: auto;
}

.trait-footer {
  width: 5em;
  height: 0.5px;
  background-color: antiquewhite;
}

