/* ==========================================================================
   Nag's Prod — feuille de style principale
   1. Tokens · 2. Reset · 3. Base · 4. Layout · 5. Composants
   6. En-tête · 7. Sections · 8. Formulaires · 9. Pied de page
   10. Animations · 11. Accessibilité & responsive
   ========================================================================== */

/* ==========================================================================
   1. TOKENS
   ========================================================================== */

:root {
	/* --- Couleurs de marque (issues du logo) --- */
	--brand-blue: #b0d8ff;
	--brand-peach: #fec9be;
	--brand-yellow: #fff49f;
	--brand-green: #d9fabb;

	/* Versions désaturées pour les grands aplats de fond */
	--tint-blue: #eaf5ff;
	--tint-peach: #fff1ed;
	--tint-yellow: #fffce8;
	--tint-green: #f2fde9;

	/* --- Neutres --- */
	--ink: #0f0f10;
	--ink-soft: #52525b;
	--ink-faint: #8b8b93;
	--paper: #fbfaf8;
	--paper-pure: #ffffff;
	--line: #e6e4e0;
	--line-strong: #d3d0ca;

	/* --- Sémantique --- */
	--bg: var(--paper);
	--fg: var(--ink);
	--muted: var(--ink-soft);
	--danger: #b42318;
	--success: #067647;

	/* --- Typographie --- */
	--font-display: "Playfair Display", Georgia, "Times New Roman", serif;
	--font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	--font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

	--fs-hero: clamp(2.6rem, 6vw, 5.25rem);
	--fs-h1: clamp(2.25rem, 5vw, 4rem);
	--fs-h2: clamp(1.75rem, 3.5vw, 3rem);
	--fs-h3: clamp(1.25rem, 2vw, 1.75rem);
	--fs-lead: clamp(1.05rem, 1.4vw, 1.3rem);
	--fs-body: 1rem;
	--fs-small: 0.875rem;
	--fs-label: 0.75rem;

	/* --- Espacement --- */
	--sp-1: 0.25rem;
	--sp-2: 0.5rem;
	--sp-3: 0.75rem;
	--sp-4: 1rem;
	--sp-5: 1.25rem;
	--sp-6: 1.5rem;
	--sp-8: 2rem;
	--sp-12: 3rem;
	--sp-16: 4rem;
	--sp-24: 6rem;
	--sp-32: 8rem;

	--section-y: clamp(5rem, 12vw, 10rem);
	--gutter: clamp(1.25rem, 5vw, 4rem);
	--container: 1240px;

	/* --- Formes --- */
	--r-sm: 6px;
	--r-md: 14px;
	--r-lg: 24px;
	--r-xl: 32px;
	--r-pill: 999px;

	/* --- Ombres (très discrètes : on est sur du papier) --- */
	--shadow-sm: 0 1px 2px rgba(15, 15, 16, 0.04);
	--shadow-md: 0 4px 24px rgba(15, 15, 16, 0.06);
	--shadow-lg: 0 24px 64px rgba(15, 15, 16, 0.08);

	/* --- Mouvement --- */
	--ease-out: cubic-bezier(0.16, 1, 0.3, 1);
	--ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
	--dur-fast: 150ms;
	--dur-base: 250ms;
	--dur-slow: 400ms;

	--header-h: 80px;
}

/* Mapping service → couleur : une seule source de vérité. */
[data-color="blue"] { --c: var(--brand-blue); --c-tint: var(--tint-blue); }
[data-color="peach"] { --c: var(--brand-peach); --c-tint: var(--tint-peach); }
[data-color="yellow"] { --c: var(--brand-yellow); --c-tint: var(--tint-yellow); }
[data-color="green"] { --c: var(--brand-green); --c-tint: var(--tint-green); }

/* ==========================================================================
   2. RESET
   ========================================================================== */

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

* { margin: 0; }

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
	font-family: var(--font-body);
	font-size: var(--fs-body);
	line-height: 1.65;
	color: var(--fg);
	background: var(--bg);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: hidden;
}

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

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

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

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

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

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

:focus-visible {
	outline: 2px solid var(--ink);
	outline-offset: 3px;
	border-radius: 2px;
}

::selection { background: var(--brand-yellow); color: var(--ink); }

/* ==========================================================================
   3. BASE TYPOGRAPHIQUE
   ========================================================================== */

h1, h2, h3, h4 {
	font-family: var(--font-display);
	font-weight: 400;
	line-height: 1.06;
	letter-spacing: -0.02em;
	text-wrap: balance;
}

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); line-height: 1.2; }

.display {
	font-family: var(--font-display);
	font-size: var(--fs-hero);
	line-height: 1.02;
	letter-spacing: -0.03em;
}

.lead {
	font-size: var(--fs-lead);
	line-height: 1.6;
	color: var(--muted);
	text-wrap: pretty;
}

.label {
	font-family: var(--font-mono);
	font-size: var(--fs-label);
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	color: var(--ink-faint);
}

.italic { font-style: italic; }

/* --- Le surligneur : signature visuelle de la marque --- */
.hl {
	position: relative;
	display: inline-block;
	isolation: isolate;
	white-space: nowrap;
}

.hl::before {
	content: "";
	position: absolute;
	z-index: -1;
	left: -0.14em;
	right: -0.14em;
	bottom: 0.04em;
	height: 0.46em;
	background: var(--c, var(--brand-yellow));
	border-radius: var(--r-pill);
	transform: scaleX(1);
	transform-origin: left center;
}

.hl--tall::before { height: 0.7em; bottom: 0.02em; }

/* ==========================================================================
   4. LAYOUT
   ========================================================================== */

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

.container--narrow { max-width: 820px; }
.container--wide { max-width: 1480px; }

.section { padding-block: var(--section-y); position: relative; }
.section--tight { padding-block: clamp(3rem, 7vw, 5rem); }
.section--tint { background: var(--paper-pure); }

