@import url("header.css");
@import url("hero.css");
@import url("popup.css");
@import url("format.css");
@import url("participate.css");
@import url("finale.css");
@import url("footer.css");

@font-face {
  font-family: "Acumin Pro ExtraCondensed Black Italic";
  src: url("../fonts/Acumin_Pro_ExtraCondensed_Black_Italic.otf")
    format("opentype");
  font-display: swap;
}

@font-face {
  font-family: "Acumin Pro ExtraCondensed Black";
  src: url("../fonts/Acumin_Pro_ExtraCondensed_Black.otf") format("opentype");
  font-display: swap;
}

@font-face {
  font-family: "Neue Haas Grotesk Text Pro 75 Bold";
  src: url("../fonts/Neue_Haas_Grotesk_Text_Pro_75_Bold.otf") format("opentype");
  font-weight: 500;
  font-display: swap;
}

:root {
  --font-acumin-italic: "Acumin Pro ExtraCondensed Black Italic", sans-serif;
  --font-acumin: "Acumin Pro ExtraCondensed Black", sans-serif;
  --font-neue-haas: "Neue Haas Grotesk Text Pro 75 Bold", sans-serif;
  --color-bg: #000000;
  --color-main: #f1e3c5;
  --color-blackish: #1a1913;

  --color-gold: #dfaa6b;
  --color-silver: #8f8881;
  --color-bronze: #866343;
  --color-gold-dark: #bd902f;
  --color-red: #e70023;
  --color-red-dark: #c9091c;
  --color-amateur: #616161;

  --color-dark-bg: #161717;
  --color-gray-dark: #2d2e2e;
  --color-gray2-dark: #2f2e2e;
  --color-brown-dark: #453c34;
  --color-footer-text: #76685c;

  --max-width: 1700px;
  --transition-fast: 0.25s ease;
  --header-height-huge: 120px;
  --header-height: 75px;
  --header-height-mobile: 64px;
  --footer-height: 184px;
  --min-height-screen: max(100vh, 650px);
  /* --min-height-screen: 100vh; */
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  transition: font-size 0.3s ease;
}

@media (min-width: 2200px) {
  html {
    font-size: 20px;
  }
}

@media (min-width: 2800px) {
  html {
    font-size: 25px;
  }
}

@media (min-width: 3400px) {
  html {
    font-size: 28px;
  }
}

section {
  scroll-margin-top: var(--header-height-huge);
}

