/* Cookie Banner Styles */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(33, 37, 41, 0.95);
    color: #fff;
    padding: 20px;
    z-index: 9999;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
    display: none;
    font-family: Arial, sans-serif;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

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

.cookie-content h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.2rem;
    color: #fff;
}

.cookie-content p {
    margin-bottom: 15px;
    line-height: 1.5;
    font-size: 0.95rem;
}

.cookie-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-top: 20px;
}

.cookie-actions .btn {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.2s ease;
    text-transform: uppercase;
    font-size: 0.85rem;
}

.cookie-actions .btn.blue {
    background-color: #007bff;
    color: white;
}

.cookie-actions .btn.blue:hover {
    background-color: #0069d9;
}

.cookie-actions .btn.red {
    background-color: #6c757d;
    color: white;
}

.cookie-actions .btn.red:hover {
    background-color: #5a6268;
}

.cookie-more-info {
    color: #17a2b8;
    text-decoration: underline;
    margin-left: 10px;
    font-size: 0.9rem;
}

.cookie-more-info:hover {
    color: #138496;
    text-decoration: none;
}

/* MODALE DE PRÉFÉRENCES COOKIES */
.cookie-modal {
    display: none; /* ✅ cachée par défaut */
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.6);
    align-items: center;
    justify-content: center;
}


.cookie-modal-content {
    background-color: #fff;
    color: #000;
    width: 90%;
    max-width: 500px;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    font-family: sans-serif;
}

.cookie-modal-content label {
    display: block;
    margin: 1rem 0;
    font-size: 1rem;
}

.cookie-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 1.5rem;
}

.cookie-modal-actions .btn {
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    font-weight: bold;
    border: none;
    cursor: pointer;
    transition: background 0.2s ease;
}

.cookie-modal-actions .btn.green {
    background: #4caf50;
    color: white;
}
.cookie-modal-actions .btn.green:hover {
    background: #45a047;
}

.cookie-modal-actions .btn.grey {
    background: #ff9800;
    color: white;
}
.cookie-modal-actions .btn.grey:hover {
    background: #fb8c00;
}



/* Responsive adjustments */
@media (max-width: 768px) {
    .cookie-banner {
        padding: 15px;
    }
    
    .cookie-content h3 {
        font-size: 1.1rem;
    }
    
    .cookie-content p {
        font-size: 0.9rem;
    }
    
    .cookie-actions {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .cookie-actions .btn {
        width: 100%;
        margin-bottom: 10px;
        text-align: center;
    }
    
    .cookie-more-info {
        margin-left: 0;
        margin-top: 10px;
    }
}