:root {
    --primary-color: #db3a00;
    --secondary-color: #00930c;
    --tertiary-color: #b83200;
    --background-color: #fafafa;
    --card-color: #ffffff;
    --text-color: #333333;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    --border-color: #dbdbdb;
    --sidebar-width: 300px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    min-height: 100vh;
}

/* Header */
header {
    width: 100%;
    display: flex;
    padding: 10px 20px;
    height: 70px;
    background-color: var(--primary-color);
    z-index: 1000;
    align-items: center;
    box-shadow: var(--shadow);
    justify-content: space-between;
    position: sticky;
    top: 0;
}

.logo-container {
    display: flex;
    align-items: center;
}

.user-container {
    display: flex;
    align-items: center;
}

#logo {
    font-family: 'Pacifico', cursive;
    color: white;
    font-size: 1.8rem;
    cursor: pointer;
}

header a {
    color: white;
    font-size: 1.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
    transition: background-color 0.3s;
}

header a:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

/* Container principal */
.main-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    padding-bottom: 100px;
    width: 100%;
    overflow: hidden;
}

.content-wrapper {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

/* Section feed principal */
.feed-section {
    flex: 1;
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
}

/* Sidebar */
.sidebar-section {
    width: var(--sidebar-width);
    position: sticky;
    top: 90px;
    flex-shrink: 0;
    height: fit-content;
}

.user-actions-sidebar, .guest-sidebar, .trending-section {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.user-actions-sidebar h3, .guest-sidebar h3, .trending-section h3 {
    margin-bottom: 15px;
    color: var(--text-color);
    font-size: 1.1rem;
    font-weight: 600;
}

.sidebar-action-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    color: var(--text-color);
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s;
    margin-bottom: 8px;
    font-weight: 500;
}

.sidebar-action-btn:hover {
    background: var(--background-color);
    color: var(--primary-color);
    transform: translateX(5px);
}

.sidebar-action-btn i {
    width: 20px;
    text-align: center;
    font-size: 1.1rem;
}

.sidebar-login-btn {
    display: inline-block;
    background: var(--primary-color);
    color: white;
    padding: 12px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s;
    margin-top: 10px;
}

.sidebar-login-btn:hover {
    background: var(--tertiary-color);
    transform: translateY(-2px);
}

.trending-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.trending-tag {
    background: var(--background-color);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    color: #666;
    cursor: pointer;
    transition: all 0.3s;
}

.trending-tag:hover {
    background: var(--primary-color);
    color: white;
}

/* Contrôles du feed */
.feed-controls {
    background: white;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    width: 100%;
}

.search-container {
    margin-bottom: 15px;
    width: 100%;
}

.search-input {
    display: flex;
    align-items: center;
    background: var(--background-color);
    border-radius: 25px;
    padding: 10px 18px;
    border: 1px solid var(--border-color);
    transition: border-color 0.3s;
    width: 100%;
}

.search-input:focus-within {
    border-color: var(--primary-color);
}

.search-input i {
    color: #888;
    margin-right: 12px;
    flex-shrink: 0;
}

.search-input input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 1rem;
    background: transparent;
    min-width: 0;
    width: 100%;
}

.search-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s;
    margin-left: 10px;
    flex-shrink: 0;
}

.search-btn:hover {
    background: var(--tertiary-color);
    transform: translateY(-1px);
}

.filter-tabs {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 5px;
    width: 100%;
    -webkit-overflow-scrolling: touch;
}

.filter-tab {
    background: transparent;
    border: 1px solid var(--border-color);
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s;
    font-size: 0.9rem;
    font-weight: 500;
    flex-shrink: 0;
}

.filter-tab.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Actions mobile */
.mobile-actions {
    display: none;
    background: white;
    padding: 15px 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    gap: 10px;
    width: 100%;
}

.action-btn-mobile {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s;
    flex: 1;
    justify-content: center;
    min-width: 0;
}

.action-btn-mobile:hover {
    background: var(--tertiary-color);
    transform: translateY(-1px);
}

/* Posts style Instagram amélioré */
.feed-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}

.post-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    transition: transform 0.3s, box-shadow 0.3s;
    width: 100%;
}

.post-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.post-header {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    width: 100%;
}

.user-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 12px;
    cursor: pointer;
    border: 2px solid var(--primary-color);
    flex-shrink: 0;
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.default-avatar {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
}

