@font-face {
  font-family: "GeistMono";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../../assets/webfonts/GeistMono-Variable.woff2") format("woff2");
}

@font-face {
  font-family: "Nohemi Light";
  src: url("../../assets/webfonts/Nohemi-Light.woff2") format("woff2");
  font-style: normal;
  font-weight: normal;
  text-rendering: optimizeLegibility;
}

@font-face {
  font-family: "Nohemi";
  src: url("../../assets/webfonts/Nohemi-Regular.woff2") format("woff2");
  font-style: normal;
  font-weight: normal;
  text-rendering: optimizeLegibility;
}

@font-face {
  font-family: "Nohemi Medium";
  src: url("../../assets/webfonts/Nohemi-Medium.woff2") format("woff2");
  font-style: normal;
  font-weight: normal;
  text-rendering: optimizeLegibility;
}

@font-face {
  font-family: "Nohemi SemiBold";
  src: url("../../assets/webfonts/Nohemi-SemiBold.woff2") format("woff2");
  font-style: normal;
  font-weight: normal;
  text-rendering: optimizeLegibility;
}

@font-face {
  font-family: "Nohemi Bold";
  src: url("../../assets/webfonts/Nohemi-Bold.woff2") format("woff2");
  font-style: normal;
  font-weight: bold;
  text-rendering: optimizeLegibility;
}

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

:root {
  --white: 255, 255, 255;
  --white-gray: 242, 242, 242;
  --black: 23, 23, 23;
  --black-gray: 88, 88, 88;
  --red: 201, 57, 39;
  --gradient-primary: linear-gradient(
    90deg,
    rgba(237, 50, 36, 1) 0%,
    rgba(201, 57, 39, 1) 100%
  );

  --h1-fz: clamp(4.8rem, 2.15488rem + 3.2258vw, 6.8rem);
  --h2-fz: clamp(2.8rem, 0.15488rem + 3.2258vw, 4.8rem);
  --h3-fz: clamp(2.4rem, 0.81296rem + 1.9355vw, 3.6rem);
  --h4-fz: clamp(2rem, 1.47104rem + 0.6452vw, 2.4rem);
  --h5-fz: clamp(1.8rem, 1.53552rem + 0.3226vw, 2rem);
  --variant-fz: clamp(1.4rem, 0.87104rem + 0.6452vw, 1.8rem);
  --paragraph-fz: clamp(1.2rem, 0.93552rem + 0.3226vw, 1.4rem);
  --small-fz: clamp(1rem, 0.73552rem + 0.3226vw, 1.2rem);

  --small-padding: clamp(1.6rem, -0.51616rem + 2.5806vw, 3.2rem);
  --regular-padding: clamp(3.2rem, 0.81936rem + 2.9032vw, 5rem);
  --medium-padding: clamp(3.2rem, -1.03232rem + 5.1613vw, 6.4rem);
}

html {
  font-size: 10px;
  scroll-behavior: smooth;
}

body {
  font-family: "Nohemi";
  font-size: var(--paragraph-fz);
  line-height: 1.5;
  background: rgb(var(--white));
  color: rgb(var(--black-gray));
}

#top {
  position: absolute;
  top: 0;
  left: 0;
}

.appear-animation {
  opacity: 0;
  transform: translateY(1.6rem);
  filter: blur(0.5rem);
  animation: appearAnim 0.5s ease-in-out;
  animation-delay: var(--appear-delay);
  animation-fill-mode: forwards;
}

@keyframes appearAnim {
  0% {
    opacity: 0;
    transform: translateY(1.6rem);
    filter: blur(0.5rem);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

/* overflow */

.no-overflow {
  overflow: hidden;
}

/* max-width */

.mw-462 {
  max-width: 46.2rem;
}

.mw-1340 {
  max-width: 134rem;
  padding-inline: var(--regular-padding);
}

.mw-1340:not(header) {
  margin: 0 auto;
}

.mw-1024 {
  width: 100%;
  margin: 0 auto;
  max-width: 102.4rem;
  padding-inline: var(--regular-padding);
}

.full-width {
  width: 100%;
}

/* header */

header {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  margin: 3.2rem 0;
  z-index: 10;
}

.header-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
}

header .logo {
  width: 6rem;
  transition: transform 0.3s ease-out;
}

header .logo-center {
  grid-column: 2;
  justify-self: center;
}

header a.btn {
  transition: opacity 0.3s ease-out, transform 0.2s ease-out;
}

.scrolled header .logo {
  transform: scale(0.8);
}

.scrolled header a.btn {
  opacity: 0;
}

ul {
  font-family: "GeistMono";
}

li {
  list-style-type: none;
}

li a {
  position: relative;
  text-transform: uppercase;
  color: rgb(var(--black-gray));
}

li a:after {
  content: "";
  position: absolute;
  bottom: -1rem;
  left: 50%;
  transform: translateX(-50%);
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--gradient-primary);
  opacity: 0;
  transform: scale(0);
  transition: 0.2s ease-out;
}

