/* Poppins */
@font-face {
  font-family: "Poppins";
  src: url("/assets/fonts/Poppins-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("/assets/fonts/Poppins-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("/assets/fonts/Poppins-ExtraBold.ttf") format("truetype");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

/* Open Sans (variable font, gère plusieurs graisses) */
@font-face {
  font-family: "Open Sans";
  src: url("/assets/fonts/OpenSans-VariableFont_wdth,wght.ttf") format("truetype");
  font-weight: 400 600; /* variable font range */
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Creepster";
  src: url("/assets/fonts/static/Creepster-Regular.ttf");
}

/*---------------------------------Variables-----------------------------*/
:root {
  /*Colors*/
  --background-color: #000000;
  --text-color: #ffffff;
  --first-color: #090979;
  --second-color: #eddd53;
  --second-text-color: #999999;
  --shadow-color: rgba(255, 255, 255, 0.295);

  /*Font Colors*/
  --font-title: "Poppins", sans-serif;
  --font-body: "Open Sans", sans-serif;

  /*Sizes*/
  /*Section Spacing*/
  --section-spacing: 150px;
  --section-title-font-size: 55px;

  /*Goal Size*/
  --goals-start: 150px;
  --goals-spacing: 100px;

  /*Members Size*/
  --member-container-width: 200px;

  /*Releases Sizes*/
  --release-height: 450px;

  /*Heros Section Images Sizes*/
  --project1-width: 350px;
  --project2-width: 400px;
  --project3-width: 400px;

  /*Partenaires Sizes*/
  --partner-circle-size: 500px;

  /*Positions*/
  /*Hero Section Images*/
  --project1-top: 12vh;
  --project1-left: 3vw;
  --project2-top: 30vh;
  --project2-right: 7vw;
  --project3-top: 70vh;
  --project3-left: 20vw;
}

/*---------------------------------Elements---------------------------------*/

body {
  background-color: var(--background-color);
  font-family: var(--font-body);
  overflow-x: hidden;
}

h1 {
  font-family: var(--font-title);
  margin: 0px;
}

a {
  color: var(--text-color);
  text-decoration: none;
  padding-bottom: 0;
  overflow: hidden;
  position: relative;
  display: inline-block;
  text-transform: uppercase;
}

a::after {
  content: "";
  display: block;
  background-color: var(--text-color);
  height: 2px;
  width: 100%;
  position: absolute;
  bottom: 0;
  left: 0;
  transition: transform 0.3s ease;
}

a:hover {
  cursor: pointer;
}

a:hover::after {
  transform: translateX(120%);
}

/*----------------------------------Header----------------------------*/
header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translate(-50%, 0);
  width: 80%;
  display: flex;
  justify-content: space-between;
  padding: 15px 10%;
  padding-top: 15px;
  border-bottom: 1px var(--text-color) solid;
  color: var(--text-color);
  z-index: 1000;
  background-color: var(--background-color);
}

/*Partie gauche du header ----------------------*/
#leftHeaderContainer {
  display: flex;
  align-items: center;
  gap: 20px;
}

#headerLogo svg {
  display: inline-block;
  width: auto;
  height: 100px;
}

#headerLogo svg path {
  fill: currentColor;
  transition: fill 0.5s ease;
}

#headerLogo svg .earth {
  fill: none;
  stroke: currentColor;
  transition: fill 0.5s ease, stroke 0.5s ease;
}

#headerLogo svg:hover .earth {
  fill: url(#earthBackground);
}

#headerLogo svg:hover path {
  fill: var(--background-color);
}

#headerLogo svg:hover {
  color: var(--background-color);
}

/*Partie droite du header ----------------------*/
#rightHeaderContainer {
  display: flex;
}

#rightHeaderContainer nav {
  display: flex;
}

#rightHeaderContainer a {
  font-size: 150%;
}

#topMenuNav {
  list-style-type: none;
  display: flex;
  align-items: flex-end;
  padding: 0;
  margin: 0;
  gap: 15px;
}

.menu-toggle {
  display: none;
  font-size: 2rem;
  cursor: pointer;
  color: var(--text-color);
}

/*--------------------- Footer ---------------------*/

