/* fonts */

@font-face {
  font-family: "Grotesk";
  src: url("./fonts/Cy\ Grotesk\ Grand\ Demi.ttf") format("truetype");
  font-weight: bold;
  font-style: normal;
}

@font-face {
  font-family: "Grotesk";
  src: url("./fonts/Grotesk\ Wide\ Regular.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: "Grotesk";
  src: url("./fonts/Cy\ Grotesk\ Wide\ Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
}

@font-face {
  font-family: "Grotesk";
  src: url("./fonts/Grotesk\ Wide\ Regular.ttf") format("truetype");
  font-weight: normal;
  font-style: italic;
}

/* variables */

:root {
  --color-black: #141414;
  --color-white: #f5f5f5;
}

/* dark/light mode */

body.dark {
  --color-black: #f5f5f5;
  --color-white: #141414;
}

.theme-container {
  z-index: 9000000000;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  position: fixed;
  top: 20px;
  right: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: 0.5s;
  animation: fadein 1.5s ease;
}

#toggle-btn {
  padding: 1rem;
  border-radius: 50%;
  border: none;
}

#toggle-btn:hover {
  cursor: pointer;
}

#theme-icon {
  z-index: 80000000;
}

/* body */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100%;
  margin: 0;
  position: relative;
  padding: 0;
  font-family: "Grotesk", sans-serif;
  scroll-behavior: smooth;
  scrollbar-width: none !important;
  /* transition: background-color 0.1s ease; */
  background-color: var(--color-white);
  color: var(--color-black);
}

/* scrollbar */

/* Firefox */
* {
  scrollbar-width: none;
  scrollbar-color: var(--color-black) var(--color-white);
}

/* Chrome, Edge, and Safari */
*::-webkit-scrollbar {
  width: 10px;
}

*::-webkit-scrollbar-track {
  background: var(--color-white);
}

*::-webkit-scrollbar-thumb {
  background-color: var(--color-black);
  border-radius: 10px;
  border: 3px solid var(--color-white);
}

/* text */

b {
  font-weight: 600;
}

a {
  color: var(--color-black);
  text-decoration: none;
  display: block;
  width: fit-content;
}

a:hover,
a:active,
a:visited,
a:focus {
  color: unset;
  text-decoration: none;
}

a:hover {
  cursor: pointer;
  opacity: 0.85;
}

footer a:hover h6 {
  font-weight: 500;
}

h1,
h2,
h3,
h4,
h5,
h6,
p {
  margin: 0;
}

h1 {
  font-size: 5rem;
  text-transform: uppercase;
}

h2 {
  font-size: 4rem;
  text-transform: uppercase;
  /* margin-bottom: 1rem; */
}

h3 {
  font-size: 1.6rem;
  font-weight: 500;
}

h4 {
  font-size: 1rem;
  line-height: 1.5rem;
  font-weight: 400;
  text-transform: uppercase;
}

h5 {
  margin-bottom: 2rem;
}

h6 {
  text-transform: uppercase;
  font-size: 0.7rem;
  font-weight: 200;
}

ul,
li {
  margin: 0;
  padding: 0;
  text-decoration: none;
  display: block;
}

/* fade in animation */

