/*
 * JDP Theme — Base styles (reset, body, typography).
 */

/* Box model + remove margins */
*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
	text-size-adjust: 100%;
	-webkit-tap-highlight-color: transparent;
}

body {
	margin: 0;
	padding: 0;
	font-family: var(--font-sans);
	font-size: var(--fs-body);
	font-weight: 500;
	line-height: var(--lh-normal);
	color: var(--fg1);
	background: var(--bg);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}

/* Skip link (a11y) */
.jdp-skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: var(--z-toast);
}
.jdp-skip-link:focus {
	left: var(--sp-2);
	top: var(--sp-2);
	background: var(--bg);
	color: var(--accent);
	padding: var(--sp-2) var(--sp-4);
	border: 2px solid var(--accent);
	border-radius: var(--radius-sm);
	font-weight: 600;
	text-decoration: none;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
	margin: 0;
	font-family: var(--font-sans);
	color: var(--fg1);
	letter-spacing: var(--tracking-tight);
}
h1 { font-size: var(--fs-h1); font-weight: 700; line-height: var(--lh-tight); }
h2 { font-size: var(--fs-h2); font-weight: 600; line-height: var(--lh-snug); }
h3 { font-size: var(--fs-h3); font-weight: 600; line-height: var(--lh-snug); }
h4 { font-size: var(--fs-h4); font-weight: 500; line-height: var(--lh-snug); }

p {
	margin: 0;
	line-height: var(--lh-normal);
}

a {
	color: inherit;
	text-decoration: none;
	transition: color var(--dur-fast) var(--ease-out);
}
a:hover {
	color: var(--accent);
}

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

ul, ol {
	margin: 0;
	padding: 0;
	list-style: none;
}

button {
	font-family: inherit;
	font-size: inherit;
	background: none;
	border: 0;
	padding: 0;
	cursor: pointer;
	color: inherit;
}

input,
select,
textarea {
	font-family: inherit;
	font-size: inherit;
	color: inherit;
}

/* Focus visible WCAG */
:focus-visible {
	outline: 2px solid var(--accent);
	outline-offset: 2px;
	border-radius: var(--radius-sm);
}

/* Screen reader only */
.screen-reader-text {
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	width: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	word-wrap: normal !important;
}

/* Eyebrow / labels (utility) */
.jdp-eyebrow {
	display: inline-block;
	font-size: var(--fs-micro);
	font-weight: 700;
	color: var(--eyebrow-color);
	text-transform: uppercase;
	letter-spacing: var(--tracking-caps);
}
/* Sur fond sombre, on conserve l'orange vif (--accent = 8:1 sur noir, conforme AA). */
.jdp-section--dark .jdp-eyebrow {
	color: var(--accent);
}

.jdp-display {
	font-size: var(--fs-display);
	font-weight: 800;
	line-height: var(--lh-tight);
	letter-spacing: var(--tracking-tight);
}

@media (max-width: 768px) {
	.jdp-display { font-size: 36px; }
}
