/* FEED TIKTOK STYLE - PLEIN ÉCRAN */
#view-feed {
    position: fixed !important;
    top: 60px !important;
    bottom: calc(70px + env(safe-area-inset-bottom, 0px)) !important;
    left: 0 !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

#view-feed .section-title {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: transparent;
    color: white !important;
    text-shadow: 0 2px 8px rgba(0,0,0,0.9), 0 0 15px rgba(0,0,0,0.6);
    margin: 0;
    box-sizing: border-box;
}

.feed-container {
    height: 100%; /* S'ajuste exactement au conteneur parent (.view) */
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    background: #000;
    padding: 0;
}

.feed-item {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    scroll-snap-align: start;
    scroll-snap-stop: always;
    border: none;
    border-radius: 0;
    box-shadow: none;
}

.feed-media-container {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    border-radius: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
}

.feed-media-container img,
.feed-media-container video,
.feed-media {
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: cover !important;
    object-position: center !important;
    display: block;
    background: transparent;
}

.feed-overlay-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 100px 70px 60px 15px; /* Modifié : remonté de 40px (padding-bottom à 60px au lieu de 20px) pour dégager le bouton jaune */
    background: none;
    pointer-events: none;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.8);
    z-index: 10;
}

.feed-overlay-bottom * {
    pointer-events: auto;
}

/* --- FEED ACTIONS SIDEBAR --- */
.feed-item .feed-actions-sidebar,
.onboarding-slide .feed-actions-sidebar {
    position: absolute !important;
    right: 12px !important;
    bottom: 60px !important; /* Modifié : remonté de 40px (bottom à 60px au lieu de 20px) */
    top: auto !important;
    transform: none !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 15px !important;
    z-index: 50 !important;
}

.feed-action-group {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 4px !important;
    color: white !important;
}

.feed-action-btn {
    width: 45px !important;
    height: 45px !important;
    background: rgba(0, 0, 0, 0.6) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 1.4rem !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4) !important;
    transition: all 0.2s ease !important;
    cursor: pointer !important;
    color: white !important;
    padding: 0 !important;
    line-height: 1 !important;
}

.feed-action-btn:active {
    transform: scale(0.85) !important;
    background: rgba(255, 255, 255, 0.3) !important;
}

.feed-action-count {
    font-size: 0.8rem !important;
    font-weight: 800 !important;
    color: #fff !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8) !important;
}

/* --- CENTERED CAMERA BUTTON (ULTRA DEEP BLUE) --- */
.floating-camera-btn-center {
    position: fixed;
    bottom: 95px;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 70px;
    background: radial-gradient(circle, rgba(0, 64, 128, 0.8) 0%, rgba(0, 26, 51, 0.9) 100%);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    color: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
    border: 3px solid rgba(255, 255, 255, 0.4);
    z-index: 3000;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.floating-camera-btn-center:active {
    transform: translateX(-50%) scale(0.85);
}

.floating-camera-btn-center::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: inherit;
    z-index: -1;
    animation: pulse-blue 2s infinite;
}

@keyframes pulse-blue {
    0% {
        transform: scale(1);
        opacity: 0.6;
    }

    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

.feed-stat-v:active {
    transform: scale(0.9);
    background: var(--gold);
    color: #000;
}

.feed-username {
    font-weight: 900;
    font-size: 1.1rem;
    color: #fff;
    margin-bottom: 4px;
    pointer-events: auto;
    cursor: pointer;
    display: block;
}

.feed-time {
    font-size: 0.75rem;
    color: #aaa;
    margin-bottom: 8px;
    display: block;
}

.feed-comments-preview {
    margin-top: 8px;
    background: rgba(15, 20, 25, 0.4) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    padding: 12px 16px !important;
    border-radius: 0px !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    font-size: 0.85rem;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 6px;
    color: #FFFFFF !important;
}

.mini-comment {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.4;
}

.mini-comment strong {
    color: var(--gold);
    margin-right: 5px;
}

.view-all-comments {
    font-size: 0.75rem;
    color: #888;
    margin-top: 4px;
    font-style: italic;
}



.feed-action-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.feed-action-count {
    font-size: 0.75rem;
    font-weight: 800;
    color: white;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
    margin-bottom: 4px;
    transition: 0.3s;
}




/* --- FEED FLOATING BUTTON (PREMIUM) --- */
.feed-fab {
    position: fixed;
    bottom: 85px;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: #000000;
    /* Noir Premium */
    color: white;
    border: 3px solid var(--gold);
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    cursor: pointer;
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.feed-fab:hover {
    transform: translateX(-50%) scale(1.1);
    box-shadow: 0 15px 30px rgba(0, 35, 102, 0.5);
}

.feed-fab:active {
    transform: translateX(-50%) scale(0.95);
}