*{
    margin: 0;
    padding: 0;
    font-family: 'poppins', sans-serif;
}
body{
    background: #efefef;
}

/* Navigation */
nav {
    background-color: white;
    color: red;
    display: flex;
    width: 100%;
    height: 10vh;
    justify-content: space-around;
    align-items: center;
    font-size: 1rem;
    position: fixed;
    z-index: 10;
  }
  
  nav .logo {
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  nav .logo svg {
    width: 50px;
    height: 50px;
    margin: 1rem 1rem 1rem 0.5rem;
  }
  
  nav .logo p {
    font-size: clamp(1rem, 0.8vw + 0.5rem, 2rem);
    ;
  }
  
  nav ul {
    color: black;
    width: 50%;
    margin-left: auto;
    display: flex;
    justify-content: space-around;
    align-self: center;
  }
  
  nav ul li {
    list-style: none;
  }
  
  nav ul li a {
    text-decoration: none;
    color: red;
  }
  
  nav ul li a:hover {
    /* color: var(--primary-bg-color); */
    color: red;
  }
  
  nav .hamburger {
    cursor: pointer;
    display: none;
  }
  
  nav .hamburger .line {
    background-color: red;
    width: 30px;
    height: 4px;
    margin: 5px;
  }
  
  nav .mode {
    background: transparent;
    border: none;
    display: block;
    margin: auto 0.5rem;
    cursor: pointer;
  }
  
  nav .mode svg {
    color: red;
  }
  
  nav ul.open {
    clip-path: polygon(0 0, 0 100%, 100% 100%, 100% 0);
    -webkit-clip-path: polygon(0 0, 0 100%, 100% 100%, 100% 0);
  }
  
  .fil{
    display: flex;
    height: 55vh;
    animation-duration: 20s;
    animation-name: test1;
    animation-iteration-count: infinite;
  }




  @media (max-width: 768px) {


    .infolink {
      grid-template-columns: 1fr;
    }
  
   
  
  
      nav{
        height: 12vh;
        position: fixed;
      }
      nav ul {
        position: absolute;
        top: 0;
        background-color: rgba(0, 0, 0, 0.7);
        flex-direction: column;
        align-items: center;
        width: 100%;
        height: 30vh;
        clip-path: polygon(100% 0, 100% 100%, 100% 100%, 100% 0);
        transition: all 1s ease-out;
      }
    
      nav .hamburger {
        display: block;
        z-index: 200;
        /* position: absolute;
        top: 50%;
        right: 5%;
        transform: translate(-5%, -50%); */
        cursor: pointer;
      }
  
  
  
  
  }
  

.logo{
    width: 80px;
    height: 8vh;
    margin-right: 45px;
    border-radius: 50%
}

.wha{
    position: fixed;
    bottom: 20px;
    right: 20px;
    cursor: pointer;
}


.container{
    display: flex;
    justify-content: last baseline;
    padding: 13px 5%;
    
}





.write-post-container{
    width: 250%;
    background: #fff;
    border-radius: 6px;
    padding: 20px;
    columns: #0f0e0e;
    
    
}

.user-profile{
    display: flex;
    align-items: center;
    
}

.user-profile img{
    width: 45px;
    border-radius: 50%;
    margin-right: 10px;
}


.user-profile p{
    margin-bottom: -5px;
    font-weight: 500;
    color: #080707;
}

.user-profile{
    font-size: 18px;
}
.post-input-container{
    padding-left: 55px;
    padding-top: 20px;
}

.post-input-container ,textarea{
    width: 90%;
    border: 0;
    outline: 0;
    border-bottom: 1px solid #111111;
    background: transparent;
    resize: none;
}

.add-post-links{
    display: flex;
    margin-top: 10px;
}

.add-post-links a{
    text-decoration: none;
    display: flex;
    align-items: center;
    color: #626262;
    margin-right: 30px;
    font-size: 13px;
}

.add-post-links a img{
    width: 35px;
    margin: 10px;

}

.post-container2{
    width: 100%;
    background: #fff;
    border-radius: 6px;
    padding: 20px;
    color: #0a0909;
    margin: 20px 0;
    
}

.user-profile span{
      font-size: 13px;
      color: #131212;
}

.post-text{
    color: #0c0b0b;
    margin: 15px 0;
    font-size: 15px; 
}

.post-text span{
    color: #0a0909;
    font-weight: 500;
}

.post-text a{
    color: #1876f2;
    text-decoration: none;
}

.post-img{
    width: 100%;
    border-radius: 4px;
    margin-bottom: 5px;
}

.pub-btn{
    display: block;
    margin: auto;
    cursor: pointer;
    padding: 5px 10px;
    border: 1px solid #9a9a9a;
    color: #626262;
    background: transparent;
    border-radius: 4px; 

}

.copyright{
    text-align: center;
    color: #9a9a9a;
    padding: 10px 0 20px;
    font-size: 13px;
}

@media (max-width: 991px){

    .search-box{
        display: none;
    }
    .write-post-container{
        width: 50%;
    }
    .post-input-container, textarea{
        width: 80%;
    }
    .add-post-links {
        width: 480px;
        flex-direction: column;
    }

    .post-container2{
        width: 90%;
    }
    .logo{
        width: 80px;
    }

    video{
        width: 100%;
        height: 100%;
    }
}


@media(max-width:400px){
    .nav-left a img{
        margin: 0 25px;
    }
}


@media(max-width:450px ){
    .nav-left a img{
        margin: 0 20px;
    }

    .nav-right{
        margin: 0 -10px;
    }
}


@media(max-width:500px ){
    .nav-left a img{
        margin: 0 45px;
    }
}

.darkmode {
    --primary-bg-color: #000;
    --dark-bg-color: #fff;
    --secondary-color: red;
    --secondary-bg-color: #0c0c0c;
    --tertiary-bg-color: #000a16;
    --primary-btn-color: red;
    --offwhite: #fff;
    --glasseffect: rgba(15, 15, 15, 0.8);
    color: #000 ;
    color: #fff;
    color: red;
    color: #626262;
  }



  .post-container3 {
  width: 100%;
  background: #fff;
  border-radius: 6px;
  padding: 20px;
  color: #0a0909;
  margin: 20px 0;
}

.user-profile3 span {
  font-size: 13px;
  color: #131212;
}

.post-text3 {
  color: #0c0b0b;
  margin: 15px 0;
  font-size: 15px;
}

.post-text3 span {
  color: #0a0909;
  font-weight: 500;
}

.post-text3 a {
  color: #1876f2;
  text-decoration: none;
}

.post-header3 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.user-profile3 {
  display: flex;
  align-items: center;
}

.user-profile3 img {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  margin-right: 10px;
}

/* Conteneur galerie multi-photos/vidéos */
.post-gallery3 {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 10px;
}

/* Style commun aux images et vidéos */
.post-gallery3 img,
.post-gallery3 video {
  flex: 1 1 calc(50% - 5px);
  max-width: calc(50% - 5px);
  border-radius: 4px;
  object-fit: cover;
  height: 200px;
}

@media (min-width: 768px) {
  .post-gallery3 img,
  .post-gallery3 video {
    flex: 1 1 calc(33.33% - 5px);
    max-width: calc(33.33% - 5px);
    height: 200px;
  }
}
