/* Naïa Digital — feuille de style
   Concept : acier bleui sous lumière de studio. Fond nuit, reflets chrome,
   un seul accent cobalt. Grille éditoriale 12 colonnes, sections numérotées
   uniquement là où l'ordre compte (la méthode). */

@font-face { font-family: "Inter Tight"; src: url("fonts/inter-tight.woff2") format("woff2"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("fonts/instrument-serif.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("fonts/instrument-serif-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("fonts/jetbrains-mono.woff2") format("woff2"); font-weight: 400 500; font-display: swap; }

:root {
  color-scheme: dark;
  /* Couleurs */
  --ink: #05070c;          /* fond nuit */
  --night: #0a0f1c;        /* surfaces */
  --steel-900: #111a2c;    /* cartes */
  --line: rgba(196, 210, 235, .12);
  --line-strong: rgba(196, 210, 235, .24);
  --fg: #e9edf4;           /* texte principal : 17.6:1 sur --ink */
  --muted: #9ba7bb;        /* texte secondaire : 8.0:1 sur --ink */
  --steel: #6f7d95;        /* décor seulement */
  --chrome-hi: #f5f7fb;
  --chrome-mid: #a9b4c6;
  --chrome-lo: #5b6880;
  --cobalt: #3d6ff2;       /* accent unique */
  --ice: #a8c6ff;          /* accent clair : 11:1 sur --ink */
  --chrome: linear-gradient(100deg, #7f8ba1 0%, #f5f7fb 18%, #a9b4c6 36%, #e8edf5 54%, #66738b 74%, #dde4ee 100%);

  /* Typo */
  --f-sans: "Inter Tight", "Helvetica Neue", Arial, system-ui, sans-serif;
  --f-serif: "Instrument Serif", "Times New Roman", Georgia, serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --t-xs: .75rem;
  --t-sm: .875rem;
  --t-md: 1.0625rem;
  --t-lg: clamp(1.25rem, 1.05rem + .8vw, 1.6rem);
  --t-xl: clamp(2rem, 1.3rem + 3vw, 3.75rem);
  --t-xxl: clamp(2.5rem, 1.2rem + 6.6vw, 8rem);

  /* Espace */
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1320px;
  --section: clamp(96px, 14vw, 200px);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-in-out: cubic-bezier(.76, 0, .24, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
html:not([data-motion="off"]) { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--fg);
  font-family: var(--f-sans);
  font-size: var(--t-md);
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; letter-spacing: -.035em; line-height: 1; text-wrap: balance; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--cobalt); color: #fff; }

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

.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 16px; top: -100px; z-index: 100; background: var(--fg); color: var(--ink); padding: 10px 16px; border-radius: 8px; font-weight: 600; }
.skip:focus { top: 16px; }

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

/* Grain photographique, statique */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: .06; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 1 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* Repères de grille en fond */
.gridlines { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.gridlines .wrap { height: 100%; display: grid; grid-template-columns: repeat(4, 1fr); }
.gridlines span { border-left: 1px solid rgba(196, 210, 235, .035); }
.gridlines span:last-child { border-right: 1px solid rgba(196, 210, 235, .035); }
@media (min-width: 900px) { .gridlines .wrap { grid-template-columns: repeat(6, 1fr); } }

main, footer { position: relative; z-index: 1; }

/* Texte chrome */
.chrome {
  background: var(--chrome);
  background-size: 220% 100%;
  background-position: var(--sheen, 0%) 50%;
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.serif { font-family: var(--f-serif); font-weight: 400; letter-spacing: -.02em; }
.serif em, em.serif { font-style: italic; }

.label {
  font-family: var(--f-mono); font-size: var(--t-xs); font-weight: 500;
  letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
  display: inline-flex; align-items: center; gap: .6em;
}
.label::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--cobalt); box-shadow: 0 0 12px var(--cobalt); }
.label--plain::before { display: none; }

/* ---------- Barre de progression ---------- */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 60; transform-origin: 0 50%; transform: scaleX(var(--p, 0)); background: linear-gradient(90deg, var(--cobalt), var(--ice)); }

/* ---------- En-tête ---------- */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  padding-top: env(safe-area-inset-top, 0px);
  transition: transform .5s var(--ease), background-color .4s, border-color .4s;
  border-bottom: 1px solid transparent;
}
.header.is-scrolled { background: rgba(5, 7, 12, .72); -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%); border-bottom-color: var(--line); }
.header.is-hidden { transform: translateY(-100%); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }

