:root {
	--ican-focus-ring: 2px;
	--ican-focus-offset: 3px;
	--ican-radius: 6px;
}

.ican {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: none;
	width: var(--ican-size, 1em);
	height: var(--ican-size, 1em);
	line-height: 1;
	vertical-align: -0.125em;
	font-size: inherit;
	position: relative;
}

.ican--c {
	color: var(--ican-color);
}

.ican > svg {
	display: block;
	width: 100%;
	height: 100%;
	overflow: visible;
}

.ican--sw svg * {
	stroke-width: var(--ican-stroke);
}

.ican--svg:not(.ican--t-loop):not(.is-active) svg * {
	animation: none !important;
}

.ican--t-view.is-active svg *,
.ican--t-click.is-active svg * {
	animation-iteration-count: 1 !important;
}

.ican.is-off svg * {
	animation-play-state: paused !important;
}

.ican--notrans svg * {
	transition: none !important;
}

.ican--rc svg [fill]:not([fill="none"]) {
	fill: var(--ican-color, currentColor);
}

.ican--rc svg [stroke]:not([stroke="none"]) {
	stroke: var(--ican-color, currentColor);
}

.ican--lottie > svg {
	width: 100% !important;
	height: 100% !important;
}

.ican-wrap {
	display: block;
	line-height: 0;
}

.ican-wrap--left {
	text-align: left;
}

.ican-wrap--center {
	text-align: center;
}

.ican-wrap--right {
	text-align: right;
}

.ican-link {
	display: inline-flex;
	line-height: 0;
	color: inherit;
	text-decoration: none;
	border-radius: var(--ican-radius);
	transition: opacity 0.2s ease;
}

.ican-link:hover {
	opacity: 0.85;
	color: inherit;
}

.ican-link:focus-visible {
	outline: var(--ican-focus-ring) solid currentColor;
	outline-offset: var(--ican-focus-offset);
}

.ican-link:active {
	opacity: 0.7;
}

@media (prefers-reduced-motion: reduce) {
	.ican--rm svg * {
		animation: none !important;
		transition: none !important;
	}
}

/* Icône de bascule dans un popup Impreza : reste au-dessus et remplace le X natif.
   Impreza déplace le popup dans le body : on remonte l'en-tête au-dessus, on ne garde visible que le déclencheur. */
.ican-popup-raised .l-header {
	z-index: 10003 !important;
}

.ican-hdr-fade .l-header *:not(.ican-path):not(.ican-tr):not(.ican-tr *) {
	transition: opacity 0.35s ease;
}

