/* ══════════════════════════════════════════════════════════════════════
   Neziak Studio — feuille de style du site vitrine

   Un seul accent, le bleu #1B4DFF, sur un fond blanc cassé (cf.
   website-design/brand-spec.md). Une seule rupture : la section « étude de
   cas », qui bascule sur les couleurs RÉELLES de l'application Taiji
   (violet #6A3CBC, terracotta #E2724A, cf. app/src/theme/colors.ts). C'est
   le seul endroit de la page où l'on ne parle plus du studio mais du
   produit — la page change alors de langue visuelle, volontairement.
   ══════════════════════════════════════════════════════════════════════ */

:root {
  /* ─ studio ─ */
  --bg:        #F5F6FA;
  --surface:   #FFFFFF;
  --sunken:    #EEF1F8;
  --fg:        #111827;
  --muted:     #5B6B84;
  --border:    #E3E7EF;
  --accent:    #1B4DFF;
  --accent-ink:#0027B3;
  --accent-10: rgba(27, 77, 255, 0.10);

  /* ─ taiji (tokens de l'app, utilisés dans la seule étude de cas) ─ */
  --taiji-ink:  #241046;
  --taiji-ink2: #341764;
  --taiji:      #8B5CF0;
  --taiji-cta:  #E2724A;
  --on-taiji:   #F2ECFF;
  --on-taiji-m: #B9A8DC;

  --f-display: 'Plus Jakarta Sans', ui-sans-serif, system-ui, sans-serif;
  --f-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --f-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --wrap: 1140px;
  --gutter: clamp(20px, 5vw, 40px);
  --r: 10px;
  --r-lg: 18px;
  --shadow: 0 1px 2px rgba(17, 24, 39, .04), 0 8px 28px rgba(17, 24, 39, .06);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.6 var(--f-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
p { margin: 0; text-wrap: pretty; }
h1, h2, h3 { margin: 0; font-family: var(--f-display); text-wrap: balance; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.case :focus-visible { outline-color: var(--taiji-cta); }

.skip {
  position: absolute; left: -9999px; top: 8px; z-index: 100;
  background: var(--fg); color: #fff; padding: 10px 16px; border-radius: var(--r);
}
.skip:focus { left: 16px; }

/* ── Trame ──────────────────────────────────────────────────────────── */
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.sec { padding-block: clamp(56px, 9vw, 108px); }
.sec-tight { padding-block: clamp(28px, 4vw, 40px); }

/* ── Typographie ────────────────────────────────────────────────────── */
h1 { font-size: clamp(34px, 5.2vw, 60px); line-height: 1.03; letter-spacing: -.03em; font-weight: 800; }
h2 { font-size: clamp(28px, 3.6vw, 44px); line-height: 1.1; letter-spacing: -.025em; font-weight: 700; }
h3 { font-size: 18px; line-height: 1.35; letter-spacing: -.01em; font-weight: 700; }
.sec-title { max-width: 22ch; margin-bottom: clamp(32px, 5vw, 56px); }
.lead { font-size: clamp(17px, 1.4vw, 19px); line-height: 1.6; color: var(--muted); max-width: 58ch; }
.lead strong { color: var(--fg); font-weight: 600; }
.lead-on-dark { color: var(--on-taiji-m); }
.lead-on-dark strong { color: var(--on-taiji); }

.kicker {
  font-family: var(--f-mono); font-size: 11.5px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--accent);
  margin-bottom: 20px;
}
.kicker-on-dark { color: var(--taiji-cta); }
.num { font-family: var(--f-mono); font-variant-numeric: tabular-nums; letter-spacing: -.03em; }
.mono { font-family: var(--f-mono); font-size: 12px; }

/* ── Barre de navigation ────────────────────────────────────────────── */
.topbar {
  position: sticky; top: 0; z-index: 40;
  background: rgba(245, 246, 250, .82);
  backdrop-filter: saturate(1.6) blur(12px);
  border-bottom: 1px solid var(--border);
}
.topbar-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 13px; }
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-mark {
  width: 28px; height: 28px; border-radius: 7px; flex: none;
  background: var(--accent); color: #fff; display: grid; place-items: center;
}
.brand-mark svg { width: 15px; height: 15px; }
.brand-word { font-family: var(--f-display); font-weight: 800; font-size: 17px; letter-spacing: -.02em; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav > a { font-size: 14.5px; font-weight: 500; color: var(--muted); transition: color .15s; }
.nav > a:hover { color: var(--fg); }
.nav-cta { margin-left: 4px; }
.nav-btn {
  display: none; width: 42px; height: 42px; flex: none; padding: 0; color: var(--fg);
  border: 1px solid var(--border); border-radius: var(--r); background: var(--surface);
}
.nav-btn svg { width: 20px; height: 20px; margin: auto; }
.nav-btn .i-close { display: none; }
.nav-btn[aria-expanded="true"] .i-open { display: none; }
.nav-btn[aria-expanded="true"] .i-close { display: block; }

@media (max-width: 900px) {
  .nav-btn { display: grid; }
  .topbar-in { position: relative; }
  .nav {
    display: none; position: absolute; top: calc(100% + 13px); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--surface); border-block: 1px solid var(--border);
    box-shadow: var(--shadow); padding: 8px var(--gutter) 20px;
    margin-inline: calc(var(--gutter) * -1);
  }
  .nav.open { display: flex; }
  .nav > a { padding: 14px 0; font-size: 16px; font-weight: 600; color: var(--fg); border-bottom: 1px solid var(--border); }
  .nav > a:last-child { border-bottom: 0; }
  .nav-cta { margin: 16px 0 0; justify-content: center; }
}

/* ── Boutons ────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 12px 22px; border: 1px solid transparent; border-radius: var(--r);
  font-size: 15px; font-weight: 600; letter-spacing: -.005em;
  transition: background .16s, color .16s, border-color .16s, transform .06s;
}
.btn:active { transform: translateY(1px); }
.btn-solid { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-solid:hover { background: var(--accent-ink); border-color: var(--accent-ink); }
.btn-line { border-color: var(--border); background: var(--surface); color: var(--fg); }
.btn-line:hover { border-color: var(--accent); color: var(--accent); }
.btn-quiet { color: var(--fg); padding-inline: 6px; }
.btn-quiet:hover { color: var(--accent); }
.btn-full { width: 100%; }
.btn[disabled] { opacity: .55; pointer-events: none; }
.arrow::after { content: '→'; transition: transform .16s; }
.arrow:hover::after { transform: translateX(4px); }

/* ── Hero ───────────────────────────────────────────────────────────── */
.hero { padding-top: clamp(44px, 6vw, 76px); }
/* `center` et non `start` : la coupe est nettement plus haute que le texte,
   et l'aligner en haut laisse un vide de plusieurs centaines de pixels sous
   les boutons. */
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: clamp(36px, 6vw, 76px); align-items: center; }
.hero-copy h1 { margin-bottom: 22px; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 30px; }
.hero .lead { max-width: 52ch; }

