/* =========================================================
   FPROD · Landing page agence
   ========================================================= */

:root {
  --bg: #0b0b0c;
  --bg-2: #111113;
  --bg-3: #17171a;
  --ink: #f2efe9;
  --muted: #9b968e;
  --line: rgba(242, 239, 233, .1);
  --line-strong: rgba(242, 239, 233, .22);
  --accent: #00bff3;
  --error: #ff8a80;
  --success: #8fe3b0;

  --serif: "Instrument Serif", "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --script: "Mrs Saint Delafield", cursive;

  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --header-h: 88px;
  --container: 1280px;
  --gutter: clamp(20px, 4vw, 56px);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 72px; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-loading { overflow: hidden; }

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p { margin: 0; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; }
::selection { background: var(--accent); color: var(--bg); }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }

.ico { width: 1.1em; height: 1.1em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* ---------------- Typo ---------------- */

.kicker {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--muted);
}
.kicker::before { content: ""; width: 28px; height: 1px; background: var(--accent); }

.title-xl, .title-lg, .hero-title {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -.01em;
  line-height: 1.02;
}
.title-xl { font-size: clamp(2.8rem, 6vw, 5.4rem); margin-bottom: 28px; }
.title-lg { font-size: clamp(2.3rem, 4.4vw, 4rem); margin-bottom: 20px; }
.title-xl em, .title-lg em { color: var(--muted); }

.lead { font-size: 1.05rem; color: var(--muted); max-width: 36rem; }

/* ---------------- Liens & boutons ---------------- */

.link-arrow {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 6px;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.link-arrow::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: currentColor;
  transform: scaleX(.3);
  transform-origin: left;
  transition: transform .6s var(--ease);
}
.link-arrow .ico { transition: transform .5s var(--ease); }
.link-arrow:hover::after { transform: scaleX(1); }
.link-arrow:hover .ico { transform: translateX(6px); }
.link-sm { font-size: .7rem; }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 13px 22px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  transition: background-color .4s, color .4s, border-color .4s;
}
.btn-outline:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn-outline .ico { transition: transform .5s var(--ease); }
.btn-outline:hover .ico { transform: translateX(4px); }

.btn-light {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: 100%;
  padding: 18px 28px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  font: 600 .78rem/1 var(--sans);
  letter-spacing: .2em;
  text-transform: uppercase;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: color .5s var(--ease);
}
.btn-light::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--accent);
  transform: translateY(101%);
  transition: transform .6s var(--ease);
}
.btn-light:hover::before { transform: translateY(0); }
.btn-light .ico { transition: transform .5s var(--ease); }
.btn-light:hover .ico { transform: translateX(6px); }
.btn-light:disabled { opacity: .6; cursor: wait; }

/* ---------------- Intro ---------------- */

.loader {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  background: var(--bg);
  transition: transform 1.1s var(--ease-io);
}
.js .loader { display: flex; animation: loaderFailsafe .01s 4s forwards; }
.loader.is-done { transform: translateY(-100%); }
.loader-logo { width: 180px; opacity: 0; animation: fadeIn .8s .1s forwards; }
.loader-count { font-family: var(--serif); font-size: 1.1rem; color: var(--muted); font-variant-numeric: tabular-nums; }
@keyframes loaderFailsafe { to { transform: translateY(-100%); } }
@keyframes fadeIn { to { opacity: 1; } }

/* ---------------- Curseur ---------------- */

.cursor {
  position: fixed;
  left: 0; top: 0;
  z-index: 900;
  width: 10px; height: 10px;
  margin: -5px 0 0 -5px;
  border-radius: 50%;
  background: var(--ink);
  pointer-events: none;
  mix-blend-mode: difference;
  opacity: 0;
  display: grid;
  place-items: center;
  transition: width .5s var(--ease), height .5s var(--ease), margin .5s var(--ease), opacity .3s, background-color .4s;
}
.cursor.is-visible { opacity: 1; }
.cursor.is-link { width: 46px; height: 46px; margin: -23px 0 0 -23px; }
.cursor.is-media { width: 92px; height: 92px; margin: -46px 0 0 -46px; mix-blend-mode: normal; background: var(--ink); }
.cursor-label { font-size: .68rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--bg); opacity: 0; transition: opacity .3s; }
.cursor.is-media .cursor-label { opacity: 1; }

