/* ===================================================================
   DevDream — devdream.fr
   Direction figée : crème éditorial · serif XXL · terracotta · grain
   Consolidation des couches v1 (base) + v2 (deluxe) + v3 (sections)
   =================================================================== */

:root {
  --bg: #faf8f5;
  --bg-2: #f2eee7;
  --ink: #1a1a1a;
  --muted: rgba(26, 26, 26, 0.62);
  --line: rgba(26, 26, 26, 0.14);
  --accent: #d96f32;
  --accent-ink: #a14d1f; /* variante AA (>= 4.5:1 sur crème) pour le petit texte en accent */
  --card: #ffffff;
  --footer-bg: #171411;
  --footer-ink: #faf8f5;
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "Instrument Sans", "Helvetica Neue", Helvetica, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--accent); color: #fff; }

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* ---------- utilitaires ---------- */
.wrap { max-width: 1320px; margin: 0 auto; padding: 0 48px; }
.serif-i { font-family: var(--serif); font-style: italic; font-weight: 400; }

.sr-only {
  position: absolute; 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; top: 12px; left: 12px; z-index: 110;
  padding: 14px 24px; border-radius: 999px;
  background: var(--ink); color: var(--bg);
  font-size: 14px; letter-spacing: 0.04em;
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; }

/* ---------- emplacements d'images (en attendant les vraies photos) ---------- */
.img-slot {
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 100%;
  background: var(--bg-2);
  border: 1px dashed var(--line);
  border-radius: inherit;
}
.img-slot span {
  font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted); text-align: center; padding: 16px;
}

/* ---------- grain ---------- */
.grain {
  position: fixed; inset: -50%; z-index: 60; pointer-events: none;
  width: 200%; height: 200%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.6 0'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.05;
  animation: grain-shift 1.2s steps(4) infinite;
}
@keyframes grain-shift {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-2%, 1.5%); }
  50% { transform: translate(1.5%, -2%); }
  75% { transform: translate(-1%, -1%); }
  100% { transform: translate(0, 0); }
}

/* ---------- révélations au scroll ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(44px);
  transition: opacity 1s var(--ease), transform 1.1s var(--ease);
  transition-delay: var(--rd, 0s);
}
/* « mise au point » : les reveals texte arrivent flous puis deviennent nets
   (jamais sur les visuels ni les titres splittés — coût de paint et doublon).
   :where() garde la spécificité à (0,2,0) pour que la règle .in reprenne la main. */
.js [data-reveal]:where(:not([data-reveal="clip"]):not([data-reveal="line"]):not([data-reveal="mask"]):not(.split):not(.work-card):not(.manifesto-aside)) {
  filter: blur(8px);
  transition: opacity 1s var(--ease), transform 1.1s var(--ease), filter 0.9s var(--ease);
  transition-delay: var(--rd, 0s);
}
.js [data-reveal].in { opacity: 1; transform: none; filter: none; }

.js [data-reveal="line"] { transform: translateY(0) scaleX(0); transform-origin: left; }
.js [data-reveal="line"].in { transform: scaleX(1); }

/* hero : entrée plus théâtrale — le label part avec 50 ms d'avance sur le h1 */
.js .hero-label[data-reveal] { transition-delay: 0.05s; }

@media (prefers-reduced-motion: reduce) {
  .js [data-reveal],
  .js [data-reveal]:where(:not([data-reveal="clip"]):not([data-reveal="line"]):not([data-reveal="mask"]):not(.split):not(.work-card):not(.manifesto-aside)) {
    opacity: 1; transform: none; filter: none; transition: none;
  }
  .grain { animation: none; }
  html { scroll-behavior: auto; }
  /* le bandeau étant statique, le fondu latéral tronquerait le premier mot */
  .marquee { -webkit-mask-image: none; mask-image: none; }
}

/* ---------- Lenis (inertie de scroll) ---------- */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

/* ---------- préloader ---------- */
/* affiché uniquement si le JS tourne (classe .js posée en <head>),
   sinon il couvrirait la page indéfiniment */
.preloader { display: none; }
.js .preloader {
  position: fixed; inset: 0; z-index: 100;
  background: var(--ink);
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.9s cubic-bezier(0.76, 0, 0.24, 1);
}
.js .preloader.lift { transform: translateY(-100%); }
.preloader-inner { text-align: center; }
.preloader-inner img {
  height: 72px; width: auto; margin: 0 auto 28px;
  opacity: 0; transform: translateY(16px) scale(0.96);
  animation: pre-in 0.8s var(--ease) 0.1s forwards;
}
.preloader-word {
  font-family: var(--serif); font-size: 30px; color: #faf8f5;
  letter-spacing: -0.01em;
  opacity: 0; transform: translateY(14px);
  animation: pre-in 0.8s var(--ease) 0.25s forwards;
}
.preloader-word .dot { color: var(--accent); }
.preloader-bar {
  width: 160px; height: 1px; margin: 26px auto 0;
  background: rgba(250, 248, 245, 0.18); overflow: hidden;
}
.preloader-bar i {
  display: block; height: 100%; width: 100%;
  background: var(--accent);
  transform: scaleX(0); transform-origin: left;
  animation: pre-bar 0.95s cubic-bezier(0.65, 0, 0.35, 1) 0.1s forwards;
}
@keyframes pre-in { to { opacity: 1; transform: none; } }
@keyframes pre-bar { to { transform: scaleX(1); } }

