/* 
* Éloquence Pro - Cookie Consent Stylesheet
* Author: Éloquence Pro
* Version: 1.0
*/

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: none;
    animation: slideUp 0.5s ease forwards;
}

.cookie-banner.active {
    display: block;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.cookie-content h3 {
    margin-bottom: 1rem;
    color: var(--primary-dark);
}

.cookie-content p {
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.cookie-options {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.cookie-option {
    background-color: var(--bg-light);
    border-radius: 8px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
}

.cookie-option label {
    display: flex;
    align-items: center;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.cookie-option input[type="checkbox"] {
    margin-right: 0.5rem;
    width: 18px;
    height: 18px;
    accent-color: var(--primary-color);
}

.cookie-option p {
    margin-bottom: 0;
    font-size: 0.9rem;
    color: var(--text-light);
    margin-left: 1.5rem;
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Responsive styles */
@media screen and (max-width: 768px) {
    .cookie-content {
        padding: 1.5rem;
    }
    
    .cookie-options {
        grid-template-columns: 1fr;
    }
    
    .cookie-buttons {
        flex-direction: column;
    }
    
    .cookie-buttons button {
        width: 100%;
    }
}

/* Manage cookies button styles */
.manage-cookies-btn {
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    text-decoration: underline;
    padding: 0;
    font-size: 0.9rem;
    margin-top: 1rem;
    display: inline-block;
}

/* Preferences saved notification */
.cookie-preferences-saved {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--success-color);
    color: white;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.cookie-preferences-saved.show {
    opacity: 1;
    visibility: visible;
}
