*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}


body{
    min-height: 100vh;
    background-color: rgb(33,33,33);
}

html {
    scroll-snap-type: y mandatory;
    scroll-behavior: smooth;
}
section {
    scroll-snap-align: start;
    scroll-snap-stop: always;
}


h1  {
    color: #ffc800;
    width: 100%;
  }
  


h2{
    font-weight: 300;
}

p{
    font-weight: 200;
}

.ecran{
    width: 100%;
    height: 100vh;
    background-position: center;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    border: solid white 1px;
}


/* Les cartes */


.carte{
    width: 90%;
    max-width: 440px;
    color: aliceblue;
    text-align: center;
    padding: 50px 30 px;
    border: 1px solid rgba(255,255,255,0.3);
    background: rgba(255,255,255,0.2);
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0,0,0,0.1);
    backdrop-filter: blur(5px);
    transition: transform 0.5s ease-in-out, box-shadow 0.5s ease-in-out;
    transform: perspective(100rem) rotateY(18deg);

}

.carte img{
    width: 150px;
    border-radius: 50%;
}

.carte h2{
    font-size: 50px;
    font-weight: 300;
    margin-top: 20px;

}

.carte p{

    font-size: 20px;
    margin: 10px auto;
    max-width: 330px;
}


.carte:hover {
  transform: scale(1.1) rotateX(10deg);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.8), 0 0 30px rgba(255, 255, 255, 0.6), 0 0 40px rgba(255, 255, 255, 0.4), 0 0 50px rgba(255, 255, 255, 0.2);
}

/*--------------------------------------------------------------------------------*/




/* Les boutons */


.start-button {
    background: linear-gradient(to right, #3498db, #8e44ad);
    border: none;
    color: #fff;
    padding: 10px 20px;
    font-size: 1em;
    cursor: pointer;
    border-radius: 5px;
    transition: all 0.3s ease; /* Transition pour un agrandissement en douceur */
    margin-bottom: 20px;
    animation: gradientAnimation 3s linear infinite; /* Animation du dégradé de couleu */
    scroll-behavior: smooth;
}

.start-button:hover {
    transform: scale(1.1); /* Agrandissement au survol */
}

.start-button2 {
  background: linear-gradient(to right, #3498db, #8e44ad);
  border: none;
  color: #fff;
  padding: 10px 20px;
  font-size: 1em;
  cursor: pointer;
  border-radius: 5px;
  transition: all 0.3s ease; /* Transition pour un agrandissement en douceur */
  margin-bottom: 20px;
  animation: gradientAnimation 3s linear infinite; /* Animation du dégradé de couleur en permanence */
  scroll-behavior: smooth;
}

.start-button2:hover {
  transform: scale(1.1); /* Agrandissement au survol */
}

@keyframes gradientAnimation {
    0% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 100% 50%;
    }
}


/*--------------------------------------------------*/



 /* analogie user*/
.Crea{
 width: 100%;
 height: 100vh;
 text-align: left;
 color: white;
 border: solid white 1px;
}


  /* ANALOGIE*/



  .page{
    width: 100%;
    height: 100vh;
    color: white;
    border: solid white 1px;
    display: flex;
    align-items: center;



  }

 .texte{
  font-size: 1.2vw;
  border: solid white 2px;
  width: 30%;
  float: left;
  position: absolute;
  margin-top: 1%;
  border-spacing: 5px 1rem;
  padding: 10px;
  border-radius: 5px;
  /*left: 15%;*/
  margin-left: 15%;
  
 }


 .page img{
  width: 25%;
  position: relative;
  float: right;
  /*top: 100px;*/
  /*left: 30%;*/
  margin-right: 0%; 
  margin-top: 0%;
  border: solid white 2px;
  border-radius: 10px;
  box-shadow: 0 4px 30px rgba(0,0,0,0.1);
  backdrop-filter: blur(5px);
  transition: transform 0.5s ease-in-out, box-shadow 0.5s ease-in-out;
  transform: perspective(100rem);
  margin-left: 10%;


  
 }

 .page img:hover {
  transform: scale(1.1) rotateX(10deg);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.8), 0 0 30px rgba(255, 255, 255, 0.6), 0 0 40px rgba(255, 255, 255, 0.4), 0 0 50px rgba(255, 255, 255, 0.2);
}

 .page h2{
  position: relative;
  font-size: 1.80vw;
  width: 35%;
  margin-top: -13%;
  /*left: 15%;*/
  margin-left: 15%;

 }


    
/*---------------------------------------------------------------------------*/







  /* Popup images (Pas utilisé dans cette version du site)*/
  
  .popup {
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
  }
  
  .popup-visible {
    display: block;
  }
  
  .popup-invisible {
    display: none;
  }
  
  #modal-image {
    max-width: 100%;
    max-height: 100%;
    margin: auto;
    display: block;
  }



/* -----Formulaire---- */

.formulaire{
  position: relative;
  margin-left: 30%;
  margin-right: 30%;
  color: white;
  top: 50px;
  
}


