body{
  margin:0;
  font-family: "Inter", sans-serif;
  font-size: 16px;
}

/* Compensate browsers specificities */
button,
input,
select,
textarea {
  font-family: inherit;
  font-size: 100%;
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}
textarea {
  overflow: auto;
}

/* || GENERAL STYLES */

body {
  /* … */
}

h1,
h2,
h3,
h4 {
  /* … */
}

ul {
  /* … */
}

blockquote {
  /* … */
}

/* || SITEWIDE */

/* HEADER */
.nav-bar{
  position : fixed;
  top : 0;
  height : 56px;
  width: 100vw;
  background-color: white;
  display : flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #cdcdcd;
  z-index:20000;
}

.nav-logo{
  margin-left: 10vw;
  display: flex;
}

.nav-menu {
  margin-right: 10vw;
}

.nav-menu a{
  color: black;
    padding: 14px 16px;
    text-decoration: none;
}

.nav-bar .icon {
  display: none;
  margin-right: 5vw;
  padding: 14px 16px;
  color : black;
}

@media screen and (max-width: 800px) {
    .nav-bar .nav-menu {display: none;}
  .nav-bar a.icon {display: block;}

  .nav-bar.responsive .nav-menu {
      display:block;
      position: absolute;
      top : 56px;
      width: 100vw;
      background-color: white;
      border-bottom: 1px solid #cdcdcd;
  }

  .nav-bar.responsive .nav-menu a{
      display: block;
      text-align: right;
      margin-right : 5vw;
  }
}

/* === DROPDOWN MENU === */

/* Container du dropdown */
.dropdown {
  position: relative;
  display: inline-block;
}

/* Bouton "Tools" */
.dropbtn {
  color: black;
  padding: 14px 16px;
  text-decoration: none;
  cursor: pointer;
}

/* Contenu du dropdown (les liens) */
.dropdown-content {
  display: none;
  position: absolute;
  top: 100%; /* juste en dessous du bouton "Tools" */
  left: 0;
  background-color: white;
  min-width: 160px;
  box-shadow: 0px 8px 16px rgba(0,0,0,0.2);
  z-index: 1;
  flex-direction: column;
}

.dropdown-content a {
  color: black;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
}

.dropdown-content a:hover {
  background-color: #f1f1f1;
}

/* Hover en version desktop */
.dropdown:hover .dropdown-content {
  display: flex;
}

/* === RESPONSIVE: dropdown en version mobile === */
@media screen and (max-width: 800px) {
  .nav-bar.responsive .nav-menu .dropdown {
    display: block;
    text-align: right;
    margin-right: 5vw;
  }

  .nav-bar.responsive .nav-menu .dropbtn {
    display: block;
    margin-right: 0;
    padding: 14px 16px;
  }

  .nav-bar.responsive .nav-menu .dropdown-content {
    position: static;
    background-color: white;
    box-shadow: none;
    display: none;
  }

  .nav-bar.responsive .nav-menu .dropdown-content a {
    text-align: right;
    padding: 12px 5vw;
  }

  /* Sur mobile, on bloque le hover */
  .dropdown:hover .dropdown-content {
    display: none;
  }
}


/* FOOTER */
.footer{
  background-color: lightgrey;
  display: flex;
  justify-content: space-between;
  padding-left: 10vw;
  padding-right: 10vw;
}


/* || INDEX PAGE */

#about{
  scroll-margin-top: 56px; 
  margin:56px 10vw 0 10vw;
}

.sub-section{
  display:flex;
}

.sub-section div{
  flex:1;
}

#about-presentation{
  padding-right: 10px;
  margin : auto;
}

#about-img{
  margin: auto -10vw auto 0;
}

#about-process h2{
  margin-bottom:0;
}

#processline-vert{
  display:none;
}

#about-process ul{
  display: flex;
  list-style: none;
  padding: 0;
  margin-top:0;
}

