/* Styles du système de publicités flottantes */

.floating-ads-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.floating-ad {
    position: absolute;
    background: rgba(255, 255, 255, 0.93);
    backdrop-filter: blur(20px);
    border-radius: 15px;
    padding: 15px;
    max-width: 300px;
    min-width: 250px;
    cursor: pointer;
    pointer-events: auto;
    transform: translateY(-100px);
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    overflow: hidden;
    border: .5px solid rgba(152, 200, 255, 0.626);
    box-shadow: 0 4px 12px rgba(66, 165, 245, 0.4);
}

.floating-ad.show {
    transform: translateY(0);
    opacity: 1;
}

.floating-ad.hide {
    transform: translateY(-100px);
    opacity: 0;
}

.floating-ad:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 
        0 12px 40px rgba(0, 0, 0, 0.2),
        0 6px 20px rgba(0, 0, 0, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.floating-ad-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.floating-ad-image {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.floating-ad-text {
    flex: 1;
}

.floating-ad-title {
    font-size: 14px;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 4px;
    line-height: 1.3;
}

.floating-ad-description {
    font-size: 12px;
    color: #4a5568;
    line-height: 1.4;
    margin-bottom: 8px;
}

.floating-ad-cta {
    display: inline-block;
    background: linear-gradient(135deg, #7d91ec 0%, #151aa9 100%);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.floating-ad-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.floating-ad-close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.1);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #666;
    transition: all 0.2s ease;
    pointer-events: auto;
}

.floating-ad-close:hover {
    background: rgba(0, 0, 0, 0.2);
    color: #333;
}

/* Positions prédéfinies pour les publicités */
.floating-ad.position-top-right {
    top: 20px;
    right: 20px;
}

.floating-ad.position-top-left {
    top: 20px;
    left: 20px;
}

.floating-ad.position-bottom-right {
    bottom: 110px;
    right: 20px;
}

.floating-ad.position-bottom-left {
    bottom: 20px;
    left: 20px;
}

.floating-ad.position-center-right {
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
}

.floating-ad.position-center-left {
    top: 50%;
    left: 20px;
    transform: translateY(-50%);
}

.floating-ad.position-center-right.show,
.floating-ad.position-center-left.show {
    transform: translateY(-50%);
}

.floating-ad.position-center-right.hide,
.floating-ad.position-center-left.hide {
    transform: translateY(-50%) translateX(100px);
    opacity: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .floating-ad {
        max-width: 280px;
        min-width: 220px;
        padding: 12px;
    }
    
    .floating-ad.position-top-right,
    .floating-ad.position-bottom-right {
        right: 10px;
    }
    
    .floating-ad.position-top-left,
    .floating-ad.position-bottom-left {
        left: 10px;
    }
    
    .floating-ad.position-center-right {
        right: 10px;
    }
    
    .floating-ad.position-center-left {
        left: 10px;
    }
    
    .floating-ad-content {
        gap: 10px;
    }
    
    .floating-ad-image {
        width: 40px;
        height: 40px;
    }
    
    .floating-ad-title {
        font-size: 13px;
    }
    
    .floating-ad-description {
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .floating-ad {
        max-width: calc(100vw - 20px);
        min-width: auto;
    }
}

/* Animation de pulsation pour attirer l'attention */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.floating-ad.pulse {
    animation: pulse 2s ease-in-out infinite;
}

/* Effet de brillance */
@keyframes shine {
    0% { background-position: -200px 0; }
    100% { background-position: 200px 0; }
}

.floating-ad.shine::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    background-size: 200px 100%;
    animation: shine 3s ease-in-out infinite;
    pointer-events: none;
}
.floating-ad-block {
    position: absolute;
    bottom: 3px;
    right: 8px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, #73a1f7a3, #174392); /* bleu ESA pur */
    border: 1px solid rgb(105, 105, 105);
    padding-top: 1px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    color: #fff;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    pointer-events: auto;
}
.floating-ad-block:hover { transform: translateY(-1px); box-shadow: 0 4px 10px rgba(23, 67, 146, 0.35); }
.floating-ad-block i { color: #fff; }