@font-face { font-family: "Schibsted Grotesk"; font-weight: 400; font-style: normal; font-display: swap; src: url(fonts/schibsted-grotesk-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Schibsted Grotesk"; font-weight: 900; font-style: normal; font-display: swap; src: url(fonts/schibsted-grotesk-latin-900-normal.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 400; font-style: normal; font-display: swap; src: url(fonts/ibm-plex-mono-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 500; font-style: normal; font-display: swap; src: url(fonts/ibm-plex-mono-latin-500-normal.woff2) format("woff2"); }
:root {
  --bg: #070707;
  --fg: #e8eaeb;
  --dim: #7d7a73;
  --red: #e0392b;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --sans: "Schibsted Grotesk", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --pad: max(16px, env(safe-area-inset-left));
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; background: var(--bg); color: var(--fg); overflow: hidden; }
body { font: 12px/1.3 var(--mono); letter-spacing: .04em; text-transform: uppercase; -webkit-font-smoothing: antialiased; overscroll-behavior: none; }
a { color: inherit; }
button { font: inherit; letter-spacing: inherit; text-transform: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 1px solid var(--red); outline-offset: 3px; }

#stage { position: fixed; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; cursor: grab; }
#stage.drag { cursor: grabbing; }
#stage.hover { cursor: pointer; }

/* ——— Blur progressif + vignettage + grain ——— */
.fx { position: fixed; inset: 0; pointer-events: none; }
.fx i { position: absolute; inset: 0; display: block; }
.fx .grain { opacity: .035; mix-blend-mode: overlay; background-size: 160px; }

/* ——— Interface ——— */
.hud { position: fixed; left: 0; right: 0; z-index: 5; padding: 0 var(--pad); display: flex; justify-content: space-between; pointer-events: none; }
.hud > * { pointer-events: auto; }
.hud.top { top: 0; padding-top: max(14px, env(safe-area-inset-top)); align-items: flex-start; }
.hud.bottom { bottom: 0; padding-bottom: max(14px, env(safe-area-inset-bottom)); align-items: flex-end; }
.mark { font: 900 18px/.92 var(--sans); letter-spacing: -.01em; text-decoration: none; }
.link { padding: 2px 0; border-bottom: 1px solid currentColor; }
.link:hover { color: var(--red); }
/* + / − : la barre verticale pivote et vient se coucher sur l'horizontale pendant que le signe fait un demi-tour (et inversement) */
.plus { position: relative; display: grid; place-items: center; width: 22px; height: 33px; margin: 0; color: var(--fg); transition: color .25s; }   /* même hauteur que « JULES BALZARINI » (2 lignes), même marge au bord : l'icône est centrée sur le bloc du nom */
.plus::after { content: ''; position: absolute; inset: -8px -10px -8px -14px; }   /* zone de toucher élargie, sans changer l'alignement */
.plus:hover { color: var(--red); }
.pm { position: relative; display: block; width: 22px; height: 22px; transition: rotate .5s cubic-bezier(.65, 0, .2, 1); }
.pm i { position: absolute; left: 0; right: 0; top: 50%; height: 4px; margin-top: -2px; background: currentColor; transition: rotate .5s cubic-bezier(.65, 0, .2, 1), scale .5s cubic-bezier(.65, 0, .2, 1); }
.pm i:nth-child(2) { rotate: 90deg; }
body.menu-open .pm { rotate: 180deg; }
body.menu-open .pm i:nth-child(2) { rotate: 0deg; scale: .35 1; }
@media (prefers-reduced-motion: reduce) { .pm, .pm i { transition-duration: .01ms; } }
body.menu-layer .hud.top { z-index: 40; }   /* le + (devenu −) reste au-dessus du tiroir, y compris pendant sa fermeture */

#index { list-style: none; display: flex; flex-wrap: wrap; gap: 2px 18px; max-width: 100%; }
#index button { display: flex; gap: 8px; align-items: baseline; padding: 8px 0 6px; color: #aaa69e; text-align: left; border-bottom: 2px solid transparent; transition: color .25s, border-color .25s; }
#index button b { font-weight: 500; color: #7d7a73; }
#index button:hover { color: var(--fg); }
#index button.on { color: #fff; border-bottom-color: var(--red); }
#index button.on b { color: var(--red); }

#loader { position: fixed; inset: 0; z-index: 20; background: var(--bg); display: grid; place-items: center; font: 900 clamp(64px, 18vw, 220px)/1 var(--sans); letter-spacing: -.05em; transition: opacity .9s .1s, visibility 0s 1s; }
#loader .loader-hint { position: absolute; left: 0; right: 0; bottom: 12vh; margin: 0 auto; width: max-content; padding: 0 0 8px; background: none; border: 0; color: #c9c5bc; font: 400 12px/1 var(--mono); letter-spacing: .2em; text-transform: uppercase; cursor: pointer; animation: hint-in .9s cubic-bezier(.2,.7,.2,1) both; }
#loader .loader-hint::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: #c9c5bc; transform-origin: left; animation: hint-line 2.4s .9s cubic-bezier(.6,0,.3,1) infinite; }
@keyframes hint-in { from { opacity: 0; transform: translateY(8px); letter-spacing: .5em; } to { opacity: 1; transform: none; letter-spacing: .2em; } }
@keyframes hint-line { 0% { transform: scaleX(0); transform-origin: left; } 45% { transform: scaleX(1); transform-origin: left; } 55% { transform: scaleX(1); transform-origin: right; } 100% { transform: scaleX(0); transform-origin: right; } }
#loader { user-select: none; -webkit-user-select: none; cursor: default; }
#loader.gate { cursor: pointer; }
#loader.done { opacity: 0; visibility: hidden; pointer-events: none; }

/* ——— Liste de secours ——— */
#gallery { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
#gallery h2 { font: 900 clamp(32px, 9vw, 96px)/.9 var(--sans); letter-spacing: -.04em; margin: 8vh 0 3vh; }
#gallery section { display: contents; }
#gallery img { display: block; width: 100%; height: auto; background: #111; }
body.fallback #stage, body.fallback .fx { display: none; }
body.fallback, body.fallback html { overflow: auto; }
html:has(body.fallback) { overflow: auto; }
body.fallback #gallery { position: static; width: auto; height: auto; overflow: visible; clip-path: none; padding: 96px var(--pad) 130px; }
body.fallback #gallery section { display: block; columns: 3 300px; column-gap: 14px; margin-bottom: 110px; scroll-margin-top: 70px; }
body.fallback #gallery h2 { column-span: all; display: flex; align-items: baseline; gap: 16px; margin: 0 0 26px; padding-bottom: 18px; border-bottom: 1px solid #25221f; font: 900 clamp(46px, 9.5vw, 120px)/.9 var(--sans); letter-spacing: -.05em; text-transform: uppercase; }
body.fallback #gallery h2 i { font: 500 clamp(34px, 5vw, 64px)/1 var(--mono); font-style: normal; letter-spacing: .12em; color: var(--red); align-self: flex-start; padding-top: .12em; }
body.fallback #gallery h2 small { margin-left: auto; font: 400 12px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--dim); }
body.fallback #gallery a { position: relative; display: block; margin: 0 0 14px; break-inside: avoid; overflow: hidden; background: #111; }
body.fallback #gallery a img { display: block; width: 100%; height: auto; transition: scale .6s cubic-bezier(.2, .7, .2, 1), filter .4s; }
body.fallback #gallery a::before { content: attr(data-n); position: absolute; left: 10px; top: 9px; z-index: 2; font: 500 11px/1 var(--mono); letter-spacing: .12em; color: var(--fg); text-shadow: 0 1px 6px rgba(0, 0, 0, .7); opacity: 0; transition: opacity .3s; }
body.fallback #gallery a::after { content: attr(data-cap); position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 12px 10px; z-index: 2; font: 400 11px/1.3 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--fg); background: linear-gradient(transparent, rgba(0, 0, 0, .72)); opacity: 0; translate: 0 8px; transition: opacity .3s, translate .35s; }
body.fallback #gallery a:not([data-cap])::after { content: none; }
@media (hover: hover) {
  body.fallback #gallery a:hover img { scale: 1.035; }
  body.fallback #gallery a:hover::before, body.fallback #gallery a:hover::after { opacity: 1; translate: 0 0; }
  body.fallback #gallery:has(a:hover) a:not(:hover) img { filter: brightness(.55); }
}
@media (hover: none) { body.fallback #gallery a::before { opacity: .85; } }
body.fallback .hud.bottom { background: linear-gradient(transparent, var(--bg) 70%); padding-top: 46px; }
body.fallback .hud.top { position: fixed; background: linear-gradient(var(--bg), transparent); padding-bottom: 20px; }

/* ——— Visionneuse + contact ——— */
#viewer, #contact { position: fixed; inset: 0; z-index: 30; display: grid; place-items: center; opacity: 0; transition: opacity .45s; }
#contact { transition-duration: .4s; }
/* la visionneuse laisse voir la table derrière : voile sombre + flou */
#viewer { background: transparent; }   /* le flou du fond est fait dans la scène (mise au point), sans l'assombrir */
#viewer:not([hidden]) { opacity: 1; }
#contact.in { opacity: 1; }   /* le menu apparaît / disparaît en fondu (voile + tiroir), comme le flou de la scène */
body.fallback #viewer { background: rgba(5,5,5,.96); }   /* vue galerie : pas de scène derrière, on assombrit le fond */
#viewer[hidden], #contact[hidden] { display: none; }
#viewer:not(.in) { opacity: 0; }
#viewer img { position: relative; z-index: 1; display: block; max-width: none; margin-top: -8px; object-fit: cover; background: #111; box-shadow: 0 24px 60px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.06); transition: opacity .3s; will-change: transform; }
#viewer img.loading { opacity: .5; }
#viewer .cap { position: absolute; left: var(--pad); bottom: max(16px, env(safe-area-inset-bottom)); color: var(--dim); line-height: 1.6; white-space: pre-line; }
#viewer .cap b { font-weight: 400; color: var(--fg); }
.v-close { position: absolute; top: max(14px, env(safe-area-inset-top)); right: var(--pad); padding: 2px 0; border-bottom: 1px solid currentColor; z-index: 2; }
.v-prev, .v-next { position: absolute; bottom: max(10px, env(safe-area-inset-bottom)); font-size: 20px; padding: 6px 10px; }
.v-prev { right: calc(var(--pad) + 52px); }
.v-prev svg { transform: scaleX(-1); }
.v-prev svg, .v-next svg { display: block; }
.v-next { right: var(--pad); }
.v-prev:hover, .v-next:hover, .v-close:hover { color: var(--red); }

@media (prefers-reduced-motion: reduce) { * { transition-duration: .01ms !important; } }

/* mobile : navigation par numéros, seul le nom de la section active est affiché */
@media (max-width: 700px) {
  .hud.bottom { flex-direction: column; align-items: center; gap: 4px; }
  #index { gap: 0 4px; justify-content: center; }
  #index button { padding: 10px 7px 8px; }
  #index button span { display: none; }
  #index button.on span { display: inline; }
}

.hud { transition: opacity .3s; }
body.viewing .hud { opacity: 0; pointer-events: none; }

/* tactile : pas de sélection, de loupe ni de menu d'image à l'appui long */
#stage, #viewer, #viewer img, .hud { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent; }
#viewer img { -webkit-user-drag: none; user-drag: none; touch-action: pan-y; }

.hud-r { display: flex; gap: 18px; flex-wrap: wrap; justify-content: flex-end; align-items: flex-start; }
#sound, #music { color: #aaa69e; }
#sound[aria-pressed="false"], #music[aria-pressed="false"] { color: var(--dim); border-bottom-style: dashed; }
#sound:hover, #music:hover { color: var(--red); }

/* menu : au survol, les caractères se soulèvent d'un cheveu et s'éclaircissent, l'un après l'autre */
#index button i { display: inline-block; font-style: normal; }
@media (hover: hover) {
  #index button:hover i { animation: menu-hop .4s ease-out calc(var(--i) * 22ms) both; }
}
@keyframes menu-hop { 0% { transform: translateY(0); } 40% { transform: translateY(-2px); color: #fff; } 100% { transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { #index button:hover i { animation: none; } }

/* Contact : aligné sur la marge gauche du site (comme le logo et le menu), pas centré */

/* ——— Menu « + » : tiroir fin à droite, index numéroté (un bloc ouvert à la fois) ; plein écran étroit sur téléphone ——— */
#contact { display: block; background: rgba(0, 0, 0, .32); }
#contact .panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(430px, 100%); display: flex; flex-direction: column; padding: 84px 32px max(26px, env(safe-area-inset-bottom)); background: rgba(8, 8, 8, .9); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); border-left: 1px solid #25221f; translate: 100% 0; transition: translate .4s cubic-bezier(.2, .7, .2, 1); overflow: auto; }
#contact.in .panel { translate: 0 0; }
.acc { list-style: none; border-top: 1px solid #25221f; }
.acc li { border-bottom: 1px solid #25221f; }
.acc .head { display: grid; grid-template-columns: 64px 1fr auto; align-items: baseline; width: 100%; padding: 22px 0; text-align: left; color: var(--dim); transition: color .25s; }
.acc .head i { font: 500 30px/1 var(--mono); font-style: normal; color: #7d7a73; letter-spacing: -.02em; }
.acc .head span { font: 900 30px/1 var(--sans); letter-spacing: -.045em; text-transform: uppercase; }
.acc .head b { font: 400 14px/1 var(--mono); color: #7d7a73; transition: rotate .3s; }
.acc .head:hover, .acc li.open .head { color: var(--fg); }
.acc li.open .head i { color: var(--red); }
.acc li.open .head b { rotate: 180deg; }
.acc .head:hover b { color: var(--red); }
.acc .body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s ease; }
.acc li.open .body { grid-template-rows: 1fr; }
.acc .body > div { overflow: hidden; padding-left: 64px; }
.acc .body a { display: block; color: var(--fg); padding: 5px 0; width: max-content; max-width: 100%; border-bottom: 1px solid transparent; }
.acc .body a:hover { color: var(--red); }
.acc .body p { color: var(--dim); padding: 6px 0 0; }
.acc li.open .body > div { padding-bottom: 24px; }
#audio-row { display: flex; align-items: baseline; gap: 22px; margin-top: auto; padding-top: 26px; border-top: 1px solid #25221f; }
@media (max-width: 700px) { #contact .panel { padding-left: var(--pad); padding-right: var(--pad); } .acc .head span { font-size: 27px; } .acc .head i, .acc li.row > i { font-size: 27px; } .acc .head, .acc li.row { grid-template-columns: 58px 1fr auto; } .acc .body > div { padding-left: 58px; } }
@media (prefers-reduced-motion: reduce) { #contact .panel, .acc .body { transition-duration: .01ms; } }

/* contact : « Mail : … » */
.cl { display: grid; gap: 2px; }
.cl > div { display: grid; grid-template-columns: 96px 1fr; align-items: baseline; padding: 5px 0; }
.cl dt { color: var(--dim); }
.cl dd a { color: var(--fg); border-bottom: 1px solid transparent; }
.cl dd a:hover { color: var(--red); border-bottom-color: currentColor; }
/* interrupteur 3D / Gallery : deux mots, un trait rouge qui glisse de l'un à l'autre (comme le menu du bas) */
.acc li.row { display: grid; grid-template-columns: 64px 1fr auto; align-items: center; padding: 18px 0; color: var(--dim); }
.acc li.row > i { font: 500 30px/1 var(--mono); font-style: normal; color: #7d7a73; letter-spacing: -.02em; }
.acc li.row > span { font: 900 30px/1 var(--sans); letter-spacing: -.045em; text-transform: uppercase; color: var(--dim); }
.switch { position: relative; display: inline-grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid #34302b; }
.switch button { position: relative; z-index: 1; min-width: 72px; padding: 8px 6px 10px; text-align: center; font: 500 12px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: #7d7a73; transition: color .3s; cursor: pointer; }
.switch .thumb { position: absolute; z-index: 2; left: 0; bottom: -1px; width: 50%; height: 2px; background: var(--red); transition: translate .35s cubic-bezier(.3, .7, .2, 1); }
.switch.gallery .thumb { translate: 100% 0; }
.switch:not(.gallery) button[data-v="3d"], .switch.gallery button[data-v="gallery"] { color: var(--fg); }
.switch:not(.gallery) button[data-v="gallery"]:hover, .switch.gallery button[data-v="3d"]:hover { color: var(--fg); }
@media (max-width: 700px) { .acc li.row > span { font-size: 27px; } }

/* passage 3D ↔ galerie : voile qui monte, la scène se resserre légèrement, puis les photos de la galerie arrivent l'une après l'autre */
#veil { position: fixed; inset: 0; z-index: 60; background: var(--bg); opacity: 0; pointer-events: none; transition: opacity .45s ease; }
#veil.on { opacity: 1; pointer-events: auto; }
#stage { transition: scale .5s ease; }
body.veil-on #stage { scale: 1.05; }
@keyframes gal-in { from { opacity: 0; translate: 0 22px; } to { opacity: 1; translate: 0 0; } }
body.gal-anim #gallery a, body.gal-anim #gallery h2 { animation: gal-in .7s cubic-bezier(.2, .7, .2, 1) both; animation-delay: calc(var(--i, 0) * 28ms + .1s); }
@media (prefers-reduced-motion: reduce) { #veil, #stage { transition-duration: .01ms; } body.gal-anim #gallery a, body.gal-anim #gallery h2 { animation: none; } }

/* visionneuse : le « − » (même dessin que le menu) remplace « Close » ; il naît d'un « + » qui pivote à l'ouverture */
#viewer .v-close { top: max(14px, env(safe-area-inset-top)); right: var(--pad); width: 22px; height: 33px; padding: 0; border: 0; display: grid; place-items: center; color: var(--fg); }
#viewer .v-close::after { content: ''; position: absolute; inset: -8px -10px -8px -14px; }
#viewer .v-close:hover { color: var(--red); }
#viewer.in .pm { rotate: 180deg; }
#viewer.in .pm i:nth-child(2) { rotate: 0deg; scale: .35 1; }
#viewer.closing { transition-delay: .26s; }   /* à la fermeture, le voile de la visionneuse attend un instant : on voit le − redevenir + */
#viewer:not(.in) .pm, #viewer:not(.in) .pm i { transition-duration: .3s; }

/* ——— Page « Legal notice » ——— */
html:has(body.legal), html.legal-root { overflow-x: hidden; overflow-y: auto; height: auto; }
body.legal { overflow: visible; height: auto; min-height: 100%; overscroll-behavior: auto; }
.legal-page { max-width: 780px; margin: 0 auto; padding: 120px var(--pad) 120px; }
.legal-doc h1 { font: 900 clamp(56px, 12vw, 128px)/.88 var(--sans); letter-spacing: -.055em; text-transform: uppercase; }
.legal-doc .upd { margin: 22px 0 70px; color: var(--dim); }
.legal-doc section { padding: 26px 0 30px; border-top: 1px solid #25221f; }
.legal-doc h2 { display: flex; align-items: baseline; gap: 20px; margin-bottom: 18px; font: 900 28px/1 var(--sans); letter-spacing: -.045em; text-transform: uppercase; }
.legal-doc h2 i { font: 500 28px/1 var(--mono); font-style: normal; letter-spacing: -.02em; color: var(--red); }
.legal-doc h3 { margin: 26px 0 10px; font: 400 12px/1 var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--dim); }
.legal-doc p, .legal-doc li { line-height: 1.75; color: #c9c5bc; margin-bottom: 12px; text-transform: none; letter-spacing: 0; font-size: 13px; }
.legal-doc ul { list-style: none; }
.legal-doc li { padding-left: 18px; position: relative; }
.legal-doc li::before { content: ''; position: absolute; left: 0; top: .85em; width: 8px; height: 1px; background: var(--red); }
.legal-doc b { color: var(--fg); font-weight: 500; }
.legal-doc a { color: var(--fg); border-bottom: 1px solid #4a463f; transition: color .25s, border-color .25s; }
.legal-doc a:hover { color: var(--red); border-bottom-color: var(--red); }
body.legal .hud.top { position: fixed; background: linear-gradient(var(--bg) 55%, transparent); padding-bottom: 36px; }
/* menu « + » : ligne lien (Legal notice) */
.acc li.row > a { font: 900 30px/1 var(--sans); letter-spacing: -.045em; text-transform: uppercase; color: var(--dim); text-decoration: none; border: 0; transition: color .25s; }
.acc li.row > a:hover, .acc li.row:hover > b { color: var(--fg); }
.acc li.row > b { font: 400 14px/1 var(--mono); color: var(--dim); }
@media (max-width: 700px) { .acc li.row > a { font-size: 27px; } .legal-page { padding-top: 104px; } }

/* Contact : toujours ouvert, pas de flèche ni de repli */
.acc li.fixed .head { cursor: default; color: var(--fg); }
.acc li.fixed .head i { color: var(--red); }
.acc li.fixed .head:hover { color: var(--fg); }
/* page Legal : léger fond translucide (la scène floutée, très atténuée, en arrière-plan) */
html:has(body.legal) { background: var(--bg); }
body.legal { background: transparent; }
body.legal::before { content: ''; position: fixed; inset: 0; z-index: -1; background: url(og.jpg) center / cover no-repeat; filter: blur(28px) brightness(.5) saturate(.8); opacity: .55; transform: scale(1.1); pointer-events: none; }
.legal-page { background: rgba(7, 7, 7, .62); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-left: 1px solid #25221f; border-right: 1px solid #25221f; }
@media (max-width: 820px) { .legal-page { border-left: 0; border-right: 0; } }

/* Legal dans le tiroir du menu : le texte remplace le menu (sans quitter la page) */
.lv { display: none; }
#contact .panel.lv-on .acc, #contact .panel.lv-on #audio-row { display: none; }
#contact .panel.lv-on .lv { display: block; }
#contact.legal-open .panel { width: min(560px, 100%); }
#contact .panel { transition: translate .4s cubic-bezier(.2, .7, .2, 1), width .35s ease; }
.lv-back { margin: -6px 0 26px; padding: 4px 0; font: 500 12px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--dim); border-bottom: 1px solid #34302b; cursor: pointer; transition: color .25s; }
.lv-back:hover { color: var(--red); }
.lv-body.legal-doc h1 { font-size: clamp(44px, 9vw, 64px); }
.lv-body.legal-doc .upd { margin: 14px 0 30px; }

.seo-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }   /* texte pour les moteurs de recherche et lecteurs d'écran (même contenu que les cartes de la section About) */
