/* ===== SYSTÈME DE GESTION DES COOKIES RGPD ===== */

/* Bannière de cookies */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 249, 250, 0.98) 100%);
    backdrop-filter: blur(10px);
    border-top: 3px solid var(--mauve-deep);
    box-shadow: 0 -5px 25px rgba(138, 43, 226, 0.15);
    z-index: 9999;
    padding: 1.5rem;
    transform: translateY(100%);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.cookie-banner.cookie-banner-show {
    transform: translateY(0);
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.cookie-text h5 {
    color: var(--mauve-deep);
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.cookie-text p {
    color: #495057;
    margin-bottom: 0;
    font-size: 0.95rem;
    line-height: 1.4;
}

.cookie-buttons {
    display: flex;
    gap: 0.75rem;
    flex-shrink: 0;
}

.cookie-buttons .btn {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.cookie-buttons .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Bouton flottant de paramètres des cookies */
.cookie-settings-btn {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 9998;
    animation: cookiePulse 3s ease-in-out infinite;
}

.cookie-settings-btn .btn {
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid var(--mauve-deep);
    color: var(--mauve-deep);
    box-shadow: 0 4px 15px rgba(138, 43, 226, 0.3);
    transition: all 0.3s ease;
}

.cookie-settings-btn .btn:hover {
    background: var(--mauve-deep);
    color: white;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(138, 43, 226, 0.4);
}

@keyframes cookiePulse {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(138, 43, 226, 0.3);
    }
    50% {
        box-shadow: 0 4px 25px rgba(138, 43, 226, 0.5);
    }
}

/* Modal des cookies */
.cookie-category {
    padding: 1rem;
    border-radius: 8px;
    background: rgba(138, 43, 226, 0.02);
    border: 1px solid rgba(138, 43, 226, 0.1);
    margin-bottom: 1rem;
}

.cookie-category:last-child {
    margin-bottom: 0;
}

.cookie-category h6 {
    color: var(--mauve-deep);
    font-weight: 600;
}

.cookie-category .text-muted {
    font-size: 0.875rem;
    line-height: 1.4;
}

/* Switches personnalisés */
.form-check-input:checked {
    background-color: var(--mauve-deep);
    border-color: var(--mauve-deep);
}

.form-check-input:focus {
    border-color: var(--mauve-light);
    box-shadow: 0 0 0 0.25rem rgba(138, 43, 226, 0.25);
}

/* Responsive */
@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .cookie-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .cookie-buttons .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
    
    .cookie-text h5 {
        font-size: 1rem;
    }
    
    .cookie-text p {
        font-size: 0.9rem;
    }
    
    .cookie-banner {
        padding: 1rem;
    }
}

@media (max-width: 576px) {
    .cookie-buttons {
        gap: 0.5rem;
    }
    
    .cookie-buttons .btn {
        font-size: 0.85rem;
        padding: 0.4rem 0.8rem;
    }
}

/* Toast notifications */
.toast-container {
    z-index: 10000;
}

.toast {
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* Animations d'entrée */
@keyframes slideInUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.cookie-banner {
    animation: slideInUp 0.4s ease-out;
}

/* Badge "Toujours actifs" */
.badge.bg-success {
    background-color: #28a745 !important;
    font-size: 0.75rem;
    padding: 0.35rem 0.65rem;
}
