/*
 * BASE
 *
 * Variables CSS, reset, typographie, layout container, accessibilité,
 * support des blocs Gutenberg. Chargé sur TOUTES les pages.
 */

/* =========================================
   1. DESIGN TOKENS
   ========================================= */
:root {
	--green: #008949;
	--green-dark: #006D39;
	--teal: #1B4456;
	--teal-dark: #133644;
	--bg-light: #E2DFD240;
	--bg-card: #FFFFFF;
	--text: rgba(31, 26, 28, 0.70);
	--text-muted: #5A6B73;
	--border: #E4E6E9;
	--white: #FFFFFF;

	--radius-sm: 8px;
	--radius-md: 16px;
	--radius-lg: 24px;
	--radius-xl: 32px;

	--shadow-sm: 0 2px 8px rgba(26, 42, 51, 0.04);
	--shadow-md: 0 8px 24px rgba(26, 42, 51, 0.08);

	--container: 1725px;
}

/* =========================================
   2. RESET
   ========================================= */
*,
*::before,
*::after {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	font-family: 'Montserrat', system-ui, -apple-system, sans-serif;
	color: var(--text);
	line-height: 1.6;
	font-size: 16px;
	-webkit-font-smoothing: antialiased;
	background: var(--white);
}

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

a {
	color: inherit;
	text-decoration: none;
}

button {
	font-family: inherit;
	cursor: pointer;
	border: none;
	background: none;
}

/* =========================================
   3. LAYOUT - CONTAINER
   ========================================= */
.container {
	width: 100%;
	max-width: var(--container);
	margin: 0 auto;
	padding: 0 24px;
}

/* =========================================
   4. SECTIONS GÉNÉRIQUES (titres, sections, accent)
   ========================================= */
.site-main { min-height: 50vh; }

section { scroll-margin-top: 80px; }

.section { padding: 96px 0; }

.section-light { background: var(--bg-light); }

.section-header {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	gap: 40px;
	margin-bottom: 48px;
	flex-wrap: wrap;
}

.section-header > div { max-width: 720px; }

h2 {
	font-size: clamp(28px, 4vw, 48px);
	font-weight: 700;
	letter-spacing: -0.02em;
	line-height: 1.15;
	color: var(--teal);
	margin-bottom: 16px;
}

h2 .accent { color: var(--green); }

.lede { font-size: 18px; color: var(--text-muted); }

@media (max-width: 968px) {
	.section { padding: 64px 0; }
}

@media (max-width: 650px) {
	.lede { font-size: 16px; }
}

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

.skip-link {
	position: absolute;
	top: -40px;
	left: 0;
	background: var(--green);
	color: #fff;
	padding: 0.5rem 1rem;
	z-index: 1000;
	transition: top 0.2s ease;
}

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

/* =========================================
   6. SUPPORT DES BLOCS GUTENBERG
   ========================================= */
.alignwide {
	max-width: 1200px;
	margin-left: auto;
	margin-right: auto;
}

.alignfull {
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
}

.wp-block-image figcaption {
	text-align: center;
	color: var(--text-muted);
	font-size: 0.875rem;
}