.section__head { max-width: 60ch; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section__head--center { margin-inline: auto; text-align: center; }
.section__head .label { display: block; margin-bottom: var(--sp-4); }
.section__head h2 { margin-bottom: var(--sp-4); }

.grid { display: grid; gap: var(--sp-6); }

.stack > * + * { margin-top: var(--sp-4); }

.divider { height: 1px; background: var(--line); border: 0; }

/* ==========================================================================
   5. COMPOSANTS
   ========================================================================== */

/* --- Boutons --- */
.btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: var(--sp-2);
	min-height: 48px;
	padding: 0 var(--sp-6);
	border-radius: var(--r-pill);
	font-size: var(--fs-small);
	font-weight: 500;
	letter-spacing: 0.01em;
	white-space: nowrap;
	cursor: pointer;
	border: 1px solid transparent;
	transition:
		background-color var(--dur-base) var(--ease-out),
		color var(--dur-base) var(--ease-out),
		border-color var(--dur-base) var(--ease-out),
		transform var(--dur-fast) var(--ease-out);
}

.btn .icon { transition: transform var(--dur-base) var(--ease-out); }
.btn:hover .icon { transform: translateX(3px); }
.btn:active { transform: scale(0.97); }

.btn--primary { background: var(--ink); color: var(--paper-pure); }
.btn--primary:hover { background: #2a2a2e; }

.btn--outline { border-color: var(--line-strong); color: var(--ink); }
.btn--outline:hover { border-color: var(--ink); background: var(--ink); color: var(--paper-pure); }

.btn--tint { background: var(--c, var(--brand-blue)); color: var(--ink); }
.btn--tint:hover { filter: brightness(0.95); }

.btn--paper { background: var(--paper-pure); color: var(--ink); }
.btn--paper:hover { background: var(--brand-yellow); }

.btn--outline-paper { border-color: rgba(251, 250, 248, 0.3); color: var(--paper); }
.btn--outline-paper:hover { border-color: var(--paper-pure); background: rgba(251, 250, 248, 0.1); }

.btn--ghost { color: var(--ink); padding-inline: var(--sp-3); }
.btn--ghost:hover { color: var(--ink-soft); }

.btn--lg { min-height: 56px; padding-inline: var(--sp-8); font-size: var(--fs-body); }
.btn--block { width: 100%; }

/* --- Lien souligné animé --- */
.link-u {
	position: relative;
	display: inline-block;
	padding-bottom: 2px;
}

.link-u::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 100%;
	height: 1px;
	background: currentColor;
	transform: scaleX(0);
	transform-origin: right center;
	transition: transform var(--dur-slow) var(--ease-out);
}

.link-u:hover::after { transform: scaleX(1); transform-origin: left center; }
.link-u--on::after { transform: scaleX(1); }

/* --- Puce / tag --- */
.chip {
	display: inline-flex;
	align-items: center;
	gap: var(--sp-2);
	padding: 6px var(--sp-3);
	border-radius: var(--r-pill);
	background: var(--c, var(--brand-blue));
	color: var(--ink);
	font-family: var(--font-mono);
	font-size: var(--fs-label);
	letter-spacing: 0.06em;
	text-transform: uppercase;
	white-space: nowrap;
}

.chip--outline { background: transparent; border: 1px solid var(--line-strong); color: var(--ink-soft); }

/* --- Carte générique --- */
.card {
	position: relative;
	background: var(--paper-pure);
	border: 1px solid var(--line);
	border-radius: var(--r-lg);
	padding: clamp(1.5rem, 3vw, 2.5rem);
	transition:
		border-color var(--dur-base) var(--ease-out),
		box-shadow var(--dur-base) var(--ease-out),
		transform var(--dur-base) var(--ease-out);
}

/* --- Blob décoratif --- */
.blob {
	position: absolute;
	border-radius: 50%;
	filter: blur(60px);
	opacity: 0.55;
	pointer-events: none;
	z-index: 0;
}

/* ==========================================================================
   6. EN-TÊTE
   ========================================================================== */

.skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	z-index: 999;
	padding: var(--sp-3) var(--sp-4);
	background: var(--ink);
	color: var(--paper-pure);
	border-radius: 0 0 var(--r-sm) 0;
}

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

.header {
	position: fixed;
	inset: 0 0 auto 0;
	z-index: 100;
	height: var(--header-h);
	display: flex;
	align-items: center;
	background: rgba(251, 250, 248, 0);
	border-bottom: 1px solid transparent;
	transition:
		background-color var(--dur-slow) var(--ease-out),
		border-color var(--dur-slow) var(--ease-out),
		transform var(--dur-slow) var(--ease-out);
}

.header.is-stuck {
	background: rgba(251, 250, 248, 0.88);
	backdrop-filter: saturate(180%) blur(12px);
	-webkit-backdrop-filter: saturate(180%) blur(12px);
	border-bottom-color: var(--line);
}

.header.is-hidden { transform: translateY(-100%); }

.header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--sp-6);
	width: 100%;
}

/* --- Logo --- */
.brand {
	display: inline-flex;
	align-items: center;
	flex-shrink: 0;
	transition: opacity var(--dur-base) var(--ease-out);
}

.brand:hover { opacity: 0.72; }

/* Le fichier fait 413×160 : on contraint la hauteur, la largeur suit.
   En dessous de ~52 px, la ligne « PRODUCTION » du lockup n'est plus lisible. */
.brand__img {
	display: block;
	height: 52px;
	width: auto;
	max-width: none;
}

.footer .brand__img { height: 68px; }

@media (min-width: 900px) {
	.brand__img { height: 60px; }
	.footer .brand__img { height: 80px; }
}

/* --- Navigation --- */
.nav { display: flex; align-items: center; gap: clamp(1rem, 2.5vw, 2.25rem); }

/* Sous 900 px, la navigation passe entièrement par le menu plein écran. */
.nav__list { display: none; align-items: center; gap: clamp(1rem, 2.5vw, 2.25rem); }

.nav__link {
	position: relative;
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	font-size: var(--fs-small);
	font-weight: 500;
	color: var(--ink-soft);
	transition: color var(--dur-base) var(--ease-out);
}

.nav__link::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 11px;
	width: 100%;
	height: 6px;
	border-radius: var(--r-pill);
	background: var(--brand-yellow);
	z-index: -1;
	transform: scaleX(0);
	transform-origin: left center;
	transition: transform var(--dur-slow) var(--ease-out);
}

.nav__link:hover,
.nav__link[aria-current="page"] { color: var(--ink); }
.nav__link:hover::after,
.nav__link[aria-current="page"]::after { transform: scaleX(1); }

