@import url("https://fonts.googleapis.com/css2?family=Rajdhani:wght@500;700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=VT323&display=swap");

* {
  box-sizing: border-box;
  position: relative;
}

html,
body {
  --colors-bg--300: #1e181e;
  --colors-bg--500: #191a1e;
  --colors-primary--200: #f4908b;
  --colors-primary--300: #ea6f69;
  --colors-primary--500: #e8615a;
  --colors-primary--600: #9c3230;
  --colors-primary--700: #5e2122;
  --colors-primary--800: #451717;
  --colors-primary--900: #3c181a;
  --colors-secondary--500: #2be4ea;
  --colors-secondary--900: #295459;
  --colors-tertiary--500: #fed33f;
  --colors-on_bg--500: var(--colors-primary--500);
  --colors-on_tertiary--500: var(--colors-bg--300);
  --colors-on_primary--500: var(--colors-primary--200);
  --colors-active--500: #2bfea0;
  --fonts-primary: "Rajdhani", sans-serif;
  --fonts-secondary: "VT323", monospace;
  --ui-glow: 0 0 5px var(--colors-primary--500);
  --ui-glow-text: -9px -6px 40px currentcolor;
  --ui-notch-amount: 1rem;
  --ui-notch-hypotenuse: 22.627416px;
  --ui-notch-path: polygon(0 0, 100% 0, 100% calc(100% - var(--ui-notch-amount) + 2px),
      calc(100% - var(--ui-notch-amount) + 2px) 100%, 0 100%);
  background-color: var(--colors-bg--500);
  background-image: radial-gradient(ellipse at 33% 10%, #461616 0%, transparent 75%);
  background-repeat: no-repeat;
  color: var(--colors-on_bg--500);
  font-family: var(--fonts-primary);
  margin: 0;
  min-height: 100vh;
}

.parallax-section {
  position: relative;
  overflow: hidden;
}

.parallax-section .bg-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 150%; /* plus grand que la section pour permettre le mouvement */
  background-image: linear-gradient(to left, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.4)), radial-gradient(circle at 33% 33%, #000 0%, transparent 60%), url('./img/back_net.jpg');
  background-position: center;
  background-size: cover;
  transform: translateY(0);
  will-change: transform;
  transition: transform 0.1s ease-out; /* petit lissage */
}

.hero-wrapper {
  border-bottom: solid 1px;
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  /*background-image: linear-gradient(to left, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.4)), radial-gradient(circle at 33% 33%, #000 0%, transparent 60%), url('./img/back_net.jpg');
*/
  background-position: left center;
  background-size: cover;
  background-repeat: no-repeat;
  background-attachment: fixed;
  /* optionnel */
  height: calc(100vh - 120px);
  min-height: 640px;
}

.fullfix {
  position: absolute;
  top: 0px;
  left: 0px;
  width: 100%;
}

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

/* Header */
.app-skeleton {
  padding: 0 1rem;
  max-width: 90em;
  margin: auto;
}

.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0 .5rem;
  margin-bottom: 1rem;
}

.app-header::after {
  background-color: var(--colors-primary--500);
  box-shadow: var(--ui-glow);
  bottom: 0;
  content: "";
  height: 2px;
  position: absolute;
  left: 0;
  width: 100%;
}

.app-header__anchor {
  padding: .5rem;
}

.app-header__anchor__text {
  font-family: var(--fonts-secondary);
  font-size: 1.25rem;
  letter-spacing: .035rem;
  text-shadow: var(--ui-glow-text);
  text-transform: uppercase;
}

.nav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 2rem;
}

.nav a {
  display: flex;
  text-transform: uppercase;
  text-shadow: var(--ui-glow-text);
}

.nav a:hover {
  color: var(--colors-primary--200);
}

.nav .nav__link--active {
  color: var(--colors-secondary--500);
}

/* Buttons */
.button {
  background: transparent;
  border: 1px solid var(--colors-primary--500);
  border-radius: 2px;
  color: var(--colors-primary--500);
  display: inline-block;
  letter-spacing: .045em;
  padding: .55rem .9rem;
  text-transform: uppercase;
  cursor: pointer;
}

