/* The navigation menu */
.navbar {
  display: flex;
  background-color: rgba(19, 58, 77,0.9);
  width: 100%;
  position: relative;
  top: 0;
  left: 0;
  z-index: 1000;
  position: fixed;
  flex-direction: row;
  align-content: center;
  justify-content: space-around;
}
#logo{
  margin: 0.3%;
}
.logoNels{
  width: 3em;
  height: 3em;
}
a#subcmdNav{
  display: flex;
  align-items: center;
  padding: 1%;
}
#cmdNav{
  display: flex;
  align-items: center;
}

/* The subnavigation menu */
.subnav {
  float: left;
  overflow: hidden;
}

/* Subnav button */
.subnav .subnavbtn {
  font-size: 16px;
  border: none;
  outline: none;
  color: white;
  background-color: rgba(19, 58, 77,0.9);
  font-family: inherit;
  margin: 0;
  display: flex;
  align-content: center;
  height: 100%;
  align-items: center;
}

/* Style the subnav content - positioned absolute */
.subnav-content {
  display: none;
  position: absolute;
  top:auto;
  width: 1000;

  left: 0;
  background-color: rgba(19, 58, 77,0.9);
  width: 100%;
  z-index: 1;
  top: 50px;
  width: 200px;
  z-index: 1000;
  box-sizing: border-box;
}

/* Style the subnav links */
.subnav-content a {
  float: left;
  color: whitesmoke;
  text-decoration: none;
}
/* When you move the mouse over the subnav container, open the subnav content */
.subnav:hover .subnav-content {
  display: block;
  top:auto;
  width: 100%;
}
body{
  display: flex;
  margin: 0;
  position: absolute;
}

.body{
  background-color: rgb(19, 58, 77);
  background-position: center center;
  background-size: cover;
  display: flex;
  position: fixed;
  background-image: url(../imageComming/NelsAcceuill.jpeg);
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
}
h2{
    text-align: center;  
    color:whitesmoke;
    font-style: italic;
    margin-top: 7.92;
    margin-bottom: 0px;
    width: auto;
    height: auto;
}
a{
    color: whitesmoke;
    text-decoration: none;
}

.footer{
  position: fixed;
  width: 100%;
  background-color: rgb(19, 58, 77);
  bottom: 0;
}
.footer.h2{
  color:whitesmoke;
  bottom: 0;
  position: absolute;
  background: blue;
  width: 100%;
}
.formulaire{
  background-color: rgb(206,170,84);
  width: 90%;
  display: flex;
  flex-direction: column;
  align-items: center;
  border-radius: 15px;
  justify-content: space-between;
}
/* text du formulaire------------------------------------------------------------*/
.formulaire h1{
  color: rgb(19, 58, 77);
  font-style: italic;
  font-variant: small-caps;

}
.formulaire p2{
  color: rgb(19, 58, 77);
  text-align: center;
  padding: 5%;
}
.formulaire p3{
  text-align: center;
  margin: 5%;
  color: rgb(19, 58, 77);
}
select#dateResa{
  color: rgb(19, 58, 77);
  border: none;
  outline: none;
  border-bottom: 1px solid rgb(19, 58, 77);
  -webkit-border-radius: initial;
  -webkit-appearance: none;

}
.formulaire input#dateResa{
  color: rgb(19, 58, 77);
  border: none;
  outline: none;
  /* border-bottom: 1px solid rgb(19, 58, 77); */
  -webkit-border-radius: initial;
  -webkit-appearance: none;


}



.formulaire input#nom{
  border: none;
  outline: none;
  color: rgb(19, 58, 77);
  background-color: rgb(206,170,84);
  border-bottom: 1px solid rgb(19, 58, 77);
  -webkit-border-radius: initial;
  -webkit-appearance: none;
}

.formulaire input#numeroDeTelephone {
  border: none;
  outline: none;
  -webkit-border-radius: initial;
  -webkit-appearance: none;
  border-bottom: 1px solid rgb(19, 58, 77);
  color: rgb(19, 58, 77);
}
.formulaire button{
  border: none;
  outline: none;
  color: rgb(19, 58, 77); 
  border-bottom: 1px solid rgb(19, 58, 77);
  background-color:  rgb(206,170,84);
}
select#choixduService{
  border: none;
  outline: none;
  color: rgb(19, 58, 77);
  border-bottom: 1px solid rgb(19, 58, 77);
  -webkit-border-radius: initial;
  -webkit-appearance: none;
}
select#nbdePersons{
  border: none;
  outline: none;
  color: rgb(19, 58, 77);
  border-bottom: 1px solid rgb(19, 58, 77);
  -webkit-border-radius: initial;
  -webkit-appearance: none;
}
input, select, textarea,label{
  background-color: rgb(206,170,84); /* Couleur de fond par défaut */
  border:none;
  padding: 10px;
  font-size: 16px;
  outline: none;  
  color: rgb(19, 58, 77);
  border-bottom: 1px solid rgb(19, 58, 77);
}

label#labelResa{
  padding: 10px;
  font-family: Arial;
}
.dateAndLabel{
  display: contents;
}

