/* ALL */
:root{
  --color-primary: #3586ff;
  --color-dark-grey: #3a3a3a;
  --color-grey: #9f9f9f;
  --color-light-grey: #cdcdcd;
  --color-red: #bb2222;
}

/* NAVBAR */
.nav-item {
    text-transform: uppercase;    
    font-weight: bold;
}
.navbar-brand {
    font-size: .8rem;
}
.navbar{
    top: 50px;
    position: fixed;
    width: 100%;
    z-index: 1001;    
}
li a .nav-link:active {
    color: white;    
}

/* TOPBAR */
#topbar{
  position: absolute;
    position: fixed;
    width: 100%;
    background-color: var(--color-dark-grey);
    height: 50px;
    color: var(--color-light-grey);
    text-align: center;
    padding: 10px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
    flex-basis: 150px;     
    z-index: 1001;
   
}
#phone{
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-light-grey); 
    padding-top: 3px;   
}
#email-ambassade{
  font-size: 0.9rem;
  font-weight: 500;  
    padding-top: 3px;    
}
#email-ambassade a{
  color: var(--color-light-grey);
    font-weight: 500;
    font-size: 0.9rem;  
    text-decoration: none;
}
#email-ambassade a:hover{
  color: white;
}
#address{
  color: var(--color-light-grey);
    font-weight: 500;
    font-size: 0.9rem;
    padding-top: 3px; 
}
#login a{
  color: var(--color-light-grey);
    font-weight: 500;
    font-size: 0.9rem;
    text-decoration: none;
}
#login a:hover{
  color: white;
}

/* HEADINGS */
h3{
    color: var(--color-dark-grey);
    font-weight: bold;
    text-align: center;
    margin-top: 115px;
    margin-bottom: 30px;
    text-decoration: overline var(--color-red);
}

/* ACTUALITÉ */
#actu1{ 
    color: var(--color-dark-grey);
    padding: 5px;
    margin: 50px 0 20px 0;

    height: 500px;    
}
#actu2{
  color: var(--color-dark-grey);
  padding: 5px;
  margin: 50px 0 20px 0;

  height: 500px;    
}
#renseignement{
  color: var(--color-dark-grey);
  padding: 5px;
  margin: 50px 0 20px 0;

  height: 500px;    
}

/* AMBASSADEUR */

div .card mb-3{
  margin-left: 20px;
}

/* SERVICES CONSULAIRE */
.card img{
  width: 100%;
  /* height: 100%; */
  filter: grayscale(100%);
  -webkit-filter: grayscale(100%);
}
.card img:hover{
  filter: grayscale(0%);
  -webkit-filter: grayscale(0%);
}
/* .card img:hover{
  filter: none;
  -webkit-filter: none;
} */
.card #img-info{
  width: 100%;
  height: 100%;
  filter: grayscale(100%);
  -webkit-filter: grayscale(100%);
}
.card #img-info:hover{
  filter: grayscale(0%);
  -webkit-filter: grayscale(0%);
}
#block1, #block2,
#block3, #block4{
  align-items: center;
}

/* ME LOSALISER */
#mapid{
  height: 50vh;
  width: 100%;
  border-radius: 10px;
  margin: 20px;
  min-width: 350px;
  /* box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.5); */
}
.map-container{
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  flex-direction: column;
}
.map1{
  width: 50%;
  height: 50%;
  margin: 20px;
}
.alert{
  margin: 20px;
}
#metrouver{
  width: 100%;
}

/* FOOTER */
footer p{    
    color: var(--color-light-grey);
    text-align: center;
    padding: 10px;    
    bottom: 0;
    width: 100%;
}

footer p:hover{
    color: white;
}

