/* =========================================================
   POPUP COOKIES OXL
========================================================= */

.popup {
    position: fixed;
    right: 1em;
    bottom: 28px;
    width: min(520px, calc(100% - 32px));
    padding: 28px;

    background:
            radial-gradient(circle at 90% 0%, rgba(34, 133, 94, 0.16), transparent 34%),
            linear-gradient(180deg, #ffffff 0%, #f3faf7 100%);

    border: 1px solid rgba(15, 61, 46, 0.14);
    border-radius: 28px;

    box-shadow:
            0 28px 80px rgba(15, 47, 35, 0.22),
            0 8px 24px rgba(15, 47, 35, 0.10);

    z-index: 999999;

    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #1f2937;

    opacity: 0;
    visibility: hidden;

    transition:
            opacity 0.25s ease,
            visibility 0.25s ease,
            transform 0.25s ease;
}

/* Petit accent visuel */
.popup::before {
    content: "";
    position: absolute;
    top: 18px;
    left: 22px;

    width: 46px;
    height: 46px;

    border-radius: 16px;
    background: linear-gradient(135deg, #0f3d2e, #1b6a4b);

    box-shadow: 0 14px 28px rgba(27, 106, 75, 0.24);
}

/* Icône cookie */
.popup::after {
    content: "\f564";
    position: absolute;
    top: 29px;
    left: 34px;

    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 19px;

    color: #ffffff;
}

/* Quand ta popup est affichée */
.popup[style*="visible"],
.popup.is-visible,
.popup.show {
    opacity: 1;
    visibility: visible;
}

.popup h2 {
    margin: 0 0 10px 64px;

    color: #0f3d2e;
    font-size: 24px;
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.04em;
}

.popup p {
    margin: 0 0 22px 64px;

    color: #667085;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.7;
}

.popup-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.popup-button {
    min-height: 46px;
    padding: 0 18px;

    border-radius: 15px;
    border: 1px solid rgba(15, 61, 46, 0.14);

    font-size: 14px;
    font-weight: 850;

    cursor: pointer;

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

/* Bouton accepter */
#accept.popup-button {
    background: linear-gradient(135deg, #0f3d2e, #1b6a4b);
    color: #ffffff;
    border-color: transparent;

    box-shadow: 0 14px 28px rgba(27, 106, 75, 0.24);
}

#accept.popup-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 36px rgba(27, 106, 75, 0.30);
}

/* Bouton refuser */
#refuse.popup-button {
    background: #ffffff;
    color: #0f3d2e;
}

#refuse.popup-button:hover {
    transform: translateY(-2px);
    background: #eaf6f0;
    border-color: rgba(27, 106, 75, 0.22);
}

/* Mobile */
@media (max-width: 560px) {
    .popup {
        left: 16px;
        right: 16px;
        bottom: 16px;
        transform: none;

        width: auto;
        padding: 22px;

        border-radius: 24px;
    }

    .popup[style*="visible"],
    .popup.is-visible,
    .popup.show {
        transform: none;
    }

    .popup::before {
        top: 20px;
        left: 20px;
        width: 42px;
        height: 42px;
        border-radius: 14px;
    }

    .popup::after {
        top: 30px;
        left: 31px;
        font-size: 17px;
    }

    .popup h2 {
        margin-left: 56px;
        font-size: 21px;
    }

    .popup p {
        margin-left: 0;
        margin-top: 18px;
        font-size: 13.5px;
    }

    .popup-buttons {
        display: grid;
        grid-template-columns: 1fr;
    }

    .popup-button {
        width: 100%;
    }
}