/*
 Theme Name:   Divi Child
 Theme URI:    http://www.elegantthemes.com/gallery/divi/
 Description:  Thème enfant pour Divi
 Author:       Manampisoa
 Author URI:   http://exemple.com
 Template:     Divi
 Version:      1.0.0
*/

#content-realisation-gallerie .filters{
    display:flex;gap:10px;padding:10px;justify-content:center;
}
#content-realisation-gallerie .filters button{
    background:#fff;
    color:#FC6725;
    border:none;
    padding:8px 14px;
    border-radius:6px;
    cursor:pointer;
    transition:background .2s;
    border:solid 1px #FC6725;
}
#content-realisation-gallerie .filters button.active,
#content-realisation-gallerie .filters button:hover{
    background:#FC6725; color: #FFF
}

#content-realisation-gallerie .gallery img.visible {
    transform: scale(1);
    opacity: 1;
}

#content-realisation-gallerie .gallery{
    display:grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin: auto;
}
@media(max-width:800px){
    #content-realisation-gallerie .gallery
    {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media(max-width:500px){
    #content-realisation-gallerie .gallery{ grid-template-columns: 1fr;}
}
#content-realisation-gallerie .gallery img{
    width:100%;
    height:300px;
    object-fit:cover;
    cursor:pointer;
    border-radius:6px;
    transition: transform .2s;

    /* Animation initiale */
    transform: scale(0.8);
    opacity: 0;
    transition: transform 0.6s ease, opacity 0.6s ease;
}

#content-realisation-gallerie .gallery img:hover{ transform: scale(1.03); }

#content-realisation-gallerie .lightbox{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,0.9);
    display:none;
    align-items:center;
    justify-content:center;
    z-index:10000;
}
#content-realisation-gallerie .lightbox.active{
    display:flex;
}
#content-realisation-gallerie .lightbox img{
    max-width:90%;
    max-height:90%;
    border-radius:6px;
    opacity:0;
    transition:opacity 0.3s ease;
}
#content-realisation-gallerie .lightbox img.show
{
    opacity:1;
}
#content-realisation-gallerie .nav{
    position:absolute;
    top:50%;transform:translateY(-50%);
    font-size:2.5rem;
    background:rgba(0,0,0,0.5);
    border-radius:50%;
    width:60px;
    height:60px;
    display:flex;
    align-items:center;
    justify-content:center;
    cursor:pointer;
    user-select:none; color: #FFFFFF;
}
#content-realisation-gallerie .nav.left{
    left:20px;
}
#content-realisation-gallerie .nav.right{
    right:20px;
}
#content-realisation-gallerie .controls{
    position:absolute;
    top:40px;
    right:20px;
    display:flex;
    gap:10px;
}
#content-realisation-gallerie .btn{
    font-size:1.2rem;
    background:rgba(0,0,0,0.6);
    border-radius:6px;
    padding:6px 10px;
    cursor:pointer;
    color: #ffffff;
}
#content-realisation-gallerie .btn:hover
{
    background:rgba(255,255,255,0.2);
}

#content-realisation-gallerie .controls{
    z-index: 10;
}

#content-realisation-gallerie .dropdown {
    position: relative;
    display: inline-block;
}

#content-realisation-gallerie .dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: #FFF;
    border-radius: 6px;
    min-width: 200px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.4);
    z-index: 2000;
    padding: 8px 0;
}

#content-realisation-gallerie .dropdown-item {
    width: 100%;
    text-align: left;
    padding: 4px 12px;
    background: transparent;
    border: none;
    color: #000;
    cursor: pointer;
    font-size: 12px;
}

#content-realisation-gallerie .dropdown-item:hover {
    background: rgba(255,255,255,0.2);
}

#content-realisation-gallerie .dropdown.show .dropdown-menu
{
    display: block;
}

#shareFb i{ color: #1877F2; }
#shareTw i{ color: #1DA1F2; }
#sharePin i{ color: #E60023; }
#downloadImg i{ color: #aaa; }
