/* ============================================================
   PORTFOLIO CRÉATION DE CONTENU — MNK Agency
   Thèmes : corail (défaut) · rose · sauge · nuit
   ============================================================ */

/* ─── Thèmes ─── */
:root,
[data-theme="corail"] {
  --bg: #F5EFE6;
  --surface: #FBF8F3;
  --ink: #1E1A17;
  --muted: #6E655C;
  --line: rgba(30, 26, 23, .14);
  --accent: #E4572E;
  --soft: #F4BFA6;
  --pale: #FADFD2;
  --deep: #3B1F2B;
  --cta-bg: #3B1F2B;
  --cta-ink: #FBEFE8;
}
[data-theme="rose"] {
  --bg: #FBF2F5;
  --surface: #FFF9FB;
  --ink: #2A1420;
  --muted: #7A5A68;
  --line: rgba(42, 20, 32, .14);
  --accent: #D23C77;
  --soft: #F5A3C7;
  --pale: #F8DAE7;
  --deep: #5A1430;
  --cta-bg: #D23C77;
  --cta-ink: #FFF4F8;
}
[data-theme="sauge"] {
  --bg: #F0F0E8;
  --surface: #F8F8F2;
  --ink: #1C211C;
  --muted: #5E665C;
  --line: rgba(28, 33, 28, .14);
  --accent: #5B7B55;
  --soft: #C5D3B3;
  --pale: #E1E8D4;
  --deep: #23301F;
  --cta-bg: #23301F;
  --cta-ink: #EEF2E6;
}
[data-theme="nuit"] {
  --bg: #141114;
  --surface: #1D181C;
  --ink: #F3ECE4;
  --muted: #A99E95;
  --line: rgba(243, 236, 228, .14);
  --accent: #F08A5D;
  --soft: #6E3A3F;
  --pale: #2A2026;
  --deep: #3A2430;
  --cta-bg: #F08A5D;
  --cta-ink: #1A1214;
}

:root {
  --f-display: 'Bricolage Grotesque', system-ui, sans-serif;
  --f-serif: 'Instrument Serif', Georgia, serif;
  --radius: 22px;
  --gutter: clamp(16px, 4vw, 64px);
  --ease: cubic-bezier(.22, 1, .36, 1);
}

