/* Styles pour la gestion des cookies - Thème spatial */

/* Bannière de cookies */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(20, 25, 45, 0.9);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(110, 159, 255, 0.3);
    box-shadow: 0 -5px 25px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    transform: translateY(100%);
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    padding: 0;
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-banner-content {
    padding: 1.5rem;
    position: relative;
}

/* Effet de lueur autour de la bannière */
.cookie-banner::before {
    content: '';
    position: absolute;
    top: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(110, 159, 255, 0.7), rgba(156, 110, 255, 0.7), rgba(255, 110, 159, 0.7), rgba(110, 255, 177, 0.7), rgba(255, 222, 89, 0.7), transparent);
    z-index: 1;
}

/* Titre de la bannière */
.cookie-banner h3 {
    color: var(--text-light);
    font-weight: 600;
    margin-bottom: 0.75rem;
    text-shadow: 0 0 10px rgba(110, 159, 255, 0.3);
}

/* Texte de la bannière */
.cookie-banner p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
    line-height: 1.6;
}

/* Boutons de la bannière */
.cookie-banner .btn {
    border-radius: 20px;
    padding: 0.5rem 1.5rem;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.cookie-banner .btn-primary {
    background-color: rgba(110, 159, 255, 0.2);
    color: var(--primary-color);
    border: 1px solid rgba(110, 159, 255, 0.4);
    box-shadow: 0 0 15px rgba(110, 159, 255, 0.2);
    backdrop-filter: blur(5px);
}

.cookie-banner .btn-primary:hover {
    background-color: rgba(110, 159, 255, 0.4);
    color: #fff;
    box-shadow: 0 0 20px rgba(110, 159, 255, 0.5);
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.3);
}

.cookie-banner .btn-outline-light {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--text-light);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
}

.cookie-banner .btn-outline-light:hover {
    background-color: rgba(255, 255, 255, 0.15);
    color: #fff;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.3);
}

.cookie-banner .btn::before {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0));
    transition: transform 0.5s ease;
    z-index: -1;
}

.cookie-banner .btn:hover::before {
    transform: translateY(100%);
}

/* Lien vers la politique de confidentialité */
.cookie-banner a:not(.btn) {
    color: var(--primary-color);
    text-decoration: none;
    position: relative;
    transition: all 0.3s ease;
}

.cookie-banner a:not(.btn):hover {
    color: #fff;
    text-shadow: 0 0 8px rgba(110, 159, 255, 0.6);
}

.cookie-banner a:not(.btn)::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.3s ease;
}

.cookie-banner a:not(.btn):hover::after {
    transform: scaleX(1);
}

/* Modal de préférences de cookies */
.cookie-preferences-modal .modal-content {
    background-color: rgba(20, 25, 45, 0.95);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(110, 159, 255, 0.2);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(110, 159, 255, 0.3);
    border-radius: 12px;
}

.cookie-preferences-modal .modal-header {
    border-bottom: 1px solid rgba(110, 159, 255, 0.2);
    padding: 1.5rem;
}

.cookie-preferences-modal .modal-title {
    color: var(--text-light);
    font-weight: 600;
    text-shadow: 0 0 10px rgba(110, 159, 255, 0.3);
}

.cookie-preferences-modal .modal-body {
    padding: 1.5rem;
}

.cookie-preferences-modal .modal-footer {
    border-top: 1px solid rgba(110, 159, 255, 0.2);
    padding: 1.5rem;
}

/* Switches personnalisés pour les préférences */
.cookie-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.cookie-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.cookie-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.1);
    transition: .4s;
    border-radius: 24px;
    border: 1px solid rgba(110, 159, 255, 0.2);
}

.cookie-slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
}

input:checked + .cookie-slider {
    background-color: rgba(110, 159, 255, 0.6);
    border-color: rgba(110, 159, 255, 0.8);
}

input:focus + .cookie-slider {
    box-shadow: 0 0 10px rgba(110, 159, 255, 0.5);
}

input:checked + .cookie-slider:before {
    transform: translateX(26px);
}

/* Bouton de gestion des cookies */
#manage-cookies-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: rgba(110, 159, 255, 0.2);
    color: var(--primary-color);
    border: 1px solid rgba(110, 159, 255, 0.4);
    border-radius: 20px;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    box-shadow: 0 0 15px rgba(110, 159, 255, 0.2);
    backdrop-filter: blur(5px);
    z-index: 999;
    transition: all 0.3s ease;
}

#manage-cookies-btn:hover {
    background-color: rgba(110, 159, 255, 0.4);
    color: #fff;
    box-shadow: 0 0 20px rgba(110, 159, 255, 0.5);
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Responsive design */
@media (max-width: 768px) {
    .cookie-banner-content {
        padding: 1rem;
    }
    
    .cookie-banner .btn {
        padding: 0.4rem 1rem;
        font-size: 0.85rem;
    }
    
    .cookie-banner p {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
    
    #manage-cookies-btn {
        bottom: 10px;
        right: 10px;
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
}