.nav__item { isolation: isolate; }

.header__cta { display: none; }

/* --- Bouton burger --- */
.burger {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	margin-right: -12px;
	border-radius: var(--r-pill);
	color: var(--ink);
	transition: background-color var(--dur-base) var(--ease-out);
}

.burger:hover { background: rgba(15, 15, 16, 0.05); }
.burger .icon--close { display: none; }
.burger[aria-expanded="true"] .icon--menu { display: none; }
.burger[aria-expanded="true"] .icon--close { display: block; }

/* --- Menu mobile --- */
.mobile-nav {
	position: fixed;
	inset: 0;
	z-index: 99;
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: var(--header-h) var(--gutter) var(--sp-12);
	background: var(--paper);
	visibility: hidden;
	opacity: 0;
	transition:
		opacity var(--dur-slow) var(--ease-out),
		visibility var(--dur-slow) var(--ease-out);
}

/* Sans cette règle, le display:flex ci-dessus l'emporte sur [hidden]. */
.mobile-nav[hidden] { display: none; }

.mobile-nav.is-open { visibility: visible; opacity: 1; }

.mobile-nav__list { display: flex; flex-direction: column; gap: var(--sp-2); }

.mobile-nav__link {
	display: block;
	font-family: var(--font-display);
	font-size: clamp(2rem, 9vw, 3rem);
	line-height: 1.2;
	padding: var(--sp-2) 0;
}

.mobile-nav__foot {
	margin-top: var(--sp-12);
	padding-top: var(--sp-6);
	border-top: 1px solid var(--line);
	display: flex;
	flex-direction: column;
	gap: var(--sp-4);
}

/* ==========================================================================
   7. SECTIONS
   ========================================================================== */

/* --- 7.1 Hero --- */
.hero {
	position: relative;
	padding-top: calc(var(--header-h) + clamp(3rem, 9vw, 7rem));
	padding-bottom: clamp(3rem, 8vw, 6rem);
	overflow: hidden;
}

.hero__deco { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero__deco .blob:nth-child(1) { width: 44vw; height: 44vw; top: -12%; right: -10%; background: var(--brand-blue); }
.hero__deco .blob:nth-child(2) { width: 34vw; height: 34vw; bottom: -18%; left: -8%; background: var(--brand-peach); }
.hero__deco .blob:nth-child(3) { width: 26vw; height: 26vw; top: 40%; left: 42%; background: var(--brand-green); opacity: 0.35; }

.hero__inner { position: relative; z-index: 1; }

.hero__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: var(--sp-2);
	margin-bottom: var(--sp-6);
}

.hero__eyebrow::before {
	content: "";
	width: 32px;
	height: 1px;
	background: var(--ink-faint);
}

.hero__title { margin-bottom: var(--sp-8); max-width: 15ch; }

.hero__lead { max-width: 52ch; margin-bottom: var(--sp-8); }

.hero__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--sp-4);
	margin-bottom: clamp(3rem, 7vw, 5rem);
}

.hero__proof {
	display: flex;
	flex-wrap: wrap;
	gap: var(--sp-6) clamp(2rem, 5vw, 4rem);
	padding-top: var(--sp-8);
	border-top: 1px solid var(--line);
}

.hero__proof-item { display: flex; flex-direction: column; gap: 2px; }
.hero__proof-num { font-family: var(--font-display); font-size: clamp(1.75rem, 3vw, 2.5rem); line-height: 1; }
.hero__proof-label { font-size: var(--fs-small); color: var(--muted); }

/* Carte « nos quatre métiers » : occupe la colonne droite du hero en desktop
   et reprend le langage du logo — un mot, un trait de surligneur. */
.hero__card {
	display: none;
	flex-direction: column;
	gap: var(--sp-5);
	padding: var(--sp-6);
	background: var(--paper-pure);
	border: 1px solid var(--line);
	border-radius: var(--r-lg);
	box-shadow: var(--shadow-md);
}

.hero__card-list { display: flex; flex-direction: column; gap: var(--sp-3); }

.hero__card-list li {
	display: flex;
	align-items: center;
	gap: var(--sp-3);
	font-family: var(--font-display);
	font-size: 1.05rem;
	line-height: 1.3;
}

.hero__card-mark {
	width: 22px;
	height: 10px;
	border-radius: var(--r-pill);
	background: var(--c, var(--brand-blue));
	flex-shrink: 0;
}

.hero__card-note {
	padding-top: var(--sp-4);
	border-top: 1px solid var(--line);
	font-size: var(--fs-small);
	color: var(--muted);
}

.hero__scroll {
	display: none;
	align-items: center;
	gap: var(--sp-2);
	margin-top: var(--sp-8);
	color: var(--ink-faint);
	font-family: var(--font-mono);
	font-size: var(--fs-label);
	text-transform: uppercase;
	letter-spacing: 0.12em;
}

.hero__scroll .icon { animation: nudge 2.4s var(--ease-in-out) infinite; }

@keyframes nudge {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(5px); }
}

/* --- 7.2 Marquee --- */
.marquee {
	position: relative;
	padding-block: var(--sp-6);
	border-block: 1px solid var(--line);
	background: var(--paper-pure);
	overflow: hidden;
}

.marquee__track {
	display: flex;
	width: max-content;
	will-change: transform;
}

.marquee__group {
	display: flex;
	align-items: center;
	gap: clamp(2rem, 5vw, 4rem);
	padding-right: clamp(2rem, 5vw, 4rem);
	flex-shrink: 0;
}

.marquee__item {
	display: inline-flex;
	align-items: center;
	gap: var(--sp-3);
	font-family: var(--font-display);
	font-size: clamp(1.1rem, 2.2vw, 1.75rem);
	white-space: nowrap;
}

.marquee__dot {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: var(--c, var(--brand-blue));
	flex-shrink: 0;
}

/* --- 7.3 Services --- */
.services__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--sp-4);
}

.service {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: var(--sp-4);
	padding: clamp(1.75rem, 3.5vw, 2.75rem);
	background: var(--paper-pure);
	border: 1px solid var(--line);
	border-radius: var(--r-lg);
	overflow: hidden;
	transition:
		border-color var(--dur-slow) var(--ease-out),
		transform var(--dur-slow) var(--ease-out);
}