/* ─── Base ─── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--f-display);
  font-size: 17px;
  line-height: 1.55;
  background: var(--bg);
  color: var(--ink);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
em { font-family: var(--f-serif); font-style: italic; font-weight: 400; }
::selection { background: var(--accent); color: var(--surface); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.skip {
  position: absolute; left: -999px; top: 8px; z-index: 300;
  background: var(--ink); color: var(--bg); padding: .5rem 1rem; border-radius: 99px;
}
.skip:focus { left: 8px; }

.apercu-bar {
  position: relative; z-index: 120; height: 30px; line-height: 30px;
  background: var(--ink); color: var(--bg);
  font-size: .78rem; text-align: center; padding: 0 var(--gutter);
  letter-spacing: .01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.apercu-short { display: none; }

/* ─── Boutons ─── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .95rem 1.6rem; border-radius: 999px;
  font-weight: 600; font-size: .95rem; text-decoration: none; white-space: nowrap;
  transition: transform .35s var(--ease), background .25s, color .25s, border-color .25s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn-sm { padding: .6rem 1.15rem; font-size: .88rem; }
.btn-block { width: 100%; }
.btn-ink { background: var(--ink); color: var(--bg); }
.btn-ink:hover { background: var(--accent); color: #fff; }
.btn-outline { border: 1.5px solid var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--bg); }
.btn-light { background: var(--cta-ink); color: var(--cta-bg); }
.btn-outline-light { border: 1.5px solid var(--cta-ink); color: var(--cta-ink); }
.btn-outline-light:hover { background: var(--cta-ink); color: var(--cta-bg); }

/* ─── Nav ─── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1rem var(--gutter);
  transition: background .3s, backdrop-filter .3s, padding .3s, transform .4s var(--ease);
}
body.has-apercu .nav { top: 30px; }
.nav.scrolled {
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  padding-block: .7rem;
}
body.has-apercu .nav.scrolled { top: 0; }
.nav.hide { transform: translateY(-110%); }
.nav-logo {
  font-weight: 800; font-size: 1.15rem; text-decoration: none; letter-spacing: -.02em;
  width: 44px; height: 44px; display: grid; place-items: center;
  border-radius: 50%; background: var(--accent); color: #fff;
}
.nav nav { flex: 1; display: flex; justify-content: center; }
.nav-links { list-style: none; display: flex; gap: .3rem; padding: .3rem; border-radius: 99px; background: color-mix(in srgb, var(--surface) 70%, transparent); border: 1px solid var(--line); }
.nav-links a {
  display: block; padding: .45rem 1rem; border-radius: 99px;
  text-decoration: none; font-size: .9rem; font-weight: 500;
  transition: background .25s, color .25s;
}
.nav-links a:hover, .nav-links a.active { background: var(--ink); color: var(--bg); }

/* ─── Visuels provisoires (remplacés dès qu'une image est fournie) ─── */
.ph {
  position: relative; overflow: hidden;
  background: var(--soft);
}
.ph[data-ph="1"] { background: radial-gradient(120% 80% at 20% 10%, var(--soft), transparent 60%), linear-gradient(165deg, var(--accent), var(--deep)); }
.ph[data-ph="2"] { background: radial-gradient(90% 70% at 80% 85%, var(--accent), transparent 65%), linear-gradient(200deg, var(--pale), var(--soft)); }
.ph[data-ph="3"] { background: radial-gradient(70% 60% at 30% 70%, var(--pale), transparent 70%), linear-gradient(140deg, var(--soft), var(--accent)); }
.ph[data-ph="4"] { background: radial-gradient(80% 60% at 70% 20%, var(--accent), transparent 70%), linear-gradient(180deg, var(--deep), var(--ink)); }
.ph[data-ph="5"] { background: radial-gradient(100% 80% at 50% 100%, var(--soft), transparent 60%), linear-gradient(120deg, var(--pale), var(--surface)); }
.ph[data-ph="6"] { background: conic-gradient(from 200deg at 60% 40%, var(--accent), var(--soft), var(--pale), var(--accent)); }
.ph::after {
  content: ""; position: absolute; inset: 0; opacity: .28; mix-blend-mode: overlay; pointer-events: none;
  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='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.ph-label {
  position: absolute; left: 12px; bottom: 12px; z-index: 1;
  font-size: .68rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: #fff; background: rgba(0,0,0,.28); padding: .25rem .6rem; border-radius: 99px;
  backdrop-filter: blur(6px);
}
.media-img { width: 100%; height: 100%; object-fit: cover; }
.strip-tile > *, .svc-media > *, .hero-photo > .media-img, .apropos-photo > .media-img { width: 100%; height: 100%; }

/* ─── Hero ─── */
.hero { height: 210vh; position: relative; --p: 0; }
.hero-sticky {
  position: sticky; top: 0; height: 100vh; height: 100svh;
  display: grid; place-items: center; overflow: hidden;
}
.hero-metier {
  position: absolute; top: clamp(84px, 14vh, 140px); left: 0; right: 0;
  text-align: center; font-size: clamp(.8rem, 1.1vw, .95rem);
  font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}
.hero-name {
  position: absolute; inset: 0; z-index: 1;
  display: grid; grid-template-columns: 1fr clamp(10rem, 23vw, 22rem) 1fr; align-items: center;
  font-size: clamp(4rem, 12vw, 14rem); padding-inline: var(--gutter); font-weight: 800; line-height: .82; letter-spacing: -.055em;
  pointer-events: none;
}
.hero-word { display: block; will-change: transform; }
.hero-word-l { grid-column: 1; justify-self: end; transform: translateX(calc(var(--p) * -22vw)); }
.hero-word-r { grid-column: 3; justify-self: start; transform: translateX(calc(var(--p) * 22vw)); color: var(--accent); }
.hero-word-r { font-family: var(--f-serif); font-style: italic; font-weight: 400; letter-spacing: -.03em; }