/* ---------------- Header ---------------- */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: height .5s var(--ease), background-color .5s, transform .6s var(--ease);
}
.site-header.is-scrolled {
  --header-h: 70px;
  background: rgba(11, 11, 12, .72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.site-header.is-hidden { transform: translateY(-100%); }

.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.brand img { width: 128px; height: auto; transition: opacity .3s; }
.brand:hover img { opacity: .8; }

.main-nav { display: flex; align-items: center; gap: 44px; }
.nav-links { display: flex; gap: 30px; }
.nav-links a {
  position: relative;
  padding: 6px 0;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(242, 239, 233, .7);
  transition: color .3s;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .5s var(--ease);
}
.nav-links a:hover, .nav-links a.is-active { color: var(--ink); }
.nav-links a:hover::after, .nav-links a.is-active::after { transform: scaleX(1); transform-origin: left; }

.nav-toggle {
  display: none;
  width: 48px; height: 48px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.nav-toggle span { width: 18px; height: 1.5px; background: var(--ink); transition: transform .5s var(--ease); }
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.75px) rotate(-45deg); }

/* ---------------- Hero ---------------- */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}
.hero-media { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.hero-photo {
  position: absolute;
  inset: -8%;
  /* Photo dans img/hero.jpg. Sans photo, le dégradé « coucher de soleil » prend le relais. */
  background:
    url("../img/hero.jpg") center 35% / cover no-repeat,
    radial-gradient(ellipse 35% 30% at 72% 22%, rgba(255, 196, 140, .45), transparent 70%),
    radial-gradient(ellipse 80% 50% at 60% 30%, rgba(120, 90, 80, .35), transparent 70%),
    linear-gradient(180deg, #2a2a30 0%, #16161a 55%, #0b0b0c 100%);
  transform: scale(1.15) translate3d(var(--mx, 0px), calc(var(--my, 0px) + var(--sy, 0px)), 0);
  transition: transform 1.6s var(--ease);
  will-change: transform;
}
.is-ready .hero-photo { transform: scale(1.04) translate3d(var(--mx, 0px), calc(var(--my, 0px) + var(--sy, 0px)), 0); }
.hero-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(11, 11, 12, .82) 0%, rgba(11, 11, 12, .45) 45%, rgba(11, 11, 12, .1) 75%),
    linear-gradient(0deg, var(--bg) 0%, transparent 35%);
}
.hero-grain {
  position: absolute; inset: 0;
  opacity: .08;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.hero-content { padding-top: var(--header-h); padding-bottom: 140px; }

.hero-title { font-size: clamp(3.6rem, 10vw, 9rem); line-height: .95; margin-bottom: 36px; }
.hero-title .line { display: block; overflow: hidden; padding: 0 .04em .08em 0; }
.hero-title .line > span { display: inline-block; transform: translateY(105%); transition: transform 1.3s var(--ease); transition-delay: var(--d, 0s); }
.is-ready .hero-title .line > span { transform: none; }
.serif-italic { font-style: italic; }

.hero-lead { max-width: 30rem; font-size: 1.05rem; color: rgba(242, 239, 233, .78); margin-bottom: 44px; }

.reveal-up { opacity: 0; transform: translateY(24px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); transition-delay: var(--d, 0s); }
.is-ready .reveal-up { opacity: 1; transform: none; }

.round-cta {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.round-cta-circle {
  position: relative;
  display: grid;
  place-items: center;
  width: 64px; height: 64px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  overflow: hidden;
  isolation: isolate;
  transition: border-color .5s, color .5s;
}
.round-cta-circle::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: 50%;
  background: var(--ink);
  transform: scale(0);
  transition: transform .6s var(--ease);
}
.round-cta:hover .round-cta-circle { color: var(--bg); border-color: var(--ink); }
.round-cta:hover .round-cta-circle::before { transform: scale(1); }
.round-cta .ico { font-size: 1.2rem; transition: transform .6s var(--ease); }
.round-cta:hover .ico { transform: rotate(90deg); }

.scroll-line {
  position: absolute;
  right: var(--gutter);
  bottom: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  font-size: .62rem;
  font-weight: 600;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--muted);
}
.scroll-line span { writing-mode: vertical-rl; }
.scroll-line i { position: relative; width: 1px; height: 70px; background: var(--line-strong); overflow: hidden; }
.scroll-line i::after { content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 40%; background: var(--ink); animation: scrollDrop 2.2s var(--ease-io) infinite; }
@keyframes scrollDrop { 0% { transform: translateY(-100%); } 100% { transform: translateY(260%); } }

