/* Boîte de consentement */
.cookie-popup {
    position: fixed;
    bottom: -110%;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

    .cookie-popup.open {
        bottom: 0;
    }

.cookie-box {
    background: white;
    padding: 20px;
    border-radius: 12px;
    width: 350px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    color: #797777;
}

    .cookie-box h2 {
        margin: 0;
        font-size: 16px;
    }

    .cookie-box p {
        font-size: 14px;
        color: #666;
        margin: 5px 0 0;
    }

.toggle-container {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

/* Correction de l'alignement vertical du h2 seul */
.toggle-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.toggle-container h2 {
    display: flex;
    align-items: center;
    height: 20px; /* Ajuste l'alignement si aucun <p> */
}

/* Style du switch */
.switch {
    position: relative;
    display: inline-block;
    min-width: 40px;
    height: 20px;
}

    .switch input {
        opacity: 0;
        width: 0;
        height: 0;
    }

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #ccc;
    border-radius: 20px;
    transition: .4s;
}

    .slider:before {
        position: absolute;
        content: "";
        height: 14px;
        width: 14px;
        left: 3px;
        bottom: 3px;
        background: white;
        border-radius: 50%;
        transition: .4s;
    }

input:checked + .slider {
    background: linear-gradient(90deg, #3f7bff, #7b3fff);
}

    input:checked + .slider:before {
        transform: translateX(20px);
    }

.button {
    display: block;
    width: 100%;
    background: #0099ff;
    color: white;
    text-align: center;
    padding: 12px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: 0.3s;
}

    .button:hover {
        background: #0077cc;
    }
