/*
 * Bandeau de consentement. Couleurs et polices du thème Martigne (variables
 * --wp--preset--*), avec des valeurs de repli si un autre thème est actif.
 * « Refuser » et « Accepter » ont exactement le même style (CNIL).
 */

.martigne-consentement {
	position: fixed;
	z-index: 100000;
	right: 16px;
	bottom: 16px;
	left: 16px;
	display: flex;
	justify-content: center;
	pointer-events: none;
}

.martigne-consentement[hidden] {
	display: none;
}

.martigne-consentement__boite {
	max-width: 760px;
	padding: 20px 24px;
	border: 1px solid var(--wp--preset--color--line, #d9dfd5);
	border-radius: var(--wp--custom--radius--md, 16px);
	background: var(--wp--preset--color--surface, #fff);
	box-shadow: var(--wp--preset--shadow--doux, 0 8px 30px rgba(0, 0, 0, 0.15));
	color: var(--wp--preset--color--ink, #1d2b22);
	font-size: 15px;
	line-height: 1.5;
	pointer-events: auto;
}

.martigne-consentement__titre {
	margin: 0 0 6px;
	color: var(--wp--preset--color--heading, #1f3a2a);
	font-weight: 700;
}

.martigne-consentement__texte {
	margin: 0;
}

.martigne-consentement__texte a {
	color: var(--wp--preset--color--heading, #1f3a2a);
	font-weight: 600;
}

.martigne-consentement__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 16px;
}

.martigne-consentement__bouton {
	min-width: 140px;
	min-height: 48px;
	padding: 10px 24px;
	border: 2px solid var(--wp--preset--color--surface-deep, #1f3a2a);
	border-radius: var(--wp--custom--radius--pill, 999px);
	background: var(--wp--preset--color--surface-deep, #1f3a2a);
	color: var(--wp--preset--color--on-deep, #fff);
	font: inherit;
	font-weight: 700;
	cursor: pointer;
}

.martigne-consentement__bouton:hover {
	background: var(--wp--preset--color--heading, #16301f);
}

.martigne-consentement :focus-visible {
	outline: 2px solid var(--wp--custom--focus--default, #1f3a2a);
	outline-offset: 2px;
}

/* Lien « Gérer les cookies » du pied de page : visible seulement quand la mesure est active. */
.martigne-mesure-active .martigne-lien-cookies {
	display: block;
}

@media (max-width: 480px) {

	.martigne-consentement {
		right: 8px;
		bottom: 8px;
		left: 8px;
	}

	.martigne-consentement__boite {
		padding: 16px;
	}

	.martigne-consentement__bouton {
		flex: 1 1 0;
		min-width: 0;
	}
}
