/* ==========================================================================
   ABS MONDIAL EXPORT — Base : reset, typographie, liens, utilitaires
   ========================================================================== */

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

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

body {
	margin: 0;
	background: var(--ame-blanc);
	color: var(--ame-texte);
	font-family: var(--ame-font-body);
	font-size: 1rem;
	line-height: 1.65;
	font-weight: 400;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

img,
svg,
video {
	max-width: 100%;
	height: auto;
	display: inline-block;
	vertical-align: middle;
}

figure {
	margin: 0;
}

/* --- Titres -------------------------------------------------------------- */
h1,
h2,
h3,
h4,
h5,
h6,
.wp-block-heading {
	font-family: var(--ame-font-heading);
	font-weight: 700;
	line-height: 1.15;
	letter-spacing: -0.01em;
	color: var(--ame-marine);
	text-transform: uppercase;
	margin-top: 0;
	margin-bottom: 0.75rem;
}

h1.wp-block-heading,
.wp-block-post-title {
	font-weight: 800;
	font-size: var(--ame-fz-display);
}

h2.wp-block-heading {
	font-size: var(--ame-fz-h2);
}

h3.wp-block-heading {
	font-size: var(--ame-fz-h3);
}

/* --- Liens --------------------------------------------------------------- */
a {
	color: var(--ame-accent);
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
	transition: color var(--ame-transition);
}

a:hover {
	color: var(--ame-or);
}

/* --- Sélection & focus ------------------------------------------------ */
::selection {
	background: var(--ame-or);
	color: var(--ame-marine);
}

:focus-visible {
	outline: 2px solid var(--ame-or);
	outline-offset: 2px;
}

/* --- Conteneur de contenu de base -------------------------------------- */
.alignwide {
	max-width: var(--wp--style--global--wide-size, 1240px);
	margin-inline: auto;
}

/* --- Éléments de bloc en contexte clair --------------------------------- */
.wp-block-button__link,
.wp-element-button {
	text-decoration: none;
}

/* --- Skip-link ------------------------------------------------------------ */
.skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 100000;
	background: var(--ame-marine);
	color: var(--ame-blanc);
	padding: 0.75rem 1.25rem;
}

.skip-link:focus {
	left: 0;
}

/* --- Respect du mouvement réduit ---------------------------------------- */
@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
	*,
	*::before,
	*::after {
		animation-duration: 0.001s !important;
		transition-duration: 0.001s !important;
	}
}