/* ==========================================================================
   Ma-Tek — styles du site
   Sommaire : 1. Tokens · 2. Base · 3. Utilitaires · 4. Boutons & éléments
   5. Header · 6. Rails & curseur · 7. Menu plein écran · 8. Sections
   9. Footer · 10. Lightbox · 11. Animations · 12. Responsive
   ========================================================================== */

/* 1. Tokens ---------------------------------------------------------------- */
:root {
	--red: #e8153c; /* blanc sur rouge : 4,56:1 (WCAG AA) */
	--red-on-dark: #ff3b5f; /* petit texte rouge sur fond sombre : 5,4:1 */
	--red-deep: #cd1236;
	--red-dark: #9e0d2a;
	--ink: #0b0b0c;
	--ink-2: #111113;
	--ink-3: #18181b;
	--ink-4: #222226;
	--paper: #f3f1ec;
	--paper-2: #e8e5de;
	--white: #fff;
	--steel: #8b8d94;
	--sand: #c9b79c;

	--font: "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--font-tech: "Michroma", "Manrope", ui-sans-serif, sans-serif;
	--font-brand: "Helvetica Neue", Helvetica, Arial, sans-serif;

	--container: 1320px;
	--container-wide: 1600px;
	--gutter: clamp(20px, 4.4vw, 72px);
	--header-h: 84px;
	--section-y: clamp(64px, 7.5vw, 116px);

	--r-xs: 6px;
	--r-s: 12px;
	--r-m: 20px;
	--r-l: 28px;
	--r-xl: 40px;

	--fs-hero: clamp(2.45rem, 1.1rem + 3.7vw, 4.5rem);
	--fs-h2: clamp(2.05rem, 1.25rem + 2.9vw, 4.1rem);
	--fs-h3: clamp(1.2rem, 1rem + .7vw, 1.6rem);
	--fs-lead: clamp(1.05rem, .98rem + .3vw, 1.25rem);
	--fs-body: 1.0625rem;
	--fs-small: .875rem;
	--fs-eyebrow: .66rem;

	--ease: cubic-bezier(.22, 1, .36, 1);
	--ease-io: cubic-bezier(.65, 0, .35, 1);
	--dur: .6s;

	--shadow-card: 0 30px 60px -30px rgba(0, 0, 0, .55), 0 12px 24px -12px rgba(0, 0, 0, .35);
}

[data-theme="dark"],
.site-footer,
.page-head,
.page-404 {
	--bg: var(--ink);
	--fg: #f4f2ee;
	--muted: rgba(244, 242, 238, .64);
	--faint: rgba(244, 242, 238, .56);
	--line: rgba(255, 255, 255, .11);
	--line-strong: rgba(255, 255, 255, .28);
	--card: var(--ink-3);
	--chip: rgba(255, 255, 255, .06);
}
[data-theme="light"] {
	--bg: var(--paper);
	--fg: #0f0f11;
	--muted: #5b5954;
	--faint: #6b6860;
	--line: rgba(15, 15, 17, .11);
	--line-strong: rgba(15, 15, 17, .3);
	--card: #fff;
	--chip: rgba(15, 15, 17, .05);
}
[data-theme="paper"] {
	--bg: var(--paper-2);
	--fg: #0f0f11;
	--muted: #57554f;
	--faint: #66635b;
	--line: rgba(15, 15, 17, .12);
	--line-strong: rgba(15, 15, 17, .3);
	--card: #f7f5f1;
	--chip: rgba(15, 15, 17, .05);
}
[data-theme="red"] {
	--bg: var(--red);
	--fg: #fff;
	--muted: #fff;
	--faint: #fff;
	--line: rgba(255, 255, 255, .26);
	--line-strong: rgba(255, 255, 255, .5);
	--card: var(--red-deep);
	--chip: rgba(255, 255, 255, .12);
}

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

