/* ================================
   BANDEAU COOKIES
   ================================ */

.bandeau-cookies {
    position: fixed;
    left: 20px;
    right: 20px;
    bottom: 20px;

    z-index: 99999;

    background: #ffffff;
    color: #202123;

    border: 1px solid #d9d9e3;
    border-radius: 14px;

    box-shadow:
        0 8px 30px rgba(0, 0, 0, 0.12);

    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Arial,
        sans-serif;
}


.cookies-contenu {
    max-width: 1400px;
    margin: auto;

    padding: 18px 22px;

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

    gap: 25px;
}


.cookies-texte {
    flex: 1;
}


.cookies-texte strong {
    display: block;

    font-size: 1rem;
    margin-bottom: 5px;
}


.cookies-texte p {
    margin: 0;

    font-size: 0.92rem;
    line-height: 1.45;

    color: #565869;
}


.cookies-lien {
    margin-top: 8px;

    padding: 0;

    border: 0;
    background: none;

    color: #353740;

    font-size: 0.9rem;

    text-decoration: underline;

    cursor: pointer;
}


.cookies-actions {
    display: flex;
    gap: 10px;

    flex-shrink: 0;
}


.bouton-cookie {
    min-height: 42px;

    padding: 9px 18px;

    border-radius: 8px;

    font-size: 0.9rem;
    font-weight: 600;

    cursor: pointer;

    transition:
        background-color 0.2s,
        border-color 0.2s;
}


.bouton-cookie.principal {
    background: #202123;
    color: white;

    border: 1px solid #202123;
}


.bouton-cookie.principal:hover {
    background: #343541;
}


.bouton-cookie.secondaire {
    background: white;
    color: #202123;

    border: 1px solid #c5c5d2;
}


.bouton-cookie.secondaire:hover {
    background: #f7f7f8;
}



/* ================================
   MODALE DE PRÉFÉRENCES
   ================================ */

.cookies-modal {
    position: fixed;

    inset: 0;

    z-index: 100000;

    background: rgba(0, 0, 0, 0.45);

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

    padding: 20px;
}


.cookies-modal-contenu {
    position: relative;

    width: 100%;
    max-width: 650px;

    max-height: 85vh;

    overflow-y: auto;

    background: white;

    color: #202123;

    border-radius: 16px;

    padding: 28px;

    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.25);
}


.cookies-modal-contenu h2 {
    margin-top: 0;
    margin-bottom: 10px;

    font-size: 1.35rem;
}


.cookies-modal-contenu > p {
    color: #565869;

    line-height: 1.5;

    margin-bottom: 25px;
}


.cookies-fermer {
    position: absolute;

    top: 14px;
    right: 17px;

    border: 0;

    background: transparent;

    font-size: 28px;

    cursor: pointer;

    color: #565869;
}


.categorie-cookie {
    display: flex;

    justify-content: space-between;
    align-items: center;

    gap: 20px;

    padding: 18px 0;

    border-top: 1px solid #ececf1;
}


.categorie-cookie strong {
    display: block;

    margin-bottom: 5px;
}


.categorie-cookie p {
    margin: 0;

    color: #6e6e80;

    font-size: 0.9rem;

    line-height: 1.4;
}


.cookies-modal-actions {
    display: flex;

    justify-content: flex-end;

    gap: 10px;

    margin-top: 25px;
}



/* ================================
   INTERRUPTEURS
   ================================ */

.interrupteur {
    position: relative;

    display: inline-block;

    width: 46px;
    height: 26px;

    flex-shrink: 0;
}


.interrupteur input {
    opacity: 0;

    width: 0;
    height: 0;
}


.curseur {
    position: absolute;

    inset: 0;

    cursor: pointer;

    background: #c5c5d2;

    border-radius: 30px;

    transition: 0.2s;
}


.curseur::before {
    content: "";

    position: absolute;

    width: 20px;
    height: 20px;

    left: 3px;
    top: 3px;

    background: white;

    border-radius: 50%;

    transition: 0.2s;

    box-shadow:
        0 1px 3px rgba(0, 0, 0, 0.3);
}


.interrupteur input:checked + .curseur {
    background: #202123;
}


.interrupteur input:checked + .curseur::before {
    transform: translateX(20px);
}


/* ================================
   CELLULAIRE
   ================================ */

@media (max-width: 700px) {

    .bandeau-cookies {
        left: 10px;
        right: 10px;
        bottom: 10px;
    }

    .cookies-contenu {
        flex-direction: column;
        align-items: stretch;

        padding: 17px;
    }

    .cookies-actions {
        flex-direction: column-reverse;
    }

    .bouton-cookie {
        width: 100%;
    }

    .cookies-modal-contenu {
        padding: 22px 18px;
    }

    .cookies-modal-actions {
        flex-direction: column-reverse;
    }

}