/* EXGREGA — built on the brand system's tokens (colors, type, spacing, radii) */

@font-face { font-family: "Lexend"; src: url("fonts/Lexend-latin.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible"; src: url("fonts/AtkinsonHyperlegible-Regular-latin.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Atkinson Hyperlegible"; src: url("fonts/AtkinsonHyperlegible-Bold-latin.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
	--papier: #f6f8fb;
	--surface: #ffffff;
	--encre: #1a2238;
	--gris: #56607a;
	--trait: #d9e0ea;
	--marine: #1d3270;
	--marine-plein: #1d3270;
	--sur-marine: #ffffff;
	--ciel: #9cc8f0;
	--ciel-pale: #e3eefa;
	--menthe: #7fcfa6;
	--miel: #f4b33d;
	--focus: #1d3270;
	--ombre-douce: 0 8px 24px rgba(29, 50, 112, 0.10);

	--font-display: "Lexend", "Segoe UI", system-ui, sans-serif;
	--font-texte: "Atkinson Hyperlegible", "Segoe UI", system-ui, sans-serif;

	--espace-1: 4px;
	--espace-2: 8px;
	--espace-3: 16px;
	--espace-4: 24px;
	--espace-5: 40px;
	--espace-6: 64px;
	--rayon-sm: 8px;
	--rayon-md: 14px;
	--rayon-lg: 24px;
	--rayon-pilule: 999px;
	color-scheme: light;
}

@media (prefers-color-scheme: dark) {
	:root {
		--papier: #0f1729;
		--surface: #172238;
		--encre: #eef2f9;
		--gris: #a3aec4;
		--trait: #2b3854;
		--marine: #a9bef5;
		--marine-plein: #2b4494;
		--ciel: #7fb3e6;
		--ciel-pale: #1c2d4d;
		--menthe: #6cc79a;
		--focus: #f4b33d;
		--ombre-douce: 0 8px 24px rgba(0, 0, 0, 0.35);
		color-scheme: dark;
	}
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
	margin: 0;
	background: var(--papier);
	color: var(--encre);
	font: 400 17px/27px var(--font-texte);
	overflow-wrap: anywhere;
}
img { max-width: 100%; height: auto; }
a { color: var(--marine); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 600; margin: 0; text-wrap: balance; color: var(--marine); }
h1 { font-size: clamp(34px, 5vw, 44px); line-height: 1.18; letter-spacing: -0.5px; }
h2 { font-size: clamp(26px, 3.6vw, 32px); line-height: 1.25; letter-spacing: -0.3px; }
h3 { font-size: 19px; line-height: 26px; font-weight: 500; }
p { margin: 0; }

.wrap { max-width: 1120px; margin: 0 auto; padding-inline: 20px; }
.eyebrow {
	font: 700 13px/16px var(--font-texte);
	letter-spacing: 0.6px;
	text-transform: uppercase;
	color: var(--gris);
	margin-bottom: var(--espace-2);
}

/* Buttons */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 12px 24px;
	border-radius: var(--rayon-pilule);
	border: 2px solid var(--marine-plein);
	background: var(--marine-plein);
	color: var(--sur-marine);
	font: 600 16px/1 var(--font-display);
	text-decoration: none;
	transition: transform 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--marine); border-color: var(--trait); }
.btn-ghost:hover { border-color: var(--marine); }
.btn-small { min-height: 40px; padding: 8px 18px; font-size: 15px; }
.btn-light { background: #ffffff; border-color: #ffffff; color: #1d3270; }
@media (prefers-reduced-motion: reduce) { .btn { transition: none; } .btn:hover { transform: none; } }

/* Header */
.site-header {
	position: sticky;
	top: 0;
	z-index: 10;
	background: color-mix(in srgb, var(--papier) 92%, transparent);
	backdrop-filter: blur(8px);
	border-bottom: 1px solid var(--trait);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: var(--espace-2) var(--espace-4); min-height: 72px; padding-block: 12px; }
.logo { display: block; line-height: 0; }
.logo img { height: 32px; width: auto; }
.nav { display: flex; align-items: center; flex-wrap: wrap; gap: var(--espace-2) var(--espace-4); }
.nav a:not(.btn) { color: var(--gris); text-decoration: none; font-weight: 700; font-size: 15px; }
.nav a:not(.btn):hover { color: var(--marine); }

/* Hero */
.hero { padding-block: var(--espace-6); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); align-items: center; gap: var(--espace-5); }
.hero-text { display: grid; gap: var(--espace-3); }
.hero-text .eyebrow { margin: 0; }
.lead { font-size: 19px; line-height: 30px; color: var(--gris); max-width: 34em; }
.actions { display: flex; flex-wrap: wrap; gap: var(--espace-2) var(--espace-3); margin-top: var(--espace-2); }
.hero-art { width: 100%; border-radius: 32px; box-shadow: var(--ombre-douce); }

/* Sections */
.section { padding-block: var(--espace-6); }
.section-tint { background: var(--ciel-pale); }
.section h2 { margin-bottom: var(--espace-5); max-width: 22em; }

.tile {
	display: inline-grid;
	place-items: center;
	width: 72px;
	height: 72px;
	border-radius: var(--rayon-lg);
	background: #ffffff; /* icons are drawn for light grounds, in both themes */
	box-shadow: var(--ombre-douce);
}

.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--espace-4); }
.card {
	display: grid;
	align-content: start;
	gap: var(--espace-3);
	padding: var(--espace-4);
	background: var(--surface);
	border-radius: var(--rayon-lg);
	box-shadow: var(--ombre-douce);
}
.card h3 { font-size: 22px; line-height: 28px; font-weight: 600; }
.card p { color: var(--gris); }
.card ul { margin: 0; padding: var(--espace-3) 0 0; list-style: none; border-top: 1px solid var(--trait); display: grid; gap: var(--espace-2); font-size: 15px; line-height: 22px; }
.card li { display: flex; gap: var(--espace-2); align-items: baseline; }
.card li::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--menthe); transform: translateY(-1px); }

