/* 
CinéTech Pro - Styles du gestionnaire de cookies
Style rétro pour le système de gestion des cookies
*/

/* Bannière de cookies */
.cookie-banner {
    position: fixed;
    bottom: -100%; /* Caché par défaut, s'affiche en glissant vers le haut */
    left: 0;
    width: 100%;
    background-color: var(--dark-color);
    color: var(--light-color);
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    transition: bottom 0.5s ease;
}

.cookie-banner.visible {
    bottom: 0;
}

.cookie-content {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.cookie-content h3 {
    color: var(--light-color);
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.cookie-content p {
    margin-bottom: 20px;
    line-height: 1.5;
}

.cookie-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

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

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

.cookie-modal-content {
    background-color: var(--light-color);
    border-radius: var(--border-radius);
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 30px;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
    position: relative;
}

.cookie-modal-content h3 {
    margin-bottom: 20px;
    text-align: center;
    color: var(--dark-color);
    font-size: 1.5rem;
}

.cookie-options {
    margin-bottom: 20px;
}

.cookie-option {
    padding: 15px;
    border-radius: var(--border-radius);
    background-color: var(--light-bg);
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.cookie-option:hover {
    background-color: rgba(234, 231, 220, 1);
}

.cookie-option input[type="checkbox"] {
    margin-right: 10px;
    transform: scale(1.2);
}

.cookie-option label {
    font-weight: 700;
    display: inline-block;
    margin-bottom: 5px;
    color: var(--dark-color);
}

.cookie-option p {
    margin: 0;
    padding-left: 25px;
    font-size: 0.9rem;
    color: var(--text-color);
}

.cookie-modal-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

/* Style pour le bouton d'ouverture des paramètres de cookies en bas de page */
.cookie-settings-trigger {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--dark-color);
    color: var(--light-color);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 99;
}

.cookie-settings-trigger:hover {
    background-color: var(--primary-color);
    transform: rotate(30deg);
}

.cookie-settings-trigger svg {
    width: 24px;
    height: 24px;
}

/* Styles responsifs */
@media (max-width: 768px) {
    .cookie-buttons {
        flex-direction: column;
    }
    
    .cookie-buttons button {
        width: 100%;
    }
    
    .cookie-modal-content {
        width: 90%;
        padding: 20px;
    }
    
    .cookie-modal-buttons {
        flex-direction: column;
    }
    
    .cookie-modal-buttons button {
        width: 100%;
    }
    
    .cookie-settings-trigger {
        width: 40px;
        height: 40px;
        bottom: 10px;
        right: 10px;
    }
}
