/*
 * Styles de base : typographie, liens, mise en page.
 * Chargé après les styles de Hello Elementor, qu'il remplace sur ces points.
 * La police (@font-face) est déclarée dans theme.json : WordPress l'imprime sur toutes les pages.
 */

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
}

body {
	margin: 0;
	background: var(--vm-page);
	color: var(--vm-text);
	font-family: var(--vm-font);
	font-size: var(--vm-fs-body);
	font-optical-sizing: auto;
	line-height: var(--vm-lh-body);
}

/* Titres */
h1,
h2,
h3,
h4,
h5,
h6 {
	margin-block: 0 var(--vm-space-3);
	color: var(--vm-text);
	font-family: var(--vm-font);
	font-weight: 700;
	line-height: var(--vm-lh-heading);
}

h1 { font-size: var(--vm-fs-h1); line-height: var(--vm-lh-tight); }
h2 { font-size: var(--vm-fs-h2); }
h3 { font-size: var(--vm-fs-h3); }
h4 { font-size: var(--vm-fs-h4); }
h5 { font-size: var(--vm-fs-lead); }
h6 { font-size: var(--vm-fs-body); }

p,
ul,
ol,
dl,
blockquote,
figure,
table {
	margin-block: 0 var(--vm-space-3);
}

/* Liens : bleu primaire, survol bleu foncé */
a {
	color: var(--vm-primary);
}

a:hover,
a:active {
	color: var(--vm-primary-dark);
}

img,
svg,
video {
	max-width: 100%;
	height: auto;
}

strong,
b {
	font-weight: 700;
}

code,
kbd,
pre,
samp {
	font-family: var(--vm-font-mono);
	font-size: 0.875em;
}

/* Texte de mise en avant */
.vm-lead {
	color: var(--vm-text-lead);
	font-size: var(--vm-fs-lead);
}

.vm-meta {
	color: var(--vm-text-muted);
	font-size: var(--vm-fs-meta);
}

/* Mise en page */
.vm-container {
	box-sizing: border-box;
	width: 100%;
	max-width: calc(var(--vm-container) + 2 * var(--vm-gutter));
	margin-inline: auto;
	padding-inline: var(--vm-gutter);
}

.vm-section {
	padding-block: var(--vm-section-y);
}

.vm-section--surface {
	background: var(--vm-surface);
}

.vm-stack > * + * {
	margin-block-start: var(--vm-space-4);
}

.vm-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(var(--vm-grid-min), 100%), 1fr));
	gap: var(--vm-grid-gap);
}
