@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins',sans-serif;
}


#nav1, #nav0,#nav2 ul,#nav3,#nav4 ul,#nav5,.group,.mere,.zero,#groupe,#groups,.tous,.footer,.groubut,.group h6,#groupe,#groups,.cinq,.tou,.toue{
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-around;
}
#nav2{
    background-color: black;
    height: 50px;
}
#nav3{
    width: 1000px;
    gap: 100px;
    margin-left: 20%;
}
.touy{
    width: 100%;
}

.tps{
    width: 30%;
}
.tou{
    font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
    font-size: 10px;
    color: #444;
    gap: 30px;
}
ul{
    justify-content: center;
}
#nav2 a{
    color: white;
    text-decoration: none;
    list-style-type: none;
}
#nav2 a:hover{
    color: #f8bf02;
}
/* Style pour la barre de recherche */

 .search-container {
    flex-grow: 1;
} 

.search-input-wrapper {
    position: relative;
    display: flex;
}

.search-input {
    flex-grow: 1;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 30px;
    font-size: 14px;
    padding-right: 50px; /* Espace pour le bouton */
}

.but2 {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    padding: 0 15px;
}

.search-icon, .action-icon {
    width: 16px;
    height: 16px;
}

.search-text {
    margin: 0 8px;
    font-size: 14px;
}

/* Résultats de recherche */
#searchResultsContainer {
    margin-top: 20px;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

/* Conservez vos styles existants pour .but1 */
.but1 {
    /* Vos styles existants */
    padding: 8px 15px;
    background: #0056b3;
    color: white;
    border: none;
    border-radius: 5px;
}
.cinq{
    width: 80%;
    margin-left: 10%;
}
.cinq h4{
    margin-left: 5%;
}
div p{
    margin-left: 5%;
}
.img1{
    background-image: url("../img/ai-generated-7954441_640.jpg");
    height: 180px;
    width: 350px;
    color: white;
    text-align: center;
    color: white;
    text-align: center;
}
.zero h6,h6{
    margin-left: 60%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-around;
    font-size: 14px;
    font-family: Georgia, 'Times New Roman', Times, serif;
}
.img2{
    background-image: url("../img/ai-generated-8783069_640.jpg");
    height: 180px;
    width: 350px;
    color: white;
    text-align: center;
}
/* animation nav5 */
#nav5{
    overflow: hidden;
    margin: 0 auto;
    position: relative;
}
#bloges{
    display: flex;
    gap: 35px;
    scrollbar-width: none;
    overflow-x: scroll;
    scroll-behavior: smooth;
}
#bloges ::-webkit-scrollbar{
    display: none;
}

#blog, #bloges, .mage{
    object-fit: cover;
}
@keyframes scroll-left{
    0%{
        transform: translateX(0);
    }
    100%{
        transform: translateX(-50%);
    }
}
button{
    width: 100px;
}
h2,h3{
    text-align: center;
    text-decoration: none;
}
a img{
    text-align: center;
}
h5, h4{
    text-align: center;
}
.deux{
    text-align: center;
    background-color: #161668;
    height: 80px;
    color: white;
}
.img3{
    background-image: url("../img/23084167882082.png");
    height: 180px;
    width: 350px;
    color: white;
    text-align: center;
}
.img3 h3, .img1 h3, .img2 h3{
    margin-top:35px ;
}
.mere{
    width: 45%;
}
.texte{
    width: 50% !important;
}
#nav5{
    margin-top: 5%;
    margin-bottom: 5%;
    height: 210px;
    background:linear-gradient(to left,#f8bf02,#161668,#161668);
}
.but1{
    width: 250PX;
    height: 40px;
    background-color: rgb(255, 208, 0);
    font-size:20px;
    text-align: center;
    border: none;
    border-radius: 10px;
    font-weight: bolder;
    color: whitesmoke;
}
.groubut{
    width: 127px;
    height: 30px;
    margin: 0 20px 0 20px;
}
.but2{
    width: 550px;
    height: 40px;
    border: 3px;
    border-radius: 25px;
    font-size: 16px;
    color: rgb(49, 40, 40,0.5);
    justify-content: space-between;
    display: flex;
    flex-direction: row;
    align-items: center;
}
.img4{
    width: 213;
    height: 246;
}
.but2 img{
    width: 15px;
    height: 15px;
    margin: 0 3% 0 3%;
}
#nav4 ul{
    background-color: rgb(200, 206, 209,0.4);
    height: 150px;
    list-style-type: none;
}
#nav4 li{
    background: rgba(21, 22, 22, 0.6);
    text-align: center;
    height: 55px;
    width: 100px;
    border-radius: 10px;
}
#nav4 a{
    color: black;
    text-decoration: none;
    text-align: center;
    height: 100px;
}
#nav4 li:hover{
    background-color: #f8bf02;
}
.foor h4{
    margin-left:5%;
}
.foor img{
    margin-right: 5%;
    width: 40px;
}
.foor{
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}
/* gestion du script */
/* Styles pour les résultats */
.results-list {
    margin-top: 15px;
}

.result-item {
    padding: 15px;
    margin-bottom: 15px;
    background: #f9f9f9;
    border-radius: 5px;
}

.result-item h4 {
    margin: 0 0 5px 0;
    color: #0056b3;
}

.authors {
    color: #666;
    font-style: italic;
    margin: 0;
}

.loading, .error, .no-results {
    padding: 15px;
    text-align: center;
    color: #666;
}

.error {
    color: #d9534f;
}

/* rendre responsive */
@media (max-width: 768px) {
    .contenaire{
        width: 100%;
        margin-left: 0;
        margin-right: 0;
        padding: 0 10px;

    }
    #nav4{
        display: inline-flex;
    }
    #nav4 ul{
        display: inline-block;
    }
    #nav2, #nav3 {
      flex-direction: column;
      align-items: flex-start;
      gap: 10px;
      padding: 10px;
    }
  
    #nav3 {
      width: 100%;
      margin-left: 0;
      gap: 20px;
    }
  
    #nav2 a {
      width: 100%;
      display: block;
      text-align: left;
    }

    .img1, .img2, .img3 {
        width: 100%;
        max-width: 350px;
        height: auto;
        background-size: cover;
        background-position: center;
    }
    .cinq, .mere, .texte {
        width: 100%;
        margin-left: 0;
      }
    
      .groubut {
        width: 100%;
        margin: 10px 0;
      }
    
      .but1, .but2 {
        width: 100%;
        font-size: 16px;
      }
    
      .but2 {
        flex-direction: column;
        height: auto;
        padding: 10px;
      }
    
      .but2 img {
        margin: 5px 0;
      }
      .group, .groubut, .foor, #groupe, #groups, .group h6, .tou, .toue {
        flex-direction: column;
        gap: 15px;
        justify-content: center;
        align-items: center;
      }    
  }
  