/* La coupe — élément signature. Le produit visible, puis les couches qui le
   font tourner, du client jusqu'à l'infrastructure. Le fond s'assombrit
   couche après couche : on descend dans la pile. */
.cutaway {
  margin: 0; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); box-shadow: var(--shadow); overflow: hidden;
}
.cut-head {
  display: flex; align-items: center; gap: 9px;
  padding: 13px 18px; border-bottom: 1px solid var(--border);
  font-family: var(--f-mono); font-size: 11.5px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
}
.cut-dot { width: 7px; height: 7px; border-radius: 50%; background: #16A34A; flex: none; box-shadow: 0 0 0 3px rgba(22, 163, 74, .16); }
.cut-screen { padding: 22px 22px 26px; background: linear-gradient(180deg, var(--surface), var(--sunken)); }
.cut-screen img {
  width: min(232px, 62%); height: auto; margin-inline: auto;
  border-radius: 14px; border: 1px solid var(--border);
  box-shadow: 0 10px 30px rgba(36, 16, 70, .18);
}
.cut-stack { list-style: none; margin: 0; padding: 0; }
.cut-stack li {
  display: grid; grid-template-columns: 74px minmax(0, 1fr); gap: 4px 14px;
  padding: 13px 22px; border-top: 1px solid var(--border);
  background: linear-gradient(90deg, var(--accent-10) 0 2px, transparent 2px);
}
.cut-stack li:nth-child(1) { background-color: rgba(238, 241, 248, .35); }
.cut-stack li:nth-child(2) { background-color: rgba(238, 241, 248, .55); }
.cut-stack li:nth-child(3) { background-color: rgba(238, 241, 248, .75); }
.cut-stack li:nth-child(4) { background-color: rgba(238, 241, 248, .9); }
.cut-stack li:nth-child(5) { background-color: var(--sunken); }
.cut-lab {
  grid-row: span 2; align-self: center;
  font-family: var(--f-mono); font-size: 10.5px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: var(--accent);
}
.cut-tech { font-weight: 600; font-size: 14.5px; letter-spacing: -.01em; }
.cut-note { font-size: 12.5px; color: var(--muted); }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; align-items: start; }
  .cutaway { max-width: 460px; }
}

