@font-face {
  font-family: "OGG";
  src: url("/src/fonts/Ogg-Regular.otf");
  font-style: normal;
  font-weight: 400;
}

@font-face {
  font-family: "OGG";
  src: url("/src/fonts/Ogg-RegularItalic.otf");
  font-style: italic;
  font-weight: 400;
}

@font-face {
  font-family: "Helvetica Neue Regular";
  src: url(/src/fonts/HelveticaNeueRoman.otf);
  font-weight: 400;
}

@font-face {
  font-family: "Helvetica Neue Italic";
  src: url(/src/fonts/HelveticaNeueItalic.ttf);
  font-weight: 400;
}

@font-face {
  font-family: "Helvetica Neue Light";
  src: url(/src/fonts/HelveticaNeueLight.otf);
  font-weight: 400;
}
iframe {
  pointer-events: none;
}

html, body, * {
  cursor: none !important;
}

a, button, input, textarea, select, svg, canvas {
  cursor: none !important;
}

::selection {
  cursor: none !important;
}

::-webkit-scrollbar-thumb,
::-webkit-scrollbar,
::-webkit-resizer,
::-webkit-scrollbar-track {
  cursor: none !important;
}


* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}




body {
  background: white;
  color: black;
  overflow-x: hidden;
}

header {
  position: absolute;
  top: 40px;
  left: 50%;
  transform: translateX(-50%);
}

.menu-btn,
.menu-btn *,
a,
button,
svg {
  cursor: none !important;
}

.menu-btn {
  width: 50px;
  height: 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
}

.menu-btn span {
  display: block;
  width: 70px;
  height: 70px;
  width: 100%;
  background: black;
  transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-font-smoothing: antialiased;
  /* parfois utile même pour les shapes */
}

main {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.designer {
  font-family: "OGG";
  font-size: 120px;
  color: black;
  font-weight: 400;
}

.alt-g {
  font-family: "OGG";
  font-style: italic;
}

.portrait-container {
  position: absolute;
  top: 50%;
  transform: translateY(-15%);
  z-index: 1;
}

.portrait {
  width: 200px;
  height: auto;
  filter: grayscale(1);
  transition: 0.4s ease-in-out;
}

.portfolio {
  font-family: "Helvetica Neue Light";
  font-size: 120px;
  z-index: 2;
}

.signature {
  font-size: 12px;
  margin-top: 8px;
  font-family: "Helvetica Neue Regular";
  letter-spacing: -0.5px;
}

.date {
  font-family: "OGG";
  font-style: italic;
}

.scroll-down {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1.5em;
  animation: bounce 1.5s infinite;
}

@keyframes bounce {

  0%,
  100% {
    transform: translate(-50%, 0);
  }

  50% {
    transform: translate(-50%, -10px);
  }
}

body {
  overflow: hidden;
  /* on bloque le scroll natif */
  margin: 0;
  padding: 0;
}

.contact {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100%;
  padding: 60px 80px;
  background: black;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: baseline;
  gap: 30px;
  line-height: 1;
  font-family: "OGG";
  transform: translateY(100%);
  transition: transform 1.2s cubic-bezier(0.22, 0.97, 0.36, 1);
  z-index: 10;
  will-change: transform;
}

/* quand la section est ouverte, elle monte pile à la taille du contenu */
.contact.open {
  transform: translateY(calc(100% - var(--contact-height)));
}

/* pour calculer la hauteur du contenu */
.contact-content {
  display: inline-block;
}

.contact h2 {
  font-size: 120px;
  font-family: "OGG";
  font-style: normal;
  font-weight: 400;
  letter-spacing: -5px;
}

.contact p {
  font-size: 60px;
  font-family: "OGG";
  font-style: normal;
  font-weight: 400;
}

.info {
  gap: 0px;
}

.alt {
  font-family: "OGG";
  font-style: italic;
}

.end-text {
  font-family: "Helvetica Neue Regular";
}


/* Version mobile */

@media screen and (max-width: 768px) {

  html, body, * {
    cursor: auto !important;
  }

  body {
    overflow-y: auto;
  }

  header {
    top: 80px;
  }


  main {
    height: 100svh;
    padding: 0 20px;
    justify-content: center;
  }

  .menu-btn {
    width: 70px;
    height: 70px;
    gap: 8px;
  }

  .designer {
    font-size: 56px;
    line-height: 0.9;
  }

  .portfolio {
    font-size: 56px;
    margin-top: 24px;
  }

  .portrait-container {
    position: absolute;
    top: 50%;
    transform: translateY(-15%);
  }

  .portrait {
    width: 140px;
  }

  .signature {
    font-size: 10px;
    text-align: center;
  }

  .scroll-down {
    bottom: 20px;
    font-size: 1.2em;
  }

  .contact {
    padding: 40px 24px;
    align-items: flex-start;
  }

  .contact h2 {
    font-size: 56px;
    letter-spacing: -2px;
  }

  .contact p {
    font-size: 24px;
    line-height: 1.2;
  }
}