.hero-photos {
  position: relative; z-index: 2;
  width: clamp(170px, 22vw, 330px); aspect-ratio: 3 / 4;
  transform: translateY(calc(var(--p) * -2vh)) scale(calc(1 + var(--p) * .35));
}
.hero-photo { position: absolute; inset: 0; border-radius: var(--radius); overflow: hidden; box-shadow: 0 30px 60px -20px rgba(0,0,0,.35); }
.hero-photo-back { transform: rotate(calc(8deg + var(--p) * 10deg)) translate(calc(18% + var(--p) * 30%), 4%); }
.hero-photo-front { transform: rotate(calc(-4deg + var(--p) * 4deg)); }
.hero-sticker {
  position: absolute; z-index: 3; width: 42%; right: -20%; top: -12%;
  animation: spin 16s linear infinite;
}
.hero-sticker text { font-size: 11.5px; font-weight: 700; letter-spacing: .12em; fill: var(--ink); }
.hero-sticker-star { fill: var(--accent); }
.hero-sticker::before { content: ""; }
@keyframes spin { to { transform: rotate(360deg); } }

.hero .hero-accroche.in, .hero-accroche {
  position: absolute; bottom: clamp(70px, 13vh, 130px); left: 0; right: 0; z-index: 3;
  display: flex; align-items: center; justify-content: center; gap: .6rem;
  font-family: var(--f-serif); font-size: clamp(1.3rem, 2.4vw, 2rem); padding-inline: var(--gutter); text-align: center;
  opacity: calc(1 - var(--p) * 2.2);
}
.star { width: .8em; height: .8em; fill: var(--accent); flex: none; animation: spin 8s linear infinite; }
.hero-scroll {
  position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: .4rem;
  font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; text-decoration: none; color: var(--muted);
  opacity: calc(1 - var(--p) * 4);
}
.hero-scroll i { width: 1px; height: 34px; background: var(--line); position: relative; overflow: hidden; }
.hero-scroll i::after { content: ""; position: absolute; inset: 0; background: var(--ink); animation: drip 1.8s var(--ease) infinite; }
@keyframes drip { from { transform: translateY(-100%); } to { transform: translateY(100%); } }

/* ─── Bandeau d'images ─── */
.strip { padding: 1rem 0 3rem; overflow: hidden; margin-top: -30vh; position: relative; z-index: 4; }
.strip-track { display: flex; gap: 14px; width: max-content; animation: marquee 55s linear infinite; }
.strip:hover .strip-track { animation-play-state: paused; }
.strip-tile { width: clamp(150px, 17vw, 250px); aspect-ratio: 3 / 4; border-radius: 18px; overflow: hidden; flex: none; }
.strip-tile:nth-child(even) { margin-top: 2.5rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ─── Sections ─── */
.section { padding: clamp(5rem, 10vw, 9rem) var(--gutter); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.h2 { font-size: clamp(2.6rem, 7vw, 6.2rem); font-weight: 700; line-height: .95; letter-spacing: -.045em; }
.h2 em { color: var(--accent); letter-spacing: -.02em; }
.section-note { color: var(--muted); font-size: .95rem; }
.eyebrow { font-size: .78rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin-bottom: 1rem; }

/* ─── Travaux ─── */
.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2.5vw, 2.5rem); }
.work-card { text-align: left; display: block; width: 100%; cursor: pointer; }
.work-media {
  aspect-ratio: 3 / 4; border-radius: var(--radius); overflow: hidden; position: relative;
  transform: translateZ(0);
}
.work-media > .media-img, .work-media > .ph-inner { transition: transform .9s var(--ease); width: 100%; height: 100%; }
.work-card:hover .work-media > * { transform: scale(1.06); }
.work-cat {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  background: var(--surface); color: var(--ink); font-size: .75rem; font-weight: 600;
  padding: .3rem .75rem; border-radius: 99px;
}
.work-info { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: 1rem .25rem 0; }
.work-title { font-size: clamp(1.25rem, 1.8vw, 1.6rem); font-weight: 700; letter-spacing: -.03em; }
.work-year { color: var(--muted); font-size: .9rem; font-variant-numeric: tabular-nums; }
.work-resume { color: var(--muted); font-size: .95rem; padding: .35rem .25rem 0; max-width: 34ch; }
@media (min-width: 900px) {
  .work-card:nth-child(3n + 2) { margin-top: 5rem; }
  .work-card:nth-child(3n + 3) { margin-top: 2.5rem; }
}

