/* font */
@import url('https://fonts.googleapis.com/css2?family=Changa:wght@200..800&family=Courgette&display=swap');

:root {     
  --main-font: "Changa", sans-serif;
  --offset-value: 30;
  --btn-size: 60;  
  --secondary_color: #ED61CF;
} 

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  width: 100%;
  background: linear-gradient(0deg, #92A0FF 0%, #444FB2 60%, #221D5F 100%);  
}

body {
  min-height: 100%;
  width: 100%;
  margin: 0;
  padding: 0;
  font-family: var(--main-font);
  font-size: 16px;
  font-weight: 200;
}

a,
a:visited,
a:active {
  color: #FFFFFF;
  font-family: var(--main-font);
  text-decoration: none;
}

a:hover{
  text-decoration: none;
  text-shadow: 4px 4px 8px rgba(0,0,0,0.7);
}

ul {
  padding: 0;
  list-style: none;
}

/* =====================
NAVIGATION BACKGROUND
===================== */
#nav-bg {
  transform-origin: center center;
  transition: transform .3s;
  transform: translate(var(--translate-x), var(--translate-y)) scale(var(--scale));
  will-change: transform;
  pointer-events: none;
}


/* ======
BUTTON
====== */
.btn {
  position: fixed;
  height: calc(var(--btn-size)*1px);
  width: calc(var(--btn-size)*1px);
  bottom: calc((var(--offset-value))*1px);
  left: calc(var(--offset-value)*1px);
  /*left: calc(50% - (var(--btn-size)/2*1px)); se te vui centrarlo */
  border-radius: 50%;
  background: linear-gradient(0deg, #92A0FF 0%, #444FB2 60%, #221D5F 100%);
  cursor: pointer;
  margin: 0;
  padding: 0 15px;
  border: none;
  z-index: 100;
  user-select: none;
  -webkit-tap-highlight-color: rgba(0,0,0,0);
  opacity:1;
}

#toggle-btn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: var(--secondary_color);
  /*box-shadow: 0 6px 12px rgba(0,0,0,.1);*/
  transition: transform .3s;
}

#toggle-btn span {
  position: relative;
  width: 100%;
}

#toggle-btn span {
  margin-top: -4px;
}
#toggle-btn span + span {
  margin-top: 8px;
}

#toggle-btn span:before,
#toggle-btn span:after {
  content: '';
  position: absolute;
  top: 0;
  background: currentColor;
  opacity: .8;
  height: 100%;
  width: 50%;
  height: 4px;
  transition: .25s cubic-bezier(.6,0,.3,1);
  transform-origin: center center;
}

#toggle-btn span:before {
  left: 0;
  border-radius: 3px 0 0 3px;
}

#toggle-btn span:after {
  right: 0;
  border-radius: 0 3px 3px 0;
}

#toggle-btn.shown span:nth-of-type(1):before {
  transform: translate3d(3px, 3.5px, 0) rotate(45deg);
}

#toggle-btn.shown span:nth-of-type(1):after {
  transform: translate3d(-3px, 3.5px, 0) rotate(-45deg);
}

#toggle-btn.shown span:nth-of-type(3):before {
  transform: translate3d(3px, -3.5px, 0) rotate(-45deg);
}

#toggle-btn.shown span:nth-of-type(3):after {
  transform: translate3d(-3px, -3.5px, 0) rotate(45deg);
}

#toggle-btn.shown span:nth-of-type(2):before,
#toggle-btn.shown span:nth-of-type(2):after {
  opacity: 0.0001;
}

#toggle-btn.shown span:nth-of-type(2):before {
  transform: translateX(-200%);
}

#toggle-btn.shown span:nth-of-type(2):after {
  transform: translateX(200%);
}

#toggle-btn.shown:before {
  transform: scale(.6);
  transition: .2s;
}

#toggle-btn:before {
  content: '';
  transition: .2s .2s;
  position: absolute;
  top: 3px;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,.1);
  border-radius: inherit;
  filter: blur(5px);
  z-index: -2;
}
#toggle-btn:after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: #fafafa;
  z-index: -1;
}


/* ==========
NAVIGATION
========== */
nav {
  width: 100%;
  height: 100%;
  background: transparent;
  position: fixed;
  top: 0;
  left: 0;
  overflow: hidden;
  display: flex;
  z-index: 200;
  pointer-events: none;
}

nav ul {
  margin: auto;
  pointer-events: auto;
  text-align: center;
}

nav li {
  font-size: 30px;
  color: #212121;
  user-select: none;
  transform: translate(-20px,20px) scale(.9);
  transition: 0s;
  opacity: 0.0001;
  visibility: hidden;
  will-change: transform;
}

nav li + li {
  margin-top: 30px;
}

#toggle-btn.shown ~ .wrapper nav li {
  transform: none;
  opacity: 1;
  visibility: visible;
  transition: .35s cubic-bezier(.4,2.08,.55,1);
}

