*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

img {
  user-select: none;
  -webkit-user-drag: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

/* Fonts */
@font-face {
  font-family: "MOD";
  src: url(../polices/MOD.otf);
}

/* Base */
.overlayBody {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #0000007d;
  z-index: 10;
  pointer-events: none;
}

body {
  margin: 40px;
  background-color: #050505;
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 80px);
  box-sizing: border-box;
}

main.contenu {
  order: 1;
}

footer.footer {
  order: 2;
}

a {
  color: white;
  text-decoration: none;
}

/* Curseur */
body {
  cursor: none;
  position: relative;
}

.curseur {
  position: fixed;
  width: 22px;
  height: 22px;
  pointer-events: none;
  background-color: #ffffff69;
  clip-path: polygon(
    50% 0%,
    61% 35%,
    98% 35%,
    68% 57%,
    79% 91%,
    50% 70%,
    21% 91%,
    32% 57%,
    2% 35%,
    39% 35%
  );
  transform: translate(-50%, -50%);
  z-index: 9999;
}

.paillettes {
  position: fixed;
  width: 7px;
  height: 7px;
  pointer-events: none;
  background-color: #ffffffc1;
  clip-path: polygon(
    50% 0%,
    61% 35%,
    98% 35%,
    68% 57%,
    79% 91%,
    50% 70%,
    21% 91%,
    32% 57%,
    2% 35%,
    39% 35%
  );
  opacity: 0.8;
  animation: animationCurseur 1s forwards;
  transform: translate(-50%, -50%);
  z-index: 9999;
}

@keyframes animationCurseur {
  0% {
    opacity: 0.8;
    transform: translate(-50%, -50%) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.5);
  }
}