body {
  font-family: var(--font-acumin-italic);
  text-transform: uppercase;
  color: var(--color-main);
  background-color: var(--color-blackish);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

/* === LAYOUT === */
.container {
  width: 90%;
}

.mt-1 {
  margin-top: 1rem;
}

.mt-3 {
  margin-top: clamp(1rem, 2vw, 3rem);
}

/* === TYPOS === */

.fs-20 {
  font-size: clamp(0.875rem, 2vw, 1.25rem);
}

.fs-22 {
  font-size: clamp(1rem, 2.2vw, 1.375rem);
}

.fs-24 {
  font-size: clamp(1rem, 2.4vw, 1.5rem);
}

.fs-30 {
  font-size: clamp(1.125rem, 3vw, 1.875rem);
}

.fs-32 {
  font-size: clamp(1.125rem, 3.2vw, 2rem);
}

.fs-42 {
  font-size: clamp(1.5rem, 2.2vw, 2.5rem);
}

.fs-50 {
  /* font-size: 2rem; */
  font-size: clamp(2rem, 5vw, 3.125rem);
}

.fs-60 {
  font-size: clamp(3rem, 5vw, 3.75rem);
}

.fs-120 {
  font-size: clamp(4rem, 10vw, 7.5rem);
}

.fs-133 {
  font-size: clamp(5rem, 12vw, 8.3125rem);
}

.main-shadow {
  box-shadow: 0.375rem 0.375rem 0 var(--color-main);
}

.dark-shadow {
  box-shadow: 0.375rem 0.375rem 0 var(--color-gray2-dark);
}

.gold-shadow {
  box-shadow: 0.375rem 0.375rem 0 var(--color-gold-dark);
}

.discord-shadow {
  box-shadow: 0.375rem 0.375rem 0 #424549;
}

.bg-red {
  background-color: var(--color-red);
}

.bg-discord {
  background-color: #7289da;
}

.bg-dark {
  background-color: var(--color-dark-bg);
}

.text-red {
  color: var(--color-red);
}

.gold-text {
  color: var(--color-gold-dark);
}

.secondary-text {
  color: var(--color-blackish);
}

.grey-dark-text {
  color: var(--color-gray-dark);
}

.grey2-dark-text {
  color: var(--color-gray2-dark);
}

.acumin {
  font-family: var(--font-acumin-italic);
  line-height: 1;
}

.acumin-regular {
  font-family: var(--font-acumin);
  line-height: 1;
}

.neue-haas {
  font-family: var(--font-neue-haas);
}

/* === BUTTONS === */
.btn-cta {
  display: inline-block;
  padding: 1rem 1.25rem 0.5rem;
  text-decoration: none;
  position: relative;
  transform: skewX(-10deg);
  width: fit-content;
  border: none;
  cursor: pointer;
  color: var(--color-main);
  transition: all 0.3s ease;
}

.btn-cta:hover {
  background-color: var(--color-red-dark);
}

.btn-cta.bg-discord:hover {
  background-color: #1e2124;
}


.btn-cta span {
  display: inline-block;
  transform: skewX(8deg);
  white-space: nowrap;
  text-transform: uppercase;
}

.btn-to-top {
  margin-left: 1rem;
  transition: all 0.1s ease-in-out;
  width: 4.375rem;
  height: 4rem;
  padding: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-to-top .to-top-icon {
  width: clamp(42px, 2.5vw, 80px);
  height: auto;
  transition: all 0.2s ease;
}

/* === ONGLET === */
.onglet-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  width: max-content;
}

.onglet-border {
  border: 8px solid var(--color-red);
  border-bottom: none;
  width: 70%;
  clip-path: polygon(2px 0, calc(100% - 2px) 0, 100% 100%, 0 100%);
}

.onglet {
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  clip-path: polygon(16px 0, calc(100% - 16px) 0, 100% 100%, 0 100%);
  margin-bottom: -1px;
}

.onglet p {
  font-size: clamp(1.125rem, 3.2vw, 2rem);
  margin-top: 0.5rem;
  padding: 0 2rem;
  min-width: 140px;
}

.onglet-details {
  background-color: var(--color-dark-bg);
  color: var(--color-main);
}

.onglet-format {
  background-color: var(--color-main);
  color: var(--color-blackish);
}

.onglet-finale {
  background-color: var(--color-gold-dark);
  color: var(--color-blackish);
}

/* === ICON === */

.arrow-icon {
  width: 0.85rem;
  height: auto;
}

.popup-close-icon {
  width: 27px;
  height: auto;
  transition: width 0.2s ease;
}

a[aria-label="X / Twitter"] img,
a[aria-label="Discord"] img {
  display: block;
  width: clamp(1.5rem, 1.5vw, 3rem);
  height: auto;
  transition: opacity 0.2s ease;
  cursor: pointer;
}

a[aria-label="X / Twitter"]:hover img,
a[aria-label="Discord"]:hover img {
  opacity: 0.8;
}

.otp-icon {
  display: block;
  width: 4.313rem;
  height: auto;
}

@media screen and (max-width: 2200px) {
  section {
    scroll-margin-top: var(--header-height);
  }
  .onglet {
    height: 62px;
  }
  .btn-to-top .to-top-icon {
    width: clamp(42px, 1vw, 70px);
  }
}

@media screen and (max-width: 1024px) {
  .main-shadow {
    box-shadow: 5px 4px 0 var(--color-main);
  }

  .dark-shadow {
    box-shadow: 5px 4px 0 var(--color-gray2-dark);
  }

  .gold-shadow {
    box-shadow: 5px 4px 0 var(--color-gold-dark);
  }

  .arrow-icon {
    width: 14px;
    height: auto;
  }

  .popup-close-icon {
    width: 40px;
  }
}

@media screen and (max-width: 768px) {
  section {
    scroll-margin-top: var(--header-height-mobile);
  }

  .container {
    width: 100%;
  }

  .onglet {
    height: 50px;
  }
}

@media screen and (max-width: 600px) {
  .onglet {
    height: 42px;
  }
}
