h1 {
  color: #fff;
  text-align: center;
  margin-bottom: 5vh;
}

.titre {
  margin-top: 10vh;
}

/* CSS pour l'affichage du prix */ 
.modal-window {
    position: relative;
    background-color: rgba(255, 255, 255, 0.25);
    top: 0;
    bottom: 0;
    right: 0;
    left: 0;
    z-index: 999;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s;
    margin-top: 10%;
}

.modal-window p {
    color: #f4491e;
    font-size: 24px;
    font-weight: bold;;
}


.modal-window:target {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

.modal-window > div {
    width: 55%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 2em;
    background: #ead860;
}

.modal-window header {
    font-weight: bold;
}

.modal-window h1 {
    font-size: 160%;
    margin: 0 0 15px;
    text-align: left;
    color: #01205d;
    margin-top: -15px;
}

.modal-close {
    padding-right: 5%;
    padding-top: 1%;
    color: #01205d;
    line-height: 50px;
    font-size: 90%;
    position: absolute;
    right: 0;
    text-align: center;
    top: 0;
    width: 70px;
    text-decoration: none;
}

.modal-close:hover {
    color: rgb(255, 255, 255);
}

a {
    color: inherit;
    text-decoration: none;
}

.modal-window > div {
    border-radius: 1rem;
}

.modal-window div:not(:last-of-type) {
    margin-bottom: 15px;
}

small {
    color: lightgray;
}

/* Fin de l'affichage du prix */ 



.container_devis_instantane {
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 5%;
  padding-bottom: 2%;
  padding-top: 2%;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 55%;
  height: auto;
  background-color: #fff;
  border-radius: 1vw;
}


.container_devis_instantane h1 {
  color: #1b1c22;
  font-size: 20px;
}

.container_devis_instantane p {
  width: 80%;
  font-size: 15px;
  margin-top: -25px;
}



.container {
  margin-left: auto;
  margin-right: auto;
  padding-bottom: 2%;
  padding-top: 2%;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 55%;
  height: auto;
  background-color: #fff;
  border-radius: 1vw;
}

.gras {
    color: red;
    font-weight: bold;
    text-decoration: underline;
}



/* Formulaire */

.form {
  display: flex;
  flex-direction: column;
}

.form label {
  padding-left: 15px;
  padding-right: 15px;
}


.form input, textarea {
  border: 2.5px solid #01205d;
  margin-bottom: 20px;
  border-radius: 1vh;
  padding-left: 15px;
  padding-right: 15px;
  -webkit-transition: 0.5s;
  outline: none;
  width: 65%;
  margin-left: auto;
  margin-right: auto;
}

.form input:hover, textarea:hover {
  border: 2.5px solid #ead860;
}

.form input:focus {
  border: 2.5px solid #ead860;
}

.form input {
  height: 35px;
}

.form textarea {
  padding-top: 10px;
}

.form label {
  color: #1b1c22;
  width: 65%;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 5px;
  margin-top: 10px;
}

/* Fin du formulaire */


/* Checkbox */

.checkbox {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  margin-top: 20px;
  margin-bottom: 20px;
}

.checkbox input[type="checkbox"] {
  margin-left: -120px;
  height: 20px;
}

.checkbox label {
color: #1b1c22;
margin-left: -400px;
margin-top: 5px;
}


/* Fin checkbox */





.btn {
  cursor: pointer;
  display: inline-block;
  width: 100%;
  background: #01205d;
  color: #fff;
  padding: 7px;
  padding-bottom: 10px;
  font-family: inherit;
  font-size: 16px;
  border: 0;
  border-radius: 5px;
}

.btn:focus {
  outline: 0;
}

.btn:active {
  transform: scale(0.98);
}

.btn:hover {
  background: #ead860;
  color: #01205d;
  font-weight: bold;;
}




.fermer {
    margin-right: auto;
    margin-left: 30px;
}



/* Responsive */


@media only screen and (min-width: 768px) and (max-width: 1000px) {
  .container_devis_instantane p {
    margin-top: 15px;
  }
}


@media only screen and (max-width: 767px) {
    .container_devis_instantane {
      width: 100%;
      height: auto;
    }

    .fermer {
      margin-left: 10px;
    }

    .container {
      width: 100%;
    }

    /* Container du formulaire */ 
    .container input, 
    .container label {
      width: 80%;
    }

    /* Checkbox */ 

    .checkbox input[type="checkbox"] {
      margin-left: -110px;
      height: 20px;
    }

    .checkbox label {
    color: #1b1c22;
    margin-left: -180px;
    margin-top: 5px;
    }

    /* Fin checkbox */



    /* fenêtre pour le prix */ 
    .modal-window {
      margin-top: 20%;
      width: 120vw;
  }

}

@media only screen and (max-width: 450px) {
  .container_devis_instantane p {
    margin-top: 15px;
  }

  /* Checkbox */ 

  .checkbox input[type="checkbox"] {
    margin-left: -90px;
    height: 20px;
  }

  .checkbox label {
  color: #1b1c22;
  margin-left: -150px;
  margin-top: 5px;
  }

  /* Fin checkbox */


  /* fenêtre pour le prix */ 
  .modal-window h1{
    margin-top: 8px;
    font-size: 120%;
  }
}


@media only screen and (max-width: 380px) {
  .modal-window {
    margin-top: 30%;
  }
}