html {
	overflow-x: clip;
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
	scroll-padding-top: calc(var(--header-h) + 16px);
}
html.lenis,
html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
	margin: 0;
	background: var(--ink);
	color: #f4f2ee;
	font-family: var(--font);
	font-size: var(--fs-body);
	line-height: 1.6;
	font-feature-settings: "ss01", "cv05";
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
	overflow-x: clip;
}
body.menu-open { overflow: hidden; }

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

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
address { font-style: normal; }
strong { font-weight: 700; }
::selection { background: var(--red); color: #fff; }

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

section,
.site-footer {
	position: relative;
	background: var(--bg);
	color: var(--fg);
}

/* 3. Utilitaires ------------------------------------------------------------ */
.container {
	width: 100%;
	max-width: calc(var(--container) + 2 * var(--gutter));
	margin-inline: auto;
	padding-inline: var(--gutter);
}
.sr-only {
	position: absolute !important;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
	border: 0;
}
.skip-link {
	position: fixed;
	left: 16px;
	top: -80px;
	z-index: 1000;
	padding: 12px 18px;
	border-radius: var(--r-s);
	background: var(--red);
	color: #fff;
	font-weight: 700;
	transition: top .3s var(--ease);
}
.skip-link:focus { top: 16px; }

.grain {
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
	opacity: .07;
	mix-blend-mode: overlay;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* 4. Boutons & éléments ------------------------------------------------------ */
.eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	font-family: var(--font-tech);
	font-size: var(--fs-eyebrow);
	letter-spacing: .2em;
	text-transform: uppercase;
	line-height: 1.4;
	color: var(--muted);
}
.eyebrow::before {
	content: "";
	width: 28px;
	height: 1px;
	background: var(--red);
	flex: none;
}
[data-theme="red"] .eyebrow::before { background: #fff; }
.eyebrow--live::before { display: none; }
.eyebrow__dot {
	position: relative;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--red);
	flex: none;
}
.eyebrow__dot::after {
	content: "";
	position: absolute;
	inset: -5px;
	border-radius: 50%;
	border: 1px solid var(--red);
	animation: ping 2.4s var(--ease) infinite;
}

.btn {
	--btn-h: 56px;
	--btn-bg: transparent;
	--btn-fg: var(--fg);
	--btn-fill: var(--fg);
	--btn-fill-fg: var(--bg);
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	height: var(--btn-h);
	padding: 0 7px 0 26px;
	border: 1px solid transparent;
	border-radius: 999px;
	background: var(--btn-bg);
	color: var(--btn-fg);
	font-size: .9375rem;
	font-weight: 700;
	letter-spacing: .005em;
	white-space: nowrap;
	isolation: isolate;
	overflow: hidden;
	transition: color .5s var(--ease), border-color .5s var(--ease), transform .4s var(--ease);
}
.btn::before {
	content: "";
	position: absolute;
	inset: -1px;
	z-index: -1;
	border-radius: inherit;
	background: var(--btn-fill);
	clip-path: inset(0 100% 0 0 round 999px);
	transition: clip-path .6s var(--ease);
}
.btn:hover::before,
.btn:focus-visible::before { clip-path: inset(0 0 0 0 round 999px); }
.btn:hover,
.btn:focus-visible { color: var(--btn-fill-fg); }
.btn__label { position: relative; }
.btn__icon {
	display: grid;
	place-items: center;
	width: calc(var(--btn-h) - 14px);
	height: calc(var(--btn-h) - 14px);
	border-radius: 50%;
	background: rgba(255, 255, 255, .14);
	overflow: hidden;
	flex: none;
	transition: background .5s var(--ease), color .5s var(--ease);
}
.btn__icon .icon { width: 18px; height: 18px; transition: transform .5s var(--ease); }
.btn:hover .btn__icon .icon--arrow-right { transform: translateX(3px); }
.btn:has(.btn__icon--lead) { padding: 0 26px 0 7px; }
.btn__icon--lead { order: -1; }

.btn--primary {
	--btn-bg: var(--red);
	--btn-fg: #fff;
	--btn-fill: var(--ink);
	--btn-fill-fg: #fff;
	box-shadow: 0 14px 34px -14px rgba(235, 22, 62, .75);
}
.btn--primary:hover .btn__icon { background: var(--red); }
[data-theme="dark"] .btn--primary,
.site-footer .btn--primary { --btn-fill: #fff; --btn-fill-fg: var(--ink); }
[data-theme="dark"] .btn--primary:hover .btn__icon,
.site-footer .btn--primary:hover .btn__icon { background: var(--red); color: #fff; }
.btn--ghost {
	border-color: var(--line-strong);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
}
.btn--ghost .btn__icon { background: var(--chip); }
.btn--ghost:hover { border-color: var(--fg); }
.btn--dark {
	--btn-bg: #0f0f11;
	--btn-fg: #fff;
	--btn-fill: var(--red);
	--btn-fill-fg: #fff;
}
.btn--sm { --btn-h: 46px; font-size: .875rem; gap: 12px; padding-left: 20px; }
.btn--lg { --btn-h: 62px; font-size: 1rem; padding-left: 30px; }
.btn--lg:has(.btn__icon--lead) { padding: 0 30px 0 8px; }

.link-arrow {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-weight: 700;
	font-size: .95rem;
	color: var(--fg);
}
.link-arrow span {
	background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
	transition: background-size .5s var(--ease);
	padding-bottom: 2px;
}
.link-arrow:hover span { background-size: 0 1px; background-position: 100% 100%; }
.link-arrow .icon {
	width: 38px;
	height: 38px;
	padding: 10px;
	border-radius: 50%;
	border: 1px solid var(--line-strong);
	transition: transform .5s var(--ease), background .5s var(--ease), color .5s var(--ease), border-color .5s var(--ease);
}
.link-arrow:hover .icon { transform: rotate(45deg); background: var(--red); border-color: var(--red); color: #fff; }

.tag {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-family: var(--font-tech);
	font-size: .6rem;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--red);
}
.tag::before {
	content: "";
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: currentColor;
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
	padding: 7px 14px;
	border: 1px solid var(--line);
	border-radius: 999px;
	background: var(--chip);
	font-size: .8125rem;
	font-weight: 600;
	line-height: 1.2;
}

/* Section head */
.section-head {
	display: grid;
	grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
	gap: 24px clamp(32px, 6vw, 110px);
	align-items: end;
	margin-bottom: clamp(36px, 4.2vw, 60px);
}
.section-head__main { display: grid; gap: 22px; }
.section-head__title {
	font-size: var(--fs-h2);
	font-weight: 700;
	line-height: 1.02;
	letter-spacing: -.035em;
	text-wrap: balance;
}
.section-head__title em { font-style: normal; color: var(--red); }
.section-head__side { display: grid; gap: 22px; justify-items: start; padding-bottom: 6px; }
.section-head__intro { color: var(--muted); font-size: var(--fs-lead); line-height: 1.55; max-width: 34em; }
.section-head--stack { grid-template-columns: 1fr; align-items: start; }
.section-head--xl .section-head__title { font-size: clamp(2.4rem, 1.3rem + 4vw, 5.2rem); }

/* Icônes */
.icon { width: 24px; height: 24px; flex: none; }

/* 5. Header ------------------------------------------------------------------ */
.site-header {
	position: fixed;
	inset: 0 0 auto;
	z-index: 100;
	height: var(--header-h);
	color: #f4f2ee;
	transition: transform .6s var(--ease), background .4s var(--ease), height .4s var(--ease), box-shadow .4s var(--ease);
}
.site-header::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background: rgba(11, 11, 12, .72);
	backdrop-filter: blur(18px) saturate(1.3);
	-webkit-backdrop-filter: blur(18px) saturate(1.3);
	border-bottom: 1px solid rgba(255, 255, 255, .08);
	opacity: 0;
	transition: opacity .4s var(--ease);
}
.site-header.is-scrolled { --header-h: 72px; }
.site-header.is-scrolled::before { opacity: 1; }
.site-header.is-hidden { transform: translateY(-110%); }
.site-header__inner {
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: center;
	gap: 32px;
	height: 100%;
	max-width: calc(var(--container-wide) + 2 * var(--gutter));
	margin-inline: auto;
	padding-inline: var(--gutter);
}

.brand {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	flex: none;
	white-space: nowrap;
	color: inherit;
}
.brand__mark {
	width: 40px;
	height: 40px;
	object-fit: contain;
	transition: transform .8s var(--ease);
}
.brand:hover .brand__mark { transform: rotate(-35deg) scale(1.06); }
.brand__name {
	font-family: var(--font-brand);
	font-size: 1.55rem;
	font-weight: 400;
	letter-spacing: -.01em;
	line-height: 1;
}

.site-nav { justify-self: center; }
.site-nav__list { display: flex; align-items: center; gap: clamp(14px, 1.9vw, 34px); }
.site-nav__list a {
	position: relative;
	display: block;
	height: 1.5em;
	line-height: 1.5;
	font-size: .78rem;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
	overflow: hidden;
}
.menu-label { position: relative; display: inline-block; transition: transform .5s var(--ease); }
.site-nav__list .menu-label::after {
	content: attr(data-text);
	position: absolute;
	left: 0;
	top: 100%;
	color: var(--red);
}
.site-nav__list a:hover .menu-label,
.site-nav__list a:focus-visible .menu-label { transform: translateY(-100%); }
.site-nav__list a[aria-current] { color: var(--red); }

.site-header__actions { display: flex; align-items: center; gap: 14px; }

.lang-switch {
	display: flex;
	align-items: center;
	padding: 4px;
	border: 1px solid rgba(255, 255, 255, .16);
	border-radius: 999px;
}
.lang-switch__item {
	display: grid;
	place-items: center;
	min-width: 34px;
	height: 28px;
	padding: 0 8px;
	border-radius: 999px;
	font-family: var(--font-tech);
	font-size: .58rem;
	letter-spacing: .1em;
	color: rgba(244, 242, 238, .7);
	transition: background .3s, color .3s;
}
a.lang-switch__item:hover { color: #fff; background: rgba(255, 255, 255, .1); }
.lang-switch__item.is-current { background: #f4f2ee; color: var(--ink); }
.lang-switch__item.is-soon { opacity: .4; cursor: not-allowed; }

.header-phone {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-size: .875rem;
	font-weight: 700;
	letter-spacing: .01em;
}
.header-phone__icon {
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	border: 1px solid rgba(255, 255, 255, .16);
	transition: background .4s var(--ease), border-color .4s var(--ease);
}
.header-phone__icon .icon { width: 17px; height: 17px; }
.header-phone:hover .header-phone__icon { background: var(--red); border-color: var(--red); }

.burger {
	display: none;
	align-items: center;
	gap: 12px;
	height: 46px;
	padding: 0 18px 0 14px;
	border: 1px solid rgba(255, 255, 255, .18);
	border-radius: 999px;
	background: transparent;
	font-size: .75rem;
	font-weight: 700;
	letter-spacing: .14em;
	text-transform: uppercase;
}
.burger__lines { position: relative; width: 20px; height: 10px; }
.burger__lines span {
	position: absolute;
	left: 0;
	height: 1.6px;
	border-radius: 2px;
	background: currentColor;
	transition: transform .5s var(--ease), width .5s var(--ease), top .5s var(--ease);
}
.burger__lines span:first-child { top: 0; width: 100%; }
.burger__lines span:last-child { top: 8px; width: 65%; }
.burger[aria-expanded="true"] .burger__lines span:first-child { top: 4px; transform: rotate(45deg); }
.burger[aria-expanded="true"] .burger__lines span:last-child { top: 4px; width: 100%; transform: rotate(-45deg); }

/* 6. Rails & curseur ---------------------------------------------------------- */
.rail {
	position: fixed;
	bottom: 36px;
	z-index: 90;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 18px;
	color: #f4f2ee;
	mix-blend-mode: difference;
	pointer-events: none;
}
.rail > * { pointer-events: auto; }
.rail--left { left: 22px; }
.rail--right { right: 22px; }
.rail__line { width: 1px; height: 56px; background: currentColor; opacity: .5; }
.rail__text {
	writing-mode: vertical-rl;
	transform: rotate(180deg);
	font-family: var(--font-tech);
	font-size: .56rem;
	letter-spacing: .28em;
	text-transform: uppercase;
	opacity: .75;
}
.socials--rail { display: grid; gap: 6px; }
.socials__link {
	display: grid;
	place-items: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	transition: background .4s var(--ease), transform .4s var(--ease);
}
.socials__link .icon { width: 18px; height: 18px; }
.socials__link:hover { transform: translateY(-2px); background: rgba(255, 255, 255, .14); }
.socials--row { display: flex; gap: 8px; }
.socials--row .socials__link { border: 1px solid var(--line-strong); }
.socials--row .socials__link:hover { background: var(--red); border-color: var(--red); color: #fff; }
.rail__count { font-family: var(--font-tech); font-size: .6rem; letter-spacing: .08em; display: flex; gap: 2px; }
.rail__sep { opacity: .45; }
.rail__progress { position: relative; width: 1px; height: 120px; background: rgba(255, 255, 255, .25); overflow: hidden; }
.rail__progress span { position: absolute; inset: 0; background: #fff; transform-origin: top; transform: scaleY(0); }

.cursor { position: fixed; left: 0; top: 0; width: 0; height: 0; z-index: 999; pointer-events: none; display: none; opacity: 0; transition: opacity .3s; }
.cursor.is-active { opacity: 1; }
.has-cursor .cursor { display: block; }
.cursor__dot,
.cursor__ring {
	position: fixed;
	top: 0;
	left: 0;
	border-radius: 50%;
	will-change: transform;
}
.cursor__dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: var(--red); }
.cursor__ring {
	display: grid;
	place-items: center;
	width: 84px;
	height: 84px;
	margin: -42px 0 0 -42px;
}
/* Le disque change de taille par transform (carte graphique), jamais par width / height (mise en page). */
.cursor__ring::before {
	content: "";
	position: absolute;
	inset: 0;
	border: 2px solid rgba(235, 22, 62, .6);
	border-radius: 50%;
	transform: scale(.45);
	transition: transform .45s var(--ease), background .45s var(--ease), border-color .45s var(--ease);
}
.cursor__label {
	position: relative;
	font-family: var(--font-tech);
	font-size: .55rem;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: #fff;
	opacity: 0;
	transition: opacity .3s;
}
.cursor.is-hover .cursor__ring::before { transform: scale(.67); border-color: var(--red); }
.cursor.is-label .cursor__ring::before { transform: scale(1); background: var(--red); border-color: var(--red); }
.cursor.is-label .cursor__label { opacity: 1; }
.cursor.is-label .cursor__dot { opacity: 0; }
.has-cursor .ba__viewport,
.has-cursor [data-cursor] { cursor: none; }

/* 7. Menu plein écran ----------------------------------------------------------- */
.menu-overlay {
	position: fixed;
	inset: 0;
	z-index: 95;
	color: #f4f2ee;
	--line: rgba(255, 255, 255, .12);
	--line-strong: rgba(255, 255, 255, .3);
	--muted: rgba(244, 242, 238, .6);
}
.menu-overlay[hidden] { display: none; }
.menu-overlay__bg { position: absolute; inset: 0; background: var(--ink); clip-path: circle(0% at calc(100% - 60px) 42px); transition: clip-path .8s var(--ease-io); }
.menu-overlay.is-open .menu-overlay__bg { clip-path: circle(150% at calc(100% - 60px) 42px); }
.menu-overlay__inner {
	position: relative;
	display: grid;
	grid-template-columns: 1.4fr 1fr;
	gap: 48px;
	height: 100%;
	padding: calc(var(--header-h) + 5vh) var(--gutter) 40px;
	overflow-y: auto;
}
.menu-overlay__list { display: grid; }
.menu-overlay__list a {
	display: flex;
	align-items: baseline;
	gap: 18px;
	padding: 10px 0;
	border-bottom: 1px solid var(--line);
	font-size: clamp(2rem, 1rem + 4.5vw, 4.2rem);
	font-weight: 700;
	letter-spacing: -.04em;
	line-height: 1.05;
	opacity: 0;
	transform: translateY(24px);
	transition: opacity .6s var(--ease), transform .6s var(--ease), color .3s;
}
.menu-overlay.is-open .menu-overlay__list a { opacity: 1; transform: none; }
.menu-overlay.is-open .menu-overlay__list li:nth-child(2) a { transition-delay: .06s; }
.menu-overlay.is-open .menu-overlay__list li:nth-child(3) a { transition-delay: .12s; }
.menu-overlay.is-open .menu-overlay__list li:nth-child(4) a { transition-delay: .18s; }
.menu-overlay.is-open .menu-overlay__list li:nth-child(5) a { transition-delay: .24s; }
.menu-overlay.is-open .menu-overlay__list li:nth-child(6) a { transition-delay: .3s; }
.menu-overlay__list a:hover { color: var(--red); }
.menu-num { font-family: var(--font-tech); font-size: .7rem; letter-spacing: .1em; color: var(--red); transform: translateY(-1.2em); }
.menu-overlay__aside { display: grid; align-content: end; gap: 18px; justify-items: start; opacity: 0; transition: opacity .6s .3s var(--ease); }
.menu-overlay.is-open .menu-overlay__aside { opacity: 1; }
.menu-overlay__big { font-size: clamp(1.6rem, 1rem + 2vw, 2.4rem); font-weight: 700; letter-spacing: -.02em; }
.menu-overlay__link { color: var(--muted); }
.menu-overlay__address { color: var(--muted); }
.menu-overlay .lang-switch { border-color: var(--line-strong); }

/* 8. Sections ---------------------------------------------------------------------- */

/* 8.1 Hero */
.s-hero {
	min-height: max(720px, 100svh);
	padding: calc(var(--header-h) + 12px) 0 28px;
	overflow: hidden;
}
.s-hero__glow {
	position: absolute;
	width: 60vw;
	aspect-ratio: 1;
	left: 25%;
	top: 30%;
	border-radius: 50%;
	background: radial-gradient(closest-side, rgba(235, 22, 62, .22), transparent 70%);
	filter: blur(20px);
	pointer-events: none;
}
.s-hero__inner {
	position: relative;
	z-index: 2;
	display: grid;
	grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
	gap: clamp(28px, 3.4vw, 56px);
	min-height: calc(max(720px, 100svh) - var(--header-h) - 40px);
	max-width: calc(var(--container-wide) + 2 * var(--gutter));
	margin-inline: auto;
	padding-left: var(--gutter);
}
.s-hero__content {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 26px;
	padding: 24px 0 8px;
	max-width: 780px;
}
.s-hero__title {
	font-size: var(--fs-hero);
	font-weight: 700;
	line-height: 1.02;
	letter-spacing: -.045em;
	text-wrap: balance;
}
.s-hero__accent {
	display: inline;
	color: transparent;
	-webkit-text-stroke: 1.5px var(--fg);
	font-weight: 700;
	background: linear-gradient(90deg, var(--red), var(--red)) 0 88% / 0 .12em no-repeat;
}
.s-hero__lead { max-width: 36em; color: var(--muted); font-size: var(--fs-lead); line-height: 1.6; }
.s-hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.s-hero__points {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 26px;
	padding-top: 22px;
	border-top: 1px solid var(--line);
	font-size: .875rem;
	font-weight: 600;
	color: var(--muted);
}
.s-hero__points li { display: inline-flex; align-items: center; gap: 10px; }
.s-hero__point-icon { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: rgba(235, 22, 62, .14); color: var(--red); }
.s-hero__point-icon .icon { width: 16px; height: 16px; }

.scroll-cue { display: inline-flex; align-items: center; gap: 14px; margin-top: 8px; font-size: .8rem; font-weight: 600; color: var(--muted); width: max-content; }
.scroll-cue__circle { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line-strong); transition: background .4s var(--ease), border-color .4s var(--ease); }
.scroll-cue__circle .icon { width: 18px; height: 18px; animation: nudge 2.2s var(--ease) infinite; }
.scroll-cue:hover .scroll-cue__circle { background: #fff; color: var(--ink); border-color: #fff; }

.s-hero__visual { position: relative; min-height: 560px; }
.s-hero__media {
	position: absolute;
	inset: 0;
	border-radius: var(--r-xl) 0 0 var(--r-xl);
	overflow: hidden;
	background: var(--ink-3);
}
.s-hero__frame { position: absolute; inset: -6% 0; }
.s-hero__img { width: 100%; height: 100%; object-fit: cover; }
.s-hero__shade {
	position: absolute;
	inset: 0;
	pointer-events: none;
	background:
		linear-gradient(180deg, rgba(11, 11, 12, .45) 0%, rgba(11, 11, 12, 0) 28%, rgba(11, 11, 12, 0) 60%, rgba(11, 11, 12, .7) 100%),
		linear-gradient(90deg, rgba(11, 11, 12, .55) 0%, rgba(11, 11, 12, 0) 35%);
}

.s-hero__orb {
	position: absolute;
	z-index: 3;
	left: 0;
	top: 5%;
	width: clamp(150px, 14vw, 230px);
	aspect-ratio: 1;
	translate: -50% 0;
	pointer-events: none;
}
.s-hero__orb::before {
	content: "";
	position: absolute;
	inset: -40%;
	border-radius: 50%;
	background: radial-gradient(closest-side, rgba(235, 22, 62, .45), rgba(235, 22, 62, 0));
	filter: blur(10px);
}
.s-hero__orb-fallback,
.s-hero__sphere { position: absolute; inset: 0; width: 100%; height: 100%; }
.s-hero__sphere { inset: -45%; width: 190%; height: 190%; }
.s-hero__orb.is-webgl .s-hero__orb-fallback { opacity: 0; }
.s-hero__orb-fallback { filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .5)); animation: float 8s ease-in-out infinite; }

.feature-card {
	position: absolute;
	z-index: 4;
	left: 0;
	bottom: 36px;
	width: min(400px, 78%);
	transform: translateX(-26%);
	display: grid;
	gap: 16px;
	padding: 22px 22px 18px;
	border-radius: var(--r-m);
	background: var(--red);
	color: #fff;
	box-shadow: 0 40px 70px -30px rgba(235, 22, 62, .55), 0 20px 40px -20px rgba(0, 0, 0, .6);
}
.feature-card__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.feature-card__count { font-size: 1.9rem; font-weight: 700; letter-spacing: -.04em; line-height: 1; }
.feature-card__total { font-size: .9rem; opacity: .7; letter-spacing: 0; margin-left: 2px; }
.feature-card__eyebrow { font-family: var(--font-tech); font-size: .58rem; letter-spacing: .2em; text-transform: uppercase; opacity: .85; }
.feature-card__slides { position: relative; display: grid; }
.feature-card__slide {
	grid-area: 1 / 1;
	display: grid;
	grid-template-columns: 84px 1fr;
	gap: 16px;
	align-items: center;
	opacity: 0;
	visibility: hidden;
	transform: translateY(10px);
	transition: opacity .6s var(--ease), transform .6s var(--ease), visibility .6s;
}
.feature-card__slide.is-active { opacity: 1; visibility: visible; transform: none; }
.feature-card__thumb { width: 84px; aspect-ratio: 1; border-radius: var(--r-s); overflow: hidden; background: var(--red-deep); }
.feature-card__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.feature-card__slide:hover .feature-card__thumb img { transform: scale(1.08); }
.feature-card__text { display: grid; gap: 4px; }
.feature-card__tech { font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; opacity: .8; }
.feature-card__title { font-size: 1.12rem; font-weight: 700; line-height: 1.2; letter-spacing: -.01em; }
.feature-card__nav { display: grid; grid-template-columns: 1fr auto auto; gap: 8px; align-items: center; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .25); }
.feature-card__progress { position: relative; height: 2px; background: rgba(255, 255, 255, .25); overflow: hidden; border-radius: 2px; margin-right: 10px; }
.feature-card__progress span { position: absolute; inset: 0; background: #fff; transform-origin: left; transform: scaleX(0); }
.feature-card__arrow { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid rgba(255, 255, 255, .35); border-radius: 50%; background: transparent; transition: background .3s, color .3s; }
.feature-card__arrow .icon { width: 16px; height: 16px; }
.feature-card__arrow:hover { background: #fff; color: var(--red); }

/* Hotspots */
.hotspots { position: absolute; inset: 0; z-index: 2; }
.hotspot { position: absolute; left: var(--x); top: calc(var(--y) + var(--shift, 0px)); width: 0; height: 0; }
.hotspot.is-off { display: none; } /* point hors du cadrage visible de la photo */
.hotspot__btn {
	position: absolute;
	left: -19px;
	top: -19px;
	display: inline-flex;
	align-items: center;
	gap: 12px;
	padding: 0;
	border: 0;
	background: none;
	color: #fff;
}
.hotspot__btn > .icon {
	position: relative;
	z-index: 1;
	width: 38px;
	height: 38px;
	padding: 10px;
	border-radius: 50%;
	background: var(--red);
	stroke-width: 2.2;
	box-shadow: 0 8px 24px -6px rgba(235, 22, 62, .8);
	transition: transform .5s var(--ease), background .3s;
}
.hotspot__pulse { position: absolute; left: 0; top: 0; width: 38px; height: 38px; border-radius: 50%; background: var(--red); opacity: .5; animation: ping 2.2s var(--ease) infinite; }
.hotspot__label {
	padding: 7px 12px;
	border-radius: 999px;
	background: rgba(11, 11, 12, .55);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	font-size: .78rem;
	font-weight: 700;
	white-space: nowrap;
	transition: background .3s;
}
.hotspot--left .hotspot__btn { left: auto; right: -19px; flex-direction: row-reverse; }
.hotspot__btn[aria-expanded="true"] > .icon { transform: rotate(135deg); background: #fff; color: var(--red); }
.hotspot__btn:hover .hotspot__label { background: rgba(11, 11, 12, .8); }
.hotspot.is-open { z-index: 5; }
.hotspot__card {
	position: absolute;
	top: 30px;
	left: -19px;
	z-index: 3;
	width: 260px;
	padding: 18px 20px;
	border: 1px solid rgba(255, 255, 255, .14);
	border-radius: var(--r-m);
	background: rgba(17, 17, 19, .78);
	backdrop-filter: blur(18px) saturate(1.4);
	-webkit-backdrop-filter: blur(18px) saturate(1.4);
	color: #f4f2ee;
	box-shadow: var(--shadow-card);
	opacity: 0;
	visibility: hidden;
	transform: translateY(8px) scale(.97);
	transform-origin: top left;
	transition: opacity .4s var(--ease), transform .5s var(--ease), visibility .4s;
}
.hotspot--left .hotspot__card { left: auto; right: -19px; transform-origin: top right; }
.hotspot.is-open .hotspot__card { opacity: 1; visibility: visible; transform: none; }
.hotspot.is-up .hotspot__card { top: auto; bottom: 30px; transform-origin: bottom left; }
.hotspot__title { font-weight: 700; font-size: 1rem; margin-bottom: 6px; }
.hotspot__text { font-size: .875rem; line-height: 1.5; color: rgba(244, 242, 238, .72); }


/* Pastilles discrètes : le libellé n'apparaît qu'au survol ou à l'ouverture. */
.hotspots--compact .hotspot__label { opacity: 0; transform: translateX(-6px); transition: opacity .35s var(--ease), transform .45s var(--ease), background .3s; pointer-events: none; }
.hotspots--compact .hotspot--left .hotspot__label { transform: translateX(6px); }
.hotspots--compact .hotspot:hover .hotspot__label,
.hotspots--compact .hotspot.is-open .hotspot__label,
.hotspots--compact .hotspot__btn:focus-visible .hotspot__label { opacity: 1; transform: none; }

/* 8.2 Bandeau de confiance */
.s-trust { padding: 0 0 clamp(40px, 5vw, 64px); border-bottom: 1px solid var(--line); }
.s-trust__items {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	border-top: 1px solid var(--line);
}
.s-trust__item { display: flex; align-items: center; gap: 16px; padding: 30px 24px 30px 0; }
.s-trust__item + .s-trust__item { padding-left: 24px; border-left: 1px solid var(--line); }
.s-trust__icon { display: grid; place-items: center; width: 52px; height: 52px; flex: none; border-radius: 50%; border: 1px solid var(--line-strong); color: var(--red); }
.s-trust__text { display: grid; gap: 2px; line-height: 1.3; }
.s-trust__text strong { font-size: 1.05rem; letter-spacing: -.01em; }
.s-trust__text span { font-size: .85rem; color: var(--muted); }

.marquee { display: flex; overflow: hidden; padding-top: clamp(24px, 3vw, 40px); user-select: none; -webkit-mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { display: flex; flex: none; animation: marquee 110s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__group { display: flex; align-items: center; flex: none; }
.marquee__word {
	padding: 0 .45em;
	font-size: clamp(2.6rem, 1.5rem + 4.4vw, 6rem);
	font-weight: 800;
	letter-spacing: -.045em;
	line-height: 1.1;
	white-space: nowrap;
}
.marquee__word.is-outline { color: transparent; -webkit-text-stroke: 1.2px rgba(244, 242, 238, .55); }
.marquee__sep {
	width: .42em;
	height: .42em;
	flex: none;
	font-size: clamp(2.6rem, 1.5rem + 4.4vw, 6rem);
	border-radius: 50%;
	background: url("../images/logo-sphere.webp") center / contain no-repeat;
}

/* 8.3 Prestations */
.s-services { padding: var(--section-y) 0; }

/* 8.3 bis Cartes de prestations (grille / slider) */
.svc-grid { display: grid; gap: clamp(16px, 1.8vw, 26px); }
.svc-grid--3 { grid-template-columns: repeat(3, 1fr); }
.svc-grid--2 { grid-template-columns: repeat(2, 1fr); }
.svc-card { display: flex; }
.svc-card__link { display: flex; flex-direction: column; width: 100%; border: 1px solid var(--line); border-radius: var(--r-l); overflow: hidden; background: var(--card); transition: transform .6s var(--ease), box-shadow .6s var(--ease), border-color .6s var(--ease); }
.svc-card__link:hover { transform: translateY(-6px); border-color: transparent; box-shadow: 0 34px 60px -36px rgba(0, 0, 0, .45); }
.svc-card__media { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--ink-3); }
.svc-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.svc-card__link:hover .svc-card__media img { transform: scale(1.06); }
.svc-card__num { position: absolute; left: 16px; top: 16px; display: grid; place-items: center; min-width: 38px; height: 28px; padding: 0 10px; border-radius: 999px; background: rgba(11, 11, 12, .6); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); font-family: var(--font-tech); font-size: .55rem; color: #fff; }
.svc-card__body { display: flex; flex-direction: column; gap: 10px; flex: 1; padding: clamp(20px, 2vw, 28px); }
.svc-card__title { font-size: 1.3rem; font-weight: 700; letter-spacing: -.025em; line-height: 1.2; }
.svc-card__text { color: var(--muted); font-size: .95rem; line-height: 1.55; }
.svc-card__more { display: inline-flex; align-items: center; gap: 10px; margin-top: auto; padding-top: 12px; font-size: .88rem; font-weight: 700; color: var(--fg); }
.svc-card__more .icon { width: 34px; height: 34px; padding: 8px; border-radius: 50%; border: 1px solid var(--line-strong); transition: background .4s var(--ease), color .4s var(--ease), border-color .4s var(--ease), transform .5s var(--ease); }
.svc-card__link:hover .svc-card__more .icon { background: var(--red); border-color: var(--red); color: #fff; transform: translateX(4px); }

.slider { position: relative; }
.slider__track {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: clamp(280px, 27vw, 400px);
	gap: clamp(16px, 1.8vw, 26px);
	padding: 4px max(var(--gutter), calc((100vw - var(--container)) / 2)) 30px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-padding-inline: max(var(--gutter), calc((100vw - var(--container)) / 2));
	scrollbar-width: none;
	cursor: grab;
}
.slider__track::-webkit-scrollbar { display: none; }
.slider__track.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.slider__track.is-dragging a { pointer-events: none; }
.slider__track .svc-card { scroll-snap-align: start; }
.slider__nav { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: center; margin-top: 8px; }
.slider__progress { position: relative; height: 2px; margin-right: 20px; border-radius: 2px; background: var(--line); overflow: hidden; }
.slider__progress span { position: absolute; inset: 0; background: var(--red); transform-origin: left; transform: scaleX(.2); transition: transform .3s var(--ease); }
.slider__arrow { display: grid; place-items: center; width: 52px; height: 52px; border: 1px solid var(--line-strong); border-radius: 50%; background: transparent; transition: background .3s, color .3s, border-color .3s; }
.slider__arrow .icon { width: 20px; height: 20px; }
.slider__arrow:hover { background: var(--red); border-color: var(--red); color: #fff; }
.slider__arrow:disabled { opacity: .35; pointer-events: none; }
@media (max-width: 1180px) { .svc-grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 700px) { .svc-grid--3, .svc-grid--2 { grid-template-columns: 1fr; } .slider__track { grid-auto-columns: 82vw; } }

/* 8.4 Avant / après */
.s-ba { padding: var(--section-y) 0; }
.ba { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); gap: clamp(24px, 3vw, 48px); align-items: start; }
.ba__stage { position: relative; }
.ba__panel { position: relative; }
.ba__panel[hidden] { display: none; }
.ba__viewport {
	position: relative;
	aspect-ratio: 4 / 3;
	border-radius: var(--r-l);
	overflow: hidden;
	background: var(--ink-3);
	touch-action: pan-y;
	user-select: none;
	-webkit-user-select: none;
}
.ba__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba__before { position: absolute; inset: 0; clip-path: inset(0 50% 0 0); }
.ba__canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; }
.ba[data-mode="scratch"] .ba__before { visibility: hidden; }
.ba[data-mode="scratch"] .ba__handle,
.ba[data-mode="scratch"] .ba__range { display: none; }
.ba[data-mode="slider"] .ba__canvas { display: none; }
.ba__badge {
	position: absolute;
	top: 18px;
	z-index: 3;
	padding: 8px 14px;
	border-radius: 999px;
	background: rgba(11, 11, 12, .6);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	font-family: var(--font-tech);
	font-size: .58rem;
	letter-spacing: .18em;
	text-transform: uppercase;
	color: #fff;
	pointer-events: none;
}
.ba__badge--before { left: 18px; }
.ba__badge--after { right: 18px; background: var(--red); }
.ba__handle {
	position: absolute;
	top: 0;
	bottom: 0;
	left: var(--pos, 50%);
	z-index: 3;
	width: 2px;
	margin-left: -1px;
	background: #fff;
	pointer-events: none;
}
.ba__handle span {
	position: absolute;
	top: 50%;
	left: 50%;
	display: grid;
	place-items: center;
	width: 56px;
	height: 56px;
	margin: -28px 0 0 -28px;
	border-radius: 50%;
	background: #fff;
	color: var(--ink);
	box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
}
.ba__range { position: absolute; inset: 0; z-index: 4; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.ba__range:focus-visible + * { outline: none; }
.ba__viewport:has(.ba__range:focus-visible) { outline: 2px solid var(--red); outline-offset: 4px; }
.ba__hint {
	position: absolute;
	left: 50%;
	top: calc(50% - 38px);
	z-index: 5;
	display: inline-flex;
	align-items: center;
	gap: 12px;
	padding: 12px 20px 12px 12px;
	border-radius: 999px;
	background: rgba(11, 11, 12, .72);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	font-size: .85rem;
	font-weight: 700;
	color: #fff;
	transform: translate(-50%, -50%);
	pointer-events: none;
	transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.ba__hint-icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--red); }
.ba__hint-icon .icon { width: 18px; height: 18px; animation: wave 1.8s var(--ease) infinite; }
.ba.is-touched .ba__hint,
.ba[data-mode="slider"] .ba__hint { opacity: 0; transform: translate(-50%, -30%); }
.ba__toolbar { display: flex; align-items: center; gap: 16px; margin-top: 18px; }
.ba__modes { display: inline-flex; padding: 5px; border: 1px solid var(--line); border-radius: 999px; background: var(--chip); }
.ba__mode { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border: 0; border-radius: 999px; background: transparent; font-size: .85rem; font-weight: 700; color: var(--muted); transition: background .35s var(--ease), color .35s var(--ease); }
.ba__mode .icon { width: 18px; height: 18px; }
.ba__mode.is-active { background: #fff; color: var(--ink); }
.ba__meter { display: flex; align-items: center; gap: 12px; flex: 1; font-family: var(--font-tech); font-size: .6rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.ba__meter-bar { position: relative; flex: 1; height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; }
.ba__meter-bar span { position: absolute; inset: 0; background: var(--red); transform-origin: left; transform: scaleX(0); transition: transform .3s var(--ease); }
.ba__meter-value { white-space: nowrap; min-width: 8.5em; text-align: right; }
.ba[data-mode="slider"] .ba__meter { visibility: hidden; }
.ba__reset { display: grid; place-items: center; width: 50px; height: 50px; border: 1px solid var(--line-strong); border-radius: 50%; background: transparent; transition: transform .6s var(--ease), background .3s, color .3s; }
.ba__reset .icon { width: 20px; height: 20px; }
.ba__reset:hover { transform: rotate(-180deg); background: #fff; color: var(--ink); }

.ba__list { display: grid; border-top: 1px solid var(--line); }
.ba__item {
	position: relative;
	display: grid;
	grid-template-columns: minmax(0, 1fr) 72px;
	gap: 6px 16px;
	padding: 20px 0;
	border-bottom: 1px solid var(--line);
}
.ba__item::before { content: ""; position: absolute; left: 0; bottom: -1px; height: 2px; width: 100%; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); }
.ba__item.is-active::before { transform: scaleX(1); }
.ba__item-title { grid-column: 1; font-size: 1.2rem; font-weight: 700; letter-spacing: -.02em; line-height: 1.25; }
.ba__item-title button { display: flex; align-items: baseline; gap: 14px; width: 100%; padding: 0; border: 0; background: none; text-align: left; }
.ba__item-title button::after { content: ""; position: absolute; inset: 0; }
.ba__item-num { font-family: var(--font-tech); font-size: .62rem; color: var(--faint); letter-spacing: .1em; }
.ba__item.is-active .ba__item-num { color: var(--red); }
.ba__item-meta { grid-column: 1; padding-left: 36px; font-size: .875rem; color: var(--muted); line-height: 1.5; }
.ba__item-meta .tag { margin-right: 6px; }
.ba__item-thumb { grid-column: 2; grid-row: 1 / span 2; align-self: center; width: 72px; aspect-ratio: 1; border-radius: var(--r-s); overflow: hidden; opacity: .5; filter: grayscale(1); transition: opacity .5s var(--ease), filter .5s var(--ease); }
.ba__item-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ba__item.is-active .ba__item-thumb,
.ba__item:hover .ba__item-thumb { opacity: 1; filter: none; }
.ba__item:not(.is-active) .ba__item-name { color: var(--muted); transition: color .3s; }
.ba__item:hover .ba__item-name { color: var(--fg); }

/* 8.5 Matériaux */
.s-materials { padding: var(--section-y) 0; }
.materials { display: flex; gap: 12px; height: clamp(440px, 42vw, 600px); }
.material {
	position: relative;
	flex: 1 1 0;
	min-width: 0;
	border-radius: var(--r-l);
	overflow: hidden;
	color: #fff;
	background: var(--ink-3);
	cursor: pointer;
	transition: flex-grow .9s var(--ease);
	outline-offset: 4px;
}
.material.is-open { flex-grow: 4.2; }
.material__media { position: absolute; inset: 0; }
.material__media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); transition: transform 1.4s var(--ease), filter .9s var(--ease); filter: grayscale(.6) brightness(.72); }
.material.is-open .material__media img { transform: scale(1); filter: none; }
.material::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11, 11, 12, .1) 30%, rgba(11, 11, 12, .85) 100%); pointer-events: none; }
.material__index { position: absolute; top: 22px; left: 22px; z-index: 2; font-family: var(--font-tech); font-size: .62rem; letter-spacing: .12em; }
.material__vertical {
	position: absolute;
	left: 50%;
	bottom: 26px;
	z-index: 2;
	writing-mode: vertical-rl;
	transform: translateX(-50%) rotate(180deg);
	font-size: 1.3rem;
	font-weight: 700;
	letter-spacing: -.01em;
	white-space: nowrap;
	transition: opacity .4s var(--ease);
}
.material.is-open .material__vertical { opacity: 0; }
.material__body {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 2;
	display: grid;
	gap: 12px;
	padding: clamp(22px, 2.6vw, 36px);
	width: min(100%, 560px);
	opacity: 0;
	transform: translateY(20px);
	transition: opacity .5s var(--ease), transform .7s var(--ease);
}
.material.is-open .material__body { opacity: 1; transform: none; transition-delay: .25s; }
.material__title { font-size: clamp(1.8rem, 1.3rem + 1.6vw, 2.8rem); font-weight: 700; letter-spacing: -.04em; line-height: 1; }
.material__text { color: rgba(255, 255, 255, .8); max-width: 30em; }
.material .chip { border-color: rgba(255, 255, 255, .28); background: rgba(255, 255, 255, .1); backdrop-filter: blur(6px); }

/* 8.6 Charpente */
.s-charpente { padding: var(--section-y) 0; overflow: clip; }
.s-charpente__bg { position: absolute; inset: -10% 0; opacity: .22; }
.s-charpente__bg img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.4); }
.s-charpente::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	background:
		radial-gradient(60% 50% at 15% 20%, rgba(235, 22, 62, .22), transparent 70%),
		linear-gradient(180deg, var(--ink) 0%, rgba(11, 11, 12, .6) 30%, rgba(11, 11, 12, .75) 70%, var(--ink) 100%);
}
.s-charpente__grid { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 110px); }
.s-charpente__sticky { position: sticky; top: calc(var(--header-h) + 40px); display: grid; gap: 26px; justify-items: start; }
.s-charpente__title { font-size: clamp(2.2rem, 1.2rem + 3.4vw, 4.4rem); font-weight: 700; line-height: 1; letter-spacing: -.04em; text-wrap: balance; }
.s-charpente__lead { color: var(--muted); font-size: var(--fs-lead); max-width: 32em; }
.threats { display: flex; flex-wrap: wrap; gap: 10px; }
.threat { display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px 10px 12px; border: 1px solid rgba(235, 22, 62, .45); border-radius: 999px; background: rgba(235, 22, 62, .1); font-weight: 700; font-size: .9rem; }
.threat .icon { width: 20px; height: 20px; color: var(--red); }
.s-charpente__cards { display: grid; gap: clamp(24px, 3vw, 40px); padding-top: clamp(0px, 8vw, 120px); }
.treat-card { border: 1px solid var(--line); border-radius: var(--r-l); overflow: hidden; background: rgba(24, 24, 27, .8); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: var(--shadow-card); }
.treat-card__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.treat-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.treat-card:hover .treat-card__media img { transform: scale(1.05); }
.treat-card__badge { position: absolute; left: 20px; top: 20px; display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 8px; border-radius: 999px; background: var(--red); font-weight: 700; font-size: .85rem; }
.treat-card__badge span { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: rgba(255, 255, 255, .2); font-family: var(--font-tech); font-size: .55rem; }
.treat-card__body { display: grid; gap: 20px; padding: clamp(24px, 2.6vw, 36px); }
.treat-card__title { font-size: var(--fs-h3); font-weight: 700; letter-spacing: -.02em; line-height: 1.2; }
.checklist { display: grid; gap: 12px; }
.checklist li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; align-items: start; color: var(--muted); }
.checklist .icon { width: 26px; height: 26px; padding: 5px; border-radius: 50%; background: rgba(235, 22, 62, .16); color: var(--red); stroke-width: 2.4; }

