/* css/consent.css — Bandeau de consentement aux cookies (js/consent.js) */

.cc-banner {
    position: fixed;
    right: 1.5rem;
    bottom: 1.5rem;
    z-index: 1000;
    width: min(400px, calc(100% - 2rem));
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 1.25rem;
    padding: 1.5rem;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
    font-family: var(--font-sans);
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.3s var(--ease-out-smooth), transform 0.3s var(--ease-out-smooth);
}

.cc-banner.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.cc-banner[hidden] {
    display: none;
}

.cc-title {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.cc-desc {
    font-size: 0.85rem;
    line-height: 1.6;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
}

.cc-desc code {
    font-family: var(--font-mono);
    font-size: 0.78rem;
}

.cc-desc a {
    color: var(--accent);
    text-decoration: underline;
}

.cc-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

/* Les deux choix ont exactement le même poids visuel. */
.cc-btn {
    padding: 0.75rem 1rem;
    border-radius: 9999px;
    border: 1px solid var(--text-primary);
    background: #ffffff;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s var(--ease-interactive), color 0.2s var(--ease-interactive);
}

.cc-btn:hover {
    background: var(--text-primary);
    color: #ffffff;
}

.cc-btn:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}


@media (max-width: 540px) {
    .cc-banner {
        right: 1rem;
        bottom: 1rem;
        padding: 1.25rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cc-banner {
        transition: none;
    }
}
