/*
Theme Name: XploreDev
Theme URI: https://xploredev.ma/
Author: XploreDev
Description: Thème sur mesure du site XploreDev — développement d’applications, de portails et de systèmes d’information pour le secteur public marocain.
Version: 1.0.0
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: xploredev
License: Propriétaire
*/

/* ==========================================================================
   Tokens
   ========================================================================== */
:root {
	--coral: #E0523A;
	--coral-600: #C9412A;
	--coral-50: #FDF2EF;
	--coral-100: #FADFD8;
	--ink: #1D1D21;
	--ink-2: #3D3D44;
	--muted: #6B6B74;
	--line: #E9E9EC;
	--line-2: #DCDCE1;
	--bg: #FFFFFF;
	--bg-alt: #F7F7F5;
	--dark: #141417;
	--dark-2: #1E1E23;
	--dark-line: rgba(255, 255, 255, .1);
	--ok: #1F9D6B;

	--font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
	--mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

	--r-sm: 8px;
	--r: 14px;
	--r-lg: 22px;
	--shadow-sm: 0 1px 2px rgba(20, 20, 23, .06), 0 1px 1px rgba(20, 20, 23, .04);
	--shadow: 0 10px 30px -12px rgba(20, 20, 23, .18), 0 2px 6px rgba(20, 20, 23, .05);
	--shadow-lg: 0 30px 60px -20px rgba(20, 20, 23, .28), 0 8px 20px -8px rgba(20, 20, 23, .1);

	--wrap: 1240px;
	--gutter: clamp(20px, 4vw, 40px);
	--section: clamp(72px, 9vw, 128px);
	--ease: cubic-bezier(.2, .7, .2, 1);
	--header-h: 76px;
}

/* ==========================================================================
   Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
	margin: 0;
	font-family: var(--font);
	font-size: 16px;
	line-height: 1.6;
	color: var(--ink);
	background: var(--bg);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
	font-feature-settings: "cv11", "ss01";
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--coral); }
h1, h2, h3, h4, h5, h6 { margin: 0; font-weight: 650; line-height: 1.15; letter-spacing: -.02em; color: var(--ink); }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
::selection { background: var(--coral); color: #fff; }
:focus-visible { outline: 2px solid var(--coral); outline-offset: 3px; border-radius: 4px; }

.xd-skip {
	position: absolute; left: 12px; top: -60px; z-index: 200;
	padding: 10px 16px; border-radius: var(--r-sm); background: var(--ink); color: #fff;
}
.xd-skip:focus { top: 12px; color: #fff; }

.xd-wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.xd-icon { flex: 0 0 auto; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }

/* Typographie */
.xd-display {
	font-size: clamp(40px, 5.6vw, 72px);
	font-weight: 700;
	line-height: 1.02;
	letter-spacing: -.035em;
}
.xd-h1 { font-size: clamp(36px, 4.6vw, 58px); font-weight: 700; line-height: 1.06; letter-spacing: -.03em; }
.xd-h2 { font-size: clamp(30px, 3.4vw, 44px); font-weight: 680; line-height: 1.1; letter-spacing: -.028em; }
.xd-lead { font-size: clamp(16px, 1.3vw, 18px); line-height: 1.65; color: var(--muted); max-width: 640px; }
.xd-eyebrow {
	display: inline-flex; align-items: center; gap: 10px;
	font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--coral);
}
.xd-eyebrow::before { content: ""; width: 18px; height: 2px; border-radius: 2px; background: currentColor; }
.xd-eyebrow--light { color: #FF8A73; }
.xd-hl {
	position: relative; white-space: nowrap; color: var(--coral);
	background: linear-gradient(transparent 72%, var(--coral-100) 72%, var(--coral-100) 92%, transparent 92%);
}

/* Pastilles, tags, chips */
.xd-pill {
	display: inline-flex; align-items: center; gap: 10px; align-self: flex-start;
	padding: 7px 14px 7px 12px; border: 1px solid var(--line); border-radius: 999px; background: #fff;
	font-size: 13px; font-weight: 600; color: var(--ink-2); box-shadow: var(--shadow-sm);
}
.xd-dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--coral); flex: 0 0 auto; }
.xd-dot::after {
	content: ""; position: absolute; inset: -4px; border-radius: 50%; background: var(--coral); opacity: .35;
	animation: xd-ping 2s var(--ease) infinite;
}
@keyframes xd-ping { 0% { transform: scale(.6); opacity: .5; } 80%, 100% { transform: scale(1.8); opacity: 0; } }

.xd-tag {
	display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 999px;
	background: var(--coral-50); color: var(--coral-600); font-size: 12px; font-weight: 600; letter-spacing: .01em;
}
.xd-chips { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; }
.xd-chips li {
	padding: 4px 10px; border: 1px solid var(--line); border-radius: 6px; background: #fff;
	font-family: var(--mono); font-size: 12px; color: var(--ink-2);
}

/* Boutons */
.xd-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	height: 46px; padding: 0 20px; border-radius: 10px; border: 1px solid transparent;
	font-size: 15px; font-weight: 600; line-height: 1; white-space: nowrap;
	transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
.xd-btn--lg { height: 54px; padding: 0 26px; font-size: 16px; border-radius: 12px; }
.xd-btn--primary { background: var(--coral); color: #fff; box-shadow: 0 8px 20px -8px rgba(224, 82, 58, .7), inset 0 1px 0 rgba(255,255,255,.15); }
.xd-btn--primary:hover { background: var(--coral-600); color: #fff; transform: translateY(-1px); box-shadow: 0 12px 26px -10px rgba(224, 82, 58, .8); }
.xd-btn--outline { border-color: var(--line-2); background: #fff; color: var(--ink); }
.xd-btn--outline:hover { border-color: var(--ink); color: var(--ink); }
.xd-btn--ghost { color: var(--ink); border-color: var(--line); background: rgba(255,255,255,.6); backdrop-filter: blur(6px); }
.xd-btn--ghost:hover { border-color: var(--ink); color: var(--ink); }
.xd-btn .xd-icon { transition: transform .25s var(--ease); }
.xd-btn:hover .xd-icon { transform: translateX(3px); }
.xd-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.xd-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 15px; color: var(--ink); }
.xd-link .xd-icon { transition: transform .25s var(--ease); }
.xd-link:hover .xd-icon { transform: translateX(4px); }
.xd-link--lg { font-size: 16px; margin-top: 8px; }

/* Fond quadrillé */
.xd-grid-bg {
	position: absolute; inset: 0; pointer-events: none;
	background-image:
		linear-gradient(to right, rgba(20,20,23,.045) 1px, transparent 1px),
		linear-gradient(to bottom, rgba(20,20,23,.045) 1px, transparent 1px);
	background-size: 56px 56px;
	mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 80%);
	-webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 30%, transparent 80%);
}
.xd-grid-bg--dark {
	background-image:
		linear-gradient(to right, rgba(255,255,255,.05) 1px, transparent 1px),
		linear-gradient(to bottom, rgba(255,255,255,.05) 1px, transparent 1px);
}

