/* ── Contact ────────────────────────────────────────────────────────────
   « Entrons en contact. » La page est toujours sombre, comme l'atelier et
   le manifeste. Les valeurs viennent de la maquette (Ideogenium Contact,
   Claude Design) ; celles qui dépendent de la taille de la scène ou du
   défilement sont écrites par contact.js.
   ------------------------------------------------------------------- */

/* ── Polices (auto-hébergées, les mêmes fichiers que l'accueil) ─────── */
@font-face {
  font-family: 'Space Grotesk'; font-style: normal; font-weight: 300 500; font-display: swap;
  src: url('/fonts/space-grotesk-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Space Grotesk'; font-style: normal; font-weight: 300 500; font-display: swap;
  src: url('/fonts/space-grotesk-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('/fonts/plex-mono-400-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('/fonts/plex-mono-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ── Les jetons : ceux du thème sombre de l'accueil ─────────────────── */
html {
  --bg: #05060A;
  --ink: #EEF1F6; --ink2: #A8B0BE; --ink3: #98A0AE; --ink4: #8B93A2;
  --line: rgba(238, 241, 246, .07); --line2: rgba(238, 241, 246, .14);
  --sig: #4FD6E8;
  --gold: #CDB27A;
  --sans: 'Space Grotesk', ui-sans-serif, system-ui, sans-serif;
  --mono: 'IBM Plex Mono', monospace;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --gutter: clamp(18px, 4vw, 64px);
  color-scheme: dark;
  background: var(--bg);
}
* { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--sans); font-weight: 300; font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
button { font: inherit; color: inherit; }
a { color: var(--ink); text-decoration: none; }
::selection { background: color-mix(in oklab, var(--sig) 30%, transparent); }
:focus { outline: none; }
:focus-visible { outline: 1.5px solid var(--sig); outline-offset: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
/* en attendant la traduction (voir le script de tête) */
html.lang-wait [data-i18n] { visibility: hidden; }

.u-num { font-family: var(--mono); font-size: 10px; letter-spacing: .18em; color: var(--gold); }
/* « ↗ » : la flèche de l'accueil (.u-arrow), levée */
.arrow {
  position: relative; display: inline-block; flex: 0 0 auto;
  width: .8em; height: 1px; background: currentColor; rotate: -45deg;
}
.arrow::before, .arrow::after {
  content: ''; position: absolute; right: 0; top: 0; width: .38em; height: 1px;
  background: currentColor; transform-origin: 100% 50%; transform: rotate(40deg);
}
.arrow::after { transform: rotate(-40deg); }

@keyframes u-fade { from { opacity: 0; } }
@keyframes u-drop { from { opacity: 0; transform: translateY(-6px); } }
@keyframes rise-lg { from { opacity: 0; transform: translateY(26px); } }
@keyframes cue-grow { 0% { transform: scaleY(0); opacity: 1; } 55% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }
@keyframes spark {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(.2); }
  18% { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(2.4); }
}

.root { position: relative; width: 100%; overflow-x: clip; background: var(--bg); }

/* ── 01 · Les mains ─────────────────────────────────────────────────────
   Une piste de 240vh ; la scène y reste collée pendant que les mains
   s'approchent (contact.js lit l'avancée sur la piste). */
.track { position: relative; height: 240vh; }
.hands { position: sticky; top: 0; height: 100vh; height: 100dvh; min-height: 560px; overflow: hidden; }
.glow {
  position: absolute; left: 50%; top: 46%; width: min(96vw, 1400px); height: min(60vw, 760px);
  transform: translate(-50%, -50%); border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(205, 178, 122, .12), rgba(205, 178, 122, .035) 52%, transparent);
}

.top {
  position: absolute; z-index: 6; top: 0; left: 0; right: 0;
  padding: max(clamp(18px, 2.8vh, 30px), env(safe-area-inset-top)) var(--gutter) 0;
  animation: u-drop .9s var(--ease) .2s backwards;
}
.top-in { max-width: 1560px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.crumb { display: flex; align-items: center; gap: 14px; min-width: 0; white-space: nowrap; }
.brand {
  padding: 8px 0; font-family: var(--mono); font-size: 10px; letter-spacing: .28em; text-transform: uppercase;
  color: var(--ink2); transition: color .45s var(--ease);
}
.brand:hover { color: var(--ink); }
.dash { flex: 0 0 auto; width: 24px; height: 1px; background: var(--gold); }
.crumb-n { font-family: var(--mono); font-size: 10px; letter-spacing: .2em; color: var(--ink4); }
.crumb-t { font-size: 15px; letter-spacing: -.01em; color: var(--ink); }
.top-r { display: flex; align-items: center; gap: clamp(18px, 2vw, 28px); }
.langs { display: flex; align-items: center; gap: 7px; font-size: 13.5px; letter-spacing: .04em; }
.langs > span { color: var(--ink4); }
.langs button {
  padding: 6px 0; border: 0; background: none; cursor: pointer; letter-spacing: inherit;
  color: var(--ink3); transition: color .45s var(--ease);
}
.langs button:hover, .langs button[aria-pressed="true"] { color: var(--ink); }
.close {
  position: relative; flex: 0 0 auto; width: 34px; height: 34px; border: 1px solid var(--line2); border-radius: 50%;
  color: var(--ink2); transition: border-color .45s var(--ease), color .45s var(--ease);
}
.close:hover { border-color: var(--ink2); color: var(--ink); }
.close span {
  position: absolute; left: 50%; top: 50%; width: 12px; height: 1px; margin: -.5px 0 0 -6px;
  background: currentColor; transform: rotate(45deg);
}
.close span + span { transform: rotate(-45deg); }

.h1 {
  position: absolute; z-index: 4; left: 0; right: 0; top: clamp(80px, 12.5vh, 150px);
  margin: 0; padding: 0 var(--gutter); text-align: center;
  font-size: clamp(36px, 6vw, 104px); line-height: 1; font-weight: 300; letter-spacing: -.05em; text-wrap: balance;
}
.h1 span { display: inline-block; animation: rise-lg 1.2s var(--ease) .3s backwards; }
.h1 .h1b { color: var(--ink2); animation-delay: .45s; }

/* Le nom, en bas : éteint (bronze sombre), puis allumé au contact (or) */
.name {
  position: absolute; z-index: 1; left: 0; right: 0; bottom: clamp(14px, 3.6vh, 40px);
  display: grid; place-items: center; pointer-events: none; user-select: none;
  animation: rise-lg 1.6s var(--ease) .5s backwards;
}
.name span {
  grid-area: 1 / 1; padding: 0 0 .1em;
  font-size: clamp(54px, 13.5vw, 250px); font-weight: 300; line-height: .92; letter-spacing: -.055em; white-space: nowrap;
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.name-dim { background: linear-gradient(180deg, #5B5039 0%, #3A3326 60%, #221F19 100%); }
.name-lit { background: linear-gradient(180deg, #F3E4C0 0%, #CDB27A 45%, #6E5A33 100%); opacity: 0; transition: opacity 1.4s var(--ease); }

.stage { position: absolute; z-index: 2; left: 0; right: 0; top: 24%; height: 44%; }
.robot { position: absolute; opacity: 0; will-change: transform; }
.hand-box { position: absolute; inset: 0; }
/* la même toile, rendue d'avance (tools/pod-capture : la main figée, à 1440 × 900) :
   étirée à la boîte, le bout de l'index tombe là où main-tendue.js le poserait */
.robot-flat { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: fill; }
.robot-alt { position: absolute; left: 0; top: 0; width: 50%; height: 100%; pointer-events: none; }
.marble {
  position: absolute; left: 0; top: 0; max-width: none; opacity: 0; will-change: transform;
  user-select: none; -webkit-user-select: none; -webkit-user-drag: none;
}
/* le fil d'or tendu entre les deux index */
.thread { position: absolute; z-index: 3; left: 0; top: 0; height: 1px; transform-origin: 0 50%; opacity: 0; pointer-events: none; }
.thread div {
  width: 100%; height: 1px;
  background: linear-gradient(90deg, rgba(205, 178, 122, .25), #E9D6A6 50%, rgba(205, 178, 122, .25));
  box-shadow: 0 0 10px 1px rgba(205, 178, 122, .45);
}
.flash {
  position: absolute; z-index: 4; left: 50%; top: 50%; width: min(46vw, 560px); aspect-ratio: 1; border-radius: 50%;
  opacity: 0; pointer-events: none; mix-blend-mode: screen;
  background: radial-gradient(closest-side, rgba(255, 244, 214, .95), rgba(233, 214, 166, .55) 18%, rgba(205, 178, 122, .16) 46%, transparent);
}
.flash.is-on { animation: spark 1.5s cubic-bezier(.2, .7, .2, 1) forwards; }

.cue {
  position: absolute; z-index: 5; left: 50%; top: 68%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 6px 10px 6px calc(10px + .22em); border: 0; background: none; cursor: pointer;
  font-family: var(--mono); font-size: 10px; letter-spacing: .22em; text-transform: uppercase; color: var(--ink2);
  transition: color .45s var(--ease), opacity .6s var(--ease);
  animation: u-fade 1s var(--ease) 1.6s backwards;
}
.cue:hover { color: var(--ink); }
.cue-line { position: relative; display: block; width: 1px; height: 26px; overflow: hidden; background: var(--line2); }
.cue-line span {
  position: absolute; inset: 0; background: var(--gold); transform-origin: 50% 0;
  animation: cue-grow 2.6s var(--ease) infinite;
}

/* ── 02 · Les réseaux ───────────────────────────────────────────────── */
.arena { position: relative; min-height: max(580px, 86vh); min-height: max(580px, 86dvh); border-top: 1px solid var(--line); }
.arena-head {
  position: relative; z-index: 1; max-width: 1560px; margin: 0 auto;
  padding: clamp(56px, 10vh, 120px) var(--gutter) 0;
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 40px;
  pointer-events: none;
}
.arena-t { display: flex; flex-direction: column; gap: 16px; }
.kicker {
  margin: 0; display: flex; align-items: baseline; gap: 12px;
  font-family: var(--mono); font-size: 10px; letter-spacing: .22em; text-transform: uppercase; color: var(--ink3);
}
.arena h2 {
  margin: 0; font-size: clamp(30px, 4.4vw, 64px); line-height: 1.04; font-weight: 300; letter-spacing: -.045em; text-wrap: balance;
}
.arena h2 .dim { color: var(--ink2); }
.hint { font-family: var(--mono); font-size: 10px; letter-spacing: .22em; text-transform: uppercase; color: var(--ink3); }

/* Sans script : une rangée de liens, sous le titre. */
.nets {
  list-style: none; margin: 0 auto; padding: clamp(32px, 6vh, 64px) var(--gutter) 0; max-width: 1560px;
  display: flex; flex-wrap: wrap; gap: 12px 28px;
}
.net { display: inline-flex; align-items: center; color: var(--ink2); }
.net-l { display: inline-flex; align-items: center; gap: .36em; line-height: 1; white-space: nowrap; }
.net-ico { flex: 0 0 auto; width: 1.02em; height: 1.02em; fill: currentColor; }
.net-ico.is-line { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; }

/* Avec le script : chaque lien couvre son galet (la toile .pebbles le
   dessine dessous) ; contact.js le place à chaque image. Le texte est gravé
   dans la matière : encre de la matière, un reflet sous le trait. */
html.js .nets { position: absolute; z-index: 8; left: 0; top: 0; width: 0; height: 0; margin: 0; padding: 0; display: block; }
html.js .nets li { display: contents; }
html.js .net {
  position: absolute; left: 0; top: 0; display: grid; place-items: center;
  opacity: 0; pointer-events: none; will-change: transform;
  cursor: pointer; user-select: none; -webkit-user-select: none; -webkit-user-drag: none;
  /* au doigt : le glissé vertical fait défiler, celui de côté attrape le
     galet (contact.js, grip) ; un appui long n'ouvre pas l'aperçu du lien */
  -webkit-tap-highlight-color: transparent; touch-action: pan-y; -webkit-touch-callout: none;
  transition: box-shadow .4s var(--ease);
}
/* avant le contact : invisibles mais lisibles (lecteurs d'écran, clavier : le focus déclenche le contact) */
html.js .net.is-in { opacity: 1; pointer-events: auto; }
html.js.fine .net { cursor: grab; }
html.js.fine .net:active { cursor: grabbing; }
html.js .net-l { position: relative; font-weight: 300; letter-spacing: -.02em; pointer-events: none; }
/* les galets en 3D : le nom est gravé dans la toile (galets.js, label) — le
   texte du lien, qui sert à le mesurer et à le lire, ne se voit pas */
html.peb3d .net-l { visibility: hidden; }
html.js .net[data-mat="porcelain"] { color: rgba(18, 19, 24, .86); }
html.js .net[data-mat="porcelain"] .net-l { text-shadow: 0 1px 0 rgba(255, 255, 255, .55), 0 -.5px 0 rgba(0, 0, 0, .12); }
html.js .net[data-mat="polymer"] { color: rgba(226, 230, 238, .9); }
html.js .net[data-mat="polymer"] .net-l { text-shadow: 0 -1px 0 rgba(0, 0, 0, .7), 0 1px 0 rgba(255, 255, 255, .06); }
/* l'émail teinté (la couleur du réseau) : le nom et le logo en blanc */
html.js .net[data-mat="email"] { color: rgba(255, 255, 255, .95); }
html.js .net[data-mat="email"] .net-l { text-shadow: 0 1px 1px rgba(0, 0, 0, .28), 0 -.5px 0 rgba(0, 0, 0, .12); }
/* TikTok (sans WebGL) : son nom, doublé de son cyan et de son rose */
html.js .net[data-net="tiktok"] .net-n { text-shadow: -.045em -.03em 0 #25F4EE, .045em .03em 0 #FE2C55; }
/* le halo de survol, dans la couleur du réseau (la toile allume l'anneau) */
html.js .net.is-hover { box-shadow: 0 0 70px -8px var(--glow); }

/* Sans WebGL : les galets de la maquette, en dégradés. */
html.js.flat .net { box-shadow: inset 0 1px 0 var(--lift), inset 0 -16px 30px -12px rgba(0, 0, 0, .55), 0 26px 40px -20px rgba(0, 0, 0, .95); }
html.js.flat .net[data-mat="porcelain"] { --lift: rgba(255, 255, 255, .9); background: radial-gradient(120% 120% at 30% 22%, #FFFFFF 0%, #EEECE6 34%, #D3CFC6 72%, #A9A49A 100%); }
html.js.flat .net[data-mat="polymer"] { --lift: rgba(255, 255, 255, .14); background: radial-gradient(120% 120% at 30% 20%, #3B3D45 0%, #18191E 42%, #0A0B0E 100%); }
html.js.flat .net[data-mat="email"] { --lift: rgba(255, 255, 255, .4); background: radial-gradient(120% 120% at 30% 20%, rgba(255, 255, 255, .28), rgba(255, 255, 255, 0) 55%), var(--teinte); }
html.js.flat .net.is-hover { box-shadow: inset 0 1px 0 var(--lift), 0 0 0 1.5px var(--glow), 0 0 70px -8px var(--glow), 0 26px 40px -20px rgba(0, 0, 0, .95); }

.pebbles { position: fixed; z-index: 7; inset: 0; width: 100%; height: 100%; pointer-events: none; display: block; }

/* ── Le pied de page ────────────────────────────────────────────────── */
.foot { position: relative; z-index: 2; max-width: 1560px; margin: 0 auto; padding: 0 var(--gutter) max(clamp(26px, 5vh, 48px), env(safe-area-inset-bottom)); }
.foot-top {
  position: relative; padding-top: clamp(36px, 6vh, 64px);
  display: flex; flex-wrap: wrap; gap: clamp(36px, 4vw, 56px) clamp(28px, 5vw, 96px);
}
.foot-top::before {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 1px;
  background: linear-gradient(90deg, var(--gold), rgba(205, 178, 122, .3) 60%, transparent);
}
.foot-brand { flex: 1.4 1 280px; display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.foot-mark { display: inline-flex; align-items: center; gap: 14px; }
.mark {
  position: relative; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 9px;
  background: #0A0A0B; border: 1px solid var(--line2);
  font-family: Georgia, 'Times New Roman', serif; font-size: 18px; line-height: 1; color: #F2F0EC;
}
.mark span { position: absolute; inset: 5px; border: 1px solid rgba(242, 240, 236, .3); border-radius: 6px; }
.foot-name { font-family: var(--mono); font-size: 10px; letter-spacing: .28em; text-transform: uppercase; color: var(--ink2); }
.blurb { margin: 0; font-size: 14px; line-height: 1.6; letter-spacing: -.005em; color: var(--ink2); }
.col { flex: 0 1 170px; display: flex; flex-direction: column; gap: 9px; }
.col-t { font-family: var(--mono); font-size: 10px; letter-spacing: .22em; text-transform: uppercase; color: var(--ink4); }
.col-a {
  display: inline-flex; align-items: center; gap: 10px; align-self: flex-start; padding: 2px 0;
  font-size: 14.5px; color: var(--ink2); transition: color .45s var(--ease);
}
.col-a:hover, .col-a[aria-current="page"] { color: var(--ink); }
.trace {
  padding-bottom: 2px;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0% 1px no-repeat;
  transition: background-size .5s var(--ease);
}
.col-a:hover .trace, .col-a[aria-current="page"] .trace { background-size: 100% 1px; }
.foot-bottom {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-top: clamp(36px, 6vh, 64px); padding-top: 14px; border-top: 1px solid var(--line);
}
.foot-c { font-family: var(--mono); font-size: 10px; letter-spacing: .22em; text-transform: uppercase; color: var(--ink3); }
.to-top {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 0; border: 0; cursor: pointer;
  font-size: 13px; color: var(--ink2);
  background: linear-gradient(currentColor, currentColor) 0 100% / 0% 1px no-repeat;
  transition: background-size .5s var(--ease), color .45s var(--ease);
}
.to-top:hover { background-size: 100% 1px; color: var(--ink); }

/* ── Petits écrans ──────────────────────────────────────────────────── */
@media (max-width: 560px) {
  .crumb { gap: 10px; }
  .crumb .brand { display: none; }
  .crumb .dash { width: 16px; }
}
/* Au doigt, des cibles à la taille du doigt (44 px) sans rien déplacer : la
   marge négative rend ce que le rembourrage ajoute. */
@media (pointer: coarse) {
  .langs button { padding: 14px 5px; margin: -8px -5px; }
  .close::before { content: ''; position: absolute; inset: -6px; border-radius: 50%; }
  .col { gap: 0; }
  .col-a { padding: 7px 0; }
  .to-top { padding: 13px 0; margin: -7px 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
