* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html{
  scroll-behavior: smooth;
}

/**********************LE HEADER**********************/
.section_header{
  width: 100%;
  margin: auto;
  height: 70px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  position: fixed;
  z-index: 100;
  background-color: white;
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.3);
}
.logo{
  font-family: 'Pacifico', cursive;
  font-size: 35px;
  color: black;
}
#btn_booking a{
  text-decoration: none;
  background-color: #d4484e;
  color: white;
  font-family: 'Montserrat', sans-serif;
  padding: 15px;
  border-radius: 10px;
}

/**********************LE SLIDER**********************/
#main{
  position: relative;
  top: 70px;
}
#section_slider{
  width: 85%;
  height: 550px;
  margin: auto;
  position: relative;
}

.slides{
  position: absolute;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
}
.visible{ /*pour créer le slider automatique*/
  opacity: 1;
}
.diapo1{
    background-image: url("images/marseille.jpg");
}
.diapo1 p{ /*le texte de la diapo 1*/
  width: 73%;
  position: absolute;
  right: 120px;
  bottom: 100px;
  color: white;
  font-family: Merienda, sans-serif;
  font-size: 60px;
  font-weight: bold;
  text-align: right;
  line-height: 1.5em;
}
.diapo2{
  background-image: url("images/booking2.jpg");
}
.diapo3{
  background-image: url("images/velo2.jpg");
}
.diapo4{
  background-image: url("images/touristes2.jpg");
}
.text{ /*le texte des diapos 2, 3 et 4*/
  width: 37%;
  position: absolute;
  left: 50%;
  bottom: 20%;
  font-family: Montserrat, sans-serif;
  font-size: 3em;
  text-align: center;
  background-color: rgba(255, 255, 255, 0.5);
}

.slides span{ /*les chiffres 1, 2 et 3 du slider*/
  background-color: #d4484e;
  color: white;
  font-size: 0.5em;
  border-radius: 100%;
  padding: 2% 5%;
}

.fas{ /*tous les boutons de lecture*/
  cursor: pointer;
  font-size: 4em;
  color: #c3b7af;
  z-index: 10;
}
#btn_previous{
  position: absolute;
  top: 50%;
  left: 10px;
  transform: translateY(-50%);
}
#btn_next{
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
}
.btn_p{ /*positionnement des boutons pause et play*/
  display: flex;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 10px;
}
#btn_play{
  opacity: 0.6;
}

/**********************LA RESERVATION**********************/
#section_booking{
  margin-top: 50px;
  width: 100%;
  height: 500px;
}
.wrap_booking{
  width: 85%;
  height: 100%;
  margin: auto;
  display: flex;
  border: 1px solid lightgrey;
}
#map{
  width: 50%;
  height: 100%;
  z-index: 10;
}

#formulaire{
  width: 50%;
  height: 100%;
  position: relative;
  font-family: Montserrat, sans-serif;
  font-size: 0.9em;
}
#station, #info_user{
  width: 100%;
  height: 50%;
  padding: 2%;
  position: relative;
}
#title{
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 5;
  background-color: white;
}
#title p{
  position: absolute;
  z-index: 2;
  top: 43%;
  left: 50%;
  transform: translateX(-50%) translateY(-22%);
  font-size: 2.2em;
  text-align: center;
}
#title .bubbles{ /*pour créer l'animation avec les bulles*/
  position: absolute;
  z-index: 1;
  width: 100%;
  height: 100%;
  background-color: #d8c7bc;
  display: flex;
  overflow: hidden;
}
#title .bubbles li{
  list-style: none;
  position: absolute;
  bottom: -8em;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 100%;
  animation: animate 25s linear infinite;
}
#title .bubbles li:nth-child(1){
  left: 1.3em;
  width: 6em;
  height: 6em;
  animation-delay: 7s;
  animation-duration: 18s;
}
#title .bubbles li:nth-child(2) {
  left: 25%;
  width: 1em;
  height: 1em;
  animation-duration: 10s;
}
#title .bubbles li:nth-child(3) {
  left: 35%;
  width: 2em;
  height: 2em;
  animation-delay: 1s;
  animation-duration: 12s;
}
#title .bubbles li:nth-child(4) {
  left: 50%;
  width: 5em;
  height: 5em;
  animation-delay: 5s;
  animation-duration: 15s;
}
#title .bubbles li:nth-child(5) {
  left: 70%;
  width: 2.5em;
  height: 2.5em;
  animation-delay: 3s;
  animation-duration: 13s;
}
#title .bubbles li:nth-child(6) {
  right: 1em;
  width: 8em;
  height: 8em;
}
@keyframes animate {
  from{
    transform: translateY(0);
    opacity: 1;
  }
  to{
    transform: translateY(-590px);
    opacity: 0.1;
  }}


