/* Styles pour la Bannière de Cookies RGPD */

#cookie-banner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

#cookie-banner.show {
    opacity: 1;
    pointer-events: all;
}

.cookie-banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
}

.cookie-banner-content {
    position: relative;
    background: var(--bg-secondary, #1a1a2e);
    border: 2px solid var(--border-color, #2d2d44);
    border-radius: 20px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: slideUp 0.4s ease;
}

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

.cookie-banner-header {
    padding: 2rem 2rem 1rem 2rem;
    border-bottom: 1px solid var(--border-color, #2d2d44);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.cookie-banner-header i {
    font-size: 2rem;
    color: var(--primary-color, #8b5cf6);
}

.cookie-banner-header h3 {
    margin: 0;
    color: var(--text-primary, #ffffff);
    font-size: 1.5rem;
}

.cookie-banner-body {
    padding: 2rem;
}

.cookie-banner-body > p:first-child {
    color: var(--text-secondary, #a0a0b8);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.cookie-categories {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.cookie-category {
    background: var(--bg-dark, #0f0f1e);
    border: 1px solid var(--border-color, #2d2d44);
    border-radius: 10px;
    padding: 1rem;
    transition: all 0.3s ease;
}

.cookie-category:hover {
    border-color: var(--primary-color, #8b5cf6);
    transform: translateX(5px);
}

.cookie-category-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.cookie-category-header input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--primary-color, #8b5cf6);
}

.cookie-category-header input[type="checkbox"]:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.cookie-category-header label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-primary, #ffffff);
    cursor: pointer;
    flex: 1;
    margin: 0;
}

.cookie-category-header input[type="checkbox"]:disabled + label {
    cursor: not-allowed;
}

.required-badge {
    background: var(--primary-color, #8b5cf6);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 5px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.optional-badge {
    background: var(--text-secondary, #a0a0b8);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 5px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.cookie-category-description {
    color: var(--text-secondary, #a0a0b8);
    font-size: 0.875rem;
    line-height: 1.5;
    margin: 0;
    padding-left: 2rem;
}

.cookie-banner-footer {
    padding: 1.5rem 2rem;
    border-top: 1px solid var(--border-color, #2d2d44);
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.cookie-banner-footer .btn {
    padding: 0.75rem 1.5rem;
    border-radius: 10px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.cookie-banner-footer .btn-primary {
    background: linear-gradient(135deg, var(--primary-color, #8b5cf6), var(--secondary-color, #ec4899));
    color: white;
}

.cookie-banner-footer .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.4);
}

.cookie-banner-footer .btn-outline {
    background: transparent;
    color: var(--primary-color, #8b5cf6);
    border: 2px solid var(--primary-color, #8b5cf6);
}

.cookie-banner-footer .btn-outline:hover {
    background: var(--primary-color, #8b5cf6);
    color: white;
}

.cookie-banner-footer .btn-secondary {
    background: var(--bg-dark, #0f0f1e);
    color: var(--text-secondary, #a0a0b8);
    border: 1px solid var(--border-color, #2d2d44);
}

.cookie-banner-footer .btn-secondary:hover {
    background: var(--border-color, #2d2d44);
    color: var(--text-primary, #ffffff);
}

/* Toast de confirmation */
.cookie-toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--bg-secondary, #1a1a2e);
    border: 2px solid var(--primary-color, #8b5cf6);
    border-radius: 10px;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-primary, #ffffff);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 100000;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.cookie-toast.show {
    opacity: 1;
    transform: translateY(0);
}

.cookie-toast i {
    color: var(--success-color, #10b981);
    font-size: 1.25rem;
}

/* Responsive */
@media (max-width: 768px) {
    .cookie-banner-content {
        width: 95%;
        max-height: 95vh;
    }

    .cookie-banner-header,
    .cookie-banner-body,
    .cookie-banner-footer {
        padding: 1.5rem;
    }

    .cookie-banner-footer {
        flex-direction: column;
    }

    .cookie-banner-footer .btn {
        width: 100%;
        justify-content: center;
    }

    .cookie-toast {
        left: 1rem;
        right: 1rem;
        bottom: 1rem;
    }
}

/* Scrollbar personnalisée pour la bannière */
.cookie-banner-content::-webkit-scrollbar {
    width: 8px;
}

.cookie-banner-content::-webkit-scrollbar-track {
    background: var(--bg-dark, #0f0f1e);
    border-radius: 10px;
}

.cookie-banner-content::-webkit-scrollbar-thumb {
    background: var(--primary-color, #8b5cf6);
    border-radius: 10px;
}

.cookie-banner-content::-webkit-scrollbar-thumb:hover {
    background: var(--secondary-color, #ec4899);
}
