:root {
  --ink: #0a0a09;
  --ink-2: #131311;
  --line: rgba(255, 255, 255, .12);
  --paper: #f3f1ec;
  --muted: rgba(243, 241, 236, .55);
  --unit: #efe6d2;
  /* Piixel — repris de piixel.ch */
  --piixel: #f3cd5c;
  --piixel-strong: #e1ad01;
  --serif: "Instrument Serif", "Times New Roman", Times, serif;
  --sans: "Geist", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, Menlo, monospace;
  --gutter: clamp(16px, 4vw, 56px);
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
em { font-style: italic; }
::selection { background: var(--paper); color: var(--ink); }

.skip { position: absolute; left: -999px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
h2.label { margin: 0; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--paper); color: var(--ink); padding: 8px 12px; }

.label {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}
.display {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(40px, 7vw, 112px);
  line-height: .98;
  letter-spacing: -.01em;
  margin: 18px 0 0;
}
.display em { color: var(--muted); }

/* ---------- MENU TAB (from original) ---------- */
.menu-tab {
  position: fixed;
  right: 0; top: 50%;
  transform: translateY(-50%);
  z-index: 60;
  width: 40px; height: 128px;
  border: 0;
  background: #000;
  color: #fff;
  cursor: pointer;
  font: 500 12px/1 var(--sans);
  letter-spacing: .22em;
  text-transform: uppercase;
  transition: width .4s var(--ease), background .3s;
}
.menu-tab span { display: block; writing-mode: vertical-rl; margin: auto; }
.menu-tab:hover { width: 48px; }
.menu-open .menu-tab { background: var(--paper); color: var(--ink); }

.menu {
  position: fixed; inset: 0;
  z-index: 50;
  background: var(--ink);
  clip-path: inset(0 0 0 100%);
  transition: clip-path .8s var(--ease);
  visibility: hidden;
}
.menu-open .menu { clip-path: inset(0 0 0 0); visibility: visible; }
.menu__inner {
  height: 100%;
  display: flex; flex-direction: column; justify-content: center;
  padding: var(--gutter) calc(var(--gutter) + 56px) var(--gutter) var(--gutter);
}
.menu__list { list-style: none; margin: 0; padding: 0; }
.menu__list a {
  display: flex; align-items: baseline; gap: .4em;
  font-family: var(--serif); font-style: italic;
  font-size: clamp(44px, 9vw, 128px); line-height: 1.05;
  transition: color .3s, padding .5s var(--ease);
}
.menu__list em { font: 400 12px var(--sans); letter-spacing: .1em; color: var(--muted); font-style: normal; width: 2.4em; }
.menu__list a:hover { color: var(--muted); padding-left: .25em; }
.menu__foot { display: flex; justify-content: space-between; margin-top: 48px; font-size: 12px; color: var(--muted); letter-spacing: .1em; text-transform: uppercase; }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  height: 100vh; height: 100svh; min-height: 560px;
  overflow: hidden;
  display: grid; place-items: center;
  isolation: isolate;
}
.hero__video, .contact__video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: -3;
  transform: scale(1.04);
}
.hero__shade {
  position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(ellipse at center, rgba(10,10,9,.25) 0%, rgba(10,10,9,.7) 100%),
    linear-gradient(to bottom, rgba(10,10,9,.45), rgba(10,10,9,.1) 30%, rgba(10,10,9,.2) 70%, var(--ink));
}
.grain {
  position: absolute; inset: -50%; z-index: -1; pointer-events: none; opacity: .09;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -1%); } 80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); }
}

.hero__mark { position: absolute; top: 24px; left: 50%; transform: translateX(-50%); opacity: .9; }
.hero__mark img { width: 59px; height: auto; filter: brightness(0) invert(1); }

.hero__center { text-align: center; padding: 0 56px; }
.hero__logo { margin: 0; }
.hero__logo img { width: clamp(180px, 26vw, 404px); height: auto; margin: 0 auto; }
.hero__tagline {
  font-family: var(--serif); font-style: italic;
  font-size: clamp(26px, 3.2vw, 44px);
  margin: 14px 0 0;
}
.hero__alliance {
  display: inline-flex; align-items: center; gap: 14px;
  margin: 36px 0 0; padding: 10px 18px;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 999px;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  background: rgba(10,10,9,.25);
  font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
}
.hero__alliance i { font-family: var(--serif); font-size: 20px; font-style: normal; color: var(--muted); letter-spacing: 0; }
.hero__alliance .pxl { font-size: 22px; letter-spacing: -.05em; text-transform: none; }

