/*
 * Bannière + modal de consentement cookies — consomme les tokens de
 * public/css/tokens.css (palette --asa-*, échelle --fs-*).
 */

.acc-banner {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 9990;
    background: var(--asa-dark, #080E0B);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 16px 28px;
    box-shadow: 0 -4px 24px rgba(0,0,0,.25);
}

.acc-banner-text { flex: 1; min-width: 0; }
.acc-banner-text p { margin: 0; font-size: var(--fs-sm, .875rem); line-height: 1.5; color: rgba(255,255,255,.85); }
.acc-banner-text a { color: var(--asa-accent, #F5C518); text-decoration: underline; }

.acc-banner-actions { display: flex; gap: 10px; flex-shrink: 0; }

.acc-btn {
    border: none;
    border-radius: 8px;
    padding: 10px 18px;
    font-size: var(--fs-sm, .875rem);
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: background .2s, color .2s, box-shadow .2s;
}
.acc-btn-primary { background: var(--asa-primary, #0D5C2E); color: #fff; }
.acc-btn-primary:hover { background: #0a4423; box-shadow: 0 4px 14px rgba(13,92,46,.35); }
.acc-btn-ghost { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.35); }
.acc-btn-ghost:hover { border-color: #fff; }

/* ── Modal ──────────────────────────────────────────────── */
.acc-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 9995;
    background: rgba(0,0,0,.6);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.acc-modal {
    background: #fff;
    color: #222;
    border-radius: 16px;
    max-width: 460px;
    width: 100%;
    padding: 32px;
    max-height: 90vh;
    overflow-y: auto;
}

.acc-modal h2 { margin: 0 0 8px; font-size: var(--fs-lg, 1.375rem); font-weight: 800; color: var(--asa-dark-2, #111A14); }
.acc-modal-sub { margin: 0 0 24px; font-size: var(--fs-sm, .875rem); color: #666; line-height: 1.5; }

.acc-category { border-top: 1px solid #eee; padding: 16px 0; }
.acc-category:first-of-type { border-top: none; }
.acc-category-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.acc-category-name { font-weight: 700; font-size: var(--fs-sm, .875rem); color: #222; }
.acc-category-locked { font-size: var(--fs-xs, .8125rem); color: #999; font-weight: 600; }
.acc-category-desc { margin: 0; font-size: var(--fs-xs, .8125rem); color: #777; line-height: 1.5; }

.acc-toggle { position: relative; display: inline-block; width: 40px; height: 22px; }
.acc-toggle input { opacity: 0; width: 0; height: 0; }
.acc-toggle-slider {
    position: absolute; inset: 0; cursor: pointer;
    background: #ccc; border-radius: 22px; transition: background .2s;
}
.acc-toggle-slider::before {
    content: ''; position: absolute; height: 16px; width: 16px; left: 3px; top: 3px;
    background: #fff; border-radius: 50%; transition: transform .2s;
}
.acc-toggle input:checked ~ .acc-toggle-slider { background: var(--asa-primary, #0D5C2E); }
.acc-toggle input:checked ~ .acc-toggle-slider::before { transform: translateX(18px); }

.acc-modal-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 24px; }
.acc-modal-actions .acc-btn { width: 100%; }

/* ── Responsive (convention 992 / 768 / 480) ────────────── */
@media (max-width: 768px) {
    .acc-banner { flex-direction: column; align-items: stretch; text-align: center; padding: 16px 20px; }
    .acc-banner-actions { justify-content: center; }
}

@media (max-width: 480px) {
    .acc-banner-actions { flex-direction: column; }
    .acc-btn { width: 100%; }
    .acc-modal { padding: 24px 20px; }
}
