/* CONSENTEMENT */
.consentpopup{
    position: fixed;
    z-index: 9999999;
    background-color: #fff;
    padding: 1.5rem;
    bottom: 3.25rem;
    left: 3rem;
    max-width: 32rem;
    width: 100%;
    translate:0 150%;
    box-shadow: 0px 0px 15px 0px rgba(0,0,0,.5);
    animation: showConsent .5s .3s ease-in-out forwards;
}
@keyframes showConsent{
    to{
        translate:0 0;
    }
}
.consentpopup.consentclosing{
    animation: hideConsent .3s 0s ease-in-out forwards;
}
@keyframes hideConsent{
    from{
        translate:0 0;
    }
    to{
        translate:0 150%;
    }
}
.closeconsent{
    color: #fff;
    background-color: #000;
    border-radius: 50%;
    font-weight: bold;
    width: 1.55rem;
    height: 1.55rem;
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 1.25rem;
    line-height: 1;
    rotate:45deg;
    cursor: pointer;
}

.closeconsent:hover{
    background-color: #ccc;
    color: #000;
}
.closeconsent span{
    position: absolute;
    height: 1.375rem;
    top: 50%;
    left: 50%;
    translate:-50% -50%;
}

.consentpopup h3{
    width: calc(100% - 2.5rem);
    font-weight: bold;
    font-size: 1.4rem;
    line-height: 1.25;
    margin-bottom: .5rem;
}

.consentpopup p{
    font-size: 1rem;
    line-height: 1.4;
    width: calc(100% - 1.5rem);
    margin-bottom: .5rem;
}

.consentpopup a{
    font-size: .9rem;
}

.consentpopup a:hover{
    text-decoration: none;
}

.consentbuttons{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap:.75rem;
    margin-top: 1rem;
}

.consentpopup button{
    -webkit-appearance:none;
    appearance:none;
    color: #000;
    text-align: center;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: .5rem;
    border:2px solid #cccccc;
    background-color: #cccccc;
    padding: .85rem;
    display: block;
    width: 100%;
    cursor: pointer;
}

.consentpopup button+button{
    border:2px solid #000;
    background-color: #000;
    color: #fff;
}

.consentpopup button:hover{
    background-color: #fff;
    color: #000;
}

@media screen and (max-width:81.25rem){
    .closeconsent{top: 1rem;right: 1rem;}
    .consentpopup{
        left: 1rem;
        bottom: 1rem;
        padding: 1rem;
        max-width: 29rem;
    }
    .consentpopup button{
        font-size: 1rem;
        padding: .75rem;
        
    }
}
@media screen and (max-width:53.5rem){
    .consentpopup{
        bottom: .65rem;
        left: .75rem;
    }
}
@media screen and (max-width:46.875rem){
    .consentpopup{left: .5rem;bottom: .5rem;width: calc(100% - 1rem);}
}