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

body{
    font-family: Arial, Helvetica, sans-serif;
    background: linear-gradient(rgb(61, 155, 243), rgb(164, 214, 255));
    background-size: cover;
    background-repeat: no-repeat;
    height: 230vh;
}

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

.tab2{
    height: 15vh;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(1, 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: 100px;
}

.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;
}


.big-title {
    color: white;
    font-size: xx-large;
}

.landing{
  height: 15vh;
  text-align: center;
  justify-content: center;
}

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

.nav{
  justify-content: space-between;
  display: flex;
  list-style: none;
  width: 70%;
  grid-column: 1;
  margin-top: 5.5vh;
  margin: auto;
}

  #link {
  width: 100px;
  border: 1px solid rgb(238, 234, 14);
  border-radius: 18px;
  outline: 0;
  padding: 8px 12px;
  text-align: center;
  text-decoration: none;
  font: bold 12px Arial;
  background-color: rgb(39, 41, 61);
  transition: all 1s ease-out;
  white-space: nowrap;
  
  }
  
  #link:hover,
  #link:focus {
   color: rgb(51, 51, 51);
   background-color: rgb(211, 19, 19);
  }
  
  nav.nav h2 #link{
   color: white;
   font-size: 30px;
   font-weight: 50px;
   
  }
  #link :hover{
   background-color: red;
}

.tab5{
  height: 30vh;
  width: 100%;
  grid-template-columns: repeat(2, 1fr);
  display: grid;
  align-items: center;
}

.position-snd{
  justify-content: center;
  align-items: center;
  display: flex;
  width: 80%;
}

.SND{
  border-radius: 50%;
}

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

.tab6{
  height: 15vh;
  width: 100%;
  grid-template-rows: repeat(1, 1fr);
  display: grid;
  align-items: center;
}

.tab7{
  height: 60vh;
  width: 100%;
  grid-template-rows: repeat(2, 1fr);
  display: grid;
}

.derniere-actu{
  color: #fff;
  text-align: center;
  text-decoration: underline;
}

.custom-slider { display: none; }
.slide-container {
  max-width: 1000px;
  position: relative;
  margin: auto;
}
.prev, .next {
  cursor: pointer;
  position: absolute;        
  top: 50%;
  transform: translateY(-50%);
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: red;
  font-size: 30px;
  background-color: rgba(0,0,0,0);
  transition: background-color 0.6s ease;
}
.prev{ left: 15px; }
.next { right: 15px; }
.prev:hover, .next:hover {
  background-color: #011439;
  color: white;
}

.slide-img{ 
  width: 100%; 
  height: 55vh;
  object-fit: cover;
  object-position: center;
 }
.slide-dot{ text-align: center; }
.dot {
  cursor: pointer;
  height: 10px;
  width: 10px;
  margin: 0 2px;
  background-color: #999999;
  border-radius: 50%;
  display: inline-block;
  transition: background-color 0.6s ease;
}
.active1, .dot:hover { background-color: #011439; }
.fade {
  animation-name: fade;
  animation-duration: 1s;
}

.tab8{
  height: 45vh;
  width: 100%;
  grid-template-columns: repeat(5, 1fr);
  grid-template-rows: repeat(2, 1fr);
  display: grid;
  align-items: center;
  justify-content: center;
  background-color: #011439;
  bottom: -140%;
  position: absolute;
}

.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{
  width: 30px;
  display: block;
  border-radius: 10px;
}

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

@keyframes fade {
  from {opacity: 0} 
  to {opacity: 1}
}

@media screen and (max-width: 457px){
    .tab2{
      height: 10vh;
    }

    #link{
      width: 20px;
      height: 20px;
      padding: 5%;
      border-radius: 10px;
      font-weight: bold;
    }

    nav.nav h2 #link{
      font-size: 20px;
    }

    .derniere-actu{
      font-size: large;
    }
    #search{
      width: 200px;
    }
    .rechercher{
      width: 200px;
      }
      .container-grille{
        grid-template-columns: 100px 1fr 220px;
    }
    .big-title {
      color: white;
      font-size: x-large;
  }
}

@media screen and (max-width: 303px){
  #search{
    width: 130px;
  }
  .rechercher{
    justify-content: center;
    align-items: center;
    justify-content: center;
  }

  .derniere-actu{
    font-size: small;
  }

  #instagram, #twitter, #facebook, #mail{
    width: 20px;
  }
}

@media screen and (max-width: 413px){
  .SND{
    width: 100px;
  }
  .SNCD{
    width: 100px;
  }
  .position-snd{
    justify-content: center;
    align-items: center;
    display: flex;
    width: 100%;
  }
  .position-sncd{
    justify-content: center;
    align-items: center;
    display: flex;
  }
}

@media screen and (max-width: 1100px){
  .tab7{
    height: 75vh;
  }
  .tab8{
    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;
  }
  .slide-img{ 
    width: 100%; 
    height: 400px;
    object-fit: cover;
    object-position: center;
   }
   h4{
    color: #2EFF00;
    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;
  }
  .slide-img{ 
    width: 100%; 
    height: 200px;
    object-fit: cover;
    object-position: center;
   }
   .tab8{
    position: absolute;
    bottom: -220%;
   }
   body{
    height: 300vh;
   }
   h4{
    color: #2EFF00;
    text-align: center;
    grid-column: 3;
    grid-row: 2;
    font-size: small;
  }
}

@media(max-height: 516px){
  .tab3{
    height: 20vh;
}
  
.logo{
    width: 70px;
}
body{
  height: 210vh;
}
.tab9{
  height: 35vh;
  grid-template-rows: repeat(1, 1fr);
}
}

@media(max-width:395px){
  .big-title{
    font-size: large;
  }
  .tab3{
    height: 20vh;
  }
  .tab4{
    height: 10vh;
  }
  .tab5{
    height: 15vh;
  }
}

@media(max-height:479px){
.container-grille{
  height: 16vh;
}
.tab2{
  height: 15vh;
}
.tab3{
  height: 25vh;
}
.tab4{
  height: 20vh;
}
.tab5{
  height: 25vh;
}
.position-menu{
  height: 15vh;
}
}
