﻿#cookie-banner {
    background-color: white;
    width: 100%;
    position: fixed;
    /*relative si on veux le customslider visible tout le temps sinon absolute */
    bottom: 0;
    padding: 5px 0px;
    -moz-box-shadow: 2px 2px 4px #aaa;
    -webkit-box-shadow: 2px 2px 4px #aaa;
    box-shadow: 2px 2px 4px #555;
    -webkit-animation-duration: 3s;
    animation-duration: 3s;
    -webkit-animation-fill-mode: both;
    animation-fill-mode: both;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) !important;
    max-width: 900px;
    border-radius: 12px;
    min-height: 50%;
    height: auto;
    overflow: hidden;
    z-index: 1057;
}

.cookie-consent {
    text-align: left !important;
    color: black;
    padding: 15px 30px 15px 30px;
}

.cookie-close {
    font-size: 10px;
    position: relative;
    top: 3px;
}

.cookie-title {
    font-weight: bold;
}

.btn-cookies-reject,
.btn-cookies-settings {
    /*background-color: lightgray;*/
    color: black;
    margin: 5px;
}

    .btn-cookies-reject:hover,
    .btn-cookies-settings:hover {
        box-shadow: 2px 2px 4px gray;
    }

.btn-cookies-accept {
    background-color: black;
    color: white;
    margin: 5px;
}

    .btn-cookies-accept:hover {
        color: black;
        box-shadow: 2px 2px 4px black;
    }

.p-wrap {
    white-space: break-spaces;
}

.cookieBoxShadow {
    box-shadow: -2px 0px 3px 0px #aaaaaa;
    margin-top: -5px;
    margin-bottom: -5px;
}

.aboutUsClose {
    position: absolute;
    top: 10px;
    right: 10px;
    font-weight: bold;
    opacity: .5;
}

@-webkit-keyframes bounceInUp {
    0% {
        opacity: 0;
        -webkit-transform: translateY(2000px);
    }

    60% {
        opacity: 1;
        /*-webkit-transform: translateY(2000px);*/
    }

    80% {
        -webkit-transform: translateY(10px);
    }

    100% {
        -webkit-transform: translateY(0);
        position: sticky !important;
    }
}

@keyframes bounceInUp {
    0% {
        opacity: 0;
        transform: translateY(2000px);
    }

    60% {
        opacity: 1;
        /*transform: translateY(-30px);*/
    }

    80% {
        transform: translateY(10px);
    }

    100% {
        transform: translateY(0);
        position: sticky !important;
    }
}

.bounceInUp {
    -webkit-animation-name: bounceInUp;
    animation-name: bounceInUp;
    z-index: 10000;
}

.cookie-buttons {
    width: 100%;
    padding-bottom: 20px;
    position: absolute;
    bottom: 0;
    display: block;
    align-items: center;
}

    .cookie-buttons button {
        border-radius: 28px;
        width: auto;
        min-width: 140px;
        padding: 10px 15px;
    }

.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

    .switch input {
        opacity: 0;
    }

#modalConsentCookies .modal-dialog.modal-lg {
    margin: 30px auto;
}

#modalConsentCookies .modal-content {
    height: 645px;
    overflow: hidden;
}

#modalConsentCookies .modal-title.heading {
    text-align: center;
    display: inline-block;
}

#modalConsentCookies .modal-body {
    max-height: calc(100% - 65px);
    overflow: auto;
}

#modalConsentCookies ul li {
    list-style-position: inside;
}

#cookie-backdrop { 
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1054;
    background: rgb(0 0 0 / 39%);
    backdrop-filter: blur(9px) saturate(160%);
}

#cookie-banner > .row > div {
    padding: 20px;
}

#cookie-banner > .row {
    position: relative;
}

    #cookie-banner > .row:first-child {
        box-shadow: 2px 0 5px rgba(0, 0, 0, 0.2);
    }

.cookie-text hr {
    margin-top: 20px;
    margin-bottom: 20px;
    border: 0;
    border-top: 1px solid #ccc;
    width: 100%;
}

.cookie-col {
    position: relative;
    padding-bottom: 80px;
}

.separator-right {
    box-shadow: 10px 0 20px -15px rgba(115, 115, 115, 0.75);
}

.btn-close.aboutUsClose {
    position: absolute;
    display: flex;
    right: 0;
    z-index: 1035;
}

.cookieConsent {
    display: grid;
    grid-template-columns: 40% 60%;
    grid-template-rows: 100%;
    height: 100%;
    gap: 0px 0px;
    grid-auto-flow: unset;
    grid-template-areas: "cookieConsent_Pics cookieConsent_Right";
    overflow: hidden;
    margin: 0;
    bottom: 0;
    top: 0;
    position: inherit;
}

.cookieConsent_Pics {
    position: relative;
    grid-area: cookieConsent_Pics;
    width: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
}

    .cookieConsent_Pics a {
        color: white;
        text-decoration: underline;
        height: 26px;
        padding: 6px;
    }

        .cookieConsent_Pics a:hover {
            color: rgba(var(--bs-link-color-rgb), var(--bs-link-opacity, 1));
            text-decoration: underline;
        }

.cookieConsent_Right {
    display: grid;
    grid-area: cookieConsent_Right;
    grid-template-columns: 100%;
    grid-template-rows: 40px calc(100% - 110px) 70px;
    gap: 0px 0px;
    grid-auto-flow: row;
    grid-template-areas:
        "cookieConsent_Reject"
        "cookieConsent_Text"
        "cookieConsent_Button";
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(18px) saturate(180%);
    align-items: center;
}

.cookieConsent_Reject {
    grid-area: cookieConsent_Reject;
}

.cookieConsent_Text {
    grid-area: cookieConsent_Text;
}

