/* Todo Digital — feuille de style unique du thème */

/* ---------- Polices (DM Sans variable, auto-hébergée) ---------- */
@font-face {
	font-family: "DM Sans";
	font-style: normal;
	font-weight: 100 1000;
	font-display: swap;
	src: url("../fonts/dmsans-latin.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2190-2199, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
	font-family: "DM Sans";
	font-style: normal;
	font-weight: 100 1000;
	font-display: swap;
	src: url("../fonts/dmsans-latin-ext.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Jetons ---------- */
:root {
	--x-ink: #0D0D18;
	--x-ink-2: #1A1A2E;
	--x-cream: #F5F3EE;
	--x-muted: #C2C0D2;
	--x-line: #33324A;
	--x-blue: #020A9B;
	--x-blue-soft: #D9DBFF;
	--x-pink: #F96EF6;
	--x-violet: #7A3CD0;
	--x-font: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

	--x-fs-h1: clamp(2.5rem, 5vw, 4.5rem);
	--x-fs-h2: clamp(2rem, 4vw, 3.5rem);
	--x-fs-lead: clamp(1.1875rem, 1.8vw, 1.5rem);
	--x-fs-text: 1.0625rem;
	--x-fs-eyebrow: .875rem;

	--x-wrap: 1280px;
	--x-gutter: 40px;
	--x-section-y: 128px;
	--x-gap-col: 64px;
	--x-gap-stack: 24px;
	--x-header-h: 105px;
}
@media (max-width: 767px) {
	:root { --x-gutter: 16px; --x-section-y: 80px; --x-gap-col: 40px; }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 120px; }
body {
	margin: 0;
	background: var(--x-ink);
	color: var(--x-cream);
	font-family: var(--x-font);
	font-size: var(--x-fs-text);
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p, h1, h2, h3, h4, ul, ol, figure, dl, dd { margin: 0; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
h1, h2, h3, h4 { font-weight: inherit; }
button, input, textarea, select { font: inherit; color: inherit; }
strong, b { font-weight: 700; }

:focus-visible { outline: 3px solid var(--x-pink); outline-offset: 3px; }
.x-light :focus-visible, .x-cream :focus-visible { outline-color: var(--x-ink); }
:focus:not(:focus-visible) { outline: none; }

.screen-reader-text, .sr-only, .x-sr {
	position: absolute !important;
	width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%);
	white-space: nowrap; border: 0;
}

.x-skip {
	position: fixed; top: 12px; left: 12px; z-index: 100;
	padding: 12px 20px; border-radius: 999px;
	background: var(--x-pink); color: var(--x-ink); font-weight: 600; text-decoration: none;
	transform: translateY(-200%);
}
.x-skip:focus { transform: none; }

.td-wrap {
	width: 100%;
	max-width: calc(var(--x-wrap) + 2 * var(--x-gutter));
	margin-inline: auto;
	padding-inline: var(--x-gutter);
}
.td-section { position: relative; padding-block: var(--x-section-y); }
.td-section + .td-section.x-same { padding-top: 0; }

/* Couleurs de section */
.x-dark { background: var(--x-ink); color: var(--x-cream); }
.x-cream { background: var(--x-cream); color: var(--x-ink); }
.x-light { background: #fff; color: var(--x-ink); }
.x-blue { background: var(--x-blue); color: #fff; }

/* ---------- Typographie ---------- */
.x-eyebrow {
	font-size: var(--x-fs-eyebrow);
	letter-spacing: .08em;
	text-transform: uppercase;
	font-weight: 400;
	color: var(--x-muted);
	margin-bottom: 20px;
}
.x-cream .x-eyebrow, .x-light .x-eyebrow { color: #55536A; }
.x-blue .x-eyebrow { color: var(--x-blue-soft); }

.x-h1, .x-h2 { font-weight: 300; }
.x-h1 { font-size: clamp(2.5rem, 6.2vw, 5.5rem); line-height: 1.02; letter-spacing: -.035em; max-width: 17ch; }
.x-h1s { font-size: var(--x-fs-h1); line-height: 1.04; letter-spacing: -.03em; font-weight: 300; }
.x-h2 { font-size: var(--x-fs-h2); line-height: 1.05; letter-spacing: -.03em; }
.x-h1 strong, .x-h1s strong, .x-h2 strong { font-weight: 700; }
.x-h3 { font-size: 1.5rem; line-height: 1.25; font-weight: 700; }
.x-lead { font-size: var(--x-fs-lead); line-height: 1.5; font-weight: 300; }
.x-m { color: var(--x-muted); }
.x-cream .x-m, .x-light .x-m { color: #3B394D; }
.x-blue .x-m { color: var(--x-blue-soft); }
.x-arrow-title { display: flex; gap: 12px; align-items: center; font-size: 1.125rem; font-weight: 500; margin-bottom: 28px; }
.x-arrow-title::before { content: "→"; }

.x-rich > * + * { margin-top: 1em; }
.x-rich { font-size: 1.125rem; line-height: 1.65; }
.x-rich a { text-underline-offset: 3px; }
.x-rich ul { padding-left: 1.2em; }
.x-rich h3 { font-size: 1.25rem; font-weight: 600; line-height: 1.3; }
.x-rich * + h3 { margin-top: 1.8em; }
.x-rich h3 + * { margin-top: .5em; }

/* ---------- Boutons ---------- */
.x-btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }
.x-btn {
	display: inline-flex; align-items: center; gap: 12px;
	min-height: 48px; padding: 0 24px;
	border: 2px solid transparent; border-radius: 999px;
	font-size: 1rem; font-weight: 500; line-height: 1.2; text-decoration: none;
	transition: background-color .2s ease, color .2s ease, border-color .2s ease;
	cursor: pointer;
}
.x-btn.has-icon { padding: 0 8px 0 24px; }
.x-btn__i {
	display: inline-grid; place-items: center; flex: 0 0 32px;
	width: 32px; height: 32px; border-radius: 50%;
	transition: background-color .2s ease, color .2s ease;
}
.x-btn__i svg { width: 16px; height: 16px; }

.x-btn--pink { background: var(--x-pink); color: var(--x-ink); }
.x-btn--pink .x-btn__i { background: var(--x-ink); color: var(--x-pink); }
.x-btn--pink:hover { background: var(--x-cream); }

.x-btn--ghost { background: transparent; border-color: var(--x-cream); color: var(--x-cream); }
.x-btn--ghost .x-btn__i { background: var(--x-cream); color: var(--x-ink); }
.x-btn--ghost:hover { background: var(--x-cream); color: var(--x-ink); }
.x-btn--ghost:hover .x-btn__i { background: var(--x-ink); color: var(--x-cream); }
.x-blue .x-btn--ghost { border-color: #fff; color: #fff; }
.x-blue .x-btn--ghost:hover { background: #fff; color: var(--x-blue); }

.x-btn--ink { background: var(--x-ink); color: var(--x-cream); }
.x-btn--ink .x-btn__i { background: var(--x-cream); color: var(--x-ink); }
.x-btn--ink:hover { background: var(--x-blue); color: #fff; }
.x-btn--ink:hover .x-btn__i { background: #fff; color: var(--x-blue); }

.x-btn--cream { background: var(--x-cream); color: var(--x-ink); }
.x-btn--cream .x-btn__i { background: var(--x-ink); color: var(--x-cream); }
.x-btn--cream:hover { background: var(--x-pink); }

/* ---------- En-tête ---------- */
.td-header {
	position: sticky; top: 0; z-index: 50;
	background: var(--x-ink);
	border-bottom: 1px solid #22213A;
	transition: box-shadow .3s ease;
}
.admin-bar .td-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .td-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .td-header { top: 0; } }
.td-header__in { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 24px; transition: padding .3s ease; }
.is-scrolled .td-header__in { padding-block: 10px; }
.is-scrolled .td-header { box-shadow: 0 1px 0 rgba(255, 255, 255, .08); }
.td-brand { position: relative; z-index: 2; display: flex; align-items: center; gap: 18px; }
.td-logo { display: block; color: var(--x-cream); }
.td-logo img { height: 56px; width: auto; transition: height .3s ease; }
.is-scrolled .td-logo img { height: 38px; }

.td-bubble {
	position: relative;
	display: inline-block;
	padding: 6px 13px;
	border-radius: 14px;
	background: #fff; color: var(--x-ink);
	font-size: .8125rem; font-weight: 700; line-height: 1.2; white-space: nowrap;
	text-decoration: none;
	transform: rotate(-4deg);
	transition: transform .2s ease, background-color .2s ease;
}
.td-bubble::before {
	content: ""; position: absolute; left: -7px; top: 50%; margin-top: -6px;
	border-style: solid; border-width: 6px 8px 6px 0; border-color: transparent #fff transparent transparent;
	transition: border-color .2s ease;
}
.td-bubble:hover { transform: rotate(0deg) scale(1.04); background: var(--x-pink); }
.td-bubble:hover::before { border-right-color: var(--x-pink); }

.td-nav__list { display: flex; align-items: center; list-style: none; margin: 0; padding: 0; }
.td-nav__list a {
	display: inline-flex; align-items: center; min-height: 44px; margin: 0 14px;
	font-size: 1rem; font-weight: 600; color: var(--x-cream); text-decoration: none;
	text-underline-offset: 8px; text-decoration-thickness: 2px;
}
.td-nav__list a:hover, .td-nav__list a[aria-current] { text-decoration: underline; }
.td-nav__list > li:last-child > a, .td-nav__list .menu-cta > a {
	margin-right: 0; margin-left: 10px; padding: 0 22px; border-radius: 999px;
	background: var(--x-pink); color: var(--x-ink); font-weight: 500; text-decoration: none;
	transition: background-color .2s ease;
}
.td-nav__list > li:last-child > a:hover, .td-nav__list .menu-cta > a:hover { background: var(--x-cream); }

.td-burger {
	display: none; place-items: center;
	width: 48px; height: 48px; padding: 0; border-radius: 50%;
	border: 2px solid var(--x-cream); background: transparent; color: var(--x-cream); cursor: pointer;
}
.td-burger__bars, .td-burger__bars::before, .td-burger__bars::after {
	display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px;
	transition: transform .25s ease, opacity .2s ease;
}
.td-burger__bars { position: relative; }
.td-burger__bars::before, .td-burger__bars::after { content: ""; position: absolute; left: 0; }
.td-burger__bars::before { top: -6px; }
.td-burger__bars::after { top: 6px; }
[aria-expanded="true"] .td-burger__bars { background: transparent; }
[aria-expanded="true"] .td-burger__bars::before { transform: translateY(6px) rotate(45deg); }
[aria-expanded="true"] .td-burger__bars::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1024px) {
	.td-burger { display: grid; position: relative; z-index: 2; }
	.td-nav {
		position: fixed; inset: 0; z-index: 1;
		padding: calc(var(--x-header-h) + 32px) var(--x-gutter) 40px;
		background: var(--x-ink);
		overflow-y: auto;
		visibility: hidden; opacity: 0;
		transition: opacity .25s ease, visibility 0s linear .25s;
	}
	.admin-bar .td-nav { top: 46px; }
	.td-nav.is-open { visibility: visible; opacity: 1; transition: opacity .25s ease; }
	.td-nav__list { flex-direction: column; align-items: stretch; }
	.td-nav__list a, .td-nav__list > li:last-child > a, .td-nav__list .menu-cta > a {
		display: flex; margin: 0; padding: 14px 0; min-height: 0;
		border-bottom: 1px solid var(--x-line); border-radius: 0; background: none; color: var(--x-cream);
		font-size: clamp(1.75rem, 7vw, 2.5rem); font-weight: 300; text-decoration: none;
	}
	.td-nav__list a:hover, .td-nav__list a[aria-current] { color: var(--x-pink); text-decoration: none; }
	body.td-menu-open { overflow: hidden; }
}
@media (max-width: 767px) {
	.td-brand { gap: 12px; }
	.td-logo img { height: 44px; }
	.is-scrolled .td-logo img { height: 34px; }
	.td-header__in { padding-block: 16px; }
	.is-scrolled .td-header__in { padding-block: 10px; }
	.td-bubble { font-size: .75rem; padding: 5px 10px; }
}

/* ---------- Héros ---------- */
.x-hero { position: relative; overflow: hidden; padding-block: 112px var(--x-section-y); }
.x-orb {
	position: absolute; z-index: 0; pointer-events: none;
	width: 640px; height: 640px; right: -180px; top: -120px; border-radius: 50%;
	background: radial-gradient(circle at 35% 35%, #F96EF6 0%, #7A3CD0 45%, #020A9B 75%, transparent 100%);
	opacity: .55;
}
.x-hero > .td-wrap { position: relative; z-index: 1; }
.x-hero .x-lead { max-width: 42ch; margin-top: 32px; }
@media (max-width: 767px) {
	.x-hero { padding-top: 64px; }
	.x-orb { width: 380px; height: 380px; right: -160px; top: -80px; }
}

.td-pagehead { padding-block: 112px 112px; }
.td-pagehead__grid { display: grid; grid-template-columns: 5fr 7fr; gap: var(--x-gap-col); align-items: start; }
.td-pagehead .x-lead { margin-top: 0; max-width: none; }
.td-pagehead .x-sub { margin-top: 20px; color: var(--x-muted); }
@media (max-width: 900px) { .td-pagehead__grid { grid-template-columns: 1fr; gap: 28px; } .td-pagehead { padding-block: 64px 80px; } }

/* ---------- Grilles génériques ---------- */
.td-split { display: grid; grid-template-columns: 5fr 7fr; gap: var(--x-gap-col); align-items: start; }
.td-split--even { grid-template-columns: 1fr 1fr; }
.td-split--wide { grid-template-columns: 4fr 8fr; }
@media (max-width: 900px) { .td-split, .td-split--even, .td-split--wide { grid-template-columns: 1fr; gap: 32px; } }
.td-split > * { min-width: 0; }
.td-stack > * + * { margin-top: var(--x-gap-stack); }

/* Cartes sombres */
.x-cards3, .x-cards2 { display: grid; gap: 20px; list-style: none; padding: 0; margin: 0; }
.x-cards3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.x-cards2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.x-card { display: flex; flex-direction: column; gap: 14px; padding: 36px; border-radius: 28px; background: var(--x-ink-2); color: var(--x-cream); }
.x-card .x-ct { font-size: 1.5rem; line-height: 1.25; font-weight: 700; }
.x-card .x-cx { color: var(--x-muted); }
.x-card--sm { padding: 28px; border-radius: 20px; gap: 10px; }
.x-card--sm .x-ct { font-size: 1.375rem; font-weight: 500; }
.x-card--sm .x-cx { font-size: .9375rem; line-height: 1.5; }
.x-num { font-size: .875rem; letter-spacing: .08em; color: var(--x-pink); }
@media (max-width: 1024px) { .x-cards3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767px) { .x-cards3, .x-cards2 { grid-template-columns: 1fr; } .x-card { padding: 28px; border-radius: 22px; } }

/* Lignes clé / valeur */
.x-rows { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid rgba(13, 13, 24, .2); }
.x-rows > .x-row { display: grid; grid-template-columns: 4fr 8fr; gap: 24px; padding: 20px 0; border-top: 1px solid rgba(13, 13, 24, .2); }
.x-dark .x-rows, .x-dark .x-rows > .x-row { border-color: rgba(255, 255, 255, .35); }
.x-rk { font-weight: 700; }
.x-rv { color: #3B394D; }
.x-dark .x-rv { color: var(--x-muted); }
.x-blue .x-rv { color: #fff; }
@media (max-width: 600px) { .x-rows > .x-row { grid-template-columns: 1fr; gap: 6px; } }

/* Liste d'expertises (accueil) */
.x-explist { list-style: none; margin: 0; padding: 0; border-top: 1px solid #D6D3CC; }
.x-explist a {
	display: grid; grid-template-columns: 5fr 6fr; gap: 24px; align-items: baseline;
	padding: 22px 0; border-bottom: 1px solid #D6D3CC;
	color: var(--x-ink); text-decoration: none; transition: color .2s ease;
}
.x-explist a:hover, .x-explist a:focus-visible { color: var(--x-blue); }
.x-explist .x-rt { font-size: 1.25rem; font-weight: 600; }
.x-explist .x-rx { font-size: .9375rem; line-height: 1.5; color: #3B394D; }
.td-exp-head { align-items: start; margin-bottom: 56px; }
.td-exp .td-exp-cta { margin-top: 48px; justify-content: center; }
.td-refs-head { margin-bottom: 48px; }
.td-refs-head .x-h2 { max-width: 24ch; }
.td-ton .x-lead { font-size: clamp(1rem, 1.3vw, 1.1875rem); margin-top: 32px; }
.td-ton .x-words { margin-bottom: 0; }
.td-ton-soft { margin-top: 80px; padding-top: 48px; border-top: 1px solid var(--x-line); }
.td-ton .td-ton-soft .x-lead { margin-top: 0; }
.td-ton-soft__st { margin: 32px 0 14px; font-size: 1.125rem; line-height: 1.3; font-weight: 700; color: var(--x-cream); }
.td-ton-soft__list { list-style: none; margin: 0; padding: 0; }
.td-ton-soft__list li { position: relative; padding-left: 22px; font-size: clamp(1rem, 1.3vw, 1.1875rem); line-height: 1.5; font-weight: 300; }
.td-ton-soft__list li + li { margin-top: 8px; }
.td-ton-soft__list li::before { content: ""; position: absolute; left: 0; top: .62em; width: 8px; height: 8px; border-radius: 50%; background: #F96EF6; }
.x-wink { display: inline-block; width: .85em; height: .85em; vertical-align: -.1em; margin-inline: .04em; transform-origin: 50% 60%; }
.x-wink.is-playing { animation: x-wink-tilt 3.2s ease-in-out 1; }
.x-wink svg { display: block; width: 100%; height: 100%; }
.x-wink__eye { transform-box: fill-box; transform-origin: center; }
.x-wink.is-playing .x-wink__eye { animation: x-wink-eye 3.2s ease-in-out 1; }
@keyframes x-wink-eye { 0%, 62%, 82%, 100% { transform: scaleY(1); } 68%, 76% { transform: scaleY(.12); } }
@keyframes x-wink-tilt { 0%, 58%, 86%, 100% { transform: rotate(0deg) scale(1); } 66%, 78% { transform: rotate(-12deg) scale(1.08); } }
@media (prefers-reduced-motion: reduce) { .x-wink, .x-wink__eye { animation: none; } }
@font-face {
	font-family: "Phonk";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("/wp-content/uploads/fonts/phonk-regular.woff2") format("woff2");
}
.x-words { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 26px; list-style: none; margin: 0 0 40px; padding: 0; }
.x-words li { display: inline-block; line-height: 1; font-family: "Phonk", "DM Sans", sans-serif; font-weight: 400; letter-spacing: .01em; font-size: clamp(1.75rem, 2.8vw, 2.75rem); color: var(--x-cream); cursor: default; transition: color .2s ease; }
.x-words li:nth-child(3n+1) { font-size: clamp(2.5rem, 4.4vw, 4.25rem); }
.x-words li:nth-child(4n+2) { color: #F96EF6; }
.x-words li:nth-child(5n+3) { color: #A9A6FF; }
.x-words li:nth-child(4n) { font-size: clamp(1.25rem, 1.8vw, 1.75rem); color: var(--x-muted); }
.x-words li:hover { color: #F96EF6; }
.x-expcards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; list-style: none; margin: 0; padding: 0; }
.x-expcard { display: flex; flex-direction: column; padding: 32px 28px; border-radius: 28px; background: #fff; }
.x-expchap { font-size: 1.375rem; line-height: 1.25; font-weight: 700; color: var(--x-ink); margin: 0 0 8px; }
.x-expcard .x-explist { border-top: 0; }
.x-expcard .x-explist a { display: flex; flex-direction: column; gap: 4px; padding: 16px 0; border-bottom-color: #E6E3DC; }
.x-expcard .x-explist li:last-child a { border-bottom: 0; padding-bottom: 0; }
.x-expcard .x-explist .x-rt { font-size: 1.0625rem; }
.x-expcard .x-explist .x-rx { font-size: .875rem; }
@media (max-width: 1100px) { .x-expcards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .x-expcards { grid-template-columns: 1fr; } .x-expcard { padding: 28px 24px; border-radius: 22px; } }
@media (max-width: 600px) { .x-explist a { grid-template-columns: 1fr; gap: 6px; } }

/* ---------- Accueil ---------- */
.td-role { padding-top: 0; }
.td-role .td-split { align-items: start; margin-bottom: 56px; }
.td-role .x-lead { font-size: clamp(1rem, 1.3vw, 1.1875rem); }
.td-exp .x-btns, .td-app .x-btns { margin-top: 32px; }
.td-app .td-split { align-items: start; margin-bottom: 56px; }
.td-cases-head { margin-bottom: 56px; }
.td-cases-head .x-h2 { max-width: 24ch; }
.td-refs-home { margin-top: 120px; }
.td-app .x-card { transition: background-color .3s ease; }
.td-app .x-card:hover { background: #24233E; }

/* Cartes études de cas */
.x-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; list-style: none; margin: 0; padding: 0; }
@media (max-width: 1024px) { .x-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767px) { .x-grid { grid-template-columns: 1fr; } }
.x-casecard {
	position: relative; display: flex; flex-direction: column; gap: 16px; height: 100%;
	padding: 28px; border-radius: 28px; background: var(--x-ink-2); color: var(--x-cream);
}
.x-casecard__media { overflow: hidden; border-radius: 20px; }
.x-casecard__img { aspect-ratio: 16 / 10; width: 100%; object-fit: cover; object-position: top; border-radius: 20px; background: #24233A; }
.x-meta { display: flex; flex-wrap: wrap; gap: 0 10px; font-size: .875rem; letter-spacing: .06em; text-transform: uppercase; color: var(--x-muted); }
.x-meta > span + span::before { content: "·"; margin-right: 10px; }
.x-dh3 { font-size: 1.625rem; line-height: 1.22; font-weight: 300; letter-spacing: -.01em; }
.x-dtext { font-size: .9375rem; line-height: 1.6; color: var(--x-muted); }
.x-casecard .x-btn { margin-top: auto; align-self: flex-start; }
.x-casecard__body { display: flex; flex-direction: column; gap: 16px; flex: 1; }
@media (max-width: 767px) { .x-dh3 { font-size: 1.375rem; } .x-casecard { padding: 20px; } }

/* Références */
.x-refs2 {
	list-style: none; margin: 0; padding: 0;
	max-width: 1040px;
	font-size: clamp(2rem, 4.4vw, 3.75rem); line-height: 1.14; font-weight: 300; letter-spacing: -.03em;
}
.x-refs2 li { display: inline; }
.x-refs2 li:not(:last-child)::after { content: ", "; }
.x-refs2 .x-ref { cursor: default; text-decoration-thickness: 2px; text-underline-offset: 6px; }
.x-refs2 .x-ref:hover { text-decoration: underline; }
.x-refs-intro { margin-bottom: 36px; color: var(--x-muted); font-size: 1rem; }
.x-blue .x-refs-intro { color: var(--x-blue-soft); }

.x-float {
	position: fixed; left: 0; top: 0; z-index: 40; pointer-events: none;
	opacity: 0; transform: translate3d(var(--mx, 0), var(--my, 0), 0) translate(18px, 18px) scale(.96);
	transition: opacity .18s ease, transform .18s ease;
}
.x-float.is-on { opacity: 1; transform: translate3d(var(--mx, 0), var(--my, 0), 0) translate(18px, 18px) scale(1); }
.x-float--logo { width: 120px; height: 120px; padding: 18px; border-radius: 20px; background: var(--x-cream); display: grid; place-items: center; }
.x-float--logo img { max-height: 84px; width: auto; object-fit: contain; }
.x-float--shot { width: 320px; border-radius: 16px; overflow: hidden; box-shadow: 0 20px 50px rgba(13, 13, 24, .25); background: #fff; }
.x-float--shot img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; }
@media (hover: none) { .x-float { display: none; } }

/* À propos (accueil) */
.td-about .x-rows { margin-top: 32px; }

/* Contact */
.td-contact .td-split { align-items: start; }
.td-contact .x-lead { margin-top: 24px; }
.x-form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 12px; }
.x-form .x-full { grid-column: 1 / -1; }
.x-form__note { grid-column: 1 / -1; font-size: .875rem; color: var(--x-muted); }
.x-field { display: flex; flex-direction: column; gap: 8px; }
.x-field label { font-size: 1rem; font-weight: 500; color: var(--x-cream); }
.x-field input, .x-field textarea {
	width: 100%; min-height: 52px; padding: 14px 16px;
	border: 2px solid #6E6C85; border-radius: 16px; background: var(--x-ink-2); color: var(--x-cream);
	transition: border-color .2s ease;
}
.x-field textarea { min-height: 150px; resize: vertical; }
.x-field input:focus, .x-field textarea:focus { border-color: var(--x-pink); outline: 3px solid var(--x-pink); outline-offset: 1px; }
.x-field [aria-invalid="true"] { border-color: #FFB3B3; }
.x-error { font-size: .9375rem; color: #FFB3B3; }
.x-form .x-btn { justify-self: start; padding: 0 28px; }
.x-status { grid-column: 1 / -1; padding: 16px 20px; border-radius: 16px; font-weight: 500; }
.x-status--ok { background: #1E3B2E; color: #CFF5DD; }
.x-status--err { background: #3B1E26; color: #FFD3D3; }
.x-status:focus { outline: 3px solid var(--x-pink); outline-offset: 2px; }
.td-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 600px) { .x-form { grid-template-columns: 1fr; } }

/* ---------- Pages intérieures ---------- */
/* Expertises */
.x-explong { list-style: none; margin: 0; padding: 0; counter-reset: exp; }
.x-explong li {
	display: grid; grid-template-columns: 64px 4fr 7fr; gap: 24px; align-items: baseline;
	padding: 40px 0; border-bottom: 1px solid #D6D3CC; scroll-margin-top: 120px; counter-increment: exp;
}
.x-explong li:first-child { border-top: 1px solid #D6D3CC; }
.x-explong li::before { content: counter(exp, decimal-leading-zero); font-size: var(--x-fs-eyebrow); letter-spacing: .08em; color: #55536A; }
.x-explong h2, .x-explong h3 { font-size: 1.75rem; line-height: 1.2; font-weight: 500; }
.td-expchaps { counter-reset: exp; }
.td-expchaps .x-explong { counter-reset: none; }
.td-expchap { scroll-margin-top: 120px; }
.td-expchap + .td-expchap { margin-top: 96px; }
.td-expchap__titre { font-size: var(--x-fs-eyebrow); letter-spacing: .08em; text-transform: uppercase; font-weight: 400; color: #55536A; margin: 0 0 20px; }
.x-explong p { color: #3B394D; }
@media (max-width: 767px) { .x-explong li { grid-template-columns: 1fr; gap: 10px; padding: 28px 0; } }

/* Approche : étapes */
.x-steps { list-style: none; margin: 0; padding: 0; counter-reset: st; }
.x-steps li {
	display: grid; grid-template-columns: 48px 3fr 6fr; gap: 24px; align-items: baseline;
	padding: 32px 0; border-bottom: 1px solid #D6D3CC; counter-increment: st;
}
.x-steps li:first-child { border-top: 1px solid #D6D3CC; }
.x-steps li::before { content: counter(st, decimal-leading-zero); font-size: var(--x-fs-eyebrow); letter-spacing: .08em; color: var(--x-violet); }
.x-steps h3 { font-size: 1.625rem; font-weight: 500; line-height: 1.2; }
.x-steps p { color: #3B394D; }
@media (max-width: 767px) { .x-steps li { grid-template-columns: 1fr; gap: 8px; } }
.td-split .x-intro { margin-top: 24px; }
.x-cream .x-intro, .x-light .x-intro { color: #3B394D; }
.x-dark .x-intro { color: var(--x-muted); }

/* À propos : fondateur */
.td-bio { display: grid; grid-template-columns: 5fr 7fr; gap: var(--x-gap-col); align-items: start; }
.td-bio figure img { width: 100%; border-radius: 20px; }
.td-bio figcaption { margin-top: 14px; font-size: .875rem; color: #55536A; }
.td-bio .x-rich { margin-top: 24px; font-size: 1.0625rem; color: #3B394D; }
.td-bio .x-rich p:first-child { font-size: var(--x-fs-lead); line-height: 1.5; font-weight: 300; color: var(--x-ink); }
@media (max-width: 900px) { .td-bio { grid-template-columns: 1fr; } .td-bio figure { max-width: 420px; } }

/* Parcours */
.x-timeline { list-style: none; margin: 0; padding: 0; }
.x-timeline li { display: grid; grid-template-columns: 150px 1fr; gap: 32px; }
.x-timeline .x-d { font-size: var(--x-fs-eyebrow); color: var(--x-pink); letter-spacing: .06em; padding-top: 4px; }
.x-timeline .x-c { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 0 0 40px 28px; border-left: 1px solid var(--x-line); }
.x-timeline .x-c::before { content: ""; position: absolute; width: 13px; height: 13px; top: 6px; left: -7px; border-radius: 50%; background: var(--x-pink); box-shadow: 0 0 0 4px var(--x-ink); }
.x-timeline .x-t { font-size: 1.3125rem; font-weight: 600; line-height: 1.3; color: #fff; }
.x-timeline .x-p { font-size: .9375rem; color: var(--x-muted); }
@media (max-width: 767px) { .x-timeline li { grid-template-columns: 1fr; gap: 8px; } .x-timeline .x-d { padding-left: 28px; } }

/* Savoir-être */
.x-skills { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; list-style: none; margin: 48px 0 0; padding: 0; }
.x-skills li { display: flex; flex-direction: column; gap: 10px; padding-top: 24px; border-top: 2px solid var(--x-ink); }
.x-skills h3 { font-size: 1.375rem; font-weight: 600; }
.x-skills p { font-size: .9375rem; color: #3B394D; }
@media (max-width: 1024px) { .x-skills { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .x-skills { grid-template-columns: 1fr; } }

/* Projets en ligne */
.x-projects { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 28px; list-style: none; margin: 0; padding: 0; }
.x-projects a {
	position: relative; display: grid; grid-template-columns: 1fr auto; gap: 2px 16px; align-items: center;
	padding: 16px 0; border-bottom: 1px solid #D6D3CC; color: var(--x-ink); text-decoration: none;
}
.x-projects .x-pn { font-size: 1.125rem; font-weight: 400; }
.x-projects .x-pd { grid-column: 1; font-size: .875rem; color: #55536A; }
.x-projects .x-pa { grid-row: 1 / span 2; grid-column: 2; width: 18px; height: 18px; transition: transform .2s ease; }
.x-projects a:hover .x-pn, .x-projects a:focus-visible .x-pn { text-decoration: underline; text-underline-offset: 4px; }
.x-projects a:hover .x-pa { transform: translate(2px, -2px); }
.td-projects .x-intro { margin-bottom: 36px; color: #3B394D; max-width: 60ch; }
@media (max-width: 1024px) { .x-projects { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .x-projects { grid-template-columns: 1fr; } }

/* Bandeau d'appel à l'action */
.td-cta { padding-block: 80px; border-top: 1px solid var(--x-line); }
.td-cta__in { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.td-cta .x-h2 { font-size: clamp(2rem, 4vw, 3.25rem); }

/* ---------- Étude de cas ---------- */
.x-fiche { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--x-line); max-width: 1040px; }
.x-fiche dt { font-size: .8125rem; letter-spacing: .08em; text-transform: uppercase; color: var(--x-muted); margin-bottom: 6px; }
.x-fiche dd { font-size: .9375rem; }
.x-fiche > div:has(dd.is-long) { grid-column: span 2; }
@media (max-width: 767px) { .x-fiche { grid-template-columns: 1fr 1fr; } }
.x-gal { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; list-style: none; margin: 0; padding: 0; }
.x-gal img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; border-radius: 20px; }
@media (max-width: 767px) { .x-gal { grid-template-columns: 1fr; } }
.td-case-sec { padding-block: 56px; }
.td-case-sec .x-h2 { font-size: clamp(2rem, 3.6vw, 3rem); }
.x-cons { list-style: none; margin: 0; padding: 0; }
.x-cons li { position: relative; padding: 14px 0 14px 24px; border-top: 1px solid var(--x-line); }
.x-cons li:last-child { border-bottom: 1px solid var(--x-line); }
.x-cons li::before { content: ""; position: absolute; left: 2px; top: 23px; width: 8px; height: 8px; border-radius: 50%; background: var(--x-pink); }
.x-liv { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 20px; list-style: none; margin: 40px 0 0; padding: 0; }
.x-liv li { padding: 24px 0 28px; border-top: 2px solid var(--x-cream); }
.x-liv h3 { font-size: 1.125rem; font-weight: 700; margin-bottom: 8px; }
.x-liv p { font-size: .9375rem; color: var(--x-muted); }
@media (max-width: 1024px) { .x-liv { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .x-liv { grid-template-columns: 1fr; } }
.x-stats { display: flex; flex-wrap: wrap; gap: 24px 48px; list-style: none; margin: 40px 0 32px; padding: 0; }
.x-stats strong { display: block; font-size: 3rem; line-height: 1; font-weight: 700; color: var(--x-pink); letter-spacing: -.02em; }
.x-stats span { display: block; margin-top: 6px; font-size: .9375rem; color: var(--x-muted); }
.td-result .x-rich { font-size: var(--x-fs-lead); line-height: 1.5; font-weight: 300; color: var(--x-muted); max-width: 54ch; }

.td-band { padding-block: 112px; }
.td-band .td-split { align-items: start; }
.td-band .x-lead { margin-bottom: 24px; }

/* ---------- Pied de page ---------- */
.td-footer { border-top: 1px solid var(--x-line); padding-block: 56px 40px; font-size: 1rem; }
.td-footer__top { display: flex; justify-content: space-between; gap: 32px; align-items: flex-start; }
.td-footer__logo img { width: 104px; height: auto; }
.td-footer__menu { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.td-footer__menu a { color: var(--x-muted); font-weight: 500; text-decoration: none; display: inline-block; padding: 2px 0; }
.td-footer__menu a:hover, .td-footer__menu a[aria-current] { color: var(--x-cream); text-decoration: underline; text-underline-offset: 4px; }
.td-footer__bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 56px; padding-top: 20px; border-top: 1px solid var(--x-line); }
.td-copy { font-size: .875rem; color: var(--x-muted); }
.td-footer__legal { flex: 1 1 auto; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 24px; }
.td-legal { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: .875rem; }
.td-legal a { color: var(--x-muted); text-decoration: underline; text-underline-offset: 3px; }
.td-legal a:hover, .td-legal a[aria-current] { color: var(--x-cream); }
.td-langs { list-style: none; margin: 0; padding: 0; display: flex; gap: 16px; }
.td-langs a { font-weight: 600; color: var(--x-cream); text-decoration: none; }
.td-langs a:hover { text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 767px) {
	.td-footer { padding-block: 48px 32px; }
	.td-footer__top, .td-footer__bottom { flex-direction: column; align-items: flex-start; }
}

/* ---------- Page simple / 404 ---------- */
.td-prose { max-width: 760px; }
.td-prose > * + * { margin-top: 1.1em; }
.td-prose h2 { font-size: 1.75rem; font-weight: 500; margin-top: 2em; line-height: 1.25; }
.td-prose h3 { font-size: 1.25rem; font-weight: 600; margin-top: 1.6em; }
.td-prose ul, .td-prose ol { padding-left: 1.3em; }
.td-prose a { text-underline-offset: 3px; }

/* ---------- Animations (accueil) ---------- */
.js-anim [data-anim], .js-anim .x-hero h1 { opacity: 0; }
.x-w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
.x-wi { display: inline-block; will-change: transform; }
.js-anim .x-casecard__img { transition: transform .6s ease; }
.js-anim .x-casecard:hover .x-casecard__img { transform: scale(1.04); }
.js-anim .x-explist a { transition: color .2s ease, padding-left .3s ease; }
.js-anim .x-explist a:hover { padding-left: 12px; }
.x-progress { position: fixed; left: 0; top: 0; z-index: 60; width: 100%; height: 3px; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--x-pink), var(--x-violet), var(--x-blue)); pointer-events: none; }
.admin-bar .x-progress { top: 32px; }
.x-cursor { position: fixed; left: 0; top: 0; z-index: 70; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: var(--x-pink); pointer-events: none; opacity: 0; transition: opacity .2s ease; }
.x-cursor.is-on { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
	.js-anim [data-anim] { opacity: 1 !important; transform: none !important; }
	.x-float { display: none; }
}
.x-pt0 { padding-top: 0; }
.x-eyebrow a { text-decoration: none; }
.x-eyebrow a:hover { text-decoration: underline; text-underline-offset: 4px; }
.x-case-title { max-width: 20ch; }
.x-case-quote { margin: 40px 0 0; padding-left: 24px; border-left: 3px solid #F96EF6; font-size: var(--x-fs-lead); max-width: 42ch; } /* même largeur que le chapô (.x-hero .x-lead) */
.x-case-quote p { font-size: clamp(1.375rem, 2.2vw, 2rem); line-height: 1.3; font-weight: 300; font-style: italic; color: var(--x-cream); }
.td-result { padding-bottom: 112px; }
