/* ==========================================================================
   LuxMLG — styles.css
   --------------------------------------------------------------------------
   Design language: "quiet luxury, modern French editorial".
   Near-black canvas, warm ivory type, one champagne-gold accent used
   sparingly. Editorial serif (Fraunces) + clean grotesque (Outfit).

   TABLE OF CONTENTS
   ------------------
    0. Design tokens
    1. Reset & base
    2. Texture, selection, scrollbar, focus
    3. Utilities (container, eyebrow, section heads, ghost numbers)
    4. Buttons & links
    5. Reveal / motion primitives
    6. Header & navigation
    7. Hero
    8. Marquee
    9. Services (01)
   10. Why LuxMLG (02)
   11. Offers (03)
   12. Process (04)
   13. Work / Réalisations (05)
   14. Contact (06)
   15. Footer
   16. Breakpoints (≤1024 / ≤880 / ≤640 / ≤420)
   17. Reduced motion & print
   ========================================================================== */

/* --------------------------------------------------------------------------
   0. DESIGN TOKENS
   -------------------------------------------------------------------------- */
:root {
  /* Canvas — near-black with a whisper of violet, layered for depth */
  --bg:        #0A0A0F;
  --bg-2:      #0D0C13;
  --surface:   #131118;
  --surface-2: #161320;

  /* Type */
  --text:  #F2EEE5;            /* warm ivory */
  --muted: #A9A2AD;            /* readable secondary (≈7.5:1 on --bg) */
  --faint: #8C8597;            /* secondary/captions — ≥5.5:1 on --bg (AA) */

  /* The one accent — refined champagne gold. Every use is earned. */
  --gold:        #D4AF7A;
  --gold-bright: #E9CB94;
  --gold-deep:   #8F7144;
  --gold-tint:   rgba(212, 175, 122, 0.07);

  /* Hairlines */
  --line:      rgba(242, 238, 229, 0.08);
  --line-gold: rgba(212, 175, 122, 0.28);

  /* Feedback */
  --error: #D98E73;

  /* Typography */
  --font-display: "Fraunces", "Georgia", serif;
  --font-body: "Outfit", "Helvetica Neue", system-ui, sans-serif;

  /* Motion */
  --ease-out:  cubic-bezier(0.22, 1, 0.36, 1);
  --ease-luxe: cubic-bezier(0.65, 0.05, 0, 1);

  /* Geometry */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 20px;
  --container: 1200px;
  --gutter: clamp(20px, 5vw, 48px);
  --section-pad: clamp(96px, 14vh, 168px);

  /* Layers */
  --z-glow: 60;
  --z-menu: 95;
  --z-header: 100;
  --z-grain: 200;
}

/* --------------------------------------------------------------------------
   1. RESET & BASE
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  background: var(--bg); /* dark from the first paint — no white flash */
  scroll-behavior: smooth;
  scroll-padding-top: 96px; /* keep anchored sections clear of the fixed header */
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  font-weight: 300;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  min-height: 100svh;
}

img, svg, canvas { display: block; max-width: 100%; }
button, input, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; touch-action: manipulation; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
em { font-style: italic; }
strong { font-weight: 500; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 360;
  line-height: 1.08;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

/* Headline accent — the only place italic gold appears in running titles */
h1 em, h2 em, h3 em {
  font-style: italic;
  font-weight: 340;
  color: var(--gold);
}

::placeholder { color: var(--faint); opacity: 1; }

/* --------------------------------------------------------------------------
   2. TEXTURE, SELECTION, SCROLLBAR, FOCUS
   -------------------------------------------------------------------------- */

/* Film-grain veil over everything — the "expensive paper" feel.
   Pure SVG data-URI, static (animated grain would cost CPU for nothing). */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: var(--z-grain);
  pointer-events: none;
  opacity: 0.05;
  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='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
}

::selection { background: var(--gold); color: #0A0A0F; }

html { scrollbar-color: #2B2733 transparent; scrollbar-width: thin; }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-thumb { background: #2B2733; border-radius: 8px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: var(--gold-deep); }

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

.skip-link {
  position: fixed;
  top: 12px; left: 12px;
  z-index: calc(var(--z-header) + 10);
  background: var(--gold);
  color: #0A0A0F;
  padding: 10px 18px;
  border-radius: var(--r-sm);
  font-weight: 500;
  transform: translateY(-200%);
  transition: transform 0.25s var(--ease-out);
}
.skip-link:focus-visible { transform: none; }

/* Soft ambient glow that follows the cursor (JS-driven, desktop only) */
.cursor-glow {
  position: fixed;
  top: 0; left: 0;
  z-index: var(--z-glow);
  width: 560px; height: 560px;
  margin: -280px 0 0 -280px;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(212, 175, 122, 0.065), transparent 62%);
  mix-blend-mode: screen;
  opacity: 0;
  transition: opacity 0.6s ease;
}
html.glow-on .cursor-glow { opacity: 1; }
/* Touch / coarse pointers never get the custom cursor glow */
@media (pointer: coarse) { .cursor-glow { display: none !important; } }

/* --------------------------------------------------------------------------
   3. UTILITIES
   -------------------------------------------------------------------------- */
.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--section-pad); position: relative; }
.section--tinted { background: var(--bg-2); }

