/* Style CSS de Home Risque basé sur Home Info */


/* Base du site */

body,html{
    font-family: "Lato", sans-serif;
    width: 100vw;
    display: flex;
    flex-direction: column;
    height: 100%;
    margin: 0; padding: 0;
  

}

body {
	display : table;
	width: 100%;
}

/* Header */

  header{
    display: flex;
    flex-direction: row;
    margin-top: 5vh;
    justify-content: space-around;
    align-items: center;
    background-color: white;
  }

/* Sous partie du Header */

  header nav{
    justify-content: space-between;

  }
  nav li, nav a {
    display: inline-block;
    text-align: right;
    margin: 1vh;
    text-decoration: none;
    font-weight: bold;
    color: white;
    transition: all 0.5s ease-out;
    }
    header img{
      justify-content:flex-start;
      align-items: center;
      margin: 2vh;
      min-width: 7vw;
  }

  header nav .screenMaxNav{
    flex:1;
    justify-content: center;
    align-items: center;
    width: 100vw;
    height: 15vh;
    background-color: white;
    z-index: 2;

  }
  header a{
    padding-left: 2vw;
    text-decoration: none;
    color: black;
    transition: ease-in-out 0.5s;

  }
  header h3{
    padding-left: 4vh;

  }
  header li{
    padding-left: 4vh;
    list-style: none;
  }

  header a:hover{
    text-decoration:none;
    color:rgb(61, 122, 123);
  
  }
  ul{
    list-style: none;
  }


/* Textes */
  h1{
    text-align: center;
    padding: 2em;
    font-family: lato;
    color:#212121;
    font-weight: 1000;
  }
  /*  */

  .progress{
    width: 70vw;
    }

/* Menu Burger */
  .boutonen{
    top: 0;
    left: 0;
    height: 8vh;
    width: 6vw;
    border-radius: 0.5vw;
    border:none;
    background: #2200cf;
    font-size: 1.2em;
    color:#ffffff;
    opacity: 80%;
    transition: all 0.5s ease-in-out;
  }
  .boutonen:hover {
    background-color: #2a00fec8;
  }
  .boutonpe{
    top: 0;
    left: 0;
    height: 6vh;
    width: 4vw;
    border-radius: 0.5vw;
    font-size: 0.8em;
  }
  .sidenav {
    height: 100%;
    width: 30vh;
    position: fixed;
    z-index: 2;
    top: 0;
    right: -250%;
    background-color: #ff904b;
    padding-top: 5vh;
    transition: right 0.7s ease;
  
  }
  
   .sidenav a {
    padding: 2vh 2vh 2vh 4vh;
    text-decoration: none;
    font-size: 1.5em;
    color: #ffffff;
    margin:2vh;
    display: block;
    transition: 0.3s;
    border: 100px;
  
  }
  .sidenav a:hover {
    color: wheat;
  }
   .sidenav ul {
    list-style-type: none;
    padding: 0;
    margin-top: 9vh;
  }
    .sidenav.active {
    right: 0;
  }
   .sidenav .close {
    position: absolute;
    top: 0;
    border-radius: 23%;
    right: 3vh;
    font-size: 2em;
    margin-bottom: 4vh;
    color: white;
  }
   .burger-icon span {
    display: block;
    width: 4vh;
    height: 0.5vh;
    background-color: #ff6200;
    margin-top:0.7vh;
    border-radius: 25vw;
  } 
   .burger .a :hover {
    background-color: white;
    transition:ease-in 0.2s;
  } 

  /* Autocomplétion */
  .address-feedback{
    z-index: 1000;
    }
  /* Boutons */
  button
    {
      border-radius: 10%;
      width: 20vw;
      height: 7vh;
      border: 0;
      background-color: white;
      color: #fff;
    }
    .submit{
      color: white;
      padding: 0.5vh;
      border-radius: 3vw;
    }
    .btn-primary a{
      color: white;
    }
    .btn-primary,.submit {
      background-color: rgb(237, 108, 45);
      border: 0;
      transition: ease-in-out 0.5s;
    }
    .btn-primary:hover,.submit:hover{
      background-color: rgb(103, 201, 202);
    }
      

