/*
 * [AUDIT] Fichier extrait de inc/ads-popups.php (lignes 294-476)
 * Le CSS inline reste en place dans le PHP — ce fichier est créé pour migration future.
 * NE PAS enqueue ce fichier tant que le <style> inline n'a pas été supprimé.
 */

        .popup-ad-overlay {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.85);
            z-index: 999999;
            justify-content: center;
            align-items: center;
            animation: fadeIn 0.3s ease-in-out;
        }

        .popup-ad-overlay.active {
            display: flex;
        }

        @keyframes fadeIn {
            from {
                opacity: 0;
            }

            to {
                opacity: 1;
            }
        }

        .popup-ad-container {
            position: relative;
            background: white;
            border-radius: 12px;
            box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
            max-width: 90%;
            max-height: 90vh;
            overflow: auto;
            animation: slideUp 0.4s ease-out;
        }

        @keyframes slideUp {
            from {
                transform: translateY(50px);
                opacity: 0;
            }

            to {
                transform: translateY(0);
                opacity: 1;
            }
        }

        .popup-ad-close {
            position: absolute;
            top: 10px;
            right: 25px;
            width: 40px;
            height: 40px;
            background: #fff;
            border: 2px solid #333;
            border-radius: 50%;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 10;
            transition: all 0.3s ease;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
        }

        .popup-ad-close:hover {
            background: #333;
            transform: rotate(90deg);
        }

        .popup-ad-close:hover svg {
            stroke: white;
        }

        .popup-ad-close svg {
            transition: stroke 0.3s ease;
        }

        .popup-ad-timer {
            position: absolute;
            top: 10px;
            left: 50%;
            transform: translateX(-50%);
            background: rgba(0, 0, 0, 0.8);
            color: white;
            padding: 8px 16px;
            border-radius: 20px;
            font-size: 14px;
            font-weight: 600;
            z-index: 10;
        }

        #popup-ad-countdown {
            color: #ff6b6b;
            font-weight: bold;
        }

        .popup-ad-content {
            padding: 20px;
            display: flex;
            justify-content: center;
            align-items: center;
        }

        .popup-ad-content--desktop {
            display: flex;
        }

        .popup-ad-content--mobile {
            display: none;
        }

        @media (max-width: 768px) {
            .popup-ad-container {
                max-width: 95%;
                width: 95%;
                padding: 10px;
            }

            .popup-ad-content {
                padding: 10px;
            }

            .popup-ad-close {
                top: 5px;
                right: 0px;
                width: 35px;
                height: 35px;
            }

            .popup-ad-timer {
                font-size: 12px;
                padding: 6px 12px;
            }

            .popup-ad-content--desktop {
                display: none;
            }

            .popup-ad-content--mobile {
                display: flex;
                width: 100%;
                overflow: hidden;
            }

            .popup-ad-content--mobile * {
                max-width: 100% !important;
                height: auto !important;
            }

            .popup-ad-content--mobile img {
                max-width: 100% !important;
                height: auto !important;
                display: block;
            }

            .popup-ad-content--mobile ul[id^="lebar-grid-"] {
                flex-direction: column !important;
                width: 100% !important;
            }

            .popup-ad-content--mobile ul[id^="lebar-grid-"]>li {
                width: 100% !important;
                max-width: 100% !important;
                margin: 5px 0 !important;
            }
        }

        body.popup-ad-active {
            overflow: hidden;
        }

        @media (max-width: 767px) {
            .pub-container {
                width: 95% !important;
                height: 100%;
                padding: 3% !important;
            }
        }
