/* Beltrame Consent – bandeau cookies */
:root {
	--bc-primary: #0084ba;
	--bc-accent: #e3b54f;
}
.bc-banner {
	position: fixed;
	left: 16px;
	right: 16px;
	bottom: 16px;
	z-index: 2147483000;
	display: flex;
	justify-content: center;
	font-family: inherit;
	pointer-events: none;
}
.bc-banner[hidden] { display: none; }

.bc-card {
	position: relative;
	pointer-events: auto;
	width: 100%;
	max-width: 760px;
	max-height: calc(100vh - 32px);
	overflow-y: auto;
	background: #fff;
	color: #1d1d1b;
	border-radius: 14px;
	border-top: 4px solid var(--bc-accent);
	box-shadow: 0 10px 40px rgba(0, 0, 0, .22);
	padding: 22px 24px 20px;
	box-sizing: border-box;
	font-size: 15px;
	line-height: 1.5;
}

.bc-title {
	margin: 0 0 8px;
	padding-right: 170px;
	font-size: 18px;
	font-weight: 700;
	color: #1d1d1b;
}

.bc-text { margin: 0 0 16px; }
.bc-text a { color: var(--bc-primary); text-decoration: underline; }

.bc-close {
	position: absolute;
	top: 14px;
	right: 14px;
	background: none;
	border: 0;
	padding: 6px 8px;
	font: inherit;
	font-size: 13px;
	color: #555;
	cursor: pointer;
	text-decoration: underline;
}
.bc-close span { font-size: 18px; text-decoration: none; margin-left: 4px; vertical-align: -1px; }

.bc-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
}

.bc-btn {
	font: inherit;
	font-weight: 700;
	font-size: 15px;
	border-radius: 8px;
	padding: 11px 20px;
	cursor: pointer;
	line-height: 1.2;
	border: 2px solid var(--bc-primary);
}
/* « Tout refuser » et « Tout accepter » ont volontairement le même style (exigence CNIL). */
.bc-btn-main { background: var(--bc-primary); color: #fff; }
.bc-btn-main:hover { filter: brightness(.92); }
.bc-btn-outline { background: #fff; color: var(--bc-primary); }
.bc-btn-link {
	background: none;
	border-color: transparent;
	color: var(--bc-primary);
	text-decoration: underline;
	padding-left: 6px;
	padding-right: 6px;
}
.bc-btn:focus-visible,
.bc-close:focus-visible,
.bc-reopen:focus-visible,
.bc-switch input:focus-visible + .bc-slider {
	outline: 3px solid var(--bc-accent);
	outline-offset: 2px;
}

.bc-cats { list-style: none; margin: 0 0 16px; padding: 0; }
.bc-cat { border-top: 1px solid #eee; padding: 12px 0; }
.bc-cat:first-child { border-top: 0; padding-top: 0; }
.bc-cat-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.bc-cat-title { font-weight: 700; }
.bc-cat-text { margin: 4px 0 0; font-size: 14px; color: #555; }
.bc-always { font-size: 13px; color: #2e7d32; font-weight: 700; }

.bc-switch { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.bc-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.bc-slider {
	position: relative;
	flex: 0 0 auto;
	width: 42px;
	height: 24px;
	border-radius: 24px;
	background: #c9c9c9;
	transition: background .2s;
}
.bc-slider::after {
	content: "";
	position: absolute;
	top: 3px;
	left: 3px;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: #fff;
	transition: transform .2s;
}
.bc-switch input:checked + .bc-slider { background: var(--bc-primary); }
.bc-switch input:checked + .bc-slider::after { transform: translateX(18px); }

.bc-reopen {
	position: fixed;
	left: 16px;
	bottom: 16px;
	z-index: 2147482999;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	border: 0;
	background: #fff;
	color: var(--bc-primary, #0084ba);
	box-shadow: 0 3px 12px rgba(0, 0, 0, .2);
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
}
.bc-reopen[hidden] { display: none; }

.bc-placeholder {
	border: 2px dashed var(--bc-primary, #0084ba);
	border-radius: 12px;
	padding: 20px;
	margin: 0 0 16px;
	text-align: center;
	background: #f7f9fb;
}
.bc-placeholder p { margin: 0 0 12px; }
.bc-placeholder .bc-small { margin: 12px 0 0; font-size: 13px; color: #555; }

.bc-table-wrap { max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.bc-table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 14px; }
.bc-table th, .bc-table td { border: 1px solid #ddd; padding: 8px 10px; text-align: left; vertical-align: top; }
.bc-table th { background: #f4f1ea; }

@media (max-width: 600px) {
	.bc-banner { left: 8px; right: 8px; bottom: 8px; }
	.bc-card { padding: 18px 16px 16px; font-size: 14px; }
	.bc-title { padding-right: 0; margin-top: 26px; }
	.bc-close { top: 8px; right: 8px; }
	.bc-actions .bc-btn-main { flex: 1 1 45%; }
	.bc-actions .bc-btn-link, .bc-actions .bc-btn-outline { flex: 1 1 100%; }
}