/* Les Home Risques + Rectangles */
  /* Conteneur */
  .cont{     
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  /* texte */
  .home{
    color: #ff6200;
  } 
  /* Rectangle */
  .rectangle{
    display: block;
     width: 80%;
     text-align: center;
     padding: 2vh;
     border-radius: 20px;
     box-shadow: 0.5em 1em  1em rgb(165, 165, 165);
     margin-top: 20vh;
     background-color: whitesmoke;
     margin: 2vh;
  }

/* Taille Image */
  img{
    width:auto;
    height: 7vh;
  }

/* Footer */
  footer{
    bottom: 0;
    width: 100vw;
    display : table-row;

  }
  /* Sous Partie Footer */
    .footer-col h4{
      margin-bottom: 2vh;
      font-size: 1.2em;
      color: #ffffff;
      text-transform: capitalize;
    }

    .footer-col ul  a {
      font-size: 1em;
      text-transform: capitalize;
      color: #ffffff;
      text-decoration: none;
      font-weight: 300;
      display: inline-block;
      display:flex;
      align-items: center;
      transition: all 0.3s ease;
    }
    
    .footer-col li a:hover{
      color: #d2d2d2;
      padding-left: 1em;
    }

    /* Degrade */
    
    .degrade-horizontal {
      width: 100vw;
      display: flex;
      flex-direction: column;
      background: linear-gradient(to right,rgb(61,122,123), rgb(103,201,203));
      border-top-left-radius: 10vw;
      border-top-right-radius: 10vw;
      padding: 5vw;
      padding-top: 4vh;
      padding-bottom: 4vh;
      margin-top: 10vh;
    }

    .degrade-horizontal .logo {
      justify-content: center;

      grid-template-columns: repeat(3, 1fr);
      grid-row: 2;
      margin-top: 5vh;
      align-items: center;
      border-radius: 30vw;
      padding: 1vh;
      background-color: white;
    }


    .degrade-horizontal .logo .logo_lien{
      height: 5vw;
    }

    /* Copyright */
    .Copyright{
        color:#f3f3f3; 
        font-size: 0.8em;
        text-align: center;
        grid-row: 3;
        margin-top: 2vh;
    }


    
        
/* Pages spécifiques */

/* Index.html */
 
 .index_text{
  flex-direction: column;
  text-align: justify;
  margin: 7vh;
  margin-top: 5vh;
 }
 .index_text .btn-primary{
  margin-top: 4vh;
 }

/* Index.php */

.container_php{
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* Maps */
#mapid { 
  display: flex;
  width: 100vw; 
  height: 30vh;
  z-index: 1; 
  margin-top: 4vh;
  margin-bottom: 4vh;
}

.reloadErreur{
  display: none;
}
/* popup */
.popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 9999;
  
}
.popup-content {
  background-color: white;
  width: 50vw;
  padding: 7vh;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 2vh;
  text-align: center;
}

.popup .popup-content img {
  width: 100%;
  height: 50%;
} 


/* Card Info */
.card{
  width: 70vw;
  margin: 2vh;
  text-align: center;
}
.card h5{
  font-size: 1rem;  
    }
.card .Libelle_risque{
margin-top: 4vh;      }

.card .Rad_note_2{
font-size: 2rem;
color: rgb(246, 162, 54);
}
.card .Rad_note_1{
font-size: 2rem;
color: rgb(135, 239, 132);
}
.card .Rad_note_3{
font-size: 2rem;
color: rgb(250, 70, 70);
}
   