/* compteur 0→100, en coin bas droit comme une signature d'atelier */
.preloader-count {
  position: absolute; right: 40px; bottom: 16px;
  overflow: hidden; line-height: 1;
}
.preloader-count span {
  display: block;
  font-family: var(--serif); font-style: italic;
  font-size: clamp(72px, 13vw, 150px); letter-spacing: -0.02em;
  color: rgba(250, 248, 245, 0.92);
  font-variant-numeric: tabular-nums;
  transition: transform 0.5s cubic-bezier(0.76, 0, 0.24, 1);
}
.preloader.done .preloader-count span { transform: translateY(-105%); }

body.loading { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  .js .preloader { display: none; }
}

/* ---------- curseur personnalisé ---------- */
@media (pointer: fine) {
  .cursor-dot, .cursor-ring {
    position: fixed; top: 0; left: 0; z-index: 99;
    pointer-events: none; border-radius: 50%;
    will-change: transform;
  }
  .cursor-dot {
    width: 6px; height: 6px; background: var(--accent);
    margin: -3px 0 0 -3px;
  }
  .cursor-ring {
    width: 38px; height: 38px; margin: -19px 0 0 -19px;
    border: 1px solid color-mix(in oklab, var(--ink) 38%, transparent);
    transition: width 0.35s var(--ease), height 0.35s var(--ease),
                margin 0.35s var(--ease), background 0.35s, border-color 0.35s,
                opacity 0.3s;
    display: grid; place-items: center;
  }
  .cursor-ring::after {
    content: attr(data-label);
    font-family: var(--sans); font-size: 11px; letter-spacing: 0.14em;
    text-transform: uppercase; color: #fff;
    opacity: 0; transition: opacity 0.25s;
  }
  .cursor-ring.is-link {
    width: 56px; height: 56px; margin: -28px 0 0 -28px;
    border-color: var(--accent);
  }
  .cursor-ring.is-view {
    width: 84px; height: 84px; margin: -42px 0 0 -42px;
    background: color-mix(in oklab, var(--accent) 92%, black);
    border-color: transparent;
  }
  .cursor-ring.is-view::after { opacity: 1; }
  .cursor-hidden .cursor-dot, .cursor-hidden .cursor-ring { opacity: 0; }
}
@media (pointer: coarse), (prefers-reduced-motion: reduce) {
  .cursor-dot, .cursor-ring { display: none; }
}

/* ---------- split-text (titres mot à mot) ---------- */
.split .w {
  display: inline-block; overflow: hidden;
  vertical-align: bottom; padding-bottom: 0.08em; margin-bottom: -0.08em;
}
.split .wi {
  display: inline-block;
  transform: translateY(115%);
  transition: transform 1s var(--ease);
  transition-delay: calc(var(--wd, 0) * 0.055s);
}
.split.in .wi { transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .split .wi { transform: none; transition: none; }
}

/* les titres splittés n'utilisent plus le fondu générique */
.js .hero h1[data-reveal].split, .js .contact h2[data-reveal].split { opacity: 1; transform: none; }

/* ---------- révélation clip des images ---------- */
.js [data-reveal="clip"] {
  opacity: 1; transform: none;
  clip-path: inset(100% 0 0 0);
  /* transform 0s de délai : le tilt 3D ne doit pas hériter du délai --rd */
  transition: clip-path 1.1s cubic-bezier(0.65, 0, 0.35, 1) var(--rd, 0s), transform 0.35s ease-out 0s;
}
.js [data-reveal="clip"].in { clip-path: inset(0 0 0 0); }
/* sélecteurs explicites (img / .img-slot / vignettes) : la spécificité doit
   battre ".work-figure .img-slot" plus bas, sinon son shorthand transition
   0.8s écrase la durée 1.4s, l'easing et le délai --rd du zoom interne */
.js [data-reveal="clip"] > img,
.js [data-reveal="clip"] > .img-slot,
.js [data-reveal="clip"] > .work-mock,
.js [data-reveal="clip"] > .atelier-poster {
  transform: scale(1.12);
  transition: transform 1.4s cubic-bezier(0.65, 0, 0.35, 1);
  transition-delay: var(--rd, 0s);
}
.js [data-reveal="clip"].in > img,
.js [data-reveal="clip"].in > .img-slot,
.js [data-reveal="clip"].in > .work-mock,
.js [data-reveal="clip"].in > .atelier-poster { transform: scale(1); }
.work-card:hover .work-figure[data-reveal="clip"].in > img,
.work-card:hover .work-figure[data-reveal="clip"].in > .img-slot,
.work-card:hover .work-figure[data-reveal="clip"].in > .work-mock { transform: scale(1.05); }
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal="clip"] { clip-path: none; transition: none; }
  .js [data-reveal="clip"] > img,
  .js [data-reveal="clip"] > .img-slot,
  .js [data-reveal="clip"] > .work-mock,
  .js [data-reveal="clip"] > .atelier-poster { transform: none; }
}

/* ---------- fil de progression ---------- */
.progress {
  position: fixed; top: 0; left: 0; right: 0; height: 2px;
  z-index: 55; pointer-events: none;
}
.progress i {
  display: block; height: 100%; width: 100%;
  background: var(--accent);
  transform: scaleX(0); transform-origin: left;
}

/* ---------- navigation ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 48px;
  transition: transform 0.5s var(--ease), background 0.4s, padding 0.4s, box-shadow 0.4s;
}
.nav.scrolled {
  background: color-mix(in oklab, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 14px 48px;
  box-shadow: 0 1px 0 var(--line);
}
.nav.hidden { transform: translateY(-110%); }
/* la nav masquée ne doit pas piéger un focus clavier invisible */
.nav.hidden:focus-within { transform: none; }