/* Small-caps gold label with a leading rule — recurring editorial motif */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--gold);
}
.eyebrow::before {
  content: "";
  width: 28px; height: 1px;
  background: var(--gold);
  opacity: 0.7;
}

/* Section heading block: ghost number · title · offset intro column */
.sec-head {
  display: grid;
  grid-template-columns: auto 1fr minmax(0, 36ch);
  gap: clamp(28px, 4.5vw, 64px);
  align-items: end;
  margin-bottom: clamp(52px, 8vw, 92px);
}
.sec-head__main { max-width: 26ch; }
.sec-head__main .eyebrow { margin-bottom: 20px; }

.sec-num {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(5rem, 12vw, 9.5rem);
  line-height: 0.78;
  color: transparent;
  -webkit-text-stroke: 1px rgba(212, 175, 122, 0.32);
  user-select: none;
  transform: translateY(0.04em);
}

.sec-title { font-size: clamp(1.95rem, 4.6vw, 3.3rem); }

.sec-intro {
  color: var(--muted);
  font-size: 1.02rem;
  border-left: 1px solid var(--line-gold);
  padding-left: clamp(18px, 2vw, 26px);
  padding-bottom: 6px;
}

/* Gold four-pointed spark — the brand glyph (✦) */
.spark { color: var(--gold); font-style: normal; }

/* --------------------------------------------------------------------------
   4. BUTTONS & LINKS
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 14px 28px;
  border-radius: var(--r-sm);
  font-weight: 450;
  font-size: 0.96rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
  cursor: pointer;
  transition:
    transform 0.25s var(--ease-out),
    box-shadow 0.3s var(--ease-out),
    background-color 0.25s ease,
    border-color 0.25s ease,
    color 0.25s ease;
}
.btn:active { transform: translateY(0) scale(0.99); }

.btn .btn__arrow { transition: transform 0.3s var(--ease-out); flex: none; }
.btn:hover .btn__arrow { transform: translateX(4px); }

.btn--primary {
  background: var(--gold);
  color: #14101A;
  font-weight: 500;
}
.btn--primary:hover {
  background: var(--gold-bright);
  transform: translateY(-2px);
  box-shadow: 0 14px 36px -10px rgba(212, 175, 122, 0.45);
}

.btn--ghost {
  border: 1px solid rgba(242, 238, 229, 0.2);
  color: var(--text);
  background: transparent;
}
.btn--ghost:hover {
  border-color: var(--line-gold);
  color: var(--gold-bright);
  background: var(--gold-tint);
  transform: translateY(-2px);
}

.btn--small { min-height: 42px; padding: 9px 20px; font-size: 0.88rem; }
.btn--block { width: 100%; }

/* Inline arrow link — grows a gold underline, slides its arrow */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--gold);
  font-weight: 450;
  position: relative;
  padding-bottom: 4px;
}
.link-arrow::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease-out);
}
.link-arrow:hover::after { transform: scaleX(1); }
.link-arrow svg { transition: transform 0.3s var(--ease-out); }
.link-arrow:hover svg { transform: translateX(5px); }

/* --------------------------------------------------------------------------
   5. REVEAL / MOTION PRIMITIVES
   -------------------------------------------------------------------------- */

/* Scroll reveals — applied only when JS is present, so the site never
   hides content if scripts fail. `--d` staggers siblings. */
html.js .io {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 0.9s var(--ease-out),
    transform 0.9s var(--ease-out);
  transition-delay: var(--d, 0s);
}
html.js .io.in-view { opacity: 1; transform: none; }

/* Hairline that draws itself in */
html.js .io-line {
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.1s var(--ease-luxe);
  transition-delay: var(--d, 0s);
}
html.js .io-line.in-view { transform: scaleX(1); }

/* Hero entrance — masked line reveals, triggered once fonts are ready */
.rv-mask { display: block; overflow: hidden; }
html.js .rv-mask > span {
  display: block;
  transform: translateY(118%);
  transition: transform 1.05s var(--ease-luxe);
  transition-delay: var(--d, 0s);
}
html.js .hero.is-ready .rv-mask > span { transform: none; }