#station_name, #user {
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
  padding: 2%;
  text-align: center;
  font-weight: bold;
  background: linear-gradient(20deg, #dd9c76, #b42a30);
  color: white;
}

#station_status, #station_address, #station_bikes {
  display: flex;
  margin: 2.5% 2%;
}
#station_status, #prenom {
  margin-top: 50px;
}

.first_elt {
  width: 20%;
  text-align: right;
  margin-right: 5%;
}
.second_elt{
  width: 75%;
}

form { /*n'apparaitra qu'au clic sur une station*/ 
  display: none;
}

form input[type="text"] {
  width: 70%;
  margin: 1% 15%;
  border-radius: 100rem;
  padding: .5rem 1.5rem;
  border: 1px solid darkgrey;
}
form input[type="text"]:focus{
  border: 2px solid #dd9c76;
}
 #send, #return, #clear, #validate{
   border-radius: 10px;
   color: white;
   font-size: 1em;
   font-family: Montserrat, sans-serif;
   cursor: pointer;
 }
 #send{
   position: relative;
   bottom: -10%;
   left: 50%;
   transform: translateX(-50%);
 }
 #return, #clear{
   padding: 7px;
   background-color: #e4824a;
 }
 #send, #validate{
   padding: 7px 20px;
   background-color: #d4484e;
 }
 #buttons{
   position: relative;
   left: 50%;
   transform: translateX(-50%);
   text-align: center;
 }

#info_user {
  background-color: white;
}
#info_names {
  z-index: 2;
}
#signature{
  z-index: 1;
}
#signature, #info_names {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: white;
}
#signature p{
  padding: 0 1em;
  font-weight: bold;
}
 canvas {
   cursor: crosshair;
   width: 90%;
   height: 50%;
   margin: 5%;
   text-align: center;
   border: 1px solid darkgrey;
 }

/***********************CONFIRMATION ET TIMER************************/
#section_confirmation{
  display: none;
  width: 85%;
  margin: auto;
  margin-bottom: 50px;
  text-align: center;
  font-family: Montserrat, sans-serif;
  background-color: #d4484e;
  color: floralwhite;
  padding: 2%;
  position: relative;
}
#timer{
  padding: 1%;
  font-weight: bold;
  font-size: 2em;
}
#section_confirmation span{
  padding: 0 5px;
  border-radius: 10px;
  background-color: #ef777c;
  color: floralwhite;
  line-height: 25px;
}
#close{
  position: absolute;
  right: 10px;
  top: 5px;
}
#section_confirmation button {
  padding: 5px;
  margin-top: 5px;
  border-radius: 10px;
  background-color: #b42a30;
  color: white;
  font-size: 1em;
  font-family: Montserrat, sans-serif;
  cursor: pointer;
  }

 /***********************LE FOOTER************************/
.section_footer{
  position: relative;
  top: 70px;
  margin-top: 10px;
  padding: 10px;
  display: flex;
  justify-content: space-between;
  box-shadow: 0px 0px 20px 0px rgba(0, 0, 0, 0.3);
  background-color: white;/*#d8a282;*/
  color: #777;
  font-family: Montserrat, sans-serif;
}
.section_footer a{
  margin-left: 45px;
  text-decoration: none;
  color: #777;
}


/*==========================PAGE===========================================*/
/*====================MENTIONS LEGALES=====================================*/
#mentions{
  width: 85%;
  margin: auto;
  position: relative;
  top: 70px;
  font-family: Montserrat, sans-serif;
  text-align: justify;
}
#mentions h2, #mentions h3{
  padding-top: 10px;
}


 /*==========================MEDIA QUERIES==================================*/
 /*=========================================================================*/

@media screen and (max-width: 650px) {
  .text{
    font-size: 2.8em;
  }
  .fas{
    font-size: 3em;
  }

  #section_booking{
    height: auto;
  }
  .wrap_booking{
    display: initial;
  }

  #map, #formulaire {
    width: 85%;
    margin: auto;
    height: 420px;
  }
  #map{
    height: 340px;
  }

  #formulaire{
    border: 1px solid #eee;
  }

  canvas {
    margin: 2% 5%;
  }
 }

@media screen and (max-width: 450px) {
  .section_header img {
    display: none;
  }

  #section_slider{
    height: 450px;
  }
  .diapo1 p{
    bottom: 30%;
    right: 50%;
    transform: translateX(50%);
    text-align: center;
    font-size: 10vw;
  }
  .text{
    transform: translateX(-50%);
    width: 56%;
    font-size: 10vw;
    top: 7%;
    bottom: initial;
  }
  #station_address .second_elt{
    font-size: 0.9em;
  }
}
