/* =============================================================================
 * MASSACRES.CD — bandeau de consentement à la mesure d'audience (consent.js)
 * Autonome : couleurs du bandeau gouvernemental, aucune variable des feuilles de page.
 * Les deux boutons ont le même poids visuel : refuser est aussi simple qu'accepter.
 * ============================================================================= */

.consent-banner {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 3000;
    max-width: 720px;
    margin: 0 auto;
    background: #0a1628;
    color: #fff;
    border-top: 3px solid #c9a227;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(10, 22, 40, 0.35);
    font-family: 'Source Sans 3', 'Segoe UI', system-ui, sans-serif;
    line-height: 1.5;
}
.consent-banner[hidden] { display: none; }

.consent-inner { padding: 1rem 1.25rem; }

.consent-title {
    margin: 0 0 0.35rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
}

.consent-text {
    margin: 0;
    font-size: 0.95rem;
    color: #e2e8f0;
}
.consent-text a { color: #f3d679; text-decoration: underline; }
.consent-text a:focus-visible { outline: 3px solid #c9a227; outline-offset: 2px; }

.consent-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-top: 0.85rem;
}

.consent-btn {
    min-width: 8.5rem;
    min-height: 44px;
    padding: 0.55rem 1.1rem;
    border: 2px solid #fff;
    border-radius: 6px;
    background: #fff;
    color: #0a1628;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}
.consent-btn:hover { background: #f3d679; border-color: #f3d679; }
.consent-btn:focus-visible { outline: 3px solid #c9a227; outline-offset: 2px; }

/* « Gérer les cookies » du pied de page : un bouton habillé comme les liens voisins (.footer-links a). */
.consent-open-link {
    display: inline-flex;
    align-items: flex-start;
    gap: 0.5rem;
    min-height: 44px;
    padding: 0.625rem 0;
    border: 0;
    background: none;
    line-height: 1.45;
    font: inherit;
    font-size: 0.9375rem;
    color: #e2e8f0;
    text-align: left;
    cursor: pointer;
    transition: color .25s ease;
}
.consent-open-link::before { content: '›'; color: #c9a227; font-weight: 700; transition: transform .25s ease; }
.consent-open-link:hover { color: #fff; text-decoration: underline; text-decoration-color: #c9a227; text-underline-offset: 4px; }
.consent-open-link:hover::before { transform: translateX(3px); }
.consent-open-link:focus-visible { outline: 3px solid #c9a227; outline-offset: 2px; }

@media (max-width: 480px) {
    .consent-banner { left: 8px; right: 8px; bottom: 8px; }
    .consent-actions { justify-content: stretch; }
    .consent-btn { flex: 1 1 0; min-width: 0; }
}

@media print {
    .consent-banner { display: none !important; }
}
