/* 
 * AppanLonga - Styles du gestionnaire de cookies
 * Site web sur l'énergie solaire en France
 */

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    display: none;
    animation: slideUp 0.5s ease forwards;
}

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

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

.cookie-content h3 {
    color: var(--dark-color);
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 1.2rem;
}

.cookie-content p {
    margin-bottom: 1rem;
    font-size: 0.95rem;
    color: var(--medium-color);
}

.cookie-options {
    background-color: #f4f4f4;
    padding: 1rem;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
}

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

.cookie-option:last-child {
    margin-bottom: 0;
}

.cookie-option input[type="checkbox"] {
    margin-right: 0.5rem;
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid var(--medium-color);
    border-radius: 3px;
    position: relative;
    cursor: pointer;
    transition: all 0.2s ease;
}

.cookie-option input[type="checkbox"]:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.cookie-option input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.cookie-option input[type="checkbox"]:disabled {
    background-color: #eee;
    cursor: not-allowed;
}

.cookie-option label {
    font-size: 0.9rem;
    cursor: pointer;
}

.cookie-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

.cookie-btn {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

@media (max-width: 576px) {
    .cookie-content {
        padding: 1rem;
    }
    
    .cookie-buttons {
        flex-direction: column;
    }
    
    .cookie-btn {
        width: 100%;
    }
}

/* Pour la page de politique des cookies */
#show-cookie-settings {
    margin: 1rem auto;
    display: block;
}