.user-details {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.username {
    font-weight: 600;
    cursor: pointer;
    transition: color 0.3s;
    font-size: 0.95rem;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.username:hover {
    color: var(--primary-color);
}

.post-date {
    font-size: 0.8rem;
    color: #888;
}

.post-caption {
    padding: 16px 20px;
    line-height: 1.6;
    font-size: 0.95rem;
    border-bottom: 1px solid var(--border-color);
    width: 100%;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.post-media {
    position: relative;
    background: #000;
    overflow: hidden;
    width: 100%;
}

/* CARROUSEL AMÉLIORÉ POUR MOBILE */
.media-carousel {
    position: relative;
    overflow: hidden;
    width: 100%;
    touch-action: pan-y pinch-zoom;
}

.carousel-track {
    display: flex;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    height: 100%;
    width: 100%;
}

.carousel-slide {
    flex: 0 0 100%;
    position: relative;
    height: 100%;
    width: 100%;
    flex-shrink: 0;
}

/* CORRECTION : Images et vidéos responsives */
.carousel-slide img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    display: block;
    background: #000;
}

.carousel-slide video {
    width: 100%;
    height: 500px;
    object-fit: cover;
    display: block;
    background: #000;
}

/* SUPPRESSION : Enlever complètement l'effet de chargement problématique */
.video-loading {
    display: none !important;
}

/* Styles pour les erreurs de média */
.media-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 300px;
    background: #f8f9fa;
    color: #6c757d;
    text-align: center;
    padding: 20px;
    width: 100%;
}

.media-error i {
    font-size: 3rem;
    margin-bottom: 15px;
    color: #dc3545;
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s, background 0.3s;
    font-size: 1rem;
    z-index: 10;
}

.media-carousel:hover .carousel-nav {
    opacity: 1;
}

.carousel-nav:hover {
    background: rgba(0, 0, 0, 0.9);
}

.carousel-prev {
    left: 15px;
}

.carousel-next {
    right: 15px;
}

.carousel-indicators {
    position: absolute;
    bottom: 15px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 6px;
    z-index: 10;
}

.carousel-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.carousel-indicator.active {
    background: white;
    transform: scale(1.2);
}

.post-actions {
    padding: 16px 20px;
    width: 100%;
}

.action-buttons {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    width: 100%;
}

.action-btn {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
    transition: all 0.3s;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    flex: 1;
    justify-content: center;
    min-width: 0;
}

.action-btn:hover {
    background: #f8f9fa;
    color: var(--primary-color);
    transform: translateY(-1px);
}

.action-btn.liked {
    color: #e74c3c;
}

.action-btn.commented {
    color: #3498db;
}

.post-stats {
    display: flex;
    gap: 20px;
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

/* Amélioration du bouton de commentaire */
.add-comment {
    padding: 16px 20px;
    border-top: 1px solid var(--border-color);
    background: white;
    width: 100%;
}

.comment-input {
    display: flex;
    gap: 12px;
    align-items: center;
    width: 100%;
}

.comment-input input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: 25px;
    outline: none;
    font-size: 0.9rem;
    background: var(--background-color);
    transition: border-color 0.3s;
    min-width: 0;
}

.comment-input input:focus {
    border-color: var(--primary-color);
}

.comment-submit-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s;
    white-space: nowrap;
    min-width: 90px;
    flex-shrink: 0;
}

.comment-submit-btn:hover {
    background: var(--tertiary-color);
    transform: translateY(-1px);
}

.comment-submit-btn:active {
    transform: translateY(0);
}

/* Modals */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 20px;
    box-sizing: border-box;
}

.modal-content {
    background: white;
    border-radius: 12px;
    max-width: 500px;
    width: 100%;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    background: white;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
}

.close {
    font-size: 1.5rem;
    cursor: pointer;
    color: #888;
    transition: color 0.3s;
}

.close:hover {
    color: #333;
}

/* Comments Modal */
.comments-modal {
    max-width: 400px;
    display: flex;
    flex-direction: column;
}

.comments-container {
    display: flex;
    flex-direction: column;
    height: 400px;
}

.comments-list {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
    background: var(--background-color);
}

.comment-item {
    display: flex;
    gap: 12px;
    margin-bottom: 15px;
    padding: 12px;
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    width: 100%;
}

.comment-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    border: 2px solid var(--primary-color);
}

.comment-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.comment-content {
    flex: 1;
    min-width: 0;
}

