/* Shared frame for the 10 directions. Each page commits to one look: dark (default) or light. */
@font-face { font-family: "HN"; src: url("fonts/HelveticaNeue-Roman.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "HN"; src: url("fonts/HelveticaNeue-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "HN"; src: url("fonts/HelveticaNeue-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --bg: #0a0a0a; --fg: #ffffff; --mute: #9a9a9a; --line: rgba(255, 255, 255, .38);
  --font: "HN", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --gut: max(24px, env(safe-area-inset-left, 0px));
  --gut-r: max(24px, env(safe-area-inset-right, 0px));
  color-scheme: dark;
}
:root[data-look="light"] { --bg: #ffffff; --fg: #111111; --mute: #5c5c5c; --line: rgba(17, 17, 17, .32); color-scheme: light; }
:root.blend { --fg: #ffffff; --mute: #ffffff; --line: rgba(255, 255, 255, .7); }

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--fg); }
body { font-family: var(--font); font-size: 16px; line-height: 1.45; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

.gl { position: fixed; inset: 0; width: 100%; height: 100%; display: block; }
.nogl::after { content: "Cette direction a besoin de WebGL. Essayez un navigateur récent sur ordinateur."; position: fixed; inset: 0; display: grid; place-items: center; padding: 24px; text-align: center; }

.hd { position: fixed; z-index: 10; inset: 0 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: calc(22px + env(safe-area-inset-top, 0px)) var(--gut-r) 0 var(--gut); pointer-events: none; }
.hd a { pointer-events: auto; }
.logo { display: block; color: var(--fg); }
.logo svg { display: block; height: 22px; width: auto; fill: currentColor; }
.nav { display: flex; gap: 6px; }
.cap { display: inline-flex; align-items: center; height: 34px; padding: 0 15px; border: 1px solid var(--line); border-radius: 999px;
  font-size: 12px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; color: var(--fg);
  transition: background-color .25s, color .25s, border-color .25s; }
.cap:hover, .cap--fill { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.cap--fill:hover { background: transparent; color: var(--fg); }

.ft { position: fixed; z-index: 10; inset: auto 0 0; display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 16px;
  padding: 0 var(--gut-r) calc(18px + env(safe-area-inset-bottom, 0px)) var(--gut); font-size: 12px; color: var(--mute); pointer-events: none; }
.ft p { margin: 0; }
.ft__dir span { color: var(--fg); margin-right: 6px; font-variant-numeric: tabular-nums; }
.ft__how { text-align: center; letter-spacing: .04em; }
.ft__nav { display: flex; justify-content: flex-end; gap: 14px; }
.ft__nav a { pointer-events: auto; color: var(--fg); text-decoration: none; }
.ft__nav a:hover { text-decoration: underline; text-underline-offset: 3px; }
.blend .hd, .blend .ft { mix-blend-mode: difference; }

/* page type */
.kicker { margin: 0 0 18px; font-size: 13px; letter-spacing: .02em; color: var(--mute); }
.h1 { margin: 0; font-weight: 500; font-size: clamp(46px, 9.4vw, 158px); line-height: .88; letter-spacing: -.055em; text-wrap: balance; }
.mask { display: block; overflow: hidden; padding-bottom: .05em; }
.rise { display: block; animation: rise 1.2s var(--ease) both; }
.rise.d2 { animation-delay: .1s; }
.rise.d3 { animation-delay: .2s; }
@keyframes rise { from { transform: translateY(105%); } to { transform: none; } }
.btn { display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 24px; border-radius: 999px; border: 1px solid var(--fg);
  background: var(--fg); color: var(--bg); font-size: 15px; font-weight: 500; text-decoration: none; transition: background-color .25s, color .25s; }
.btn:hover { background: transparent; color: var(--fg); }
.over { position: fixed; z-index: 5; pointer-events: none; }
.over a, .over button { pointer-events: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (max-width: 760px) {
  .nav .cap:not(.cap--fill) { display: none; }
  .ft { grid-template-columns: 1fr auto; }
  .ft__how { display: none; }
  .logo svg { height: 18px; }
}
@media (prefers-reduced-motion: reduce) { .rise { animation: none; } }
