/* ==========================================================================
   Anouar, feuille de style unique, mobile d'abord
   Sommaire : 1. Police & variables  2. Base  3. Utilitaires  4. En-tête & navigation
   5. Hero  6. Sections & cartes  7. Étude de cas  8. Compétences (bento)
   9. À propos  10. Contact & formulaires  11. CTA & footer  12. Divers  13. Mouvement
   ========================================================================== */

/* 1. Police & variables ---------------------------------------------------- */
@font-face {
	font-family: "Hanken Grotesk";
	src: url("../fonts/hanken-grotesk-latin-var.woff") format("woff");
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
}

:root {
	--bg: #ffffff;          /* blanc : fond de page et fond des visuels */
	--surface: #f5f5f3;
	--surface-2: #ebebe8;
	--ink: #111110;         /* 18:1 sur --bg */
	--ink-2: #2a2a28;
	--muted: #55554f;       /* 7,6:1 sur --bg */
	--line: rgba(17, 17, 16, 0.2);
	--line-strong: #767672; /* 4,5:1 : bordures de champs */
	--accent: #e4ff6a;      /* jaune fluo : aplats uniquement, texte noir dessus (17:1). Surchargé par le Customizer */
	--on-accent: #111110;
	--accent-ink: #111110;  /* le jaune ne se lit pas sur blanc : les textes d'accent restent noirs */
	--dark: #111110;
	--on-dark: #e7e7e3;
	--on-dark-muted: #a3a39e;
	--danger: #b42318;
	--success: #146c2e;

	--font: "Hanken Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--fs-xs: 0.8125rem;
	--fs-sm: 0.9375rem;
	--fs-base: 1rem;
	--fs-md: clamp(1.125rem, 1rem + 0.4vw, 1.25rem);
	--fs-lg: clamp(1.375rem, 1.1rem + 1vw, 1.875rem);
	--fs-xl: clamp(2rem, 1.4rem + 2.6vw, 3.5rem);
	--fs-2xl: clamp(2.75rem, 1.5rem + 5.6vw, 6.5rem);

	--gutter: 16px;
	--wrap: 1360px;
	--radius: 10px;
	--radius-lg: 18px;
	--space-section: clamp(4.5rem, 3rem + 6vw, 9rem);
	--ease: cubic-bezier(0.22, 1, 0.36, 1);
	--dock-h: 0px;
}

@media (min-width: 640px) { :root { --gutter: 24px; } }
@media (min-width: 1024px) { :root { --gutter: 40px; } }

/* 2. Base ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: 24px;
}

body {
	margin: 0;
	min-height: 100vh;
	background: var(--bg);
	color: var(--ink);
	font-family: var(--font);
	font-size: var(--fs-base);
	line-height: 1.6;
	font-feature-settings: "kern", "liga";
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	overflow-x: clip;
}

img, svg, video { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; line-height: 1.05; letter-spacing: -0.045em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
figure { margin: 0; }
a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-color: var(--ink); }
button, input, textarea, select { font: inherit; color: inherit; }
::selection { background: var(--accent); color: var(--on-accent); }

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

.site-main:focus { outline: none; }

/* 3. Utilitaires ----------------------------------------------------------- */
.wrap {
	width: 100%;
	max-width: calc(var(--wrap) + 2 * var(--gutter));
	margin-inline: auto;
	padding-inline: var(--gutter);
}

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

.skip-link {
	position: fixed;
	top: 12px; left: 12px;
	z-index: 100;
	padding: 12px 18px;
	background: var(--ink);
	color: var(--bg);
	border-radius: 0;
	text-decoration: none;
	transform: translateY(-200%);
	transition: transform 0.2s var(--ease);
}
.skip-link:focus { transform: none; }

.eyebrow {
	font-size: var(--fs-xs);
	font-weight: 500;
	color: var(--muted);
	margin-bottom: 1rem;
}

.lead {
	font-size: var(--fs-lg);
	line-height: 1.35;
	letter-spacing: -0.02em;
	max-width: 30ch;
	color: var(--ink);
}

.todo {
	display: inline-block;
	padding: 0.05em 0.45em;
	border-radius: 6px;
	background: #fff3c4;
	color: #5a4500;
	font-size: 0.85em;
	font-weight: 600;
	letter-spacing: 0;
	line-height: 1.5;
}

.text-link {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-size: var(--fs-sm);
	font-weight: 600;
	text-decoration: none;
	border-bottom: 1px solid currentColor;
	padding-bottom: 2px;
}
.text-link .icon { transition: transform 0.3s var(--ease); }
.text-link:hover .icon { transform: translateX(4px); }

