/* Wizicom – Gestion des cookies */
.nun-ck, .nun-ck * { box-sizing: border-box; }
.nun-ck [hidden] { display: none !important; }
.nun-ck { font-size: 15px; line-height: 1.5; color: var(--nun-ck-text); }

.nun-ck-banner {
	position: fixed; z-index: 2147483000; bottom: 16px; left: 16px;
	width: calc(100% - 32px); max-width: 460px; max-height: calc(100vh - 32px); overflow: auto;
	background: var(--nun-ck-bg); color: var(--nun-ck-text);
	border-radius: 12px; box-shadow: 0 10px 40px rgba(0,0,0,.22); padding: 22px 22px 18px;
}
.nun-ck--center .nun-ck-banner { left: 50%; transform: translateX(-50%); max-width: 720px; }

.nun-ck-title { font-weight: 700; font-size: 18px; margin: 0 0 8px; color: var(--nun-ck-primary); padding-right: 24px; }
.nun-ck-message p, .nun-ck-intro { margin: 0 0 10px; }
.nun-ck a { color: var(--nun-ck-primary); text-decoration: underline; }

.nun-ck-continue {
	position: absolute; top: 10px; right: 12px; background: none; border: 0; padding: 4px; cursor: pointer;
	color: var(--nun-ck-text); font: inherit; font-size: 13px; text-decoration: underline; opacity: .85;
}
.nun-ck-continue:hover { opacity: 1; }
.nun-ck-banner .nun-ck-title { padding-right: 170px; }
@media (max-width: 480px) { .nun-ck-banner .nun-ck-title { padding-right: 0; margin-top: 18px; } }

.nun-ck-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
/* Les trois boutons ont volontairement la même apparence : refuser est aussi visible qu'accepter. */
.nun-ck .nun-ck-btn {
	flex: 1 1 0; min-width: 120px; margin: 0; padding: 10px 14px; border: 2px solid var(--nun-ck-primary); border-radius: 6px;
	background: var(--nun-ck-primary); color: #fff; font: inherit; font-weight: 600; font-size: 15px; line-height: 1.2;
	cursor: pointer; text-transform: none; letter-spacing: normal; box-shadow: none;
}
.nun-ck .nun-ck-btn:hover, .nun-ck .nun-ck-btn:focus-visible { filter: brightness(1.15); }
@media (max-width: 480px) { .nun-ck .nun-ck-btn { flex-basis: 100%; } }
.nun-ck button:focus-visible, .nun-ck a:focus-visible, .nun-ck summary:focus-visible, .nun-ck input:focus-visible + .nun-ck-switch__ui {
	outline: 3px solid var(--nun-ck-primary); outline-offset: 2px;
}

.nun-ck-panel {
	position: fixed; inset: 0; z-index: 2147483001; background: rgba(0,0,0,.45);
	display: flex; align-items: center; justify-content: center; padding: 16px;
}
.nun-ck-panel__box {
	position: relative; width: 100%; max-width: 620px; max-height: calc(100vh - 32px); overflow: auto;
	background: var(--nun-ck-bg); color: var(--nun-ck-text); border-radius: 12px; padding: 24px; outline: none;
}
.nun-ck-close {
	position: absolute; top: 10px; right: 10px; width: 36px; height: 36px; border: 0; border-radius: 50%;
	background: transparent; color: var(--nun-ck-text); font-size: 18px; line-height: 1; cursor: pointer; padding: 0;
}
.nun-ck-close:hover { background: rgba(0,0,0,.06); }

.nun-ck-cat { border-top: 1px solid rgba(0,0,0,.12); padding: 14px 0 10px; }
.nun-ck-cat__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.nun-ck-cat__label { font-weight: 700; cursor: pointer; }
.nun-ck-cat__desc { margin: 6px 0 4px; font-size: 14px; }
.nun-ck-always { font-size: 13px; font-weight: 600; color: var(--nun-ck-primary); white-space: nowrap; }

.nun-ck-switch { position: relative; display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0; }
.nun-ck-switch input { position: absolute; opacity: 0; width: 46px; height: 26px; margin: 0; cursor: pointer; z-index: 1; }
.nun-ck-switch__ui { position: relative; width: 46px; height: 26px; border-radius: 13px; background: #8a8a8a; transition: background .2s; }
.nun-ck-switch__ui::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .2s; }
.nun-ck-switch input:checked + .nun-ck-switch__ui { background: var(--nun-ck-primary); }
.nun-ck-switch input:checked + .nun-ck-switch__ui::after { transform: translateX(20px); }
.nun-ck-switch__state { font-size: 13px; min-width: 56px; }
.nun-ck-switch__state::before { content: attr(data-off); }
.nun-ck-switch input:checked ~ .nun-ck-switch__state::before { content: attr(data-on); }

.nun-ck-details summary { cursor: pointer; font-size: 13px; color: var(--nun-ck-primary); }
.nun-ck-list { list-style: none; margin: 6px 0 0; padding: 0; font-size: 13px; }
.nun-ck-list li { padding: 6px 0; border-bottom: 1px dashed rgba(0,0,0,.12); }
.nun-ck-list li span { display: block; opacity: .85; }

.nun-ck-fab {
	position: fixed; z-index: 2147482999; bottom: 16px; left: 16px; width: 44px; height: 44px; padding: 0;
	border: 0; border-radius: 50%; background: var(--nun-ck-primary); color: #fff; cursor: pointer;
	display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 4px 14px rgba(0,0,0,.25);
}
.nun-ck-fab:hover { filter: brightness(1.15); }

html.nun-ck-locked { overflow: hidden; }

/* Contenus externes bloqués (vidéos, cartes…) */
iframe.nun-ck-blocked { display: none !important; }
.nun-ck-placeholder {
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center;
	min-height: 200px; padding: 20px; background: #f3f3f3; color: #222; border-radius: 8px; font-size: 14px;
}
.nun-ck-placeholder__btn {
	padding: 8px 14px; border: 0; border-radius: 6px; background: var(--nun-ck-primary, #660F1D); color: #fff; font: inherit; cursor: pointer;
}

@media (prefers-reduced-motion: reduce) { .nun-ck-switch__ui, .nun-ck-switch__ui::after { transition: none; } }
@media print { .nun-ck { display: none !important; } }
