/* =========================================================================
   ENY Solutions — feuille de style principale
   ========================================================================= */

/* ---------- Polices (charte : Montserrat, auto-hébergée) ---------- */
@font-face { font-family: "Montserrat"; font-weight: 400; font-display: swap; src: url(../fonts/montserrat-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 500; font-display: swap; src: url(../fonts/montserrat-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 600; font-display: swap; src: url(../fonts/montserrat-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Montserrat"; font-weight: 700; font-display: swap; src: url(../fonts/montserrat-latin-700-normal.woff2) format("woff2"); }

/* ---------- Jetons (charte : noir #1A171B, vert #41A62A) ---------- */
:root {
	--ink: #1a171b;
	--ink-2: #231f24;
	--ink-3: #2d2830;
	--paper: #ffffff;
	--paper-2: #f3f4f1;
	--white: #ffffff;
	--line: #e1e2de;
	--line-dark: rgba(255, 255, 255, .12);
	--text: #1a171b;
	--muted: #5f5c62;
	--on-dark: #f1f0f2;
	--on-dark-muted: #a8a4ab;
	--accent: #41a62a;          /* vert charte */
	--accent-hover: #4dbb33;
	--accent-strong: #2f7d1d;   /* vert foncé pour le texte sur fond clair (contraste AA) */
	--signal: #6fcf55;          /* vert clair pour le texte sur fond sombre */

	--font-head: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
	--font-body: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;

	--radius: 4px;
	--container: 1180px;
	--gutter: clamp(16px, 4vw, 32px);
	--section: clamp(72px, 10vw, 128px);
	--header-h: 76px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	background: var(--paper);
	color: var(--text);
	font-family: var(--font-body);
	font-size: 16px;
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-strong); text-underline-offset: 3px; }
a:hover { color: var(--accent); }
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; line-height: 1.15; letter-spacing: -.025em; margin: 0 0 .5em; color: inherit; }
h2 { font-size: clamp(28px, 3.8vw, 42px); }
h3 { font-size: 18px; letter-spacing: -.01em; line-height: 1.35; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 1000; background: var(--accent); color: var(--ink); padding: 10px 16px; border-radius: var(--radius); font-weight: 600; text-decoration: none; }
.skip-link:focus { top: 12px; color: var(--ink); }

/* ---------- Boutons ---------- */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	padding: 14px 24px; border-radius: var(--radius); border: 1.5px solid transparent;
	font-family: var(--font-head); font-weight: 600; font-size: 15px; letter-spacing: .01em;
	text-decoration: none; cursor: pointer; line-height: 1.2;
	transition: background-color .2s, border-color .2s, color .2s, transform .2s;
}
.btn .icon { width: 18px; height: 18px; transition: transform .2s; }
.btn:hover .icon { transform: translateX(3px); }
.btn-accent { background: var(--accent); color: var(--ink); }
.btn-accent:hover { background: var(--accent-hover); color: var(--ink); }
.btn-ghost { border-color: rgba(255, 255, 255, .35); color: var(--on-dark); }
.btn-ghost:hover { border-color: var(--on-dark); color: #fff; }
.btn-small { padding: 9px 16px; font-size: 15px; }
.btn-block { width: 100%; }

/* ---------- En-tête ---------- */
.site-header {
	position: sticky; top: 0; z-index: 50;
	background: var(--ink); color: var(--on-dark);
	border-bottom: 1px solid var(--line-dark);
	transition: background-color .25s, box-shadow .25s;
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
.site-header.is-overlay { position: fixed; left: 0; right: 0; background: transparent; border-bottom-color: transparent; }
.site-header.is-scrolled { background: rgba(26, 23, 27, .95); border-bottom-color: var(--line-dark); box-shadow: 0 8px 24px rgba(0, 0, 0, .18); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: var(--header-h); }

.brand, .custom-logo-link { display: inline-flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; flex-shrink: 0; }
.brand:hover { color: inherit; }
.brand-logo { height: 52px; width: auto; color: #fff; }
.custom-logo { max-height: 48px; width: auto; }

.primary-nav { display: flex; align-items: center; gap: 28px; }
.primary-nav .menu { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; }
.primary-nav .menu a { color: var(--on-dark-muted); text-decoration: none; font-size: 14px; font-weight: 600; padding: 6px 0; position: relative; transition: color .2s; }
.primary-nav .menu a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .25s; }
.primary-nav .menu a:hover, .primary-nav .menu a.is-active, .primary-nav .current-menu-item > a { color: #fff; }
.primary-nav .menu a:hover::after, .primary-nav .menu a.is-active::after { transform: scaleX(1); }

.nav-toggle { display: none; background: none; border: 0; padding: 10px; margin-right: -10px; cursor: pointer; color: inherit; }
.nav-toggle-bar { display: block; width: 24px; height: 2px; background: currentColor; transition: transform .25s; }
.nav-toggle-bar + .nav-toggle-bar { margin-top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:first-child { transform: translateY(4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

@media (max-width: 900px) {
	.nav-toggle { display: block; }
	.primary-nav {
		position: fixed; inset: var(--header-h) 0 auto 0;
		flex-direction: column; align-items: stretch; gap: 20px;
		padding: 24px var(--gutter) 32px; background: var(--ink);
		border-bottom: 1px solid var(--line-dark);
		box-shadow: 0 24px 40px rgba(0, 0, 0, .3);
		transform: translateY(-8px); opacity: 0; visibility: hidden;
		transition: opacity .2s, transform .2s, visibility .2s;
	}
	.admin-bar .primary-nav { top: calc(var(--header-h) + 46px); }
	.primary-nav.is-open { transform: none; opacity: 1; visibility: visible; }
	.primary-nav .menu { flex-direction: column; gap: 0; }
	.primary-nav .menu a { display: block; padding: 14px 0; font-size: 18px; border-bottom: 1px solid var(--line-dark); }
	.primary-nav .menu a::after { display: none; }
	.site-header.is-overlay.menu-open { background: var(--ink); }
}

/* ---------- Hero ---------- */
.hero {
	position: relative; overflow: hidden;
	background: var(--ink); color: var(--on-dark);
	padding: calc(var(--header-h) + clamp(48px, 8vw, 96px)) 0 0;
	isolation: isolate;
}
.hero::before {
	/* trame de plan */
	content: ""; position: absolute; inset: 0; z-index: -1;
	background-image:
		linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px),
		linear-gradient(rgba(255, 255, 255, .02) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, .02) 1px, transparent 1px);
	background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
	-webkit-mask-image: radial-gradient(ellipse 80% 70% at 70% 40%, #000 30%, transparent 85%);
	mask-image: radial-gradient(ellipse 80% 70% at 70% 40%, #000 30%, transparent 85%);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.eyebrow {
	display: inline-flex; align-items: center; gap: 10px;
	font-family: var(--font-head); font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
	color: var(--signal); margin-bottom: 22px;
}
.eyebrow::before { content: ""; width: 28px; height: 1.5px; background: currentColor; }
.hero-title { font-size: clamp(34px, 5vw, 58px); line-height: 1.08; letter-spacing: -.035em; margin-bottom: 24px; color: #fff; text-wrap: balance; }
.hero-text { font-size: clamp(17px, 1.6vw, 19px); color: var(--on-dark-muted); max-width: 36em; margin-bottom: 36px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-schematic { margin: 0; color: var(--on-dark); }
.schematic { width: 100%; }
.s-frame { fill: none; stroke: rgba(255, 255, 255, .16); stroke-width: 1; }
.s-line { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; opacity: .82; }
.s-bus { stroke: currentColor; stroke-width: 5; stroke-linecap: square; }
.s-valve { fill: var(--ink); }
.s-inst { fill: var(--ink); stroke: var(--signal); stroke-width: 1.4; }
.s-dash { fill: none; stroke: var(--signal); stroke-width: 1.2; stroke-dasharray: 3 4; opacity: .8; }
.s-label { fill: currentColor; font-family: var(--font-head); font-size: 13px; font-weight: 600; opacity: .85; }
.s-small { font-size: 11px; letter-spacing: .04em; opacity: .62; }
.s-big { font-size: 22px; font-weight: 700; opacity: 1; }
.s-flow { fill: none; stroke: var(--accent); stroke-width: 2.4; stroke-linecap: round; stroke-dasharray: 4 18; animation: eny-flow 1.4s linear infinite; }
.s-flow-fuel { stroke: #c9c6cc; animation-duration: 2.4s; }
@keyframes eny-flow { to { stroke-dashoffset: -44; } }

.facts {
	list-style: none; margin: clamp(56px, 8vw, 96px) 0 0; padding: 0;
	display: grid; grid-template-columns: repeat(3, 1fr);
	border-top: 1px solid var(--line-dark);
}
.facts li { display: flex; align-items: baseline; gap: 14px; padding: 26px 24px 30px 0; font-size: 15px; color: var(--on-dark); }
.facts li + li { padding-left: 24px; border-left: 1px solid var(--line-dark); }
.fact-tag { font-family: var(--font-head); font-size: 13px; color: var(--signal); font-weight: 700; }

/* ---------- Sections ---------- */
.section { padding: var(--section) 0; position: relative; }
.section-tight { padding: clamp(48px, 6vw, 72px) 0; }
.section-alt { background: var(--paper-2); }
.section-dark { background: var(--ink); color: var(--on-dark); }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-head { max-width: 760px; margin-bottom: clamp(40px, 6vw, 64px); }
.section-head h2 { text-wrap: balance; }
.section-intro { font-size: 18px; color: var(--muted); margin: 0; }
.section-dark .section-intro { color: var(--on-dark-muted); }

/* Étiquette de section façon repère d'instrument P&ID */
.section-tag {
	display: inline-flex; align-items: center; gap: 12px;
	font-family: var(--font-head); font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
	color: var(--accent-strong); margin-bottom: 18px;
}
.section-dark .section-tag { color: var(--signal); }
.bubble {
	display: inline-grid; place-items: center;
	width: 44px; height: 44px; border-radius: 50%;
	border: 1.5px solid currentColor; font-size: 10px; font-weight: 700; letter-spacing: .04em;
	position: relative;
}
.bubble::after { content: ""; position: absolute; left: 4px; right: 4px; top: 50%; height: 1px; background: currentColor; opacity: .5; transform: translateY(8px); }

/* ---------- Cartes expertises ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.card { background: var(--paper); padding: 32px 30px 34px; transition: background-color .25s; position: relative; }
.card:hover { background: var(--paper-2); }
.card::before { content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 0; background: var(--accent); transition: width .35s ease; }
.card:hover::before { width: 100%; }
.card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 26px; }
.card-icon { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: var(--radius); background: var(--ink); color: var(--accent); }
.card-icon .icon { width: 24px; height: 24px; }
.card-ref { font-family: var(--font-head); font-size: 11px; font-weight: 600; letter-spacing: .1em; color: var(--muted); margin: 0; }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--muted); margin: 0; font-size: 15px; }

/* ---------- Domaines ---------- */
.split { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.split .section-head { position: sticky; top: calc(var(--header-h) + 40px); margin-bottom: 0; }
.domains { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-dark); }
.domain { display: grid; grid-template-columns: 64px 1fr; gap: 16px; padding: 30px 0; border-bottom: 1px solid var(--line-dark); }
.domain-num { font-family: var(--font-head); font-size: 30px; font-weight: 700; color: var(--accent); line-height: 1; }
.domain h3 { margin-bottom: 6px; font-size: 20px; }
.domain p { margin: 0; color: var(--on-dark-muted); }

/* ---------- Méthode ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; position: relative; }
.steps::before { content: ""; position: absolute; top: 22px; left: 22px; right: 22px; height: 1.5px; background: repeating-linear-gradient(90deg, var(--ink) 0 8px, transparent 8px 14px); opacity: .35; }
.step { position: relative; }
.step-node {
	display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 24px;
	border-radius: 50%; background: var(--paper); border: 1.5px solid var(--ink);
	font-family: var(--font-head); font-weight: 700; position: relative; z-index: 1;
	transition: background-color .25s, color .25s, border-color .25s;
}
.step:hover .step-node { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.step h3 { margin-bottom: 8px; }
.step p { color: var(--muted); margin: 0; font-size: 15px; }

/* ---------- À propos ---------- */
.about { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.prose p { font-size: 17px; color: var(--text); }
.prose p:first-child { font-size: 19px; font-weight: 500; color: var(--ink); }
.id-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: 0 1px 0 var(--line), 0 24px 48px -28px rgba(26, 23, 27, .35); }
.id-photo { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.id-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 24px; background: var(--ink); color: #fff; }
.id-title { font-family: var(--font-head); font-weight: 700; font-size: 18px; }
.id-ref { font-family: var(--font-head); font-size: 11px; font-weight: 600; letter-spacing: .1em; color: var(--signal); }
.id-list { margin: 0; padding: 6px 24px 10px; }
.id-row { display: grid; grid-template-columns: 120px 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px dashed var(--line); }
.id-row:last-child { border-bottom: 0; }
.id-row dt { font-family: var(--font-head); font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding-top: 2px; }
.id-row dd { margin: 0; font-weight: 500; color: var(--ink); }

/* ---------- Références ---------- */
.refs { display: flex; flex-wrap: wrap; align-items: center; gap: 24px 48px; }
.refs-title { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0; }
.refs-list { display: flex; flex-wrap: wrap; gap: 12px 36px; list-style: none; margin: 0; padding: 0; }
.refs-list li { font-family: var(--font-head); font-size: 20px; font-weight: 700; color: var(--ink); letter-spacing: -.01em; opacity: .75; }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.contact-list { list-style: none; margin: 36px 0 0; padding: 0; display: grid; gap: 16px; }
.contact-list li { display: flex; align-items: flex-start; gap: 14px; color: var(--on-dark); }
.contact-list .icon { width: 22px; height: 22px; flex-shrink: 0; color: var(--signal); margin-top: 2px; }
.contact-list a { color: var(--on-dark); text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, .25); }
.contact-list a:hover { color: #fff; border-bottom-color: var(--accent); }

.contact-form { background: var(--paper-2); color: var(--text); border-radius: var(--radius); padding: clamp(24px, 4vw, 40px); display: grid; gap: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 13px; font-weight: 600; color: var(--ink); }
.field label span { color: var(--accent-strong); }
.field input, .field textarea {
	width: 100%; font: inherit; font-size: 16px; color: var(--text);
	background: var(--white); border: 1.5px solid var(--line); border-radius: var(--radius);
	padding: 12px 14px; transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(65, 166, 42, .25); }
.field input::placeholder, .field textarea::placeholder { color: #9aa1ab; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--muted); line-height: 1.5; cursor: pointer; }
.consent input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--accent); flex-shrink: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-notice { padding: 14px 16px; border-radius: var(--radius); font-size: 15px; font-weight: 500; }
.form-notice.is-success { background: #e3f3e8; color: #17603a; border: 1px solid #b6dfc4; }
.form-notice.is-error { background: #fbe9e4; color: #9a2f12; border: 1px solid #f1c3b5; }

/* ---------- Pages intérieures ---------- */
.page-hero { background: var(--ink); color: #fff; padding: clamp(56px, 8vw, 96px) 0 clamp(40px, 6vw, 64px); position: relative; }
.page-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: linear-gradient(90deg, var(--accent) 0 120px, transparent 120px); }
.page-hero .container::before { content: none; }
.page-title { font-size: clamp(34px, 5vw, 54px); margin: 0; color: #fff; }
.page-body { max-width: calc(760px + 2 * var(--gutter)); padding-top: clamp(40px, 6vw, 72px); padding-bottom: var(--section); }
.page-body-wide { max-width: var(--container); }
.entry h2 { font-size: clamp(24px, 3vw, 30px); margin-top: 1.8em; }
.entry h3 { margin-top: 1.6em; }
.entry ul, .entry ol { padding-left: 1.3em; margin: 0 0 1em; }
.entry li { margin-bottom: .4em; }
.entry img { border-radius: var(--radius); }
.entry .entry-thumb { margin-bottom: 32px; }
.entry blockquote { margin: 1.5em 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--accent); font-size: 18px; color: var(--ink); }
.entry .prose p:first-child, .entry > p:first-child { font-size: 18px; }
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.post-card { border: 1px solid var(--line); border-radius: var(--radius); }
.post-card h2 { font-size: 22px; margin: 8px 0 10px; }
.post-card h2 a { color: var(--ink); text-decoration: none; }
.post-card-img img { width: calc(100% + 60px); max-width: none; margin: -32px -30px 24px; aspect-ratio: 16 / 9; object-fit: cover; }
.post-nav { display: flex; justify-content: space-between; gap: 24px; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); }
.nav-links { display: flex; gap: 8px; margin-top: 40px; }
.nav-links .page-numbers { padding: 8px 14px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); }
.nav-links .current { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------- Pied de page ---------- */
.site-footer { background: #121013; color: var(--on-dark-muted); padding: clamp(56px, 7vw, 80px) 0 0; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 48px; }
.footer-brand .brand { color: #fff; margin-bottom: 20px; display: inline-block; }
.footer-brand .brand-logo { height: 58px; }
.footer-brand p { max-width: 24em; margin: 0; }
.footer-title { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: #fff; margin-bottom: 16px; }
.footer-menu, .footer-contact, .site-footer .menu { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { color: var(--on-dark-muted); text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding-top: 22px; padding-bottom: 28px; font-size: 13px; position: relative; }
.footer-bottom::before { content: ""; position: absolute; top: 0; left: var(--gutter); right: var(--gutter); height: 1px; background: var(--line-dark); }
.footer-bottom p { margin: 0; }
.footer-legal { display: flex; gap: 20px; }

/* ---------- Apparition au défilement ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.js .reveal { opacity: 1; transform: none; transition: none; }
	.s-flow { animation: none; stroke-dasharray: none; opacity: .9; }
	*, *::before, *::after { transition-duration: .01ms !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
	.hero-grid { grid-template-columns: 1fr; }
	.hero-schematic { max-width: 560px; }
	.cards { grid-template-columns: repeat(2, 1fr); }
	.steps { grid-template-columns: repeat(2, 1fr); row-gap: 48px; }
	.steps::before { display: none; }
	.posts { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px) {
	.split, .about, .contact { grid-template-columns: 1fr; }
	.split .section-head { position: static; }
	.facts { grid-template-columns: 1fr; }
	.facts li { padding: 18px 0; }
	.facts li + li { padding-left: 0; border-left: 0; border-top: 1px solid var(--line-dark); }
	.footer-grid { grid-template-columns: 1fr 1fr; }
	.footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
	body { font-size: 15px; }
	.brand-logo { height: 40px; }
	.cards, .steps, .posts { grid-template-columns: 1fr; }
	.field-row { grid-template-columns: 1fr; }
	.hero-actions .btn { flex: 1 1 100%; }
	.domain { grid-template-columns: 48px 1fr; }
	.domain-num { font-size: 26px; }
	.id-row { grid-template-columns: 1fr; gap: 2px; }
	.footer-grid { grid-template-columns: 1fr; }
	.header-cta { width: 100%; }
}

/* =========================================================================
   v2 — pages d'activité, animations 3D
   ========================================================================= */

/* ---------- En-tête des pages intérieures ---------- */
.page-hero-lg { padding: clamp(64px, 9vw, 112px) 0 clamp(56px, 7vw, 88px); overflow: hidden; }
.page-hero-lg .container { position: relative; z-index: 1; }
.page-hero-lg .page-title { max-width: 16em; text-wrap: balance; }
.page-intro { max-width: 46em; margin: 22px 0 0; font-size: clamp(16px, 1.5vw, 18px); color: var(--on-dark-muted); }
.section-tag.on-dark { color: var(--signal); }
.hero-bars { position: absolute; right: -40px; top: 50%; transform: translateY(-50%); display: grid; gap: 22px; width: clamp(160px, 22vw, 300px); opacity: .9; pointer-events: none; }
.hero-bars i { display: block; height: clamp(26px, 3.4vw, 44px); background: var(--accent); }
.hero-bars i:first-child { clip-path: polygon(0 0, 100% 0, 100% 100%, 22% 100%); }
.hero-bars i:last-child { clip-path: polygon(22% 0, 100% 0, 100% 100%, 0 100%); }
.js .hero-bars i { animation: bar-in .9s cubic-bezier(.2, .7, .2, 1) both; }
.js .hero-bars i:nth-child(2) { animation-delay: .12s; }
.js .hero-bars i:nth-child(3) { animation-delay: .24s; }
@keyframes bar-in { from { transform: translateX(110%); } }
@media (max-width: 820px) { .hero-bars { opacity: .18; } }

/* ---------- Mise en page ---------- */
.split-media { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 88px); align-items: center; }
.split-media-rev > :first-child { order: 0; }
.split-media h2 { text-wrap: balance; }
.cards-4 { grid-template-columns: repeat(4, 1fr); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 26px 0 30px; padding: 0; }
.chips li { padding: 7px 14px; border: 1.5px solid var(--line); border-radius: 100px; font-size: 13px; font-weight: 600; color: var(--ink); background: var(--white); }
.section-dark .chips li { background: transparent; border-color: var(--line-dark); color: var(--on-dark); }
.link-arrow { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 15px; color: var(--accent-strong); text-decoration: none; margin-top: 24px; }
.link-arrow .icon { width: 18px; height: 18px; transition: transform .2s; }
.link-arrow:hover .icon { transform: translateX(4px); }
.link-arrow.on-dark { color: var(--signal); }

/* ---------- Pôles (accueil) ---------- */
.poles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.pole { position: relative; display: flex; flex-direction: column; padding: clamp(28px, 3.5vw, 40px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); color: var(--text); text-decoration: none; overflow: hidden; transition: border-color .25s, transform .25s, box-shadow .25s; }
.pole::after { content: ""; position: absolute; left: 0; bottom: 0; height: 4px; width: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .35s; }
.pole:hover { border-color: var(--ink); transform: translateY(-3px); box-shadow: 0 22px 44px -30px rgba(26, 23, 27, .5); color: var(--text); }
.pole:hover::after { transform: scaleX(1); }
.pole-icon { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: var(--radius); background: var(--ink); color: var(--accent); margin-bottom: 26px; }
.pole-icon .icon { width: 28px; height: 28px; }
.pole-eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-strong); margin-bottom: 8px; }
.pole h3 { font-size: clamp(19px, 1.8vw, 22px); margin-bottom: 10px; }
.pole p { color: var(--muted); font-size: 15px; margin-bottom: 22px; }
.pole-more { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; color: var(--ink); }
.pole-more .icon { width: 16px; height: 16px; transition: transform .2s; }
.pole:hover .pole-more .icon { transform: translateX(4px); }

/* ---------- Clients (défilement) ---------- */
.section-clients { padding: 34px 0; border-bottom: 1px solid var(--line); background: var(--white); }
.clients { display: flex; align-items: center; gap: 40px; }
.clients-title { flex-shrink: 0; margin: 0; font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.clients-track { display: flex; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.clients-list { display: flex; flex-shrink: 0; gap: 56px; padding-right: 56px; margin: 0; list-style: none; animation: marquee 28s linear infinite; }
.clients-track:hover .clients-list { animation-play-state: paused; }
.clients-list li { font-size: 21px; font-weight: 700; letter-spacing: -.01em; color: var(--ink); opacity: .7; white-space: nowrap; transition: opacity .2s, color .2s; }
.clients-list li:hover { opacity: 1; color: var(--accent-strong); }
@keyframes marquee { to { transform: translateX(-100%); } }

/* ---------- Rendu 3D ---------- */
.render { margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--ink); box-shadow: 0 30px 60px -36px rgba(26, 23, 27, .6); }
.render img { width: 100%; height: auto; }
.render figcaption { padding: 12px 18px; font-size: 13px; color: var(--on-dark-muted); border-top: 3px solid var(--accent); }

/* ---------- Liste numérotée de prestations ---------- */
.checklist { list-style: none; margin: 28px 0 0; padding: 0; border-top: 1px solid var(--line); }
.checklist li { display: flex; gap: 18px; align-items: baseline; padding: 15px 0; border-bottom: 1px solid var(--line); font-weight: 500; color: var(--ink); }
.checklist-num { font-size: 13px; font-weight: 700; color: var(--accent-strong); min-width: 22px; }

/* ---------- Encadré ---------- */
.highlight { display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: start; max-width: 900px; }
.highlight-icon { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; border: 1.5px solid var(--accent); color: var(--accent); }
.highlight-icon .icon { width: 30px; height: 30px; }
.highlight p { color: var(--on-dark-muted); font-size: 17px; margin: 0; }

/* ---------- Bandeau CTA ---------- */
.cta-band { background: var(--accent); color: var(--ink); padding: clamp(48px, 6vw, 72px) 0; position: relative; overflow: hidden; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta-inner h2 { margin-bottom: 8px; font-size: clamp(26px, 3.4vw, 38px); }
.cta-inner p { margin: 0; max-width: 44em; font-weight: 500; }
.cta-band .btn-accent { background: var(--ink); color: #fff; }
.cta-band .btn-accent:hover { background: #000; color: #fff; }

/* ---------- Méthode en 5 étapes ---------- */
.steps-5 { grid-template-columns: repeat(5, 1fr); gap: 22px; }
.section-alt .step-node { background: var(--paper-2); }

/* ---------- Références ---------- */
.featured { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: clamp(56px, 7vw, 88px); }
.featured-item { padding: clamp(28px, 4vw, 44px); border-radius: var(--radius); background: var(--ink); color: var(--on-dark); position: relative; overflow: hidden; }
.featured-item::before { content: ""; position: absolute; right: -30px; top: 28px; width: 120px; height: 22px; background: var(--accent); clip-path: polygon(22% 0, 100% 0, 100% 100%, 0 100%); opacity: .9; }
.featured-name { display: block; font-size: clamp(30px, 4vw, 44px); font-weight: 700; letter-spacing: -.02em; color: #fff; line-height: 1; }
.featured-tag { display: inline-block; margin: 14px 0 22px; font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--signal); }
.featured-item h3 { color: #fff; }
.featured-item p { color: var(--on-dark-muted); }
.featured-item .link-arrow { color: var(--signal); }
.refs-heading { font-size: clamp(22px, 2.6vw, 28px); margin-bottom: 24px; }
.logo-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin: 0; padding: 0; list-style: none; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.logo-grid li { display: grid; place-items: center; min-height: 128px; padding: 20px; background: var(--white); font-size: clamp(18px, 2vw, 24px); font-weight: 700; letter-spacing: -.01em; color: var(--ink); text-align: center; transition: background-color .25s, color .25s; }
.logo-grid li:hover { background: var(--ink); color: var(--accent); }

/* ---------- À propos / contact ---------- */
.id-logo { height: 34px; width: auto; color: #fff; }
.contact-section, .page-template-default .contact { color: inherit; }
.contact-copy h2 { font-size: 24px; }
.contact-copy .contact-list li { color: var(--text); }
.contact-copy .contact-list a { color: var(--ink); border-bottom-color: var(--line); }
.contact-copy .contact-list a:hover { color: var(--accent-strong); border-bottom-color: var(--accent); }
.contact-copy .contact-list .icon { color: var(--accent-strong); }
.contact-note { margin-top: 40px; padding: 24px; border-left: 4px solid var(--accent); background: var(--paper-2); }
.contact-note h3 { font-size: 16px; margin-bottom: 6px; }
.contact-note p { margin: 0; font-size: 15px; color: var(--muted); }
.section:not(.section-dark) .contact-form { border: 1px solid var(--line); }

/* ---------- Synoptique spatial ---------- */
.synoptic { width: 100%; color: var(--ink); font-family: var(--font-body); }
.section-dark .synoptic { color: var(--on-dark); }
.synoptic .s-frame { stroke: currentColor; opacity: .2; }
.sy-title { fill: currentColor; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; opacity: .7; }
.sy-skid rect, .sy-station rect, .sy-mast, .sy-rocket path:not(.sy-plume):not(.sy-line-thin) { fill: currentColor; fill-opacity: .05; stroke: currentColor; stroke-width: 1.6; }
.sy-skid .sy-tank { fill-opacity: .12; }
.sy-tag { fill: currentColor; font-size: 15px; font-weight: 700; }
.sy-sub { fill: currentColor; font-size: 11px; font-weight: 500; opacity: .7; }
.sy-line { fill: none; stroke: currentColor; stroke-width: 1.6; opacity: .45; }
.sy-line-thin { fill: none; stroke: currentColor; stroke-width: 1; opacity: .4; }
.sy-valve { fill: var(--paper); stroke: currentColor; stroke-width: 1.4; }
.section-dark .sy-valve { fill: var(--ink); }
.sy-flow { fill: none; stroke: var(--accent); stroke-width: 2.6; stroke-linecap: round; stroke-dasharray: 5 16; animation: eny-flow 1.3s linear infinite; animation-delay: var(--d, 0s); }
.sy-plume { fill: var(--accent); opacity: .85; transform-origin: 600px 340px; animation: plume 1.2s ease-in-out infinite alternate; }
.sy-tm { fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-dasharray: 2 7; animation: eny-flow 1.8s linear infinite reverse; }
.sy-tm-label { fill: var(--accent-strong); opacity: 1; font-weight: 600; }
.section-dark .sy-tm-label { fill: var(--signal); }
.sy-skid { animation: skid-in .6s both; animation-delay: var(--d); }
@keyframes plume { from { transform: scaleY(.75); opacity: .55; } to { transform: scaleY(1.1); opacity: .95; } }
@keyframes skid-in { from { opacity: 0; transform: translateX(-12px); } }

/* ---------- Fenêtre CAO + vue éclatée ---------- */
.cad { background: #232025; border: 1px solid #36313a; border-radius: 8px; overflow: hidden; color: var(--on-dark); box-shadow: 0 40px 80px -40px rgba(26, 23, 27, .7); }
.cad-bar { display: flex; align-items: center; gap: 14px; padding: 10px 16px; background: #1a171b; border-bottom: 1px solid #36313a; font-size: 12px; font-weight: 600; letter-spacing: .04em; }
.cad-dots { display: flex; gap: 6px; }
.cad-dots i { width: 10px; height: 10px; border-radius: 50%; background: #3d3940; }
.cad-dots i:first-child { background: var(--accent); }
.cad-file { color: var(--on-dark-muted); }
.cad-mode { margin-left: auto; padding: 3px 10px; border-radius: 100px; background: rgba(65, 166, 42, .16); color: var(--signal); }
.cad-body { display: grid; grid-template-columns: 1fr; }
.cad.has-controls .cad-body { grid-template-columns: 230px 1fr; }
.cad-tree { margin: 0; padding: 16px 0; list-style: none; border-right: 1px solid #36313a; font-size: 13px; }
.cad-tree-root { padding: 6px 18px 10px; font-weight: 700; color: #fff; }
.cad-tree button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 18px 8px 30px; border: 0; background: none; color: var(--on-dark-muted); font: inherit; text-align: left; cursor: pointer; position: relative; }
.cad-tree button::before { content: ""; width: 10px; height: 10px; border: 1.5px solid currentColor; border-radius: 2px; transform: rotate(45deg) scale(.8); }
.cad-tree button:hover, .cad-tree button:focus-visible, .cad-tree button.is-hl { background: rgba(65, 166, 42, .12); color: #fff; }
.cad-tree button.is-hl::before { border-color: var(--accent); background: var(--accent); }
.cad-view { padding: 10px; }
.exploded { width: 100%; display: block; }
.cad-grid-line { stroke: rgba(255, 255, 255, .05); stroke-width: 1; }
.part { transform: translate(calc(var(--dx) * var(--ex)), calc(var(--dy) * var(--ex))); transition: opacity .25s; }
.exploded.has-hl .part:not(.is-hl) { opacity: .22; }
.part polygon, .part path, .part ellipse { stroke: rgba(0, 0, 0, .35); stroke-width: .6; stroke-linejoin: round; }
.part-label { opacity: var(--ex); pointer-events: none; }
.part-label circle { fill: var(--accent); }
.part-label line { stroke: var(--accent); stroke-width: 1; }
.part-label text { fill: #fff; font-family: var(--font-body); font-size: 9.5px; font-weight: 600; paint-order: stroke; stroke: #232025; stroke-width: 3px; }
.exploded.has-hl .part.is-hl .part-label { opacity: 1; }
.m-frame.f-top { fill: #6b676e; } .m-frame.f-left { fill: #4a464d; } .m-frame.f-right { fill: #3a363c; }
.m-tank.f-top { fill: #eef0ec; } .m-tank.f-left { fill: #c4c7c1; }
.m-cab.f-top { fill: #f4f4f1; } .m-cab.f-left { fill: #d9dad5; } .m-cab.f-right { fill: #bdbeb8; }
.m-led { fill: var(--accent); animation: blink 1.6s steps(2) infinite; }
.m-led-2 { fill: #f2c94c; animation-delay: .8s; }
.m-pump.f-top { fill: #6fcf55; } .m-pump.f-left { fill: #41a62a; } .m-pump.f-right { fill: #2f7d1d; }
.m-motor.f-top { fill: #64606a; } .m-motor.f-left { fill: #423e46; } .m-motor.f-right { fill: #312d34; }
.m-valve.f-top { fill: #ff8a6b; } .m-valve.f-left { fill: #e4572e; } .m-valve.f-right { fill: #b8401c; }
.m-flange.f-top { fill: #d6d3d9; } .m-flange.f-left { fill: #a8a4ab; } .m-flange.f-right { fill: #8a868d; }
.m-hx.f-top { fill: #e6e7e3; } .m-hx.f-left { fill: #c9cbc5; } .m-hx.f-right { fill: #aeb0aa; }
.pipe { fill: none; stroke: #8fb0d9; stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; }
@keyframes blink { 50% { opacity: .25; } }
.cad-controls { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-top: 1px solid #36313a; background: #1a171b; font-size: 13px; font-weight: 600; color: var(--on-dark-muted); }
.cad-controls input[type="range"] { flex: 1; accent-color: var(--accent); }
.cad-play { padding: 6px 14px; border: 1.5px solid #4a454e; border-radius: 100px; background: none; color: var(--on-dark); font: inherit; cursor: pointer; }
.cad-play:hover { border-color: var(--accent); }

/* ---------- Conteneur 3D (CSS) ---------- */
.box3d-stage { --L: 250px; --W: 101px; --H: 120px; position: relative; display: grid; place-items: center; height: 300px; perspective: 1000px; }
.box3d { position: relative; width: var(--L); height: var(--H); transform-style: preserve-3d; animation: box-spin 16s linear infinite; }
.box3d-stage:hover .box3d { animation-play-state: paused; }
.b-face { position: absolute; border: 1.5px solid var(--accent); background: repeating-linear-gradient(90deg, rgba(65, 166, 42, .22) 0 2px, transparent 2px 11px), rgba(26, 23, 27, .55); }
.b-front, .b-back { width: var(--L); height: var(--H); }
.b-front { transform: translateZ(calc(var(--W) / 2)); }
.b-back { transform: rotateY(180deg) translateZ(calc(var(--W) / 2)); }
.b-left, .b-right { width: var(--W); height: var(--H); left: calc((var(--L) - var(--W)) / 2); }
.b-left { transform: rotateY(-90deg) translateZ(calc(var(--L) / 2)); }
.b-right { transform: rotateY(90deg) translateZ(calc(var(--L) / 2)); }
.b-top, .b-bottom { width: var(--L); height: var(--W); top: calc((var(--H) - var(--W)) / 2); background: rgba(26, 23, 27, .4); }
.b-top { transform: rotateX(90deg) translateZ(calc(var(--H) / 2)); }
.b-bottom { transform: rotateX(-90deg) translateZ(calc(var(--H) / 2)); background: rgba(65, 166, 42, .18); }
.b-door { position: absolute; inset: 6px; border-left: 2px solid var(--accent); border-right: 2px solid var(--accent); background: linear-gradient(90deg, transparent calc(50% - 1px), var(--accent) calc(50% - 1px) calc(50% + 1px), transparent calc(50% + 1px)); }
.box3d-shadow { position: absolute; bottom: 46px; width: 300px; height: 40px; border-radius: 50%; background: radial-gradient(closest-side, rgba(65, 166, 42, .25), transparent); }
.box3d-label { position: absolute; bottom: 8px; font-size: 12px; font-weight: 600; letter-spacing: .06em; color: var(--on-dark-muted); }
@keyframes box-spin { from { transform: rotateX(-18deg) rotateY(0); } to { transform: rotateX(-18deg) rotateY(360deg); } }
.box3d-card { background: var(--ink); border-radius: var(--radius); padding: 20px 20px 24px; }
.box3d-caption { color: var(--on-dark-muted); font-size: 14px; margin: 6px 4px 0; }

/* ---------- Routage de tuyauterie ---------- */
.routing { width: 100%; font-family: var(--font-body); }
.routing polygon, .routing path:not(.r-valve), .routing ellipse { stroke: rgba(0, 0, 0, .3); stroke-width: .6; }
.r-pipe { fill: none; stroke: #6f93c7; stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.r-flow { fill: none; stroke: var(--accent); stroke-width: 2.4; stroke-linecap: round; stroke-dasharray: 3 12; opacity: 0; }
.r-node { opacity: 0; }
.r-valve { fill: #e4572e; stroke: #fff; stroke-width: 1; }
.r-node line { stroke: var(--ink); stroke-width: 1.2; }
.r-node circle { fill: #fff; stroke: var(--accent-strong); stroke-width: 1.4; }
.r-node text { fill: var(--ink); font-size: 9px; font-weight: 700; }
.is-visible .r-draw { animation: r-draw 9s ease-in-out infinite; }
.is-visible .r-draw-2 { animation-name: r-draw-2; }
.is-visible .r-node { animation: r-node 9s ease-out infinite; }
.is-visible .r-node-2 { animation-delay: .4s; }
.is-visible .r-node-3 { animation-delay: .8s; }
.is-visible .r-flow { animation: r-flow-show 9s linear infinite, eny-flow 1.2s linear infinite; }
@keyframes r-draw { 0% { stroke-dashoffset: 1; opacity: 1; } 22% { stroke-dashoffset: 0; } 90% { stroke-dashoffset: 0; opacity: 1; } 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes r-draw-2 { 0%, 20% { stroke-dashoffset: 1; opacity: 1; } 42% { stroke-dashoffset: 0; } 90% { stroke-dashoffset: 0; opacity: 1; } 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes r-node { 0%, 44% { opacity: 0; } 52%, 90% { opacity: 1; } 100% { opacity: 0; } }
@keyframes r-flow-show { 0%, 56% { opacity: 0; } 62%, 90% { opacity: 1; } 100% { opacity: 0; } }

.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.duo-item h3 { margin: 22px 0 8px; }
.duo-item p { color: var(--muted); margin: 0; font-size: 15px; }
.duo-visual { display: grid; place-items: center; min-height: 340px; padding: 20px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 28px 28px; background-position: -1px -1px; }
.duo-visual-dark { background: var(--ink); border-color: var(--ink); background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px); background-size: 28px 28px; }
.schematic-card { background: var(--ink); color: var(--on-dark); border-radius: var(--radius); padding: 14px; }

@media (prefers-reduced-motion: reduce) {
	.clients-list { animation: none; }
	.clients-track { flex-wrap: wrap; -webkit-mask-image: none; mask-image: none; }
	.clients-list[aria-hidden="true"] { display: none; }
	.box3d { animation: none; transform: rotateX(-18deg) rotateY(-32deg); }
	.r-pipe { stroke-dashoffset: 0; }
	.r-node, .r-flow { opacity: 1; }
	.is-visible .r-draw, .is-visible .r-node, .is-visible .r-flow, .sy-flow, .sy-tm, .sy-plume, .m-led, .js .hero-bars i { animation: none; }
}

@media (max-width: 1020px) {
	.steps-5 { grid-template-columns: repeat(3, 1fr); }
	.cards-4 { grid-template-columns: repeat(2, 1fr); }
	.logo-grid { grid-template-columns: repeat(3, 1fr); }
	.cad.has-controls .cad-body { grid-template-columns: 1fr; }
	.cad-tree { display: flex; flex-wrap: wrap; gap: 4px; padding: 10px; border-right: 0; border-bottom: 1px solid #36313a; }
	.cad-tree-root { display: none; }
	.cad-tree button { width: auto; padding: 6px 12px; border-radius: 100px; border: 1px solid #36313a; }
	.cad-tree button::before { display: none; }
}
@media (max-width: 820px) {
	.split-media, .duo, .featured, .poles { grid-template-columns: 1fr; }
	.clients { flex-direction: column; align-items: flex-start; gap: 16px; }
	.clients-track { width: 100%; }
	.highlight { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
	.steps-5, .cards-4 { grid-template-columns: 1fr; }
	.logo-grid { grid-template-columns: repeat(2, 1fr); }
	.logo-grid li { min-height: 96px; }
	.box3d-stage { --L: 200px; --W: 81px; --H: 96px; height: 250px; }
	.box3d-shadow { width: 240px; }
	.cad-controls { flex-wrap: wrap; }
	.cad-controls input[type="range"] { flex-basis: 100%; order: 3; }
}
.duo-visual .routing, .duo-visual .box3d-stage { width: 100%; max-width: 460px; }
.cad:not(.has-controls) .cad-view { padding: 0; }
.sy-tag-sm { font-size: 13px; }
.logo-grid li.logo-grid-cta { padding: 0; background: var(--accent); }
.logo-grid-cta a { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; height: 100%; min-height: inherit; color: var(--ink); text-decoration: none; font-size: 17px; }
.logo-grid-cta a .icon { width: 18px; height: 18px; }
.logo-grid li.logo-grid-cta:hover { background: var(--accent-hover); }

/* =========================================================================
   v2.1 — essais, courbes animées, fournisseurs
   ========================================================================= */
.pole-more-note { margin: 22px 0 0; padding-left: 16px; border-left: 3px solid var(--accent); color: var(--muted); font-size: 15px; }

/* ---------- Cycle des essais ---------- */
.test-cycle { list-style: none; margin: clamp(48px, 6vw, 72px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 2px; counter-reset: tc; }
.test-cycle li { position: relative; padding: 26px 22px 28px; background: rgba(255, 255, 255, .04); border-top: 3px solid var(--line-dark); transition: border-color .25s, background-color .25s; }
.test-cycle li:hover { border-top-color: var(--accent); background: rgba(65, 166, 42, .08); }
.test-cycle li::after { content: ""; position: absolute; top: -9px; right: -8px; width: 14px; height: 14px; border-top: 3px solid var(--accent); border-right: 3px solid var(--accent); transform: rotate(45deg); z-index: 1; }
.test-cycle li:last-child::after { display: none; }
.tc-num { display: block; font-size: 13px; font-weight: 700; color: var(--signal); margin-bottom: 14px; }
.test-cycle h3 { color: #fff; font-size: 17px; margin-bottom: 8px; }
.test-cycle p { margin: 0; font-size: 14px; color: var(--on-dark-muted); }

/* ---------- Écran d'acquisition ---------- */
.testplot { background: #121013; border: 1px solid #36313a; border-radius: 8px; overflow: hidden; box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .8); }
.tp-bar { display: flex; align-items: center; gap: 12px; padding: 10px 16px; border-bottom: 1px solid #36313a; font-size: 12px; font-weight: 600; color: var(--on-dark-muted); flex-wrap: wrap; }
.tp-rec { width: 9px; height: 9px; border-radius: 50%; background: #e4572e; animation: blink 1.2s steps(2) infinite; }
.tp-title { color: #fff; letter-spacing: .03em; }
.tp-legend { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; }
.tp-key { display: inline-block; width: 16px; height: 3px; border-radius: 2px; }
.tp-key-a, .tp-a { --c: var(--accent); }
.tp-key-b, .tp-b { --c: #8fb0d9; }
.tp-key { background: var(--c); }
.tp-key-b { margin-left: 8px; }
.testplot svg { display: block; width: 100%; font-family: var(--font-body); }
.tp-grid line { stroke: rgba(255, 255, 255, .06); stroke-width: 1; }
.tp-axis { stroke: rgba(255, 255, 255, .35); stroke-width: 1.2; }
.tp-unit { fill: var(--on-dark-muted); font-size: 11px; }
.tp-mark line { stroke: rgba(255, 255, 255, .2); stroke-dasharray: 3 5; }
.tp-mark text { fill: var(--on-dark-muted); font-size: 11px; font-weight: 600; }
.tp-curve { fill: none; stroke: var(--c); stroke-width: 2.6; stroke-linejoin: round; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.tp-a { filter: drop-shadow(0 0 6px rgba(65, 166, 42, .45)); }
.tp-scan { stroke: var(--accent); stroke-width: 1; opacity: 0; }
.is-visible .tp-curve { animation: tp-draw 10s linear infinite; }
.is-visible .tp-scan { animation: tp-scan 10s linear infinite; }
@keyframes tp-draw { 0% { stroke-dashoffset: 1; opacity: 1; } 60% { stroke-dashoffset: 0; } 92% { stroke-dashoffset: 0; opacity: 1; } 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes tp-scan { 0% { transform: translateX(0); opacity: .8; } 60% { transform: translateX(640px); opacity: .8; } 61%, 100% { transform: translateX(640px); opacity: 0; } }

/* ---------- Fournisseurs ---------- */
.suppliers-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(40px, 6vw, 88px); align-items: center; }
.sup-points { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 12px; }
.sup-points li { display: flex; gap: 12px; align-items: flex-start; font-weight: 500; }
.sup-points .icon { width: 20px; height: 20px; flex-shrink: 0; color: var(--accent); margin-top: 2px; }
.sup-cats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.sup-cats li { display: flex; flex-direction: column; gap: 14px; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); font-size: 14px; font-weight: 600; color: var(--ink); transition: border-color .25s, transform .25s; }
.sup-cats li:hover { border-color: var(--accent); transform: translateY(-2px); }
.sup-icon { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: var(--radius); background: var(--ink); color: var(--accent); }
.sup-icon .icon { width: 22px; height: 22px; }
.section-dark .sup-cats li { background: rgba(255, 255, 255, .04); border-color: var(--line-dark); color: #fff; }
.section-dark .sup-cats li:hover { border-color: var(--accent); }
.section-dark .sup-icon { background: rgba(65, 166, 42, .14); }
.section-dark .sup-points li { color: var(--on-dark); }

@media (prefers-reduced-motion: reduce) {
	.is-visible .tp-curve, .is-visible .tp-scan, .tp-rec { animation: none; }
}
@media (max-width: 1020px) {
	.test-cycle { grid-template-columns: repeat(2, 1fr); gap: 12px; }
	.test-cycle li::after { display: none; }
}
@media (max-width: 820px) {
	.suppliers-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
	.test-cycle { grid-template-columns: 1fr; }
	.sup-cats { grid-template-columns: 1fr; }
	.sup-cats li { flex-direction: row; align-items: center; }
	.tp-legend { margin-left: 0; width: 100%; }
}

/* =========================================================================
   v2.4 — réalisations, photos, visionneuse, chiffres MINERVA
   ========================================================================= */
.shot { display: block; position: relative; width: 100%; padding: 0; border: 0; background: var(--ink); cursor: zoom-in; overflow: hidden; }
.shot img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2, .7, .2, 1), opacity .3s; }
.shot:hover img, .shot:focus-visible img { transform: scale(1.04); }
.render .shot { height: auto; }
.render .shot img { height: auto; }

/* Projets */
.projects { display: grid; gap: 28px; }
.project { display: grid; grid-template-columns: 1.25fr 1fr; gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--white); }
.project:nth-child(even) { grid-template-columns: 1fr 1.25fr; }
.project:nth-child(even) .project-gallery { order: 2; }
.project-gallery { display: grid; gap: 3px; min-height: 340px; background: var(--white); }
.project-gallery.count-1 { grid-template-columns: 1fr; }
.project-gallery.count-2 { grid-template-columns: 1.4fr 1fr; }
.project-gallery.count-3 { grid-template-columns: 1.6fr 1fr; grid-template-rows: 1fr 1fr; }
.project-gallery.count-3 .shot:first-child { grid-row: span 2; }
.shot-more { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(26, 23, 27, .55); color: #fff; font-size: 26px; font-weight: 700; }
.project-body { padding: clamp(26px, 3.5vw, 44px); display: flex; flex-direction: column; justify-content: center; }
.project-meta { margin: 0 0 10px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-strong); }
.project-body h3 { font-size: clamp(19px, 1.9vw, 23px); margin-bottom: 12px; }
.project-body p { color: var(--muted); font-size: 15px; }
.chips-sm { margin: 10px 0 0; }
.chips-sm li { padding: 5px 11px; font-size: 12px; }

/* Grande photo */
.photo-wide { margin: clamp(40px, 5vw, 64px) 0 0; }
.photo-wide .shot { border-radius: var(--radius); }
.photo-wide figcaption { margin-top: 12px; font-size: 13px; color: var(--on-dark-muted); }

/* Maquette vs réalisation */
.compare { display: grid; grid-template-columns: 1fr auto 1fr; gap: 18px; align-items: center; }
.compare-item { aspect-ratio: 16 / 9; border-radius: var(--radius); }
.compare-tag { position: absolute; left: 14px; bottom: 14px; padding: 6px 12px; border-radius: 100px; background: rgba(26, 23, 27, .82); color: #fff; font-size: 12px; font-weight: 600; letter-spacing: .04em; }
.compare-item:last-child .compare-tag { background: var(--accent); color: var(--ink); }
.compare-arrow { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid var(--accent); color: var(--accent); }
.compare-arrow .icon { width: 22px; height: 22px; }
.js .compare.is-visible .compare-arrow { animation: nudge 1.6s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateX(5px); } }

/* Mise en plan */
.drawing { margin: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; box-shadow: 0 30px 60px -40px rgba(26, 23, 27, .5); }
.drawing .shot { background: #fff; }
.drawing figcaption { padding: 12px 18px; font-size: 13px; color: var(--muted); border-top: 3px solid var(--accent); background: var(--paper-2); }

/* Chiffres MINERVA */
.kpis { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1px; margin: 0 0 clamp(36px, 5vw, 56px); background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.kpi { background: var(--white); padding: 22px 18px; }
.kpi dt { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.kpi dd { margin: 0; font-size: clamp(20px, 2.2vw, 26px); font-weight: 700; color: var(--ink); letter-spacing: -.02em; }
.facts-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 3vw, 40px); }
.facts-cols h3 { font-size: 17px; padding-top: 14px; border-top: 3px solid var(--accent); }
.facts-cols p { color: var(--muted); font-size: 15px; margin: 0; }
.sources-note { margin: 32px 0 0; font-size: 13px; color: var(--muted); }

/* Visionneuse */
.lightbox { width: min(1200px, 94vw); max-height: 92vh; padding: 0; border: 0; border-radius: 6px; background: #0e0c0f; color: #fff; overflow: visible; }
.lightbox::backdrop { background: rgba(10, 9, 11, .88); }
.lightbox figure { margin: 0; }
.lightbox img { display: block; width: 100%; max-height: 80vh; object-fit: contain; background: #0e0c0f; border-radius: 6px 6px 0 0; }
.lightbox figcaption { padding: 12px 18px; font-size: 14px; color: var(--on-dark-muted); }
.lb-close, .lb-nav { position: absolute; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(26, 23, 27, .8); color: #fff; font-size: 28px; line-height: 1; cursor: pointer; }
.lb-close { top: -18px; right: -18px; background: var(--accent); color: var(--ink); }
.lb-nav { top: 50%; transform: translateY(-50%); }
.lb-prev { left: 12px; } .lb-next { right: 12px; }
.lb-nav[hidden] { display: none; }

@media (max-width: 1020px) {
	.kpis { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 820px) {
	.project, .project:nth-child(even) { grid-template-columns: 1fr; }
	.project:nth-child(even) .project-gallery { order: 0; }
	.project-gallery { min-height: 260px; }
	.compare { grid-template-columns: 1fr; }
	.compare-arrow { justify-self: center; transform: rotate(90deg); }
	.js .compare.is-visible .compare-arrow { animation: none; }
	.facts-cols { grid-template-columns: 1fr; }
	.lb-close { top: 8px; right: 8px; }
}
@media (max-width: 600px) {
	.kpis { grid-template-columns: repeat(2, 1fr); }
	.project-gallery.count-3 { grid-template-columns: 1fr 1fr; grid-template-rows: 200px 120px; }
	.project-gallery.count-3 .shot:first-child { grid-row: auto; grid-column: span 2; }
}
.kpi:first-child dd { font-size: clamp(17px, 1.7vw, 21px); }

/* Frise PERSEUS */
.timeline { list-style: none; margin: 26px 0 0; padding: 0 0 0 26px; position: relative; }
.timeline::before { content: ""; position: absolute; left: 6px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(var(--accent), var(--line)); }
.timeline li { position: relative; padding: 0 0 22px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { content: ""; position: absolute; left: -26px; top: 4px; width: 14px; height: 14px; border-radius: 50%; background: var(--white); border: 3px solid var(--accent); }
.timeline li:last-child::before { background: var(--accent); }
.tl-when { display: block; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-strong); margin-bottom: 4px; }
.timeline h3 { font-size: 17px; margin-bottom: 4px; }
.timeline p { margin: 0; color: var(--muted); font-size: 15px; }