.nav-brand {
  display: flex; align-items: center; gap: 12px;
  /* zone tactile >= 44px sans bouger la mise en page */
  padding: 5px 0; margin: -5px 0;
}
.nav-brand img { height: 34px; width: auto; }
.nav-brand span {
  font-family: var(--serif); font-size: 24px; letter-spacing: -0.01em;
}

.nav-links { display: flex; gap: 36px; align-items: center; }
.nav-links a:not(.btn) {
  font-size: 14px; letter-spacing: 0.06em; text-transform: uppercase;
  position: relative; padding: 4px 0; color: var(--muted);
  transition: color 0.3s;
}
.nav-links a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px; background: var(--accent);
  transform: scaleX(0); transform-origin: right;
  transition: transform 0.45s var(--ease);
}
.nav-links a:not(.btn):hover { color: var(--ink); }
.nav-links a:not(.btn):hover::after { transform: scaleX(1); transform-origin: left; }

/* ---------- menu mobile ---------- */
.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  flex-direction: column; align-items: center; justify-content: center; gap: 7px;
  background: none; border: none; cursor: pointer;
  flex-shrink: 0;
}
.nav-toggle span {
  display: block; width: 22px; height: 1.5px;
  background: var(--ink);
  transition: transform 0.4s var(--ease);
}
body.menu-open .nav-toggle span:first-child { transform: translateY(4.25px) rotate(45deg); }
body.menu-open .nav-toggle span:last-child { transform: translateY(-4.25px) rotate(-45deg); }

.menu-mobile {
  position: fixed; inset: 0; z-index: 49;
  background: var(--bg);
  display: flex; flex-direction: column; justify-content: center;
  padding: 0 24px;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.45s var(--ease), visibility 0s 0.45s;
}
body.menu-open .menu-mobile {
  opacity: 1; visibility: visible; pointer-events: auto;
  transition: opacity 0.45s var(--ease), visibility 0s;
}
.menu-mobile a {
  display: flex; align-items: baseline; gap: 18px;
  padding: 12px 0;
  font-family: var(--serif); font-size: clamp(32px, 8vw, 46px);
  line-height: 1.1; letter-spacing: -0.01em;
  transform: translateY(18px); opacity: 0;
  transition: transform 0.5s var(--ease), opacity 0.4s;
}
body.menu-open .menu-mobile a {
  transform: none; opacity: 1;
  transition-delay: calc(var(--i, 0) * 0.06s + 0.1s);
}
.menu-mobile a .mn {
  font-family: var(--sans); font-size: 12px; letter-spacing: 0.18em;
  color: var(--accent-ink); font-variant-numeric: tabular-nums;
}
body.menu-open { overflow: hidden; }
@media (prefers-reduced-motion: reduce) {
  .menu-mobile, .menu-mobile a, .nav-toggle span { transition: none; }
  .menu-mobile a { transform: none; opacity: 1; }
}

/* scrollspy */
.nav-links a:not(.btn).active { color: var(--ink); }
.nav-links a:not(.btn).active::after {
  transform: scaleX(1); transform-origin: left;
}

/* ---------- boutons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 16px 32px; border-radius: 999px;
  font-size: 15px; letter-spacing: 0.04em;
  border: 1px solid var(--ink);
  cursor: pointer; position: relative; overflow: hidden;
  transition: color 0.35s var(--ease), border-color 0.35s;
  background: transparent; color: var(--ink);
  font-family: var(--sans);
  white-space: nowrap;
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--ink);
  transform: translateY(101%); border-radius: 999px;
  transition: transform 0.45s var(--ease);
}
.btn:hover { color: var(--bg); }
.btn:hover::before { transform: translateY(0); }
.btn .arr { transition: transform 0.35s var(--ease); }
.btn:hover .arr { transform: translateX(5px); }

.btn-solid { background: var(--ink); color: var(--bg); }
.btn-solid::before { background: var(--accent); transform: translateY(101%); }
.btn-solid:hover { color: #fff; border-color: var(--accent); }

.btn-sm { padding: 11px 22px; font-size: 13px; }

/* ---------- hero ---------- */
.hero {
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  position: relative; overflow: hidden;
  padding-top: 120px;
}
.hero-mark {
  position: absolute; right: -6%; top: 8%;
  width: 56vw; max-width: 860px; opacity: 0.045;
  pointer-events: none; user-select: none;
}
.hero-label {
  display: flex; align-items: center; gap: 16px;
  font-size: 13px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 40px;
}
.hero-label::before { content: ""; width: 48px; height: 1px; background: var(--accent); }

.hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.02em;
  font-size: clamp(52px, 8.6vw, 132px);
  line-height: 1.02;
  max-width: 14ch;
}
.hero p.lede {
  margin-top: 40px; max-width: 46ch;
  font-size: clamp(17px, 1.4vw, 21px); color: var(--muted);
  text-wrap: pretty;
}
.hero-ctas { display: flex; gap: 18px; margin-top: 48px; flex-wrap: wrap; }

.hero-scroll {
  position: absolute; bottom: 36px; left: 48px;
  font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--muted); display: flex; align-items: center; gap: 12px;
  /* purement décoratif : ne doit jamais intercepter un tap sur les CTA */
  pointer-events: none;
}
.hero-scroll i {
  display: block; width: 1px; height: 44px; background: var(--line);
  position: relative; overflow: hidden;
}
.hero-scroll i::after {
  content: ""; position: absolute; left: 0; top: -100%;
  width: 100%; height: 100%; background: var(--accent);
  animation: scroll-hint 2.2s var(--ease) infinite;
}
@keyframes scroll-hint { 0% { top: -100%; } 60%, 100% { top: 100%; } }
@media (prefers-reduced-motion: reduce) {
  .hero-scroll i::after { animation: none; }
}

