/* AcTournai – cookie banner and preferences */
.ack, .ack-modal { --ack-accent: var(--act-magenta, #bf1574); --ack-dark: var(--act-magenta-dark, #9a0f5d); --ack-ink: var(--act-ink, #1d1d1f); --ack-muted: var(--act-muted, #5c5c63); font-family: var(--act-body, system-ui, sans-serif); color: var(--ack-ink); }
.ack[hidden], .ack-modal[hidden] { display: none !important; }
.ack { position: fixed; left: 20px; bottom: 20px; z-index: 100001; width: min(460px, calc(100% - 40px)); }
.ack__box { background: #fff; border-radius: 14px; box-shadow: 0 18px 50px rgba(0,0,0,.22); padding: 24px 24px 20px; border-top: 4px solid var(--ack-accent); }
.ack .ack__title, .ack-modal .ack__title { font-family: var(--act-head, inherit); font-size: 19px; font-weight: 700; margin: 0 0 8px; padding: 0; color: var(--ack-ink); }
.ack__text { font-size: 14.5px; line-height: 1.55; margin: 0 0 16px; padding: 0; color: var(--ack-muted); }
.ack__text a { color: var(--ack-accent); font-weight: 600; }
.ack__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.ack__actions .ack-btn { flex: 1 1 auto; }
.ack-btn { font-family: var(--act-head, inherit); font-weight: 600; font-size: 14px; padding: 11px 16px; border-radius: 999px; border: 2px solid var(--ack-ink); background: #fff; color: var(--ack-ink); cursor: pointer; line-height: 1.2; transition: background .15s, color .15s, border-color .15s; }
.ack-btn:hover { background: var(--ack-ink); color: #fff; }
.ack-btn--primary { background: var(--ack-accent); border-color: var(--ack-accent); color: #fff; }
.ack-btn--primary:hover { background: var(--ack-dark); border-color: var(--ack-dark); }
.ack-btn:focus-visible, .ack-modal__close:focus-visible { outline: 3px solid var(--ack-accent); outline-offset: 2px; }

.ack-modal { position: fixed; inset: 0; z-index: 100002; background: rgba(17,17,20,.6); display: flex; align-items: center; justify-content: center; padding: 16px; }
.ack-modal__box { position: relative; background: #fff; border-radius: 14px; max-width: 560px; width: 100%; max-height: calc(100vh - 32px); overflow-y: auto; padding: 28px; box-shadow: 0 24px 60px rgba(0,0,0,.3); }
.ack-modal__close { position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border: 0; background: none; font-size: 28px; line-height: 1; cursor: pointer; color: var(--ack-muted); border-radius: 50%; }
.ack-modal__close:hover { background: #f1eeea; color: var(--ack-ink); }
.ack-cat { border-top: 1px solid #e6e2dd; padding: 14px 0; }
.ack-cat p { margin: 6px 0 0 58px; padding: 0; font-size: 14px; color: var(--ack-muted); line-height: 1.5; }
.ack-switch { display: flex; align-items: center; gap: 14px; cursor: pointer; font-weight: 600; font-family: var(--act-head, inherit); font-size: 15px; }
.ack-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ack-switch__ui { position: relative; flex-shrink: 0; width: 44px; height: 26px; border-radius: 999px; background: #cfcac4; transition: background .15s; }
.ack-switch__ui::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .15s; }
.ack-switch input:checked + .ack-switch__ui { background: var(--ack-accent); }
.ack-switch input:checked + .ack-switch__ui::after { transform: translateX(18px); }
.ack-switch input:disabled + .ack-switch__ui { opacity: .55; }
.ack-switch input:focus-visible + .ack-switch__ui { outline: 3px solid var(--ack-accent); outline-offset: 2px; }
.ack-cat__label em { font-weight: 400; font-style: normal; color: var(--ack-muted); font-size: 13px; }
.ack-modal .ack__actions { margin-top: 18px; }
body.ack-lock { overflow: hidden; }

/* Blocked external content */
.ack-gate { position: relative; }
.ack-gate:not(.is-allowed) iframe { display: none; }
.ack-gate.is-allowed .ack-ph { display: none; }
.ack-ph { background: #f6f3ef; border: 1px dashed #cfcac4; border-radius: 10px; padding: 24px; text-align: center; font-size: 15px; }
.ack-ph p { margin: 0 0 14px; }

/* YouTube placeholders waiting for consent */
.as-yt.ack-ask .as-yt-label { display: none; }
.ack-yt-consent { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 16px; text-align: center; background: rgba(17,17,20,.82); color: #fff; font-size: 14px; }
.ack-yt-consent p { margin: 0; max-width: 34ch; }

@media (max-width: 520px) {
	.ack { left: 10px; right: 10px; bottom: 10px; width: auto; }
	.ack__box { padding: 20px 18px 16px; }
	.ack__actions .ack-btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) { .ack *, .ack-modal * { transition: none !important; } }