#toggle-btn.shown ~ .wrapper nav li:nth-child(1) {
  transition-delay: .15s;
}
#toggle-btn.shown ~ .wrapper nav li:nth-child(2) {
  transition-delay: .125s;
}
#toggle-btn.shown ~ .wrapper nav li:nth-child(3) {
  transition-delay: .1s;
}

/* ============
LINK EFFECT
============ */
.link {
  position: relative;
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(0,0,0,0);
}

.link:before,
.link:after {
  position: absolute;
  content: '';
  height: 3px;
  width: 50%;
  background: var(--secondary_color);
  top: calc(50% + 2px);
  transition: transform .3s cubic-bezier(.5,.5,0,1);
}

.link:before {
  left: 0;
  transform: translateX(calc(-100% - 10px)) scaleX(0);
  transform-origin: left;
}

.link:after {
  right: 0;
  transform: translateX(calc(100% + 10px)) scaleX(0);
  transform-origin: right;
}

.link:hover:before {
  transform: translateX(calc(-100% - 10px)) scaleX(1);
  transform-origin: right;
}

.link:hover:after {
  transform: translateX(calc(100% + 10px)) scaleX(1);
  transform-origin: left;
}

h1 {
  color: #FFFFFF;
  font-family: var(--main-font);
  font-size: 54px;
  margin: 0;
}

h2 {
  color: #FFFFFF;
  font-family: var(--main-font);
  font-size: 43px;
  margin: 0;
}

h3 {
  color: #FFFFFF;
  font-family: var(--main-font);
  font-size: 33px;
  margin: 0px;
  text-align: center;
}

h4 {
  color: #FFFFFF;
  font-family: var(--main-font);
  font-size: 30px;
  margin: 0;
}

/*STARS*/
#c {
  position: absolute;
  width: 100vw;
  height: 100vh;
  position: absolute;
  top: 0;
  left: 0;
  opacity:1;
  z-index:-3;
}

#logoX{
  height:44px;
}

p {
  color: #FFFFFF;
  font-family: var(--main-font);
  font-size: 22px;
  margin: 0;
}

.content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  min-height: 100vh;
  width: 100%;
  padding: 0px 20px 20px;
  overflow-x: hidden; 
  overflow-y: hidden; 
}

/*Backgrounds and content fade*/
#backgroundStars {
  position: absolute;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100%;
  background-image: url('../imgjs/backgroundSkyT.webp');
  background-position: center;
  background-size: cover;  
  z-index: -2;
  transition: background-image 1s;
}

.main-text, .cards {
  transition: opacity 1s;
  opacity: 1;
}

.cards {
  /* Initialement caché */
  display: none;
}

/* end */

#logo-container {
  position: absolute;
  z-index: 3;
  left: 50%;
  transform: translateX(-50%);
}

#logo{
  max-width: 100%;
  height: auto;
  display: block;
}

#logoContainer {
  display: block;
  text-decoration: none;
}

.main-text {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 34vh;
}

.cards{
  flex-direction: column;
  justify-content: center;
  background-color: rgba(0, 0, 0, 0.4);
  height: 77vh;
  width: 70%; /* Largeur définie */
  overflow-y: auto; /* Défilement vertical si nécessaire */
  padding: 22px;
  box-sizing: border-box;
  margin-top: 17vh;
  text-align: center;
  z-index: 1;
  line-height: 40px;
}

/* Style personnalisé pour la barre de défilement */
.cards::-webkit-scrollbar {
  width: 10px;
}

.cards::-webkit-scrollbar-track {
  background: #f1f1f1;
}

.cards::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 5px;
}

.cards::-webkit-scrollbar-thumb:hover {
  background: #555;
}

/* Pour Firefox */
.cards {
  scrollbar-width: thin;
  scrollbar-color: #888 #f1f1f1;
}

/* Draw cards and cards container */
#drawButton {
  position:relative;
  display: block;
  width: 40%;
  font-size: 18px;
  margin: 20px auto;
  padding: 10px;
  margin-top: 20px;
  margin-bottom: 20px;
  cursor: pointer;
  background-color: #4CAF50;
  color: white;
  border: none;
  border-radius: 5px;
  transition: background-color 0.3s;
  z-index:300;  
}

#drawButton:hover {
  background-color: #45a049;
}

#cardContainer {
  display: flex;
  justify-content: space-around;
  width: 100%;
}

.card{
  text-align: center;
}

.content-block {
  display: flex;
  gap: 20px;
  flex-direction: column;
  margin-top: 44px;
}

.hidden {
  visibility: hidden;
}

.align-start {
  align-items: start;
}

.w-480 {
 width: 480px;
}

.m-0 {
  margin: 0;
}

.mb-500 {
  margin-bottom: 500px;
}

