/**
 * AfroMag - Base / reset léger.
 * On évite un reset agressif (type normalize.css complet) pour rester
 * léger : seulement ce qui est nécessaire pour un rendu cohérent
 * entre navigateurs.
 */

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

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

body {
	margin: 0;
	font-family: var(--afromag-font-body);
	font-size: var(--afromag-font-size-base);
	line-height: var(--afromag-line-height-base);
	color: var(--afromag-color-black);
	background-color: var(--afromag-color-white);
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

a {
	color: var(--afromag-color-black);
	text-decoration: none;
	transition: color 0.2s ease;
}

a:hover,
a:focus {
	color: var(--afromag-color-red);
}

h1,
h2,
h3,
h4,
h5,
h6 {
	font-family: var(--afromag-font-heading);
	font-weight: 700;
	line-height: 1.25;
	margin: 0 0 0.5em;
	color: var(--afromag-color-black);
}

.afromag-container {
	width: 100%;
	max-width: var(--afromag-container-width);
	margin-inline: auto;
	padding-inline: var(--afromag-gap);
}

.screen-reader-text {
	position: absolute;
	left: -9999px;
	top: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* Focus visible clair, pour l'accessibilité clavier (point 32 du cahier des charges) */
a:focus-visible,
button:focus-visible,
input:focus-visible {
	outline: 3px solid var(--afromag-color-blue-accent);
	outline-offset: 2px;
}

button {
	font-family: inherit;
	cursor: pointer;
}

.afromag-badge {
	display: inline-block;
	background-color: var(--afromag-color-red);
	color: var(--afromag-color-white);
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	padding: 0.3em 0.7em;
	border-radius: 3px;
}
