/* Climavi — cookie consent */
.cv-consent,
.cv-consent-modal {
	--cvc-red: #da3b35;
	--cvc-ink: #0b1320;
	--cvc-dim: #4a5261;
	--cvc-line: #e4e7ee;
	font-family: "Plus Jakarta Sans", "Helvetica Neue", Arial, sans-serif;
	color: var(--cvc-ink);
	-webkit-font-smoothing: antialiased;
}
.cv-consent[hidden],
.cv-consent-modal[hidden],
.cv-consent-ph[hidden] { display: none !important; }

/* Banner */
.cv-consent {
	position: fixed; z-index: 99990; left: 20px; bottom: 20px; width: min(440px, calc(100vw - 40px));
	background: #fff; border: 1px solid var(--cvc-line); border-radius: 18px;
	box-shadow: 0 30px 70px -30px rgba(11, 19, 32, .45);
	padding: 22px 22px 18px;
	animation: cvc-in .5s cubic-bezier(.19, 1, .22, 1) both;
}
@keyframes cvc-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.cv-consent p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--cvc-dim); }
.cv-consent a,
.cv-consent-modal a { color: var(--cvc-red); text-decoration: underline; text-underline-offset: 2px; }
.cv-consent .cv-consent__title,
.cv-consent-modal .cv-consent__title {
	font-family: "Big Shoulders Text", Impact, sans-serif; font-weight: 900; text-transform: uppercase;
	font-size: 22px; line-height: 1.1; color: var(--cvc-ink); margin-bottom: 8px;
}
.cv-consent__actions { display: grid; grid-template-columns: repeat(3, auto); gap: 8px; margin-top: 16px; }
.cv-consent .cv-consent__btn,
.cv-consent-modal .cv-consent__btn {
	/* same look for accept/refuse (CNIL: refusing as easy as accepting) */
	appearance: none; cursor: pointer; border-radius: 999px; padding: 11px 14px; min-height: 44px;
	font: 700 12px/1.2 "Plus Jakarta Sans", Arial, sans-serif; letter-spacing: .04em; text-transform: uppercase;
	background: var(--cvc-ink); color: #fff; border: 1px solid var(--cvc-ink); transition: background .25s, color .25s, border-color .25s;
}
.cv-consent .cv-consent__btn:hover,
.cv-consent-modal .cv-consent__btn:hover { background: var(--cvc-red); border-color: var(--cvc-red); color: #fff; }
.cv-consent .cv-consent__btn[data-act="custom"],
.cv-consent-modal .cv-consent__btn[data-act="save"] { background: #fff; color: var(--cvc-ink); border-color: #c9ced8; }
.cv-consent .cv-consent__btn[data-act="custom"]:hover,
.cv-consent-modal .cv-consent__btn[data-act="save"]:hover { background: var(--cvc-ink); border-color: var(--cvc-ink); color: #fff; }
.cv-consent button:focus-visible,
.cv-consent-modal button:focus-visible,
.cv-switch input:focus-visible + span { outline: 2px solid var(--cvc-red); outline-offset: 2px; }

/* Modal */
html.cv-consent-lock { overflow: hidden; }
.cv-consent-modal { position: fixed; inset: 0; z-index: 99995; display: grid; place-items: center; padding: 16px; background: rgba(3, 7, 13, .55); backdrop-filter: blur(3px); }
.cv-consent-modal__box {
	position: relative; width: min(560px, 100%); max-height: calc(100vh - 32px); overflow: auto;
	background: #fff; border-radius: 20px; padding: 28px; box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .6);
	animation: cvc-in .45s cubic-bezier(.19, 1, .22, 1) both;
}
.cv-consent-modal__close {
	position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer;
	background: #f4f6f9; color: var(--cvc-ink); font-size: 22px; line-height: 1; padding: 0;
}
.cv-consent-modal__close:hover { background: var(--cvc-ink); color: #fff; }
.cv-consent__row { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 16px 0; border-top: 1px solid var(--cvc-line); }
.cv-consent-modal p { margin: 0; }
.cv-consent__name { font-weight: 700; font-size: 15px; color: var(--cvc-ink); }
.cv-consent__desc { font-size: 13px; line-height: 1.55; color: var(--cvc-dim); margin-top: 4px !important; }
.cv-consent__always { flex: none; font-size: 12px; font-weight: 700; color: #1a7f45; white-space: nowrap; }
.cv-consent-modal .cv-consent__actions { margin-top: 20px; }

/* Switch */
.cv-switch { position: relative; flex: none; width: 48px; height: 28px; cursor: pointer; }
.cv-switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.cv-switch span { position: absolute; inset: 0; border-radius: 999px; background: #c9ced8; transition: background .25s; }
.cv-switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .2); transition: transform .25s; }
.cv-switch input:checked + span { background: var(--cvc-red); }
.cv-switch input:checked + span::after { transform: translateX(20px); }
.cv-switch .screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Map placeholder */
.cv-consent-ph {
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; text-align: center;
	min-height: 320px; height: 100%; padding: 28px; border-radius: 14px;
	background: #f4f6f9 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 24 24' fill='none' stroke='%23c9ced8' stroke-width='1.5'%3E%3Cpath d='M12 21s-7-6.2-7-11.5A7 7 0 0 1 19 9.5C19 14.8 12 21 12 21z'/%3E%3Ccircle cx='12' cy='9.5' r='2.5'/%3E%3C/svg%3E") center 34px no-repeat;
	padding-top: 96px; font-family: "Plus Jakarta Sans", Arial, sans-serif;
}
.cv-consent-ph p { margin: 0; max-width: 420px; font-size: 14px; line-height: 1.6; color: #4a5261; }
.cv-consent-ph strong { color: #0b1320; }
.cv-consent-ph .cv-consent-ph__btn {
	border: 0; cursor: pointer; border-radius: 999px; padding: 13px 24px; background: #da3b35; color: #fff;
	font: 700 12px/1 "Plus Jakarta Sans", Arial, sans-serif; letter-spacing: .06em; text-transform: uppercase;
}
.cv-consent-ph .cv-consent-ph__btn:hover { background: #b82e29; }
.cv-consent-ph .cv-consent-ph__link { border: 0; background: none; padding: 0; cursor: pointer; color: #4a5261; text-decoration: underline; font-size: 13px; }

/* "Gérer les cookies" floating link (footer) */
.cv-consent-manage {
	display: block; margin: 0 auto; padding: 14px 16px 18px; border: 0; background: #1c1c1c; width: 100%; cursor: pointer;
	color: rgba(255, 255, 255, .55); font: 500 13px/1 "Plus Jakarta Sans", Arial, sans-serif; text-decoration: underline; text-underline-offset: 3px;
}
.cv-consent-manage:hover { color: #fff; background: #1c1c1c; }

@media (max-width: 1024px) {
	.cv-consent { bottom: 76px; } /* above the handheld footer bar */
	.cv-consent-manage { padding-bottom: 80px; }
}
@media (max-width: 480px) {
	.cv-consent { left: 10px; right: 10px; width: auto; padding: 18px 16px 14px; }
	.cv-consent__actions { grid-template-columns: 1fr 1fr; }
	.cv-consent__actions .cv-consent__btn[data-act="custom"] { grid-column: 1 / -1; order: 3; }
	.cv-consent-modal .cv-consent__actions { grid-template-columns: 1fr; }
	.cv-consent-modal__box { padding: 22px 18px; }
}
@media (prefers-reduced-motion: reduce) {
	.cv-consent, .cv-consent-modal__box { animation: none; }
}
/* reset the parent theme's global button styles */
button.cv-consent-manage,
button.cv-consent-manage:hover { border-radius: 0; box-shadow: none; text-transform: none; letter-spacing: 0; font-weight: 500; line-height: 1; display: block; }

/* Short landscape screens (phones turned sideways): compact one-row banner */
@media (max-height: 500px) and (orientation: landscape) {
	.cv-consent { left: 10px; right: 10px; bottom: 10px; width: auto; display: flex; align-items: center; gap: 14px; padding: 10px 14px; }
	.cv-consent .cv-consent__title { display: none; }
	.cv-consent p { font-size: 12px; line-height: 1.4; }
	.cv-consent__actions { margin-top: 0; flex: none; grid-template-columns: repeat(3, auto); }
	.cv-consent .cv-consent__btn { min-height: 36px; padding: 8px 12px; font-size: 11px; }
	.cv-consent__actions .cv-consent__btn[data-act="custom"] { grid-column: auto; order: 0; }
	.cv-consent-modal__box { max-height: calc(100vh - 20px); padding: 18px; }
}
