/* ==================================================
   BANNIÈRE CONFIDENTIALITÉ FLOTTANTE
================================================== */

.le-cookie-banner{
    position:fixed;
    left:28px;
    bottom:28px;
    z-index:999999999;

    width:min(560px,calc(100vw - 56px));
    padding:24px;

    border:1px solid rgba(255,255,255,.14);
    border-radius:22px;

    background:
        radial-gradient(
            circle at 5% 0,
            rgba(37,99,235,.22),
            transparent 36%
        ),
        linear-gradient(
            145deg,
            rgba(0,13,32,.985),
            rgba(5,25,58,.985)
        );

    color:#fff;

    opacity:0;
    visibility:hidden;

    transform:translateY(28px) scale(.97);

    box-shadow:
        0 32px 90px rgba(0,13,32,.42),
        0 12px 28px rgba(0,13,32,.22),
        inset 0 1px 0 rgba(255,255,255,.10);

    backdrop-filter:blur(18px);
    -webkit-backdrop-filter:blur(18px);

    transition:
        opacity .42s ease,
        visibility .42s ease,
        transform .42s cubic-bezier(.22,.61,.36,1);
}

.le-cookie-banner::before{
    content:"";

    position:absolute;
    top:0;
    left:24px;
    right:24px;

    height:3px;

    border-radius:0 0 999px 999px;

    background:
        linear-gradient(
            90deg,
            transparent,
            #2563eb,
            #7fb0ff,
            #2563eb,
            transparent
        );
}

.le-cookie-banner.is-visible{
    opacity:1;
    visibility:visible;
    transform:translateY(0) scale(1);
}

.le-cookie-banner.is-hiding{
    opacity:0;
    transform:translateY(18px) scale(.98);
}

/* FERMETURE */

.le-cookie-close{
    position:absolute;
    top:13px;
    right:13px;

    width:34px;
    height:34px;

    padding:0;
    border:1px solid rgba(255,255,255,.10);
    border-radius:50%;

    background:rgba(255,255,255,.05);
    color:rgba(255,255,255,.62);

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

    cursor:pointer;

    transition:
        background .25s ease,
        color .25s ease,
        transform .25s ease;
}

.le-cookie-close:hover{
    background:rgba(255,255,255,.13);
    color:#fff;
    transform:rotate(5deg);
}

.le-cookie-close svg{
    width:17px;
    height:17px;

    fill:none;
    stroke:currentColor;
    stroke-width:2.2;
    stroke-linecap:round;
    stroke-linejoin:round;
}

/* ENTÊTE */

.le-cookie-top{
    padding-right:34px;
    margin-bottom:15px;

    display:flex;
    align-items:center;
    gap:14px;
}

.le-cookie-icon{
    width:52px;
    height:52px;
    flex:0 0 52px;

    border-radius:16px;

    background:linear-gradient(145deg,#2563eb,#0757f9);
    color:#fff;

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

    box-shadow:
        0 14px 28px rgba(37,99,235,.28),
        inset 0 1px 0 rgba(255,255,255,.22);
}

.le-cookie-icon svg{
    width:27px;
    height:27px;

    fill:none;
    stroke:currentColor;
    stroke-width:1.9;
    stroke-linecap:round;
    stroke-linejoin:round;
}

.le-cookie-label{
    display:block;

    margin-bottom:4px;

    color:#82b2ff;

    font-size:10.5px;
    font-weight:900;

    text-transform:uppercase;
    letter-spacing:.55px;
}

.le-cookie-top h2{
    margin:0;

    color:#fff;

    font-size:19px;
    font-weight:950;
    line-height:1.25;
    letter-spacing:-.25px;
}

/* TEXTE */

.le-cookie-banner > p{
    margin:0 0 15px;

    color:rgba(255,255,255,.74);

    font-size:13.5px;
    font-weight:500;
    line-height:1.62;
}

/* POINTS */

.le-cookie-points{
    margin-bottom:18px;

    display:flex;
    flex-wrap:wrap;
    gap:8px 18px;
}

.le-cookie-points span{
    display:inline-flex;
    align-items:center;
    gap:7px;

    color:rgba(255,255,255,.66);

    font-size:11.5px;
    font-weight:700;
}

.le-cookie-points svg{
    width:15px;
    height:15px;

    fill:none;
    stroke:#75a8ff;
    stroke-width:2.3;
    stroke-linecap:round;
    stroke-linejoin:round;
}

/* ACTIONS */

.le-cookie-actions{
    display:grid;
    grid-template-columns:1fr 180px;
    gap:10px;
}

.le-cookie-settings,
.le-cookie-accept{
    min-height:50px;
    padding:0 15px;

    border-radius:13px;

    cursor:pointer;

    font-family:inherit;
    font-size:12.5px;
    font-weight:900;

    transition:
        background .25s ease,
        border-color .25s ease,
        color .25s ease,
        transform .25s ease,
        box-shadow .25s ease;
}

.le-cookie-settings{
    border:1px solid rgba(255,255,255,.13);

    background:rgba(255,255,255,.055);
    color:rgba(255,255,255,.74);
}

.le-cookie-settings:hover{
    border-color:rgba(255,255,255,.28);
    background:rgba(255,255,255,.11);
    color:#fff;
}

.le-cookie-accept{
    border:0;

    background:#fff;
    color:#2563eb;

    display:flex;
    align-items:center;
    justify-content:center;
    gap:9px;

    box-shadow:0 14px 28px rgba(0,0,0,.20);
}

.le-cookie-accept:hover{
    background:#2563eb;
    color:#fff;

    transform:translateY(-2px);

    box-shadow:0 18px 34px rgba(37,99,235,.28);
}

.le-cookie-accept svg{
    width:18px;
    height:18px;

    fill:none;
    stroke:currentColor;
    stroke-width:2.4;
    stroke-linecap:round;
    stroke-linejoin:round;
}

/* LIEN */

.le-cookie-link{
    display:inline-block;

    margin-top:13px;

    color:#82b2ff;

    text-decoration:none;

    font-size:11.5px;
    font-weight:800;

    transition:color .25s ease;
}

.le-cookie-link:hover{
    color:#fff;
}

/* ÉTAT OPPOSITION */

.le-cookie-banner.is-opted-out .le-cookie-icon{
    background:linear-gradient(145deg,#64748b,#334155);
}

.le-cookie-banner.is-opted-out::before{
    background:
        linear-gradient(
            90deg,
            transparent,
            #64748b,
            #cbd5e1,
            #64748b,
            transparent
        );
}

/* MOBILE */

@media(max-width:650px){

    .le-cookie-banner{
        left:14px;
        right:14px;
        bottom:14px;

        width:auto;
        max-height:calc(100vh - 28px);
        max-height:calc(100dvh - 28px);

        padding:21px 18px;

        overflow-y:auto;
    }

    .le-cookie-top{
        align-items:flex-start;
    }

    .le-cookie-icon{
        width:46px;
        height:46px;
        flex-basis:46px;

        border-radius:14px;
    }

    .le-cookie-icon svg{
        width:24px;
        height:24px;
    }

    .le-cookie-top h2{
        font-size:17px;
    }

    .le-cookie-banner > p{
        font-size:12.5px;
    }

    .le-cookie-points{
        flex-direction:column;
        gap:8px;
    }

    .le-cookie-actions{
        grid-template-columns:1fr;
    }

    .le-cookie-accept{
        order:-1;
    }
}