/* ── Bandeau de faits ───────────────────────────────────────────────── */
.facts { border-block: 1px solid var(--border); background: var(--surface); }
.fact-row { list-style: none; margin: 0 0 14px; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.fact-row li { display: flex; align-items: baseline; gap: 10px; }
.fact-row b { font-size: 30px; font-weight: 700; line-height: 1; color: var(--accent); }
.fact-row span { font-size: 13.5px; color: var(--muted); line-height: 1.35; }
.fact-src { font-family: var(--f-mono); font-size: 11.5px; color: var(--muted); }
@media (max-width: 760px) { .fact-row { grid-template-columns: repeat(2, 1fr); gap: 18px; } }

/* ── Étude de cas ───────────────────────────────────────────────────── */
.case {
  background: linear-gradient(165deg, var(--taiji-ink) 0%, var(--taiji-ink2) 62%, #46208A 100%);
  color: var(--on-taiji);
}
.case h2, .case h3 { color: #fff; }
.case-head { max-width: 720px; margin-bottom: clamp(40px, 6vw, 64px); }
.case-head h2 { margin-bottom: 22px; }
.store {
  display: inline-flex; align-items: center; gap: 11px; margin-top: 30px;
  padding: 10px 20px 10px 17px; border-radius: var(--r);
  background: #fff; color: #111; font-family: var(--f-display); font-weight: 700; font-size: 17px;
  letter-spacing: -.02em; transition: transform .16s, box-shadow .16s;
}
.store:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(0, 0, 0, .28); }
.store svg { width: 24px; height: 24px; flex: none; }
.store small { display: block; font-family: var(--f-body); font-size: 10.5px; font-weight: 500; letter-spacing: .02em; opacity: .72; }

.case-body { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 64px); align-items: start; }
.case-text h3 { font-size: 13px; font-family: var(--f-mono); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--taiji-cta); margin-bottom: 10px; }
.case-text h3 + p { color: var(--on-taiji-m); font-size: 16.5px; }
.case-text h3 + p + h3 { margin-top: 30px; }
.case-deliv {
  list-style: none; margin: 0; padding: 26px 28px;
  border: 1px solid rgba(255, 255, 255, .16); border-radius: var(--r-lg);
  background: rgba(255, 255, 255, .05); display: grid; gap: 11px; font-size: 14.5px;
}
.case-deliv li { position: relative; padding-left: 24px; color: var(--on-taiji); }
.case-deliv li::before {
  content: ''; position: absolute; left: 0; top: .52em;
  width: 9px; height: 9px; border-radius: 2px; background: var(--taiji-cta);
}

.gallery {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(240px, 1fr);
  gap: 22px; margin-top: clamp(40px, 6vw, 64px);
  overflow-x: auto; scroll-snap-type: x mandatory;
  padding-bottom: 12px; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter);
  scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .3) transparent;
}
.gallery figure { margin: 0; scroll-snap-align: start; }
.gallery img { width: 100%; height: auto; border-radius: 14px; border: 1px solid rgba(255, 255, 255, .14); box-shadow: 0 14px 34px rgba(0, 0, 0, .3); }
.gallery figcaption { margin-top: 14px; font-size: 13px; line-height: 1.45; color: var(--on-taiji-m); }
@media (max-width: 900px) { .case-body { grid-template-columns: 1fr; } }

/* ── Cartes savoir-faire ────────────────────────────────────────────── */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 28px; box-shadow: var(--shadow);
  transition: transform .22s, box-shadow .22s, border-color .22s;
}
.card:hover { transform: translateY(-3px); border-color: rgba(27, 77, 255, .3); box-shadow: 0 1px 2px rgba(17, 24, 39, .04), 0 16px 38px rgba(17, 24, 39, .09); }
.card-mark { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: var(--accent-10); color: var(--accent); margin-bottom: 20px; }
.card-mark svg { width: 20px; height: 20px; }
.card h3 { margin-bottom: 9px; }
.card p { font-size: 14.5px; color: var(--muted); }
@media (max-width: 900px) { .cards { grid-template-columns: 1fr; } }

