/* -------------------------------------------------------------- */
/* ----------------------------- NAV ---------------------------- */

nav {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  padding: 10px 0;
  background-color: white;
  transform: translateY(-100%);
  animation: showNav 0.6s forwards;
  animation-delay: 1s;
  z-index: 1000;
}
@keyframes showNav {
  0% {
    transform: translateY(-100%);
  }

  100% {
    transform: translateY(0);
  }
}
nav .init {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}
nav .logo img {
  width: 100px;
}
nav ul {
  display: flex;
  align-items: center;
  gap: 20px;
}

@media screen and (max-width: 580px) {
  nav .init {
    justify-content: center;
  }
  nav ul {
    display: none;
  }
}

/* -------------------------------------------------------------- */
/* --------------------------- HEADER --------------------------- */

header#home {
  width: 100vw;
  height: 100vh;
}
header anim-header {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: calc(100% - 40px);
  height: 100vh;
  animation: showHeader 0.6s forwards ease-in-out;
}
@keyframes showHeader {
  0% {
    transform: translateY(20vh) scale(0.8);
  }

  100% {
    transform: translateY(0) scale(1);
  }
}
header .top {
  height: 60px;
}
header span {
  color: var(--c-default);
}
header .content {
  display: flex;
  align-items: center;
  gap: 20px;
}
header .content .line {
  width: 500px;
  height: 2px;
  border-radius: var(--br-default);
  background-color: var(--c-gray-bg);
}
header .content p {
  color: var(--c-gray-text-blue);
  font-weight: 200;
}
header .bottom {
  display: flex;
  align-items: center;
  padding-bottom: 30px;
  gap: 30px;
}
header .bottom img {
  transition: var(--tr-default);
}

@media screen and (max-width: 650px) {
  header .bottom {
    justify-content: space-between;
    flex-wrap: wrap;
    width: 100%;
  }
}
@media screen and (max-width: 570px) {
  header .content .line {
    display: none;
  }
}

anim-span {
  overflow: hidden;
  display: inline-block;
  transform: translateY(20px);
}
anim-span anim-text {
  display: block;
  animation: showText 1s forwards;
  transform: translateY(100%);
  animation-delay: 0.2s;
}
anim-span:nth-child(2) anim-text {
  animation-delay: 0.4s;
}
anim-span:nth-child(3) anim-text {
  animation-delay: 0.6s;
}

@keyframes showText {
  0% {
    transform: translateY(100%);
  }

  100% {
    transform: translateY(0);
  }
}

/* -------------------------------------------------------------- */
/* -------------------------- SECTION --------------------------- */

section {
  margin-top: 150px !important;
}

/* -------------------------------------------------------------- */
/* ------------------------- EXPERIENCES ------------------------ */

.experiences .list {
  display: flex;
  flex-direction: column;
  gap: 50px;
  margin-top: 50px;
  margin-bottom: 100px;
}
.experiences .list .item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  border-radius: var(--br-default);
}
.experiences .list .item .company {
  display: flex;
  align-items: center;
  gap: 20px;
  background-color: white;
  padding: 10px;
  border-top-right-radius: var(--br-default);
}
.experiences .list .item .company p {
  color: var(--c-gray-border);
  font-size: 18px;
  font-weight: 200;
  margin: 0;
}
.experiences .list .item .content {
  background-color: white;
  padding: 10px;
  border-top-right-radius: var(--br-default);
  border-bottom-right-radius: var(--br-default);
}
.experiences .list .item .content h4 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  margin-bottom: 10px;
}
.experiences .list .item .content h4 span {
  display: flex;
  align-items: center;
  gap: 5px;
  color: white;
  font-size: 16px;
  padding: 5px 12px;
  border-radius: 30px;
}
.experiences .list .item .content h4 span.check {
  background-color: var(--c-green);
}
.experiences .list .item .content h4 span.in-progress {
  background-color: rgb(232, 159, 12);
}
.experiences .list .item .content h4 span img {
  width: 18px;
  filter: invert(100%);
}
.experiences .list .item .content p {
  margin: 0;
  font-weight: 200;
  color: var(--c-gray-text-blue);
}
.experiences .list .item .content p span {
  color: var(--c-default);
}

