/**
 * Alias des tokens semantiques retires de la palette UI (story 1.21).
 *
 * theme.json expose 6 pastilles marque (dont outline #dddddd).
 * Les variables / classes .has-*-color restent disponibles pour le CSS existant.
 * error = rouge systeme hors marque (Fluent Forms / FAQ).
 */

:root {
	--wp--preset--color--surface: var(--wp--preset--color--background, #ffffff);
	--wp--preset--color--on-primary: var(--wp--preset--color--background, #ffffff);
	--wp--preset--color--on-secondary: var(--wp--preset--color--background, #ffffff);
	--wp--preset--color--on-error: var(--wp--preset--color--background, #ffffff);
	--wp--preset--color--on-surface: var(--wp--preset--color--on-background, #171717);
	--wp--preset--color--on-surface-muted: var(--wp--preset--color--on-background, #171717);
	--wp--preset--color--secondary: var(--wp--preset--color--primary, #008476);
	--wp--preset--color--focus-ring: var(--wp--preset--color--primary, #008476);
	--wp--preset--color--surface-footer: var(--wp--preset--color--surface-muted, #f3f5f4);
	/* outline = pastille palette ; outline-variant suit #dddddd. */
	--wp--preset--color--outline-variant: var(--wp--preset--color--outline, #dddddd);
	/* Rouge systeme hors pastilles marque. */
	--wp--preset--color--error: #b3261e;
}

.has-surface-color {
	color: var(--wp--preset--color--surface) !important;
}

.has-surface-background-color {
	background-color: var(--wp--preset--color--surface) !important;
}

.has-on-primary-color {
	color: var(--wp--preset--color--on-primary) !important;
}

.has-on-primary-background-color {
	background-color: var(--wp--preset--color--on-primary) !important;
}

.has-on-secondary-color {
	color: var(--wp--preset--color--on-secondary) !important;
}

.has-on-secondary-background-color {
	background-color: var(--wp--preset--color--on-secondary) !important;
}

.has-on-error-color {
	color: var(--wp--preset--color--on-error) !important;
}

.has-on-error-background-color {
	background-color: var(--wp--preset--color--on-error) !important;
}

.has-on-surface-color {
	color: var(--wp--preset--color--on-surface) !important;
}

.has-on-surface-background-color {
	background-color: var(--wp--preset--color--on-surface) !important;
}

.has-on-surface-muted-color {
	color: var(--wp--preset--color--on-surface-muted) !important;
}

.has-on-surface-muted-background-color {
	background-color: var(--wp--preset--color--on-surface-muted) !important;
}

.has-secondary-color {
	color: var(--wp--preset--color--secondary) !important;
}

.has-secondary-background-color {
	background-color: var(--wp--preset--color--secondary) !important;
}

.has-focus-ring-color {
	color: var(--wp--preset--color--focus-ring) !important;
}

.has-focus-ring-background-color {
	background-color: var(--wp--preset--color--focus-ring) !important;
}

.has-surface-footer-color {
	color: var(--wp--preset--color--surface-footer) !important;
}

.has-surface-footer-background-color {
	background-color: var(--wp--preset--color--surface-footer) !important;
}

.has-outline-color {
	color: var(--wp--preset--color--outline) !important;
}

.has-outline-background-color {
	background-color: var(--wp--preset--color--outline) !important;
}

.has-outline-variant-color {
	color: var(--wp--preset--color--outline-variant) !important;
}

.has-outline-variant-background-color {
	background-color: var(--wp--preset--color--outline-variant) !important;
}

.has-error-color {
	color: var(--wp--preset--color--error) !important;
}

.has-error-background-color {
	background-color: var(--wp--preset--color--error) !important;
}