.comment-author {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 5px;
    cursor: pointer;
    transition: color 0.3s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.comment-author:hover {
    color: var(--primary-color);
}

.comment-text {
    font-size: 0.9rem;
    line-height: 1.4;
    color: #555;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.comment-date {
    font-size: 0.75rem;
    color: #888;
    margin-top: 5px;
}

/* Share Modal */
.share-modal {
    max-width: 300px;
}

.share-options {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.share-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background: none;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.9rem;
    font-weight: 500;
    width: 100%;
}

.share-option:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
    border-color: var(--primary-color);
}

/* Media Viewer */
.media-viewer {
    max-width: 90vw;
    max-height: 90vh;
    background: #000;
    border-radius: 0;
    width: 100%;
    height: 100%;
}

.media-viewer-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    z-index: 1;
}

.media-viewer-content {
    position: relative;
    height: 100%;
    width: 100%;
}

.media-container {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    width: 100%;
}

.media-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.media-container video {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.media-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    transition: background 0.3s;
    font-size: 1.2rem;
}

.media-nav:hover {
    background: rgba(0, 0, 0, 0.9);
}

.media-nav.prev {
    left: 30px;
}

.media-nav.next {
    right: 30px;
}

/* Loading */
.loading-posts {
    text-align: center;
    padding: 60px 20px;
    color: #888;
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    width: 100%;
}

.empty-state {
    text-align: center;
    padding: 80px 20px;
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    width: 100%;
}

.empty-state i {
    font-size: 4rem;
    color: #ddd;
    margin-bottom: 20px;
}

.empty-state h3 {
    margin-bottom: 15px;
    color: #666;
    font-size: 1.3rem;
}

.empty-state p {
    color: #888;
    margin-bottom: 25px;
    font-size: 1rem;
}

/* Navigation bottom */
#navigation-bottom {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background: white;
    z-index: 1000;
    display: flex;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.1);
    border-top: 1px solid var(--border-color);
    padding: 0 10px;
    box-sizing: border-box;
}

.nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #888;
    font-size: 0.8rem;
    transition: all 0.3s;
    text-decoration: none;
    padding: 10px;
    border-radius: 12px;
    flex: 1;
    max-width: 80px;
    min-width: 0;
}

.nav-btn i {
    font-size: 1.5rem;
    margin-bottom: 5px;
    transition: transform 0.3s;
}

.nav-btn.active {
    color: var(--primary-color);
}

.nav-btn:hover {
    background: #f8f9fa;
    color: var(--primary-color);
    transform: translateY(-2px);
}

.nav-btn:hover i {
    transform: scale(1.1);
}

/* ========================================================================== */
/* RESPONSIVE DESIGN */
/* ========================================================================== */

@media (max-width: 1024px) {
    .content-wrapper {
        gap: 20px;
    }
    
    .sidebar-section {
        width: 280px;
    }
}