.service::before {
	content: "";
	position: absolute;
	inset: 0;
	background: var(--c-tint);
	opacity: 0;
	transition: opacity var(--dur-slow) var(--ease-out);
	z-index: 0;
}

.service > * { position: relative; z-index: 1; }

.service:hover { border-color: var(--c); transform: translateY(-4px); }
.service:hover::before { opacity: 1; }

.service__head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--sp-4); }

.service__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	border-radius: var(--r-md);
	background: var(--c);
	color: var(--ink);
	flex-shrink: 0;
}

.service__num {
	font-family: var(--font-mono);
	font-size: var(--fs-label);
	color: var(--ink-faint);
	letter-spacing: 0.12em;
}

.service__title { font-size: var(--fs-h3); }

.service__lead { color: var(--muted); font-size: var(--fs-small); }

.service__list { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-top: auto; padding-top: var(--sp-2); }

.service__list li {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 5px var(--sp-3);
	border: 1px solid var(--line-strong);
	border-radius: var(--r-pill);
	font-size: var(--fs-small);
	background: var(--paper-pure);
}

.service__foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--sp-4);
	padding-top: var(--sp-4);
	margin-top: var(--sp-2);
	border-top: 1px solid var(--line);
}

.service__meta { font-family: var(--font-mono); font-size: var(--fs-label); color: var(--ink-faint); text-transform: uppercase; letter-spacing: 0.08em; }

.service__link { display: inline-flex; align-items: center; min-height: 44px; gap: var(--sp-2); font-size: var(--fs-small); font-weight: 500; }
.service__link .icon { transition: transform var(--dur-base) var(--ease-out); }
.service:hover .service__link .icon { transform: translateX(4px); }

/* --- 7.4 Méthode --- */
.method { background: var(--paper-pure); }

.method__grid { display: grid; grid-template-columns: 1fr; gap: 0; }

.step {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: var(--sp-4) var(--sp-6);
	padding-block: var(--sp-8);
	border-top: 1px solid var(--line);
	align-items: start;
}

.step:last-child { border-bottom: 1px solid var(--line); }

.step__num {
	font-family: var(--font-display);
	font-size: clamp(2rem, 4vw, 3.25rem);
	line-height: 1;
	color: var(--ink-faint);
	min-width: 2.5ch;
	transition: color var(--dur-slow) var(--ease-out);
}

.step:hover .step__num { color: var(--ink); }

.step__body { display: flex; flex-direction: column; gap: var(--sp-2); }
.step__title { font-size: var(--fs-h3); }
.step__text { color: var(--muted); max-width: 62ch; }
.step__meta { font-family: var(--font-mono); font-size: var(--fs-label); text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-faint); }

/* --- 7.5 Réalisations --- */
.work__filters {
	display: flex;
	flex-wrap: wrap;
	gap: var(--sp-2);
	margin-bottom: var(--sp-8);
}

.filter {
	padding: 9px var(--sp-4);
	min-height: 44px;
	border: 1px solid var(--line-strong);
	border-radius: var(--r-pill);
	font-size: var(--fs-small);
	color: var(--ink-soft);
	transition:
		background-color var(--dur-base) var(--ease-out),
		border-color var(--dur-base) var(--ease-out),
		color var(--dur-base) var(--ease-out);
}

.filter:hover { border-color: var(--ink); color: var(--ink); }
.filter[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper-pure); }

.work__grid { display: grid; grid-template-columns: 1fr; gap: var(--sp-4); }

.work-card {
	display: flex;
	flex-direction: column;
	border: 1px solid var(--line);
	border-radius: var(--r-lg);
	overflow: hidden;
	background: var(--paper-pure);
	transition:
		border-color var(--dur-slow) var(--ease-out),
		transform var(--dur-slow) var(--ease-out),
		box-shadow var(--dur-slow) var(--ease-out);
}

.work-card:hover { transform: translateY(-4px); border-color: var(--line-strong); box-shadow: var(--shadow-md); }
.work-card.is-hidden { display: none; }

.work-card__media {
	position: relative;
	aspect-ratio: 4 / 3;
	background: var(--c-tint);
	display: grid;
	place-items: center;
	overflow: hidden;
}

.work-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease-out); }
.work-card:hover .work-card__media img { transform: scale(1.04); }

.work-card__ph {
	font-family: var(--font-display);
	font-size: clamp(2.5rem, 8vw, 4rem);
	color: var(--ink);
	opacity: 0.16;
	letter-spacing: -0.04em;
}

.work-card__chip { position: absolute; top: var(--sp-4); left: var(--sp-4); }

.work-card__body { padding: var(--sp-6); display: flex; flex-direction: column; gap: var(--sp-2); flex: 1; }
.work-card__title { font-size: 1.25rem; }

.work-card__title a {
	display: inline-flex;
	align-items: center;
	gap: var(--sp-2);
	min-height: 32px;
}

.work-card__go { transition: transform var(--dur-base) var(--ease-out); }
.work-card:hover .work-card__go { transform: translateX(4px); }
.work-card__meta { font-size: var(--fs-small); color: var(--muted); }
.work-card__result {
	margin-top: auto;
	padding-top: var(--sp-4);
	font-family: var(--font-mono);
	font-size: var(--fs-label);
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--ink);
}

.work__empty { padding: var(--sp-12) 0; text-align: center; color: var(--muted); }

/* --- 7.6 Chiffres --- */
.stats {
	background: var(--ink);
	color: var(--paper);
	overflow: hidden; /* contient les halos qui débordent du cadre */
}

.stats .label { color: rgba(251, 250, 248, 0.55); }
.stats h2 { color: var(--paper-pure); }
.stats .container { position: relative; z-index: 1; }

.stats__grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: var(--sp-8) var(--sp-4);
}

.stat { display: flex; flex-direction: column; gap: var(--sp-1); }

.stat__num {
	font-family: var(--font-display);
	font-size: clamp(2.5rem, 6vw, 4.5rem);
	line-height: 1;
	color: var(--paper-pure);
	display: flex;
	align-items: baseline;
}

.stat__suffix { font-size: 0.5em; margin-left: 0.1em; }
.stat__label { font-size: var(--fs-small); color: rgba(251, 250, 248, 0.65); max-width: 24ch; }