.marquee {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 22px 0;
  border-top: 1px solid var(--line);
  overflow: hidden;
  white-space: nowrap;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee-track { display: inline-flex; align-items: center; gap: 36px; animation: marquee 40s linear infinite; }
.marquee-track span { font-family: var(--serif); font-size: 1.6rem; font-style: italic; color: rgba(242, 239, 233, .55); }
.marquee-track b { font-size: .7rem; font-weight: 400; color: var(--accent); }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------------- Sections ---------------- */

.section { position: relative; padding: clamp(96px, 13vw, 170px) 0; }

.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; margin-bottom: 72px; }
.section-head .title-lg { margin-bottom: 0; }
.section-head-lead { max-width: 24rem; }

/* Agence */
.agence-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(48px, 7vw, 110px); align-items: center; }
.agence .lead { margin-bottom: 56px; }

.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stats li { padding: 26px 0 22px; }
.stats li + li { padding-left: 24px; border-left: 1px solid var(--line); }
.stats strong { display: block; font-family: var(--serif); font-size: clamp(2.6rem, 4vw, 3.6rem); font-weight: 400; line-height: 1; }
.stats small { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

.agence-visual { position: relative; padding: 0 60px 60px 80px; }
.agence-photo { aspect-ratio: 4 / 5; }
.agence-card {
  position: absolute;
  left: 0; bottom: 0;
  width: 46%;
  aspect-ratio: 3 / 4;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 8%;
  background: var(--bg-2);
  border: 1px solid var(--line);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .8);
  font-family: var(--script);
  font-size: clamp(2rem, 3.2vw, 3.1rem);
  white-space: nowrap;
  line-height: .95;
  transform: translate3d(0, var(--py, 0px), 0);
  will-change: transform;
}
.agence-card span:last-child { padding-left: 18%; }
.agence-side {
  position: absolute;
  right: 0; top: 10%;
  writing-mode: vertical-rl;
  font-size: .65rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--muted);
}
.agence-side::after { content: ""; display: block; width: 1px; height: 80px; margin: 18px auto 0; background: var(--line-strong); }

/* Bloc image avec parallaxe interne */
.parallax-box {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .04), transparent 60%),
    var(--bg-3);
}
.parallax-img {
  position: absolute;
  inset: -12% 0;
  background-size: cover;
  background-position: center;
  transform: translate3d(0, var(--py, 0px), 0) scale(var(--zoom, 1));
  transition: transform .9s var(--ease);
  will-change: transform;
}

/* Services */
.services { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.services-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.service { display: flex; flex-direction: column; }
.service-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  margin-bottom: 28px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .05), transparent 60%),
    var(--bg-3);
}
.service-img {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  filter: grayscale(.85) brightness(.85);
  transform: scale(1.02);
  transition: transform 1.2s var(--ease), filter .9s var(--ease);
}
.service:hover .service-img { transform: scale(1.1); filter: grayscale(0) brightness(1); }
.service-num { position: absolute; right: 14px; bottom: 10px; font-family: var(--serif); font-size: 1.6rem; color: rgba(242, 239, 233, .7); }
.service-ico { width: 30px; height: 30px; margin-bottom: 18px; fill: none; stroke: var(--ink); stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; transition: stroke .4s; }
.service:hover .service-ico { stroke: var(--accent); }
.service h3 { font-size: 1.12rem; font-weight: 600; margin-bottom: 12px; }
.service p { flex: 1; font-size: .92rem; color: var(--muted); margin-bottom: 24px; }
.service .link-arrow { align-self: flex-start; }

/* Réalisations */
.works {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(20px, 2.4vw, 32px);
  align-items: start;
}
.works-intro { grid-column: 1 / span 5; align-self: center; padding-right: 20px; }
.work { position: relative; display: block; }
.work-a { grid-column: 6 / span 7; }
.work-b { grid-column: 1 / span 6; }
.work-c { grid-column: 7 / span 3; }
.work-d { grid-column: 10 / span 3; }
.work-a .work-media { aspect-ratio: 16 / 10; }
.work-b .work-media { aspect-ratio: 16 / 11; }
.work-b, .work-c, .work-d { margin-top: clamp(20px, 4vw, 56px); }
.work-c .work-media, .work-d .work-media { aspect-ratio: 3 / 4; }
.work .parallax-img { filter: brightness(.88); }
.work:hover .parallax-img { --zoom: 1.06; filter: brightness(1); }
.work-info {
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding-top: 18px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
}
.work-info span { order: 2; margin-left: auto; font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.work-info h3 { font-family: var(--serif); font-size: clamp(1.5rem, 2.4vw, 2.1rem); font-weight: 400; }
.work-info .ico { order: 3; align-self: center; transition: transform .5s var(--ease); }
.work:hover .work-info .ico { transform: translate(3px, -3px); }

/* Processus */
.processus { background: var(--bg-2); border-top: 1px solid var(--line); }
.steps { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px; padding-top: 48px; }
.steps::before, .steps::after { content: ""; position: absolute; left: 0; top: 0; height: 1px; }
.steps::before { right: 0; background: var(--line-strong); }
.steps::after { width: calc(var(--progress, 0) * 100%); background: var(--accent); transition: width .2s linear; }
.step { position: relative; }
.step::before {
  content: "";
  position: absolute;
  left: 0; top: -53px;
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--bg-2);
  border: 1px solid var(--line-strong);
  transition: background-color .5s, border-color .5s;
}
.step.is-active::before { background: var(--accent); border-color: var(--accent); }
.step-num { display: block; font-family: var(--serif); font-size: 3.4rem; line-height: 1; color: rgba(242, 239, 233, .22); margin-bottom: 22px; transition: color .6s; }
.step.is-active .step-num { color: var(--ink); }
.step h3 { font-size: 1.12rem; font-weight: 600; margin-bottom: 10px; }
.step p { font-size: .92rem; color: var(--muted); }