#about-process ul li{
  padding : 0 5px;
  text-align: center;
  flex:1;
}

#quote_gen{
  position: relative;
  scroll-margin-top: 56px; 
  height: 70vh;
}

#map{
  height: 100%;
}

#map-info{
  z-index: 10000;
  position: absolute;
  top:0;
  width:100%;
  height: 100%;
  display: flex;
  cursor : pointer;
  background-color: rgba(192, 192, 192, 0.5);
}

#map-info p{
  font-size: 20px;
  font-weight: bold;
  text-shadow: 0 0 5px white;
  color : #C99E04;
  margin : auto;
  text-align: center;
}

#map-form{
  position:absolute;
  top : 20px;
  display: flex;
  width: 80vw;
  padding: 0 10vw;
  z-index: 10000;
  justify-content: space-between;
  align-items: flex-start;
}

.container-input{
  display: flex;
  align-items: flex-start;
}


#triangle{
 display : inline-block;
 margin : 10px 15px;
 height : 0;
 width : 0;
 border-top : 11px solid transparent;
 border-bottom : 11px solid transparent;
 border-left : 25px solid #002060;
}

#map-form input[type="submit"]{
  font-weight: bold;
  padding: 10px 30px;
  border-radius: 7px;
  background-color: #C99E04;
  border-color: #D9D9D9;
  border-width: 1px;
  justify-self: flex-end;
  cursor: pointer;
}

#services{
  scroll-margin-top: 56px; 
  margin-left: 10vw;
  margin-right: 10vw;
}

.subsection{
  display:flex;
}
 
.subsection div{
  width : 45%;
  margin: auto auto;
}

/* GEOCODE */
.container{
  max-width: 450px;
  margin: 150px auto;
}

.searchInput{
  background-color: white;
  width: 25vw;
  border-radius: 5px;
  position: relative;
  box-shadow: 0px 1px 5px 3px rgba(0,0,0,0.12);
}

.searchInput input{
  width: 100%;
  outline: none;
  border: none;
  border-radius: 5px;
  padding: 10px 8px 10px 40px;
  box-shadow: 0px 1px 5px rgba(0,0,0,0.1);
}

.searchInput.active input{
  border-radius: 5px 5px 0 0;
}

.searchInput .resultBox{
  padding: 0;
  opacity: 0;
  pointer-events: none;
  overflow-y: auto;
}

.searchInput.active .resultBox{
  padding: 10px 8px;
  opacity: 1;
  pointer-events: auto;
}

.resultBox li{
  list-style: none;
  padding: 8px 12px;
  display: none;
  width: 100%;
  cursor: default;
  border-radius: 3px;
}
.resultBox li span{
  margin-right: 5px;
}

.searchInput.active .resultBox li{
  display: block;
}
.resultBox li:hover{
  background: #efefef;
}

.searchInput .icon{
  position: absolute;
  left: 0px;
  top: 0px;
  padding: 5px 10px;
  font-size: 1.5em;
  text-align: center;
  cursor: pointer;
}

/* || RESPONSIVE */

@media screen and (max-width: 800px) {
  
  .sub-section{
    display:block;
  }

  #about-img{
    margin: auto -10vw;
  }

  #processline-hori{
    display: none;
  }

  #processline-vert{
    display: block;
    max-height: 700px;
  }

  .flex-mobile{
    display:flex;
  }

  #about-process ul{
    flex-direction: column;
    padding: revert;
    margin: revert;
  }

  #about-process ul li{
   text-align: left;
  }

  .subsection{
    display:block;
  }

  .subsection div{
    width : 100%;
  }

  #map-form{
    display: block;
  }

  .searchInput{
    width: auto;
    margin: 0 5px 5px 0;
  }

  #triangle{
    display: none;
  }

  .container-input{
    display: block;
  }

  #map-form input[type="submit"]{
    padding: 10px 15px;
  }

  .footer{
    display:none;
  }

}