footer {
  margin-top: 250px;
  background-color: var(--text-color);
  padding: 50px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer-links-wrapper {
  flex: 2;
  display: inline-grid;
  grid-template-columns: max-content max-content;
  gap: 10px 20px;
}

footer h3,
footer h2 {
  text-transform: uppercase;
  text-align: center;
}

footer h2 {
  flex: 1;
}

footer a {
  color: var(--background-color);
  text-transform: capitalize;
}

footer a::after {
  background-color: var(--background-color);
}

/*---------------------- Responsive ----------------------*/
@media screen and (max-width: 1175px) {
  header {
    width: 90%;
  }
  #leftHeaderContainer h1 {
    font-size: 1.75em;
  }
}

@media screen and (max-width: 1000px) {
  #leftHeaderContainer h1 {
    font-size: 1.5em;
  }
  #rightHeaderContainer a {
    font-size: 125%;
  }
}

@media screen and (max-width: 900px) {
  #leftHeaderContainer h1 {
    font-size: 1.3em;
  }
  #rightHeaderContainer a {
    font-size: 125%;
  }
  #headerLogo svg {
    width: auto;
    height: 75px;
  }
}

@media screen and (max-width: 800px) {
  #topMenuNav {
    flex-direction: column;
    overflow: hidden;
    max-height: 0;
    padding: 0 10px;
    transition: max-height 0.7s linear;
    background-color: var(--background-color);
    position: absolute;
    top: 70px;
    right: 30px;
  }

  #topMenuNav li {
    width: 100%;
  }

  #rightHeaderContainer > nav {
    align-items: center;
  }

  #topMenuNav.active {
    max-height: 500px;
    padding: 10px;
  }

  .menu-toggle {
    display: block;
  }
}

@media screen and (max-width: 700px) {
  #leftHeaderContainer h1 {
    font-size: 1em;
  }
  #rightHeaderContainer a {
    font-size: 115%;
  }
  #headerLogo svg {
    width: auto;
    height: 65px;
  }
}

@media screen and (max-width: 550px) {
  #rightHeaderContainer a {
    font-size: 80%;
  }

  #headerLogo svg {
    width: auto;
    height: 55px;
  }
}

@media screen and (max-width: 550px) {
  footer h2 {
    font-size: 1.25em;
  }
  footer h3 {
    font-size: 1.05em;
  }
}

/*---------------------- Halloween Event ----------------------*/
.halloween-container {
  position: fixed;
  bottom: 2.5%;
  right: 2.5%;
  z-index: 100;
  background-color: var(--background-color);
  border: 2px solid orange;
  width: 20%;
  height: 10%;
}

.halloween-counter-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
  justify-content: center;
  color: orange;
  height: 100%;
}

#halloweenCounter {
  font-family: "Creepster";
  font-size: larger;
}

.halloween-button {
  background-color: rgb(206, 134, 0);
  padding: 7px;
  border-radius: 35px;
  transition: all 0.5s ease;
}

.halloween-button:hover {
  background-color: orange;
  transform: scale(1.15);
}

.halloween-button::after {
  content: none;
}

/* Tablettes et écrans moyens */
@media screen and (max-width: 850px) {
  .halloween-container {
    width: 25%;
    height: 12%;
  }
  
  .halloween-button {
    font-size: 12px;
    padding: 6px;
  }
  
  #halloweenCounter {
    font-size: medium;
  }
}

/* Petits écrans et mobiles */
@media screen and (max-width: 700px) {
  .halloween-container {
    width: 35%;
    height: 10%;
    border-width: 1.5px;
  }
  
  .halloween-counter-container {
    gap: 6px;
  }
  
  .halloween-button {
    font-size: 11px;
    padding: 5px;
  }
  
  #halloweenCounter {
    font-size: small;
  }
}

/* Très petits écrans (mobiles en portrait) */
@media screen and (max-width: 480px) {
  .halloween-container {
    width: 45%;
    height: 9%;
  }
  
  .halloween-counter-container {
    gap: 4px;
  }
  
  .halloween-button {
    font-size: 10px;
    padding: 4px;
    border-radius: 25px;
  }
  
  #halloweenCounter {
    font-size: small;
  }
}

/* Très petits écrans (< 360px) */
@media screen and (max-width: 360px) {
  .halloween-container {
    width: 50%;
    height: 8%;
  }
  
  .halloween-button {
    font-size: 9px;
    padding: 3px;
  }
}