/* Logotype piixel : Geist Black minuscule + carré jaune clignotant, comme sur piixel.ch */
.pxl { display: inline-flex; align-items: baseline; gap: .12em; font: 900 1em/1 var(--sans); letter-spacing: -.05em; color: var(--paper); }
.pxl b { width: .26em; height: .26em; background: var(--piixel); animation: blink 1.4s step-end infinite; }
@keyframes blink { 50% { opacity: 0; } }
.pxl-meta, .pxl-path { font: 400 12px/1.4 var(--mono); letter-spacing: 0; text-transform: none; color: var(--muted); }
.pxl-path { margin-left: 10px; color: var(--piixel); }

.hero__bottom {
  position: absolute; left: var(--gutter); right: calc(var(--gutter) + 40px); bottom: 24px;
  display: flex; justify-content: space-between; align-items: center;
}
.hero__scroll span { display: inline-block; animation: bob 2s var(--ease) infinite; }
@keyframes bob { 50% { transform: translateY(4px); } }
.hero__scroll:hover { color: var(--paper); }

/* ---------- SECTIONS ---------- */
.section { padding: clamp(96px, 14vw, 200px) calc(var(--gutter) + 40px) clamp(96px, 14vw, 200px) var(--gutter); border-top: 1px solid var(--line); }
.section__head { display: flex; flex-direction: column; gap: 0; margin-bottom: clamp(48px, 7vw, 96px); }