.stat__bar {
	height: 4px;
	width: 44px;
	border-radius: var(--r-pill);
	background: var(--c, var(--brand-blue));
	margin-bottom: var(--sp-3);
	transform-origin: left center;
}

/* --- 7.7 Témoignages --- */
.quotes__grid { display: grid; grid-template-columns: 1fr; gap: var(--sp-4); }

.quote {
	display: flex;
	flex-direction: column;
	gap: var(--sp-6);
	padding: clamp(1.75rem, 3.5vw, 2.5rem);
	border-radius: var(--r-lg);
	background: var(--c-tint);
	border: 1px solid var(--line);
}

.quote__mark { color: var(--ink); opacity: 0.3; }

.quote__text {
	font-family: var(--font-display);
	font-size: clamp(1.15rem, 1.8vw, 1.4rem);
	line-height: 1.45;
	flex: 1;
}

.quote__author { display: flex; align-items: center; gap: var(--sp-3); padding-top: var(--sp-4); border-top: 1px solid rgba(15, 15, 16, 0.1); }

.quote__avatar {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: var(--c);
	font-family: var(--font-display);
	font-size: 1.05rem;
	flex-shrink: 0;
}

.quote__name { font-weight: 500; font-size: var(--fs-small); line-height: 1.3; }
.quote__role { font-size: var(--fs-small); color: var(--ink-soft); line-height: 1.3; }

/* --- 7.8 FAQ --- */
.faq__list { border-top: 1px solid var(--line); }

.faq__item { border-bottom: 1px solid var(--line); }

.faq__q {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--sp-6);
	width: 100%;
	padding: var(--sp-6) 0;
	text-align: left;
	font-family: var(--font-display);
	font-size: clamp(1.1rem, 2vw, 1.4rem);
	line-height: 1.3;
	color: var(--ink);
	transition: color var(--dur-base) var(--ease-out);
}

.faq__q:hover { color: var(--ink-soft); }

.faq__toggle {
	display: grid;
	place-items: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	border: 1px solid var(--line-strong);
	flex-shrink: 0;
	transition:
		transform var(--dur-slow) var(--ease-out),
		background-color var(--dur-base) var(--ease-out),
		border-color var(--dur-base) var(--ease-out);
}

.faq__q[aria-expanded="true"] .faq__toggle { transform: rotate(45deg); background: var(--brand-yellow); border-color: var(--brand-yellow); }

.faq__a { overflow: hidden; height: 0; }
.faq__a-inner { padding-bottom: var(--sp-6); color: var(--muted); max-width: 68ch; }
.faq__a-inner p + p { margin-top: var(--sp-3); }

/* --- 7.9 CTA final --- */
.cta { position: relative; overflow: hidden; }

.cta__box {
	position: relative;
	background: var(--ink);
	color: var(--paper);
	border-radius: var(--r-xl);
	padding: clamp(2.5rem, 7vw, 6rem) clamp(1.5rem, 5vw, 5rem);
	overflow: hidden;
	text-align: center;
}

/* Halo coloré sur fond encre — partagé par la section chiffres et le CTA final.
   Les deux conteneurs sont en overflow:hidden, les blobs peuvent donc déborder. */
.cta__deco,
.stats__deco { position: absolute; inset: 0; z-index: 0; opacity: 0.5; }

.cta__deco .blob:nth-child(1),
.stats__deco .blob:nth-child(1) { width: 30vw; height: 30vw; top: -30%; left: 5%; background: var(--brand-blue); }

.cta__deco .blob:nth-child(2),
.stats__deco .blob:nth-child(2) { width: 26vw; height: 26vw; bottom: -30%; right: 8%; background: var(--brand-peach); }

.cta__inner { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: var(--sp-6); }
.cta__title { font-size: var(--fs-h1); color: var(--paper-pure); max-width: 18ch; }
.cta__lead { color: rgba(251, 250, 248, 0.75); max-width: 48ch; }
.cta .label { color: rgba(251, 250, 248, 0.55); }

.cta__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--sp-4); margin-top: var(--sp-2); }

.cta__note { font-size: var(--fs-small); color: rgba(251, 250, 248, 0.5); }

/* ==========================================================================
   8. FORMULAIRES & PAGE CONTACT
   ========================================================================== */

.page-hero {
	padding-top: calc(var(--header-h) + clamp(3rem, 7vw, 5.5rem));
	padding-bottom: clamp(2rem, 5vw, 3.5rem);
	position: relative;
	overflow: hidden;
}

.page-hero__deco { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.page-hero__deco .blob:nth-child(1) { width: 36vw; height: 36vw; top: -25%; right: -6%; background: var(--brand-green); }
.page-hero__deco .blob:nth-child(2) { width: 28vw; height: 28vw; top: 20%; left: -10%; background: var(--brand-blue); opacity: 0.4; }

.page-hero__inner { position: relative; z-index: 1; }
.page-hero__title { margin-block: var(--sp-4) var(--sp-6); max-width: 16ch; }
.page-hero__lead { max-width: 54ch; }

.contact__layout { display: grid; grid-template-columns: 1fr; gap: clamp(2.5rem, 5vw, 4rem); align-items: start; }

/* --- Panneau latéral --- */
.contact__aside { display: flex; flex-direction: column; gap: var(--sp-8); }

.info-list { display: flex; flex-direction: column; gap: var(--sp-4); }

.info {
	display: flex;
	align-items: flex-start;
	gap: var(--sp-4);
	padding: var(--sp-4);
	border: 1px solid var(--line);
	border-radius: var(--r-md);
	background: var(--paper-pure);
	transition: border-color var(--dur-base) var(--ease-out);
}

.info:hover { border-color: var(--line-strong); }

.info__icon {
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border-radius: var(--r-sm);
	background: var(--c, var(--brand-blue));
	color: var(--ink);
	flex-shrink: 0;
}

.info__label { font-family: var(--font-mono); font-size: var(--fs-label); text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-faint); }
.info__value { font-size: var(--fs-body); font-weight: 500; word-break: break-word; }

.aside-card {
	padding: var(--sp-6);
	border-radius: var(--r-lg);
	background: var(--brand-yellow);
	color: var(--ink);
}

