﻿.connected-header,
.non-connected-header {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: 100%;
  align-items: flex-start;
  padding: 1rem 0;
}

.header-title-link,
.header-title {
  font-size: 2rem;
  font-weight: 600;
  color: #000;
  text-decoration: none;
  padding-left: 2rem;
}

.header-title-link:hover,
.header-title:hover {
  cursor: pointer;
  text-decoration: none;
  color: #000;
}

.img-header-link {
  text-align: center;
  align-self: center;
}
.img-header-link svg {
  height: 2rem;
  width: auto;
}

.top-header-link {
  color: #000;
  text-decoration: none;
  text-align: right;
  padding-right: 2rem;
}

.top-header-link:hover {
  cursor: pointer;
  text-decoration: underline;
}

.header-profil-container {
  position: relative;
}

.header-fullname {
  display: flex;
  justify-content: right;
  padding: 0.6rem 2rem 0 1rem;
  font-size: 0.9rem;
}

.header-fullname:hover {
  cursor: pointer;
}

.header-fullname-text {
  padding-top: 0.6rem;
  padding-right: 1rem;
}

.header-profil-icon {
  display: block;
  height: 2.5rem;
  width: auto;
  transform: rotateY(0deg);
  transition: transform 0.5s;
}

.header-fullname:hover .header-profil-icon {
  transform: rotateY(360deg);
}

.header-dropdown-menu {
  display: grid;
  position: absolute;
  right: 3rem;
  top: 2.5rem;
  width: max-content;
  row-gap: 1.5rem;
  list-style: none;
  font-size: 0.9rem;
  padding: 1rem 0.5rem;
  border-radius: 0.75rem;
  background-color: #FFF;
  border: solid 1px #6F6F6F;
  opacity: 0;
  transform: scale(0.1);
  pointer-events: none;
  transition: opacity 0.4s, transform 0.4s;
  transform-origin: 10rem -2rem;
  z-index: 2;
}

.header-dropdown-item {
  display: flex;
  align-items: end;
}

.header-dropdown-link {
  position: relative;
  color: #000;
  text-decoration: none;
}

.header-dropdown-link::after {
  content: "";
  display: block;
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 2px;
  background-color: #FFF;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s;
}

.header-dropdown-link:hover,
.header-dropdown-link:active {
  cursor: pointer;
}

.header-dropdown-link:hover::after,
.header-dropdown-link:active::after {
  transform: scaleX(1);
}

.header-dropdown-icon {
  height: 1rem;
  width: auto;
  padding-right: 0.5rem;
}

.show-header-dropdown {
  opacity: 1;
  transform: scale(1);
  pointer-events: initial;
}

.mobile-menu-button {
  display: none;
  align-items: center;
  justify-content: center;
  background-color: #FFF;
  border: none;
  padding: 0 0.5rem 0 0.5rem;
}
.mobile-menu-button svg {
  height: 2.2rem;
  width: auto;
  fill: #000;
}

.hero-header {
  min-height: 95vh;
  padding-top: 5vh;
}
.hero-header .non-connected-header {
  position: fixed;
  top: 0;
  background-color: #FFF;
  opacity: 0;
  animation: fade-in auto linear both;
  animation-timeline: scroll();
  animation-range: 70vh 85vh;
}
.hero-header .hero-container {
  width: 100%;
  text-align: center;
}
.hero-header .hero-container svg {
  height: 35vh;
  width: auto;
  max-width: 100%;
  margin: 0 auto 2rem;
  transform-origin: center;
  transform: scale(0);
  animation: logo-show 1s ease-in-out forwards;
  animation-delay: 0.25s;
}
.hero-header .hero-container .hero-title {
  font-size: 4rem;
  font-weight: 700;
  transform-origin: center;
  transform: scale(0);
  animation: logo-show 1s ease-in-out forwards;
}
.hero-header .hero-arrow-container {
  display: flex;
  padding: 2rem 0;
  opacity: 0;
  animation: fade-in 2s ease-in-out forwards;
  animation-delay: 1.5s;
}
.hero-header .hero-arrow-container .hero-arrow {
  display: flex;
  flex-direction: column;
  width: 4rem;
  align-items: center;
  margin: auto;
  background-color: #FFF;
  border: none;
  cursor: pointer;
}
.hero-header .hero-arrow-container .hero-arrow span {
  display: block;
  width: 1.5rem;
  height: 1.5rem;
  border-bottom: 5px solid #000;
  border-right: 5px solid #000;
  transform: rotate(45deg);
  margin: -0.5rem;
  animation: arrow-anim 2.5s infinite;
}
.hero-header .hero-arrow-container .hero-arrow span:nth-child(2) {
  animation-delay: -0.2s;
}
.hero-header .hero-arrow-container .hero-arrow span:nth-child(3) {
  animation-delay: -0.4s;
}