html.js .hero .rv-fade {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.95s var(--ease-out), transform 0.95s var(--ease-out);
  transition-delay: var(--d, 0s);
}
html.js .hero.is-ready .rv-fade { opacity: 1; transform: none; }

/* 3D tilt surfaces (JS sets --rx / --ry on pointer move, fine pointers only) */
.tilt {
  transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 0.2s ease-out, border-color 0.3s ease, box-shadow 0.4s ease;
  will-change: transform;
}
.tilt.tilt--reset { transition: transform 0.6s var(--ease-out), border-color 0.3s ease, box-shadow 0.4s ease; }

/* --------------------------------------------------------------------------
   6. HEADER & NAVIGATION
   -------------------------------------------------------------------------- */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: var(--z-header);
  transition: background-color 0.4s ease, border-color 0.4s ease; /* blur not animated (GPU cost) */
  border-bottom: 1px solid transparent;
}
.header.is-scrolled {
  background: rgba(10, 10, 15, 0.78);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom-color: var(--line);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 40px);
  height: 78px;
}

/* Typographic wordmark — serif italic gold "Lux" + grotesque "MLG" */
.wordmark {
  display: inline-flex;
  align-items: baseline;
  font-size: 1.42rem;
  line-height: 1;
  letter-spacing: 0.01em;
  flex: none;
}
.wordmark__lux {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 420;
  color: var(--gold);
  margin-right: 1px;
}
.wordmark__mlg { font-weight: 550; letter-spacing: 0.04em; }
.wordmark:hover .wordmark__lux { color: var(--gold-bright); }

.nav { display: flex; align-items: center; gap: clamp(20px, 2.6vw, 34px); margin-left: auto; }
.nav__link {
  position: relative;
  font-size: 0.93rem;
  font-weight: 350;
  color: var(--muted);
  padding: 6px 2px;
  transition: color 0.25s ease;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease-out);
}
.nav__link:hover { color: var(--text); }
.nav__link:hover::after,
.nav__link.is-active::after { transform: scaleX(1); }
.nav__link.is-active { color: var(--text); }

/* The CTA shown inside the nav only on mobile */
.nav__cta { display: none; }

.header__actions { display: flex; align-items: center; gap: clamp(14px, 2vw, 22px); margin-left: auto; }
.nav + .header__actions { margin-left: 0; }

/* FR / EN switch */
.lang {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: 0.84rem;
  letter-spacing: 0.08em;
}
.lang__btn {
  position: relative;
  padding: 8px 7px;
  color: var(--faint);
  font-weight: 450;
  transition: color 0.25s ease;
}
.lang__btn:hover { color: var(--text); }
.lang__btn[aria-pressed="true"] { color: var(--gold); }
.lang__btn[aria-pressed="true"]::after {
  content: "";
  position: absolute;
  left: 7px; right: 7px; bottom: 3px;
  height: 1px;
  background: var(--gold);
}
.lang__sep { color: var(--faint); opacity: 0.6; }

/* Burger (mobile) */
.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px; height: 44px;
  padding: 10px;
  margin-right: -10px;
}
.burger span {
  display: block;
  height: 1.5px;
  background: var(--text);
  transition: transform 0.35s var(--ease-out), opacity 0.25s ease;
}
html.menu-open { overflow: hidden; } /* lock scroll behind the overlay menu */
html.menu-open .burger span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
html.menu-open .burger span:nth-child(2) { opacity: 0; }
html.menu-open .burger span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* --------------------------------------------------------------------------
   7. HERO
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: 112px;
  padding-bottom: clamp(48px, 7vh, 88px);
  overflow: hidden;
}

/* Fine architectural grid, faded radially — structure without noise */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(242, 238, 229, 0.032) 1px, transparent 1px),
    linear-gradient(90deg, rgba(242, 238, 229, 0.032) 1px, transparent 1px);
  background-size: 88px 88px;
  -webkit-mask-image: radial-gradient(ellipse 95% 85% at 62% 28%, #000 18%, transparent 74%);
  mask-image: radial-gradient(ellipse 95% 85% at 62% 28%, #000 18%, transparent 74%);
}

/* Champagne glow, top right — "Lux" is light */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 46% 42% at 80% 18%, rgba(212, 175, 122, 0.13), transparent 68%),
    radial-gradient(ellipse 30% 26% at 12% 86%, rgba(212, 175, 122, 0.05), transparent 70%);
}

/* Particle field canvas (JS) — sits between glow and content */
.hero__canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero .container { position: relative; z-index: 2; width: 100%; }

.hero__eyebrow { margin-bottom: clamp(22px, 3.5vh, 34px); }