/* ---------- marquee ---------- */
.marquee {
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  overflow: hidden; padding: 26px 0; white-space: nowrap;
  display: flex;
  will-change: transform;
}
.marquee-track {
  display: inline-flex; gap: 64px; padding-right: 64px;
  animation: marquee 26s linear infinite;
  flex-shrink: 0; align-items: baseline;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 30px; letter-spacing: -0.01em;
}
.marquee-track em {
  font-family: var(--serif); font-style: italic; font-size: 30px;
  color: var(--accent);
}
@keyframes marquee { to { transform: translateX(-100%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }

/* ---------- sections ---------- */
.section { padding: 150px 0; position: relative; }
.section.tinted { background: var(--bg-2); }

.sec-head { display: flex; align-items: baseline; gap: 28px; margin-bottom: 80px; }
.sec-num {
  font-size: 13px; letter-spacing: 0.18em; color: var(--accent-ink);
  font-variant-numeric: tabular-nums;
}
.sec-title {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.02em;
  font-size: clamp(40px, 5vw, 76px); line-height: 1.05;
}
.sec-rule { flex: 1; height: 1px; background: var(--line); align-self: center; }

/* ---------- manifeste ---------- */
.manifesto { padding: 170px 0 150px; }
.manifesto-grid {
  display: grid; grid-template-columns: 1.6fr 1fr;
  gap: 80px; align-items: end;
}
.manifesto-label {
  display: flex; align-items: center; gap: 16px;
  font-size: 13px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 44px;
}
.manifesto-label::before { content: ""; width: 48px; height: 1px; background: var(--accent); }
.manifesto p.big {
  font-family: var(--serif); font-weight: 400;
  letter-spacing: -0.02em;
  font-size: clamp(30px, 3.4vw, 52px); line-height: 1.22;
  text-wrap: pretty;
}
.manifesto p.big .hl {
  font-family: var(--serif); font-style: italic; color: var(--accent);
}
.manifesto-aside { display: flex; flex-direction: column; gap: 24px; }
.manifesto-aside .portrait {
  border-radius: 6px; overflow: hidden; background: var(--bg-2);
  container-type: inline-size;
}
.manifesto-aside .portrait > img,
.manifesto-aside .portrait > .img-slot,
.manifesto-aside .portrait > .atelier-poster {
  width: 100%; height: auto; aspect-ratio: 3 / 4; display: flex;
  object-fit: cover;
}
.manifesto-aside figcaption {
  font-size: 13px; color: var(--muted); letter-spacing: 0.04em;
  display: flex; justify-content: space-between;
  border-top: 1px solid var(--line); padding-top: 12px;
}

/* ---------- services ---------- */
.svc-list { border-top: 1px solid var(--line); }
.svc-row {
  display: grid; grid-template-columns: 90px 1fr 1.1fr 60px;
  gap: 32px; align-items: center;
  padding: 44px 0; border-bottom: 1px solid var(--line);
  position: relative; cursor: default;
}
.svc-row::before {
  content: ""; position: absolute; inset: 0 -24px;
  background: var(--card); border-radius: 18px;
  opacity: 0; transform: scale(0.985);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
  z-index: -1; box-shadow: 0 24px 60px -30px rgba(26, 26, 26, 0.25);
}
.svc-row:hover::before { opacity: 1; transform: scale(1); }
.svc-row .n { font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.svc-row h3 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(26px, 2.6vw, 38px); letter-spacing: -0.01em;
  transition: transform 0.4s var(--ease);
}
.svc-row:hover h3 { transform: translateX(10px); }
.svc-row p { color: var(--muted); font-size: 16px; text-wrap: pretty; }
.svc-row .go {
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line);
  display: grid; place-items: center; font-size: 18px;
  transition: background 0.35s, color 0.35s, border-color 0.35s, transform 0.4s var(--ease);
}
.svc-row:hover .go {
  background: var(--accent); color: #fff; border-color: var(--accent);
  transform: rotate(-45deg);
}

/* ---------- méthode ---------- */
.steps {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0; border-left: 1px solid var(--line);
}
.step {
  border-right: 1px solid var(--line);
  padding: 8px 32px 0;
  position: relative;
  transition: background 0.45s var(--ease);
}
.step:hover { background: color-mix(in oklab, var(--card) 60%, transparent); }
.step .big-n {
  font-family: var(--serif); font-style: italic;
  font-size: clamp(56px, 5.4vw, 92px); line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px color-mix(in oklab, var(--ink) 35%, transparent);
  transition: color 0.5s var(--ease), -webkit-text-stroke-color 0.5s;
  display: block; margin-bottom: 28px;
}
.step:hover .big-n { color: var(--accent); -webkit-text-stroke-color: var(--accent); }
.step h3 {
  font-family: var(--serif); font-weight: 400;
  font-size: 24px; letter-spacing: -0.01em; margin-bottom: 14px;
}
.step p { color: var(--muted); font-size: 15px; text-wrap: pretty; padding-bottom: 36px; }
.step .dur {
  position: absolute; top: 16px; right: 20px;
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted);
}

/* ---------- portfolio ---------- */
.work-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 64px 48px;
}
.work-card:nth-child(2) { margin-top: 96px; }
.work-card:nth-child(3) { margin-top: -32px; }
.work-figure {
  overflow: hidden; border-radius: 6px; position: relative;
  background: var(--bg-2);
  container-type: inline-size;
  transition: transform 0.35s ease-out;
}
.work-figure img,
.work-figure .img-slot,
.work-figure .work-mock {
  width: 100%; height: auto; aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}