.pill-link,
.button {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	min-height: 48px;
	padding: 0.75rem 1.4rem;
	border-radius: 0;
	font-size: var(--fs-sm);
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.pill-link { border: 1px solid var(--line-strong); background: transparent; }
.pill-link:hover { border-color: var(--ink); background: var(--ink); color: var(--bg); }
.pill-link .icon, .button .icon { transition: transform 0.3s var(--ease); }
.pill-link:hover .icon, .button:hover .icon:last-child { transform: translateX(3px); }

.button { border: 0; background: var(--ink); color: var(--bg); }
.button:hover { background: var(--ink-2); }
.button--accent { background: var(--accent); color: var(--on-accent); }
.button--accent:hover { background: var(--ink); }
.button__meta { font-size: var(--fs-xs); opacity: 0.7; font-weight: 500; }

.tags {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	list-style: none;
}
.tags li {
	font-size: var(--fs-xs);
	font-weight: 500;
	padding: 0.2rem 0.7rem;
	border: 1px solid var(--line);
	border-radius: 0;
	color: var(--muted);
	background: var(--surface);
}

.badge {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	padding: 0.3rem 0.75rem;
	border-radius: 0;
	background: var(--surface);
	color: var(--ink);
	font-size: var(--fs-xs);
	font-weight: 600;
	line-height: 1.3;
	box-shadow: 0 0 0 1px var(--line);
}
.badge::before {
	content: "";
	width: 7px; height: 7px;
	border-radius: 50%;
	background: var(--line-strong);
}
.badge.is-live::before { background: var(--accent); box-shadow: 0 0 0 1px var(--ink); }
.badge.is-progress::before { background: transparent; box-shadow: inset 0 0 0 2px var(--ink); }

/* 4. En-tête & navigation --------------------------------------------------- */
.site-header { position: relative; z-index: 20; padding-block: 18px; font-size: var(--fs-sm); }
.site-header__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 8px 24px;
}
.brand { display: inline-flex; align-items: baseline; gap: 0.6rem; font-weight: 600; letter-spacing: -0.01em; text-decoration: none; }
.brand__job { display: none; font-weight: 400; color: var(--muted); }
@media (min-width: 760px) { .brand__job { display: inline; } }

.nav__list { display: flex; align-items: baseline; gap: clamp(1rem, 0.5rem + 2.4vw, 2.5rem); list-style: none; }
.nav__link { position: relative; display: inline-block; padding-block: 6px; text-decoration: none; }
.nav__link::after {
	content: "";
	position: absolute;
	left: 0; right: 0; bottom: 3px;
	height: 1px;
	background: currentColor;
	transform: scaleX(0);
	transform-origin: right;
	transition: transform 0.5s var(--ease);
}
.nav__link:hover::after,
.nav__link.is-active::after,
.nav__link[aria-current]::after { transform: scaleX(1); transform-origin: left; }
.nav__item--minor { display: none; }
@media (min-width: 760px) { .nav__item--minor { display: list-item; } }

/* 5. Hero ------------------------------------------------------------------- */
.hero__stage {
	position: relative;
	background: var(--bg);
	container-type: inline-size;
	display: grid;
	grid-template-rows: auto 1fr auto;
	min-height: max(34rem, calc(100svh - 88px));
	padding-bottom: 0;
	overflow-x: clip;
}

.hero__name {
	position: relative;
	z-index: 3;
	color: #fff;
	mix-blend-mode: difference; /* blanc sur fond blanc = noir ; sur le portrait sombre = clair */
	grid-row: 3;
	align-self: end;
	margin-top: 0;
	font-size: calc(100cqw / 3.0);
	font-weight: 500;
	line-height: 0.9;
	letter-spacing: -0.065em;
	text-wrap: nowrap;
	display: flex;
	flex-direction: column;
	margin-left: -0.04em;
}
.hero__word { display: block; overflow: hidden; padding: 0.04em 0.1em 0.04em 0; margin: -0.04em -0.1em -0.04em 0; }  /* le masque dépasse à droite : l'approche négative de la lettre finale n'est plus rognée */
.hero__word > span { display: block; }
@media (min-width: 900px) {
	/* Desktop : le nom est posé en bas, sur la ligne de flottaison, par-dessus le buste (le texte s'inverse au-dessus du portrait) */
	.hero__name { grid-row: 3; align-self: end; flex-direction: row; justify-content: space-between; gap: 0.3em; font-size: calc(100cqw / 6.3); margin-top: 0; }
}

.js .hero__word > span { transform: translateY(108%); animation: rise 1.1s var(--ease) forwards; animation-delay: calc(0.1s + var(--i, 0) * 0.1s); }
.js .hero__fade { opacity: 0; transform: translateY(14px); animation: fadeup 0.9s var(--ease) 0.7s forwards; }
@keyframes rise { to { transform: translateY(0); } }
@keyframes fadeup { to { opacity: 1; transform: none; } }

.hero__portrait {
	position: absolute;
	z-index: 2;
	left: 50%;
	bottom: 0;
	--head-x: 51.25%;
	height: 72%;
	width: auto;
	max-width: none;
	transform: translateX(calc(-1 * var(--head-x)));
	pointer-events: none;
}
/* Desktop : le portrait est centré, sa tête au milieu de la page.
   --head-x = position horizontale de la tête dans l'image détourée (51 % pour la photo actuelle). À ajuster si la photo change. */