@media (max-width: 768px) {
    body {
        position: relative;
        width: 100%;
    }
    
    .main-container {
        padding: 0 15px;
        padding-bottom: 80px;
        width: 100%;
        max-width: 100%;
        overflow: hidden;
    }
    
    .content-wrapper {
        flex-direction: column;
        gap: 0;
        width: 100%;
    }
    
    .sidebar-section {
        display: none;
    }
    
    .feed-section {
        max-width: 100%;
        width: 100%;
    }
    
    .mobile-actions {
        display: flex;
    }
    
    .feed-controls {
        padding: 15px;
        margin-bottom: 15px;
        width: 100%;
    }
    
    .search-input {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .search-input input {
        min-width: 0;
    }
    
    .search-btn {
        margin-left: 0;
        flex: 1;
        min-width: auto;
    }
    
    .carousel-slide img,
    .carousel-slide video {
        height: 400px;
        width: 100%;
        max-width: 100vw;
    }
    
    .media-carousel {
        width: 100%;
        overflow: hidden;
        border-radius: 0;
        max-width: 100vw;
    }
    
    .carousel-track {
        width: 100%;
    }
    
    .carousel-slide {
        width: 100%;
        flex: 0 0 100%;
        max-width: 100vw;
    }
    
    /* CACHER LES BOUTONS DE NAVIGATION SUR MOBILE */
    .carousel-nav {
        display: none !important;
    }
    
    .carousel-indicators {
        bottom: 10px;
    }
    
    .filter-tabs {
        gap: 5px;
    }
    
    .filter-tab {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
    
    .action-buttons {
        flex-wrap: wrap;
        gap: 5px;
    }
    
    .action-btn {
        flex: 1;
        min-width: 100px;
        justify-content: center;
    }
    
    .post-stats {
        flex-direction: column;
        gap: 5px;
    }
    
    #navigation-bottom {
        height: 70px;
        padding: 0 5px;
    }
    
    .nav-btn {
        font-size: 0.7rem;
        padding: 8px 5px;
        min-width: 60px;
    }
    
    .nav-btn i {
        font-size: 1.3rem;
    }
    
    .comment-input {
        flex-direction: column;
        gap: 10px;
    }
    
    .comment-submit-btn {
        width: 100%;
        min-width: auto;
    }
    
    /* CORRECTION : Amélioration du visionneur modal pour mobile */
    .modal {
        padding: 10px;
    }
    
    .media-viewer {
        max-width: 100vw;
        max-height: 100vh;
        width: 100vw;
        height: 100vh;
        border-radius: 0;
    }
    
    .media-container {
        height: calc(100vh - 60px);
    }
    
    .media-container img,
    .media-container video {
        max-width: 100vw;
        max-height: calc(100vh - 60px);
        width: auto;
        height: auto;
    }
    
    .media-nav {
        width: 50px;
        height: 50px;
        font-size: 1rem;
    }
    
    .media-nav.prev {
        left: 10px;
    }
    
    .media-nav.next {
        right: 10px;
    }
    
    .modal-content {
        width: 95%;
        max-width: none;
    }
    
    .comments-modal {
        max-width: none;
    }
}

@media (max-width: 480px) {
    header {
        padding: 10px 15px;
    }
    
    .main-container {
        padding: 0 10px;
        padding-bottom: 70px;
    }
    
    .feed-controls {
        padding: 12px;
    }
    
    .search-input {
        padding: 8px 15px;
        flex-direction: column;
        gap: 10px;
    }
    
    .search-btn {
        padding: 8px 15px;
        font-size: 0.8rem;
        width: 100%;
        margin-left: 0;
    }
    
    .carousel-slide img,
    .carousel-slide video {
        height: 300px;
    }
    
    .post-header {
        padding: 12px 15px;
    }
    
    .post-caption {
        padding: 12px 15px;
    }
    
    .post-actions {
        padding: 12px 15px;
    }
    
    .action-btn {
        padding: 6px 8px;
        font-size: 0.8rem;
    }
    
    .action-btn-mobile span {
        font-size: 0.8rem;
    }
    
    .user-avatar {
        width: 36px;
        height: 36px;
    }
    
    .username {
        font-size: 0.9rem;
    }
    
    .post-date {
        font-size: 0.75rem;
    }
    
    #navigation-bottom {
        height: 65px;
    }
    
    .nav-btn {
        font-size: 0.65rem;
        padding: 6px 3px;
    }
    
    .nav-btn i {
        font-size: 1.2rem;
    }
}

@media (max-width: 360px) {
    .main-container {
        padding: 0 8px;
    }
    
    .feed-controls {
        padding: 10px;
    }
    
    .carousel-slide img,
    .carousel-slide video {
        height: 250px;
    }
    
    .action-btn {
        font-size: 0.75rem;
        padding: 4px 6px;
    }
    
    .filter-tab {
        padding: 4px 8px;
        font-size: 0.75rem;
    }
}

/* CORRECTION : Empêcher le zoom sur les inputs sur iOS */
@media (max-width: 768px) {
    input, textarea, select {
        font-size: 16px;
    }
}

/* CORRECTION : Amélioration du scroll sur mobile */
@media (max-width: 768px) {
    .filter-tabs {
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    
    .filter-tabs::-webkit-scrollbar {
        display: none;
    }
    
    .comments-list {
        -webkit-overflow-scrolling: touch;
    }
}

/* CORRECTION : S'assurer que les vidéos peuvent être contrôlées */
video {
    -webkit-tap-highlight-color: transparent;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Permettre l'interaction avec les contrôles vidéo */
video::-webkit-media-controls {
    display: flex !important;
}

video::-webkit-media-controls-panel {
    display: flex !important;
}

video::-webkit-media-controls-play-button {
    display: flex !important;
}

video::-webkit-media-controls-timeline {
    display: flex !important;
}

video::-webkit-media-controls-current-time-display {
    display: flex !important;
}

video::-webkit-media-controls-time-remaining-display {
    display: flex !important;
}

video::-webkit-media-controls-mute-button {
    display: flex !important;
}

video::-webkit-media-controls-volume-slider {
    display: flex !important;
}

video::-webkit-media-controls-fullscreen-button {
    display: flex !important;
}