/* ── Méthode ────────────────────────────────────────────────────────── */
.method-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(36px, 6vw, 72px); align-items: start; }
.steps { list-style: none; margin: 0; padding: 0; }
.steps li { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 18px; padding: 22px 0; border-top: 1px solid var(--border); }
.steps li:last-child { border-bottom: 1px solid var(--border); }
.step-n { font-size: 13px; font-weight: 700; color: var(--accent); padding-top: 3px; }
.steps h3 { margin-bottom: 5px; }
.steps p { font-size: 14.5px; color: var(--muted); }
.pledge { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 28px; box-shadow: var(--shadow); }
.pledge ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 13px; font-size: 14.5px; }
.pledge li { position: relative; padding-left: 26px; }
.pledge li::before {
  content: ''; position: absolute; left: 0; top: .42em; width: 12px; height: 7px;
  border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}
.pledge-out { margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--border); font-size: 14px; color: var(--muted); }
@media (max-width: 900px) { .method-grid { grid-template-columns: 1fr; } }

/* ── Stack ──────────────────────────────────────────────────────────── */
.stack-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.stack-grid h3 {
  font-family: var(--f-mono); font-size: 11.5px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: var(--accent);
  padding-bottom: 12px; border-bottom: 1px solid var(--border); margin-bottom: 14px;
}
.stack-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 14.5px; color: var(--muted); }
@media (max-width: 900px) { .stack-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .stack-grid { grid-template-columns: 1fr; } }

/* ── Contact ────────────────────────────────────────────────────────── */
.contact { background: var(--surface); border-top: 1px solid var(--border); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(36px, 6vw, 72px); align-items: start; }
.contact-copy .sec-title { margin-bottom: 20px; }
.contact-facts { margin: 34px 0 0; display: grid; gap: 18px; }
.contact-facts dt { font-family: var(--f-mono); font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 5px; }
.contact-facts dd { margin: 0; font-size: 15px; }
.contact-facts a { color: var(--accent); }
.contact-facts a:hover { text-decoration: underline; }

.form { background: var(--bg); border: 1px solid var(--border); border-radius: var(--r-lg); padding: clamp(22px, 3vw, 32px); }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 7px; }
.opt { font-weight: 500; color: var(--muted); }
.field input, .field textarea {
  width: 100%; padding: 12px 14px; font: 15px/1.5 var(--f-body); color: var(--fg);
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r);
  transition: border-color .15s, box-shadow .15s;
}
.field textarea { resize: vertical; min-height: 132px; }
.field input::placeholder, .field textarea::placeholder { color: #9AA6BC; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-10); }
.field[data-invalid] input, .field[data-invalid] textarea { border-color: #DC2626; }
.err { margin-top: 6px; font-size: 13px; color: #DC2626; }

/* Le piège à robots doit rester dans le flux du DOM pour être rempli par un
   script, mais invisible et inatteignable pour une personne — y compris au
   clavier et au lecteur d'écran (aria-hidden porté par le conteneur). */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.consent { font-size: 12.5px; line-height: 1.5; color: var(--muted); margin-bottom: 18px; }
.consent a { color: var(--accent); text-decoration: underline; }
.form-status { margin-top: 14px; font-size: 14px; min-height: 1.5em; }
.form-status[data-tone="ok"] { color: #15803D; font-weight: 600; }
.form-status[data-tone="error"] { color: #DC2626; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

/* ── Pied de page ───────────────────────────────────────────────────── */
.foot { border-top: 1px solid var(--border); padding-block: clamp(40px, 5vw, 56px) 28px; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 34px; align-items: start; }
.foot-id p { margin-top: 12px; font-size: 12.5px; line-height: 1.7; color: var(--muted); }
.foot-links { display: grid; gap: 11px; font-size: 14px; justify-items: start; }
.foot-links a { color: var(--muted); }
.foot-links a:hover { color: var(--accent); }
.foot-end {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--border);
  font-size: 12.5px; color: var(--muted);
}
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr; } }

/* ── Apparition au défilement ───────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.shown { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }
