@font-face {
  font-family: "Arno Inter";
  src: url("https://arnopartissimo.com/assets/fonts/inter-300-700.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Arno Serif";
  src: url("https://arnopartissimo.com/assets/fonts/instrument-serif-normal-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Arno Serif";
  src: url("https://arnopartissimo.com/assets/fonts/instrument-serif-italic-400.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  --bg: #0b0b0b;
  --ink: #f2f2f2;
  --muted: rgba(242,242,242,.46);
  --muted-2: rgba(242,242,242,.28);
  --hair: rgba(242,242,242,.16);
  --hair-soft: rgba(242,242,242,.09);
  --surface: #111;
  --no: #8f2f24;
  --pad: clamp(18px, 4vw, 54px);
  --font: "Arno Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --serif: "Arno Serif", Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; border-radius: 0; }
html { background: var(--bg); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  padding-bottom: 62px;
}
a { color: inherit; text-decoration: none; }
button, input { font-family: inherit; }
button { -webkit-tap-highlight-color: transparent; }
img { display: block; }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
[hidden] { display: none !important; }

/* ---------- header ---------- */
.top {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 18px;
  min-height: 52px; padding: 0 var(--pad);
  background: rgba(11,11,11,.9);
  border-bottom: 1px solid var(--hair);
  backdrop-filter: blur(16px) saturate(120%);
}
.brand {
  font-size: 9.5px; letter-spacing: .2em; text-transform: uppercase;
  white-space: nowrap; font-weight: 400;
}
.top-meta {
  display: flex; gap: 10px; align-items: baseline;
  margin-left: auto; font-size: 8.5px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--muted); white-space: nowrap;
}
.top-meta .muted { color: var(--muted-2); }
.mark {
  font-size: 8px; letter-spacing: .12em; color: var(--muted-2);
  border: 1px solid var(--hair); padding: 5px 6px; line-height: 1;
}

/* ---------- hero ---------- */
.wrap { max-width: 1600px; margin: 0 auto; padding: 0 var(--pad); }
.intro {
  padding: clamp(46px, 9vh, 112px) 0 clamp(28px, 4vw, 44px);
  border-bottom: 1px solid var(--hair);
  max-width: 1040px;
}
.eyebrow {
  margin: 0 0 clamp(26px, 4vw, 42px);
  font-size: 8px; line-height: 1.4; letter-spacing: .24em;
  text-transform: uppercase; color: var(--muted);
}
.eyebrow span:first-child { color: var(--ink); }
.eyebrow-sep { color: var(--muted-2); padding: 0 4px; }
h1 {
  margin: 0;
  font-family: var(--font);
  font-size: clamp(34px, 7.2vw, 104px);
  line-height: .9;
  letter-spacing: -.045em;
  font-weight: 250;
  text-transform: uppercase;
  text-wrap: balance;
}
.hero-meta {
  display: flex; flex-wrap: wrap; gap: 8px 22px;
  margin-top: clamp(24px, 3.4vw, 38px);
  font-size: 8px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--muted);
}
.hero-meta span:empty { display: none; }
.lede {
  margin: clamp(20px, 3vw, 32px) 0 0;
  max-width: 46ch; font-size: 12px; line-height: 1.75;
  color: var(--muted);
}
.progress {
  height: 1px; margin-top: clamp(28px, 4vw, 42px);
  background: var(--hair); overflow: hidden;
}
.progress span { display: block; width: 0; height: 100%; background: var(--ink); transition: width .5s cubic-bezier(.16,1,.3,1); }
.progress-meta {
  display: flex; justify-content: space-between; gap: 16px;
  margin-top: 10px; font-size: 8px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--muted);
}
.progress-hint { color: var(--muted-2); }

/* ---------- controls ---------- */
.controls {
  position: sticky; top: 52px; z-index: 25;
  display: flex; flex-wrap: wrap; align-items: stretch; gap: 0;
  background: rgba(11,11,11,.92);
  border-bottom: 1px solid var(--hair);
  backdrop-filter: blur(16px);
}
.tabs { display: flex; flex-wrap: wrap; flex: 1 1 520px; }
.tabs button {
  appearance: none; border: 0; background: transparent; color: var(--muted);
  font: inherit; font-size: 8.5px; letter-spacing: .16em; text-transform: uppercase;
  min-height: 46px; padding: 0 clamp(10px, 2vw, 18px); cursor: pointer;
  position: relative; transition: color .25s;
}
.tabs button + button { border-left: 1px solid var(--hair-soft); }
.tabs button span { opacity: .45; margin-left: 3px; font-variant-numeric: tabular-nums; }
.tabs button:hover { color: var(--ink); }
.tabs button[aria-pressed="true"] { color: var(--ink); }
.tabs button[aria-pressed="true"]::after {
  content: ""; position: absolute; left: clamp(10px, 2vw, 18px); right: clamp(10px, 2vw, 18px);
  bottom: -1px; height: 1px; background: var(--ink);
}
.tabs button[data-filter="no"][aria-pressed="true"]::after { background: var(--no); }
.bulk-toggle {
  appearance: none; border: 0; border-left: 1px solid var(--hair-soft);
  background: transparent; color: var(--muted);
  font: inherit; font-size: 8px; letter-spacing: .14em; text-transform: uppercase;
  padding: 0 clamp(10px, 2vw, 18px); cursor: pointer; white-space: nowrap;
}
.bulk-toggle:hover, .bulk-toggle[aria-pressed="true"] { color: var(--ink); }
.searchrow {
  display: flex; flex-wrap: wrap; gap: 0;
  border-bottom: 1px solid var(--hair);
  margin-bottom: clamp(2px, .4vw, 6px);
}
.searchrow input {
  flex: 1 1 220px; min-width: 0; height: 46px;
  background: transparent; border: 0; border-right: 1px solid var(--hair-soft);
  color: var(--ink); font: inherit; font-size: 10px; letter-spacing: .04em; padding: 0 14px;
}
.searchrow input::placeholder { color: var(--muted-2); }
.searchrow input:focus { outline: 0; background: rgba(242,242,242,.025); }
.searchrow button {
  border: 0; border-right: 1px solid var(--hair-soft); background: transparent;
  color: var(--muted); font: inherit; font-size: 8px; letter-spacing: .14em;
  text-transform: uppercase; padding: 0 14px; min-height: 46px; cursor: pointer; white-space: nowrap;
}
.searchrow button:hover { color: var(--ink); }

/* ---------- grille type planche contact ---------- */
.grid { columns: 2; column-gap: 3px; }
.grid.density-3 { columns: 3; }
.grid.density-4 { columns: 4; }
@media (min-width: 900px) { .grid { column-gap: 8px; } .grid.density-2 { columns: 3; } }
@media (min-width: 1300px) { .grid.density-2 { columns: 4; } }
@media (max-width: 600px) { .grid { columns: 2; column-gap: 2px; } .grid.density-3 { columns: 3; } .grid.density-4 { columns: 4; } }
.card {
  position: relative; break-inside: avoid; margin: 0 0 3px;
  background: #101010; overflow: hidden;
}
@media (min-width: 900px) { .card { margin-bottom: 8px; } }
.card img {
  width: 100%; height: auto; object-fit: contain;
  background: #101010; transition: opacity .35s, filter .5s;
}
.card:hover img { filter: brightness(.78); }
.card-meta {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; align-items: flex-end; gap: 6px;
  padding: 24px 9px 9px;
  background: linear-gradient(to top, rgba(0,0,0,.78), transparent);
  opacity: 0; transform: translateY(4px);
  transition: opacity .28s, transform .28s;
}
.card:hover .card-meta, .card:focus-within .card-meta { opacity: 1; transform: none; }
.card-name {
  flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-size: 7.5px; letter-spacing: .08em; color: rgba(242,242,242,.72);
}
.card-actions { display: flex; gap: 2px; flex: none; }
.card-actions button {
  appearance: none; border: 1px solid rgba(242,242,242,.3);
  background: rgba(11,11,11,.6); color: var(--ink);
  font: inherit; font-size: 7.5px; letter-spacing: .1em;
  padding: 6px 7px; cursor: pointer; backdrop-filter: blur(4px);
}
.card-actions button:hover { border-color: var(--ink); background: var(--ink); color: #0b0b0b; }
.card-actions .no:hover { background: var(--no); border-color: var(--no); }
.card[data-state="yes"] .card-actions .yes { background: var(--ink); border-color: var(--ink); color: #0b0b0b; }
.card[data-state="no"] .card-actions .no { background: var(--no); border-color: var(--no); color: var(--ink); }
.card[data-state="yes"] img, .card[data-state="no"] img { filter: brightness(.72); }
.card[data-state="yes"]:hover img, .card[data-state="no"]:hover img { filter: brightness(.55); }
.badge {
  position: absolute; top: 8px; left: 8px; z-index: 2;
  font-size: 7px; letter-spacing: .12em; line-height: 1; padding: 5px 6px;
  background: var(--ink); color: #0b0b0b;
}
.card[data-state="no"] .badge { background: var(--no); color: var(--ink); }
.card.picked { outline: 1px solid var(--ink); outline-offset: -1px; }
.card.picked::after {
  content: "✓"; position: absolute; top: 8px; right: 8px; z-index: 3;
  width: 20px; height: 20px; display: grid; place-items: center;
  background: var(--ink); color: #0b0b0b; font-size: 11px;
}
.empty {
  color: var(--muted); font-size: 10px; letter-spacing: .08em;
  padding: 74px 0; text-align: center; border-bottom: 1px solid var(--hair);
}
@media (hover: none) {
  .card-meta { opacity: 1; transform: none; }
  .card-name { display: none; }
}

/* ---------- barre sélection multiple / sync ---------- */
.bulkbar {
  position: fixed; left: 0; right: 0; bottom: 53px; z-index: 35;
  display: flex; align-items: center; gap: 0;
  background: #141414; border-top: 1px solid var(--hair);
}
.bulkbar span {
  flex: 1; padding: 0 var(--pad); font-size: 8px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--muted);
}
.bulkbar button {
  appearance: none; border: 0; border-left: 1px solid var(--hair);
  background: transparent; color: var(--muted); font: inherit;
  font-size: 8px; letter-spacing: .12em; text-transform: uppercase;
  padding: 14px 12px; cursor: pointer;
}
.bulkbar button:hover { color: var(--ink); background: rgba(242,242,242,.04); }
#bulkYes { background: var(--ink); color: #0b0b0b; }
#bulkNo { background: var(--no); color: var(--ink); }
#bulkClear { color: var(--muted-2); }
body.bulk-open { padding-bottom: 98px; }
.syncbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: flex; align-items: center; gap: 8px;
  min-height: 53px; padding: 0 var(--pad);
  background: rgba(11,11,11,.96); border-top: 1px solid var(--hair);
  backdrop-filter: blur(12px);
  font-size: 8px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}
.dot { width: 5px; height: 5px; background: var(--muted-2); transition: background .2s; }
.dot.ok { background: #c9d8bd; }
.dot.pending { background: #d9b85a; }
.dot.error { background: var(--no); }
.sync-hint { margin-left: auto; color: var(--muted-2); font-size: 7.5px; letter-spacing: .12em; }
@media (max-width: 520px) {
  .bulkbar span { padding: 0 12px; }
  .bulkbar button { padding: 13px 8px; font-size: 7px; }
  .sync-hint { display: none; }
}

/* ---------- footer ---------- */
.foot {
  max-width: 1600px; margin: 0 auto;
  padding: clamp(42px, 7vw, 80px) var(--pad) 30px;
  border-top: 1px solid var(--hair);
  font-size: 8px; letter-spacing: .14em; line-height: 1.8; text-transform: uppercase;
  color: var(--muted-2);
}
.foot p { margin: 0; }
.foot .muted { color: var(--muted-2); }

/* ---------- lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  display: grid; grid-template-rows: auto minmax(0,1fr) auto auto;
  grid-template-columns: 54px minmax(0,1fr) 54px;
  background: #050505;
  animation: lbIn .22s ease-out;
}
@keyframes lbIn { from { opacity: 0; } to { opacity: 1; } }
.lb-top {
  grid-column: 1 / -1; display: flex; align-items: center; gap: 10px;
  min-height: 54px; padding: 0 var(--pad);
  border-bottom: 1px solid var(--hair);
}
.lb-brand { font-size: 9px; letter-spacing: .2em; text-transform: uppercase; white-space: nowrap; }
.lb-counter { margin-left: auto; font-size: 8px; letter-spacing: .14em; color: var(--muted); font-variant-numeric: tabular-nums; }
.lb-tool, .lb-close {
  appearance: none; border: 1px solid var(--hair); background: transparent;
  color: var(--muted); font: inherit; font-size: 8px; letter-spacing: .12em;
  text-transform: uppercase; padding: 9px 10px; cursor: pointer; white-space: nowrap;
}
.lb-tool:hover, .lb-close:hover { color: var(--ink); border-color: var(--ink); }
.lb-close { color: var(--ink); }
.lb-nav {
  appearance: none; border: 0; background: transparent; color: var(--muted-2);
  font: inherit; font-size: 20px; cursor: pointer; align-self: center; height: 72px;
  transition: color .2s;
}
.lb-nav:hover { color: var(--ink); }
.lb-stage {
  position: relative; min-height: 0; overflow: hidden;
  touch-action: none; display: grid; place-items: stretch;
}
.lb-canvas {
  width: 100%; height: 100%; display: grid; place-items: center;
  padding: clamp(14px, 3.2vw, 52px);
  transform-origin: center center; will-change: transform;
}
.lb-canvas img {
  max-width: calc(100vw - 170px); max-height: calc(100dvh - 270px);
  width: auto; height: auto;
  object-fit: contain; user-select: none; -webkit-user-drag: none;
}
.lightbox.zoomed .lb-canvas img { max-width: none; max-height: none; }
.lb-zoom-label {
  position: absolute; right: 14px; bottom: 12px;
  font-size: 8px; letter-spacing: .1em; color: var(--muted);
  background: rgba(0,0,0,.55); padding: 4px 6px; pointer-events: none;
}
.lb-thumbs {
  grid-column: 1 / -1; display: flex; gap: 4px; overflow-x: auto;
  padding: 8px var(--pad); border-top: 1px solid var(--hair);
  background: #080808; scrollbar-width: thin;
}
.lb-thumb {
  flex: 0 0 42px; width: 42px; height: 54px; padding: 0;
  border: 1px solid transparent; background: #111; cursor: pointer; opacity: .42;
  transition: opacity .2s;
}
.lb-thumb img { width: 100%; height: 100%; object-fit: cover; }
.lb-thumb:hover { opacity: .85; }
.lb-thumb[aria-current="true"] { opacity: 1; border-color: var(--ink); }
.lb-bottom {
  grid-column: 1 / -1; display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 10px var(--pad) 12px; border-top: 1px solid var(--hair); background: #0b0b0b;
}
.lb-info { display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 1 1 260px; }
.lb-info #lbName { font-size: 8px; letter-spacing: .08em; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb-hint { font-size: 7px; letter-spacing: .08em; color: var(--muted-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb-actions { display: flex; align-items: stretch; gap: 0; margin-left: auto; }
.lb-actions button, .lb-actions a {
  appearance: none; border: 1px solid var(--hair); border-right: 0;
  background: transparent; color: var(--muted); font: inherit;
  font-size: 8px; letter-spacing: .1em; text-transform: uppercase;
  padding: 9px 10px; cursor: pointer; text-decoration: none; line-height: 1;
}
.lb-actions > *:last-child { border-right: 1px solid var(--hair); }
.lb-actions button:hover, .lb-actions a:hover { color: var(--ink); border-color: var(--hair); background: rgba(242,242,242,.05); }
#lbYes { background: var(--ink); color: #0b0b0b; border-color: var(--ink); min-width: 56px; }
#lbNo { background: var(--no); color: var(--ink); border-color: var(--no); min-width: 56px; }
#lbUndecided { color: var(--muted-2); }
.zoomgroup { display: flex; border: 1px solid var(--hair); border-right: 0; }
.zoomgroup button { border: 0; border-right: 1px solid var(--hair); min-width: 28px; }
.zoomgroup button:last-child { border-right: 0; }
#lbAuto.on { color: #0b0b0b; background: var(--ink); border-color: var(--ink); }
@media (max-width: 760px) {
  .lightbox { grid-template-columns: 28px minmax(0,1fr) 28px; }
  .lb-brand { font-size: 8px; letter-spacing: .14em; }
  .lb-tool, .lb-close { padding: 8px 7px; font-size: 7.5px; }
  .lb-counter { margin-left: 0; order: 0; }
  .lb-tool#lbAuto, .lb-tool#lbSlideshow, .lb-tool#lbShortcuts { display: none; }
  .lb-nav { font-size: 14px; }
  .lb-canvas { padding: 8px 4px; }
  .lb-canvas img { max-width: calc(100vw - 70px); max-height: calc(100dvh - 250px); }
  .lb-thumbs { padding: 6px var(--pad); }
  .lb-thumb { flex-basis: 36px; width: 36px; height: 46px; }
  .lb-bottom { padding: 8px var(--pad) 10px; gap: 6px; }
  .lb-info { flex-basis: 100%; gap: 2px; }
  .lb-hint { display: none; }
  .lb-actions { width: 100%; margin-left: 0; }
  .lb-actions > * { flex: 1; justify-content: center; text-align: center; padding: 10px 4px; font-size: 7px; }
  .lb-actions #lbYes, .lb-actions #lbNo { flex: 1.2; min-width: 0; }
  .zoomgroup { flex: 1.4; }
  .zoomgroup button { flex: 1; min-width: 0; }
  .lb-actions #lbUndecided { flex: 1.1; }
  .lb-actions #lbFullscreen, .lb-actions #lbDownload { flex: 1.4; }
  body { padding-bottom: 54px; }
}
.help {
  position: fixed; inset: 0; z-index: 120; display: grid; place-items: center;
  padding: 20px; background: rgba(5,5,5,.94);
}
.help-card { width: min(420px,100%); background: #111; border: 1px solid var(--hair); padding: 28px; }
.help-card h2 { margin: 0 0 22px; font-size: 20px; font-weight: 300; letter-spacing: -.01em; text-transform: uppercase; }
.help-card p { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 10px; margin: 10px 0; flex-wrap: wrap; }
.help-card kbd { border: 1px solid var(--hair); color: var(--ink); padding: 3px 6px; font: inherit; font-size: 9px; }
.help-card button { margin-top: 22px; border: 1px solid var(--ink); background: var(--ink); color: #0b0b0b; font: inherit; font-size: 8px; letter-spacing: .12em; text-transform: uppercase; padding: 11px 14px; cursor: pointer; }

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

/* Focus premium */
button:focus-visible, a:focus-visible, input:focus-visible {
  outline: 1px solid var(--ink) !important;
  outline-offset: 2px !important;
}
.card img { cursor: zoom-in; }
.grid.selecting .card img { cursor: pointer; }

/* Barre d'actions mobile : deux rangées nettes */
@media (max-width: 760px) {
  .lb-actions {
    display: grid; grid-template-columns: repeat(3, minmax(0,1fr));
    gap: 2px; width: 100%; border: 0;
  }
  .lb-actions button, .lb-actions a {
    border: 1px solid var(--hair) !important;
    min-height: 40px; display: flex; align-items: center; justify-content: center;
    padding: 0 4px; font-size: 7px; letter-spacing: .08em;
  }
  .lb-actions .zoomgroup { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); border: 0; gap: 2px; }
  .lb-actions .zoomgroup button { border: 1px solid var(--hair) !important; min-height: 40px; padding: 0 !important; }
  .lb-actions #lbYes, .lb-actions #lbNo, .lb-actions #lbUndecided { min-width: 0; }
  .lb-bottom { padding-bottom: 10px; }
  .lb-thumbs { padding-top: 6px; padding-bottom: 6px; }
}
