/* Rustpress : bandeau de consentement cookies (rp-consent.js). Thème light / dark / auto. */
.rp-consent{position:fixed;inset:0;z-index:9999;display:flex;align-items:flex-end;justify-content:center;padding:1rem;pointer-events:none;
--rpc-bg:#fff;--rpc-fg:#1a1a1a;--rpc-muted:#555;--rpc-border:#d6d6d6;--rpc-accent:#1d4ed8;--rpc-accent-fg:#fff}
.rp-consent[hidden]{display:none}
.rp-consent[data-theme=dark]{--rpc-bg:#1f1f1f;--rpc-fg:#f3f3f3;--rpc-muted:#bdbdbd;--rpc-border:#454545;--rpc-accent:#60a5fa;--rpc-accent-fg:#101010}
@media (prefers-color-scheme:dark){.rp-consent[data-theme=auto]{--rpc-bg:#1f1f1f;--rpc-fg:#f3f3f3;--rpc-muted:#bdbdbd;--rpc-border:#454545;--rpc-accent:#60a5fa;--rpc-accent-fg:#101010}}
.rp-consent--center{align-items:center;background:rgba(0,0,0,.45);pointer-events:auto}
.rp-consent__dialog{position:relative;pointer-events:auto;background:var(--rpc-bg);color:var(--rpc-fg);border:1px solid var(--rpc-border);border-radius:12px;
box-shadow:0 8px 30px rgba(0,0,0,.2);padding:1.25rem 2.75rem 1.25rem 1.5rem;width:100%;max-width:40rem;max-height:90vh;overflow:auto;font:inherit;line-height:1.45}
.rp-consent--bottom .rp-consent__dialog{max-width:60rem}
.rp-consent__close{position:absolute;top:.5rem;right:.5rem;width:2.25rem;height:2.25rem;border:0;border-radius:50%;background:transparent;color:var(--rpc-muted);font:inherit;font-size:1.5rem;line-height:1;cursor:pointer}
.rp-consent__close:hover{background:var(--rpc-border)}
.rp-consent__title{margin:0 0 .5rem;font-size:1.1rem;font-weight:700}
.rp-consent__text{margin:0 0 1rem;color:var(--rpc-muted);font-size:.95rem}
.rp-consent__text a{color:inherit;text-decoration:underline}
.rp-consent__categories{display:grid;gap:.6rem;margin:0 0 1rem}
.rp-consent__categories[hidden]{display:none}
.rp-consent__category{display:flex;gap:.6rem;align-items:flex-start;font-size:.95rem;cursor:pointer}
.rp-consent__category input{margin:.25rem 0 0;flex:none;width:1.1rem;height:1.1rem}
.rp-consent__category small{display:block;color:var(--rpc-muted);font-size:.85em}
.rp-consent__actions{display:flex;flex-wrap:wrap;gap:.5rem}
.rp-consent__actions button{font:inherit;font-size:.95rem;padding:.6rem 1.1rem;border-radius:8px;border:1px solid var(--rpc-border);background:transparent;color:inherit;cursor:pointer}
.rp-consent__actions button[hidden]{display:none}
/* CNIL : refuser est aussi simple qu'accepter, les deux boutons ont la même mise en avant. */
.rp-consent__actions button[data-rp-consent=accept],.rp-consent__actions button[data-rp-consent=reject],.rp-consent__actions button[data-rp-consent=save]{background:var(--rpc-accent);color:var(--rpc-accent-fg);border-color:var(--rpc-accent)}
.rp-consent__dialog :focus-visible{outline:3px solid var(--rpc-accent);outline-offset:2px}
@media (max-width:600px){.rp-consent{padding:.5rem}.rp-consent__actions button{flex:1 1 100%}}