/* ─── À propos ─── */
.apropos { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: center; background: var(--surface); border-radius: clamp(28px, 4vw, 48px); margin-inline: clamp(8px, 1.5vw, 20px); }
.apropos-body { margin-top: 2rem; display: grid; gap: 1rem; font-size: clamp(1rem, 1.25vw, 1.15rem); max-width: 56ch; color: color-mix(in srgb, var(--ink) 82%, transparent); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 2.75rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.stats dt { font-size: clamp(2rem, 4vw, 3.4rem); font-weight: 700; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.stats dd { color: var(--muted); font-size: .9rem; margin-top: .4rem; }
.apropos-media { position: relative; }
.apropos-photo { aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; }
.apropos-note {
  position: absolute; left: -8%; bottom: 8%; width: min(240px, 60%);
  background: var(--accent); color: #fff; padding: 1.1rem 1.25rem; border-radius: 18px;
  transform: rotate(-5deg); box-shadow: 0 20px 40px -15px rgba(0,0,0,.35);
  display: grid; gap: .2rem; font-size: .9rem; line-height: 1.35;
}
.apropos-note-num { font-size: 2.6rem; font-weight: 800; letter-spacing: -.04em; line-height: 1; }

/* ─── Marques ─── */
.brands { padding: clamp(4rem, 8vw, 6rem) 0; text-align: center; overflow: hidden; }
.brands .eyebrow { color: var(--muted); margin-bottom: 1.75rem; }
.brands-track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.brand { display: flex; align-items: center; gap: 2.5rem; padding-right: 2.5rem; font-family: var(--f-serif); font-size: clamp(2rem, 4.5vw, 3.6rem); white-space: nowrap; }
.brand svg { width: .55em; height: .55em; fill: var(--accent); }

/* ─── Services (cartes empilées) ─── */
.stack { display: grid; gap: 2rem; }
.svc {
  position: sticky; top: calc(96px + var(--i) * 18px);
  min-height: min(76vh, 640px);
  display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(1.5rem, 4vw, 4rem);
  padding: clamp(1.5rem, 3.5vw, 3.25rem); border-radius: clamp(24px, 3vw, 40px);
  background: var(--surface); border: 1px solid var(--line);
  transform-origin: 50% 0;
  transform: scale(var(--s, 1));
  filter: brightness(var(--b, 1));
  will-change: transform;
}
.svc:nth-child(2) { background: var(--pale); }
.svc:nth-child(3) { background: var(--soft); }
.svc:nth-child(4) { background: var(--deep); color: var(--cta-ink); border-color: transparent; }
[data-theme="nuit"] .svc:nth-child(4) { background: var(--accent); color: #1A1214; }
.svc > * { min-width: 0; }
.svc-text { display: flex; flex-direction: column; }
.svc-num { font-family: var(--f-serif); font-size: 1.5rem; opacity: .65; }
.svc-title { font-size: clamp(2.2rem, 5vw, 4.6rem); font-weight: 700; letter-spacing: -.045em; line-height: 1; margin: .5rem 0 1.25rem; }
.svc-desc { font-size: clamp(1rem, 1.3vw, 1.15rem); max-width: 44ch; opacity: .85; }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; margin-top: auto; padding-top: 2rem; }
.tags li { border: 1.5px solid currentColor; border-radius: 99px; padding: .35rem .9rem; font-size: .85rem; font-weight: 500; }
.svc-media { border-radius: calc(var(--radius) - 4px); overflow: hidden; min-height: 260px; }

/* ─── CTA ─── */
.cta {
  background: var(--cta-bg); color: var(--cta-ink);
  margin: 0 clamp(8px, 1.5vw, 20px); border-radius: clamp(28px, 4vw, 48px);
  padding: clamp(5rem, 11vw, 10rem) var(--gutter);
  text-align: center; overflow: hidden; position: relative;
}
.cta-loc { display: inline-flex; align-items: center; gap: .6rem; font-size: .9rem; opacity: .85; font-variant-numeric: tabular-nums; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: #5BD37A; box-shadow: 0 0 0 0 rgba(91,211,122,.6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(91,211,122,0); } 100% { box-shadow: 0 0 0 0 rgba(91,211,122,0); } }
.cta-title { font-size: clamp(3.4rem, 12.5vw, 12rem); font-weight: 800; line-height: .88; letter-spacing: -.06em; margin: 2rem 0 3rem; }
.cta-title > span { display: block; overflow: hidden; padding-bottom: .06em; }
.cta-title em { letter-spacing: -.03em; }
.cta-actions { display: flex; justify-content: center; gap: .75rem; flex-wrap: wrap; }

/* ─── Footer ─── */
.footer {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  padding: 2rem var(--gutter); font-size: .88rem; color: var(--muted);
}
.socials { list-style: none; display: flex; gap: .5rem; flex-wrap: wrap; }
.socials a { display: inline-block; padding: .4rem .9rem; border: 1px solid var(--line); border-radius: 99px; text-decoration: none; color: var(--ink); transition: background .25s, color .25s; }
.socials a:hover { background: var(--ink); color: var(--bg); }
.footer-credit { text-decoration: none; }
.footer-credit:hover { color: var(--accent); }

/* ─── Curseur projet ─── */
.cursor {
  position: fixed; left: 0; top: 0; z-index: 90; pointer-events: none;
  width: 88px; height: 88px; margin: -44px 0 0 -44px; border-radius: 50%;
  background: var(--accent); color: #fff; display: grid; place-items: center;
  font-weight: 700; font-size: .9rem;
  transform: translate3d(var(--x, -200px), var(--y, -200px), 0) scale(0);
  transition: transform .35s var(--ease);
}
.cursor.on { transform: translate3d(var(--x), var(--y), 0) scale(1); }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* ─── Modales ─── */
.modal {
  border: 0; padding: 0; color: var(--ink); background: var(--bg);
  max-width: none; max-height: none;
}
.modal::backdrop { background: rgba(10, 8, 8, .55); backdrop-filter: blur(6px); }
.modal-close {
  position: absolute; top: 14px; right: 14px; z-index: 5;
  width: 44px; height: 44px; border-radius: 50%; background: var(--ink); color: var(--bg);
  font-size: 1.6rem; line-height: 1; display: grid; place-items: center;
  transition: transform .3s var(--ease), background .25s;
}
.modal-close:hover { transform: rotate(90deg); background: var(--accent); }
body.modal-open { overflow: hidden; }

.project-modal {
  width: min(1100px, calc(100% - 24px)); max-height: calc(100% - 24px);
  margin: auto; border-radius: clamp(20px, 3vw, 32px); overflow-y: auto;
}
.project-modal[open] { animation: rise .55s var(--ease); }
@keyframes rise { from { opacity: 0; transform: translateY(40px) scale(.98); } }
.pm-inner { padding: clamp(1.5rem, 4vw, 3.5rem); }
.pm-title { font-size: clamp(2.4rem, 6vw, 5rem); font-weight: 700; letter-spacing: -.045em; line-height: 1; padding-right: 3rem; }
.pm-desc { margin-top: 1.25rem; font-size: clamp(1.02rem, 1.4vw, 1.2rem); max-width: 62ch; color: color-mix(in srgb, var(--ink) 82%, transparent); }
.pm-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin: 2.5rem 0; padding: 2rem 0; border-block: 1px solid var(--line); }
.pm-cols h4 { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 1rem; font-weight: 600; }
.pm-cols .tags { padding-top: 0; }
.pm-results { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.pm-results dt { font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 700; letter-spacing: -.04em; line-height: 1; color: var(--accent); }
.pm-results dd { font-size: .9rem; color: var(--muted); margin-top: .3rem; }
.pm-gallery { display: grid; grid-template-columns: 2fr 1fr; grid-auto-rows: minmax(180px, 1fr); gap: 12px; }
.pm-gallery > * { border-radius: 16px; overflow: hidden; min-height: 200px; }
.pm-gallery > :first-child { grid-row: span 2; aspect-ratio: 4 / 5; }
.pm-nav { display: flex; justify-content: space-between; align-items: center; gap: .75rem; flex-wrap: wrap; margin-top: 2rem; }

.form-modal {
  width: min(560px, 100%); height: 100%; max-height: 100%;
  margin: 0 0 0 auto; overflow-y: auto;
}
.form-modal[open] { animation: slide .5s var(--ease); }
@keyframes slide { from { transform: translateX(100%); } }
.contact-form { padding: clamp(1.5rem, 4vw, 2.75rem); padding-top: 4rem; display: grid; gap: 1.25rem; }
.fm-title { font-size: clamp(2rem, 4.5vw, 2.8rem); font-weight: 700; letter-spacing: -.04em; line-height: 1; margin-bottom: .5rem; }
.fm-title em { color: var(--accent); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { display: grid; gap: .45rem; border: 0; min-width: 0; }
.field > span, .field legend { font-size: .82rem; font-weight: 600; color: var(--muted); padding: 0; margin-bottom: .45rem; }
.field input, .field textarea {
  font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--surface); border: 1.5px solid var(--line); border-radius: 14px;
  padding: .8rem 1rem; width: 100%; resize: vertical;
  transition: border-color .2s;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); }
.field .invalid { border-color: #C9302C; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip span {
  display: inline-block; padding: .5rem 1rem; border-radius: 99px; font-size: .88rem; font-weight: 500;
  border: 1.5px solid var(--line); background: var(--surface); transition: all .2s;
}
.chip input:checked + span { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.hp { position: absolute; left: -9999px; }
.form-feedback { font-size: .92rem; min-height: 1.4em; text-align: center; }
.form-feedback.ok { color: #2F8A4C; }
.form-feedback.err { color: #C9302C; }

/* ─── Apparitions au scroll ─── */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.work-card.reveal:nth-child(3n + 2) { transition-delay: .08s; }
.work-card.reveal:nth-child(3n + 3) { transition-delay: .16s; }
.cta-title > span > span { display: inline-block; transform: translateY(105%); transition: transform 1.1s var(--ease); }
.cta-title.in > span > span { transform: none; }
.cta-title.in > span:nth-child(2) > span { transition-delay: .12s; }

/* ─── Responsive ─── */
@media (max-width: 1000px) {
  .work-grid { grid-template-columns: repeat(2, 1fr); }
  .apropos { grid-template-columns: 1fr; }
  .apropos-media { max-width: 520px; }
  .apropos-note { left: auto; right: -4%; }
  .svc { grid-template-columns: 1fr; min-height: 0; }
  .svc-media { min-height: 0; aspect-ratio: 16 / 10; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .nav nav { display: none; }
  .hero { height: 170vh; }
  .hero-name { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: calc(min(52vw, 230px) * 1.5); font-size: clamp(3.4rem, 19vw, 6.5rem); }
  .hero-scroll { display: none; }
  .apercu-long { display: none; }
  .apercu-short { display: inline; }
  .hero-word-l { transform: translate(calc(var(--p) * -40vw), 0); }
  .hero-word-r { transform: translate(calc(var(--p) * 40vw), 0); }
  .hero-photos { width: min(52vw, 230px); }
  .hero-metier { top: 84px; }
  .hero-accroche { bottom: 64px; }
  .strip { margin-top: -20vh; }
  .work-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stats > :last-child { grid-column: span 2; }
  .apropos-note { right: 4%; bottom: -6%; }
  .svc { top: calc(80px + var(--i) * 12px); }
  .pm-cols, .field-row { grid-template-columns: 1fr; }
  .pm-gallery { grid-template-columns: 1fr 1fr; }
  .pm-gallery > :first-child { grid-column: span 2; grid-row: auto; aspect-ratio: 4 / 3; }
  .pm-nav .btn-outline { flex: 1; }
  .pm-nav .btn-ink { order: 3; width: 100%; }
  .footer { justify-content: center; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
  .cta-title > span > span { transform: none; }
  .strip-track, .brands-track { animation: none; }
  .strip, .brands { overflow-x: auto; }
}