@keyframes fadein {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

/* blocks */

section,
header {
  margin: 0 auto;
  width: 65%;
  height: 100vh;
}

.home {
  margin: 0 auto;
  width: 65%;
  height: 100vh;
  position: relative;
  animation: fadein 1.5s ease;
}

.home .name {
  display: flex;
  align-items: center;
  height: 100%;
}

.home .name span {
  font-weight: 500;
}

.home .photo {
  width: 100%;
  height: 100vh;
  align-items: center;
  display: flex;
  top: 0;
  left: 0;
  z-index: -1000000;
  position: absolute;
  animation: fadein 2s ease;
}

.home .photo img {
  height: 25rem;
  position: absolute;
  right: 0;
}

.home .bottom_nav {
  position: absolute;
  bottom: 10%;
  display: flex;
  justify-content: space-between;
  width: 100%;
}

.flash {
  animation: flash 1s infinite;
}

@keyframes flash {
  0% {
    opacity: 0;
  }

  50% {
    opacity: 1;
  }

  100% {
    opacity: 0;
  }
}

/* .navbar[data-scroll="out"] {
    opacity: 0;
    visibility: hidden;
    transition: visibility 1s;
    transition: opacity 0.5s;

}
[data-scroll-dir-y="-1"] .navbar {
    opacity: 1;
    visibility: visible;
    transition: visibility 1s;
    transition: opacity 0.5s;
} */

.navbar {
  /*     color: white; */
  /*     mix-blend-mode: difference; */
  text-transform: uppercase;
  z-index: 100000;
  width: 100%;
  position: fixed;
  display: flex;
  justify-content: center;
  gap: 5rem;
  padding: 1.5rem;
  animation: fadein 1.5s ease;
}

.navbar a:hover {
  font-weight: 700;
}

.socials {
  height: 100vh;
  padding: 0 2rem;
  position: fixed;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  z-index: 80000000;
  animation: fadein 1.5s ease;
}

.socials img {
  width: 30px;
}

/* about */

.about {
  height: 100%;
  display: flex;
  align-items: flex-start;
  gap: 4rem;
}

.about h2 {
  margin-bottom: 2rem;
}

.about .photo {
  height: 100vh;
  width: 40%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: sticky;
  top: 0;
  left: 0;
}

.about .photo div {
  padding: 20px 20px 30px 20px;
}

.about img {
  width: 100%;
  margin-bottom: 10px;
  /* height: 30rem; */
}

.about article {
  padding: calc((100vh - 30rem) / 2) 0;
  width: 60%;
}

.about article li {
  line-height: 170%;
}

.about article p:last-of-type {
  text-align: end;
}
select{
  margin: 0.5rem 0 1rem 0;

  width: 30rem;
  font-size: 1.5rem;
  border: 0;
  color: var(--color-black);
  background-color: transparent;
}
select option{
  color: var(--color-white);
  background-color: var(--color-black);

}

.dl_btnpdf {
  border: 1px solid var(--color-black);
  padding: 2px 18px;
  width: fit-content;
  font-weight: 700;
  font-size: 1.2rem;
  transition: all 0.5s ease;
  margin-bottom: 1rem;
  background-color: var(--color-white);
  color: var(--color-black);
}
.dl_btnpdf:hover {
  background-color: var(--color-black);
  color: var(--color-white);
  transition: all 0.5s ease;
}
.download_button {
  border: 1px solid var(--color-black);
  padding: 2px 6px;
  width: fit-content;
  font-weight: 700;
  margin-top: 2rem;
  transition: all 0.5s ease;
}

.download_button:hover {
  background-color: var(--color-black);
  color: var(--color-white);
  transition: all 0.5s ease;
}

/* projects */

.work {
  height: 100%;
}

.work h2 {
  width: 100%;
  z-index: 8500;
  position: sticky;
  top: -3px;
  left: 0;
  padding: 5rem 0 8rem;
  background: linear-gradient(
    var(--color-white),
    var(--color-white),
    transparent
  );
}

.work .subintro {
  position: relative;
  z-index: 700000;
  margin-top: -7rem;
  margin-bottom: 7rem;
}

.work article {
  display: flex;
  gap: 4rem;
  height: 20rem;
  align-items: flex-end;
  margin-bottom: 10rem;
}

.work .project {
  display: flex;
  justify-content: space-between;
  flex-direction: column;
  height: 100%;
  width: 50%;
}

.work .project p {
  font-size: 0.9rem;
}

.work article .description_img {
  height: 100%;
  width: 50%;
  margin-right: 2px;
  background-repeat: no-repeat;
  background-size: cover;
  opacity: 0.8;
  transition: all 0.5s ease;
}

.work article .description_img:hover {
  opacity: 1;
  transition: all 0.5s ease;
}

.subintro {
  text-transform: uppercase;
}

/* bts*/
.bts {
  display: flex;
  justify-content: center;
  flex-direction: column;
  margin: auto;
  width: 80%;
  margin-bottom: 10rem;
}
.bts h2 {
  width: 100%;
  padding: 20rem 0 2rem;
}
.bts p {
  margin: auto;
  width: 70%;
  margin: 0;
  padding-bottom: 1rem;
}
.bts h3 {
  padding: 1rem 0 0.2rem;
}
.disph3 {
  padding-bottom: 1rem;
}
.DispV {
  display: flex;
  flex-direction: row;
  gap: 30rem;
  height: 100vh;
}

/* entreprise*/
.compagny {
  display: flex;
  justify-content: center;
  flex-direction: column;
  width: 60%;
}
.compagny h2 {
  margin: 1rem 0rem 1rem;
}
.compagny h3 {
  margin: 1rem 0rem 1rem;
}
.download_btn {
  border: 1px solid var(--color-black);
  padding: 2px 6px;
  width: fit-content;
  font-weight: 700;
  margin-top: 1rem;
  transition: all 0.5s ease;
  margin-bottom: 1rem;
}

.download_btn:hover {
  background-color: var(--color-black);
  color: var(--color-white);
  transition: all 0.5s ease;
}

.dl_btn {
  border: 1px solid var(--color-black);
  padding: 2px 6px;
  width: fit-content;
  font-weight: 700;
  transition: all 0.5s ease;
  margin-bottom: 1rem;
}
.dl_btn:hover {
  background-color: var(--color-black);
  color: var(--color-white);
  transition: all 0.5s ease;
}
.DispE {
  display: flex;
  flex-direction: row;
  gap: 3rem;
  justify-content: center;
}

/* footer */

footer {
  padding: 3rem;
  display: flex;
  justify-content: space-between;
  align-items: end;
  text-align: center;
}

/* responsive */

@media screen and (max-width: 1024px) {
  h1 {
    font-size: 4rem;
  }

  h2 {
    font-size: 3rem;
  }

  .theme-container {
    height: 40px;
    width: 40px;
  }
  .navbar {
    flex-direction: column;
    justify-content: flex-start;
    gap: 0.2rem;
  }
  .home {
    width: 80%;
    margin-bottom: 5rem;
  }

  .socials {
    padding: 0.7rem;
    justify-content: flex-end;
    align-items: flex-end;
    flex-direction: row;
    right: 0;
  }

  .home .bottom_nav {
    flex-direction: column;
    gap: 1rem;
    bottom: 8%;
  }

  .about {
    flex-direction: column;
  }

  .about .photo {
    height: 100%;
    position: relative;
  }
  .about .photo div {
    padding: 0;
  }
  .about .photo,
  .about article {
    width: 100%;
    margin: 0;
    padding: 0;
  }
  section,
  header {
    width: 80%;
  }
  .work article {
    height: 100%;
    width: 100%;
    gap: 2rem;
    flex-direction: column;
  }

  .work .project {
    width: 100%;
  }

  .work article .description_img {
    height: 10rem;
    margin-right: 0;
    width: 100%;
  }
  .bts {
    justify-content: right;
    margin-bottom: 20rem;
  }
  .bts h2{
    width: 100%;
    padding: 6rem 0 2rem;
  }
  .DispV {
    gap: 10rem;
  }
  .DispE {
    flex-direction: column;
  }

  footer {
    gap: 0.5rem;
    flex-direction: column;
    align-items: center;
  }
  footer ul {
    display: flex;
    gap: 2rem;
  }
}

@media screen and (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.2rem;
  }
  h3{
    font-size: 1rem;
  }
  h5{
    font-size: 0.6rem;
  }
  p{
    font-size: 0.8rem;
  }

  .navbar[data-scroll="out"],
  .socials[data-scroll="out"] {
    opacity: 0;
    visibility: hidden;
    transition: visibility 1s;
    transition: opacity 0.5s;
  }

  /* au scroll top montrer la balise */
  [data-scroll-dir-y="-1"] .navbar,
  [data-scroll-dir-y="-1"] .socials {
    opacity: 1;
    visibility: visible;
    transition: visibility 1s;
    transition: opacity 0.5s;
  }

  .home .photo img {
    height: 18rem;
    opacity: 0.8;
  }
  select{
    margin: 0.5rem 0 1rem 0;
  
    width: 15rem;
    font-size: 1rem;
    border: 0;
    color: var(--color-black);
    background-color: transparent;
  }
  select option{
    color: var(--color-white);
    background-color: var(--color-black);
  
  }



  .bts{
    display: block;
    width: 60%;
    margin-bottom: 20rem;
    margin-left: 7rem;
}
.bts h2{
    width: 100%;
    padding: 2rem 0 2rem;

}
.bts p{
    width: 100%;  
    padding-bottom: 0.5rem;
}
.bts h3{
    padding: 0;
}
.disph3{
    padding-bottom: 1rem;
}
.DispV{
    display: flex;
    flex-direction: column;
    gap: 0rem;
}
  .compagny {
    margin-left: 8rem;
    flex-direction: column;
  }
  .download_btn {
    font-weight: 200;
  }

  .dl_btn {
    font-weight: 200;
  }
  .DispE {
    flex-direction: column;
  }
}
