/*
 * Produc-son — Base
 * Reset raisonné + typographie + éléments natifs. Aucune couleur en dur : tout vient de tokens.css.
 */

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

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

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
}

body {
	margin: 0;
	background-color: var(--ps-surface);
	color: var(--ps-text);
	font-family: var(--ps-font-body);
	font-size: var(--ps-text-base);
	line-height: var(--ps-leading-normal);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
	margin: 0 0 var(--ps-space-4);
	line-height: var(--ps-leading-tight);
	text-wrap: balance;
}

/* Krona One n'existe qu'en une seule graisse : on la réserve aux titres
   d'affichage (h1, h2). Le reste utilise la graisse forte du texte courant,
   plus lisible en petit corps. */
h1, h2 {
	font-family: var(--ps-font-title);
	font-weight: 400;
	letter-spacing: -0.01em;
}

h3, h4, h5, h6 {
	font-family: var(--ps-font-body);
	font-weight: 700;
	letter-spacing: -0.005em;
}

h1 { font-size: var(--ps-text-3xl); }
h2 { font-size: var(--ps-text-2xl); }
h3 { font-size: var(--ps-text-xl); }
h4 { font-size: var(--ps-text-lg); }
h5, h6 { font-size: var(--ps-text-base); }

p, ul, ol, dl, blockquote, figure, pre, table {
	margin: 0 0 var(--ps-space-4);
}

p {
	text-wrap: pretty;
}

:where(p, li):last-child {
	margin-bottom: 0;
}

a {
	color: inherit;
	text-decoration-color: color-mix(in srgb, var(--ps-accent) 60%, transparent);
	text-underline-offset: 0.18em;
	transition: color var(--ps-transition), text-decoration-color var(--ps-transition);
}

a:hover {
	color: var(--ps-accent);
	text-decoration-color: currentColor;
}

:focus-visible {
	outline: 2px solid var(--ps-focus);
	outline-offset: 3px;
	border-radius: var(--ps-radius-sm);
}

img,
picture,
video,
canvas,
svg,
iframe {
	display: block;
	max-width: 100%;
}

img,
video {
	height: auto;
}

button,
input,
select,
textarea {
	font: inherit;
	color: inherit;
}

hr {
	border: 0;
	border-top: 1px solid var(--ps-line);
	margin: var(--ps-space-6) 0;
}

blockquote {
	margin-inline: 0;
	padding-left: var(--ps-space-5);
	border-left: 3px solid var(--ps-accent);
	font-size: var(--ps-text-lg);
	color: var(--ps-text-muted);
}

table {
	width: 100%;
	border-collapse: collapse;
}

th,
td {
	padding: var(--ps-space-3);
	border-bottom: 1px solid var(--ps-line);
	text-align: left;
}

code,
kbd,
samp,
pre {
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: 0.9em;
}

pre {
	padding: var(--ps-space-4);
	background: var(--ps-surface-alt);
	border-radius: var(--ps-radius);
	overflow-x: auto;
}

/* Accessibilité : lien d'évitement et texte pour lecteurs d'écran */
.ps-skip-link {
	position: absolute;
	left: var(--ps-space-4);
	top: var(--ps-space-4);
	z-index: calc(var(--ps-z-header) + 10);
	padding: var(--ps-space-3) var(--ps-space-4);
	background: var(--ps-black);
	color: var(--ps-white);
	border-radius: var(--ps-radius-sm);
	transform: translateY(-200%);
	transition: transform var(--ps-transition);
}

.ps-skip-link:focus {
	transform: translateY(0);
	color: var(--ps-white);
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}