.cookieConsent_Privacy {
    grid-area: cookieConsent_Privacy;
    grid-area: 2 / 1 / 2 / 2;
}

.cookieConsent_Button {
    grid-area: cookieConsent_Button;
    justify-content: flex-end;
    gap: 18px;
}

/* ===== Utilities ===== */

.pb-0 {
    padding-bottom: 0 !important;
}

.mx-5-custom {
    margin-left: 3rem;
    margin-right: 3rem;
}

.text-justify {
    text-align: justify;
}

.z-modal {
    z-index: 1058 !important;
}

.max-w-600 {
    max-width: 600px;
}

.btn-rounded {
    border-radius: 10px;
    padding: var(--bs-btn-padding-y) var(--bs-btn-padding-x);
}

.btn-white {
    background-color: #ffffff;
}

.btn-uppercase {
    text-transform: uppercase;
}

/* ===== Cookie image ===== */

.cookie-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    overflow-clip-margin: content-box;
    overflow: clip;
    position: absolute;
    left: 0;
    top: 0;
    z-index: -1;
}

/* ===== Reject button ===== */

.cookie-reject-btn {
    display: flex;
    width: auto;
    margin-left: auto !important;
    justify-content: flex-end;
    align-items: center;
    font-size: smaller;
    gap: 4px;
    --bs-btn-close-bg: none;
}

/* ===== Modal helpers ===== */

.modal-z {
    z-index: 1058 !important;
}

.CookieConsentTextIntro {
    margin: 1rem 3rem;
}

    .CookieConsentTextIntro li {
        list-style-type: disc;
        margin-left: 50px;
    }

    .CookieConsentTextIntro p {
        margin: 0;
    }

@media (max-width: 767px) {
    .cookie-text {
        /*display: none;*/
        display: inline !important;
    }

    .cookie-title {
        cursor: pointer;
    }

    .btn-cookies-reject,
    .btn-cookies-accept,
    .btn-cookies-settings {
        width: 100%;
    }

    .cookie-buttons {
        text-align: center;
    }

    .visit-bnetwork-display-none {
        display: none !important;
    }
}

@media (min-width: 768px) {
    .cookie-text {
        display: inline !important;
    }

    #cookie-banner {
        max-width: 900px;
        margin-left: 10px;
        margin-bottom: 15px;
    }

    .cookie-buttons {
        text-align: left;
    }

    .btn-cookies-settings {
        float: right;
    }

    .separator {
        border-left: 2px solid #dee2e6;
        box-shadow: 3px 0 5px rgba(0, 0, 0, 0.1);
    }
}

@media (max-width: 1240px) {
    .CookieConsentTextIntro p {
        font-size: 0.85rem;
    }

    .CookieConsentTextIntro li {
        font-size: 0.85rem;
    }
}

/* Mobile-specific styles */
@media (max-width: 768px) {
    #cookie-banner {
        min-height: 80%;
    }

    .cookieConsent {
        grid-template-rows: 30% 70%;
        grid-template-columns: 100%;
        grid-template-areas:
            "cookieConsent_Pics"
            "cookieConsent_Right";
    }

    .cookieConsent_Pics {
        bottom: 0;
        height: 100%;
        position: absolute;
    }

    .flex-column-mobile {
        flex-direction: column;
        gap: 0.5rem;
    }

        .flex-column-mobile .btn {
            width: 100%;
            margin-bottom: 0.5rem;
        }

    .cookie-buttons {
        position: relative;
    }

    .cookie-col {
        padding-bottom: unset;
    }

    .cookieConsent_Right {
        grid-template-rows: 40px calc(100% - 150px) 110px;
    }
}

@media (max-width: 600px) {
    .cookie-title {
        font-size: 1.05rem;
        margin-right: 1.5rem !important;
        margin-left: 1.5rem !important;
    }

    .CookieConsentTextIntro {
        font-size: 0.9rem;
        margin-right: 1.5rem !important;
        margin-left: 1.5rem !important;
    }

        .CookieConsentTextIntro p {
            font-size: 0.95rem;
        }

    #cookie-banner {
        min-height: 70%;
        height: 100%;
        max-height: 90%;
    }

    .cookie-col {
        height: 100%;
        overflow: auto;
    }

    #modalConsentCookies .modal-dialog.modal-lg {
        margin: 0;
        padding: 0;
        height: 100%;
    }

    #modalConsentCookies .modal-content {
        height: 100%;
    }

    .modal-body * {
        max-width: none !important;
    }

    .modal-body table th,
    .modal-body table td {
        float: unset;
        display: table-cell;
        margin: auto;
        border: 0 !important;
        height: auto !important;
        max-width: 100% !important;
        line-height: normal;
    }
}

@media (max-height: 750px) {
    .cookie-title {
        font-size: 1.05rem;
        margin-right: 1.5rem !important;
        margin-left: 1.5rem !important;
    }

    .CookieConsentTextIntro {
        font-size: 0.9rem;
        margin-right: 1.5rem !important;
        margin-left: 1.5rem !important;
    }

    #cookie-banner {
        min-height: 70%;
        height: 100%;
        max-height: 90%;
    }

    .cookie-col {
        height: 100%;
        overflow: auto;
    }

    #modalConsentCookies .modal-dialog.modal-lg {
        margin: 0;
        padding: 0;
        height: 100%;
    }

    #modalConsentCookies .modal-content {
        height: 100%;
    }

    .modal-body * {
        max-width: none !important;
    }

    .modal-body table th,
    .modal-body table td {
        float: unset;
        display: table-cell;
        margin: auto;
        border: 0 !important;
        height: auto !important;
        max-width: 100% !important;
        line-height: normal;
    }
}
