/* ═══════════════════════════════════════════════════════════════════
   Reset minimal
   ═══════════════════════════════════════════════════════════════════ */

*,
*::before,
*::after { box-sizing: border-box; }

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

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

body {
	margin: 0;
	min-height: 100dvh;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; }
ul, ol { list-style: none; margin: 0; padding: 0; }
p, h1, h2, h3, h4, h5, h6 { overflow-wrap: break-word; }
a { color: inherit; }

/* ═══════════════════════════════════════════════════════════════════
   Custom properties complémentaires (hors theme.json)
   ═══════════════════════════════════════════════════════════════════ */

:root {
	--mc-header-height: 70px;
	--mc-max-width: var(--wp--style--global--content-size, 1200px);
	--mc-padding-x: 2rem;
}

/* ═══════════════════════════════════════════════════════════════════
   Utilitaires
   ═══════════════════════════════════════════════════════════════════ */

.sr-only {
	position: absolute;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* Police Early Sans Variable */
body {
	font-family: var(--wp--preset--font-family--early-sans);
	font-synthesis: none;
}

/* Retire le padding par défaut qu'ajoute WP FSE sur .wp-site-blocks */
.wp-site-blocks { padding-top: 0 !important; padding-bottom: 0 !important; }

/* Neutralise le block-gap sur le wrapper <main> de la front-page */
.wp-site-blocks > main { margin-block-start: 0 !important; }

/* Supprime le margin-block-start automatique entre blocs WP (layout-flow) */
:root :where(.is-layout-flow) > :not(:first-child) { margin-block-start: 0 !important; }

/* ═══════════════════════════════════════════════════════════════════
   Boutons standardisés
   ═══════════════════════════════════════════════════════════════════ */

/* ── Primaire (filled violet) ──────────────────────────────────── */

.mc-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.75rem 1.25rem;
	border-radius: var(--wp--custom--radius--full);
	border: 1.5px solid transparent;
	background-color: var(--wp--preset--color--violet);
	color: var(--wp--preset--color--blanc);
	font-size: var(--wp--preset--font-size--sm);
	font-weight: 900;
	font-variation-settings: "wght" 900;
	line-height: 1;
	text-decoration: none;
	cursor: pointer;
	white-space: nowrap;
	transition: background-color 200ms ease, color 200ms ease, border-color 200ms ease;
}

.mc-btn:hover {
	background-color: var(--wp--preset--color--violet-sombre);
	color: var(--wp--preset--color--blanc);
}

.mc-btn:focus-visible {
	outline: 2px solid var(--wp--preset--color--violet-clair);
	outline-offset: 3px;
}

/* ── Secondaire (outline violet) ───────────────────────────────── */

.mc-btn--outline {
	background-color: transparent;
	color: var(--wp--preset--color--violet);
	border-color: var(--wp--preset--color--violet);
}

.mc-btn--outline:hover {
	background-color: var(--wp--preset--color--violet);
	color: var(--wp--preset--color--blanc);
}

/* ── Tertiaire (bordure bottom uniquement, petit) ──────────────── */

.mc-btn--text {
	background-color: transparent;
	color: var(--wp--preset--color--encre);
	border: none;
	border-radius: 0;
	border-bottom: 1.5px solid currentColor;
	padding: 0 0 0.125rem;
}

.mc-btn--text:hover {
	background-color: transparent;
	color: var(--wp--preset--color--teal);
}

/* ── Toggle HT / TTC ───────────────────────────────────────────── */
/* TTC visible par défaut ; HT visible quand html.mc-prix-ht */
.mc-price-ht  { display: none; }
.mc-price-ttc { display: inline; }

html.mc-prix-ht .mc-price-ht  { display: inline; }
html.mc-prix-ht .mc-price-ttc { display: none; }