.hero__title {
  font-size: clamp(2.55rem, 7.2vw, 5.9rem);
  line-height: 1.04;
  max-width: 15ch;
  margin-bottom: clamp(22px, 3.6vh, 34px);
}

.hero__sub {
  max-width: 56ch;
  color: var(--muted);
  font-size: clamp(1.02rem, 1.4vw, 1.16rem);
  margin-bottom: clamp(30px, 4.5vh, 44px);
}

.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; }

.hero__stats {
  margin-top: clamp(56px, 9vh, 96px);
  padding-top: 26px;
  border-top: 1px solid var(--line-gold);
  max-width: 880px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(18px, 3vw, 36px);
}
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat__num {
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 2.6vw, 2.1rem);
  font-weight: 380;
  color: var(--gold);
  line-height: 1.1;
}
.stat__label { font-size: 0.86rem; color: var(--muted); max-width: 24ch; line-height: 1.45; }

/* --------------------------------------------------------------------------
   8. MARQUEE — who we work with, in one slow elegant line
   -------------------------------------------------------------------------- */
.marquee {
  display: flex;
  overflow: hidden;
  border-block: 1px solid var(--line);
  padding-block: 20px;
  user-select: none;
}
.marquee__track {
  display: flex;
  align-items: center;
  flex: none;
  min-width: 100%;
  gap: clamp(36px, 6vw, 76px);
  padding-right: clamp(36px, 6vw, 76px);
  animation: marquee 46s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-100%); } }

.marquee__item {
  display: inline-flex;
  align-items: center;
  gap: clamp(36px, 6vw, 76px);
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 320;
  font-size: clamp(1.3rem, 2.4vw, 1.75rem);
  color: var(--faint);
  white-space: nowrap;
}
.marquee__item::after {
  content: "✦";
  font-size: 0.5em;
  color: var(--gold);
  opacity: 0.55;
  font-style: normal;
  transform: translateY(-0.1em);
}

/* --------------------------------------------------------------------------
   9. SERVICES (01)
   -------------------------------------------------------------------------- */
.services__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(20px, 2.6vw, 32px);
}

.card {
  position: relative;
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(28px, 3.6vw, 46px);
  transition: transform 0.45s var(--ease-out), border-color 0.4s ease, box-shadow 0.5s ease;
}
.card:hover {
  transform: translateY(-6px);
  border-color: var(--line-gold);
  box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(212, 175, 122, 0.06);
}

.service__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 22px;
}
.service__tag {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
}
.service__icon { color: var(--gold); opacity: 0.85; flex: none; }

.service__title { font-size: clamp(1.55rem, 2.4vw, 2rem); margin-bottom: 14px; }
.service__desc { color: var(--muted); margin-bottom: 18px; }

.service__for {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.98rem;
  color: var(--text);
  opacity: 0.85;
  margin-bottom: 26px;
}

/* Editorial feature rows — thin rules, like a menu card */
.service__features li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 0;
  border-top: 1px solid var(--line);
  font-size: 0.95rem;
  color: var(--text);
}
.service__features li::before {
  content: "✦";
  font-size: 0.6rem;
  color: var(--gold);
  flex: none;
}

.services__link { margin-top: clamp(36px, 5vw, 52px); text-align: center; }

/* --------------------------------------------------------------------------
   10. WHY LUXMLG (02)
   -------------------------------------------------------------------------- */
.why__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(36px, 6vw, 84px);
  align-items: center;
}

/* Framed studio image — offset gold hairline frame, colour-graded to brand */
.why__media { position: relative; }
.why__media::before {
  content: "";
  position: absolute;
  inset: 0;
  transform: translate(-14px, 14px);
  border: 1px solid var(--line-gold);
  border-radius: var(--r-lg);
  pointer-events: none;
}
.why__media figure {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 3 / 2;
  background:
    radial-gradient(ellipse 80% 70% at 30% 70%, rgba(212, 175, 122, 0.12), transparent 65%),
    linear-gradient(160deg, var(--surface-2), var(--bg-2));
}
.why__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(0.88) contrast(1.06) brightness(0.92);
}
/* Gold-graded overlay keeps any image on-palette */
.why__media figure::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(200deg, rgba(212, 175, 122, 0.10), transparent 38%, rgba(10, 10, 15, 0.42));
  pointer-events: none;
}
.why__caption {
  margin-top: 30px;
  font-size: 0.85rem;
  color: var(--faint);
  display: flex;
  align-items: center;
  gap: 10px;
}
.why__caption::before { content: "✦"; font-size: 0.6rem; color: var(--gold); }

/* If the image fails to load, the figure's gradient stands in gracefully */
.img-fallback img { display: none; }

