/* ==========================================================================
   Bandeau cookies (CookieYes) aux couleurs de la maison
   CookieYes pose ses couleurs en style en ligne et ajoute sa feuille après la
   nôtre : d'où le préfixe « body » et les !important, limités à ce fichier.
   Pour revenir au bandeau d'origine : add_filter( 'mv_cookie_design', '__return_false' );
   ========================================================================== */

body .cky-consent-container,
body .cky-modal,
body .cky-btn-revisit-wrapper {
	--ck-bordeaux: #7d1746;
	--ck-bordeaux-dark: #4e0e2b;
	--ck-night: #2c0a1b;
	--ck-paper: #f8f3ed;
	--ck-linen: #efe5db;
	--ck-ink: #231a1f;
	--ck-stone: #5e5256;
	--ck-mist: #d9cdd2;
	--ck-display: var(--f-display, "Fraunces", Georgia, serif);
	--ck-body: var(--f-body, "Manrope", system-ui, sans-serif);
	font-family: var(--ck-body) !important;
}

/* ---- Le bandeau ---------------------------------------------------------- */
body .cky-consent-container {
	z-index: 99990 !important;
}
body .cky-consent-container.cky-box-bottom-left,
body .cky-consent-container.cky-box-bottom-right,
body .cky-consent-container.cky-box-top-left,
body .cky-consent-container.cky-box-top-right {
	width: min(27rem, calc(100vw - 2rem)) !important;
	bottom: 1rem !important;
}
body .cky-consent-container.cky-box-bottom-left { left: 1rem !important; }
body .cky-consent-container.cky-box-bottom-right { right: 1rem !important; }

