/* BC Consentement Cookies — hérite de la typographie du thème */
.bcc-banner,
.bcc-modal,
.bcc-float,
.bcc-embed-ph {
	--bcc-accent: var(--bcc-accent-custom, #2b2b2b);
	--bcc-bg: #ffffff;
	--bcc-text: #2b2b2b;
	--bcc-muted: #5f5f5f;
	--bcc-line: #d9d4cc;
	font-family: inherit;
	color: var(--bcc-text);
	box-sizing: border-box;
}
.bcc-banner *, .bcc-modal * { box-sizing: border-box; }
[hidden].bcc-banner, [hidden].bcc-modal, [hidden].bcc-float { display: none !important; }

/* ── Bandeau ─────────────────────────────────────────────── */
.bcc-banner {
	position: fixed;
	left: 16px;
	right: 16px;
	bottom: 16px;
	z-index: 999998;
	display: flex;
	justify-content: center;
	animation: bcc-in .35s ease-out;
}
.bcc-banner__inner {
	position: relative;
	width: 100%;
	max-width: 980px;
	background: var(--bcc-bg);
	border-radius: 6px;
	box-shadow: 0 10px 40px rgba(40, 30, 20, .18);
	padding: 22px 26px;
	display: flex;
	gap: 24px;
	align-items: center;
}
/* Couture : une ligne de piqûre en pointillés sur le pourtour */
.bcc-banner__inner::before,
.bcc-modal__box::before {
	content: "";
	position: absolute;
	inset: 6px;
	border: 1.5px dashed var(--bcc-line);
	border-radius: 3px;
	pointer-events: none;
}
.bcc-banner__text { flex: 1 1 auto; max-width: 62ch; }

.bcc-title {
	margin: 0 0 6px;
	font-size: 1.1rem;
	font-weight: 700;
	line-height: 1.3;
	color: var(--bcc-text);
}
.bcc-desc {
	margin: 0;
	font-size: .93rem;
	line-height: 1.55;
	color: var(--bcc-muted);
}
.bcc-desc a { color: var(--bcc-text); text-decoration: underline; }

/* ── Boutons : Accepter et Refuser ont le même poids visuel (CNIL) ── */
.bcc-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
	flex: 0 0 auto;
}
.bcc-btn {
	appearance: none;
	font: inherit;
	font-size: .93rem;
	font-weight: 600;
	line-height: 1.2;
	padding: 11px 20px;
	border: 2px solid var(--bcc-accent);
	border-radius: 4px;
	background: var(--bcc-accent);
	color: #fff;
	cursor: pointer;
	min-width: 132px;
	text-align: center;
}
.bcc-btn:hover { filter: brightness(1.15); }
.bcc-btn--outline { background: transparent; color: var(--bcc-accent); }
.bcc-link {
	appearance: none;
	background: none;
	border: 0;
	padding: 6px 4px;
	font: inherit;
	font-size: .9rem;
	color: var(--bcc-text);
	text-decoration: underline;
	cursor: pointer;
}
.bcc-btn:focus-visible,
.bcc-link:focus-visible,
.bcc-close:focus-visible,
.bcc-float:focus-visible,
.bcc-switch:focus-visible {
	outline: 3px solid var(--bcc-accent);
	outline-offset: 3px;
}

/* ── Fenêtre de préférences ──────────────────────────────── */
html.bcc-lock { overflow: hidden; }
.bcc-modal {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
}
.bcc-modal__overlay {
	position: absolute;
	inset: 0;
	background: rgba(30, 25, 20, .55);
}
.bcc-modal__box {
	position: relative;
	width: 100%;
	max-width: 560px;
	max-height: calc(100vh - 32px);
	overflow-y: auto;
	background: var(--bcc-bg);
	border-radius: 6px;
	padding: 30px 30px 26px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, .25);
	animation: bcc-in .25s ease-out;
}
.bcc-modal__box:focus { outline: none; }
.bcc-modal__box .bcc-title { font-size: 1.3rem; margin-bottom: 8px; padding-right: 30px; }
.bcc-modal__box > .bcc-desc { margin-bottom: 18px; }
.bcc-close {
	position: absolute;
	top: 14px;
	right: 16px;
	width: 34px;
	height: 34px;
	border: 0;
	background: none;
	font-size: 26px;
	line-height: 1;
	color: var(--bcc-text);
	cursor: pointer;
	z-index: 1;
}

.bcc-cat { border-top: 1px solid var(--bcc-line); padding: 14px 0; }
.bcc-cat:last-of-type { border-bottom: 1px solid var(--bcc-line); margin-bottom: 20px; }
.bcc-cat__head {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	margin-bottom: 6px;
}
.bcc-cat__name { font-weight: 700; font-size: .98rem; cursor: default; }
label.bcc-cat__name { cursor: pointer; }
.bcc-cat__state { font-size: .85rem; color: var(--bcc-muted); }
.bcc-cat p { margin: 0; font-size: .88rem; line-height: 1.55; color: var(--bcc-muted); }

/* Interrupteur */
.bcc-switch {
	appearance: none;
	-webkit-appearance: none;
	position: relative;
	flex: 0 0 auto;
	width: 46px;
	height: 26px;
	margin: 0;
	border-radius: 26px;
	background: #bdb7ae;
	cursor: pointer;
	transition: background .2s;
}
.bcc-switch::after {
	content: "";
	position: absolute;
	top: 3px;
	left: 3px;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: #fff;
	transition: transform .2s;
}
.bcc-switch:checked { background: var(--bcc-accent); }
.bcc-switch:checked::after { transform: translateX(20px); }

/* ── Bouton flottant ─────────────────────────────────────── */
.bcc-float {
	position: fixed;
	left: 16px;
	bottom: 16px;
	z-index: 999997;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	border: 0;
	background: var(--bcc-accent);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	box-shadow: 0 4px 14px rgba(0, 0, 0, .2);
	opacity: .85;
}
.bcc-float:hover { opacity: 1; }

@keyframes bcc-in {
	from { opacity: 0; transform: translateY(12px); }
	to   { opacity: 1; transform: none; }
}

/* ── Mobile ──────────────────────────────────────────────── */
@media (max-width: 760px) {
	.bcc-banner { left: 8px; right: 8px; bottom: 8px; }
	.bcc-banner__inner { flex-direction: column; align-items: stretch; gap: 16px; padding: 20px; }
	.bcc-actions { flex-direction: column; align-items: stretch; }
	.bcc-btn { width: 100%; }
	.bcc-modal__box { padding: 26px 20px 20px; }
}

@media (prefers-reduced-motion: reduce) {
	.bcc-banner, .bcc-modal__box { animation: none; }
	.bcc-switch, .bcc-switch::after { transition: none; }
}

/* ── Google Maps / Agenda bloqués ────────────────────────── */
iframe[data-ccm-src]:not([src]) { display: none !important; }
.bcc-embed-ph {
	box-sizing: border-box;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 14px;
	width: 100%;
	min-height: 260px;
	padding: 28px 20px;
	background: #f6f3ef;
	border: 1.5px dashed #cfc8bd;
	border-radius: 6px;
	text-align: center;
	font-family: inherit;
	color: #2b2b2b;
}
.bcc-embed-ph__text { margin: 0; max-width: 46ch; font-size: .95rem; line-height: 1.5; }
.bcc-embed-ph__actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; align-items: center; }