@media (max-width: 2000px) {
    .main-text{
      margin-top: 29vh;
    } 
}

@media (max-width: 1300px) {

  h1 {
    font-size: 44px;
  }

  h2 {
    font-size: 33px;
  }

  h3 {
    font-size: 18px;
    margin: 5px;
  }

  h4 {
    font-size: 24px;
  }

  p {
    font-size: 14px;
    margin: 0;
  }
  #backgroundStars {
    position: absolute;
    top: 0;
    left: 0;
    height: 100vh;
    width: 100%;
    background-image: url('../imgjs/backgroundSky.webp');
    background-position: center;
    background-size: cover;  
    z-index: -2;
  }
  .main-text{
    margin-top: 28vh;
  } 
  .cards {
    line-height: 14px;
  }
  .cards img {
    width: 50%;
  } 
}

@media (max-width: 640px) {
  h1 {
    font-size: 44px;
  }

  h2 {
    font-size: 33px;
  }

  h3 {
    font-size: 18px;
  }

  h4 {
    font-size: 24px;
  }

  p {
    font-size: 14px;
    margin: 0;
  }

  #backgroundStars {
    position: absolute;
    top: 0;
    left: 0;
    height: 100vh;
    width: 100%;
    background-image: url('../imgjs/backgroundSky.webp');
    background-position: center;
    background-size: cover;  
    z-index: -2;
  }

  .cards{
    width: 100%; /* Largeur définie */
    padding: 10px;
    line-height: 14px;
  }

  .cards img {
    width: 50%;
  }

  #logoX{
    height:22px;
  }

  .main-text {
    margin-top: 20vh;
  }

  .content-block {
    gap: 12px;
    margin-top: 36px;
  }

  .w-480 {
    width: 100%;
  }

  .mb-500 {
    margin-bottom: 300px;
  }

  #dividerContainer {
    margin-top: -10px;
    margin-bottom: -10px;
  }

}

footer-info {
  margin-top: auto;
}

.footer-info {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-direction: column;
}

.footer-info .docs {
  display: flex;
  gap: 16px;
  align-items: center;
}

.footer-info a,
.footer-info a:visited,
.footer-info a:active {
  color: #90AEFF;
  font-family: var(--main-font);
  font-size: 16px;
  line-height: 18px;
  text-decoration: none;
}

#dividerContainer {
  display: flex;
  align-items: center;
  margin-top: -20px;
  margin-bottom: -20px;
}

#dividerContainer #dividerStickLeft {
  position: absolute;
  width: 45%;
  left: 0;
}

#dividerContainer #dividerStickRight {
  position: absolute;
  width: 45%;
  right: 0;
  transform: scaleX(-1);
}

#buttonContainer {
  display: flex;
  gap: 12px;
  flex-direction: column;
  align-items: center;
}

#buttonContainer a {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  background-color: #FFFFFF;
  border: none;
  border-radius: 8px;
  transition: opacity .2s ease-in-out;
  cursor: pointer;
  outline: none;
}

#buttonContainer a:hover {
  opacity: 0.8;
}

#backgroundGradient {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(0deg, #92A0FF 0%, #444FB2 60%, #221D5F 100%);
  z-index: -1;
  overflow: hidden;
}

/* 
@media (orientation: landscape) {
  #backgroundStars {
    width: 100%;
    height: 100%;
  }
}


@media (orientation: portrait) {
  #backgroundStars {    
    width: auto;
    height: 100%;
  }
}
  */

#lottieBackground {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 100%;
  width: 100%;
  z-index: -1;
  overflow: hidden;
}

#lottieBackground #backgroundContainer {
  position: absolute;
  bottom: 0;
  display: flex;
  justify-content: center;
  width: 100%;
  line-height: 0;
  z-index: 0;
  height:30vh;
}

#lottieBackground #backgroundContainer #backgroundWaves {
  width: 100%;
  min-width: 1200px;
}

#lottieBackground #backgroundContainer #backgroundWavesMoon {
  position: absolute;
  top: -30px;
  left: 50%;
  height: 110px;
  width: 110px;
  transform: translate3d(-50%, -50%, 0);
  z-index: -1;
}

#lottieBackground #backgroundContainer #backgroundWavesStars {
  position: absolute;
  top: 3px;
  left: 0;
  width: 100%;
  min-width: 800px;
}

#lottieBackground #backgroundContainer #backgroundWavesRockLeft {
  position: absolute;
  bottom: 98%;
  left: 0;
  width: 30%;
  z-index: -1;
}

#lottieBackground #backgroundContainer #backgroundWavesRockRight {
  position: absolute;
  bottom: 98%;
  right: 0;
  width: 30%;
  z-index: -1;
}

#lottieBackground #backgroundContainer #backgroundWoman {
  width: 100%;
  min-width: 1200px;
  z-index:-1;
}