@media (min-width: 900px) {
	.hero__stage { grid-template-rows: auto 1fr auto; min-height: calc(100svh - 64px); padding-bottom: 0; }
	.hero__meta { grid-row: 1; align-self: start; margin-top: clamp(1.5rem, 5vh, 3rem); align-items: flex-start; }
	.hero__portrait { height: 92%; }
}

.hero__todo {
	position: absolute;
	z-index: 1;
	left: 50%;
	top: 42%;
	width: min(62%, 320px);
	aspect-ratio: 4 / 5;
	display: grid;
	place-items: center;
	padding: 1rem;
	border: 1px dashed var(--line-strong);
	text-align: center;
	transform: translateX(-50%);
}
@media (min-width: 900px) { .hero__todo { left: auto; right: 12%; top: 22%; transform: none; width: min(26%, 360px); } }

.hero__meta {
	position: relative;
	z-index: 3;
	grid-row: 1;
	align-self: start;
	margin-top: clamp(1.25rem, 3vh, 2rem);
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	align-items: flex-end;
	gap: 1.5rem 2rem;
}
.hero__links { list-style: none; display: grid; gap: 0.15rem; font-size: var(--fs-sm); }
.hero__links a { position: relative; display: inline-block; padding-block: 4px; text-decoration: none; }
.hero__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform 0.5s var(--ease); }
.hero__links a:hover::after { transform: scaleX(1); transform-origin: left; }
.hero__role { text-align: right; display: grid; gap: 0.5rem; justify-items: end; margin-left: auto; }
.hero__job { display: flex; justify-content: flex-end; gap: 0.26em; font-size: clamp(1.75rem, 1rem + 3vw, 3.75rem); font-weight: 500; line-height: 1.05; letter-spacing: -0.045em; }
.hero__job-roll { display: grid; justify-items: end; overflow: hidden; padding-block: 0.06em; margin-block: -0.06em; }
.hero__job-item { grid-area: 1 / 1; white-space: nowrap; }
.js .hero__job-item { transform: translateY(110%); transition: transform 0.7s var(--ease); }
.js .hero__job-item.is-active { transform: none; }
.js .hero__job-item.is-leaving { transform: translateY(-110%); }
.hero__avail { display: inline-flex; align-items: center; gap: 0.5rem; font-size: var(--fs-sm); color: var(--muted); }
.hero__avail::before { content: ""; width: 8px; height: 8px; border-radius: 50%; box-shadow: 0 0 0 1px var(--ink); background: var(--accent); }

.statement { padding-top: clamp(3.5rem, 2rem + 6vw, 8rem); }
.statement__grid { display: grid; gap: 1.25rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.statement__text { font-size: var(--fs-xl); line-height: 1.08; letter-spacing: -0.045em; font-weight: 500; max-width: 24ch; }
.statement__link { margin-top: 1.75rem; }
@media (min-width: 900px) {
	.statement__grid { grid-template-columns: 1fr 2.2fr; }
}

/* 6. Sections & projets ----------------------------------------------------- */
.section { padding-top: var(--space-section); }

.proofs { padding-top: clamp(3rem, 2rem + 4vw, 6rem); }
.proofs__list { display: grid; list-style: none; border-top: 1px solid var(--line); }
.proof { display: grid; gap: 0.35rem; padding: 1.25rem 0; border-bottom: 1px solid var(--line); }
.proof__value { font-size: var(--fs-lg); font-weight: 500; letter-spacing: -0.04em; line-height: 1.1; }
.proof__label { font-size: var(--fs-sm); color: var(--muted); max-width: 32ch; }
@media (min-width: 640px) { .proofs__list { grid-template-columns: repeat(2, 1fr); column-gap: 32px; } }
@media (min-width: 1100px) {
	.proofs__list { grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--line); }
	.proof { border-bottom: 0; padding: 1.75rem 24px 1.75rem 0; }
	.proof + .proof { border-left: 1px solid var(--line); padding-left: 24px; }
}

.section-head { display: grid; gap: 1rem; padding-top: 1.25rem; border-top: 1px solid var(--line); margin-bottom: clamp(2rem, 1.5rem + 2vw, 3.5rem); }
.section-head__title { font-size: var(--fs-2xl); font-weight: 500; line-height: 0.92; letter-spacing: -0.06em; }
.section-head__intro { color: var(--muted); font-size: var(--fs-sm); max-width: 44ch; }
@media (min-width: 900px) {
	.section-head { grid-template-columns: 1fr minmax(0, 34ch); align-items: end; }
	.section-head__intro { justify-self: end; }
}
.section-more { margin-top: clamp(3rem, 2rem + 3vw, 5rem); display: flex; }

.grid-2 { display: grid; gap: clamp(2.5rem, 2rem + 2vw, 3.5rem) clamp(1rem, 0.5rem + 1.5vw, 2rem); }
@media (min-width: 760px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } .grid-2--stagger .card:nth-child(even) { margin-top: clamp(3rem, 9vw, 9rem); } }