.logo { display: inline-flex; align-items: baseline; gap: .55em; font-weight: 600; font-size: 1.5rem; letter-spacing: -.05em; line-height: 1; }
.logo__word { position: relative; display: inline-flex; }
.logo__i { position: relative; display: inline-block; }
.logo__dots { position: absolute; left: 50%; top: -.02em; transform: translateX(-50%); display: flex; gap: .09em; }
.logo__dots i { width: .15em; height: .15em; border-radius: 50%; display: block; }
.logo__dots i:first-child { background: linear-gradient(135deg, #fff, #8d99ae); }
.logo__dots i:last-child { background: var(--cobalt); box-shadow: 0 0 8px var(--cobalt); }
.logo__sub { font-family: var(--f-mono); font-size: .62rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

.nav { display: none; }
.nav ul { display: flex; gap: 4px; }
.nav a { position: relative; display: block; padding: 8px 14px; font-size: var(--t-sm); color: var(--muted); border-radius: 999px; transition: color .3s; }
.nav a:hover, .nav a:focus-visible { color: var(--fg); }
.nav a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 1px; background: var(--fg); transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease); }
.nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.header .header__cta { display: none; }

.burger { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--line-strong); border-radius: 50%; }
.burger span { position: relative; width: 16px; height: 1.5px; background: var(--fg); transition: background .3s; }
.burger span::before, .burger span::after { content: ""; position: absolute; left: 0; width: 100%; height: 100%; background: var(--fg); transition: transform .4s var(--ease); }
.burger span::before { transform: translateY(-5px); }
.burger span::after { transform: translateY(5px); }
.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { transform: rotate(45deg); }
.burger[aria-expanded="true"] span::after { transform: rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 45; background: var(--ink);
  padding: calc(96px + env(safe-area-inset-top, 0px)) var(--gutter) 32px;
  display: flex; flex-direction: column; justify-content: space-between;
  clip-path: inset(0 0 100% 0); visibility: hidden;
  transition: clip-path .7s var(--ease-in-out), visibility 0s .7s;
}
.menu.is-open { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path .7s var(--ease-in-out), visibility 0s; }
.menu ul { display: grid; gap: 4px; }
.menu li { overflow: hidden; }
.menu a { display: block; font-size: clamp(2.4rem, 11vw, 4rem); font-weight: 500; letter-spacing: -.045em; line-height: 1.15; transform: translateY(105%); transition: transform .7s var(--ease); }
.menu.is-open a { transform: none; transition-delay: calc(.15s + var(--i) * .06s); }
.menu__foot { color: var(--muted); font-size: var(--t-sm); display: grid; gap: 4px; }

@media (min-width: 960px) {
  .nav { display: block; }
  .header .header__cta { display: inline-flex; }
  .burger, .menu { display: none; }
}