.home-link-button-container {
  display: flex;
  justify-content: space-around;
  width: 90%;
  margin: 5rem auto 2rem;
}

.home-link-button {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 33%;
  font-weight: 600;
  letter-spacing: 0.05rem;
  color: #000;
  background-color: #FFF;
  border: solid 3px #000;
  text-align: center;
  text-decoration: none;
  padding: 1rem 0.5rem;
  margin: auto;
  transition: 0.5s;
}

.home-link-button:hover {
  cursor: pointer;
  letter-spacing: 0.1rem;
  color: #FFF;
  background-color: #000;
}

.show-from-left {
  transform: translateX(-100vw);
  animation: show-from-left 2s ease-in-out forwards;
  animation-delay: 0.25s;
}

.show-from-right {
  transform: translateX(100vw);
  animation: show-from-right 2s ease-in-out forwards;
  animation-delay: 0.5s;
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes logo-show {
  from {
    transform: scale(0);
  }
  to {
    transform: scale(1);
  }
}
@keyframes show-from-left {
  from {
    transform: translateX(-100vw);
  }
  to {
    transform: translateX(0);
  }
}
@keyframes show-from-right {
  from {
    transform: translateX(100vw);
  }
  to {
    transform: translateX(0);
  }
}
@keyframes arrow-anim {
  0% {
    opacity: 0;
    transform: rotate(45deg) translate(-1rem, -1rem);
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: rotate(45deg) translate(1rem, 1rem);
  }
}
@media (max-width: 770px) {
  .connected-header,
  .non-connected-header {
    min-height: auto;
    padding: 1rem 0;
  }
  .header-title-container {
    display: flex;
    align-self: center;
  }
  .header-title-link,
  .header-title {
    padding-left: 0.5rem;
  }
  .home-link-button-container {
    flex-direction: column;
    gap: 2rem;
    margin-top: 3rem;
  }
  .home-link-button {
    width: 50%;
  }
}
@media (max-width: 570px) {
  .header-title-link {
    width: min-content;
    font-size: 1.2rem;
    align-self: center;
    padding-left: 0;
  }
  .header-profil-container {
    padding-right: 0.5rem;
  }
  .header-fullname {
    flex-direction: column-reverse;
    padding: 0;
  }
  .header-fullname-text {
    padding-right: 0;
    text-align: center;
  }
  .header-profil-icon {
    height: 1.8rem;
  }
  .header-dropdown-menu {
    left: -9rem;
    top: 3rem;
  }
  .mobile-menu-button {
    display: flex;
  }
  .home-link-button {
    width: 80%;
  }
}
@media (max-width: 460px) {
  .non-connected-header {
    animation-range: 80vh 90vh;
  }
  .hero-header .hero-container svg {
    height: 25vh;
  }
}
@media (max-width: 380px) {
  .header-fullname-text {
    width: min-content;
    margin: auto;
    padding-top: 0;
  }
  .header-profil-icon {
    height: 1.5rem;
  }
  .header-dropdown-menu {
    left: -11rem;
  }
  .home-link-button {
    width: 90%;
  }
}