/* Alliance */
.alliance { border-top: 0; }
.alliance__grid {
  display: grid; grid-template-columns: 1fr auto 1fr; gap: clamp(24px, 5vw, 80px);
  margin-top: clamp(64px, 9vw, 128px); align-items: start;
}
.alliance__col { max-width: 520px; }
.alliance__logo { height: 44px; width: auto; margin: 0 0 28px; }
.alliance__logo--pxl { display: flex; align-items: flex-end; gap: 16px; height: auto; min-height: 44px; }
.alliance__logo--pxl .pxl { font-size: 46px; }
.more { display: inline-block; margin-top: 8px; padding: 12px 0; font: 400 13px var(--mono); color: var(--piixel); }
.more span { display: inline-block; transition: transform .4s var(--ease); }
.more:hover span { transform: translate(3px, -3px); }
.alliance__logo--pxl .pxl-meta { padding-bottom: 4px; }
.alliance__x { font-family: var(--serif); font-size: clamp(64px, 8vw, 120px); line-height: .8; color: var(--muted); }
.lede { font-size: clamp(18px, 1.6vw, 22px); line-height: 1.45; margin: 0 0 24px; color: var(--paper); }
.ticks { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.ticks li { padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 15px; }
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  margin-top: clamp(64px, 9vw, 128px); border-top: 1px solid var(--line);
}
.stats div { padding: 28px 0 0; }
.stats strong { display: block; font-family: var(--serif); font-weight: 400; font-size: clamp(48px, 6vw, 88px); line-height: 1; }
.stats span { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

/* Tags */
.tag {
  display: inline-block; padding: 4px 10px; border-radius: 999px;
  font: 400 10px/1.4 var(--sans); letter-spacing: .14em; text-transform: uppercase;
  border: 1px solid currentColor; white-space: nowrap;
}
.tag--unit { color: var(--unit); }
.tag--piixel { color: var(--piixel); }
.tag--both { color: var(--ink); background: var(--paper); border-color: var(--paper); }

/* Work */
.work .section__head { flex-direction: row; justify-content: space-between; align-items: baseline; margin-bottom: 32px; }
.work__legend { display: flex; gap: 8px; margin: 0; }
.work__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.work__list li {
  display: grid; grid-template-columns: 56px 1fr auto; align-items: center; gap: 16px;
  padding: clamp(14px, 1.6vw, 22px) 0;
  border-bottom: 1px solid var(--line);
  transition: padding .5s var(--ease), color .3s;
}
.work__n { font-size: 12px; color: var(--muted); letter-spacing: .1em; }
.work__t { font-family: var(--serif); font-style: italic; font-size: clamp(28px, 4.4vw, 68px); line-height: 1.05; }
@media (hover: hover) {
  .work__list li:hover { padding-left: 16px; }
  .work__list:hover li:not(:hover) .work__t { color: rgba(243,241,236,.35); }
}

/* Products */
.products__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.product {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column;
  min-height: clamp(380px, 38vw, 520px);
  padding: clamp(24px, 3vw, 44px);
  background: var(--ink);
  isolation: isolate;
}
.product::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(circle at 100% 0%, var(--accent), transparent 60%);
  opacity: .0; transition: opacity .6s var(--ease);
}
.product:hover::before { opacity: .28; }
.product__top { display: flex; justify-content: space-between; align-items: center; }
.product__arrow { font-size: 22px; transition: transform .4s var(--ease); }
.product:hover .product__arrow { transform: translate(4px, -4px); color: var(--accent); }
.product__name {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(56px, 7vw, 120px); line-height: .95;
  margin: auto 0 20px;
}
.product__name span { color: var(--accent); }
.product__pitch { max-width: 460px; margin: 0 0 24px; color: var(--muted); font-size: 16px; }
.product:hover .product__pitch { color: var(--paper); }
.product__meta { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.product__meta li { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; padding: 6px 10px; border: 1px solid var(--line); border-radius: 999px; }

/* Liste des clients */
.roster { border-top: 1px solid var(--line); padding-top: 32px; }
.roster__count { margin: 0; font-family: var(--serif); font-size: 20px; color: var(--muted); }
.roster__list {
  list-style: none; margin: 32px 0 0; padding: 0;
  columns: 4; column-gap: clamp(24px, 4vw, 64px);
}
.roster__list li {
  break-inside: avoid;
  font-family: var(--serif); font-style: italic; font-size: clamp(17px, 1.5vw, 21px); line-height: 1.7;
  color: rgba(243, 241, 236, .62);
  transition: color .25s;
}
.roster__list li:hover { color: var(--paper); }
.roster__list a { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .4s var(--ease); }
.roster__list a::after { content: " ↗"; font-style: normal; font-size: .7em; opacity: 0; transition: opacity .25s; }
.roster__list a:hover { background-size: 100% 1px; }
.roster__list a:hover::after { opacity: .7; }

/* Client types marquee */
.clients-types { padding-left: 0; padding-right: 0; }
.clients-types > .label { padding: 0 var(--gutter); }
.marquee { overflow: hidden; margin-top: 32px; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { display: flex; width: max-content; animation: marquee 50s linear infinite; }
.marquee__track span, .marquee__track i {
  font-family: var(--serif); font-style: italic; font-size: clamp(44px, 7vw, 110px); white-space: nowrap; padding: 0 .3em;
}
.marquee__track i { font-style: normal; color: var(--muted); font-family: var(--sans); font-weight: 300; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Contact */
.contact {
  position: relative; isolation: isolate; overflow: hidden;
  padding: clamp(96px, 12vw, 180px) calc(var(--gutter) + 40px) clamp(96px, 12vw, 180px) var(--gutter);
}
.contact__video { filter: grayscale(.6); opacity: .35; }
.contact__inner { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(40px, 6vw, 112px); align-items: start; }
.contact__intro { position: sticky; top: 64px; }
.contact__title { font-family: var(--serif); font-weight: 400; font-size: clamp(56px, 8vw, 136px); line-height: .92; margin: 20px 0 32px; }
.contact__title em { color: var(--muted); }
.contact__lede { max-width: 400px; margin: 0; color: var(--muted); font-size: 17px; }

.form { display: grid; gap: 32px; }
.form__group { border: 0; margin: 0; padding: 0; min-width: 0; }
.form__group legend { padding: 0; margin-bottom: 14px; }
.form__group legend small { font-size: inherit; letter-spacing: .08em; text-transform: none; opacity: .7; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 9px 16px; border: 1px solid var(--line); border-radius: 999px;
  font-family: var(--serif); font-style: italic; font-size: 19px; line-height: 1.2;
  cursor: pointer; transition: border-color .25s, background .25s, color .25s;
}
.chip span:hover { border-color: var(--paper); }
.chip input:checked + span { background: var(--paper); border-color: var(--paper); color: var(--ink); }
.chip input:focus-visible + span { outline: 1px solid var(--paper); outline-offset: 3px; }

.field { display: grid; gap: 6px; }
.field input, .field textarea {
  width: 100%; padding: 8px 0 12px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0;
  background: none; color: var(--paper); outline: none;
  font-family: var(--serif); font-size: clamp(22px, 2vw, 28px); line-height: 1.3;
  transition: border-color .3s;
}
.field textarea { resize: vertical; min-height: 120px; font-size: clamp(19px, 1.6vw, 22px); }
.field textarea::placeholder { color: rgba(243, 241, 236, .3); font-style: italic; }
.field input:focus, .field textarea:focus { border-bottom-color: var(--paper); }
.field.is-invalid input, .field.is-invalid textarea { border-bottom-color: #e2564a; }
.field.is-invalid .label { color: #e2564a; }

.form__hp { position: absolute; left: -9999px; }
.form__foot { display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.consent { display: flex; gap: 10px; max-width: 420px; font-size: 13px; color: var(--muted); cursor: pointer; }
.consent input { width: 20px; height: 20px; margin: 0; accent-color: var(--paper); flex-shrink: 0; }
.consent a { text-decoration: underline; text-underline-offset: 2px; }
.consent.is-invalid { color: #e2564a; }
.form__submit {
  display: inline-flex; align-items: center; gap: 14px; flex-shrink: 0;
  padding: 16px 32px; border: 1px solid var(--paper); border-radius: 999px;
  background: none; color: var(--paper); cursor: pointer;
  font: italic 24px/1 var(--serif); transition: background .3s, color .3s;
}
.form__submit i { font-style: normal; transition: transform .4s var(--ease); }
.form__submit:hover { background: var(--paper); color: var(--ink); }
.form__submit:hover i { transform: translateX(4px); }
.form__submit:disabled { opacity: .5; cursor: wait; }
.form__status { margin: 0; min-height: 1.5em; font-size: 14px; color: var(--muted); }
.form__status[data-kind="ok"] { color: var(--paper); }
.form__status[data-kind="error"] { color: #e2564a; }

.footer {
  display: flex; flex-wrap: wrap; gap: 12px 32px; justify-content: space-between;
  padding: 28px calc(var(--gutter) + 40px) 28px var(--gutter);
  border-top: 1px solid var(--line);
  font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
}
.footer a:hover { color: var(--paper); }

/* Page confidentialité */
.legal__top {
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px calc(var(--gutter)) 20px var(--gutter); border-bottom: 1px solid var(--line);
}
.legal__back { padding: 12px 0; }
.legal__back:hover { color: var(--paper); }
.legal__mark { width: 59px; height: auto; filter: brightness(0) invert(1); }
.legal { padding: clamp(64px, 10vw, 140px) var(--gutter) clamp(80px, 10vw, 160px); max-width: 1100px; }
.legal__date { margin: 24px 0 0; font-size: 13px; color: var(--muted); }
.legal__body { max-width: 680px; margin-top: clamp(48px, 7vw, 96px); font-size: 17px; line-height: 1.65; color: rgba(243, 241, 236, .82); }
.legal__lede { font-family: var(--serif); font-style: italic; font-size: clamp(22px, 2.2vw, 28px); line-height: 1.35; color: var(--paper); margin: 0 0 48px; }
.legal__body h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(28px, 3vw, 38px); line-height: 1.1; color: var(--paper); margin: 56px 0 16px; padding-top: 24px; border-top: 1px solid var(--line); }
.legal__body h3 { font: 400 11px/1.4 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin: 28px 0 8px; }
.legal__body p { margin: 0 0 16px; }
.legal__body ul { margin: 0 0 16px; padding-left: 1.2em; }
.legal__body li { margin-bottom: 6px; }
.legal__body a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(243, 241, 236, .4); }
.legal__body a:hover { text-decoration-color: currentColor; }
.legal__card { padding: 20px 24px; border: 1px solid var(--line); color: var(--paper); }

/* Reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
  .alliance__grid { grid-template-columns: 1fr; }
  .alliance__x { font-size: 56px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .products__grid { grid-template-columns: 1fr; }
  .contact__inner { grid-template-columns: 1fr; }
  .contact__intro { position: static; }
  .roster__list { columns: 2; }
  .work .section__head { flex-direction: column; gap: 16px; }
}
@media (max-width: 600px) {
  .menu-tab { width: 32px; height: 104px; font-size: 11px; }
  .section { padding-right: calc(var(--gutter) + 28px); }
  .hero__center { padding: 0 40px; }
  .hero__bottom { right: calc(var(--gutter) + 32px); }
  .hero__scroll { display: none; }
  .work__list li { grid-template-columns: 32px 1fr; }
  .work__list .tag { grid-column: 2; justify-self: start; }
  .footer { padding-right: calc(var(--gutter) + 32px); }
  .contact { padding-right: calc(var(--gutter) + 28px); }
  .form__row { grid-template-columns: 1fr; }
  .form__foot { flex-direction: column; align-items: stretch; }
  .form__submit { justify-content: center; }
  /* Liste clients : 2 colonnes, rythme régulier, zone tactile étendue sans décaler les lignes */
  .roster__list { columns: 2; column-gap: 20px; }
  .roster__list li { font-size: 16px; line-height: 1.35; padding: 6px 0; }
  .roster__list a { display: inline-block; padding: 10px 0; margin: -10px 0; }
  .roster__list a::after { display: none; }
  /* Cartes produits : hauteur au contenu */
  .product { min-height: 0; }
  .product__name { margin: 56px 0 16px; font-size: 56px; }
  /* Alliance */
  .alliance__x { font-size: 40px; line-height: 1; }
  .alliance__logo--pxl { flex-direction: column; align-items: flex-start; gap: 10px; }
  /* Pied de page : grille propre */
  .footer { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
  .footer > * { padding: 10px 0; }
  .footer > :first-child { grid-column: 1 / -1; }
  .menu__foot { flex-direction: column; gap: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
