/* ==========================================================
   VARIABLES
   ========================================================== */

:root {
  --studio-black: #05080c;
  --studio-dark: #080d12;
  --studio-white: #ffffff;
  --studio-red: #cf010e;
  --studio-purple: #8464d9;
  --studio-turquoise: #169b98;

  --header-height: 90px;
  --header-height-scrolled: 82px;
  --site-header-offset: var(--header-height);
  --site-section-height: calc(100svh - var(--site-header-offset));
  --container-width: 1500px;
}

/* ==========================================================
   BASE
   ========================================================== */

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

html {
  scroll-behavior: smooth;
  background: var(--studio-black);
}

body {
  margin: 0;
  overflow-x: hidden;

  background: var(--studio-black);
  color: var(--studio-black);

  font-family: Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg {
  display: block;
  max-width: 100%;
}

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

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--studio-red);
  outline-offset: 4px;
}

button,
input,
textarea,
select {
  font: inherit;
}

ul,
ol {
  margin: 0;
  padding: 0;
}

.site-main {
  position: relative;
  min-height: 100vh;

  background: var(--studio-black);
}

.skip-link {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 10000;
  padding: 12px 16px;
  border: 1px solid var(--studio-red);
  background: var(--studio-white);
  color: var(--studio-black);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  transform: translateY(-150%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.skip-link:focus-visible {
  outline: 2px solid var(--studio-red);
  outline-offset: 4px;
}

@media (min-width: 768px) {
  html {
    scroll-padding-top: var(--site-header-offset);
  }

  .home-solutions,
  .home-about,
  .home-audit {
    height: var(--site-section-height);
    min-height: 0;
  }

  .home-faq {
    min-height: var(--site-section-height);
  }
}

/* ==========================================================
   APPARITIONS AU SCROLL
   ========================================================== */

.reveal-element {
  opacity: 0;
  transform: translateY(50px);

  transition:
    opacity 800ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 800ms cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-element.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================
   RÉDUCTION DES ANIMATIONS
   ========================================================== */

@media (max-width: 1050px) {
  :root {
    --header-height: 88px;
    --header-height-scrolled: 74px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .home-hero,
  .home-approach__intro,
  .home-approach-step {
    position: relative;
    top: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