.why__list li {
  position: relative;
  padding: clamp(20px, 2.6vw, 28px) 0 clamp(20px, 2.6vw, 28px) clamp(24px, 3vw, 34px);
  border-top: 1px solid var(--line);
}
.why__list li:last-child { border-bottom: 1px solid var(--line); }
.why__list li::before {
  content: "✦";
  position: absolute;
  left: 0;
  top: clamp(26px, 3vw, 34px);
  font-size: 0.62rem;
  color: var(--gold);
}
.why__item-title {
  font-size: clamp(1.18rem, 1.8vw, 1.42rem);
  margin-bottom: 8px;
}
.why__item-desc { color: var(--muted); font-size: 0.97rem; max-width: 52ch; }

/* --------------------------------------------------------------------------
   11. OFFERS (03) — the gold lives here
   -------------------------------------------------------------------------- */
.offers { position: relative; overflow: hidden; }
.offers::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 52% 44% at 64% 38%, rgba(212, 175, 122, 0.06), transparent 70%);
}
.offers .container { position: relative; }

.offers__grid {
  display: grid;
  grid-template-columns: minmax(0, 10fr) minmax(0, 11.5fr);
  gap: clamp(20px, 2.6vw, 32px);
  align-items: stretch;
}

.offer { display: flex; flex-direction: column; }

.offer__kicker {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}
.offer__title { font-size: clamp(1.7rem, 2.6vw, 2.2rem); margin-bottom: 6px; }
.offer__for {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--faint);
  margin-bottom: 16px;
}
.offer__desc { color: var(--muted); margin-bottom: 24px; }

.offer__features { flex: 1; margin-bottom: 28px; }
.offer__features li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  font-size: 0.95rem;
}
.offer__features li::before {
  content: "✦";
  font-size: 0.6rem;
  color: var(--gold);
  flex: none;
  margin-top: 7px;
}

.offer__price {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.2vw, 1.85rem);
  font-weight: 400;
  margin-bottom: 6px;
}
.offer__price-note { font-size: 0.86rem; color: var(--faint); margin-bottom: 22px; }

/* Flagship "Sérénité" — gradient gold border, inner glow, badge */
.offer--flagship {
  border: 1px solid transparent;
  background:
    linear-gradient(180deg, var(--surface-2), #14111C) padding-box,
    linear-gradient(165deg, rgba(212, 175, 122, 0.75), rgba(212, 175, 122, 0.14) 36%, rgba(212, 175, 122, 0.07) 62%, rgba(212, 175, 122, 0.5)) border-box;
  box-shadow: 0 40px 110px -45px rgba(212, 175, 122, 0.28);
}
.offer--flagship:hover {
  box-shadow: 0 46px 120px -42px rgba(212, 175, 122, 0.38);
  border-color: transparent;
}
.offer--flagship .offer__kicker { color: var(--gold); }
.offer--flagship .offer__price { color: var(--gold-bright); }

.offer__badge {
  position: absolute;
  top: -15px;
  left: clamp(28px, 3.6vw, 46px);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gold);
  color: #14101A;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 7px 16px;
  border-radius: 999px;
  box-shadow: 0 8px 24px -6px rgba(212, 175, 122, 0.5);
}

.offers__note {
  margin-top: clamp(32px, 4.5vw, 44px);
  text-align: center;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.02rem;
  color: var(--muted);
}
.offers__note .spark { font-size: 0.7em; margin-right: 10px; }

/* --------------------------------------------------------------------------
   12. PROCESS (04)
   -------------------------------------------------------------------------- */
.process__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(24px, 3vw, 40px);
}

.step { position: relative; padding-top: 30px; border-top: 1px solid var(--line); }
.step::before {
  content: "";
  position: absolute;
  top: -4.5px; left: 0;
  width: 8px; height: 8px;
  background: var(--gold);
  transform: rotate(45deg);
}

.step__num {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2.6rem, 4vw, 3.4rem);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(212, 175, 122, 0.4);
  margin-bottom: 18px;
}
.step__title { font-size: 1.35rem; margin-bottom: 10px; }
.step__desc { color: var(--muted); font-size: 0.95rem; }

/* --------------------------------------------------------------------------
   13. WORK / RÉALISATIONS (05)
   -------------------------------------------------------------------------- */
.work__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 2.6vw, 30px);
}