/* Apparition au défilement */
[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--d, 0) * 70ms); }
[data-reveal].is-in { opacity: 1; transform: none; }
.no-js [data-reveal] { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
	[data-reveal] { opacity: 1; transform: none; }
}

/* ==========================================================================
   Bandeau d’annonce + en-tête
   ========================================================================== */
.xd-announce { background: var(--dark); color: #d8d8de; font-size: 13px; }
.xd-announce__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 40px; padding-top: 6px; padding-bottom: 6px; }
.xd-announce__msg { display: inline-flex; align-items: center; gap: 10px; }
.xd-announce__links { display: flex; gap: 22px; }
.xd-announce__links a { display: inline-flex; align-items: center; gap: 7px; color: #fff; }
.xd-announce__links a:hover { color: #FF8A73; }

.xd-header {
	position: sticky; top: 0; z-index: 100;
	background: rgba(255, 255, 255, .86);
	backdrop-filter: saturate(1.6) blur(14px);
	-webkit-backdrop-filter: saturate(1.6) blur(14px);
	border-bottom: 1px solid transparent;
	transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.xd-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px -18px rgba(20,20,23,.4); }
.admin-bar .xd-header { top: 32px; }
.xd-header__inner { display: flex; align-items: center; gap: 28px; height: var(--header-h); }

.xd-logo { display: inline-flex; align-items: center; gap: 10px; font-size: 21px; font-weight: 750; letter-spacing: -.03em; color: var(--ink); flex: 0 0 auto; }
.xd-logo:hover { color: var(--ink); }
.xd-logo__mark {
	display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--coral);
	box-shadow: 0 6px 14px -6px rgba(224, 82, 58, .8), inset 0 1px 0 rgba(255,255,255,.25);
	transition: transform .4s var(--ease);
}
.xd-logo:hover .xd-logo__mark { transform: rotate(90deg); }
.xd-logo__light { font-weight: 450; color: var(--muted); }
.xd-logo--light, .xd-logo--light:hover { color: #fff; }
.xd-logo--light .xd-logo__light { color: #9b9ba5; }

.xd-nav { flex: 1 1 auto; display: flex; justify-content: center; }
.xd-nav > ul { display: flex; align-items: center; gap: 4px; list-style: none; }
.xd-nav > ul > li > a {
	position: relative; display: inline-flex; align-items: center; gap: 5px;
	height: 40px; padding: 0 13px; border-radius: 8px; font-size: 14.5px; font-weight: 550; color: var(--ink-2);
}
.xd-nav > ul > li > a:hover, .xd-nav > ul > li.is-current > a { color: var(--ink); background: var(--bg-alt); }
.xd-nav > ul > li.is-current > a::after {
	content: ""; position: absolute; left: 13px; right: 13px; bottom: 4px; height: 2px; border-radius: 2px; background: var(--coral);
}
.xd-nav__has-mega { position: relative; }
.xd-nav__has-mega > a .xd-icon { transition: transform .25s var(--ease); }
.xd-nav__has-mega:hover > a .xd-icon, .xd-nav__has-mega:focus-within > a .xd-icon { transform: rotate(180deg); }

.xd-mega {
	position: absolute; top: 100%; left: -40px; padding-top: 12px;
	opacity: 0; visibility: hidden; transform: translateY(8px);
	transition: opacity .22s var(--ease), transform .22s var(--ease), visibility .22s;
}
.xd-nav__has-mega:hover .xd-mega, .xd-nav__has-mega:focus-within .xd-mega { opacity: 1; visibility: visible; transform: none; }
.xd-mega__inner {
	display: grid; grid-template-columns: 1fr 240px; width: min(820px, 90vw);
	border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: var(--shadow-lg); overflow: hidden;
}
.xd-mega__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; padding: 12px; }
.xd-mega__item { display: flex; align-items: flex-start; gap: 12px; padding: 12px; border-radius: 12px; }
.xd-mega__item:hover { background: var(--bg-alt); color: inherit; }
.xd-mega__item strong { display: block; font-size: 14px; font-weight: 600; color: var(--ink); line-height: 1.3; }
.xd-mega__item small { display: block; margin-top: 2px; font-size: 12.5px; color: var(--muted); }
.xd-mega__icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: var(--coral-50); color: var(--coral); flex: 0 0 auto; transition: background .2s, color .2s; }
.xd-mega__item:hover .xd-mega__icon { background: var(--coral); color: #fff; }
.xd-mega__aside { display: flex; flex-direction: column; gap: 12px; padding: 24px; background: var(--bg-alt); border-left: 1px solid var(--line); }
.xd-mega__aside p { font-size: 14px; color: var(--muted); line-height: 1.5; }
.xd-mega__aside .xd-link { font-size: 14px; }

.xd-header__right { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.xd-header__cta { height: 44px; }
.xd-burger { display: none; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }

/* Tiroir mobile */
.xd-drawer { position: fixed; inset: 0; z-index: 300; background: rgba(20,20,23,.45); backdrop-filter: blur(4px); }
.xd-drawer[hidden] { display: none; }
.xd-drawer__panel {
	position: absolute; top: 0; right: 0; bottom: 0; width: min(420px, 100%);
	display: flex; flex-direction: column; gap: 4px; padding: 20px 22px 28px; overflow-y: auto;
	background: #fff; box-shadow: var(--shadow-lg); animation: xd-slide .3s var(--ease);
}
@keyframes xd-slide { from { transform: translateX(30px); opacity: 0; } }
.xd-drawer__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.xd-drawer__close { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line); }
.xd-drawer__group summary, .xd-drawer__link {
	display: flex; align-items: center; justify-content: space-between; padding: 14px 4px;
	border-bottom: 1px solid var(--line); font-size: 17px; font-weight: 600; cursor: pointer; list-style: none;
}
.xd-drawer__group summary::-webkit-details-marker { display: none; }
.xd-drawer__group[open] summary .xd-icon { transform: rotate(180deg); }
.xd-drawer__group > div { display: grid; gap: 2px; padding: 8px 0 12px; }
.xd-drawer__group > div a { display: flex; align-items: center; gap: 12px; padding: 9px 6px; border-radius: 8px; font-size: 15px; color: var(--ink-2); }
.xd-drawer__group > div a .xd-icon { color: var(--coral); }
.xd-drawer__foot { display: grid; gap: 14px; margin-top: auto; padding-top: 24px; }
.xd-drawer__foot a:not(.xd-btn) { display: flex; align-items: center; gap: 10px; color: var(--ink-2); }
.xd-drawer__foot .xd-btn { width: 100%; height: 52px; }
body.xd-lock { overflow: hidden; }

/* ==========================================================================
   Héros (accueil)
   ========================================================================== */
.xd-hero { position: relative; overflow: hidden; padding: clamp(48px, 6vw, 96px) 0 clamp(64px, 8vw, 120px); }
.xd-hero__blob {
	position: absolute; top: -20%; right: -10%; width: 60vw; height: 60vw; max-width: 900px; max-height: 900px; pointer-events: none;
	background: radial-gradient(circle at center, rgba(224, 82, 58, .16), rgba(224, 82, 58, 0) 60%);
	filter: blur(10px);
}
.xd-hero__inner { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(40px, 5vw, 80px); align-items: center; }
.xd-hero__text { display: flex; flex-direction: column; gap: 26px; }
.xd-hero__lead { max-width: 580px; font-size: clamp(17px, 1.4vw, 19px); line-height: 1.6; color: var(--ink-2); }
.xd-hero__checks { display: flex; flex-wrap: wrap; gap: 10px 24px; list-style: none; padding-top: 22px; border-top: 1px solid var(--line); font-size: 14.5px; color: var(--ink-2); }
.xd-hero__checks li { display: inline-flex; align-items: center; gap: 8px; }
.xd-hero__checks .xd-icon { color: #fff; background: var(--coral); border-radius: 50%; padding: 3px; width: 20px; height: 20px; }

.xd-hero__visual { position: relative; min-height: 520px; }
.xd-hero__photo {
	position: absolute; inset: 0 0 0 8%; border-radius: 28px; overflow: hidden; box-shadow: var(--shadow-lg);
	animation: xd-rise 1s var(--ease) both;
}
.xd-hero__photo img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); }
.xd-hero__photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(200deg, rgba(20,20,23,0) 40%, rgba(20,20,23,.35)); }
@keyframes xd-rise { from { opacity: 0; transform: translateY(24px) scale(.98); } }

