/* MODALE DES COOKIES */

/* COOKIES - PREMIÈRE FENÊTRE */

.cookies, .cookies_settings {
    background-color: #F9F9F9;
    box-shadow: 0px 8px 16px -2px rgba(0,0,0,0.2);
    padding: 1em;
    margin: 1em;
    border-radius: 8px;
    position: fixed;
    bottom: 0;
    right: 0;
}

.cookies {
    width: 50%; 
    font-family: 'Calibri';
    font-weight: bold;
    z-index: 10000;
     display: none; 
}

.cookies__heading, .cookies__btn-wrapper {
    display: flex;
}

.cookies__content-box{
    display:flex;
    justify-content: space-between;
}

.cookies__heading, .cookies__content {
    padding-bottom: 1em;
}

.cookies__title {
    padding-right: 1em;
    font-weight: bold;
}

.cookies__title, .cookies__text, .cookies__detailed-infos {
    color: #404040;
}

.cookies__text {
    padding-right: 1em;
} 

.cookies__btn-wrapper {
    flex-flow: column;
    justify-content: center;
    gap: .5em;
}

.cookies__btn {
    border-radius: 8px;
    padding: 0.7em 1em;
    font-size: 14px;
    width: 120px;
}

.btn--full-blue {
    background-color: #1D78C5 !important;
    border: none; 
    color: #F9F9F9 !important;
}

.btn--full-blue:hover {
    background-color: #0264b5 !important;
    transition: background-color 0.5s ease !important;
    cursor: pointer;
}

.btn--half-blue {
    border: 2px solid #1D78C5;
    background-color: #F9F9F9;
    color: #1D78C5;
}

.btn--half-blue:hover {
    background-color: #1D78C5;
    color: #F9F9F9;
    transition: background-color 0.5s ease;
    cursor: pointer;
}

.cookies__policy {
    color: #1D78C5;
    text-decoration: none;
}

/* COOKIES - DEUXIÈME FENÊTRE */

.cookies_settings {
    width: 40%;
    display: flex;
    flex-flow: column;
    gap: 1em;
    display: none;
    z-index: 10000; 
}

.cookies_settings__item {
    padding: .5em;
    border-radius: 5px;
    border: 2px solid #1D78C5;
    align-items: center;
}
.cookies_settings__item-choice {
    display: flex;
    justify-content: space-between;
}
.cookies_settings__item-choice p {
    font-weight: bold;
    color: #404040;

}
.cookies_settings__item p {
    margin: 0;
}

.cookies_settings__item--font-color{
    color: #808080;
}

.cookies__detailed-infos, .cookies_settings__policy a {
    font-size: 14px;
}

.cookies_settings__policy a {
    font-weight: bold;
    text-decoration: underline;
    color: #404040;
}

.cookies_settings__btn {
    display: flex;
    justify-content: space-between;
}

.cookies_settings__btn--all button {
    padding: 1em;
}

.cookies_settings__btn > button {
    padding: 0;
}

/* Sliders */

/* Les switch - Les boîtes autour des sliders */
.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}
    
/* Cacher le HTML par défaut des checkbox */
.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}
    
/* Les sliders */
.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    -webkit-transition: .4s;
    transition: .4s;
}
    
.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    -webkit-transition: .4s;
    transition: .4s;
}
    
input:checked + .slider {
    background-color: #5E9CD0;
}
    
input:focus + .slider {
    box-shadow: 0 0 1px #5E9CD0;
}
    
input:checked + .slider:before {
    -webkit-transform: translateX(26px);
    -ms-transform: translateX(26px);
    transform: translateX(26px);
}
    
/* Les sliders ronds */
.slider.round {
    border-radius: 34px;
}
    
.slider.round:before {
    border-radius: 50%;
}

/* Media Query de la modale des cookies */

@media screen and (max-width: 830px) {
    .cookies, .cookies_settings {
        width: 100%;
        margin: 0;
    }
}