/* N&S Record : site public (nsrecord.group). Noir et blanc, typographie variable (Archivo), effets à la souris. */
@font-face {
  font-family: "Archivo";
  src: url("/fonts/archivo.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("/fonts/jetbrains-mono.woff2") format("woff2");
  font-weight: 400 600;
  font-display: swap;
}

:root {
  --bg: #050505;
  --fg: #f4f4f1;
  --muted: rgba(244, 244, 241, 0.56);
  --line: rgba(244, 244, 241, 0.16);
  --pad: clamp(16px, 3.2vw, 44px);
  --sans: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
::selection { background: var(--fg); color: var(--bg); }
:focus-visible { outline: 1px solid var(--fg); outline-offset: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mono { font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; }
.muted { color: var(--muted); }

/* Grain de film par-dessus tout (très léger) */
body::after {
  content: "";
  position: fixed;
  inset: -100%;
  z-index: 90;
  pointer-events: none;
  opacity: 0.07;
  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.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 0.9s steps(5) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); }
  20% { transform: translate(-3%, 2%); }
  40% { transform: translate(2%, -4%); }
  60% { transform: translate(-4%, -1%); }
  80% { transform: translate(3%, 3%); }
  100% { transform: translate(0, 0); }
}

/* Champ de points qui réagit à la souris (dessiné par main.js) */
#field { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
main, .site-footer { position: relative; z-index: 1; }

/* ------------------------------------------------------------------ en-tête */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 20px var(--pad);
  transition: transform 0.6s var(--ease), background-color 0.4s;
}
.site-header.is-scrolled { background: rgba(5, 5, 5, 0.72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.site-header.is-hidden { transform: translateY(-100%); }
.wordmark {
  font-weight: 800;
  font-stretch: 118%;
  font-size: 15px;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.wordmark i { width: 7px; height: 7px; border-radius: 50%; background: var(--fg); display: inline-block; }
.nav { margin-left: auto; display: flex; align-items: center; gap: clamp(16px, 2.6vw, 36px); }
.nav-link {
  position: relative;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 0;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.5s var(--ease);
}
.nav-link:hover::after, .nav-link[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }

/* Boutons « pilule » qui se remplissent de blanc au survol */
.pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 20px;
  border: 1px solid var(--fg);
  border-radius: 999px;
  overflow: hidden;
  isolation: isolate;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  background: transparent;
  cursor: pointer;
  transition: color 0.45s var(--ease), transform 0.35s var(--ease);
}
.pill::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--fg);
  border-radius: 50% 50% 0 0 / 30% 30% 0 0;
  transform: translateY(102%);
  transition: transform 0.55s var(--ease), border-radius 0.55s var(--ease);
}
.pill:hover, .pill:focus-visible { color: var(--bg); }
.pill:hover::before, .pill:focus-visible::before { transform: translateY(0); border-radius: 0; }
.pill svg { width: 12px; height: 12px; flex: none; transition: transform 0.45s var(--ease); }
.pill:hover svg { transform: translate(2px, -2px); }
.pill.solid { background: var(--fg); color: var(--bg); }
.pill.solid::before { background: var(--bg); }
.pill.solid:hover, .pill.solid:focus-visible { color: var(--fg); }

/* ------------------------------------------------------------------ titres interactifs */
.ch {
  display: inline-block;
  font-variation-settings: "wght" 260, "wdth" 92;
  will-change: font-variation-settings;
}
.line { display: block; overflow: hidden; padding-bottom: 0.04em; }
.js .intro .ch { transform: translateY(105%); animation: rise 1.25s var(--ease) forwards; animation-delay: calc(0.15s + var(--i, 0) * 0.06s); }
@keyframes rise { to { transform: translateY(0); } }

/* ------------------------------------------------------------------ accueil */
.hero {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-rows: 1fr;
  padding: 110px var(--pad) 28px;
}
.hero-main { align-self: center; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 32px; }
.hero-title {
  margin: 0;
  font-weight: 260;
  line-height: 0.8;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.hero-title .l1 { font-size: clamp(6.6rem, 30vw, 34rem); }
.hero-title .l2 { font-size: clamp(3.3rem, 13.4vw, 15.5rem); letter-spacing: 0.01em; }
/* Badge rond qui tourne (accéléré par le défilement, voir main.js) */
.badge { width: clamp(120px, 11vw, 168px); aspect-ratio: 1; margin-bottom: 0.6vw; }
.badge svg { display: block; width: 100%; height: 100%; overflow: visible; }
.badge-ring { transform-origin: 80px 80px; animation: spin 24s linear infinite; }
.badge-text { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.08em; fill: var(--fg); }
.badge-amp { font-family: var(--sans); font-size: 58px; font-weight: 800; font-stretch: 110%; fill: var(--fg); }
@keyframes spin { to { transform: rotate(360deg); } }

.arrow-link { display: inline-flex; align-items: center; gap: 10px; position: relative; padding: 4px 0; }
.arrow-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: currentColor;
  transform-origin: left;
  transition: transform 0.5s var(--ease);
}
.arrow-link:hover::after { transform: scaleX(0); transform-origin: right; }
.arrow-link svg { width: 12px; height: 12px; transition: transform 0.45s var(--ease); }
.arrow-link:hover svg { transform: translate(3px, -3px); }

