/* ==== Base ==== */
html {
	scroll-padding-top: calc(var(--barre-admin) + var(--entete-visible) + 16px);
}
@media (prefers-reduced-motion: no-preference) {
	html {
		scroll-behavior: smooth;
	}
}
body {
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}
img, video, canvas {
	max-width: 100%;
	height: auto;
	display: block;
}
.elementor-icon-wrapper {
	line-height: 0;
}
::marker {
	color: var(--e-global-color-primary);
	font-weight: 600;
}
::selection {
	background: var(--e-global-color-primary);
	color: var(--e-global-color-fond-1);
}
b, strong, .elementor-inline-editing b {
	font-weight: 700;
}
ul, ol {
	margin-bottom: 15px;
}
blockquote {
	border-left: 3px solid var(--e-global-color-primary);
	padding-left: 20px;
}
.elementor-swiper-button-prev svg {
	transform: scaleX(-1);
}

/* ==== Textes : retours à la ligne de la maquette (jamais rééquilibrés ni coupés d'un trait d'union), seul un mot plus long que la ligne est coupé ==== */
h1, h2, h3, h4, h5, h6, .elementor-heading-title {
	overflow-wrap: break-word;
}
.elementor-widget-text-editor :is(p, ul, ol):last-child {
	margin-block-end: 0;
}

/* ==== Onglets : le titre prend la taille de son texte, pour qu'une hauteur de ligne du kit en em se calcule sur elle et ne coupe plus le texte ==== */
.elementor-widget-n-tabs .e-n-tab-title {
	font-size: var(--n-tabs-title-font-size);
}

/* ==== Icônes au trait : même épaisseur à toutes les tailles ==== */
:is(.elementor-icon, .elementor-icon-list-icon, .elementor-button-icon, .elementor-icon-box-icon) svg :is([stroke], [stroke] *) {
	stroke-width: var(--icone-trait);
	vector-effect: non-scaling-stroke;
}

/* ==== Icône : taille en %, de la largeur du widget (avec includes/icon-percent-size.php) ==== */
.elementor-widget-icon .elementor-icon > svg {
	--icon-percent-width: 100%;
	--icon-percent-contain: none;
}
.elementor-widget-icon .elementor-icon:not(:has(> svg)) {
	--icon-percent-width: auto;
	--icon-percent-contain: none;
}

/* ==== Focus visible ==== */
:where(a, button, input, select, textarea, summary):focus-visible {
	outline: 2px solid var(--e-global-color-primary);
	outline-offset: 3px;
}
.sombre :where(a, button):focus-visible {
	outline-color: var(--e-global-color-secondary);
}

/* ==== Listes à coche (classe liste-coche sur le widget) ==== */
.liste-coche ul:not([class*="elementor-editor"]) {
	list-style: none;
	padding: 0;
	display: grid;
	gap: var(--gap-liste, 12px);
}
.liste-coche ul:not([class*="elementor-editor"]) > li {
	position: relative;
	padding-left: 32px;
}
.liste-coche ul:not([class*="elementor-editor"]) > li::before {
	content: "";
	position: absolute;
	left: 0;
	top: calc(0.8em - 8.5px);
	width: 20px;
	height: 17px;
	background: currentColor;
	mask: var(--puce-liste, url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 20'%3E%3Cpath d='M3 10.5l6 6L21 3.5' fill='none' stroke='%23000' stroke-width='2.4'/%3E%3C/svg%3E")) no-repeat center / contain;
}