.button:hover {
  background: var(--colors-primary--800);
  color: var(--colors-on_primary--500);
}

.button--primary {
  color: var(--colors-secondary--500);
  border-color: var(--colors-secondary--500);
}

.button--primary:hover {
  background: var(--colors-secondary--900);
  color: var(--colors-secondary--500);
}

.button--size-lg {
  border-width: 2px;
  clip-path: var(--ui-notch-path);
  padding: .65rem 1.1rem 1.1rem .65rem;
}

.button--size-lg::before {
  background: currentcolor;
  bottom: 5px;
  content: "";
  display: block;
  height: 3px;
  position: absolute;
  right: -6px;
  transform: rotate(-45deg);
  width: var(--ui-notch-hypotenuse);
  z-index: 100;
}

.button-toolbar {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
}

/* Blocks */
.pad {
  background: var(--colors-bg--300);
  border: 2px solid var(--colors-primary--600);
  clip-path: var(--ui-notch-path);
}

.pad::before {
  background: var(--colors-primary--600);
  bottom: 5px;
  content: "";
  display: block;
  height: 3px;
  position: absolute;
  right: -6px;
  transform: rotate(-45deg);
  width: var(--ui-notch-hypotenuse);
  z-index: 100;
}

.pad__body {
  padding: 1rem;
  padding-bottom: var(--ui-notch-amount);
}

.pad.secondary {
  background: var(--colors-bg--300);
  border-color: var(--colors-secondary--500);
}

.pad.secondary::before {
  background: var(--colors-secondary--500);
}

.pad.secondary .pad__body {
  color: var(--colors-secondary--500);
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem;
}

.muted {
  opacity: .85;
}

/* Hero */
.hero {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  grid-template-columns: 1.2fr .8fr;
  gap: 1.25rem;
  align-items: center;
  width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 1.5rem 1.25rem;
}

.hero__kicker {
  font-family: var(--fonts-secondary);
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--colors-secondary--500);
}

.hero__title {
  letter-spacing: .035em;
  text-shadow: -9px -6px 40px currentcolor;
  text-transform: uppercase;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 700;
  margin: .35rem 0;
}

.hero__tagline {
  opacity: .9;
}

.anim {
  width: 258px;
  height: 460px;

  overflow: hidden;
  /* 6 = nombre de frames dans ton sprite */
}

.anim img {
  height: 100%;
  animation: play 10s steps(6) infinite;
}

@keyframes play {
  to {
    transform: translateX(-1548px);
    /* largeur frame × nb frames = 200 × 6 */
  }
}

.hero_img {
  margin-bottom: 20px;
}

.hero_img img {
  width: 250px;
}

/* Screenshot */
.screenshot {
  display: block;
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, #2a1b1b 0%, #1b2024 100%);
  border: 2px dashed #9c3230;
  border-radius: 6px;
  width: 261px;
}

.screenshot__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ea6f69;
  opacity: .9;
}

/* Features */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.25rem;
}

.feature {
  padding: .75rem;
}

.feature h3 {
  margin: .25rem 0 .25rem 0;
  font-size: 1.05rem;
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.25rem;
}

.step {
  padding: .9rem;
}

/* Footer */
.footer {
  text-align: center;
  padding: 1.25rem 0;
  opacity: .85;
  margin-top: 120px;
}

.faq details {
  padding: 10px;
    border: solid 1px;
    margin-bottom: 5px;
}
.faq summary {
  cursor: pointer;
}

.footer a {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
  }
  .hero-wrapper{
    display: block;
    min-height: auto;
    height: auto;
    padding: 120px 0px 60px;
  }
}

@media (max-width: 860px) {

  .features,
  .steps {
    grid-template-columns: 1fr;
  }
  .hero-wrapper{
    display: block;
    min-height: auto;
    height: auto;
    padding: 120px 0px 60px;
  }
}