/* 8.7 Atelier */
.s-atelier { padding: var(--section-y) 0; }
.s-atelier__grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.hotspot-figure { position: relative; }
.hotspot-figure__frame { position: relative; aspect-ratio: 4 / 3; border-radius: var(--r-l); overflow: hidden; background: var(--ink-3); }
.hotspot-figure__frame img { width: 100%; height: 100%; object-fit: cover; }
.features { display: grid; gap: 8px; }
.feature { display: grid; grid-template-columns: 56px 1fr; gap: 20px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.feature:first-child { border-top: 1px solid var(--line); }
.feature__icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: #fff; color: var(--red); box-shadow: 0 10px 30px -14px rgba(0, 0, 0, .25); }
.feature__title { font-size: 1.25rem; font-weight: 700; letter-spacing: -.02em; line-height: 1.25; margin-bottom: 6px; }
.feature__text { color: var(--muted); font-size: .98rem; }
.gallery-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: clamp(32px, 4vw, 56px); }

.zoomable {
	position: relative;
	display: block;
	width: 100%;
	padding: 0;
	border: 0;
	border-radius: var(--r-m);
	overflow: hidden;
	background: var(--ink-3);
}
.gallery-strip .zoomable { aspect-ratio: 4 / 3; }
.zoomable img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), filter .6s var(--ease); }
.zoomable:hover img { transform: scale(1.07); }
.zoomable__icon { position: absolute; right: 14px; bottom: 14px; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, .92); color: var(--ink); opacity: 0; transform: scale(.7); transition: opacity .4s var(--ease), transform .5s var(--ease); }
.zoomable__icon .icon { width: 20px; height: 20px; }
.zoomable:hover .zoomable__icon,
.zoomable:focus-visible .zoomable__icon { opacity: 1; transform: none; }

/* 8.8 Chiffres */
.s-figures { padding: clamp(64px, 7vw, 110px) 0; overflow: hidden; }
.s-figures__pattern {
	position: absolute;
	right: -12vw;
	top: 50%;
	width: 58vw;
	aspect-ratio: 1;
	transform: translateY(-50%);
	border-radius: 50%;
	background: repeating-radial-gradient(circle at 30% 20%, rgba(255, 255, 255, .0) 0 22px, rgba(255, 255, 255, .09) 22px 24px);
	opacity: .9;
	pointer-events: none;
}
.s-figures__inner { position: relative; display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 3fr); gap: 40px; align-items: start; }
.s-figures__title { font-family: var(--font-tech); font-size: .7rem; font-weight: 400; letter-spacing: .2em; text-transform: uppercase; padding-top: 12px; }
.figures { display: grid; grid-template-columns: repeat(4, 1fr); }
.figure { padding: 0 clamp(16px, 2vw, 32px); border-left: 1px solid var(--line); }
.figure__value { display: flex; align-items: baseline; gap: 6px; font-size: clamp(3rem, 1.5rem + 4.4vw, 6.4rem); font-weight: 800; letter-spacing: -.06em; line-height: .95; font-variant-numeric: tabular-nums; }
.figure__unit { font-size: .38em; font-weight: 700; letter-spacing: -.02em; }
.figure__label { margin-top: 14px; color: var(--muted); font-weight: 600; font-size: .95rem; max-width: 14em; line-height: 1.4; }

/* 8.9 Déroulement */
.s-process { padding: var(--section-y) 0; }
.steps-wrap { position: relative; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(20px, 2.4vw, 40px); counter-reset: step; }
.steps__line { position: absolute; left: 0; right: 0; top: 36px; height: 1px; background: var(--line); }
.steps__line span { position: absolute; inset: 0; background: linear-gradient(90deg, var(--red), rgba(235, 22, 62, .2)); transform-origin: left; transform: scaleX(0); }
.step { position: relative; display: grid; gap: 14px; align-content: start; }
.step__num {
	display: grid;
	place-items: center;
	width: 72px;
	height: 72px;
	margin-bottom: 14px;
	border-radius: 50%;
	border: 1px solid var(--line-strong);
	background: var(--bg);
	font-family: var(--font-tech);
	font-size: .8rem;
	letter-spacing: .08em;
	transition: background .5s var(--ease), border-color .5s var(--ease);
}
.step:hover .step__num { background: var(--red); border-color: var(--red); }
.step__title { font-size: 1.3rem; font-weight: 700; letter-spacing: -.02em; line-height: 1.25; }
.step__text { color: var(--muted); font-size: .98rem; }

/* 8.10 Réalisations */
.s-work { padding: var(--section-y) 0; }
.work { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(16px, 2vw, 28px); }
.project { grid-column: span 4; }
.project--1 { grid-column: span 7; grid-row: span 2; }
.project--2,
.project--3 { grid-column: span 5; }
.project article { display: grid; gap: 16px; height: 100%; grid-template-rows: 1fr auto; }
.project .zoomable { aspect-ratio: 4 / 3; height: 100%; }
.project--1 .zoomable { aspect-ratio: auto; min-height: 100%; }
.project__meta { display: grid; gap: 6px; }
.project__title { font-size: 1.2rem; font-weight: 700; letter-spacing: -.02em; line-height: 1.3; }
.project--1 .project__title { font-size: 1.6rem; }
.project__place { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: .875rem; }
.project__place .icon { width: 16px; height: 16px; }