.work-card:hover .work-figure img,
.work-card:hover .work-figure .img-slot,
.work-card:hover .work-figure .work-mock { transform: scale(1.04); }
.work-meta {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line);
}
.work-meta h3 {
  font-family: var(--serif); font-weight: 400;
  font-size: 26px; letter-spacing: -0.01em;
}
.work-meta span {
  font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted);
}

/* ---------- témoignages ---------- */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.quote {
  background: var(--card); border: 1px solid var(--line);
  border-radius: 10px; padding: 44px 36px;
  display: flex; flex-direction: column; gap: 28px;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.quote:hover {
  transform: translateY(-8px);
  box-shadow: 0 30px 60px -30px rgba(26, 26, 26, 0.3);
}
.quote .qm {
  font-family: var(--serif); font-size: 64px; line-height: 0.5;
  color: var(--accent); height: 24px;
}
.quote blockquote {
  font-family: var(--serif); font-size: 21px; line-height: 1.45;
  font-style: italic; text-wrap: pretty; flex: 1;
}
.quote figcaption { font-size: 14px; color: var(--muted); }
.quote figcaption b { color: var(--ink); font-weight: 600; display: block; font-family: var(--sans); }

/* ---------- tarifs ---------- */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; align-items: stretch; }
.price-card {
  border: 1px solid var(--line); border-radius: 12px;
  padding: 48px 40px; background: var(--card);
  display: flex; flex-direction: column; gap: 0;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), border-color 0.4s;
}
.price-card:hover { transform: translateY(-10px); box-shadow: 0 36px 70px -32px rgba(26, 26, 26, 0.32); }
.price-card.featured { border-color: var(--accent); position: relative; }
.price-card.featured::before {
  content: "Le plus choisi";
  position: absolute; top: -13px; left: 40px;
  background: var(--accent-ink); color: #fff;
  font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 5px 14px; border-radius: 999px;
}
.price-card h3 {
  font-size: 13px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--muted); font-weight: 500;
}
.price-card .amount {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(40px, 3.6vw, 56px); letter-spacing: -0.02em;
  margin: 18px 0 6px;
}
.price-card .amount small { font-size: 0.4em; color: var(--muted); letter-spacing: 0; }
.price-card .desc { color: var(--muted); font-size: 15px; margin-bottom: 28px; }
.price-card ul { list-style: none; display: grid; gap: 13px; margin-bottom: 36px; flex: 1; }
.price-card li { display: flex; gap: 12px; font-size: 15px; align-items: baseline; }
.price-card li::before { content: "—"; color: var(--accent); flex-shrink: 0; }
.price-note { margin-top: 36px; font-size: 13px; color: var(--muted); text-align: center; }