input[type=text], textarea, input[type=email] {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
  margin-top: 6px;
  margin-bottom: 16px;
  margin-right: 0px;
  margin-left: 0px;
  resize: vertical;
}
label{margin-right: 0px;
  margin-left: 0px;
  width: 100%;}

input[type=submit] {
  background-color: #1255a2;
  color: white;
  padding: 12px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

input[type=submit]:hover {
  background-color: #1872D9;
}

.container {
  box-sizing : border-box;
  border-radius:5px;
  background-color:#f2f2f2;
  padding:20px;
  width: 100%;
  max-width: 440px;
  margin:0 auto;
}




/*BACKGROUND animé*/



@keyframes move {
    100% {
        transform: translate3d(0, 0, 1px) rotate(360deg);
    }
}

.background {
    position: fixed;
    width: 100vw;
    height: 100vh;
    top: 0;
    left: 0;
    background: #000000;
    overflow: hidden;
}

.background span {
    width: 2vmin;
    height: 2vmin;
    border-radius: 2vmin;
    backface-visibility: hidden;
    position: absolute;
    animation: move;
    animation-duration: 49;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}


.background span:nth-child(0) {
    color: #929292;
    top: 5%;
    left: 46%;
    animation-duration: 9s;
    animation-delay: -7s;
    transform-origin: -3vw -22vh;
    box-shadow: 4vmin 0 0.6378774324628227vmin currentColor;
}
.background span:nth-child(1) {
    color: #929292;
    top: 68%;
    left: 81%;
    animation-duration: 11s;
    animation-delay: -5s;
    transform-origin: 11vw 4vh;
    box-shadow: 4vmin 0 1.413665962903926vmin currentColor;
}
.background span:nth-child(2) {
    color: #ffffff;
    top: 66%;
    left: 84%;
    animation-duration: 15s;
    animation-delay: -3s;
    transform-origin: -23vw -22vh;
    box-shadow: -4vmin 0 0.8328226490293943vmin currentColor;
}
.background span:nth-child(3) {
    color: yellow;
    top: 66%;
    left: 4%;
    animation-duration: 8s;
    animation-delay: -4s;
    transform-origin: 11vw 13vh;
    box-shadow: -4vmin 0 1.4492459977034025vmin currentColor;
}
.background span:nth-child(4) {
    color:  orange;
    top: 7%;
    left: 79%;
    animation-duration: 6s;
    animation-delay: -3s;
    transform-origin: 16vw -7vh;
    box-shadow: 4vmin 0 0.7112260646981355vmin currentColor;
}
.background span:nth-child(5) {
    color: #ffffff;
    top: 92%;
    left: 12%;
    animation-duration: 8s;
    animation-delay: -10s;
    transform-origin: 9vw 25vh;
    box-shadow: 4vmin 0 1.1232434137108098vmin currentColor;
}
.background span:nth-child(6) {
    color: yellow;
    top: 56%;
    left: 71%;
    animation-duration: 9s;
    animation-delay: -1s;
    transform-origin: -23vw 2vh;
    box-shadow: 4vmin 0 1.4498471098208485vmin currentColor;
}
.background span:nth-child(7) {
    color: #ffffff;
    top: 18%;
    left: 14%;
    animation-duration: 8s;
    animation-delay: -7s;
    transform-origin: 8vw 22vh;
    box-shadow: -4vmin 0 1.3464960893095124vmin currentColor;
}
.background span:nth-child(8) {
    color: #929292;
    top: 47%;
    left: 33%;
    animation-duration: 11s;
    animation-delay: -3s;
    transform-origin: -24vw 13vh;
    box-shadow: -4vmin 0 0.8168850601264483vmin currentColor;
}
.background span:nth-child(9) {
    color: #ffffff;
    top: 47%;
    left: 68%;
    animation-duration: 13s;
    animation-delay: -8s;
    transform-origin: -8vw 12vh;
    box-shadow: -4vmin 0 0.7282834145321986vmin currentColor;
}
.background span:nth-child(10) {
    color: yellow;
    top: 82%;
    left: 85%;
    animation-duration: 8s;
    animation-delay: -9s;
    transform-origin: 14vw -16vh;
    box-shadow: 4vmin 0 0.8051419218640135vmin currentColor;
}
.background span:nth-child(11) {
    color: orange;
    top: 87%;
    left: 98%;
    animation-duration: 12s;
    animation-delay: -2s;
    transform-origin: -21vw 5vh;
    box-shadow: 4vmin 0 1.1886718796494788vmin currentColor;
}
.background span:nth-child(12) {
    color: #ffffff;
    top: 97%;
    left: 5%;
    animation-duration: 6s;
    animation-delay: -6s;
    transform-origin: 3vw 6vh;
    box-shadow: 4vmin 0 0.7207822638177519vmin currentColor;
}
.background span:nth-child(13) {
    color: #ffffff;
    top: 38%;
    left: 20%;
    animation-duration: 7s;
    animation-delay: -10s;
    transform-origin: 3vw -6vh;
    box-shadow: 4vmin 0 1.2070683819160863vmin currentColor;
}
.background span:nth-child(14) {
    color: #ffffff;
    top: 13%;
    left: 39%;
    animation-duration: 13s;
    animation-delay: -9s;
    transform-origin: -20vw -8vh;
    box-shadow: -4vmin 0 1.341994414400148vmin currentColor;
}
.background span:nth-child(15) {
    color: #ffffff;
    top: 57%;
    left: 87%;
    animation-duration: 7s;
    animation-delay: -10s;
    transform-origin: 25vw -20vh;
    box-shadow: -4vmin 0 1.3315948855762536vmin currentColor;
}
.background span:nth-child(16) {
    color: #ffffff;
    top: 75%;
    left: 89%;
    animation-duration: 6s;
    animation-delay: -5s;
    transform-origin: -9vw 13vh;
    box-shadow: -4vmin 0 1.0304307824024175vmin currentColor;
}
.background span:nth-child(17) {
    color: #919191;
    top: 13%;
    left: 47%;
    animation-duration: 8s;
    animation-delay: -7s;
    transform-origin: -13vw -6vh;
    box-shadow: 4vmin 0 0.9697503203231974vmin currentColor;
}
.background span:nth-child(18) {
    color: #ffffff;
    top: 83%;
    left: 77%;
    animation-duration: 9s;
    animation-delay: -4s;
    transform-origin: 25vw -19vh;
    box-shadow: 4vmin 0 0.9299778710365195vmin currentColor;
}
.background span:nth-child(19) {
    color: orange;
    top: 59%;
    left: 6%;
    animation-duration: 7s;
    animation-delay: -9s;
    transform-origin: 24vw 2vh;
    box-shadow: 4vmin 0 1.4975781376730022vmin currentColor;
}
.background span:nth-child(20) {
    color: #ffffff;
    top: 58%;
    left: 76%;
    animation-duration: 8s;
    animation-delay: -5s;
    transform-origin: 6vw 15vh;
    box-shadow: 4vmin 0 1.0484797279291884vmin currentColor;
}
.background span:nth-child(21) {
    color: #929292;
    top: 3%;
    left: 63%;
    animation-duration: 11s;
    animation-delay: -9s;
    transform-origin: -6vw -3vh;
    box-shadow: -4vmin 0 1.4327310081668467vmin currentColor;
}
.background span:nth-child(22) {
    color: #929292;
    top: 81%;
    left: 65%;
    animation-duration: 15s;
    animation-delay: -5s;
    transform-origin: 19vw 0vh;
    box-shadow: -4vmin 0 0.6997909305491034vmin currentColor;
}
.background span:nth-child(23) {
    color: #ffffff;
    top: 30%;
    left: 2%;
    animation-duration: 11s;
    animation-delay: -7s;
    transform-origin: 13vw -14vh;
    box-shadow: -4vmin 0 0.6119439374264086vmin currentColor;
}
.background span:nth-child(24) {
    color: #ffffff;
    top: 24%;
    left: 54%;
    animation-duration: 15s;
    animation-delay: -8s;
    transform-origin: -16vw -21vh;
    box-shadow: -4vmin 0 0.7987445440277717vmin currentColor;
}
.background span:nth-child(25) {
    color: #919191;
    top: 74%;
    left: 43%;
    animation-duration: 12s;
    animation-delay: -2s;
    transform-origin: 16vw 13vh;
    box-shadow: -4vmin 0 1.1203721771094317vmin currentColor;
}
.background span:nth-child(26) {
    color: #ffffff;
    top: 88%;
    left: 10%;
    animation-duration: 6s;
    animation-delay: -3s;
    transform-origin: -24vw 4vh;
    box-shadow: 4vmin 0 1.4785721654092518vmin currentColor;
}
.background span:nth-child(27) {
    color: #ffffff;
    top: 2%;
    left: 36%;
    animation-duration: 15s;
    animation-delay: -1s;
    transform-origin: 5vw -21vh;
    box-shadow: 4vmin 0 0.6371183562924968vmin currentColor;
}





/* POPUP mentions légales */


button {
    padding: 10px;
    font-size: 16px;
}


.popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.popup-content {
    background-color: #313131;
    padding: 20px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border: 1px solid #ccc;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    color: white;
    border: solid white 2px;
    border-radius: 10px;
    box-shadow: 0 4px 30px rgba(0,0,0,0.1);
}

.close {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 20px;
    cursor: pointer;
}




/* Bouton retour accueil */


#scrollToTopBtn {
    display: none;
    position: fixed;
    bottom: 20px;
    left: 20px;
    background-color: rgb(85, 83, 228);
    color: #fff;
    border: none;
    border-radius: 5px;
    padding: 10px;
    font-size: 16px;
    cursor: pointer;
}

#scrollToTopBtn:hover {
    background-color: #0056b3;
}