/* Fenêtre surgissante (popup) */
.em-ecb-popup {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 999999;
    background: #fff;
    color: #1d2327;
    min-width: 320px;
    max-width: 420px;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0,0,0,.2), 0 2px 8px rgba(0,0,0,.1);
    border: 1px solid rgba(0,0,0,.08);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.25s ease;
    transform: translateY(10px);
}
.em-ecb-popup.em-ecb-bubble-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.em-ecb-popup.hidden { display: none; }
.em-ecb-popup.em-ecb-bubble-delay { opacity: 0; visibility: hidden; transform: translateY(10px); }
.em-ecb-popup.em-ecb-bubble-delay.em-ecb-bubble-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.em-ecb-popup-inner {
    padding: 1.25rem 1.5rem 1.5rem;
    padding-right: 2.5rem;
}
.em-ecb-popup-title {
    margin: 0 0 0.75rem;
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--em-ecb-bubble-color, #2271b1);
}
.em-ecb-popup-text {
    margin: 0 0 1rem;
    font-size: 0.95rem;
    color: #50575e;
    line-height: 1.45;
}
.em-ecb-popup-link {
    display: inline-block;
    padding: 0.6rem 1.1rem;
    background: var(--em-ecb-bubble-color, #2271b1);
    color: #fff !important;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 8px;
    transition: opacity 0.2s, transform 0.2s;
}
.em-ecb-popup-link:hover {
    opacity: 0.92;
    transform: scale(1.02);
    color: #fff !important;
}
.em-ecb-popup-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 28px;
    height: 28px;
    padding: 0;
    background: rgba(0,0,0,.06);
    border: none;
    border-radius: 6px;
    color: #50575e;
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.em-ecb-popup-close:hover {
    background: rgba(0,0,0,.1);
    color: #1d2327;
}

.em-ecb-add-to-calendar { margin: 1rem 0; }
.em-ecb-add-to-calendar .em-ecb-title { margin-bottom: 0.5rem; color: var(--em-ecb-color-title, #1d2327); }
.em-ecb-datetime-label { font-weight: 600; color: var(--em-ecb-color-title, #1d2327); margin: 0.5rem 0 0.25rem; }
.em-ecb-datetime { color: var(--em-ecb-color-date, #50575e); margin: 0.5rem 0; }
.em-ecb-datetime .em-ecb-event-date { color: var(--em-ecb-color-date, #50575e); font-weight: 500; }
.em-ecb-datetime .em-ecb-event-time { color: var(--em-ecb-color-time, #50575e); font-weight: 500; }
.em-ecb-datetime .em-ecb-event-date-end { color: var(--em-ecb-color-date, #50575e); }
.em-ecb-datetime-missing { color: #d63638; }
.em-ecb-location { margin: 0.5rem 0; }
.em-ecb-providers {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}
.em-ecb-provider {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    text-decoration: none;
    background: #f0f0f1;
    color: #1d2327;
    font-size: 0.9rem;
}
.em-ecb-provider:hover { background: #e0e0e0; }
.em-ecb-provider.em-ecb-google { background: #ea4335; color: #fff; }
.em-ecb-provider.em-ecb-outlook { background: #0078d4; color: #fff; }
.em-ecb-provider.em-ecb-ical { background: #555; color: #fff; }
.em-ecb-provider.em-ecb-yahoo { background: #6001d2; color: #fff; }
.em-ecb-no-event { color: #646970; }
