/* Dino'Clic – Consentement cookies (style repris du bandeau CookieYes existant) */
.dcc-root {
	--dcc-blue: #1863dc;
	--dcc-text: #212121;
	--dcc-border: #d4d8df;
	--dcc-revisit: #0056a7;
	font-family: Verdana, Geneva, sans-serif;
	color: var(--dcc-text);
}
.dcc-root [hidden] { display: none !important; }
.dcc-root button { font-family: inherit; }

/* Bandeau */
.dcc-banner {
	position: fixed; z-index: 999999; right: 40px; bottom: 40px;
	width: 440px; max-width: calc(100vw - 32px); box-sizing: border-box;
	background: #fff; border: 1px solid var(--dcc-border); border-radius: 6px;
	box-shadow: 0 -1px 10px 0 rgba(172, 171, 171, .3);
	padding: 20px 26px; font-size: 15px;
	animation: dcc-in .3s ease-out;
}
.dcc-root[data-position="bottom-left"] .dcc-banner { right: auto; left: 40px; }
.dcc-root[data-position="bottom"] .dcc-banner { left: 0; right: 0; bottom: 0; width: auto; max-width: none; border-radius: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 0 24px; }
.dcc-root[data-position="bottom"] .dcc-desc { flex: 1 1 400px; }
@keyframes dcc-in { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }

.dcc-title { margin: 0 0 12px; font-size: 18px; font-weight: 700; line-height: 1.4; color: var(--dcc-text); }
.dcc-desc { margin: 0 0 20px; font-size: 14px; line-height: 24px; color: var(--dcc-text); }
.dcc-desc a { color: var(--dcc-blue); text-decoration: underline; }
.dcc-buttons { display: flex; gap: 8px; justify-content: space-between; flex-wrap: wrap; }
.dcc-buttons .dcc-btn { flex: 1 1 auto; }

/* Boutons */
.dcc-btn {
	cursor: pointer; font-size: 14px; font-weight: 500; line-height: 24px;
	padding: 8px; border-radius: 2px; border: 2px solid var(--dcc-blue);
	transition: opacity .15s, background .15s;
}
.dcc-btn-outline { background: #fff; color: var(--dcc-blue); }
.dcc-btn-primary { background: var(--dcc-blue); color: #fff; }
.dcc-btn:hover { opacity: .8; }
.dcc-btn:focus-visible, .dcc-close:focus-visible, .dcc-cat-toggle:focus-visible, .dcc-revisit:focus-visible { outline: 2px solid #000; outline-offset: 2px; }

/* Fenêtre des préférences */
.dcc-overlay { position: fixed; inset: 0; z-index: 1000000; background: rgba(0, 0, 0, .5); }
.dcc-modal {
	position: fixed; z-index: 1000001; left: 50%; top: 50%; transform: translate(-50%, -50%);
	width: 845px; max-width: calc(100vw - 32px); max-height: calc(100vh - 40px);
	display: flex; flex-direction: column; background: #fff; border-radius: 6px;
	box-shadow: 0 32px 68px rgba(0, 0, 0, .3); font-size: 14px;
}
html.dcc-noscroll { overflow: hidden; }
.dcc-modal-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 24px; border-bottom: 1px solid #f4f4f4; }
.dcc-modal-title { margin: 0; font-size: 18px; font-weight: 700; }
.dcc-root .dcc-close { background: none !important; border: 0 !important; box-shadow: none !important; font-size: 26px; line-height: 1; cursor: pointer; color: #555 !important; padding: 0 4px; width: auto; height: auto; }
.dcc-root .dcc-close:hover { color: #000 !important; }
.dcc-root .dcc-cat-toggle, .dcc-root .dcc-cat-toggle:hover, .dcc-root .dcc-cat-toggle:focus { background: none !important; box-shadow: none !important; color: var(--dcc-text) !important; }
.dcc-modal-body { padding: 0 24px; overflow-y: auto; line-height: 24px; }
.dcc-modal-body > p { margin: 16px 0; }
.dcc-cat { border-top: 1px solid #f4f4f4; padding: 12px 0; }
.dcc-cat-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.dcc-cat-toggle { background: none; border: 0; padding: 0; cursor: pointer; font-size: 16px; font-weight: 700; color: var(--dcc-text); text-align: left; }
.dcc-cat-toggle::before { content: "›"; display: inline-block; margin-right: 8px; transition: transform .2s; }
.dcc-cat-toggle[aria-expanded="true"]::before { transform: rotate(90deg); }
.dcc-always { color: #008000; font-weight: 600; font-size: 14px; }
.dcc-cat-desc { margin: 6px 0 0; color: #444; }
.dcc-cat-cookies { margin-top: 10px; overflow-x: auto; }
.dcc-cat-cookies table { width: 100%; border-collapse: collapse; font-size: 12px; line-height: 1.5; }
.dcc-cat-cookies th, .dcc-cat-cookies td { text-align: left; padding: 6px 8px; border-bottom: 1px solid #eee; vertical-align: top; }
.dcc-cat-cookies th { background: #f4f4f4; }
.dcc-modal-foot { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; padding: 16px 24px; border-top: 1px solid #f4f4f4; }
.dcc-modal-foot .dcc-btn { min-width: 150px; }

/* Interrupteur */
.dcc-switch { position: relative; display: inline-block; width: 44px; height: 24px; flex: none; }
.dcc-switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 1; }
.dcc-switch span[aria-hidden] { position: absolute; inset: 0; background: #d0d5d2; border-radius: 24px; transition: background .2s; }
.dcc-switch span[aria-hidden]::after { content: ""; position: absolute; width: 18px; height: 18px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: transform .2s; }
.dcc-switch input:checked + span { background: var(--dcc-blue); }
.dcc-switch input:checked + span::after { transform: translateX(20px); }
.dcc-switch input:focus-visible + span { outline: 2px solid #000; outline-offset: 2px; }
.dcc-root .screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Bouton « Gérer mes cookies » */
.dcc-revisit {
	position: fixed; z-index: 999998; left: 15px; bottom: 15px; width: 45px; height: 45px;
	border-radius: 50%; border: 0; padding: 0; cursor: pointer; background: var(--dcc-revisit); color: #fff;
	display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 6px rgba(0, 0, 0, .25);
}

/* Encart à la place d'un contenu externe */
.dcc-has-placeholder { position: relative; min-height: 220px; }
.dcc-placeholder {
	position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center;
	gap: 12px; padding: 20px; text-align: center; background: #f4f6f8; border: 1px dashed #b8c2cc;
	font-family: Verdana, Geneva, sans-serif; font-size: 14px; color: #212121;
}
.dcc-placeholder p { margin: 0; max-width: 420px; }

@media (max-width: 576px) {
	.dcc-banner { right: 16px; left: 16px; bottom: 16px; width: auto; padding: 18px; }
	.dcc-root[data-position="bottom-left"] .dcc-banner { left: 16px; }
	.dcc-buttons .dcc-btn { flex: 1 1 100%; }
	.dcc-modal-foot .dcc-btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) { .dcc-banner { animation: none; } }