/* ---------- Boutons ---------- */
.btn {
  --h: 54px;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  height: var(--h); padding: 0 26px; border-radius: 999px;
  font-size: var(--t-sm); font-weight: 600; letter-spacing: -.005em; white-space: nowrap;
  overflow: hidden; isolation: isolate;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
  will-change: transform;
}
.btn--chrome { color: var(--ink); background: linear-gradient(180deg, #f6f8fc 0%, #c9d2e0 48%, #9aa6ba 52%, #dfe5ee 100%); box-shadow: inset 0 1px 0 rgba(255,255,255,.9), inset 0 -1px 0 rgba(0,0,0,.25), 0 10px 30px -10px rgba(168,198,255,.35); }
.btn--chrome::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,.95) 50%, transparent 70%); transform: translateX(-120%); transition: transform .9s var(--ease); }
.btn--chrome:hover::before, .btn--chrome:focus-visible::before { transform: translateX(120%); }
.btn--ghost { color: var(--fg); border: 1px solid var(--line-strong); background: rgba(10, 15, 28, .35); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.btn--ghost::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--fg); transform: translateY(101%); border-radius: inherit; transition: transform .55s var(--ease); }
.btn--ghost:hover, .btn--ghost:focus-visible { color: var(--ink); }
.btn--ghost:hover::before, .btn--ghost:focus-visible::before { transform: none; }
.btn--ghost { transition: transform .5s var(--ease), color .4s; }
.btn--sm { --h: 42px; padding: 0 18px; }
.btn__arrow { width: 14px; height: 14px; transition: transform .5s var(--ease); }
.btn:hover .btn__arrow { transform: translate(3px, -3px); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: min(100svh, 980px); display: flex; flex-direction: column; justify-content: flex-end; padding-top: 120px; padding-bottom: clamp(28px, 4vw, 48px); overflow: hidden; isolation: isolate; }
.hero__canvas { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; background:
  radial-gradient(120% 80% at 75% 20%, #1d2b4a 0%, transparent 60%),
  radial-gradient(80% 60% at 20% 80%, #0f1a33 0%, transparent 70%), var(--ink); }
.hero__shade { position: absolute; inset: 0; z-index: -1; pointer-events: none; background:
  linear-gradient(90deg, rgba(5,7,12,.82) 0%, rgba(5,7,12,.45) 45%, rgba(5,7,12,0) 75%),
  linear-gradient(0deg, var(--ink) 0%, rgba(5,7,12,0) 38%),
  linear-gradient(180deg, rgba(5,7,12,.7) 0%, rgba(5,7,12,0) 22%); }
.hero__top { display: flex; justify-content: space-between; gap: 24px; margin-bottom: clamp(28px, 6vh, 64px); }
.hero__meta { font-family: var(--f-mono); font-size: var(--t-xs); color: var(--muted); letter-spacing: .06em; text-transform: uppercase; display: none; text-align: right; line-height: 1.8; font-variant-numeric: tabular-nums; }
@media (min-width: 720px) { .hero__meta { display: block; } }
.hero h1 { font-size: var(--t-xxl); font-weight: 500; letter-spacing: -.055em; line-height: .94; max-width: 13ch; }
.hero h1 .serif { font-size: 1.08em; letter-spacing: -.03em; padding-right: .06em; }
.line { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.line > span { display: inline-block; }
.hero__bottom { margin-top: clamp(32px, 5vh, 56px); display: grid; gap: 32px; align-items: end; }
.hero__lead { max-width: 46ch; color: #c9d1de; font-size: var(--t-lg); line-height: 1.45; letter-spacing: -.01em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__facts { margin-top: clamp(40px, 7vh, 80px); padding-top: 20px; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px 24px; }
.fact { display: grid; gap: 2px; }
.fact b { font-weight: 500; font-size: var(--t-md); letter-spacing: -.01em; }
.fact span { font-family: var(--f-mono); font-size: var(--t-xs); color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
@media (min-width: 720px) { .hero__facts { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 960px) { .hero__bottom { grid-template-columns: 1fr auto; } }

/* Animation d'entrée du hero (pilotée par la classe .is-ready sur <html>) */
.js .hero [data-in] { opacity: 0; transform: translateY(24px); }
.js .hero .line > span { transform: translateY(110%); opacity: 1; }
.is-ready .hero [data-in] { opacity: 1; transform: none; transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); transition-delay: calc(.55s + var(--d, 0) * .08s); }
.is-ready .hero .line > span { transform: none; transition: transform 1.25s var(--ease); transition-delay: calc(.1s + var(--i) * .09s); }

.scrollcue { display: inline-flex; align-items: center; gap: 10px; font-family: var(--f-mono); font-size: var(--t-xs); color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }
.scrollcue i { position: relative; width: 1px; height: 36px; background: var(--line-strong); overflow: hidden; }
.scrollcue i::after { content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--ice); animation: cue 2.2s var(--ease-in-out) infinite; }
@keyframes cue { to { top: 110%; } }

/* ---------- Bandeau défilant ---------- */
.marquee { position: relative; border-block: 1px solid var(--line); padding-block: 22px; overflow: hidden; background: var(--night); }
.marquee__track { display: flex; width: max-content; animation: marquee 48s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__group { display: flex; align-items: center; gap: 40px; padding-right: 40px; font-size: clamp(1.4rem, 1rem + 1.6vw, 2.25rem); letter-spacing: -.03em; color: var(--chrome-mid); white-space: nowrap; }
.marquee__group .serif { color: var(--fg); font-style: italic; }
.marquee__group svg { width: 18px; height: 18px; flex: none; color: var(--cobalt); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { position: relative; padding-block: var(--section); }
.section__head { display: grid; gap: 24px; margin-bottom: clamp(48px, 7vw, 96px); }
.section__head h2 { font-size: var(--t-xl); max-width: 18ch; }
.section__head p { color: var(--muted); max-width: 52ch; }
@media (min-width: 960px) { .section__head { grid-template-columns: 1fr 1fr; align-items: end; } .section__head .label { grid-column: 1 / -1; } .section__head p { justify-self: end; } }

/* Manifeste mot à mot */
.manifesto { padding-block: var(--section); }
.manifesto__text { font-size: clamp(1.75rem, 1rem + 3.4vw, 4.25rem); line-height: 1.12; letter-spacing: -.04em; font-weight: 450; max-width: 22ch; margin-top: 32px; }
.manifesto__text .w { color: rgba(233, 237, 244, var(--o, 1)); transition: color .2s linear; }
.manifesto__text .serif { font-style: italic; letter-spacing: -.02em; }
.manifesto__sign { margin-top: 48px; display: flex; align-items: center; gap: 16px; color: var(--muted); font-size: var(--t-sm); }
.manifesto__sign span:first-child { width: 48px; height: 1px; background: var(--line-strong); }

/* ---------- Services ---------- */
.services { display: grid; gap: 16px; }
@media (min-width: 720px) { .services { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .services { grid-template-columns: 1.25fr 1fr 1fr; } .card--main { grid-row: span 2; } }
.card {
  --mx: 50%; --my: 50%; --rx: 0deg; --ry: 0deg;
  position: relative; border-radius: 22px; padding: clamp(24px, 3vw, 36px);
  background: linear-gradient(180deg, rgba(17, 26, 44, .9), rgba(10, 15, 28, .9));
  border: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 20px; min-width: 0;
  transform: perspective(1100px) rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform .6s var(--ease), border-color .4s;
  isolation: isolate; overflow: hidden;
}
.card::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .5s; background: radial-gradient(420px circle at var(--mx) var(--my), rgba(61, 111, 242, .18), transparent 45%); }
.card::after { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; opacity: 0; transition: opacity .5s;
  background: radial-gradient(300px circle at var(--mx) var(--my), rgba(220, 230, 255, .7), transparent 50%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.card:hover::before, .card:hover::after { opacity: 1; }
.card__icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; border: 1px solid var(--line-strong); background: linear-gradient(145deg, rgba(255,255,255,.08), rgba(255,255,255,0)); color: var(--ice); }
.card__icon svg { width: 24px; height: 24px; }
.card h3 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); letter-spacing: -.035em; }
.card p { color: var(--muted); }
.card ul { display: grid; gap: 10px; margin-top: auto; padding-top: 8px; }
.card li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; font-size: var(--t-sm); color: #cfd6e2; }
.card li svg { width: 16px; height: 16px; margin-top: 4px; color: var(--ice); }
.card__price { font-family: var(--f-mono); font-size: var(--t-xs); text-transform: uppercase; letter-spacing: .08em; color: var(--ice); }
.card--main { background: radial-gradient(120% 90% at 100% 0%, rgba(61, 111, 242, .22), transparent 55%), linear-gradient(180deg, #121c31, #0a0f1c); }
.card--main h3 { font-size: clamp(2rem, 1.4rem + 2vw, 3rem); }
.card__visual { position: relative; height: 180px; margin-block: 4px; border-radius: 14px; border: 1px solid var(--line); overflow: hidden; background: #070b15; }
.card__visual canvas { width: 100%; height: 100%; }

/* ---------- Méthode (défilement horizontal) ---------- */
.method { position: relative; }
.method__intro { padding-top: var(--section); }
.steps { display: grid; gap: 16px; padding-bottom: var(--section); }
.step { position: relative; border-top: 1px solid var(--line-strong); padding-top: 24px; display: grid; gap: 14px; min-width: 0; }
.step__num { font-family: var(--f-serif); font-style: italic; font-size: clamp(4.5rem, 3rem + 6vw, 9rem); line-height: .8; letter-spacing: -.04em; color: transparent; -webkit-text-stroke: 1px var(--chrome-mid); }
.step h3 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.25rem); }
.step p { color: var(--muted); max-width: 40ch; }
.step__tag { font-family: var(--f-mono); font-size: var(--t-xs); text-transform: uppercase; letter-spacing: .08em; color: var(--ice); }

@media (min-width: 960px) {
  .has-hscroll .method { height: var(--method-h, 400vh); }
  .has-hscroll .method__sticky { position: sticky; top: 0; height: 100vh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; }
  .has-hscroll .method__intro { padding-top: 0; margin-bottom: 56px; }
  .has-hscroll .steps { display: flex; gap: 0; padding-bottom: 0; padding-left: var(--gutter); width: max-content; will-change: transform; transform: translate3d(var(--tx, 0px), 0, 0); }
  .has-hscroll .step { width: min(34vw, 460px); padding: 28px 48px 0 0; margin-right: 48px; }
  .has-hscroll .step__num { -webkit-text-stroke: 1px var(--chrome-lo); transition: color .6s, -webkit-text-stroke-color .6s; }
  .has-hscroll .step.is-active .step__num { color: var(--chrome-hi); -webkit-text-stroke-color: transparent; }
  .method__bar { margin-top: 56px; height: 1px; background: var(--line); position: relative; }
  .method__bar i { position: absolute; inset: 0; transform-origin: 0 50%; transform: scaleX(var(--mp, 0)); background: var(--ice); }
}
.method__bar { display: none; }
@media (min-width: 960px) { .has-hscroll .method__bar { display: block; } }
@media (min-width: 720px) and (max-width: 959px) { .steps { grid-template-columns: repeat(2, 1fr); gap: 48px 24px; } }

/* ---------- Réalisations ---------- */
.work { display: grid; gap: clamp(24px, 3vw, 40px); }
@media (min-width: 860px) { .work { grid-template-columns: repeat(2, 1fr); } .work .proj:nth-child(even) { margin-top: 120px; } }
.proj { display: grid; gap: 16px; min-width: 0; }
.proj__frame {
  position: relative; border-radius: 16px; overflow: hidden; border: 1px solid var(--line-strong);
  background: #0c1220; box-shadow: 0 40px 80px -40px rgba(0,0,0,.8), 0 0 0 1px rgba(255,255,255,.02) inset;
  transition: box-shadow .6s var(--ease);
}
.proj { translate: 0 var(--py, 0px); }
.proj__bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: #121a2a; border-bottom: 1px solid var(--line); }
.proj__bar i { width: 9px; height: 9px; border-radius: 50%; background: #2a3448; }
.proj__bar span { margin-left: 10px; flex: 1; min-width: 0; font-family: var(--f-mono); font-size: 11px; color: var(--muted); background: #0b111d; border-radius: 6px; padding: 4px 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.proj__view { position: relative; aspect-ratio: 4 / 3; overflow: hidden; max-width: 100%; }
.proj__site { position: absolute; inset: 0 0 auto 0; transition: transform 2.6s var(--ease-in-out); }
.proj:hover .proj__site, .proj:focus-within .proj__site { transform: translateY(calc(-1 * var(--scroll, 40%))); }
.proj__info { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.proj__info h3 { font-size: clamp(1.4rem, 1.1rem + 1vw, 2rem); }
.proj__info p { color: var(--muted); font-size: var(--t-sm); }
.tag { font-family: var(--f-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--ice); border: 1px solid rgba(168, 198, 255, .35); padding: 5px 10px; border-radius: 999px; white-space: nowrap; }
.work__note { margin-top: 48px; color: var(--muted); font-size: var(--t-sm); max-width: 60ch; }

/* Mini-sites (maquettes en CSS) */
.ms { font-family: var(--f-sans); color: #fff; }
.ms__nav { display: flex; justify-content: space-between; align-items: center; padding: 4.5% 6%; font-size: clamp(8px, 1.1vw, 12px); }
.ms__nav b { font-size: 1.25em; letter-spacing: -.02em; }
.ms__nav span { display: flex; gap: 1.4em; opacity: .75; }
.ms__hero { padding: 6% 6% 8%; }
.ms__hero h4 { font-size: clamp(20px, 3.4vw, 42px); line-height: .98; letter-spacing: -.04em; font-weight: 600; max-width: 11ch; }
.ms__hero p { font-size: clamp(9px, 1.05vw, 12px); margin-top: 1em; opacity: .8; max-width: 34ch; line-height: 1.5; }
.ms__btn { display: inline-block; margin-top: 1.4em; padding: .8em 1.4em; border-radius: 999px; font-size: clamp(8px, 1vw, 11px); font-weight: 600; }
.ms__band { padding: 6%; display: grid; grid-template-columns: repeat(3, 1fr); gap: 3%; }
.ms__tile { aspect-ratio: 3/4; border-radius: 8px; position: relative; overflow: hidden; }
.ms__tile span { position: absolute; left: 8%; bottom: 8%; font-size: clamp(8px, .95vw, 11px); font-weight: 600; }
.ms__rows { padding: 2% 6% 8%; display: grid; gap: .6em; font-size: clamp(9px, 1vw, 12px); }
.ms__rows div { display: flex; justify-content: space-between; padding: .9em 0; border-bottom: 1px solid currentColor; border-color: rgba(255,255,255,.15); }
.ms__foot { padding: 8% 6%; font-size: clamp(9px, 1vw, 12px); opacity: .85; }

/* Thème : poissonnerie (bleu marine, écailles argent) */
.ms--fish { background: #0d2a40; }
.ms--fish .ms__hero { background: radial-gradient(120% 120% at 90% 10%, #2f6d8f 0%, transparent 55%), repeating-radial-gradient(circle at 100% 0, rgba(255,255,255,.05) 0 2px, transparent 2px 14px); }
.ms--fish h4 { font-family: var(--f-serif); font-weight: 400; font-style: italic; font-size: clamp(24px, 4vw, 50px); }
.ms--fish .ms__btn { background: #e9f1f6; color: #0d2a40; }
.ms--fish .ms__tile:nth-child(1) { background: linear-gradient(160deg, #8fb3c6, #2d5872); }
.ms--fish .ms__tile:nth-child(2) { background: linear-gradient(160deg, #c9d6dd, #5f7d8e); }
.ms--fish .ms__tile:nth-child(3) { background: linear-gradient(160deg, #6f97ab, #183d55); }
/* Primeur (vert feuille, papier kraft) */
.ms--veg { background: #1f3a24; }
.ms--veg .ms__hero { background: linear-gradient(135deg, #2f5a33 0%, #1f3a24 70%); }
.ms--veg .ms__btn { background: #e3b34a; color: #1f2a15; }
.ms--veg .ms__tile:nth-child(1) { background: radial-gradient(circle at 50% 40%, #d9502f 0 28%, #a8361f 29% 34%, #c9a76b 35%); }
.ms--veg .ms__tile:nth-child(2) { background: radial-gradient(circle at 50% 40%, #e8b23a 0 28%, #b5821c 29% 34%, #b89a62 35%); }
.ms--veg .ms__tile:nth-child(3) { background: radial-gradient(circle at 50% 40%, #6c9a3a 0 28%, #4b7326 29% 34%, #a98d5a 35%); }
/* Institut de beauté (prune profond, nude) */
.ms--beauty { background: #2a1620; }
.ms--beauty .ms__hero { background: radial-gradient(90% 90% at 80% 30%, #6b3a4c 0%, transparent 60%); text-align: center; }
.ms--beauty .ms__hero h4 { font-family: var(--f-serif); font-weight: 400; margin-inline: auto; font-size: clamp(24px, 4vw, 50px); }
.ms--beauty .ms__hero p { margin-inline: auto; }
.ms--beauty .ms__btn { background: #e8cfc2; color: #2a1620; }
.ms--beauty .ms__rows div { border-color: rgba(232, 207, 194, .2); }
/* Location de box (graphite, orange sécurité) */
.ms--box { background: #1b1d21; }
.ms--box .ms__hero { background: repeating-linear-gradient(90deg, rgba(255,255,255,.03) 0 1px, transparent 1px 28px), linear-gradient(180deg, #24272d, #1b1d21); }
.ms--box h4 { text-transform: uppercase; letter-spacing: -.02em; font-weight: 700; }
.ms--box .ms__btn { background: #f07c1e; color: #1b1d21; border-radius: 4px; }
.ms--box .ms__tile { border-radius: 2px; background: repeating-linear-gradient(0deg, #3a3e46 0 3px, #2c2f36 3px 9px); }
.ms--box .ms__tile span { color: #f07c1e; }

/* ---------- Engagements ---------- */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line); }
@media (min-width: 960px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { padding: 32px 20px 32px 0; border-bottom: 1px solid var(--line); display: grid; gap: 12px; align-content: start; min-width: 0; }
.stat:nth-child(odd) { padding-right: 16px; }
@media (min-width: 960px) { .stat + .stat { padding-left: 24px; border-left: 1px solid var(--line); } }
@media (max-width: 959px) { .stat:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--line); } }
.stat__n { font-size: clamp(3rem, 2rem + 4vw, 6rem); font-weight: 500; letter-spacing: -.06em; line-height: .9; font-variant-numeric: tabular-nums; }
.stat__n small { font-size: .38em; letter-spacing: -.02em; margin-left: .1em; }
.stat p { color: var(--muted); font-size: var(--t-sm); max-width: 26ch; }

/* ---------- Tarifs ---------- */
.prices { display: grid; gap: 16px; align-items: stretch; }
@media (min-width: 960px) { .prices { grid-template-columns: 1.15fr 1fr 1fr; } }
.price { position: relative; border-radius: 22px; padding: clamp(24px, 3vw, 40px); border: 1px solid var(--line); background: var(--night); display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.price--hl { background: linear-gradient(180deg, #131e35 0%, #0a0f1c 100%); border-color: transparent; }
.price--hl::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; background: var(--chrome); background-size: 200% 100%; animation: sheen 6s linear infinite;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
@keyframes sheen { to { background-position: 200% 0; } }
.price__name { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.price__name h3 { font-size: var(--t-lg); letter-spacing: -.02em; font-weight: 600; }
.price__amount { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.price__amount b { font-size: clamp(3rem, 2.2rem + 3vw, 4.75rem); font-weight: 500; letter-spacing: -.06em; line-height: 1; font-variant-numeric: tabular-nums; }
.price__amount span { color: var(--muted); font-size: var(--t-sm); }
.price p { color: var(--muted); font-size: var(--t-sm); }
.price ul { display: grid; gap: 12px; padding-top: 20px; border-top: 1px solid var(--line); }
.price li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; font-size: var(--t-sm); color: #cfd6e2; }
.price li svg { width: 16px; height: 16px; margin-top: 4px; color: var(--ice); }
.price .btn { margin-top: auto; align-self: flex-start; }
.prices__note { margin-top: 24px; font-family: var(--f-mono); font-size: var(--t-xs); color: var(--muted); letter-spacing: .04em; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 0; border-top: 1px solid var(--line); }
@media (min-width: 960px) { .faq-layout { display: grid; grid-template-columns: 1fr 1.6fr; gap: 64px; align-items: start; } .faq-layout .section__head { grid-template-columns: 1fr; position: sticky; top: 120px; } .faq-layout .section__head p { justify-self: start; } }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 26px 0; font-size: var(--t-lg); letter-spacing: -.02em; font-weight: 500; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { position: relative; width: 36px; height: 36px; flex: none; border-radius: 50%; border: 1px solid var(--line-strong); transition: transform .5s var(--ease), background .3s; }
.faq summary i::before, .faq summary i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; margin: -.75px 0 0 -6px; background: var(--fg); transition: transform .5s var(--ease); }
.faq summary i::after { transform: rotate(90deg); }
.faq details[open] summary i { transform: rotate(180deg); background: rgba(168, 198, 255, .08); }
.faq details[open] summary i::after { transform: rotate(0deg); }
.faq summary:hover { color: var(--ice); }
.faq__a { padding: 0 56px 28px 0; color: var(--muted); max-width: 62ch; }
.faq details[open] .faq__a { animation: fadeUp .6s var(--ease); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(-6px); } }

/* ---------- Contact ---------- */
.contact { position: relative; overflow: hidden; }
.contact__glow { position: absolute; inset: auto -20% -60% -20%; height: 120%; z-index: -1; background: radial-gradient(50% 50% at 50% 50%, rgba(61, 111, 242, .22), transparent 70%); pointer-events: none; }
.contact__grid { display: grid; gap: 56px; }
@media (min-width: 960px) { .contact__grid { grid-template-columns: 1.1fr 1fr; gap: 80px; } }
.contact h2 { font-size: var(--t-xxl); letter-spacing: -.055em; line-height: .95; }
.contact__direct { margin-top: 48px; display: grid; gap: 20px; }
.contact__direct a, .contact__direct div { display: grid; gap: 2px; }
.contact__direct span { font-family: var(--f-mono); font-size: var(--t-xs); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.contact__direct b { font-size: var(--t-lg); font-weight: 500; letter-spacing: -.02em; word-break: break-word; }
.contact__direct a b { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .5s var(--ease); }
.contact__direct a:hover b { background-size: 100% 1px; }

.form { display: grid; gap: 20px; padding: clamp(24px, 3vw, 40px); border-radius: 22px; border: 1px solid var(--line); background: rgba(10, 15, 28, .75); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); min-width: 0; }
.form__row { display: grid; gap: 20px; }
@media (min-width: 600px) { .form__row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 8px; min-width: 0; }
.field label { font-size: var(--t-sm); color: #cfd6e2; }
.field label small { color: var(--muted); }
.field input, .field textarea, .field select {
  width: 100%; font: inherit; font-size: 1rem; color: var(--fg);
  background: #070b15; border: 1px solid var(--line-strong); border-radius: 12px; padding: 14px 16px;
  transition: border-color .3s, box-shadow .3s;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--ice); box-shadow: 0 0 0 4px rgba(168, 198, 255, .15); }
.field input:user-invalid, .field textarea:user-invalid { border-color: #ff8f8f; }
.form__legal { font-size: var(--t-xs); color: var(--muted); line-height: 1.6; }
.form__legal a { text-decoration: underline; text-underline-offset: 2px; }
.form__status { font-size: var(--t-sm); min-height: 1.5em; }
.form__status.is-ok { color: #9be7b5; }
.form__status.is-err { color: #ffb0b0; }
.hp { position: absolute !important; left: -9999px !important; }

/* ---------- Pied de page ---------- */
.footer { padding-top: 96px; padding-bottom: calc(28px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); overflow: hidden; }
.footer__top { display: grid; gap: 40px; }
@media (min-width: 860px) { .footer__top { grid-template-columns: 2fr 1fr 1fr; } }
.footer__top p { color: var(--muted); max-width: 40ch; font-size: var(--t-sm); }
.footer h4 { font-family: var(--f-mono); font-size: var(--t-xs); font-weight: 500; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 16px; }
.footer ul { display: grid; gap: 8px; font-size: var(--t-sm); }
.footer ul a:hover { color: var(--ice); }
.footer__word .logo__dots { top: .1em; gap: .07em; }
.footer__word .logo__dots i { width: .12em; height: .12em; }
.footer__word .logo__dots i:first-child { background: var(--chrome-hi); }
.footer__word { margin-top: 80px; font-size: clamp(5rem, 26vw, 24rem); font-weight: 600; letter-spacing: -.075em; line-height: .78; white-space: nowrap; user-select: none; text-align: center; transform: translateX(-.03em); }
.footer__legal { margin-top: 40px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; font-size: var(--t-xs); color: var(--muted); font-family: var(--f-mono); letter-spacing: .02em; }
.footer__legal a { text-decoration: underline; text-underline-offset: 2px; }

/* Bouton pause des animations */
.motion-toggle {
  position: fixed; left: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 55;
  display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px;
  border-radius: 999px; border: 1px solid var(--line-strong); background: rgba(5, 7, 12, .8);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted);
}
.motion-toggle:hover { color: var(--fg); }
.motion-toggle i { width: 8px; height: 8px; border-radius: 50%; background: var(--ice); box-shadow: 0 0 8px var(--ice); }
@media (max-width: 719px) { .motion-toggle { width: 36px; padding: 0; justify-content: center; opacity: .85; } .motion-toggle span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } }
.motion-toggle[aria-pressed="true"] i { background: transparent; border: 1px solid var(--muted); box-shadow: none; }

/* Révélations au scroll : visible par défaut, animé seulement si JS + motion */
.motion [data-reveal] { opacity: 0; transform: translateY(40px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); transition-delay: calc(var(--d, 0) * .08s); }
.motion [data-reveal].is-in { opacity: 1; transform: none; }

/* Mouvement réduit ou coupé */
[data-motion="off"] *, [data-motion="off"] *::before, [data-motion="off"] *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
[data-motion="off"] .marquee__track { animation: none; }

/* ---------- Pages légales ---------- */
.legal { padding-top: 160px; padding-bottom: 120px; }
.legal h1 { font-size: var(--t-xl); margin-bottom: 16px; }
.legal .lead { color: var(--muted); margin-bottom: 56px; }
.legal section { display: grid; gap: 12px; padding-block: 32px; border-top: 1px solid var(--line); max-width: 72ch; }
.legal h2 { font-size: var(--t-lg); letter-spacing: -.02em; }
.legal p, .legal li { color: #c9d1de; }
.legal ul { list-style: disc; padding-left: 1.2em; display: grid; gap: 6px; }
.legal a { color: var(--ice); text-decoration: underline; text-underline-offset: 2px; }

/* ---------- Logo NΛÏΛ (SVG tracé) ---------- */
.brand-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.brand { display: block; overflow: visible; }
.brand__s { fill: none; stroke: url(#naia-chrome); stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; }
.brand__d { fill: url(#naia-chrome); transform-box: fill-box; transform-origin: center; }
.brand__d--b { fill: var(--cobalt); filter: drop-shadow(0 0 3px rgba(61, 111, 242, .9)); }
.logo { align-items: center; gap: .7em; }
.logo__mark { height: 17px; width: auto; }
.logo__mark .brand__s { stroke-width: 4.2; }
.logo:hover .brand__d--b { filter: drop-shadow(0 0 6px rgba(120, 160, 255, 1)); }

/* Tracé animé : visible au repos, animé seulement quand le mouvement est actif */
.motion .brand[data-draw] .brand__s { stroke-dasharray: 1 2; stroke-dashoffset: 1; opacity: 0; }
.motion .brand[data-draw] .brand__d { transform: translateY(-14px) scale(0); opacity: 0; }
.motion .brand[data-draw].is-drawn .brand__s { animation: brandDraw 1.15s var(--ease-in-out) forwards; animation-delay: calc(var(--k) * .11s); }
.motion .brand[data-draw].is-drawn .brand__d { animation: dotIn .8s cubic-bezier(.34, 1.56, .64, 1) forwards; animation-delay: .85s; }
.motion .brand[data-draw].is-drawn .brand__d--b { animation-delay: 1s; }
@keyframes brandDraw { 0% { opacity: 0; } 4% { opacity: 1; } 100% { stroke-dashoffset: 0; opacity: 1; } }
@keyframes dotIn { to { transform: none; opacity: 1; } }

/* Grand logo du pied de page */
.footer__word { font-size: inherit; letter-spacing: 0; line-height: 1; transform: none; display: flex; justify-content: center; }
.brand--xl { width: min(100%, 1100px); height: auto; }
.brand--xl .brand__s { stroke-width: 2.4; }

/* Intro : le logo se trace, puis le rideau se lève */
.loader { display: none; }
.intro .loader {
  position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; background: var(--ink);
  clip-path: inset(0 0 0 0); transition: clip-path 1s var(--ease-in-out);
  animation: loaderFailsafe 0s 5s forwards;
}
.intro body { overflow: hidden; }
.loader.is-out { clip-path: inset(0 0 100% 0); }
@keyframes loaderFailsafe { to { visibility: hidden; } }
.loader__inner { display: grid; gap: 28px; justify-items: stretch; width: min(72vw, 460px); }
.brand--loader { width: 100%; height: auto; }
.brand--loader .brand__s { stroke-width: 2.6; }
.loader__bar { height: 1px; background: var(--line); position: relative; overflow: hidden; }
.loader__bar i { position: absolute; inset: 0; background: linear-gradient(90deg, var(--chrome-mid), var(--ice)); transform-origin: 0 50%; transform: scaleX(0); animation: loadBar 1.5s .2s var(--ease-in-out) forwards; }
@keyframes loadBar { to { transform: scaleX(1); } }
.loader__sub { display: flex; justify-content: space-between; font-family: var(--f-mono); font-size: var(--t-xs); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); opacity: 0; animation: fadeIn .8s .9s forwards; }
@keyframes fadeIn { to { opacity: 1; } }