/* Style lorsque le champ est en focus */
input:focus, select:focus, textarea:focus {
  background-color: rgb(206,170,84); /* Couleur de fond lorsqu'en focus */
  border:none;
  color: rgb(19, 58, 77);
}

/* Style lorsque le champ est valide/rempli */
input:valid, select:valid, textarea:valid {
  background-color:rgb(206,170,84); /* Couleur de fond lorsqu'il est valide/rempli */
  border:none;
  color: rgb(19, 58, 77);
}
input::placeholder, textarea::placeholder {
  color: rgb(19, 58, 77); /* Couleur du texte du placeholder */
  opacity: 1; /* Pour s'assurer que la couleur est appliquée correctement */
}

/* Style spécifique pour les champs préremplis par le navigateur */
input:-webkit-autofill, select:-webkit-autofill, textarea:-webkit-autofill {
  background-color: rgb(206,170,84) !important; /* Couleur de fond lorsqu'il est prérempli */
  color: rgb(206,170,84) !important; /* Couleur du texte lorsqu'il est prérempli */
  -webkit-box-shadow: 0 0 0px 1000pxrgb(206,170,84) inset; /* Nécessaire pour forcer le changement de couleur de fond */
  box-shadow: 0 0 0px 1000px rgb(206,170,84)inset; /* Nécessaire pour forcer le changement de couleur de fond */
  -webkit-text-fill-color:rgb(19, 58, 77)!important; /* Nécessaire pour forcer le changement de couleur du texte */
}
form{
  height: 30%;
  display: flex;
  margin-left: 5%;
  margin-right: 5%;
  margin-bottom: 0;
  background-color: rgb(206,170,84);
  flex-wrap: wrap;
  flex-direction: row;
  justify-content: space-between;
}

@media (max-width: 600px) {

  a#subcmdNav{
    display: flex;
    align-items: center;
    padding: 3%;
  }
}
@media  (min-width: 600px) {

    a#subcmdNav{
      display: flex;
      align-items: center;
      padding: 1%;
    }

  .formulaire{
  /* background-color: rgb(206, 170, 84); */
  width: auto;
  height: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  border-radius: 15px;
  justify-content: space-evenly;
  }
  .formulaire h3{
    color: rgb(19, 58, 77);
    font-size: xxx-large;
    margin-left: 2%;
    margin-right: 2%;
  }
  .formulaire p1{
    color: rgb(19, 58, 77);
    margin-left: 2%;
    margin-right: 2%;
    text-align: center;
    font-size: xx-large;
    padding-bottom: 3px;
    padding-top: 0px;
  }
  .formulaire p2{
    text-align: center;
    margin: 2%;
    color: rgb(19, 58, 77);
    font-size: x-large;
  }
  
  .formulaire input#date{
    color: rgb(19, 58, 77);
    border: none;
    outline: none;
    background-color:  rgba(206 170 84 / 73%);
    border-bottom: 1px solid rgb(19, 58, 77)grey;
  
  }
  .formulaire input#nom{
    border: none;
    outline: none;
    color: rgb(19, 58, 77);
    background-color: rgba(206 170 84 / 73%);
    border-bottom: 1px solid rgb(19, 58, 77);
  }
  
  .formulaire input#numeroDeTelephone{
    border: none;
    outline: none;
    background-color: rgba(206 170 84 / 73%);
    border-bottom: 1px solid rgb(19, 58, 77);
  
  }
  .formulaire button{
    border: none;
    outline: none;
    color: rgb(19, 58, 77);
    background-color: rgba(206 170 84 / 73%);
    border-bottom: 1px solid rgb(19, 58, 77);
    /* width: 31%; */
    font-size: 150%;
  }
  input.dateResa{
    border: none;
    outline: none;
    background-color:  rgba(206 170 84 / 73%);
    border-bottom: 1px solid rgb(19, 58, 77);
  }
  select#choixService{
    border: none;
    outline: none;
    color: rgb(19, 58, 77);
    background-color: rgba(206 170 84 / 73%);
    border-bottom: 1px solid rgb(19, 58, 77);
  }
  .dateAndLabel{
    display: contents;
  }
  form{
    width: 50%;
    height: 45%;
    display: flex;
    margin-bottom: 0;
    background-color: rgba(206 170 84 / 73%);
    align-items: center;
    flex-direction: column;
    justify-content: space-between;
}
}
.modalContainer{
  display: flex;
  flex-direction: column;
  align-items: center;
}
#modal {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 20px;
  background-color: #fff;
  border: 1px solid rgba(206 170 84 / 73%);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  width: 60%;
}

/* Styles pour la fenêtre modale lorsque l'ancrage est actif */
#modal:target {
  display: flex;
  background-color:  rgb(19, 58, 77);
  color: rgba(206 170 84 / 73%);
  border-radius: 10px;
  padding: 1.5em 2em;
  width: 60%;
  font-size: x-large;
  text-align: center;
}

/* Styles pour l'ombre de fond lorsque la fenêtre modale est ouverte */
body:target::before {
  content: '';
  display: block;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 3);
  
}

.modal_close {
position: absolute;
top: 10px;
right: 10px;
color: rgba(206 170 84 / 73%);
text-decoration: none;
font-size: x-large;
}
