/* DEXTA Cookies - styles front */

/* Reset défensif.
   Les thèmes stylent couramment les balises nues : section, p, h2, button, ul, li.
   Le gabarit de dexta-conseil.eu applique par exemple section{padding:88px 0}, ce qui
   injectait 176 px de vide dans le bandeau. Ce bloc neutralise ces héritages sur tout
   le composant. Il est placé en tête : les règles qui suivent ont la même spécificité
   ou davantage, elles reprennent donc la main. */

.dc-root,
.dc-root *,
.dc-floating,
.dc-floating * {
	margin: 0;
	padding: 0;
	border: 0;
	outline: 0;
	background: none;
	box-shadow: none;
	float: none;
	box-sizing: border-box;
	font-family: inherit;
	font-style: normal;
	letter-spacing: normal;
	text-transform: none;
	text-align: left;
	text-indent: 0;
	line-height: 1.45;
	max-width: none;
	min-width: 0;
	min-height: 0;
	width: auto;
	height: auto;
}

.dc-root::before,
.dc-root::after,
.dc-root *::before,
.dc-root *::after,
.dc-floating::before,
.dc-floating::after {
	content: none;
}

.dc-root {
	--dc-radius: 4px;
	--dc-gap: 16px;
	--dc-max: 1360px;
	position: relative;
	z-index: 999990;
	font-size: 15px;
	line-height: 1.55;
}

.dc-root[hidden] {
	display: none;
}

.dc-overlay {
	position: fixed;
	inset: 0;
	background: rgba(10, 10, 10, .62);
	z-index: 999991;
}

.dc-overlay[hidden] {
	display: none;
}

/* Bandeau */

/* Renforcement ciblé, en complément du reset de tête : ces déclarations sont
   forcées parce qu'un thème peut viser les mêmes éléments avec une spécificité
   supérieure, par exemple .site-content section ou body ul li. */

.dc-banner,
.dc-modal,
.dc-overlay {
	margin: 0 !important;
	padding: 0 !important;
	max-width: none !important;
	float: none !important;
	text-align: left !important;
	font-family: inherit;
}

.dc-root .dc-title {
	margin: 0 0 4px !important;
	padding: 0 !important;
	font-size: 15px !important;
	font-weight: 700 !important;
	line-height: 1.25 !important;
	letter-spacing: .01em !important;
	text-transform: none !important;
	color: inherit !important;
}

.dc-root .dc-body,
.dc-root .dc-cat-desc,
.dc-root .dc-links {
	padding: 0 !important;
	max-width: none !important;
	color: inherit !important;
}

.dc-root .dc-cats {
	list-style: none !important;
	margin: 16px 0 0 !important;
	padding: 0 !important;
}

.dc-root .dc-cats li {
	list-style: none !important;
	margin: 0 !important;
}

.dc-root .dc-cats li::before,
.dc-root .dc-cats li::marker {
	content: none !important;
}

.dc-banner {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 999992;
	max-height: var(--dc-banner-max, 38vh);
	background: var(--dc-bg, #141414);
	color: var(--dc-text, #fff);
	border-top: 3px solid var(--dc-accent, #d4723d);
	box-shadow: 0 -8px 32px rgba(0, 0, 0, .28);
	animation: dc-rise .28s ease-out;
}

.dc-banner[hidden] {
	display: none;
}

.dc-layout-bar-top .dc-banner {
	top: 0;
	bottom: auto;
	border-top: 0;
	border-bottom: 3px solid var(--dc-accent, #d4723d);
	box-shadow: 0 8px 32px rgba(0, 0, 0, .28);
}

.dc-layout-box-left .dc-banner,
.dc-layout-box-right .dc-banner {
	right: 24px;
	left: auto;
	bottom: 24px;
	max-width: 420px;
	border: 1px solid rgba(255, 255, 255, .12);
	border-top: 3px solid var(--dc-accent, #d4723d);
	border-radius: var(--dc-radius);
}

.dc-layout-box-left .dc-banner {
	left: 24px;
	right: auto;
}

.dc-layout-modal .dc-banner {
	top: 50%;
	left: 50%;
	right: auto;
	bottom: auto;
	transform: translate(-50%, -50%);
	max-width: 620px;
	width: calc(100% - 32px);
	border: 1px solid rgba(255, 255, 255, .12);
	border-top: 3px solid var(--dc-accent, #d4723d);
	border-radius: var(--dc-radius);
	animation: none;
}

.dc-banner-inner {
	max-width: var(--dc-max);
	max-height: var(--dc-banner-max, 38vh);
	margin: 0 auto;
	padding: 15px 24px calc(15px + env(safe-area-inset-bottom, 0px));
	display: flex;
	align-items: center;
	gap: 24px;
	overflow: hidden;
}

.dc-banner-copy {
	flex: 1 1 auto;
	min-width: 0;
	min-height: 0;
	max-height: 100%;
	overflow-y: auto;
	overscroll-behavior: contain;
}

.dc-layout-box-left .dc-banner-inner,
.dc-layout-box-right .dc-banner-inner,
.dc-layout-modal .dc-banner-inner {
	display: block;
}

.dc-logo-wrap {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	padding-right: 20px;
	border-right: 1px solid rgba(127, 127, 127, .35);
}

.dc-logo {
	display: block;
	width: auto;
	height: auto;
	max-width: 190px;
	max-height: var(--dc-logo-h, 34px);
}

.dc-layout-box-left .dc-logo-wrap,
.dc-layout-box-right .dc-logo-wrap,
.dc-layout-modal .dc-logo-wrap {
	padding: 0 0 14px;
	border-right: 0;
	border-bottom: 1px solid rgba(127, 127, 127, .35);
	margin-bottom: 16px;
}

.dc-modal-heading {
	display: flex;
	align-items: center;
	gap: 14px;
	flex-wrap: wrap;
	min-width: 0;
}

.dc-modal-heading .dc-logo {
	max-width: 150px;
}

.dc-title {
	margin: 0 0 4px;
	font-size: 15px;
	font-weight: 700;
	color: inherit;
	letter-spacing: .01em;
}

.dc-body {
	margin: 0;
	font-size: 13.5px;
	line-height: 1.5;
	color: inherit;
	opacity: .9;
}

.dc-links {
	margin: 8px 0 0;
	font-size: 12.5px;
	display: flex;
	gap: 16px;
	flex-wrap: wrap;
}

.dc-links a {
	color: var(--dc-accent, #d4723d);
	text-decoration: underline;
	text-underline-offset: 2px;
}

/* Actions */

.dc-actions {
	display: flex;
	gap: 10px;
	flex: 0 0 auto;
	flex-wrap: wrap;
}

.dc-layout-box-left .dc-actions,
.dc-layout-box-right .dc-actions,
.dc-layout-modal .dc-actions {
	margin-top: 18px;
}

.dc-btn {
	font-family: inherit !important;
	font-size: 13.5px !important;
	font-weight: 600 !important;
	line-height: 1.2 !important;
	text-transform: none !important;
	text-decoration: none !important;
	text-align: center !important;
	letter-spacing: normal !important;
	padding: 10px 18px !important;
	margin: 0 !important;
	width: auto !important;
	border-radius: var(--dc-radius) !important;
	border: 1px solid transparent !important;
	background-image: none !important;
	box-shadow: none !important;
	cursor: pointer;
	white-space: nowrap;
	transition: opacity .15s ease, background-color .15s ease;
}

.dc-btn-accept,
.dc-btn-accent {
	background: var(--dc-b1-bg, var(--dc-accent, #d4723d)) !important;
	color: var(--dc-b1-tx, var(--dc-accent-text, #fff)) !important;
	border-color: var(--dc-b1-bd, var(--dc-accent, #d4723d)) !important;
}

.dc-btn-reject {
	background: var(--dc-b2-bg, var(--dc-accent, #d4723d)) !important;
	color: var(--dc-b2-tx, var(--dc-accent-text, #fff)) !important;
	border-color: var(--dc-b2-bd, var(--dc-accent, #d4723d)) !important;
}

.dc-btn-ghost {
	background: var(--dc-b3-bg, transparent) !important;
	color: var(--dc-b3-tx, inherit) !important;
	border-color: var(--dc-b3-bd, currentColor) !important;
}

.dc-btn:hover {
	opacity: .88;
}

.dc-btn:focus-visible,
.dc-close:focus-visible,
.dc-switch input:focus-visible + .dc-track,
.dc-floating:focus-visible {
	outline: 2px solid var(--dc-accent, #d4723d);
	outline-offset: 2px;
}

/* Panneau de préférences */

.dc-modal {
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	z-index: 999993;
	width: min(660px, calc(100% - 32px));
	max-height: min(82vh, 760px);
	overflow-y: auto;
	background: var(--dc-bg, #141414);
	color: var(--dc-text, #fff);
	border-top: 3px solid var(--dc-accent, #d4723d);
	border-radius: var(--dc-radius);
	box-shadow: 0 24px 64px rgba(0, 0, 0, .42);
}

.dc-modal[hidden] {
	display: none;
}

.dc-modal-inner {
	padding: 24px 26px 26px;
}

.dc-modal-head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
}

.dc-close {
	background: transparent !important;
	background-image: none !important;
	border: 0 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	color: inherit !important;
	font-family: inherit !important;
	font-size: 26px !important;
	font-weight: 400 !important;
	line-height: 1 !important;
	width: auto !important;
	min-width: 0 !important;
	height: auto !important;
	padding: 0 4px !important;
	margin: 0 !important;
	text-transform: none !important;
	text-decoration: none !important;
	text-align: center !important;
	cursor: pointer;
	opacity: .7;
}

.dc-close:hover {
	opacity: 1;
}

.dc-cats {
	list-style: none;
	margin: 20px 0 0;
	padding: 0;
}

.dc-cat {
	padding: 16px 0;
	border-top: 1px solid rgba(127, 127, 127, .28);
}

.dc-cat-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.dc-cat-label {
	font-weight: 600;
	font-size: 15px;
}

.dc-cat-desc {
	margin: 6px 0 0;
	font-size: 13.5px;
	opacity: .82;
}

.dc-always {
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: .06em;
	opacity: .7;
}

/* Interrupteur */

.dc-switch {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	cursor: pointer;
}

.dc-switch input {
	position: absolute;
	opacity: 0;
	width: 1px;
	height: 1px;
}

.dc-track {
	position: relative;
	display: inline-block;
	width: 42px;
	height: 24px;
	flex: 0 0 42px;
	border-radius: 999px;
	background: rgba(127, 127, 127, .45);
	transition: background-color .18s ease;
}

.dc-track::after {
	content: "";
	position: absolute;
	top: 3px;
	left: 3px;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: #fff;
	transition: transform .18s ease;
}

.dc-switch input:checked + .dc-track {
	background: var(--dc-accent, #d4723d);
}

.dc-switch input:checked + .dc-track::after {
	transform: translateX(18px);
}

/* Bouton flottant.
   Les déclarations sont forcées parce que la majorité des thèmes, dont
   hello-elementor, stylent tous les <button> du document : sans cela, le bouton
   reprend la couleur du thème au lieu de celle choisie dans les réglages. */

.dc-floating {
	position: fixed !important;
	/* max() et non une addition : sur iPhone la zone sûre vaut 34 px, l'addition
	   repoussait le bouton à 50 px du bas. Le bouton se pose donc à l'écart
	   demandé, sauf si la zone sûre impose davantage. */
	bottom: max(var(--dc-fab-offset, 16px), var(--dc-fab-safe, env(safe-area-inset-bottom, 0px))) !important;
	z-index: 999989;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: var(--dc-fab-size, 52px) !important;
	height: var(--dc-fab-size, 52px) !important;
	min-width: 0 !important;
	min-height: 0 !important;
	padding: 0 !important;
	margin: 0 !important;
	border-radius: 50% !important;
	font-size: 0 !important;
	line-height: 0 !important;
	letter-spacing: normal !important;
	text-transform: none !important;
	text-decoration: none !important;
	cursor: pointer;
	box-shadow: 0 4px 18px rgba(0, 0, 0, .22) !important;
	transition: transform .28s ease, opacity .28s ease, box-shadow .15s ease;
}

.dc-floating-left {
	left: var(--dc-fab-offset, 16px) !important;
	right: auto !important;
}

.dc-floating-right {
	right: var(--dc-fab-offset, 16px) !important;
	left: auto !important;
}

/* Escamotage : le bouton se replie contre le bord et ne laisse qu'une amorce.
   Il revient au survol, au focus clavier, au toucher et au défilement vers le haut. */

.dc-floating-left.dc-fab-tucked {
	transform: translateX(calc(-100% - var(--dc-fab-offset, 16px) + 14px));
	opacity: .45;
}

.dc-floating-right.dc-fab-tucked {
	transform: translateX(calc(100% + var(--dc-fab-offset, 16px) - 14px));
	opacity: .45;
}

.dc-floating.dc-fab-tucked:hover,
.dc-floating.dc-fab-tucked:focus-visible {
	transform: none;
	opacity: 1;
}

.dc-floating-solid {
	background: var(--dc-fab-bg, #141414) !important;
	background-image: none !important;
	border: 1px solid var(--dc-fab-bd, #d4723d) !important;
	color: var(--dc-fab-ic, #d4723d) !important;
}

.dc-floating-outline {
	background: transparent !important;
	background-image: none !important;
	border: 2px solid var(--dc-fab-bd, #d4723d) !important;
	color: var(--dc-fab-ic, #d4723d) !important;
	box-shadow: none !important;
}

.dc-floating:not(.dc-fab-tucked):hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 22px rgba(0, 0, 0, .28) !important;
}

.dc-floating[hidden] {
	display: none !important;
}

.dc-fab-ico {
	width: 58% !important;
	height: 58% !important;
	display: block !important;
	color: inherit;
	pointer-events: none;
}

.dc-sr {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip-path: inset(50%) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

/* Éléments intégrés dans le contenu */

.dc-inline-link {
	background: none;
	border: 0;
	padding: 0;
	font: inherit;
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 2px;
	cursor: pointer;
}

.dc-embed-placeholder {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 14px;
	padding: 24px;
	text-align: center;
	border: 1px dashed rgba(127, 127, 127, .5);
	border-radius: var(--dc-radius);
	background: rgba(127, 127, 127, .06);
}

.dc-embed-placeholder p {
	margin: 0;
	font-size: 14px;
	max-width: 46ch;
}

/* Tableau des cookies */

.dc-table-wrap {
	overflow-x: auto;
}

.dc-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
}

.dc-table th,
.dc-table td {
	text-align: left;
	padding: 10px 12px;
	border-bottom: 1px solid rgba(127, 127, 127, .28);
	vertical-align: top;
}

.dc-table th {
	font-weight: 700;
	white-space: nowrap;
}

.dc-table code {
	font-size: 13px;
	word-break: break-all;
}

@keyframes dc-rise {
	from {
		transform: translateY(14px);
		opacity: 0;
	}

	to {
		transform: none;
		opacity: 1;
	}
}

@media (max-width: 860px) {
	.dc-banner-inner {
		display: flex;
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		padding: 13px 14px calc(13px + env(safe-area-inset-bottom, 0px));
	}

	.dc-banner .dc-logo-wrap {
		display: none;
	}

	.dc-banner-copy {
		flex: 1 1 auto;
		max-height: none;
	}

	.dc-actions {
		flex: 0 0 auto;
	}

	.dc-title {
		font-size: 14.5px;
	}

	.dc-body {
		font-size: 13px;
	}

	.dc-actions {
		margin-top: 12px;
		display: grid;
		grid-template-columns: 1fr 1fr;
		gap: 8px;
	}

	.dc-actions .dc-btn {
		width: 100% !important;
		padding: 10px 12px !important;
		font-size: 13px !important;
	}

	.dc-actions .dc-btn:last-child {
		grid-column: 1 / -1;
	}

	.dc-logo-wrap {
		padding: 0 0 7px;
		border-right: 0;
		border-bottom: 1px solid rgba(127, 127, 127, .3);
		margin-bottom: 8px;
	}

	.dc-logo {
		max-height: min(var(--dc-logo-h, 34px), 22px);
	}

	.dc-links {
		margin-top: 6px;
	}

	.dc-layout-box-left .dc-banner,
	.dc-layout-box-right .dc-banner {
		left: 12px;
		right: 12px;
		bottom: 12px;
		max-width: none;
	}

	.dc-table thead {
		display: none;
	}

	.dc-table tr {
		display: block;
		border-bottom: 1px solid rgba(127, 127, 127, .28);
		padding: 8px 0;
	}

	.dc-table td {
		display: flex;
		gap: 12px;
		border: 0;
		padding: 4px 0;
	}

	.dc-table td::before {
		content: attr(data-label);
		font-weight: 700;
		flex: 0 0 34%;
	}
}

@media (prefers-reduced-motion: reduce) {

	.dc-banner,
	.dc-btn,
	.dc-track,
	.dc-track::after {
		animation: none;
		transition: none;
	}
}
