/**
 * Base — reset moderne + typo de base
 */

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

* {
	margin: 0;
}

html {
	-webkit-text-size-adjust: 100%;
	-moz-text-size-adjust: 100%;
	text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: var(--header-height);
}

body {
	background: var(--bg);
	color: var(--text);
	font-family: var(--font-body);
	font-size: var(--fs-base);
	line-height: var(--lh-normal);
	min-height: 100vh;
	min-height: 100dvh;
	overflow-x: hidden;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	transition: background var(--transition-base), color var(--transition-base);
}

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

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

button {
	background: none;
	border: 0;
	cursor: pointer;
	padding: 0;
}

a {
	color: var(--accent);
	text-decoration: none;
	transition: color var(--transition-fast);
}

a:hover,
a:focus-visible {
	color: var(--accent-hover);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 2px;
}

p,
h1, h2, h3, h4, h5, h6 {
	overflow-wrap: break-word;
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-titles);
	font-weight: 700;
	line-height: var(--lh-tight);
	color: var(--text);
}

h1 { font-size: clamp(var(--fs-3xl), 5vw, var(--fs-5xl)); letter-spacing: -0.02em; }
h2 { font-size: clamp(var(--fs-2xl), 4vw, var(--fs-4xl)); letter-spacing: -0.015em; }
h3 { font-size: clamp(var(--fs-xl), 3vw, var(--fs-3xl)); letter-spacing: -0.01em; }
h4 { font-size: var(--fs-xl); }
h5 { font-size: var(--fs-lg); }
h6 { font-size: var(--fs-md); text-transform: uppercase; letter-spacing: 0.08em; }

p {
	line-height: var(--lh-relaxed);
}

ul, ol {
	padding-left: 1.25em;
}

li + li {
	margin-top: 0.25em;
}

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

::selection {
	background: var(--accent);
	color: var(--on-accent);
}

/* Lien skip-content pour accessibilité */
.skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: var(--z-toast);
	padding: var(--space-md);
	background: var(--accent);
	color: var(--on-accent);
	font-weight: 700;
}
.skip-link:focus {
	left: var(--space-md);
	top: var(--space-md);
}

/* ============================================================
   FINITIONS RESPONSIVE (ordi + mobile) — v0.9.41
   Améliorations sûres et globales, sans toucher aux mises en page.
   ============================================================ */

/* Aucun débordement horizontal possible (barre de scroll fantôme). */
html {
	overflow-x: hidden;
}

/* Médias toujours contenus dans leur colonne. */
img,
video,
iframe,
table {
	max-width: 100%;
}

/* Casse les mots/URLs trop longs au lieu de pousser la page. */
p,
li,
h1,
h2,
h3,
a {
	overflow-wrap: break-word;
	word-wrap: break-word;
}

/* Empêche iOS de zoomer les champs < 16px au focus (UX mobile). */
@media (max-width: 640px) {
	input,
	select,
	textarea {
		font-size: 16px;
	}
}

/* Cibles tactiles confortables sur mobile (≥ 44px = reco Apple/Google). */
@media (pointer: coarse) {
	button,
	.btn,
	.premium-btn,
	a.btn,
	input[type="submit"],
	.site-header__phone {
		min-height: 44px;
	}
}

/* Respiration latérale garantie sur petits écrans. */
@media (max-width: 480px) {
	.container,
	.container--narrow {
		padding-left: max(16px, env(safe-area-inset-left));
		padding-right: max(16px, env(safe-area-inset-right));
	}
}

/* Confort de lecture : pas de texte minuscule hérité. */
@media (max-width: 480px) {
	body {
		text-size-adjust: 100%;
		-webkit-text-size-adjust: 100%;
	}
}