.card { position: relative; display: grid; gap: 1rem; align-content: start; }
.card[hidden] { display: none; }
.card__media { position: relative; aspect-ratio: 5 / 4; overflow: hidden; background: var(--bg); }
.card__media::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 1px var(--line); pointer-events: none; z-index: 2; }
.card__media img,
.card__media video,
.card-media-empty { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease), filter 0.5s var(--ease); }
.card-media-empty { display: grid; place-items: center; color: var(--muted); font-size: var(--fs-sm); }
.card__media .badge { position: absolute; top: 12px; left: 12px; z-index: 3; }
.card:hover .card__media img,
.card:hover .card__media video { transform: scale(1.035); }

/* L'élément « star » : puce blanche au toucher ; au survol (souris), un voile blanc dont le chiffre est
   découpé, pour laisser voir l'image ou la vidéo à travers les lettres. */
.card__media { isolation: isolate; container-type: inline-size; }
.card__star {
	position: absolute;
	z-index: 3;
	left: 10px; right: 10px; bottom: 10px;
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
	padding: 0.5rem 0.75rem 0.55rem;
	background: var(--accent);
	color: var(--accent-ink);
	border-radius: var(--radius);
	pointer-events: none;
}
.card__star-value { font-size: 1.5rem; font-weight: 700; line-height: 1; letter-spacing: -0.05em; overflow-wrap: anywhere; }
.card__star-label { font-size: var(--fs-xs); font-weight: 500; line-height: 1.3; }
@media (hover: hover) and (pointer: fine) {
	.card__star { display: contents; }
	.card__star-value {
		position: absolute;
		inset: 0;
		z-index: 3;
		display: flex;
		align-items: flex-start;
		padding: clamp(1rem, 0.5rem + 1.5vw, 1.75rem);
		background: #fff;
		color: #000;                 /* noir sur blanc + mode « screen » : les lettres deviennent transparentes */
		mix-blend-mode: screen;
		border-radius: var(--radius-lg);
		inset: -1px;
		font-size: 17cqw;
		font-weight: 800;
		overflow-wrap: normal;
		letter-spacing: -0.07em;
		line-height: 0.82;
		clip-path: inset(100% 0 0 0);
		transition: clip-path 0.7s var(--ease);
	}
	.card__star-label {
		position: absolute;
		z-index: 4;
		bottom: 0; left: 0;
		max-width: 26ch;
		padding: clamp(1rem, 0.5rem + 1.5vw, 1.75rem);
		font-size: var(--fs-md);
		line-height: 1.25;
		opacity: 0;
		transform: translateY(8px);
		transition: opacity 0.4s var(--ease) 0.2s, transform 0.6s var(--ease) 0.2s;
		pointer-events: none;
	}
	.card__star--short .card__star-value { font-size: 42cqw; line-height: 0.78; }
	.card:hover .card__star-value,
	.card:focus-within .card__star-value { clip-path: inset(0); }
	.card:hover .card__star-label,
	.card:focus-within .card__star-label { opacity: 1; transform: none; }
	/* On fonce légèrement le visuel sous le voile pour que les lettres découpées restent lisibles */
	.card:hover .card__media img,
	.card:hover .card__media video,
	.card:hover .card-media-empty,
	.card:focus-within .card__media img,
	.card:focus-within .card__media video,
	.card:focus-within .card-media-empty { filter: brightness(0.78); }
}

.card__body { display: grid; gap: 0.4rem; }
.card__meta { display: flex; justify-content: space-between; gap: 1rem; font-size: var(--fs-xs); color: var(--muted); font-variant-numeric: tabular-nums; }
.card__title { font-size: var(--fs-lg); font-weight: 500; letter-spacing: -0.045em; line-height: 1.1; }
.card__link { text-decoration: none; }
.card__link::after { content: ""; position: absolute; inset: 0; z-index: 4; }
.card__link:focus-visible { outline: none; }
.card__link:focus-visible::after { outline: 2px solid var(--ink); outline-offset: 6px; }
.card__excerpt { color: var(--muted); font-size: var(--fs-sm); max-width: 52ch; }
.card .tags { position: relative; margin-top: 0.25rem; }

/* En-têtes de pages intérieures */
.page-head { padding-top: clamp(2.5rem, 2rem + 4vw, 6rem); padding-bottom: clamp(2rem, 1.5rem + 2vw, 3.5rem); }
.page-head--flush { padding-inline: 0; }
.page-title { font-size: var(--fs-2xl); letter-spacing: -0.045em; max-width: 18ch; }
.page-intro { margin-top: 1.25rem; max-width: 58ch; color: var(--muted); font-size: var(--fs-md); }

