@font-face {
  font-family: "Excalifont";
  src: url("../fonts/Excalifont-Regular.ttf?v=1788161139") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root {
  --fond: #ffffff;
  --encre: #1a1a1a;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

html {
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--fond);
  color: var(--encre);
}

.fragment {
  height: 100vh;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

.fragment--page {
  justify-content: center;
  gap: 1.5rem;
}

h1 {
  font-family: "Excalifont", sans-serif;
  font-size: clamp(2.5rem, 8vw, 6rem);
  font-weight: normal;
  line-height: 1.2;
  text-align: center;
  padding: 0 1rem;
  margin: 0;
}

.fleche-bas,
.fleche-haut {
  position: absolute;
  left: 50%;
  display: block;
}

.fleche-bas img,
.fleche-haut img {
  display: block;
  width: 50px;
  height: auto;
}

.fleche-bas {
  bottom: 2rem;
  transform: translateX(-50%);
  animation: rebond 1.6s ease-in-out infinite;
}

.fleche-haut {
  top: 2rem;
  transform: translateX(-50%) rotate(180deg);
}

.fleche-gauche,
.fleche-droite {
  display: block;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

.fleche-gauche img,
.fleche-droite img {
  display: block;
  width: 25px;
  height: auto;
}

.fleche-gauche {
  transform: rotate(180deg);
}

@keyframes rebond {
  0%,
  100% {
    transform: translate(-50%, 0);
  }
  50% {
    transform: translate(-50%, 10px);
  }
}

.pages-horizontales {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 4rem;
  padding: 0 max(2rem, calc(50% - 300px));
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.pages-horizontales::-webkit-scrollbar {
  display: none;
}

.pages-horizontales img {
  flex: 0 0 auto;
  scroll-snap-align: center;
  max-width: min(600px, 90vw);
  max-height: 75vh;
  width: auto;
  height: auto;
}

@media (max-width: 600px) {
  .pages-horizontales {
    padding: 0;
  }

  .pages-horizontales img {
    max-width: 100vw;
  }
}

.navigation-carrousel {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.points {
  display: flex;
  gap: 0.5rem;
}

.points img {
  display: block;
  width: 14px;
  height: 14px;
  cursor: pointer;
}

.bouton-menu {
  position: fixed;
  top: 1.5rem;
  left: 1.5rem;
  z-index: 30;
  display: none;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
}

body.hors-titre .bouton-menu {
  display: block;
}

.bouton-menu img {
  display: block;
  width: 32px;
  height: auto;
}

.fond-menu {
  position: fixed;
  inset: 0;
  z-index: 20;
  background: rgba(0, 0, 0, 0.3);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.panneau-menu {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 25;
  width: min(320px, 80vw);
  background: var(--fond);
  box-shadow: 2px 0 12px rgba(0, 0, 0, 0.15);
  transform: translateX(-100%);
  transition: transform 0.25s ease;
  display: flex;
  align-items: center;
  padding: 2rem;
}

body.menu-ouvert .fond-menu {
  opacity: 1;
  pointer-events: auto;
}

body.menu-ouvert .panneau-menu {
  transform: translateX(0);
}

.credits {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.panneau-menu p {
  font-family: "Excalifont", sans-serif;
  font-size: 1.5rem;
  line-height: 1.4;
  margin: 0;
}

.lien-instagram {
  display: block;
  width: 40px;
}

.lien-instagram img {
  display: block;
  width: 100%;
  height: auto;
}