/* Types.html + inforamtions.html */
.type_right{
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  text-align: justify;
  margin-top: 2vh;

  padding-left: 3vw;
  padding-right: 3vw;
}
.type_right img {
  width: 30vw;
  height: auto;
}
.type_right .logo_api img {
  height: 15vw;
  height: auto;
  margin-right: 4vw;

}
.type_left .logo_api img {
  width: 20vw;
  height: auto;
  margin-left: 4vw;

}
.type_left{
  display: flex;
  flex-direction: row-reverse;
  justify-content: center;
  align-items: center;
  text-align: justify;
  margin-top: 2vh;
  padding-left: 3vw;
  padding-right: 3vw;
}
.type_left img {
  width: 20vw;
  height: auto;
}
.text_type li{
  margin-top: 2vw;
  list-style:circle;
}

/* 404.html */
.page_404{
  margin-top: 4vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.page_404 img{
  width: 25vw;
  height: auto;
}

/* contact.php */
.form_contact{
  margin-top: 4vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.form_contact form input{
 width: 60vw;
}
/* mentions_legales.html */
.mentions_legales{
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: justify;

  margin: 4vh;
  padding: 3vw;
}
.mentions_legales img{
width: 30vw;
height: auto;
}

/* Chiffre bdd inondations.php */
.chiffre_risque{
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: flex-start;
  text-align: center;
  margin-bottom: 5vh;
  margin: 5vh;
  padding: 6vh;
}
.chiffre_risque  td{
  border: 2px solid #ff6200;
  border-radius: 30vw;
  padding: 2vw;
}
.chiffre_risque  img{
width: 30vw;
height: auto;
margin-right: 5vw;

}
.chiffre_risque  h4{
margin: 4vh;
}
.chiffre_risque  .btn-primary{
margin: 4vh;
}


/* Login Mairie  */

.forms_log{
  display: flex;
  width: 30vw;
  flex-direction: column;
  justify-content: center;
  align-content: center;
  margin: 4vh;
}

/* connexion_mairie.php */
.form_connexion{
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin: 4vh;
}

/* Photo */

#jeu_cont {
  width: 100vw;
  height: 100vh;
  display: none;
  justify-content: center;
  align-items: center;
}

#c_3d {
  width: 80%; /* Ajustez selon vos besoins */
  height: 80%; /* Ajustez selon vos besoins */
  background-color: #f0f0f0;
  position: relative;
  display: block;
}



#zoom-ratio {
  padding: 5px 10px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid #ccc;
  font-family: Arial, sans-serif;
  margin-bottom: 10px;
}
#BPhoto {
  margin-bottom: 10px;
}

/* Media screen */

@media (max-width: 1085px) {
  header{
      justify-content: space-around;
  }
 
   nav, .degrade-horizontal_ordi{
  display: none;
 }
 .degrade-horizontal_tel .logo_tel{
  display:flex ;
  flex-direction: column;
  justify-content: center;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
  border-radius: 4vw;
  margin-top: 4vh;
  padding: 1vh;
  background-color: white;
 }
 .logo_lien{
  margin: 2vh;
 }
 .type_right{
  display:flex ;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 4vh;
 }
 .type_left{
  display:flex ;
  flex-direction: column;
  justify-content: center;
  align-items: center; 
  padding: 4vh;

}
.type_left img {
  width: 70vw;
  height: auto;
}
.type_right img {
  width: 70vw;
  height: auto;
}
.type_right .logo_api img {
  height: 15vw;
  height: auto;
  margin-bottom: 4vh;

}
.type_left .logo_api img {
  width: 40vw;
  height: auto;
  margin-bottom: 4vh;

}
.chiffre_risque{
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 0;
}
.chiffre_risque img{
  width: 40vw;
}

  
}  

@media (min-width: 1085px) {
header{
  justify-content: space-around;
}
 .burger-icon, .degrade-horizontal_tel{
  display: none;
 }
 header img{
  justify-content:flex-start;
  align-items: center;
  margin: 2vh;
  width: 7vw;
height: auto;
}

  
}  

