/* Structural layout: container, header, footer, section rhythm */

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

.section { padding-block: var(--section-padding-y); }
.section--surface { background: var(--surface); }
.section--dark { background: linear-gradient(160deg, var(--dark-blue) 0%, var(--dark-blue-alt) 100%); color: #fff; }
.section--dark h2, .section--dark h3 { color: #fff; }
.section--dark p { color: rgba(255,255,255,0.72); }

.section-header {
	max-width: 720px;
	margin: 0 auto 56px;
	text-align: center;
}
.section-header .eyebrow { justify-content: center; }

.eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--primary-blue);
	background: var(--light-blue);
	padding: 6px 14px;
	border-radius: var(--radius-pill);
	margin-bottom: 16px;
}
.section--dark .eyebrow { background: rgba(255,255,255,0.1); color: #93c5fd; }

/* Header */
.site-header {
	position: sticky;
	top: 0;
	z-index: 500;
	background: rgba(255,255,255,0.92);
	backdrop-filter: saturate(180%) blur(12px);
	border-bottom: 1px solid var(--border);
	height: var(--header-height);
}
.site-header .container {
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
}
.site-branding { display: flex; align-items: center; }
.site-branding a { display: flex; align-items: center; gap: 10px; color: var(--text); }
/* height (not max-height) is required here: our logo SVGs have no width/height
   attributes on the root <svg> (by design, for crisp responsive scaling), and as
   a flex item, "max-height + width:auto" with no other definite axis collapses
   the image to 0×0 in some browsers. An explicit height keeps one axis definite
   so the browser can derive width from the SVG's aspect ratio reliably. */
.site-branding img { height: 32px; width: auto; max-width: none; }
.site-branding .site-title { font-family: var(--font-heading); font-weight: 800; font-size: 1.25rem; color: var(--text); }

.primary-nav ul { list-style: none; display: flex; align-items: center; gap: 32px; margin: 0; padding: 0; }
.primary-nav a { color: var(--text); font-weight: 600; font-size: 0.95rem; }
.primary-nav a:hover { color: var(--primary-blue); }

.header-actions { display: flex; align-items: center; gap: 12px; }
.nav-toggle {
	display: none;
	background: none;
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	padding: 8px;
	color: var(--text);
}
.nav-toggle .icon-close { display: none; }
.nav-toggle.is-open .icon-menu { display: none; }
.nav-toggle.is-open .icon-close { display: inline-flex; }

/* Footer */
.site-footer {
	background: linear-gradient(160deg, var(--dark-blue) 0%, var(--dark-blue-alt) 100%);
	color: rgba(255,255,255,0.72);
	padding-top: 72px;
}
.footer-grid {
	display: grid;
	grid-template-columns: 1.3fr 0.8fr 0.8fr 0.9fr 1fr;
	gap: 40px;
	padding-bottom: 48px;
	border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-brand .site-title { color: #fff; font-family: var(--font-heading); font-weight: 800; font-size: 1.25rem; }
.footer-brand img { height: 28px; width: auto; max-width: none; } /* see .site-branding img comment above */
.footer-brand p { color: rgba(255,255,255,0.6); max-width: 320px; }
.footer-col h4 { color: #fff; font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 18px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.footer-col a { color: rgba(255,255,255,0.72); }
.footer-col a:hover { color: #fff; }
.footer-contact li { display: flex; align-items: flex-start; gap: 10px; color: rgba(255,255,255,0.72); }
.footer-contact .icon { flex-shrink: 0; margin-top: 3px; color: var(--primary-blue-light); }

.social-links { display: flex; gap: 10px; margin-top: 8px; }
.social-links a {
	display: flex; align-items: center; justify-content: center;
	width: 38px; height: 38px;
	border-radius: 50%;
	background: rgba(255,255,255,0.08);
	color: #fff;
}
.social-links a:hover { background: var(--primary-blue); }

.footer-bottom {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px;
	padding: 24px 0;
	font-size: 0.85rem;
	color: rgba(255,255,255,0.5);
}
.footer-bottom ul { list-style: none; display: flex; gap: 20px; padding: 0; margin: 0; }
.footer-bottom a { color: rgba(255,255,255,0.6); }
.footer-bottom a:hover { color: #fff; }

/* Utility grids */
.grid { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.page-hero {
	padding: 56px 0 40px;
	background: linear-gradient(160deg, var(--dark-blue) 0%, var(--dark-blue-alt) 100%);
	color: #fff;
	text-align: center;
}
.page-hero h1 { color: #fff; margin-bottom: 8px; }
.page-hero p { color: rgba(255,255,255,0.72); max-width: 640px; margin-inline: auto; }

.entry-content { max-width: 820px; margin: 0 auto; }
/* Long-form legal/document pages (CGU, Politique de confidentialité…) don't
   want section-hero-sized headings stacked a dozen times down the page —
   override the global clamp() with a document-appropriate scale. */
.entry-content h2 { font-size: 1.375rem; margin: 40px 0 12px; }
.entry-content h3 { font-size: 1.1rem; margin: 24px 0 8px; }
.entry-content p, .entry-content li { line-height: 1.7; }
.entry-content ul, .entry-content ol { color: var(--text); }
.entry-content hr { border: none; border-top: 1px solid var(--border); margin: 40px 0; }
.entry-content em { color: var(--muted-text); }