.work-card {
  position: relative;
  display: block;
  color: inherit;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  overflow: hidden;
}
.work-card:hover { border-color: var(--line-gold); }
/* A project card that links out lifts slightly + gets a soft glow */
a.work-card { transition: transform 0.4s var(--ease-out), border-color 0.4s ease, box-shadow 0.5s ease; }
a.work-card:hover { transform: translateY(-5px); box-shadow: 0 30px 64px -34px rgba(0,0,0,.7), 0 0 0 1px rgba(212,175,122,.06); }
a.work-card:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.work-card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  /* Fallback art if the image can't load — still looks intentional */
  background:
    radial-gradient(ellipse 90% 70% at 50% 100%, rgba(212, 175, 122, 0.16), transparent 70%),
    linear-gradient(160deg, var(--surface-2), #0B0A10);
}
.work-card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(0.9) contrast(1.05);
  transition: transform 0.9s var(--ease-out);
}
.work-card:hover .work-card__media img { transform: scale(1.055); }
.work-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 10, 15, 0.08), transparent 45%, rgba(10, 10, 15, 0.55));
  pointer-events: none;
}

.work-card__tag {
  position: absolute;
  z-index: 2;
  top: 16px; left: 16px;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text);
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid rgba(242, 238, 229, 0.18);
  background: rgba(10, 10, 15, 0.66); /* dark enough for AA text over bright photos */
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.work-card__body { padding: 24px clamp(20px, 2.4vw, 28px) 28px; }
.work-card__status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}
/* Slow breathing spark = "in progress" (placeholder card) */
.work-card__status::before {
  content: "✦";
  font-size: 0.7em;
  animation: breathe 2.8s ease-in-out infinite;
}
@keyframes breathe { 0%, 100% { opacity: 0.35; } 50% { opacity: 1; } }
/* Live project: steady spark, brighter gold */
.work-card__status--live { color: var(--gold-bright); }
.work-card__status--live::before { animation: none; opacity: 1; }

.work-card__name {
  font-size: clamp(1.2rem, 1.8vw, 1.45rem);
  margin-bottom: 8px;
}

.work-card__line {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--muted);
}

/* "Voir le site →" affordance on a real project card */
.work-card__visit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  font-size: 0.92rem;
  font-weight: 450;
  color: var(--gold);
}
.work-card__visit .arr { transition: transform 0.3s var(--ease-out); }
a.work-card:hover .work-card__visit { color: var(--gold-bright); }
a.work-card:hover .work-card__visit .arr { transform: translateX(4px); }

.work__cta { margin-top: clamp(36px, 5vw, 56px); text-align: center; }
.work__cta .link-arrow { font-size: 1.05rem; }

/* --------------------------------------------------------------------------
   14. CONTACT (06)
   -------------------------------------------------------------------------- */
.contact { position: relative; overflow: hidden; }
.contact::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 56% 42% at 22% 18%, rgba(212, 175, 122, 0.07), transparent 70%);
}
.contact .container { position: relative; }

.contact__title {
  font-size: clamp(2.5rem, 6.4vw, 4.7rem);
  max-width: 14ch;
  margin: 22px 0 clamp(44px, 6vw, 64px);
}

.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(36px, 6vw, 88px);
  align-items: start;
}

.contact__sub { color: var(--muted); font-size: 1.05rem; max-width: 46ch; margin-bottom: 30px; }

.contact__points { margin-bottom: 38px; }
.contact__points li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 0;
  border-top: 1px solid var(--line);
  font-size: 0.98rem;
}
.contact__points li:last-child { border-bottom: 1px solid var(--line); }
.contact__points li::before { content: "✦"; font-size: 0.62rem; color: var(--gold); }

.contact__or { font-size: 0.9rem; color: var(--faint); margin-bottom: 8px; }
.contact__email {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  color: var(--gold);
  border-bottom: 1px solid var(--line-gold);
  padding-bottom: 3px;
  transition: color 0.25s ease, border-color 0.25s ease;
}
.contact__email:hover { color: var(--gold-bright); border-color: var(--gold-bright); }

/* The form card */
.form-card {
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(26px, 3.4vw, 42px);
}

.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.field label {
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}
.field input,
.field textarea {
  background: rgba(242, 238, 229, 0.035);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 13px 16px;
  min-height: 50px;
  color: var(--text);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}
.field textarea { resize: vertical; min-height: 132px; }
.field input:focus-visible,
.field textarea:focus-visible {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212, 175, 122, 0.14);
  background: rgba(242, 238, 229, 0.05);
}

.field.has-error input,
.field.has-error textarea { border-color: var(--error); }
.field__error {
  display: none;
  font-size: 0.84rem;
  color: var(--error);
}
.field.has-error .field__error { display: block; }

