/* --- BASE --- */
* { box-sizing: border-box; }
html, body {
    margin: 0;
    padding: 0;
    background-color: white;
    font-family: 'Segoe UI', sans-serif;
    color: white;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
body{
    margin-top: 130px;
}
.top-badge {
    position: absolute;
    top: 15px;
    left: 0;
    z-index: 10;
}

.badge-salle {
    background: linear-gradient(90deg, #6200ee, #7c4dff);
    color: white;
    padding: 8px 30px 8px 15px;
    font-weight: bold;
    text-transform: uppercase;
    /* Crée l'effet biseauté de la photo */
    clip-path: polygon(0 0, 100% 0, 85% 100%, 0 100%);
}
.fa-solid{
        font-size:25px;
    }

/* --- VERSION MOBILE (< 1024px) --- */
@media screen and (max-width: 1023px) {
    body { 
        overflow: hidden; 
        width:100%;
        margin-top: 80px;
    }
    .fa-solid{
        font-size:25px;
    }
    .reels-container {
        height: 100vh;
        width: 100%;
        overflow-y: scroll;
        scroll-snap-type: y mandatory;
        scrollbar-width: none;
    }
    .reels-container::-webkit-scrollbar { display: none; }
    .reel-block {
        width: 100%;
        height: 100%;
        scroll-snap-align: start;
        position: relative;
    }
    .btn-like-reel, .btn-info{
        font-size:50px;
    }
    .filter-btn{
        font-size:20px;
    }
}

/* --- VERSION PC (S'adapte à toutes les tailles) --- */
@media screen and (min-width: 1024px) {
    body { 
        overflow-y: auto; 
            
    }

    .reels-container {
        flex: 1; /* Pousse le footer vers le bas même s'il y a peu de projets */
        display: grid;
        /* Crée des colonnes auto-adaptables (minimum 320px, maximum 1 part égale) */
        grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
        gap: 30px;
        padding: 50px 5%; /* Marge de 5% sur les côtés pour respirer */
        width:100%;
        max-width: 1800px; /* Empêche d'être trop large sur les écrans ultra-wide */
        margin: 0 auto;
    }

    .reel-block {
        width: 100%; /* Prend toute la place de sa colonne de grille */
        aspect-ratio: 9 / 16; /* Garde le format vertical parfait */
        max-height: 95vh; /* Évite que le projet ne dépasse de l'écran en hauteur */
        border-radius: 20px;
        position: relative;
        overflow: hidden;
        box-shadow: 0 10px 30px rgba(0,0,0,0.5);
        transition: transform 0.3s ease;
    }

    .reel-block:hover {
        transform: scale(1.02);
    }
}

/* --- ÉLÉMENTS INTERNES --- */
.reel-img { width: 100%; height: 100%; object-fit: cover; }

.reel-overlay {
    position: absolute;
    bottom: 0px; left: 0; width: 100%;
    padding: 25px;
    background: linear-gradient(transparent, rgba(0,0,0,0.9));
    z-index: 5;
    padding-bottom: 30px;
    color:white;
}

.badge-pole { background: #ff4757; padding: 5px 10px; border-radius: 4px; font-weight: bold; font-size: 0.8rem; }
.reel-overlay h1 { margin: 10px 0; font-size: 1.4rem; }

.actions-overlay {
    position: absolute;
    right: 15px; bottom: 160px;
    display: flex; flex-direction: column; gap: 15px; z-index: 10;
    color:white;
}

.btn-like-reel, .btn-info {
    background: rgba(255, 255, 255, 0.2);
    border: none; 
    border-radius: 50%;
    width: 50px; 
    height: 50px; 
    color: white;
    cursor: pointer; 
    backdrop-filter: blur(5px);
    display: flex; 
    align-items: center; 
    justify-content: center;
    
}
.filter-container {
    background-color:transparent;
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 35px;
    flex-wrap: wrap;
    position: absolute;
    top: 100px;
    z-index: 10;
    width: 100%
}

.filter-btn {
    padding: 10px 20px;
    border: 3px solid #000;
    background: #fff;
    font-weight: 900;
    cursor: pointer;
    box-shadow: 4px 4px 0px #000;
    transition: all 0.2s;
    text-transform: uppercase;
}

.filter-btn:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0px #000;
}

.filter-btn.active {
    background: #f1c40f; /* Jaune MMI */
    transform: translate(2px, 2px);
    box-shadow: 0px 0px 0px #000;
}

.reel-card {
    transition: opacity 0.3s ease;
}
footer{
    display:none;
}