/* Bandeau de consentement aux cookies (public/js/cookie-consent.js). Refuser et Accepter ont le même poids visuel. */
.cc-banner {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    left: 1rem;
    z-index: 9000;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem 1.5rem;
    max-width: 880px;
    margin: 0 auto;
    padding: 1rem 1.2rem;
    border: 1px solid var(--border-color, #e2e8f0);
    border-radius: 14px;
    background: var(--bg-primary, #fff);
    color: var(--text-primary, #1f2937);
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.22);
    font-size: 0.88rem;
    line-height: 1.5;
}

.cc-text {
    flex: 1 1 340px;
    min-width: 0;
}

.cc-text p {
    margin: 0.2rem 0 0;
    color: var(--text-secondary, #4b5563);
}

.cc-text a {
    color: inherit;
    text-decoration: underline;
    text-decoration-color: var(--secondary-color, #d4af37);
    text-decoration-thickness: 2px;
}

.cc-current {
    font-weight: 600;
}

.cc-actions {
    display: flex;
    flex: 0 0 auto;
    gap: 0.6rem;
}

.cc-btn {
    min-width: 7.5rem;
    padding: 0.65rem 1.2rem;
    border: 1.5px solid var(--primary-color, #1a1a1a);
    border-radius: 999px;
    background: var(--bg-primary, #fff);
    color: var(--primary-color, #1a1a1a);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.cc-btn:hover,
.cc-btn:focus-visible {
    background: var(--primary-color, #1a1a1a);
    color: #fff;
}

[data-theme="dark"] .cc-banner {
    border-color: #334155;
    background: #1e293b;
    color: #f1f5f9;
}

[data-theme="dark"] .cc-text p {
    color: #cbd5e1;
}

[data-theme="dark"] .cc-btn {
    border-color: #f1f5f9;
    background: transparent;
    color: #f1f5f9;
}

[data-theme="dark"] .cc-btn:hover,
[data-theme="dark"] .cc-btn:focus-visible {
    background: #f1f5f9;
    color: #0f172a;
}

@media (max-width: 560px) {
    .cc-banner {
        right: 0.5rem;
        bottom: 0.5rem;
        left: 0.5rem;
        padding: 0.9rem;
    }

    .cc-actions {
        width: 100%;
    }

    .cc-btn {
        flex: 1;
        min-width: 0;
    }
}
