body {
    width: 100%;
    margin-top: 123px;
    overflow-x: hidden;
}

.vlog-container {
    padding: 0; /* Retirer le padding pour que tout commence à gauche */
    margin: 14px 0; /* Supprimer la marge latérale pour qu'il commence à gauche */
    max-width: 100%; /* Pour que le conteneur prenne toute la largeur disponible */
    border-radius: 10px;
}

.filter-search-container {
    top: 96px;
    z-index: 1000;
    padding: 10px 0;
    width:500px !important;
    
    display: flex;
    align-items: center;
}


.vlog-filter {
    display: flex;
    margin-left: 10px;
    margin-top: -41px;
}

.vlog-filter button {
    padding: 5px 20px;
    border: 1px solid #000000;
    background-color: #FFFFFF;
    color: #000000;
    border-radius: 20px;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
    font-family: 'Poppins', sans-serif;
    font-size: 12px;
    font-weight: 500;
    line-height: 20px;
    margin-right: 10px;
}

.vlog-filter button.active {
    border: 1px solid #2C6961;
    background-color: #2C6961;
    color: #FFFFFF;
}

.vlogs {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start; /* Commencer à gauche */
    align-items: flex-start;
    gap: 16px; /* Assurer un espace entre les vlogs */
    padding: 0; /* Retirer le padding pour que tout commence à gauche */
}

.vlog-item {
    flex: 1 1 calc(33.33% - 10px); /* 3 vlogs par ligne */
    max-width: 380px;
    display: flex;
    flex-direction: column;
    margin: 0; /* Assurer qu'il n'y a pas de marge */
    text-align: left;
    overflow: hidden;
    transition: transform 0.3s;
}

.vlog-item:hover {
    transform: translateY(-5px);
}

.vlog-thumbnail {
    width: 100%;
    height: 255px;
    border-radius: 20px;
    overflow: hidden;
    background-color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.vlog-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.vlog-duration {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background-color: rgba(0, 0, 0, 0.8);
    color: #fff;
    padding: 2px 5px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: bold;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    padding: 15px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.play-button:hover {
    background-color: rgba(0, 0, 0, 0.9);
}

.play-button i {
    color: #fff;
    font-size: 28px;
}

.vlog-info {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    height: auto; /* Ajuster la hauteur */
    padding-top:10px;
    
}

.vlog-title {
    font-family: 'Poppins', sans-serif;
    font-size: 18px;
    font-weight: 500;
    line-height: 27px;
    color:#000000;
    margin: 0;
}

.vlog-meta {
    font-family: 'Poppins', sans-serif;
    font-size: 12px;
    font-weight: 400;
    line-height: 15.12px;
    color: #888888;
    margin: 5px 0 0 0; /* Réduire l'espace */
}

.progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 4px;
    background-color: red;
    display: none;
    transition: width 0.3s ease;
}

.vlog-item:hover .progress-bar {
    display: block;
}

.vlog-item[data-status="termine"] .progress-bar.completed {
    display: block;
}

.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    overflow: auto;
    align-items: center;
    justify-content: center;
}

.modal-content {
    position: relative;
    margin: 10px;
    padding: 20px;
    width: 80%;
    max-width: 800px;
    border-radius: 10px;
}

.close-button {
    position: absolute;
    top: 10px;
    right: 20px;
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-button:hover {
    color: #000;
}

.video-container {
    padding: 10px;
    text-align: center;
}

#admin-video-preview {
    margin-top: 15px;
    border: 1px solid #ccc;
    padding: 10px;
    border-radius: 5px;
    width: 100%;
    max-width: 600px;
    height: 340px;
    background-color: #f9f9f9;
}

#upload-info {
    color: red;
    display: block;
    margin-top: 5px;
    font-size: 14px;
}

@media (max-width: 1024px) {
    .vlog-item {
        flex: 1 1 calc(50% - 10px); /* 2 vlogs par ligne */
    }
}

@media (max-width: 968px) {
    #vlog-search {
        width: 92%;
    }

    .vlog-page-title {
      font-size : 16px !important; 
    }

    .filter-search-container {
        display: flex;
        width: 100% !important;
        max-width: 500px !important;
        
    }

    .vlog-filter {
        display: flex; 
        flex-direction: row; /* S'assure que les boutons restent en ligne horizontale */
        justify-content: flex-start; /* Place les boutons à gauche */
        margin-bottom: 10px; /* Espace entre le champ de recherche et les boutons */
        width: 100%; /* Assure que la div prend toute la largeur disponible */
        margin-top: -26px;
    }

    .vlog-filter button {
        width: auto; /* Garde une taille adaptée pour les boutons */
        margin-right: 10px; /* Ajoute un peu d'espace entre les boutons */
    }

    .vlog-item {
        flex: 1 1 100%; /* 1 vlog par ligne */
    }

    .modal-content {
        width: 95%;
    }
}

@media (max-width: 480px) {
    .play-button i {
        font-size: 20px;
    }

    .vlog-title {
        font-size: 14px;
    }

    .vlog-meta {
        font-size: 10px;
    }

    .close-button {
        font-size: 24px;
    }
}



.rechercher {
    width: 100%; /* Le conteneur prend toute la largeur */
    max-width: 500px; /* Limite la largeur totale à 500px */
}

.rechercher input[type="search"] {
    width: 100%;
}