/* Contact */
.contact { overflow: hidden; isolation: isolate; }
.contact-bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, var(--bg) 20%, rgba(11, 11, 12, .82) 55%, rgba(11, 11, 12, .92) 100%),
    url("../img/contact-bg.jpg") left center / cover no-repeat,
    radial-gradient(ellipse 50% 60% at 20% 50%, #1d1d22, transparent 70%),
    var(--bg);
}
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(48px, 7vw, 110px); align-items: center; }
.contact .lead { margin-bottom: 44px; }

.contact-list { display: grid; gap: 18px; margin-bottom: 32px; }
.contact-list li { display: flex; align-items: flex-start; gap: 16px; }
.contact-list .ico { margin-top: 4px; color: var(--muted); }
.contact-list a { font-weight: 600; border-bottom: 1px solid var(--line-strong); transition: border-color .3s; }
.contact-list a:hover { border-color: var(--ink); }
.contact-list small { color: var(--muted); }

.socials { display: flex; gap: 12px; }
.socials a { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line-strong); border-radius: 50%; transition: background-color .4s, border-color .4s, color .4s; }
.socials a:hover { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.socials svg { width: 16px; height: 16px; fill: currentColor; }

.contact-form {
  display: grid;
  gap: 18px;
  padding: clamp(28px, 4vw, 48px);
  background: rgba(17, 17, 19, .82);
  border: 1px solid var(--line);
  backdrop-filter: blur(10px);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

/* Champs à label flottant */
.field { position: relative; }
.field input, .field textarea, .field select {
  width: 100%;
  padding: 26px 0 10px;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  background: transparent;
  color: var(--ink);
  font: 400 1rem/1.4 var(--sans);
  border-radius: 0;
  transition: border-color .4s;
  appearance: none;
  -webkit-appearance: none;
}
.field textarea { resize: vertical; min-height: 110px; }
.field select { cursor: pointer; padding-right: 28px; }
.field select option { background: var(--bg-2); color: var(--ink); }
.field label {
  position: absolute;
  left: 0; top: 26px;
  font-size: 1rem;
  color: var(--muted);
  pointer-events: none;
  transform-origin: left top;
  transition: transform .45s var(--ease), color .3s;
}
.field label span { color: var(--accent); }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--ink); }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label,
.field select:focus + label, .field select.has-value + label {
  transform: translateY(-20px) scale(.72);
  color: var(--ink);
}
.field-select .ico { position: absolute; right: 2px; top: 30px; color: var(--muted); pointer-events: none; }
.field.is-invalid input, .field.is-invalid textarea, .field.is-invalid select { border-color: var(--error); }
.field.is-invalid label { color: var(--error); }

