/**
 * Styles pour la gestion des cookies
 * Ce fichier contient les styles pour la bannière de consentement des cookies
 * et la modal de paramètres des cookies
 */

/* Bannière de cookies */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: white;
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    padding: 0;
    transform: translateY(100%);
    animation: slideCookieBanner 0.5s forwards;
    font-family: 'Montserrat', sans-serif;
}

@keyframes slideCookieBanner {
    to {
        transform: translateY(0);
    }
}

.cookie-banner-hide {
    animation: hideCookieBanner 0.5s forwards;
}

@keyframes hideCookieBanner {
    to {
        transform: translateY(100%);
    }
}

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

.cookie-banner-header {
    margin-bottom: 1.5rem;
}

.cookie-banner-header h3 {
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

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

.cookie-option {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 1rem;
    transition: all 0.3s ease;
}

.cookie-option:hover {
    background-color: #f1f3f5;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.cookie-option label {
    font-weight: 600;
    margin-left: 0.5rem;
    cursor: pointer;
}

.cookie-description {
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: #6c757d;
}

.cookie-banner-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-bottom: 1rem;
}

.cookie-banner-footer {
    font-size: 0.85rem;
    color: #6c757d;
    text-align: center;
}

.cookie-banner-footer a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.cookie-banner-footer a:hover {
    color: var(--secondary);
    text-decoration: underline;
}

/* Modal des paramètres de cookies */
.cookie-settings-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.cookie-settings-modal-show {
    opacity: 1;
    visibility: visible;
}

.cookie-settings-content {
    background-color: white;
    border-radius: 10px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.cookie-settings-modal-show .cookie-settings-content {
    transform: scale(1);
}

.cookie-settings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #e9ecef;
}

.cookie-settings-header h3 {
    color: var(--primary);
    margin: 0;
    font-weight: 600;
}

.close-button {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #6c757d;
    transition: color 0.3s ease;
}

.close-button:hover {
    color: var(--primary);
}

.cookie-settings-body {
    padding: 1.5rem;
}

.cookie-settings-footer {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    padding: 1.5rem;
    border-top: 1px solid #e9ecef;
}

/* Icône flottante des paramètres de cookies */
.cookie-settings-icon {
    position: fixed;
    bottom: 30px;
    left: 30px;
    background-color: var(--primary);
    color: white;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    text-align: center;
    font-size: 20px;
    z-index: 1000;
    opacity: 0.8;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
}

.cookie-settings-icon:hover {
    background-color: var(--secondary);
    opacity: 1;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
    .cookie-banner-options {
        grid-template-columns: 1fr;
    }
    
    .cookie-banner-actions {
        flex-direction: column;
    }
    
    .cookie-banner-actions button {
        width: 100%;
    }
    
    .cookie-settings-footer {
        flex-direction: column;
    }
    
    .cookie-settings-footer button {
        width: 100%;
    }
    
    .cookie-settings-icon {
        width: 45px;
        height: 45px;
        font-size: 18px;
        bottom: 20px;
        left: 20px;
    }
}