.aside-card h3 { font-size: 1.25rem; margin-bottom: var(--sp-3); }
.aside-card p { font-size: var(--fs-small); }
.aside-card ul { display: flex; flex-direction: column; gap: var(--sp-2); margin-top: var(--sp-4); }
.aside-card li { display: flex; align-items: flex-start; gap: var(--sp-2); font-size: var(--fs-small); }
.aside-card .icon { flex-shrink: 0; margin-top: 3px; }

/* --- Formulaire --- */
.form {
	position: relative;
	padding: clamp(1.5rem, 4vw, 3rem);
	background: var(--paper-pure);
	border: 1px solid var(--line);
	border-radius: var(--r-lg);
}

.form__grid { display: grid; grid-template-columns: 1fr; gap: var(--sp-6); }

.form__row { display: grid; grid-template-columns: 1fr; gap: var(--sp-6); }

.field { display: flex; flex-direction: column; gap: var(--sp-2); }

/* Un <fieldset> ne se comporte pas comme un conteneur flex fiable selon les
   navigateurs (le <legend> n'est pas toujours un item flex) : on reste en flux. */
fieldset.field { display: block; border: 0; padding: 0; margin: 0; min-width: 0; }
fieldset.field > * + * { margin-top: var(--sp-2); }
fieldset.field > legend { padding: 0; margin-bottom: var(--sp-2); }

.field__label { font-size: var(--fs-small); font-weight: 500; display: flex; align-items: baseline; gap: var(--sp-2); }

.field__req { color: var(--danger); }
.field__opt { font-family: var(--font-mono); font-size: var(--fs-label); color: var(--ink-faint); text-transform: uppercase; letter-spacing: 0.08em; }

.field__hint { font-size: var(--fs-small); color: var(--ink-faint); }

.field__input,
.field__select,
.field__textarea {
	width: 100%;
	min-height: 48px;
	padding: var(--sp-3) var(--sp-4);
	background: var(--paper);
	border: 1px solid var(--line-strong);
	border-radius: var(--r-sm);
	font-size: var(--fs-body);
	color: var(--ink);
	transition:
		border-color var(--dur-base) var(--ease-out),
		box-shadow var(--dur-base) var(--ease-out),
		background-color var(--dur-base) var(--ease-out);
}

.field__textarea { min-height: 150px; resize: vertical; line-height: 1.6; }

.field__select {
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2352525b' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right var(--sp-4) center;
	padding-right: var(--sp-12);
}

.field__input:hover,
.field__select:hover,
.field__textarea:hover { border-color: var(--ink-faint); }

.field__input:focus,
.field__select:focus,
.field__textarea:focus {
	outline: none;
	background: var(--paper-pure);
	border-color: var(--ink);
	box-shadow: 0 0 0 3px var(--brand-blue);
}

.field__input::placeholder,
.field__textarea::placeholder { color: var(--ink-faint); }

.field.has-error .field__input,
.field.has-error .field__select,
.field.has-error .field__textarea { border-color: var(--danger); }

.field.has-error .field__input:focus,
.field.has-error .field__select:focus,
.field.has-error .field__textarea:focus { box-shadow: 0 0 0 3px rgba(180, 35, 24, 0.18); }

.field__error {
	display: none;
	font-size: var(--fs-small);
	color: var(--danger);
	align-items: center;
	gap: 6px;
}

.field.has-error .field__error { display: flex; }

/* --- Sélecteur de prestations --- */
.picker { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: var(--sp-3); }

.picker__opt { position: relative; }

.picker__input {
	position: absolute;
	opacity: 0;
	width: 100%;
	height: 100%;
	margin: 0;
	cursor: pointer;
}

.picker__box {
	display: flex;
	align-items: center;
	gap: var(--sp-3);
	min-height: 56px;
	padding: var(--sp-3) var(--sp-4);
	border: 1px solid var(--line-strong);
	border-radius: var(--r-md);
	background: var(--paper);
	font-size: var(--fs-small);
	line-height: 1.3;
	transition:
		border-color var(--dur-base) var(--ease-out),
		background-color var(--dur-base) var(--ease-out);
	pointer-events: none;
}

.picker__tick {
	display: grid;
	place-items: center;
	width: 22px;
	height: 22px;
	border-radius: var(--r-sm);
	border: 1px solid var(--line-strong);
	background: var(--paper-pure);
	color: transparent;
	flex-shrink: 0;
	transition:
		background-color var(--dur-base) var(--ease-out),
		border-color var(--dur-base) var(--ease-out),
		color var(--dur-base) var(--ease-out);
}

.picker__input:hover + .picker__box { border-color: var(--ink-faint); }

.picker__input:checked + .picker__box { border-color: var(--ink); background: var(--c); }

.picker__input:checked + .picker__box .picker__tick { background: var(--ink); border-color: var(--ink); color: var(--paper-pure); }

.picker__input:focus-visible + .picker__box { outline: 2px solid var(--ink); outline-offset: 3px; }

/* --- Honeypot --- */
.hp {
	position: absolute !important;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* --- Consentement --- */
.consent { display: flex; align-items: flex-start; gap: var(--sp-3); font-size: var(--fs-small); color: var(--muted); }
.consent input { width: 24px; height: 24px; margin-top: 0; accent-color: var(--ink); flex-shrink: 0; cursor: pointer; }
.consent label { cursor: pointer; }
.consent a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }

/* --- Pied de formulaire --- */
.form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-4); justify-content: space-between; }
.form__note { font-size: var(--fs-small); color: var(--ink-faint); display: flex; align-items: center; gap: 6px; }

.form__submit { position: relative; }
.form.is-sending .form__submit { pointer-events: none; opacity: 0.7; }

.spinner {
	display: none;
	width: 16px;
	height: 16px;
	border: 2px solid rgba(255, 255, 255, 0.35);
	border-top-color: #fff;
	border-radius: 50%;
	animation: spin 700ms linear infinite;
}

.form.is-sending .spinner { display: block; }
.form.is-sending .form__submit .icon { display: none; }

@keyframes spin { to { transform: rotate(360deg); } }

/* --- Message global --- */
.form__alert {
	display: none;
	align-items: flex-start;
	gap: var(--sp-3);
	padding: var(--sp-4);
	border-radius: var(--r-md);
	font-size: var(--fs-small);
	margin-bottom: var(--sp-6);
}

