/* ============================================
   Cookie Banner - Manekin
   ============================================ */

.cookie-banner {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    max-width: 400px;
    background: linear-gradient(135deg, #64113F 0%, #4a0d2f 100%);
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(100, 17, 63, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.1);
    overflow: hidden;
    animation: cookieSlideIn 0.4s ease-out;
    font-family: 'Varela Round', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

@keyframes cookieSlideIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.cookie-banner-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.cookie-banner-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #F29CA3 0%, #e88a92 100%);
    border-radius: 12px;
    color: #fff;
    font-size: 1.5rem;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(242, 156, 163, 0.3);
}

.cookie-banner-text {
    flex: 1;
}

.cookie-banner-title {
    margin: 0 0 8px 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #fff;
}

.cookie-banner-description {
    margin: 0;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
}

.cookie-banner-link {
    color: #F29CA3;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.cookie-banner-link:hover {
    color: #fff;
    text-decoration: underline;
}

.cookie-banner-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.cookie-btn {
    flex: 1;
    min-width: 120px;
    padding: 12px 20px;
    border: none;
    border-radius: 0px;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.cookie-btn i {
    font-size: 0.85rem;
}

.cookie-btn-accept {
    background: linear-gradient(135deg, #119FB8 0%, #0e8a9f 100%);
    color: #fff;
    box-shadow: 0 4px 12px rgba(17, 159, 184, 0.3);
}

.cookie-btn-accept:hover {
    background: linear-gradient(135deg, #0e8a9f 0%, #0c7a8c 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(17, 159, 184, 0.4);
}

.cookie-btn-refuse {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.cookie-btn-refuse:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* Animation de fermeture */
.cookie-banner.cookie-banner-hide {
    animation: cookieSlideOut 0.3s ease-in forwards;
}

@keyframes cookieSlideOut {
    from {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    to {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
}

/* Responsive */
@media (max-width: 480px) {
    .cookie-banner {
        bottom: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
    
    .cookie-banner-content {
        padding: 16px;
    }
    
    .cookie-banner-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .cookie-btn {
        padding: 10px 16px;
        font-size: 0.85rem;
    }
}

/* Sur les pages SaaS (avec sidebar), ajuster la position */
.admin-main .cookie-banner,
body:has(.admin-sidebar) .cookie-banner {
    /* Le bandeau reste en position fixe par rapport au viewport */
}

/* Dark mode support */
[data-bs-theme="dark"] .cookie-banner {
    background: linear-gradient(135deg, #1a1d21 0%, #121420 100%);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.05);
}

[data-bs-theme="dark"] .cookie-banner-icon {
    background: linear-gradient(135deg, #119FB8 0%, #0e8a9f 100%);
    box-shadow: 0 4px 12px rgba(17, 159, 184, 0.3);
}