/* ---------- FAQ ---------- */
.faq-list { border-top: 1px solid var(--line); max-width: 880px; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%; background: none; border: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 30px 0; text-align: left;
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(20px, 1.8vw, 26px); letter-spacing: -0.01em;
  color: var(--ink);
  transition: color 0.3s;
}
.faq-q:hover { color: var(--accent-ink); }
.faq-q .x {
  flex-shrink: 0; width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--line); position: relative;
  transition: transform 0.5s var(--ease), background 0.35s, border-color 0.35s;
}
.faq-q .x::before, .faq-q .x::after {
  content: ""; position: absolute; top: 50%; left: 50%;
  width: 12px; height: 1.5px; background: currentColor;
  transform: translate(-50%, -50%);
  transition: transform 0.4s var(--ease);
}
.faq-q .x::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item.open .faq-q .x { transform: rotate(135deg); background: var(--accent); border-color: var(--accent); color: #fff; }
/* replié uniquement si le JS tourne — sans JS les réponses restent lisibles */
.faq-a { display: grid; transition: grid-template-rows 0.55s var(--ease); }
.js .faq-a { grid-template-rows: 0fr; }
.js .faq-item.open .faq-a { grid-template-rows: 1fr; }
.faq-a > div { overflow: hidden; }
/* le contenu replié sort de l'arbre d'accessibilité (sinon lu accordéon fermé) */
.js .faq-a > div { visibility: hidden; transition: visibility 0s 0.55s; }
.js .faq-item.open .faq-a > div { visibility: visible; transition: visibility 0s; }
.faq-a p {
  color: var(--muted); font-size: 16px; max-width: 62ch;
  padding: 0 60px 30px 0; text-wrap: pretty;
}

/* ---------- contact ---------- */
.contact { text-align: center; padding: 180px 0 160px; }
.contact .sec-label-c {
  font-size: 13px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 32px;
}
.contact h2 {
  font-family: var(--serif); font-weight: 400;
  letter-spacing: -0.02em;
  font-size: clamp(48px, 7vw, 110px); line-height: 1.04;
  max-width: 16ch; margin: 0 auto;
}
.contact .hero-ctas { justify-content: center; margin-top: 56px; }
.contact .mail {
  margin-top: 28px; font-size: 15px; color: var(--muted);
}
.contact .mail a { border-bottom: 1px solid var(--accent); padding-bottom: 2px; transition: color 0.3s; position: relative; }
.contact .mail a:hover { color: var(--accent-ink); }
/* zone tactile >= 44px sans déplacer le soulignement */
.contact .mail a::after { content: ""; position: absolute; left: -8px; right: -8px; top: -14px; bottom: -14px; }

/* ---------- footer ---------- */
.footer {
  background: var(--footer-bg); color: var(--footer-ink);
  padding: 110px 0 48px; overflow: hidden;
}
.footer-word {
  font-family: var(--serif); font-size: clamp(80px, 13vw, 210px);
  line-height: 0.9; letter-spacing: -0.03em; text-align: center;
  opacity: 0.96; user-select: none;
  cursor: default;
}
.footer-word .dot { color: var(--accent); }
.footer-word .fl {
  display: inline-block;
  transition: transform 0.45s var(--ease), color 0.45s;
}
.footer-word .fl:hover {
  transform: translateY(-0.12em) rotate(-4deg);
  color: var(--accent);
}
.footer-meta {
  display: flex; justify-content: center; gap: 40px;
  margin-top: 44px; font-size: 13px; letter-spacing: 0.08em;
  color: rgba(250, 248, 245, 0.5);
}
.footer-meta .clock { font-variant-numeric: tabular-nums; }
.footer-meta .clock b { color: rgba(250, 248, 245, 0.85); font-weight: 500; }
.footer-row {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 90px; padding-top: 32px;
  border-top: 1px solid rgba(250, 248, 245, 0.14);
  font-size: 13px; color: rgba(250, 248, 245, 0.55);
  flex-wrap: wrap; gap: 18px;
}
.footer-row .f-links { display: flex; gap: 0 28px; flex-wrap: wrap; }
/* zone tactile >= 44px — seule navigation de section au tactile */
.footer-row .f-links a { display: inline-block; padding: 12px 0; }
.footer-row a:hover { color: var(--footer-ink); }
.footer-row img { height: 26px; width: auto; opacity: 0.9; }

/* ---------- retour en haut ---------- */
.to-top {
  position: fixed;
  bottom: max(28px, env(safe-area-inset-bottom));
  right: max(28px, env(safe-area-inset-right));
  z-index: 45;
  width: 52px; height: 52px; border-radius: 50%;
  border: 1px solid var(--line); background: color-mix(in oklab, var(--bg) 85%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  color: var(--ink); font-size: 18px; cursor: pointer;
  display: grid; place-items: center;
  opacity: 0; transform: translateY(16px); pointer-events: none;
  /* visibility différée : pointer-events ne bloque pas le focus clavier */
  visibility: hidden;
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease), background 0.3s, color 0.3s, border-color 0.3s, visibility 0s 0.4s;
}
.to-top.show {
  opacity: 1; transform: none; pointer-events: auto; visibility: visible;
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease), background 0.3s, color 0.3s, border-color 0.3s, visibility 0s;
}
.to-top:hover { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ---------- responsive ---------- */
@media (max-width: 1060px) {
  .nav-links a:not(.btn) { display: none; }
  .nav-links { gap: 14px; }
  .nav-toggle { display: flex; }
  .steps { grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
  .step { padding-top: 24px; }
}
@media (max-width: 900px) {
  .wrap { padding: 0 24px; }
  .nav { padding: 18px 24px; }
  .nav.scrolled { padding: 12px 24px; }
  .svc-row { grid-template-columns: 1fr; gap: 10px; padding: 36px 0; }
  .svc-row .n { display: none; }
  .svc-row .go { display: none; }
  .work-grid { grid-template-columns: 1fr; gap: 56px; }
  .work-card:nth-child(2), .work-card:nth-child(3) { margin-top: 0; }
  .quotes, .price-grid { grid-template-columns: 1fr; }
  .section { padding: 96px 0; }
  .hero-scroll { left: 24px; }
  .manifesto { padding: 110px 0 90px; }
  .manifesto-grid { grid-template-columns: 1fr; gap: 48px; }
  .manifesto-aside { max-width: 380px; }
  .faq-a p { padding-right: 0; }
}
@media (max-width: 620px) {
  .steps { grid-template-columns: 1fr; }
  /* le fil décoratif chevauchait les CTA sur petit écran */
  .hero-scroll { display: none; }
}
@media (max-width: 460px) {
  /* libère la place pour que « Démarrer un projet » tienne sur une ligne */
  .nav-brand span { display: none; }
}

/* ===================================================================
   v4 — vignettes typographiques, affiche atelier, chiffres, détails
   =================================================================== */

/* ---------- hero : note de disponibilité ---------- */
.hero-note {
  display: flex; align-items: center; gap: 12px;
  margin-top: 30px; font-size: 13px; letter-spacing: 0.04em;
  color: var(--muted);
}
.hero-note i {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent); flex-shrink: 0;
  animation: note-pulse 2.4s var(--ease) infinite;
}
@keyframes note-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(217, 111, 50, 0.45); }
  50% { box-shadow: 0 0 0 7px rgba(217, 111, 50, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-note i { animation: none; }
}

/* ---------- manifeste : chiffres clés ---------- */
.manifesto-stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 28px; margin-top: 72px;
}
.manifesto-stats > div { border-top: 1px solid var(--line); padding-top: 18px; }
.manifesto-stats b {
  display: block;
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(34px, 3vw, 48px); letter-spacing: -0.01em;
  line-height: 1.1; margin-bottom: 6px;
}
.manifesto-stats span { color: var(--muted); font-size: 14px; text-wrap: pretty; }

/* ---------- vignettes portfolio (maquettes typographiques,
              en attendant les vraies captures de projets) ---------- */