.form__alert.is-visible { display: flex; }
.form__alert--error { background: #fef3f2; border: 1px solid #fecdc9; color: #912018; }
.form__alert .icon { flex-shrink: 0; margin-top: 2px; }

/* --- Écran de succès --- */
.form__success { display: none; flex-direction: column; align-items: center; text-align: center; gap: var(--sp-4); padding: clamp(2rem, 5vw, 4rem) 0; }
.form.is-sent .form__success { display: flex; }
.form.is-sent .form__body { display: none; }

.form__success-icon {
	display: grid;
	place-items: center;
	width: 64px;
	height: 64px;
	border-radius: 50%;
	background: var(--brand-green);
	color: var(--ink);
}

.form__success h3 { font-size: var(--fs-h3); }
.form__success p { color: var(--muted); max-width: 42ch; }

/* ==========================================================================
   8bis. CONTENU RÉDACTIONNEL (pages légales, articles)
   ========================================================================== */

.prose { max-width: 72ch; }

.prose > * + * { margin-top: var(--sp-4); }

.prose h2 {
	font-size: clamp(1.35rem, 2.4vw, 1.9rem);
	margin-top: var(--sp-12);
	padding-top: var(--sp-6);
	border-top: 1px solid var(--line);
}

.prose > h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }

.prose h3 {
	font-size: 1.15rem;
	margin-top: var(--sp-8);
}

.prose p,
.prose li { color: var(--ink-soft); }

.prose a {
	color: var(--ink);
	text-decoration: underline;
	text-underline-offset: 3px;
	text-decoration-thickness: 1px;
	text-decoration-color: var(--line-strong);
	transition: text-decoration-color var(--dur-base) var(--ease-out);
}

.prose a:hover { text-decoration-color: var(--ink); }

.prose ul { display: flex; flex-direction: column; gap: var(--sp-2); padding-left: var(--sp-5); }
.prose ul li { list-style: disc; }
.prose ul li::marker { color: var(--ink-faint); }

.prose strong { color: var(--ink); font-weight: 600; }

/* Bouton qui doit se lire comme un lien dans un paragraphe. */
.link-inline {
	color: var(--ink);
	font: inherit;
	text-decoration: underline;
	text-underline-offset: 3px;
	text-decoration-thickness: 1px;
	text-decoration-color: var(--line-strong);
	transition: text-decoration-color var(--dur-base) var(--ease-out);
}

.link-inline:hover { text-decoration-color: var(--ink); }

/* Liste de définitions : identité de l'éditeur. */
.legal-list {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--sp-1) var(--sp-6);
	padding: var(--sp-6);
	background: var(--paper-pure);
	border: 1px solid var(--line);
	border-radius: var(--r-md);
}

.legal-list dt {
	font-family: var(--font-mono);
	font-size: var(--fs-label);
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: var(--ink-faint);
	padding-top: var(--sp-3);
}

.legal-list dd { margin: 0; padding-bottom: var(--sp-3); border-bottom: 1px solid var(--line); }
.legal-list > dd:last-child { border-bottom: 0; padding-bottom: 0; }

/* Tableau des traitements : défile seul plutôt que d'élargir la page. */
.legal-table-wrap { overflow-x: auto; }

.legal-table {
	width: 100%;
	border-collapse: collapse;
	font-size: var(--fs-small);
	background: var(--paper-pure);
	border: 1px solid var(--line);
	border-radius: var(--r-md);
	overflow: hidden;
}

.legal-table th,
.legal-table td {
	padding: var(--sp-3) var(--sp-4);
	text-align: left;
	vertical-align: top;
	border-bottom: 1px solid var(--line);
}

.legal-table th {
	font-family: var(--font-mono);
	font-size: var(--fs-label);
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--ink-faint);
	font-weight: 500;
	white-space: nowrap;
}

.legal-table tbody tr:last-child th,
.legal-table tbody tr:last-child td { border-bottom: 0; }

.legal-table td { color: var(--ink-soft); }

/* Champ légal non renseigné : doit sauter aux yeux, pas se fondre dans le texte. */
.todo {
	background: var(--brand-peach);
	color: var(--ink);
	padding: 2px 8px;
	border-radius: var(--r-sm);
	font-family: var(--font-mono);
	font-size: 0.8em;
	text-transform: uppercase;
	letter-spacing: 0.06em;
}

.legal-updated {
	margin-top: var(--sp-12);
	padding-top: var(--sp-6);
	border-top: 1px solid var(--line);
	font-family: var(--font-mono);
	font-size: var(--fs-label);
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: var(--ink-faint);
}

@media (min-width: 640px) {
	.legal-list { grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); }
	.legal-list dt { padding-bottom: var(--sp-3); border-bottom: 1px solid var(--line); }
	.legal-list > dt:nth-last-child(2) { border-bottom: 0; padding-bottom: 0; }
}

/* ==========================================================================
   8ter. BANDEAU DE CONSENTEMENT
   ========================================================================== */

.consent-banner {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 200;
	padding: var(--gutter);
	padding-bottom: max(var(--gutter), env(safe-area-inset-bottom));
	background: var(--paper-pure);
	border-top: 1px solid var(--line);
	box-shadow: 0 -12px 48px rgba(15, 15, 16, 0.09);
	transform: translateY(100%);
	transition: transform var(--dur-slow) var(--ease-out);
}

.consent-banner[hidden] { display: none; }
.consent-banner.is-visible { transform: translateY(0); }

.consent-banner__inner {
	display: flex;
	flex-direction: column;
	gap: var(--sp-5);
	width: 100%;
	max-width: var(--container);
	margin-inline: auto;
}

.consent-banner__text { max-width: 76ch; }

.consent-banner__title {
	font-size: 1.15rem;
	margin-bottom: var(--sp-2);
}

.consent-banner__text p {
	font-size: var(--fs-small);
	color: var(--muted);
}

