*, ::before, ::after{
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body{
    font-family: Arial, Helvetica, sans-serif;
    background: linear-gradient(rgb(168, 254, 255), rgb(255, 255, 255));
    background-size: cover;
    background-repeat: no-repeat;
    height: 220vh;
}

.container-grille{
  height: 12vh;
  width: 100%;
  display: grid;
  grid-template-columns: 100px 1fr 380px;
  background-color: #011439;
}

.tab2{
  height: 20vh;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.tab3{
  height: 30vh;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.logo-site{
display: flex;
justify-content: center;
align-items: center;
display: grid;
grid-column: 2;
}

.logo{
  width: 70px;
}

.sidenav {
  height: 100%;
  width: 250px;
  position: fixed;
  z-index: 50;
  top: 0;
  left: -250px;
  background-color: rgb(214, 214, 214);
  padding-top: 60px;
  transition: left 0.5s ease;
}

.sidenav a {
  padding: 8px 8px 8px 32px;
  text-decoration: none;
  font-size: 18px;
  color: black;
  display: block;
  transition: 0.3s;
}

.sidenav a:hover {
  color: red;
}

.sidenav ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

/* Active class */
.sidenav.active {
  left: 0;
}

/* Close btn */
.sidenav .close {
  position: absolute;
  top: 0;
  right: 25px;
  font-size: 36px;
}

/* Icône burger */
.burger-icon span {
  display: block;
  width: 35px;
  height: 3px;
  background-color: white;
  border-radius: 10px;
  margin: 6px;
}

.burger-icon{
  display: block;
  position: relative;
  z-index: 30;
}

.elections{
  width: 110px;
  height: 40px;
  background-color: #f87171;
  color: white;
  font-size: x-large;
  border: none;
  border-radius: 10px;
}

.position-menu{
display: flex;
justify-content: center;
align-items: center;
height: 12vh;
}

.rechercher{
grid-column: 3;
display: flex;
justify-content: center;
align-items: center;
width: 380px;
}

#search{
  display: block;
  border-radius: 50px;
  border: 1px solid black;
  border: none;
  width: 300px;
  height: 40px;
  padding: 10px;
}

#texte-page{
  color: #011439;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 10vh;
  text-align: center;
}

.tab3{
    display: grid;
    height: 66vh;
    width: 100%;
    grid-template-columns: repeat(1, 1fr);
}

.tab4{
    display: grid;
    height: 75vh;
    width: 100%;
    grid-template-columns: repeat(1, 1fr);
    background-color: white;
}

#contact{
    width: 100vh;
}

.position-contact{
    display: flex;
    align-items: center;
    justify-content: center;
}

.titre-formulaire{
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 10vh;
}

form {
    height: 75vh;
    margin: 0 auto;
}

#sujet, #nom, #email {
    height: 5vh;
    display: flex;
    justify-content: center;
    vertical-align: center;
    border: 1px solid black;
    border-radius: 2px;
}

#message{
    width: 80vh;
    height: 15vh;
    border: 1px solid black;
    border-radius: 2px;
}

.submit{
    color: white;
    background-color: #011439;
    border: none;
    font-size: large;
    width: 100px;
    height: 40px;
    border-radius: 10px;
    margin: 8px;
}

.position-button{
    display: flex;
    justify-content: center;
    vertical-align: center;
}

.tab6{
    height: 40vh;
    width: 100%;
    grid-template-columns: repeat(5, 1fr);
    display: grid;
    align-items: center;
    justify-content: center;
    border: 1px solid black;
    background-color: #011439;
    position:absolute;
    bottom: -130vh;
  }
  
  .position-douanes{
    justify-content: center;
    align-items: center;
    display: flex;
  }
  
  #info-snd{
    font-family: Arial, Helvetica, sans-serif;
    color: white;
    font-size: large;
  }
  
  #info{
    font-family: Arial, Helvetica, sans-serif;
    color: white;
    font-size: large;
  }
  
  #info-sncd{
    font-family: Arial, Helvetica, sans-serif;
    color: white;
    font-size: large;
    white-space: nowrap;
  }
  
  .reseau-sociaux{
    justify-content: space-between;
    margin: 20%;
    align-items: center;
    display: flex;
  }
  
  #instagram, #facebook, #twitter, #mail{
    display: block;
    border-radius: 5px;
    width: 30px;
  }

h4{
  color: #2EFF00;
  text-align: center;
}

@media(max-width:530px){
    #contact{
        width: 70vh;
    }
    .position-contact{
        height: 50vh;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .tab3{
        height: 48vh;
    }
}

@media(max-width: 420px){
    #message{
        width: 40vh;
        height: 15vh;
    }
}

@media(max-width: 361px){
    #contact{
        width: 50vh;
    }
    .position-contact{
        height: 37vh;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .tab3{
        height: 35vh;
    }
    #search{
        width: 130px;
      }
      #instagram, #facebook, #twitter, #mail{
        width: 20px;
      }
}

@media screen and (max-width: 1000px){
    .tab6{
      grid-template-columns: repeat(3, 1fr);
      display: grid;
      align-items: center;
      justify-content: center;
    }
  
    .reseau-sociaux{
      grid-column: 3;
    }
    #info-sncd{
      grid-row: 2;
      grid-column: 2;
      font-size: small;
    }
    .position-douanes{
      grid-row: 2;
    }
    #info{
      grid-row: 1;
      grid-column: 3;
      font-size: small;
    }
    #info-snd{
      grid-row: 1;
      grid-column: 2;
      font-size: small;
    }
    .reseau-sociaux{
      margin: 10%;
      align-items: center;
      display: flex;
    }
    h4{
      grid-column: 1;
      grid-row: 1;
      text-align: center;
    }
  }
  
  @media screen and (max-width: 512px){
    .reseau-sociaux{
      grid-row: 2;
      grid-column: 1;
      display: list-item;
      display: grid;
      align-items: center;
      justify-content: center;
    }
    .douanes{
      width: 50px;
    }
    .position-douanes{
      grid-row: 1;
      grid-column: 1;
    }
    h4{
      grid-column: 3;
      grid-row: 2;
      font-size: small;
    }
}

@media(max-width:285px){
    .tab6{
       height: 50vh;
      }
}

@media(min-height:700px){
    #contact{
        width: 30vh;
    }
    .position-contact{
        height: 30vh;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .tab3{
        height: 25vh;
    }
    #message{
        width: 35vh;
        height: 15vh;
    }
}

@media(max-width:486px)and (min-height:1000px){
    #contact{
        width: 30vh;
    }
    .position-contact{
        height: 30vh;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .tab3{
        height: 25vh;
    }
    #message{
        width: 20vh;
        height: 15vh;
    }
}

@media screen and (max-width: 457px){
  .derniere-actu{
    font-size: large;
  }
  #search{
    width: 200px;
  }
  .rechercher{
    width: 200px;
    }
    .container-grille{
      grid-template-columns: 100px 1fr 220px;
  }
}

@media(max-width:313px){
  #search{
    width: 150px;
  }
  .rechercher{
    width: 150px;
    }
    .container-grille{
      grid-template-columns: 100px 1fr 180px;
  }
}

@media(max-height:479px){
  .tab4{
    height: 95vh;
}
  .tab6{
  height: 70vh;
  width: 100%;
  grid-template-columns: repeat(5, 1fr);
  display: grid;
  align-items: center;
  justify-content: center;
  border: 1px solid black;
  background-color: #011439;
  position:absolute;
  bottom: -140vh;
}
body{
  height: 230vh;
}
}