/* 8.11 Zones */
.s-zones { padding: var(--section-y) 0; overflow: hidden; }
.s-zones__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(32px, 6vw, 100px); align-items: center; }
.s-zones .section-head { margin-bottom: 40px; }
.zones { display: grid; }
.zone { display: grid; gap: 14px; padding: 22px 0; border-top: 1px solid var(--line); transition: opacity .4s; }
.zone__title { display: flex; align-items: center; gap: 12px; font-size: 1.35rem; font-weight: 700; letter-spacing: -.02em; }
.zone__swatch { width: 12px; height: 12px; border-radius: 50%; background: var(--zone-color); box-shadow: 0 0 0 4px color-mix(in srgb, var(--zone-color) 25%, transparent); }
.zone--jura { --zone-color: var(--red); }
.zone--jura-bernois { --zone-color: #f4f2ee; }
.zone--neuchatel { --zone-color: var(--sand); }
.zones:hover .zone:not(:hover) { opacity: .45; }
.s-zones__note { display: flex; align-items: center; gap: 10px; margin-top: 24px; color: var(--muted); font-size: .9rem; }
.s-zones__note .icon { color: var(--red); }

.radar { position: relative; display: grid; gap: 16px; justify-items: center; }
.radar__svg { width: 100%; max-width: 640px; overflow: visible; font-family: var(--font); }
.radar__disc { fill: rgba(255, 255, 255, .02); stroke: rgba(255, 255, 255, .08); stroke-width: .3; }
.radar__ring { fill: none; stroke: rgba(255, 255, 255, .12); stroke-width: .25; stroke-dasharray: 1 1.4; }
.radar__axis { stroke: rgba(255, 255, 255, .07); stroke-width: .25; }
.radar__km { fill: rgba(244, 242, 238, .38); font-size: 2.6px; font-family: var(--font-tech); letter-spacing: .1px; }
.radar__sweep { transform-origin: 0 0; animation: sweep 7s linear infinite; }
.radar__sweep path { fill: url(#radar-glow); fill: rgba(235, 22, 62, .09); }
.radar__place { --c: var(--red); transition: opacity .4s; }
.radar__place--jura-bernois { --c: #f4f2ee; }
.radar__place--neuchatel { --c: var(--sand); }
.radar__dot { fill: var(--c); }
.radar__label { fill: rgba(244, 242, 238, .85); font-size: 3.3px; font-weight: 700; dominant-baseline: middle; paint-order: stroke; stroke: var(--ink); stroke-width: 1.2px; stroke-linejoin: round; }
.radar__label.is-left { text-anchor: end; }
.radar__center { fill: var(--red); }
.radar__pulse { fill: none; stroke: var(--red); stroke-width: .5; transform-origin: 0 0; animation: radar-pulse 2.6s var(--ease) infinite; }
.radar__home-label { fill: #fff; font-size: 3.6px; font-weight: 800; text-anchor: middle; }
.radar.is-focus .radar__place:not(.is-focus) { opacity: .15; }
.radar__caption { display: inline-flex; align-items: center; gap: 8px; font-size: .85rem; color: var(--muted); }
.radar__caption .icon { width: 18px; height: 18px; color: var(--red); }

/* 8.12 Références */
.s-refs { padding: var(--section-y) 0; overflow: hidden; }
.logos { display: grid; gap: 16px; -webkit-mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.logos__row { display: flex; overflow: hidden; }
.logos__group { display: flex; flex: none; gap: 16px; padding-right: 16px; animation: marquee 90s linear infinite; }
.logos__row--reverse .logos__group { animation-direction: reverse; animation-duration: 100s; }
.logos:hover .logos__group { animation-play-state: paused; }
.logos__item {
	display: grid;
	place-items: center;
	width: 200px;
	height: 112px;
	padding: 18px 24px;
	border: 1px solid var(--line);
	border-radius: var(--r-m);
	background: #fff;
	transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .5s var(--ease);
}
.logos__item img { max-width: 100%; max-height: 76px; width: auto; height: auto; object-fit: contain; filter: grayscale(1) contrast(1.05); opacity: .8; transition: filter .5s var(--ease), opacity .5s var(--ease); }
.logos__item:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -20px rgba(0, 0, 0, .35); border-color: transparent; }
.logos__item:hover img { filter: none; opacity: 1; }

/* 8.13 FAQ */
.s-faq { padding: var(--section-y) 0; }
.s-faq__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: clamp(32px, 6vw, 110px); align-items: start; }
.s-faq__intro { position: sticky; top: calc(var(--header-h) + 40px); display: grid; gap: 8px; justify-items: start; }
.s-faq__intro .section-head { margin-bottom: 20px; }
.faq { display: grid; border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__summary { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 26px 0; cursor: pointer; list-style: none; }
.faq__summary::-webkit-details-marker { display: none; }
.faq__q { font-size: clamp(1.1rem, 1rem + .45vw, 1.35rem); font-weight: 700; letter-spacing: -.02em; line-height: 1.35; transition: color .3s; }
.faq__summary:hover .faq__q { color: var(--red); }
.faq__icon { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 50%; border: 1px solid var(--line-strong); transition: transform .5s var(--ease), background .4s, color .4s, border-color .4s; }
.faq__icon .icon { width: 18px; height: 18px; }
.faq__item[open] .faq__icon { transform: rotate(135deg); background: var(--red); border-color: var(--red); color: #fff; }
.faq__a { overflow: hidden; }
.faq__a p { padding: 0 64px 28px 0; color: var(--muted); font-size: 1.02rem; line-height: 1.7; }

/* 8.14 Contact */
.s-contact { padding: var(--section-y) 0; overflow: hidden; }
.s-contact::before { content: ""; position: absolute; right: -20vw; bottom: -30vw; width: 70vw; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, rgba(235, 22, 62, .18), transparent 70%); pointer-events: none; }
.s-contact__grid { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(40px, 6vw, 100px); align-items: start; }
.s-contact__info { display: grid; gap: 36px; }
.s-contact__info .section-head { margin-bottom: 0; }
.contact-list { display: grid; gap: 22px; }
.contact-list li { display: grid; grid-template-columns: 52px 1fr; gap: 18px; align-items: center; }
.contact-list__icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line-strong); color: var(--red); }
.contact-list__label { display: block; font-family: var(--font-tech); font-size: .58rem; letter-spacing: .18em; text-transform: uppercase; color: var(--faint); margin-bottom: 4px; }
.contact-list a { font-weight: 600; transition: color .3s; }
.contact-list a:hover { color: var(--red); }
.contact-list__big { font-size: clamp(1.5rem, 1.1rem + 1.3vw, 2.2rem); font-weight: 700 !important; letter-spacing: -.03em; }
.s-contact__photo { border-radius: var(--r-l); overflow: hidden; aspect-ratio: 16 / 9; }
.s-contact__photo img { width: 100%; height: 100%; object-fit: cover; }

.form {
	display: grid;
	gap: 22px;
	padding: clamp(26px, 3.4vw, 48px);
	border: 1px solid var(--line);
	border-radius: var(--r-xl);
	background: linear-gradient(160deg, rgba(34, 34, 38, .9), rgba(20, 20, 22, .9));
	box-shadow: var(--shadow-card);
}
.form__title { font-size: 1.5rem; font-weight: 700; letter-spacing: -.02em; }
.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: .8rem; font-weight: 700; letter-spacing: .02em; color: var(--muted); }
.field label span { color: var(--red); }
.field input,
.field select,
.field textarea {
	width: 100%;
	min-height: 54px;
	padding: 14px 18px;
	border: 1px solid var(--line);
	border-radius: var(--r-s);
	background: rgba(255, 255, 255, .04);
	color: var(--fg);
	font: inherit;
	font-size: 1rem;
	transition: border-color .3s, background .3s, box-shadow .3s;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:hover,
.field select:hover,
.field textarea:hover { border-color: var(--line-strong); }
.field input:focus,
.field select:focus,
.field textarea:focus { outline: none; border-color: var(--red); background: rgba(255, 255, 255, .07); box-shadow: 0 0 0 4px rgba(235, 22, 62, .18); }
.field [aria-invalid="true"] { border-color: var(--red); }
.field ::placeholder { color: var(--faint); }
.select { position: relative; display: block; }
.select select { appearance: none; -webkit-appearance: none; padding-right: 44px; }
.select select option { color: #111; }
.select::after { content: ""; position: absolute; right: 20px; top: 50%; width: 8px; height: 8px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: translateY(-70%) rotate(45deg); pointer-events: none; }

.field--check { display: flex; align-items: flex-start; gap: 12px; }
.field--check input { width: 20px; height: 20px; min-height: 0; padding: 0; margin: 2px 0 0; accent-color: var(--red); flex: none; }
.field--check label { font-weight: 500; font-size: .875rem; letter-spacing: 0; line-height: 1.5; }
.form__footer { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 24px; }
.form__note { font-size: .85rem; color: var(--faint); }
.form__status { font-weight: 700; min-height: 1.5em; }
.form__status.is-ok { color: #7ee2a8; }
.form__status.is-error { color: #ff7d93; }
.form.is-sending button[type="submit"] { opacity: .7; pointer-events: none; }

/* Pages simples */
.page-head { padding: calc(var(--header-h) + 80px) 0 60px; background: var(--bg); color: var(--fg); }
.page-head__title { font-size: var(--fs-h2); letter-spacing: -.035em; line-height: 1.05; }
.page-body { padding-block: 64px 120px; background: var(--paper); color: #111; max-width: none; }
.prose > * + * { margin-top: 1em; }
.page-404 { min-height: 80svh; display: grid; align-items: center; padding: calc(var(--header-h) + 60px) 0 80px; background: var(--bg); color: var(--fg); }
.page-404 .container { display: grid; gap: 24px; justify-items: start; }
.page-404__title { font-size: var(--fs-hero); letter-spacing: -.045em; line-height: 1; }
.lead { color: var(--muted); font-size: var(--fs-lead); }

/* 9. Footer --------------------------------------------------------------------------- */
.site-footer { padding-top: clamp(80px, 9vw, 140px); overflow: hidden; border-top: 1px solid var(--line); }
.site-footer__top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: clamp(40px, 6vw, 100px); }
.site-footer__cta { display: grid; gap: 20px; align-content: start; justify-items: start; }
.site-footer__claim { font-size: clamp(1.8rem, 1.2rem + 1.8vw, 2.8rem); font-weight: 700; letter-spacing: -.035em; line-height: 1.1; max-width: 13em; }
.site-footer__buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.site-footer__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.site-footer__col { display: grid; gap: 18px; align-content: start; }
.site-footer__title { font-family: var(--font-tech); font-size: .6rem; letter-spacing: .2em; text-transform: uppercase; color: var(--faint); }
.site-footer__links { display: grid; gap: 10px; font-size: .95rem; }
.site-footer__links a { color: var(--muted); transition: color .3s, padding .4s var(--ease); }
.site-footer__links a:hover { color: #fff; padding-left: 6px; }
.site-footer__links--plain li { color: var(--muted); }
.site-footer__address { color: var(--muted); line-height: 1.8; font-size: .95rem; }
.site-footer__address strong { color: var(--fg); }
.site-footer__address a:hover { color: var(--red); }
.site-footer__word {
	margin-top: clamp(60px, 8vw, 120px);
	text-align: center;
	line-height: .78;
	overflow: hidden;
}
.site-footer__word span {
	display: block;
	font-family: var(--font-brand);
	font-size: clamp(6rem, 25vw, 26rem);
	letter-spacing: -.05em;
	color: transparent;
	-webkit-text-stroke: 1px rgba(244, 242, 238, .16);
	background: linear-gradient(180deg, rgba(235, 22, 62, .35), rgba(235, 22, 62, 0) 70%);
	-webkit-background-clip: text;
	background-clip: text;
	transform: translateY(12%);
}
.site-footer__bottom { position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-block: 26px; border-top: 1px solid var(--line); font-size: .82rem; color: var(--faint); }
.site-footer__legal { display: flex; gap: 22px; }
.site-footer__legal a:hover { color: #fff; }
.to-top { display: grid; place-items: center; width: 46px; height: 46px; border: 1px solid var(--line-strong); border-radius: 50%; background: transparent; color: var(--fg); transition: background .4s, color .4s; }
.to-top .icon { transform: rotate(180deg); width: 18px; height: 18px; }
.to-top:hover { background: var(--red); border-color: var(--red); color: #fff; }

/* 10. Lightbox ------------------------------------------------------------------------ */
.lightbox { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 5vh 5vw; background: rgba(8, 8, 9, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); opacity: 0; transition: opacity .4s var(--ease); }
.lightbox.is-open { opacity: 1; }
.lightbox__close { position: absolute; top: 20px; right: 20px; display: grid; place-items: center; width: 52px; height: 52px; border: 1px solid rgba(255, 255, 255, .3); border-radius: 50%; background: transparent; color: #fff; }
.lightbox__close:hover { background: var(--red); border-color: var(--red); }

/* 11. Animations ------------------------------------------------------------------------ */
@keyframes ping { 0% { transform: scale(.6); opacity: .8; } 80%, 100% { transform: scale(2.1); opacity: 0; } }
@keyframes nudge { 0%, 100% { transform: translateY(-2px); } 50% { transform: translateY(3px); } }
@keyframes float { 0%, 100% { transform: translateY(-6px) rotate(-2deg); } 50% { transform: translateY(6px) rotate(2deg); } }
@keyframes marquee { to { transform: translateX(-100%); } }
@keyframes sweep { to { transform: rotate(360deg); } }
@keyframes radar-pulse { 0% { transform: scale(.6); opacity: 1; } 100% { transform: scale(3.2); opacity: 0; } }
@keyframes wave { 0%, 100% { transform: translateX(-2px) rotate(-8deg); } 50% { transform: translateX(3px) rotate(8deg); } }

/* Performance : les animations infinies des sections hors écran sont en pause (classe posée par main.js). */
.is-offscreen *,
.is-offscreen *::before,
.is-offscreen *::after { animation-play-state: paused !important; }
/* Éléments déplacés au défilement : sur leur propre couche, sans repeinte. */
[data-parallax],
[data-zoom-on-scroll] img,
[data-rail-progress],
[data-steps-line],
.cursor__dot,
.cursor__ring,
.marquee__track,
.logos__group { will-change: transform; }

/* États initiaux des éléments animés (uniquement si JS actif et mouvement autorisé) */
.has-motion [data-reveal]:not(.is-in) { opacity: 0; transform: translateY(28px); }
.has-motion [data-hero-in] { opacity: 0; transform: translateY(24px); }
.has-motion [data-hero-title]:not(.is-in),
.has-motion [data-split]:not(.is-in) { opacity: 0; }
.has-motion [data-hero-media] { clip-path: inset(0 0 0 100% round var(--r-xl) 0 0 var(--r-xl)); }
.has-motion [data-hero-card] { opacity: 0; transform: translate(-26%, 30px); }
.has-motion .s-hero__orb { opacity: 0; }
/* Masques de lignes : marge pour les jambages (g, p, j). */
[data-split] > div,
[data-hero-title] > div { padding-bottom: .12em; margin-bottom: -.12em; }

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
	.marquee__track,
	.logos__group { animation: none; }
	.logos__row { overflow-x: auto; }
}

/* 12. Responsive ---------------------------------------------------------------------- */
@media (max-width: 1320px) {
	.site-nav__list { gap: 18px; }
}
@media (max-width: 1180px) {
	.site-nav { display: none; }
	.burger { display: inline-flex; }
	.site-header__inner { grid-template-columns: auto 1fr auto; }
	.site-header__actions { grid-column: 3; }
	.rail { display: none; }
	.s-hero__inner { grid-template-columns: 1fr; padding-right: var(--gutter); min-height: 0; }
	.s-hero__content { max-width: 760px; padding-top: 40px; }
	.s-hero__visual { min-height: 0; aspect-ratio: 4 / 3.2; margin-right: calc(-1 * var(--gutter)); }
	.s-hero__orb { left: auto; right: 8%; top: -56px; width: 140px; translate: none; }
	.feature-card { left: 16px; bottom: 16px; transform: none; }
	.has-motion [data-hero-card] { transform: translateY(30px); }
	.ba { grid-template-columns: 1fr; }
	.ba__list { grid-template-columns: repeat(2, 1fr); column-gap: 24px; }
	.s-charpente__grid,
	.s-atelier__grid,
	.s-zones__grid,
	.s-faq__grid,
	.s-contact__grid,
	.site-footer__top { grid-template-columns: 1fr; }
	.s-charpente__sticky,
	.s-faq__intro { position: static; }
	.s-charpente__cards { grid-template-columns: repeat(2, 1fr); padding-top: 0; }
	.s-figures__inner { grid-template-columns: 1fr; }
	.steps { grid-template-columns: repeat(2, 1fr); row-gap: 48px; }
	.steps__line { display: none; }
}
@media (max-width: 900px) {
	:root { --header-h: 72px; }
	.header-phone,
	.site-header__cta { display: none; }
	.section-head { grid-template-columns: 1fr; align-items: start; }
	.s-trust__items { grid-template-columns: repeat(2, 1fr); }
	.s-trust__item:nth-child(3) { padding-left: 0; border-left: 0; }
	.s-trust__item:nth-child(n+3) { border-top: 1px solid var(--line); }
	.materials { flex-direction: column; height: auto; }
	.material { flex: none; min-height: 88px; }
	.material.is-open { min-height: 460px; }
	.material__vertical { writing-mode: horizontal-tb; transform: none; left: 60px; bottom: auto; top: 30px; font-size: 1.4rem; }
	.s-charpente__cards { grid-template-columns: 1fr; }
	.figures { grid-template-columns: repeat(2, 1fr); row-gap: 36px; }
	.figure:nth-child(3) { border-left: 0; padding-left: 0; }
	.figure:first-child { padding-left: 0; border-left: 0; }
	.work { grid-template-columns: 1fr 1fr; }
	.project,
	.project--1,
	.project--2,
	.project--3 { grid-column: span 1; grid-row: auto; }
	.project--1 { grid-column: 1 / -1; }
	.project--1 .zoomable { aspect-ratio: 4 / 3; }
	.menu-overlay__inner { grid-template-columns: 1fr; }
	.form__grid { grid-template-columns: 1fr; }
	.site-footer__cols { grid-template-columns: 1fr 1fr; }
	.gallery-strip { grid-template-columns: repeat(3, 1fr); gap: 10px; }
}
@media (max-width: 600px) {
	.brand__name { font-size: 1.3rem; }
	.brand__mark { width: 34px; height: 34px; }
	.burger__label { display: none; }
	.burger { padding: 0 14px; }
	.s-hero__actions .btn { width: 100%; }
	.site-header__inner { gap: 12px; }
	.s-hero__visual { aspect-ratio: auto; }
	.s-hero__media { position: relative; inset: auto; aspect-ratio: 4 / 4.2; }
	.feature-card { position: relative; left: auto; right: auto; bottom: auto; width: auto; margin: -64px 16px 0; }
	.hotspot__card,
	.hotspot--left .hotspot__card,
	.hotspot.is-up .hotspot__card { position: fixed; left: 16px; right: 16px; top: auto; bottom: 16px; width: auto; z-index: 120; transform-origin: bottom center; }
	.s-hero__points { gap: 10px 18px; }
	.hotspot__label { display: none; }
	.hotspot__card { width: min(240px, 70vw); }
	.s-trust__items { grid-template-columns: 1fr; }
	.s-trust__item,
	.s-trust__item + .s-trust__item { padding: 18px 0; border-left: 0; border-top: 1px solid var(--line); }
	.s-trust__item:first-child { border-top: 0; }
	.ba__list { grid-template-columns: 1fr; }
	.ba__toolbar { flex-wrap: wrap; }
	.ba__meter { order: 3; flex-basis: 100%; }
	.ba__mode span { display: none; }
	.steps { grid-template-columns: 1fr; }
	.work { grid-template-columns: 1fr; }
	.gallery-strip { grid-template-columns: 1fr 1fr; }
	.gallery-strip li:first-child { grid-column: 1 / -1; }
	.site-footer__cols { grid-template-columns: 1fr; }
	.faq__a p { padding-right: 0; }
	.logos__item { width: 150px; height: 88px; }
}

/* ==========================================================================
   13. Pages intérieures et composants complémentaires
   ========================================================================== */

/* 13.1 Menu déroulant « Prestations » (header) et sous-menu du menu plein écran */
.site-nav__list > li { display: flex; align-items: center; gap: 4px; }
.submenu-toggle { display: grid; place-items: center; width: 22px; height: 22px; padding: 0; border: 0; border-radius: 50%; background: none; color: inherit; opacity: .7; transition: transform .4s var(--ease), opacity .3s; }
.submenu-toggle:hover { opacity: 1; }
.site-nav .has-sub.is-open .submenu-toggle,
.site-nav .has-sub:hover .submenu-toggle { transform: rotate(180deg); opacity: 1; }
.site-nav__list .is-ancestor > a { color: var(--red); }

.site-nav__list > li.has-sub { position: relative; }
.dropdown {
	position: absolute;
	left: -22px;
	top: 100%;
	width: 460px;
	padding-top: 14px; /* pont invisible : le survol ne se perd pas entre le lien et le panneau */
	opacity: 0;
	visibility: hidden;
	transform: translateY(10px);
	transition: opacity .3s var(--ease), transform .5s var(--ease), visibility .3s;
}
.dropdown.has-feature { width: 740px; }
.site-nav .has-sub:hover .dropdown,
.site-nav .has-sub:focus-within .dropdown,
.site-nav .has-sub.is-open .dropdown { opacity: 1; visibility: visible; transform: none; }
.dropdown__panel {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 18px;
	padding: 18px;
	border: 1px solid rgba(255, 255, 255, .08);
	border-radius: var(--r-l);
	background: #111113;
	box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .9);
	color: #f4f2ee;
}
.has-feature .dropdown__panel { grid-template-columns: minmax(0, 1fr) 200px; }
.dropdown__main { display: grid; align-content: space-between; gap: 10px; }
.dropdown__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 12px; }

.site-nav .dropdown__item,
.site-nav .dropdown__all,
.site-nav .dropdown__feature {
	height: auto;
	overflow: visible;
	font-size: inherit;
	font-weight: inherit;
	letter-spacing: 0;
	text-transform: none;
	line-height: 1.3;
}
.site-nav .dropdown__item {
	display: grid;
	grid-template-columns: 40px minmax(0, 1fr);
	align-items: center;
	gap: 12px;
	padding: 8px 10px 8px 8px;
	border-radius: var(--r-m);
	transition: background .35s var(--ease);
}
.site-nav .dropdown__item:hover,
.site-nav .dropdown__item:focus-visible { background: rgba(255, 255, 255, .05); }
.dropdown__thumb { width: 40px; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--ink-4); }
.dropdown__thumb img { width: 100%; height: 100%; object-fit: cover; }
.dropdown__name { overflow: hidden; font-size: .9rem; font-weight: 600; letter-spacing: -.005em; white-space: nowrap; text-overflow: ellipsis; color: rgba(244, 242, 238, .88); transition: color .3s; }
.dropdown__item:hover .dropdown__name,
.dropdown__item[aria-current] .dropdown__name { color: #fff; }
.dropdown__item[aria-current] .dropdown__name { color: var(--red); }

.site-nav .dropdown__all {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	justify-self: start;
	padding: 10px 8px 2px;
	font-size: .8rem;
	font-weight: 700;
	color: rgba(244, 242, 238, .6);
	transition: color .3s;
}
.dropdown__all .icon { width: 15px; height: 15px; color: var(--red); transition: transform .4s var(--ease); }
.site-nav .dropdown__all:hover { color: #fff; }
.dropdown__all:hover .icon { transform: translateX(4px); }

/* Carte mise en avant (traitement de charpente) */
.site-nav .dropdown__feature {
	position: relative;
	display: flex;
	align-items: flex-end;
	min-height: 210px;
	border-radius: var(--r-m);
	overflow: hidden;
	isolation: isolate;
	background: var(--ink-3);
}
.dropdown__feature-media { position: absolute; inset: 0; z-index: -1; }
.dropdown__feature-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.dropdown__feature-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11, 11, 12, 0) 35%, rgba(11, 11, 12, .85) 100%); }
.dropdown__feature:hover .dropdown__feature-media img { transform: scale(1.05); }
.dropdown__feature-body { display: grid; gap: 8px; padding: 16px; }
.dropdown__feature-tag { justify-self: start; padding: 4px 9px; border-radius: 99px; background: var(--red); font-family: var(--font-tech); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: #fff; }
.dropdown__feature-name { font-size: 1.02rem; font-weight: 700; letter-spacing: -.01em; line-height: 1.2; color: #fff; }
.dropdown__feature-arrow { position: absolute; top: 12px; right: 12px; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: rgba(11, 11, 12, .55); color: #fff; transition: background .35s var(--ease), transform .45s var(--ease); }
.dropdown__feature-arrow .icon { width: 15px; height: 15px; }
.dropdown__feature:hover .dropdown__feature-arrow { background: var(--red); transform: rotate(45deg); }
.dropdown__feature[aria-current] { box-shadow: inset 0 0 0 2px var(--red); }
/* Le fond de l'en-tête devient opaque quand le menu déroulant est ouvert. */
.site-header:has(.has-sub:hover)::before,
.site-header:has(.has-sub:focus-within)::before,
.site-header:has(.has-sub.is-open)::before { opacity: 1; }

.submenu__num { font-family: var(--font-tech); font-size: .58rem; color: var(--red); }
.menu-overlay .submenu { padding: 6px 0 12px 44px; }
.menu-overlay .submenu__list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.menu-overlay .submenu__list a { display: grid; grid-template-columns: 28px 1fr; align-items: baseline; padding: 8px 0; border-bottom: 0; font-size: 1rem; font-weight: 600; letter-spacing: 0; opacity: 1; transform: none; color: rgba(244, 242, 238, .7); }
.menu-overlay .submenu__list a:hover { color: var(--red); }

/* 13.2 En-tête des pages intérieures */
.s-phero { padding: calc(var(--header-h) + clamp(40px, 6vw, 90px)) 0 clamp(64px, 7vw, 110px); overflow: hidden; }
.s-phero__glow { position: absolute; width: 70vw; aspect-ratio: 1; right: -20vw; top: -30vw; border-radius: 50%; background: radial-gradient(closest-side, rgba(235, 22, 62, .2), transparent 70%); pointer-events: none; }
.s-phero__inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.s-phero.has-image .s-phero__inner { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); }
.s-phero__content { display: grid; gap: 24px; justify-items: start; max-width: 860px; }
.s-phero__title { font-size: clamp(2.3rem, 1.1rem + 3.4vw, 4.4rem); font-weight: 700; line-height: 1.02; letter-spacing: -.045em; text-wrap: balance; }
.s-phero__lead { max-width: 38em; color: var(--muted); font-size: var(--fs-lead); }
.s-phero .s-hero__points { width: 100%; }
.s-phero__visual { position: relative; }
.s-phero__frame { position: relative; aspect-ratio: 4 / 3.4; border-radius: var(--r-xl); overflow: hidden; background: var(--ink-3); }
.s-phero__frame img { position: absolute; inset: -6% 0; width: 100%; height: 112%; object-fit: cover; }
.s-phero__orb { position: absolute; left: -44px; bottom: -40px; width: clamp(96px, 9vw, 150px); filter: drop-shadow(0 20px 40px rgba(235, 22, 62, .45)); animation: float 8s ease-in-out infinite; }
.has-motion .s-phero [data-hero-media] { clip-path: inset(0 0 0 100% round 40px); }
.ba--single { grid-template-columns: 1fr; }
.ba--single .ba__stage { max-width: 1100px; }
.ba__caption { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 16px; margin-top: 18px; color: var(--muted); }
.ba__caption strong { color: var(--fg); font-size: 1.15rem; letter-spacing: -.02em; }
.breadcrumb ol { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: .8rem; font-weight: 600; color: var(--faint); }
.breadcrumb li { display: inline-flex; align-items: center; gap: 10px; }
.breadcrumb li + li::before { content: ""; width: 5px; height: 5px; border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor; transform: rotate(45deg); opacity: .6; }
.breadcrumb a { transition: color .3s; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb [aria-current] { color: var(--muted); }

/* 13.3 Texte et image */
.s-prose { padding: var(--section-y) 0; }
.s-prose__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(32px, 6vw, 110px); align-items: start; }
.s-prose:not(.has-image) .s-prose__text { max-width: 820px; }
.s-prose.has-image .s-prose__grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); }
.s-prose.is-reversed .s-prose__media { order: -1; }
.s-prose__text { display: grid; gap: 24px; justify-items: start; }
.s-prose__title { font-size: clamp(1.9rem, 1.2rem + 2.2vw, 3.3rem); font-weight: 700; line-height: 1.05; letter-spacing: -.035em; text-wrap: balance; }
.s-prose__media { position: sticky; top: calc(var(--header-h) + 32px); display: grid; gap: 12px; }
.s-prose__media .zoomable { aspect-ratio: 4 / 3; border-radius: var(--r-l); }
.s-prose__media figcaption { font-size: .85rem; color: var(--faint); }
.rich { display: grid; gap: 18px; color: var(--muted); font-size: 1.06rem; line-height: 1.75; max-width: 42em; }
.rich strong { color: var(--fg); font-weight: 700; }
.rich h3 { margin-top: 14px; color: var(--fg); font-size: 1.3rem; font-weight: 700; letter-spacing: -.02em; line-height: 1.3; }
.rich a { color: var(--fg); background: linear-gradient(var(--red), var(--red)) 0 100% / 100% 1px no-repeat; padding-bottom: 1px; transition: color .3s; }
.rich a:hover { color: var(--red); }
.list-check { display: grid; gap: 10px; }
.list-check li { position: relative; padding-left: 32px; }
.list-check li::before { content: ""; position: absolute; left: 0; top: .35em; width: 20px; height: 20px; border-radius: 50%; background: rgba(235, 22, 62, .14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23eb163e' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 12px no-repeat; }

/* 13.4 Points forts */
.s-highlights { padding: var(--section-y) 0; }
.cards { display: grid; gap: clamp(14px, 1.6vw, 22px); }
.cards--2 { grid-template-columns: repeat(2, 1fr); }
.cards--3 { grid-template-columns: repeat(3, 1fr); }
.cards--4 { grid-template-columns: repeat(4, 1fr); }
.card {
	position: relative;
	display: grid;
	gap: 14px;
	align-content: start;
	padding: clamp(24px, 2.4vw, 36px);
	border: 1px solid var(--line);
	border-radius: var(--r-l);
	background: var(--card);
	transition: transform .6s var(--ease), box-shadow .6s var(--ease), border-color .6s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -34px rgba(0, 0, 0, .35); border-color: transparent; }
.card__num { position: absolute; top: 24px; right: 26px; font-family: var(--font-tech); font-size: .6rem; color: var(--faint); }
.card__icon { display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 10px; border-radius: 50%; background: var(--red); color: #fff; box-shadow: 0 14px 30px -14px rgba(235, 22, 62, .8); transition: transform .6s var(--ease); }
.card:hover .card__icon { transform: rotate(-12deg) scale(1.06); }
.card__title { font-size: 1.25rem; font-weight: 700; letter-spacing: -.02em; line-height: 1.25; }
.card__text { color: var(--muted); font-size: .98rem; }
[data-theme="dark"] .card { background: var(--ink-3); }

/* 13.5 Appel à l'action */
.s-cta { padding: clamp(72px, 8vw, 120px) 0; overflow: hidden; }
.s-cta__inner { position: relative; display: grid; grid-template-columns: minmax(0, 1.3fr) auto; gap: 40px; align-items: end; }
.s-cta__text { display: grid; gap: 20px; }
.s-cta__title { font-size: clamp(2.1rem, 1.2rem + 3vw, 4.2rem); font-weight: 800; line-height: 1; letter-spacing: -.045em; text-wrap: balance; }
.s-cta__lead { max-width: 44em; color: var(--muted); font-size: 1.05rem; }
.s-cta__lead strong { color: #fff; }
.s-cta__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; }
.s-cta .btn--ghost { --btn-fill: #fff; --btn-fill-fg: var(--red); }

/* 13.6 Carte d'accès */
.s-map { padding: var(--section-y) 0; }
.s-map__grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.s-map__text { display: grid; gap: 22px; justify-items: start; }
.s-map__address { font-size: 1.15rem; line-height: 1.6; }
.map-frame { position: relative; aspect-ratio: 16 / 11; border-radius: var(--r-xl); overflow: hidden; background: var(--ink-2) radial-gradient(circle at 50% 45%, rgba(235, 22, 62, .25), transparent 55%); color: #f4f2ee; }
.map-frame::before { content: ""; position: absolute; inset: 0; 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: 40px 40px; }
.map-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(.2); }
.map-frame__placeholder { position: relative; display: grid; place-content: center; justify-items: center; gap: 14px; height: 100%; padding: 30px; text-align: center; }
.map-frame__pin { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 12px rgba(235, 22, 62, .18), 0 0 0 26px rgba(235, 22, 62, .08); }
.map-frame__title { font-size: 1.2rem; font-weight: 700; }
.map-frame__note { max-width: 30em; font-size: .85rem; color: rgba(244, 242, 238, .6); }
.map-frame .btn--dark { --btn-bg: #fff; --btn-fg: var(--ink); }
.map-frame__link { font-size: .8rem; color: rgba(244, 242, 238, .6); text-decoration: underline; }
.map-frame.is-loaded .map-frame__placeholder { display: none; }

/* 13.7 Actualités (en attente) */
.s-news { padding: var(--section-y) 0; }
.feed { display: grid; gap: 28px; }
.feed__pending { display: grid; grid-template-columns: auto 1fr auto; gap: 24px; align-items: center; padding: clamp(22px, 2.6vw, 34px); border: 1px dashed var(--line-strong); border-radius: var(--r-l); background: var(--card); }
.feed__icon { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: #1877f2; color: #fff; }
.feed__icon .icon { width: 28px; height: 28px; }
.feed__status { display: inline-flex; align-items: center; gap: 12px; font-family: var(--font-tech); font-size: .62rem; letter-spacing: .16em; text-transform: uppercase; color: var(--red); margin-bottom: 8px; }
.feed__text { color: var(--muted); max-width: 44em; }
.feed__skeleton { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.post-ghost { display: grid; gap: 14px; padding-bottom: 8px; }
.post-ghost span { display: block; border-radius: var(--r-s); background: linear-gradient(100deg, rgba(15, 15, 17, .06) 30%, rgba(15, 15, 17, .12) 50%, rgba(15, 15, 17, .06) 70%) 0 0 / 200% 100%; animation: shimmer 1.8s linear infinite; }
.post-ghost__img { aspect-ratio: 4 / 3; border-radius: var(--r-l) !important; }
.post-ghost__line { height: 14px; width: 90%; }
.post-ghost__line.is-short { width: 55%; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* 13.8 Références en grille */
.logo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; }
.logo-grid .logos__item { width: auto; height: 120px; }

/* 13.9 Réalisations filtrables */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: -24px 0 36px; }
.filter { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 18px; border: 1px solid var(--line-strong); border-radius: 999px; background: transparent; font-size: .85rem; font-weight: 700; transition: background .3s, color .3s, border-color .3s; }
.filter span { font-family: var(--font-tech); font-size: .58rem; opacity: .6; }
.filter:hover { border-color: var(--fg); }
.filter.is-active { background: var(--fg); border-color: var(--fg); color: var(--bg); }
.work--grid { grid-template-columns: repeat(3, 1fr); }
.work--grid .project { grid-column: auto; }
.project[hidden] { display: none; }

@media (max-width: 1180px) {
	.s-phero.has-image .s-phero__inner,
	.s-prose.has-image .s-prose__grid,
	.s-map__grid,
	.s-cta__inner { grid-template-columns: 1fr; }
	.s-prose__media { position: static; }
	.s-prose.is-reversed .s-prose__media { order: 0; }
	.s-cta__actions { justify-content: flex-start; }
	.cards--4 { grid-template-columns: repeat(2, 1fr); }
	.s-phero__orb { left: auto; right: 20px; bottom: -30px; }
}
@media (max-width: 900px) {
	.cards--3,
	.cards--2 { grid-template-columns: 1fr; }
	.work--grid { grid-template-columns: 1fr 1fr; }
	.feed__pending { grid-template-columns: auto 1fr; }
	.feed__pending .btn { grid-column: 1 / -1; justify-self: start; }
	.feed__skeleton { grid-template-columns: 1fr 1fr; }
	.feed__skeleton li:nth-child(3) { display: none; }
	.menu-overlay .submenu__list { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
	.cards--4 { grid-template-columns: 1fr; }
	.work--grid { grid-template-columns: 1fr; }
	.filters { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); }
	.filter { flex: none; }
	.logo-grid { grid-template-columns: repeat(2, 1fr); }
	.logo-grid .logos__item { height: 96px; }
	.feed__skeleton { grid-template-columns: 1fr; }
	.feed__skeleton li:nth-child(n+2) { display: none; }
	.s-phero .s-hero__actions .btn { width: 100%; }
}

/* Sans animations : la ligne des étapes est affichée entière. */
html:not(.has-motion) .steps__line span { transform: none; }

/* Boutons longs sur mobile : le texte passe à la ligne au lieu de déborder. */
@media (max-width: 600px) {
	.btn { max-width: 100%; height: auto; min-height: var(--btn-h); padding-block: 7px; white-space: normal; line-height: 1.25; text-align: left; }
}

/* Indication de l'avant / après selon le type de pointeur. */
.ba__hint-touch { display: none; }
@media (hover: none) { .ba__hint-mouse { display: none; } .ba__hint-touch { display: inline; } }

/* ==========================================================================
   14. Responsive : finitions tablette et mobile
   ========================================================================== */

/* 14.1 Lisibilité : aucune étiquette sous 10,5 px */
.svc-card__num,
.ba__badge,
.ba__meter,
.ba__item-num,
.tag,
.card__num,
.material__index,
.contact-list__label,
.site-footer__title,
.feed__status,
.submenu__num,
.treat-card__badge span,
.filter span,
.rail__count,
.rail__text,
.cursor__label,
.lang-switch__item,
.feature-card__eyebrow { font-size: max(.66rem, 10.5px); }
.eyebrow { font-size: max(var(--fs-eyebrow), 10.5px); }

/* 14.2 Zones tactiles : 44 px minimum sur les écrans tactiles */
.brand { min-height: 44px; }
.socials__link { width: 44px; height: 44px; }
.link-arrow { min-height: 44px; }
.map-frame__link { display: inline-flex; align-items: center; min-height: 44px; padding-inline: 8px; }
.contact-list a { display: inline-flex; align-items: center; min-height: 44px; }
.site-footer__address a { display: inline-block; padding-block: 3px; }
@media (hover: none), (pointer: coarse) {
	.hotspot__btn { left: -22px; top: -22px; }
	.hotspot--left .hotspot__btn { left: auto; right: -22px; }
	.hotspot__btn > .icon,
	.hotspot__pulse { width: 44px; height: 44px; }
	.hotspot__btn > .icon { padding: 12px; }
	.site-footer__links a { display: inline-block; padding-block: 5px; }
	.site-footer__links { gap: 2px; }
	.faq__summary { padding-block: 22px; }
	.filter { height: 46px; }
	.ba__mode { height: 44px; }
	/* Pas de survol sur tactile : les états « au survol » ne doivent pas rester collés. */
	.svc-card__link:hover,
	.card:hover { transform: none; box-shadow: none; }
	.zones:hover .zone:not(:hover) { opacity: 1; }
	.ba__hint-mouse { display: none; }
	.ba__hint-touch { display: inline; }
}

/* Champ piège du formulaire : masqué sans sortir de la page (pas de débordement). */
.field--hp { position: absolute; left: 0; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* 14.3 Pied de page */
.site-footer__legal { flex-wrap: wrap; gap: 6px 22px; }
.site-footer__legal a { display: inline-block; padding-block: 6px; white-space: nowrap; }

/* 14.4 Tablette (601 – 1180 px) */
@media (max-width: 1180px) {
	.s-hero { min-height: 0; padding-bottom: 0; }
	.s-hero__inner { gap: 36px; }
	.s-hero__content { gap: 22px; }
	.s-hero__visual { aspect-ratio: 16 / 10; }
	.s-phero { padding-top: calc(var(--header-h) + 36px); }
	.s-phero__frame { aspect-ratio: 16 / 9; }
	.s-phero__orb { width: 110px; right: 24px; bottom: -34px; }
	.s-prose__media .zoomable { aspect-ratio: 16 / 10; }
	.s-charpente__sticky { gap: 22px; }
	.site-footer__top { gap: 48px; }
	.radar__svg { max-width: 520px; }
	.s-atelier__grid { gap: 36px; }
	.ba__list { border-top: 0; }
	.ba__item { border-top: 1px solid var(--line); }
}
@media (min-width: 601px) and (max-width: 1180px) {
	.s-hero__title { font-size: clamp(2.8rem, 6.4vw, 4.2rem); }
	.s-hero__content { max-width: 680px; }
	.svc-grid--3,
	.svc-grid--2 { grid-template-columns: repeat(2, 1fr); }
	.slider__track { grid-auto-columns: clamp(280px, 44vw, 380px); }
	.cards--3 { grid-template-columns: repeat(3, 1fr); }
	.cards--3 .card { padding: 22px; }
	.s-contact__info { grid-template-columns: 1fr 1fr; align-items: start; }
	.s-contact__info .section-head { grid-column: 1 / -1; }
	.s-prose.has-image .s-prose__grid { gap: 40px; }
	.feed__skeleton { grid-template-columns: repeat(3, 1fr); }
	.feed__skeleton li:nth-child(3) { display: grid; }
}
@media (min-width: 901px) and (max-width: 1180px) {
	/* Tablette paysage : on garde deux colonnes là où le contenu respire assez. */
	.s-prose.has-image .s-prose__grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); }
	.s-prose.is-reversed .s-prose__media { order: -1; }
	.s-atelier__grid { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); }
	.s-map__grid { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); }
	.s-phero.has-image .s-phero__inner { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); }
	.s-phero__frame { aspect-ratio: 4 / 3.4; }
	.s-zones__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; }
	.s-faq__grid { grid-template-columns: minmax(0, .8fr) minmax(0, 1.5fr); gap: 48px; }
	.site-footer__top { grid-template-columns: minmax(0, .8fr) minmax(0, 1.6fr); }
	.ba { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
	.ba__list { grid-template-columns: 1fr; border-top: 1px solid var(--line); }
	.ba__item { border-top: 0; }
}

/* 14.5 Mobile (≤ 600 px) */
@media (max-width: 600px) {
	:root { --section-y: 60px; --gutter: 20px; }
	.s-hero { padding-top: calc(var(--header-h) + 8px); }
	.s-hero__content { padding-top: 28px; gap: 20px; }
	.s-hero__title { font-size: clamp(2.15rem, 9.6vw, 2.7rem); letter-spacing: -.04em; }
	.s-hero__accent,
	.s-phero .s-hero__accent { -webkit-text-stroke-width: 1.1px; }
	.s-hero__lead { font-size: 1rem; }
	.s-hero__inner { gap: 40px; }
	.s-hero__media { aspect-ratio: 4 / 3.6; border-radius: var(--r-l) 0 0 var(--r-l); }
	.s-hero__orb { width: 92px; right: 22px; top: -30px; }
	.s-phero { padding-bottom: 56px; }
	.s-phero__title { font-size: clamp(2rem, 8.6vw, 2.5rem); }
	.s-phero__frame { aspect-ratio: 4 / 3; border-radius: var(--r-l); }
	.s-phero__orb { width: 84px; right: 14px; bottom: -26px; }
	.section-head { margin-bottom: 30px; gap: 16px; }
	.section-head__title,
	.s-prose__title { font-size: clamp(1.7rem, 7.4vw, 2.1rem); }
	.s-charpente__title,
	.section-head--xl .section-head__title { font-size: clamp(1.9rem, 8vw, 2.4rem); }
	.s-cta__title { font-size: clamp(1.9rem, 8.4vw, 2.5rem); }
	.s-trust { padding-bottom: 36px; }
	.marquee__word,
	.marquee__sep { font-size: 2.4rem; }
	.svc-card__body { padding: 18px; }
	.slider__nav { margin-top: 0; }
	.slider__track { padding-bottom: 22px; }
	.slider__arrow { width: 46px; height: 46px; }
	.ba__viewport { aspect-ratio: 1 / 1; border-radius: var(--r-m); }
	.ba__badge { top: 12px; padding: 7px 11px; }
	.ba__badge--before { left: 12px; }
	.ba__badge--after { right: 12px; }
	.ba__hint { padding: 9px 14px 9px 9px; font-size: .78rem; white-space: nowrap; }
	.ba__hint-icon { width: 30px; height: 30px; }
	.ba__toolbar { gap: 12px; margin-top: 14px; }
	.ba__modes { flex: 1; }
	.ba__mode { flex: 1; justify-content: center; }
	.ba__mode span { display: inline; }
	.ba__item { padding: 14px 0; grid-template-columns: minmax(0, 1fr) 60px; }
	.ba__item-thumb { width: 60px; }
	.ba__item-title { font-size: 1.08rem; }
	.rich { font-size: 1rem; line-height: 1.7; }
	.s-prose__grid { gap: 28px; }
	.s-prose__media .zoomable { aspect-ratio: 4 / 3; border-radius: var(--r-m); }
	.material.is-open { min-height: 380px; }
	.material { border-radius: var(--r-m); }
	.treat-card__body { padding: 20px; gap: 14px; }
	.card { padding: 22px; border-radius: var(--r-m); }
	.card__icon { width: 48px; height: 48px; margin-bottom: 4px; }
	.figures { row-gap: 28px; }
	.figure { padding: 0 0 0 16px; }
	.figure:nth-child(odd) { padding-left: 0; border-left: 0; }
	.figure__value { font-size: clamp(2.6rem, 13vw, 3.4rem); }
	.steps { row-gap: 32px; }
	.step__num { width: 56px; height: 56px; margin-bottom: 4px; }
	.project__title,
	.project--1 .project__title { font-size: 1.08rem; }
	.work { gap: 24px; }
	.zone { padding: 18px 0; }
	.radar__label { font-size: 4.2px; }
	.radar__home-label { font-size: 4.6px; }
	.radar__km { font-size: 3.2px; }
	.faq__summary { gap: 14px; }
	.faq__icon { width: 40px; height: 40px; }
	.faq__a p { padding-bottom: 22px; font-size: .98rem; }
	.form { padding: 22px 18px; border-radius: var(--r-l); gap: 18px; }
	.form__grid { gap: 14px; }
	.form__footer .btn { width: 100%; }
	.contact-list { gap: 14px; }
	.contact-list li { grid-template-columns: 46px 1fr; gap: 14px; }
	.contact-list__icon { width: 46px; height: 46px; }
	.map-frame { aspect-ratio: 4 / 4.2; border-radius: var(--r-l); }
	.map-frame__placeholder { padding: 22px; }
	.feed__pending { grid-template-columns: 1fr; text-align: left; padding: 22px; }
	.feed__icon { width: 52px; height: 52px; }
	.s-cta { padding: 60px 0; }
	.s-cta__actions .btn { width: 100%; }
	.site-footer { padding-top: 60px; }
	.site-footer__top { gap: 40px; }
	.site-footer__claim { font-size: 1.7rem; }
	.site-footer__word { margin-top: 44px; }
	.site-footer__bottom { align-items: flex-start; flex-direction: column; gap: 12px; padding-bottom: 28px; }
	.to-top { position: absolute; right: var(--gutter); top: 22px; }
	.menu-overlay__inner { padding-top: calc(var(--header-h) + 24px); gap: 28px; }
	.menu-overlay__list a { font-size: clamp(1.7rem, 8vw, 2.2rem); padding: 9px 0; }
	.menu-overlay .submenu { padding-left: 36px; }
	.menu-overlay .submenu__list a { padding: 10px 0; }
	.breadcrumb ol { font-size: .78rem; }
	.lightbox { padding: 3vh 12px; }
	.lightbox__close { top: 12px; right: 12px; }
}
@media (max-width: 380px) {
	.s-hero__title { font-size: 2.05rem; }
	.brand__name { font-size: 1.2rem; }
	.ba__hint { font-size: .72rem; }
	.marquee__word,
	.marquee__sep { font-size: 2.1rem; }
}

/* 14.6 Retouches après relecture des captures */
.btn:has(.btn__icon--lead) { justify-content: flex-start; }
@media (min-width: 601px) and (max-width: 1180px) {
	.s-hero { padding-bottom: 44px; }
	.form__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
	.s-hero { padding-bottom: 36px; }
	.s-hero__visual { aspect-ratio: auto; }
	.s-hero__media { aspect-ratio: 4 / 3.5; }
	/* Cartes « points forts » : icône à gauche, texte à droite (deux fois moins hautes). */
	.card { grid-template-columns: 48px minmax(0, 1fr); column-gap: 16px; row-gap: 6px; padding: 20px; }
	.card__icon { grid-row: 1 / span 2; margin: 0; }
	.card__title { align-self: end; font-size: 1.12rem; }
	.card__text { grid-column: 2; font-size: .94rem; }
	.card__num { display: none; }
	.site-footer__bottom > p { padding-right: 64px; }
	.to-top { top: 18px; }
	.site-footer__legal { gap: 0 20px; }
}

/* 14.7 Tactile : pas d'état « survol » qui reste affiché après un appui ; retour visuel à l'appui. */
@media (hover: none), (pointer: coarse) {
	.slider__arrow:hover,
	.ba__reset:hover,
	.to-top:hover,
	.feature-card__arrow:hover { background: transparent; border-color: var(--line-strong); color: inherit; transform: none; }
	.filter:not(.is-active):hover { border-color: var(--line-strong); }
	.faq__summary:hover .faq__q { color: inherit; }
	.zoomable:hover img,
	.svc-card__link:hover .svc-card__media img,
	.treat-card:hover .treat-card__media img { transform: none; }
	.zoomable__icon { opacity: 1; transform: none; width: 38px; height: 38px; }
	.slider__arrow:active,
	.ba__reset:active,
	.to-top:active { background: var(--red); border-color: var(--red); color: #fff; }
	.btn:active { transform: scale(.98); }
	.logos__item:hover { transform: none; box-shadow: none; border-color: var(--line); }
}
@media (max-width: 600px) {
	.hotspot__card,
	.hotspot--left .hotspot__card,
	.hotspot.is-up .hotspot__card { width: auto; }
}

/* 14.8 Mobile : avant / après en bandeau horizontal, galerie sur deux colonnes */
@media (max-width: 600px) {
	.ba__list {
		display: flex;
		gap: 10px;
		margin-inline: calc(-1 * var(--gutter));
		padding: 4px var(--gutter) 6px;
		border-top: 0;
		overflow-x: auto;
		scroll-snap-type: x mandatory;
		scroll-padding-inline: var(--gutter);
		scrollbar-width: none;
	}
	.ba__list::-webkit-scrollbar { display: none; }
	.ba__item {
		flex: 0 0 auto;
		width: min(66vw, 250px);
		grid-template-columns: 52px minmax(0, 1fr);
		gap: 2px 12px;
		align-content: center;
		padding: 10px;
		border: 1px solid var(--line);
		border-radius: var(--r-m);
		scroll-snap-align: start;
		transition: border-color .4s var(--ease), background .4s var(--ease);
	}
	.ba__item::before { display: none; }
	.ba__item.is-active { border-color: var(--red); background: rgba(235, 22, 62, .1); }
	.ba__item-thumb { grid-column: 1; grid-row: 1 / span 2; width: 52px; border-radius: 10px; }
	.ba__item-title { grid-column: 2; align-self: end; font-size: .98rem; }
	.ba__item-title button { gap: 0; }
	.ba__item-num { display: none; }
	.ba__item-meta { grid-column: 2; align-self: start; padding-left: 0; line-height: 1.2; }
	.ba__item-meta .tag { font-size: 10.5px; letter-spacing: .08em; }

	.work--grid { grid-template-columns: 1fr 1fr; gap: 18px 12px; }
	.work--grid .project article { gap: 10px; }
	.work--grid .project .zoomable { aspect-ratio: 1 / 1; border-radius: var(--r-s); }
	.work--grid .project__title { font-size: .9rem; line-height: 1.25; }
	.work--grid .tag { font-size: 10.5px; letter-spacing: .06em; }
	.work--grid .zoomable__icon { width: 30px; height: 30px; right: 8px; bottom: 8px; }
	.work--grid .zoomable__icon .icon { width: 15px; height: 15px; }
}
@media (max-width: 600px) {
	.ba__item-meta { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
	.ba__item-meta .tag { display: inline; }
	.ba__item-meta .tag::before { display: inline-block; margin-right: 6px; vertical-align: middle; }
}

/* Avant / après en mode comparaison seule (pages intérieures). */
.ba--compare .ba__toolbar { display: none; }
.ba--compare .ba__viewport { cursor: ew-resize; }

/* ==========================================================================
   15. Polish d'ensemble (relecture de toutes les pages)
   ========================================================================== */

/* Rails latéraux : seulement quand il y a de la place à côté du contenu (sinon ils le chevauchent). */
@media (max-width: 1559px) { .rail { display: none; } }

/* Avant / après à une seule paire : image et légende côte à côte, hauteur maîtrisée. */
.ba--single { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); align-items: center; }
.ba--single .ba__stage { max-width: none; }
.ba--single .ba__viewport { aspect-ratio: 4 / 3; }
.ba--single .ba__caption { display: grid; gap: 12px; margin: 0; padding: 28px; border: 1px solid var(--line); border-radius: var(--r-l); background: rgba(255, 255, 255, .03); }
.ba--single .ba__caption strong { font-size: 1.4rem; line-height: 1.2; }
.ba--single .ba__caption .tag { justify-self: start; }
@media (max-width: 900px) { .ba--single { grid-template-columns: 1fr; } }

/* Deux sections sombres qui se suivent : un filet les sépare. */
[data-theme="dark"] + [data-theme="dark"]:not(.s-trust) { border-top: 1px solid var(--line); }
.s-hero + .s-trust { border-top: 0; }

/* Pied de page : grand mot « Ma-Tek » plus discret, moins de hauteur perdue. */
.site-footer { padding-top: clamp(64px, 7vw, 104px); }
.site-footer__word { margin-top: clamp(40px, 5vw, 72px); }
.site-footer__word span { font-size: clamp(5rem, 19vw, 19rem); }

/* Titres de section : un peu moins imposants sur grand écran, meilleure respiration. */
.section-head__title { font-size: clamp(2rem, 1.3rem + 2.4vw, 3.6rem); }
.s-prose__title { font-size: clamp(1.9rem, 1.25rem + 1.9vw, 3rem); }

/* Page sans visuel dans l'en-tête : le texte prend plus de largeur. */
.s-phero:not(.has-image) .s-phero__content { max-width: 980px; }

/* ==========================================================================
   16. Matériaux fluides, transition entre les pages
   ========================================================================== */

/* 16.2 Matériaux : ouverture fluide, sans texte qui se recompose pendant l'animation */
.materials {
	container-type: inline-size;
	/* Largeur d'un panneau ouvert : texte et photo sont posés à cette largeur, le panneau ne fait que les révéler. */
	--open-w: calc((100cqw - (var(--n, 5) - 1) * 12px) * 4.2 / (4.2 + var(--n, 5) - 1));
}
.material { transition: flex-grow .85s cubic-bezier(.65, 0, .25, 1); }
.material__media img {
	position: absolute;
	top: 0;
	left: 50%;
	width: max(100%, var(--open-w));
	height: 100%;
	filter: none;
	transform: translateX(-50%) scale(1.08);
	transition: transform 1.2s var(--ease);
}
.material.is-open .material__media img { filter: none; transform: translateX(-50%) scale(1); }
.material__media::after { content: ""; position: absolute; inset: 0; background: rgba(11, 11, 12, .42); transition: opacity .8s var(--ease); }
.material.is-open .material__media::after { opacity: 0; }
.material__vertical { transition: opacity .35s var(--ease) .4s; }
.material.is-open .material__vertical { opacity: 0; transition-duration: .15s; transition-delay: 0s; }
.material__body {
	width: var(--open-w);
	max-width: none;
	transform: translateY(14px);
	transition: opacity .18s var(--ease), transform .18s var(--ease);
}
.material.is-open .material__body { opacity: 1; transform: none; transition: opacity .55s var(--ease) .32s, transform .75s var(--ease) .32s; }
.material .chip { backdrop-filter: none; background: rgba(255, 255, 255, .14); }
@media (max-width: 900px) {
	.material__media img { left: 0; width: 100%; transform: scale(1.08); }
	.material.is-open .material__media img { transform: scale(1); }
	.material__body { width: auto; }
	.material { transition: min-height .7s var(--ease); }
}

/* 16.3 Transition entre les pages : rideau rouge puis noir, logo et chargement */
.loader { position: fixed; inset: 0; z-index: 1001; visibility: hidden; pointer-events: none; }
.loader__panel { position: absolute; inset: 0; background: var(--ink); transform: translateY(101%); will-change: transform; }
.loader__panel--red { background: var(--red); }
.loader__center { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 16px; color: #f4f2ee; opacity: 0; transform: translateY(14px); }
.loader__logo { position: relative; display: grid; place-items: center; width: 92px; height: 92px; }
.loader__logo img { width: 58px; height: 58px; object-fit: contain; }
.loader__ring { position: absolute; inset: 0; width: 100%; height: 100%; }
.loader__ring circle { fill: none; stroke-width: 2; }
.loader__ring-track { stroke: rgba(255, 255, 255, .1); }
.loader__ring-arc { stroke: var(--red); stroke-linecap: round; stroke-dasharray: 70 220; transform-origin: 50px 50px; }
.loader__word { font-size: 1.15rem; font-weight: 800; letter-spacing: -.02em; }
.loader__label { min-height: 1em; font-family: var(--font-tech); font-size: .6rem; letter-spacing: .18em; text-transform: uppercase; color: rgba(244, 242, 238, .5); }
.loader__bar { position: relative; width: 132px; height: 2px; border-radius: 2px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.loader__bar span { position: absolute; inset: 0 auto 0 0; width: 40%; border-radius: inherit; background: var(--red); }

.is-leaving .loader,
.is-arriving .loader { visibility: visible; pointer-events: auto; }
.is-leaving .loader__ring-arc,
.is-arriving .loader__ring-arc { animation: loader-spin 1s linear infinite; }
.is-leaving .loader__bar span,
.is-arriving .loader__bar span { animation: loader-bar 1.15s cubic-bezier(.65, 0, .35, 1) infinite; }
.is-leaving .loader__logo img,
.is-arriving .loader__logo img { animation: loader-breathe 1.6s var(--ease) infinite; }
/* Départ : le rideau rouge monte, le noir le suit, puis le logo apparaît. */
.is-leaving .loader__panel { transform: none; transition: transform .55s cubic-bezier(.76, 0, .24, 1) .07s; }
.is-leaving .loader__panel--red { transition-delay: 0s; }
.is-leaving .loader__center { opacity: 1; transform: none; transition: opacity .35s var(--ease) .32s, transform .5s var(--ease) .32s; }
/* Arrivée : la page est couverte dès le premier rendu, puis le rideau se lève. */
.is-arriving .loader__panel { transform: none; transition: none; }
.is-arriving .loader__center { opacity: 1; transform: none; transition: none; }
.is-arriving.is-revealing .loader { pointer-events: none; }
.is-arriving.is-revealing .loader__panel { transform: translateY(-101%); transition: transform .85s cubic-bezier(.76, 0, .24, 1); }
.is-arriving.is-revealing .loader__panel--red { transition-delay: .09s; }
.is-arriving.is-revealing .loader__center { opacity: 0; transform: translateY(-16px); transition: opacity .3s var(--ease), transform .45s var(--ease); }
@keyframes loader-spin { to { transform: rotate(360deg); } }
@keyframes loader-bar { 0% { transform: translateX(-110%); } 100% { transform: translateX(260%); } }
@keyframes loader-breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(.92); } }
@media (prefers-reduced-motion: reduce) { .loader { display: none; } }

/* ==========================================================================
   17. Retours client (octobre 2026)
   ========================================================================== */

/* 17.1 Logo comme l'officiel : sphère au-dessus, « Ma-Tek » en dessous, sans ombre. */
.brand { flex-direction: column; justify-content: center; gap: 4px; }
.brand__mark { width: 38px; height: 38px; }
.brand__name { font-size: 1.1rem; letter-spacing: 0; }
.loader__word { font-family: var(--font-brand); font-size: 1.35rem; font-weight: 400; letter-spacing: 0; }
@media (max-width: 900px) {
	.brand { gap: 3px; }
	.brand__mark { width: 30px; height: 30px; }
	.brand__name { font-size: .95rem; }
}

/* 17.2 Contact : zones (texte) + plan d'accès direct, itinéraire et téléphone bien visibles. */
.s-zones--access .s-zones__grid { grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); align-items: start; }
.s-zones--access .section-head { margin-bottom: 28px; }
.s-zones--access .zone { padding: 18px 0; gap: 12px; }
.s-zones--access .zone__title { font-size: 1.15rem; }
.access-card { display: grid; border: 1px solid var(--line); border-radius: var(--r-xl); background: rgba(255, 255, 255, .03); overflow: hidden; box-shadow: 0 50px 100px -60px rgba(0, 0, 0, .9); }
.access-card__map { position: relative; aspect-ratio: 10 / 7; background: var(--ink-3); overflow: hidden; }
.access-card__map img { width: 100%; height: 100%; object-fit: cover; }
.access-card__marker { position: absolute; left: 50%; top: 50%; display: grid; place-items: center; width: 52px; height: 52px; margin: -26px 0 0 -26px; border-radius: 50%; background: var(--red); color: #fff; box-shadow: 0 0 0 10px rgba(235, 22, 62, .22), 0 14px 30px -8px rgba(0, 0, 0, .6); }
.access-card__marker::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--red); opacity: .5; animation: ping 2.4s var(--ease) infinite; z-index: -1; }
.access-card__marker .icon { width: 22px; height: 22px; }
.access-card__open { position: absolute; top: 14px; right: 14px; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px; border-radius: 99px; background: rgba(11, 11, 12, .82); color: #fff; font-size: .8rem; font-weight: 700; transition: background .3s var(--ease); }
.access-card__open .icon { width: 14px; height: 14px; }
.access-card__open:hover { background: var(--red); }
.access-card__credit { position: absolute; right: 0; bottom: 0; padding: 3px 8px; border-top-left-radius: 8px; background: rgba(255, 255, 255, .85); color: #333; font-size: .66rem; }
.access-card__credit a { display: inline-block; margin: -14px 0; padding: 14px 0; color: inherit; text-decoration: underline; } /* zone tactile de 44 px sans changer l’aspect */
.access-card__body { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 18px 28px; padding: 24px 26px 26px; }
.access-card__address { display: grid; gap: 4px; min-width: 0; }
.access-card__title { font-size: 1.15rem; font-weight: 700; letter-spacing: -.01em; }
.access-card__address address { font-style: normal; font-size: .9rem; color: rgba(244, 242, 238, .82); }
.access-card__text { margin-top: 2px; font-size: .82rem; line-height: 1.5; color: var(--muted); }
.access-card__actions { display: grid; gap: 10px; justify-items: stretch; }
.access-card__phone { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 20px; border: 1px solid var(--line-strong); border-radius: 99px; color: #fff; font-size: 1.05rem; font-weight: 700; white-space: nowrap; transition: border-color .3s var(--ease), background .3s var(--ease); }
.access-card__phone-icon { display: grid; place-items: center; color: var(--red); }
.access-card__phone-icon .icon { width: 18px; height: 18px; }
.access-card__phone:hover { border-color: var(--red); background: rgba(235, 22, 62, .08); }
@media (max-width: 1180px) {
	.s-zones--access .s-zones__grid { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 600px) {
	.access-card__map { aspect-ratio: 4 / 3.4; }
	.access-card__body { grid-template-columns: 1fr; padding: 20px; }
	.access-card__open { top: 10px; right: 10px; }
}

/* 17.3 Avant / après : liste plus dense quand il y a beaucoup de paires (grand écran). */
@media (min-width: 1181px) {
	.ba__list:has(> :nth-child(6)) .ba__item { grid-template-columns: minmax(0, 1fr) 56px; gap: 4px 16px; padding: 12px 0; }
	.ba__list:has(> :nth-child(6)) .ba__item-thumb { width: 56px; }
	.ba__list:has(> :nth-child(6)) .ba__item-title { font-size: 1.08rem; }
}

/* Beaucoup de paires : la photo reste visible pendant qu'on parcourt la liste. */
@media (min-width: 1181px) {
	.ba:has(.ba__list > :nth-child(8)) .ba__stage { position: sticky; top: calc(var(--header-h) + 24px); }
}

/* 17.4 Accueil : animation du sableur (vidéo 16:9) à droite du texte, fondue dans le fond
   (fond de la vidéo = noir du site, fusion « éclaircir » : aucun bord visible). */
.s-hero.has-video .s-hero__inner { grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); }
.s-hero__visual--video { display: grid; align-items: center; min-height: 0; }
.s-hero__film {
	position: relative;
	aspect-ratio: 16 / 9;
}
.s-hero__video {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	background: var(--ink);
	/* Le sableur est coupé par le bas et la gauche du cadre d'origine : fondu doux sur ces deux bords
	   (sur la vidéo seulement, pas sur le logo vectoriel posé par-dessus). */
	-webkit-mask-image: linear-gradient(180deg, #000 72%, transparent 100%), linear-gradient(90deg, transparent 0, #000 7%);
	-webkit-mask-composite: source-in;
	mask-image: linear-gradient(180deg, #000 72%, transparent 100%), linear-gradient(90deg, transparent 0, #000 7%);
	mask-composite: intersect;
}
/* Le noir de la vidéo laisse passer le halo rouge du fond (éclaircir) : pas de rectangle visible.
   Pour que la fusion « voie » le halo, le contenu du hero ne crée pas de contexte d'empilement à part. */
.s-hero.has-video .s-hero__inner { z-index: auto; }
.s-hero.has-video .grain { z-index: 0; }
.s-hero__film { mix-blend-mode: lighten; }
.s-hero__play {
	position: absolute;
	right: 9%;
	bottom: 12%;
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, .18);
	border-radius: 50%;
	background: rgba(11, 11, 12, .55);
	color: #fff;
	opacity: .55;
	cursor: pointer;
	transition: opacity .3s var(--ease), background .3s var(--ease), border-color .3s var(--ease);
}
.s-hero__play:hover,
.s-hero__play:focus-visible { opacity: 1; background: var(--red); border-color: var(--red); }
.s-hero__play .icon { width: 16px; height: 16px; }
.s-hero__play-icon { display: none; }
.s-hero__play[data-state="play"] .s-hero__play-icon--play,
.s-hero__play[data-state="pause"] .s-hero__play-icon--pause,
.s-hero__play[data-state="replay"] .s-hero__play-icon--replay,
.s-hero__play:not([data-state]) .s-hero__play-icon--play { display: grid; }
@media (max-width: 1180px) {
	.s-hero.has-video .s-hero__inner { grid-template-columns: 1fr; }
	.s-hero__visual--video { aspect-ratio: auto; margin-right: 0; }
	.s-hero__film { width: min(100%, 820px); margin-inline: auto; }
}
@media (max-width: 600px) {
	.s-hero__film { width: auto; margin-inline: calc(-1 * var(--gutter)); }
}

/* 17.5 Texte et image : photo entière (schéma, image avec du texte), sans recadrage 4:3. */
.s-prose.is-image-full .s-prose__media .zoomable { aspect-ratio: auto; }
.s-prose.is-image-full .s-prose__media img { height: auto; }

/* 17.6 En-tête : menu centré sur la page ; logo à gauche et boutons à droite dans deux colonnes égales
   (elles ne descendent jamais sous leur contenu : pas de chevauchement sur les écrans plus étroits). */
.site-header__inner { grid-template-columns: minmax(max-content, 1fr) auto minmax(max-content, 1fr); }
.site-header__inner > .brand { justify-self: start; }
.site-header__actions { justify-self: end; }
/* Sélecteur FR / DE toujours visible dans l'en-tête ; plus compact sur les écrans étroits. */
@media (max-width: 1480px) {
	.site-header__inner { gap: 24px; }
}
@media (max-width: 1320px) {
	.site-header .lang-switch { padding: 3px; }
	.site-header .lang-switch__item { min-width: 30px; height: 26px; padding: 0 6px; }
}
@media (max-width: 1180px) {
	.site-header__inner { grid-template-columns: auto 1fr auto; }
}

/* 17.7 Accueil : logo vectoriel qui prend le relais de la vidéo (net à toutes les tailles). */
.s-hero__logo { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; transform-origin: 50% 58%; will-change: transform; }
.s-hero__logo .lg-sheen { opacity: 0; }
/* Sans animation (ou avant le démarrage de main.js) : logo final affiché, vidéo masquée. */
.s-hero__film.has-logo .s-hero__video { opacity: 0; }
/* Animation prévue : la vidéo s'affiche, le logo attend son tour. */
.has-motion .s-hero__film.has-logo:not(.is-static) .s-hero__video { opacity: 1; }
.has-motion .s-hero__film.has-logo:not(.is-static) .lg { opacity: 0; }

/* ==========================================================================
   18. Accueil : atelier interactif (le sableur décape la matière choisie)
   ========================================================================== */
.s-lab { position: relative; padding: calc(var(--section-y) * .62) 0 calc(var(--section-y) * .55); overflow: hidden; }
.s-lab .section-head { margin-bottom: clamp(4px, 1vw, 14px); }
.s-lab__glow {
	position: absolute;
	right: -10%;
	top: 22%;
	width: min(1100px, 95vw);
	aspect-ratio: 1.5;
	border-radius: 50%;
	background: radial-gradient(closest-side, rgba(235, 22, 62, .14), rgba(212, 168, 90, .05) 55%, transparent 75%);
	pointer-events: none;
}
.lab { position: relative; }

/* Scène : unités relatives à sa largeur (cqw) pour que le jet, la buse et la plaque restent alignés.
   Hauteur par aspect-ratio (et non padding en %, qui suivrait la largeur de l'écran au-delà de 1360 px).
   Buse du sableur à −0,8 + 0,606 × 34,9 ≈ 20,35 cqw du haut = centre de la plaque (6,1 + 28,5 / 2). */
.lab__stage { position: relative; max-width: 1360px; margin-inline: auto; container-type: inline-size; aspect-ratio: 100 / 34.1; }
.lab__sableur { position: absolute; left: -6cqw; bottom: 0; width: 62cqw; aspect-ratio: 16 / 9; pointer-events: none; }
.lab__sableur img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
	mix-blend-mode: lighten;
	user-select: none;
	-webkit-mask-image: linear-gradient(180deg, #000 70%, transparent 99%), linear-gradient(90deg, transparent 6%, #000 16%);
	-webkit-mask-composite: source-in;
	mask-image: linear-gradient(180deg, #000 70%, transparent 99%), linear-gradient(90deg, transparent 6%, #000 16%);
	mask-composite: intersect;
}
/* Départ du jet à l'intérieur du tuyau (625, 436 sur 1280 × 720, l'ouverture est en 644) : l'embout détouré,
   posé devant le jet, le masque. */
.lab__nozzle { position: absolute; left: 48.83%; top: 60.56%; width: 0; height: 0; }
.lab__sableur--front { pointer-events: none; }
.lab__sableur .lab__buse { position: absolute; left: 40.625%; top: 56.25%; width: 10.9375%; height: 8.3333%; object-fit: fill; mix-blend-mode: normal; -webkit-mask-image: none; mask-image: none; }
.lab__bench { position: absolute; left: 53cqw; top: 6.1cqw; width: 38cqw; aspect-ratio: 4 / 3; }
.lab__slab { position: absolute; inset: 0; transform-style: preserve-3d; transform: perspective(1500px) rotateY(-16deg) rotateX(3deg); will-change: transform; }
.lab__face {
	position: absolute;
	inset: 0;
	border-radius: 14px;
	overflow: hidden;
	background: #1b1b1e;
	box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 40px 80px -30px rgba(0, 0, 0, .9);
	touch-action: pan-y;
	cursor: crosshair;
}
.lab__apres,
.lab__avant { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; }
.lab__sheen { position: absolute; inset: -20% auto -20% -40%; width: 30%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .38), transparent); transform: skewX(-14deg); opacity: 0; pointer-events: none; }
.lab__corner { position: absolute; width: 0; height: 0; }
.lab__corner[data-c="0"] { left: 0; top: 0; }
.lab__corner[data-c="1"] { right: 0; top: 0; }
.lab__corner[data-c="2"] { right: 0; bottom: 0; }
.lab__corner[data-c="3"] { left: 0; bottom: 0; }
.lab__edge { position: absolute; background: linear-gradient(90deg, #2a2a2e, #141416); }
.lab__edge--left { right: 0; top: 6px; bottom: 6px; width: 26px; transform-origin: right center; transform: rotateY(-90deg); border-radius: 0 6px 6px 0; }
.lab__edge--bottom { left: 6px; right: 6px; bottom: 0; height: 26px; transform-origin: center bottom; transform: rotateX(90deg); background: linear-gradient(180deg, #232326, #0e0e10); }
.lab__shadow { position: absolute; left: 6%; right: 2%; bottom: -9%; height: 14%; border-radius: 50%; background: radial-gradient(closest-side, rgba(0, 0, 0, .75), transparent); filter: blur(6px); pointer-events: none; }
.lab__hud { position: absolute; left: 0; right: 0; bottom: calc(100% + 14px); display: flex; align-items: center; justify-content: space-between; gap: 16px; pointer-events: none; }
.lab__tag { padding: 6px 12px; border-radius: 99px; background: var(--red); font-family: var(--font-tech); font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: #fff; }
.lab__meter { display: inline-flex; align-items: center; gap: 12px; font-family: var(--font-tech); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(244, 242, 238, .7); }
.lab__meter-bar { position: relative; width: 120px; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .12); overflow: hidden; }
.lab__meter-bar span { position: absolute; inset: 0; background: linear-gradient(90deg, #d4a85a, var(--red)); transform: scaleX(0); transform-origin: left; }
.lab__meter-num { min-width: 9.5em; text-align: right; }
.lab__hint { position: absolute; left: 50%; bottom: 14px; margin: 0; padding: 7px 14px; border-radius: 99px; background: rgba(11, 11, 12, .72); font-size: .76rem; font-weight: 600; white-space: nowrap; color: rgba(244, 242, 238, .85); translate: -50% 0; pointer-events: none; transition: opacity .5s var(--ease); }
.lab__hint-touch { display: none; }
.lab__jet { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }

/* Fiche + choix de la matière */
.lab__panel { position: relative; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.3fr); align-items: center; gap: clamp(24px, 3vw, 48px); margin-top: clamp(28px, 2.6vw, 40px); }
.lab__info { display: grid; gap: 8px; justify-items: start; }
.lab__info[hidden] { display: none; }
.lab__eyebrow { display: flex; align-items: center; gap: 12px; font-family: var(--font-tech); font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--red); }
.lab__eyebrow span { color: rgba(244, 242, 238, .6); }
.lab__title { font-size: clamp(1.6rem, 1.1rem + 1.4vw, 2.3rem); font-weight: 700; letter-spacing: -.035em; line-height: 1.05; }
.lab__text { max-width: 30em; color: var(--muted); line-height: 1.6; }
.lab__dock { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.lab__mat {
	position: relative;
	display: grid;
	justify-items: center;
	gap: 8px;
	padding: 10px 6px 10px;
	border: 1px solid transparent;
	border-radius: 16px;
	background: none;
	color: rgba(244, 242, 238, .62);
	cursor: pointer;
	transition: background .4s var(--ease), border-color .4s var(--ease), color .3s;
}
.lab__mat:hover { background: rgba(255, 255, 255, .04); color: #fff; }
.lab__mat.is-active { border-color: rgba(255, 255, 255, .1); background: rgba(255, 255, 255, .05); color: #fff; }
.lab__mat-ring { position: absolute; left: 50%; top: 6px; width: 68px; height: 68px; translate: -50% 0; }
.lab__mat-ring svg { width: 100%; height: 100%; rotate: -90deg; overflow: visible; }
.lab__mat-ring circle { fill: none; stroke: rgba(255, 255, 255, .07); stroke-width: 1.5; }
.lab__mat-ring .lab__mat-arc { stroke: var(--red); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; }
.lab__mat-obj { position: relative; display: grid; place-items: center; width: 68px; height: 68px; }
.lab__mat-obj img { width: 52px; height: 46px; object-fit: contain; filter: drop-shadow(0 8px 8px rgba(0, 0, 0, .55)); transition: transform .6s var(--ease); }
.lab__mat:hover .lab__mat-obj img,
.lab__mat.is-active .lab__mat-obj img { transform: translateY(-3px) scale(1.1); }
.lab__mat-name { font-family: var(--font-tech); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; }
.lab__mat-done { position: absolute; top: 8px; right: 12px; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--red); color: #fff; opacity: 0; transform: scale(.4); transition: opacity .4s var(--ease), transform .5s var(--ease); }
.lab__mat-done .icon { width: 13px; height: 13px; }
.lab__mat.is-done .lab__mat-done { opacity: 1; transform: none; }

/* Sans JavaScript ou animations réduites : pas de canvas « avant ». */
html:not(.js) .lab__avant { display: none; }

@media (max-width: 1100px) {
	.lab__panel { grid-template-columns: 1fr; }
}
/* Téléphones et tablettes (écran étroit ou tactile) : pas de sableur, la plaque seule, centrée, qu'on sable
   du doigt (touch-action: none : glisser sur la plaque sable au lieu de faire défiler la page). Le jet part
   d'une buse invisible juste au-dessus du point touché (scene.js). */
@media (max-width: 900px), (hover: none) and (pointer: coarse) {
	.lab__stage { aspect-ratio: auto; padding-top: 8px; }
	.lab__sableur { display: none; }
	.lab__bench { position: relative; left: auto; top: auto; width: min(88cqw, 720px); margin: 0 auto 48px; }
	.lab__slab { transform: perspective(1100px) rotateY(-6deg) rotateX(2deg); }
	.lab__face { touch-action: none; cursor: auto; }
	.lab__hud { bottom: auto; top: calc(100% + 16px); }
}
@media (max-width: 900px) {
	.lab__meter-bar { display: none; }
	.lab__meter-num { min-width: 0; }
	.lab__dock { display: flex; gap: 4px; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); scrollbar-width: none; }
	.lab__dock::-webkit-scrollbar { display: none; }
	.lab__mat { flex: 0 0 104px; scroll-snap-align: start; }
}
@media (hover: none) {
	.lab__hint-mouse { display: none; }
	.lab__hint-touch { display: inline; }
}

/* ==========================================================================
   19. Respiration : plus d'espace entre les sections (tout le site)
   ========================================================================== */
:root { --section-y: clamp(96px, 11vw, 176px); }
.section-head { margin-bottom: clamp(44px, 5vw, 80px); }
.s-lab { padding: calc(var(--section-y) * .85) 0 calc(var(--section-y) * .8); }
.s-lab .section-head { margin-bottom: clamp(16px, 2vw, 28px); }
.s-lab .lab__panel { margin-top: clamp(36px, 3.4vw, 56px); }
.s-trust { padding-bottom: clamp(56px, 6vw, 92px); }
.s-lab + .s-trust { padding-top: clamp(16px, 2vw, 32px); }
.s-figures { padding: var(--section-y) 0; }
.s-cta { padding: clamp(104px, 11vw, 176px) 0; }
.s-phero { padding-bottom: clamp(88px, 9vw, 144px); }
.site-footer { padding-top: clamp(96px, 10vw, 160px); }
@media (max-width: 600px) {
	:root { --section-y: 84px; }
	.section-head { margin-bottom: 36px; }
	.s-cta { padding: 88px 0; }
}

/* ==========================================================================
   20. Photos du client : grille avant / après, chantiers, visionneuse
   ========================================================================== */
/* 20.1 Grille de vignettes avant / après (sous la vitrine) */
.ba-grid { margin-top: clamp(64px, 7vw, 112px); padding-top: clamp(40px, 4vw, 64px); border-top: 1px solid var(--line); }
.ba-grid__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; margin-bottom: 32px; }
.ba-grid__title { font-size: clamp(1.4rem, 2.2vw, 1.9rem); font-weight: 700; letter-spacing: -.03em; }
.ba-grid__title span { margin-left: 6px; font-family: var(--font-tech); font-size: .62rem; letter-spacing: .1em; color: var(--red); vertical-align: super; }
.ba-grid__head .filters { margin: 0; }
.ba-grid__list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px) clamp(12px, 1.6vw, 24px); }
.ba-card[hidden] { display: none; }
.ba-card__media { position: relative; display: block; width: 100%; aspect-ratio: 4 / 3; padding: 0; border: 0; border-radius: var(--r-m); overflow: hidden; background: var(--ink-3); cursor: pointer; }
.ba-card__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), clip-path .8s var(--ease); }
/* Au survol, la photo « avant » glisse par-dessus depuis la gauche, jusqu'au milieu. */
.ba-card__img--before { clip-path: inset(0 100% 0 0); transition: transform 1.2s var(--ease), clip-path .9s cubic-bezier(.65, 0, .35, 1); }
.ba-card__media:hover .ba-card__img,
.ba-card__media:focus-visible .ba-card__img { transform: scale(1.05); }
.ba-card__media:hover .ba-card__img--before,
.ba-card__media:focus-visible .ba-card__img--before { clip-path: inset(0 50% 0 0); }
.ba-card__badge { position: absolute; left: 12px; right: 12px; bottom: 12px; display: flex; justify-content: space-between; pointer-events: none; }
.ba-card__badge span { padding: 6px 10px; border-radius: 999px; background: rgba(11, 11, 12, .6); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); font-family: var(--font-tech); font-size: .58rem; letter-spacing: .14em; text-transform: uppercase; color: #fff; opacity: 0; transform: translateY(6px); transition: opacity .4s var(--ease), transform .5s var(--ease); }
.ba-card__badge span:last-child { background: var(--red); opacity: 1; transform: none; }
.ba-card__media:hover .ba-card__badge span,
.ba-card__media:focus-visible .ba-card__badge span { opacity: 1; transform: none; }
.ba-card__title { margin-top: 12px; font-size: 1rem; font-weight: 700; letter-spacing: -.01em; line-height: 1.3; }
.ba-card__tech { margin-top: 4px; font-size: .82rem; color: var(--muted); }
.ba-grid__more { display: flex; justify-content: center; margin-top: clamp(32px, 4vw, 56px); }
.ba-grid__more[hidden] { display: none; }
.ba-grid__left { font-family: var(--font-tech); font-size: .6rem; letter-spacing: .08em; opacity: .6; }
.s-work .ba-grid__more { margin-top: clamp(40px, 4vw, 64px); }

/* 20.2 Chantiers : nombre de photos sur la couverture */
.project__count { position: absolute; right: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; background: rgba(11, 11, 12, .66); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); font-family: var(--font-tech); font-size: .58rem; letter-spacing: .12em; text-transform: uppercase; color: #fff; transition: background .4s var(--ease); }
.project__count .icon { width: 16px; height: 16px; }
.project__media:hover .project__count { background: var(--red); }

/* 20.3 Texte et image : deuxième photo sous la première */
.s-prose__media .zoomable + .zoomable { margin-top: 4px; }

/* 20.4 Visionneuse : navigation, légende, comparaison */
.lightbox { grid-template-rows: minmax(0, 1fr) auto; gap: 16px; padding: 72px 96px 24px; }
.lightbox__stage { display: grid; place-items: center; min-height: 0; width: 100%; height: 100%; }
.lightbox__stage > * { max-width: 100%; max-height: 100%; }
.lightbox__img { max-height: calc(100vh - 150px); width: auto; border-radius: var(--r-m); box-shadow: var(--shadow-card); transform: scale(.94); transition: transform .6s var(--ease); cursor: zoom-in; }
.lightbox.is-open .lightbox__img { transform: none; }
.lightbox.is-zoomed .lightbox__img { transform: scale(1.8); cursor: zoom-out; }
.lightbox__compare { position: relative; border-radius: var(--r-m); overflow: hidden; box-shadow: var(--shadow-card); user-select: none; -webkit-user-select: none; touch-action: pan-y; }
.lightbox__compare img { display: block; }
.lightbox__after { max-width: calc(100vw - 192px); max-height: calc(100vh - 150px); width: auto; height: auto; }
.lightbox__before { position: absolute; inset: 0; }
.lightbox__before img { width: 100%; height: 100%; object-fit: cover; }
.lightbox__compare .ba__handle { left: var(--pos, 50%); }
.lightbox__caption { display: flex; align-items: baseline; justify-content: center; gap: 14px; min-height: 1.4em; font-size: .92rem; color: rgba(255, 255, 255, .86); text-align: center; }
.lightbox__count { font-family: var(--font-tech); font-size: .6rem; letter-spacing: .12em; color: rgba(255, 255, 255, .55); }
.lightbox__count:empty { display: none; }
.lightbox__nav { position: absolute; top: 50%; display: grid; place-items: center; width: 56px; height: 56px; margin-top: -28px; border: 1px solid rgba(255, 255, 255, .3); border-radius: 50%; background: rgba(11, 11, 12, .4); color: #fff; transition: background .3s, border-color .3s; }
.lightbox__nav:hover { background: var(--red); border-color: var(--red); }
.lightbox__nav--prev { left: 24px; }
.lightbox__nav--next { right: 24px; }

@media (max-width: 1100px) {
	.ba-grid__list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
	.ba-grid__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ba-card__badge span:first-child { display: none; }
	.lightbox { padding: 64px 12px 84px; }
	.lightbox__after { max-width: calc(100vw - 24px); max-height: calc(100vh - 170px); }
	.lightbox__img { max-height: calc(100vh - 170px); }
	.lightbox__nav { top: auto; bottom: 16px; margin: 0; width: 52px; height: 52px; }
	.lightbox__nav--prev { left: calc(50% - 64px); }
	.lightbox__nav--next { right: calc(50% - 64px); }
	.lightbox__caption { padding: 0 8px; font-size: .85rem; }
}
@media (max-width: 600px) {
	.project__count { right: 8px; bottom: 8px; gap: 5px; padding: 6px 9px; font-size: 10.5px; letter-spacing: .04em; }
	.project__count .icon { width: 13px; height: 13px; }
}

/* 20.5 Réalisations : diaporama dans chaque carte de chantier */
.slides { display: grid; gap: 16px; height: 100%; grid-template-rows: auto 1fr; }
.slides__frame { position: relative; aspect-ratio: 4 / 3; border-radius: var(--r-l); overflow: hidden; background: var(--ink-3); touch-action: pan-y; }
.slides__view { position: absolute; inset: 0; display: block; width: 100%; height: 100%; padding: 0; border: 0; border-radius: 0; background: none; cursor: pointer; }
.slides__view > img,
.slides__layer,
.slides__layer > img,
.slides__pair,
.slides__pair img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.slides__view > img,
.slides__layer > img,
.slides__pair > img { transition: transform 1.2s var(--ease); }
.slides__frame:hover .slides__view img { transform: scale(1.04); }
.slides__before { position: absolute; inset: 0; clip-path: inset(0 50% 0 0); }
.slides__pair::after { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; margin-left: -1px; background: #fff; box-shadow: 0 0 12px rgba(0, 0, 0, .35); }
.slides__badge { position: absolute; top: 12px; left: 12px; right: 12px; display: flex; justify-content: space-between; pointer-events: none; }
.slides__badge[hidden] { display: none; }
.slides__badge span { padding: 6px 10px; border-radius: 999px; background: rgba(11, 11, 12, .6); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); font-family: var(--font-tech); font-size: .58rem; letter-spacing: .14em; text-transform: uppercase; color: #fff; }
.slides__badge span:last-child { background: var(--red); }
.slides__nav { position: absolute; top: 50%; z-index: 2; display: grid; place-items: center; width: 44px; height: 44px; margin-top: -22px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .92); color: var(--ink); box-shadow: 0 8px 24px rgba(0, 0, 0, .25); opacity: 0; transition: opacity .35s var(--ease), transform .45s var(--ease), background .3s, color .3s; }
.slides__nav .icon { width: 18px; height: 18px; }
.slides__nav--prev { left: 12px; transform: translateX(-8px); }
.slides__nav--next { right: 12px; transform: translateX(8px); }
.slides__frame:hover .slides__nav,
.slides:focus-within .slides__nav { opacity: 1; transform: none; }
.slides__nav:hover { background: var(--red); color: #fff; }
.slides__count { position: absolute; right: 12px; bottom: 16px; display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 999px; background: rgba(11, 11, 12, .66); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); font-family: var(--font-tech); font-size: .58rem; letter-spacing: .1em; color: #fff; pointer-events: none; }
.slides__count .icon { width: 15px; height: 15px; }
.slides__bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255, 255, 255, .25); pointer-events: none; }
.slides__bar span { display: block; height: 100%; background: var(--red); transition: width .5s var(--ease); }
.s-work .slides .zoomable__icon { display: none; }
@media (hover: none) {
	.slides__nav { opacity: 1; transform: none; width: 40px; height: 40px; margin-top: -20px; background: rgba(255, 255, 255, .85); }
}
@media (max-width: 600px) {
	.work--grid .slides__frame { aspect-ratio: 4 / 3; border-radius: var(--r-m); }
	.slides__nav { width: 36px; height: 36px; margin-top: -18px; }
	.slides__nav--prev { left: 8px; }
	.slides__nav--next { right: 8px; }
	.slides__count { right: 8px; bottom: 11px; padding: 5px 9px; font-size: 10.5px; letter-spacing: .04em; }
	.slides__badge span { font-size: 10.5px; padding: 5px 8px; letter-spacing: .06em; }
}
@media (max-width: 600px) {
	/* Une carte par ligne : le diaporama reste lisible et se feuillette au doigt. */
	.s-work .work--grid { grid-template-columns: 1fr; gap: 32px; }
	.s-work .work--grid .project__title { font-size: 1.05rem; }
}
.s-work .project .slides { grid-template-rows: auto auto; align-content: start; height: auto; }

/* 20.6 Menu Prestations : carte « Spécialité » assez large pour l'image entière (le gars et les deux sigles). */
.dropdown.has-feature { width: 840px; }
.has-feature .dropdown__panel { grid-template-columns: minmax(0, 1fr) 300px; }
.dropdown__feature-media img { object-position: 45% 50%; }

/* 20.7 Avant / après : longue série (accueil), la liste défile à côté de la photo, à la même hauteur */
.ba__list--scroll { overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .25) transparent; padding-right: 10px; -webkit-mask-image: linear-gradient(180deg, #000 calc(100% - 56px), transparent); mask-image: linear-gradient(180deg, #000 calc(100% - 56px), transparent); }
.ba__list--scroll::-webkit-scrollbar { width: 6px; }
.ba__list--scroll::-webkit-scrollbar-thumb { border-radius: 6px; background: rgba(255, 255, 255, .25); }
.ba__list--scroll .ba__item:last-child { margin-bottom: 40px; }
@media (min-width: 1181px) {
	.ba:has(.ba__list--scroll) { align-items: stretch; }
	.ba:has(.ba__list--scroll) .ba__stage { position: relative; top: auto; }
	.ba__list--scroll { height: 0; min-height: 100%; }
}
@media (min-width: 601px) and (max-width: 1180px) {
	.ba__list--scroll { max-height: 460px; }
}
@media (max-width: 600px) {
	.ba__list--scroll { padding-right: var(--gutter); -webkit-mask-image: none; mask-image: none; }
	.ba__list--scroll .ba__item:last-child { margin-bottom: 0; }
}

/* 21. Accessibilité (WCAG 2.2 AA) ---------------------------------------------------- */
/* Petits textes rouges sur fond sombre : rouge plus lumineux (le rouge de la marque n'y atteint que 4,4:1). */
[data-theme="dark"] .tag,
[data-theme="dark"] .lab__eyebrow,
[data-theme="dark"] .ba-grid__title span { color: var(--red-on-dark); }
/* Petits textes rouges sur fond clair : rouge foncé (5:1 au lieu de 4:1, aussi sur le fond papier). */
[data-theme="light"] .tag,
[data-theme="paper"] .tag { color: #c41034; }
/* Logos clients sans animation (mouvements réduits) : la bande se fait défiler, au doigt comme au clavier
   (la rangée est focalisable) ; la copie qui sert à la boucle de l'animation est masquée. */
@media (prefers-reduced-motion: reduce) {
	.logos__group[aria-hidden="true"] { display: none; }
}
.logos__row:focus-visible { outline: 2px solid var(--red); outline-offset: 4px; border-radius: var(--r-m); }

/* 22. Mobile et tablette ------------------------------------------------------------------------ */
/* Pastilles sur les photos (chalet de l'accueil, cabine de l'atelier) : réservées à la souris, avec leur
   libellé au survol. Au doigt et sur les photos recadrées des petits écrans, elles masquaient la photo sans
   rien dire et tombaient à côté du détail visé. */
@media (max-width: 1100px), (hover: none) and (pointer: coarse) {
	.hotspots { display: none; }
}
/* Zones tactiles d'au moins 40 px : sélecteur de langue, flèches des diaporamas. */
@media (max-width: 900px), (hover: none) and (pointer: coarse) {
	.site-header .lang-switch__item { min-width: 40px; min-height: 40px; }
	.slides__nav { width: 44px; height: 44px; margin-top: -22px; }
}
.ba-card__badge span,
.ba-grid__left,
.ba-grid__title span,
.slides__count,
.slides__badge span { font-size: max(.66rem, 10.5px); }
/* Le sableur détouré de la page Contact flottait seul entre les coordonnées et le formulaire. */
@media (max-width: 900px) {
	.s-contact__photo { display: none; }
}
/* Sphère des en-têtes de page : en haut à droite de la photo (en bas, elle cachait les pictogrammes). */
@media (max-width: 1100px) {
	.s-phero__orb { top: -30px; bottom: auto; }
}