.work-mock {
  display: flex; flex-direction: column;
  background: var(--wm-bg); color: var(--wm-ink);
  font-family: var(--sans);
  user-select: none;
}
.work-mock[data-mock="aubert"]  { --wm-bg: #241b12; --wm-ink: #ece3d4; --wm-accent: #c89b66; }
.work-mock[data-mock="fournil"] { --wm-bg: #f3e7d3; --wm-ink: #43301d; --wm-accent: #c2622e; }
.work-mock[data-mock="lune"]    { --wm-bg: #e7e3da; --wm-ink: #37332e; --wm-accent: #7f9183; }
.work-mock[data-mock="port"]    { --wm-bg: #152830; --wm-ink: #e8eeec; --wm-accent: #d9a04f; }

.work-mock .wm-bar {
  display: flex; align-items: center; gap: 1.5cqw;
  padding: 2.2cqw 3.2cqw;
  border-bottom: 1px solid color-mix(in oklab, currentColor 16%, transparent);
}
.work-mock .wm-bar i {
  width: 1.5cqw; height: 1.5cqw; border-radius: 50%;
  background: currentColor; opacity: 0.3;
}
.work-mock .wm-bar b {
  margin-left: 2.2cqw; font-weight: 400;
  font-size: 2.3cqw; letter-spacing: 0.08em; opacity: 0.55;
}
.work-mock .wm-body {
  flex: 1; display: flex; flex-direction: column;
  padding: 4.4cqw 6cqw 6cqw; position: relative; overflow: hidden;
}
.work-mock .wm-nav {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 7.5cqw;
}
.work-mock .wm-logo { font-family: var(--serif); font-size: 3.6cqw; letter-spacing: 0.01em; }
.work-mock .wm-links { display: flex; gap: 2.6cqw; align-items: center; }
.work-mock .wm-links i { width: 6cqw; height: 1px; background: currentColor; opacity: 0.4; }
.work-mock .wm-title {
  font-family: var(--serif); font-weight: 400;
  font-size: 9cqw; line-height: 1.08; letter-spacing: -0.01em;
  position: relative; z-index: 1;
}
.work-mock .wm-title em { font-style: italic; color: var(--wm-accent); }
.work-mock .wm-meta {
  margin-top: auto; position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: space-between; gap: 4cqw;
}
.work-mock .wm-cta {
  width: 17cqw; height: 6cqw; border-radius: 999px;
  background: var(--wm-accent); flex-shrink: 0;
}
.work-mock .wm-tag {
  font-size: 2.2cqw; letter-spacing: 0.16em; text-transform: uppercase;
  opacity: 0.55;
}
.work-mock .wm-mark {
  position: absolute; right: -5cqw; bottom: -14cqw; z-index: 0;
  font-family: var(--serif); font-style: italic;
  font-size: 46cqw; line-height: 1; opacity: 0.07;
  pointer-events: none;
}

/* ---------- affiche atelier (manifeste) ---------- */
.atelier-poster {
  flex-direction: column;
  background: var(--footer-bg); color: var(--footer-ink);
  padding: 8cqw; user-select: none;
}
.atelier-poster img { height: 9cqw; width: auto; align-self: flex-start; margin-bottom: 12cqw; }
.atelier-poster .ap-title {
  font-family: var(--serif); font-weight: 400;
  font-size: 16.5cqw; line-height: 1.04; letter-spacing: -0.02em;
}
.atelier-poster .ap-title em { font-style: italic; color: var(--accent); }
.atelier-poster .ap-meta {
  margin-top: auto; display: flex; flex-direction: column;
  font-size: 3cqw; letter-spacing: 0.1em; text-transform: uppercase;
  color: rgba(250, 248, 245, 0.6);
}
.atelier-poster .ap-meta span {
  border-top: 1px solid rgba(250, 248, 245, 0.16);
  padding: 2.6cqw 0;
  display: flex; justify-content: space-between;
}
.atelier-poster .ap-meta b { font-weight: 400; color: rgba(250, 248, 245, 0.9); }

/* ---------- contact : localisation ---------- */
.contact-loc { margin-top: 16px; font-size: 14px; color: var(--muted); }

/* ---------- page 404 ---------- */
.error-page {
  min-height: 100svh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center;
  padding: 24px; gap: 8px;
}
.error-page .sec-num { margin-bottom: 18px; }
.error-page h1 {
  font-family: var(--serif); font-weight: 400; letter-spacing: -0.02em;
  font-size: clamp(40px, 7vw, 88px); line-height: 1.05;
}
.error-page p { color: var(--muted); margin: 18px 0 36px; }

/* ---------- responsive v4 ---------- */
@media (max-width: 900px) {
  .manifesto-stats { gap: 18px; margin-top: 52px; }
}
@media (max-width: 620px) {
  .manifesto-stats { grid-template-columns: 1fr; gap: 0; }
  .manifesto-stats > div { padding: 16px 0; }
  .manifesto-stats b { font-size: 30px; display: inline-block; margin: 0 14px 0 0; }
  .manifesto-stats span { font-size: 13px; }
  /* évite les césures au milieu de « Heure locale — 00:00 » et « 24 h ouvrées » */
  .footer-meta { flex-direction: column; gap: 8px; align-items: center; }
  .footer-meta span { white-space: nowrap; }
}

/* ===================================================================
   v5 — rythme encre, masques, filigranes, timeline, vignette curseur
   =================================================================== */

/* ---------- section encre (témoignages) ---------- */
.section.dark {
  --bg-2: #171411;
  --ink: #f5f1ea;
  --muted: rgba(245, 241, 234, 0.62);
  --line: rgba(245, 241, 234, 0.16);
  --card: #221d18;
  --accent-ink: #db8a55; /* terracotta éclairci, AA sur encre */
  color: var(--ink);
}
.section.dark .quote:hover { box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.6); }

/* inversion automatique des éléments fixes quand ils survolent une zone encre
   (.to-top a sa propre classe : il vit en bas du viewport, pas sous la nav) */
body.on-dark .nav,
.to-top.inv,
body.on-dark .cursor-ring {
  --bg: #171411;
  --bg-2: #1f1b17;
  --ink: #f5f1ea;
  --muted: rgba(245, 241, 234, 0.62);
  --line: rgba(245, 241, 234, 0.18);
}
.nav .logo-dark { display: none; }
body.on-dark .nav .logo-light { display: none; }
body.on-dark .nav .logo-dark { display: block; }
.nav-brand span { transition: color 0.4s; }
.nav-toggle span { transition: transform 0.4s var(--ease), background 0.4s; }
.btn { transition: color 0.35s var(--ease), border-color 0.4s, background 0.4s; }

/* ---------- titres de section sous masque ---------- */
.sec-mask {
  overflow: hidden;
  /* respiration pour les descendantes des lettres (q, p, g) */
  padding-bottom: 0.12em; margin-bottom: -0.12em;
}
.js .sec-title[data-reveal="mask"] {
  opacity: 1;
  transform: translateY(110%);
  transition: transform 1s var(--ease);
  transition-delay: var(--rd, 0s);
}
.js .sec-title[data-reveal="mask"].in { transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .js .sec-title[data-reveal="mask"] { transform: none; transition: none; }
}

/* ---------- numéro géant en filigrane ---------- */
.section .wrap, .manifesto .wrap { position: relative; }
.sec-ghost {
  position: absolute; top: -70px; right: 0; z-index: 0;
  font-family: var(--serif); font-style: italic;
  font-size: clamp(140px, 16vw, 240px); line-height: 1;
  color: var(--ink); opacity: 0.05;
  pointer-events: none; user-select: none;
}
.section .wrap > *:not(.sec-ghost), .manifesto .wrap > *:not(.sec-ghost) { position: relative; z-index: 1; }

/* ---------- méthode : ligne qui se trace ---------- */
.steps { position: relative; }
.steps-line {
  position: absolute; top: -1px; left: 0; right: 0; height: 2px;
  background: var(--accent);
  transform: scaleX(1); transform-origin: left;
  z-index: 1;
}
.js .steps-line { transform: scaleX(0); }
.step .big-n, .step .dur { transition: color 0.6s var(--ease), -webkit-text-stroke-color 0.6s var(--ease); }
.step.lit .big-n { color: var(--accent); -webkit-text-stroke-color: var(--accent); }
@media (prefers-reduced-motion: reduce) {
  .js .steps-line { transform: none; }
  .step .big-n { transition: none; }
}

/* ---------- vignette flottante (liste services) ---------- */
.float-media {
  position: fixed; top: 0; left: 0; z-index: 58;
  width: 270px; aspect-ratio: 4 / 3;
  border-radius: 6px; overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 30px 70px -30px rgba(26, 26, 26, 0.45);
  pointer-events: none;
  container-type: inline-size;
  opacity: 0;
  /* le transform est piloté image par image en JS — seule l'opacité transitionne */
  transition: opacity 0.35s var(--ease);
  will-change: transform;
}
.float-media.show { opacity: 1; }
.float-media .work-mock { width: 100%; height: 100%; }
@media (pointer: coarse), (prefers-reduced-motion: reduce), (max-width: 900px) {
  .float-media { display: none; }
}

/* ---------- annotations à la plume ---------- */
.annot { position: relative; display: inline-block; }
.annot svg {
  position: absolute; pointer-events: none; overflow: visible;
  fill: none; stroke: var(--accent); stroke-width: 2.5;
  stroke-linecap: round; stroke-linejoin: round;
}
.annot svg path {
  stroke-dasharray: 100;
  transition: stroke-dashoffset 1.2s cubic-bezier(0.65, 0, 0.35, 1) 0.6s;
}
/* l'état masqué n'existe qu'avec JS — sans lui, le trait reste visible */
.js .annot svg path { stroke-dashoffset: 100; }
.in .annot svg path, .annot.in svg path { stroke-dashoffset: 0; }
.annot-line { left: 0; right: 0; bottom: -0.08em; height: 0.14em; width: 100%; }
/* le mot souligné du hero vit dans un masque de split : on lui laisse de l'air */
.split .w:has(.annot) { padding-bottom: 0.22em; margin-bottom: -0.22em; }
.annot-circle { left: -0.3em; right: -0.3em; top: -0.18em; bottom: -0.18em; width: calc(100% + 0.6em); height: calc(100% + 0.36em); stroke-width: 2; }
@media (prefers-reduced-motion: reduce) {
  .annot svg path, .js .annot svg path { transition: none; stroke-dashoffset: 0; }
}

/* ---------- finitions : marquee fondu + hover « Voir le projet » ---------- */
.marquee {
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.work-meta .swap {
  display: inline-flex; flex-direction: column;
  height: 20px; overflow: hidden; text-align: right;
}
.work-meta .swap span {
  display: block; height: 20px; line-height: 20px;
  font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted);
  transition: transform 0.45s var(--ease);
}
.work-meta .swap span:last-child {
  font-family: var(--serif); font-style: italic; text-transform: none;
  letter-spacing: 0.02em; font-size: 15px; color: var(--accent-ink);
}
.work-card:hover .work-meta .swap span { transform: translateY(-100%); }
@media (pointer: coarse) {
  /* au tactile, pas de hover : on affiche directement le métier */
  .work-card:hover .work-meta .swap span { transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .work-meta .swap span { transition: none; }
}