.filters { margin-bottom: 2.5rem; }
.filters ul { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.filters a {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	min-height: 44px;
	padding: 0.5rem 1.1rem;
	border: 1px solid var(--line-strong);
	border-radius: 0;
	font-size: var(--fs-sm);
	font-weight: 600;
	text-decoration: none;
	transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}
.filters a:hover { background: var(--surface-2); }
.filters a[aria-current] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.filters__count { font-weight: 500; opacity: 0.7; font-variant-numeric: tabular-nums; }
.empty { color: var(--muted); padding-block: 2rem; }

/* 7. Étude de cas ----------------------------------------------------------- */
.case-head { padding-top: clamp(1.5rem, 1rem + 2vw, 3rem); padding-bottom: 2.5rem; display: grid; gap: 1.25rem; }
.back-link {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	justify-self: start;
	min-height: 44px;
	font-size: var(--fs-sm);
	font-weight: 600;
	color: var(--muted);
	text-decoration: none;
}
.back-link:hover { color: var(--ink); }
.case-head__kicker { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; }
.case-head__num { font-size: var(--fs-sm); font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.case-head__title { font-size: var(--fs-2xl); letter-spacing: -0.045em; max-width: 16ch; }
.case-head .lead { max-width: 44ch; color: var(--ink-2); }

.case-meta {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	margin: 1rem 0 0;
	border-top: 1px solid var(--line);
}
.case-meta div { padding: 1rem 1rem 1rem 0; border-bottom: 1px solid var(--line); }
.case-meta dt { font-size: var(--fs-xs); font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.case-meta dd { margin: 0.35rem 0 0; font-size: var(--fs-sm); font-weight: 500; }
@media (min-width: 900px) {
	.case-meta { grid-template-columns: repeat(4, 1fr); }
	.case-meta div + div { padding-left: 1rem; border-left: 1px solid var(--line); }
}

.case-cover { margin-bottom: clamp(2rem, 1.5rem + 3vw, 4.5rem); }
.case-cover img,
.case-cover video,
.case-cover .card-media-empty {
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	border-radius: var(--radius-lg);
	background: var(--surface-2);
}

.notice {
	padding: 1.1rem 1.25rem;
	margin-bottom: 2.5rem;
	border-radius: var(--radius);
	background: var(--surface);
	box-shadow: inset 0 0 0 1px var(--line);
	border-left: 4px solid var(--accent);
	max-width: 72ch;
}

.kpis {
	display: grid;
	gap: 1rem;
	list-style: none;
	margin-bottom: clamp(2.5rem, 2rem + 3vw, 5rem);
}
.kpis li {
	display: grid;
	gap: 0.5rem;
	padding: 1.5rem;
	border-radius: var(--radius);
	background: var(--surface);
	box-shadow: inset 0 0 0 1px var(--line);
}
.kpis__value { font-size: var(--fs-2xl); font-weight: 600; letter-spacing: -0.05em; line-height: 1; color: var(--ink); }
.kpis__label { color: var(--muted); font-size: var(--fs-sm); max-width: 30ch; }
@media (min-width: 640px) { .kpis { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); } }

.case-body { display: grid; gap: 0; }
.case-section {
	display: grid;
	gap: 1.25rem;
	padding-block: clamp(2rem, 1.5rem + 2vw, 3.5rem);
	border-top: 1px solid var(--line);
}
.case-section__title { font-size: var(--fs-lg); letter-spacing: -0.03em; display: flex; gap: 0.75rem; align-items: baseline; }
.case-section__num { font-size: var(--fs-sm); color: var(--accent-ink); font-weight: 600; font-variant-numeric: tabular-nums; }
@media (min-width: 900px) {
	.case-section { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 2rem; }
	.case-section__title { position: sticky; top: 24px; align-self: start; }
}

.decision {
	margin-top: 2rem;
	padding: 1.5rem;
	border-radius: var(--radius);
	background: var(--ink);
	color: var(--on-dark);
}
.decision p { color: inherit; }
.decision .decision__label {
	font-size: var(--fs-xs);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--on-dark-muted);
	margin-bottom: 0.5rem;
}
.decision p:last-child { font-size: var(--fs-md); line-height: 1.5; }

.case-nav {
	display: grid;
	gap: 1rem;
	padding-top: clamp(2rem, 1.5rem + 2vw, 3.5rem);
	border-top: 1px solid var(--line);
}
@media (min-width: 760px) { .case-nav { grid-template-columns: 1fr 1fr; } }
.case-nav__link {
	display: grid;
	gap: 0.4rem;
	padding: 1.5rem;
	border-radius: var(--radius);
	background: var(--surface);
	box-shadow: inset 0 0 0 1px var(--line);
	text-decoration: none;
	transition: box-shadow 0.25s var(--ease);
}
.case-nav__link:hover { box-shadow: inset 0 0 0 1px var(--ink); }
.case-nav__link--next { text-align: right; justify-items: end; }
@media (min-width: 760px) { .case-nav__link--next { grid-column: 2; } }
.case-nav__dir { display: inline-flex; gap: 0.4rem; align-items: center; font-size: var(--fs-xs); font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.case-nav__title { font-size: var(--fs-md); font-weight: 600; letter-spacing: -0.02em; }

/* Contenu éditorial */
.prose { font-size: var(--fs-md); line-height: 1.7; color: var(--ink-2); max-width: 68ch; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: var(--fs-xl); color: var(--ink); margin-top: 2.2em; letter-spacing: -0.04em; }
.prose h3 { font-size: var(--fs-lg); color: var(--ink); margin-top: 1.8em; }
.prose h2 + *, .prose h3 + * { margin-top: 0.75em; }
.prose ul, .prose ol { padding-left: 1.25em; }
.prose li + li { margin-top: 0.4em; }
.prose li::marker { color: var(--accent-ink); }
.prose strong { color: var(--ink); font-weight: 650; }
.prose a { color: var(--accent-ink); }
.prose a:hover { color: var(--ink); }
.prose img { border-radius: var(--radius); }
.prose figure figcaption, .prose .wp-element-caption { margin-top: 0.6rem; font-size: var(--fs-sm); color: var(--muted); }
.prose blockquote { margin: 1.5em 0; padding-left: 1.25rem; border-left: 3px solid var(--accent); font-size: var(--fs-lg); line-height: 1.4; color: var(--ink); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin-block: 2.5em; }
.prose table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.prose th, .prose td { text-align: left; padding: 0.6rem 0.75rem 0.6rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose--wide { max-width: none; }
.page-standard { padding-bottom: 2rem; }
.page-standard .prose { max-width: 72ch; }
.updated { margin-top: 3rem; font-size: var(--fs-sm); color: var(--muted); }

/* 8. Compétences (bento) ---------------------------------------------------- */
.bento { display: grid; gap: clamp(2.5rem, 2rem + 2vw, 4rem); }
.bento__group {
	display: grid;
	gap: 12px;
	grid-auto-flow: row dense;
}
@media (min-width: 640px) { .bento__group { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .bento__group { grid-template-columns: repeat(4, 1fr); } }

.bento__domain,
.bento__card {
	border-radius: var(--radius);
	padding: clamp(1.25rem, 1rem + 1vw, 1.75rem);
}
.bento__domain {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 2rem;
	min-height: 180px;
	background: var(--ink);
	color: var(--on-dark);
}
.bento__domain h2 { font-size: var(--fs-xl); letter-spacing: -0.04em; }
.bento__domain p { font-size: var(--fs-sm); color: var(--on-dark-muted); }

.bento__card {
	display: flex;
	flex-direction: column;
	gap: 0.85rem;
	background: var(--surface);
	box-shadow: inset 0 0 0 1px var(--line);
	transition: box-shadow 0.25s var(--ease), transform 0.25s var(--ease);
}
.bento__card:hover { box-shadow: inset 0 0 0 1px var(--line-strong); }
.bento__card h3 { font-size: var(--fs-md); font-weight: 600; letter-spacing: -0.02em; }
.bento__card > p { color: var(--muted); font-size: var(--fs-sm); }
@media (min-width: 640px) {
	.bento__card.is-wide { grid-column: span 2; }
	.bento__card.is-tall { grid-row: span 2; }
}

.chips { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; }
.chips li {
	font-size: var(--fs-xs);
	font-weight: 600;
	padding: 0.25rem 0.65rem;
	border-radius: 8px;
	background: var(--surface-2);
}
.bento__proof { margin-top: auto; padding-top: 0.85rem; border-top: 1px solid var(--line); }
.bento__proof-label { font-size: var(--fs-xs); font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 0.4rem; }
.bento__proof ul { list-style: none; display: grid; gap: 0.15rem; }
.bento__proof a {
	display: inline-flex;
	align-items: center;
	min-height: 32px;
	font-size: var(--fs-sm);
	font-weight: 600;
	color: var(--accent-ink);
}
.bento__proof a:hover { color: var(--ink); }

/* 9. À propos --------------------------------------------------------------- */
.about__head { display: grid; gap: 2rem; align-items: end; }
.about__head .lead { margin-top: 1.25rem; max-width: 34ch; }
.about__cv { margin-top: 2rem; }
.about__photo img { width: 100%; border-radius: var(--radius-lg); filter: grayscale(1); aspect-ratio: 4 / 3; object-fit: cover; }
@media (min-width: 900px) { .about__head { grid-template-columns: 1.3fr 1fr; } }

.about__body > h2:first-child { margin-top: 0; }
.about__body h2 { padding-top: 2rem; border-top: 1px solid var(--line); }
.about__body p { max-width: 68ch; }

.about__body .timeline { list-style: none; padding: 0; display: grid; }
.about__body .timeline li {
	display: grid;
	gap: 0.2rem;
	padding: 1.1rem 0;
	margin: 0;
	border-bottom: 1px solid var(--line);
}
.about__body .timeline strong { font-size: var(--fs-md); }

.about__body .method,
.about__body .values {
	list-style: none;
	padding: 0;
	display: grid;
	gap: 12px;
	counter-reset: step;
}
@media (min-width: 760px) {
	.about__body .method { grid-template-columns: repeat(2, 1fr); }
	.about__body .values { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1100px) { .about__body .method { grid-template-columns: repeat(4, 1fr); } }
.about__body .method li,
.about__body .values li {
	margin: 0;
	padding: 1.5rem;
	border-radius: var(--radius);
	background: var(--surface);
	box-shadow: inset 0 0 0 1px var(--line);
	font-size: var(--fs-sm);
	line-height: 1.6;
	color: var(--muted);
}
.about__body .method li { counter-increment: step; }
.about__body .method li::before {
	content: counter(step, decimal-leading-zero);
	display: block;
	margin-bottom: 1.5rem;
	font-weight: 600;
	color: var(--accent-ink);
}
.about__body .method strong,
.about__body .values strong { display: block; margin-bottom: 0.35rem; font-size: var(--fs-md); color: var(--ink); letter-spacing: -0.02em; }

/* 10. Contact & formulaires ------------------------------------------------- */
.contact {
	display: grid;
	gap: clamp(2.5rem, 2rem + 3vw, 5rem);
	padding-top: clamp(2.5rem, 2rem + 4vw, 6rem);
	padding-bottom: 2rem;
}
@media (min-width: 960px) { .contact { grid-template-columns: 1fr 1fr; } }
.contact__intro .prose { margin-top: 1.5rem; }
.contact__direct { list-style: none; margin-top: 2rem; display: grid; gap: 0.25rem; }
.contact__direct li { display: flex; align-items: center; gap: 0.75rem; min-height: 44px; font-weight: 600; }
.contact__direct a { text-decoration-color: var(--line-strong); }
.contact__form:focus { outline: none; }

.form {
	display: grid;
	gap: 1.25rem;
	padding: clamp(1.25rem, 1rem + 2vw, 2.5rem);
	border-radius: var(--radius-lg);
	background: var(--surface);
	box-shadow: inset 0 0 0 1px var(--line);
}
.form__hint, .form__legal { font-size: var(--fs-sm); color: var(--muted); }
.form__legal a { color: var(--accent-ink); }
.form .button { justify-self: start; }

.field { display: grid; gap: 0.4rem; }
.field label { font-size: var(--fs-sm); font-weight: 600; }
.field input,
.field textarea {
	width: 100%;
	min-height: 48px;
	padding: 0.75rem 0.95rem;
	border: 1px solid var(--line-strong);
	border-radius: 12px;
	background: var(--surface);
	transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.field textarea { resize: vertical; min-height: 160px; }
.field input:hover, .field textarea:hover { border-color: var(--ink); }
.field input:focus-visible,
.field textarea:focus-visible {
	outline: none;
	border-color: var(--ink);
	box-shadow: 0 0 0 3px var(--accent);
}
.field__help { font-size: var(--fs-xs); color: var(--muted); }
.field__error { font-size: var(--fs-sm); color: var(--danger); font-weight: 600; }
.field.is-invalid input,
.field.is-invalid textarea { border-color: var(--danger); }

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

.alert {
	display: flex;
	gap: 0.75rem;
	align-items: flex-start;
	padding: 1rem 1.25rem;
	margin-bottom: 1.25rem;
	border-radius: 14px;
	font-weight: 600;
	font-size: var(--fs-sm);
}
.alert .icon { flex: none; margin-top: 2px; }
.alert--success { background: #e7f4ea; color: var(--success); }
.alert--error { background: #fdecea; color: var(--danger); }

/* 11. CTA & footer ---------------------------------------------------------- */
.cta { padding-block: var(--space-section) clamp(3rem, 2rem + 4vw, 6rem); }
.cta__title { font-size: var(--fs-2xl); font-weight: 500; letter-spacing: -0.06em; line-height: 0.95; max-width: 14ch; }
.cta__line {
	display: flex;
	justify-content: flex-end;
	padding-top: 1.25rem;
	margin-top: clamp(3rem, 2.5rem + 3vw, 5.5rem);
	margin-bottom: clamp(3rem, 2.5rem + 3vw, 5.5rem);
	border-top: 1px solid var(--line);
}
.cta__button {
	display: inline-flex;
	align-items: center;
	gap: 0.75rem;
	min-height: 56px;
	padding: 0.9rem 1.5rem;
	background: var(--accent);
	color: var(--on-accent);
	font-weight: 600;
	text-decoration: none;
	transition: background-color 0.3s var(--ease), color 0.3s var(--ease);
}
.cta__button:hover { background: var(--ink); color: var(--bg); }
.cta__button .icon { transition: transform 0.4s var(--ease); }
.cta__button:hover .icon { transform: translate(3px, -3px); }
.cta__button:focus-visible { outline-offset: 4px; }

.cta__contacts { display: grid; gap: 1.25rem; margin: 0; }
.cta__contacts dt { font-size: var(--fs-xs); color: var(--muted); }
.cta__contacts dd { margin: 0.25rem 0 0; font-weight: 500; font-size: var(--fs-md); overflow-wrap: anywhere; }
.cta__contacts a { display: inline-flex; min-height: 32px; align-items: center; }
@media (min-width: 760px) { .cta__contacts { grid-template-columns: repeat(3, auto); justify-content: start; column-gap: clamp(2rem, 6vw, 6rem); } }

.site-footer {
	background: var(--dark);
	color: var(--on-dark);
	padding-top: clamp(3rem, 2rem + 4vw, 6rem);
	padding-bottom: 32px;
}
.site-footer :focus-visible { outline-color: var(--on-dark); }
.site-footer__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 1.5rem; }
.site-footer__tagline { font-size: var(--fs-lg); letter-spacing: -0.04em; max-width: 26ch; line-height: 1.15; }
.round-link {
	flex: none;
	display: grid;
	place-items: center;
	width: 52px; height: 52px;
	text-decoration: none;
	transition: background-color 0.25s var(--ease), color 0.25s var(--ease);
}
.round-link--light { background: var(--on-dark); color: var(--dark); }
.round-link--light:hover { background: var(--accent); color: var(--on-accent); }
.site-footer__wrap { container-type: inline-size; }
.site-footer__name {
	margin: clamp(2rem, 1rem + 4vw, 4rem) 0 clamp(2rem, 1.5rem + 2vw, 3rem) -0.04em;
	font-size: calc(100cqw / 6.05);
	font-weight: 500;
	line-height: 0.9;
	letter-spacing: -0.065em;
	white-space: nowrap;
}
.site-footer__bottom {
	display: grid;
	gap: 1.25rem;
	padding-top: 1.5rem;
	border-top: 1px solid rgba(231, 231, 227, 0.2);
	font-size: var(--fs-sm);
	color: var(--on-dark-muted);
}
.site-footer__bottom ul { list-style: none; display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; }
.site-footer__bottom a { display: inline-flex; align-items: center; min-height: 44px; color: var(--on-dark); text-decoration-color: rgba(231, 231, 227, 0.4); }
.site-footer__bottom a:hover { text-decoration-color: var(--on-dark); }
@media (min-width: 900px) { .site-footer__bottom { grid-template-columns: auto auto 1fr; align-items: center; column-gap: 2.5rem; } .site-footer__copy { justify-self: end; } }

/* 12. Divers ---------------------------------------------------------------- */
.not-found { padding-top: clamp(2rem, 1rem + 4vw, 5rem); padding-bottom: var(--space-section); }
.not-found__code {
	font-size: clamp(7rem, 4rem + 22vw, 22rem);
	font-weight: 700;
	line-height: 0.8;
	letter-spacing: -0.07em;
	color: transparent;
	-webkit-text-stroke: 1.5px var(--line-strong);
	margin-bottom: 2rem;
	margin-left: -0.05em;
}
.not-found .lead { margin-top: 1.25rem; color: var(--muted); }
.not-found__links { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin-top: 2rem; }

.post-list { list-style: none; display: grid; }
.post-list li { padding: 1rem 0; border-bottom: 1px solid var(--line); }
.post-list__date { color: var(--muted); font-size: var(--fs-sm); margin-left: 0.5rem; }

/* Apparition douce au défilement (ajoutée par JS uniquement) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* 13. Mouvement réduit ------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
	.js .hero__word > span { transform: none; }
	.js .hero__fade { opacity: 1; transform: none; }
	.js .reveal { opacity: 1; transform: none; }
}

@media print {
	.nav, .cta, .skip-link { display: none !important; }
	.site-footer { background: none; color: #000; margin: 0; padding: 1rem 0; }
	body { padding: 0; background: #fff; }
}

/* Angles légèrement arrondis ------------------------------------------------- */
.card__media { border-radius: var(--radius-lg); box-shadow: 0 0 0 1px rgba(17,17,16,.04), 0 1px 2px rgba(17,17,16,.05), 0 12px 28px -14px rgba(17,17,16,.10); transition: box-shadow .5s var(--ease); }
.card:hover .card__media, .card:focus-within .card__media { box-shadow: 0 0 0 1px rgba(17,17,16,.08), 0 1px 2px rgba(17,17,16,.06), 0 18px 36px -14px rgba(17,17,16,.10); }
.card__media::after { border-radius: inherit; }
.card__link:focus-visible::after { border-radius: var(--radius-lg); }
.card__star { border-radius: var(--radius); }
.badge,
.tags li,
.pill-link,
.button,
.cta__button,
.hero__todo,
.notice { border-radius: var(--radius); }
.case-cover img,
.case-cover video,
.case-cover .card-media-empty { border-radius: var(--radius-lg); }

/* Hero, petits écrans : coordonnées à gauche, titre et disponibilité à droite, sur une même ligne */
@media (max-width: 899px) {
	.hero__meta { flex-direction: row; flex-wrap: nowrap; align-items: flex-start; justify-content: space-between; gap: 1rem; }
	.hero__links { flex: none; }
	.hero__role { margin-left: auto; text-align: right; justify-items: end; }
}
