/* Fichier : assets/css/style.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, html {
    width: 100%;
    height: 100%;
    background-color: #000; /* Fond noir obligatoire pour les vidéos */
    color: #fff;
    font-family: Arial, sans-serif;
    overflow: hidden; /* Empêche le scroll global, on scrolle dans .video-feed */
}

.app-container {
    height: calc(100vh - 60px); /* Laisse la place au menu du bas */
    width: 100vw;
    position: relative;
}

/* LE SECRET DU SCROLL TIKTOK */
.video-feed {
    height: 100%;
    overflow-y: scroll;
    scroll-snap-type: y mandatory; /* Force l'arrêt sur chaque vidéo */
    scroll-behavior: smooth;
}

/* Cacher la barre de défilement pour un look natif app */
.video-feed::-webkit-scrollbar {
    display: none;
}

.video-container {
    height: 100%;
    width: 100%;
    scroll-snap-align: start; /* Aligne parfaitement la vidéo en haut */
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #111;
}

.video-player {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Remplit l'écran sans déformer */
}

/* Actions latérales (J'aime, Commentaire) */
.sidebar-actions {
    position: absolute;
    right: 15px;
    bottom: 80px;
    display: flex;
    flex-direction: column;
    gap: 25px;
    z-index: 10;
}

.action-btn {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
    text-align: center;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.8);
    transition: transform 0.2s;
}

.action-btn:active {
    transform: scale(0.8); /* Petit effet de clic */
}

.action-btn span {
    display: block;
    font-size: 12px;
    margin-top: 5px;
}

/* Navigation bas */
.bottom-nav {
    height: 60px;
    width: 100%;
    background-color: #000;
    border-top: 1px solid #333;
    display: flex;
    justify-content: space-around;
    align-items: center;
    position: fixed;
    bottom: 0;
    z-index: 100;
}

.bottom-nav a {
    color: #888;
    font-size: 24px;
    text-decoration: none;
}

.bottom-nav a.active {
    color: #fff;
}