/* Bandeau qui défile */
.band { overflow: hidden; border-block: 1px solid var(--line); padding: clamp(14px, 2vw, 26px) 0; user-select: none; }
.band-track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.band-track span {
  font-size: clamp(2.6rem, 7.5vw, 7.6rem);
  line-height: 1;
  font-weight: 800;
  font-stretch: 115%;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  padding-right: 0.45em;
  white-space: nowrap;
}
.band-track .outline { color: transparent; -webkit-text-stroke: 1px var(--fg); font-weight: 500; }
.band-track .star { font-weight: 300; font-stretch: 100%; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Appel au contact */
.cta {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: clamp(32px, 6vw, 96px);
  padding: clamp(90px, 16vh, 180px) var(--pad);
}
.kicker { margin: 0 0 22px; color: var(--muted); }
.cta-title { margin: 0; font-size: clamp(2.6rem, 7.2vw, 8rem); line-height: 0.92; font-weight: 260; text-transform: uppercase; letter-spacing: -0.02em; }
.cta-title .line { overflow: visible; }
.circle {
  position: relative;
  display: grid;
  place-items: center;
  width: clamp(150px, 15vw, 220px);
  aspect-ratio: 1;
  border: 1px solid var(--fg);
  border-radius: 50%;
  overflow: hidden;
  isolation: isolate;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center;
  transition: color 0.45s var(--ease), transform 0.35s var(--ease);
}
.circle::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--fg);
  border-radius: 50%;
  transform: scale(0);
  transition: transform 0.6s var(--ease);
}
.circle:hover, .circle:focus-visible { color: var(--bg); }
.circle:hover::before, .circle:focus-visible::before { transform: scale(1); }

/* ------------------------------------------------------------------ contact */
.page { padding: 140px var(--pad) clamp(80px, 12vh, 140px); }
.page-title {
  margin: 0 0 clamp(48px, 8vh, 96px);
  font-size: clamp(3.6rem, 16.5vw, 20rem);
  line-height: 0.8;
  font-weight: 260;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  white-space: nowrap;
}
.contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 8vw, 140px); align-items: start; }
.contact-info { display: grid; gap: 40px; }
.contact-info .lead { margin: 0; font-size: clamp(18px, 1.7vw, 24px); line-height: 1.4; max-width: 30ch; }
.info-block p { margin: 0 0 10px; color: var(--muted); }
.big-link { font-size: clamp(18px, 1.6vw, 22px); }
.socials { display: grid; gap: 6px; justify-items: start; }