/* Honeypot — invisible to humans, tempting to bots */
.field--hp {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.form__submit { margin-top: 8px; }

/* Success state — swapped in by JS after a valid submit */
.form-success {
  display: none;
  text-align: center;
  padding: clamp(28px, 4vw, 48px) 12px;
}
.form-card.is-sent form { display: none; }
.form-card.is-sent .form-success { display: block; }

.form-success__spark {
  display: inline-block;
  font-size: 2.1rem;
  color: var(--gold);
  margin-bottom: 18px;
  animation: spin-in 1s var(--ease-out) both;
}
@keyframes spin-in {
  from { transform: rotate(-120deg) scale(0.3); opacity: 0; }
  to   { transform: none; opacity: 1; }
}
.form-success__title { font-size: 2rem; margin-bottom: 10px; }
.form-success__desc { color: var(--muted); max-width: 34ch; margin: 0 auto 26px; }

/* --------------------------------------------------------------------------
   15. FOOTER
   -------------------------------------------------------------------------- */
.footer { border-top: 1px solid var(--line); padding-top: clamp(52px, 7vw, 76px); }

.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 3fr) minmax(0, 3fr);
  gap: clamp(32px, 5vw, 64px);
  padding-bottom: clamp(44px, 6vw, 64px);
}

.footer__tagline { color: var(--muted); max-width: 38ch; margin-top: 18px; font-size: 0.97rem; }

.footer__title {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 18px;
}
.footer__links li { margin-bottom: 11px; }
.footer__links a { color: var(--muted); font-size: 0.95rem; transition: color 0.25s ease; }
.footer__links a:hover { color: var(--gold-bright); }

.footer__bottom {
  border-top: 1px solid var(--line);
  padding-block: 26px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.85rem;
  color: var(--faint);
}
.footer__made { display: inline-flex; align-items: center; gap: 10px; }
.footer__made::before { content: "✦"; font-size: 0.6rem; color: var(--gold); }