/* -------------------------------------------------------------- */
/* -------------------------- PROJECTS -------------------------- */
.projects {
  margin-bottom: 100px;
}
.projects .wrapper {
  display: flex;
  flex-direction: column;
  gap: 60px;
  margin-top: 50px;
}
.projects .wrapper .container {
  display: flex;
  gap: 10px;
  max-height: 550px;
}
.projects .wrapper .container > div {
  box-shadow: rgba(0, 0, 0, 0.05) 0px 6px 24px 0px,
    rgba(0, 0, 0, 0.08) 0px 0px 0px 1px;
  border-radius: var(--br-default);
}
.projects .wrapper .container .left {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
}
.projects .wrapper .container .left a {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 18px;
  margin-top: 8px;
  color: var(--c-default);
}
.projects .wrapper .container .left a svg {
  width: 20px;
}
.projects .wrapper .container .left p {
  font-size: 18px;
  font-weight: 200;
  color: var(--c-gray-text-blue);
}
.projects .wrapper .container .left .button {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.projects .wrapper .container .left .button-border img {
  width: 20px;
  filter: invert(100%);
}
.projects .wrapper .container .right {
  flex: 2;
}
.projects .wrapper .container .right img {
  width: 100%;
  height: 100%;
  border-radius: var(--br-default);
  object-fit: cover;
  object-position: top;
}

@media screen and (max-width: 800px) {
  .projects .wrapper .container {
    display: flex;
    flex-direction: column;
    max-height: 100%;
  }
  .projects .wrapper .container .left p {
    font-size: 16px;
  }
}

.projects-grid {
  margin-top: 150px;
}
.projects-grid .list {
  overflow-x: scroll;
  scrollbar-width: none;
  max-width: 100%;
  display: flex;
  align-items: center;
  gap: 100px;
  padding: 40px 15vw;
}
.projects-grid .list::-webkit-scrollbar {
  display: none; /* Pour Chrome, Safari et Edge */
}
.projects-grid .list .item {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 450px;
  max-width: 450px;
  height: 350px;
  padding: 20px;
  border-radius: var(--br-default);
  box-shadow: rgba(0, 0, 0, 0.05) 0px 6px 24px 0px,
    rgba(0, 0, 0, 0.08) 0px 0px 0px 1px;
  transform: rotate(5deg);
}
.projects-grid .list .item:nth-child(2n) {
  transform: rotate(-5deg);
}
.projects-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--br-default);
}
@media screen and (max-width: 550px) {
  .projects-grid .list .item {
    min-width: 300px;
    max-width: 300px;
    min-height: 230px;
    max-height: 230px;
  }
}

/* -------------------------------------------------------------- */
/* -------------------------- CONTACT --------------------------- */

.contact > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #111111;
  color: white;
  padding: 40px;
  border-radius: 100px;
  margin-bottom: 100px;
}
.contact .me {
  display: flex;
  align-items: center;
  gap: 20px;
}
.contact .me img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
}
.contact .me p {
  margin: 0;
  margin-top: 5px;
  font-size: clamp(16px, 0.9063rem + 0.75vw, 20px);
  font-weight: 200;
  max-width: 400px;
}
.contact .link {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.contact .link-upper {
  font-size: clamp(16px, 0.9063rem + 0.75vw, 20px);
}
.contact .link a img {
  filter: invert(100%);
}
.contact .button {
  margin-right: 30px;
}
@media screen and (max-width: 850px) {
  .contact > div {
    flex-wrap: wrap;
    gap: 30px;
    justify-content: center;
    border-radius: var(--br-default);
  }
  .contact .me {
    flex-direction: column;
    text-align: center;
  }
}

/* -------------------------------------------------------------- */
/* -------------------------- FOOTER --------------------------- */

footer {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
}
footer ul {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  padding: 0 20px;
}
@media screen and (max-width: 580px) {
  footer {
    display: block;
  }
}
