/**
 * Bannière de consentement cookies - RGPD/CNIL
 * Conforme pour la Belgique
 */

#cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    border-top: 3px solid #E30613;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    display: none;
    padding: 1.5rem;
    animation: slideUp 0.3s ease-out;
}

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

/* Ajuster le body quand la bannière est visible */
body.cookie-banner-visible {
    padding-bottom: 180px;
}

.cookie-banner-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.cookie-banner-content {
    flex: 1;
    min-width: 300px;
}

.cookie-banner-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #E30613;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cookie-banner-title svg {
    width: 24px;
    height: 24px;
    fill: #E30613;
}

.cookie-banner-text {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #333;
    margin-bottom: 0.5rem;
}

.cookie-banner-text a {
    color: #E30613;
    text-decoration: underline;
}

.cookie-banner-text a:hover {
    color: #b80511;
}

.cookie-banner-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.cookie-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.cookie-btn-accept {
    background: #E30613;
    color: white;
}

.cookie-btn-accept:hover {
    background: #b80511;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(227, 6, 19, 0.3);
}

.cookie-btn-reject {
    background: transparent;
    color: #666;
    border: 2px solid #ddd;
}

.cookie-btn-reject:hover {
    background: #f5f5f5;
    border-color: #999;
}

.cookie-btn-settings {
    background: transparent;
    color: #E30613;
    text-decoration: underline;
    padding: 0;
    border: none;
    font-size: 0.9rem;
}

.cookie-btn-settings:hover {
    color: #b80511;
}

/* Responsive */
@media (max-width: 768px) {
    #cookie-banner {
        padding: 1rem;
    }

    body.cookie-banner-visible {
        padding-bottom: 220px;
    }

    .cookie-banner-container {
        flex-direction: column;
        gap: 1rem;
    }

    .cookie-banner-actions {
        width: 100%;
        flex-direction: column;
    }

    .cookie-btn {
        width: 100%;
    }

    .cookie-btn-settings {
        text-align: center;
        width: 100%;
    }
}

/* Mode sombre (si implémenté) */
@media (prefers-color-scheme: dark) {
    #cookie-banner {
        background: #1a1a1a;
        border-top-color: #E30613;
    }

    .cookie-banner-text {
        color: #e0e0e0;
    }

    .cookie-btn-reject {
        border-color: #444;
    }

    .cookie-btn-reject:hover {
        background: #2a2a2a;
    }
}

