.popup-ad {
    position: fixed;
    background: #fff;
    border: 1px solid #e1e1e1;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 9999;
    transition: transform 0.3s ease, opacity 0.3s ease;
    border-radius: 8px;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}
.popup-left { left: 10px; }
.popup-right { right: 10px; }
.popup-hidden { 
    opacity: 0; 
    pointer-events: none; 
    transform: translateY(20px); 
}
.popup-header {
    background: #f8f9fa;
    padding: 4px 8px;
    border-bottom: 1px solid #e1e1e1;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    height: 25px;
}
.popup-close {
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
    color: #6c757d;
    transition: color 0.2s;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 3px;
}
.popup-close:hover {
    background: #e9ecef;
    color: #495057;
}
.popup-content {
    padding: 0;
    height: calc(100% - 25px);
    overflow: hidden;
    background: #fff;
}

/* Styles pour forcer l'affichage du contenu Advanced Ads */
.popup-content .advanced-ads-ad,
.popup-content div {
    width: 100% !important;
    height: 100% !important;
}

.popup-content iframe,
.popup-content img,
.popup-content object,
.popup-content embed {
    max-width: 100% !important;
    height: auto !important;
}

/* Reset des styles qui pourraient cacher le contenu */
.popup-content * {
    visibility: visible !important;
    opacity: 1 !important;
    display: block !important;
}

/* Responsive */
@media (max-width: 768px) {
    .popup-ad {
        display: none;
    }
}