/**
 * Fichier  : /features/cookies/assets/css/style.css
 * Fonction : pop up gestion des cookies 1/2
 */


/* ==================================================
   POPUP COOKIES
================================================== */

.cookies {
    position: fixed;
    bottom: 3em;
    left: 3em;
    z-index: 100;
}

.cookies {
    width: fit-content;
}

.cookies {
    background: var(--main-background);
    border-radius: var(--radius-lg, 18px);
    border: 1px solid var(--color-border);
    box-shadow: 0 5px 20px #00000050;
}

.cookies {
    box-sizing: border-box;
    padding: 1.5em;
}

.cookies {
    display: none;
    opacity: 0;
    transform: translateY(30px) scale(0.96);
    transition:
        opacity .45s ease,
        transform .45s ease;
}


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

.cookies .inner {
    display: flex;
    flex-direction: column;
    gap: 1.3em;
}

.cookies .inner header {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cookies .inner header img {
    width: auto;
    height: 2em;
}

.cookies .inner header h4,
.cookies .inner p {
    color: var(--color-white);
}

.cookies .inner header h4 {
    font-family: 'bold-font', Arial, sans-serif;
    font-size: 18px;
    font-weight: 400;
}

.cookies .inner p {
    max-width: 33em;
}

.cookies .inner p {
    font-family: 'content-font', Arial, sans-serif;
    font-size: 13px;
    text-align: justify;
    line-height: 18px;
}


/* ==================================================
   BOUTONS
================================================== */

.cookies .inner .buttons {
    width: 100%;
}

.cookies .inner .buttons {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .5em;
}

.cookies .inner .buttons div {
    display: flex;
    gap: .5em;
}

.cookies .inner .buttons a {
    box-sizing: border-box;
    padding: 10px 20px;
}

.cookies .inner .buttons a {
    display: flex;
    align-items: center;
    justify-content: center;
}


/* ==================================================
   ANIMATIONS
================================================== */

.cookies.cookiesIn {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.cookies.cookiesOut {
    opacity: 0;
    transform: translateY(20px) scale(0.96);
}

/*** PERSONNALISATION ***/

.cookies-customize {
    opacity: 0;
    transition: opacity var(--transition-soft, .3s ease);
}

.cookies-customize .inner {
    transform: translateY(30px) scale(0.96);
    transition: transform .3s ease;
}

.cookies-customize.cookiesSettingsIn {
    opacity: 1;
}

.cookies-customize.cookiesSettingsIn .inner {
    transform: translateY(0) scale(1);
}

.cookies-customize.cookiesSettingsOut {
    opacity: 0;
}

.cookies-customize.cookiesSettingsOut .inner {
    transform: translateY(20px) scale(0.98);
}


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

@media screen and (max-width: 1024px) {

    .cookies {
        bottom: 3em;
        left: 1em;
        right: 1em;
    }

    .cookies {
        width: auto;
    }

    .cookies .inner .buttons a {
        padding: 8px 16px;
    }

    .cookies .inner .buttons a,
    .cookies .inner .buttons div {
        width: 100%;
    }

}