@font-face { font-family: "Inter Tight"; src: url("fonts/inter-tight-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }

:root {
  --bg: #FFFFFF;
  --ink: #0E0E0E;
  --mute: #6B6B6B;      /* 5.3:1 sur blanc */
  --line: #E6E6E6;
  --font: "Inter Tight", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --pad: clamp(16px, 2.6vw, 40px);
  --gap: clamp(6px, .8vw, 12px);
  --band-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg); color: var(--ink);
  font-family: var(--font); font-size: 16px; line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
a, button, .gallery figure { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 1.5px solid var(--ink); outline-offset: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; padding: 12px 18px; background: var(--ink); color: #fff; font-size: 14px; }
.skip:focus { top: 12px; }

/* Petites capitales espacées */
.label { font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; }

/* ---------- En-tête ---------- */
.top { display: flex; align-items: center; justify-content: space-between; padding: 10px var(--pad); }
.wordmark { display: inline-flex; align-items: center; min-height: 44px; font-size: 13px; font-weight: 600; letter-spacing: .32em; text-transform: uppercase; }
.top nav { display: flex; gap: 4px; }
.top nav a {
  position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px;
  font-size: 14px; color: var(--mute); transition: color .2s;
}
.top nav a:last-child { padding-right: 0; }
.top nav a:hover, .top nav a[aria-current] { color: var(--ink); }
.top nav a[aria-current]::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 12px; height: 1px; background: currentColor; }
.top nav a:last-child[aria-current]::after { right: 0; }

/* ---------- Galerie ---------- */
.gallery {
  columns: 3 320px; column-gap: var(--gap);
  padding: 0 var(--pad) calc(var(--band-h) + 48px + env(safe-area-inset-bottom));
}
.gallery figure { position: relative; margin: 0 0 var(--gap); break-inside: avoid; cursor: zoom-in; }
.gallery figure > img { display: block; width: 100%; height: auto; background: #F2F2F2; color: transparent; transition: opacity .3s ease-out; }
@media (hover: hover) {
  .gallery:hover figure > img { opacity: .55; }
  .gallery figure:hover > img { opacity: 1; }
}
.gallery figure:active > img { opacity: .8; }

/* ---------- Avant / après (curseur) ---------- */
.ba { position: relative; overflow: hidden; --pos: 50%; background: #F2F2F2; transition: opacity .3s ease-out; user-select: none; -webkit-user-select: none; }
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; color: transparent; pointer-events: none; -webkit-user-drag: none; }
.ba .ba-before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba-tag {
  position: absolute; top: 12px; padding: 5px 10px; z-index: 1;
  font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: #fff; background: rgba(0,0,0,.55); pointer-events: none; transition: opacity .2s;
}
.ba-tag-before { left: 12px; }
.ba-tag-after { right: 12px; }
/* Poignée : ligne verticale + bouton rond, seule zone à saisir */
.ba-handle {
  position: absolute; z-index: 2; top: 0; bottom: 0; left: var(--pos);
  width: 44px; margin: 0 0 0 -22px; padding: 0; border: 0; background: none;
  cursor: ew-resize; touch-action: none;
}
.ba-handle::before { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; margin-left: -1px; background: #fff; box-shadow: 0 0 6px rgba(0,0,0,.35); }
.ba-knob {
  position: absolute; top: 50%; left: 50%; width: 46px; height: 46px; transform: translate(-50%, -50%);
  display: grid; place-items: center; border-radius: 50%;
  background: #fff; color: var(--ink); box-shadow: 0 2px 12px rgba(0,0,0,.3);
  transition: transform .15s ease-out;
}
.ba-handle:hover .ba-knob, .ba-handle.dragging .ba-knob { transform: translate(-50%, -50%) scale(1.08); }
.ba-knob svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: square; }
.ba-handle:focus-visible { outline: none; }
.ba-handle:focus-visible .ba-knob { outline: 2px solid var(--ink); outline-offset: 3px; }
@media (hover: hover) {
  .gallery:hover .ba { opacity: .55; }
  .gallery figure:hover .ba { opacity: 1; }
}
.lightbox .ba { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: min(100vw, calc(100dvh * var(--r))); background: #000; }
.lightbox .ba-tag { top: 64px; font-size: 13px; padding: 7px 12px; }
.lightbox .ba-tag-before { left: var(--pad); }
.lightbox .ba-tag-after { right: var(--pad); }
.lightbox .ba-knob { width: 56px; height: 56px; }

/* ---------- Bandeau informatif ---------- */
.band {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 10;
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 24px;
  min-height: var(--band-h);
  padding: 0 var(--pad) env(safe-area-inset-bottom);
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-top: 1px solid var(--line);
  font-size: 13px;
}
.band-info { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; color: var(--mute); }
.band-info > span + span::before { content: ""; display: inline-block; width: 18px; height: 1px; margin: 0 14px; vertical-align: middle; background: #BDBDBD; }
.band-info .band-name { color: var(--ink); font-weight: 600; letter-spacing: .24em; text-transform: uppercase; font-size: 12px; }
.band-links { display: flex; align-items: center; gap: 4px; white-space: nowrap; }
.band-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; transition: color .2s, background .2s; }
.band-links a:not(.band-btn) { color: var(--mute); }
.band-links a:not(.band-btn):hover { color: var(--ink); }
.band-links .band-btn { margin-left: 8px; padding: 0 22px; background: var(--ink); color: #fff; }
.band-links .band-btn:hover { background: #3A3A3A; }

/* ---------- Page contact ---------- */
.contact {
  min-height: calc(100svh - 64px);
  display: grid; align-content: end;
  padding: 0 var(--pad) clamp(40px, 8vh, 96px);
}
.contact h1 { margin: 0; font-weight: 500; letter-spacing: -.035em; line-height: .98; font-size: clamp(44px, 9vw, 148px); }
.contact-grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px;
  margin-top: clamp(40px, 7vh, 88px); padding-top: 20px; border-top: 1px solid var(--ink);
}
.contact-grid .label { display: block; color: var(--mute); margin-bottom: 10px; }
.contact-grid p { margin: 0; padding: 6px 0; font-size: clamp(18px, 1.6vw, 22px); }
.contact-grid a { display: inline-block; padding: 6px 0; font-size: clamp(18px, 1.6vw, 22px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.contact-grid a:hover { border-color: currentColor; }

/* ---------- Visionneuse plein écran ---------- */
.lightbox { position: fixed; inset: 0; width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: #000; color: #fff; overflow: hidden; }
.lightbox[open] { display: block; }
.lightbox::backdrop { background: #000; }
.lb-stage { position: absolute; inset: 0; }
.lb-stage > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; user-select: none; -webkit-user-drag: none; transition: opacity .25s ease-out; }
.lb-stage > img.loading { opacity: 0; }
.lb-btn {
  position: absolute; z-index: 2; display: grid; place-items: center;
  width: 56px; height: 56px; border: 0; background: none; color: #fff; cursor: pointer;
  opacity: .75; transition: opacity .2s; filter: drop-shadow(0 0 6px rgba(0,0,0,.5));
}
.lb-btn:hover { opacity: 1; }
.lb-btn svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.25; stroke-linecap: square; }
.lb-prev, .lb-next { top: 50%; transform: translateY(-50%); }
.lb-prev { left: 8px; }
.lb-next { right: 8px; }
.lb-close { top: 8px; right: 8px; }
.lb-count { position: absolute; z-index: 2; left: var(--pad); top: 24px; font-size: 12px; letter-spacing: .14em; color: rgba(255,255,255,.8); font-variant-numeric: tabular-nums; text-shadow: 0 0 10px rgba(0,0,0,.5); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr 1fr; row-gap: 28px; }
}
@media (max-width: 720px) {
  :root { --band-h: 96px; }
  .gallery { columns: 2; }
  .band { grid-template-columns: 1fr; gap: 0; padding-top: 10px; }
  .band-info .band-tag { display: none; }
  .band-links { justify-content: space-between; }
  .band-links a:first-child { padding-left: 0; }
  .lb-btn { width: 48px; height: 48px; }
}
@media (max-width: 480px) {
  .gallery { columns: 1; }
  .band-links .band-mail { display: none; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { *, *::after { transition: none !important; } }
@media (max-width: 720px) { .ba-tag { top: 8px; padding: 4px 8px; font-size: 10px; } .ba-tag-before { left: 8px; } .ba-tag-after { right: 8px; } }