.xd-float {
	position: absolute; z-index: 2; border-radius: 16px; background: rgba(255,255,255,.94);
	backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,.7); box-shadow: var(--shadow-lg);
	animation: xd-rise .9s var(--ease) both, xd-bob 7s ease-in-out infinite;
}
@keyframes xd-bob { 50% { translate: 0 -8px; } }
.xd-float--term { left: -4%; bottom: 10%; width: min(380px, 78%); padding: 0; background: #17171B; border-color: #2a2a31; color: #e6e6ea; animation-delay: .35s, 1.2s; }
.xd-term__bar { display: flex; align-items: center; gap: 6px; padding: 11px 14px; border-bottom: 1px solid #2a2a31; }
.xd-term__bar i { width: 10px; height: 10px; border-radius: 50%; background: #3a3a42; }
.xd-term__bar i:first-child { background: #FF5F57; } .xd-term__bar i:nth-child(2) { background: #FEBC2E; } .xd-term__bar i:nth-child(3) { background: #28C840; }
.xd-term__bar span { margin-left: 8px; font-family: var(--mono); font-size: 11.5px; color: #8a8a94; }
.xd-term__body { margin: 0; padding: 14px 16px 16px; font-family: var(--mono); font-size: 12.5px; line-height: 1.75; white-space: pre; overflow: hidden; }
.xd-termbox { border-radius: 16px; background: #17171B; border: 1px solid #2a2a31; color: #e6e6ea; box-shadow: var(--shadow-lg); overflow: hidden; }
.xd-termbox .xd-term__body { font-size: 13.5px; }
.c-mute { color: #7d7d88; } .c-ok { color: #4ADE80; } .c-acc { color: #FF8A73; }
.xd-caret { display: inline-block; width: 7px; height: 14px; margin-left: 4px; vertical-align: -2px; background: #FF8A73; animation: xd-blink 1s steps(1) infinite; }
@keyframes xd-blink { 50% { opacity: 0; } }

.xd-float--status { top: 9%; left: 0; display: flex; align-items: center; gap: 12px; padding: 14px 18px 14px 14px; animation-delay: .55s, 2s; }
.xd-float--status strong { display: block; font-size: 14px; }
.xd-float--status small { display: block; font-size: 12.5px; color: var(--muted); }
.xd-float__icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: #E7F7EF; color: var(--ok); }

.xd-float--chart { top: 30%; right: -3%; width: 220px; padding: 16px; animation-delay: .75s, 3s; }
.xd-float__head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 14px; }
.xd-float__head small { font-size: 12px; color: var(--muted); line-height: 1.3; }
.xd-float__head strong { font-size: 13px; color: var(--ok); white-space: nowrap; }
.xd-bars { display: flex; align-items: flex-end; gap: 6px; height: 72px; }
.xd-bars i { flex: 1; height: var(--h); border-radius: 4px 4px 2px 2px; background: linear-gradient(to top, var(--coral-100), var(--coral)); transform-origin: bottom; animation: xd-grow 1.2s var(--ease) both; }
.xd-bars i:nth-child(2) { animation-delay: .1s; } .xd-bars i:nth-child(3) { animation-delay: .2s; } .xd-bars i:nth-child(4) { animation-delay: .3s; } .xd-bars i:nth-child(5) { animation-delay: .4s; } .xd-bars i:nth-child(6) { animation-delay: .5s; } .xd-bars i:nth-child(7) { animation-delay: .6s; }
@keyframes xd-grow { from { transform: scaleY(0); } }

/* Bande engagements */
.xd-trust { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-alt); }
.xd-trust__inner { display: flex; align-items: center; gap: 32px; padding-top: 22px; padding-bottom: 22px; }
.xd-trust__label { flex: 0 0 auto; max-width: 150px; font-size: 13px; font-weight: 600; line-height: 1.35; color: var(--muted); }
.xd-trust__list { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 20px; flex: 1; list-style: none; }
.xd-trust__list li { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; white-space: nowrap; font-weight: 600; color: var(--ink-2); }
.xd-trust__list .xd-icon { color: var(--coral); }

/* ==========================================================================
   Sections
   ========================================================================== */
.xd-section { position: relative; padding: var(--section) 0; }
.xd-section--alt { background: var(--bg-alt); }
.xd-section--dark { background: var(--dark); color: #fff; overflow: hidden; }
.xd-section--dark .xd-h2, .xd-section--dark h3 { color: #fff; }
.xd-section--dark .xd-lead { color: #a9a9b3; }
.xd-section--dark .xd-eyebrow { color: #FF8A73; }

.xd-shead { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-bottom: clamp(36px, 4vw, 56px); }
.xd-shead__text { display: flex; flex-direction: column; gap: 16px; max-width: 760px; }
.xd-shead.is-center { justify-content: center; text-align: center; }
.xd-shead.is-center .xd-shead__text { align-items: center; }
.xd-shead.is-center .xd-lead { margin: 0 auto; }
.xd-shead__extra { flex: 0 0 auto; }

/* Services */
.xd-svc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.xd-svc {
	position: relative; display: flex; flex-direction: column; gap: 14px; min-height: 340px; padding: 28px 26px;
	border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; color: var(--ink); overflow: hidden;
	transition: border-color .3s var(--ease), box-shadow .3s var(--ease), transform .3s var(--ease);
}
.xd-svc::before {
	content: ""; position: absolute; inset: auto -40% -60% auto; width: 260px; height: 260px; border-radius: 50%;
	background: radial-gradient(circle, rgba(224,82,58,.14), transparent 65%); opacity: 0; transition: opacity .4s var(--ease);
}
.xd-svc:hover { color: var(--ink); border-color: var(--coral-100); box-shadow: var(--shadow); transform: translateY(-4px); }
.xd-svc:hover::before { opacity: 1; }
.xd-svc__num { position: absolute; top: 24px; right: 24px; font-family: var(--mono); font-size: 13px; color: var(--line-2); }
.xd-svc__icon { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 14px; background: var(--coral-50); color: var(--coral); transition: background .3s, color .3s, transform .4s var(--ease); }
.xd-svc:hover .xd-svc__icon { background: var(--coral); color: #fff; transform: rotate(-6deg) scale(1.04); }
.xd-svc h3 { margin-top: 8px; font-size: 20px; font-weight: 650; }
.xd-svc p { font-size: 15px; line-height: 1.6; color: var(--muted); }
.xd-svc__more { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; font-size: 14.5px; font-weight: 600; color: var(--coral); }
.xd-svc__more .xd-icon { transition: transform .25s var(--ease); }
.xd-svc:hover .xd-svc__more .xd-icon { transform: translateX(4px); }

.xd-svc-mini { display: grid; grid-template-columns: repeat(5, 1fr); margin-top: 18px; border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; overflow: hidden; }
.xd-svc-mini a { display: flex; align-items: center; gap: 12px; padding: 20px; border-right: 1px solid var(--line); transition: background .2s; }
.xd-svc-mini a:last-child { border-right: 0; }
.xd-svc-mini a:hover { background: var(--bg-alt); color: inherit; }
.xd-svc-mini strong { display: block; font-size: 14.5px; font-weight: 600; line-height: 1.3; }
.xd-svc-mini small { display: block; font-size: 12.5px; color: var(--muted); line-height: 1.35; }
.xd-svc-mini__icon { display: grid; place-items: center; width: 40px; height: 40px; flex: 0 0 auto; border-radius: 10px; border: 1px solid var(--line); color: var(--coral); }

/* Chiffres */
.xd-stats { position: relative; padding: clamp(72px, 8vw, 112px) 0; background: var(--dark); color: #fff; overflow: hidden; }
.xd-stats::before { content: ""; position: absolute; left: 50%; top: -40%; width: 900px; height: 600px; transform: translateX(-50%); background: radial-gradient(ellipse, rgba(224,82,58,.22), transparent 60%); pointer-events: none; }
.xd-stats .xd-wrap { position: relative; }
.xd-stats__head { display: flex; flex-direction: column; gap: 16px; max-width: 640px; margin-bottom: 56px; }
.xd-stats__head .xd-h2 { color: #fff; }
.xd-stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--dark-line); }
.xd-stat { display: flex; flex-direction: column; gap: 10px; padding: 32px 28px 0 0; }
.xd-stat + .xd-stat { padding-left: 28px; border-left: 1px solid var(--dark-line); }
.xd-stat strong { font-size: clamp(44px, 5vw, 64px); font-weight: 700; line-height: 1; letter-spacing: -.04em; background: linear-gradient(180deg, #fff 30%, #b9b9c3); -webkit-background-clip: text; background-clip: text; color: transparent; }
.xd-stat strong span { font: inherit; color: inherit; max-width: none; }
.xd-stat > span { font-size: 15px; line-height: 1.5; color: #a9a9b3; max-width: 240px; }

/* Secteurs */
.xd-sector-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.xd-sector { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; overflow: hidden; transition: box-shadow .3s var(--ease), transform .3s var(--ease); }
.xd-sector:hover { color: inherit; box-shadow: var(--shadow); transform: translateY(-4px); }
.xd-sector__img { aspect-ratio: 16 / 10; overflow: hidden; }
.xd-sector__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.xd-sector:hover .xd-sector__img img { transform: scale(1.05); }
.xd-sector__body { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 34px 26px 28px; flex: 1; }
.xd-sector__icon { position: absolute; top: -26px; left: 26px; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--coral); color: #fff; box-shadow: 0 10px 20px -8px rgba(224,82,58,.7); }
.xd-sector h3 { font-size: 21px; }
.xd-sector p { color: var(--muted); font-size: 15px; }
.xd-sector .xd-link { margin-top: auto; padding-top: 6px; color: var(--coral); }

/* Démarche */
.xd-process { position: relative; display: grid; grid-template-columns: repeat(var(--cols, 5), 1fr); gap: 16px; list-style: none; counter-reset: step; }
.xd-process::before { content: ""; position: absolute; top: 27px; left: 10%; right: 10%; height: 2px; background: repeating-linear-gradient(90deg, var(--line-2) 0 8px, transparent 8px 14px); }
.xd-process__step { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 0 8px; text-align: center; align-items: center; }
.xd-process__num {
	position: relative; display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 10px; border-radius: 50%;
	background: #fff; border: 2px solid var(--coral); color: var(--coral); font-size: 20px; font-weight: 700; box-shadow: 0 0 0 8px var(--bg-alt);
}
.xd-process__step:hover .xd-process__num { background: var(--coral); color: #fff; }
.xd-process h3 { font-size: 18px; }
.xd-process p { font-size: 14.5px; color: var(--muted); line-height: 1.55; }
.xd-process__dur { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; padding: 4px 10px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 12.5px; font-weight: 600; color: var(--ink-2); }

/* Réalisations */
.xd-case-grid { display: grid; grid-template-columns: 1.3fr 1fr; grid-template-rows: auto auto; gap: 22px; }
.xd-case { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: #fff; transition: box-shadow .3s var(--ease); }
.xd-case:hover { box-shadow: var(--shadow); }
.xd-case.is-wide { grid-row: span 2; }
.xd-case__img { aspect-ratio: 16 / 9; overflow: hidden; background: var(--bg-alt); }
.xd-case.is-wide .xd-case__img { aspect-ratio: 4 / 3; }
.xd-case__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.xd-case:hover .xd-case__img img { transform: scale(1.04); }
.xd-case__body { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 26px; flex: 1; }
.xd-case h3 { font-size: 21px; }
.xd-case.is-wide h3 { font-size: 26px; }
.xd-case p { color: var(--muted); font-size: 15px; }
.xd-case .xd-chips { margin-top: auto; padding-top: 6px; }

/* Expertise */
.xd-section--dark .xd-wrap { position: relative; }
.xd-exp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.xd-exp { display: flex; flex-direction: column; gap: 14px; padding: 30px; border: 1px solid var(--dark-line); border-radius: var(--r-lg); background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.015)); transition: border-color .3s var(--ease), background .3s var(--ease); }
.xd-exp:hover { border-color: rgba(224,82,58,.5); background: linear-gradient(180deg, rgba(224,82,58,.1), rgba(255,255,255,.015)); }
.xd-exp__icon { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 12px; background: rgba(224,82,58,.14); color: #FF8A73; }
.xd-exp h3 { font-size: 20px; }
.xd-exp p { font-size: 15px; color: #a9a9b3; }

.xd-marquee { position: relative; margin-top: clamp(56px, 6vw, 80px); padding: 22px 0; border-top: 1px solid var(--dark-line); border-bottom: 1px solid var(--dark-line); overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.xd-marquee__track { display: flex; gap: 14px; width: max-content; animation: xd-marquee 50s linear infinite; }
.xd-marquee:hover .xd-marquee__track { animation-play-state: paused; }
.xd-marquee__track span { padding: 9px 18px; border: 1px solid var(--dark-line); border-radius: 999px; font-family: var(--mono); font-size: 14px; color: #d0d0d8; white-space: nowrap; }
@keyframes xd-marquee { to { transform: translateX(calc(-50% - 7px)); } }

/* Split (à propos) */
.xd-split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.xd-split__media { position: relative; }
.xd-split__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 26px; box-shadow: var(--shadow-lg); }
.xd-split__badge { position: absolute; right: -18px; bottom: 32px; display: flex; flex-direction: column; padding: 18px 22px; border-radius: 16px; background: var(--coral); color: #fff; box-shadow: 0 20px 40px -16px rgba(224,82,58,.8); }
.xd-split__badge strong { font-size: 24px; font-weight: 700; letter-spacing: -.02em; }
.xd-split__badge span { font-size: 13.5px; opacity: .9; }
.xd-split__text .xd-shead { margin-bottom: 32px; }
.xd-feature-list { display: grid; gap: 14px; margin-bottom: 24px; }
.xd-feature { display: flex; gap: 16px; padding: 20px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; }
.xd-feature__icon { display: grid; place-items: center; width: 44px; height: 44px; flex: 0 0 auto; border-radius: 12px; background: var(--coral-50); color: var(--coral); }
.xd-feature h3 { font-size: 17px; margin-bottom: 6px; }
.xd-feature p { font-size: 15px; color: var(--muted); }

/* Articles */
.xd-post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.xd-post-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; overflow: hidden; transition: box-shadow .3s var(--ease), transform .3s var(--ease); }
.xd-post-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.xd-post-card__img { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-alt); }
.xd-post-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.xd-post-card:hover .xd-post-card__img img { transform: scale(1.04); }
.xd-post-card__ph { display: grid; place-items: center; height: 100%; color: var(--coral); }
.xd-post-card__body { display: flex; flex-direction: column; gap: 12px; padding: 24px; flex: 1; }
.xd-post-card h3 { font-size: 19px; line-height: 1.3; }
.xd-post-card p { font-size: 15px; color: var(--muted); }
.xd-post-card .xd-link { margin-top: auto; color: var(--coral); }
.xd-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }

/* FAQ */
.xd-faq-wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.xd-faq-wrap > div:first-child { position: sticky; top: calc(var(--header-h) + 32px); }
.xd-faq { display: grid; gap: 12px; }
.xd-faq__item { border: 1px solid var(--line); border-radius: var(--r); background: #fff; transition: border-color .25s, box-shadow .25s; }
.xd-faq__item[open] { border-color: var(--coral-100); box-shadow: var(--shadow-sm); }
.xd-faq__item summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 22px; font-size: 16.5px; font-weight: 600; cursor: pointer; list-style: none; }
.xd-faq__item summary::-webkit-details-marker { display: none; }
.xd-faq__icon { display: grid; place-items: center; width: 32px; height: 32px; flex: 0 0 auto; border-radius: 50%; background: var(--bg-alt); color: var(--ink); transition: transform .3s var(--ease), background .3s, color .3s; }
.xd-faq__item[open] .xd-faq__icon { transform: rotate(45deg); background: var(--coral); color: #fff; }
.xd-faq__body { padding: 0 22px 22px; }
.xd-faq__body p { color: var(--muted); font-size: 15.5px; max-width: 680px; }

/* Contact */
.xd-contact { background: linear-gradient(180deg, var(--bg-alt), #fff); border-top: 1px solid var(--line); }
.xd-contact__inner { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.xd-contact__list { display: grid; gap: 14px; list-style: none; }
.xd-contact__list li { display: flex; align-items: center; gap: 16px; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; }
.xd-contact__list small { display: block; font-size: 12.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.xd-contact__list a, .xd-contact__list span { font-size: 16px; font-weight: 600; color: var(--ink); }
.xd-contact__list a:hover { color: var(--coral); }
.xd-contact__icon { display: grid; place-items: center; width: 46px; height: 46px; flex: 0 0 auto; border-radius: 12px; background: var(--coral-50); color: var(--coral); }
.xd-contact__card { padding: clamp(24px, 3vw, 40px); border: 1px solid var(--line); border-radius: 24px; background: #fff; box-shadow: var(--shadow-lg); }
.xd-contact__card-head { margin-bottom: 24px; }
.xd-contact__card-head h3 { font-size: 24px; }
.xd-contact__card-head p { margin-top: 6px; font-size: 14px; color: var(--muted); }

/* Formulaire (Contact Form 7) */
.xd-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.xd-field { display: flex; flex-direction: column; gap: 7px; }
.xd-field--full { grid-column: 1 / -1; }
.xd-field label, .xd-field .xd-label { font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.xd-field .wpcf7-form-control-wrap { display: block; }
.xd-contact__card input[type="text"], .xd-contact__card input[type="email"], .xd-contact__card input[type="tel"], .xd-contact__card select, .xd-contact__card textarea {
	width: 100%; height: 50px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 10px; background: #fff;
	font: inherit; font-size: 15px; color: var(--ink); transition: border-color .2s, box-shadow .2s; appearance: none; -webkit-appearance: none;
}
.xd-contact__card select { padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%236B6B74' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
.xd-contact__card textarea { height: auto; min-height: 130px; padding: 13px 14px; resize: vertical; line-height: 1.5; }
.xd-contact__card input:focus, .xd-contact__card select:focus, .xd-contact__card textarea:focus { outline: 0; border-color: var(--coral); box-shadow: 0 0 0 4px rgba(224,82,58,.14); }
.xd-contact__card ::placeholder { color: #a3a3ab; }
.xd-form-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 20px; }
.xd-form-foot .wpcf7-list-item { margin: 0; }
.xd-form-foot .wpcf7-acceptance label { display: flex; align-items: flex-start; gap: 10px; max-width: 360px; font-size: 13px; color: var(--muted); line-height: 1.45; }
.xd-form-foot input[type="checkbox"] { width: 18px; height: 18px; margin-top: 1px; accent-color: var(--coral); flex: 0 0 auto; }
.xd-contact__card .wpcf7-submit {
	height: 52px; padding: 0 28px; border: 0; border-radius: 12px; background: var(--coral); color: #fff;
	font: inherit; font-size: 16px; font-weight: 600; cursor: pointer; box-shadow: 0 8px 20px -8px rgba(224,82,58,.7); transition: background .2s, transform .2s;
}
.xd-contact__card .wpcf7-submit:hover { background: var(--coral-600); transform: translateY(-1px); }
.xd-contact__card .wpcf7-submit:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.xd-contact__card .wpcf7-spinner { margin: 0 0 0 10px; }
.xd-contact__card .wpcf7-not-valid-tip { margin-top: 6px; font-size: 13px; color: #C2321C; }
.xd-contact__card .wpcf7-not-valid { border-color: #E5806E !important; }
.xd-contact__card .wpcf7-response-output { margin: 20px 0 0 !important; padding: 14px 16px !important; border-radius: 10px; font-size: 14.5px; }
.xd-contact__card .wpcf7 form.sent .wpcf7-response-output { border-color: var(--ok) !important; background: #E7F7EF; color: #136245; }
.xd-contact__card .wpcf7 form.invalid .wpcf7-response-output, .xd-contact__card .wpcf7 form.failed .wpcf7-response-output { border-color: #E5806E !important; background: var(--coral-50); color: #8E2A18; }
.xd-form-note { margin-top: 14px; font-size: 12.5px; color: var(--muted); }

/* Bannière CTA */
.xd-cta { padding: 0 0 var(--section); }
.xd-cta__box { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 40px; padding: clamp(36px, 5vw, 64px); border-radius: 28px; background: var(--dark); color: #fff; overflow: hidden; }
.xd-cta__glow { position: absolute; right: -10%; top: -60%; width: 620px; height: 620px; border-radius: 50%; background: radial-gradient(circle, rgba(224,82,58,.45), transparent 62%); pointer-events: none; }
.xd-cta__text { position: relative; max-width: 640px; }
.xd-cta__text h2 { color: #fff; font-size: clamp(28px, 3vw, 40px); font-weight: 680; letter-spacing: -.028em; }
.xd-cta__text p { margin-top: 14px; color: #b9b9c3; font-size: 17px; }
.xd-cta__actions { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; flex: 0 0 auto; }
.xd-cta__tel { display: inline-flex; align-items: center; gap: 8px; color: #fff; font-weight: 600; }
.xd-cta__tel:hover { color: #FF8A73; }

/* ==========================================================================
   Pages intérieures
   ========================================================================== */
.xd-phero { position: relative; padding: clamp(40px, 5vw, 72px) 0 clamp(56px, 6vw, 96px); background: linear-gradient(180deg, var(--bg-alt), #fff); border-bottom: 1px solid var(--line); overflow: hidden; }
.xd-phero__inner { position: relative; display: grid; grid-template-columns: 1fr; gap: 48px; align-items: center; }
.xd-phero.has-image .xd-phero__inner { grid-template-columns: 1.1fr .9fr; }
.xd-phero__text { display: flex; flex-direction: column; gap: 20px; max-width: 820px; }
.xd-phero__lead { font-size: clamp(17px, 1.4vw, 19px); line-height: 1.6; color: var(--ink-2); max-width: 680px; }
.xd-phero__media img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; border-radius: 24px; box-shadow: var(--shadow-lg); }
.xd-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13.5px; color: var(--muted); }
.xd-crumbs a { color: var(--muted); }
.xd-crumbs a:hover { color: var(--coral); }
.xd-crumbs [aria-current] { color: var(--ink); font-weight: 550; }

/* Service : fonctionnalités */
.xd-feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.xd-feat { display: flex; flex-direction: column; gap: 12px; padding: 26px; border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; transition: border-color .3s, box-shadow .3s; }
.xd-feat:hover { border-color: var(--coral-100); box-shadow: var(--shadow); }
.xd-feat__n { font-family: var(--mono); font-size: 13px; font-weight: 500; color: var(--coral); }
.xd-feat h3 { font-size: 18px; }
.xd-feat p { font-size: 15px; color: var(--muted); }

.xd-two { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.xd-checklist { display: grid; gap: 12px; list-style: none; }
.xd-checklist li { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: #fff; font-weight: 550; }
.xd-checklist .xd-icon { margin-top: 2px; padding: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--coral); color: #fff; }
.xd-stack { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; }
.xd-stack li { padding: 10px 16px; border: 1px solid var(--line); border-radius: 10px; background: #fff; font-family: var(--mono); font-size: 14px; color: var(--ink-2); }
.xd-card-box { padding: 32px; border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; }
.xd-card-box h3 { font-size: 20px; margin-bottom: 18px; }
.xd-card-box + .xd-card-box { margin-top: 18px; }

.xd-related { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.xd-related a { display: flex; align-items: center; gap: 14px; padding: 20px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; transition: border-color .2s, box-shadow .2s; }
.xd-related a:hover { color: inherit; border-color: var(--coral-100); box-shadow: var(--shadow); }
.xd-related strong { display: block; font-size: 16px; }
.xd-related small { color: var(--muted); font-size: 13px; }
.xd-related .xd-arrow { margin-left: auto; color: var(--coral); }

/* Listes de services (page Services) */
.xd-svc-rows { display: grid; gap: 18px; }
.xd-svc-row { display: grid; grid-template-columns: 340px 1fr; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: #fff; transition: box-shadow .3s var(--ease); }
.xd-svc-row:hover { color: inherit; box-shadow: var(--shadow); }
.xd-svc-row__img { overflow: hidden; }
.xd-svc-row__img img { width: 100%; height: 100%; min-height: 240px; object-fit: cover; transition: transform .8s var(--ease); }
.xd-svc-row:hover .xd-svc-row__img img { transform: scale(1.05); }
.xd-svc-row__body { display: flex; flex-direction: column; gap: 14px; padding: 32px; }
.xd-svc-row__body h3 { display: flex; align-items: center; gap: 12px; font-size: 24px; }
.xd-svc-row__body h3 .xd-icon { color: var(--coral); }
.xd-svc-row__body p { color: var(--muted); max-width: 720px; }
.xd-svc-row__list { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.xd-svc-row__list li { padding: 6px 12px; border-radius: 999px; background: var(--bg-alt); font-size: 13.5px; font-weight: 550; color: var(--ink-2); }
.xd-svc-row .xd-link { margin-top: auto; color: var(--coral); }

/* Secteurs détaillés */
.xd-sector-row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 80px); align-items: center; padding: clamp(48px, 5vw, 72px) 0; border-bottom: 1px solid var(--line); }
.xd-sector-row:last-child { border-bottom: 0; }
.xd-sector-row:nth-child(even) .xd-sector-row__media { order: 2; }
.xd-sector-row__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 24px; box-shadow: var(--shadow-lg); }
.xd-sector-row__text { display: flex; flex-direction: column; gap: 18px; }
.xd-sector-row__text h2 { font-size: clamp(26px, 2.6vw, 36px); }
.xd-sector-row__text > p { color: var(--muted); font-size: 17px; }

/* Valeurs, chiffres à propos */
.xd-values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.xd-value { display: flex; flex-direction: column; gap: 12px; padding: 28px; border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; }
.xd-value__icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: var(--coral-50); color: var(--coral); }
.xd-value h3 { font-size: 19px; }
.xd-value p { color: var(--muted); font-size: 15px; }

.xd-prose-lg { font-size: 18px; line-height: 1.75; color: var(--ink-2); }
.xd-prose-lg p + p { margin-top: 18px; }

.xd-team-roles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.xd-role { padding: 26px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); }
.xd-role strong { display: block; font-size: 17px; margin: 12px 0 6px; }
.xd-role p { color: var(--muted); font-size: 15px; }
.xd-role .xd-icon { color: var(--coral); }

/* Réalisations (page) */
.xd-case-list { display: grid; gap: 22px; }
.xd-case-row { display: grid; grid-template-columns: 1fr 1.1fr; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: #fff; }
.xd-case-row:nth-child(even) .xd-case-row__img { order: 2; }
.xd-case-row__img img { width: 100%; height: 100%; min-height: 320px; object-fit: cover; }
.xd-case-row__body { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; padding: clamp(26px, 3vw, 44px); }
.xd-case-row__body h2 { font-size: clamp(22px, 2.2vw, 28px); }
.xd-case-row dl { display: grid; gap: 14px; margin: 0; }
.xd-case-row dt { font-size: 12.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--coral); }
.xd-case-row dd { margin: 4px 0 0; color: var(--ink-2); font-size: 15.5px; }
.xd-note { padding: 18px 20px; border-left: 3px solid var(--coral); border-radius: 0 12px 12px 0; background: var(--coral-50); color: var(--ink-2); font-size: 15px; }

/* Carrières */
.xd-jobs { display: grid; gap: 12px; }
.xd-job { display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: center; padding: 24px 26px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; transition: border-color .2s, box-shadow .2s; }
.xd-job:hover { border-color: var(--coral-100); box-shadow: var(--shadow); }
.xd-job h3 { font-size: 18px; }
.xd-job p { margin-top: 6px; font-size: 15px; color: var(--muted); }
.xd-job__meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.xd-job__meta span { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: var(--bg-alt); font-size: 13px; font-weight: 550; color: var(--ink-2); }

/* Contenu éditorial (articles, pages génériques) */
.xd-article { padding: clamp(40px, 5vw, 72px) 0 var(--section); }
.xd-article__layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(40px, 5vw, 80px); align-items: start; }
.xd-article__layout.is-single { grid-template-columns: minmax(0, 760px); justify-content: center; }
.xd-article__cover { margin: 0 0 40px; border-radius: 24px; overflow: hidden; aspect-ratio: 21 / 9; }
.xd-article__cover img { width: 100%; height: 100%; object-fit: cover; }
.xd-aside { position: sticky; top: calc(var(--header-h) + 32px); display: grid; gap: 18px; }
.xd-aside .xd-card-box { padding: 24px; }
.xd-aside .xd-card-box h3 { font-size: 17px; margin-bottom: 10px; }
.xd-aside .xd-card-box p { font-size: 14.5px; color: var(--muted); margin-bottom: 16px; }
.xd-aside .xd-card-box--dark { background: var(--dark); border-color: var(--dark); color: #fff; }
.xd-aside .xd-card-box--dark h3 { color: #fff; }
.xd-aside .xd-card-box--dark p { color: #a9a9b3; }

.xd-prose { font-size: 17.5px; line-height: 1.78; color: var(--ink-2); }
.xd-prose > * + * { margin-top: 1.15em; }
.xd-prose h2 { margin-top: 2em; font-size: clamp(24px, 2.2vw, 30px); color: var(--ink); }
.xd-prose h3 { margin-top: 1.7em; font-size: 21px; color: var(--ink); }
.xd-prose a { color: var(--coral); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.xd-prose ul, .xd-prose ol { padding-left: 1.3em; }
.xd-prose li + li { margin-top: .45em; }
.xd-prose li::marker { color: var(--coral); }
.xd-prose blockquote { margin-left: 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--coral); font-size: 19px; color: var(--ink); font-weight: 500; }
.xd-prose strong { color: var(--ink); }
.xd-prose img { border-radius: 14px; }
.xd-prose table { width: 100%; border-collapse: collapse; font-size: 15px; }
.xd-prose th, .xd-prose td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; }
.xd-prose code { padding: 2px 6px; border-radius: 6px; background: var(--bg-alt); font-family: var(--mono); font-size: .88em; }

.xd-share { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); }

/* Blog */
.xd-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 36px; }
.xd-filter a { padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; font-weight: 550; color: var(--ink-2); background: #fff; }
.xd-filter a:hover, .xd-filter a.is-active { border-color: var(--ink); background: var(--ink); color: #fff; }
.xd-featured { display: grid; grid-template-columns: 1.2fr 1fr; margin-bottom: 36px; border: 1px solid var(--line); border-radius: 24px; overflow: hidden; background: #fff; }
.xd-featured__img img { width: 100%; height: 100%; min-height: 340px; object-fit: cover; }
.xd-featured__body { display: flex; flex-direction: column; justify-content: center; gap: 16px; padding: clamp(28px, 3.5vw, 52px); }
.xd-featured__body h2 { font-size: clamp(24px, 2.4vw, 32px); }
.xd-featured__body p { color: var(--muted); }
.xd-pagination { display: flex; justify-content: center; gap: 8px; margin-top: 48px; }
.xd-pagination .page-numbers { display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; font-weight: 600; }
.xd-pagination .current { background: var(--ink); border-color: var(--ink); color: #fff; }

/* 404 */
.xd-404 { position: relative; padding: clamp(80px, 12vw, 160px) 0; text-align: center; overflow: hidden; }
.xd-404 .xd-wrap { position: relative; display: flex; flex-direction: column; align-items: center; gap: 20px; }
.xd-404__code { font-size: clamp(110px, 18vw, 220px); font-weight: 800; line-height: .9; letter-spacing: -.06em; background: linear-gradient(180deg, var(--coral), #F6B3A6); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ==========================================================================
   Pied de page
   ========================================================================== */
.xd-footer { position: relative; padding: 80px 0 0; background: var(--dark); color: #a9a9b3; overflow: hidden; }
.xd-footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 48px; }
.xd-footer__brand p { margin: 18px 0 22px; max-width: 340px; font-size: 15px; line-height: 1.6; }
.xd-footer__contact { display: grid; gap: 10px; list-style: none; font-size: 14.5px; }
.xd-footer__contact li { display: flex; align-items: center; gap: 10px; }
.xd-footer__contact .xd-icon { color: #FF8A73; }
.xd-footer__contact a { color: #e6e6ea; }
.xd-footer__col { display: flex; flex-direction: column; gap: 11px; font-size: 14.5px; }
.xd-footer__col h3 { margin-bottom: 6px; font-size: 13px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: #fff; }
.xd-footer__col a { color: #a9a9b3; }
.xd-footer a:hover { color: #fff; }
.xd-footer__news p { font-size: 14.5px; line-height: 1.55; }
.xd-footer__news .xd-btn { align-self: flex-start; margin-top: 4px; }
.xd-footer__social { display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; }
.xd-footer__wordmark {
	font-size: clamp(80px, 17vw, 260px); font-weight: 800; line-height: .8; letter-spacing: -.06em; text-align: center; white-space: nowrap;
	background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,0) 85%); -webkit-background-clip: text; background-clip: text; color: transparent;
	user-select: none; margin-bottom: -.06em;
}
.xd-footer__bottom { position: relative; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding: 22px 0 28px; border-top: 1px solid var(--dark-line); font-size: 13.5px; color: #8a8a94; }
.xd-footer__legal { display: flex; flex-wrap: wrap; gap: 22px; }
.xd-footer__legal a { color: #8a8a94; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1180px) {
	.xd-nav > ul > li > a { padding: 0 9px; font-size: 14px; }
	.xd-svc-grid { grid-template-columns: repeat(2, 1fr); }
	.xd-svc { min-height: 0; }
	.xd-svc-mini { grid-template-columns: repeat(3, 1fr); }
	.xd-svc-mini a:nth-child(3) { border-right: 0; }
	.xd-svc-mini a:nth-child(n+4) { border-top: 1px solid var(--line); }
	.xd-values { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1080px) {
	.xd-nav, .xd-header__cta { display: none; }
	.xd-burger { display: grid; }
	.xd-hero__inner { grid-template-columns: 1fr; }
	.xd-hero__visual { min-height: 460px; max-width: 680px; width: 100%; margin: 0 auto; }
	.xd-process { grid-template-columns: 1fr; gap: 0; }
	.xd-process::before { top: 0; bottom: 0; left: 27px; right: auto; width: 2px; height: auto; background: repeating-linear-gradient(180deg, var(--line-2) 0 8px, transparent 8px 14px); }
	.xd-process__step { display: grid; grid-template-columns: 56px 1fr; gap: 4px 22px; padding: 0 0 28px; text-align: left; align-items: start; }
	.xd-process__num { grid-row: span 3; margin: 0; }
	.xd-process__dur { justify-self: start; }
	.xd-exp-grid, .xd-sector-grid, .xd-post-grid, .xd-related, .xd-team-roles { grid-template-columns: 1fr 1fr; }
	.xd-feat-grid { grid-template-columns: 1fr 1fr; }
	.xd-footer__top { grid-template-columns: 1fr 1fr; }
	.xd-article__layout { grid-template-columns: 1fr; }
	.xd-aside { position: static; }
}
@media (max-width: 860px) {
	:root { --header-h: 66px; }
	.xd-announce__msg { display: none; }
	.xd-announce__inner { justify-content: center; }
	.xd-shead { flex-direction: column; align-items: flex-start; }
	.xd-shead.is-center { align-items: center; }
	.xd-trust__inner { flex-direction: column; align-items: flex-start; gap: 16px; }
	.xd-trust__label { max-width: none; }
	.xd-trust__list { justify-content: flex-start; }
	.xd-stats__grid { grid-template-columns: 1fr 1fr; }
	.xd-stat { padding: 28px 20px 28px 0; }
	.xd-stat + .xd-stat { padding-left: 0; border-left: 0; }
	.xd-stat:nth-child(even) { padding-left: 20px; border-left: 1px solid var(--dark-line); }
	.xd-stat:nth-child(n+3) { border-top: 1px solid var(--dark-line); }
	.xd-case-grid, .xd-split, .xd-faq-wrap, .xd-contact__inner, .xd-two, .xd-phero.has-image .xd-phero__inner, .xd-sector-row, .xd-case-row, .xd-featured { grid-template-columns: 1fr; }
	.xd-case.is-wide { grid-row: auto; }
	.xd-faq-wrap > div:first-child { position: static; }
	.xd-split__badge { right: 16px; }
	.xd-sector-row:nth-child(even) .xd-sector-row__media, .xd-case-row:nth-child(even) .xd-case-row__img { order: 0; }
	.xd-svc-row { grid-template-columns: 1fr; }
	.xd-svc-row__img img { min-height: 0; aspect-ratio: 16 / 9; }
	.xd-cta__box { flex-direction: column; align-items: flex-start; }
	.xd-svc-mini { grid-template-columns: 1fr 1fr; }
	.xd-svc-mini a { border-right: 1px solid var(--line) !important; border-top: 1px solid var(--line); }
	.xd-svc-mini a:nth-child(-n+2) { border-top: 0; }
	.xd-svc-mini a:nth-child(even) { border-right: 0 !important; }
}
@media (max-width: 640px) {
	.xd-hero__visual { min-height: 380px; }
	.xd-hero__photo { inset: 0; }
	.xd-float--chart { display: none; }
	.xd-float--term { left: 12px; right: 12px; bottom: 12px; width: auto; }
	.xd-float--status { top: 12px; left: 12px; }
	.xd-term__body { font-size: 11px; }
	.xd-svc-grid, .xd-exp-grid, .xd-sector-grid, .xd-post-grid, .xd-related, .xd-feat-grid, .xd-values, .xd-team-roles, .xd-form-grid, .xd-footer__top { grid-template-columns: 1fr; }
	.xd-svc-mini { grid-template-columns: 1fr; }
	.xd-svc-mini a { border-right: 0 !important; border-top: 1px solid var(--line) !important; }
	.xd-svc-mini a:first-child { border-top: 0 !important; }
	.xd-stats__grid { grid-template-columns: 1fr; }
	.xd-stat, .xd-stat:nth-child(even) { padding: 24px 0; border-left: 0; }
	.xd-stat + .xd-stat { border-top: 1px solid var(--dark-line); }
	.xd-job { grid-template-columns: 1fr; }
	.xd-actions .xd-btn { flex: 1 1 auto; }
	.xd-announce__links a:last-child { display: none; }
}
@media (max-width: 782px) { .admin-bar .xd-header { top: 46px; } }