li a:hover:after {
  opacity: 1;
  transform: scale(1);
}

/* images */

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

.fit-contain {
  object-fit: contain;
}

/* text */

h1,
h2,
h3 {
  line-height: 1;
}

h1 {
  color: rgb(var(--black));
  font-size: var(--h1-fz);
}

h2 {
  font-size: var(--h2-fz);
}

h3 {
  font-size: var(--h3-fz);
}

h4 {
  font-family: "Nohemi Light";
  font-size: var(--h4-fz);
}

h5 {
  font-size: var(--h5-fz);
}

p,
a {
  color: rgb(var(--black));
  text-decoration: none;
}

a {
  display: inline-block;
  width: fit-content;
}

.text-left {
  text-align: left;
}

.text-center {
  text-align: center;
}

.text-gradient {
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.text-small {
  font-size: var(--small-fz);
}

.text-variant {
  font-size: var(--variant-fz);
}

h4,
.text-balance {
  text-wrap: balance;
}

.text-pretty {
  text-wrap: pretty;
}

h1,
h2,
.text-medium {
  font-family: "Nohemi Medium";
}

.text-semibold {
  font-family: "Nohemi SemiBold";
}

.text-bold {
  font-family: "Nohemi Bold";
}

.text-underline {
  text-decoration: underline;
  opacity: 1;
  transition: opacity 0.2s ease-out;
}

.text-underline:hover {
  opacity: 0.5;
}

/* btn */

.btn {
  padding: 1.4rem 2.2rem;
  line-height: 1;
  box-shadow: 0 0.2rem 1.5rem rgba(var(--black), 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease-out;
  background: rgb(var(--white));
}

.btn.invert {
  background: var(--gradient-primary);
  color: rgb(var(--white));
}

.btn:hover {
  box-shadow: 0 0.2rem 1.5rem rgba(var(--black), 0.2);
}

.btn.invert:hover {
  box-shadow: 0 0.2rem 1.5rem rgba(var(--black), 0.4);
}

.offer .btn span {
  pointer-events: none;
}

/* flex */
.flex {
  display: flex;
}

.flex-wrap {
  flex-wrap: wrap;
}

.column {
  flex-direction: column;
}

.justify-center {
  justify-content: center;
}

.justify-end {
  justify-self: end;
}

.align-center {
  align-items: center;
}

.space-between {
  justify-content: space-between;
}

.gap-tiny {
  gap: 0.8rem;
}

.gap-small {
  gap: 1.6rem;
}

.gap-regular {
  gap: 2.4rem;
}

.gap-medium {
  gap: 3.2rem;
}

.gap-large {
  gap: var(--medium-padding);
}

.gap-huge {
  gap: 9.6rem;
}

/* borders */

.radius-regular {
  border-radius: 0.6rem;
}

.radius-medium {
  border-radius: 1.2rem;
}

.radius-large {
  border-radius: 1.8rem;
}

/* pills */

.pill {
  width: fit-content;
  height: fit-content;
  padding: 0.8rem 1.6rem;
  color: rgb(var(--black-gray));
  border: solid 1px rgb(var(--white-gray));
}

.pill img {
  width: 1.2rem;
}

/* sections */

section {
  position: relative;
  margin-block: 6.4rem;
}

/* sections - hero */
#hero,
#legal {
  min-height: 100dvh;
  margin: 0;
  padding-top: var(--regular-padding);
}

#legal {
  margin-block: 6.4rem;
}

/* sections - bg-red part */

.bg-red {
  position: relative;
  overflow: hidden;
  padding: var(--medium-padding);
  background: var(--gradient-primary);
  color: rgb(var(--white));
}

.bg-red::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  opacity: 3%;
  background: url("../img/bg-symbol.svg") repeat center center;
  background-size: 10rem;
  background-size: clamp(5rem, -5.25424rem + 5.123vw, 10rem);
  pointer-events: none;
}

.bg-red .content {
  width: 50%;
}

.bg-red h2 {
  color: rgb(var(--white));
}

.bg-red h4 {
  color: rgb(var(--white-gray));
}

/* sections - faq */