body .cky-consent-bar {
	position: relative !important;
	overflow: hidden !important;
	padding: 1.6rem 1.6rem 1.4rem !important;
	border: 1px solid rgba(78, 14, 43, .12) !important;
	border-radius: 14px !important;
	background: var(--ck-paper) !important;
	box-shadow: 0 1px 2px rgba(35, 26, 31, .06), 0 30px 60px -24px rgba(44, 10, 27, .45) !important;
	color: var(--ck-ink) !important;
}
/* Filet bordeaux en tête, comme les cartes du site. */
body .cky-consent-bar::before {
	content: "";
	position: absolute;
	inset: 0 0 auto;
	height: 4px;
	background: linear-gradient(90deg, var(--ck-bordeaux-dark), var(--ck-bordeaux) 60%, #b24d78);
}
/* Bandeau pleine largeur (réglage « Bannière ») : un seul bloc, centré. */
body .cky-consent-container.cky-banner-bottom .cky-consent-bar,
body .cky-consent-container.cky-banner-top .cky-consent-bar,
body .cky-consent-container.cky-classic-bottom .cky-consent-bar,
body .cky-consent-container.cky-classic-top .cky-consent-bar {
	border-radius: 0 !important;
	padding: 1.3rem max(1.5rem, calc((100vw - 1180px) / 2)) !important;
}

body .cky-notice .cky-title {
	margin: 0 0 .55rem !important;
	font-family: var(--ck-display) !important;
	font-size: 1.35rem !important;
	font-weight: 400 !important;
	line-height: 1.2 !important;
	letter-spacing: -.01em !important;
	color: var(--ck-bordeaux-dark) !important;
}
body .cky-notice .cky-title::before {
	content: "Cookies";
	display: block;
	margin-bottom: .35rem;
	font-family: var(--ck-body);
	font-size: .66rem;
	font-weight: 800;
	letter-spacing: .18em;
	text-transform: uppercase;
	color: var(--ck-bordeaux);
}
body .cky-notice-des,
body .cky-notice-des p,
body .cky-notice-des * {
	font-family: var(--ck-body) !important;
	font-size: .9rem !important;
	line-height: 1.6 !important;
	color: var(--ck-stone) !important;
}
body .cky-notice-des p { margin: 0 !important; }
body .cky-notice-des a,
body .cky-notice-des .cky-policy,
body .cky-notice-des button {
	padding: 0 !important;
	border: 0 !important;
	background: none !important;
	color: var(--ck-bordeaux) !important;
	font-weight: 700 !important;
	text-decoration: underline !important;
	text-underline-offset: 3px !important;
}

/* ---- Les boutons --------------------------------------------------------- */
body .cky-notice-btn-wrapper {
	display: flex !important;
	flex-wrap: wrap !important;
	gap: .6rem !important;
	margin: 1.25rem 0 0 !important;
	padding: 0 !important;
}
/* Refuser et Accepter : même taille, même poids (exigence CNIL). */
body .cky-consent-container .cky-btn,
body .cky-modal .cky-btn {
	flex: 1 1 8rem !important;
	min-height: 2.9rem !important;
	margin: 0 !important;
	padding: .7rem 1.2rem !important;
	border: 1.5px solid var(--ck-bordeaux) !important;
	border-radius: 999px !important;
	background: transparent !important;
	color: var(--ck-bordeaux) !important;
	font-family: var(--ck-body) !important;
	font-size: .74rem !important;
	font-weight: 800 !important;
	line-height: 1.2 !important;
	letter-spacing: .12em !important;
	text-transform: uppercase !important;
	opacity: 1 !important;
	cursor: pointer;
	transition: background-color .2s, color .2s, border-color .2s;
}
body .cky-consent-container .cky-btn:hover,
body .cky-modal .cky-btn:hover {
	background: var(--ck-linen) !important;
}
body .cky-consent-container .cky-btn-accept,
body .cky-modal .cky-btn-accept {
	background: var(--ck-bordeaux) !important;
	color: #fff !important;
}
body .cky-consent-container .cky-btn-accept:hover,
body .cky-modal .cky-btn-accept:hover {
	border-color: var(--ck-bordeaux-dark) !important;
	background: var(--ck-bordeaux-dark) !important;
}
/* « Personnaliser » : un lien discret, sur sa propre ligne. */
body .cky-notice-btn-wrapper .cky-btn-customize {
	order: 3 !important;
	flex: 1 1 100% !important;
	min-height: 0 !important;
	padding: .35rem 0 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: none !important;
	color: var(--ck-stone) !important;
	font-size: .78rem !important;
	font-weight: 700 !important;
	letter-spacing: .02em !important;
	text-transform: none !important;
	text-decoration: underline !important;
	text-underline-offset: 3px !important;
}
body .cky-notice-btn-wrapper .cky-btn-customize:hover {
	background: none !important;
	color: var(--ck-bordeaux) !important;
}
body .cky-notice-btn-wrapper .cky-btn-reject { order: 1 !important; }
body .cky-notice-btn-wrapper .cky-btn-accept { order: 2 !important; }

body .cky-consent-container .cky-btn:focus-visible,
body .cky-modal .cky-btn:focus-visible,
body .cky-modal button:focus-visible {
	outline: 2px solid var(--ck-bordeaux) !important;
	outline-offset: 3px !important;
}

/* Croix de fermeture. */
body .cky-consent-container .cky-banner-btn-close,
body .cky-modal .cky-btn-close {
	opacity: .55 !important;
	filter: brightness(0) saturate(100%) invert(12%) sepia(40%) saturate(3000%) hue-rotate(310deg) !important;
	transition: opacity .2s;
}
body .cky-consent-container .cky-banner-btn-close:hover,
body .cky-modal .cky-btn-close:hover { opacity: 1 !important; }

/* Mention « Powered by CookieYes » : discrète. */
body [data-cky-tag="powered-by"],
body [data-cky-tag="detail-powered-by"] {
	background: transparent !important;
	opacity: .55;
}

/* ---- Fenêtre « Personnaliser » ------------------------------------------- */
body .cky-overlay {
	background: rgba(44, 10, 27, .55) !important;
	-webkit-backdrop-filter: blur(3px);
	backdrop-filter: blur(3px);
	opacity: 1 !important;
}
body .cky-preference-center {
	overflow: hidden !important;
	border: 0 !important;
	border-radius: 14px !important;
	background: var(--ck-paper) !important;
	box-shadow: 0 40px 80px -30px rgba(44, 10, 27, .6) !important;
	color: var(--ck-ink) !important;
}
body .cky-preference-header {
	padding: 1.4rem 1.6rem !important;
	border: 0 !important;
	background: radial-gradient(120% 140% at 90% 0%, #6a1438 0%, var(--ck-bordeaux-dark) 60%, var(--ck-night) 100%) !important;
}
body .cky-preference-header .cky-preference-title {
	font-family: var(--ck-display) !important;
	font-size: 1.45rem !important;
	font-weight: 400 !important;
	color: var(--ck-paper) !important;
}
body .cky-preference-header .cky-btn-close {
	filter: brightness(0) invert(1) !important;
	opacity: .8 !important;
}
body .cky-preference-body-wrapper {
	padding: 1.3rem 1.6rem 0 !important;
}
body .cky-preference-content-wrapper,
body .cky-preference-content-wrapper *,
body .cky-accordion-header-des,
body .cky-accordion-header-des * {
	font-family: var(--ck-body) !important;
	font-size: .88rem !important;
	line-height: 1.6 !important;
	color: var(--ck-stone) !important;
}
body .cky-preference-content-wrapper { border: 0 !important; }
body .cky-show-desc-btn,
body .cky-preference-content-wrapper a {
	color: var(--ck-bordeaux) !important;
	font-weight: 700 !important;
	text-decoration: underline !important;
}
body .cky-horizontal-separator { border-color: rgba(78, 14, 43, .12) !important; }

body .cky-accordion-wrapper { margin-top: 1rem !important; }
body .cky-accordion {
	margin: 0 0 .7rem !important;
	padding: 1rem 1.1rem !important;
	border: 1px solid rgba(78, 14, 43, .12) !important;
	border-radius: 10px !important;
	background: #fff !important;
}
body .cky-accordion:last-child { margin-bottom: 1.2rem !important; }
body .cky-accordion-btn {
	font-family: var(--ck-display) !important;
	font-size: 1.08rem !important;
	font-weight: 450 !important;
	color: var(--ck-bordeaux-dark) !important;
}
body .cky-accordion-chevron { color: var(--ck-bordeaux) !important; }
body .cky-always-active {
	color: #4f6b3c !important;
	font-size: .7rem !important;
	font-weight: 800 !important;
	letter-spacing: .1em !important;
	text-transform: uppercase !important;
}
body .cky-accordion-body,
body .cky-audit-table {
	border-radius: 8px !important;
	background: var(--ck-linen) !important;
	color: var(--ck-ink) !important;
}
body .cky-audit-table * { color: var(--ck-ink) !important; }

/* Interrupteurs. */
body .cky-switch input[type="checkbox"] {
	background-color: var(--ck-mist) !important;
}
body .cky-switch input[type="checkbox"]:checked {
	background-color: var(--ck-bordeaux) !important;
}

body .cky-footer-wrapper,
body .cky-prefrence-btn-wrapper,
body .cky-preference-btn-wrapper {
	gap: .6rem !important;
	padding: 1rem 1.6rem 1.3rem !important;
	border: 0 !important;
	background: var(--ck-paper) !important;
}
body .cky-footer-shadow {
	background: linear-gradient(180deg, rgba(248, 243, 237, 0) 0%, var(--ck-paper) 100%) !important;
}
body .cky-prefrence-btn-wrapper .cky-btn,
body .cky-preference-btn-wrapper .cky-btn { flex: 1 1 0 !important; }

/* ---- Bouton pour revenir sur son choix ----------------------------------- */
body .cky-btn-revisit-wrapper {
	width: 46px !important;
	height: 46px !important;
	border: 2px solid var(--ck-paper) !important;
	background: var(--ck-bordeaux) !important;
	box-shadow: 0 10px 24px -10px rgba(44, 10, 27, .6) !important;
	transition: transform .2s, background-color .2s;
}
body .cky-btn-revisit-wrapper:hover {
	transform: scale(1.06);
	background: var(--ck-bordeaux-dark) !important;
}

/* ---- Téléphone ----------------------------------------------------------- */
@media (max-width: 600px) {
	body .cky-consent-container.cky-box-bottom-left,
	body .cky-consent-container.cky-box-bottom-right {
		left: .5rem !important;
		right: .5rem !important;
		bottom: .5rem !important;
		width: auto !important;
	}
	body .cky-consent-bar { padding: 1.3rem 1.2rem 1.1rem !important; }
	body .cky-notice .cky-title { font-size: 1.2rem !important; }
	body .cky-prefrence-btn-wrapper,
	body .cky-preference-btn-wrapper { flex-direction: column !important; }
}
@media (prefers-reduced-motion: reduce) {
	body .cky-consent-container .cky-btn,
	body .cky-btn-revisit-wrapper { transition: none; }
}