.ican-hdr-fade .ican-path {
	transition: background-color 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.ican-hdr-fade .ican-path::before,
.ican-hdr-fade .ican-path::after {
	transition: opacity 0.35s ease;
}

.ican-popup-open .l-header *:not(.ican-path):not(.ican-tr):not(.ican-tr *) {
	opacity: 0 !important;
	pointer-events: none !important;
}

.ican-popup-open .ican-path {
	background-color: transparent !important;
	box-shadow: none !important;
	border-color: transparent !important;
	backdrop-filter: none !important;
}

.ican-popup-open .ican-path::before,
.ican-popup-open .ican-path::after {
	opacity: 0 !important;
}

.ican-tr {
	transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.w-popup.ican-over .w-popup-trigger,
.ican-popup-open .l-header .w-popup.ican-over .w-popup-trigger * {
	visibility: visible !important;
}

.w-popup.ican-over .w-popup-trigger,
.w-popup.ican-over .ican-zone {
	position: relative;
	z-index: 100002;
}

.w-popup-wrap.ican-owned .w-popup-closer,
.w-popup-wrap.ican-owned .w-popup-closer::before,
.w-popup-wrap.ican-owned .w-popup-closer::after {
	opacity: 0 !important;
	transition: none !important;
	animation: none !important;
}

.w-popup-wrap.ican-owned .w-popup-closer {
	cursor: pointer;
	z-index: 100 !important;
}

.ican-popup-open .ican-path,
.ican-popup-open .ican-tr,
.ican-popup-open .ican-tr * {
	pointer-events: none !important;
}

/* Icônes de menu : la boîte est rognée en hauteur, le dessin déborde (visible) et reste centré */
.ican--tight {
	height: calc(var(--ican-size, 1em) * 0.55);
}

.ican--tight > svg {
	flex: none;
	height: var(--ican-size, 1em);
}

/* Sens des menus fléchés (flèche : gauche par défaut, chevron : haut par défaut) */
.ican--sens > svg {
	transition: transform 0.35s ease;
}

.ican--sens.is-on > svg {
	transform: rotate(var(--ican-rot, 0deg));
}

/* Ombre des icônes Néo-brutaliste quand la couleur secondaire est vide : la principale à moitié transparente (comme Contour décalé) */
.ican--c {
	--ican-color-soft: color-mix(in srgb, var(--ican-color) 50%, transparent);
}

/* Tailles responsive (points de rupture d'Impreza : tablette 1024px, mobile 600px) */
@media (max-width: 1024px) {
	.ican--sz-t {
		--ican-size: var(--ican-size-t) !important;
	}
}

@media (max-width: 600px) {
	.ican--sz-m {
		--ican-size: var(--ican-size-m) !important;
	}
}

/* Couleurs propres au mode sombre du visiteur */
@media (prefers-color-scheme: dark) {
	.ican--dk1 {
		--ican-color: var(--ican-color-dark) !important;
	}

	.ican--dk2 {
		--ican-color-2: var(--ican-color-2-dark) !important;
	}
}

/* Animations génériques : l'icône entière (utile pour les SVG statiques importés) */
.ican--g > svg {
	transform-origin: center;
	transform-box: fill-box;
}

.ican--g svg * {
	animation: none !important;
}

.ican--g-pulse > svg {
	animation: ican-g-pulse 1.4s ease-in-out infinite;
}

.ican--g-swing > svg {
	transform-origin: 50% 8%;
	animation: ican-g-swing 1.8s ease-in-out infinite;
}

.ican--g-bounce > svg {
	animation: ican-g-bounce 1.1s ease-in-out infinite;
}

.ican--g-shake > svg {
	animation: ican-g-shake 1.4s ease-in-out infinite;
}

.ican--g-spin > svg {
	animation: ican-g-spin 3s linear infinite;
}

.ican--g-float > svg {
	animation: ican-g-float 3s ease-in-out infinite;
}

.ican--g-zoom > svg {
	animation: ican-g-zoom 1.8s ease-in-out infinite;
}

.ican--g-flip > svg {
	animation: ican-g-flip 1.8s ease-in-out infinite;
}

.ican--g-wiggle > svg {
	animation: ican-g-wiggle 1.4s ease-in-out infinite;
}

.ican--g-none > svg,
.ican--g-none svg * {
	animation: none !important;
}

.ican--g:not(.ican--t-loop):not(.is-active) > svg {
	animation: none !important;
}

.ican--t-view.ican--g.is-active > svg,
.ican--t-click.ican--g.is-active > svg {
	animation-iteration-count: 1 !important;
}

@keyframes ican-g-pulse {
	0%, 100% { transform: scale(1); }
	18% { transform: scale(1.18); }
	36% { transform: scale(0.95); }
	54% { transform: scale(1.1); }
	72% { transform: scale(1); }
}

@keyframes ican-g-swing {
	0%, 100% { transform: rotate(0); }
	15% { transform: rotate(14deg); }
	30% { transform: rotate(-11deg); }
	45% { transform: rotate(7deg); }
	60% { transform: rotate(-4deg); }
	75% { transform: rotate(1deg); }
}

@keyframes ican-g-bounce {
	0%, 100% { transform: translateY(0) scale(1, 1); }
	30% { transform: translateY(-14%) scale(0.97, 1.04); }
	55% { transform: translateY(0) scale(1.05, 0.95); }
}

@keyframes ican-g-shake {
	0%, 60%, 100% { transform: translateX(0); }
	10%, 30%, 50% { transform: translateX(-7%); }
	20%, 40% { transform: translateX(7%); }
}

@keyframes ican-g-spin {
	to { transform: rotate(360deg); }
}

@keyframes ican-g-float {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(-9%); }
}

@keyframes ican-g-zoom {
	0%, 100% { transform: scale(1); }
	50% { transform: scale(1.25); }
}

@keyframes ican-g-flip {
	0%, 100% { transform: scaleX(1); }
	50% { transform: scaleX(-1); }
}

@keyframes ican-g-wiggle {
	0%, 100% { transform: rotate(0); }
	20% { transform: rotate(-12deg); }
	45% { transform: rotate(10deg); }
	70% { transform: rotate(-4deg); }
}

@media (prefers-reduced-motion: reduce) {
	.ican--rm.ican--g > svg {
		animation: none !important;
	}
}

/* Délai de départ (attribut delai ou cascade) */
.ican.is-wait svg *,
.ican.is-wait > svg {
	animation-play-state: paused !important;
}
