/* ---------------------------------------------------------------------------------------------------------------------- */

/*  START COOKIE BANNER AND CITATION */

/* ---------------------------------------------------------------------------------------------------------------------- */

/* cookie banner and citation container */
.bottom-float-container.apear {
    will-change: transform;
    animation: apearHeaderCookieBannerCitationDomLoaded 300ms ease both;
}
/* resposive */
@media (max-width: 1024px) {
    .bottom-float-container {
        width: calc(100% - 24px);
    }
}

.bottom-float-container.bottom-banner-desapear-on-scroll {
    transform: translateY(100%);
}
.cookie-banner-citation-container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
    height: 48px;
    max-width: 1424px;
    margin: 0 auto;
    padding: 16px 152px;
}

/* cookies banner */
#cookie-banner-container {
    display: none;
}
#cookie-banner-container.open {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 16px;
    max-width: 400px;
    padding: 24px;
    border-radius: 32px 32px 32px 0px;
    transition: 300ms ease-in;
    will-change: transform;
}
/* responsive */
@media (max-width: 768px) {
    #cookie-banner-container {
        width: calc(100vw - 100px);
    }
}
#cookies-consents-form {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 16px;
}
/* cookies banner content */
body.dark #cookie-banner-container p {
    color: var(--white-color);
    opacity: 0.7;
}
/* cookies banner buttons */
body.light form input[type="submit"].secondary-form-button {
    color: var(--white-color);
    border: 1px solid var(--white-color);
    border-color: var(--white-color);
    background: transparent;
    transition: 300ms ease-in;
    will-change: background, border, color;
}
form input[type="submit"].primary-form-button {
    transition: 300ms ease-in;
}
/* hover effect */
body.light form input[type="submit"].secondary-form-button:hover {
    background: rgba(255, 255, 255, 0.3);
}
body.dark form input[type="submit"].secondary-form-button {
    background: transparent;
    border: 1px solid var(--white-color);
    color: var(--white-color);
    transition: 300ms ease-in;
}
body.dark form input[type="submit"].secondary-form-button:hover {
    background: rgba(255, 172, 238, 0.5);
}
form input[type="submit"].primary-form-button:hover {
    transform: translateY(-4px) scale(1.01);
}
/* cookie banner desapear on scrool */
.bottom-float-container.bottom-banner-desapear-on-scroll #cookie-banner-container {
    transform: translateY(100%);
}

/* custom consent modal */
#custom-cookies-consent-modal {
    display: none;
}
#custom-cookies-consent-modal.open {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9998;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100vw;
    height: 100vh;
    background: rgba(8, 0, 26, 0.7);
}
#custom-cookies-consent-modal .custom-cookies-consent-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 16px;
    max-width: 768px;
    width: calc(100vw - 64px);
    height: fit-content;
    padding: 24px;
    border-radius: 16px;
    background: var(--white-color);
}
body.light .custom-cookies-consent-container strong, body.light .custom-cookies-consent-container label, body.dark .custom-cookies-consent-container strong, body.dark .custom-cookies-consent-container label {
    color: var(--dark-color);
}
body.light .custom-cookies-consent-container p, body.dark .custom-cookies-consent-container p {
    color: var(--darkness-color);
}
/* head consent modal */
#custom-cookies-consent-modal .head {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}
/* close button consent modal */
#custom-cookies-close-modal {
    position: relative;
    width: 16px;
    height: 16px;
    cursor: pointer;
}
#custom-cookies-close-modal div {
    position: absolute;
    top: 8px;
    width: 16px;
    height: 1px;
    background: var(--dark-color);
}
#custom-cookies-close-modal div:first-child {
    transform: rotate(45deg);
}
#custom-cookies-close-modal div:last-child {
    transform: rotate(-45deg);
}
/* choices description */
#custom-cookies-consent-modal #custom-cookies-consent {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 16px;
}
#custom-cookies-consent-modal .content-cookie-description {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 8px;
}
#custom-cookies-consent-modal .content-cookie-description label {
    position: initial;
    color: var(--dark-color);
    font-size: 16px;
}
#custom-cookies-consent-modal .content-choice-cookie {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
#custom-cookies-consent-modal .content-choice-cookie input {
    width: fit-content;
    margin-left: 124px;
    margin-right: 24px;
}
/* toggle */
#custom-cookies-consent label.switch {
    left: 0px!important;
}
/* responsive */
@media (max-width: 1024px) {
    #custom-cookies-consent-modal .content-choice-cookie input {
        width: fit-content;
        margin-left: 24px;
        margin-right: 16px;
    }
}

/* openner cookies banner */
#openner-consent-banner {
    width: 24px;
    height: 24px;
    padding: 16px;
    border: 1px solid rgba(246, 236, 246, 0.5);
    border-radius: 32px 32px 32px 0px;
    cursor: pointer;
}
body.light #openner-consent-banner {
    background: rgba(8, 0, 26, 0.7);
}
body.dark #openner-consent-banner {
    background: var(--grey-bg);
}
#openner-consent-banner svg {
    width: 100% !important;
    height: 100% !important;
}
#openner-consent-banner svg path {
    fill: var(--white-color);
}
#openner-consent-banner.close {
    display: none;
}

body.light #cookie-banner-container strong {
    color: var(--white-color);
}
body.light #cookie-banner-container p {
    color: var(--lightness-color);
}
body.light .citation-container {
    background: rgba(8, 0, 26, 0.7);
    border: 1px solid rgba(246, 236, 246, 0.5);
}
body.light #cookie-banner-container {
    background: var(--dark-color);
    border: 1px solid rgba(246, 236, 246, 0.5);
}
body.dark #cookie-banner-container, body.dark .citation-container {
    background: var(--grey-bg);
    border: 1px solid rgba(246, 236, 246, 0.5);
}

/* citation container */
.citation-container {
    padding: 14px 24px;
    border-radius: 32px 32px 0px 32px;
}
.citation-container p {
    color: var(--white-color) !important;
}

/* responsive */
/* mobile */
@media (max-width: 768px) {

    .cookie-banner-citation-container {
        padding: 8px 16px;
    }

}
/* tablette */
@media (min-width: 769px) and (max-width: 1024px) {

    .cookie-banner-citation-container {
        padding: 16px 56px;
    }

}

/* ---------------------------------------------------------------------------------------------------------------------- */

/*  END COOKIE BANNER AND CITATION */

/* ---------------------------------------------------------------------------------------------------------------------- */