/*
==========================================================
LIBURU
css/footer.css
==========================================================
*/

/* ==========================================================
   FOOTER
========================================================== */

#footer{
    width:100%;
    background:#ffffff;
    border-top:1px solid #dcdcdc;
    padding:15px 20px;
    box-sizing:border-box;
    font-size:14px;
    position:fixed;
    bottom:0;
    left:0;
    z-index:900;
}

#footer-links{
    display:flex;
    justify-content:center;
    align-items:center;
    flex-wrap:wrap;
    gap:8px;
}

#footer-pwa
{
    display:none;
    width:100%;
    justify-content:center;
    align-items:center;
    text-align:center;
}

/* ==========================================================
   MODE PWA
========================================================== */

#footer.pwa-mode #footer-links
{
    display:none;
}

#footer.pwa-mode #footer-pwa
{
    display:flex;
}

/* ==========================================================
   LIENS
========================================================== */

.footer-link{
    cursor:pointer;
    color:#4d6b8a;
    transition:0.2s;
    user-select:none;
}

.footer-link:hover{
    color:#2196F3;
}

.footer-separateur{
    color:#bdbdbd;
}

#footer-version,
#footer-copyright{
    color:#777;
    user-select:none;
}

/* ==========================================================
   POPUPS
========================================================== */

.footer-popup{

    display:none;

    position:fixed;

    top:0;
    left:0;

    width:100%;
    height:100%;

    background:rgba(0,0,0,.45);

    z-index:9999;

    justify-content:center;
    align-items:center;

    padding:30px;
    box-sizing:border-box;

}

/* affichage */

.footer-popup.active{
    display:flex;
}

/* ==========================================================
   CONTENU
========================================================== */

.footer-popup-content{

    position:relative;

    background:#ffffff;

    width:100%;
    max-width:850px;

    max-height:85vh;

    overflow-y:auto;

    border-radius:10px;

    padding:35px;

    box-sizing:border-box;

    box-shadow:0 10px 35px rgba(0,0,0,.25);

}

/* ==========================================================
   TITRES
========================================================== */

.footer-popup-content h1,
.footer-popup-content h2{
    margin-top:0;
    color:#2c3e50;
}

.footer-popup-content p{
    line-height:1.7;
    color:#444;
    margin-bottom:15px;
}

.footer-popup-content ul{
    padding-left:20px;
}

.footer-popup-content li{
    margin-bottom:8px;
}

/* ==========================================================
   FERMETURE
========================================================== */

.footer-popup-close{

    position:absolute;

    top:15px;
    right:20px;

    font-size:30px;

    cursor:pointer;

    color:#999;

    transition:.2s;

    user-select:none;

}

.footer-popup-close:hover{
    color:#d32f2f;
}

/* ==========================================================
   SCROLLBAR
========================================================== */

.footer-popup-content::-webkit-scrollbar{
    width:10px;
}

.footer-popup-content::-webkit-scrollbar-thumb{
    background:#bcbcbc;
    border-radius:10px;
}

.footer-popup-content::-webkit-scrollbar-track{
    background:#f5f5f5;
}

/* ==========================================================
   FORMULAIRE CONTACT
========================================================== */

.contact-ligne{
    display:flex;
    flex-direction:column;
    margin-bottom:18px;
}

.contact-ligne label{
    margin-bottom:6px;
    font-weight:600;
    color:#2c3e50;
}

.contact-ligne input,
.contact-ligne textarea{

    width:100%;

    padding:12px 14px;

    font-size:15px;

    border:1px solid #d5d5d5;

    border-radius:8px;

    background:#fafafa;

    box-sizing:border-box;

    transition:.2s;

    outline:none;

    font-family:inherit;

}

.contact-ligne textarea{

    resize:vertical;

    min-height:180px;

}

.contact-ligne input:focus,
.contact-ligne textarea:focus{

    border-color:#2196F3;

    background:#ffffff;

    box-shadow:0 0 0 3px rgba(33,150,243,.15);

}

.contact-actions{

    display:flex;

    justify-content:flex-end;

    margin-top:25px;

}

#btnContact{

    background:#2196F3;

    color:#fff;

    border:none;

    border-radius:8px;

    padding:12px 26px;

    font-size:15px;

    font-weight:600;

    cursor:pointer;

    transition:.2s;

}

#btnContact:hover{

    background:#1976D2;

}

#btnContact:active{

    transform:scale(.98);

}

#contactResultat{

    margin-top:20px;

    text-align:center;

    font-weight:600;

}

/* ==========================================================
   RESPONSIVE
========================================================== */

/*
==========================================================
TABLETTE
==========================================================
*/

@media (max-width:768px)
{

    #footer
    {
        font-size:12px;

        padding:
            12px 15px;
    }



    #footer-links
    {
        gap:6px;
    }



    .footer-popup
    {
        padding:15px;
    }



    .footer-popup-content
    {
        padding:25px;

        max-height:90vh;
    }

}



/*
==========================================================
MOBILE
==========================================================
*/

@media (max-width:500px)
{

    #footer
    {
        padding:
            12px 10px;

        font-size:12px;
    }



    #footer-links
    {
        display:flex;

        flex-direction:column;

        justify-content:center;

        align-items:center;

        gap:6px;

        width:100%;
    }



    /*
    ======================================================
    LIENS
    ======================================================
    */

    .footer-link
    {
        display:block;

        text-align:center;

        line-height:1.4;
    }



    /*
    ======================================================
    SEPARATEURS

    Inutiles en colonne
    ======================================================
    */

    .footer-separateur
    {
        display:none;
    }



    /*
    ======================================================
    VERSION / COPYRIGHT
    ======================================================
    */

    #footer-version,
    #footer-copyright
    {
        display:block;

        text-align:center;

        line-height:1.4;
    }



    /*
    ======================================================
    POPUPS
    ======================================================
    */

    .footer-popup
    {
        padding:
            10px;
    }



    .footer-popup-content
    {
        width:100%;

        max-height:
            calc(100vh - 20px);

        padding:
            25px 20px;

        border-radius:10px;
    }



    /*
    ======================================================
    FERMETURE
    ======================================================
    */

    .footer-popup-close
    {
        top:10px;

        right:15px;

        font-size:28px;
    }

}