.contact-form { display: grid; gap: 34px; }
.subjects { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.subjects legend { padding: 0; margin-bottom: 14px; color: var(--muted); }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span {
  display: inline-block;
  padding: 9px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}
.chip:hover span { border-color: var(--fg); }
.chip input:checked + span { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.chip input:focus-visible + span { outline: 1px solid var(--fg); outline-offset: 3px; }

.field { position: relative; }
.field input, .field textarea {
  width: 100%;
  display: block;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  color: var(--fg);
  font: inherit;
  font-size: clamp(18px, 1.5vw, 22px);
  padding: 30px 0 12px;
  outline: none;
  resize: vertical;
}
.field textarea { min-height: 150px; line-height: 1.45; }
.field label {
  position: absolute;
  left: 0;
  top: 30px;
  color: var(--muted);
  font-size: clamp(18px, 1.5vw, 22px);
  pointer-events: none;
  transform-origin: left top;
  transition: transform 0.45s var(--ease), color 0.3s;
}
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label { transform: translateY(-30px) scale(0.62); color: var(--fg); }
.field::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--fg);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s var(--ease);
}
.field:focus-within::after { transform: scaleX(1); }
.field.has-error::after { transform: scaleX(1); background: #ff6b6b; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.form-note { margin: 0; color: var(--muted); max-width: 36ch; line-height: 1.6; }
.form-error { margin: -10px 0 0; color: #ff6b6b; }
.contact-form .pill { padding: 16px 28px; font-size: 14px; }
.contact-form .pill[disabled] { opacity: 0.6; pointer-events: none; }
.form-done { display: grid; gap: 18px; justify-items: start; padding-top: 8px; }
.form-done h2 { margin: 0; font-size: clamp(2.4rem, 5vw, 4.6rem); line-height: 0.95; font-weight: 300; text-transform: uppercase; letter-spacing: -0.02em; }
.form-done p { margin: 0; color: var(--muted); font-size: 18px; }
.form-done button { background: none; border: 0; cursor: pointer; }

/* 404 */
.lost { min-height: 100vh; min-height: 100svh; display: grid; place-content: center; justify-items: center; gap: 28px; padding: 120px var(--pad) 60px; text-align: center; }
.lost .page-title { margin: 0; font-size: clamp(7rem, 34vw, 30rem); }
.lost p { margin: 0; color: var(--muted); font-size: 18px; }

/* ------------------------------------------------------------------ pied de page */
.site-footer { border-top: 1px solid var(--line); padding: clamp(48px, 8vh, 90px) var(--pad) 0; overflow: hidden; }
.foot-cols { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.foot-cols p { margin: 0 0 14px; color: var(--muted); }
.foot-mail { font-size: clamp(17px, 1.5vw, 22px); }
.foot-cols nav, .foot-cols .socials { display: grid; gap: 6px; justify-items: start; }
/* Grand logo du bas : contour, rempli de blanc autour de la souris (--mx / --my posés par main.js). */
.foot-giant {
  display: inline-block;
  margin: clamp(48px, 9vh, 110px) 0 0;
  padding-bottom: 0.02em;
  font-weight: 800;
  font-stretch: 125%;
  line-height: 0.8;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  white-space: nowrap;
  font-size: 13vw;
  color: transparent;
  -webkit-text-stroke: 1px rgba(244, 244, 241, 0.5);
  background: radial-gradient(circle 200px at var(--mx, -999px) var(--my, -999px), var(--fg) 0, var(--fg) 40%, rgba(244, 244, 241, 0) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  user-select: none;
}
@media (hover: none) {
  .foot-giant { color: var(--fg); -webkit-text-stroke: 0; background: none; }
}
.foot-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 22px 0 26px; color: var(--muted); }

/* ------------------------------------------------------------------ curseur (souris uniquement) */
.has-cursor, .has-cursor * { cursor: none !important; }
.has-cursor input, .has-cursor textarea { cursor: text !important; }
.cursor-dot, .cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 200;
  pointer-events: none;
  border-radius: 50%;
  mix-blend-mode: difference;
  opacity: 0;
  transition: opacity 0.3s;
}
.cursor-dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: #fff; }
.cursor-ring {
  width: 38px;
  height: 38px;
  margin: -19px 0 0 -19px;
  border: 1px solid #fff;
  transition: opacity 0.3s, width 0.45s var(--ease), height 0.45s var(--ease), margin 0.45s var(--ease), background-color 0.45s var(--ease);
}
.cursor-on .cursor-dot, .cursor-on .cursor-ring { opacity: 1; }
.cursor-ring.is-hover { width: 84px; height: 84px; margin: -42px 0 0 -42px; background: #fff; }
.cursor-ring.is-text, .cursor-dot.is-text { opacity: 0 !important; }
.cursor-ring.is-down { width: 26px; height: 26px; margin: -13px 0 0 -13px; }

/* ------------------------------------------------------------------ apparitions, transitions */
.js [data-reveal] { opacity: 0; transform: translateY(48px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
main, .site-footer { transition: opacity 0.4s var(--ease), transform 0.4s var(--ease); }
.is-leaving main, .is-leaving .site-footer { opacity: 0; transform: translateY(-16px); }

/* ------------------------------------------------------------------ petits écrans */
@media (max-width: 760px) {
  .site-header { padding-block: 16px; gap: 14px; }
  .nav-link.home { display: none; }
  .pill { padding: 9px 15px; }
  /* Téléphone : accueil plus compact (le bandeau qui défile apparaît dès le premier écran), badge au-dessus à droite. */
  .hero { min-height: 0; padding-top: 104px; padding-bottom: 56px; }
  .hero-main { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .badge { order: -1; justify-self: end; width: 104px; margin: 0; }
  .hero-title .l1 { font-size: 37vw; }
  .hero-title .l2 { font-size: 17.4vw; }
  .cta { grid-template-columns: 1fr; justify-items: start; }
  .contact-grid { grid-template-columns: 1fr; }
  .page { padding-top: 110px; }
  .foot-cols { grid-template-columns: 1fr 1fr; }
  .foot-cols > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 380px) {
  .wordmark { font-size: 13px; }
  .nav { gap: 12px; }
  .nav-link { font-size: 12px; }
  .pill { padding: 8px 12px; }
}
@media (max-width: 345px) {
  .wordmark { font-size: 12px; }
  .wordmark i { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  body::after, .band-track, .badge-ring { animation: none; }
  .js .intro .ch { animation: none; transform: none; }
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  main, .site-footer { transition: none; }
}