footer {
    position: relative;
    width: 100%;
    background: var(--color-dark-grey);
    min-height: 100px;
    padding: 20px 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color:  var(--color-light-grey);
    font-size: 14px;
  }
  
  footer .social_icon,
  footer .menu {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 10px 0;
  }
  
  footer .social_icon li,
  footer .menu li {
    list-style: none;
  }
  footer .social_icon li a {
    font-size: 2em;
    color: var(--color-light-grey);
    margin: 0 10px;
    display: inline-block;
    transition: 0.5s;
  }
  footer .social_icon li a:hover {
    transform: translateY(-15px);
    color: var(--color-primary);
  }
  
  footer .menu li a {
    font-size: 1.2em;
    color: var(--color-light-grey);
    margin: 0 10px;
    display: inline-block;
    transition: 0.5s;
    text-decoration: none;
    opacity: 0.75;
  }
  footer .menu li a:hover {
    opacity: 1;
    color: white
  }
  span:hover{
    color: white;
  }
  p a{
    color: var(--color-light-grey);
    text-decoration: none;
  }

  p a:hover{
    color: white;
    text-decoration: none;
  }
  #up {
    font-size: 24px;
    font-weight: bold;
    color: rgb(224, 10, 10);
    text-align: center;
  }

  /***************** SHOW-RESIDENT ************************/
  /*------------------------------------------------------*/
  #btn-imprimer{
	text-align: center;
  }
  @media print {
	#topbar, #btn-retour, #btn-imprimer, footer {
	      display:none;
      }
  }      
  #btn-retour{  
    text-align: center;  
  }
  #search-icon{
    cursor: pointer;
  }

  /********************************************************/

  /***************** RESIDENT-DETAILS ************************/
  /*------------------------------------------------------*/
  #visitor-container{  
    margin-left: 20px;      
  }

  /********************************************************/

  /***************** VISITOR-DETAILS ************************/
  /*------------------------------------------------------*/
  #resident-container{  
    margin-left: 20px;     
  }

  /********************************************************/

  /***************** EDIT-PLACE ************************/
  /*------------------------------------------------------*/
  #form-editdiv{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
  }
  #container-edit{
  align-items: center;
  }
  input[type="text"]{
    min-width: 250px;
    padding: 12px 20px;
    margin: 8px 0;
    box-sizing: border-box;
  }

   /***************** SHOW-RESIDENT ************************/
  /*------------------------------------------------------*/
  

  /********************************************************/

  /***************** SHOW-PLACE ************************/
  /*------------------------------------------------------*/
  .bloc-search{
    display: flex;
    justify-content: center;
  } 
  #search-placediv{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
  }

  /********************************************************/

  @media only screen and (max-width: 768px) {
    #topbar {
      flex-wrap: wrap;
      height: auto;
    }
    .navbar{
      top: 90px;
    }
    footer {
      padding: 20px 20px;
    }    
    footer .menu {
      flex-direction: column;
    }
    footer .social_icon {
      flex-wrap: wrap;
      padding-left: 3px;
    }
    footer .social_icon li a,
    footer .menu li a {
      margin: 10px 0;
      text-align: center;
    }
    #yaercopy{
      text-align: center;
    }
    #developpeur{
      text-align: center;
    }
  
    /* HEADINGS */
    h3{  
      margin-top: 155px;
      margin-bottom: 20px; 
       
    }
    /* h3 .actu{
      margin-top: 120px;   
    } */
    
  }

  @media only screen and (max-width: 400px) {
    #topbar {
      flex-wrap: wrap;
      height: auto;
    }
    .navbar{
      top: 100px;
    }
    #actu1{
      top: 200px;
    }
    /* HEADINGS */
    h3{ 
      margin-top: 215px;
      margin-bottom: 20px;
    }
    
    
  }

  @media only screen and (max-width: 300px) {
    #topbar {
      flex-wrap: wrap;
      height: auto;
    }
    .navbar{
      top: 150px;
    }
    #actu1{
      top: 280px;
    }
    /* HEADINGS */
    h3{ 
      margin-top: 275px; 
      margin-bottom: 20px;
    }
    /* h3 .actu{
      margin-top: 240px;
    } */
    
    
  }
