﻿/* 🌍 Reset global */
html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    width: 100%;
    display: flex;
    background-color: black;
    overflow: hidden;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}
.icon-filter {
    filter: brightness(0) invert(1); /* Blanc */
}

/* 🌐 Menu latéral */
.sidebar {
    width: 12rem; /* w-48 */
    background: linear-gradient(180deg, #1c2f2f 0%, #1A1A1A 100%);
    color: #F5F5DC;
    height: 100vh;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    backdrop-filter: blur(10px);
    position: relative;
}
.sidebar a:hover {
    color: #D2B48C; /* Beige clair, ou toute couleur de ton choix */
    transition: color 0.3s ease;
}


/* 📌 Contenu principal */
.content {
    flex: 1;
    height: 100vh;
    overflow-y: scroll;
    overflow-x: hidden;
    background-color: black;
    display: flex;
    flex-direction: column;
}

/* 📷 Galerie */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
    margin: 0;
    padding: 10px;
}

    .gallery img {
        width: 100%;
        height: auto;
        object-fit: contain;
        transition: transform 0.5s ease-in-out, opacity 0.6s ease;
        border-radius: 0px;
        box-shadow: 0 4px 10px rgba(0,0,0,0.5);
        opacity: 0;
        transform: translateY(10px);
        cursor: pointer;
    }

        .gallery img.loaded {
            opacity: 1;
            transform: translateY(0);
        }

        .gallery img:hover {
            transform: scale(1.05);
        }

/* 📷 Container image */
.custom-img-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    background-color: #000;
}

.custom-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.5s ease-in-out;
}

.custom-img:hover {
    transform: scale(1.05);
}

.custom-img-container {
    position: relative;
    width: 100%;
    height: auto;
    padding-top: 125%; /* Ratio 3:2 ou ajuste selon tes photos */
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transition: transform 0.5s ease-in-out;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
}


.custom-img-container:hover {
    transform: scale(1.05);
}


/* 🚀 Mode Mobile */
@media (max-width: 768px) {
    html, body {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        height: 100vh;
        position: fixed;
        transform: translateX(-100%);
        transition: transform 0.3s ease-in-out;
        z-index: 50;
    }

        .sidebar.active {
            transform: translateX(0);
        }

    .content {
        width: 100%;
        height: auto;
    }

    .gallery {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        max-width: 95%;
    }

    .menu-toggle {
        display: block;
        position: fixed;
        top: 15px;
        left: 15px;
        background: #2C2C2C;
        color: #F5F5DC;
        border: none;
        padding: 10px 15px;
        cursor: pointer;
        font-size: 18px;
        z-index: 100;
        border-radius: 5px;
    }
}