.consent-banner__text a {
	color: var(--ink);
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* Accepter et refuser au même niveau : même taille, même poids visuel.
   Un refus plus difficile qu'une acceptation est précisément ce que la
   CNIL sanctionne. */
.consent-banner__actions {
	display: flex;
	gap: var(--sp-3);
}

.consent-banner__actions .btn { flex: 1; }

@media (prefers-reduced-motion: reduce) {
	.consent-banner { transition: none; }
}

@media (min-width: 900px) {
	.consent-banner__inner {
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
		gap: var(--sp-12);
	}

	.consent-banner__actions { flex-shrink: 0; }
	.consent-banner__actions .btn { flex: 0 0 auto; min-width: 140px; }
}

/* ==========================================================================
   9. PIED DE PAGE
   ========================================================================== */

.footer { background: var(--ink); color: var(--paper); padding-block: clamp(3rem, 7vw, 5rem) var(--sp-8); }

.footer__top { display: grid; grid-template-columns: 1fr; gap: var(--sp-12); padding-bottom: var(--sp-12); border-bottom: 1px solid rgba(251, 250, 248, 0.14); }

.footer__brand { display: flex; flex-direction: column; gap: var(--sp-4); max-width: 34ch; }
.footer__tagline { color: rgba(251, 250, 248, 0.7); font-size: var(--fs-small); }

.footer__cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-8); }
.footer__col h4 { font-family: var(--font-mono); font-size: var(--fs-label); font-weight: 500; text-transform: uppercase; letter-spacing: 0.12em; color: rgba(251, 250, 248, 0.5); margin-bottom: var(--sp-4); }
.footer__col ul { display: flex; flex-direction: column; gap: var(--sp-1); }
.footer__col a,
.footer__col span { display: inline-block; padding-block: 7px; }
.footer__col a { font-size: var(--fs-small); color: rgba(251, 250, 248, 0.82); transition: color var(--dur-base) var(--ease-out); }
.footer__col span { font-size: var(--fs-small); color: rgba(251, 250, 248, 0.82); }
.footer__col a:hover { color: var(--paper-pure); }

.footer__socials { display: flex; gap: var(--sp-3); margin-top: var(--sp-2); }

.footer__social {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	border: 1px solid rgba(251, 250, 248, 0.2);
	color: rgba(251, 250, 248, 0.82);
	transition:
		background-color var(--dur-base) var(--ease-out),
		color var(--dur-base) var(--ease-out),
		border-color var(--dur-base) var(--ease-out);
}

.footer__social:hover { background: var(--paper-pure); color: var(--ink); border-color: var(--paper-pure); }

.footer__bottom {
	display: flex;
	flex-wrap: wrap;
	gap: var(--sp-4);
	justify-content: space-between;
	align-items: center;
	padding-top: var(--sp-8);
	font-size: var(--fs-small);
	color: rgba(251, 250, 248, 0.5);
}

.footer__legal { display: flex; flex-wrap: wrap; gap: var(--sp-4); }

.footer__legal a,
.footer__legal button {
	display: inline-block;
	padding-block: 7px;
	font-size: var(--fs-small);
	color: inherit;
	transition: color var(--dur-base) var(--ease-out);
}

.footer__legal a:hover,
.footer__legal button:hover { color: var(--paper-pure); }

/* ==========================================================================
   10. ANIMATIONS
   ========================================================================== */

/* État initial : uniquement quand JS a confirmé qu'il prendra le relais.
   Sans JS (ou en reduced-motion), rien n'est masqué. */
.js-anim [data-anim] { opacity: 0; }
.js-anim .stat__bar { transform: scaleX(0); }

/* Le surligneur : GSAP ne cible pas les pseudo-éléments, c'est donc une
   transition CSS déclenchée par la classe .is-drawn posée au scroll. */
.js-anim .hl::before {
	transform: scaleX(0);
	transition: transform 700ms var(--ease-out);
}

.js-anim .hl.is-drawn::before { transform: scaleX(1); }

/* Reveal mot par mot : .word porte le masque, .word__inner se translate.
   Le padding/margin compense la coupe des jambages (p, g, j) par overflow. */
.word {
	display: inline-block;
	overflow: hidden;
	vertical-align: bottom;
	padding-bottom: 0.16em;
	margin-bottom: -0.16em;
}

.word__inner { display: inline-block; }

/* ==========================================================================
   11. ACCESSIBILITÉ & RESPONSIVE
   ========================================================================== */

.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.no-scroll { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}

	.js-anim [data-anim],
	.js-anim .hl::before,
	.js-anim .stat__bar { opacity: 1; transform: none; }

	.hero__scroll .icon { animation: none; }
}

/* --- ≥ 640 px --- */
@media (min-width: 640px) {
	.services__grid { grid-template-columns: repeat(2, 1fr); }
	.work__grid { grid-template-columns: repeat(2, 1fr); }
	.form__row { grid-template-columns: repeat(2, 1fr); }
	.stats__grid { grid-template-columns: repeat(4, 1fr); }
	.footer__cols { grid-template-columns: repeat(3, 1fr); }
	.hero__scroll { display: inline-flex; }
}

/* --- ≥ 900 px --- */
@media (min-width: 900px) {
	:root { --header-h: 92px; }

	.nav__list { display: flex; }
	.header__cta { display: inline-flex; }
	.burger { display: none; }

	.hero__title { max-width: 16ch; }

	.services__grid { grid-template-columns: repeat(2, 1fr); }

	/* Bento : les deux premières cartes plus hautes que les suivantes. */
	.service--lg { grid-row: span 1; }

	.step { grid-template-columns: 3.5rem 1fr auto; align-items: center; gap: var(--sp-8); }
	.step__meta { text-align: right; white-space: nowrap; }

	.quotes__grid { grid-template-columns: repeat(3, 1fr); }

	.contact__layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); gap: clamp(3rem, 5vw, 5rem); }

	.footer__top { grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: clamp(3rem, 6vw, 6rem); }
}

/* --- ≥ 1200 px --- */
@media (min-width: 1200px) {
	.work__grid { grid-template-columns: repeat(3, 1fr); }

	.hero__inner { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr); gap: clamp(3rem, 5vw, 5rem); align-items: end; }
	.hero__col--main { grid-column: 1; }
	.hero__col--side { grid-column: 2; padding-bottom: var(--sp-12); }
	.hero__proof { grid-column: 1 / -1; }
	.hero__card { display: flex; }
}

@media print {
	.header, .mobile-nav, .footer, .cta, .marquee { display: none; }
	body { background: #fff; }
}