.consent { display: flex; gap: 12px; align-items: flex-start; margin-top: 6px; font-size: .82rem; color: var(--muted); cursor: pointer; }
.consent input { width: 16px; height: 16px; margin: 3px 0 0; flex: none; accent-color: var(--accent); cursor: pointer; }
.consent a { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
.consent.is-invalid { color: var(--error); }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-msg { display: none; align-items: center; gap: 10px; font-size: .9rem; }
.form-msg.is-visible { display: flex; }
.form-success { color: var(--success); }
.form-error { color: var(--error); }

/* Footer */
.site-footer { padding: 72px 0 32px; border-top: 1px solid var(--line); }
.footer-top { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; padding-bottom: 48px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 28px; font-size: .72rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.footer-nav a:hover { color: var(--ink); }
.footer-tagline { font-family: var(--serif); font-size: 1.5rem; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 24px; border-top: 1px solid var(--line); font-size: .78rem; color: var(--muted); }
.footer-bottom a:hover { color: var(--ink); }

/* ---------------- Apparition au scroll ---------------- */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(48px);
  transition: opacity 1.2s var(--ease), transform 1.2s var(--ease);
  transition-delay: var(--d, 0s);
}
.js [data-reveal="zoom"] { transform: scale(.94); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }

/* Rideau qui découvre les images de réalisations */
.js .work .work-media { clip-path: inset(100% 0 0 0); transition: clip-path 1.4s var(--ease-io); transition-delay: var(--d, 0s); }
.js .work.is-visible .work-media { clip-path: inset(0 0 0 0); }

/* ---------------- Responsive ---------------- */

@media (max-width: 1100px) {
  .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px 28px; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px 40px; }
  .steps::before, .steps::after, .step::before { display: none; }
  .step .step-num { color: var(--ink); }
}

@media (max-width: 960px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: fixed;
    inset: 0;
    z-index: -1;
    flex-direction: column;
    justify-content: center;
    gap: 48px;
    background: var(--bg);
    clip-path: inset(0 0 100% 0);
    transition: clip-path .8s var(--ease-io);
  }
  .main-nav.is-open { clip-path: inset(0 0 0 0); }
  .site-header.nav-open { backdrop-filter: none; -webkit-backdrop-filter: none; background: transparent; border-color: transparent; }
  .nav-links { flex-direction: column; align-items: center; gap: 18px; }
  .nav-links a { font-family: var(--serif); font-size: 2.4rem; font-weight: 400; letter-spacing: 0; text-transform: none; }
  .nav-links a::after { display: none; }

  .agence-grid, .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .agence-visual { max-width: 560px; }
  .section-head { flex-direction: column; align-items: flex-start; }

  .works { grid-template-columns: minmax(0, 1fr); }
  .works-intro, .work-a, .work-b, .work-c, .work-d { grid-column: auto; margin-top: 0; }
  .works-intro { margin-bottom: 24px; padding-right: 0; }
  .work-c .work-media, .work-d .work-media { aspect-ratio: 16 / 11; }
}

@media (max-width: 640px) {
  :root { --header-h: 76px; }
  .brand img { width: 110px; }
  .hero-content { padding-bottom: 120px; }
  .scroll-line { display: none; }
  .marquee-track span { font-size: 1.25rem; }
  .services-grid { grid-template-columns: minmax(0, 1fr); }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .agence-visual { padding: 0 0 50px 40px; }
  .agence-side { display: none; }
  .form-row { grid-template-columns: minmax(0, 1fr); }
  .work-info { flex-wrap: wrap; gap: 6px 14px; }
  .work-info span { order: 0; width: 100%; margin-left: 0; }
  .footer-top { flex-direction: column; align-items: flex-start; }
}

@media (hover: none), (pointer: coarse) {
  .cursor { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  html { scroll-behavior: auto; }
  .js .loader { display: none; }
}

/* ---------------- Page mentions légales ---------------- */

.legal { padding: calc(var(--header-h) + 80px) 0 110px; }
.legal-content { max-width: 860px; }
.legal-date { color: var(--muted); font-size: .85rem; margin-bottom: 56px; }
.legal-content h2 { font-family: var(--serif); font-size: 1.9rem; font-weight: 400; margin: 52px 0 14px; padding-top: 28px; border-top: 1px solid var(--line); }
.legal-content h3 { font-size: .95rem; font-weight: 600; margin: 24px 0 6px; }
.legal-content p, .legal-content li { color: var(--muted); }
.legal-content p + p { margin-top: 10px; }
.legal-content ul { display: grid; gap: 4px; margin: 10px 0 12px; padding-left: 20px; list-style: disc; }
.legal-content strong { color: var(--ink); }
.legal-content a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.legal-page .site-footer { padding-top: 0; }

/* Petites cartes de réalisations : catégorie au-dessus du titre */
.work-c .work-info, .work-d .work-info { flex-wrap: wrap; gap: 4px 14px; }
.work-c .work-info span, .work-d .work-info span { order: 0; width: 100%; margin-left: 0; }

@media (max-width: 640px) {
  .stats li + li { padding-left: 14px; }
  .stats small { display: block; font-size: .64rem; letter-spacing: .08em; line-height: 1.4; margin-top: 6px; }
}