/* Header */
.header {
  background-image: url(../images/fonds/header.jpg);
  background-size: 100%;
  background-repeat: no-repeat;
  background-attachment: fixed;
  height: 150px;
  flex-shrink: 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.header h1 {
  margin: 0;
  font-family: "MOD", Arial, sans-serif;
  font-size: clamp(40px, 6vw, 100px);
  background: linear-gradient(90deg, #626262b3 0%, #252525a9 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Contenu */
.contenu {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: center;
  align-items: stretch;
  /* flex-grow: 1; */
  padding: 40px 0;
}

/* Onglets */
.onglets {
  display: flex;
  flex-direction: column;
  padding: 10px;
  background: url(../images/fonds/onglets.jpg) center/cover;
  height: 520px;
  overflow: hidden;
}

.ongletContenu {
  flex: 2;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Fenêtre */
.fenetre {
  text-align: center;
  border: 4px solid #000;
  background-color: #000000af;
  padding: 10px;
}

.barreFenetre {
  display: flex;
  justify-content: flex-end;
  padding: 7px;
  background-color: #000000c8;
}

.boutonsFenetre {
  display: flex;
  gap: 4px;
}

.boutonReduire {
  width: 5px;
  height: 5px;
  border: none;
  background: #fff;
  cursor: pointer;
}

.boutonAgrandir {
  width: 5px;
  height: 5px;
  border: none;
  background: #979797;
  cursor: pointer;
}

.boutonFermer {
  width: 5px;
  height: 5px;
  border: none;
  background: #1f1f1f;
  cursor: pointer;
}

/* Archives */
.overlayArchives {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 5px;
  justify-content: center;
  align-items: center;
  color: #ffffff99;
  font-family: "Arial";
  font-weight: bold;
  font-size: clamp(15px, 1vw, 20px);
  text-transform: uppercase;
  text-align: center;
  z-index: 2;
}

.archives {
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 3;
  min-height: 0;
  background: url(../images/fonds/archives.jpg) center/cover;
  height: 520px;
  overflow: hidden;
  padding: 10px;
}

.archivesGif img,
.accueilGif img {
  width: 100px;
  padding-top: 12px;
}

.colonneArchives {
  flex: 1;
  display: flex;
  flex-direction: row;
  gap: 10px;
  position: relative;
  overflow: hidden;
}

.colonneInterneArchives {
  display: flex;
  flex-direction: row;
  width: max-content;
  animation: animationArchives 20s linear infinite;
}

.carrouselArchives {
  flex-shrink: 0;
  padding: 5px 0;
  margin-right: 10px;
}

img.carrouselArchives {
  height: auto;
  max-height: 100%;
  display: block;
}

@keyframes animationArchives {
  0% {
    transform: translateX(0) rotate(0deg);
  }
  5% {
    transform: translateX(-2.5%) rotate(-2deg);
  }
  10% {
    transform: translateX(-5%) rotate(3deg);
  }
  15% {
    transform: translateX(-7.5%) rotate(-1deg);
  }
  20% {
    transform: translateX(-10%) rotate(2deg);
  }
  25% {
    transform: translateX(-12.5%) rotate(-3deg);
  }
  30% {
    transform: translateX(-15%) rotate(1deg);
  }
  35% {
    transform: translateX(-17.5%) rotate(-2deg);
  }
  40% {
    transform: translateX(-20%) rotate(1deg);
  }
  45% {
    transform: translateX(-22.5%) rotate(-1deg);
  }
  50% {
    transform: translateX(-25%) rotate(0deg);
  }
  55% {
    transform: translateX(-27.5%) rotate(2deg);
  }
  60% {
    transform: translateX(-30%) rotate(-3deg);
  }
  65% {
    transform: translateX(-32.5%) rotate(1deg);
  }
  70% {
    transform: translateX(-35%) rotate(-2deg);
  }
  75% {
    transform: translateX(-37.5%) rotate(1deg);
  }
  80% {
    transform: translateX(-40%) rotate(-1deg);
  }
  85% {
    transform: translateX(-42.5%) rotate(0deg);
  }
  90% {
    transform: translateX(-45%) rotate(2deg);
  }
  95% {
    transform: translateX(-47.5%) rotate(-2deg);
  }
  100% {
    transform: translateX(-50%) rotate(0deg);
  }
}

/* Favoris */
.favoris {
  display: flex;
  gap: 10px;
  height: 520px;
  overflow: hidden;
  padding: 10px;
  flex: 2;
  min-height: 0;
  background: url(../images/fonds/favoris.jpg) center/cover;
}

.favorisGif img {
  width: 90px;
  padding-top: 12px;
}

.colonneFavoris {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  overflow: hidden;
}

.colonneInterneFavoris {
  display: flex;
  flex-direction: column;
  animation: animationFavoris 20s linear infinite;
}

.carrouselFavoris {
  width: 100%;
  object-fit: cover;
  flex: 1 0 auto;
  padding: 5px 0;
}

/* Animation Favoris */
@keyframes animationFavoris {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-50%);
  }
}

/* Hors service */
.horsServiceGif img {
  width: 15px;
  padding-top: 12px;
}

/* Étoile */
.etoiles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: -1;
}

.etoile {
  position: absolute;
  width: 2px;
  height: 2px;
  background: #fff;
  border-radius: 50%;
  opacity: 0;
  animation: etoile 3s infinite ease-in-out;
}

@keyframes etoile {
  0%,
  100% {
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
}

/* Footer */
.footer {
  position: relative;
  overflow: hidden;
  background: url(../images/fonds/footer.jpg) center/cover;
  height: 150px;
  flex-shrink: 0;
}

.texteDefilantConteneur {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  overflow: hidden;
}

.texteDefilant {
  display: flex;
  width: fit-content;
  animation: defilement 90s linear infinite;
}

.texteDefilant__contenu {
  display: inline-block;
  white-space: nowrap;
  font-size: 100px;
  text-transform: uppercase;
  font-family: "Arial";
  font-weight: bold;
  letter-spacing: 2px;
  color: #0000008e;
  text-shadow: 0 0 100px #000000;
  padding-right: 100px;
}

@keyframes defilement {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Responsive */
@media (max-width: 768px) {
  body {
    margin: 20px;
  }

  .contenu {
    flex-direction: column;
    gap: 20px;
    padding: 20px 0;
  }

  .onglets {
    order: 3;
    flex: 1;
    width: 100%;
    max-height: 700px;
    height: auto;
  }

  .archives {
    order: 1;
    flex: 1;
    width: 100%;
    max-height: 700px;
    height: auto;
  }

  .favoris {
    order: 2;
    flex: 1;
    width: 100%;
    max-height: 700px;
    height: auto;
  }

  footer.footer {
    order: 4;
  }
}