.faq-title {
  position: sticky;
  top: 10.2rem;
  left: 0;
  align-self: flex-start;
  width: 100%;
  max-width: 40%;
}

.faq-title div {
  padding: var(--small-padding);
}

.faq-title p {
  color: rgb(var(--white));
}

.faq-list,
.faq-item,
.faq-question,
.faq-answer {
  width: 100%;
}

.faq-question {
  background: rgba(var(--white-gray), 0.375);
  padding: 1.6rem 1.8rem;
}

.faq-icon {
  width: 3.2rem;
  height: 3.2rem;
  position: relative;
  padding: 0.8rem;
  background: var(--gradient-primary);
}

.faq-line {
  width: 1.6rem;
  height: 1px;
  background: rgb(var(--white));
}

.is-2 {
  position: absolute;
  transform: rotate(-90deg);
  transition: transform 0.3s ease-out;
}

.opened .is-2 {
  transform: rotate(0deg);
}

.faq-answer {
  padding: 0.8rem 1.8rem 1.6rem;
  color: rgb(var(--black-gray));
}

.faq-answer-wrap {
  background: rgba(var(--white-gray), 0.375);
  display: block;
  max-height: 0;
  transition: max-height 0.3s ease;
}

.faq-answer-wrap.opening,
.faq-answer-wrap.closing {
  transition: max-height 0.3s ease;
}

/* sections - contact */

#contact p,
#contact a {
  color: rgb(var(--white));
}

.input-item {
  display: block;
  position: relative;
  width: 100%;
}

.half-width {
  max-width: calc(50% - 1.2rem);
}

input,
label,
select,
textarea {
  display: inline-block;
  font-family: "Nohemi";
}

input,
select,
textarea {
  width: 100%;
  padding: 1.4rem 1.4rem 1.2rem;
  color: rgb(var(--white));
  background: rgb(var(--white), 0.15);
  border: 1px solid rgba(var(--white-gray), 0.5);
  transition: 0.2s ease-out;
}

input::placeholder,
textarea::placeholder {
  color: rgba(var(--white-gray), 0.75);
}

input.touched:invalid,
select.touched:invalid,
textarea.touched:invalid {
  border-color: #ff0000;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgb(var(--white));
}

textarea {
  resize: vertical;
}

label {
  font-size: 1.2rem;
  color: rgb(var(--red));
  background: rgb(var(--white));
  padding: 0 0.6rem;
  position: absolute;
  border-radius: 0.3rem;
  top: 0;
  left: 1.2rem;
  transform: translateY(-50%) scale(0.7);
  transform-origin: left;
  z-index: 1;
  pointer-events: none;
}

button {
  width: 100%;
  border: none;
}

button[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}

/* footer */

footer.mw-1340 {
  margin-bottom: 3.2rem;
}

.company-container img {
  width: 4.5rem;
}

.vertical-line {
  width: 0.1rem;
  height: 1.6rem;
  background: var(--gradient-primary);
}

.horizontal-line {
  width: 100%;
  height: 0.1rem;
  background: rgb(var(--white-gray));
}

footer a {
  opacity: 0.5;
  transition: opacity 0.2s ease-out;
}

footer a:hover {
  opacity: 1;
}

/* responsive - tablette */

@media screen and (max-width: 968px) {
  :root {
    --h1-fz: clamp(3.6rem, 2.41968rem + 2.459vw, 4.8rem);
    --h2-fz: clamp(2.4rem, 2.00656rem + 0.8197vw, 2.8rem);
    --h3-fz: clamp(2rem, 1.60656rem + 0.8197vw, 2.4rem);
    --h4-fz: clamp(1.8rem, 1.6032rem + 0.4098vw, 2rem);
  }

  .header-container {
    grid-template-columns: repeat(2, 1fr);
  }

  .bg-red::before {
    background-size: clamp(2.5rem, 0.04096rem + 5.123vw, 5rem);
  }

  nav {
    display: none;
  }

  .column-mobile {
    flex-direction: column;
  }

  .gap-medium-mobile {
    gap: 3.2rem;
  }

  #faq {
    flex-direction: column;
  }

  .faq-title {
    position: static;
    max-width: 100%;
  }
}

/* responsive - tablette */

@media screen and (max-width: 480px) {
  header .logo {
    width: 5rem;
    justify-self: center;
  }

  header a.btn {
    display: none;
  }

  .header-container {
    grid-template-columns: 1fr;
  }

  .mw-1024,
  .mw-1340 {
    padding-inline: 2rem;
  }

  #contact .mw-1024 {
    padding: 0;
  }
}
