/**
 * Fichier  : /features/powered-by/assets/css/style.css
 * Fonction : style bouton 'powered by'
 */


/* ==================================================
   BOUTON
================================================== */

#poweredby {
    position: fixed;
    bottom: 1.8em;
    /* right: 5.5em; (script.js) */
    z-index: 100;
}

#poweredby {
    width: auto;
    height: 3em;
}

#poweredby {
    box-sizing: border-box;
    padding: 0 15px;
}

#poweredby {
    background-color: #342a49;
    border: 1px solid #564677;
    border-radius: var(--block-borderRadius);
    box-shadow: 0 0 28px #00000050;
}


/* ==================================================
   CONTENU
================================================== */

#poweredby a {
    width: 100%;
    height: 100%;
}

#poweredby a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

#poweredby a img {
    width: auto;
    height: 50%;
}

#poweredby a p {
    font-family: 'content-font';
    font-size: .65em;
    color: #fff;
}

#poweredby a p span {
    font-family: 'bold-font';
}


/* ==================================================
   TRANSITIONS
================================================== */

#poweredby {
    transition: right .35s cubic-bezier(.22, 1, .36, 1);
}


/* ==================================================
   RESPONSIVE
================================================== */

@media screen and (max-width: 1024px) {

    #poweredby {
        bottom: 1.2em;
    }

    #poweredby {
        padding: 0 10px;
    }

    #poweredby a img {
        height: 45%;
    }

    #poweredby a p {
        font-size: .6em;
    }

    /*** VISIBILITÉ ***/

    #poweredby {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(20px) scale(.85);
        transition:
            right .35s cubic-bezier(.22, 1, .36, 1),
            opacity .35s ease,
            transform .35s cubic-bezier(.22, 1, .36, 1);
    }

    #poweredby.PoweredByVisible {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0) scale(1);
    }

}