/* --------------------------------------------------------------------------
   16. BREAKPOINTS
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .sec-head { grid-template-columns: auto 1fr; }
  .sec-intro {
    grid-column: 2;
    border-left: 0;
    padding-left: 0;
    border-top: 1px solid var(--line-gold);
    padding-top: 16px;
    max-width: 52ch;
  }
  .why__grid { grid-template-columns: 1fr; gap: 56px; }
  .why__media { max-width: 620px; }
  .process__grid { grid-template-columns: 1fr 1fr; row-gap: 44px; }
  .work__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 880px) {
  html { scroll-padding-top: 80px; }
  .header__inner { height: 68px; }

  /* Full-screen overlay menu */
  .nav {
    position: fixed;
    inset: 0;
    z-index: var(--z-menu);
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 6px;
    padding: 100px var(--gutter) 60px;
    background: rgba(10, 10, 15, 0.96);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s ease, visibility 0.4s ease;
  }
  html.menu-open .nav { opacity: 1; visibility: visible; }

  .nav__link {
    font-family: var(--font-display);
    font-size: clamp(1.9rem, 7vw, 2.6rem);
    font-weight: 360;
    color: var(--text);
    padding: 10px 0;
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out), color 0.25s ease;
  }
  html.menu-open .nav__link {
    opacity: 1;
    transform: none;
  }
  /* gentle stagger */
  html.menu-open .nav__link:nth-child(1) { transition-delay: 0.06s; }
  html.menu-open .nav__link:nth-child(2) { transition-delay: 0.11s; }
  html.menu-open .nav__link:nth-child(3) { transition-delay: 0.16s; }
  html.menu-open .nav__link:nth-child(4) { transition-delay: 0.21s; }
  html.menu-open .nav__link:nth-child(5) { transition-delay: 0.26s; }
  .nav__link::after { display: none; }

  .nav__cta {
    display: inline-flex;
    margin-top: 28px;
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.5s var(--ease-out) 0.32s, transform 0.5s var(--ease-out) 0.32s;
  }
  html.menu-open .nav__cta { opacity: 1; transform: none; }

  .burger { display: flex; }
  .header__cta { display: none; }

  .services__grid { grid-template-columns: 1fr; }
  .offers__grid { grid-template-columns: 1fr; gap: 36px; }
  /* Flagship first where it sells best */
  .offer--flagship { order: -1; }
  .contact__grid { grid-template-columns: 1fr; gap: 52px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  :root { --section-pad: clamp(76px, 12vh, 110px); }

  .sec-head { grid-template-columns: 1fr; gap: 18px; }
  .sec-num { font-size: 4.6rem; }
  .sec-intro { grid-column: 1; }

  .hero { padding-top: 96px; }
  .hero__stats { grid-template-columns: 1fr; gap: 0; padding-top: 8px; }
  .stat {
    flex-direction: row;
    align-items: baseline;
    gap: 14px;
    padding: 13px 0;
    border-bottom: 1px solid var(--line);
  }
  .stat:last-child { border-bottom: 0; }
  .stat__num { min-width: 64px; }
  .stat__label { max-width: none; }

  .process__grid { grid-template-columns: 1fr; }
  .work__grid { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; gap: 0; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 420px) {
  .hero__ctas .btn { width: 100%; }
  .lang__btn { padding: 8px 5px; }
}

/* --------------------------------------------------------------------------
   17. REDUCED MOTION & PRINT
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  html.js .io,
  html.js .io-line,
  html.js .hero .rv-fade,
  html.js .rv-mask > span {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .marquee__track { animation: none; flex-wrap: wrap; min-width: 0; }
  .marquee { flex-wrap: wrap; justify-content: center; }
  .work-card__status::before { animation: none; }
  .form-success__spark { animation: none; }
  .tilt { transform: none !important; }
  .cursor-glow { display: none; }

  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media print {
  body::after, .cursor-glow, .hero__canvas, .burger { display: none; }
  .header { position: static; }
}

/* --------------------------------------------------------------------------
   18. MULTI-PAGE SYSTEM — inner-page heroes, CTA band, teasers, active nav
   -------------------------------------------------------------------------- */

/* Current page in the navigation (set statically via aria-current="page") */
.nav__link[aria-current="page"] { color: var(--text); }
.nav__link[aria-current="page"]::after { transform: scaleX(1); }

/* Hero of inner pages — same architectural grid + glow language as home */
.page-hero {
  position: relative;
  padding: clamp(150px, 22vh, 208px) 0 clamp(30px, 5vh, 48px);
  overflow: hidden;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(242, 238, 229, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(242, 238, 229, 0.028) 1px, transparent 1px);
  background-size: 88px 88px;
  -webkit-mask-image: radial-gradient(ellipse 90% 100% at 55% 0%, #000 12%, transparent 72%);
  mask-image: radial-gradient(ellipse 90% 100% at 55% 0%, #000 12%, transparent 72%);
}
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 42% 52% at 82% 0%, rgba(212, 175, 122, 0.11), transparent 68%);
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero .eyebrow { margin-bottom: 18px; }
.page-hero__title {
  font-size: clamp(2.3rem, 5.4vw, 4.3rem);
  max-width: 20ch;
  margin-bottom: 18px;
}
.page-hero__intro {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 58ch;
}
.page-hero__rule {
  height: 1px;
  background: var(--line-gold);
  margin-top: clamp(34px, 5vh, 54px);
}

/* First content section after a page hero sits closer to it */
.section--snug { padding-top: clamp(44px, 7vh, 76px); }

/* Page hero that carries the whole page content (e.g. contact) keeps a
   full-size bottom padding before the footer */
.page-hero--roomy { padding-bottom: var(--section-pad); }

/* Section heading without the ghost number (inner pages) */
.sec-head--plain { grid-template-columns: 1fr minmax(0, 36ch); }

/* Full-width closing call-to-action band */
.cta-band {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--line);
  padding: clamp(90px, 13vh, 150px) 0;
  text-align: center;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 46% 70% at 50% 100%, rgba(212, 175, 122, 0.08), transparent 70%);
}
.cta-band .container { position: relative; }
.cta-band__title { font-size: clamp(2.3rem, 5.4vw, 4.1rem); margin-bottom: 16px; }
.cta-band__line {
  color: var(--muted);
  max-width: 52ch;
  margin: 0 auto clamp(28px, 4vh, 38px);
}

/* Homepage teaser → demos page: slim band, gold glow, arrow CTA */
.lab-teaser { position: relative; overflow: hidden; border-top: 1px solid var(--line); }
.lab-teaser::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 44% 80% at 78% 50%, rgba(212, 175, 122, 0.08), transparent 70%);
}
.lab-teaser .container {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: clamp(22px, 4vw, 48px);
  padding-block: clamp(52px, 8vw, 84px);
}
.lab-teaser__copy { max-width: 56ch; }
.lab-teaser__eyebrow { margin-bottom: 16px; }
.lab-teaser__title { font-size: clamp(1.7rem, 3.4vw, 2.6rem); }
.lab-teaser__line { color: var(--muted); margin-top: 12px; max-width: 48ch; }
.lab-teaser__cta { flex: none; }

@media (max-width: 640px) {
  .lab-teaser .container { flex-direction: column; align-items: flex-start; }
  .lab-teaser__cta .btn { width: 100%; }
}

/* Compact offer teasers on the homepage (no feature lists) */
.offer--mini .offer__price { margin-bottom: 4px; }
.offer--mini .offer__price-note { margin-bottom: 0; }
.offers__cta { margin-top: clamp(32px, 4.5vw, 48px); text-align: center; }
.offers__cta .link-arrow { font-size: 1.05rem; }

@media (max-width: 640px) {
  .page-hero { padding-top: 124px; }
}