/* Notre regard: ex grege, one data point out of the flock */
.regard-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); align-items: center; gap: var(--espace-5); }
.regard-text h2 { margin-bottom: var(--espace-3); }
.intro { color: var(--gris); font-size: 19px; line-height: 30px; max-width: 36em; }
.ideas { list-style: none; margin: var(--espace-4) 0 0; padding: 0; display: grid; gap: var(--espace-3); counter-reset: idee; }
.ideas li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 0 var(--espace-3); counter-increment: idee; }
.ideas li::before {
	content: counter(idee);
	grid-row: span 2;
	display: grid; place-items: center;
	width: 40px; height: 40px;
	border-radius: 50%;
	background: var(--surface);
	color: var(--marine);
	font: 600 17px/1 var(--font-display);
	box-shadow: var(--ombre-douce);
}
.ideas p { color: var(--gris); }
.flock { margin: 0; justify-self: center; width: 100%; max-width: 340px; }
.flock svg { display: block; width: 100%; height: auto; }
.flock-dots circle { fill: var(--ciel); }
.flock-path { fill: none; stroke: var(--marine); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 0.1 10; opacity: 0.5; }
.flock-out { fill: var(--miel); stroke: var(--marine); stroke-width: 4; }


.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--espace-4); counter-reset: etape; }
.steps li { display: grid; align-content: start; gap: var(--espace-2); counter-increment: etape; }
.steps .tile { width: 64px; height: 64px; margin-bottom: var(--espace-2); }
.steps h3::before { content: counter(etape) ". "; color: var(--gris); }
.steps p { color: var(--gris); font-size: 16px; line-height: 25px; }

.promises { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--espace-4) var(--espace-5); }
.promise { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: var(--espace-3); align-items: start; }
.promise img { width: 56px; height: 56px; padding: 8px; border-radius: var(--rayon-md); background: #ffffff; box-shadow: var(--ombre-douce); }
.promise p { color: var(--gris); margin-top: var(--espace-1); }

/* Contact */
.contact { background: var(--marine-plein); color: var(--sur-marine); padding-block: var(--espace-6); }
.contact h2 { color: var(--sur-marine); margin-bottom: var(--espace-3); }
.contact p { max-width: 36em; opacity: 0.9; }
.contact-grid { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--espace-4); }
.contact .btn:focus-visible { outline-color: #f4b33d; }

/* Footer */
.site-footer { padding-block: var(--espace-4); color: var(--gris); font-size: 15px; }
.site-footer .wrap { display: flex; align-items: center; flex-wrap: wrap; gap: var(--espace-2); }
.site-footer a { color: var(--gris); }
.site-footer a:hover { color: var(--marine); }

/* Text pages (confidentialité) */
.prose { max-width: 760px; }
.prose h1 { margin-bottom: var(--espace-3); }
.prose h2 { font-size: 24px; line-height: 32px; margin: var(--espace-5) 0 var(--espace-3); }
.prose ul { padding-left: 1.2em; display: grid; gap: var(--espace-2); }
.prose .updated { margin-top: var(--espace-5); color: var(--gris); font-size: 15px; }

/* Narrow screens */
@media (max-width: 900px) {
	.hero-grid, .regard-grid { grid-template-columns: minmax(0, 1fr); }
	.cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.flock { max-width: 260px; }
	.steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
	.hero, .section, .contact { padding-block: var(--espace-5); }
	.steps, .promises, .cards { grid-template-columns: minmax(0, 1fr); }
	.nav a:not(.btn) { display: none; }
}
