/*
Theme Name: Volk Engineering
Theme URI: https://www.instagram.com/volk_engineering/
Author: Volk Engineering
Description: Thème vitrine one-page pour Volk Engineering — conception et rétroconception mécanique. Deux pôles (particuliers / professionnels), méthode, réalisations et formulaire de contact avec pièces jointes. Réglages dans Apparence → Personnaliser → Volk Engineering.
Version: 1.0.0
Requires at least: 6.3
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: volk
*/

/* ==========================================================================
   Polices (auto-hébergées)
   ========================================================================== */
@font-face { font-family: "Archivo"; src: url("assets/fonts/Archivo-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Archivo"; src: url("assets/fonts/Archivo-Medium.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Archivo Expanded"; src: url("assets/fonts/ArchivoExpanded-Light.woff2") format("woff2"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "Archivo Expanded"; src: url("assets/fonts/ArchivoExpanded-Medium.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("assets/fonts/JetBrainsMono-Regular.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }

/* ==========================================================================
   Variables
   ========================================================================== */
:root {
	--bg: #0a0b0d;
	--bg-2: #0f1114;
	--bg-3: #15181c;
	--text: #ebe8e1;
	--muted: #9b9c9e;
	--faint: #5f6165;
	--line: rgba(235, 232, 225, .11);
	--line-strong: rgba(235, 232, 225, .26);
	--accent: #d9622b;
	--accent-hover: #ee7639;
	--paper: #e8e5de;
	--paper-2: #dfdbd2;
	--ink: #111215;
	--ink-muted: #56585d;
	--ink-line: rgba(17, 18, 21, .14);

	--f-body: "Archivo", "Helvetica Neue", Arial, sans-serif;
	--f-display: "Archivo Expanded", "Archivo", "Helvetica Neue", Arial, sans-serif;
	--f-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

	--gutter: clamp(16px, 4vw, 48px);
	--max: 1320px;
	--header-h: 76px;
	--section-y: clamp(88px, 12vw, 168px);
	--ease: cubic-bezier(.2, .7, .1, 1);
}

/* ==========================================================================
   Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: var(--f-body);
	font-size: clamp(16px, 1.05vw, 17px);
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
	overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, label:focus-within {
	outline: 2px solid var(--accent);
	outline-offset: 3px;
}
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
::selection { background: var(--accent); color: #fff; }

.screen-reader-text, .hp {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
.skip-link {
	position: fixed; top: 8px; left: 8px; z-index: 200;
	padding: 10px 16px; background: var(--accent); color: #fff;
	transform: translateY(-200%); transition: transform .2s;
}
.skip-link:focus { transform: none; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: 860px; }

/* ==========================================================================
   Typographie utilitaire
   ========================================================================== */
.label {
	display: inline-flex; align-items: center; gap: .9em;
	font-family: var(--f-mono);
	font-size: 11px; line-height: 1.4;
	letter-spacing: .16em; text-transform: uppercase;
	color: var(--muted);
}
.label--accent { color: var(--text); }
.label__index { color: var(--accent); display: inline-flex; align-items: center; gap: .9em; }
.label__index::after { content: ""; width: 28px; height: 1px; background: var(--line-strong); }

.section__title {
	font-family: var(--f-display);
	font-weight: 500;
	font-size: clamp(1.9rem, 3.6vw, 3.4rem);
	line-height: 1.06;
	letter-spacing: -.02em;
	margin-top: 22px;
	max-width: 18ch;
	text-wrap: balance;
}
.section__lead {
	margin-top: 22px;
	max-width: 52ch;
	color: var(--muted);
	font-size: 1.06em;
	text-wrap: pretty;
}

/* ==========================================================================
   Boutons
   ========================================================================== */
.btn {
	--btn-bg: transparent; --btn-fg: var(--text); --btn-bd: var(--line-strong);
	position: relative;
	display: inline-flex; align-items: center; justify-content: center; gap: 14px;
	min-height: 52px; padding: 0 22px;
	background: var(--btn-bg); color: var(--btn-fg);
	border: 1px solid var(--btn-bd); border-radius: 0;
	font-family: var(--f-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
	cursor: pointer;
	transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.btn .icon { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.btn:hover .icon--arrow { transform: translateX(4px); }
.btn--accent { --btn-bg: var(--accent); --btn-fg: #fff; --btn-bd: var(--accent); }
.btn--accent:hover { --btn-bg: var(--accent-hover); --btn-bd: var(--accent-hover); }
.btn--ghost:hover { --btn-bd: var(--text); }
.btn--dark { --btn-bg: var(--ink); --btn-fg: var(--paper); --btn-bd: var(--ink); }
.btn--dark:hover { --btn-bg: var(--accent); --btn-bd: var(--accent); --btn-fg: #fff; }
.btn--ghost-dark { --btn-fg: var(--ink); --btn-bd: var(--ink-line); }
.btn--ghost-dark:hover { --btn-bd: var(--ink); }
.btn--small { min-height: 40px; padding: 0 16px; font-size: 11px; }
.btn--block { width: 100%; }
.btn.is-loading { opacity: .7; pointer-events: none; }
.btn.is-loading .icon { animation: volk-pulse 1s infinite; }
@keyframes volk-pulse { 50% { opacity: .2; } }

/* ==========================================================================
   En-tête
   ========================================================================== */
.site-header {
	position: fixed; inset: 0 0 auto; z-index: 100;
	height: var(--header-h);
	border-bottom: 1px solid transparent;
	transition: background .35s var(--ease), border-color .35s var(--ease), backdrop-filter .35s;
}
body:not(.is-home) .site-header,
.site-header.is-scrolled {
	background: rgba(10, 11, 13, .82);
	-webkit-backdrop-filter: blur(14px) saturate(140%);
	backdrop-filter: blur(14px) saturate(140%);
	border-bottom-color: var(--line);
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
.site-header__inner { height: 100%; display: flex; align-items: center; gap: 32px; }

.brand { display: inline-flex; align-items: center; gap: 14px; flex-shrink: 0; }
.brand__logo { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.brand__word { display: flex; flex-direction: column; line-height: 1; }
.brand__name { font-family: var(--f-display); font-weight: 500; font-size: 19px; letter-spacing: .32em; margin-right: -.32em; }
.brand__sub { margin-top: 6px; font-family: var(--f-mono); font-size: 8.5px; letter-spacing: .42em; color: var(--muted); }

.nav { margin-left: auto; }
.nav__list { display: flex; gap: clamp(18px, 2.4vw, 36px); }
.nav__list a {
	position: relative; padding: 8px 0;
	font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase;
	color: var(--muted); transition: color .2s;
}
.nav__list a::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px;
	background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.nav__list a:hover { color: var(--text); }
.nav__list a:hover::after { transform: scaleX(1); }
.nav__mobile-extra { display: none; }
.site-header__actions { display: flex; align-items: center; gap: 12px; }

.nav-toggle {
	display: none; width: 44px; height: 44px; padding: 0;
	background: none; border: 1px solid var(--line-strong); color: var(--text); cursor: pointer;
}
.nav-toggle__bars, .nav-toggle__bars::before { display: block; width: 18px; height: 1px; margin: auto; background: currentColor; transition: transform .3s var(--ease); }
.nav-toggle__bars { position: relative; transform: translateY(-3px); }
.nav-toggle__bars::before { content: ""; position: absolute; left: 0; top: 6px; }
.nav-open .nav-toggle__bars { transform: rotate(45deg); }
.nav-open .nav-toggle__bars::before { transform: translateY(-6px) rotate(-90deg); }

@media (max-width: 960px) {
	.nav-toggle { display: block; }
	.site-header__actions .btn { display: none; }
	.site-header__actions { margin-left: auto; }
	.nav {
		position: fixed; inset: var(--header-h) 0 0; z-index: 99;
		margin: 0; padding: 32px var(--gutter) 40px;
		display: flex; flex-direction: column; justify-content: space-between;
		background: var(--bg);
		opacity: 0; visibility: hidden; transform: translateY(-8px);
		transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
	}
	.nav-open .nav { opacity: 1; visibility: visible; transform: none; }
	.nav-open body { overflow: hidden; }
	.nav-open .site-header { background: var(--bg); border-bottom-color: var(--line); }
	.nav__list { flex-direction: column; gap: 0; }
	.nav__list li { border-bottom: 1px solid var(--line); }
	.nav__list a { display: block; padding: 20px 0; font-family: var(--f-display); font-size: 26px; letter-spacing: -.01em; text-transform: none; color: var(--text); }
	.nav__list a::after { display: none; }
	.nav__mobile-extra { display: grid; gap: 14px; }
	.nav__contact { display: flex; align-items: center; gap: 12px; font-family: var(--f-mono); font-size: 13px; color: var(--muted); }
	.nav__contact .icon { width: 18px; color: var(--accent); }
}

/* ==========================================================================
   Médias : photos & dessins techniques
   ========================================================================== */
.media { position: relative; width: 100%; height: 100%; }
.media--photo img { width: 100%; height: 100%; object-fit: cover; }
.media--drawing { color: var(--text); }
.media--drawing svg { width: 100%; height: 100%; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
	position: relative;
	min-height: max(640px, 100svh);
	display: flex; flex-direction: column; justify-content: flex-end;
	padding-top: calc(var(--header-h) + 40px);
	overflow: hidden;
	isolation: isolate;
}
.hero__visual { position: absolute; inset: 0; z-index: -1; }
.hero__visual .media--photo img { filter: saturate(.9) contrast(1.05); }
.hero__visual .media--photo::after {
	content: ""; position: absolute; inset: 0;
	background:
		linear-gradient(90deg, rgba(10, 11, 13, .94) 0%, rgba(10, 11, 13, .7) 42%, rgba(10, 11, 13, .15) 100%),
		linear-gradient(0deg, var(--bg) 0%, transparent 35%);
}
.hero__visual .media--drawing {
	position: absolute; inset: 12% -8% auto auto; width: min(58vw, 940px); height: auto;
	opacity: .5;
	-webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.25) 22%, #000 55%), linear-gradient(0deg, transparent 0%, #000 30%);
	-webkit-mask-composite: source-in;
	mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.25) 22%, #000 55%), linear-gradient(0deg, transparent 0%, #000 30%);
	mask-composite: intersect;
}
.hero__visual .media--drawing svg { height: auto; }

.hero__frame { position: absolute; inset: calc(var(--header-h) + 16px) 0 24px; left: 50%; transform: translateX(-50%); pointer-events: none; }
.tick { position: absolute; width: 14px; height: 14px; border-color: var(--line-strong); border-style: solid; border-width: 0; }
.tick--tl { top: 0; left: var(--gutter); border-top-width: 1px; border-left-width: 1px; }
.tick--tr { top: 0; right: var(--gutter); border-top-width: 1px; border-right-width: 1px; }
.tick--bl { bottom: 0; left: var(--gutter); border-bottom-width: 1px; border-left-width: 1px; }
.tick--br { bottom: 0; right: var(--gutter); border-bottom-width: 1px; border-right-width: 1px; }

.hero__content { position: relative; padding-bottom: 48px; }
.hero__title {
	margin-top: 28px;
	font-family: var(--f-display); font-weight: 500;
	font-size: clamp(2.5rem, 6.6vw, 6.4rem);
	line-height: 1;
	letter-spacing: -.035em;
}
.hero__line { display: block; }
.hero__line + .hero__line { color: var(--muted); }
.hero__text { margin-top: 30px; max-width: 54ch; color: var(--muted); font-size: clamp(1.02rem, 1.25vw, 1.15rem); text-wrap: pretty; }

.hero__choices { margin-top: 44px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 820px; border: 1px solid var(--line-strong); }
.choice {
	position: relative; display: grid; gap: 10px; padding: 22px 64px 22px 24px;
	background: rgba(10, 11, 13, .45);
	-webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
	transition: background .3s var(--ease);
}
.choice + .choice { border-left: 1px solid var(--line-strong); }
.choice__title { font-family: var(--f-display); font-size: clamp(1.02rem, 1.4vw, 1.2rem); letter-spacing: -.01em; line-height: 1.25; }
.choice .icon { position: absolute; right: 22px; top: 50%; width: 22px; margin-top: -11px; color: var(--accent); transition: transform .3s var(--ease); }
.choice:hover { background: rgba(217, 98, 43, .12); }
.choice:hover .icon { transform: translateX(5px); }

.hero__meta { position: relative; display: flex; justify-content: space-between; gap: 24px; padding-top: 18px; padding-bottom: 40px; }
.hero__meta .label { font-size: 10px; color: var(--faint); }
.hero__scroll { position: relative; }
.hero__scroll::after { content: ""; display: block; width: 1px; height: 26px; background: var(--line-strong); position: absolute; left: 50%; top: 100%; margin-top: 8px; animation: volk-scroll 2.4s var(--ease) infinite; transform-origin: top; }
@keyframes volk-scroll { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

@media (max-width: 720px) {
	.hero { min-height: auto; padding-top: calc(var(--header-h) + 24px); }
	.hero__visual .media--drawing { inset: 90px -45% auto auto; width: 150vw; opacity: .22; }
	.hero__choices { grid-template-columns: 1fr; }
	.choice + .choice { border-left: 0; border-top: 1px solid var(--line-strong); }
	.hero__meta .label:not(.hero__scroll) { display: none; }
	.hero__meta { justify-content: center; padding-bottom: 56px; }
	.hero__content { padding-bottom: 28px; }
}

/* ==========================================================================
   Bandeau domaines
   ========================================================================== */
.ticker { border-block: 1px solid var(--line); overflow: hidden; background: var(--bg-2); }
.ticker__track { display: flex; width: max-content; animation: volk-ticker 40s linear infinite; }
.ticker ul { display: flex; }
.ticker li {
	display: flex; align-items: center; gap: 28px; padding: 18px 0 18px 28px;
	font-family: var(--f-mono); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); white-space: nowrap;
}
.ticker li::after { content: ""; width: 6px; height: 6px; border: 1px solid var(--accent); transform: rotate(45deg); }
@keyframes volk-ticker { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker__track { animation: none; } }

/* ==========================================================================
   Sections
   ========================================================================== */
.section { position: relative; padding-block: var(--section-y); }
.section--dark { background: var(--bg); }
.section__head { margin-bottom: clamp(48px, 6vw, 88px); }
.section__head--row { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: end; gap: 32px 64px; }
.section__head--row .section__lead { margin-top: 0; }
.section__head--row > .btn { justify-self: end; }
@media (max-width: 860px) {
	.section__head--row { grid-template-columns: 1fr; }
	.section__head--row > .btn { justify-self: start; }
}

/* Particuliers */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 7vw, 120px); }
.sticky { position: sticky; top: calc(var(--header-h) + 40px); }
.split__aside .section__title { font-size: clamp(1.8rem, 2.9vw, 2.8rem); max-width: 16ch; }
.section--paper .section__title { max-width: 22ch; }
.figure { margin-top: 44px; }
.figure .media--photo { aspect-ratio: 4 / 5; }
.figure .media { border: 1px solid var(--line); background: var(--bg-2); overflow: hidden; }
.figure .media--drawing, .pro-grid__drawing .media--drawing { aspect-ratio: 5 / 4; display: flex; align-items: center; justify-content: center; padding: 5%; }
.figure .media--drawing svg { height: auto; }
.figure figcaption { margin-top: 14px; }

.services { counter-reset: s; border-bottom: 1px solid var(--line); }
.service {
	display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 16px;
	padding: 34px 0; border-top: 1px solid var(--line);
	transition: border-color .3s;
}
.service__index { padding-top: 8px; color: var(--faint); transition: color .3s; }
.service__title { font-family: var(--f-display); font-weight: 500; font-size: clamp(1.3rem, 2vw, 1.75rem); letter-spacing: -.015em; line-height: 1.15; transition: transform .4s var(--ease); }
.service__text { margin-top: 12px; color: var(--muted); max-width: 52ch; }
.service:hover .service__index { color: var(--accent); }
.service:hover .service__title { transform: translateX(6px); }

.checklist { margin-top: 56px; padding: clamp(24px, 3vw, 40px); background: var(--bg-2); border: 1px solid var(--line); }
.checklist ul { margin: 20px 0 30px; display: grid; gap: 12px; }
.checklist li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; color: var(--text); }
.checklist li .icon { width: 18px; margin-top: 4px; color: var(--accent); }

@media (max-width: 960px) {
	.split { grid-template-columns: 1fr; }
	.sticky { position: static; }
	.figure .media--photo { aspect-ratio: 16 / 11; }
}
@media (max-width: 560px) {
	.service { grid-template-columns: 1fr; gap: 8px; padding: 26px 0; }
}

/* Professionnels — section papier */
.section--paper { background: var(--paper); color: var(--ink); }
.section--paper .label { color: var(--ink-muted); }
.section--paper .label--accent { color: var(--ink); }
.section--paper .label__index::after { background: var(--ink-line); }
.section--paper .section__lead { color: var(--ink-muted); }
.section--paper ::selection { color: #fff; }

.pro-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.pro-grid__drawing .media--photo { aspect-ratio: 4 / 5; }
.pro-grid__drawing .media { background: var(--paper-2); border: 1px solid var(--ink-line); overflow: hidden; }
.pro-grid__drawing .media--drawing { color: var(--ink); }
.pro-grid__drawing .media--drawing svg { height: auto; --bg: var(--paper-2); }
.pro-grid__drawing .label { margin-top: 14px; }

.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--ink-line); border: 1px solid var(--ink-line); }
.card { padding: clamp(22px, 2.6vw, 34px); background: var(--paper); transition: background .3s var(--ease); min-height: 210px; display: flex; flex-direction: column; }
.card__index { color: var(--ink-muted); }
.card__title { margin-top: auto; padding-top: 36px; font-family: var(--f-display); font-weight: 500; font-size: clamp(1.1rem, 1.5vw, 1.3rem); letter-spacing: -.01em; line-height: 1.2; }
.card__text { margin-top: 10px; color: var(--ink-muted); font-size: .96em; }
.card:hover { background: var(--paper-2); }
.card:hover .card__index { color: var(--accent); }

.pro-cta { margin-top: clamp(48px, 6vw, 80px); padding-top: 32px; border-top: 1px solid var(--ink-line); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 48px; }
.pro-cta p { max-width: 56ch; color: var(--ink-muted); }
.pro-cta__actions { display: flex; flex-wrap: wrap; gap: 12px; }

@media (max-width: 960px) {
	.pro-grid { grid-template-columns: 1fr; }
	.pro-grid__drawing .media--photo { aspect-ratio: 16 / 10; }
}
@media (max-width: 560px) {
	.cards { grid-template-columns: 1fr; }
	.card { min-height: 0; }
	.card__title { padding-top: 22px; }
}

/* Méthode */
.section--method { background: var(--bg); border-bottom: 1px solid var(--line); }
.steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 1px solid var(--line-strong); }
.step { position: relative; padding: 32px 24px 8px 0; }
.step::before { content: ""; position: absolute; top: -4px; left: 0; width: 7px; height: 7px; background: var(--bg); border: 1px solid var(--accent); transform: rotate(45deg); }
.step__num { display: block; font-family: var(--f-display); font-weight: 300; font-size: clamp(2.6rem, 4vw, 3.6rem); line-height: 1; letter-spacing: -.04em; color: var(--faint); }
.step__title { margin-top: 26px; font-family: var(--f-display); font-weight: 500; font-size: 1.15rem; letter-spacing: -.01em; }
.step__text { margin-top: 10px; color: var(--muted); font-size: .95em; max-width: 26ch; }
.step:hover .step__num { color: var(--accent); }
.step__num { transition: color .3s; }
@media (max-width: 960px) {
	.steps { grid-template-columns: 1fr; border-top: 0; border-left: 1px solid var(--line-strong); }
	.step { padding: 0 0 36px 32px; display: grid; grid-template-columns: 72px 1fr; column-gap: 12px; }
	.step::before { top: 10px; left: -4px; }
	.step__num { grid-row: span 2; font-size: 2.2rem; }
	.step__title { margin-top: 2px; }
}

/* Réalisations */
.section--works { background: var(--bg); }
.works { display: grid; gap: clamp(12px, 1.6vw, 20px); grid-template-columns: repeat(12, minmax(0, 1fr)); }
.work { grid-column: span 4; }
.works--1 .work { grid-column: 3 / span 8; }
.works--2 .work { grid-column: span 6; }
.works--4 .work:nth-child(1), .works--4 .work:nth-child(4) { grid-column: span 7; }
.works--4 .work:nth-child(2), .works--4 .work:nth-child(3) { grid-column: span 5; }
.works--5 .work:nth-child(-n+2) { grid-column: span 6; }
.work figure { position: relative; overflow: hidden; background: var(--bg-2); }
.work img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform 1.2s var(--ease), filter .6s; filter: saturate(.92); }
.works--2 .work img, .works--4 .work img, .works--5 .work:nth-child(-n+2) img { aspect-ratio: 5 / 4; }
.work figcaption {
	position: absolute; inset: auto 0 0; display: grid; gap: 6px; padding: 48px 20px 18px;
	background: linear-gradient(0deg, rgba(10, 11, 13, .9), transparent);
}
.work__title { font-family: var(--f-display); font-size: 1.05rem; letter-spacing: -.01em; }
.work:hover img { transform: scale(1.04); filter: saturate(1); }
@media (max-width: 860px) {
	.works .work, .works--1 .work, .works--4 .work:nth-child(n), .works--5 .work:nth-child(n) { grid-column: span 12; }
	.works--3 .work, .works--6 .work { grid-column: span 6; }
}
@media (max-width: 520px) { .works--3 .work, .works--6 .work { grid-column: span 12; } }

.works-empty { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); border: 1px solid var(--line); background: var(--bg-2); }
.works-empty__drawing { padding: clamp(20px, 4vw, 56px); color: var(--text); opacity: .7; border-right: 1px solid var(--line); }
.works-empty__text { padding: clamp(24px, 4vw, 56px); display: flex; flex-direction: column; justify-content: center; gap: 20px; color: var(--muted); }
.admin-hint { padding: 12px 14px; border: 1px dashed var(--accent); color: var(--text); font-size: .9em; }
@media (max-width: 860px) {
	.works-empty { grid-template-columns: 1fr; }
	.works-empty__drawing { border-right: 0; border-bottom: 1px solid var(--line); }
}

/* ==========================================================================
   Contact & formulaire
   ========================================================================== */
.section--contact { background: var(--bg-2); border-top: 1px solid var(--line); }
.contact { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 7vw, 120px); }
.contact__direct { margin-top: 44px; border-top: 1px solid var(--line); }
.contact__direct li { border-bottom: 1px solid var(--line); }
.contact__direct a, .contact__static { display: grid; grid-template-columns: 24px 1fr; gap: 16px; align-items: center; padding: 18px 0; font-size: 1.08em; transition: color .2s; }
.contact__direct a:hover { color: var(--accent); }
.contact__direct .icon { width: 20px; color: var(--accent); }
.contact__direct span { display: grid; gap: 4px; overflow-wrap: anywhere; }
.contact__direct small.label { font-size: 10px; }
.socials { margin-top: 28px; display: flex; gap: 8px; }
.socials a { display: grid; place-items: center; width: 46px; height: 46px; border: 1px solid var(--line-strong); transition: border-color .2s, color .2s; }
.socials a:hover { border-color: var(--accent); color: var(--accent); }
.socials .icon { width: 20px; }

.contact__form { background: var(--bg); border: 1px solid var(--line); padding: clamp(22px, 3.4vw, 48px); align-self: start; }
.form__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 24px; margin-top: 30px; }
.field { display: grid; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field label { font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.field abbr { color: var(--accent); text-decoration: none; border: 0; }
.field input, .field select, .field textarea {
	width: 100%; padding: 12px 0;
	background: transparent; color: var(--text);
	border: 0; border-bottom: 1px solid var(--line-strong); border-radius: 0;
	font: inherit; font-size: 1.02em;
	transition: border-color .2s;
	-webkit-appearance: none; appearance: none;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-bottom-color: var(--accent); }
.field textarea { resize: vertical; min-height: 140px; }
.field textarea::placeholder { color: var(--faint); }
.field select {
	cursor: pointer; padding-right: 28px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d9622b' stroke-width='1.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat; background-position: right 2px center; background-size: 18px;
}
.field select option, .field select optgroup { background: var(--bg-3); color: var(--text); }
.form [data-pro-only] { display: none; }
.form.is-pro [data-pro-only] { display: grid; }
html:not(.js) .form [data-pro-only] { display: grid; }

.segmented { display: flex; flex-wrap: wrap; align-items: center; gap: 0; margin: 0; padding: 0; border: 0; }
.segmented legend { float: left; width: 100%; margin-bottom: 12px; }
.segmented label { position: relative; flex: 1 1 0; cursor: pointer; }
.segmented input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.segmented span {
	display: block; padding: 14px 18px; text-align: center;
	border: 1px solid var(--line-strong);
	font-family: var(--f-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
	transition: all .2s var(--ease);
}
.segmented label + label span { border-left: 0; }
.segmented input:checked + span { background: var(--text); color: var(--bg); border-color: var(--text); }
.segmented input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

.dropzone {
	position: relative; display: grid; grid-template-columns: 28px 1fr; gap: 16px; align-items: center;
	padding: 22px; border: 1px dashed var(--line-strong); cursor: pointer;
	transition: border-color .2s, background .2s;
}
.dropzone:hover, .dropzone.is-over { border-color: var(--accent); background: rgba(217, 98, 43, .06); }
.dropzone .icon { width: 26px; color: var(--accent); }
.dropzone__text { display: grid; gap: 4px; font-size: .98em; }
.dropzone__text strong { font-weight: 500; }
.dropzone__text span { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .06em; color: var(--muted); }
.dropzone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.dropzone__list { display: grid; gap: 6px; margin-top: 10px; font-family: var(--f-mono); font-size: 12px; color: var(--muted); }
.dropzone__list li::before { content: "↳ "; color: var(--accent); }
.dropzone__list li.is-error { color: #ff8a65; }

.consent { display: grid; grid-template-columns: 20px 1fr; gap: 14px; margin: 28px 0; font-size: .86em; color: var(--muted); cursor: pointer; }
.consent input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--accent); }

.notice { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 26px; padding: 18px 20px; border: 1px solid; }
.notice:focus { outline: none; }
.notice--ok { border-color: rgba(120, 200, 140, .5); background: rgba(120, 200, 140, .08); }
.notice--ok .icon { width: 22px; flex-shrink: 0; color: #7fcf95; }
.notice--error { border-color: rgba(255, 120, 90, .55); background: rgba(255, 120, 90, .08); }

@media (max-width: 960px) { .contact { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .form__grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   Pied de page
   ========================================================================== */
.site-footer { background: var(--bg); border-top: 1px solid var(--line); padding: clamp(56px, 7vw, 96px) 0 32px; }
.site-footer__top { display: grid; grid-template-columns: minmax(0, 2fr) repeat(2, minmax(0, 1fr)); gap: 40px; }
.site-footer__baseline { margin-top: 22px; color: var(--muted); font-size: .92em; max-width: 34ch; }
.site-footer__col .label { margin-bottom: 18px; }
.link-list { display: grid; gap: 10px; }
.link-list a { display: inline-flex; align-items: center; gap: 6px; color: var(--text); transition: color .2s; overflow-wrap: anywhere; }
.link-list a:hover { color: var(--accent); }
.link-list .icon { width: 14px; opacity: .6; }
.site-footer__strip { display: flex; align-items: center; gap: 20px; margin-top: clamp(48px, 6vw, 80px); padding-block: 18px; border-block: 1px solid var(--line); }
.site-footer__strip .label { font-size: 10px; color: var(--faint); }
.site-footer__strip .label:last-child { margin-left: auto; }
.barcode {
	width: 120px; height: 26px; opacity: .55;
	background: repeating-linear-gradient(90deg, var(--text) 0 1px, transparent 1px 3px, var(--text) 3px 5px, transparent 5px 6px, var(--text) 6px 7px, transparent 7px 10px, var(--text) 10px 13px, transparent 13px 14px);
}
.site-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; margin-top: 24px; font-size: .84em; color: var(--faint); }
.site-footer__legal { display: flex; gap: 20px; }
.site-footer__legal a:hover { color: var(--text); }
@media (max-width: 760px) {
	.site-footer__top { grid-template-columns: 1fr 1fr; }
	.site-footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 420px) { .site-footer__top { grid-template-columns: 1fr; } }

/* Barre d'actions mobile */
.action-bar { display: none; }
@media (max-width: 760px) {
	body { padding-bottom: 68px; }
	.action-bar {
		position: fixed; inset: auto 0 0; z-index: 90;
		display: flex; height: 68px; padding-bottom: env(safe-area-inset-bottom);
		background: rgba(10, 11, 13, .92); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
		border-top: 1px solid var(--line);
	}
	.action-bar a {
		flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
		font-family: var(--f-mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
	}
	.action-bar a + a { border-left: 1px solid var(--line); }
	.action-bar .icon { width: 20px; color: var(--text); }
	.action-bar__main { background: var(--accent); color: #fff !important; }
	.action-bar__main .icon { color: #fff; }
	.nav-open .action-bar { display: none; }
}

/* ==========================================================================
   Pages internes
   ========================================================================== */
.section--page { padding-top: calc(var(--header-h) + clamp(48px, 8vw, 110px)); }
.page-head { margin-bottom: 48px; padding-bottom: 32px; border-bottom: 1px solid var(--line); }
.page-head__title { margin-top: 20px; font-family: var(--f-display); font-weight: 500; font-size: clamp(2rem, 4.4vw, 3.6rem); line-height: 1.05; letter-spacing: -.025em; text-wrap: balance; }
.section--404 .section__lead { margin-bottom: 36px; }
.page-thumb { margin-bottom: 40px; }
.prose { color: #d6d3cc; }
.prose > * + * { margin-top: 1.2em; }
.prose h2, .prose h3 { margin-top: 2em; font-family: var(--f-display); font-weight: 500; color: var(--text); letter-spacing: -.01em; line-height: 1.2; }
.prose h2 { font-size: 1.6rem; }
.prose h3 { font-size: 1.25rem; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose ul { list-style: square; }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: .4em; }
.prose blockquote { margin: 1.6em 0; padding-left: 20px; border-left: 2px solid var(--accent); color: var(--muted); }
.prose img { height: auto; }
.prose figcaption { margin-top: 8px; font-family: var(--f-mono); font-size: 11px; color: var(--muted); }
.post-list li { border-bottom: 1px solid var(--line); }
.post-list a { display: grid; gap: 6px; padding: 24px 0; }
.post-list__title { font-family: var(--f-display); font-size: 1.4rem; }
.post-list a:hover .post-list__title { color: var(--accent); }

/* Éléments WordPress */
.alignwide { max-width: calc(100% + 120px); margin-inline: -60px; }
.alignfull { width: 100vw; max-width: 100vw; margin-left: calc(50% - 50vw); }
.wp-caption-text, .wp-element-caption { font-family: var(--f-mono); font-size: 11px; color: var(--muted); }
.nav-links { display: flex; gap: 12px; margin-top: 40px; font-family: var(--f-mono); font-size: 12px; }

/* ==========================================================================
   Apparition au défilement
   ========================================================================== */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--i, 0) * 80ms); }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
	.js .reveal { opacity: 1; transform: none; transition: none; }
	.hero__scroll::after { animation: none; }
}
